(()=>{"use strict";var e,b={},m={};function t(e){var n=m[e];if(void 0!==n)return n.exports;var r=m[e]={exports:{}};return b[e].call(r.exports,r,r.exports,t),r.exports}t.m=b,e=[],t.O=(n,r,o,u)=>{if(!r){var a=1/0;for(i=0;i<e.length;i++){for(var[r,o,u]=e[i],s=!0,l=0;l<r.length;l++)(!1&u||a>=u)&&Object.keys(t.O).every(_=>t.O[_](r[l]))?r.splice(l--,1):(s=!1,u<a&&(a=u));if(s){e.splice(i--,1);var f=o();void 0!==f&&(n=f)}}return n}u=u||0;for(var i=e.length;i>0&&e[i-1][2]>u;i--)e[i]=e[i-1];e[i]=[r,o,u]},t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((n,r)=>(t.f[r](e,n),n),[])),t.u=e=>e+"."+{"default-node_modules_devextreme_esm_ui_speed_dial_action_repaint_floating_action_button_js-no-b40944":"540de3613dec00b1","src_app_chat-module_chat_module_ts":"038d6285fcb0ce84","src_app_chat-module-legacy_chat_module_ts":"d3b903ec944e5b67"}[e]+".js",t.miniCssF=e=>{},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="ClientApp:";t.l=(r,o,u,i)=>{if(e[r])e[r].push(o);else{var a,s;if(void 0!==u)for(var l=document.getElementsByTagName("script"),f=0;f<l.length;f++){var d=l[f];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==n+u){a=d;break}}a||(s=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,t.nc&&a.setAttribute("nonce",t.nc),a.setAttribute("data-webpack",n+u),a.src=t.tu(r)),e[r]=[o];var c=(v,_)=>{a.onerror=a.onload=null,clearTimeout(p);var g=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),g&&g.forEach(h=>h(_)),v)return v(_)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),t.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;t.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),t.tu=e=>t.tt().createScriptURL(e),t.p="/scripts/ClientApp/",(()=>{var e={runtime:0};t.f.j=(o,u)=>{var i=t.o(e,o)?e[o]:void 0;if(0!==i)if(i)u.push(i[2]);else if("runtime"!=o){var a=new Promise((d,c)=>i=e[o]=[d,c]);u.push(i[2]=a);var s=t.p+t.u(o),l=new Error;t.l(s,d=>{if(t.o(e,o)&&(0!==(i=e[o])&&(e[o]=void 0),i)){var c=d&&("load"===d.type?"missing":d.type),p=d&&d.target&&d.target.src;l.message="Loading chunk "+o+" failed.\n("+c+": "+p+")",l.name="ChunkLoadError",l.type=c,l.request=p,i[1](l)}},"chunk-"+o,o)}else e[o]=0},t.O.j=o=>0===e[o];var n=(o,u)=>{var l,f,[i,a,s]=u,d=0;if(i.some(p=>0!==e[p])){for(l in a)t.o(a,l)&&(t.m[l]=a[l]);if(s)var c=s(t)}for(o&&o(u);d<i.length;d++)t.o(e,f=i[d])&&e[f]&&e[f][0](),e[f]=0;return t.O(c)},r=self.webpackChunkClientApp=self.webpackChunkClientApp||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})()})();
"use strict";(self.webpackChunkClientApp=self.webpackChunkClientApp||[]).push([["polyfills"],{1669:(te,Q,me)=>{me(2260)},2260:()=>{const te=globalThis;function Q(e){return(te.__Zone_symbol_prefix||"__zone_symbol__")+e}const Ee=Object.getOwnPropertyDescriptor,Ne=Object.defineProperty,Ze=Object.getPrototypeOf,_t=Object.create,dt=Array.prototype.slice,Le="addEventListener",Ie="removeEventListener",Me=Q(Le),Ae=Q(Ie),ae="true",le="false",ve=Q("");function je(e,r){return Zone.current.wrap(e,r)}function He(e,r,c,t,i){return Zone.current.scheduleMacroTask(e,r,c,t,i)}const j=Q,Re=typeof window<"u",be=Re?window:void 0,$=Re&&be||globalThis;function xe(e,r){for(let c=e.length-1;c>=0;c--)"function"==typeof e[c]&&(e[c]=je(e[c],r+"_"+c));return e}function Ue(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const We=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in $)&&typeof $.process<"u"&&"[object process]"===$.process.toString(),Ve=!we&&!We&&!(!Re||!be.HTMLElement),qe=typeof $.process<"u"&&"[object process]"===$.process.toString()&&!We&&!(!Re||!be.HTMLElement),De={},gt=j("enable_beforeunload"),Xe=function(e){if(!(e=e||$.event))return;let r=De[e.type];r||(r=De[e.type]=j("ON_PROPERTY"+e.type));const c=this||e.target||$,t=c[r];let i;return Ve&&c===be&&"error"===e.type?(i=t&&t.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===i&&e.preventDefault()):(i=t&&t.apply(this,arguments),"beforeunload"===e.type&&$[gt]&&"string"==typeof i?e.returnValue=i:null!=i&&!i&&e.preventDefault()),i};function Ye(e,r,c){let t=Ee(e,r);if(!t&&c&&Ee(c,r)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;const i=j("on"+r+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;const u=t.get,E=t.set,T=r.slice(2);let p=De[T];p||(p=De[T]=j("ON_PROPERTY"+T)),t.set=function(D){let _=this;!_&&e===$&&(_=$),_&&("function"==typeof _[p]&&_.removeEventListener(T,Xe),E?.call(_,null),_[p]=D,"function"==typeof D&&_.addEventListener(T,Xe,!1))},t.get=function(){let D=this;if(!D&&e===$&&(D=$),!D)return null;const _=D[p];if(_)return _;if(u){let C=u.call(this);if(C)return t.set.call(this,C),"function"==typeof D.removeAttribute&&D.removeAttribute(r),C}return null},Ne(e,r,t),e[i]=!0}function $e(e,r,c){if(r)for(let t=0;t<r.length;t++)Ye(e,"on"+r[t],c);else{const t=[];for(const i in e)"on"==i.slice(0,2)&&t.push(i);for(let i=0;i<t.length;i++)Ye(e,t[i],c)}}const re=j("originalInstance");function Pe(e){const r=$[e];if(!r)return;$[j(e)]=r,$[e]=function(){const i=xe(arguments,e);switch(i.length){case 0:this[re]=new r;break;case 1:this[re]=new r(i[0]);break;case 2:this[re]=new r(i[0],i[1]);break;case 3:this[re]=new r(i[0],i[1],i[2]);break;case 4:this[re]=new r(i[0],i[1],i[2],i[3]);break;default:throw new Error("Arg list too long.")}},fe($[e],r);const c=new r(function(){});let t;for(t in c)"XMLHttpRequest"===e&&"responseBlob"===t||function(i){"function"==typeof c[i]?$[e].prototype[i]=function(){return this[re][i].apply(this[re],arguments)}:Ne($[e].prototype,i,{set:function(u){"function"==typeof u?(this[re][i]=je(u,e+"."+i),fe(this[re][i],u)):this[re][i]=u},get:function(){return this[re][i]}})}(t);for(t in r)"prototype"!==t&&r.hasOwnProperty(t)&&($[e][t]=r[t])}function ue(e,r,c){let t=e;for(;t&&!t.hasOwnProperty(r);)t=Ze(t);!t&&e[r]&&(t=e);const i=j(r);let u=null;if(t&&(!(u=t[i])||!t.hasOwnProperty(i))&&(u=t[i]=t[r],Ue(t&&Ee(t,r)))){const T=c(u,i,r);t[r]=function(){return T(this,arguments)},fe(t[r],u)}return u}function kt(e,r,c){let t=null;function i(u){const E=u.data;return E.args[E.cbIdx]=function(){u.invoke.apply(this,arguments)},t.apply(E.target,E.args),u}t=ue(e,r,u=>function(E,T){const p=c(E,T);return p.cbIdx>=0&&"function"==typeof T[p.cbIdx]?He(p.name,T[p.cbIdx],p,i):u.apply(E,T)})}function fe(e,r){e[j("OriginalDelegate")]=r}let Ke=!1,Fe=!1;function pt(){if(Ke)return Fe;Ke=!0;try{const e=be.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Fe=!0)}catch{}return Fe}function Je(e){return"function"==typeof e}function Qe(e){return"number"==typeof e}const mt={useG:!0},ne={},et={},tt=new RegExp("^"+ve+"(\\w+)(true|false)$"),nt=j("propagationStopped");function rt(e,r){const c=(r?r(e):e)+le,t=(r?r(e):e)+ae,i=ve+c,u=ve+t;ne[e]={},ne[e][le]=i,ne[e][ae]=u}function yt(e,r,c,t){const i=t&&t.add||Le,u=t&&t.rm||Ie,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",p=j(i),D="."+i+":",_="prependListener",C="."+_+":",M=function(y,h,H){if(y.isRemoved)return;const V=y.callback;let Y;"object"==typeof V&&V.handleEvent&&(y.callback=g=>V.handleEvent(g),y.originalDelegate=V);try{y.invoke(y,h,[H])}catch(g){Y=g}const F=y.options;return F&&"object"==typeof F&&F.once&&h[u].call(h,H.type,y.originalDelegate?y.originalDelegate:y.callback,F),Y};function x(y,h,H){if(!(h=h||e.event))return;const V=y||h.target||e,Y=V[ne[h.type][H?ae:le]];if(Y){const F=[];if(1===Y.length){const g=M(Y[0],V,h);g&&F.push(g)}else{const g=Y.slice();for(let U=0;U<g.length&&(!h||!0!==h[nt]);U++){const O=M(g[U],V,h);O&&F.push(O)}}if(1===F.length)throw F[0];for(let g=0;g<F.length;g++){const U=F[g];r.nativeScheduleMicroTask(()=>{throw U})}}}const z=function(y){return x(this,y,!1)},K=function(y){return x(this,y,!0)};function J(y,h){if(!y)return!1;let H=!0;h&&void 0!==h.useG&&(H=h.useG);const V=h&&h.vh;let Y=!0;h&&void 0!==h.chkDup&&(Y=h.chkDup);let F=!1;h&&void 0!==h.rt&&(F=h.rt);let g=y;for(;g&&!g.hasOwnProperty(i);)g=Ze(g);if(!g&&y[i]&&(g=y),!g||g[p])return!1;const U=h&&h.eventNameToString,O={},R=g[p]=g[i],b=g[j(u)]=g[u],S=g[j(E)]=g[E],ee=g[j(T)]=g[T];let W;h&&h.prepend&&(W=g[j(h.prepend)]=g[h.prepend]);const q=H?function(s){if(!O.isExisting)return R.call(O.target,O.eventName,O.capture?K:z,O.options)}:function(s){return R.call(O.target,O.eventName,s.invoke,O.options)},A=H?function(s){if(!s.isRemoved){const l=ne[s.eventName];let v;l&&(v=l[s.capture?ae:le]);const w=v&&s.target[v];if(w)for(let k=0;k<w.length;k++)if(w[k]===s){w.splice(k,1),s.isRemoved=!0,s.removeAbortListener&&(s.removeAbortListener(),s.removeAbortListener=null),0===w.length&&(s.allRemoved=!0,s.target[v]=null);break}}if(s.allRemoved)return b.call(s.target,s.eventName,s.capture?K:z,s.options)}:function(s){return b.call(s.target,s.eventName,s.invoke,s.options)},he=h?.diff||function(s,l){const v=typeof l;return"function"===v&&s.callback===l||"object"===v&&s.originalDelegate===l},_e=Zone[j("UNPATCHED_EVENTS")],oe=e[j("PASSIVE_EVENTS")],a=function(s,l,v,w,k=!1,Z=!1){return function(){const L=this||e;let I=arguments[0];h&&h.transferEventName&&(I=h.transferEventName(I));let G=arguments[1];if(!G)return s.apply(this,arguments);if(we&&"uncaughtException"===I)return s.apply(this,arguments);let B=!1;if("function"!=typeof G){if(!G.handleEvent)return s.apply(this,arguments);B=!0}if(V&&!V(s,G,L,arguments))return;const Te=!!oe&&-1!==oe.indexOf(I),ie=function f(s){if("object"==typeof s&&null!==s){const l={...s};return s.signal&&(l.signal=s.signal),l}return s}(function N(s,l){return l?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?{...s,passive:!0}:s:{passive:!0}:s}(arguments[2],Te)),ke=ie?.signal;if(ke?.aborted)return;if(_e)for(let ce=0;ce<_e.length;ce++)if(I===_e[ce])return Te?s.call(L,I,G,ie):s.apply(this,arguments);const Be=!!ie&&("boolean"==typeof ie||ie.capture),at=!(!ie||"object"!=typeof ie)&&ie.once,It=Zone.current;let ze=ne[I];ze||(rt(I,U),ze=ne[I]);const lt=ze[Be?ae:le];let Oe,pe=L[lt],ut=!1;if(pe){if(ut=!0,Y)for(let ce=0;ce<pe.length;ce++)if(he(pe[ce],G))return}else pe=L[lt]=[];const ft=L.constructor.name,ht=et[ft];ht&&(Oe=ht[I]),Oe||(Oe=ft+l+(U?U(I):I)),O.options=ie,at&&(O.options.once=!1),O.target=L,O.capture=Be,O.eventName=I,O.isExisting=ut;const Ce=H?mt:void 0;Ce&&(Ce.taskData=O),ke&&(O.options.signal=void 0);const se=It.scheduleEventTask(Oe,G,Ce,v,w);if(ke){O.options.signal=ke;const ce=()=>se.zone.cancelTask(se);s.call(ke,"abort",ce,{once:!0}),se.removeAbortListener=()=>ke.removeEventListener("abort",ce)}return O.target=null,Ce&&(Ce.taskData=null),at&&(O.options.once=!0),"boolean"!=typeof se.options&&(se.options=ie),se.target=L,se.capture=Be,se.eventName=I,B&&(se.originalDelegate=G),Z?pe.unshift(se):pe.push(se),k?L:void 0}};return g[i]=a(R,D,q,A,F),W&&(g[_]=a(W,C,function(s){return W.call(O.target,O.eventName,s.invoke,O.options)},A,F,!0)),g[u]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=arguments[2],w=!!v&&("boolean"==typeof v||v.capture),k=arguments[1];if(!k)return b.apply(this,arguments);if(V&&!V(b,k,s,arguments))return;const Z=ne[l];let L;Z&&(L=Z[w?ae:le]);const I=L&&s[L];if(I)for(let G=0;G<I.length;G++){const B=I[G];if(he(B,k))return I.splice(G,1),B.isRemoved=!0,0!==I.length||(B.allRemoved=!0,s[L]=null,w||"string"!=typeof l)||(s[ve+"ON_PROPERTY"+l]=null),B.zone.cancelTask(B),F?s:void 0}return b.apply(this,arguments)},g[E]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=[],w=ot(s,U?U(l):l);for(let k=0;k<w.length;k++){const Z=w[k];v.push(Z.originalDelegate?Z.originalDelegate:Z.callback)}return v},g[T]=function(){const s=this||e;let l=arguments[0];if(l){h&&h.transferEventName&&(l=h.transferEventName(l));const v=ne[l];if(v){const Z=s[v[le]],L=s[v[ae]];if(Z){const I=Z.slice();for(let G=0;G<I.length;G++){const B=I[G];this[u].call(this,l,B.originalDelegate?B.originalDelegate:B.callback,B.options)}}if(L){const I=L.slice();for(let G=0;G<I.length;G++){const B=I[G];this[u].call(this,l,B.originalDelegate?B.originalDelegate:B.callback,B.options)}}}}else{const v=Object.keys(s);for(let w=0;w<v.length;w++){const Z=tt.exec(v[w]);let L=Z&&Z[1];L&&"removeListener"!==L&&this[T].call(this,L)}this[T].call(this,"removeListener")}if(F)return this},fe(g[i],R),fe(g[u],b),ee&&fe(g[T],ee),S&&fe(g[E],S),!0}let X=[];for(let y=0;y<c.length;y++)X[y]=J(c[y],t);return X}function ot(e,r){if(!r){const u=[];for(let E in e){const T=tt.exec(E);let p=T&&T[1];if(p&&(!r||p===r)){const D=e[E];if(D)for(let _=0;_<D.length;_++)u.push(D[_])}}return u}let c=ne[r];c||(rt(r),c=ne[r]);const t=e[c[le]],i=e[c[ae]];return t?i?t.concat(i):t.slice():i?i.slice():[]}function vt(e,r){const c=e.Event;c&&c.prototype&&r.patchMethod(c.prototype,"stopImmediatePropagation",t=>function(i,u){i[nt]=!0,t&&t.apply(i,u)})}const Se=j("zoneTask");function ge(e,r,c,t){let i=null,u=null;c+=t;const E={};function T(D){const _=D.data;_.args[0]=function(){return D.invoke.apply(this,arguments)};const C=i.apply(e,_.args);return Qe(C)?_.handleId=C:(_.handle=C,_.isRefreshable=Je(C.refresh)),D}function p(D){const{handle:_,handleId:C}=D.data;return u.call(e,_??C)}i=ue(e,r+=t,D=>function(_,C){if(Je(C[0])){const M={isRefreshable:!1,isPeriodic:"Interval"===t,delay:"Timeout"===t||"Interval"===t?C[1]||0:void 0,args:C},x=C[0];C[0]=function(){try{return x.apply(this,arguments)}finally{const{handle:H,handleId:V,isPeriodic:Y,isRefreshable:F}=M;!Y&&!F&&(V?delete E[V]:H&&(H[Se]=null))}};const z=He(r,C[0],M,T,p);if(!z)return z;const{handleId:K,handle:J,isRefreshable:X,isPeriodic:y}=z.data;if(K)E[K]=z;else if(J&&(J[Se]=z,X&&!y)){const h=J.refresh;J.refresh=function(){const{zone:H,state:V}=z;return"notScheduled"===V?(z._state="scheduled",H._updateTaskCount(z,1)):"running"===V&&(z._state="scheduling"),h.call(this)}}return J??K??z}return D.apply(e,C)}),u=ue(e,c,D=>function(_,C){const M=C[0];let x;Qe(M)?(x=E[M],delete E[M]):(x=M?.[Se],x?M[Se]=null:x=M),x?.type?x.cancelFn&&x.zone.cancelTask(x):D.apply(e,C)})}function st(e,r,c){if(!c||0===c.length)return r;const t=c.filter(u=>u.target===e);if(0===t.length)return r;const i=t[0].ignoreProperties;return r.filter(u=>-1===i.indexOf(u))}function it(e,r,c,t){e&&$e(e,st(e,r,c),t)}function Ge(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function Nt(e,r,c,t,i){const u=Zone.__symbol__(t);if(r[u])return;const E=r[u]=r[t];r[t]=function(T,p,D){return p&&p.prototype&&i.forEach(function(_){const C=`${c}.${t}::`+_,M=p.prototype;try{if(M.hasOwnProperty(_)){const x=e.ObjectGetOwnPropertyDescriptor(M,_);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,C),e._redefineProperty(p.prototype,_,x)):M[_]&&(M[_]=e.wrapWithCurrentZone(M[_],C))}else M[_]&&(M[_]=e.wrapWithCurrentZone(M[_],C))}catch{}}),E.call(r,T,p,D)},e.attachOriginToPatched(r[t],E)}const ct=function ye(){const e=globalThis,r=!0===e[Q("forceDuplicateZoneCheck")];if(e.Zone&&(r||"function"!=typeof e.Zone.__symbol__))throw new Error("Zone already loaded.");return e.Zone??=function me(){const e=te.performance;function r(N){e&&e.mark&&e.mark(N)}function c(N,d){e&&e.measure&&e.measure(N,d)}r("Zone");let t=(()=>{class N{static __symbol__=Q;static assertZonePatched(){if(te.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=N.current;for(;n.parent;)n=n.parent;return n}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(n,o,m=!1){if(O.hasOwnProperty(n)){const P=!0===te[Q("forceDuplicateZoneCheck")];if(!m&&P)throw Error("Already loaded patch: "+n)}else if(!te["__Zone_disable_"+n]){const P="Zone:"+n;r(P),O[n]=o(te,N,R),c(P,P)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(n,o){this._parent=n,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,o)}get(n){const o=this.getZoneWith(n);if(o)return o._properties[n]}getZoneWith(n){let o=this;for(;o;){if(o._properties.hasOwnProperty(n))return o;o=o._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,o){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const m=this._zoneDelegate.intercept(this,n,o),P=this;return function(){return P.runGuarded(m,this,arguments,o)}}run(n,o,m,P){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,n,o,m,P)}finally{b=b.parent}}runGuarded(n,o=null,m,P){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,n,o,m,P)}catch(q){if(this._zoneDelegate.handleError(this,q))throw q}}finally{b=b.parent}}runTask(n,o,m){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||J).name+"; Execution: "+this.name+")");const P=n,{type:q,data:{isPeriodic:A=!1,isRefreshable:de=!1}={}}=n;if(n.state===X&&(q===U||q===g))return;const he=n.state!=H;he&&P._transitionTo(H,h);const _e=S;S=P,b={parent:b,zone:this};try{q==g&&n.data&&!A&&!de&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,P,o,m)}catch(oe){if(this._zoneDelegate.handleError(this,oe))throw oe}}finally{const oe=n.state;if(oe!==X&&oe!==Y)if(q==U||A||de&&oe===y)he&&P._transitionTo(h,H,y);else{const f=P._zoneDelegates;this._updateTaskCount(P,-1),he&&P._transitionTo(X,H,X),de&&(P._zoneDelegates=f)}b=b.parent,S=_e}}scheduleTask(n){if(n.zone&&n.zone!==this){let m=this;for(;m;){if(m===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);m=m.parent}}n._transitionTo(y,X);const o=[];n._zoneDelegates=o,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(m){throw n._transitionTo(Y,y,X),this._zoneDelegate.handleError(this,m),m}return n._zoneDelegates===o&&this._updateTaskCount(n,1),n.state==y&&n._transitionTo(h,y),n}scheduleMicroTask(n,o,m,P){return this.scheduleTask(new E(F,n,o,m,P,void 0))}scheduleMacroTask(n,o,m,P,q){return this.scheduleTask(new E(g,n,o,m,P,q))}scheduleEventTask(n,o,m,P,q){return this.scheduleTask(new E(U,n,o,m,P,q))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||J).name+"; Execution: "+this.name+")");if(n.state===h||n.state===H){n._transitionTo(V,h,H);try{this._zoneDelegate.cancelTask(this,n)}catch(o){throw n._transitionTo(Y,V),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(n,-1),n._transitionTo(X,V),n.runCount=-1,n}}_updateTaskCount(n,o){const m=n._zoneDelegates;-1==o&&(n._zoneDelegates=null);for(let P=0;P<m.length;P++)m[P]._updateTaskCount(n.type,o)}}return N})();const i={name:"",onHasTask:(N,d,n,o)=>N.hasTask(n,o),onScheduleTask:(N,d,n,o)=>N.scheduleTask(n,o),onInvokeTask:(N,d,n,o,m,P)=>N.invokeTask(n,o,m,P),onCancelTask:(N,d,n,o)=>N.cancelTask(n,o)};class u{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(d,n,o){this._zone=d,this._parentDelegate=n,this._forkZS=o&&(o&&o.onFork?o:n._forkZS),this._forkDlgt=o&&(o.onFork?n:n._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:n._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:n._interceptZS),this._interceptDlgt=o&&(o.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:n._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:n._invokeZS),this._invokeDlgt=o&&(o.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:n._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:n._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:n._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:n._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:n._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:n._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:n._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:n._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const m=o&&o.onHasTask;(m||n&&n._hasTaskZS)&&(this._hasTaskZS=m?o:i,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this._zone))}fork(d,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,d,n):new t(d,n)}intercept(d,n,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,d,n,o):n}invoke(d,n,o,m,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,d,n,o,m,P):n.apply(o,m)}handleError(d,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,d,n)}scheduleTask(d,n){let o=n;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,d,n),o||(o=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=F)throw new Error("Task is missing scheduleFn.");z(n)}return o}invokeTask(d,n,o,m){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,d,n,o,m):n.callback.apply(o,m)}cancelTask(d,n){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,d,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");o=n.cancelFn(n)}return o}hasTask(d,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,d,n)}catch(o){this.handleError(d,o)}}_updateTaskCount(d,n){const o=this._taskCounts,m=o[d],P=o[d]=m+n;if(P<0)throw new Error("More tasks executed then were scheduled.");0!=m&&0!=P||this.hasTask(this._zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:d})}}class E{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(d,n,o,m,P,q){if(this.type=d,this.source=n,this.data=m,this.scheduleFn=P,this.cancelFn=q,!o)throw new Error("callback is not defined");this.callback=o;const A=this;this.invoke=d===U&&m&&m.useG?E.invokeTask:function(){return E.invokeTask.call(te,A,this,arguments)}}static invokeTask(d,n,o){d||(d=this),ee++;try{return d.runCount++,d.zone.runTask(d,n,o)}finally{1==ee&&K(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,y)}_transitionTo(d,n,o){if(this._state!==n&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${d}', expecting state '${n}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=d,d==X&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const T=Q("setTimeout"),p=Q("Promise"),D=Q("then");let M,_=[],C=!1;function x(N){if(M||te[p]&&(M=te[p].resolve(0)),M){let d=M[D];d||(d=M.then),d.call(M,N)}else te[T](N,0)}function z(N){0===ee&&0===_.length&&x(K),N&&_.push(N)}function K(){if(!C){for(C=!0;_.length;){const N=_;_=[];for(let d=0;d<N.length;d++){const n=N[d];try{n.zone.runTask(n,null,null)}catch(o){R.onUnhandledError(o)}}}R.microtaskDrainDone(),C=!1}}const J={name:"NO ZONE"},X="notScheduled",y="scheduling",h="scheduled",H="running",V="canceling",Y="unknown",F="microTask",g="macroTask",U="eventTask",O={},R={symbol:Q,currentZoneFrame:()=>b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:z,showUncaughtError:()=>!t[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x};let b={parent:null,zone:new t(null,null)},S=null,ee=0;function W(){}return c("Zone","Zone"),t}(),e.Zone}();(function Lt(e){(function St(e){e.__load_patch("ZoneAwarePromise",(r,c,t)=>{const i=Object.getOwnPropertyDescriptor,u=Object.defineProperty,T=t.symbol,p=[],D=!1!==r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],_=T("Promise"),C=T("then");t.onUnhandledError=f=>{if(t.showUncaughtError()){const a=f&&f.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;p.length;){const f=p.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){z(a)}}};const x=T("unhandledPromiseRejectionHandler");function z(f){t.onUnhandledError(f);try{const a=c[x];"function"==typeof a&&a.call(this,f)}catch{}}function K(f){return f&&"function"==typeof f.then}function J(f){return f}function X(f){return A.reject(f)}const y=T("state"),h=T("value"),H=T("finally"),V=T("parentPromiseValue"),Y=T("parentPromiseState"),g=null,U=!0,O=!1;function b(f,a){return s=>{try{N(f,a,s)}catch(l){N(f,!1,l)}}}const S=function(){let f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}},ee="Promise resolved with itself",W=T("currentTaskTrace");function N(f,a,s){const l=S();if(f===s)throw new TypeError(ee);if(f[y]===g){let v=null;try{("object"==typeof s||"function"==typeof s)&&(v=s&&s.then)}catch(w){return l(()=>{N(f,!1,w)})(),f}if(a!==O&&s instanceof A&&s.hasOwnProperty(y)&&s.hasOwnProperty(h)&&s[y]!==g)n(s),N(f,s[y],s[h]);else if(a!==O&&"function"==typeof v)try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(w){l(()=>{N(f,!1,w)})()}else{f[y]=a;const w=f[h];if(f[h]=s,f[H]===H&&a===U&&(f[y]=f[Y],f[h]=f[V]),a===O&&s instanceof Error){const k=c.currentTask&&c.currentTask.data&&c.currentTask.data.__creationTrace__;k&&u(s,W,{configurable:!0,enumerable:!1,writable:!0,value:k})}for(let k=0;k<w.length;)o(f,w[k++],w[k++],w[k++],w[k++]);if(0==w.length&&a==O){f[y]=0;let k=s;try{throw new Error("Uncaught (in promise): "+function E(f){return f&&f.toString===Object.prototype.toString?(f.constructor&&f.constructor.name||"")+": "+JSON.stringify(f):f?f.toString():Object.prototype.toString.call(f)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(Z){k=Z}D&&(k.throwOriginal=!0),k.rejection=s,k.promise=f,k.zone=c.current,k.task=c.currentTask,p.push(k),t.scheduleMicroTask()}}}return f}const d=T("rejectionHandledHandler");function n(f){if(0===f[y]){try{const a=c[d];a&&"function"==typeof a&&a.call(this,{rejection:f[h],promise:f})}catch{}f[y]=O;for(let a=0;a<p.length;a++)f===p[a].promise&&p.splice(a,1)}}function o(f,a,s,l,v){n(f);const w=f[y],k=w?"function"==typeof l?l:J:"function"==typeof v?v:X;a.scheduleMicroTask("Promise.then",()=>{try{const Z=f[h],L=!!s&&H===s[H];L&&(s[V]=Z,s[Y]=w);const I=a.run(k,void 0,L&&k!==X&&k!==J?[]:[Z]);N(s,!0,I)}catch(Z){N(s,!1,Z)}},s)}const P=function(){},q=r.AggregateError;class A{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(a){return a instanceof A?a:N(new this(null),U,a)}static reject(a){return N(new this(null),O,a)}static withResolvers(){const a={};return a.promise=new A((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||"function"!=typeof a[Symbol.iterator])return Promise.reject(new q([],"All promises were rejected"));const s=[];let l=0;try{for(let k of a)l++,s.push(A.resolve(k))}catch{return Promise.reject(new q([],"All promises were rejected"))}if(0===l)return Promise.reject(new q([],"All promises were rejected"));let v=!1;const w=[];return new A((k,Z)=>{for(let L=0;L<s.length;L++)s[L].then(I=>{v||(v=!0,k(I))},I=>{w.push(I),l--,0===l&&(v=!0,Z(new q(w,"All promises were rejected")))})})}static race(a){let s,l,v=new this((Z,L)=>{s=Z,l=L});function w(Z){s(Z)}function k(Z){l(Z)}for(let Z of a)K(Z)||(Z=this.resolve(Z)),Z.then(w,k);return v}static all(a){return A.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof A?this:A).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,s){let l,v,w=new this((I,G)=>{l=I,v=G}),k=2,Z=0;const L=[];for(let I of a){K(I)||(I=this.resolve(I));const G=Z;try{I.then(B=>{L[G]=s?s.thenCallback(B):B,k--,0===k&&l(L)},B=>{s?(L[G]=s.errorCallback(B),k--,0===k&&l(L)):v(B)})}catch(B){v(B)}k++,Z++}return k-=2,0===k&&l(L),w}constructor(a){const s=this;if(!(s instanceof A))throw new Error("Must be an instanceof Promise.");s[y]=g,s[h]=[];try{const l=S();a&&a(l(b(s,U)),l(b(s,O)))}catch(l){N(s,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return A}then(a,s){let l=this.constructor?.[Symbol.species];(!l||"function"!=typeof l)&&(l=this.constructor||A);const v=new l(P),w=c.current;return this[y]==g?this[h].push(w,v,a,s):o(this,w,v,a,s),v}catch(a){return this.then(null,a)}finally(a){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=A);const l=new s(P);l[H]=H;const v=c.current;return this[y]==g?this[h].push(v,l,a,a):o(this,v,l,a,a),l}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;const de=r[_]=r.Promise;r.Promise=A;const he=T("thenPatched");function _e(f){const a=f.prototype,s=i(a,"then");if(s&&(!1===s.writable||!s.configurable))return;const l=a.then;a[C]=l,f.prototype.then=function(v,w){return new A((Z,L)=>{l.call(this,Z,L)}).then(v,w)},f[he]=!0}return t.patchThen=_e,de&&(_e(de),ue(r,"fetch",f=>function oe(f){return function(a,s){let l=f.apply(a,s);if(l instanceof A)return l;let v=l.constructor;return v[he]||_e(v),l}}(f))),Promise[c.__symbol__("uncaughtPromiseErrors")]=p,A})})(e),function Ot(e){e.__load_patch("toString",r=>{const c=Function.prototype.toString,t=j("OriginalDelegate"),i=j("Promise"),u=j("Error"),E=function(){if("function"==typeof this){const _=this[t];if(_)return"function"==typeof _?c.call(_):Object.prototype.toString.call(_);if(this===Promise){const C=r[i];if(C)return c.call(C)}if(this===Error){const C=r[u];if(C)return c.call(C)}}return c.call(this)};E[t]=c,Function.prototype.toString=E;const T=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":T.call(this)}})}(e),function Zt(e){e.__load_patch("util",(r,c,t)=>{const i=Ge(r);t.patchOnProperties=$e,t.patchMethod=ue,t.bindArguments=xe,t.patchMacroTask=kt;const u=c.__symbol__("BLACK_LISTED_EVENTS"),E=c.__symbol__("UNPATCHED_EVENTS");r[E]&&(r[u]=r[E]),r[u]&&(c[u]=c[E]=r[u]),t.patchEventPrototype=vt,t.patchEventTarget=yt,t.isIEOrEdge=pt,t.ObjectDefineProperty=Ne,t.ObjectGetOwnPropertyDescriptor=Ee,t.ObjectCreate=_t,t.ArraySlice=dt,t.patchClass=Pe,t.wrapWithCurrentZone=je,t.filterProperties=st,t.attachOriginToPatched=fe,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Nt,t.getGlobalObjects=()=>({globalSources:et,zoneSymbolEventNames:ne,eventNames:i,isBrowser:Ve,isMix:qe,isNode:we,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:ve,ADD_EVENT_LISTENER_STR:Le,REMOVE_EVENT_LISTENER_STR:Ie})})}(e)})(ct),function Dt(e){e.__load_patch("legacy",r=>{const c=r[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",r=>{const t="clear";ge(r,"set",t,"Timeout"),ge(r,"set",t,"Interval"),ge(r,"set",t,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{ge(r,"request","cancel","AnimationFrame"),ge(r,"mozRequest","mozCancel","AnimationFrame"),ge(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,c)=>{const t=["alert","prompt","confirm"];for(let i=0;i<t.length;i++)ue(r,t[i],(E,T,p)=>function(D,_){return c.current.run(E,r,_,p)})}),e.__load_patch("EventTarget",(r,c,t)=>{(function Rt(e,r){r.patchEventPrototype(e,r)})(r,t),function Ct(e,r){if(Zone[r.symbol("patchEventTarget")])return;const{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let p=0;p<c.length;p++){const D=c[p],M=E+(D+u),x=E+(D+i);t[D]={},t[D][u]=M,t[D][i]=x}const T=e.EventTarget;T&&T.prototype&&r.patchEventTarget(e,r,[T&&T.prototype])}(r,t);const i=r.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(r,t,[i.prototype])}),e.__load_patch("MutationObserver",(r,c,t)=>{Pe("MutationObserver"),Pe("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,c,t)=>{Pe("IntersectionObserver")}),e.__load_patch("FileReader",(r,c,t)=>{Pe("FileReader")}),e.__load_patch("on_property",(r,c,t)=>{!function wt(e,r){if(we&&!qe||Zone[e.symbol("patchEvents")])return;const c=r.__Zone_ignore_on_properties;let t=[];if(Ve){const i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const u=[];it(i,Ge(i),c&&c.concat(u),Ze(i))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i<t.length;i++){const u=r[t[i]];u?.prototype&&it(u.prototype,Ge(u.prototype),c)}}(t,r)}),e.__load_patch("customElements",(r,c,t)=>{!function Pt(e,r){const{isBrowser:c,isMix:t}=r.getGlobalObjects();(c||t)&&e.customElements&&"customElements"in e&&r.patchCallbacks(r,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(r,t)}),e.__load_patch("XHR",(r,c)=>{!function D(_){const C=_.XMLHttpRequest;if(!C)return;const M=C.prototype;let z=M[Me],K=M[Ae];if(!z){const R=_.XMLHttpRequestEventTarget;if(R){const b=R.prototype;z=b[Me],K=b[Ae]}}const J="readystatechange",X="scheduled";function y(R){const b=R.data,S=b.target;S[E]=!1,S[p]=!1;const ee=S[u];z||(z=S[Me],K=S[Ae]),ee&&K.call(S,J,ee);const W=S[u]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[E]&&R.state===X){const d=S[c.__symbol__("loadfalse")];if(0!==S.status&&d&&d.length>0){const n=R.invoke;R.invoke=function(){const o=S[c.__symbol__("loadfalse")];for(let m=0;m<o.length;m++)o[m]===R&&o.splice(m,1);!b.aborted&&R.state===X&&n.call(R)},d.push(R)}else R.invoke()}else!b.aborted&&!1===S[E]&&(S[p]=!0)};return z.call(S,J,W),S[t]||(S[t]=R),U.apply(S,b.args),S[E]=!0,R}function h(){}function H(R){const b=R.data;return b.aborted=!0,O.apply(b.target,b.args)}const V=ue(M,"open",()=>function(R,b){return R[i]=0==b[2],R[T]=b[1],V.apply(R,b)}),F=j("fetchTaskAborting"),g=j("fetchTaskScheduling"),U=ue(M,"send",()=>function(R,b){if(!0===c.current[g]||R[i])return U.apply(R,b);{const S={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},ee=He("XMLHttpRequest.send",h,S,y,H);R&&!0===R[p]&&!S.aborted&&ee.state===X&&ee.invoke()}}),O=ue(M,"abort",()=>function(R,b){const S=function x(R){return R[t]}(R);if(S&&"string"==typeof S.type){if(null==S.cancelFn||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(!0===c.current[F])return O.apply(R,b)})}(r);const t=j("xhrTask"),i=j("xhrSync"),u=j("xhrListener"),E=j("xhrScheduled"),T=j("xhrURL"),p=j("xhrErrorBeforeScheduled")}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&function Et(e,r){const c=e.constructor.name;for(let t=0;t<r.length;t++){const i=r[t],u=e[i];if(u){if(!Ue(Ee(e,i)))continue;e[i]=(T=>{const p=function(){return T.apply(this,xe(arguments,c+"."+i))};return fe(p,T),p})(u)}}}(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,c)=>{function t(i){return function(u){ot(r,i).forEach(T=>{const p=r.PromiseRejectionEvent;if(p){const D=new p(i,{promise:u.promise,reason:u.rejection});T.invoke(D)}})}}r.PromiseRejectionEvent&&(c[j("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[j("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,c,t)=>{!function bt(e,r){r.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}(r,t)})}(ct)}},te=>{te(te.s=1669)}]);
const app=angular.module("app",["angular.css.injector","ui.router","angulartics","angulartics.piwik","angulartics.google.analytics","ngSanitize","ui.bootstrap","angular-loading-bar","vjs.video","angularLazyImg","ct.ui.router.extras","angular.bind.notifier","ngFileUpload","mm.iban","ngTagsInput","angular-inview"]);function getDocHeight(e){var t=(e=e||document).body,a=e.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,a.clientHeight,a.scrollHeight,a.offsetHeight)}function MetaArticleDirective(e){return{restrict:"E",link:function(a,r,c){var f=new MetaArticleInfo(a.$eval(c.metaElement));e.generalPush(f),r.remove()}}}function MetaEventDirective(e){return{restrict:"E",link:function(a,r,c){var f=new MetaEventInfo(a.$eval(c.metaElement));e.generalPush(f),r.remove()}}}function MetaSnipDirective(e){return{restrict:"E",link:function(a,r,c){var f=new MetaSnipInfo(a.$eval(c.metaElement));e.generalPush(f),r.remove()}}}function MetaSponsoredArticleDirective(e){return{restrict:"E",link:function(a,r,c){var f=new MetaSponsoredArticleInfo(a.$eval(c.metaElement));e.generalPush(f),r.remove()}}}function MetaStaticArticleDirective(e){return{restrict:"E",link:function(a,r,c){var f=new MetaStaticArticleInfo(a.$eval(c.metaElement));e.generalPush(f),r.remove()}}}function MetaInformationBase(e){this.title=e.title,this.description=e.description||e.title,this.author=e.author,this.date=e.date,this.imageUrl=e.imageUrl||scope.globalSettings.serverCdnUrl+"/Content/images/logo-big.png",this.twitterSite=e.twitterSite,this.facebookSite=e.facebookSite,this.path=e.path,this.type=e.type||"website",this.removeAttributes=e.removeAttributes,this.canonicalLink=e.canonicalLink}function MetaArticleInfo(e){MetaInformationBase.call(this,{title:e.text,description:e.summary,author:e.user,date:e.published,imageUrl:e.coverAssetReference?`${e.coverAssetReference.assetImage.assetImageUrl}?preset=cover&cache=${e.coverAssetReference.assetImage.cache}`:"",path:e.path,type:"article",canonicalLink:e.canonicalLink})}function MetaSnipInfo(e){MetaInformationBase.call(this,{title:e.text,description:e.text,author:e.user,date:e.published,path:e.path,removeAttributes:["author","article:publisher","article:published_time","article:section"]})}function MetaSponsoredArticleInfo(e){MetaInformationBase.call(this,{title:e.text,description:e.summary,author:e.user,date:e.published,type:"article",imageUrl:e.coverAssetReference.assetImage.assetImageUrl+"?preset=cover&cache="+e.coverAssetReference.assetImage.cache,path:e.path,canonicalLink:e.canonicalLink})}function MetaStaticArticleInfo(e){MetaInformationBase.call(this,{title:e.title,description:e.summary,date:e.published,type:"article",imageUrl:e.coverAssetReference.assetImage.assetImageUrl+"?preset=cover&cache="+e.coverAssetReference.assetImage.cache,path:e.path})}function MetaEventInfo(e){e&&MetaInformationBase.call(this,{title:e.summary??"Event",date:e.start,imageUrl:e.coverImage?e.coverImage.assetImageUrl+"?preset=cover&cache=0":"",path:e.coverImage?"/"+scope.currentScope.chapter.regEx+e.coverImage.sourceArticlePath:"",type:"event",removeAttributes:["author","description"]})}function MessageHolder(e){this.id=e.id}app.run([function(){var e=navigator.userAgent||navigator.vendor||window.opera;e&&-1===e.indexOf("FBAN")&&-1===e.indexOf("FBAV")&&viewportUnitsBuggyfill.init()}]),app.run(["$http","$rootScope","$window","localStorageService","$urlMatcherFactory","ngxPopupService",function(e,t,a,r,c,g){e.defaults.withCredentials=!0;const f=t.$dismiss;t.$dismiss=function(i){g.closeLast(),f&&f.call(t,i)},c.caseInsensitive(!0);var n=a.scope;t.scope=a.scope,t.showSnipSlide=!0;try{if(t.showSnipSlide=-1!=t.scope.currentScope.chapter.settings.configurations.showSnipsForUserRoleId,t.showSnipSlide){var d=t.scope.currentScope.chapter.settings.configurations.showSnipsForUserRoleId;"number"==typeof d&&d>0&&(t.showSnipSlide=!!t.scope.profile.chapterRoles&&t.scope.profile.chapterRoles.includes(d))}}catch{}var l={chapterSlug:n.currentScope.chapter?n.currentScope.chapter.slug:null,networkSlug:n.currentScope.network.slug,threshold:n.globalSettings.oculusImpressionThreshold,trackArticleWordReading:n.globalSettings.oculusTrackArticleWordReading,idleTimeout:n.globalSettings.oculusIdleTimeout,impressionThreshold:n.globalSettings.oculusImpressionThreshold,impressionViewportThreshold:n.globalSettings.oculusImpressionViewportThreshold,shipmentImpressionThreshold:n.globalSettings.oculusShipmentImpressionThreshold,shipmentImpressionViewportThreshold:n.globalSettings.oculusShipmentImpressionViewportThreshold,readingSpeed:n.globalSettings.oculusReadingSpeed,readingThreshold:n.globalSettings.oculusReadingThreshold,readingViewportThreshold:n.globalSettings.oculusReadingViewportThreshold,trackArticleScrolling:n.globalSettings.oculusTrackArticleScrolling,locationRequestEnable:n.currentScope.network.settings.oculusLocationRequestEnable,locationRequestSuccessThrottleDays:n.globalSettings.oculusLocationRequestSuccessThrottleDays,locationRequestFailedThrottleDays:n.globalSettings.oculusLocationRequestFailedThrottleDays};n.oculus=l,r.enableOculusFeedback&&(l.feedback=!0),a.Oculus=new Oculus(l)}]),app.run(["$state","$rootScope","$previousState","$window","localStorageService","profileService","$analytics","$uibModal","$timeout","notificationService","$interval","$location","scopeService","clickService","hybridRouteTrackingService",function(e,t,a,r,c,g,f,n,d,l,i,s,o,b,p){t.$state=e,t.app=navigator.userAgent&&-1!==navigator.userAgent.indexOf("Merkurist_IAB"),t.app&&(t.appVersion=navigator.userAgent.replace(/.*\[Merkurist_IAB\/(.*)\]/gi,function(U,F){return F}),t.appPlatform=-1!==navigator.userAgent.indexOf("Android")?"Android":"iOS"),t.navigateUp=function(){d(function(){null==window.history.state&&e.go("app.main-news"),e.params.back&&!e.params.back.abstract||document.referrer.includes(window.location.hostname)?window.history.length<=1?e.go("app.main-news"):window.history.back():e.go("app.main-news")})},t.openChapterSwitch=function(){var U=n.open({templateUrl:"/ClientApp/src/legacy-app/index/chapterSwitchDialog.html",controller:"ChapterSwitchDialog",size:"lg",resolve:{}});f.eventTrack("ShowChapterSwitchDialog",{category:"Navigation",label:scope.currentChapter.slug}),U.result.then(function(F){t.switchChapter(F)})},t.switchChapter=function(U){var F=null;scope.chapters.some(function(w){return w.slug===U&&(F=w,!0)}),F&&g.updateFavoriteChapter(F.slug).then(function(){var w=F.path;if(scope.currentScope.networkPath.length>1&&(w=scope.currentScope.networkPath+F.path),typeof cordova<"u"&&"android"===cordova.platformId){var S=history.length-1;history.go(-S),history.replaceState(null,null,w),window.location.href=w}else window.location.href=w})},t.notification=l;var h=function(U){g.getProfile().then(function(F){F.isRegistered?l.update(U):l.updateUnseenCount()})};if(t.updateNotificationsTimed=function(U){var F=3e5;void 0===window.updateNotificationsTimerHandle?(window.updateNotificationsTimerHandle=d(function(){t.updateNotificationsTimed()},F),window.updateNotificationsTimerCreated=new Date,t.notification.getNotifications()):(Math.round((new Date-window.updateNotificationsTimerCreated)/1e3)>=30||U)&&(d.cancel(window.updateNotificationsTimerHandle),window.updateNotificationsTimerHandle=d(function(){t.updateNotificationsTimed()},F),window.updateNotificationsTimerCreated=new Date,t.notification.getNotifications())},t.$on("$stateChangeSuccess",function(U,F){p.getCurrentRouteState(),p.trackAngularJsStateChange(F.name),g.getProfile().then(function(S){S.isRegistered&&t.updateNotificationsTimed()})}),t.$on("authenticationStateChanged",function(){t.updateNotificationsTimed(!0),h(!0)}),g.getProfile().then(function(U){U.isRegistered&&t.updateNotificationsTimed()}),t.app||(document.hasFocus(),$(window).on("focus",function(){h()}).on("blur",function(){}),i(function(){h()},2e4)),t.app){var y=function(){FCMPlugin.getToken(function(U){U?l.updateToken({token:U}):d(function(){FCMPlugin.getToken(function(F){F&&l.updateToken({token:F})},function(){})},1e4)},function(){d(function(){FCMPlugin.getToken(function(U){U&&l.updateToken({token:U})},function(){})},1e4)})};t.$on("authenticationStateChanged",function(){y()});var C="app.main-news",x="",k=0,R="",u={initialize:function(){this.bindEvents()},bindEvents:function(){document.addEventListener("deviceready",this.onDeviceReady,!1),document.addEventListener("offline",this.onOffline,!1)},didLaunchAppFromLink:function(U){-1==U.url.indexOf("/document/")&&-1==U.url.indexOf("/pdf/")&&-1==U.url.indexOf("/file/")&&(window.location.href=U.url)},onOffline:function(){C=e.current.name,R=window.location.href,k=setTimeout(function(){k=0,x="offline",e.go("app.offline")},5e3)},onOnline:function(){k>0?(clearTimeout(k),R="",k=0):"offline"===x&&("app.main-news"!==C&&(window.location.href=R),e.go(C),R=x=""),t.updateNotificationsTimed()},onBackKeyDown:function(){console.log("backKey",history.length,history),null==window.history.state&&e.go("app.main-news"),history.back()},statusBarDarkMode:function(){var U=window.matchMedia("(prefers-color-scheme:dark)");"android"==cordova.platformId?U.matches?(StatusBar.styleLightContent(),backcolor=getComputedStyle(document.body).getPropertyValue("--color1Dark"),StatusBar.backgroundColorByHexString(backcolor)):(StatusBar.styleDefault(),backcolor=getComputedStyle(document.body).getPropertyValue("--color1"),StatusBar.backgroundColorByHexString(backcolor)):U.matches?(StatusBar.styleLightContent(),StatusBar.backgroundColorByHexString("#000")):(StatusBar.styleDefault(),StatusBar.backgroundColorByHexString("#fff"))},checkNotificationPermission:function(U){FirebasePlugin=window.FCMPlugin,FirebasePlugin.hasPermission(function(F){F?(console.log("Remote notifications permission granted"),y()):U?console.log("Notifications won't be shown as permission is denied"):(console.log("Requesting remote notifications permission"),FirebasePlugin.grantPermission(y()))})},onDeviceReady:function(){document.addEventListener("online",u.onOnline,!1),document.addEventListener("backbutton",u.onBackKeyDown,!1),navigator&&navigator.splashscreen&&navigator.splashscreen.hide(),universalLinks.subscribe("launchedAppFromLink",u.didLaunchAppFromLink),g.getProfile().then(function(){h()});var U=new Date,F=new Date;document.addEventListener("resume",function(){setTimeout(function(){currentDate=new Date,Math.round((currentDate-U)/864e5)>1&&(window.location.href="/"),Math.round((currentDate-F)/6e4)>30&&(t.$emit("invalidateLists"),F=new Date),t.updateNotificationsTimed()},0)},!1),window.matchMedia&&(u.statusBarDarkMode(),window.matchMedia("(prefers-color-scheme: dark)").addListener(function(v){u.statusBarDarkMode()})),"Android"===t.appPlatform&&t.appVersion>6?u.checkNotificationPermission():y(),FCMPlugin.onNotification(function(v){console.log("FcmOnNotification",v),v.wasTapped?v.untrackedUri?t.$state.go("app.untrackedNotification",{untrackedUri:v.untrackedUri}):t.$state.go("clickNotification",{id:v.notificationId}):t.updateNotificationsTimed(!0).then(A=>{h(!0)})},function(){h()});var w=0,S=!1;document.body.ontouchstart=function(v){window.visualViewport.pageTop>10||document.body.classList.contains("popup-open")?S=!1:(S=!0,w=v.targetTouches[0].pageY)},document.body.ontouchend=function(v){document.body.classList.contains("popup-open")||!S||window.visualViewport.pageTop>10||navigator.onLine&&v.changedTouches[0].pageY-w>150&&setTimeout(function(){location.href.includes("/chat")||location.href.includes("/edit")||location.reload()},500)}}};u.initialize()}else g.getProfile().then(function(){d(function(){h()},2e3)})}]),app.config(["lazyImgConfigProvider",function(e){e.setOptions({offset:1334})}]),app.config(["$urlRouterProvider","$stateProvider","$locationProvider","$compileProvider","$qProvider",function(e,t,a,r,c){a.html5Mode({enabled:!0,requireBase:!1}),r.debugInfoEnabled(!1),c.errorOnUnhandledRejections(!1),r.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob|whatsapp):/);var g=["$stateParams","sponsoredArticleService","parserService","$location",function(s,o,b,p){var h=s.id;return h||p.path("/").replace(),o.getSponsoredArticle(h,s.v).then(function(y){return b.postProcessHtml(y),y},function(){console.log("Error on the SponsoredDetail")})}],f=["$stateParams","articleService","profileService","parserService","$location",function(s,o,b,p,h){var I=s.id;I||h.path("/").replace();var y=s.v;return b.getProfile().then(function(){return o.getArticleDetails(I,y).then(function(C){return C.detailsLoaded=!0,p.postProcessHtml(C),C},function(){return o.getArticleDetails(I,y).then(function(C){return p.postProcessHtml(C),C},function(){h.path("/").replace()})})})}],l={chapterReport:["$stateParams","articleService","$location",function(s,o,b){return o.getElasticReport(s.id).then(function(p){return p},function(){b.path("/")})}],article:["$stateParams","articleService","parserService",function(s,o,b){return o.getArticleDetails(s.id)}]};t.state("app.imprint",{url:"imprint",templateUrl:"/ClientApp/src/legacy-app/content/imprint.html"}).state("app.privacyPolicy",{url:"pp",controller:"DataPrivacyPolicyController",templateUrl:"/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy.html"}).state("app.privacyPolicy-merkurist-gmbh",{url:"pp-merkurist-gmbh",controller:"DataPrivacyPolicyController",templateUrl:"/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-merkurist-gmbh.html"}).state("app.accessibility",{url:"accessibility",controller:"AccessibilityController",templateUrl:"/ClientApp/src/legacy-app/termsOfUse/accessibility.html"}).state("app.tos",{url:"tos",controller:"TermsOfUseController",templateUrl:"/ClientApp/src/legacy-app/termsOfUse/termsOfUse.html"}).state("app.optOut",{url:"optout",controller:"OptOutController",templateUrl:"/ClientApp/src/legacy-app/optOut/optOut.html"}),scope.currentChapter.name?(t.state("app",{url:"/",sticky:!0,abstract:!0,controller:"RootController",templateUrl:"/ClientApp/src/legacy-app/root/root.html"}).state("app.main-news",{url:"",translatable:!0,controller:"rootNewsCompomentController",templateUrl:"/ClientApp/src/legacy-app/root/news/rootNewsComponent.html"}).state("app.main-snips",{url:"snips",controller:"rootSnipsComponentController",templateUrl:"/ClientApp/src/legacy-app/root/snips/rootSnipsComponent.html",translatable:!0}).state("app.main-login",{url:"login?closedToken",controller:"rootLoginComponentController",templateUrl:"/ClientApp/src/legacy-app/root/login/rootLoginComponent.html"}).state("app.main-notifications",{url:"notifications",controller:"rootNotificationsComponentController",templateUrl:"/ClientApp/src/legacy-app/root/notifications/rootNotificationsComponent.html"}).state("app.main-menu",{url:"menu",controller:"rootMenuComponentController",templateUrl:"/ClientApp/src/legacy-app/root/menu/rootMenuComponent.html"}).state("app.articleStatistic",{url:"{slug}_{id}/legacy-report",controller:"ArticleReportController",templateUrl:"/ClientApp/src/legacy-app/article/articleReport.html",resolve:{chapterReport:["$stateParams","articleService","$location",function(s,o,b){return o.getReport(s.id).then(function(p){return p},function(){b.path("/")})}],article:["$stateParams","articleService","parserService",function(s,o,b){return o.getArticleFromCache(s.id).then(function(p){return o.getArticleDetails(s.id).then(function(){}),p},function(){return o.getArticleDetails(s.id).then(function(p){return p})})}]}}).state("app.articleElasticStatistic",{url:"{slug}_{id}/{v}/report",controller:"ArticleElasticReportController",templateUrl:"/ClientApp/src/legacy-app/article/articleElasticReport.html",resolve:l}).state("app.articleElasticStatisticAlt",{url:"{slug}_{id}/report",controller:"ArticleElasticReportController",templateUrl:"/ClientApp/src/legacy-app/article/articleElasticReport.html",resolve:l}).state("app.snipStatistic",{url:"snips/{slug}_{id}/legacy-report",controller:"SnipReportController",templateUrl:"/ClientApp/src/legacy-app/snip/snipReport.html",resolve:{chapterReport:["$stateParams","snipService","parserService",function(s,o){return o.getReport(s.id)}],snip:["$stateParams","snipService","parserService",function(s,o,b){return o.getSnipDetails(s.id).then(function(p){return p})}]}}).state("app.snipElasticStatistic",{url:"snips/{slug}_{id}/report",controller:"SnipElasticReportController",templateUrl:"/ClientApp/src/legacy-app/snip/snipElasticReport.html"}).state("app.snipDetail",{url:"snips/{slug}_{id}",controller:"SnipDetailController",templateUrl:"/ClientApp/src/legacy-app/snip/snipDetail.html",resolve:{snip:["$stateParams","snipService","profileService","parserService","$location",function(s,o,b,p,h){var I=s.id;return I||h.path("/").replace(),b.getProfile().then(function(){return o.getSnipDetailsFromCache(I).then(function(y){return o.getSnipDetails(I).then(function(){}),y},function(){return o.getSnipDetails(I).then(function(y){return y},function(){h.path("/").replace()})})})}]},translatable:!0}).state("app.articleEditAlt",{disableNavigation:!0,url:"{slug}_{id}/{v}/edit",controller:"ArticleEditController",templateUrl:"/ClientApp/src/legacy-app/article/articleEdit.html"}).state("app.articleEdit",{disableNavigation:!0,url:"{slug}_{id}/edit",controller:"ArticleEditController",templateUrl:"/ClientApp/src/legacy-app/article/articleEdit.html"}).state("app.articleDetail",{url:"{slug}_{id}/{v}",controller:"ArticleDetailController",templateUrl:"/ClientApp/src/legacy-app/article/articleDetail.html",resolve:{article:f},translatable:!0}).state("app.articleDetailAlt",{url:"{slug}_{id}",controller:"ArticleDetailController",templateUrl:"/ClientApp/src/legacy-app/article/articleDetail.html",resolve:{article:f},translatable:!0}).state("app.sponsoredArticleEditAlt",{disableNavigation:!0,url:"sparticles/{slug}_{id}/{v}/edit",controller:"SponsoredArticleEditController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticle/sponsoredArticleEdit.html"}).state("app.sponsoredArticleEdit",{disableNavigation:!0,url:"sparticles/{slug}_{id}/edit",controller:"SponsoredArticleEditController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticle/sponsoredArticleEdit.html"}).state("app.sponsoredArticleDetail",{url:"sparticles/{slug}_{id}",controller:"SponsoredArticleDetailController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticle/sponsoredArticleDetail.html",resolve:{sponsoredArticle:g}}).state("app.sponsoredArticleDetailAlt",{url:"sparticles/{slug}_{id}/{v}",controller:"SponsoredArticleDetailController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticle/sponsoredArticleDetail.html",resolve:{sponsoredArticle:g}}).state("app.adminsettings",{url:"adminsettings",controller:"AdminSettingsController",templateUrl:"/ClientApp/src/legacy-app/admin/adminSettings.html"}).state("app.notificationsettings",{url:"notifications/settings/{privateUserGuid}?optOutAll",controller:"NotificationSettingsController",templateUrl:"/ClientApp/src/legacy-app/notification/notificationsettings.html"}).state("app.my-profile",{url:"profile",controller:"ProfileController",templateUrl:"/ClientApp/src/legacy-app/user/profile.html"}).state("app.public-profile",{url:"profile/{id}",controller:"PublicProfileController",templateUrl:"/ClientApp/src/legacy-app/user/publicProfile.html"}).state("app.loginSaml2",{url:"login/saml2",controller:"LoginSaml2Controller",templateUrl:"/ClientApp/src/legacy-app/authentication/loginSaml2.html"}).state("app.register",{url:"register?closedToken",controller:"RegisterController",templateUrl:"/ClientApp/src/legacy-app/authentication/register.html",resolve:{registerForNewsletter:function(){return!1}}}).state("app.registerNewsletter",{url:"newsletter-subscribe",controller:"RegisterController",templateUrl:"/ClientApp/src/legacy-app/authentication/register.html",resolve:{registerForNewsletter:function(){return!0}}}).state("app.registrationcomplete",{url:"account/registration-complete",templateUrl:"/ClientApp/src/legacy-app/content/registrationcomplete.html"}).state("app.requestPassword",{url:"account/request-password",controller:"RequestPasswordController",templateUrl:"/ClientApp/src/legacy-app/authentication/requestPassword.html"}).state("app.passwordResetComplete",{url:"account/password-resetted",templateUrl:"/ClientApp/src/legacy-app/content/passwordresetcomplete.html"}).state("app.requestPasswordComplete",{url:"account/password-requested",templateUrl:"/ClientApp/src/legacy-app/content/requestpasswordcomplete.html"}).state("app.unsubscribeNewsletter",{url:"account/newsletter-unsubscribe/{id}",controller:"UnsubscribeController",templateUrl:"/ClientApp/src/legacy-app/user/unsubscribe.html"}).state("app.accountsettings",{url:"settings",controller:"AuthenticationSettingsController",templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationSettings.html"}).state("app.special",{url:"specials/{id}",controller:"SpecialDetailController",templateUrl:"/ClientApp/src/legacy-app/special/specialDetail.html",resolve:{special:["$stateParams","specialService",function(s,o){return o.getSpecial(s.id)}]}}).state("app.specialStatistics",{url:"campaigns/specials/{id}/legacy-report",controller:"SpecialReportController",templateUrl:"/ClientApp/src/legacy-app/special/specialReport.html"}).state("app.surveyDetails",{url:"surveys/{id}?preview",controller:"SurveyDetailController",templateUrl:"/ClientApp/src/legacy-app/survey/surveyDetail.html"}).state("app.workflow",{url:"workflow/{id}?preview",controller:"workflowController",templateUrl:"/ClientApp/src/legacy-app/workflow/workflowTemplate.html"}).state("app.videoplay",{url:scope.currentScope.prefixAppRoutes+"apicodo-video/{id}",controller:"apicodoMediaPlayPageController",templateUrl:"/ClientApp/src/legacy-app/media/apicodoMediaPlayPage.html"}).state("app.specialElasticStatistic",{url:"campaigns/specials/{id}/report",controller:"SpecialElasticReportController",templateUrl:"/ClientApp/src/legacy-app/special/specialElasticReport.html"}).state("app.search",{url:"search?q&chapterIds",controller:"SearchController",templateUrl:"/ClientApp/src/legacy-app/search/search.html",reloadOnSearch:!1}).state("app.campaignStatistic",{url:"campaigns/{pin}/report",controller:"CampaignReportController",templateUrl:"/ClientApp/src/legacy-app/campaign/campaignReport.html"}).state("app.campaignDetail",{url:"campaigns/{pin}",controller:"AdvertisementController",templateUrl:"/ClientApp/src/legacy-app/campaign/shipments.html"}).state("app.authorDashboard",{url:"dashboard",controller:"DashboardController",templateUrl:"/ClientApp/src/legacy-app/author/dashboard.html"}).state("app.snipApply",{url:"snips/{slug}_{id}/apply",controller:"SnipApplyController",templateUrl:"/ClientApp/src/legacy-app/snip/snipApply.html"}).state("app.marketResearchStatistic",{url:"campaigns/marketresearch/{id}/legacy-report",controller:"MarketResearchReportController",templateUrl:"/ClientApp/src/legacy-app/marketResearch/MarketResearchReport.html"}).state("app.marketResearchElasticStatistic",{url:"campaigns/marketresearch/{id}/report",controller:"MarketResearchElasticReportController",templateUrl:"/ClientApp/src/legacy-app/marketResearch/marketResearchElasticReport.html"}).state("app.brochureStatistic",{url:"campaigns/brochures/{id}/legacy-report",controller:"BrochureReportController",templateUrl:"/ClientApp/src/legacy-app/brochure/BrochureReport.html"}).state("app.brochureElasticStatistic",{url:"campaigns/brochures/{id}/report",controller:"BrochureElasticReportController",templateUrl:"/ClientApp/src/legacy-app/brochure/brochureElasticReport.html"}).state("app.bannerCampaignStatistic",{url:"campaigns/banners/{pin}/legacy-report",controller:"bannerCampaignReportController",templateUrl:"/ClientApp/src/legacy-app/bannerCampaign/bannerCampaignReport.html"}).state("app.bannerCampaignElasticStatistic",{url:"campaigns/banners/{pin}/report",controller:"BannerCampaignElasticReportController",templateUrl:"/ClientApp/src/legacy-app/bannerCampaign/bannerCampaignElasticReport.html"}).state("app.sponsoredArticleCampaignStatistic",{url:"campaigns/sparticles/{pin}/legacy-report",controller:"sponsoredArticleCampaignReportController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticleCampaign/sponsoredArticleCampaignReport.html"}).state("app.sponsoredArticleCampaignElasticStatistic",{url:"campaigns/sparticles/{pin}/report",controller:"SponsoredArticleCampaignElasticReportController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticleCampaign/sponsoredArticleCampaignElasticReport.html"}).state("app.premiumStatistic",{url:"campaigns/premiums/{pin}/legacy-report",controller:"premiumReportController",templateUrl:"/ClientApp/src/legacy-app/premium/premiumReport.html"}).state("app.premiumElasticStatistic",{url:"campaigns/premiums/{pin}/report",controller:"PremiumElasticReportController",templateUrl:"/ClientApp/src/legacy-app/premium/premiumElasticReport.html"}).state("app.superStatistic",{url:"campaigns/super/{pin}/legacy-report",controller:"superCampaignReportController",templateUrl:"/ClientApp/src/legacy-app/superCampaign/superCampaignReport.html"}).state("app.superElasticStatistic",{url:"campaigns/super/{pin}/report",controller:"SuperCampaignElasticReportController",templateUrl:"/ClientApp/src/legacy-app/superCampaign/superCampaignElasticReport.html"}).state("app.staticArticleEditAdmin",{url:"staticarticles/{id}/edit",controller:"StaticArticleEditController",disableNavigation:!0,templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleEdit.html",resolve:{staticArticleId:["$stateParams",function(s){return s.id}]}}).state("app.companyNews",{url:"companyNews/{id}",controller:"StaticArticleDetailController",disableNavigation:!0,forceShowNavigationBranding:!0,templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleDetail.html",resolve:{staticArticle:["companyNewsService","parserService","$stateParams",function(s,o,b){return s.getCompanyNewsDetail(b.id).then(function(p){return o.postProcessHtml(p),p})}]}}).state("app.rubrics",{url:"rubrics?q",controller:"",templateUrl:"/ClientApp/src/redesign/rubrics/rubrics.html"}),scope.currentChapter.settings.featureFeedback&&t.state("app.feedback",{url:"feedback",controller:"FeedbackController",templateUrl:"/ClientApp/src/legacy-app/user/feedback.html"}),!1!==scope.currentScope.network.settings.configurations.enableCalendar&&t.state("app.eventCalendar",{url:"events",controller:"EventCalendarController",templateUrl:"/ClientApp/src/legacy-app/event/eventCalendar.html"}),!1!==scope.currentScope.network.settings.configurations.enableCalendar&&scope.currentScope.chapter.settings.configurations.enableEventCalendar&&t.state("app.eventCalendarDetail",{url:"events/{guid}",controller:"EventCalendarDetailController",templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarDetail.html",translatable:!0,resolve:{event:["eventCalendarService","$stateParams","$state",function(s,o,b){return s.getEvent(o.guid).then(function(p){return p},function(){b.go("app.main-news")})}]}}),!1!==scope.currentScope.network.settings.configurations.enableCalendar&&scope.currentScope.chapter.settings.configurations.enableEventCalendar&&t.state("app.eventCalendarEdit",{disableNavigation:!0,url:"events/{guid}/edit",controller:"EventCalendarEditController",templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarEdit.html",resolve:{event:["eventCalendarService","$stateParams","$state",function(s,o,b){return s.getEventForEdit(o.guid).then(function(p){return p},function(){b.go("app.main-news")})}]}}),scope.currentChapter.settings.featureSales&&t.state("app.sponsoredArticleList",{url:"sparticles",controller:"SponsoredArticleListController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticle/sponsoredArticleList.html"}).state("app.campaigns",{url:"campaigns",controller:"CampaignController",templateUrl:"/ClientApp/src/legacy-app/campaign/campaigns.html"}).state("app.advertiserBillingInfo",{url:"advertisers/billinginfo",controller:"AdvertiserBillingInfoController",templateUrl:"/ClientApp/src/legacy-app/advertiser/advertiserBillingInfo.html"}).state("app.consumeAdvertiserToken",{url:"advertisers/connect",controller:"AdvertiserConsumeController",templateUrl:"/ClientApp/src/legacy-app/advertiser/advertiserConsume.html"}).state("app.advertiserConsumtionComplete",{url:"advertisers/connected",templateUrl:"/ClientApp/src/legacy-app/advertiser/advertiserConsumationComplete.html"}),scope.currentChapter.settings.featureAuthorBilling&&t.state("app.authorBillingInfo",{url:"author/billinginfo",controller:"AuthorBillingInfoController",templateUrl:"/ClientApp/src/legacy-app/author/authorBillingInfo.html"}),scope.currentChapter.managingParent.closed&&t.state("app.closedChapter",{url:"closed?token=",controller:"ClosedChapterController",templateUrl:"/ClientApp/src/legacy-app/closedChapter/closedChapter.html"}).state("app.ikUpLanding",{url:"landing",controller:"IkUpLandingPageController",templateUrl:"/ClientApp/src/legacy-app/ikUpLandingPage/ikUpLandingPage.html"}),t.state("app.authors",{url:"authors",controller:"AuthorListController",templateUrl:"/ClientApp/src/legacy-app/author/authorList.html"}).state("app.imagelicensing",{url:"imagelicensing",templateUrl:"/ClientApp/src/legacy-app/content/imagelicensing.html"}),scope.currentScope.network.staticArticles.concat(scope.currentScope.chapter.staticArticles).forEach(function(s){s.path&&t.state("app.staticArticles_"+s.id,{url:s.path.substring(1),templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleDetail.html",controller:"StaticArticleDetailController",resolve:{staticArticle:["staticArticleService","parserService",function(o,b){return o.getStaticArticle(s.id).then(function(p){return b.postProcessHtml(p),p})}]}}).state("app.staticArticles_"+s.id+".edit",{disableNavigation:!0,url:"/edit",controller:"StaticArticleEditController",templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleEdit.html",resolve:{staticArticleId:function(){return s.id}}})}),(scope.currentScope.network.settings.appLinkAndroid||scope.currentScope.network.settings.appLinkITunes)&&t.state("app.appStore",{url:"app",controller:"AppStoreController",templateUrl:"/ClientApp/src/legacy-app/appStore/appStore.html"})):t.state("app",{url:"/",abstract:!0,template:"<div ui-view></div>"}),navigator.userAgent&&-1!==navigator.userAgent.indexOf("Merkurist_IAB")?(t.state("clickNotification",{url:"/click/notification/{id}"}).state("clickSpecial",{url:"/click/special/{guid}/{id}"}).state("clickPremiumBanner",{url:"/click/premiumBanner/{guid}/{pin}"}).state("clickSuperBanner",{url:"/click/superBanner/{guid}/{pin}"}).state("clickBanner",{url:"/click/banner/{guid}/{pin}"}).state("clickSurveyBanner",{url:"/click/surveyBanner/{guid}/{pin}"}).state("app.untrackedNotification",{url:"/untracked/{untrackedUri}"}).state("app.documentDownload",{url:"{route:pdf|document}/{id}"}).state("app.fileDownload",{url:"file/{id}"}).state("app.offline",{url:"appOffline",templateUrl:"/ClientApp/src/legacy-app/content/appOffline.html"}),scope.currentChapter.name||t.state("home",{url:"/",controller:"AppLandingController",templateUrl:"/ClientApp/src/legacy-app/landing/appLanding.html"})):scope.currentChapter.name||t.state("home",{url:"/",controller:"LandingController",templateUrl:"/ClientApp/src/legacy-app/landing/landing.html"}),e.otherwise("/")}]),app.run(["$rootScope","clickService","profileService","$location","$timeout","$state","scopeService","redirectService","$window",function(e,t,a,r,c,g,f,n,d){var l=["app.closedChapter","app.loginSaml2","app.register","app.registrationcomplete","app.requestPassword","app.passwordResetComplete","app.requestPasswordComplete","app.unsubscribeNewsletter","app.main-login","app.imprint","app.privacyPolicy","app.accessibility","app.tos","app.companyNews","app.ikUpLanding","app.documentDownload","app.untrackedNotification","app.offline","app.fileDownload","app.appStore","app.optOut"],i=n.redirectNotificationUrl;e.$on("$stateChangeSuccess",function(s,o,b){c(function(){if("app.main-news"!=o.name&&!0===e.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled){var p=e.scope.network.settings.languagePack.split("-")[0];null!=e.scope.profile.activeUserLanguage?.vendorLanguageCode&&p!=e.scope.profile.activeUserLanguage?.vendorLanguageCode&&(p=e.scope.profile.activeUserLanguage?.vendorLanguageCode,moment.locale(p),e.$broadcast("apicodo.translate",e.scope.profile.activeUserLanguage.vendorLanguageCode))}})}),e.$on("$stateChangeStart",function(s,o,b){switch(scope.network.landingSwitch&&"app.ikUpLanding"!==o.name&&"app.offline"!==o.name&&(s.preventDefault(),window.sessionStorage.setItem("returnUrl",r.path()),g.go("app.ikUpLanding",{},{location:"replace"})),a.getProfile().then(function(I){if(I.hasChapterAccess||-1!==l.indexOf(o.name)){if(I.adminSetPassword&&"app.requestPassword"!==o.name)window.sessionStorage.setItem("returnUrl",r.path()),g.go("app.requestPassword",{},{location:"replace"});else if(I.hasChapterAccess){var y=window.sessionStorage.getItem("returnUrl");y&&(s.preventDefault(),window.sessionStorage.removeItem("returnUrl"),r.path(y))}}else window.sessionStorage.setItem("returnUrl",r.path()),s.preventDefault(),g.go("app.closedChapter",{},{location:"replace"})}),o.name){case"app.main-snips":e.showSnipSlide||(g.go("app.main-news",{},{location:"replace"}),s.preventDefault());break;case"clickPremiumBanner":t.clickPremium(b.guid,b.pin).then(function(I){i(I.uri)}),s.preventDefault();break;case"clickSuperBanner":t.clickSuper(b.guid,b.pin).then(function(I){i(I.uri)}),s.preventDefault();break;case"clickBanner":console.log("clickBanner toParams",b),t.clickBanner(b.guid,b.pin).then(function(I){console.log("clickBanner result from api",I),i(I.uri)}),s.preventDefault();break;case"clickSurveyBanner":t.clickSurveyBanner(b.guid,b.pin).then(function(I){i(I.uri)}),s.preventDefault();break;case"clickSpecial":t.clickSpecial(b.guid,b.id).then(function(I){i(I.uri)}),s.preventDefault();break;case"clickNotification":t.clickNotification(b.id).then(function(I){i(I.uri)}),s.preventDefault();break;case"app.untrackedNotification":i(b.untrackedUri),s.preventDefault();break;case"app.documentDownload":t.clickDocument(b.id).then(h),s.preventDefault();break;case"app.fileDownload":t.clickFile(b.id).then(h),s.preventDefault()}function h(I){"android"===cordova.platformId&&I.isPdf?cordova.InAppBrowser.open("/Content/pdfview/web/?file="+I.uri,"_blank","location=yes,hidenavigationbuttons=yes,hideurlbar=yes,closebuttoncaption="+scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")):cordova.InAppBrowser.open(I.uri,"_system","location=yes,closebuttoncaption="+scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"))}})}]),app.run(["$rootScope","$window","$location","$uibModalStack","$timeout","$state","metaService","profileService",function(e,t,a,r,c,g,f,n){function d(){var I=e.scope||t.scope;return!!(I&&I.currentScope&&I.currentScope.network&&I.currentScope.network.settings&&I.currentScope.network.settings.configurations&&"Redesign2024"===I.currentScope.network.settings.configurations.contentRenderEngine)}e.profile=n.profile,window.scope=window.scope||{},window.scope.profile=n.profile,d()&&"scrollRestoration"in t.history&&(t.history.scrollRestoration="manual");var l={"app.main-news":!0,"app.eventCalendar":!0,"app.rubrics":!0,"app.main-snips":!0},i=Object.create(null);function s(){return t.pageYOffset||document.documentElement.scrollTop||0}var o=!1,b=0;function h(I){if(o){var y=Math.max(0,I||0);document.body.style.top=-y+"px",requestAnimationFrame(function(){document.body.classList.remove("nav-freeze"),document.body.style.top="",t.scrollTo(0,y),requestAnimationFrame(function(){t.scrollTo(0,y)})}),o=!1}}e.$on("$stateChangeStart",function(I,y,C,x,k){var R=r.getTop();R&&(r.dismiss(R.key),I.preventDefault()),d()&&y&&(x&&l[x.name]&&(i[x.name]=s()),function p(){o||(b=t.pageYOffset||document.documentElement.scrollTop||0,document.body.classList.add("nav-freeze"),document.body.style.top=-b+"px",o=!0)}())}),e.$on("$locationChangeStart",function(I,y){y.endsWith("?top")&&(I.preventDefault(),a.url(y.replace(/^(?:\/\/|[^\/]+)*\//,"").replace(/\?top$/g,"")))}),e.$on("$stateChangeSuccess",function(I,y,C,x,k){if(d()){var R=0;y&&l[y.name]&&(R=i[y.name]||0),h(R)}else o?h(s()):!d()&&!g.includes("app.main-news")&&t.scrollTo(0,0);function u(U){if(null===U||"object"!=typeof U)return U;var F=U.constructor();for(var w in U)U.hasOwnProperty(w)&&"object"!=typeof U[w]&&(F[w]=U[w]);return F}document.dispatchEvent(new CustomEvent("angularCustomEvent",{detail:{source:"stateChangeSuccess",toState:y}})),x&&x!==y&&!C.back?(C.back=x,C.backParams=k):x.name===y.name&&k.back&&(C.back=k.back,C.backParams=k.backParams),k&&k.backParams&&JSON.stringify(u(C))===JSON.stringify(u(k.backParams))&&(C.back=k.backParams.back,C.backParams=k.backParams.backParams),f.stateChanged(y)}),e.$on("$stateChangeError",function(){o&&unfreezeBody(!1)}),e.$on("$stateNotFound",function(){o&&unfreezeBody(!1)}),e.$on("$locationChangeSuccess",function(I,y,C){y!==C&&(Oculus.push(),Oculus.navigate(C))})}]),app.directive("resolve",["$controller",function(e){return{scope:!0,link:function(t,a,r){var c=t.$eval(r.resolve);angular.extend(c,{$scope:t}),e(r.resolveController,c)}}}]),objectFitImages(),app.controller("AdminSettingsController",["$scope","$rootScope","$state","localStorageService","profileService","$location",function(e,t,a,r,c,g){e.showClearLandingRedirectButton=!1,c.getProfile().then(function(f){!f.isSales&&!f.isMerkuristJournalist&&g.path("/").replace(),f.isAdmin&&(e.showClearLandingRedirectButton=!0);var n=f.guid;e.$watch("profile.guid",function(){n!==f.guid&&g.path("/")})},function(f){g.path("/").replace()}),e.storage=r,e.toggleOculusFeedback=function(){r.enableOculusFeedback=!r.enableOculusFeedback},e.toggleArticleExitRates=function(){r.enableArticleExitRates=!r.enableArticleExitRates},e.toggleApp=function(){r.app=!r.app},e.removeLandingRedirect=function(){window.location.href="https://"+t.scope.globalSettings.configurations.sharedAppLandingPageDomain.domain+"/landing?delete=true"}}]),app.controller("AdvertiserBillingInfoController",["$scope","advertiserService","profileService","$location",function(e,t,a,r){"Redesign2024"!=scope.currentScope.network.settings.configurations.contentRenderEngine&&(e.advertisers=[],e.success=!1,e.fromApply=r.search().fromApply,a.getProfile().then(function(f){f.isRegistered||r.path("/").replace(),t.getAdvertisersByUser().then(function(n){$.each(n,function(d,l){e.advertisers.push({accountHolder:"",costCenter:"",phone:"",gender:"",email:"",country:"",iban:"",guid:"",title:"",bic:"",firstName:"",lastName:"",companyName:"",address:"",city:"",postalCode:null,chapter:l.chapter}),l.title&&(e.advertisers[d].title=l.title),l.gender&&(e.advertisers[d].gender=l.gender),l.country&&(e.advertisers[d].country=l.country),l.phone&&(e.advertisers[d].phone=l.phone),l.email&&(e.advertisers[d].email=l.email),l.costCenter&&(e.advertisers[d].costcenter=l.costCenter),l.guid&&(e.advertisers[d].guid=l.guid),l.firstName&&(e.advertisers[d].firstname=l.firstName),l.accountHolder&&(e.advertisers[d].accountholder=l.accountHolder),l.bic&&(e.advertisers[d].bic=l.bic),l.lastName&&(e.advertisers[d].lastname=l.lastName),l.companyName&&(e.advertisers[d].companyname=l.companyName),l.address&&(e.advertisers[d].address=l.address),l.city&&(e.advertisers[d].city=l.city),l.postalCode&&(e.advertisers[d].postalcode=l.postalCode),l.iban&&(e.advertisers[d].iban=l.iban),l.iban&&(e.advertisers[d].ibanshow=l.iban.substr(0,7)+l.iban.substr(7).replace(/.(?=.{4,}$)/g,"*"))}),e.currentAdvertiser=e.advertisers[0]})},function(f){r.path("/").replace()}),e.resetValue=function(f){e.currentAdvertiser.iban=""},e.signUp=function(f,n){f&&(0==n.gender&&(n.gender=!1),1==n.gender&&(n.gender=!0),t.updateBillingInfo(n).then(function(d){e.success=!0},function(){e.success=!1}))})}]),app.controller("AdvertiserConsumeController",["$scope","$location","profileService","advertiserService","$timeout","$uibModal","$state",function(e,t,a,r,c,g,f){e.working=!0,t.search().token?r.getAdvertiserByToken(t.search().token).then(function(n){e.advertiser=n,c(function(){e.working=!1},1e3)}):e.working=!1,e.login=function(){g.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return function(){}},facebookSignUpData:function(){return null},login:!0}})},e.consume=function(){r.consumeAdvertiserToken(t.search().token).then(function(){e.consumeError=!1,a.getProfile(!0).then(function(){f.go("app.advertiserConsumtionComplete")})},function(){e.consumeError=!0})}}]),app.controller("AppStoreController",["$scope",function(e){e.isRedesign="Redesign2024"==scope.currentScope.network.settings.configurations.contentRenderEngine,e.appLinkAndroid=scope.currentScope.network.settings.appLinkAndroid,e.appLinkITunes=scope.currentScope.network.settings.appLinkITunes;let t=navigator.userAgent,a=t.includes("Macintosh")&&"ontouchend"in document;e.isIOS=/iPhone|iPad|iPod/i.test(t)||a,e.isAndroid=/Android/i.test(t),e.isOther=!e.isIOS&&!e.isAndroid,e.showIos=e.appLinkITunes&&(e.isIOS||e.isOther),e.showAndroid=e.appLinkAndroid&&(e.isAndroid||e.isOther)}]),app.controller("articleCancelScheduledPublish",["$Scope","article",function(e,t){}]),app.controller("ArticleCreatePublishDialog",["$scope","profileService","article","markdown","heading","htmlDocument","publishService","resultCallback","$rootScope","notificationService","articleService",function(e,t,a,r,c,g,f,n,d,l,i){e.working=!1,e.error=!1,e.dateOptions={minDate:new Date,showWeeks:!0};var s=d.scope.network.settings.languagePack.split("-")[0];null!=d.scope.profile.activeUserLanguage?.vendorLanguageCode&&s!=d.scope.profile.activeUserLanguage?.vendorLanguageCode&&(s=d.scope.profile.activeUserLanguage?.vendorLanguageCode),e.networkIsArticleOwner=a.originNetworkSlug==d.scope.network.slug,e.chapterIsArticleOwner=a.chapterSlug==d.scope.currentChapter.slug,e.isJournalistOnly=d.profile.isJournalist&&!d.profile.isMerkuristJournalist,e.allowPublish=!(d.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly),e.publishButtonLabel=d.scope.currentScope.network.getResourceOrKeyName(e.allowPublish?"web_common_publish":"web_common_submit"),e.showContentConnectTagBox=!1,e.words=!1,e.sentences=!1,e.paragraphs=!1,e.alreadyNotified=!1,e.datepickerPlaceholder=moment.localeData(s).longDateFormat("L"),e.allowCriticalContent=d.scope.currentScope.chapter.settings.enableCriticalContent,t.getProfile().then(function(h){e.firstPublish=e.allowPublish&&!a.published,e.allowBreakingNews=e.allowPublish}),e.alreadyNotified=a.alreadyNotified;var o=new Date(Date.now());o.setMilliseconds(0),o.setSeconds(0),e.minDate=o,e.minDateString=new Date(o).toISOString().slice(0,-1),l.getNotifiedUsersCount().then(function(h){e.NumberOfNotifiedUsers=h});var b=new Date(a.scheduledPublish);a.scheduledPublish||(b=new Date(Date.now())),b.setMilliseconds(0),b.setSeconds(0);var p=new Date(a.scheduledArchive);a.scheduledArchive||(p=b),p.setMilliseconds(0),p.setSeconds(0),e.publishArticle={id:a.id,criticalContent:!1,enableInteraction:!0!==d.scope.currentScope.chapter.settings.configurations.disableInteractionsByDefault,inactive:a.inactive,chapterSlugs:[],breakingNews:!1,heading:c,calendarDate:null,cbCalendarDate:!1,scheduledPublish:b,scheduledArchive:p,scheduledPublishDo:!!a.scheduledPublish,scheduledArchiveDo:!!a.scheduledArchive,externalContent:!!a.externalContent,externalContentNotifyAdminsNewContent:a.externalContentNotifyAdminsNewContent,externalContentNotifyAdminsChangedContent:a.externalContentNotifyAdminsChangedContent,externalContentNotifyAllChangedContent:a.externalContentNotifyAllChangedContent,externalContentUpdateCronSelection:a.externalContentUpdateCronSelection,externalContentConfluenceSourceId:a.externalContentConfluenceSourceId,firstPublish:!!e.firstPublish,assetReferences:a.assetReferences,updatePublishDateAfterFirstPublish:!1},e.publishArticle.scheduledPublishString=e.publishArticle.scheduledPublish,e.scheduledDate=b,e.networkChapters=[],$.each(d.scope.currentScope.network.chapters,function(h,I){2===I.managementState&&I.id!==scope.currentChapter.id&&e.networkChapters.push({name:I.name,slug:I.slug})}),e.showContentConnectTagBox=e.networkChapters.length>0,e.contentConnectTagBox={selectionOptions:{width:"90%",dataSource:e.networkChapters,showSelectionControls:!0,searchEnabled:!0,displayExpr:"name",valueExpr:"slug",selectAllText:d.scope.currentScope.network.getResourceOrKeyName("web_rubric_choice_check_all"),placeholder:d.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_contentConnectPlaceholder"),onContentReady:function(h){e.dxTagBoxInstance=h.component}}},i.getContentConnectNetworks().then(function(h){h.length>0&&(e.showContentConnectTagBox=!0),h.forEach(function(I){I.networkChapters.forEach(function(y){e.dxTagBoxInstance.getDataSource().store().insert({name:I.name+": "+y.name,slug:y.slug})})}),e.dxTagBoxInstance.load()}),e.formIsValid=function(){return!e.publishArticle.scheduledArchiveDo||e.publishArticle.scheduledArchive>=e.publishArticle.scheduledPublish},e.words=f.checkWords(g),e.sentences=f.checkSentences(g),e.paragraphs=f.checkParagraphs(g),e.publish=function(){e.working||(e.working=!0,e.publishArticle.cbCalendarDate||(e.publishArticle.calendarDate=null),e.publishArticle.scheduledPublishDo||(e.publishArticle.scheduledPublish=null),e.publishArticle.scheduledArchiveDo||(e.publishArticle.scheduledArchive=null),e.publishArticle.firstPublish=e.firstPublish,e.publishArticle.chapterSlugs=e.dxTagBoxInstance.option("selectedItems").map(function(h){return h.slug}),n&&n(e.publishArticle),e.$dismiss())}}]),app.controller("ArticleDetailController",["$scope","$rootScope","$previousState","articleService","snipService","articleQuestionService","scopeService","parserService","$location","article","$timeout","shipmentService","$uibModal","translationService","profileService","assetService",function(e,t,a,r,c,g,f,n,d,l,i,s,o,b,p,h){if(e.snip=void 0,e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,e.readOnlyMode=t.profile.readOnlyMode,e.hideUserInteraction=1==t.scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==t.scope.profile.isRegistered&&0==t.app,e.isPreview=l?.isPreview,e.showArticle=!0,(!document.referrer||!document.referrer.startsWith(scope.globalSettings.serverCdnUrl))&&!a.get()&&history&&window.allowRedirect){var I=t.scope.currentChapter.path+d.url();history.replaceState(null,"",scope.currentChapter.path),history.pushState(null,"",I)}function y(S){e.articleQuestions=S,$.each(S,function(v,A){A.normalAnswers=[],A.freeTextAnswers=[],$.each(A.items,function(T,D){D.isFreeTextAnswer?A.freeTextAnswers.push(D):A.normalAnswers.push(D)}),g.getAnswerId(A.id).then(function(T){e.articleQuestionAnswerIds[A.id]=[],$.each(T,function(D,m){if(e.articleQuestionAnswerIds[A.id].push(m.itemId),m.freeText){var M=A.freeTextAnswers.find(function(E){return E.id===m.itemId});M.freeText=m.freeText,M.synchedFreeText=m.freeText}})})})}l&&(f.getNetworkChapter(l.originChapterSlug,l.originNetworkSlug).then(function(S){e.crossNetworkInfo=S}),t.scope.currentScope.chapter.settings.enableArticleQuestions&&"Redesign2024"!=t.scope.currentScope.network.settings.configurations.contentRenderEngine&&(e.articleQuestionAnswerIds={},g.getArticleQuestions(l.id).then(y))),e.answering=function(S,v){var A=e.articleQuestions.find(function(P){return P.id===S}),T=A.items.find(function(P){return P.id==v});if(!A.locked){var D=e.articleQuestionAnswerIds[S].includes(v),m=e.articleQuestionAnswerIds[S],M=D&&(!T.isFreeTextAnswer||!T.freeText);if(!A.allowMultipleChoice||M){var E=D?v:m[0];(T.id!==E||!T.isFreeTextAnswer||!T.freeText)&&g.deleteArticleQuestionAnswersByUser(E).then(function(){m.splice(m.indexOf(E),1);var P=A.items.find(function(q){return q.id==E});P.freeText=null,P.synchedFreeText=null})}M||g.postArticleQuestionAnswer(v,T.freeText).then(function(){T.synchedFreeText=T.freeText,D||m.push(v)})}};var C,S,x=function(){e.article.assetReferences&&(C=e.article.assetReferences.reduce(function(S,v){return S[v.guid]=v,S},{}))};if(e.resolveAsset=function(S){return C[S]},e.socialMediaShareEnable=t.scope.currentScope.network.settings.socialMediaShareEnable,$(window).scroll(function(S){$(S.target).scrollTop()>100?$(".articleDetail-mobileNavigation-wrapper").addClass("articleDetail-mobileNavigation-wrapper-scrolled"):$(".articleDetail-mobileNavigation-wrapper").removeClass("articleDetail-mobileNavigation-wrapper-scrolled")}),e.recommendedArticles=[],e.recommendedArticlePairs=[],e.recommendedSnips=[],e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],e.articleUpdater)(e.$parent.articleUpdater?e.$parent:e.$parent.$parent).$on("articleUpdate",function(S,v){e.article=v,n.postProcessHtml(e.article),e.article.detailsLoaded=!0,x(),e.$broadcast("$$rebind::refresh")});else{e.$watch(function(){return"article.detailsLoaded"},function(S){S&&x()});var R=l.id,u=function(){e.$watch("article.shipmentsPlaced",function(S){(S||0===S)&&s.resolve(l.shipmentsPlaced,R,e.currentLanguage).then(function(){t.scope.currentScope.chapter.settings.enableArticleRecommendations&&"Redesign2024"!=t.scope.currentScope.network.settings.configurations.contentRenderEngine&&r.getRecommendedArticles(R).then(function(v){if(v.length){[].push.apply(e.recommendedArticles,v);for(var A=0;A<e.recommendedArticles.length;A+=2){var T=[];T.push(e.recommendedArticles[A]),e.recommendedArticles.length>A+1&&T.push(e.recommendedArticles[A+1]),e.recommendedArticlePairs.push(T)}}})})})};if(u(),e.article=l,e.availableTargetLanguages=null,b.getAvailableTargetLanguages().then(function(S){e.availableTargetLanguages=S}),t.scope.currentScope.chapter.settings.enableSnipRecommendations&&t.showSnipSlide&&"Redesign2024"!=t.scope.currentScope.network.settings.configurations.contentRenderEngine&&l.snipId&&c.getRecommendedSnips(l.snipId).then(function(S){e.recommendedSnips=S}),l.snipId&&t.showSnipSlide&&c.getSnipDetails(l.snipId).then(function(S){e.currentPath=t.scope.currentScope.network.path,e.snip=S}),(S=window.navigator.userAgent).indexOf(" Android ")>-1&&S.indexOf("Version/")>-1&&parseFloat((S.match("Android ([0-9.]+)")||[])[1])<=4.4){var F=$(window).height();$(".app-mobile .articleDetail-wrapper").css("height",F+"px"),$(".app-desktop .articleDetail-wrapper").css("height",F+"px")}}var w=function(S){e.article.assetReferences.unshift(S)};e.selectedTargetLanguage=t.profile.favoriteLanguage,e.$on("apicodo.translate",function(S,v){e.translateArticleDetail(v)}),e.translateArticleDetail=function(S){S&&(e.selectedTargetLanguage=S),e.currentLanguage=e.selectedTargetLanguage,null===e.selectedTargetLanguage?(r.getArticleDetails(e.article.id).then(function(v){l.assetReferences=v.assetReferences,e.article=v,n.postProcessHtml(e.article),e.article.detailsLoaded=!0,x(),u(),e.$broadcast("$$rebind::refresh")}),g.getArticleQuestions(e.article.id).then(y)):(r.getTranslatedArticleDetails(e.article.id,e.selectedTargetLanguage,e.article.variantId).then(function(v){l.assetReferences=v.assetReferences,e.article=v,n.postProcessHtml(e.article),e.article.detailsLoaded=!0,x(),u(),e.$broadcast("$$rebind::refresh"),p.updateFavoriteLanguage(e.selectedTargetLanguage).then(function(){t.profile.favoriteLanguage=e.selectedTargetLanguage})}),g.getTranslatedArticleQuestions(e.article.id,e.selectedTargetLanguage).then(y))},e.onArticleChanged=function(S){e.showArticle=!1,l=S,e.currentLanguage=S.language,l.assetReferences=S.assetReferences,e.article=S,n.postProcessHtml(e.article),e.article.detailsLoaded=!0,x(),u(),e.$$phase||e.$apply(),e.$broadcast("$$rebind::refresh"),e.showArticle=!0},e.assetCreateOpinionDialog=function(){o.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateOpinionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return w},createAssetAsync:function(){return function(S){return h.insertAssetTextToArticle(S,e.article.id)}}}})},e.assetCreateFactDialog=function(){o.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return w},createAssetAsync:function(){return function(S){return h.insertAssetTextToArticle(S,e.article.id)}}}})},e.assetCreateQuestionDialog=function(){o.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return w},createAssetAsync:function(){return function(S){return h.insertAssetTextToArticle(S,e.article.id)}}}})},e.assetCreateImageDialog=function(S,v,A){S&&0!==S.length?v.length||o.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return S},resultCallback:function(){return w},createAssetAsync:function(){return function(T){return h.insertAssetImageToArticle(T,e.article.id)}}}}):v||A.$setPristine()},e.assetCreateVideoDialog=function(){o.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return w},createAssetAsync:function(){return function(S){return h.insertAssetTextToArticle(S,e.article.id)}}}})},e.assetCreateGifDialog=function(){o.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return w},createAssetAsync:function(){return function(S){return h.insertAssetTextToArticle(S,e.article.id)}}}})},e.assetSearchDialog=function(){o.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return w},articleId:function(){return e.article.id},assetReferences:function(){return e.article.assetReferences}}})},e.assetImageFocuspointDialog=function(S){o.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return S}}})},e.scrollTo=function(S){$("body,html").animate({scrollTop:$(S).offset().top-120},1e3)},e.$watchCollection("article.assetReferences",function(){l&&(e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],angular.isDefined(l.assetReferences)&&l.assetReferences.forEach(function(S){null!==S.assetImage||null!==S.assetText&&(5===S.assetText.type||6===S.assetText.type||7===S.assetText.type||10===S.assetText.type||13===S.assetText.type)?e.assetsMedia.push(S):null!==S.assetText&&(8===S.assetText.type?e.assetsFacts.push(S):9===S.assetText.type?e.assetsQuestions.push(S):0===S.assetText.type&&e.assetsComments.push(S))}))}),e.share=function(){if(!window.plugins||!window.plugins.socialsharing)return;window._paq&&_paq.push(["trackEvent","Conversion","StartShareArticle","ArticleDetail"]);let S=d.absUrl().substring(0,d.absUrl().lastIndexOf("/"));S.includes(e.article.path)||(S=d.absUrl()),window.plugins.socialsharing.shareWithOptions({message:(e.article.heading?e.article.heading+": ":"")+e.article.text+" "+S},function(){window._paq&&_paq.push(["trackEvent","Conversion","SuccessShareArticle","ArticleDetail"])})}}]),app.component("articleDisplayable",{templateUrl:"/ClientApp/src/legacy-app/article/articleDisplayable.html",bindings:{data:"<",article:"<"},controller:["$rootScope","scopeService",function(e,t){var a=this;a.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,this.$onInit=function(){a.data&&(!1===a.data.sponsored&&void 0!==a.data.sponsored&&function r(){let c=a.data.focusPoint;!c&&c.focusX1&&c.focusX2&&c.focusY1&&c.focusY2&&(fpCenterX=(c.focusX1+c.focusX2)/2,fpCenterY=(c.focusY1+c.focusY2)/2,xPercentage=fpCenterX/c.width,yPercentage=fpCenterY/c.height,a.style=`--crop-focus-x: ${xPercentage}; --crop-focus-y: ${yPercentage};`)}(),a.blobPath=e.scope.globalSettings.blobStorageCdnUrl+"/images/",a.data.coverImageGuid?(a.imagePath=a.blobPath+a.data.coverImageGuid,a.coverCache=a.data.coverImageCache??0):a.data.coverAssetReference&&a.data.coverAssetReference.assetImage?(a.imagePath=a.blobPath+a.data.coverAssetReference.assetImage.guid,a.coverCache=a.data.coverAssetReference.assetImage.cache??0):(a.coverCache=0,a.imagePath=a.blobPath+"/dummy.jpg"),a.data.originNetworkSlug&&a.data.originChapterSlug&&e.scope.currentScope.network.slug!==a.data.originNetworkSlug&&t.getNetworkChapter(a.data.originChapterSlug,a.data.originNetworkSlug).then(function(c){a.crossNetworkInfo=c}),a.categories=[],a.data.chapterSlugs&&a.data.chapterSlugs.forEach(c=>{let g=e.scope.currentScope.network.chaptersDictionary[c];g&&a.categories.push(g)}))}}]}),app.component("articleDisplayableSnip",{templateUrl:"/ClientApp/src/legacy-app/article/articleDisplayableSnip.html",bindings:{data:"<",horizontal:"<"},controller:["$rootScope",function(e){var t=this;t.hideComponent=!1,this.$onInit=function(){t.hideComponent=2==e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig}}]}),app.controller("ArticleEditController",["$scope","scopeService","articleService","publishService","metaService","$state","authService","fileUploadService","formatterService","$location","$timeout","$uibModal","$rootScope","$interpolate","proseMirrorEditorService","editorAssetsService","backendHubProxy","spellingService","editorCommentService","assetService","editorSignalService",function(e,t,a,r,c,g,f,n,d,l,i,s,o,b,p,h,I,y,C,x,k){e.initializedMobile=e.mobile,e.isPublishWorking=!1,e.isJournalistOnly=o.profile.isJournalist&&!o.profile.isMerkuristJournalist,e.publishButtonLabel=o.scope.currentScope.network.getResourceOrKeyName(o.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly?"web_common_submit":"web_common_publish"),e.enableHighQualityImage=o.scope.network.settings.configurations.enableHighQualityImage,e.articleAsExternalLink=!1,e.articleData={articleExternalLinkUrl:""},e.coverButtonText=o.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_changeCoverAsset"),e.forceArticleCoverDisabled=!1;var F,R=I("editorHub"),u=g.params.id,U="article_"+u+"_"+o.scope.currentScope.chapter.id,w=!1;e.isRedesign="Redesign2024"==o.scope.network.settings.configurations.contentRenderEngine,e.forceArticleCoverDisabled=e.isRedesign&&(o.scope.currentScope.chapter.settings.configurations.forceArticleCoverDisabled??!1),e.$on("lazyImg:refresh",function(K,B){e.revision.coverAssetImages.forEach(j=>{j.guid==B&&j.cache++})}),e.bannerVisible=o.scope.currentScope.network.settings.configurations.aiFeaturesEnabled,e.loaderOptions={width:20,height:20,visible:!0},e.isSaving=!1,e.forceArticleCoverDisabled&&(e.coverButtonText=o.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_coverAsset")),R.on("broadcastSummary",function(K){e.revision.summary=K}),R.on("broadcastHeading",function(K){e.revision.texts[K.indexPosition].heading=K.heading}),R.on("broadcastAddVariant",function(){e.addTextVariant(!1)}),R.on("broadcastDeleteVariant",function(K){e.delTextVariant(!1,K.indexPosition)}),R.on("broadcastTitle",function(K){e.revision.texts[K.indexPosition].text=K.title}),R.start(function(){R.invoke("joinGroup",U)}),e.leaveEditor=function(){w=!0},e.blurHeading=function(K){R.invoke("updatingHeading",{groupName:U,heading:e.revision.texts[K].heading,indexPosition:K})},e.blurTitle=function(K){R.invoke("updatingTitle",{groupName:U,title:e.revision.texts[K].text,indexPosition:K})},e.blurSummary=function(){R.invoke("updatingSummary",{groupName:U,summary:e.revision.summary})};var A={coverAssetImages:[],texts:[{heading:"",text:""}],ChapterSlug:scope.currentChapter.slug};e.$on("$destroy",function(){c.setFavicon(),i.cancel(F)}),e.chapterHasTags=!!scope.currentChapter.chapterGroups&&scope.currentChapter.chapterGroups.length>0;var D,T=[];function m(){for(var K=e.article.revisions[0],B=K.published,j=0;j<e.article.revisions.length;j++)(e.article.revisions[j].published>K.published||!K.published)&&(B=(K=e.article.revisions[j]).published);if(o.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly)for(var W=0;W<e.article.revisions.length;W++)(e.article.revisions[W].publishRequested>K.published||null===B)&&(B=e.article.revisions[W].publishRequested);var te=new Date(B);e.article.scheduledPublish&&(te=new Date(e.article.scheduledPublish)),e.publishConfirmMessage=e.isJournalistOnly?scope.currentScope.network.resources.web_article_edit_publishRequestSuccess:b(scope.currentScope.network.resources.web_article_edit_timeSincePublished)({timeSincePublished:d.momentFromNowAsString(te)}),F=i(function(){m()},d.momentFromNowTimeout(te),!1)}o.scope.currentChapter.chapterGroups&&o.scope.currentChapter.chapterGroups.forEach(function(K){K.chapters.forEach(function(B){T.push({text:B.shortName,slug:B.slug})})}),e.articleUpdater=!0,e.article={text:"",content:"",summary:"",heading:""},e.editor=null,e.changed=!1,e.loading=!0,e.wordCount=0,e.words=!1,e.paragraphs=!1,e.sentences=!1;var M=o.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");window.onbeforeunload=function(){if(e.changed)return M};var E=!1;o.$on("$stateChangeStart",function(K,B){E?K.preventDefault():e.changed&&!confirm(M)?(E=!0,K.preventDefault(),w=!1,i(function(){E=!1},1e3)):(e.changed=!1,w&&(R.invoke("leaveGroup",U),p.closeConnection(),R.stop(),w=!1))}),e.textCarousel=null,e.textSlick=null,e.textSlickIndex=0,e.coverAssetSlickIndex=0,e.showRubricSelection=!1,e.rubricMultiSelectModel=[],e.rubricMultiSelectModelfordx=[];var P=function(K){e.revision=null,e.article=K,e.rubricMultiSelectModel.length=0,T.length>0&&(e.showRubricSelection=!0),K.chapterSlugs.forEach(function(j){var W=q(j),te={text:W,slug:j};null!==W&&(e.rubricMultiSelectModel.push(te),e.rubricMultiSelectModelfordx.push(te.slug))}),e.rubricTagBoxEntered=!1,e.rubricTagBox={selectionOptions:{width:"auto",dataSource:T,value:e.rubricMultiSelectModelfordx,showSelectionControls:!0,searchEnabled:!0,displayExpr:"text",valueExpr:"slug",selectAllText:o.scope.currentScope.network.getResourceOrKeyName("web_rubric_choice_check_all"),placeholder:o.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_chapterTagsPlaceholder"),onContentReady:function(j){e.dxTagBoxInstance=j.component,e.rubricTagBoxEntered=!0},onValueChanged:function(j){e.dxTagBoxInstance=j.component,e.rubricTagBoxEntered&&(e.changed=!0,K.chapterSlugs=[],e.dxTagBoxInstance.option("selectedItems").forEach(W=>{K.chapterSlugs.push(W.slug)}),setTimeout(()=>{e.dxTagBoxInstance.option("searchValue",""),e.dxTagBoxInstance.blur(),e.dxTagBoxInstance.focus()},0))}}};var B=z(K);B?e.revision=B:(e.revision=A,K.revisions.push(A)),e.revision.texts.length||(B.texts=[{heading:"",text:""}]),D=L(K),i(function(){e.isRedesign||e.textCarousel||(e.textCarousel=$("#articleEdit-text-wrapper").find(".articleEdit-text-carousel"),e.textCarousel.on("afterChange",function(j,W){e.textSlickIndex=W.currentSlide})),e.coverAssetCarousel||(e.coverAssetCarousel=$("#articleEdit-cover-wrapper").find(".articleEdit-cover-carousel"),e.coverAssetCarousel.on("afterChange",function(j,W){e.coverAssetSlickIndex=W.currentSlide})),e.revision.texts.push({}),i(function(){e.revision.texts.splice(e.revision.texts.length-1,1),e.isRedesign||i(function(){e.textSlick=e.textCarousel.slick({dots:!0,initialSlide:e.textSlickIndex})},100)}),e.revision.coverAssetImages.push({}),i(function(){e.revision.coverAssetImages.splice(e.revision.coverAssetImages.length-1,1),i(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0,initialSlide:e.coverAssetSlickIndex})},100)}),m()}),e.loading=!1},q=function(K){for(var B=0;B<scope.currentScope.network.chapters.length;B++)if(scope.currentScope.network.chapters[B].slug===K)return scope.currentScope.network.chapters[B].shortName;return null};e.addTextVariant=function(K){e.textSlick=e.textCarousel.slick("unslick"),i(function(){e.revision.texts.push({heading:"",text:""}),i(function(){e.textSlick=e.textCarousel.slick({dots:!0}),e.textSlick.slick("slickGoTo",e.revision.texts.length-1)})}),K&&R.invoke("addVariant",{groupName:U})},e.delTextVariant=function(K,B){var j=B||e.textSlick.slick("slickCurrentSlide");e.textSlick.slick("unslick"),e.revision.texts.splice(j,1),e.revision.texts.push({}),i(function(){e.revision.texts.splice(e.revision.texts.length-1,1),i(function(){e.textSlick=e.textCarousel.slick({dots:!0}),j>0&&(e.textSlick.slick("slickGoTo",j-1),e.textSlickIndex=j-1)},100)}),K&&R.invoke("deleteVariant",{groupName:U,indexPosition:j})},e.mobileEditorFocused=!1,e.focusMobileEditor=function(){e.mobileEditorFocused=!0},e.blurMobileEditor=function(){e.mobileEditorFocused=!1},e.coverAssetCarousel=null,e.coverAssetSlick=null,e.delCoverAssetVariant=function(){if(e.revision.coverAssetImages.length>1){var K=e.coverAssetSlick.slick("slickCurrentSlide");e.coverAssetSlick.slick("slickRemove",K-1),e.revision.coverAssetImages.splice(K,1),e.coverAssetSlick.slick("unslick"),e.revision.coverAssetImages.push({}),i(function(){e.revision.coverAssetImages.splice(e.revision.coverAssetImages.length-1,1),i(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0}),K>0&&(e.coverAssetSlick.slick("slickGoTo",K-1),e.coverAssetSlickIndex=K-1)})})}},e.pickCoverAssetDialog="redesign2024"==o.scope.network.settings.configurations?.contentRenderEngine?"/ClientApp/src/redesign/asset/assetDialog.html":"/ClientApp/src/legacy-app/asset/assetDialog.html",e.pickCoverAsset=function(K){s.open({templateUrl:e.pickCoverAssetDialog,controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 2},single:function(){return!0},showOnlyImage:function(){return!0},hideInComments:function(){return!0},resultCallback:function(){return function(B){e.coverAssetSlick.slick("unslick"),K&&e.revision.coverAssetImages.length?e.revision.coverAssetImages[0]=B.assetImage:e.revision.coverAssetImages.push(B.assetImage),i(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0}),e.coverAssetSlick.slick("slickGoTo",e.revision.coverAssetImages.length-1)})}},article:function(){return e.article}}})};var N=function(K,B){s.open({templateUrl:e.pickCoverAssetDialog,controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},single:function(){return!1},showOnlyImage:function(){return!1},hideInComments:function(){return!0},resultCallback:function(){return function(j){if(B&&j.length>0){p.setFocus();var W=[];$.each(j,function(te,ee){var se=null;ee.assetImage&&(se=ee.assetImage.type),ee.assetText&&(se=ee.assetText.type),ee.assetArticle&&(se=ee.assetArticle.type),ee.assetStaticArticle&&(se=ee.assetStaticArticle.type),ee.assetFile&&(se=ee.assetFile.type),W.push({guid:ee.guid,type:se})}),B(W)}}},article:function(){return e.article}}})};e.artikelUrlonChange=function(){e.changed=!0},e.save=function(){e.isSaving=!0,e.rubricMultiSelectModel=e.dxTagBoxInstance.option("selectedItems");for(var K=angular.copy(e.article),B=e.revision.coverAssetImages.map(function(W){return W.id}),j=0;j<B.length;j++)if(B.lastIndexOf(B[j])>j)return void s.open({templateUrl:"/ClientApp/src/legacy-app/article/noDuplicateCoverAssetDialog.html"});K.texts=e.revision.texts,K.coverAssetImages=e.revision.coverAssetImages,K.markdown=e.revision.markdown,K.summary=e.revision.summary,K.chapterSlugs=e.rubricMultiSelectModel.map(function(W){return W.slug}),K.googleNewsCheck=r.checkGoogleNewsRecommendation(p.getHtmlDocument()),K.jsonDocument=p.getDocument(),K.HtmlDocument=p.getHtmlDocument(),K.articleExternalLinkUrl=e.articleData.articleExternalLinkUrl,a.updateArticle(K).then(function(W){e.changed=!1,e.isRedesign&&(e.revision.published=null),e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),P(W)},function(){s.open({templateUrl:"/ClientApp/src/legacy-app/article/unableToSaveDialog.html"})}).finally(function(){e.isSaving=!1})},e.submit=function(){e.editForm.$submitted=!0};var O=function(K){e.editForm.$submitted=!0,e.isPublishWorking=!0,o.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly?a.publishArticleRequest(K).then(function(B){e.changed=!1,e.isPublishWorking=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),P(B)},function(){}):a.publishArticle(K).then(function(B){e.changed=!1,e.isPublishWorking=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),P(B)},function(){})};e.publish=function(){a.checkNotification(e.article.id).then(function(K){e.article.alreadyNotified=K,s.open({templateUrl:"/ClientApp/src/legacy-app/article/articleCreatePublishDialog.html",controller:"ArticleCreatePublishDialog",size:"lg",resolve:{resultCallback:function(){return O},article:function(){return e.article},markdown:function(){return e.revision.markdown},heading:function(){return e.revision.texts[0].text},htmlDocument:function(){return e.revision.htmlDocument}}})})},e.cancelScheduledPublish=function(){var K=new Date(e.article.scheduledPublish);e.article.scheduledPublishAsString=K.toLocaleString(),s.open({scope:e,templateUrl:"/ClientApp/src/legacy-app/article/articleCancelScheduledPublish.html",controler:"articleCancelScheduledPublish",resolve:{article:function(){return e.article}},size:"lg"}).result.then(function(){a.deleteScheduledPublish(e.article.id).then(function(){e.article.scheduledPublish=null,e.article.scheduledArchive=null})})},e.preview=!1,e.previewArticle={},e.previewButtonText=o.scope.currentScope.network.getResourceOrKeyName(e.preview?"web_common_edit":"web_common_preview"),e.togglePreview=function(){if(e.preview=!e.preview,e.previewButtonText=o.scope.currentScope.network.getResourceOrKeyName(e.preview?"web_common_edit":"web_common_preview"),e.preview){var K=angular.copy(e.article);K.content=p.getHtmlDocument(),K.assetReferences=K.assetReferences,K.text=e.revision.texts[0].text,K.heading=e.revision.texts[0].heading,K.summary=e.revision.summary,K.isPreview=!0,e.revision.coverAssetImages.length&&(K.coverAssetReference=K.assetReferences.filter(function(B){return B.assetImage&&B.assetImage.id===e.revision.coverAssetImages[0].id})[0]),e.previewArticle=angular.copy(K),i(function(){e.$broadcast("articleUpdate",K)},500)}},e.sendUpsellingEmail=function(){const K="Orts.Assistent",B=this.scope.network.getResourceOrKeyName("web_editor_ai_activate_contact_address"),j=this.scope.network.getResourceOrKeyName("web_editor_ai_activate_contact_subject").replace("{modulename}",K),W=this.scope.network.getResourceOrKeyName("web_editor_ai_activate_contact_text").replace("{modulename}",K).replace("{network}",this.scope.network.name).replace("{username}",this.scope.profile.firstName+" "+this.scope.profile.lastName),te="mailto:"+B+"?subject="+j+"&body="+encodeURIComponent(W);let ee=window.open(te,"_blank");ee?ee.focus():document.location=te};var L=function(K){var B=z(K);return angular.toJson(B.texts)+angular.toJson(B.coverAssetImages)+B.summary+B.jsonDocument+angular.toJson(e.rubricMultiSelectModel)},z=function(K){if(e.revision)return e.revision;var B=K.revisions.filter(function(W){return W.chapterSlug===scope.currentChapter.slug});if(B.length)return B[0];if(K.chapterSlug!==scope.currentChapter.managingParent.slug){s.open({templateUrl:"/ClientApp/src/legacy-app/article/articleEditForeignDisclaimerDialog.html",size:"lg"}).result.then(function(){},function(){l.path("/")});var j=K.revisions.filter(function(W){return W.chapterSlug===K.chapterSlug});if(j.length)return j[0]}},G=function(K,B){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return B},messageHolder:function(){return new MessageHolder(e.article)},sourceService:function(){return C}}})};c.setFavicon(!0);var J=function(K){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return K}}})},H=function(K,B){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return B}}})},Y=function(K,B){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/addMetaInfoDialog.html",controller:"AddMetaInfoDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return B}}})},Z=function(K,B,j){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return j},onAddedCallback:function(){return B},messageHolder:function(){return new MessageHolder(e.article)},chainComments:function(){return K},sourceService:function(){return C}}})},Q=function(K){return h.getAsset(K,e.article.assetReferences)},X=function(K){i(function(){z(e.article).jsonDocument=K,e.numberOfWords=y.countWords(p.getHtmlDocument())})};(function(){function K(){var B=e.bannerVisible?110:50;e.isRedesign?$(".proseMirror-wrapper")[0]?.getBoundingClientRect().top<B?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky"):$(".proseMirror-wrapper").offset().top<B?($(".proseMirror-wrapper").addClass("sticky"),e.bannerVisible&&$(".proseMirror-wrapper").addClass("ProseMirror-banner-offset")):($(".proseMirror-wrapper").removeClass("sticky"),$(".proseMirror-wrapper").removeClass("ProseMirror-banner-offset"))}e.isRedesign?$(window).scroll(function(){K()}):$(".articleEdit-wrapper").scroll(function(){K()})})(),e.coverButtonOptions={onClick:function(){e.pickCoverAsset(!0)},text:e.coverButtonText,icon:"fa-regular fa-image",hint:o.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_changeCoverAsset")},e.changeCoverButtonOptions={onClick:function(){e.pickCoverAsset(!0)},text:o.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_cover_changeCoverAsset"),icon:"fa-regular fa-image",hint:o.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_cover_changeCoverAsset")},e.deleteCoverButton={onClick:function(){x.removeReference(e.revision.coverAssetImages[0]),e.revision.coverAssetImages=[],e.coverAssetCarousel=[]},text:"",icon:"fa fa-trash",hint:o.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_deleteVariantTooltip")},e.articleExternalLinkSwitch={onValueChanged:function(){e.articleAsExternalLink=!e.articleAsExternalLink}},a.getArticleEdit(u).then(function(K){P(K),e.articleData.articleExternalLinkUrl=e.article.articleExternalLinkUrl,e.articleData.articleExternalLinkUrl&&(e.articleAsExternalLink=!0),e.articleExternalLinkSwitch={value:e.articleAsExternalLink,onValueChanged:function(){e.articleAsExternalLink=!e.articleAsExternalLink,e.articleAsExternalLink||(e.articleData.articleExternalLinkUrl="",e.changed=!0)}},p.init({docID:"article_"+K.id+"_"+scope.currentChapter.slug,assetDlgFactory:N,commentCreationDlgFactory:G,commentMgmtDlgFactory:Z,initialDocument:z(K).jsonDocument,initialAssetReferences:K.assetReferences,createLinkFactory:J,callToActionDlgFactory:H,metadataCreationDlgFactory:Y,assetResolver:Q,onNewStateFactory:X,onLoadTransactionCallback:X,languageCode:o.scope.currentScope.network.settings.languageCode}),e.$watch(function(){return L(e.article)},function(K){e.changed=D!==K,e.wordCount=e.revision.markdown?e.revision.markdown.replace(/[^\w-_ ]/g," ").trim().split(/\s+/).length:0})},function(){l.path("/")}),e.isRedesign&&k.textareaChanges$.subscribe(function(K){K&&(e.revision||(e.revision={texts:[{heading:"",text:""}],summary:""}),(!e.revision.texts||0===e.revision.texts.length)&&(e.revision.texts=[{heading:"",text:""}]),e.revision.texts[0].heading=K.heading,e.revision.texts[0].text=K.title,e.revision.summary=K.summary,e.changed=!0)})}]),app.controller("ArticleElasticReportController",["$scope","$rootScope","article","chapterReport","articleService","formatterService","scopeService","$timeout",function(e,t,a,r,c,g,f,n){AmCharts.isReady=!0;var d=getComputedStyle(document.querySelector("body")).getPropertyValue("--color1-alpha50");e.dateFormatString=g.getShortDateFormatString(),e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage;var l=[],i=[],s=[{name:t.scope.currentScope.network.getResourceOrKeyName("web_report_unknownReferrer"),color:"#cccccc",regEx:["^$"]},{name:t.scope.currentScope.network.domain.charAt(0).toUpperCase()+t.scope.currentScope.network.domain.slice(1),color:d,regEx:["^https?:\\/\\/"+t.scope.currentScope.network.domain]},{name:"Facebook",color:"#3B5998",regEx:["^https?:\\/\\/(\\w*\\.)?facebook\\.com","^android-app:\\/\\/m.facebook."]},{name:"Google",color:"#F44336",regEx:["^https?:\\/\\/((www\\.)|(images\\.))?google\\.","^android-app:\\/\\/com\\.google\\.android\\.googlequicksearchbox"]},{name:"Twitter",color:"#4099FF",regEx:["^https?:\\/\\/t\\.co\\/","^https?:\\/\\/twitter\\.com\\/"]},{name:"Webmail",color:"#ff66ff",regEx:["^https?:\\/\\/.*\\.mail\\.live\\.com","^https?:\\/\\/mail\\.google\\.com","^https?:\\/\\/3c\\.gmx\\.net","^https?:\\/\\/3c\\.web\\.de","^https?:\\/\\/email\\.t-online\\.de","^https?:\\/\\/3c-bap\\.web\\.de","^https?:\\/\\/email\\.1und1\\.de","^https?:\\/\\/www\\.arcor\\.de\\/home\\/link\\.php"]},{name:"WhatsApp",color:"#43d854",regEx:["^https?:\\/\\/web.whatsapp.com"]},{name:t.scope.currentScope.network.getResourceOrKeyName("web_report_articleSuggestionReferrer"),color:"#F44336",regEx:["^https?:\\/\\/www\\.googleapis\\.com\\/auth\\/chrome-content-suggestions","^https?:\\/\\/play\\.google\\.(com|de){1}\\/newsstand"]},{name:"Google News",color:"#F44336",regEx:["^https?:\\/\\/((www\\.news\\.)|(news\\.))?(url\\.)?google\\."]},{name:"Instagram",color:"#cd486b",regEx:["^https?:\\/\\/(\\w*\\.)?instagram\\."]}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];e.chapterReport=r,e.article=a,n(function(){var b,p,h,I,y;$.each(r,function(v,A){A.active=!0,A.variants.length&&$.each(A.variants,function(T,D){D.viewableImpressions>0&&(r.hasVariants=!0,D.hasViews=!0)})}),r.length>1&&(r.multiChapterShipment=!0);for(var C=[],x=[],k=[],R=new Date(a.published);R<=moment(new Date).startOf("day").add(1,"d").toDate();R.setDate(R.getDate()+1)){var u={start:new Date(R),viewableImpressions:0,readings:0};C.push(u),k[u.start.toDateString()]=u,x.push(u)}var U={impressions:0,readings:0,uniqueImpressions:0,uniqueReadings:0,uniqueReadingPercentageReads:0,uniqueViewableImpressions:0,activeTimeSeconds:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0};e.summary=U;var F=function(v){var A=!1;if(v?(U.start=moment(a.published).startOf("day").toDate(),U.end=moment(new Date).startOf("day").toDate()):r.hasVariants=!1,$.each(x,function(D,m){m.readings=0,m.viewableImpressions=0}),l.length=0,i=[],U.impressions=0,U.readings=0,U.uniqueImpressions=0,U.uniqueReadings=0,U.uniqueReadingPercentageReads=0,U.uniqueViewableImpressions=0,U.activeTimeSeconds=0,U.uniqueReadingsHavingViewableImpressions=0,U.uniqueReadingPercentage24Reads=0,U.uniqueReadingPercentage2549Reads=0,U.uniqueReadingPercentage5074Reads=0,U.uniqueReadingPercentage75100Reads=0,o[0].value=0,o[1].value=0,o[2].value=0,$.each(r,function(D,m){if(m.active){m.report.referrers.length&&$.each(m.report.referrers,function(E,P){A=!1,$.each(s,function(q,N){$.each(N.regEx,function(O,_){P.referrer.match(_)&&(i[N.name]?(i[N.name].readings+=P.readings,A=!0):(i[N.name]={readings:P.readings,referrer:N.name,color:N.color},l.push(i[N.name]),A=!0))})}),A||(i.others?i.others.readings+=P.readings:i.others={readings:P.readings,referrer:"Andere"})}),m.report.impressionCalendar.length&&$.each(m.report.impressionCalendar,function(E,P){k[new Date(P.day).toDateString()].viewableImpressions+=P.data}),m.report.readingCalendar.length&&$.each(m.report.readingCalendar,function(E,P){k[new Date(P.day).toDateString()].readings+=P.data}),m.variants.length&&$.each(m.variants,function(E,P){P.viewableImpressions>0&&(r.hasVariants=!0,P.hasViews=!0)}),U.impressions+=m.report.impressions,U.readings+=m.report.readings,U.uniqueReadings+=m.report.uniqueReadings,U.uniqueReadingsHavingViewableImpressions+=m.report.uniqueReadingsHavingViewableImpressions,U.uniqueImpressions+=m.report.uniqueImpressions,U.uniqueReadingPercentageReads+=m.report.uniqueReadingPercentageReads,U.activeTimeSeconds+=m.report.activeTimeSeconds,U.uniqueReadingPercentage24Reads+=m.report.uniqueReadingPercentage24Reads,U.uniqueReadingPercentage2549Reads+=m.report.uniqueReadingPercentage2549Reads,U.uniqueReadingPercentage5074Reads+=m.report.uniqueReadingPercentage5074Reads,U.uniqueReadingPercentage75100Reads+=m.report.uniqueReadingPercentage75100Reads;var M=m.report.desktopReadingCalendar+m.report.mobileReadingCalendar+m.report.tabletReadingCalendar;o[0].value+=Math.round(100/(M/m.report.desktopReadingCalendar)),o[1].value+=Math.round(100/(M/m.report.mobileReadingCalendar)),o[2].value+=Math.round(100/(M/m.report.tabletReadingCalendar))}}),r.length>1){var T=r.filter(function(D){return D.active}).length;o[0].value=Math.round(o[0].value/T),o[1].value=Math.round(o[1].value/T),o[2].value=Math.round(o[2].value/T)}i.others&&l.push(i.others),v&&(C.length=0,$.each(x,function(D,m){C.push({start:m.start,viewableImpressions:m.viewableImpressions})})),b.validateData(),p.validateData(),h.validateData(),I.validateData(),y.validateData()};b=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",marginRight:80,autoMarginOffset:20,marginTop:7,path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:C,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),p=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:"Gesamt",color:d,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"readings",toField:"readings"}],dataProvider:x,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:t.scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:t.scope.currentScope.network.getResourceOrKeyName("web_reportArticle_articleCallsHeading"),percentHeight:30,stockGraphs:[{valueField:"readings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:t.scope.currentScope.network.getResourceOrKeyName("web_report_views")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),(h=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:l,valueField:"readings",titleField:"referrer",colorField:"color",labelsEnabled:!1,autoMargins:!1,pullOutRadius:0,innerRadius:"30%",legend:{switchable:!1,textClickEnabled:!0,markerType:"circle",position:"bottom",autoMargins:!1,marginLeft:2},balloonText:"[[referrer]]: [[value]]"})).legend.addListener("clickLabel",function(v){v.dataItem.dataContext.referrer.startsWith("http")&&window.prompt(t.scope.currentScope.network.getResourceOrKeyName("web_report_copyReferrerLink"),v.dataItem.dataContext.referrer)}),I=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:d,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),y=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[U],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:d,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:d,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:d,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:d,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var w=function(v,A,T){$.each(r,function(D,m){c.getChapterReport(m.chapter.id,a,A,T).then(function(M){m.report=M,F(v)}),b.validateData(),p.validateData(),h.validateData(),I.validateData(),y.validateData()})};b.addListener("zoomed",function(){U.start=moment(b.startDate).startOf("day").toDate(),U.end=moment(b.endDate).startOf("day").toDate(),p.zoom(U.start,moment(U.end).startOf("day").add(1,"d").toDate()),w(!1,moment(U.start).startOf("day").add(1,"d").toDate(),moment(U.end).startOf("day").add(2,"d").toDate())}),e.toggleChapter=function(v){$.each(r,function(A,T){null!==T.chapter&&T.chapter.name===v&&(T.active=!T.active)}),F(!1)},w(!0,a.published,moment(new Date).startOf("day").add(2,"d").toDate())})}]),app.component("articleListDisplayablesList",{templateUrl:"/ClientApp/src/legacy-app/article/articleListDisplayablesList.html",bindings:{data:"<",mobile:"<"},controller:["$rootScope","shipmentService",function(e,t){var a=this;a.hideSnips=!1,a.hideSnips=scope.currentChapter.settings.configurations.hideSnipsInArticleFeed||!e.showSnipSlide,t.getShipmentSuper().then(function(c){a.superShipment=c}),a.$onChanges=function(c){c.data&&function r(){var c=[];a.counterOverdue=0,a.data.forEach(function(g,f){var n=0===f?null:a.data[f-1];(!n||4===n.articleListDisplayableType&&4!==g.articleListDisplayableType)&&(c.push({displayables:[],snips:[]}),a.counterOverdue=0),a.counterOverdue>3&&4!==g.articleListDisplayableType&&(c.push({displayables:[],snips:[]}),a.counterOverdue=0),a.counterOverdue++;var d=c[c.length-1];4===g.articleListDisplayableType?(a.counterOverdue=0,d.snips.push(g)):d.displayables.push(g)}),a.groups=c}()}}]}),app.component("articleListDisplayablesListMore",{templateUrl:"/ClientApp/src/legacy-app/article/articleListDisplayablesListMore.html",bindings:{data:"<",mobile:"<"},controller:["$scope","scopeService",function(e,t){var a=this;a.groups=[],a.hideSnips=!1,this.$onInit=function(){a.hideSnips=scope.currentChapter.settings.configurations.hideSnipsInArticleFeed,a.data.forEach(function(r,c){var g=0===c?null:a.data[c-1];(!g||4===g.articleListDisplayableType&&4!==r.articleListDisplayableType)&&a.groups.push({displayables:[],snips:[]});var f=a.groups[a.groups.length-1];4===r.articleListDisplayableType?f.snips.push(r):f.displayables.push(r)})}}]}),app.factory("articleQuestionService",["$http","$q",function(e,t){return{getArticleQuestions:function(n){var d=t.defer();return e.get(scope.apiEndpoint+"articleQuestions/"+n).then(function(l){d.resolve(l.data)},function(){d.reject()}),d.promise},getTranslatedArticleQuestions:function(n,d){var l=t.defer();return e.get(scope.apiEndpoint+"articleQuestions/"+n+"/translate?targetLanguage="+d).then(function(i){l.resolve(i.data)},function(){l.reject()}),l.promise},postArticleQuestionAnswer:function(n,d){var l=t.defer(),i=d?'"'+d.replace(/\\/gm,"\\\\").replace(/"/gm,'\\"')+'"':null;return e.post(scope.apiEndpoint+"articleQuestions/articleQuestionItems/"+n,i).then(function(s){l.resolve(s.data)},function(){l.reject()}),l.promise},getAnswerId:function(n){var d=t.defer();return e.get(scope.apiEndpoint+"articleQuestions/answers/"+n).then(function(l){d.resolve(l.data)},function(){d.reject()}),d.promise},deleteArticleQuestionAnswersByUser:function(n){var d=t.defer();return e.delete(scope.apiEndpoint+"articleQuestions/"+n).then(function(l){d.resolve(l.data)},function(){d.reject()}),d.promise}}}]),app.controller("ArticleReportController",["$scope","$rootScope","article","chapterReport","articleService","scopeService","$timeout",function(e,t,a,r,c,g,f){AmCharts.isReady=!0,e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage;var n=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",d=[{title:t.scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:n,value:0},{title:t.scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],l=[],i=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],s=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];e.chapterReport=r,e.article=a,f(function(){r.forEach(function(v){v.report.calendar.forEach(function(A){A.start=moment(A.start.replace("Z","")).toDate(),A.end=moment(A.end.replace("Z","")).toDate()})});var o,b,p,h,I,y,C,x=new Set;$.each(r,function(v,A){A.active=!0,2===A.chapter.managementState&&x.add(A.chapter.name)}),r.uniqueChapters=[],x.forEach(function(v){r.uniqueChapters.push(v)}),x.size>1&&(r.multiChapterShipment=!0);var k=[],R=function(){k.length=0,r.hasVariants=!1,$.each(r[0].report.calendar,function(v,A){k.push({start:A.start,end:A.end,viewableImpressions:0,uniqueViewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueReadings:0,femaleUniqueReadings:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueReadings:0,age1824MaleUniqueReadings:0,age2534MaleUniqueReadings:0,age3544MaleUniqueReadings:0,age4554MaleUniqueReadings:0,age55MaleUniqueReadings:0,age1617FemaleUniqueReadings:0,age1824FemaleUniqueReadings:0,age2534FemaleUniqueReadings:0,age3544FemaleUniqueReadings:0,age4554FemaleUniqueReadings:0,age55FemaleUniqueReadings:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,referrers:[]})}),$.each(r,function(v,A){if(A.active){A.report.variants.length&&$.each(A.report.variants,function(D,m){m.viewableImpressions>0&&(r.hasVariants=!0,m.hasViews=!0)});var T=a.id;$.each(A.report.calendar,function(D,m){m.id=T,k[D].viewableImpressions+=m.viewableImpressions,k[D].uniqueViewableImpressions+=m.uniqueViewableImpressions,k[D].billableViewableImpressions+=m.billableViewableImpressions,k[D].activeTimeSeconds+=m.activeTimeSeconds,k[D].readings+=m.readings,k[D].uniqueReadings+=m.uniqueReadings,k[D].uniqueReadingsHavingViewableImpressions+=m.uniqueReadingsHavingViewableImpressions,k[D].uniqueReadingPercentageReads+=m.uniqueReadingPercentageReads,k[D].maleUniqueReadings+=m.maleUniqueReadings,k[D].femaleUniqueReadings+=m.femaleUniqueReadings,k[D].desktopReadings+=m.desktopReadings,k[D].mobileReadings+=m.mobileReadings,k[D].tabletReadings+=m.tabletReadings,k[D].age1617MaleUniqueReadings+=m.age1617MaleUniqueReadings,k[D].age1824MaleUniqueReadings+=m.age1824MaleUniqueReadings,k[D].age2534MaleUniqueReadings+=m.age2534MaleUniqueReadings,k[D].age3544MaleUniqueReadings+=m.age3544MaleUniqueReadings,k[D].age4554MaleUniqueReadings+=m.age4554MaleUniqueReadings,k[D].age55MaleUniqueReadings+=m.age55MaleUniqueReadings,k[D].age1617FemaleUniqueReadings+=m.age1617FemaleUniqueReadings,k[D].age1824FemaleUniqueReadings+=m.age1824FemaleUniqueReadings,k[D].age2534FemaleUniqueReadings+=m.age2534FemaleUniqueReadings,k[D].age3544FemaleUniqueReadings+=m.age3544FemaleUniqueReadings,k[D].age4554FemaleUniqueReadings+=m.age4554FemaleUniqueReadings,k[D].age55FemaleUniqueReadings+=m.age55FemaleUniqueReadings,k[D].uniqueReadingPercentage24Reads+=m.uniqueReadingPercentage24Reads,k[D].uniqueReadingPercentage2549Reads+=m.uniqueReadingPercentage2549Reads,k[D].uniqueReadingPercentage5074Reads+=m.uniqueReadingPercentage5074Reads,k[D].uniqueReadingPercentage75100Reads+=m.uniqueReadingPercentage75100Reads,m.referrers.length&&m.referrers.forEach(function(M){k[D].referrers.push(M)})})}}),o.validateData(),b.validateData(),p.validateData(),h.validateData(),I.validateData(),y.validateData(),C.validateData()},u=r.summary={referrers:[]},U=function(v,A){u.viewableImpressions=0,u.uniqueViewableImpressions=0,u.billableViewableImpressions=0,u.activeTimeSeconds=0,u.readings=0,u.uniqueReadings=0,u.uniqueReadingsHavingViewableImpressions=0,u.uniqueReadingPercentageReads=0,u.maleUniqueReadings=0,u.femaleUniqueReadings=0,u.desktopReadings=0,u.mobileReadings=0,u.tabletReadings=0,u.age1617MaleUniqueReadings=0,u.age1824MaleUniqueReadings=0,u.age2534MaleUniqueReadings=0,u.age3544MaleUniqueReadings=0,u.age4554MaleUniqueReadings=0,u.age55MaleUniqueReadings=0,u.age1617FemaleUniqueReadings=0,u.age1824FemaleUniqueReadings=0,u.age2534FemaleUniqueReadings=0,u.age3544FemaleUniqueReadings=0,u.age4554FemaleUniqueReadings=0,u.age55FemaleUniqueReadings=0,u.uniqueReadingPercentage24Reads=0,u.uniqueReadingPercentage2549Reads=0,u.uniqueReadingPercentage5074Reads=0,u.uniqueReadingPercentage75100Reads=0;var T=0,D=0,m=0,M=0,E=0,P=0,q=0,N=0,O=0,_=0,V=0,L=0,z=0,G=0,J=0;u.start=v,u.end=A,u.referrers.length=0,$.each(k,function(ae,X){var K=new Date(X.start);K<v||K>A||(u.viewableImpressions+=X.viewableImpressions,u.uniqueViewableImpressions+=X.uniqueViewableImpressions,u.billableViewableImpressions+=X.billableViewableImpressions,u.activeTimeSeconds+=X.activeTimeSeconds,u.readings+=X.readings,u.uniqueReadingPercentageReads+=X.uniqueReadingPercentageReads,u.maleUniqueReadings+=X.maleUniqueReadings,u.femaleUniqueReadings+=X.femaleUniqueReadings,u.uniqueReadings+=X.uniqueReadings,u.uniqueReadingsHavingViewableImpressions+=X.uniqueReadingsHavingViewableImpressions,u.uniqueReadingPercentage24Reads+=X.uniqueReadingPercentage24Reads,u.uniqueReadingPercentage2549Reads+=X.uniqueReadingPercentage2549Reads,u.uniqueReadingPercentage5074Reads+=X.uniqueReadingPercentage5074Reads,u.uniqueReadingPercentage75100Reads+=X.uniqueReadingPercentage75100Reads,T+=X.desktopReadings,D+=X.mobileReadings,m+=X.tabletReadings,M+=X.age1617MaleUniqueReadings,E+=X.age1824MaleUniqueReadings,P+=X.age2534MaleUniqueReadings,q+=X.age3544MaleUniqueReadings,N+=X.age4554MaleUniqueReadings,O+=X.age55MaleUniqueReadings,_+=X.age1617FemaleUniqueReadings,V+=X.age1824FemaleUniqueReadings,L+=X.age2534FemaleUniqueReadings,z+=X.age3544FemaleUniqueReadings,G+=X.age4554FemaleUniqueReadings,J+=X.age55FemaleUniqueReadings,X.referrers.forEach(function(B){var j=u.referrers.filter(function(W){return W.referrer===B.referrer});j.length?j[0].readings+=B.readings:u.referrers.push({referrer:B.referrer,readings:B.readings,color:B.color})}))}),u.referrers.sort(function(ae,X){return X.readings-ae.readings}),u.referrers.forEach(function(ae){ae.name=ae.referrer?ae.referrer.substring(0,30):ae.referrer}),l.length=0,[].push.apply(l,u.referrers.slice(0,8)),l.filter(function(ae){return!ae.color}).forEach(function(ae,X){ae.color=h.colors[X]});var H=u.referrers.slice(9,-1),Y={referrer:t.scope.currentScope.network.getResourceOrKeyName("web_report_others"),name:t.scope.currentScope.network.getResourceOrKeyName("web_report_others"),readings:0,color:h.colors[10]};H.forEach(function(ae){Y.readings+=ae.readings}),Y.readings>0&&l.push(Y);var Z=T+D+m;u.desktopReadings=Math.round(100/(Z/T)),u.mobileReadings=Math.round(100/(Z/D)),u.tabletReadings=Math.round(100/(Z/m)),u.maleUniqueReadings=Math.round(u.maleUniqueReadings),u.femaleUniqueReadings=Math.round(u.femaleUniqueReadings),d[0].value=u.femaleUniqueReadings,d[1].value=u.maleUniqueReadings;var Q=M+E+P+q+N+O+_+V+L+z+G+J;u.age1617MaleUniqueReadings=Math.round(100/(Q/M)),u.age1824MaleUniqueReadings=Math.round(100/(Q/E)),u.age2534MaleUniqueReadings=Math.round(100/(Q/P)),u.age3544MaleUniqueReadings=Math.round(100/(Q/q)),u.age4554MaleUniqueReadings=Math.round(100/(Q/N)),u.age55MaleUniqueReadings=Math.round(100/(Q/O)),u.age1617FemaleUniqueReadings=Math.round(100/(Q/_)),u.age1824FemaleUniqueReadings=Math.round(100/(Q/V)),u.age2534FemaleUniqueReadings=Math.round(100/(Q/L)),u.age3544FemaleUniqueReadings=Math.round(100/(Q/z)),u.age4554FemaleUniqueReadings=Math.round(100/(Q/G)),u.age55FemaleUniqueReadings=Math.round(100/(Q/J)),i[0].male=Math.round(-1*u.age1617MaleUniqueReadings),i[1].male=Math.round(-1*u.age1824MaleUniqueReadings),i[2].male=Math.round(-1*u.age2534MaleUniqueReadings),i[3].male=Math.round(-1*u.age3544MaleUniqueReadings),i[4].male=Math.round(-1*u.age4554MaleUniqueReadings),i[5].male=Math.round(-1*u.age55MaleUniqueReadings),i[0].female=Math.round(u.age1617FemaleUniqueReadings),i[1].female=Math.round(u.age1824FemaleUniqueReadings),i[2].female=Math.round(u.age2534FemaleUniqueReadings),i[3].female=Math.round(u.age3544FemaleUniqueReadings),i[4].female=Math.round(u.age4554FemaleUniqueReadings),i[5].female=Math.round(u.age55FemaleUniqueReadings),s[0].value=u.desktopReadings,s[1].value=u.mobileReadings,s[2].value=u.tabletReadings,p.validateData(),I.validateData(),y.validateData(),C.validateData(),h.validateData(),e.$$phase||e.$apply()};o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:k,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+t.scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+t.scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+t.scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:t.scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),b=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:t.scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:n,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:k,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:t.scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:t.scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:t.scope.currentScope.network.getResourceOrKeyName("web_reportArticle_uniqueReadersAmount"),percentHeight:30,stockGraphs:[{title:t.scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:t.scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),p=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!1,marginLeft:2,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),(h=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:l,valueField:"readings",titleField:"referrer",colorField:"color",labelsEnabled:!1,autoMargins:!1,pullOutRadius:0,innerRadius:"30%",legend:{switchable:!1,textClickEnabled:!0,markerType:"circle",position:"bottom",autoMargins:!1,marginLeft:2},balloonText:"[[name]]: [[value]]"})).legend.addListener("clickLabel",function(v){v.dataItem.dataContext.referrer.startsWith("http")&&window.prompt(t.scope.currentScope.network.getResourceOrKeyName("web_report_copyLink"),v.dataItem.dataContext.referrer)}),I=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,graphs:[{fillAlphas:1,title:t.scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:n,balloonText:"[[value]]%"},{fillAlphas:1,title:t.scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(v){return-1*v.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(v){return v<0?-1*v+"":v+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),y=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:s,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:n,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),C=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[u],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:n,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:n,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:n,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:n,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var F=function(){var v=moment(o.startDate).startOf("day").toDate(),A=moment(o.endDate).startOf("day").add(-1,"d").toDate();U(v,A),b.zoom(v,moment(A).add(1,"d").toDate())};o.addListener("zoomed",function(){F()}),e.toggleChapter=function(v){$.each(r,function(A,T){null!==T.chapter&&T.chapter.name===v&&(T.active=!T.active)}),R(),F()},F(),R();var S=!1;setInterval(function(){"visible"!==document.visibilityState||0===k.length||S||(S=!0,c.getLatestReport(a.id).then(function(v){if(v){v[0].start=moment(v[0].start.replace("Z","")).toDate(),v[0].end=moment(v[0].end.replace("Z","")).toDate();var A={start:v[0].start,end:v[0].end,viewableImpressions:0,uniqueViewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueReadings:0,femaleUniqueReadings:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueReadings:0,age1824MaleUniqueReadings:0,age2534MaleUniqueReadings:0,age3544MaleUniqueReadings:0,age4554MaleUniqueReadings:0,age55MaleUniqueReadings:0,age1617FemaleUniqueReadings:0,age1824FemaleUniqueReadings:0,age2534FemaleUniqueReadings:0,age3544FemaleUniqueReadings:0,age4554FemaleUniqueReadings:0,age55FemaleUniqueReadings:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,referrers:[]};$.each(v,function(m,M){r[m].active&&(A.viewableImpressions+=M.viewableImpressions,A.uniqueViewableImpressions+=M.uniqueViewableImpressions,A.billableViewableImpressions+=M.billableViewableImpressions,A.activeTimeSeconds+=M.activeTimeSeconds,A.readings+=M.readings,A.uniqueReadings+=M.uniqueReadings,A.uniqueReadingsHavingViewableImpressions+=M.uniqueReadingsHavingViewableImpressions,A.uniqueReadingPercentageReads+=M.uniqueReadingPercentageReads,A.maleUniqueReadings+=M.maleUniqueReadings,A.femaleUniqueReadings+=M.femaleUniqueReadings,A.desktopReadings+=M.desktopReadings,A.mobileReadings+=M.mobileReadings,A.tabletReadings+=M.tabletReadings,A.age1617MaleUniqueReadings+=M.age1617MaleUniqueReadings,A.age1824MaleUniqueReadings+=M.age1824MaleUniqueReadings,A.age2534MaleUniqueReadings+=M.age2534MaleUniqueReadings,A.age3544MaleUniqueReadings+=M.age3544MaleUniqueReadings,A.age4554MaleUniqueReadings+=M.age4554MaleUniqueReadings,A.age55MaleUniqueReadings+=M.age55MaleUniqueReadings,A.age1617FemaleUniqueReadings+=M.age1617FemaleUniqueReadings,A.age1824FemaleUniqueReadings+=M.age1824FemaleUniqueReadings,A.age2534FemaleUniqueReadings+=M.age2534FemaleUniqueReadings,A.age3544FemaleUniqueReadings+=M.age3544FemaleUniqueReadings,A.age4554FemaleUniqueReadings+=M.age4554FemaleUniqueReadings,A.age55FemaleUniqueReadings+=M.age55FemaleUniqueReadings,A.uniqueReadingPercentage24Reads+=M.uniqueReadingPercentage24Reads,A.uniqueReadingPercentage2549Reads+=M.uniqueReadingPercentage2549Reads,A.uniqueReadingPercentage5074Reads+=M.uniqueReadingPercentage5074Reads,A.uniqueReadingPercentage75100Reads+=M.uniqueReadingPercentage75100Reads,M.referrers.length&&M.referrers.forEach(function(E){A.referrers.push(E)}))}),k[k.length-1].start-v[0].start===0?k[k.length-1]=A:k.push(A),o.validateData(),b.validateData();var T=moment(o.startDate).startOf("day").toDate(),D=moment(o.endDate).startOf("day").add(-1,"d").toDate();T<=v[0].start&&D>=v[0].start&&U(T,D),S=!1}}))},1e4)},function(){$location.path("/")})}]),app.component("imageInfo",{templateUrl:"/ClientApp/src/legacy-app/article/imageInfo.html",bindings:{assetImage:"<",text:"<",source:"<",showByDefault:"<"},controller:["$element","$timeout","$rootScope",function(e,t,a){var r=this;this.$onInit=function(){r.showByDefault=!1,this.assetImage&&((7===this.assetImage.imageSourceType||this.assetImage.imageProperties&&7===this.assetImage.imageProperties.imageSourceType||this.assetImage.alwaysShowImageDescription)&&(this.showByDefault=!0),r.text=this.assetImage.text,r.source=this.assetImage.source),r.showinfo=function(){e.find(".imageInfo-view")[0]&&e.find(".imageInfo-contentView")[0]&&$(e.find(".imageInfo-view")[0]).css("height",e.find(".imageInfo-contentView")[0].offsetHeight),t(function(){$(e.find(".imageInfo").toggleClass("imageInfo-collapsed"))})}}}]}),app.controller("AddAssetArticleDialogController",["$rootScope","$scope","articleService","assetArticleService","ownerId","onAddSuccessful","ownerType",function(e,t,a,r,c,g,f){var n=this;t.url=null,t.assetArticle=null,t.errorMessage=null,t.articleRegex=new RegExp("^https?://"+escape(e.scope.currentScope.network.domain)+"/(.*)_(.*)"),"Redesign2024"==e.scope.network.settings.configurations?.contentRenderEngine?t.searchArticles=function(){if(null!=t.url){var l=t.articleRegex.exec(t.url)[2].split("/")[0];t.assetArticle=null,a.getArticleDetails(l).then(function(i){t.assetArticle={coverAssetImageUrl:i.coverAssetReference?.assetImage.assetImageUrl,coverAssetImageCache:i.coverAssetReference?.assetImage.cache,coverAssetGuid:i.coverImageGuid,path:i.path,chapterSlugs:i.chapterSlugs,heading:i.heading,text:i.text,teaser:i.summary,attachedArticleId:i.id}})}}:n.searchArticles=function(d){if(!t.searchArticleForm.$invalid){var i=t.articleRegex.exec(d)[2].split("/")[0];t.assetArticle=null,a.getArticleDetails(i).then(function(s){t.assetArticle={coverAssetImageUrl:s.coverAssetReference.assetImage.assetImageUrl,coverAssetImageCache:s.coverAssetReference.assetImage.cache,coverAssetGuid:s.coverImageGuid,path:s.path,chapterSlugs:s.chapterSlugs,heading:s.heading,text:s.text,teaser:s.summary,attachedArticleId:s.id}})}},n.close=function(){t.$dismiss()},n.reset=function(){t.assetArticle=null,t.url=null,t.searchArticleForm.$setPristine()},n.addAssetArticle=function(){r.addAssetArticle(c,t.assetArticle.attachedArticleId,f).then(function(d){g(d),t.$dismiss()})},t.urlInputOptions={placeholder:e.scope.currentScope.network.getResourceOrKeyName("web_asset_addArticleDialog_urlPlaceHolder"),showClearButton:!0,value:t.url,onValueChanged:function(d){t.$apply(function(){t.url=d.value})},onEnterKey:function(d){t.searchArticles()}},t.searchArticleButtonOptions={text:e.scope.currentScope.network.getResourceOrKeyName("web_common_search"),onClick:t.searchArticles},t.resetButtonOptions={text:e.scope.currentScope.network.getResourceOrKeyName("web_asset_addArticleDialog_resetForm"),onClick:n.reset,stylingMode:"text"},t.addAssetButtonOptions={text:e.scope.currentScope.network.getResourceOrKeyName("web_common_add"),onClick:n.addAssetArticle}}]),app.controller("AddAssetStaticArticleDialogController",["$rootScope","$scope","staticArticleService","ownerId","onAddSuccessful","ownerType",function(e,t,a,r,c,g){var f=this;t.url=null,t.assetStaticArticle=null,t.errorMessage=null,t.articleRegex=new RegExp("^https?://"+escape(e.scope.currentScope.network.domain)+"/(.*)_(.*)"),f.listOfArticles=[],f.updating=!0,e.scope.staticArticles.forEach(n=>{(n.networkId||n.chapterId==e.scope.currentChapter.id)&&f.listOfArticles.push({id:n.id,title:n.title})}),f.listOfArticles.sort((n,d)=>n.title||d.title?n.title?d.title?n.title.localeCompare(d.title):-1:1:0),f.close=function(){t.$dismiss()},f.reset=function(){t.assetStaticArticle=null,t.url=null,t.searchArticleForm.$setPristine()},f.updateSelectedArticle=function(){f.updating=!0;var n=f.selectedStaticArticle.id;-1!=n?(t.assetStaticArticle=null,a.getStaticArticle(n).then(function(d){t.assetStaticArticle={coverAssetImageUrl:d.coverAssetReference?.assetImage.assetImageUrl,coverAssetImageCache:d.coverAssetReference?.assetImage.cache,path:d.path,chapterSlugs:d.chapterSlugs,heading:d.heading,text:d.title,attachedArticleId:d.id,teaser:d?.summary,coverAssetGuid:d?.coverAssetReference.guid},f.updating=!1})):(t.assetStaticArticle=null,f.updating=!0)},f.addAssetArticle=function(){r?a.addAssetStaticArticle(r,t.assetStaticArticle.attachedArticleId,g).then(function(n){console.log("data",n),c(n),t.$dismiss()}):t.$dismiss()},f.selectBoxOptions={dataSource:f.listOfArticles,valueExpr:"id",name:"staticArticlesSelect",displayExpr:"title",inputAttr:{"aria-label":"Article"},searchEnabled:!0,placeholder:e.scope.network.getResourceOrKeyName("web_asset_addStatiArticleDialog_select_placeholder"),onValueChanged(n){if(null!==n.value){const d=n.component.option("selectedItem");f.selectedStaticArticle=d,f.updateSelectedArticle()}else f.selectedStaticArticle=null}},f.buttonOptions={text:e.scope.currentScope.network.getResourceOrKeyName("web_common_add"),onClick:f.addAssetArticle}}]),app.component("assetArticleItem",{templateUrl:"/ClientApp/src/legacy-app/asset/assetArticleItem.html",bindings:{assetArticle:"<"},controller:["$rootScope","displayableFallbackCoverService",function(e,t){var a=this;a.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,this.$onInit=function(){a.assetArticle&&(a.hasImage=a.assetArticle.coverAssetImageUrl&&!a.assetArticle.coverAssetImageUrl.includes("00000000-0000-0000-0000-000000000000"),a.fallbackColor=t.getRandomNetworkColor())}}]}),app.component("assetStaticArticleItem",{templateUrl:"/ClientApp/src/legacy-app/asset/assetStaticArticleItem.html",bindings:{assetStaticArticle:"<"},controller:["$rootScope","displayableFallbackCoverService",function(e,t){var a=this;a.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,this.$onInit=function(){a.hasImage=!a.assetArticle.coverAssetImageUrl.includes("00000000-0000-0000-0000-000000000000"),a.fallbackColor=t.getRandomNetworkColor()}}]}),app.service("assetArticleService",["$http","$q","$rootScope",function(e,t,a){var c=a.scope.apiEndpoint+"assetArticles";return this.addAssetArticle=function(g,f,n){var d=t.defer();return e.post(c,{ownerId:g,articleId:f,assetArticleType:n}).then(function(i){d.resolve(i.data)},function(){d.reject()}),d.promise},this}]),app.controller("AssetChildListDialog",["$rootScope","$scope","$q","$interval","$timeout","archived","parentAssetReference","assetService","reportAsset","deleteAsset",function(e,t,a,r,c,g,f,n,d,l){t.working=!1,t.error=!1,t.parentAssetReference=f,t.showVerifiedUser=t.parentAssetReference.user.isVerifiedUser,t.enableVerifiedUsers=e.scope.currentChapter.settings.configurations.enableVerifiedUsers,t.archived=g;var i={type:0,text:"",attachment:"",source:"",parentGuid:f.guid};t.assetText={},t.assetReferences=[],angular.copy(i,t.assetText);var s,o=function(){var h=t.parentAssetReference;t.parentAssetReference.childAssets&&t.parentAssetReference.childAssets.length&&(h=t.parentAssetReference.childAssets.sort(function(C,x){return new Date(C.created)>new Date(x.created)?-1:1})[0]);var y=a.defer();s=y.promise,n.getChildren(f.guid,h.created).then(function(C){return f.childAssets||(f.childAssets=[]),Array.prototype.push.apply(f.childAssets,C),!0},function(){return!0}).then(function(){y.resolve(),s=null})};s&&s();var p=r(function(){o()},1e4);t.$on("$destroy",function(){o(),r.cancel(p)}),t.focusInput=function(){/(android)/i.test(navigator.userAgent)&&setTimeout(function(){var h=$(".modal");h.scrollTop(h.height()+h.offset().top)},500)},t.post=function(){t.assetText.text.length<e.scope.currentScope.chapter.settings.assetTextMinLength||t.assetText.text.length>e.scope.currentScope.chapter.settings.assetTextMaxLength||(t.working=!0,n.insertChild(f.guid,t.assetText).then(function(h){angular.copy(i,t.assetText),c(function(){var I=document.createEvent("Event");I.initEvent("autosize.update",!0,!1),$(".assetChildListDialog").find("textarea")[0].dispatchEvent(I)}),o(),t.working=!1}))},t.deleteAsset=l,t.reportAsset=d,t.isAssetTextValid=function(){return e.scope.currentScope.chapter.settings.assetTextMinLength<=t.assetText.text.length},t.isAddDisable=function(){return!t.isAssetTextValid()||t.working}}]),app.component("asset",{templateUrl:"/ClientApp/src/legacy-app/asset/asset.html",bindings:{assetReference:"<",snip:"<",article:"<",sponsoredArticle:"<",staticArticle:"<",imageGalleryItemIndex:"<"},controller:["$uibModal","$rootScope","clickService","$element","$state","authService","apicodoMediaService",function(e,t,a,r,c,g,f){var n=this;n.profile=t.profile,this.assetImageFocuspointDialog=function(s){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return s}}})},n.clickAssetReference=function(){n.assetReference.oculus.click(),a.clickAssetReference(n.assetReference.oculus.guid,n.assetReference.id)},this.$onInit=function(){if(n.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,n.assetReference){var s=t.scope.currentScope.network;n.article&&(n.assetReference.oculus=Oculus.trackAssetReferenceImpression(r.find(".asset"),{ia:n.article.id,iar:n.article.revisionId,iav:n.article.variantId,c:n.article.chapterSlug,n:s.slug,ari:n.assetReference.id}),n.assetReference.oculus.persistent=c.includes("app.main")),n.sponsoredArticle&&(n.assetReference.oculus=Oculus.trackAssetReferenceImpression(r.find(".asset"),{isa:n.sponsoredArticle.id,isar:n.sponsoredArticle.revisionId,isav:n.sponsoredArticle.variantId,c:n.sponsoredArticle.chapterSlug,n:s.slug,ari:n.assetReference.id}),n.assetReference.oculus.persistent=c.includes("app.main")),n.showCookieExternalMediaInfo=!!t.scope.globalSettings.configurations.global_module_configuration.ConsentManagementModuleEnabled&&function d(){var s=0;if(!t.app)switch(t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&(s=t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),s){case 1:return function i(){if(!t.app){const{twitter:s,youTube:o,facebook:b,vimeo:p,giphy:h}=t.scope.profile.settings.externalMediaPermissions;switch(n.assetReference?.assetText?.type){case 4:return!s?.granted;case 5:return!o?.granted;case 6:return!b?.granted;case 7:return!p?.granted;case 10:return!h?.granted;default:return!1}}}();case 4:return function l(){if(!t.app){const b=!n.profile.hasCookiesConsented&&!n.profile.isRegistered,h=[5,6,7,10].some(I=>n.assetReference.assetText?.type===I);return b&&h}return!1}();default:return!1}return!1}()}}}]}),app.controller("AssetCreateCommonDialog",["$interpolate","$rootScope","$scope","assetType","createAssetAsync","resultCallback",function(e,t,a,r,c,g){a.working=!1,a.error=!1,a.web_assetDialog_description=e(t.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:t.scope.currentScope.network.name}),a.asset={type:r,text:"",attachment:"",imageSource:"",uploadGuid:"",uploadError:"",source:""},a.createAsset=function(){a.working||!a.asset.text||a.asset.text.length<t.scope.currentScope.chapter.settings.assetTextMinLength||a.asset.text.length>t.scope.currentScope.chapter.settings.assetTextMaxLength||(a.working=!0,c(a.asset).then(function(f){g&&(f.assetText.user=f.user,g(f)),a.$dismiss()},function(){a.error=!0,a.working=!1}))},a.createQuestionIcon=a.working?"fa fa-spinner fa-pulse":null,a.createQuestionButton={text:t.scope.currentScope.network.getResourceOrKeyName("web_common_add"),onClick:a.createAsset},a.dismissButtonOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_common_cancel"),onClick:function(f){a.$dismiss()}},a.createFactTextAreaOptions={value:a.asset.text,mode:"multiline",height:"auto",placeholder:t.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createFact_textPlaceholder"),maxLength:t.scope.currentScope.chapter.settings.assetTextMaxLength,onEnterKey:function(){a.createAsset()},onInitialized:function(f){f.component.focus()}},a.createQuestionTextAreaOptions={value:a.asset.text,mode:"multiline",height:"auto",placeholder:t.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createQuestion_textPlaceholder"),maxLength:t.scope.currentScope.chapter.settings.assetTextMaxLength,onEnterKey:function(){a.createAsset()},onInitialized:function(f){f.component.focus()},onKeyUp(f){a.asset.text=f.event.target.value}}}]),app.controller("AssetCreateFileDialog",["$interpolate","$rootScope","$scope","files","createAssetAsync","resultCallback","Upload",function(e,t,a,r,c,g,f){a.web_assetDialog_description=e(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:scope.currentScope.network.name}),a.closedChapter=t.scope.currentChapter.closed,a.chapterName=t.scope.currentChapter.name,a.numberOfClosedChapter=t.scope.network.chapters.filter(function(d){return d.closed}).length,a.accessibility=0,a.accessibilitySelectionDataSource=[{value:0,text:a.chapterName},{value:1,text:scope.currentScope.network.getResourceOrKeyName("web_asset_addFileDialog_accessibility_select_networkwide")}],a.allowSearchIndexing=!0;var n={type:11,text:"",fileName:"",attachment:"",fileSource:"",guid:"",uploadError:"",source:"",sourceType:null,author:"",title:"",sourceUrl:"",mimeType:null,accessibility:null,allowSearchIndexing:null};a.form={},a.files=r,a.workingFiles=r.length,angular.forEach(r,function(d,l){d.assetFile=angular.copy(n),d.assetFile.fileName=d.fileName,d.prefix="file"+l,d.uploadAssetProgress=0,d.uploadAsset=f.upload({url:scope.apiEndpoint+"upload",data:{file:d}}).then(function(i){d.assetFile.guid=i.data},function(i){d.uploadError="Error: "+i.data,a.$dismiss()},function(i){d.uploadAssetProgress=parseInt(100*i.loaded/i.total)}).finally(function(){d.uploadAsset=null,a.workingFiles--})}),a.copyFileData=function(){var d=r[0];angular.forEach(r,function(l,i){if(i>0){var s=l.assetFile.guid;l.assetFile=angular.copy(d.assetFile),l.assetFile.guid=s}})},a.createFiles=function(d){d&&angular.forEach(r,function(l){a.working=!0,l.assetFile.mimeType=l.type,l.assetFile.fileName=l.name,l.assetFile.accessibility=a.accessibility,l.assetFile.allowSearchIndexing=a.allowSearchIndexing,c(l.assetFile).then(function(i){g&&(i.assetFile.user=i.user,g(i)),a.working=!1,a.$dismiss()},function(){a.error=!0,a.working=!1})})},a.cancel=function(){a.$dismiss()},a.addButtonOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_common_add"),onClick:a.createFiles},a.cancelButtonOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_common_cancel"),onClick:a.cancel},a.fileDescriptionTextAreaOptions=function(d){return{value:d.assetFile.text,height:"auto",onValueChanged:function(l){d.assetFile.text=l.value}}},a.selectBoxOptions={dataSource:a.accessibilitySelectionDataSource,value:a.accessibility,displayExpr:"text",onValueChanged(d){a.accessibility=d.value.value}},a.updateAllowSearchIndexing=()=>{a.allowSearchIndexing=!a.allowSearchIndexing}}]),app.controller("AssetCreateGifDialog",["$scope","$rootScope","$timeout","createAssetAsync","resultCallback","$http","$q",function(e,t,a,r,c,g,f){let d;e.working=!1,e.error=!1,e.query="",e.gifHits=null,e.assetText={type:10,text:"",imageSource:"",uploadGuid:"",uploadError:"",source:""},e.offset=0,e.limit=t.mobile?90:6,e.debounceTime=500,e.clear=function(){e.gifHits=null,e.offset=0},e.showMoreGifs=function(){var l,i,s,o;(l=e.query,i=e.offset,s=e.limit,o=f.defer(),g.get("https://api.giphy.com/v1/gifs/search?api_key=gF576MzYtgG2BZmhA2xRDU9DSPG6o96i&q="+encodeURIComponent(l)+"&limit="+s+"&offset="+i,{withCredentials:!1}).then(function(b){e.gifHits=null===e.gifHits?b.data.data:e.gifHits.concat(b.data.data),o.resolve(b.data)},function(){o.reject()}),o.promise).then(function(l){e.offset=e.offset+e.limit})},e.searchGifs=function(){e.clear(),e.showMoreGifs()},e.createAsset=function(l){e.working||(e.working=!0,e.assetText.text=l.images.original.url,r(e.assetText).then(function(i){c&&(i.assetText.user=i.user,c(i)),e.$dismiss()},function(){e.error=!0,e.working=!1}))},e.showMoreGifsButtonOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createGif_showMore"),onClick:e.showMoreGifs},e.dismissButtonOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_common_cancel"),onClick:function(){e.$dismiss()}},e.searchGifsTextboxOptions={placeholder:t.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createGif_textPlaceholder"),value:e.query,onEnterKey:function(l){e.searchGifs()},onKeyPress:function(l){d&&a.cancel(d),d=a(function(){e.query=l.event.target.value,e.searchGifs()},e.debounceTime)}}}]),app.controller("AssetCreateImageDialog",["$interpolate","$rootScope","$scope","files","createAssetAsync","resultCallback","Upload",function(e,t,a,r,c,g,f){a.web_assetDialog_createImage_canBeUsedElsewhere=e(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_canBeUsedElsewhere"))({networkName:scope.currentScope.network.name}),a.web_assetDialog_description=e(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:scope.currentScope.network.name}),a.onLabelKeydown=function(i,s){var o=i.key||"",b=i.keyCode||i.which;if("Enter"===o||" "===o||13===b||32===b){i.preventDefault();var p=document.getElementById(s);p&&p.click()}},a.defaultSourceTypes={1:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType1,sourceType:1,riskLevel:1,expirationDays:0,checkRequired:!1},2:{name:scope.currentScope.network.name,sourceType:2,riskLevel:1,expirationDays:0,checkRequired:!1},3:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType3,sourceType:3,riskLevel:1,expirationDays:0,checkRequired:!1},4:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType4,sourceType:4,riskLevel:2,expirationDays:30,checkRequired:!1},5:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType5,sourceType:5,riskLevel:1,expirationDays:0,checkRequired:!1},7:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7,sourceType:7,riskLevel:2,expirationDays:30,checkRequired:!0},8:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType8,sourceType:8,riskLevel:2,expirationDays:30,checkRequired:!1},9:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType9,sourceType:9,riskLevel:3,expirationDays:14,checkRequired:!0},12:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType12,sourceType:12,riskLevel:3,expirationDays:14,checkRequired:!0},14:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType14,sourceType:14,riskLevel:3,expirationDays:14,checkRequired:!0},15:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType15,sourceType:15,riskLevel:1,expirationDays:0,checkRequired:!1}},a.profile.isMerkuristJournalist||delete a.defaultSourceTypes[2],a.creativeCommonsLicenses={1:{name:"CC0 1.0",value:"[CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/deed.de)",validity:!0},2:{name:"BY 1.0",value:"[BY 1.0](https://creativecommons.org/licenses/by/1.0/legalcode)",validity:!0},3:{name:"BY 2.0",value:"[BY 2.0](https://creativecommons.org/licenses/by/2.0/de/legalcode)",validity:!0},4:{name:"BY 2.5",value:"[BY 2.5](https://creativecommons.org/licenses/by/2.5/legalcode)",validity:!0},5:{name:"BY 3.0",value:"[BY 3.0](https://creativecommons.org/licenses/by/3.0/de/legalcode)",validity:!0},6:{name:"BY 4.0",value:"[BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcode)",validity:!0},7:{name:"BY-SA 1.0",value:"[BY-SA 1.0](https://creativecommons.org/licenses/by-sa/1.0/legalcode)",validity:!0},8:{name:"BY-SA 2.0",value:"[BY-SA 2.0](https://creativecommons.org/licenses/by-sa/2.0/de/legalcode)",validity:!0},9:{name:"BY-SA 2.5",value:"[BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/legalcode)",validity:!0},10:{name:"BY-SA 3.0",value:"[BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/de/legalcode)",validity:!0},11:{name:"BY-SA 4.0",value:"[BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/legalcode)",validity:!0},12:{name:"BY-ND",value:"",validity:!1},13:{name:"BY-NC",value:"",validity:!1},14:{name:"BY-NC-SA",value:"",validity:!1},15:{name:"BY-ND-NC",value:"",validity:!1},16:{name:"BY-NC-ND",value:"",validity:!1}};var n={type:2,text:"",attachment:"",imageSource:"",uploadGuid:"",pdfUploadGuid:"",uploadError:"",source:"",expirationDate:"",expirationDays:0,canBeUsedElsewhere:t.scope.currentScope.network.settings.simpleImageSource||!(a.profile.isJournalist||a.profile.isMerkuristJournalist),sourceType:null,author:"",title:"",dateOfPermission:"",descriptionOfPermission:"",permissionGivenBy:"",pressServiceUrl:"",sourceUrl:"",agency:"",creativeCommonsLicense:"",dateOfScreenshot:"",canBeUsedEditorial:!0,canBeUsedAdvertising:!1,imageId:"",mimeType:null,alwaysShowImageDescription:!!t.scope.currentScope.network.settings.configurations.alwaysShowImageDescriptionDefaultValue,tempUrl:""};a.form={},a.files=r,a.workingFiles=r.length,angular.forEach(r,function(i,s){i.assetImage=angular.copy(n),i.ccLicense=null,i.ccLicenseError="",i.visibleImageSource="",i.prefix="file"+s,i.overrideSource=null,t.scope.currentScope.network.settings.simpleImageSource&&(i.assetImage.sourceType=16),i.uploadAssetProgress=0,i.uploadAsset=f.upload({url:scope.apiEndpoint+"upload",data:{file:i}}).then(function(o){i.assetImage.uploadGuid=o.data,i.assetImage.tempUrl="https://merkuristdev.blob.core.windows.net/temp/"+i.assetImage.uploadGuid},function(o){i.uploadError="Error: "+o.data,a.$dismiss()},function(o){i.uploadAssetProgress=parseInt(100*o.loaded/o.total)}).finally(function(){(function d(i){["image/gif","image/exif","image/png","image/tif","image/tiff","image/tff","image/jpg","image/jpeg","image/jpe","image/jif","image/jfif","image/jfi","image/webp"].includes(i.type)||a.form[i.prefix+"_type"].$setValidity("validateType",!1)})(i),i.uploadAsset=null,a.workingFiles--}),i.uploadPdf=function(o){o&&(a.workingFiles++,f.upload({url:scope.apiEndpoint+"upload",data:{file:o}}).then(function(b){i.assetImage.pdfUploadGuid=b.data,i.uploadedPdfName=o.name},function(b){i.uploadPdfError="Error: "+b.data,i.uploadedPdfName=null},function(b){}).finally(function(){a.workingFiles--}))},i.removePdf=function(){i.assetImage.pdfUploadGuid=null,i.uploadPdfName=null},i.sourceTypeSelected=function(){var o=i.assetImage.sourceType,b=i.assetImage.uploadGuid,p=i.assetImage.text;i.assetImage=angular.copy(n),i.assetImage.sourceType=o,i.assetImage.uploadGuid=b,i.assetImage.text=p,o&&(a.profile.isJournalist||a.profile.isMerkuristJournalist?a.form.$setPristine():a.formNonAuthor.$setPristine(),(2===o||1===o&&(a.profile.isJournalist||a.profile.isMerkuristJournalist))&&(i.assetImage.canBeUsedAdvertising=!0),8===o&&(i.assetImage.canBeUsedEditorial=!1),(4===o||16===o||3!==o.riskLevel)&&(i.assetImage.canBeUsedElsewhere=!0),i.assetImage.expirationDays=o.expirationDays,a.copyImageData())},i.creativeCommonsLicenseSelected=function(){var o=i.ccLicense;if(a.form[i.prefix+"_selectCreativeCommonsLicense"].$setValidity("validateCreativeCommons",!1),o&&!o.validity)i.ccLicenseError=scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicensePlatformError_0+" "+o.name+" "+scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicensePlatformError_1;else{if(!o)return void(i.ccLicenseError=scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectLicenseError);a.form[i.prefix+"_selectCreativeCommonsLicense"].$setValidity("validateCreativeCommons",!0),i.ccLicenseError=null}i.assetImage.creativeCommonsLicense=o.name,a.copyImageData()},i.generateImageSource=function(){var o=i.assetImage.author,b=i.assetImage.author;switch(i.assetImage.sourceType){case 2:i.assetImage.author||(o=b=scope.currentScope.network.name);break;case 5:i.assetImage.pressServiceUrl&&(o+=", [source]("+i.assetImage.pressServiceUrl+")");break;case 7:i.ccLicense&&!i.ccLicense.validity?o=scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicenseError:i.ccLicense&&o&&(i.assetImage.title&&(o+=", ["+i.assetImage.title+"]",b=b+", "+i.assetImage.title),i.assetImage.sourceUrl&&(o+="("+i.assetImage.sourceUrl+")"),i.assetImage.creativeCommonsLicense&&(o+=", "+i.ccLicense.value,b+=", "+i.ccLicense.name));break;case 8:i.assetImage.agency&&(o=b="\xa9 "+o+" / "+i.assetImage.agency)}i.assetImage.source=o,i.visibleImageSource=b,a.copyImageData()},i.hasExpirationChanged=function(){i.hasExpirationDays||(i.assetImage.expirationDays=0)},i.overrideSourceChanged=function(){i.overrideSource?(i.sourceTypeSelected(),i.generateImageSource()):a.copyImageData()}}),a.$watch("files[0].assetImage.text",function(i,s,o){for(var b=1;b<r.length;b++){var p=r[b].assetImage.text;r[b].assetImage.text=p===s?i:p}}),a.copyImageData=function(){var i=r[0];angular.forEach(r,function(s,o){if(o>0&&!s.overrideSource){var b=s.assetImage.uploadGuid;s.assetImage=angular.copy(i.assetImage),s.assetImage.uploadGuid=b,s.visibleImageSource=i.visibleImageSource}})};var l=function(i){if(i&&i.indexOf(!1)){var s=i.split(".");return s[2]+"-"+s[1]+"-"+s[0]}return i};a.createImages=function(i){i&&(a.working=!0,angular.forEach(r,function(s){s.assetImage.dateOfScreenshot=l(s.assetImage.dateOfScreenshot),s.assetImage.dateOfPermission=l(s.assetImage.dateOfPermission),s.assetImage.mimeType=s.type,c(s.assetImage).then(function(o){g&&(o.assetImage.user=o.user,g(o)),a.working=!1,a.$dismiss()},function(){a.error=!0,a.working=!1})}))},a.cancel=function(){a.$dismiss()},a.submitOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_common_add"),disabled:a.working,focusStateEnabled:!1},a.cancleOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_common_cancel"),onClick:a.cancel},a.textAreaWrapperOptions={placeholder:t.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_textPlaceholder")}}]),app.controller("AssetCreateVideoDialog",["$rootScope","$interpolate","$scope","createAssetAsync","resultCallback","$http","authService","vimeoService","profileService",function(e,t,a,r,c,g,f,n,d){a.web_assetDialog_description=t(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:scope.currentScope.network.name}),a.title="",a.thumbnailUrl="",a.valid=!1,a.working=!1,a.error=!1,a.displayMediaManager=!1,a.assetText={type:-1,text:"",thumbnail:"",imageSource:"",uploadGuid:"",uploadError:"",source:""},a.externalData=null,scope.currentScope.network.settings.configurations.apicodoMediaServicesEnabled&&d.getProfile().then(function(s){(s.isJournalist||s.isMerkuristJournalist)&&(a.displayMediaManager=!0)}),a.assetTextExternalCallback=function(s){a.working=!1,a.assetText.title=s.title,a.assetText.thumbnailUrl=s.thumbnailUrl,a.externalData=s,a.assetText.type=13,a.assetText.attachment=s.attachment,a.assetText.text=s.attachment,a.valid=!0,r(a.assetText).then(function(o){c&&c(o),a.$dismiss()},function(){a.error=!0,a.working=!1})};var l=[{type:5,regEx:/(youtu\.be\/|youtube\.com\/watch\?(?:.*&)?v=)([a-z|0-9|_|-]+)/i,regExGroup:2},{type:5,regEx:/(youtu\.be\/|youtube\.com\/shorts\/)([a-z|0-9|_|-]+)(\?(.*))?/i,regExGroup:2},{type:6,regEx:/(facebook\.com\/(.*)\/videos\/)(vb\.[0-9]+\/)?([0-9]+)(.*)?/i,regExGroup:4},{type:7,regEx:/^(?:https?:\/\/)?(?:www\.)?vimeo\.com\/(?:manage\/videos\/|(?!manage))(\d+)(?:\/([0-9A-Za-z]+))?\/?$/i,regExGroup:1,regExSecretGroup:2},{type:13,regEx:/(?:media\.apicodo\.dev|media\.platform-services\.io)\/play\/([a-z|0-9|-]{36})\?guiMode\=iframe/i,regExGroup:1}];a.$watch("inputText",function(){if(a.valid=!1,a.inputText){if(a.assetText.text=a.inputText,a.showVimeoEmbed=!1,null!=a.externalData)return a.working=!1,a.assetText.title=callbackData.title,a.assetText.thumbnailUrl=callbackData.thumbnailUrl,a.externalData=callbackData,a.assetText.type=13,a.assetText.attachment=callbackData.attachment,a.assetText.text=callbackData.attachment,a.valid=!0,void(a.externalData=null);for(var s=0;s<l.length;s++)if(a.assetText.text.match(l[s].regEx)){a.assetText.type=l[s].type,a.assetText.attachment=l[s].regEx.exec(a.assetText.text)[l[s].regExGroup],a.assetText.attachment2=7===a.assetText.type?l[s].regEx.exec(a.assetText.text)[l[s].regExSecretGroup]:l[s].regEx.exec(a.assetText.text)[l[s].regExGroup-2],a.working=!0,5===a.assetText.type?g.get("https://www.googleapis.com/youtube/v3/videos?part=snippet&key=AIzaSyAk2ySSOTI2-ayM8g0gMpaanjQ6B-7NbXU&id="+a.assetText.attachment,{withCredentials:!1}).then(function(o){if(!o.data.items.length)return a.working=a.valid=!1,void(a.title=a.thumbnailUrl="");a.working=!1,a.valid=!0,a.title=o.data.items[0].snippet.title,a.thumbnailUrl=o.data.items[0].snippet.thumbnails.default.url},function(o){a.working=a.valid=!1,a.title=a.thumbnailUrl=""}):6===a.assetText.type?(a.working=!1,a.valid=!0,a.title="",a.thumbnailUrl="https://graph.facebook.com/"+a.assetText.attachment+"/picture"):7===a.assetText.type?n.getVideo(a.assetText.attachment,a.assetText.attachment2).then(function(o){a.title=o.name,a.thumbnailUrl=o.thumbnailUrl,a.working=!1,a.valid=!0},function(){a.valid=!0,a.showVimeoEmbed=!0,a.working=!1,a.title=a.thumbnailUrl=""}):13===a.assetText.type&&(a.externalData?(a.title=a.externalData.title,a.thumbnailUrl=a.externalData.thumbnailUrl,a.valid=!0,a.working=!1,a.externalData=null):f.getApicodoMediaToken().then(function(o){g.get(o.apiBase+"/api/Thumbnail/GetWebFrontendData?fileId="+a.assetText.attachment,{withCredentials:!1,headers:{Authorization:"bearer "+o.token}}).then(function(p){if(!p.data)return a.working=a.valid=!1,a.title=a.thumbnailUrl="",a.title=a.assetText.attachment,a.thumbnailUrl=o.apiBase+"/api/Thumbnail/GetWebFrontendData?fileId="+a.assetText.attachment,void(a.valid=!0);a.working=!1,a.valid=!0,a.title=p.data.title,a.thumbnailUrl=p.data.thumbnailUrl},function(p){a.working=a.valid=!1,a.title=a.thumbnailUrl="",a.externalData&&(a.title=a.externalData.title,a.thumbnailUrl=a.externalData.thumbnailUrl,a.valid=!0),console.log(p)})}));break}a.working||(a.title=a.description=a.thumbnailUrl="")}}),a.createAsset=function(){if(!a.working&&a.valid){switch(a.working=!0,a.assetText.type){case 5:a.assetText.text=a.assetText.attachment+"||"+a.title;break;case 6:a.assetText.text=a.assetText.attachment2+"/videos/"+a.assetText.attachment;break;case 7:a.assetText.text=a.assetText.attachment+"|"+a.thumbnailUrl,a.assetText.attachment2&&(a.assetText.text+="|"+a.assetText.attachment2);break;default:a.assetText.text=a.assetText.attachment}r(a.assetText).then(function(s){c&&(s.assetText.user=s.user,c(s)),a.$dismiss()},function(){a.error=!0,a.working=!1})}},a.assetButttonDisabled=a.working||!a.valid,a.createAssetButtonOptions={text:e.scope.currentScope.network.getResourceOrKeyName("web_common_add"),disable:a.assetButttonDisabled,onClick:function(s){a.createAsset()}},a.dismissButtonOptions={text:e.scope.currentScope.network.getResourceOrKeyName("web_common_cancel"),onClick:function(s){a.$dismiss()}},a.videoLinkTextboxOptions={placeholder:e.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createVideo_textPlaceholder"),value:a.inputText,showClearButton:!0,onValueChanged:function(s){a.inputText=s.value},onEnterKey:function(s){a.createAsset()}}}]),app.controller("AssetCreateWorkflowDialog",["$scope","$rootScope","$timeout","createAssetAsync","resultCallback","workflowService",function(e,t,a,r,c,g){let f;e.working=!1,e.error=!1,e.query="",e.assetText={type:14,text:"",imageSource:"",uploadGuid:"",uploadError:"",source:""},e.offset=0,e.limit=t.mobile?90:6,e.debounceTime=500,g.getEmbeddableWorkflowList().then(n=>{e.selectBoxOptions={dataSource:n,valueExpr:"id",name:"wokflowSelect",displayExpr:"name",inputAttr:{"aria-label":"workflow"},searchEnabled:!0,placeholder:t.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createWorkflow_embeddables_placeholder"),showClearButton:!0,stylingMode:"outlined",onValueChanged:d=>{e.working=!0,g.getWorkflowTemplate(d.value).then(i=>{e.workflow=i,e.working=!1},()=>{e.workflow=null,e.working=!1})}}}),e.searchWorkflow=function(){e.working=!0;var n=e.workflowUrl.lastIndexOf("/"),d=e.workflowUrl.lastIndexOf("?");d<n&&(d=e.workflowUrl.length);var l=e.workflowUrl.substring(n+1,d);g.getWorkflowTemplate(l).then(function(i){e.workflow=i,e.working=!1,e.error=!1},function(){e.workflow=null,e.working=!1,e.error=!0})},e.createAsset=function(){e.working||(e.working=!0,e.assetText.text=e.workflow.workflowTemplateId,r(e.assetText).then(function(n){c&&(n.assetText.user=n.user,c(n)),e.$dismiss()},function(){e.error=!0,e.working=!1}))},e.createAssetButtonOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_common_add"),onClick:e.createAsset},e.dismissButtonOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_common_cancel"),onClick:function(){e.$dismiss()}},e.textBoxOptions={value:e.workflowUrl,placeholder:t.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createWorkflow_textPlaceholder"),showClearButton:!0,onEnterKey:e.createAsset,onInput:function(n){f&&a.cancel(f),f=a(function(){e.workflowUrl=n.event.target.value,e.searchWorkflow()},e.debounceTime)},onValueChanged:function(n){e.workflowUrl=n.value,e.searchWorkflow()}}}]),app.controller("AssetDeleteDialog",["$scope","assetReference","assetService","isSponsored","profile",function(e,t,a,r,c){e.working=!1,e.error=!1,e.myArticle={},e.isSponsored=r,e.myAsset=t.assetImage?t.assetImage.user.guid===c.guid:t.assetText?t.assetText.user.guid===c.guid:t.assetFile.user,e.myAssetReference=t.user.guid===c.guid,e.isChildAsset=null!==t.parentGuid,e.deleteAsset=function(){e.working=!0,a.remove(t).then(function(){t.deleted=new Date,e.$dismiss()},function(){e.error=!0,e.working=!1})},e.deleteAssetReference=function(){e.working=!0,a.removeReference(t).then(function(){t.deleted=new Date,e.$dismiss()},function(){e.error=!0,e.working=!1})}}]),app.controller("AssetDialog",["$rootScope","$scope","article","sponsoredArticle","staticArticle","event","assetType","resultCallback","single","showOnlyImage","hideInComments","$timeout","$uibModal","assetService",function(e,t,a,r,c,g,f,n,d,l,i,s,o,b){t.working=!1,t.error=!1,t.article=a,t.sponsoredArticle=r,t.staticArticle=c,t.event=g,t.showOnlyImage=l,t.assetType=f,t.entity=a||r||c||g||null,t.assetReferencesWithAssetArticle=t.entity.assetReferences.filter(function(k){return null!==k.assetArticle}),t.assetReferencesWithAssetStaticArticle=t.entity.assetReferences.filter(function(k){return null!==k.assetStaticArticle});var p=e.scope.currentScope.network.settings.configurations.workflowConfiguration;t.canUseWorkflows=p?e.profile.isNewsroomAdmin||6===p.MinReferenceAsAssetRole&&e.profile.isHeadSales||5===p.MinReferenceAsAssetRole&&e.profile.isSales||4===p.MinReferenceAsAssetRole&&e.profile.isHeadJournalist||3===p.MinReferenceAsAssetRole&&e.profile.isMerkuristJournalist||2===p.MinReferenceAsAssetRole&&e.profile.isJournalist:e.profile.isNewsroomAdmin;var h=function(){return t.article?"article":t.sponsoredArticle?"sponsoredArticle":t.staticArticle?"staticArticle":t.event?"event":null},I=function(k){t.entity.assetReferences.unshift(k),s(function(){var u=$("#asset-list-assetReference-"+k.guid).parent();$(u).animate({scrollLeft:0},1e3)},500)};t.assetCreateImageDialog=function(k,R,u){k&&0!==k.length?R.length||o.open({templateUrl:"Redesign2024"==e.scope.network.settings.configurations.contentRenderEngine?"/ClientApp/src/redesign/asset/assetCreateImageDialog.html":"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return k},resultCallback:function(){return I},createAssetAsync:function(){return a?function(U){return b.insertAssetImageToArticle(U,a.id,i)}:r?function(U){return b.insertAssetImageToSponsoredArticle(U,r.id)}:c?function(U){return b.insertAssetImageToStaticArticle(U,c.id)}:g?function(U){return b.insertAssetImageToEvent(U,g.id,i)}:void 0}}}):R||u.$setPristine()},t.assetCreateFileDialog=function(k,R,u){k&&0!==k.length?o.open({templateUrl:"Redesign2024"==e.scope.network.settings.configurations.contentRenderEngine?"/ClientApp/src/redesign/asset/assetCreateFileDialog.html":"/ClientApp/src/legacy-app/asset/assetCreateFileDialog.html",controller:"AssetCreateFileDialog",size:"lg",resolve:{files:function(){return k},resultCallback:function(){return I},createAssetAsync:function(){return a?function(U){return b.insertAssetFileToArticle(U,a.id,i)}:r?function(U){return b.insertAssetFileToSponsoredArticle(U,r.id)}:c?function(U){return b.insertAssetFileToStaticArticle(U,c.id)}:g?function(U){return b.insertAssetFileToEvent(U,g.id,i)}:void 0}}}):R||u.$setPristine()},t.assetCreateVideoDialog=function(){o.open({templateUrl:"Redesign2024"==e.scope.network.settings.configurations.contentRenderEngine?"/ClientApp/src/redesign/asset/assetCreateVideoDialog.html":"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return I},createAssetAsync:function(){return a?function(k){return b.insertAssetTextToArticle(k,a.id,i)}:r?function(k){return b.insertAssetTextToSponsoredArticle(k,r.id)}:c?function(k){return b.insertAssetTextToStaticArticle(k,c.id)}:g?function(k){return b.insertAssetTextToEvent(k,g.id,i)}:void 0}}})},t.assetCreateWorkflowDialog=function(){o.open({templateUrl:"Redesign2024"==e.scope.network.settings.configurations.contentRenderEngine?"/ClientApp/src/redesign/asset/assetCreateWorkflowDialog.html":"/ClientApp/src/legacy-app/asset/assetCreateWorkflowDialog.html",controller:"AssetCreateWorkflowDialog",size:"lg",resolve:{resultCallback:function(){return I},createAssetAsync:function(){return a?function(k){return b.insertAssetTextToArticle(k,a.id,i)}:r?function(k){return b.insertAssetTextToSponsoredArticle(k,r.id)}:c?function(k){return b.insertAssetTextToStaticArticle(k,c.id)}:g?function(k){return b.insertAssetTextToEvent(k,g.id,i)}:void 0}}})},t.assetCreateGifDialog=function(){o.open({templateUrl:"Redesign2024"==e.scope.network.settings.configurations.contentRenderEngine?"/ClientApp/src/redesign/asset/assetCreateGifDialog.html":"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return I},createAssetAsync:function(){return a?function(k){return b.insertAssetTextToArticle(k,a.id,i)}:r?function(k){return b.insertAssetTextToSponsoredArticle(k,r.id)}:c?function(k){return b.insertAssetTextToStaticArticle(k,c.id)}:g?function(k){return b.insertAssetTextToEvent(k,g.id,i)}:void 0}}})},t.assetPixabaySearchDialog=function(){o.open({templateUrl:"Redesign2024"==e.scope.network.settings.configurations.contentRenderEngine?"/ClientApp/src/redesign/asset/pixabaySearchDialog.html":"/ClientApp/src/legacy-app/asset/pixabay/pixabaySearchDialog.html",controller:"pixabaySearchDialog",size:"lg",resolve:{resultCallback:function(){return I},assetContainer:{articleId:a?a.id:null,sponsoredArticleId:r?r.id:null,staticArticleId:c?c.id:null,eventId:g?g.id:null,hideInComments:i??!1},createAssetAsync:function(){return a?function(k){return b.insertAssetTextToArticle(k,a.id,i)}:r?function(k){return b.insertAssetTextToSponsoredArticle(k,r.id)}:c?function(k){return b.insertAssetTextToStaticArticle(k,c.id)}:g?function(k){return b.insertAssetTextToEvent(k,g.id,i)}:void 0}}})},t.assetCreateFactDialog=function(){o.open({templateUrl:"Redesign2024"==e.scope.network.settings.configurations.contentRenderEngine?"/ClientApp/src/redesign/asset/assetCreateFactDialog.html":"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return I},createAssetAsync:function(){return a?function(k){return b.insertAssetTextToArticle(k,a.id,i)}:r?function(k){return b.insertAssetTextToSponsoredArticle(k,r.id)}:c?function(k){return b.insertAssetTextToStaticArticle(k,c.id)}:g?function(k){return b.insertAssetTextToEvent(k,g.id,i)}:void 0}}})},t.assetCreateQuestionDialog=function(){o.open({templateUrl:"Redesign2024"==e.scope.network.settings.configurations.contentRenderEngine?"/ClientApp/src/redesign/asset/assetCreateQuestionDialog.html":"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return I},createAssetAsync:function(){return a?function(k){return b.insertAssetTextToArticle(k,a.id,i)}:r?function(k){return b.insertAssetTextToSponsoredArticle(k,r.id)}:c?function(k){return b.insertAssetTextToStaticArticle(k,c.id)}:g?function(k){return b.insertAssetTextToEvent(k,g.id,i)}:void 0}}})},t.assetSearchDialog=function(){o.open({templateUrl:"Redesign2024"==e.scope.network.settings.configurations.contentRenderEngine?"/ClientApp/src/redesign/asset/assetSearchDialog.html":"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return I},snipId:function(){return t.snip?t.snip.id:null},articleId:function(){return t.article?t.article.id:null},sponsoredArticleId:function(){return t.sponsoredArticle?t.sponsoredArticle.id:null},staticArticleId:function(){return t.staticArticle?t.staticArticle.id:null},eventId:function(){return t.event?t.event.id:null},assetReferences:function(){return t.entity.assetReferences}}})};var y=function(k){t.entity.assetReferences.push(k),t.assetReferencesWithAssetArticle.unshift(k)};t.showAddArticleDialog=function(){o.open({templateUrl:"/ClientApp/src/legacy-app/asset/addAssetArticleDialog.html",controller:"AddAssetArticleDialogController",controllerAs:"$ctrl",size:"lg",resolve:{ownerId:function(){return t.entity.id},ownerType:function(){return h()},onAddSuccessful:function(){return y}}})};var C=function(k){t.entity.assetReferences.push(k),t.assetReferencesWithAssetStaticArticle.unshift(k)};t.showAddStaticArticleDialog=()=>{o.open({templateUrl:"Redesign2024"==e.scope.network.settings.configurations.contentRenderEngine?"/ClientApp/src/redesign/asset/addAssetStaticArticleDialog.html":"/ClientApp/src/legacy-app/asset/addAssetStaticArticleDialog.html",controller:"AddAssetStaticArticleDialogController",controllerAs:"$ctrl",size:"lg",resolve:{ownerId:function(){return t.entity.id},ownerType:function(){return h()},onAddSuccessful:function(){return C}}})},t.$watchCollection("entity.assetReferences",function(k){if(t.assetsMedia=[],t.assetsFacts=[],t.assetsQuestions=[],t.assetsComments=[],t.assetsImages=[],t.assetsFiles=[],t.assetsWorkflows=[],k&&angular.isDefined(k)){var R=[];k.forEach(function(u){u.deleted||(u.childAssets=[],u.parentGuid||R.push(u))}),R.forEach(function(u){k.forEach(function(U){U.parentGuid&&u.guid===U.parentGuid&&u.childAssets.push(U)}),null!==u.assetFile&&t.assetsFiles.push(u),null!==u.assetImage||null!==u.assetText&&(5===u.assetText.type||6===u.assetText.type||7===u.assetText.type||10===u.assetText.type||13===u.assetText.type)?(t.assetsMedia.push(u),null!==u.assetImage&&t.assetsImages.push(u)):null!==u.assetText&&(8===u.assetText.type?t.assetsFacts.push(u):9===u.assetText.type?t.assetsQuestions.push(u):0===u.assetText.type?t.assetsComments.push(u):14===u.assetText.type&&t.assetsWorkflows.push(u))})}});var x=new Map;t.toggleAssetAdded=function(k,R){d?(n(k),t.$dismiss()):R?x.set(k.guid,k):x.delete(k.guid)},t.cancel=function(){d||n(Array.from(x.values())),t.$dismiss()},t.articleAssetToggle={},t.toggleAssetArticleAdded=function(k){d?(n(k),t.$dismiss()):(t.articleAssetToggle[k.guid]=!t.articleAssetToggle[k.guid],t.articleAssetToggle[k.guid]?x.set(k.guid,k):x.delete(k.guid))},t.addArticleButtonOptions={onClick:t.showAddArticleDialog,text:e.scope.currentScope.network.getResourceOrKeyName("web_asset_createArticleAsset").toUpperCase(),width:"100%"},t.addStaticArticleButtonOptions={onClick:t.showAddStaticArticleDialog,text:e.scope.currentScope.network.getResourceOrKeyName("web_asset_createStaticArticleAsset").toUpperCase(),width:"100%"},t.addPixabayButtonOptions={onClick:t.assetPixabaySearchDialog,text:e.scope.currentScope.network.getResourceOrKeyName("web_asset_searchPixabay").toUpperCase(),width:"100%"},t.addGifButtonOptions={onClick:t.assetCreateGifDialog,text:e.scope.currentScope.network.getResourceOrKeyName("web_asset_createGif").toUpperCase(),width:"100%",visible:!t.showOnlyImage},t.addVideoButtonOptions={onClick:t.assetCreateVideoDialog,text:e.scope.currentScope.network.getResourceOrKeyName("web_asset_createVideo").toUpperCase(),width:"100%",visible:!t.showOnlyImage},t.addImageButtonOptions={text:e.scope.currentScope.network.getResourceOrKeyName("web_asset_createImage").toUpperCase(),width:"100%"},t.addFileButtonOptions={text:e.scope.currentScope.network.getResourceOrKeyName("web_asset_upload_file").toUpperCase(),width:"100%"},t.addWorkflowButtonOptions={onClick:t.assetCreateWorkflowDialog,text:e.scope.currentScope.network.getResourceOrKeyName("web_asset_createWorkflowAsset").toUpperCase(),width:"100%"},t.addQuestionButtonOptions={onClick:t.assetCreateQuestionDialog,text:e.scope.currentScope.network.getResourceOrKeyName("web_asset_createQuestion").toUpperCase(),width:"100%"},t.addFactButtonOptions={onClick:t.assetCreateFactDialog,text:e.scope.currentScope.network.getResourceOrKeyName("web_asset_createFact").toUpperCase(),width:"100%"},t.assetSearchButtonOptions={onClick:t.assetSearchDialog,text:e.scope.currentScope.network.getResourceOrKeyName("web_asset_createMaterial").toUpperCase(),width:"100%"}}]).value("article",null).value("sponsoredArticle",null).value("staticArticle",null).value("event",null),app.controller("AssetEditDialog",["$scope","assetReference","assetService","$rootScope",function(e,t,a,r){e.working=!1,e.error=!1,e.assetReference=t,e.updateImageText=function(){e.working=!0,a.updateImageText(t).then(function(){e.$dismiss(),r.$broadcast("$$rebind::refresh")},function(){e.error=!0,e.working=!1})}}]),app.controller("AssetImageFocuspointDialog",["$scope","assetReference","assetService","$timeout","$rootScope",function(e,t,a,r,c){e.working=!1,e.error=!1,e.assetReference=t;var g,f,n,l=4/3,i="Redesign2024"==c.scope.network.settings.configurations?.contentRenderEngine,o=function(h,I,y,C){let k,R;h/I>C?(k=I*C,R=I):(k=h,R=h/C);let F=y.x+y.w/2-k/2,w=y.y+y.h/2-R/2;return F+k>f.width()&&(F=f.width()-k),F<0&&(F=0),w+R>I&&(w=I-R),w<0&&(w=0),{x:F,y:w,w:k,h:R}},b=function(h,I,y){let x=40;screen.width<769&&(x=20);let k=0;screen.width<991&&(k=66),presetImgDimensions=o(f.width(),f.height(),I,2.6857142857142855),targetImgDimensions=o(presetImgDimensions.w,presetImgDimensions.h,I,y),h.style.top=targetImgDimensions.y+presetImgDimensions.y+k+"px",h.style.left=targetImgDimensions.x+x+"px",h.style.width=targetImgDimensions.w+"px",h.style.height=targetImgDimensions.h+"px",h.style.display="block"},p=function(h){if(h){var I=f.width(),y=f.height();h.x<0&&(h.x=0),h.x2>=I&&(h.x2=I-1),h.y<0&&(h.y=0),h.y2>=y&&(h.y2=y-1),g.x1=Math.round(g.width/I*h.x),g.x2=Math.round(g.width/I*h.x2),g.y1=Math.round(g.height/y*h.y),g.y2=Math.round(g.height/y*h.y2),i||b(document.getElementById("mobileFrame"),h,1.45)}else g.x1=g.x2=g.y1=g.y2=null};e.imageLoad=function(){a.getAssetImageProcessing(t.assetImage.guid).then(function(h){g=h;var I=(f=$(".assetImageFocuspointDialog-asset")).width(),y=f.height();let C=function(h,I,y){if(null!==h.x1&&null!==h.x2&&null!==h.y1&&null!==h.y2)return{x:Math.round(I/h.width*h.x1),y:Math.round(y/h.height*h.y1),x2:Math.round(I/h.width*h.x2),y2:Math.round(y/h.height*h.y2),w:Math.round(I/h.width*h.x2)-Math.round(I/h.width*h.x1),h:Math.round(y/h.height*h.y2)-Math.round(y/h.height*h.y1)};if(i){let C,x,k,R,u,U;if(I/y==l)return{x:0,x2:I,y:0,y2:y,w:I,h:y};if(I<y||I==y)return C=I/l,R=y/2-C/2,U=R+C,{h:C,x:0,x2:I,y:R,y2:U,w:I};if(I>y)return x=y*l,k=I/2-x/2,u=k+x,{w:x,y:0,y2:y,x:k,x2:u,h:y}}}(g,I,y);i?(f.Jcrop({onSelect:p,onRelease:p,allowResize:!1,allowSelect:!1},function(){n=this}),n.animateTo(I>y?[C.x,C.y,C.x2,C.y2+5]:[C.x,C.y,C.x2+5,C.y2])):(f.Jcrop({onSelect:p,onRelease:p},function(){n=this}),C&&(n.animateTo([C.x,C.y,C.x2,C.y2]),b(document.getElementById("mobileFrame"),C,1.45)))},function(){e.error=!0})},e.save=function(){a.updateAssetImageProcessingFocuspoint(t.assetImage.guid,g).then(function(){t.assetImage.cache++,r(function(){c.$broadcast("lazyImg:refresh",t.assetImage.guid)}),e.$dismiss()},function(){e.error=!0})},e.reset=function(){g.x1=g.x2=g.y1=g.y2=null,a.updateAssetImageProcessingFocuspoint(t.assetImage.guid,g).then(function(){t.assetImage.cache++,r(function(){c.$broadcast("lazyImg:refresh",t.assetImage.guid)}),e.$dismiss()},function(){e.error=!0})}}]),app.component("assetList",{templateUrl:"/ClientApp/src/legacy-app/asset/assetList.html",bindings:{sponsored:"<?",archived:"<?",assetImages:"<",assetFiles:"<",assetTexts:"<",assetReferences:"=",assetLimitStart:"<",loanCallback:"&"},controller:["$uibModal","$rootScope","assetService",function(e,t,a){var r=this;r.mobile=t.mobile,r.profile=t.profile,r.order=t.scope.currentScope.chapter.settings.assetOrderByPublished?"-created":"-likes",r.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,r.cookieManager=0,r.coverImage=t.scope.globalSettings.blobStorageCdnUrl+"/logo/chapter/picture/"+t.scope.currentScope.chapter.slug+"?cache="+t.scope.currentScope.chapter.settings.chapterPictureCache+"&profile=profile-cover",r.isRedesign="Redesign2024"==t.scope.currentScope.network.settings.configurations.contentRenderEngine,t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&(r.cookieManager=t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),r.isBuiltInCookieManager=1===r.cookieManager,this.$onInit=function(){r.assetLimitStart=r.assetLimitStart||12,r.assetLimit=r.assetLimitStart,r.loanCallback&&(r.loanCallback=r.loanCallback())},r.assetToggle={},r.toggleAssetAdded=function(c){r.assetToggle[c.guid]=!r.assetToggle[c.guid],r.loanCallback(c,r.assetToggle[c.guid]),null!=c.assetImage&&((new Image).src=c.assetImage.assetImageUrl+"?preset=asset-embed{{ ::($ctrl.enableHighQualityImage ? '-hq' : '') }}&cache=0",(new Image).src=c.assetImage.assetImageUrl+"?preset=asset-image-large&cache=0")},r.getAssets=function(){var c=r.assetReferences||[];return r.assetFiles&&(r.assetFiles.forEach(function(g){g.assetFile=g,g.fake=!0}),c=c.concat(r.assetFiles)),r.assetImages&&(r.assetImages.forEach(function(g){g.assetImage=g,g.fake=!0}),c=c.concat(r.assetImages)),r.assetTexts&&(r.assetTexts.forEach(function(g){g.assetText=g,g.fake=!0}),c=c.concat(r.assetTexts)),c},r.deleteAsset=function(c){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDeleteDialog.html",controller:"AssetDeleteDialog",size:"lg",resolve:{assetReference:function(){return c},isSponsored:function(){return r.sponsored},profile:function(){return r.profile}}})},r.openApicodoVideo=function(c){e.open({templateUrl:"/ClientApp/src/legacy-app/media/apicodoMediaPlayDialog.html",controller:"apicodoMediaPlayDialog",size:"lg",resolve:{videoId:function(){return c.assetText.text}}})},r.reportAsset=function(c){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetReportDialog.html",controller:"AssetReportDialog",size:"lg",resolve:{assetReference:function(){return c}}})},r.listChildAssets=function(c){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetChildListDialog.html",controller:"AssetChildListDialog",size:"lg",resolve:{parentAssetReference:function(){return c},archived:function(){return r.archived},reportAsset:function(){return r.reportAsset},deleteAsset:function(){return r.deleteAsset}}})},r.calcLimit=function(c){r.assetLimit=r.assetReferences.length-c.length>r.assetLimitStart?c.length+r.assetLimitStart:r.assetReferences.length},r.assetImageFocuspointDialog=function(c){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return c}}})},r.assetEditDialog=function(c){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetEditDialog.html",controller:"AssetEditDialog",size:"lg",resolve:{assetReference:function(){return c}}})},r.toggleMenu=function(c){c.menuVisible=!!angular.isUndefined(c.menuVisible)||!c.menuVisible},r.showCookieInfo=function(c){if(!t.app){if(!r.isBuiltInCookieManager)return!1;const{twitter:g,youTube:f,facebook:n,vimeo:d,giphy:l}=t.scope.profile.settings.externalMediaPermissions;switch(c.assetText.type){case 4:return!g?.granted;case 5:return!f?.granted;case 6:return!n?.granted;case 7:return!d?.granted;case 10:return!l?.granted;default:return!1}}return!1},r.toggleAssetHideInComments=function(c){a.updateAssetReferenceHideInComments(c.guid),c.hideInComments=!c.hideInComments},r.authorized=function(){return r.profile.chapterRoles?.some(c=>2==c||3==c||4==c||7==c)}}]}),app.component("assetListWorkflowItem",{templateUrl:"/ClientApp/src/legacy-app/asset/assetListWorkflowItem.html",bindings:{workflowId:"<"},controller:["workflowService",function(e){var t=this;this.$onInit=function(){e.getWorkflowTemplate(t.workflowId).then(function(a){t.workflow=a})}}]}),app.directive("assetpreview",[function(){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/asset/assetpreview.html",replace:!0,scope:{article:"=article"},link:function(e,t,a){e.$watch(a.article,function(){e.assetReference=$.grep(e.article.assetReferences,function(r){return r.guid===a.assetGuid})[0]})}}}]),app.controller("AssetReportDialog",["$scope","assetReference","assetService",function(e,t,a){e.working=!1,e.error=!1,e.type=-1,e.reportAsset=function(){e.working=!0,a.report(t,e.type).then(function(){e.working=!1,e.$dismiss()},function(){e.error=!0,e.working=!1,e.$dismiss()})}}]),app.controller("AssetSearchDialog",["$rootScope","$scope","$state","snipId","articleId","sponsoredArticleId","staticArticleId","eventId","assetReferences","resultCallback","assetService","searchService","profileService",function(e,t,a,r,c,g,f,n,d,l,i,s,o){t.valid=!1,t.thumbnailUrl="",t.activePage=1,t.searchPage=0,t.assetReferences=[],t.selectedAssetReferences=[],t.isSponsoredArticle=!!g,t.isRedesign="Redesign2024"==e.scope.network.settings.configurations?.contentRenderEngine,o.getProfile().then(function(R){guid=R.guid}),this.query=function b(){return a.includes("app.search")?$location.getArticles().q:""}(),t.clear=function(){this.query="",hits=null};var h=function(R){var u=!1;return angular.forEach(d,function(U){(null!==U.assetImage&&U.assetImage.guid===R||null!==U.assetText&&U.assetText.guid===R||null!==U.assetFile&&U.assetFile.guid===R)&&(u=!0)}),u};function C(R){t.showAssetImages=!1,t.showAssetFiles=!1,t.showArticles=!1,t.show=!0,angular.forEach(R,function(u){u&&(u.disabled=h(u.guid),t.assetImageHits=t.assetImageHits.concat(u))})}function k(R){t.showAssetImages=!1,t.showAssetFiles=!1,t.showArticles=!1,t.show=!0,angular.forEach(R,function(u){u&&(u.disabled=h(u.guid),t.assetFileHits.push(u))})}t.showMoreArticles=function(){t.searchPage++,t.isSponsoredArticle?s.getAssetSponsoredArticles(this.query,t.searchPage=t.searchPage).then(function(R){t.show=!1,t.showArticles=!0,angular.forEach(R,function(u){u.assetReferences.length&&(t.articleHits=t.articleHits.concat(u))})}):s.getAssetArticles(this.query,t.searchPage=t.searchPage).then(function(R){t.show=!1,t.showArticles=!0,t.totalArticles=R.total,angular.forEach(R.articles,function(u){u.assetReferences.length&&(t.articleHits=t.articleHits.concat(u))})})},t.showMoreAssetImages=function(){t.searchPage++,t.isSponsoredArticle?s.getSponsoredAssetImages(this.query,t.searchPage=t.searchPage,this.mobile?90:6).then(function(R){t.show=!1,t.showAssetImages=!0,angular.forEach(R,function(u){u&&(u.disabled=h(u.guid),t.assetImageHits=t.assetImageHits.concat(u))})}):s.getAssetImages(this.query,t.searchPage=t.searchPage,this.mobile?90:6).then(function(R){t.show=!1,t.showAssetImages=!0,angular.forEach(R,function(u){u&&(u.disabled=h(u.guid),t.assetImageHits=t.assetImageHits.concat(u))})})},t.showMoreAssetFiles=function(){t.searchPage++,t.isSponsoredArticle?s.getSponsoredAssetFiles(this.query,t.searchPage=t.searchPage,this.mobile?90:6).then(function(R){t.show=!1,t.showAssetFiles=!0,angular.forEach(R,function(u){u&&(u.disabled=h(u.guid),t.assetFileHits=t.assetFileHits.concat(u))})}):s.getAssetFiles(this.query,t.searchPage=t.searchPage,this.mobile?90:6).then(function(R){t.show=!1,t.showAssetFiles=!0,angular.forEach(R,function(u){u&&(u.disabled=h(u.guid),t.assetFileHits=t.assetFileHits.concat(u))})})},t.goBack=function(){t.activePage=1,t.show=!0,t.showAssetImages=!1,t.showAssetFiles=!1,t.showArticles=!1,!this.mobile&&t.assetImageHits&&t.assetImageHits.length>6&&(t.assetImageHits.splice(6),t.searchPage=0)},t.clickArticle=function(R){t.selectedArticle=R,angular.forEach(R.assetReferences,function(u){null!==u.assetImage?u.assetImage.isAdded=h(u.assetImage.guid):null!==u.assetText&&(u.assetText.isAdded=h(u.assetText.guid))}),t.assetReferences=R.assetReferences,t.activePage=2},t.addAssetImage=function(R){if(R){var u={assetImageGuid:R.guid};t.isRedesign&&(u.hideInComments=!0),t.createAssetReference(u),R.disabled=!0}},t.addAssetFile=function(R){R&&(t.createAssetReference({assetFileGuid:R.guid}),R.disabled=!0)},t.addAssetText=function(R){R&&(t.createAssetReference({assetTextGuid:R.guid}),R.isAdded=!0)},t.search=function(){(function I(){a.includes("app.search")?$location.getArticles("q",t.query):(t.articleHits=[],""===t.query?t.articleHits=null:t.isSponsoredArticle?s.getAssetSponsoredArticles(t.query,t.searchPage=0).then(function(R){t.show=!0,angular.forEach(R,function(u){u.assetReferences.length&&(t.articleHits=t.articleHits.concat(u))})}):s.getAssetArticles(t.query,t.searchPage=0).then(function(R){t.show=!0,t.totalArticles=R.total,angular.forEach(R.articles,function(u){u.assetReferences.length&&(t.articleHits=t.articleHits.concat(u))})}))})(),function y(){a.includes("app.search")?$location.getArticles("q",t.query):(t.assetImageHits=[],""===t.query?t.assetImageHits=null:t.isSponsoredArticle?s.getSponsoredAssetImages(t.query,t.searchPage=0,t.mobile?90:6).then(C):s.getAssetImages(t.query,t.searchPage=0,t.mobile?90:6).then(C))}(),function x(){a.includes("app.search")?$location.getArticles("q",t.query):(t.assetFileHits=[],""===t.query?t.assetFileHits=null:t.isSponsoredArticle?s.getSponsoredAssetFiles(t.query,t.searchPage=0,t.mobile?90:6).then(k):s.getAssetFiles(t.query,t.searchPage=0,t.mobile?90:6).then(k))}()},t.createAssetReferences=function(){t.working||0===t.selectedAssetReferences.length||angular.forEach(t.selectedAssetReferences,function(R){null!==R.assetImage?t.createAssetReference({assetImageId:R.assetImage.id}):null!==R.assetText&&t.createAssetReference({assetImageId:null})})},t.createAssetReference=function(R){t.working=!0,R.snipId=r,R.articleId=c,R.sponsoredArticleId=g,R.staticArticleId=f,R.eventId=n,i.insertReference(R).then(function(u){l&&l(u),t.working=!1},function(){t.error=!0,t.working=!1})}}]).value("articleId",null).value("snipId",null).value("sponsoredArticleId",null).value("staticArticleId",null).value("eventId",null),app.factory("assetService",["$http","$q",function(e,t){return{getChildren:function(v,A){var T=t.defer();return e.get(scope.apiEndpoint+"assets/"+v+"/children"+(A?"?start="+A:"")).then(function(D){T.resolve(D.data)},function(D){T.reject()}),T.promise},getAssetImageProcessing:function(v){var A=t.defer();return e.get(scope.apiEndpoint+"assets/"+v+"/imageprocessing").then(function(T){A.resolve(T.data)},function(){A.reject()}),A.promise},insertAssetImageToArticle:function(v,A,T){v.hideInComments=T??!1;var D=t.defer();return e.post(scope.apiEndpoint+"assets/image/article/"+A,v).then(function(m){var M=m.data;M.myAsset=!0,new Date(M.created)>new Date&&(M.created=(new Date).toISOString()),D.resolve(m.data)},function(){D.reject()}),D.promise},insertAssetImageToSnip:function(v,A){var T=t.defer();return e.post(scope.apiEndpoint+"assets/image/snip/"+A,v).then(function(D){var m=D.data;m.myAsset=!0,new Date(m.created)>new Date&&(m.created=(new Date).toISOString()),T.resolve(D.data)},function(){T.reject()}),T.promise},insertAssetImageToSponsoredArticle:function(v,A){var T=t.defer();return e.post(scope.apiEndpoint+"assets/image/sponsoredArticle/"+A,v).then(function(D){var m=D.data;m.myAsset=!0,new Date(m.created)>new Date&&(m.created=(new Date).toISOString()),T.resolve(D.data)},function(){T.reject()}),T.promise},insertAssetImageToStaticArticle:function(v,A){var T=t.defer();return e.post(scope.apiEndpoint+"assets/image/staticArticle/"+A,v).then(function(D){var m=D.data;m.myAsset=!0,new Date(m.created)>new Date&&(m.created=(new Date).toISOString()),T.resolve(D.data)},function(){T.reject()}),T.promise},insertAssetImageToEvent:function(v,A,T){v.hideInComments=T??!1;var D=t.defer();return e.post(scope.apiEndpoint+"assets/image/event/"+A,v).then(function(m){var M=m.data;M.myAsset=!0,new Date(M.created)>new Date&&(M.created=(new Date).toISOString()),D.resolve(m.data)},function(){D.reject()}),D.promise},insertAssetTextToArticle:function(v,A,T){v.hideInComments=T??!1;var D=t.defer();return e.post(scope.apiEndpoint+"assets/text/article/"+A,v).then(function(m){var M=m.data;M.myAsset=!0,new Date(M.created)>new Date&&(M.created=(new Date).toISOString()),D.resolve(m.data)},function(){D.reject()}),D.promise},insertAssetTextToSnip:function(v,A){var T=t.defer();return e.post(scope.apiEndpoint+"assets/text/snip/"+A,v).then(function(D){var m=D.data;m.myAsset=!0,new Date(m.created)>new Date&&(m.created=(new Date).toISOString()),T.resolve(D.data)},function(){T.reject()}),T.promise},insertAssetTextToSponsoredArticle:function(v,A){var T=t.defer();return e.post(scope.apiEndpoint+"assets/text/sponsoredArticle/"+A,v).then(function(D){var m=D.data;m.myAsset=!0,new Date(m.created)>new Date&&(m.created=(new Date).toISOString()),T.resolve(D.data)},function(){T.reject()}),T.promise},insertAssetTextToStaticArticle:function(v,A){var T=t.defer();return e.post(scope.apiEndpoint+"assets/text/staticArticle/"+A,v).then(function(D){var m=D.data;m.myAsset=!0,new Date(m.created)>new Date&&(m.created=(new Date).toISOString()),T.resolve(D.data)},function(){T.reject()}),T.promise},insertAssetTextToEvent:function(v,A,T){v.hideInComments=T??!1;var D=t.defer();return e.post(scope.apiEndpoint+"assets/text/event/"+A,v).then(function(m){var M=m.data;M.myAsset=!0,new Date(M.created)>new Date&&(M.created=(new Date).toISOString()),D.resolve(m.data)},function(){D.reject()}),D.promise},insertAssetFileToArticle:function(v,A,T){v.hideInComments=T??!1;var D=t.defer();return e.post(scope.apiEndpoint+"assets/file/article/"+A,v).then(function(m){var M=m.data;M.myAsset=!0,new Date(M.created)>new Date&&(M.created=(new Date).toISOString()),D.resolve(m.data)},function(){D.reject()}),D.promise},insertAssetFileToStaticArticle:function(v,A){var T=t.defer();return e.post(scope.apiEndpoint+"assets/file/staticArticle/"+A,v).then(function(D){var m=D.data;m.myAsset=!0,new Date(m.created)>new Date&&(m.created=(new Date).toISOString()),T.resolve(D.data)},function(){T.reject()}),T.promise},insertAssetFileToSponsoredArticle:function(v,A){var T=t.defer();return e.post(scope.apiEndpoint+"assets/file/sponsoredArticle/"+A,v).then(function(D){var m=D.data;m.myAsset=!0,new Date(m.created)>new Date&&(m.created=(new Date).toISOString()),T.resolve(D.data)},function(){T.reject()}),T.promise},insertAssetFileToEvent:function(v,A,T){v.hideInComments=T??!1;var D=t.defer();return e.post(scope.apiEndpoint+"assets/file/event/"+A,v).then(function(m){var M=m.data;M.myAsset=!0,new Date(M.created)>new Date&&(M.created=(new Date).toISOString()),D.resolve(m.data)},function(){D.reject()}),D.promise},insertChild:function(v,A){var T=t.defer();return e.post(scope.apiEndpoint+"assets/"+v+"/children",A).then(function(D){var m=D.data;m.myAsset=!0,new Date(m.created)>new Date&&(m.created=(new Date).toISOString()),T.resolve(D.data)},function(){T.reject()}),T.promise},insertReference:function(v){var A=t.defer();return e.post(scope.apiEndpoint+"assets/reference",v).then(function(T){var D=T.data;D.myAsset=!0,new Date(D.created)>new Date&&(D.created=(new Date).toISOString()),A.resolve(T.data)},function(){A.reject()}),A.promise},report:function(v,A){var T=t.defer();return e.put(scope.apiEndpoint+"assets/"+v.guid+"/report/"+A).then(function(D){T.resolve(D.data)},function(){T.reject()}),T.promise},like:function(v){var A=t.defer();return e.put(scope.apiEndpoint+"assets/"+v+"/like",{ignoreLoadingBar:!0}).then(function(T){A.resolve(T.data)},function(){A.reject()}),A.promise},updateAssetImageProcessingFocuspoint:function(v,A){var T=t.defer();return e.put(scope.apiEndpoint+"assets/"+v+"/imageprocessing/focuspoint",A).then(function(D){T.resolve()},function(){T.reject()}),T.promise},updateImageText:function(v){var A=t.defer();return e.put(scope.apiEndpoint+"assets/image/"+v.assetImage.guid,v.assetImage).then(function(T){A.resolve(T.data)},function(){A.reject()}),A.promise},remove:function(v){var A=t.defer();return e.delete(scope.apiEndpoint+"assets/"+v.guid).then(function(T){A.resolve(T.data)},function(){A.reject()}),A.promise},removeReference:function(v){var A=t.defer();return e.delete(scope.apiEndpoint+"assets/reference/"+v.guid).then(function(T){A.resolve(T.data)},function(){A.reject()}),A.promise},updateAssetReferenceHideInComments:function(v){var A=t.defer();return e.put(scope.apiEndpoint+"assets/Reference/HideInComments/"+v).then(function(T){A.resolve(T.data)},function(){A.reject()}),A.promise}}}]),app.component("assetUserBadge",{templateUrl:"/ClientApp/src/legacy-app/asset/assetUserBadge.html",bindings:{assetText:"<?",assetImage:"<?",assetFile:"<?"},controller:["$state","$scope",function(e,t){var a=this;a.showVerifiedUser=!1,a.isEditorState=e.includes("app.articleEdit")||e.includes("app.staticArticleEditAdmin")||e.includes("app.sponsoredArticleEdit"),a.$onInit=function(){a.assetFile&&a.assetFile.user.isVerifiedUser&&(a.showVerifiedUser=!0),a.assetImage&&a.assetImage.user.isVerifiedUser&&(a.showVerifiedUser=!0),a.assetText&&a.assetText.user.isVerifiedUser&&(a.showVerifiedUser=!0)}}]}),app.controller("pixabaySearchDialog",["$scope","$rootScope","assetContainer","resultCallback",function(e,t,a,r){e.working=!1,e.error=!1,e.assetContainer=a,e.resultCallback=r,e.dismiss=e.$dismiss(),e.dismissButtonOptions={onClick:function(){e.$dismiss()},text:t.scope.currentScope.network.getResourceOrKeyName("web_common_cancel")}}]),app.factory("pixabayService",["$rootScope","$http","$q","authService",function(e,t,a,r){return{search:function(d,l,i){l||(l=1),i||(i=20);var s=a.defer();return t.post(scope.apiEndpoint+"pixabay/search",{query:d,language:2,page:l,perPage:i}).then(function(o){s.resolve(o.data)},function(){s.reject()}),s.promise},defaultModel:{articleId:0,blobId:new DevExpress.data.Guid,staticArticleId:0,snipId:0,networkId:0,eventId:new DevExpress.data.Guid,author:"",source:"",sourceUrl:"",text:"",title:""},create:function(d){var l=a.defer();return t.post(scope.apiEndpoint+"pixabay/create",d).then(function(i){l.resolve(i.data)},function(){l.reject()}),l.promise}}}]),app.factory("vimeoService",["$http","$q",function(e,t){return{getVideo:function(r,c){var g=t.defer();let f=scope.apiEndpoint+"vimeo/"+r;return c&&(f+=`?secret=${encodeURIComponent(c)}`),e.get(f).then(function(n){g.resolve(n.data)},function(n){g.reject()}),g.promise}}}]),app.controller("AllowPartnerAccessDialog",["$interpolate","$scope","$rootScope","$timeout","profileService","authenticationCallback","formatterService","profileServiceRedesign",function(e,t,a,r,c,g,f,n){t.working=!1,t.allowData={hasPartnerAccessAllowed:!1,hasAgb:!1},c.getProfile().then(function(){c.getPartnerAccessAllowData().then(function(d){t.formData={originRegisteredDomain:d.originRegisteredDomain,originRegisteredChapter:d.originRegisteredChapter,originRegisteredPartner:d.originRegisteredPartner,originRegisterdDate:moment(d.registered).format(f.getShortDateFormatString())},t.web_partnerAccessDialog_description=e(scope.currentScope.network.resources.web_partnerAccessDialog_description)({originRegisteredDomain:d.originRegisteredDomain,originRegisteredChapter:d.originRegisteredChapter,originRegisterdDate:moment(d.registered).format(f.getShortDateFormatString())}),t.web_partnerAccessDialog_accessCheckboxDescription_0=e(scope.currentScope.network.resources.web_partnerAccessDialog_accessCheckboxDescription_0)({originRegisteredPartner:d.originRegisteredPartner,partnerCompanyName:scope.currentScope.chapter.partner.companyName}),t.allowPartnerAccess=function(){t.allowData.hasPartnerAccessAllowed&&t.allowData.hasAgb&&("Redesign2024"!=scope.network.settings.configurations?.contentRenderEngine?c.updatePartnerAccessAllow().then(function(){t.$close(),c.getProfile(!0),g()}):(t.working=!0,c.updatePartnerAccessAllow().then(function(){c.getProfile(!0),n.getProfile(!0).then(()=>{t.working=!1,t.$dismiss(),g()})})))}})})}]),app.controller("AuthenticationDialog",["$scope","$rootScope","$location","instagramService","$timeout","authService","profileService","authenticationCallback","facebookSignUpData","login",function(e,t,a,r,c,g,f,n,d,l){e.dialogState={none:0,facebookSignUp:1,login:2},e.changeState=function(i){e.state=i,i===e.dialogState.login&&c(function(){$(".modal").find("input[name='email']").focus()})},e.hasHowto=t.scope.staticArticles.filter(function(i){return"/howto"===i.path}).length>0,e.changeState(d?1:l?2:0),e.signUpData=d||{},e.loginData={userName:"",password:""},e.facebookLogin=function(){g.facebookLogin(t.app).then(function(i){i.token?(angular.extend(e.signUpData,i),e.state=e.dialogState.facebookSignUp):(e.$dismiss(),n())})},e.playVideoTracked=!1,e.playVideo=function(){e.playVideoTracked||window._paq&&(_paq.push(["trackEvent","Conversion","PlayVideo","AuthenticationRequiredDialog"]),e.playVideoTracked=!0)},e.facebookRegister=function(i){i&&g.externalRegister(e.signUpData).then(function(){f.fetchExternalAvatar({providerName:"Facebook"}).then(function(){e.$dismiss(),n()})},function(s){e.error=s.data||scope.currentScope.network.getResourceOrKeyName("web_common_errorOccurred")})},e.instagramLogin=function(){r.getGrant(t.app)},e.showInstagram=r.isAvailable(),e.login=function(i){i&&g.login(e.loginData).then(function(){e.$dismiss(),n()},function(s){e.loginError=s.data||scope.currentScope.network.getResourceOrKeyName("web_common_errorOccurred")})}}]),app.controller("AuthenticationSettingsController",["$scope","$rootScope","$location","$state","$timeout","$uibModal","authService","profileService","instagramService",function(e,t,a,r,c,g,f,n,d){if("Redesign2024"!=t.scope.currentScope.network.settings.configurations.contentRenderEngine){n.getProfile().then(function(s){s.isRegistered||a.path("/").replace()},function(s){a.path("/").replace()}),e.emailValidationState=0,e.emailValidationStates={none:0,inProgress:1,failure:2,success:3},n.getProfile().then(function(s){s.isRegistered&&a.search().token&&(e.emailValidationState=e.emailValidationStates.inProgress,f.validateEmail(a.search().token).then(function(){c(function(){e.emailValidationState=e.emailValidationStates.success},2e3)},function(){c(function(){e.emailValidationState=e.emailValidationStates.failure},2e3)}))});var l={password:"",newPassword:"",confirmPassword:""},i=function(s){e.changePasswordData=angular.copy(l),e.changePasswordMessage=scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_changePasswordSuccess"),s.$setUntouched(),s.$setPristine()};e.compileErros=function(s){if(s.modelState){var o=[];for(var b in s.modelState)if(s.modelState.hasOwnProperty(b))for(var p=0;p<s.modelState[b].length;p++){var h=s.modelState[b][p];-1===o.indexOf(h)&&o.push(h)}return o.join(" ")}return s},e.cleanChangesMessages=function(){e.changePasswordMessage=null,e.changePasswordError=null},e.changePasswordData=angular.copy(l),e.changePassword=function(s){s.$invalid||(e.cleanChangesMessages(),e.changePasswordData.password?f.changePassword(e.changePasswordData).then(function(){i(s)},function(o){e.changePasswordError=e.compileErros(o.data)}):f.setPassword(e.changePasswordData).then(function(){i(s)},function(o){e.changePasswordError=e.compileErros(o.data)}))},e.facebookLogin=function(){e.linkFacebookError=null,f.facebookLogin(t.app).then(function(s){},function(s){e.linkFacebookError=e.compileErros(s.data)})},e.instagramLogin=function(){d.getGrant()},e.showInstagram=d.isAvailable(),e.deleteAccount=function(){document.body.style="pointer-events: none;",f.deleteAccount().then(function(){Oculus.push(!1,function(){f.logout().then(function(){Oculus.navigate(""),window.location=scope.currentChapter.path+"/login"})})})}}}]),app.factory("authService",["$rootScope","$window","$location","$http","$q","$timeout",function(e,t,a,r,c,g){var f={externalAuthData:{}},n=null,d=function(){if(null===n){var v=c.defer();r.get(scope.apiEndpoint+"account/noop").then(function(A){e.scope.profile.loginInfo=A.data,scope.profile.loginInfo=A.data,v.resolve(A)},function(A){v.reject(A)}).finally(function(){n=null}),n=v.promise}return n};d();var b=function(){var v=c.defer();return d().then(function(){r.get(scope.apiEndpoint+"account/logout").then(function(A){e.$emit("authenticationStateChanged"),window.indexedDB.deleteDatabase("chatDb-"+scope.network.id+"-"+scope.currentChapter.id).onerror=D=>{console.error("Error deleting database.")},v.resolve(A)},function(A){v.reject(A)})}).catch(function(A){v.reject(A)}),v.promise},w=function(){var v=c.defer();return r.get(scope.apiEndpoint+"media/token").then(function(A){v.resolve(A.data)},function(){v.reject()}),v.promise},S={url:scope.globalSettings.configurations.apicodoMediaBaseUrl};return w(),f.noop=d,f.register=function(v){var A=c.defer();return d().then(function(){r.post(scope.apiEndpoint+"account/register",v).then(function(T){g(function(){A.resolve(T)})},function(T){A.reject(T)})}).catch(function(T){A.reject(T)}),A.promise},f.externalRegister=function(v){b();var A=c.defer();return d().then(function(){r.post(scope.apiEndpoint+"account/registerexternal",v).then(function(T){e.$emit("authenticationStateChanged"),A.resolve(T)},function(T){A.reject(T)})}).catch(function(T){A.reject(T)}),A.promise},f.login=function(v){var A=c.defer();return d().then(function(){r.post(scope.apiEndpoint+"account/login",v).then(function(T){e.$emit("authenticationStateChanged"),A.resolve(T)},function(T){A.reject(T)})}).catch(function(T){A.reject(T)}),A.promise},f.loginSaml2=function(v){var A=c.defer();return d().then(function(){r.post(scope.apiEndpoint+"account/loginSaml2",v).then(function(T){e.$emit("authenticationStateChanged"),A.resolve(T)},function(T){A.reject(T)})}).catch(function(T){A.reject(T)}),A.promise},f.logout=b,f.facebookLogin=function(v){var A=c.defer(),T=function(D){var m;D&&D.authResponse&&D.authResponse.accessToken?m=D.authResponse.accessToken:A.reject("authentication canceled.");var M={loginProvider:"Facebook",token:m},E=function(P){var q=null;"male"===P.gender?q=1:"female"===P.gender&&(q=0);var N=null;P.birthday&&P.birthday.replace(/\d\d\/\d\d\/(\d\d\d\d)/g,function(_,V){moment().year(),moment(V,"YYYY").year(),N=V});var O=P.email&&P.email.match(/[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/)?P.email:null;A.resolve({loginProvider:"Facebook",token:m,email:O,emailConfirmed:O,firstName:P.first_name,lastName:P.last_name,gender:q,genderConfirmed:q,yearOfBirth:N,yearOfBirthConfirmed:N})};d().then(function(){r.post(scope.apiEndpoint+"account/loginexternal",M).then(function(P){e.$emit("authenticationStateChanged"),A.resolve(P)},function(P){404===P.status?v?facebookConnectPlugin.api("me?fields=email,first_name,last_name,gender,birthday",["public_profile","email","user_birthday"],function(q){E(q)},function(q){}):FB.api("/me",{fields:"first_name,email,last_name,gender,birthday"},function(q){E(q)}):A.reject(P)})}).catch(function(P){A.reject(P)})};return v?facebookConnectPlugin.login(["public_profile"],function(D){T(D)},function(m){A.reject("authentication canceled.")}):(FB.init({appId:scope.globalSettings.authenticationFacebookAppId,xfbml:!0,version:"v20.0",status:!0}),FB.login(function(D){T(D)},{scope:"email,public_profile"})),A.promise},f.validateEmail=function(v){var A=c.defer();return r.put(scope.apiEndpoint+"account/email/"+v).then(function(T){A.resolve(T)},function(T){A.reject(T)}),A.promise},f.requestPassword=function(v){var A=c.defer();return r.put(scope.apiEndpoint+"account/RequestPassword",v).then(function(T){A.resolve(T)},function(T){A.reject(T)}),A.promise},f.setPassword=function(v){var A=c.defer();return r.post(scope.apiEndpoint+"account/password",v).then(function(T){A.resolve(T)},function(T){A.reject(T)}),A.promise},f.changePassword=function(v){var A=c.defer();return r.put(scope.apiEndpoint+"account/Password",v).then(function(T){A.resolve(T)},function(T){A.reject(T)}),A.promise},f.deleteAccount=function(){var v=c.defer();return d().then(function(){r.get(scope.apiEndpoint+"account/delete").then(function(A){window.indexedDB.deleteDatabase("chatDb-"+scope.network.id+"-"+scope.currentChapter.id).onerror=D=>{console.error("Error deleting database.")},v.resolve(A)},function(A){v.reject(A)})}).catch(function(A){v.reject(A)}),v.promise},f.changeEmail=function(v){var A=c.defer();return r.post(scope.apiEndpoint+"account/email",v).then(function(T){A.resolve(T)},function(T){A.reject(T.data)}),A.promise},f.getEmails=function(){var v=c.defer();return r.get(scope.apiEndpoint+"account/emails/").then(function(A){v.resolve(A.data)},function(){v.reject()}),v.promise},f.deleteEmail=function(v){var A=c.defer();return r.post(scope.apiEndpoint+"account/email/"+v+"/delete").then(function(T){A.resolve(T.data)},function(){A.reject()}),A.promise},f.sendEmailVerification=function(v){var A=c.defer();return r.post(scope.apiEndpoint+"account/email/"+v+"/sendVerification").then(function(T){A.resolve(T)},function(T){A.reject(T.data)}),A.promise},f.updateActiveEmail=function(v){var A=c.defer();return r.post(scope.apiEndpoint+"account/email/"+v+"/updateActive").then(function(T){A.resolve(T.data)},function(){A.reject()}),A.promise},f.getApicodoMediaToken=w,f.mediaApiBase=S,f}]),app.component("changeEmailForm",{templateUrl:"/ClientApp/src/legacy-app/authentication/changeEmailForm.html",controller:["$rootScope","authService",function(e,t){var a=this,r={email:"",confirmEmail:""},c=function(){a.newEmail=angular.copy(r)};c(),a.changeEmail=function(g,f){g||a.newEmail.confirmEmail!==a.newEmail.email||t.changeEmail(a.newEmail).then(function(n){a.changeEmailError=null,a.changeEmailSuccess=e.scope.currentScope.network.resources.web_authentication_changeEmailForm_changeEmailSuccessful,c(),f.$setPristine(),f.$setUntouched()},function(n){a.changeEmailError=n,a.changeEmailSuccess=null})}}]}),app.component("emailManagementForm",{templateUrl:"/ClientApp/src/legacy-app/authentication/emailManagementForm.html",controller:["$rootScope","authService","$uibModal",function(e,t,a){var r=this;r.active=!0;var c=function(){t.getEmails().then(function(g){r.emails=g,r.confirmedEmails=[],r.unConfirmedEmails=[],$.each(g,function(f,n){n.active&&(r.activeEmail=n),n.emailConfirmed&&!n.active&&r.confirmedEmails.push(n),!n.emailConfirmed&&n.email&&r.unConfirmedEmails.push(n)})})};r.toggleDropdown=function(){r.active=!r.active},r.sendVerificationDialog=function(g){a.open({templateUrl:"/ClientApp/src/legacy-app/authentication/sendVerificationDialog.html",size:"lg"}).result.then(function(){t.sendEmailVerification(g)})},r.updateActiveEmailDialog=function(g){a.open({templateUrl:"/ClientApp/src/legacy-app/authentication/updateActiveEmailDialog.html",size:"lg"}).result.then(function(){t.updateActiveEmail(g).then(function(){c()})})},r.emailDeleteDialog=function(g){a.open({templateUrl:"/ClientApp/src/legacy-app/authentication/emailDeleteDialog.html",size:"lg"}).result.then(function(){t.deleteEmail(g).then(function(f){c()})})},c()}]}),app.controller("InstagramRegisterFormController",["$scope","authenticationCallback","instagramUserData","instagramService","profileService",function(e,t,a,r,c){e.signUpData=a;var g=function(n,d){return n?n.split(" ")[0]:d},f=function(n){if(n){var d=g(n);return n.replace(d,"")||d}return null};e.instagramRegister=function(n){if(n){var d=g(e.signUpData.data.full_name,e.signUpData.data.username),l={token:e.signUpData.token,loginProvider:"Instagram",Email:e.signUpData.email,Gender:e.signUpData.gender,YearOfBirth:e.signUpData.yearOfBirth,FirstName:d,LastName:f(d)};r.register(l).then(function(){c.fetchExternalAvatar({providerName:"Instagram",token:e.signUpData.token}).then(function(){e.$dismiss(),t()})},function(i){e.error=i.data||scope.currentScope.network.getResourceOrKeyName("web_common_errorOccurred")})}}}]),app.factory("instagramService",["$rootScope","$location","$http","$q","$uibModal",function(e,t,a,r,c){var g=this;g.accessToken=null;var f=function(p){return angular.isDefined(p)&&(g.accessToken=p),g.accessToken},d=function(){var p=r.defer(),h=scope.apiEndpoint+"Account/LoginExternal";return a.post(h,{LoginProvider:"Instagram",Token:g.accessToken}).then(function(){p.resolve({isUserRegister:!0})},function(y){404===y.status?p.resolve({isUserRegister:!1,token:g.accessToken}):p.reject(y)}),p.promise},l=function(){var p=r.defer();return a.get("https://api.instagram.com/v1/users/self/?access_token="+g.accessToken,{withCredentials:!1}).then(function(I){p.resolve(I.data)},function(I){console.error("error",I)}),p.promise};return $.oauthpopup=function(p){p.windowName=p.windowName||"ConnectWithOAuth",p.windowOptions=p.windowOptions||"location=0,status=0,width=800,height=400",p.callback=p.callback||function(){window.location.reload()};var h=this;h._oauthWindow=window.open(p.path,p.windowName,p.windowOptions),h._oauthInterval=window.setInterval(function(){if(h._oauthWindow.closed){var I=localStorage.token;window.clearInterval(h._oauthInterval),p.callback(I)}},1e3)},{getGrant:function(){var h=e.scope.currentScope.isNative?"https://"+e.scope.currentScope.network.domain+e.scope.currentScope.chapter.path:"http://localhost:52392"+e.scope.currentScope.chapter.path;$.oauthpopup({path:"https://instagram.com/oauth/authorize/?client_id="+e.scope.globalSettings.authenticationInstagramAppId+"&redirect_uri="+(h+="/instagram-callback/")+"&response_type=code",windowName:"ConnectToInstagram",callback:function(){var p;p=localStorage.token,f(p),l().then(function(h){d().then(function(I){I.isUserRegister?(e.$emit("authenticationStateChanged"),t.path("/").search("")):c.open({templateUrl:"/ClientApp/src/legacy-app/authentication/instagramRegisterForm.html",controller:"InstagramRegisterFormController",size:"lg",resolve:{instagramUserData:function(){return h.token=I.token,h},authenticationCallback:function(){return function(){e.$emit("authenticationStateChanged"),t.path("/").search("")}}}})},function(I){$scope.error=I.data||"Es ist ein Fehler aufgetreten."})}),localStorage.token=""}})},setToken:f,getUserData:l,login:d,isAvailable:function(){return e.scope.currentScope.network.settings.availableInstagramLogin&&!e.app},register:function(p){var h=r.defer(),I=scope.apiEndpoint+"Account/RegisterExternal";return a.post(I,p).then(function(y){h.resolve(y)},function(y){h.reject(y)}),h.promise}}}]),app.controller("LoginSaml2Controller",["$scope","$rootScope","$location","$state","authService",function(e,t,a,r,c){e.isApp=t.app,e.title="Mit Unternehmenskonto anmelden",e.login=function(){r.go("app.main-login",{closedToken:a.search().token})},e.signUpData={gender:null,yearOfBirth:null,staffNumber:null,isApp:t.app},e.loginError=null,c.loginSaml2(e.signUpData).then(function(g){a.path(scope.currentChapter.path+"/")},function(g){e.loginError=g.data})}]),app.controller("RegisterController",["$interpolate","$scope","$rootScope","$location","$window","authService","$timeout","profileService","$state","registerForNewsletter",function(e,t,a,r,c,g,f,n,d,l){t.signUpData={token:null,email:"",password:"",confirmPassword:"",gender:a.scope.currentScope.chapter.settings.featureRegistrationAgeGender?1:null,yearOfBirth:null,firstName:"",lastName:"",locations:[],isNewsletterSubscribe:!1,closedChapterToken:null},t.registerForNewsletter=l,t.inputType="password",n.getProfile(!0).then(function(s){t.isRegistered=s.isRegistered,t.newsletterSubscribed=!s.unsubscribe,s.isRegistered&&!t.registerForNewsletter&&r.path("/").replace()},function(){r.path("/").replace()}),t.web_register_newsletterIsSubscribedDescription_0=e(scope.currentScope.network.resources.web_register_newsletterIsSubscribedDescription_0)({chapterName:scope.currentScope.chapter.name}),t.web_register_newsletterIsNotSubscribedDescription_0=e(scope.currentScope.network.resources.web_register_newsletterIsNotSubscribedDescription_0)({chapterName:scope.currentScope.chapter.name}),t.web_register_newsletterCheckboxDescription_0=e(scope.currentScope.network.resources.web_register_newsletterCheckboxDescription_0)({chapterName:scope.currentScope.chapter.name}),t.isApp=a.app,t.title=t.registerForNewsletter?scope.currentScope.network.getResourceOrKeyName("web_register_subscribeNewsletter"):scope.currentScope.network.getResourceOrKeyName("web_common_register"),t.signupError=null,t.signUp=function(s){s&&t.signUpData.password===t.signUpData.confirmPassword?(r.search().closedToken&&(t.signUpData.closedChapterToken=r.search().closedToken),g.register(t.signUpData).then(function(){r.path(scope.currentChapter.path+"/account/registration-complete")},function(o){!function(s){if(s.modelState){var o=[];for(var b in s.modelState)if(s.modelState.hasOwnProperty(b))for(var p=0;p<s.modelState[b].length;p++){var h=s.modelState[b][p];-1===o.indexOf(h)&&o.push(h)}t.signupError="Fehler bei der Registrierung: "+o.join(" ")}else s.data?t.signupError=s.data:s.error&&"string"==typeof s.error&&""!==s.error&&(t.signupError=s.error),$ctrl.signupError||(t.signupError="Unknown error");f(function(){var I=$("form[name='signUpForm']").find("div[name='signupError']").not(".ng-hide").first(),y=null;I.length&&!I.visible(!1,!0)?y=I:t.signUpError&&(y=$("form[name='signUpForm']")),y&&$(document.body).animate({scrollTop:y.offset().top-150},1e3)})}(o)})):f(function(){var o=$("form[name='signUpForm']").find(".input-error").not(".ng-hide").first();o.length&&!o.visible(!1,!0)&&$(document.body).animate({scrollTop:o.offset().top-150},1e3)})},t.togglePasswordVisibility=function(){t.inputType="password"==t.inputType?"text":"password"}}]),app.controller("RequestPasswordController",["$rootScope","$scope","$location","authService",function(e,t,a,r){e.profile.isRegistered&&!e.profile.adminSetPassword&&a.path("/").replace(),"Redesign2024"!=e.scope.currentScope.network.settings.configurations.contentRenderEngine&&(t.setPasswordData={newPassword:"",confirmPassword:"",passwordRequestToken:null,acceptPrivacyPolicy:!1,title:e.scope.currentScope.network.getResourceOrKeyName("web_requestPassword_pageTitle")},t.requestPasswordData={email:""},a.search().token&&(t.setPasswordData.passwordRequestToken=a.search().token),t.isInvitation=void 0!==a.search().invitation,t.isInitialPasswordChange=void 0!==a.search().initial|e.profile.adminSetPassword,t.isInvitation&&e.scope.currentScope.network.resources.web_requestPassword_pageTitle_Invitation&&(t.setPasswordData.title=e.scope.currentScope.network.resources.web_requestPassword_pageTitle_Invitation),t.showPrivacyPolicy=(t.isInvitation||t.isInitialPasswordChange)&&e.scope.currentChapter.settings.configurations.requirePrivacyPolicyInvitation,t.requestPassword=function(c){c&&r.requestPassword(t.requestPasswordData).then(function(g){a.path(scope.currentChapter.path+"/account/password-requested")},function(g){if(g.modelState){var f=[];for(var n in g.modelState)for(var d=0;d<g.modelState[n].length;d++){var l=g.modelState[n][d];-1==f.indexOf(l)&&f.push(l)}t.error=f.join(" ")}else t.error=g.data})},t.setPassword=function(c){!c||t.setPasswordData.newPassword!==t.setPasswordData.confirmPassword||r.changePassword(t.setPasswordData).then(function(g){e.profile.adminSetPassword&&(e.profile.adminSetPassword=!1),window.location.href=scope.currentChapter.path+"/account/password-resetted"},function(g){if(g.modelState){var f=[];for(var n in g.modelState)for(var d=0;d<g.modelState[n].length;d++){var l=g.modelState[n][d];-1==f.indexOf(l)&&f.push(l)}t.error=f.join(" ")}else t.error=g.data})})}]),app.controller("AuthorBillingInfoController",["$scope","$rootScope","authorService","profileService","$location",function(e,t,a,r,c){e.author={authorId:null,taxNumber:"",taxIdNumber:"",accountHolder:"",iban:"",bic:"",tax:!1,billingFirstName:"",billingLastName:"",billingCompanyName:"",address:"",city:"",postalCode:null,chapter:null,imprint:{value:""}},e.success=!1,e.fromApply=c.search().fromApply,"Redesign2024"!=t.scope.currentScope.network.settings.configurations.contentRenderEngine&&(r.getProfile().then(function(g){g.isRegistered||c.path("/").replace(),a.getAuthor(g.guid).then(function(f){f.billingFirstName&&(e.author.billingfirstname=f.billingFirstName),f.taxNumber&&(e.author.taxnumber=f.taxNumber),f.taxIdNumber&&(e.author.taxidnumber=f.taxIdNumber),f.accountHolder&&(e.author.accountholder=f.accountHolder),f.bic&&(e.author.bic=f.bic),f.tax&&(e.author.tax=f.tax),f.billingLastName&&(e.author.billinglastname=f.billingLastName),f.billingCompanyName&&(e.author.billingcompanyname=f.billingCompanyName),f.address&&(e.author.address=f.address),f.city&&(e.author.city=f.city),f.postalCode&&(e.author.postalcode=f.postalCode),f.imprint&&(e.author.imprint=f.imprint),f.iban&&(e.author.iban=f.iban),f.iban&&(e.author.ibanshow=f.iban.substr(0,7)+f.iban.substr(7).replace(/.(?=.{4,}$)/g,"*"))})},function(g){c.path("/").replace()}),e.resetValue=function(){e.author.iban=""},e.signUp=function(g){g&&a.updateAuthorBillingInfo(e.author).then(function(f){e.success=!0},function(){e.success=!1})})}]),app.controller("AuthorListController",["$scope","authorService",function(e,t){t.getAuthors().then(function(a){e.authors=a}),e.level9Filter=function(){return function(a){return 9==a.levelId}},e.level8Filter=function(){return function(a){return 8==a.levelId}},e.level7Filter=function(){return function(a){return 7==a.levelId}},e.level6Filter=function(){return function(a){return 6==a.levelId}},e.level5Filter=function(){return function(a){return 5==a.levelId}},e.level4Filter=function(){return function(a){return 4==a.levelId}},e.level3Filter=function(){return function(a){return 3==a.levelId}},e.level2Filter=function(){return function(a){return 2==a.levelId}},e.level1Filter=function(){return function(a){return 1==a.levelId}}}]),app.directive("authorListItem",[function(){return{restrict:"E",require:"ngModel",templateUrl:"/ClientApp/src/legacy-app/author/authorListItem.html",replace:!0,scope:!0,link:function(e,t,a){e.$watch(a.ngModel,function(){e.author=e.$eval(a.ngModel)})}}}]),app.controller("DashboardController",["$scope","$rootScope","authorService","articleService","$uibModal","profileService","$location","eventCalendarService",function(e,t,a,r,c,g,f,n){var d=function(){a.getMyArticles().then(function(i){i.applications.forEach(function(b){b.fullPath=t.scope.currentScope.chapter.path+b.path}),i.publishedArticles.forEach(function(b){b.fullPath=t.scope.currentScope.chapter.path+b.path});var o=i.applications,s=i.publishedArticles;o=i.applications,!1!==t.scope.currentScope.network.settings.configurations.enableCalendar&&t.scope.currentScope.chapter.settings.configurations.enableEventCalendar?n.getEventsForAuthorDashboard().then(function(b){b.forEach(function(p){p.fullPath=t.scope.currentScope.chapter.path+"/events/"+p.id,p.isEvent=!0,p.published?s.push(p):(p.accepted=p.created,p.assigned=p.created,o.push(p))}),e.articles=s,e.applications=o}):(e.articles=s,e.applications=o)})},l=t.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration;e.canCreateEvents=t.profile.isNewsroomAdmin||!l&&t.profile.isMerkuristJournalist||l&&(6===l.MinEventCreationRole&&t.profile.isHeadSales||5===l.MinEventCreationRole&&t.profile.isSales||4===l.MinEventCreationRole&&t.profile.isHeadJournalist||3===l.MinEventCreationRole&&t.profile.isMerkuristJournalist||2===l.MinEventCreationRole&&t.profile.isJournalist),g.getProfile().then(function(i){i.isJournalist||f.path("/").replace();var s=i.guid;e.$watch("profile.guid",function(){s!=i.guid&&f.path("/")}),d(),$(window).bind("focus",function(){d()})},function(i){f.path("/").replace()}),e.noApply=function(i){a.noApplySnip(i).then(function(s){d()})},e.allocate=function(i){a.allocateSnip(i).then(function(s){d()})},e.reject=function(i){a.rejectSnip(i).then(function(s){d()})},e.articleDeleteDialog=function(i){c.open({templateUrl:"/ClientApp/src/legacy-app/author/articleDeleteDialog.html",size:"lg"}).result.then(function(){r.deleteArticle(i).then(function(){d()})})},e.eventDeleteDialog=function(i){c.open({templateUrl:"/ClientApp/src/legacy-app/author/eventDeleteDialog.html",size:"lg"}).result.then(function(){n.deleteEvent(i).then(function(){d()})})},e.createArticle=function(){r.createArticle().then(function(i){f.path(i.path+"/edit")})},e.createEvent=function(){n.createEvent().then(function(i){f.path("/events/"+i+"/edit")})}}]),app.controller("BannerCampaignElasticReportController",["$scope","$rootScope","bannerCampaignService","scopeService","$stateParams","$timeout","$location",function(e,t,a,r,c,g,f){AmCharts.isReady=!0;var n=getComputedStyle(document.querySelector("body")).getPropertyValue("--color1-alpha50");a.getbannerCampaignByPin(c.pin).then(function(d){e.bannerCampaign=d,e.loaded=!1,a.getElasticReportBannerCalendar(d.pin).then(function(l){d.report=l,d.banners.forEach(function(s){s.imageUrl=r.getGlobalSettings().blobStorageCdnUrl+"/"+r.getGlobalSettings().blobStorageContainerNameShipment+"/"+s.pin+"?preset=shipment"});var i=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];g(function(){var s,o,b;$.each(l,function(U,F){F.active=!0}),$.each(d.banners,function(U,F){F.active=!0}),l.length>1&&(l.multiChapterShipment=!0);for(var p=[],h=[],I=[],y=new Date(d.start);y<=moment(new Date).startOf("day").add(1,"d").toDate();y.setDate(y.getDate()+1)){var C={start:new Date(y),billableImpressions:0,clicks:0};p.push(C),I[C.start.toDateString()]=C,h.push(C)}var x={impressions:0,billableImpressions:0,viewableImpressionTimeSeconds:0,clicks:0,desktopImpressions:0,mobileImpressions:0,tabletImpressions:0,start:moment(d.start).startOf("day").toDate(),end:moment(new Date).startOf("day").toDate()};e.summary=x;var k=function(){$.each(h,function(U,F){F.clicks=0,F.billableImpressions=0}),x.impressions=0,x.billableImpressions=0,x.viewableImpressionTimeSeconds=0,x.clicks=0,x.desktopImpressions=0,x.mobileImpressions=0,x.tabletImpressions=0,i[0].value=0,i[1].value=0,i[2].value=0,s.validateData(),o.validateData(),b.validateData(),$.each(l,function(U,F){F.active&&$.each(F.reports,function(w,S){var v=!1;$.each(d.banners,function(A,T){T.id===S.bannerId&&T.active&&(v=!0)}),v&&(S.billableImpressionsCalendar.length&&$.each(S.billableImpressionsCalendar,function(A,T){I[new Date(T.day).toDateString()]&&(I[new Date(T.day).toDateString()].billableImpressions+=T.data)}),S.clickCalendar.length&&$.each(S.clickCalendar,function(A,T){I[new Date(T.day).toDateString()]&&(I[new Date(T.day).toDateString()].clicks+=T.data)}),x.impressions+=S.impressions,x.billableImpressions+=S.billableImpressions,x.viewableImpressionTimeSeconds+=S.viewableImpressionTimeSeconds/1e3,x.clicks+=S.clicks,x.desktopImpressions+=S.desktopImpressions,x.mobileImpressions+=S.mobileImpressions,x.tabletImpressions+=S.tabletImpressions)})}),i[0].value=Math.round(100/(x.impressions/x.desktopImpressions)),i[1].value=Math.round(100/(x.impressions/x.mobileImpressions)),i[2].value=Math.round(100/(x.impressions/x.tabletImpressions)),s.validateData(),o.validateData(),b.validateData()};s=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"billableImpressions",toField:"billableImpressions"}],dataProvider:p,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"billableImpressions",valueField:"billableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"billableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),o=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:n,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"billableImpressions",toField:"billableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:h,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"billableImpressions",type:"smoothedLine",valueField:"billableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),b=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:n,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}});var R=function(U,F,w){$.each(l,function(S,v){v.chapter=r.getChapter(v.chapterSlug),a.getChapterReport(v.chapter.id,d,F,w).then(function(A){v.reports=A,e.loaded=!0,k(),U&&($.each(v.reports,function(T,D){D.active=!0}),p.length=0,$.each(h,function(T,D){p.push({start:D.start,billableImpressions:D.billableImpressions})}))}),s.validateData(),o.validateData(),b.validateData()})};s.addListener("zoomed",function(U){x.start=moment(s.startDate).startOf("day").toDate(),x.end=moment(s.endDate).startOf("day").toDate(),R(!1,moment(x.start).startOf("day").add(1,"d").toDate(),moment(x.end).startOf("day").add(2,"d").toDate()),o.zoom(x.start,moment(x.end).startOf("day").add(1,"d").toDate())}),e.toggleReport=function(U){$.each(d.banners,function(F,w){w.id===U.id&&(w.active=!w.active)}),k()},e.toggleChapter=function(U){$.each(l,function(F,w){w.chapter.name===U&&(w.active=!w.active)}),k()},R(!0,moment(d.start).startOf("day").toDate(),moment(new Date).startOf("day").add(2,"d").toDate())},function(){e.error=!0})})},function(){f.path("/")})}]),app.controller("bannerCampaignReportController",["$scope","$rootScope","bannerCampaignService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,r,c,g,f,n){AmCharts.isReady=!0;var d=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getbannerCampaignByPin(c.pin).then(function(o){e.bannerCampaign=o,a.getreportBannerCalendar(o.pin).then(function(b){b.forEach(function(p){p.chapter=r.getChapter(p.chapterSlug),p.reports.forEach(function(h){h.calendar.forEach(function(I){I.start=moment(I.start.replace("Z","")).toDate(),I.end=moment(I.end.replace("Z","")).toDate()})})}),o.report=b,o.banners.forEach(function(p){p.imageUrl=r.getGlobalSettings().blobStorageCdnUrl+"/"+r.getGlobalSettings().blobStorageContainerNameShipment+"/"+p.pin+"?preset=shipment"}),f(function(){var p,h,I,y,C,x=new Set;$.each(b,function(w,S){S.active=!0,x.add(S.chapter.name)}),b.uniqueChapters=[],x.forEach(function(w){b.uniqueChapters.push(w)}),$.each(o.banners,function(w,S){S.reportActive=!0});var k=[],R=function(){k.length=0,$.each(b[0].reports[0].calendar,function(w,S){k.push({start:S.start,end:S.end,impressions:0,viewableImpressions:0,billableViewableImpressions:0,viewableImpressionTimeSeconds:0,desktopViewableImpressions:0,mobileViewableImpressions:0,tabletViewableImpressions:0,clicks:0,maleViewableImpressions:0,femaleViewableImpressions:0,age1617MaleViewableImpressions:0,age1824MaleViewableImpressions:0,age2534MaleViewableImpressions:0,age3544MaleViewableImpressions:0,age4554MaleViewableImpressions:0,age55MaleViewableImpressions:0,age1617FemaleViewableImpressions:0,age1824FemaleViewableImpressions:0,age2534FemaleViewableImpressions:0,age3544FemaleViewableImpressions:0,age4554FemaleViewableImpressions:0,age55FemaleViewableImpressions:0})}),$.each(b,function(w,S){S.active&&(b[w-1]&&2===b[w-1].chapter.managementState&&2===S.chapter.managementState&&b[w-1].chapter.name!==S.chapter.name&&(b.multiChapterShipment=!0),$.each(S.reports,function(v,A){if(o.banners[v].reportActive){var T=A.banner.pin;$.each(A.calendar,function(D,m){m.pin=T,k[D].impressions+=m.impressions,k[D].viewableImpressions+=m.viewableImpressions,k[D].billableViewableImpressions+=m.billableViewableImpressions,k[D].viewableImpressionTimeSeconds+=m.viewableImpressionTimeSeconds,k[D].desktopViewableImpressions+=m.desktopViewableImpressions,k[D].mobileViewableImpressions+=m.mobileViewableImpressions,k[D].tabletViewableImpressions+=m.tabletViewableImpressions,k[D].clicks+=m.clicks,k[D].maleViewableImpressions+=m.maleViewableImpressions,k[D].femaleViewableImpressions+=m.femaleViewableImpressions,k[D].age1617MaleViewableImpressions+=m.age1617MaleViewableImpressions,k[D].age1824MaleViewableImpressions+=m.age1824MaleViewableImpressions,k[D].age2534MaleViewableImpressions+=m.age2534MaleViewableImpressions,k[D].age3544MaleViewableImpressions+=m.age3544MaleViewableImpressions,k[D].age4554MaleViewableImpressions+=m.age4554MaleViewableImpressions,k[D].age55MaleViewableImpressions+=m.age55MaleViewableImpressions,k[D].age1617FemaleViewableImpressions+=m.age1617FemaleViewableImpressions,k[D].age1824FemaleViewableImpressions+=m.age1824FemaleViewableImpressions,k[D].age2534FemaleViewableImpressions+=m.age2534FemaleViewableImpressions,k[D].age3544FemaleViewableImpressions+=m.age3544FemaleViewableImpressions,k[D].age4554FemaleViewableImpressions+=m.age4554FemaleViewableImpressions,k[D].age55FemaleViewableImpressions+=m.age55FemaleViewableImpressions})}}))}),h.validateData(),p.validateData()},u=b.summary={};p=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:k,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),h=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:d,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"billableViewableImpressions",toField:"billableViewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:k,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"billableViewableImpressions",type:"smoothedLine",valueField:"billableViewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),I=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:l,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),y=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:d,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(w,S){return-1*w.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(w){return w<0?-1*w+"":w+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),C=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:s,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:d,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}});var F=function(){var w=moment(p.startDate).startOf("day").toDate(),S=moment(p.endDate).startOf("day").add(-1,"d").toDate();(function(w,S){u.maleViewableImpressions=0,u.femaleViewableImpressions=0,u.viewableImpressions=0,u.billableViewableImpressions=0,u.viewableImpressionTimeSeconds=0,u.impressions=0,u.clicks=0,u.desktopViewableImpressions=0,u.mobileViewableImpressions=0,u.tabletViewableImpressions=0,u.age1617MaleViewableImpressions=0,u.age1824MaleViewableImpressions=0,u.age2534MaleViewableImpressions=0,u.age3544MaleViewableImpressions=0,u.age4554MaleViewableImpressions=0,u.age55MaleViewableImpressions=0,u.age1617FemaleViewableImpressions=0,u.age1824FemaleViewableImpressions=0,u.age2534FemaleViewableImpressions=0,u.age3544FemaleViewableImpressions=0,u.age4554FemaleViewableImpressions=0,u.age55FemaleViewableImpressions=0;var v=0,A=0,T=0,D=0,m=0,M=0,E=0,P=0,q=0,N=0,O=0,_=0,V=0,L=0,z=0;u.start=w,u.end=S,$.each(k,function(J,H){var Y=new Date(H.start);Y<w||Y>S||(u.maleViewableImpressions+=H.maleViewableImpressions,u.femaleViewableImpressions+=H.femaleViewableImpressions,u.viewableImpressions+=H.viewableImpressions,u.billableViewableImpressions+=H.billableViewableImpressions,u.viewableImpressionTimeSeconds+=H.viewableImpressionTimeSeconds,u.impressions+=H.impressions,u.clicks+=H.clicks,v+=H.desktopViewableImpressions,A+=H.mobileViewableImpressions,T+=H.tabletViewableImpressions,D+=H.age1617MaleViewableImpressions,m+=H.age1824MaleViewableImpressions,M+=H.age2534MaleViewableImpressions,E+=H.age3544MaleViewableImpressions,P+=H.age4554MaleViewableImpressions,q+=H.age55MaleViewableImpressions,N+=H.age1617FemaleViewableImpressions,O+=H.age1824FemaleViewableImpressions,_+=H.age2534FemaleViewableImpressions,V+=H.age3544FemaleViewableImpressions,L+=H.age4554FemaleViewableImpressions,z+=H.age55FemaleViewableImpressions)}),u.desktopViewableImpressions=Math.round(100/(u.viewableImpressions/v)),u.mobileViewableImpressions=Math.round(100/(u.viewableImpressions/A)),u.tabletViewableImpressions=Math.round(100/(u.viewableImpressions/T));var G=u.viewableImpressions-(D+m+M+E+P+q+N+O+_+V+L+z);G>100&&(D+=G*t.scope.globalSettings.reportAverageAge1617Male,m+=G*t.scope.globalSettings.reportAverageAge1824Male,M+=G*t.scope.globalSettings.reportAverageAge2534Male,E+=G*t.scope.globalSettings.reportAverageAge3544Male,P+=G*t.scope.globalSettings.reportAverageAge4554Male,q+=G*t.scope.globalSettings.reportAverageAge55Male,N+=G*t.scope.globalSettings.reportAverageAge1617Female,O+=G*t.scope.globalSettings.reportAverageAge1824Female,_+=G*t.scope.globalSettings.reportAverageAge2534Female,V+=G*t.scope.globalSettings.reportAverageAge3544Female,L+=G*t.scope.globalSettings.reportAverageAge4554Female,z+=G*t.scope.globalSettings.reportAverageAge55Female),u.age1617MaleViewableImpressions=Math.round(100/(u.viewableImpressions/D)),u.age1824MaleViewableImpressions=Math.round(100/(u.viewableImpressions/m)),u.age2534MaleViewableImpressions=Math.round(100/(u.viewableImpressions/M)),u.age3544MaleViewableImpressions=Math.round(100/(u.viewableImpressions/E)),u.age4554MaleViewableImpressions=Math.round(100/(u.viewableImpressions/P)),u.age55MaleViewableImpressions=Math.round(100/(u.viewableImpressions/q)),u.age1617FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/N)),u.age1824FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/O)),u.age2534FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/_)),u.age3544FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/V)),u.age4554FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/L)),u.age55FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/z)),u.maleViewableImpressions=Math.round(u.maleViewableImpressions),u.femaleViewableImpressions=Math.round(u.femaleViewableImpressions),l[0].value=u.femaleViewableImpressions,l[1].value=u.maleViewableImpressions,i[0].male=Math.round(-1*u.age1617MaleViewableImpressions),i[1].male=Math.round(-1*u.age1824MaleViewableImpressions),i[2].male=Math.round(-1*u.age2534MaleViewableImpressions),i[3].male=Math.round(-1*u.age3544MaleViewableImpressions),i[4].male=Math.round(-1*u.age4554MaleViewableImpressions),i[5].male=Math.round(-1*u.age55MaleViewableImpressions),i[0].female=Math.round(u.age1617FemaleViewableImpressions),i[1].female=Math.round(u.age1824FemaleViewableImpressions),i[2].female=Math.round(u.age2534FemaleViewableImpressions),i[3].female=Math.round(u.age3544FemaleViewableImpressions),i[4].female=Math.round(u.age4554FemaleViewableImpressions),i[5].female=Math.round(u.age55FemaleViewableImpressions),s[0].value=u.desktopViewableImpressions,s[1].value=u.mobileViewableImpressions,s[2].value=u.tabletViewableImpressions,I.validateData(),y.validateData(),C.validateData(),e.$apply()})(w,S),h.zoom(w,moment(S).add(1,"d").toDate())};p.addListener("zoomed",function(w){F()}),e.toggleReport=function(w){$.each(o.banners,function(S,v){v.pin===w.pin&&(v.reportActive=!v.reportActive)}),f(function(){R(),F()},50)},e.toggleChapter=function(w){$.each(b,function(S,v){v.chapter.name===w&&(v.active=!v.active)}),f(function(){R(),F()},50)},R(),h.validateData(),p.validateNow(),p.setDefaultPeriod()},function(){e.error=!0})})},function(){n.path("/")});var l=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:d,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],i=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],s=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.factory("bannerCampaignService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,r,c,g){var f=[],i=function(){var b=t.defer();return f.length>0?b.resolve(f):e.get(scope.apiEndpoint+"bannerCampaigns").then(function(p){angular.copy(p.data,f),b.resolve(f)},function(){b.reject()}),b.promise};function s(b){var p=null;return $.each(f,function(h,I){if(I.pin===b)return p=I,!1}),p}return{bannerCampaigns:f,getbannerCampaigns:i,getreportBannerCalendar:function(b){var p=t.defer();return e.get(scope.apiEndpoint+"bannerCampaigns/"+b+"/ReportBannerCalendar").then(function(h){p.resolve(h.data)},function(){p.reject()}),p.promise},getbannerCampaignByPin:function(b){var p=t.defer();if(f.length>0){var h=s(b);h?p.resolve(h):e.get(scope.apiEndpoint+"/bannerCampaigns"+b).then(function(I){p.resolve(I.data)},function(){p.reject()})}else i().then(function(){var I=s(b);I?p.resolve(I):e.get(scope.apiEndpoint+"bannerCampaigns/"+b).then(function(y){p.resolve(y.data)},function(){p.reject()})},function(){p.reject()});return p.promise},getElasticReportBannerCalendar:function(b){var p=t.defer();return e.get(scope.apiEndpoint+"bannerCampaigns/"+b+"/Elastic").then(function(h){p.resolve(h.data)},function(){p.reject()}),p.promise},getChapterReport:function(b,p,h,I){var y=t.defer();return e.get(scope.apiEndpoint+"bannerCampaigns/chapterReport?chapterId="+b+"&bannerCampaignId="+p.id+"&start="+new Date(h).getTime()+"&end="+new Date(I).getTime()).then(function(C){y.resolve(C.data)},function(){y.reject()}),y.promise}}}]),app.controller("BrochureElasticReportController",["$scope","$rootScope","brochureService","scopeService","$stateParams","$timeout","$location",function(e,t,a,r,c,g,f){AmCharts.isReady=!0;var i,s,o,n=getComputedStyle(document.querySelector("body")).getPropertyValue("--color1-alpha50"),d=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],l=[];e.report=null,e.totalUniqueViewCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var b=function(y){var C=0,x=0,k=0,R=0,u=0,U=0,F=0;$.each(y,function(S,v){C+=v.desktopImpressionCount,x+=v.tabletImpressionCount,k+=v.mobileImpressionCount,R+=v.uniqueViews,u+=v.impressionTime,U+=v.totalViewTime,F+=v.impressionCount}),e.$apply(function(){e.totalUniqueViewCount=R,e.totalImpressionTime=u,e.totalViewTime=U,e.totalImpressionCount=F});var w=C+k+x;d[0].value=Math.round(100/(w/C)),d[1].value=Math.round(100/(w/k)),d[2].value=Math.round(100/(w/x)),i.validateData()},p=function(){var y=moment(s.startDate).startOf("day").toDate(),C=moment(s.endDate).startOf("day").toDate(),x=e.report.filter(function(k){return k.day>=y&&k.day<=C});b(x),o.zoom(y,moment(C).add(1,"d").toDate()),e.$apply(function(){e.startDay=y,e.endDay=C})};e.filterChapter=function(y){y.filtered=!y.filtered,function(){var y=e.chapters.filter(function(C){return!C.filtered}).map(function(C){return C.id});e.filterDisabled=!0,a.getBrochureReport({specialId:c.id,chapterIds:y}).then(function(C){C.forEach(function(x){x.day=moment(x.day.replace("Z","")).toDate()}),e.report=C,g(function(){(function(y){l.length=0,$.each(y,function(C,x){l.push(x)}),s.validateData(),o.validateData()})(C),p(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(y){return e.filterDisabled||1===e.chapters.filter(function(C){return!C.filtered}).length&&!y.filtered},a.getBrochureInfo(c.id).then(function(y){e.brochure=y,a.getBrochureReport({specialId:c.id}).then(function(C){C.forEach(function(k){k.day=moment(k.day.replace("Z","")).toDate()}),e.report=C,e.startDay=C[0].day,e.endDay=C[C.length-1].day;var x=[];$.each(y.chapterSlugs,function(k,R){x.push(r.getChapter(R))}),x=x.filter(function(k){return 2===k.managementState}),e.chapters=x,$.each(C,function(k,R){l.push(R)}),g(function(){i=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:n,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(s=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:l,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){p()}),o=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:n,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"uniqueViews",toField:"uniqueViews"}],dataProvider:l,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"uniqueViews",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),b(C)})},function(){e.error=!0})})}]),app.controller("BrochureReportController",["$scope","$rootScope","brochureService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,r,c,g,f,n){AmCharts.isReady=!0,a.getBrochureInfo(c.id).then(function(s){e.brochure=s,a.getBrochureCalendar(c.id).then(function(o){o.forEach(function(b){b.chapter=r.getChapter(b.chapterSlug),b.report.calendar.forEach(function(p){p.start=moment(p.start.replace("Z","")).toDate(),p.end=moment(p.end.replace("Z","")).toDate()})}),s.chapterReport=o,f(function(){var b,p,h,I,y,C,x=new Set;$.each(o,function(w,S){S.active=!0,x.add(S.chapter.name)}),o.uniqueChapters=[],x.forEach(function(w){o.uniqueChapters.push(w)});var k=[],R=function(){k.length=0,$.each(o[0].report.calendar,function(w,S){k.push({start:S.start,end:S.end,viewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueViewableImpressions:0,femaleUniqueViewableImpressions:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueViewableImpressions:0,age1824MaleUniqueViewableImpressions:0,age2534MaleUniqueViewableImpressions:0,age3544MaleUniqueViewableImpressions:0,age4554MaleUniqueViewableImpressions:0,age55MaleUniqueViewableImpressions:0,age1617FemaleUniqueViewableImpressions:0,age1824FemaleUniqueViewableImpressions:0,age2534FemaleUniqueViewableImpressions:0,age3544FemaleUniqueViewableImpressions:0,age4554FemaleUniqueViewableImpressions:0,age55FemaleUniqueViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0})}),$.each(o,function(w,S){if(S.active){o[w-1]&&2===o[w-1].chapter.managementState&&2===S.chapter.managementState&&o[w-1].chapter.name!==S.chapter.name&&(o.multiChapterShipment=!0);var v=S.report.brochure.Id;$.each(S.report.calendar,function(A,T){T.brochureId=v;var D=k[A];D.viewableImpressions+=T.viewableImpressions,D.activeTimeSeconds+=T.activeTimeSeconds,D.readings+=T.views,D.maleUniqueViewableImpressions+=T.maleViewableImpressions,D.femaleUniqueViewableImpressions+=T.femaleViewableImpressions,D.uniqueReadings+=T.uniqueViews,D.desktopReadings+=T.desktopViews,D.mobileReadings+=T.mobileViews,D.tabletReadings+=T.tabletViews,D.age1617MaleUniqueViewableImpressions+=T.age1617MaleViewableImpressions,D.age1824MaleUniqueViewableImpressions+=T.age1824MaleViewableImpressions,D.age2534MaleUniqueViewableImpressions+=T.age2534MaleViewableImpressions,D.age3544MaleUniqueViewableImpressions+=T.age3544MaleViewableImpressions,D.age4554MaleUniqueViewableImpressions+=T.age4554MaleViewableImpressions,D.age55MaleUniqueViewableImpressions+=T.age55MaleViewableImpressions,D.age1617FemaleUniqueViewableImpressions+=T.age1617FemaleViewableImpressions,D.age1824FemaleUniqueViewableImpressions+=T.age1824FemaleViewableImpressions,D.age2534FemaleUniqueViewableImpressions+=T.age2534FemaleViewableImpressions,D.age3544FemaleUniqueViewableImpressions+=T.age3544FemaleViewableImpressions,D.age4554FemaleUniqueViewableImpressions+=T.age4554FemaleViewableImpressions,D.age55FemaleUniqueViewableImpressions+=T.age55FemaleViewableImpressions})}}),h.validateData(),I.validateData(),y.validateData(),C.validateData()},u=o.summary={};b=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:k,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),p=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:"#00cdbd",fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:k,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:"Wie oft wurde die Prospektseite aufgerufen?",percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_reportBrochure_amountOfViews"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),h=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),I=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:l,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:"#00cdbd",balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(w,S){return-1*w.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(w){return w<0?-1*w+"":w+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),y=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:"#00cdbd",balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),C=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[u],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:"#00cdbd",fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:"#00cdbd",fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:"#00cdbd",fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:"#00cdbd",fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var F=function(){var w=moment(b.startDate).startOf("day").toDate(),S=moment(b.endDate).startOf("day").add(-1,"d").toDate();p.zoom(w,moment(S).add(1,"d").toDate()),function(w,S){u.viewableImpressions=0,u.billableViewableImpressions=0,u.activeTimeSeconds=0,u.readings=0,u.uniqueReadings=0,u.uniqueReadingsHavingViewableImpressions=0,u.uniqueReadingPercentageReads=0,u.maleUniqueViewableImpressions=0,u.femaleUniqueViewableImpressions=0,u.desktopReadings=0,u.mobileReadings=0,u.tabletReadings=0,u.age1617MaleUniqueViewableImpressions=0,u.age1824MaleUniqueViewableImpressions=0,u.age2534MaleUniqueViewableImpressions=0,u.age3544MaleUniqueViewableImpressions=0,u.age4554MaleUniqueViewableImpressions=0,u.age55MaleUniqueViewableImpressions=0,u.age1617FemaleUniqueViewableImpressions=0,u.age1824FemaleUniqueViewableImpressions=0,u.age2534FemaleUniqueViewableImpressions=0,u.age3544FemaleUniqueViewableImpressions=0,u.age4554FemaleUniqueViewableImpressions=0,u.age55FemaleUniqueViewableImpressions=0,u.uniqueReadingPercentage24Reads=0,u.uniqueReadingPercentage2549Reads=0,u.uniqueReadingPercentage5074Reads=0,u.uniqueReadingPercentage75100Reads=0;var v=0,A=0,T=0,D=0,m=0,M=0,E=0,P=0,q=0,N=0,O=0,_=0,V=0,L=0,z=0;u.start=w,u.end=S,$.each(k,function(H,Y){var Z=new Date(Y.start);Z<w||Z>S||(u.viewableImpressions+=Y.viewableImpressions,u.activeTimeSeconds+=Y.activeTimeSeconds,u.readings+=Y.readings,u.maleUniqueViewableImpressions+=Y.maleUniqueViewableImpressions,u.femaleUniqueViewableImpressions+=Y.femaleUniqueViewableImpressions,u.uniqueReadings+=Y.uniqueReadings,v+=Y.desktopReadings,A+=Y.mobileReadings,T+=Y.tabletReadings,D+=Y.age1617MaleUniqueViewableImpressions,m+=Y.age1824MaleUniqueViewableImpressions,M+=Y.age2534MaleUniqueViewableImpressions,E+=Y.age3544MaleUniqueViewableImpressions,P+=Y.age4554MaleUniqueViewableImpressions,q+=Y.age55MalUniqueeViewableImpressions,N+=Y.age1617FemaleUniqueViewableImpressions,O+=Y.age1824FemaleUniqueViewableImpressions,_+=Y.age2534FemaleUniqueViewableImpressions,V+=Y.age3544FemaleUniqueViewableImpressions,L+=Y.age4554FemaleUniqueViewableImpressions,z+=Y.age55FemaleUniqueViewableImpressions)});var G=v+A+T;u.desktopReadings=Math.round(100/(G/v)),u.mobileReadings=Math.round(100/(G/A)),u.tabletReadings=Math.round(100/(G/T)),u.maleUniqueViewableImpressions=Math.round(u.maleUniqueViewableImpressions),u.femaleUniqueViewableImpressions=Math.round(u.femaleUniqueViewableImpressions),d[0].value=u.femaleUniqueViewableImpressions,d[1].value=u.maleUniqueViewableImpressions;var J=u.viewableImpressions-(D+m+M+E+P+q+N+O+_+V+L+z);J>100&&(D+=J*t.scope.globalSettings.reportAverageAge1617Male,m+=J*t.scope.globalSettings.reportAverageAge1824Male,M+=J*t.scope.globalSettings.reportAverageAge2534Male,E+=J*t.scope.globalSettings.reportAverageAge3544Male,P+=J*t.scope.globalSettings.reportAverageAge4554Male,q+=J*t.scope.globalSettings.reportAverageAge55Male,N+=J*t.scope.globalSettings.reportAverageAge1617Female,O+=J*t.scope.globalSettings.reportAverageAge1824Female,_+=J*t.scope.globalSettings.reportAverageAge2534Female,V+=J*t.scope.globalSettings.reportAverageAge3544Female,L+=J*t.scope.globalSettings.reportAverageAge4554Female,z+=J*t.scope.globalSettings.reportAverageAge55Female),u.age1617MaleUniqueViewableImpressions=Math.round(100/(u.viewableImpressions/D)),u.age1824MaleUniqueViewableImpressions=Math.round(100/(u.viewableImpressions/m)),u.age2534MaleUniqueViewableImpressions=Math.round(100/(u.viewableImpressions/M)),u.age3544MaleUniqueViewableImpressions=Math.round(100/(u.viewableImpressions/E)),u.age4554MaleUniqueViewableImpressions=Math.round(100/(u.viewableImpressions/P)),u.age55MaleUniqueViewableImpressions=Math.round(100/(u.viewableImpressions/q)),u.age1617FemaleUniqueViewableImpressions=Math.round(100/(u.viewableImpressions/N)),u.age1824FemaleUniqueViewableImpressions=Math.round(100/(u.viewableImpressions/O)),u.age2534FemaleUniqueViewableImpressions=Math.round(100/(u.viewableImpressions/_)),u.age3544FemaleUniqueViewableImpressions=Math.round(100/(u.viewableImpressions/V)),u.age4554FemaleUniqueViewableImpressions=Math.round(100/(u.viewableImpressions/L)),u.age55FemaleUniqueViewableImpressions=Math.round(100/(u.viewableImpressions/z)),l[0].male=Math.round(-1*u.age1617MaleUniqueViewableImpressions),l[1].male=Math.round(-1*u.age1824MaleUniqueViewableImpressions),l[2].male=Math.round(-1*u.age2534MaleUniqueViewableImpressions),l[3].male=Math.round(-1*u.age3544MaleUniqueViewableImpressions),l[4].male=Math.round(-1*u.age4554MaleUniqueViewableImpressions),l[5].male=Math.round(-1*u.age55MaleUniqueViewableImpressions),l[0].female=Math.round(u.age1617FemaleUniqueViewableImpressions),l[1].female=Math.round(u.age1824FemaleUniqueViewableImpressions),l[2].female=Math.round(u.age2534FemaleUniqueViewableImpressions),l[3].female=Math.round(u.age3544FemaleUniqueViewableImpressions),l[4].female=Math.round(u.age4554FemaleUniqueViewableImpressions),l[5].female=Math.round(u.age55FemaleUniqueViewableImpressions),i[0].value=u.desktopReadings,i[1].value=u.mobileReadings,i[2].value=u.tabletReadings,h.validateData(),I.validateData(),y.validateData(),C.validateData(),e.$apply()}(w,S)};b.addListener("zoomed",function(w){F()}),e.toggleChapter=function(w){$.each(o,function(S,v){v.chapter.name===w&&(v.active=!v.active)}),f(function(){R(),F()},50)},R(),p.validateNow(),b.validateNow(),b.setDefaultPeriod(),F()},function(){e.error=!0})})},function(){n.path("/")});var d=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:"#00cdbd",value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],l=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],i=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.factory("brochureService",["$http","$q","$rootScope",function(e,t,a){var r=[],c=[];return a.$on("$locationChangeSuccess",function(){r.length=0,c.length=0}),{getBrochure:function(i){var s=t.defer();return i?e.get(scope.apiEndpoint+"brochures/"+i).then(function(o){s.resolve(o.data)},function(){s.reject()}):r.length>0?s.resolve(r.splice(0,1)[0]):c.push(s),s.promise},getBrochureInfo:function(i){var s=t.defer();return e.get(scope.apiEndpoint+"brochures/"+i+"/ReportInfo").then(function(o){s.resolve(o.data)},function(){s.reject()}),s.promise},getBrochureCalendar:function(i){var s=t.defer();return e.get(scope.apiEndpoint+"brochures/"+i+"/ReportCalendar").then(function(o){s.resolve(o.data)},function(){s.reject()}),s.promise},getBrochureReport:function(i){var s=t.defer();return e.post(scope.apiEndpoint+"brochures/report",i).then(function(o){s.resolve(o.data)},function(){s.reject()}),s.promise},resolve:function(i,s){var o=t.defer();return c.length>i&&(i=c.length),e.get(scope.apiEndpoint+"brochures/"+i+"/"+s).then(function(b){o.resolve(b.data),r.length=0,r.push.apply(r,b.data),c.forEach(function(p){r.length>0?p.resolve(r.splice(0,1)[0]):p.reject()}),c.length=0},function(){o.reject()}),o.promise}}}]),app.controller("CampaignController",["$rootScope","$scope","campaignService","profileService","$timeout","$location","$q",function(e,t,a,r,c,g,f){e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,r.getProfile().then(function(n){n.isAdvertiser||g.path("/").replace();var d=n.guid;e.$watch("profile.guid",function(){d!==n.guid&&g.path("/")})},function(){g.path("/").replace()}),e.data=a,e.isBusy=!0,e.articleFilter=function(n){return n.coverAssetReference},e.advertisementFilter=function(n){return!n.deleted&&!n.hidden},f.all([a.getBannerCampaigns(),a.getMarketResearchs(),a.getSparticleCampaigns(),a.getSpecials(),a.getBrochures(),a.getPremiums(),a.getSupers()]).then(function(){e.isBusy=!1})}]),app.factory("campaignService",["$http","$q",function(e,t){var a=[],r=[],c=[],g=[],f=[],n=[],d=[],l=[],o=function(){var w=t.defer();return a.length>0?w.resolve(a):e.get(scope.apiEndpoint+"campaigns").then(function(S){angular.copy(S.data,a),w.resolve(a)},function(){w.reject()}),w.promise};function U(w){var S=null;return $.each(a,function(v,A){if(A.pin==w)return S=A,!1}),S}return{campaigns:a,specials:n,brochures:d,bannerCampaigns:r,premiums:g,supers:l,marketResearchs:c,sparticleCampaigns:f,getCampaigns:o,getSpecials:function(){var w=t.defer();return n.length>0?w.resolve(n):e.get(scope.apiEndpoint+"specials").then(function(S){angular.copy(S.data,n),w.resolve(n)},function(){w.reject()}),w.promise},getBrochures:function(){var w=t.defer();return d.length>0?w.resolve(d):e.get(scope.apiEndpoint+"brochures").then(function(S){angular.copy(S.data,d),w.resolve(d)},function(){w.reject()}),w.promise},getBannerCampaigns:function(){var w=t.defer();return r.length>0?w.resolve(r):e.get(scope.apiEndpoint+"bannerCampaigns").then(function(S){angular.copy(S.data,r),w.resolve(r)},function(){w.reject()}),w.promise},getMarketResearchs:function(){var w=t.defer();return c.length>0?w.resolve(c):e.get(scope.apiEndpoint+"marketResearch").then(function(S){angular.copy(S.data,c),w.resolve(c)},function(){w.reject()}),w.promise},getPremiums:function(){var w=t.defer();return g.length>0?w.resolve(g):e.get(scope.apiEndpoint+"premiums").then(function(S){angular.copy(S.data,g),w.resolve(g)},function(){w.reject()}),w.promise},getSupers:function(){var w=t.defer();return l.length>0?w.resolve(l):e.get(scope.apiEndpoint+"super").then(function(S){angular.copy(S.data,l),w.resolve(l)},function(){w.reject()}),w.promise},getCampaignByPin:function(w){var S=t.defer();if(a.length>0){var v=U(w);v?S.resolve(v):e.get(scope.apiEndpoint+"campaigns/"+w).then(function(A){S.resolve(A.data)},function(){S.reject()})}else o().then(function(){var A=U(w);A?S.resolve(A):e.get(scope.apiEndpoint+"campaigns/"+w).then(function(T){S.resolve(T.data)},function(){S.reject()})},function(){S.reject()});return S.promise},createAdvertisement:function(w,S){var v=t.defer();return e.post(scope.apiEndpoint+"advertisements",S).then(function(A){w.advertisements.push(A.data),v.resolve(A.data)},function(A){v.reject(A)}),v.promise},deleteAdvertisement:function(w,S){var v=t.defer();return S.deleted=(new Date).getUTCDate(),e.delete(scope.apiEndpoint+"advertisements/"+S.pin).then(function(A){angular.copy(A.data,S),v.resolve(A)},function(){w.deleted=null,v.reject()}),v.promise},updateAdvertisement:function(w){var S=t.defer();return e.put(scope.apiEndpoint+"advertisements",w).then(function(v){angular.copy(v.data,w),S.resolve(v.data)},function(){S.reject()}),S.promise},getReportAdvertisementCalendar:function(w){var S=t.defer();return e.get(scope.apiEndpoint+"campaigns/"+w+"/ReportAdvertisementCalendar").then(function(v){S.resolve(v.data)},function(){S.reject()}),S.promise},getReportContentMarketingCalendar:function(w){var S=t.defer();return e.get(scope.apiEndpoint+"campaigns/"+w+"/ReportContentMarketingCalendar").then(function(v){S.resolve(v.data)},function(){S.reject()}),S.promise},getSparticleCampaigns:function(){var w=t.defer();return f.length>0?w.resolve(f):e.get(scope.apiEndpoint+"sponsoredArticleCampaigns").then(function(S){angular.copy(S.data,f),w.resolve(f)},function(){w.reject()}),w.promise}}}]),app.controller("ClosedChapterController",["$scope","$rootScope","$timeout","profileService","companyNewsService","$window","$location","$uibModal","$state","closedChapterService","authService","localStorageService",function(e,t,a,r,c,g,f,n,d,l,i,s){if(e.working=!1,e.success=!1,e.title=t.scope.currentScope.chapter.name,e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,e.showBackButton=!1,e.title=t.scope.network.getResourceOrKeyName("web_common_page_title_closedChapter",{chapterName:t.scope.currentChapter.name}),""!=t.scope.currentScope.chapter.path&&t.scope.network.chapters.length>0){var o=t.scope.network.chapters.filter(function(p){return 2==p.managementState&&"/"==p.path});e.showBackButton=o.length<1}var b=f.search().returnUrl;b&&window.sessionStorage.setItem("returnUrl",b),e.login=function(){d.go("app.main-login",{closedToken:f.search().token})},e.register=function(){d.go("app.register",{closedToken:f.search().token})},e.goBackToLanding=()=>{window.location.href=t.scope.network.path+"?ignoreFavoriteChapter=true"},e.hasRequest=!1,l.hasChapterRequest().then(function(p){e.hasRequest=p}),l.getRSS().then(function(p){e.feedArticles=p}),c.getCompanyNews().then(function(p){e.companyNews=p}),e.reload=function(){g.location.reload()},e.request=function(){l.getChapterRequest().then(function(){e.hasRequest=!0})},r.getProfile().then(function(p){e.profile=p,p.hasChapterAccess&&f.path("/").replace(),f.search().token&&p.isRegistered?(e.working=!0,l.consumeChapterUserToken(f.search().token).then(function(){e.consumeError=!1,a(function(){e.working=!1,e.success=!0,g.location.reload()},1e3)},function(){e.working=!1,e.consumeError=!0})):p.hasChapterAccess&&f.path("/").replace()}),e.privateLogOut=function(){const p=t.scope.currentChapter.closed;i.logout().then(function(){Oculus.navigate(""),p?window.location.href="/"!==t.scope.currentChapter.path?t.scope.currentChapter.path+"/login":"/login":(null!==t.scope.currentScope.network.settings.sharedAppLogoutUrl&&(window.location.href=t.scope.currentScope.network.settings.sharedAppLogoutUrl),t.app?window.location.href="/":d.go("app.main-login"))})},e.logout=function(){s.oculusOptOut?e.privateLogOut():Oculus.push(!1,e.privateLogOut())},e.loginButtonOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_closedChapter_login").toUpperCase(),onClick:e.login},e.goBackButtonOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_closedChapter_goBack").toUpperCase(),onClick:e.goBackToLanding},e.requestButtonOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_closedChapter_applyFor").toUpperCase(),onClick:e.request},e.logoutButtonOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_common_logout").toUpperCase(),onClick:e.logout},e.reloadButtonOptions={text:t.scope.currentScope.network.getResourceOrKeyName("web_closedChapter_refresh").toUpperCase(),onClick:e.reload}}]),app.factory("closedChapterService",["$http","$q",function(e,t){return{getChapterRequest:function(){var f=t.defer();return e.get(scope.apiEndpoint+"closedChapter/request").then(function(n){f.resolve()}),f.promise},hasChapterRequest:function(){var f=t.defer();return e.get(scope.apiEndpoint+"closedChapter/hasRequest").then(function(n){f.resolve(n.data)}),f.promise},consumeChapterUserToken:function(f){var n=t.defer();return e.put(scope.apiEndpoint+"closedChapter/"+f).then(function(d){n.resolve(d)},function(){n.reject()}),n.promise},getRSS:function(){var f=t.defer();return e.get(scope.apiEndpoint+"closedChapter/RSS").then(function(n){f.resolve(n.data)}),f.promise}}}]),app.directive("a",["$state","$rootScope","$location","$timeout",function(e,t,a,r){return{restrict:"E",link:function(c,g){t.app&&$(g).click(function(f){if("_blank"===$(g).attr("target")){f.preventDefault();var n=$(g).attr("href");let i=!1;if(n.match("https?://(.*/)?"+location.hostname+".*"))i=!0;else try{new URL(n),i=!1}catch{n.match("^(?:https?:)?//.*")||(i=!0)}if(i)n.startsWith("/click/")?r(function(){a.url(n)}):-1!==n.indexOf("/document/")||-1!==n.indexOf("/pdf/")?e.go("app.documentDownload",{id:/[^/]*$/.exec(n)[0]}):-1!==n.indexOf("/file/")?e.go("app.fileDownload",{id:/[^/]*$/.exec(n)[0]}):t.scope.currentChapter.path.length>1?n.startsWith(t.scope.currentScope.network.path+t.scope.currentChapter.path)?r(function(){a.url(n.replace(t.scope.currentScope.network.path+t.scope.currentChapter.path,""))}):window.location.href=n:(chapters=t.scope.chapters.filter(function(s){return 2===s.managementState&&s.path!=t.scope.currentChapter.path}),chapters.forEach(function(s){n.startsWith(t.scope.currentScope.network.path+s.path)&&(window.location.href=n)}),r(function(){a.url(n.replace("https://"+location.hostname,""))}));else if(typeof cordova<"u"){let s=t.scope.currentScope.network.settings.configurations.inAppBrowserOnly;var d="location=no,toolbarposition=top,toolbartranslucent=no";"android"===cordova.platformId&&(d="location=yes,hideurlbar=yes,zoom=no,closebuttoncaption="+t.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"));var l="_blank";(!s||n.match("mailto:.*")||n.match("tel:.*"))&&(l="_system"),cordova.InAppBrowser.open(n,l,d)}else console.log("external link: error while calling in app browser"),window.open(n,"_blank")}})}}}]),app.directive("amchart",function(){var e=!1;return{restrict:"A",scope:{config:"="},link:function(t,a,r){e&&e.destroy(),(e=new AmCharts.makeChart(a[0],t.config||{})).pathToImages="/content/amcharts/images/",r.chart&&(t.$parent[r.chart]=e)}}}),function(){"use strict";angular.module("angular-loading-bar",["cfp.loadingBarInterceptor"]),angular.module("chieffancypants.loadingBar",["cfp.loadingBarInterceptor"]),angular.module("cfp.loadingBarInterceptor",["cfp.loadingBar"]).config(["$httpProvider",function(e){e.interceptors.push(["$q","$cacheFactory","$timeout","$rootScope","$log","cfpLoadingBar",function(a,r,c,g,f,n){var s,d=0,l=0,i=n.latencyThreshold;function o(){c.cancel(s),n.complete(),l=0,d=0}function b(p){var h,I=r.get("$http"),y=e.defaults;(p.cache||y.cache)&&!1!==p.cache&&("GET"===p.method||"JSONP"===p.method)&&(h=angular.isObject(p.cache)?p.cache:angular.isObject(y.cache)?y.cache:I);var C=void 0!==h&&void 0!==h.get(p.url);return void 0!==p.cached&&C!==p.cached?p.cached:(p.cached=C,C)}return{request:function(p){return!p.ignoreLoadingBar&&!b(p)&&(g.$broadcast("cfpLoadingBar:loading",{url:p.url}),0===d&&(s=c(function(){n.start()},i)),d++,n.set(l/d)),p},response:function(p){return p&&p.config?(!p.config.ignoreLoadingBar&&!b(p.config)&&(l++,g.$broadcast("cfpLoadingBar:loaded",{url:p.config.url,result:p}),l>=d?o():n.set(l/d)),p):(f.error("Broken interceptor detected: Config object not supplied in response:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),p)},responseError:function(p){return p&&p.config?(!p.config.ignoreLoadingBar&&!b(p.config)&&(l++,g.$broadcast("cfpLoadingBar:loaded",{url:p.config.url,result:p}),l>=d?o():n.set(l/d)),a.reject(p)):(f.error("Broken interceptor detected: Config object not supplied in rejection:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),a.reject(p))}}}])}]),angular.module("cfp.loadingBar",[]).provider("cfpLoadingBar",function(){this.includeSpinner=!0,this.includeBar=!0,this.latencyThreshold=100,this.startSize=.02,this.parentSelector="body",this.spinnerTemplate='<div id="loading-bar-spinner"><div class="spinner-icon"></div></div>',this.loadingBarTemplate='<div id="loading-bar"><div class="bar"><div class="peg"></div></div></div>',this.$get=["$injector","$document","$timeout","$rootScope",function(e,t,a,r){var c,l,i,g=this.parentSelector,f=angular.element(this.loadingBarTemplate),n=f.find("div").eq(0),d=angular.element(this.spinnerTemplate),s=!1,o=0,b=this.includeSpinner,p=this.includeBar,h=this.startSize;function y(u){s&&(n.css("width",100*u+"%"),o=u,a.cancel(l),l=a(function(){C()},250))}function C(){if(!(x()>=1)){var u,U=x();u=U>=0&&U<.25?(3*Math.random()+3)/100:U>=.25&&U<.65?3*Math.random()/100:U>=.65&&U<.9?2*Math.random()/100:U>=.9&&U<.99?.005:0,y(x()+u)}}function x(){return o}function k(){o=0,s=!1}return{start:function I(){c||(c=e.get("$animate"));var u=t.find(g).eq(0);a.cancel(i),!s&&(r.$broadcast("cfpLoadingBar:started"),s=!0,p&&c.enter(f,u,angular.element(u[0].lastChild)),b&&c.enter(d,u,angular.element(u[0].lastChild)),y(h))},set:y,status:x,inc:C,complete:function R(){c||(c=e.get("$animate")),r.$broadcast("cfpLoadingBar:completed"),y(1),a.cancel(i),i=a(function(){var u=c.leave(f,k);u&&u.then&&u.then(k),c.leave(d)},500)},includeSpinner:this.includeSpinner,latencyThreshold:this.latencyThreshold,parentSelector:this.parentSelector,startSize:this.startSize}}]})}(),app.component("apicodoChapterGroups",{templateUrl:"/ClientApp/src/legacy-app/common/apicodoChapterGroups.html",bindings:{},controller:["$scope","$rootScope","$state","$timeout","translationService",function(e,t,a,r,c){if((e=this).show=!1,e.chapterPath="",e.chapterGroupChapters=[],e.showEvent=!1,e.swiperInitialized=!1,t.scope.currentScope.chapter.settings.configurations.enableChapterGroupsDisplay){if(e.chapterPath=t.scope.currentScope.chapter.path,e.chapterPath.endsWith("/")&&(e.chapterPath=e.chapterPath.substring(0,e.chapterPath.length-1)),t.scope.currentScope.chapter.chapterGroups)for(var g=t.scope.currentScope.chapter.chapterGroups.sort(function(l,i){return l.order-i.order}),f=0;f<g.length;f++)g[f].isFrontpageMenuStrip&&(e.chapterGroupChapters=e.chapterGroupChapters.concat(g[f].chapters.sort(function(l,i){return l.order-i.order})),e.show=e.chapterGroupChapters.length>0);if(e.shouldShowIcon=t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration&&1===t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration.CalendarLocation,e.shouldShowIcon&&(t.scope.currentChapter.settings.configurations.enableBirthdayCalendar||t.scope.currentChapter.settings.configurations.enableEventCalendar||t.scope.currentChapter.settings.configurations.enableEventArticles)&&(e.showEvent=!0),e.show=e.chapterGroupChapters.length>0,e.show){var d=[];for(f=0;f<e.chapterGroupChapters.length;f++)d.push(e.chapterGroupChapters[f].shortName);c.translateByUserLanguageCode(d).then(l=>{for(var i=0;i<e.chapterGroupChapters.length;i++)e.chapterGroupChapters[i].translatedName=l[i].translation,e.chapterGroupChapters[i].shortName=l[i].translation;e.show=e.chapterGroupChapters.length>0})}e.swiperInitialized||r(function(){e.swiperInitialized=new Swiper(".swiper-container",{slidesPerView:"auto",direction:"horizontal",navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})})}}]}),app.component("apicodoHeader",{templateUrl:"/ClientApp/src/legacy-app/common/apicodoHeader.html",bindings:{mobile:"<",searchGuid:"=?"},controller:["$scope","$rootScope","$state","$window","$location","$timeout","searchService","profileService","logoService","translationService","notificationService",function(e,t,a,r,c,g,f,n,d,l,i){function b(p){t.$apply(function(){angular.element(p.target).hasClass("searchbar")||(e.show=!1,r.removeEventListener("click",b))})}(e=this).guid="",e.focusIndex=-1,e.focusIndexMax=0,e.displayedItems=null,e.emptyResult=!1,e.searchGuid="",e.networkIconBigUrl=d.getNetworkIconBigUrl(),e.notification=i,e.showSnipMenuItem=t.showSnipSlide,e.customHeaderIconOrText=[],e.quadraticLogoEnabled=t.scope.network.settings.configurations.enableQuadraticNetworkLogo,e.multiLanguageTranslationSystemIsEnabled=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,e.small=ResponsiveBootstrapToolkit.is("<=xs"),e.isApp=t.app,$(window).resize(function(){e.small=ResponsiveBootstrapToolkit.is("<=xs")}),0!==t.scope.currentScope.chapter.settings.featureTranslationProvider&&(angular.element(document).ready(function(){e.availableTargetLanguages=[],$(".search-container"),$(".header-language-switch"),$(".header-language-icon"),l.getAvailableTargetLanguages().then(function(y){for(var C in y)e.availableTargetLanguages.push({languageCode:C})}),e.selectedTargetLanguage=t.profile.favoriteLanguage,t.$on("$stateChangeSuccess",function(){e.selectedTargetLanguage=t.profile.favoriteLanguage})}),e.translate=function(){moment.locale(e.selectedTargetLanguage),t.$broadcast("apicodo.translate",e.selectedTargetLanguage)}),t.scope.currentChapter.settings.configurations.custom_Header_Icon_Or_Text&&(e.customHeaderIconOrText=t.scope.currentChapter.settings.configurations.custom_Header_Icon_Or_Text.filter(function(p){return 1==p.Status})),e.showCalendarIcon=!1,e.shouldShowIcon=t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration&&0===t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration.CalendarLocation,e.shouldShowIcon&&(t.scope.currentChapter.settings.configurations.enableBirthdayCalendar||t.scope.currentChapter.settings.configurations.enableEventCalendar||t.scope.currentChapter.settings.configurations.enableEventArticles)&&(e.showCalendarIcon=!0),n.getProfile().then(function(p){e.guid=p.guid}),e.switchChapter=t.switchChapter,e.scope=t.scope,e.query=function o(){return a.includes("app.search")?c.search().q:""}(),e.hits=null,e.show=!1,e.search=function(){a.includes("app.search")?c.search("q",e.query):""===e.query?e.hits=null:f.search(e.query).then(function(p){e.show=!0,e.focusIndexMax=0,e.focusIndex=-1,e.emptyResult=!1,e.displayedItems=[],angular.forEach(p.articles,function(h,I){I<5&&(h.article.focusIndex=e.focusIndexMax,e.focusIndexMax++,e.displayedItems.push(h))}),0===e.focusIndexMax&&(e.focusIndexMax=1,e.emptyResult=!0),e.hits=p,t.scope.currentScope.network.settings.isStaffDirectoryEnabled&&f.getStaffDirectoryUsers(e.query).then(function(h){angular.forEach(h,function(I,y){y<5&&(I.focusIndex=e.focusIndexMax,e.focusIndexMax++,e.displayedItems.push(I))}),0===e.focusIndexMax&&(e.focusIndexMax=1),e.staffDirectoryUserHits=h})})},t.$on("keydown",function(p,h,I){if(!a.includes("app.search")&&(27===h&&(e.show&&(e.show=!1,I.preventDefault(),t.$apply()),I.preventDefault()),40===h&&(e.focusIndex===e.focusIndexMax&&(e.focusIndex=-1),e.focusIndex=e.focusIndex+1,I.preventDefault(),t.$apply()),38===h&&(e.focusIndex>-1&&(e.focusIndex=e.focusIndex-1,t.$apply()),I.preventDefault()),13===h&&-1!==e.focusIndex)){if(0===e.focusIndex&&e.emptyResult)return a.go("app.main-snips"),e.clear(),void I.preventDefault();if(e.focusIndex===e.focusIndexMax)return a.go("app.search",{q:e.query}),e.clear(),void I.preventDefault();var y=e.displayedItems[e.focusIndex];if(y.slug)return t.switchChapter(y.slug),e.clear(),void I.preventDefault();if(y.levelId)return a.go("app.public-profile",{id:y.guid}),e.clear(),void I.preventDefault();if(y.articleListDisplayableType){switch(y.articleListDisplayableType){case 4:a.go("app.snipDetail",{id:y.id});break;case 1:a.go("app.articleDetail",{id:y.id});break;default:a.go("app.sponsoredArticleDetail",{id:y.id})}return e.clear(),void I.preventDefault()}}}),e.focusItem=function(p){e.focusIndex=p.focusIndex},e.focusShowmore=function(){e.focusIndex=e.focusIndexMax},e.focusNewSnip=function(){e.focusIndex=0},e.clear=function(){e.query="",e.hits=null,e.focusIndexMax=0,e.focusIndex=-1,e.emptyResult=!1,e.displayedItems=[]},e.openSearch=function(){e.show=!0,e.show&&g(function(){r.addEventListener("click",b)})},e.details=function(){a.includes("app.search")||(a.go("app.search",{q:e.query}),e.query="",e.hits=null)},e.goSnips=function(){a.go("app.main-snips")}}]}),app.directive("authorizedClick",["$rootScope","profileService","ngxPopupService","$uibModal","$analytics","$timeout",function(e,t,a,r,c,g){return{restrict:"A",link:function(f,n,d){var l=null;f.$watch("element[0].onclick",function(){n[0].onclick&&(l=n[0].onclick,n[0].onclick=null)});var i=$._data($(n)[0]).events;i&&i.click&&i.click.reverse(),n.on("click",function(s){if(!t.profile.isRegistered){s.stopImmediatePropagation();var o=function(){g(function(){t.profile.isRegistered&&$(n).click()},900,!1)};if("Redesign2024"!=e.scope.currentScope.network?.settings.configurations.contentRenderEngine)r.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return o},facebookSignUpData:!1,login:!1}});else{let p=window.innerWidth<=768;const y={title:"Login",component:"AuthenticationDialogComponent",width:p?"100vw":"auto",height:"auto",position:p?{my:"bottom center",at:"bottom center"}:void 0,animation:{show:{type:"slide",duration:600,from:{position:{my:"top",at:"bottom",of:window},opacity:0},to:{position:{my:"bottom",at:"bottom",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"bottom",at:"bottom",of:window},opacity:1},to:{position:{my:"top",at:"bottom",of:window},opacity:0}}},onClose:()=>{},hideOnOutsideClick:!0,enableBodyScroll:!0,data:{templateUrl:"/ClientApp/src/app/cms-presentation/authentication/authentication-dialog/authentication-dialog.component.html"}};a.openPopup(y)}return c.eventTrack("ShowAuthenticationRequiredDialog",{category:"Conversion",label:d.authorizedClickSource}),!1}if(!t.profile.hasPartnerAccessAllowed){s.stopImmediatePropagation();var b=function(){g(function(){t.profile.hasPartnerAccessAllowed&&$(n).click()},900,!1)};return r.open({templateUrl:"/ClientApp/src/legacy-app/authentication/allowPartnerAccessDialog.html",controller:"AllowPartnerAccessDialog",size:"lg",resolve:{authenticationCallback:function(){return b}}}),!1}l&&l.call(n,s)}),i&&i.click&&i.click.reverse()}}}]),app.directive("automaticFocus",["$timeout",function(e){return{restrict:"A",link:function(t,a){/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||e(function(){$(a).focus()})}}}]),app.directive("autosize",["$timeout",function(e){return{restrict:"A",link:function(t,a,r,c){var g;e(function(){autosize(a),g&&g()}),$(a).parents(".modal").on("shown.bs.modal",function(f){var n=document.createEvent("Event");n.initEvent("autosize.update",!0,!1),a[0].dispatchEvent(n)}),/firefox/i.test(navigator.userAgent)&&(g=function(f){if(!a.val()){a.val(a.prop("placeholder")),a.css("color","#7F7F7F");var n=document.createEvent("Event");n.initEvent("autosize.update",!0,!1),a[0].dispatchEvent(n),e(function(){a.val(""),a.css("color","")})}},$(a).on("input",g),$(window).on("resize",g))}}}]),app.directive("birthYearValidation",function(){return{require:"ngModel",link:function(e,t,a,r){r.$parsers.unshift(function(c){if(null==c)return"";var g=c.replace(/[^0-9]/g,"");return g!=c&&(r.$setViewValue(g),r.$render()),g}),r.$parsers.push(function(c){if(!c)return null;var g=parseInt(c.toString().replace(/[^0-9]/g,""));return g!=c&&(r.$setViewValue(g),r.$render()),parseInt(g)}),r.$parsers.push(function(c){if(!c||4!=c.toString().length||0!==c.toString().lastIndexOf("20",0)&&0!==c.toString().lastIndexOf("19",0))return r.$setValidity("year",!1),c;r.$setValidity("year",!0);var g=moment().year()-moment(c.toString(),"YYYY").year();return r.$setValidity("age",!(g<0)),g>120&&r.$setValidity("year",!1),c})}}}),app.component("chapterLogo",{templateUrl:"/ClientApp/src/legacy-app/common/chapterLogo.html",bindings:{},controller:["$rootScope","logoService",function(e,t){var a=this;a.showChapterSwitch=e.scope.currentScope.network.chapters.filter(function(r){return 2===r.managementState}).length>1,a.quadraticLogoEnabled=e.scope.network.settings.configurations.enableQuadraticNetworkLogo,a.hasChapterLogo=t.hasChapterLogo(e.scope.currentScope.chapter),a.hasChapterLogoDark=t.hasChapterLogoDark(e.scope.currentScope.chapter),a.networkLogoUrl=t.getNetworkLogoUrl(),a.networkLogoDarkUrl=t.getNetworkLogoDarkUrl(),a.chapterLogoUrl=t.getChapterLogoUrl(),a.chapterLogoDarkUrl=t.getChapterLogoDarkUrl()}]}),app.directive("chart",function(){return{restrict:"E",template:"<canvas></canvas>",scope:{chartObject:"=value"},link:function(a,r,c){var n,g=r.find("canvas")[0],f=g.getContext("2d"),d={type:c.type||"Line",width:c.width||600,height:c.height||400};g.width=d.width,g.height=d.height,n=new Chart(f),a.$watch(function(){return r.attr("type")},function(i){i&&(d.type=i,n[d.type](a.chartObject.data,a.chartObject.options))}),a.$watch(function(){return a.chartObject},function(i){i&&n[d.type](a.chartObject.data,a.chartObject.options)})}}}),app.directive("compile",["$compile",function(e){return{scope:!0,link:function(t,a,r){var c;r.$observe("template",function(g){c=e(g)(t),a.html(""),a.append(c)})}}}]),app.directive("compileHtml",["$compile",function(e){return{restrict:"A",scope:{compileHtml:"="},link:function(t,a){t.$watch("compileHtml",function(r){if(console.log("COMPILE HTML",r),r){var c=e(r)(t.$parent);angular.element(c).find("a").each(function(){var f=angular.element(this);f.attr("target")||f.attr("target","_blank")}),a.empty().append(c)}})}}}]),app.component("customChapterLogo",{templateUrl:"/ClientApp/src/legacy-app/common/customChapterLogo.html",bindings:{},controller:["$scope","$rootScope","scopeService","logoService",function(e,t,a,r){var c=this;c.isManagedAlone=1===t.scope.currentScope.network.chapters.filter(function(){return 2===this.managementState}).length,c.chapterLogoUrl=r.getChapterLogoUrl(t.scope.currentScope.chapter),c.hasChapterLogo=r.hasChapterLogo()}]}),app.directive("ellipsis",["$timeout",function(e){return{restrict:"A",link:function(t,a){e(function(){$(a).ellipsis({responsive:!0})})}}}]),app.directive("emailValidation",function(){var e=/[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/;return{require:"ngModel",link:function(t,a,r,c){c.$parsers.unshift(function(g){if(e.test(g))return c.$setValidity("email",!0),g;c.$setValidity("email",!1)})}}}),app.service("fileUploadService",["$http","$q",function(e,t){this.uploadFileToUrl=function(a,r){var c=t.defer(),g=new FormData;return g.append("file",a),e.post(r,g,{transformRequest:angular.identity,headers:{"Content-Type":void 0}}).then(function(f){c.resolve(f)}).error(function(){c.reject()}),c.promise}}]),app.factory("formatterService",["$location","scopeService","$rootScope",function(e,t,a){var r=a.scope.network.settings.languagePack.split("-")[0];return null!=a.scope.profile.activeUserLanguage?.vendorLanguageCode&&r!=a.scope.profile.activeUserLanguage?.vendorLanguageCode&&(r=a.scope.profile.activeUserLanguage?.vendorLanguageCode),{getShortDateFormatString:function(){return moment.localeData(r).longDateFormat("L")},getShortDateTimeFormatString:function(){return moment.localeData(r).longDateFormat("L")+" "+moment.localeData(r).longDateFormat("LT")},momentFromNowAsString:function(l){var i=new moment(l,"YYYY-MM-DD HH:mm:ss","en");return moment.locale(r),(l=i.locale(a.scope.profile.activeUserLanguage?.vendorLanguageCode?a.scope.profile.activeUserLanguage?.vendorLanguageCode:r)).fromNow()},momentFromNowTimeout:function(l){var i=moment.duration(moment().diff(l)).asMinutes(),s=1e4;return i>10?s=3e5:i>1&&(s=6e4),s},eventCalendarFormatAsString:l=>{var i=new moment(l,"YYYY-MM-DD HH:mm:ss","en");return moment.locale(r),(l=i.locale(a.scope.profile.activeUserLanguage?.vendorLanguageCode?a.scope.profile.activeUserLanguage?.vendorLanguageCode:r)).format("dd, ll")}}}]),app.directive("iframeSetDimensionsOnload",[function(){return{restrict:"A",link:function(e,t,a){t.on("load",function(){var r=t[0],c=r.contentDocument?r.contentDocument:r.contentWindow.document;r.style.visibility="hidden",r.style.height="10px";var g=getDocHeight(c);g<200&&(g=250,console.log("Unable to determine iframe height. Fallback to 250 px.")),r.style.height=g+4+"px",r.style.visibility="visible"})}}}]),app.directive("imageLoad",function(){return{restrict:"A",link:function(e,t,a){t.on("load",function(){e.$apply(a.imageLoad)})}}}),app.service("imageUrlBuilderService",["$rootScope",function(e){return this.createCdnImageUrl=function(a,r){return a?e.scope.globalSettings.blobStorageCdnUrl+"/"+e.scope.globalSettings.blobStorageContainerNameImage+"/"+a+"?"+r:null},this}]),app.directive("integer",function(){return{require:"ngModel",link:function(e,t,a,r){r.$parsers.unshift(function(c){return parseInt(c)})}}}),app.directive("keyTrap",["$rootScope",function(e){return function(t,a){a.bind("keydown",function(r){e.$broadcast("keydown",r.keyCode,r)})}}]),function(){function e(t){return["$rootScope","$window","$log",function(a,r,c){var g;try{g=r[t]}catch{g={}}for(var d,l,s,f=g,n={$default:function(o){for(var b in o)angular.isDefined(n[b])||(n[b]=o[b]);return n},$reset:function(o){for(var b in n)"$"===b[0]||delete n[b];return n.$default(o)}},i=0;i<f.length;i++)try{(s=f.key(i))===s&&(n[s]=angular.fromJson(f.getItem(s)))}catch{}return d=angular.copy(n),a.$watch(function(){l||(l=setTimeout(function(){if(l=null,!angular.equals(n,d)){for(var o in angular.forEach(n,function(b,p){angular.isDefined(b)&&"$"!==p[0]&&f.setItem(p,angular.toJson(b)),delete d[p]}),d)f.removeItem(o);d=angular.copy(n)}},100))}),"localStorage"===t&&r.addEventListener&&r.addEventListener("storage",function(o){if(o.newValue)try{n[o.key]=angular.fromJson(o.newValue)}catch{n[o.key]=o.newValue}else delete n[o.key];d=angular.copy(n),a.$apply()}),n}]}app.factory("localStorageService",e("localStorage")).factory("sessionStorageService",e("sessionStorage"))}(),app.factory("markdownConverterService",["$rootScope","$http","$q","authService",function(e,t,a,r){var c=TurndownService;c.addRule&&c.addRule("emptyLine",{filter:function(d){return"p"===d.nodeName.toLowerCase()&&"<br>"===d.innerHTML},replacement:function(){return"<br>"}}),showdown.setOption("simpleLineBreaks",!0),showdown.setOption("strikethrough",!0);var g=new showdown.Converter({simpleLineBreaks:!0,strikethrough:!0});return{toMarkdown:function(d){return c.turndown(d||"")},toHtml:function(d){var l=g.makeHtml(d);return l&&(l=l.replace(new RegExp("\\r?\\n","g"),"")),l}}}]),app.directive("metaArticle",MetaArticleDirective),MetaArticleDirective.$inject=["metaService"],app.directive("metaEvent",MetaEventDirective),MetaEventDirective.$inject=["metaService"],app.directive("metaHead",["metaService",function(e){return{restrict:"E",link:function(t,a,r){t.$watch(function(){return r.title+r.description+t.$eval(r.article)+r.article},function(){(r.title||r.description)&&e.push(r.title,r.description)}),a.remove()}}}]),app.directive("metaSnip",MetaSnipDirective),MetaSnipDirective.$inject=["metaService"],app.directive("metaSponsoredArticle",MetaSponsoredArticleDirective),MetaSponsoredArticleDirective.$inject=["metaService"],app.directive("metaStaticArticle",MetaStaticArticleDirective),MetaStaticArticleDirective.$inject=["metaService"],app.directive("minCapitals",function(){return{restrict:"A",require:"ngModel",link:function(e,t,a,r){r.$validators.minCapitals=function(c){return!!(r.$isEmpty(c)||(c.match(/[A-Z]/g)||[]).length>=a.minCapitals)}}}}),app.directive("minNumbers",function(){return{restrict:"A",require:"ngModel",link:function(e,t,a,r){r.$validators.minNumbers=function(c){return!!(r.$isEmpty(c)||(c.match(/[0-9]/g)||[]).length>=a.minNumbers)}}}}),app.directive("minSpecialChars",function(){return{restrict:"A",require:"ngModel",link:function(e,t,a,r){r.$validators.minSpecialChars=function(c){return!!(r.$isEmpty(c)||(c.match(/[^A-Za-z0-9]/g)||[]).length>=a.minSpecialChars)}}}}),app.directive("momentFromNow",["$interval","$timeout","$rootScope",function(e,t,a){return{restrict:"A",scope:!1,link:function(r,c,g){var f,n;function d(){var l=a.scope.network.settings.languagePack.split("-")[0];if(null!=a.scope.profile.activeUserLanguage?.vendorLanguageCode&&l!=a.scope.profile.activeUserLanguage?.vendorLanguageCode&&(l=a.scope.profile.activeUserLanguage?.vendorLanguageCode),!n){var i=new moment(g.momentFromNow,"ddd MMM DD YYYY HH:mm:ss","en");moment.locale(l),n=i.locale(l||"de")}var s=n.fromNow();c[0].innerText=s,c[0].textContent=s;var o=moment.duration(moment().diff(n)).asMinutes(),b=1e4;o>10?b=3e5:o>1&&(b=6e4),f=t(function(){d()},b,!1)}t(function(){d()}),c.on("$destroy",function(){t.cancel(f)})}}}]),app.directive("noReturn",function(){return{require:"ngModel",link:function(e,t,a,r){t.keypress(function(c){return"13"!=c.which}),r.$parsers.unshift(function(c){if(null==c)return"";var g=c.replace("\r","").replace("\n"," ");return g!=c&&(r.$setViewValue(g),r.$render()),g})}}}),app.component("oha",{templateUrl:"/ClientApp/src/legacy-app/common/oha.html",bindings:{snip:"<",article:"<",assetReference:"<",size:"@",source:"@"},controller:["$rootScope","$element","$timeout","$analytics","snipService","articleService","assetService",function(e,t,a,r,c,g,f){var n=this;n.profile=e.profile;var l,i,d=t,s=d.find(".oha-text"),o=d.find(".oha-score-tspan");n.isArticle=!1,n.isSnip=!1,n.isAssetReference=!1,n.isDisabled=!1,n.isPreview=!1,n.isLoading=!1,n.showLikes=!1,n.showScore=!0,n.showComponent=!0,n.ohaAdditionalClass="",n.ohaName=e.scope.currentScope.network.getResourceOrKeyName("web_common_oha"),n.ohaName&&n.ohaName.startsWith("<span ")&&n.ohaName.endsWith("</span>")&&(n.ohaName=n.ohaName.replace("</span>","</tspan>"),n.ohaName=n.ohaName.replace("<span ","<tspan ")),this.$onInit=function(){n.article?(n.isArticle=!0,n.showLikes=e.scope.currentScope.chapter.settings.enableOhaLikes,n.showScore=!e.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig<1,n.showComponent=!e.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig<2,l=n.article,i=g):n.snip?(n.isSnip=!0,n.showLikes=e.scope.currentScope.chapter.settings.enableOhaLikes,n.showScore=!e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig<1,n.showComponent=!e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig<2,l=n.snip,i=c):n.assetReference&&(n.isAssetReference=!0,l=n.assetReference,n.showScore=!e.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig<1,n.showComponent=!e.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig<2),e.scope.network.settings.configurations.ohaConfigurationModel&&e.scope.network.settings.configurations.ohaConfigurationModel.useIcon&&(n.ohaAdditionalClass=e.scope.network.settings.configurations.ohaConfigurationModel.additionalClass,n.ohaName=String.fromCharCode(e.scope.network.settings.configurations.ohaConfigurationModel.charCode)),n.isAnimated=!n.isAssetReference&&!n.showLikes&&"ArticleDisplayable"!==n.source&&"xs"!==n.size,n.isTransitioned=!n.isAssetReference&&"ArticleDisplayable"!==n.source,n.isDisabled=!n.isAssetReference&&(l.archived||l.deleted),n.isPreview=n.isArticle&&l.isPreview,n.size=n.size?n.size:"md"},n.getReferenceScore=function(){return l?n.isAssetReference||n.showLikes?l.likes:l.score<1?l.score:1:0},n.getScore=function(){if(n.isDisabled||!l||typeof l.likes>"u")return"...";if(!n.isAssetReference&&!n.showLikes){var p=l.score;return(p<1?100*p:100).toFixed(p<1?1:0).replace(/\./g,",")}return l.likes.toString()},n.iLike=function(){return l?l.iLike:null},n.oha=function(){if(!(n.isDisabled||e.profile.readOnlyMode||n.isPreview||n.isLoading)&&l)if(n.isTransitioned||(n.isTransitioned=!0),n.isLoading=!0,s.addClass("oha-loading").removeClass("oha-liked"),l.iLike=!l.iLike,n.isAssetReference)f.like(l.guid).then(function(I){n.animateOhaButton(I.likes)},function(){l.iLike=!l.iLike,n.animateOhaButton(l.score)});else{var p=l.score,h=l.likes;l.iLike&&a(function(){n.animateOhaPlanet(0)}),i.like(l.id).then(function(I){var y=I.score,C=I.likes;r.eventTrack("o-ha!",{category:"Interaction",label:n.source,value:l.iLike?1:0}),n.showLikes?((l.iLike&&h>C||!l.iLike&&h<C)&&(C=h),n.animateOhaButton(C)):((l.iLike&&p>y||!l.iLike&&p<y)&&(y=p),n.animateOhaButton(y<1?y:1))},function(){l.iLike=!l.iLike,n.animateOhaButton(n.showLikes?h:p)})}},n.animateOhaButton=function(p){if(l){var h=!n.isAssetReference&&l.iLike?750:0,I=!n.isAssetReference&&l.iLike?500:0;a(function(){n.showLikes?l.likes=p:l.score=p,h?(o.text(n.showLikes?p:(100*p).toFixed(p<1?1:0)),s.addClass("oha-liked"),o.counterUp({delay:25,time:I,formatter:function(y){return y.replace(/\./g,",")},callback:function(){n.isLoading=!1,a(function(){s.removeClass("oha-liked")},500)}})):(n.isAssetReference||n.showLikes?l.likes=p:l.score=p,n.isLoading=!1),s.removeClass("oha-loading")},h)}},n.getStrokeDashoffset=function(p){return 102.1-(102.1*p).toFixed(0)},n.getRotateDegrees=function(p){return 360*p},n.animateOhaPlanet=function(p){if(l){d.find(".oha-outer").css("stroke-dashoffset",n.getStrokeDashoffset(p));var I=d.find(".oha-rotate");I.css("transform","rotateZ("+n.getRotateDegrees(p)+"deg)"),I.attr("transform","rotate("+n.getRotateDegrees(p)+")"),a(function(){l.score=p},500)}}}]}),app.directive("onReturn",["$parse",function(e){return{scope:!1,link:function(t,a,r,c){var g;r.onReturn&&(g=e(r.onReturn)),a.keypress(function(f){return"13"!=f.which||!(f.ctrlKey||""!==r.onReturnRequireCtrl&&"true"!==r.onReturnRequireCtrl)||(g&&g(t),!1)}),c&&c.$parsers&&c.$parsers.unshift(function(f){if(null==f)return"";var n=f.replace("\r","").replace("\n"," ");return n!=f&&(c.$setViewValue(n),c.$render()),n})}}}]),app.directive("page",["$interpolate","$rootScope",function(e,t){return{templateUrl:"/ClientApp/src/legacy-app/common/page.html",restrict:"E",transclude:!0,link:function(a,r,c){var n;if(c.pageTitle&&(a.title=e(c.pageTitle)()),a.isApp=t.app,(n=window.navigator.userAgent).indexOf(" Android ")>-1&&n.indexOf("Version/")>-1&&parseFloat((n.match("Android ([0-9.]+)")||[])[1])<=4.4){var f=$(window).height()-51;$(".app-mobile .pageWrapper").css("height",f+"px")}}}}]),app.factory("parserService",["$location","profileService","localStorageService","articleService","$rootScope","$timeout",function(e,t,a,r,c,g){return{postProcessHtml:function(n){if(n&&n.content){let I=function(y){const C=y.attr("href");if(!C)return;const x=c.scope.currentChapter.path;let k;try{k=new URL(C,location.href)}catch{return}k.host===location.hostname&&k.pathname.startsWith(`${x}`)?k.pathname.includes("/file/")||k.pathname.includes("/document/")||k.pathname.includes("/pdf/")?y.attr("target","_blank"):y.removeAttr("target"):y.attr("target","_blank").attr("rel","noopener noreferrer")};n.processedContent=n.content.replace(/(<p>)?!\[(.+?)\](<\/p>)?/gi,function(y,C,x,k){return"<asset asset-reference=\"resolveAsset('"+x+'\')" data-guid="'+x+'" article="article" snip="snip" sponsored-article="sponsoredArticle" static-article="staticArticle"></asset>'}),n.processedContent=n.processedContent.replace(/(<p><\/p>)+/gi,function(){return"<p></p>"});var d=document.createElement("div");d.innerHTML=n.processedContent;var l=0;if("Redesign2024"!=c.scope.network.settings.configurations?.contentRenderEngine&&$(d).children("blockquote").each(function(y,C){if(!($(C).children("blockquote").length>0)){var x=0;$(C).nextAll().each(function(R,u){if("p"!==$(u).prop("tagName").toLowerCase())return!1;x+=$(u).text().length}),1.5*$(C).text().length<x&&(l++,$(C).addClass("allow-float"),l%2>0?$(C).addClass("allow-float-right"):$(C).addClass("allow-float-left"))}}),"Redesign2024"==c.scope.network.settings.configurations?.contentRenderEngine){for(var i=0;i<n.assetReferences.length;i++)null!==n.assetReferences[i].assetImage&&2===n.assetReferences[i].assetImage.type&&$(d).find("asset[data-guid='"+n.assetReferences[i].guid+"']").attr("data-type","2");$(d).find(":not(asset[data-type='2']) + asset[data-type='2'], asset[data-type='2']:first-of-type").each(function(){var y=[],C=$(this).nextUntil(":not(asset[data-type='2'])").addBack();C.each(function(){var k=$(this).attr("data-guid");k&&y.push(JSON.stringify(n.assetReferences.find(R=>R.guid==k).assetImage).replace(/\"/g,"&quot;").replace(/"/g,"&quot;").replace(/\\/g,"\\\\").replace(/'/g,"&#39;").replace(/\n/g,"\\n"))});var x=$('<image-gallery-component [inline]="true" [images]="[\''+y.join("', '")+"']\"/>").addClass("image-gallery");C.first().before(x),C.remove()})}else{for(i=0;i<n.assetReferences.length;i++)null!==n.assetReferences[i].assetImage&&2===n.assetReferences[i].assetImage.type&&$(d).find("asset[data-guid='"+n.assetReferences[i].guid+"']").attr("data-type","2");$(d).find(":not(asset[data-type='2']) + asset[data-type='2'], asset[data-type='2']:first-of-type").each(function(){$(this).nextUntil(":not(asset[data-type='2'])").addBack().wrapAll('<div class="asset-image-gallery asset-image-gallery-article" />')}),$(d).find(".asset-image-gallery asset").each(function(){$(this).attr("image-gallery-item-index",$(this).index())})}if("Redesign2024"!=c.scope.network.settings.configurations?.contentRenderEngine){var s=/^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i;$(d).find(".call-to-action").each(function(){var y=$.trim($(this).text());null!==s.exec(y)&&$(this).html('<img ng-src="'+c.scope.globalSettings.blobStorageCdnUrl+"/"+c.scope.globalSettings.blobStorageContainerNameImage+"/"+y+'?preset=focus&amp;cache=0">').addClass("call-to-action-assetImage")})}else{const y=/^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i;$(d).find(".call-to-action").each(function(){const C=$(this),x=$.trim(C.text());if(!y.test(x))return;const k=n.assetReferences.filter(w=>w.assetImage&&w.assetImage.guid===x).map(w=>w.assetImage),R=window.innerWidth<482?"call-to-action-sm&amp;cache=0":"call-to-action&amp;cache=0",u=c.scope.globalSettings.blobStorageCdnUrl+"/"+c.scope.globalSettings.blobStorageContainerNameImage+"/"+x+"?preset="+R;if(0===k.length)return null!==y.exec(x)?void $(this).html('<img src="'+u+'">').addClass("call-to-action-asset-image"):void 0;const U=k[0];let F='<img src="'+u+'">';if(U.alwaysShowImageDescription){let w="";if(U.text&&U.text.trim()&&(w+='<span class="call-to-action-image-info-text-description">'+$("<div/>").text(U.text).html()+"</span>"),U.source&&U.source.trim()){const S=c.scope.network.getResourceOrKeyName("web_asset_imageSourceInfo")+" "+U.source;w+='<span class="call-to-action-image-info-text-source">'+$("<div/>").text(S).html()+"</span>"}w&&(F+='<div class="call-to-action-image-info-text-wrapper">'+w+"</div>")}C.html(F).addClass("call-to-action-asset-image")})}if(n.sponsored||navigator.userAgent&&-1!==navigator.userAgent.toLowerCase().indexOf("googlebot")||scope.currentChapter.scopeStaticArticlesDictionary[e.$$path.replace(scope.currentChapter.path,"")])n.shipmentsPlaced=0;else{var o=$(d).children("p");n.shipmentsPlaced=0;var b=0;(function(){var y=[],C=[],x=1,k=3;o.length<=3&&(x=0,k=2);for(var R=x;R<o.length;R++)0===$(o[R]).next().length||"div"!==$(o[R]).next().prop("tagName").toLowerCase()&&"asset"!==$(o[R]).next().prop("tagName").toLowerCase()&&!$(o[R]).text().trim().endsWith(":")&&!$(o[R]).next().hasClass("allow-float")||"h3"===$(o[R]).next().prop("tagName").toLowerCase()?y.push(R):"div"!==$(o[R]).next().prop("tagName").toLowerCase()&&!$(o[R]).text().trim().endsWith(":")&&!$(o[R]).next().hasClass("allow-float")&&C.push(R);if(0===y.length&&0===C.length)return 0;if(0===y.length)$(o[C[0]]).next().after("<delivery article='article' />"),n.shipmentsPlaced++,b=C[0];else if(1===y.length)if(C.length>0)if(y[0]+1>=o.length/2&&C[0]<y[0])$(o[C[0]]).next().after("<delivery article='article' />"),n.shipmentsPlaced++,b=C[0],y[0]-C[0]>=k&&($(o[y[0]]).after("<delivery article='article' />"),n.shipmentsPlaced++,b=y[0]);else{$(o[y[0]]).after("<delivery article='article' />"),n.shipmentsPlaced++,b=y[0];for(var u=y[0],U=0;U<C.length;U++)if(!(Math.abs(C[U]-u)<k)){$(o[C[U]]).next().after("<delivery article='article' />"),n.shipmentsPlaced++,b=C[U];break}}else $(o[y[0]]).after("<delivery article='article' />"),n.shipmentsPlaced++,b=y[0];else{b=x-k,y[0]+1>=o.length/2&&C[0]<y[0]&&C[0]>=x&&($(o[C[0]]).next().after("<delivery article='article' />"),n.shipmentsPlaced++,b=C[0]);for(var F=0;F<y.length;F++)if(!(y[F]-b<k)){if($(o[y[F]]).after("<delivery article='article' />"),n.shipmentsPlaced++,3===n.shipmentsPlaced)break;b=y[F]}}})(),n.shipmentsPlaced<2&&b<o.length-1&&($(d).append("<delivery article='article' />"),n.shipmentsPlaced++)}4!==n.articleListDisplayableType&&a.enableArticleExitRates&&t.getProfile().then(function(y){y.isAdmin&&r.getExitRates(n.articleId).then(function(C){C.forEach(function(x,k){var R=0===k?1:C[k-1].word+1,u=C[k+1]?x.word:-1,U=$(d).find(":not(iframe)").contents().filter(function(){return 3===this.nodeType}).sort(function(w,S){return w===S?0:w.compareDocumentPosition?2&w.compareDocumentPosition(S)?1:-1:w.sourceIndex-S.sourceIndex}).toArray(),F=0;U.forEach(function(w){var S=$(w).text().split(/(\s)/),v=[],A=[];if(S.forEach(function(D){D.trim()?++F<R||u-F<0&&-1!==u?A.push(D):v.push(D):F<R||u-F<0&&-1!==u?A.push(D):v.push(D)}),v.length){var T='<span class="exit-rate" style="background-color: rgba(204, 0, 0, '+x.rate/100+');" uib-tooltip="Absprungrate: '+x.rate+'%">'+v.join("")+"</span>";A.length&&(T+=A.join("")),$(w).replaceWith(T),n.processedContent=d.innerHTML}})})})}),$(d).find("a:not([target])").each(function(){I($(this))}),$(d).find("a.call-to-action").each(function(){I($(this))}),n.processedContent=d.innerHTML,n.postProcessed=!0}}}}]),app.directive("photoswipe",["$timeout","$location","$rootScope","$window",function(e,t,a,r){return{link:function(c,g,f){var n;a.$watch(function(){return t.search().zoom},function(d){!d&&n&&n.close()}),$(g).parents("asset").wrap('<div class="asset-image-gallery-item"/>'),e(function(){var d=$(g).parents(".asset-image-gallery"),l=d.find("[photoSwipe]"),s=l.index(g);if(0===s&&d.addClass("asset-image-gallery-"+l.length),-1!==s&&($(g).on("click",function(b){b.preventDefault();var p=[];l.each(function(y,C){if(!0===$(C).data("gallery-item")){var x=$(C).parent().find(".imageInfo-title"),k=$(C).parent().find(".imageInfo-source"),R=[x.html(),k.html()].filter(Boolean).join(" - "),u=$(C).parentsUntil(".asset-image-gallery").find("asset-user-badge");u.length>0&&(R+="<br>"+$("<div />").append(u.clone()).html()),p.push({src:$(C).data("image"),w:$(C).data("width"),h:$(C).data("height"),title:R})}});var h={index:s%=p.length,history:!1,closeOnScroll:!1,preload:[2,2],isClickableElement:function(){return!0}},I=document.querySelectorAll(".pswp")[0];(n=new PhotoSwipe(I,PhotoSwipeUI_Default,p,h)).listen("gettingData",function(y,C){if(C.w<1||C.h<1){var x=new Image;x.onload=function(){C.w=this.width,C.h=this.height,n.updateSize(!0)},x.src=C.src}}),n.listen("initialZoomIn",function(){bodyScrollLock.disableBodyScroll($(".pswp")),$("button.oha").css("pointer-events","none")}),n.listen("destroy",function(){bodyScrollLock.clearAllBodyScrollLocks(),e(function(){$("button.oha").css("pointer-events","all"),t.search().zoom&&r.history.back()},200)}),n.init(),e(function(){t.search("zoom",!0)})}),3===s&&l.length>4)){var o=l.length-4;g.find(".asset-image-gallery-overlay").text("+"+o).addClass("asset-image-gallery-overlay-visible")}})}}}]),app.run(["$rootScope","$window","profileService","$location","$analytics",function(e,t,a,r,c){e.$on("$viewContentLoaded",function(){t._paq&&a.getProfile().then(function(g){t._paq.push(["setCustomVariable",1,"guid",g.guid,"visit"]),t._paq.push(["setCustomVariable",2,"isRegistered",g.isRegistered,"visit"]),t._paq.push(["setCustomVariable",3,"isJournalist",g.isJournalist,"visit"]),t._paq.push(["setCustomVariable",4,"isMerkuristJournalist",g.isMerkuristJournalist,"visit"]),t._paq.push(["setCustomVariable",5,"isAdvertiser",g.isAdvertiser,"visit"]),c.pageTrack(c.settings.pageTracking.basePath+e.scope.currentChapter.path+r.url(),r)})})}]),app.component("propertyGrid",{bindings:{staffdata:"=",isReadonly:"<",userId:"<",api:"=",loadFunction:"<",saveFunction:"<",gridOnInit:"&",noGroups:"<",noHelp:"<"},templateUrl:"/ClientApp/src/legacy-app/common/propertyGrid.html",controller:["$location","$element","$scope","translationService","$rootScope","$sanitize",function(e,t,a,r,c,g){var f=this;function n(){var p=$(t).jqPropertyGrid("get");f.saveFunction(f.userId,p).then(function(h){f.staffDirectoryData=h,s=f.staffDirectoryData.data,b=f.staffDirectoryData.metaData,$(t).jqPropertyGrid(s,{isReadonly:f.isReadonly,meta:b,customTypes:i,postCreateInitFuncs:[]})},function(h){alert("Staff dir NOT saved")})}function d(){alert("Staff dir loaded")}this.$onInit=function(){f.api={},f.api.save=n,f.api.load=d,f.api.getData=function(){return $(t).jqPropertyGrid("get")},0==f.isReadonly&&(a.$parent.$parent.$parent.gridApi=f.api),f.loadFunction(f.userId).then(function(p){f.staffDirectoryData=p;var h=c.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==h){var I=c.scope.profile,y=c.scope.network.settings.languagePack.split("-")[0];if(null!=I.activeUserLanguage?.vendorLanguageCode&&y!=I.activeUserLanguage?.vendorLanguageCode){s=f.staffDirectoryData.data,b=f.staffDirectoryData.metaData;for(var C=Object.entries(b).map(function(A){return{key:A[0],value:A[1]}}),x=[],k=[],R=[],u=[],U=[],F=0;F<C.length;F++){var w=C[F];x.push(w.key),k.push(w.value.description),R.push(w.value.name),u.push(w.value.metaDataSource.displayLabel),U.push(w.value.metaDataSource.editLabel)}var S=R.concat(k).concat(U).concat(u);r.translateByUserLanguageCode(S).then(A=>{for(var T=A.length/4,D=0;D<T;D++){var m=x[D];b[m].name=A[D].translation,b[m].description=A[D+T].translation,b[m].metaDataSource.displayLabel=A[D+2*T],b[m].metaDataSource.editLabel=A[D+3*T]}var M={isReadonly:f.isReadonly,meta:b,customTypes:i,postCreateInitFuncs:[],noGroups:f.noGroups};M.helpHtml=1==f.noHelp?" ":'<i class="fa fa-question-circle"></i>',$(t).jqPropertyGrid(s,M)})}else s=f.staffDirectoryData.data,(v={isReadonly:f.isReadonly,meta:b=f.staffDirectoryData.metaData,customTypes:i,postCreateInitFuncs:[],noGroups:f.noGroups}).helpHtml=1==f.noHelp?" ":'<i class="fa fa-question-circle"></i>',$(t).jqPropertyGrid(s,v)}else{var v;s=f.staffDirectoryData.data,(v={isReadonly:f.isReadonly,meta:b=f.staffDirectoryData.metaData,customTypes:i,postCreateInitFuncs:[],noGroups:f.noGroups}).helpHtml=1==f.noHelp?" ":'<i class="fa fa-question-circle"></i>',$(t).jqPropertyGrid(s,v)}},function(p){console.log(p)})},f.chapterGroups=scope.currentScope.chapter.chapterGroups,f.chapterGroups=scope.currentScope.chapter.chapterGroups,f.chapterGroupSelections={},f.filtered=!1;var i={icon:{html:function(p,h,I,y){return'<i class="fa fa-'+I+'"></i>'},valueFn:function(){return"Icon field value"}},textarea:{html:function(p,h,I,y){var C='<textarea class="form-control" id="'+p+'" rows=6 style="overflow-x: auto; width:100%">';return I instanceof Array&&(C+=I.join("\n")),C+"</textarea>"},makeValueFn:function(p,h,I,y){return function(){return $("#"+p).val().split("\n")}}},datePicker:{html:function(p,h,I,y){return'<input class="form-control" id="'+p+'">'+"</input>"},makePostCreateFn:function(p,h,I,y,C,x){return p?function(){var R=$("#"+p);R.datepicker({changeMonth:!0,changeYear:!0,yearRange:"-100:+1",gotoCurrent:!0,numberOfMonths:1,firstDay:1,defaultDate:null,prevText:'<i class="fa fa-chevron-left"></i>',nextText:'<i class="fa fa-chevron-right"></i>',dateFormat:"dd.mm.yy",closeText:"Schlie\xdfen",prevText:'<i class="fa fa-chevron-left"></i>',nextText:'<i class="fa fa-chevron-right"></i>',currentText:"Heute",monthNames:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",showButtonPanel:!1});var u=new Date(I);u.setMinutes(u.getMinutes()-u.getTimezoneOffset()),I?R.datepicker("setDate",u):R.datepicker()}:null},makeValueFn:function(p,h,I,y){return function(){return $("#"+p).datepicker("getDate")?new Date($("#"+p).datepicker("getDate")):null}}},tagArea:{html:function(p,h,I,y){var C='<textarea id="'+p+'">';return I instanceof Array&&(C+=g(I.join(","))),C+"</textarea>"},makePostCreateFn:function(p,h,I,y,C,x){return p?($.extend({},h),function(){var u=$("#"+p);u.tagEditor({placeholder:"Enter tags ..."},I),C&&u.on("spin change keyup paste input",function(w,S){C(x,y,S?S.value:$(w.target).val())})}):null},makeValueFn:function(p,h,I,y){return function(){return $("#"+p).val().split(",")}},colSpan2:!0},tagAutocomplete:{html:function(p,h,I,y){var C='<textarea id="'+p+'">';return I instanceof Array&&(C+=g(I.join(","))),C+"</textarea>"},makePostCreateFn:function(p,h,I,y,C,x){if(!p)return null;var k={};if(h){for(var R=[],u=0;u<h.length;u++)R.push(h[u].text);k.autocomplete={delay:0,position:{collision:"flip"},source:R},k.forceLowercase=!1}return $.extend(k,h),function(){var F=$("#"+p);F.tagEditor(k,I),C&&F.on("spin change keyup paste input",function(S,v){C(x,y,v?v.value:$(S.target).val())})}},makeValueFn:function(p,h,I,y){return function(){return $("#"+p).val().split(",")}},colSpan2:!0},phonecall:{html:function(p,h,I,y){if(0==y.isReadonlyMode)return'<input type="text" class="form-control" id="'+p+'" value="'+g(I)+'"</input>';if(I){var C='<a class="btn btn-green btn-block" role="button" id="'+p+'" href="tel:'+g(I)+'">';return C+='<i class="fa fa-phone" aria-hidden="true"></i> ',(C+=g(I))+"</a>"}return""}},emailsend:{html:function(p,h,I,y){if(0==y.isReadonlyMode)return'<input type="text" class="form-control" id="'+p+'" value="'+g(I)+'"</input>';if(I){var C='<a class="btn btn-green btn-block" role="button" id="'+p+'" href="mailto:'+g(I)+'">';return C+='<i class="fa fa-envelope" aria-hidden="true"></i> ',(C+=g(I))+"</a>"}return""}}},s={accumulateTicks:!0,filter:!1,filterSize:200,buyColor:"#00ff00",sellColor:"#ff0000",someOption:"Maybe",noGroup:"I have no group",dontShowMe:"please",tagArea:null},b={dontShowMe:{browsable:!1},filter:{group:"Behavior",name:"Filter",type:"boolean"},filterSize:{group:"Behavior",name:"Filter size",type:"number",options:{min:0,max:500,step:10}},accumulateTicks:{group:"Behavior",name:"Accumulate ticks",type:"boolean"},buyColor:{group:"Appearance",name:"Buy color",type:"color",options:{preferredFormat:"hex",showInput:!0,showInitial:!0}},sellColor:{group:"Appearance",name:"Sell color",type:"color",options:{preferredFormat:"hex",showInput:!0,showInitial:!0}},someOption:{name:"Some option",type:"options",options:["Yes","No",{text:"Not sure",value:"Maybe"}]},tagArea:{name:"Tags",type:"tagArea",description:"This is a tager",showHelp:!1,options:{delimiter:","}}}}]}),function(e){var t="Other",a="pg.getValues",r=0;function c(i,s){return'<tr class="pgGroupRow '+(s?"pgCollapsible":"")+'"><td colspan="2" class="pgGroupCell">'+(s?"- ":"")+i+"</td></tr>"}function l(){var i=e(this);if(null!==i.spinner("value")||"string"!=typeof i.val()){var o=i.spinner("option","min"),b=i.spinner("option","max");"number"==typeof o&&this.value<o?this.value=o:"number"==typeof b&&this.value>b&&(this.value=b)}else i.val("")}e.fn.jqPropertyGrid=function(i,s){if("string"==typeof i&&"get"===i)return"function"==typeof this.data(a)?this.data(a)():null;if("string"!=typeof i)if("object"==typeof i&&null!==i){(s=s&&"object"==typeof s?s:{}).meta=s.meta&&"object"==typeof s.meta?s.meta:{},s.customTypes=s.customTypes||{},s.helpHtml=s.helpHtml||"[?]",s.sort=!(typeof s.sort>"u")&&s.sort,s.isCollapsible=!(typeof s.isCollapsible>"u"||!s.isCollapsible),s.callback="function"==typeof s.callback?s.callback:null,s.isReadonly=s.isReadonly||!1;var x,o=s.meta,b={OTHER_GROUP_NAME:""},p={},h=[],I={},y="pg"+r++,C=this,k=Object.keys(i);s.sort&&("boolean"==typeof s.sort?k=k.sort():"function"==typeof s.sort&&(k=k.sort(s.sort))),k.forEach(function(S){"function"==typeof i[S]||o[S]&&!1===o[S].browsable||(o[S].isReadonlyMode=s.isReadonly,(x=o[S]&&o[S].group||t)!==t&&!p[x]&&(p[x]=c(x,s.isCollapsible)),b[x]=b[x]||"",b[x]+=function g(i,s,o,b,p,h,I,y){if(!s)return"";var u,F,C=I.callback,x=(b=b||{}).name||s,k=b.type||"",R=i+s,U=I.customTypes;for(var w in U)if(k===w){F=U[w];break}return F?(u=F.html(R,s,o,b),h&&(h[s]=F.hasOwnProperty("makeValueFn")?F.makeValueFn(R,s,o,b):F.hasOwnProperty("valueFn")?F.valueFn:function(){return e("#"+R).val()}),p&&F.hasOwnProperty("makePostCreateFn")&&p.push(F.makePostCreateFn(R,b.options,o,s,C,y))):"boolean"===k||""===k&&"boolean"==typeof o?(u=(u='<label class="switch"><input class="form-control" type="checkbox" id="'+R+'" value="'+s+'"'+(o?" checked":"")+" /><span></span></label>")+'<label class="elipsis" for"'+R+" />",h&&(h[s]=function(){return e("#"+R).prop("checked")}),C&&e(y).on("change","#"+R,function(){C(this,s,e("#"+R).is(":checked"))})):"options"===k&&Array.isArray(b.options)?(u=function f(i,s,o){s=s||"",o=o||[];var h,b='<select class="form-control"';(i=i||"")&&(b+=' id="'+i+'"'),b+=">",b+='<option value="" selected disabled style="display:none;">. . .</option>';for(var I=0;I<o.length;I++)b+='<option value="'+(h="object"==typeof o[I]?o[I].value:o[I])+'"'+(s===h?" selected>":">"),b+=("object"==typeof o[I]?o[I].text:o[I])+"</option>";return b+="</select>"}(R,o,b.options),h&&(h[s]=function(){return e("#"+R).val()}),C&&e(y).on("change","#"+R,function(){C(this,s,e("#"+R).val())})):"function"==typeof e.fn.spinner&&("number"===k||""===k&&"number"==typeof o)?(u='<input type="text" id="'+R+'" value="'+o+'" class="form-control" style="width:50px" />',p&&p.push(function n(i,s,o,b,p){if(!i)return null;var h={};return e.extend(h,s),h.change=typeof h.change>"u"?l:h.change,function(){var y=e("#"+i);y.spinner(h),b&&y.on("spin change keyup paste input",function(x,k){b(p,o,k?k.value:e(x.target).val())})}}(R,b.options,s,C,y)),h&&(h[s]=function(){return e("#"+R).spinner("value")})):"color"===k&&"function"==typeof e.fn.spectrum?(u='<input type="text" class="form-control" id="'+R+'" />',p&&p.push(function d(i,s,o,b,p,h){if(!i)return null;var I={};return e.extend(I,o),"string"==typeof s&&(I.color=s),function(){var C=e("#"+i);C.spectrum(I),void 0!==p&&C.on("change",function(k,R){p(h,b,R.toHexString())})}}(R,o,b.options,s,C,y)),h&&(h[s]=function(){return e("#"+R).spectrum("get").toHexString()})):"label"===k?u="string"==typeof b.description&&b.description?'<label for="'+R+'" title="'+b.description+'">'+o+"</label>":'<label for="'+R+'">'+o+"</label>":(u='<input type="text" class="form-control" id="'+R+'" value="'+o+'"</input>',h&&(h[s]=function(){return e("#"+R).val()}),C&&e(y).on("propertychange change keyup paste input","#"+R,function(){C(this,s,e("#"+R).val())})),"string"==typeof b.description&&b.description&&(typeof b.showHelp>"u"||b.showHelp)&&(x+='<div class="pgTooltip">&nbsp '+I.helpHtml+' <span class="pgTooltiptext">'+b.description+"</span>"),b.colspan2?'<tr class="pgRow"><td colspan="2" class="pgCell">'+u+"</td></tr>":I.isReadonly?'<tr class="pgRow"><td class="pgLabelCell">'+x+'</td><td class="pgReadOnlyCell">'+u+"</td></tr>":'<tr class="pgRow"><td class="pgLabelCell">'+x+'</td><td class="pgValueCell">'+u+"</td></tr>"}(y,S,i[S],o[S],h,I,s,C))});var R='<table class="pgTable">';for(var u in p)s.noGroups||(R+=p[u]),R+=b[u];b[t]&&(R+=c(t,s.isCollapsible),R+=b[t]),this.html(R+="</table>"),this.data(a,function(){var w={};for(var S in I)"function"==typeof I[S]&&(w[S]=I[S]());return w}),s.isCollapsible?e(C).find(".pgGroupRow").click(function(){var S=e(this).html(),v=e(S).text(),A="+"===v[0],T=v.substring(1),m=S.replace(v,A?"-"+T:"+"+T);e(this).html(m),e(this).nextUntil("tr.pgGroupRow").slideToggle(1)}):e("tr.pgGroupRow").each(function(S){var v=e(this).html(),A=e(v).text();if(e(this).css("cursor","default"),"-"===A[0]&&" "===A[1]){var m=A.substring(2),M=v.replace(A,m);e(this).html(M)}});for(var F=0;F<h.length;++F)"function"==typeof h[F]&&(h[F](),h[F]=null);s.isReadonly&&(e(C).find("*").prop("disabled",!0),e(C).find("div.tag-editor-delete").hide(),e(C).find("ul.tag-editor.ui-sortable").off("click"))}else console.error("jqPropertyGrid must get an object in order to initialize the grid.");else console.error("jqPropertyGrid got invalid option:",i)}}(window.$),app.factory("redirectService",["$window","$location","$timeout","$rootScope",function(e,t,a,r){var c=r.scope,g=function(n){var l=n.startsWith(c.currentScope.network.path+(""!=c.currentScope.chapter.regEx?"/"+c.currentScope.chapter.regEx:"")+"/");return""===c.currentScope.chapter.regEx&&l&&c.chapters.forEach(function(i){2===i.managementState&&i.id!==c.currentChapter.id&&n.startsWith(c.currentScope.network.path+"/"+i.regEx+"/")&&(l=!1)}),l};return{redirectNotificationUrl:function(n){var d=new URL("https://"+c.currentScope.network.domain),l=c.currentScope.network.path+(""!=c.currentScope.chapter.regEx?"/"+c.currentScope.chapter.regEx:"");if(g(n))a(function(){var o=n.substring(l.length);t.url(o).replace()});else if(n.startsWith(d.origin))e.location.href=n;else if(e.cordova&&e.cordova.InAppBrowser){let o=r.scope.currentScope.network.settings.configurations.inAppBrowserOnly;var s="location=no,toolbarposition=top,toolbartranslucent=no";"android"===cordova.platformId&&(s="location=yes,hideurlbar=yes,zoom=no,closebuttoncaption="+r.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")),o?cordova.InAppBrowser.open(n,"_blank",s):cordova.InAppBrowser.open(n,"_system",s)}else e.location.href=n},isSameChapterUrl:g}}]),app.factory("scopeService",["$http","$q","$window",function(e,t,a){var r=this,c={};r.settings=a.scope.scopeSettings;var g={};return this.getNetworkChapter=function(f,n){var d=t.defer();if(c[n+"_"+f])d.resolve(c[n+"_"+f]);else{if(g[n+"_"+f])return g[n+"_"+f].promise;g[n+"_"+f]=d,e.get(scope.apiEndpoint+"networks/"+f+"/"+n).then(function(l){c[n+"_"+f]=l.data,d.resolve(l.data)},function(){d.reject(),delete g[n+"_"+f]})}return d.promise},this.getGlobalSettings=function(){return r.settings.getGlobalSettings()},this.getChapter=function(f){return r.settings.getChapter(f)},this.resolveUrl=function(f){return r.settings.resolveUrl(f)},this.getNetworkUrl=function(){return"https://"+scope.currentScope.network.domain},{getGlobalSettings:this.getGlobalSettings,getChapter:this.getChapter,getNetworkUrl:this.getNetworkUrl,getNetworkChapter:this.getNetworkChapter}}]),app.component("shareButton",{templateUrl:"/ClientApp/src/legacy-app/common/shareButton.html",bindings:{text:"<",image:"<"},controller:["$rootScope","$location","$window",function(e,t,a){var r=this;r.getUrl=function(){let n=new URL(t.absUrl()),d=t.path().substring(1).split("/")[0],l=n.pathname.replace(n.pathname.substring(n.pathname.indexOf(d)),d);return encodeURIComponent(`${n.origin}/${l}`)},r.getImageUrl=function(){return encodeURIComponent(r.image.assetImageUrl)},r.shareFacebook=function(){a.open("https://www.facebook.com/sharer/sharer.php?u="+r.getUrl()+"&t="+encodeURIComponent(r.text),"_blank","width=600,height=460")},r.showWhatsappShare=new window.MobileDetect(window.navigator.userAgent).phone(),r.shareTwitter=function(){var n="https://twitter.com/intent/tweet?url="+r.getUrl()+"&text="+r.text;e.scope.currentScope.chapter.settings.seoTwitterSite&&(n=n+"&via="+e.scope.currentScope.chapter.settings.seoTwitterSite.substring(1)),a.open(n,"_blank","width=600,height=460")},r.sharePinterest=function(){a.open("https://www.pinterest.com/pin/create/link/?url="+r.getUrl()+"?media="+r.getImageUrl()+"?description="+encodeURIComponent(r.text),"_blank","width=600,height=460")}}]}),app.directive("smartQuotes",[function(){return{scope:!0,link:function(e,t,a){t.keypress(function(r){if(34===r.charCode){var c=t[0].selectionStart;if(c!==t[0].selectionEnd)return;r.preventDefault(),0===c||t.val().substring(c-1,c).match(/\s/g)?t.val(t.val().substring(0,c)+"\u201e"+t.val().substring(c)):t.val(t.val().substring(0,c)+"\u201c"+t.val().substring(c)),t[0].setSelectionRange(c+1,c+1)}})}}}]),app.filter("szAwareUppercase",function(){return function(e){return(e=e||"").replace(/\xdf/g,"\u1e9e").toUpperCase()}}),app.directive("timedUpdate",["$interval","$timeout",function(e,t){return{restrict:"A",scope:!1,link:function(a,r,c){function g(){var n=a.$eval(c.timedUpdate);r[0].innerText=n,r[0].textContent=n}var f=e(function(){g()},c.milliseconds?c.milliseconds:3e4);t(function(){g()}),r.on("$destroy",function(){e.cancel(f)})}}}]),app.factory("companyNewsService",["$http","$q",function(e,t){return{getCompanyNews:function(){var c=t.defer();return e.get(scope.apiEndpoint+"companyNews").then(function(g){c.resolve(g.data)}),c.promise},getCompanyNewsDetail:function(c){var g=t.defer();return e.get(scope.apiEndpoint+"companyNews/"+c).then(function(f){g.resolve(f.data)}),g.promise}}}]),MetaInformationBase.prototype.getFullAuthorName=function(){var e=scope.currentScope.network.name;return this.author&&(e=this.author.firstName+" "+this.author.lastName),e},MetaInformationBase.prototype.getMetaDate=function(){var e=moment().format();return moment(this.date).isValid()?moment(this.date).format():e},MetaArticleInfo.prototype=Object.create(MetaInformationBase.prototype),MetaSnipInfo.prototype=Object.create(MetaInformationBase.prototype),MetaSponsoredArticleInfo.prototype=Object.create(MetaInformationBase.prototype),MetaStaticArticleInfo.prototype=Object.create(MetaInformationBase.prototype),MetaEventInfo.prototype=Object.create(MetaInformationBase.prototype),app.service("pageMetaInfoService",["$interpolate","metaService",function(e,t){var a=this;this.statesInfo={};var r="Redesign2024"==scope.currentScope.network.settings.configurations.contentRenderEngine;function c(s,o){this.title=s,this.description=o}this.statesInfo["app.main-news"]=new c(scope.currentScope.network.getResourceOrKeyName("web_newsMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_newsMeta_description")),this.statesInfo["app.main-login"]=new c(scope.currentScope.network.getResourceOrKeyName("web_loginMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_loginMeta_description")),this.statesInfo["app.main-menu"]=new c(scope.currentScope.network.getResourceOrKeyName("web_menuMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_menuMeta_description")),this.statesInfo.home=new c(scope.currentScope.network.getResourceOrKeyName("web_landingMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_landingMeta_description")),this.statesInfo["app.main-snips"]=new c(scope.currentScope.network.getResourceOrKeyName("web_snipMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_snipMeta_description")),this.statesInfo["app.search"]=new c(scope.currentScope.network.getResourceOrKeyName("web_searchMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_searchMeta_description")),this.statesInfo["app.imprint"]=new c(scope.currentScope.network.getResourceOrKeyName("web_imprintMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_imprintMeta_description")),this.statesInfo["app.sponsoredArticleList"]=new c(scope.currentScope.network.getResourceOrKeyName("web_sponsoredArticleMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_sponsoredArticleMeta_description")),this.statesInfo["app.privacyPolicy"]=new c(scope.currentScope.network.getResourceOrKeyName("web_privacyPolicyMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_privacyPolicyMeta_description")),this.statesInfo["app.tos"]=new c(scope.currentScope.network.getResourceOrKeyName("web_termsOfUseMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_termsOfUseMeta_description")),this.statesInfo["app.accessibility"]=new c(scope.currentScope.network.getResourceOrKeyName("web_accessibility_title"),scope.currentScope.network.getResourceOrKeyName("web_accessibility_description")),this.statesInfo["app.imagelicensing"]=new c(scope.currentScope.network.getResourceOrKeyName("web_asset_imageLicensingMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_asset_imageLicensingMeta_description")),this.statesInfo["app.register"]=new c(scope.currentScope.network.getResourceOrKeyName("web_registerMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_registerMeta_description")),this.statesInfo["app.feedback"]=new c(scope.currentScope.network.getResourceOrKeyName("web_feedbackMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_feedbackMeta_description")),this.statesInfo["app.authorRegister"]=new c(scope.currentScope.network.getResourceOrKeyName("web_authorRegisterMeta_title"),""),this.statesInfo["app.authors"]=new c(scope.currentScope.network.getResourceOrKeyName("web_authorMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_authorMeta_description"));var d=function(s){if(!s)return"";var o=function(s){return s.replace("{{{networkName}}}",scope.currentScope.network.name)}(s);return o=function(s){return s.replace("{{{chapterName}}}",scope.currentScope.chapter.name)}(o),o};return{run:function(s){if(s&&!r){var o=a.statesInfo[s];o&&function(s,o){var b=d(s),p=d(o);t.push(b,p)}(o.title,o.description)}}}}]),app.component("articleEventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/articleEventCalendarDisplayable.html",bindings:{article:"<"},controller:["$rootScope",function(e){var t=this;this.$onInit=function(){var a=new Date(t.article.calendarDate).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"});t.formattedCalendarDate=e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:a}),t.article.isToday=t.isToday}}]}),app.component("birthdayEventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/birthdayEventCalendarDisplayable.html",bindings:{event:"<"},controller:["$rootScope","eventCalendarService","formatterService",function(e,t,a){var r=this,c="";r.congratulating=!1,this.$onInit=function(){c=new Date(r.event.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"}),c=a.eventCalendarFormatAsString(r.event.start),r.formattedCalendarDate=e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:c}),r.congratulatable=r.event.isToday||new Date>new Date(r.event.start),r.hasCongratulated=!1,r.event.hasCongratulated?r.hasCongratulated=!0:r.event.ownReactions.forEach(function(g){1===g.type&&g.occurance==r.event.start&&(r.hasCongratulated=!0)})},r.congratulate=function(){r.congratulating=!0,t.congratulateToBirthday(r.event.id,r.event.start).then(function(){r.hasCongratulated=!0,r.congratulating=!1},function(g){r.congratulating=!1})}}]}),app.controller("EventCalendarController",["$scope","$rootScope","$timeout","articleService","snipService","sponsoredArticleService","profileService","eventCalendarService","$location",function(e,t,a,r,c,g,f,n,d){if("Redesign2024"!=t.scope.currentScope.network.settings.configurations.contentRenderEngine){let x=function(){var F=[],w=[],S=[],v=[],A=d.search().type,T=d.search().category,D=null!=A&&null!=T;Promise.allSettled([r.getArticlesForEventCalendar(),c.getSnipsForEventCalendar(),g.getSponsoredArticlesForEventCalendar(),n.getEventCalendarEventData()]).then(function(q){if(q.forEach((N,O)=>{"rejected"===N.status&&console.error(`Service call ${O+1} failed:`,N.reason)}),"fulfilled"===q[0].status&&function m(q){$.each(q,function(N,O){if(null!==O.calendarDate){e.containsArticle=!0;var _=new Date(O.calendarDate).getMonth(),V=new Date(O.calendarDate).getDate(),L=new Date(O.calendarDate).getFullYear(),z=moment(O.calendarDate).locale(i),G=z.format("L");if(O.isToday=G===moment(new Date).locale(i).format("L"),typeof F[_+""+L]>"u"){S[G]={Day:z.format("dddd")+", der "+V+". "+z.format("MMMM"),Articles:[O],Snips:[],SponsoredArticles:[],Birthdays:[],Events:[],ExternalEvents:[],CalendarDate:new Date(O.calendarDate)},v[_+""+L]=[S[G]];var J={Month:z.format("MMMM")+" "+L,Dates:v[_+""+L]};F[_+""+L]=J,w.push(J)}else typeof S[G]>"u"?(S[G]={Day:z.format("dddd")+", der "+V+". "+z.format("MMMM"),Articles:[O],Snips:[],SponsoredArticles:[],Birthdays:[],Events:[],ExternalEvents:[],CalendarDate:new Date(O.calendarDate)},v[_+""+L].push(S[G]),v[_+""+L].sort(function(H,Y){return H.CalendarDate.getTime()-Y.CalendarDate.getTime()})):S[G].Articles.push(O)}})}(q[0].value),"fulfilled"===q[1].status&&function M(q){$.each(q,function(N,O){if(null!==O.calendarDate){e.containsSnip=!0;var _=new Date(O.calendarDate).getMonth(),V=new Date(O.calendarDate).getDate(),L=new Date(O.calendarDate).getFullYear(),z=moment(O.calendarDate).locale(i),G=z.format("L");if(O.isToday=G===moment(new Date).locale(i).format("L"),typeof F[_+""+L]>"u"){S[G]={Day:z.format("dddd")+", der "+V+". "+z.format("MMMM"),Snips:[O],Articles:[],SponsoredArticles:[],Birthdays:[],Events:[],ExternalEvents:[],CalendarDate:new Date(O.calendarDate)},v[_+""+L]=[S[G]];var J={Month:z.format("MMMM")+" "+L,Dates:v[_+""+L]};F[_+""+L]=J,w.push(J)}else typeof S[G]>"u"?(S[G]={Day:z.format("dddd")+", der "+V+". "+z.format("MMMM"),Snips:[O],Articles:[],SponsoredArticles:[],Birthdays:[],Events:[],ExternalEvents:[],CalendarDate:new Date(O.calendarDate)},v[_+""+L].push(S[G]),v[_+""+L].sort(function(H,Y){return H.CalendarDate.getTime()-Y.CalendarDate.getTime()})):S[G].Snips.push(O)}})}(q[1].value),"fulfilled"===q[2].status&&function E(q){$.each(q,function(N,O){if(null!==O.calendarDate){e.containsSponsored=!0;var _=new Date(O.calendarDate).getMonth(),V=new Date(O.calendarDate).getDate(),L=new Date(O.calendarDate).getFullYear(),z=moment(O.calendarDate).locale(i),G=z.format("L");if(O.isToday=G===moment(new Date).locale(i).format("L"),typeof F[_+""+L]>"u"){S[G]={Day:z.format("dddd")+", der "+V+". "+z.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[O],Birthdays:[],Events:[],ExternalEvents:[],CalendarDate:new Date(O.calendarDate)},v[_+""+L]=[S[G]];var J={Month:z.format("MMMM")+" "+L,Dates:v[_+""+L]};F[_+""+L]=J,w.push(J)}else typeof S[G]>"u"?(S[G]={Day:z.format("dddd")+", der "+V+". "+z.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[O],Birthdays:[],Events:[],ExternalEvents:[],CalendarDate:new Date(O.calendarDate)},v[_+""+L].push(S[G]),v[_+""+L].sort(function(H,Y){return H.CalendarDate.getTime()-Y.CalendarDate.getTime()})):S[G].SponsoredArticles.push(O)}})}(q[2].value),"fulfilled"===q[3].status&&function P(q){q.sort((N,O)=>new Date(N.start).getTime()-new Date(O.start).getTime()),$.each(q,function(N,O){if(null!==O.start){1===O.type&&(e.containsBirthday=!0),e.containsEvent=!0;var _=new Date(O.start).getMonth(),V=new Date(O.start).getDate(),L=new Date(O.start).getFullYear(),z=moment(O.start).locale(i),G=z.format("L");if(O.isToday=G===moment(new Date).locale(i).format("L"),typeof F[_+""+L]>"u"){S[G]={Day:z.format("dddd")+", der "+V+". "+z.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[],Birthdays:1===O.type?[O]:[],Events:2===O.type?[O]:[],ExternalEvents:3===O.type?[O]:[],CalendarDate:new Date(O.start)},v[_+""+L]=[S[G]];var J={Month:z.format("MMMM")+" "+L,Dates:v[_+""+L]};F[_+""+L]=J,w.push(J)}else if(typeof S[G]>"u")S[G]={Day:z.format("dddd")+", der "+V+". "+z.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[],Birthdays:1===O.type?[O]:[],Events:2===O.type?[O]:[],ExternalEvents:3===O.type?[O]:[],CalendarDate:new Date(O.start)},v[_+""+L].push(S[G]),v[_+""+L].sort(function(H,Y){return H.CalendarDate.getTime()-Y.CalendarDate.getTime()});else switch(O.type){case 1:S[G].Birthdays.push(O);break;case 3:S[G].ExternalEvents.push(O);break;default:S[G].Events.push(O)}}})}(q[3].value),e.calendar=w.sort(function(N,O){return N.Dates[0].CalendarDate-O.Dates[0].CalendarDate}),e.cachedEventData=angular.copy(e.calendar),e.filteredCalendar=angular.copy(e.cachedEventData),e.eventsLoading=!1,R(),u(),D){let N;1===A?(e.eventCategorySelection=T,N=T):2===A&&(N="Event"===T?2:1,e.typeSelection=N),e.changeFilter(A,N)}})},k=function(F,w){if("/events"!=F||1!=e.isFiltered){var S=!1;if(l.forEach(v=>{"/"+v.Link.substring(v.Link.indexOf("events"))==F&&(S=!0)}),S){e.hideFilterUi="hidden"==d.search().filterUi,e.showCategoryFilter=!0,e.showTypeFilter=!0;let v=d.search().category,A=d.search().type;2==A&&(v="Event"==v?2:1),(e.eventCategorySelection!=v||e.typeSelection!=A)&&(e.eventCategorySelection=v,e.typeSelection=v,e.changeFilter(A,v))}}else e.resetFilter()},R=function(){e.eventGroups=t.scope.currentScope.chapter.chapterGroups.filter(F=>!0===F.isEventCategory),e.eventGroups.forEach(F=>{F.chapters&&(e.eventCategories=e.eventCategories.concat(F.chapters))}),e.filterGroupsReady=!0},u=function(){e.eventTypes=[],e.containsBirthday&&e.eventTypes.push({id:1,text:t.scope.currentScope.network.getResourceOrKeyName("web_event_filter_type_birthday")}),e.containsEvent&&e.eventTypes.push({id:2,text:t.scope.currentScope.network.getResourceOrKeyName("web_event_filter_type_events")}),e.containsSnip&&e.eventTypes.push({id:3,text:t.scope.currentScope.network.getResourceOrKeyName("web_event_filter_type_snips")}),e.containsSponsored&&e.eventTypes.push({id:4,text:t.scope.currentScope.network.getResourceOrKeyName("web_event_filter_type_spons")}),e.containsArticle&&e.eventTypes.push({id:5,text:t.scope.currentScope.network.getResourceOrKeyName("web_event_filter_type_article")})},U=function(){e.isFiltered=!1,e.eventTypes=[],e.eventCategories=[],e.eventCategorySelection=null,e.typeSelection=null,e.filteredCalendar=[],e.containsArticle=!1,e.containsEvent=!1,e.containsSnip=!1,e.containsSponsored=!1,e.containsBirthday=!1,e.calendar=[],e.cachedEventData=[],e.showCategoryFilter=!0,e.showTypeFilter=!0,e.hideFilterUi=!1,d.url(d.path()),e.eventsLoading=!0};e.eventsLoading=!0,e.calendar=[],e.cachedEventData=[],e.filteredCalendar=[],e.isFiltered=!1,e.filterGroupsReady=!1,e.isMobileView=t.mobile,e.eventCategories=[],e.eventGroups=[],e.eventTypes=[],e.eventCategorySelection=null,e.typeSelection=null,e.noSelectionStyle={"background-color":"cadetblue"},e.containsArticle=!1,e.containsEvent=!1,e.containsSnip=!1,e.containsSponsored=!1,e.containsBirthday=!1,e.showCategoryFilter=!0,e.showTypeFilter=!0,e.hideEventFilter=t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration.EventFilterDisabled;var l=t.scope.currentChapter.settings.configurations.custom_Header_Icon_Or_Text;e.hideFilterUi="hidden"==d.search().filterUi;var i=t.scope.currentScope.network.settings.languageCode,s=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(e.location=d,e.$watch("location.url()",function(F,w){F!=w&&k(F,w)}),1==s){var o=t.scope.profile,b=t.scope.network.settings.languagePack.split("-")[0];i=b,null!=o.activeUserLanguage?.vendorLanguageCode&&b!=o.activeUserLanguage?.vendorLanguageCode&&(i=o.activeUserLanguage.vendorLanguageCode)}e.changeFilter=async function(F,w){if(!w)return;let S=w,v=e.hideFilterUi?"&filterUi=hidden":"";if(e.filteredCalendar=angular.copy(e.cachedEventData),1==F)e.showTypeFilter=!1,e.filteredCalendar=e.filteredCalendar.filter(A=>(A.Dates=A.Dates.filter(T=>(T.ExternalEvents=[],T.Events=T.Events.filter(D=>D.chapters.some(m=>m.id===w)),T.Events.length>0)),A.Dates.length>0));else if(2==F)switch(e.showCategoryFilter=!1,w){case 1:e.filteredCalendar=e.filteredCalendar.filter(A=>(A.Dates=A.Dates.filter(T=>(T.Birthdays=T.Birthdays.filter(D=>!0),T.Events=T.Events.filter(D=>2!==D.type&&3!==D.type),T.ExternalEvents=[],T.Articles=[],T.Snips=[],T.SponsoredArticles=[],T.Birthdays.length>0)),A.Dates.length>0)),S="Birthday";break;case 2:e.filteredCalendar=e.filteredCalendar.filter(A=>(A.Dates=A.Dates.filter(T=>(T.Events=T.Events.filter(D=>2===D.type||3===D.type),T.Articles=[],T.Birthdays=[],T.Snips=[],T.SponsoredArticles=[],T.Events.length>0)),A.Dates.length>0)),S="Event";break;case 3:e.filteredCalendar=e.filteredCalendar.filter(A=>(A.Dates=A.Dates.filter(T=>(T.Snips=T.Snips.filter(D=>!0),T.Events=[],T.ExternalEvents=[],T.Birthdays=[],T.Articles=[],T.SponsoredArticles=[],T.Snips.length>0)),A.Dates.length>0)),S="Snip";break;case 4:e.filteredCalendar=e.filteredCalendar.filter(A=>(A.Dates=A.Dates.filter(T=>(T.SponsoredArticles=T.SponsoredArticles.filter(D=>!0),T.Events=[],T.ExternalEvents=[],T.Birthdays=[],T.Snips=[],T.Articles=[],T.SponsoredArticles.length>0)),A.Dates.length>0)),S="SponsoredArticle";break;case 5:e.filteredCalendar=e.filteredCalendar.filter(A=>(A.Dates=A.Dates.filter(T=>(T.Articles=T.Articles.filter(D=>!0),T.Events=[],T.ExternalEvents=[],T.Birthdays=[],T.Snips=[],T.SponsoredArticles=[],T.Articles.length>0)),A.Dates.length>0)),S="Article";break;default:alert("Etwas ist schief gelaufen!")}d.url(`?type=${F}&category=${S}${v}`),e.isFiltered=!0,e.$emit("updateFilteredCalendar",e.filteredCalendar)},x(),e.resetFilter=function(){U(),x()},e.$on("updateFilteredCalendar",function(F,w){a(function(){e.filteredCalendar=w})})}}]),app.controller("EventCalendarDetailController",["$scope","$rootScope","$previousState","event","eventCalendarService","parserService","$location","$uibModal","translationService","profileService","assetService","logoService",function(e,t,a,r,c,g,f,n,d,l,i,s){e.event=r,e.defaultEventPicture=s.getChapterEventPictureUrl(),e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,e.previewEvent=r?.isPreview?r:null,e.loadMoreParticipantsPending=!0,e.showEvent=!0,e.isPreview=r?.isPreview;var o=t.scope.currentScope.network.getResourceOrKeyName;function b(){e.event.isEvent=!0;var w=new Date(e.event.start),S=new Date(e.event.end),v=new Date(e.event.recurrenceRule.until);if(0===e.event.recurrenceRule.frequency)e.ocurranceString=e.event.isAllDay?w.toLocaleDateString()==S.toLocaleDateString()?o("web_eventDetail_dateAllDay_singleDay",{date:w.toLocaleDateString()}):o("web_eventDetail_dateAllDay",{start:w.toLocaleDateString(),end:S.toLocaleDateString()}):e.event.isOpenEnd?o("web_eventDetail_openEnd",{start:w.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),end:o("web_eventDetail_dateOpenEnd")}):o("web_eventDetail_date",{start:w.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),end:S.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})});else{var A=e.event.durationInSeconds,T="web_eventDetail_duration_seconds";switch(A>0&&A%60==0&&(T="web_eventDetail_duration_minutes",(A/=60)%60==0&&(T="web_eventDetail_duration_hours",(A/=60)%24==0&&(T="web_eventDetail_duration_days",(A/=24)%7==0&&(A/=7,T="web_eventDetail_duration_weeks")))),e.ocurranceString=!e.event.recurrenceRule.until||v.getUTCFullYear()<=1?o("web_eventDetail_recurringEvent",{start:w.toLocaleDateString(),startTime:w.toLocaleString([],{hour:"2-digit",minute:"2-digit"}),duration:o(T,{duration:A})}):o("web_eventDetail_recurringEvent_until",{start:w.toLocaleDateString(),startTime:w.toLocaleString([],{hour:"2-digit",minute:"2-digit"}),until:v.toLocaleDateString(),duration:o(T,{duration:A})}),e.event.recurrenceRule.frequency){case 4:e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+o("web_eventDetail_dailyIntervalOne"):" "+o("web_eventDetail_daily",{interval:e.event.recurrenceRule.interval});break;case 5:var D="";0===e.event.recurrenceRule.byDay[0].dayOfWeek&&(e.event.recurrenceRule.byDay.push(e.event.recurrenceRule.byDay[0]),e.event.recurrenceRule.byDay.splice(0,1)),e.event.recurrenceRule.byDay.forEach(function(O,_){D+=p(O.dayOfWeek),_<e.event.recurrenceRule.byDay.length-2?D+=", ":_===e.event.recurrenceRule.byDay.length-2&&(D+=" "+o("web_common_and")+" ")}),e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+o("web_eventDetail_weeklyIntervalOne",{weekDays:D}):" "+o("web_eventDetail_weekly",{interval:e.event.recurrenceRule.interval,weekDays:D});break;case 6:if(e.event.recurrenceRule.byDay.length){var E=[{ocurrances:[],weekDay:o("web_common_sunday")},{ocurrances:[],weekDay:o("web_common_monday")},{ocurrances:[],weekDay:o("web_common_tuesday")},{ocurrances:[],weekDay:o("web_common_wednesday")},{ocurrances:[],weekDay:o("web_common_thursday")},{ocurrances:[],weekDay:o("web_common_friday")},{ocurrances:[],weekDay:o("web_common_saturday")}],P=[{occurance:o("web_eventDetail_recurrence_byWeekDay_first"),weekDays:[]},{occurance:o("web_eventDetail_recurrence_byWeekDay_second"),weekDays:[]},{occurance:o("web_eventDetail_recurrence_byWeekDay_third"),weekDays:[]},{occurance:o("web_eventDetail_recurrence_byWeekDay_fourth"),weekDays:[]},{occurance:o("web_eventDetail_recurrence_byWeekDay_last"),weekDays:[]},{occurance:o("web_eventDetail_recurrence_byWeekDay_secondToLast"),weekDays:[]},{occurance:o("web_eventDetail_recurrence_byWeekDay_thirdToLast"),weekDays:[]},{occurance:o("web_eventDetail_recurrence_byWeekDay_fourthToLast"),weekDays:[]}];e.event.recurrenceRule.byDay.forEach(function(O){E[O.dayOfWeek].ocurrances.push(h(O.offset));var _=O.offset;_<0&&(_=4-_),P[_-=1].weekDays.push(p(O.dayOfWeek))}),E.push(E[0]),E.splice(0,1),E=E.filter(function(O){return O.ocurrances.length>0}),P=P.filter(function(O){return O.weekDays.length>0}),weekDayString="",E.length<=P.length?E.forEach(function(O,_){O.ocurrances.forEach(function(V,L){weekDayString+=V,L<O.ocurrances.length-2?weekDayString+=", ":L===O.ocurrances.length-2&&(weekDayString+=" "+o("web_common_and")+" ")}),weekDayString+=" "+O.weekDay,_<E.length-2?weekDayString+=", ":_===E.length-2&&(weekDayString+=" "+o("web_common_and")+" ")}):P.forEach(function(O,_){weekDayString+=" "+O.occurance+" ",O.weekDays.forEach(function(V,L){weekDayString+=V,L<O.weekDays.length-2?weekDayString+=", ":L===O.weekDays.length-2&&(weekDayString+=" "+o("web_common_and")+" ")}),_<P.length-2?weekDayString+=", ":_===P.length-2&&(weekDayString+=" "+o("web_common_and")+" ")}),e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+o("web_eventDetail_monthlyIntervalOne_byWeekDay",{weekDays:weekDayString}):" "+o("web_eventDetail_monthly_byWeekDay",{interval:e.event.recurrenceRule.interval,weekDays:weekDayString})}else{var m=e.event.recurrenceRule.byMonthDay.join(", "),M=m.lastIndexOf(",");-1!==M&&(m=m.substring(0,M)+" "+o("web_common_and")+m.substring(M+1,m.length)),e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+o("web_eventDetail_monthlyIntervalOne_byMonthDay",{monthDays:m}):" "+o("web_eventDetail_monthly_byMonthDay",{interval:e.event.recurrenceRule.interval,monthDays:m})}break;case 7:var q="";switch(e.event.recurrenceRule.byMonth[0]){case 1:q=o("web_common_january");break;case 2:q=o("web_common_february");break;case 3:q=o("web_common_march");break;case 4:q=o("web_common_april");break;case 5:q=o("web_common_may");break;case 6:q=o("web_common_june");break;case 7:q=o("web_common_july");break;case 8:q=o("web_common_august");break;case 9:q=o("web_common_september");break;case 10:q=o("web_common_october");break;case 11:q=o("web_common_november");break;case 12:q=o("web_common_december")}if(e.event.recurrenceRule.byDay.length){var N=e.event.recurrenceRule.byDay[0];e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+o("web_eventDetail_yearlyIntervalOne_byWeekDay",{weekDay:h(N.offset)+" "+p(N.dayOfWeek),month:q}):" "+o("web_eventDetail_yearly_byWeekDay",{interval:e.event.recurrenceRule.interval,weekDay:h(N.offset)+" "+p(N.dayOfWeek),month:q})}else e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+o("web_eventDetail_yearlyIntervalOne_byMonthDay",{monthDay:e.event.recurrenceRule.byMonthDay[0],month:q}):" "+o("web_eventDetail_yearly_byMonthDay",{interval:e.event.recurrenceRule.interval,monthDay:e.event.recurrenceRule.byMonthDay[0],month:q})}}e.event.content=e.event.htmlDescription,g.postProcessHtml(e.event),e.event.participantsPublic&&c.getParticipants(r.id,0).then(function(O){e.event.participants=O,e.participants=O,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")})}function p(w){switch(w){case 1:return o("web_common_monday");case 2:return o("web_common_tuesday");case 3:return o("web_common_wednesday");case 4:return o("web_common_thursday");case 5:return o("web_common_friday");case 6:return o("web_common_saturday");case 0:return o("web_common_sunday")}}function h(w){switch(w){case 1:return o("web_eventDetail_recurrence_byWeekDay_first");case 2:return o("web_eventDetail_recurrence_byWeekDay_second");case 3:return o("web_eventDetail_recurrence_byWeekDay_third");case 4:return o("web_eventDetail_recurrence_byWeekDay_fourth");case-1:return o("web_eventDetail_recurrence_byWeekDay_last");case-2:return o("web_eventDetail_recurrence_byWeekDay_secondToLast");case-3:return o("web_eventDetail_recurrence_byWeekDay_thirdToLast");case-4:return o("web_eventDetail_recurrence_byWeekDay_fourthToLast")}}if(e.hideUserInteraction=1==scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==t.scope.profile.isRegistered&&0==t.app,null===e.event&&e.$parent.$parent.event&&e.$parent.$parent.$on("eventUpdate",function(w,S){e.event=S,b(),C(),e.$broadcast("$$rebind::refresh")}),r&&(F(),b(),e.event.occurrenceString=e.ocurranceString),e.acceptJoin=function(){e.loadMoreParticipantsPending=!0,c.acceptJoinEvent(e.event.id).then(w=>{e.event.ownParticipationStatus=w.ownStatus,e.event.participantsAcceptedCount=w.acceptedCount,e.event.participantsDeclinedCount=w.declinedCount,e.event.participantsQueuedCount=w.queuedCount,r.participantsPublic?c.getParticipants(r.id,0).then(function(S){e.event.participants=S,e.participants=S,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")}):e.$broadcast("$$rebind::refreshParticipants")})},e.declineJoin=function(){e.loadMoreParticipantsPending=!0,c.declineJoinEvent(e.event.id).then(w=>{e.event.ownParticipationStatus=w.ownStatus,e.event.participantsAcceptedCount=w.acceptedCount,e.event.participantsDeclinedCount=w.declinedCount,e.event.participantsQueuedCount=w.queuedCount,e.event.ownParticipationStatus="DECLINED",r.participantsPublic?c.getParticipants(r.id,0).then(function(S){e.event.participants=S,e.participants=S,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")}):e.$broadcast("$$rebind::refreshParticipants")})},e.queueJoin=function(){e.loadMoreParticipantsPending=!0,c.queueJoinEvent(e.event.id).then(w=>{e.event.ownParticipationStatus=w.ownStatus,e.event.participantsAcceptedCount=w.acceptedCount,e.event.participantsDeclinedCount=w.declinedCount,e.event.participantsQueuedCount=w.queuedCount,r.participantsPublic?c.getParticipants(r.id,0).then(function(S){e.event.participants=S,e.participants=S,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")}):e.$broadcast("$$rebind::refreshParticipants")},w=>{e.notifyToast({changeOutcome:"web_events_reason_server_error",changeSuccess:!1,error:w})})},e.notifyToast=function(w){w.changeSuccess?DevExpress.ui.notify({message:t.scope.currentScope.network.getResourceOrKeyName(w.changeOutcome),position:{my:"center center",at:"center center"},maxWidth:"540px"},"success",3e3):(DevExpress.ui.notify({message:t.scope.currentScope.network.getResourceOrKeyName(w.changeOutcome),position:{my:"center center",at:"center center"},maxWidth:"540px"},"error",3e3),console.log(w.error))},e.loadMoreParticipants=function(){e.loadMoreParticipantsPending=!0,c.getParticipants(r.id,e.participantPage+1).then(function(w){Array.prototype.push.apply(e.participants,w),e.event.participants=e.participants,e.participantPage+=1,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")})},(!document.referrer||!document.referrer.startsWith(scope.globalSettings.serverCdnUrl))&&!a.get()&&history&&window.allowRedirect){var I=t.scope.currentChapter.path+f.url();history.replaceState(null,"",scope.currentChapter.path),history.pushState(null,"",I)}var y,C=function(){e.event&&e.event.assetReferences&&(y=e.event.assetReferences.reduce(function(w,S){return w[S.guid]=S,w},{}))};e.resolveAsset=function(w){return y[w]},$(window).scroll(function(w){$(w.target).scrollTop()>100?$(".articleDetail-mobileNavigation-wrapper").addClass("articleDetail-mobileNavigation-wrapper-scrolled"):$(".articleDetail-mobileNavigation-wrapper").removeClass("articleDetail-mobileNavigation-wrapper-scrolled")}),e.recommendedArticles=[],e.recommendedArticlePairs=[],e.recommendedSnips=[],e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],e.$watch(function(){return"event.detailsLoaded"},function(w){w&&C()});var x=function(w){e.event.assetReferences.unshift(w)};e.availableTargetLanguages=null,d.getAvailableTargetLanguages().then(function(w){e.availableTargetLanguages=w}),e.selectedTargetLanguage=t.profile.favoriteLanguage,e.$on("apicodo.translate",function(w,S){e.translateEventDetail(S)});var k=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,R=t.scope.profile;if(e.isParticipationLocked=function(){const w=e.event;return!!w.lockParticipation||!!w.lockParticipationAuto&&new Date(w.lockParticipationAutoDate)<new Date},e.translateEventDetail=function(w){w&&(e.selectedTargetLanguage=w),e.currentLanguage=e.selectedTargetLanguage,null===e.selectedTargetLanguage?c.getEvent(e.event.id).then(function(S){e.event=S,e.event.assetReferences=S.assetReferences,b(),C(),e.$broadcast("$$rebind::refresh")}):c.translateEventDetail(e.event.id,e.selectedTargetLanguage).then(function(S){e.event=S,e.event.assetReferences=S.assetReferences,b(),C(),e.$broadcast("$$rebind::refresh"),l.updateFavoriteLanguage(e.selectedTargetLanguage).then(function(){t.profile.favoriteLanguage=e.selectedTargetLanguage})})},e.onEventChanged=function(w){e.showEvent=!1,(r=w).assetReferences=w.assetReferences,e.event=r,F(),b(),C(),e.event.occurrenceString=e.ocurranceString,e.$$phase||e.$apply(),e.$broadcast("$$rebind::refresh"),e.showEvent=!0},e.assetCreateOpinionDialog=function(){n.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateOpinionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return x},createAssetAsync:function(){return function(w){return i.insertAssetTextToEvent(w,e.event.id)}}}})},e.assetCreateFactDialog=function(){n.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return x},createAssetAsync:function(){return function(w){return i.insertAssetTextToEvent(w,e.event.id)}}}})},e.assetCreateQuestionDialog=function(){n.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return x},createAssetAsync:function(){return function(w){return i.insertAssetTextToEvent(w,e.event.id)}}}})},e.assetCreateImageDialog=function(w,S,v){w&&0!==w.length?S.length||n.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return w},resultCallback:function(){return x},createAssetAsync:function(){return function(A){return i.insertAssetImageToEvent(A,e.event.id)}}}}):S||v.$setPristine()},e.assetCreateVideoDialog=function(){n.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return x},createAssetAsync:function(){return function(w){return i.insertAssetTextToEvent(w,e.event.id)}}}})},e.assetCreateGifDialog=function(){n.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return x},createAssetAsync:function(){return function(w){return i.insertAssetTextToEvent(w,e.event.id)}}}})},e.assetSearchDialog=function(){n.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return x},eventId:function(){return e.event.id},assetReferences:function(){return e.event.assetReferences}}})},e.assetImageFocuspointDialog=function(w){n.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){var S=null;return e.event.assetReferences.forEach(function(v){v.assetImage?.guid===e.event.coverImage.guid&&(e.event.coverImage=(S=v).assetImage)}),S}}})},e.scrollTo=function(w){$("body,html").animate({scrollTop:$(w).offset().top-120},1e3)},e.$watchCollection("event.assetReferences",function(){e.event&&(e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],angular.isDefined(e.event.assetReferences)&&e.event.assetReferences.forEach(function(w){null!==w.assetImage||null!==w.assetText&&(5===w.assetText.type||6===w.assetText.type||7===w.assetText.type||10===w.assetText.type||13===w.assetText.type)?e.assetsMedia.push(w):null!==w.assetText&&(8===w.assetText.type?e.assetsFacts.push(w):9===w.assetText.type?e.assetsQuestions.push(w):0===w.assetText.type&&e.assetsComments.push(w))}))}),1==k){var u=t.scope.network.settings.languagePack.split("-")[0];if(null!=R.activeUserLanguage?.vendorLanguageCode&&u!=R.activeUserLanguage?.vendorLanguageCode){var U=R.activeUserLanguage?.vendorLanguageCode;e.translateEventDetail(U)}}function F(){e.event.coverImage||(e.event.coverImage={alwaysShowImageDescription:!1,assetImageUrl:e.defaultEventPicture,text:"",source:""})}}]),app.component("eventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarDisplayable.html",bindings:{event:"<"},controller:["$rootScope","formatterService",function(e,t){var a=this;this.$onInit=function(){var r=new Date(a.event.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"}),c=new Date(a.event.end).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"});a.formattedCalendarDate=r!==c?e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_dateRange",{start:r,end:c}):e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:r})}}]}),app.component("eventCalendarExternalDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarExternalDisplayable.html",bindings:{event:"<"},controller:["$rootScope","formatterService",function(e,t){var a=this;this.$onInit=function(){var r=new Date(a.event.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"}),c=new Date(a.event.end).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"});r=t.eventCalendarFormatAsString(a.event.start),c=t.eventCalendarFormatAsString(a.event.end),a.formattedCalendarDate=r!==c?e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_dateRange",{start:r,end:c}):e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:r})}}]}),app.controller("EventCalendarEditController",["$rootScope","$scope","event","metaService","$timeout","$uibModal","$rootScope","proseMirrorEditorService","editorAssetsService","spellingService","eventCalendarService","logoService","editorCommentService","assetService",function(g,e,t,a,r,c,g,f,n,d,l,i,s,o){e.event=t,e.ccBreakingEvent=!1,e.event.breakingEvent=!1,e.showFirstPublishDialog=!1,e.enableHighQualityImage=g.scope.network.settings.configurations.enableHighQualityImage,e.closedChapter=g.scope.currentChapter.closed,e.connectedChapters=[],e.showOpenEndCheckBox=!0,e.showTagBox=!1,e.changed=!1,e.update=!1,e.$on("lazyImg:refresh",function(v,A){e.event.coverImage.cache++}),e.eventChapterTags=[],e.selectedEventChapters=[],g.scope.currentScope.chapter.chapterGroups&&(g.scope.currentScope.chapter.chapterGroups.filter(v=>1==v.isEventCategory).forEach(v=>{v.chapters&&(e.showTagBox=!0,v.chapters.forEach(function(A){e.eventChapterTags.push(A)}))}),e.event.chapters&&e.event.chapters.forEach(function(v){e.selectedEventChapters.push(v.id)})),e.eventCategoryTagBoxEntered=!1,e.eventCategoryTagBox={selectionOptions:{width:"auto",dataSource:e.eventChapterTags,value:e.selectedEventChapters,showSelectionControls:!0,searchEnabled:!0,displayExpr:"shortName",valueExpr:"id",selectAllText:g.scope.currentScope.network.getResourceOrKeyName("web_eventCategory_choice_check_all"),placeholder:g.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_chapterTagsPlaceholder"),onContentReady:function(v){e.dxTagBoxInstance=v.component,e.eventCategoryTagBoxEntered=!0},onValueChanged:function(v){e.dxTagBoxInstance=v.component,e.eventCategoryTagBoxEntered&&(e.editForm.$dirty=!0,e.event.chapters=[],e.dxTagBoxInstance.option("selectedItems").forEach(A=>{e.event.chapters.push(A.slug)}))}}};var p=g.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration;e.canPublish=!p||!0!==p.EnableApproval||g.profile.isNewsroomAdmin||6===p.MinApprovalRole&&g.profile.isHeadSales||5===p.MinApprovalRole&&g.profile.isSales||4===p.MinApprovalRole&&g.profile.isHeadJournalist||3===p.MinApprovalRole&&g.profile.isMerkuristJournalist||2===p.MinApprovalRole&&g.profile.isJournalist;var h=new Date;if(t.start||(t.start=h),t.showStartDateCalendar=!1,t.showEndDateCalendar=!1,t.recurrenceRule.hasUntil=!1,t.recurrenceRule.showStartDateCalendar=!1,t.showAutoLockParticipationDatePicker=!1,"string"==typeof t.start&&(t.start=new Date(t.start)),t.end||(t.end="Redesign2024"!=g.scope.currentScope.network.settings.configurations.contentRenderEngine?new Date(t.start.setMinutes(t.start.getMinutes()+30)):new Date(t.start.getTime()+36e5)),"string"==typeof t.end&&(t.end=new Date(t.end)),e.endOptions={minDate:t.start,showWeeks:!1},e.toggleStartDateCalendar=function(){t.showStartDateCalendar=!t.showStartDateCalendar},e.toggleEndDateCalendar=function(){t.showEndDateCalendar=!t.showEndDateCalendar},e.toggleRecurrenceRuleHasUntilCalendar=function(){t.recurrenceRule.hasUntil=!t.recurrenceRule.hasUntil},e.toggleReccurenceStartDateCalendar=function(){t.recurrenceRule.showStartDateCalendar=!t.recurrenceRule.showStartDateCalendar},e.toggleAutoLockParticipationDatePicker=function(){t.showAutoLockParticipationDatePicker=!t.showAutoLockParticipationDatePicker},e.onChangeEventIsAllDay=function(){if(t.isAllDay){if(e.showOpenEndCheckBox=!1,t.start){let v=new Date(t.start.setHours(0,0,0,0));t.start=v,e.startDatePickerOptions.value=v,e.startDateTimePickerOptions.value=v}if(t.end){let v=new Date(t.end.setHours(23,59,59,999));t.end=v,e.endDateTimePickerOptions.value=v,e.endDatePickerOptions.value=v}}else e.showOpenEndCheckBox=!0},e.onChangeEventIsOpenEnd=function(){t.isOpenEnd&&t.end&&(t.end=new Date(t.start.valueOf()),t.end.setHours(23,59,59,999))},e.onFrequencyChange=function(){e.showOpenEndCheckBox=0===t.recurrenceRule.frequency},e.defaultEventPicture=i.getChapterEventPictureUrl(),e.togglePreview=function(){e.preview=!e.preview,e.preview?(e.previewEvent=C(),e.previewEvent.isPreview=!0,e.$broadcast("eventUpdate",e.previewEvent)):e.$broadcast("eventUpdate",C())},e.toggleBreakingEvent=function(){e.breakingEvent=!e.breakingEvent},e.event.recurrenceRule.hasUntil=new Date(e.event.recurrenceRule.until).getFullYear()>1,e.event.recurrenceRule.hasUntil||(e.event.recurrenceRule.until=new Date(e.event.start.valueOf()),e.event.recurrenceRule.until.setDate(e.event.start.getDate()+1)),"string"==typeof e.event.recurrenceRule.until&&(e.event.recurrenceRule.until=new Date(e.event.recurrenceRule.until)),0===e.event.durationInSeconds?(e.event.durationValue=30,e.event.durationType=1):(e.event.durationValue=e.event.durationInSeconds,e.event.durationType=0,e.event.durationValue%60==0&&(e.event.durationValue/=60,e.event.durationType=1,e.event.durationValue%60==0&&(e.event.durationValue/=60,e.event.durationType=2,e.event.durationValue%24==0&&(e.event.durationValue/=24,e.event.durationType=3,e.event.durationValue%7==0&&(e.event.durationValue/=7,e.event.durationType=4))))),e.event.recurrenceRule.weekDays=[!1,!1,!1,!1,!1,!1,!1],5===e.event.recurrenceRule.frequency?(e.event.recurrenceRule.byDay.forEach(function(v){e.event.recurrenceRule.weekDays[v.dayOfWeek]=!0}),e.event.recurrenceRule.byDay=[]):e.event.recurrenceRule.weekDays[h.getDay()]=!0,e.event.recurrenceRule.dayType=1,!e.event.recurrenceRule.byDay.length){var I=Math.floor(h.getDate()/7)+1;5==I&&(I=-1),e.event.recurrenceRule.byDay.push({dayOfWeek:h.getDay(),offset:I}),e.event.recurrenceRule.dayType=0}e.event.recurrenceRule.byMonthDay.length||e.event.recurrenceRule.byMonthDay.push(h.getDate()),e.event.recurrenceRule.byMonth.length||e.event.recurrenceRule.byMonth.push(h.getMonth()+1),e.addWeekDayRule=function(){e.event.recurrenceRule.byDay.push({dayOfWeek:1,offset:1})},e.deleteWeekDayRule=function(v){e.event.recurrenceRule.byDay.splice(v,1)},e.$on("$destroy",function(){a.setFavicon()});var y=g.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");function C(){var v=JSON.parse(JSON.stringify(e.event));switch(v.jsonDescription=f.getDocument(),v.htmlDescription=f.getHtmlDocument(),v.durationInSeconds=v.durationValue,v.durationType){case 0:break;case 1:v.durationInSeconds*=60;break;case 2:v.durationInSeconds*=3600;break;case 3:v.durationInSeconds*=86400;break;case 4:v.durationInSeconds*=604800}if(0!==v.recurrenceRule.frequency&&(v.end=null,v.isAllDay=!1),v.recurrenceRule.frequency<=5&&(v.recurrenceRule.byDay=[],v.recurrenceRule.byMonthDay=[]),v.recurrenceRule.frequency<=6&&(v.recurrenceRule.byMonth=[]),5===v.recurrenceRule.frequency?v.recurrenceRule.weekDays.forEach(function(D,m){D&&v.recurrenceRule.byDay.push({dayOfWeek:m})}):1===v.recurrenceRule.dayType?v.recurrenceRule.byMonthDay=[]:v.recurrenceRule.byDay=[],7===v.recurrenceRule.frequency&&(v.recurrenceRule.byMonthDay.splice(1),v.recurrenceRule.byDay.splice(1)),v.isAllDay){var A=new Date(v.start);v.start=A.getFullYear()+"-"+(A.getMonth()+1)+"-"+ +A.getDate();var T=new Date(v.end);v.end=T.getFullYear()+"-"+(T.getMonth()+1)+"-"+ +T.getDate()}return v.isOpenEnd&&(v.isAllDay=!1),v.recurrenceRule&&!v.recurrenceRule.hasUntil&&(v.recurrenceRule.until=null),v.allowJoin||(v.showParticipants=!1,v.maxParticipants=null),v.maxParticipants<1&&(v.maxParticipants=null),v.lockParticipation&&(v.lockParticipationAuto=!1,v.lockParticipationAutoDate=null),v}window.onbeforeunload=function(){if(e.changed)return y},preventNavigation=!1,g.$on("$stateChangeStart",function(v,A){if(preventNavigation)v.preventDefault();else if(e.changed&&!confirm(y)){preventNavigation=!0,v.preventDefault();var T=!1;r(function(){preventNavigation=!1},1e3)}else e.changed=!1,T&&(closeConnection(),T=!1)}),e.$watch("event.lockParticipation",function(v){}),e.$watch("event.start",function(v){if("Redesign2024"!=g.scope.currentScope.network.settings.configurations.contentRenderEngine){if(e.endOptions.minDate=v,e.event.end<v&&((A=new Date(v.valueOf())).setHours(e.event.end.getHours()),A.setMinutes(e.event.end.getMinutes()),A<v&&A.setDate(A.getDate()+1),e.event.end=A),e.event.recurrenceRule.until<v){var A=new Date(v.valueOf());e.event.recurrenceRule.until=A}}else e.update=!0,setTimeout(()=>{if(e.endDateTimePickerOptions.min=v,e.endDatePickerOptions.min=v,e.recurrenceUntilDatePickerOptions.min=v,e.event.end<v){let T=new Date(v.getTime()+36e5);e.endDateTimePickerOptions.value=T,e.endDatePickerOptions.value=T,e.event.end=T}e.event.recurrenceRule.until<v&&(e.recurrenceUntilDatePickerOptions.value=v,e.event.recurrenceRule.until=v),e.update=!1},1)}),e.save=function(){e.event.chapters=e.dxTagBoxInstance.option("selectedItems"),l.updateEvent(e.event.id,C()).then(function(v){e.editForm.$dirty=!1,e.event.unpublishedRevisionGuid=v})},e.eventFirstPublishDialog=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/event/eventFirstPublishDialog.html",controller:"eventFirstPublishDialogController",resolve:{networkChapters:function(){return e.networkChapters},ccBreakingEvent:function(){return e.ccBreakingEvent}}}).result.then(function(A){e.networkChapters=A.selectedChapters,e.ccBreakingEvent=A.ccBreakingEvent,l.publishContentConnectEvent(e.event.unpublishedRevisionGuid,e.event.breakingEvent,e.networkChapters,e.ccBreakingEvent).then(function(){e.event.unpublishedRevisionGuid=null})},function(){})},e.publish=function(){!e.event.published&&g.scope.currentScope.network.settings.featureContentConnect&&g.scope.currentScope.chapter.settings.configurations.enableEventCalendar?e.eventFirstPublishDialog():l.publishEvent(e.event.unpublishedRevisionGuid,e.event.breakingEvent).then(function(){e.event.unpublishedRevisionGuid=null})},e.requestPublish=function(){l.requestEventPublish(e.event.id).then(function(){e.event.publishRequested=!0})},e.requestPublish=function(){l.requestEventPublish(e.event.id).then(function(){e.event.publishRequested=!0})},e.onChangeLockParticipationAuto=function(){if(t.lockParticipationAuto){if(t.lockParticipationAutoDate)return;t.lockParticipationAutoDate=h}else t.lockParticipationAutoDate=null},e.pickCoverAsset=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 2},single:function(){return!0},showOnlyImage:function(){return!1},hideInComments:function(){return!0},resultCallback:function(){return function(v){e.event.coverImage=v.assetImage,e.editForm.$dirty=!0}},event:function(){return e.event}}})},$(".articleEdit-wrapper").scroll(function(){!function w(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),e.numberOfWords=d.countWords(e.event.htmlDescription);var S=function(v){r(function(){e.event.jsonDescription!==v&&(e.event.jsonDescription=v,e.numberOfWords=d.countWords(f.getHtmlDocument()),e.editForm.$dirty=!0)})};f.init({docID:"event_"+t.id,assetDlgFactory:function(v,A){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},single:function(){return!1},showOnlyImage:function(){return!1},hideInComments:function(){return!0},resultCallback:function(){return function(T){if(A&&T.length>0){f.setFocus();var D=[];$.each(T,function(m,M){var E=null;M.assetImage&&(E=M.assetImage.type),M.assetText&&(E=M.assetText.type),M.assetArticle&&(E=M.assetArticle.type),M.assetFile&&(E=M.assetFile.type),D.push({guid:M.guid,type:E})}),A(D)}}},event:function(){return e.event}}})},initialDocument:t.jsonDescription,initialAssetReferences:t.assetReferences,assetResolver:function(v){return n.getAsset(v,e.event.assetReferences)},commentCreationDlgFactory:function(v,A){c.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return A},messageHolder:function(){return new MessageHolder(e.event)},sourceService:function(){return s}}})},commentMgmtDlgFactory:function(v,A,T){c.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return T},onAddedCallback:function(){return A},messageHolder:function(){return new MessageHolder(e.event)},chainComments:function(){return v},sourceService:function(){return s}}})},createLinkFactory:function(v){c.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return v}}})},callToActionDlgFactory:function(v,A){c.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return A}}})},onNewStateFactory:S,onLoadTransactionCallback:S,languageCode:g.scope.currentScope.network.settings.languageCode}),g.$on("$stateChangeStart",function(v,A){f.closeConnection()}),e.startDatePickerOptions={value:e.event.start,openOnFieldClick:!0,type:"date",min:h,onValueChanged:function(v){e.event.start=v.value,e.startDatePickerOptions.value=v.value,e.startDateTimePickerOptions.value=v.value,e.startTimePickerOptions.value=v.value,e.editForm.$dirty=!0}},e.startTimePickerOptions={value:e.event.start,openOnFieldClick:!0,type:"datetime",calendarOptions:{visible:!1},onValueChanged:function(v){e.event.start=v.value,e.startDatePickerOptions.value=v.value,e.startDateTimePickerOptions.value=v.value,e.startTimePickerOptions.value=v.value,e.editForm.$dirty=!0}},e.startDateTimePickerOptions={value:e.event.start,openOnFieldClick:!0,type:"datetime",min:h,onValueChanged:function(v){e.event.start=v.value,e.startDatePickerOptions.value=v.value,e.startDateTimePickerOptions.value=v.value,e.startTimePickerOptions.value=v.value,e.editForm.$dirty=!0}},e.endDatePickerOptions={value:e.event.end,openOnFieldClick:!0,type:"date",min:e.event.start,onValueChanged:function(v){e.event.end=v.value,e.endDatePickerOptions.value=v.value,e.endDateTimePickerOptions.value=v.value,e.editForm.$dirty=!0}},e.endDateTimePickerOptions={value:e.event.end,openOnFieldClick:!0,type:"datetime",min:e.event.start,onValueChanged:function(v){e.event.end=v.value,e.endDatePickerOptions.value=v.value,e.endDateTimePickerOptions.value=v.value,e.editForm.$dirty=!0}},e.recurrenceUntilDatePickerOptions={value:e.event.recurrenceRule.until,openOnFieldClick:!0,type:"date",min:e.event.start,onValueChanged:function(v){e.event.recurrenceRule.until=v.value,e.recurrenceUntilDatePickerOptions.value=v.value,e.editForm.$dirty=!0}},e.changeCoverButtonOptions={onClick:function(){e.pickCoverAsset(!0)},text:g.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_cover_changeCoverAsset"),icon:"fa-regular fa-image",hint:g.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_cover_changeCoverAsset")},e.deleteCoverButton={onClick:function(){o.removeReference(e.event.coverImage),e.event.coverImage=""},text:"",icon:"fa fa-trash",hint:g.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_deleteVariantTooltip")}}]),app.factory("eventCalendarService",["$rootScope","$http","$q","authService",function(e,t,a,r){var c=[];return{getEventCalendarEventData:function(){var R=a.defer();return 0===c.length?t.get(scope.apiEndpoint+"eventcalendar/eventList").then(function(u){R.resolve(c=u.data)},function(){R.reject()}):R.resolve(c),R.promise},createEvent:function(){var R=a.defer();return t.post(scope.apiEndpoint+"eventcalendar").then(function(u){R.resolve(u.data)},function(){R.reject()}),R.promise},updateEvent:function(R,u){var U=a.defer();return t.put(scope.apiEndpoint+"eventcalendar/"+R,u).then(function(F){U.resolve(F.data)},function(){U.reject()}),U.promise},deleteEvent:function(R){var u=a.defer();return t.delete(scope.apiEndpoint+"eventcalendar/"+R).then(function(U){u.resolve(U.data)},function(){u.reject()}),u.promise},publishEvent:function(R,u){var U=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+R+"/publish?breaking="+(u?"true":"false")).then(function(w){U.resolve(w.data)},function(){U.reject()}),U.promise},requestEventPublish:function(R){var u=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+R+"/requestPublish").then(function(U){u.resolve(U.data)},function(){u.reject()}),u.promise},getEvent:function(R){var u=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/"+R+"?forEdit=false").then(function(U){u.resolve(U.data)},function(){u.reject()}),u.promise},getEventForEdit:function(R){var u=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/"+R+"?forEdit=true").then(function(U){u.resolve(U.data)},function(){u.reject()}),u.promise},getEventsForAuthorDashboard:function(){var R=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/authorDasboardList").then(function(u){R.resolve(u.data)},function(){R.reject()}),R.promise},getParticipants:function(R,u,U){var F=a.defer(),w=scope.apiEndpoint+"eventcalendar/"+R+"/participants?page="+u;return U&&U>0&&(w+="&elementsPerPage="+U),t.get(w).then(function(S){F.resolve(S.data)},function(){F.reject()}),F.promise},acceptJoinEvent:function(R){var u=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+R+"/join/accept").then(function(U){u.resolve(U.data)},function(){u.reject()}),u.promise},declineJoinEvent:function(R){var u=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+R+"/join/decline").then(function(U){u.resolve(U.data)},function(){u.reject()}),u.promise},translateEventDetail:function(R,u){var U=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/"+R+"/translate/"+u).then(function(F){U.resolve(F.data)},function(){U.reject()}),U.promise},congratulateToBirthday:function(R,u){var U=a.defer(),F=JSON.stringify(u);return F=F.substring(1,F.length-1),t.post(scope.apiEndpoint+"eventcalendar/"+R+"/congratulateForBirthday?occurance="+F).then(function(w){U.resolve(w.data),c.first(S=>S.id===R).hasCongratulated=!0},function(){U.reject()}),U.promise},queueJoinEvent:function(R){var u=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+R+"/join/queue").then(function(U){u.resolve(U.data)},function(){u.reject()}),u.promise},publishContentConnectEvent:function(R,u,U,F){var w=a.defer();return t.post(scope.apiEndpoint+"eventCalenderContentConnect/"+R+"/publishContentConnect",{ownerBreakingEvent:u,chapterNetworks:U,ccBreakingEvent:F}).then(function(v){w.resolve(v.data)},function(){w.reject()}),w.promise}}}]),app.component("eventFirstPublishDialog",{templateUrl:"/ClientApp/src/legacy-app/event/eventFirstPublishDialog.html",bindings:{resolve:"<",close:"&",dismiss:"&"}}),app.controller("eventFirstPublishDialogController",["$scope","$rootScope","articleService","$uibModalInstance",function(e,t,a,r){e.ccFullControl=t.scope.currentScope.network.settings.configurations.ccFullControl,e.showContentConnectTagBox=!0,e.networkChapters=[],e.ccBreakingEvent=!1,e.publishButtonLabel=t.scope.currentScope.network.getResourceOrKeyName(t.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly?"web_common_submit":"web_common_publish"),e.showContentConnectTagBox=e.networkChapters.length>0&&t.scope.network.featureContentConnect,e.contentConnectTagBox={selectionOptions:{width:"90%",dataSource:e.networkChapters,showSelectionControls:!0,searchEnabled:!0,displayExpr:"name",selectAllText:t.scope.currentScope.network.getResourceOrKeyName("web_rubric_choice_check_all"),placeholder:t.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_contentConnectPlaceholder"),onContentReady:function(g){e.dxTagBoxInstance=g.component}}},a.getEventContentConnectNetworks().then(function(g){g.length>0&&(e.showContentConnectTagBox=!0),g.forEach(function(f){f.networkChapters.forEach(function(n){e.dxTagBoxInstance.getDataSource().store().insert({name:f.name+": "+n.name,chapterNetwork:{chapterSlug:n.slug,networkSlug:f.slug,isOwnNetwork:n.isOwnNetwork}})})}),e.dxTagBoxInstance.load()}),e.$onInit=function(){e.networkChapters=e.resolve.networkChapters},e.publish=function(){var g={selectedChapters:e.dxTagBoxInstance.option("selectedItems").map(function(f){return f.chapterNetwork}),ccBreakingEvent:e.ccBreakingEvent};r.close(g)}}]),app.component("snipEventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/snipEventCalendarDisplayable.html",bindings:{snip:"<",horizontal:"<"},controller:["$rootScope",function(e){var t=this;this.$onInit=function(){var a=new Date(t.snip.calendarDate).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"});t.formattedCalendarDate=e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:a}),t.snip.isToday=t.isToday}}]}),app.component("sponsoredArticleEventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/sponsoredArticleEventCalendarDisplayable.html",bindings:{sparticle:"<"},controller:function(){var e=this;this.$onInit=function(){e.formatedCalendarDate=moment(e.sparticle.calendarDate).format("dddd")+", der "+new Date(e.sparticle.calendarDate).getDate()+". "+moment(e.sparticle.calendarDate).format("MMMM")}}}),app.filter("absoluteUrl",function(){return function(e){return e?0!=e.indexOf("http://")&&0!=e.indexOf("https://")?"http://"+e:e:""}}),app.filter("apicodoMediaServiceEmbed",["$sce","authService",function(e,t){return function(a){return e.trustAsResourceUrl(t.mediaApiBase.url+"/play/"+a.split("|")[0]+"?guiMode=iframe&token="+a.split("|")[1]+"&platform=external")}}]),app.filter("apicodoMediaServiceWatch",["$sce","authService",function(e,t){return function(a){return e.trustAsResourceUrl(t.mediaApiBase.url+"/play/"+a.split("|")[0]+"?guiMode=iframe&token="+a.split("|")[1]+"&platform=external")}}]),app.filter("apicodoMediaServiceImage",["$sce","authService",function(e,t){return function(a){return e.trustAsResourceUrl(t.mediaApiBase.url+"/api/Asset/"+a+"/Thumbnail000001.jpg")}}]),app.filter("dailymotionEmbed",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//www.dailymotion.com/embed/video/"+t+"?logo=0&related=0&highlight=00a9fd")}}]),app.filter("datePastOrNow",function(){return function(e){return moment()<moment(e)?moment():moment(e)}}),app.filter("encodeURIComponent",function(){return window.encodeURIComponent}),app.filter("escapeHtml",[function(){return function(e){return e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;"):""}}]),app.filter("facebookEmbed",["$sce","$rootScope",function(e,t){return function(a){return e.trustAsResourceUrl("//www.facebook.com/plugins/video.php?href="+window.encodeURIComponent("https://www.facebook.com/".concat(a))+"%2F&show_text=0&width=600&height=338")}}]),app.filter("facebookWatch",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//www.facebook.com/"+t+"/")}}]),app.filter("facebookImage",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//graph.facebook.com/"+t.split("/")[2]+"/picture")}}]),app.filter("includeMyUnpublishedSnips",function(){return function(e,t){Array.isArray(e)||(e=[]);var a=function(n,d){return n?.user?.guid?.toLowerCase()===d?.toLowerCase()},c=e.filter(function(n){return a(n,t)&&!function(n){return null!==n.deleted}(n)}),g=e.filter(function(n){return!n||!a(n,t)&&n?.published});return c.concat(g)}}),app.filter("moment",function(){return function(e,t){var a=Array.prototype.slice.call(arguments,2),r=moment(e);return r[t].apply(r,a)}}),app.filter("momentShortDateFormat",["$rootScope",function(e){return function(){return moment(arguments[0]).locale(e.scope.currentScope.network.settings.languageCode).format("L")}}]),app.filter("momentShortDateTimeFormat",["$rootScope",function(e){return function(){var t=moment(arguments[0]),a=e.scope.currentScope.network.settings.languageCode;return t.locale(a).format("L")+" "+t.locale(a).format("LT")}}]),app.filter("parseUrl",function(){"use strict";return function(t){return function e(t){if(t)return t.replace(/(?:https?\:\/\/|www\.)+(?![^\s]*?")([\w.,@?!^=%&amp;:\/~+#-]*[\w@?!^=%&amp;\/~+#-])?/gi,function(r){var c=document.createElement("div"),g=document.createElement("a");return 0!=r.indexOf("http://")&&0!=r.indexOf("https://")&&(r="http://"+r),g.href=r,g.target="_blank",g.innerHTML=r.replace(/.*?:\/\/(www\.)?/g,""),c.appendChild(g),c.innerHTML})||""}(t)}}),app.filter("readableMilliseconds",function(){return function(e){var t,a,c,g,f,n,d,l,i,s,o,b,p,h,I,y;switch(h=parseInt(e)<0,I=parseInt(e)/1e3,I=Math.abs(I),g=7*(t=24*(a=3600)),c=(f=365*t)/12,y={years:null,months:null,weeks:null,days:null,hours:null,minutes:null,seconds:null},n=function(){return("        "+(h?"-":"")+"        "+(y.years?" "+y.years+"yr":"")+"        "+(y.months?" "+y.months+"mth":"")+"        "+(y.weeks?" "+y.weeks+"w":"")+"        "+(y.days?" "+y.days+"d":"")+"        "+(y.hours?" "+y.hours+"h":"")+"        "+(y.minutes?" "+y.minutes+"m":"")+"        "+(y.seconds?" "+y.seconds+"s":"")+"        ").trim()},o=function(C,x){return null==x&&(x=0),y.seconds=1===x?C.toFixed(1):Math.floor(C),n()},i=function(C){return y.minutes=Math.floor(C/60),o(C-60*y.minutes)},l=function(C){return y.hours=Math.floor(C/a),i(C-y.hours*a)},d=function(C){return y.days=Math.floor(C/t),l(C-y.days*t)},b=function(C){return y.weeks=Math.floor(C/g),d(C-y.weeks*g)},s=function(C){return y.months=Math.floor(C/c),b(C-y.months*c)},p=function(C){return y.years=Math.floor(C/f),s(C-y.years*f)},!1){case!(I<60):return o(I,1);case!(I<a):return i(I);case!(I<t):return l(I);case!(I<g):return d(I);case!(I<c):return b(I);case!(I<f):return s(I);default:return p(I)}}}),app.directive("translateText",["$compile","$rootScope","translationService","$timeout","$sce","$sanitize",function(e,t,a,r,c,g){return{restrict:"A",scope:{translateText:"="},link:function(f,n){f.$watch("translateText",function(d){if(d){var l=[d];r(function(){a.translateByUserLanguageCode(l).then(i=>{var o=g(i[0].translation),p=e("<div>"+o+"</div>")(f.$parent);n.empty(),angular.element(n).append(p.contents())}).catch(i=>{var o=g(d),p=e("<div>"+o+"</div>")(f.$parent);n.empty(),angular.element(n).append(p.contents())})},0)}else n.empty()},!0)}}}]),app.directive("translateUnSanitized",["$compile","$rootScope","translationService","$timeout","$sce",function(e,t,a,r,c){return{restrict:"A",scope:{translateUnSanitized:"="},link:function(g,f){g.$watch("translateUnSanitized",function(n){if(n){var d=[n];r(function(){a.translateByUserLanguageCode(d).then(l=>{var o=e("<div>"+l[0].translation+"</div>")(g.$parent);f.empty(),angular.element(f).append(o.contents())}).catch(l=>{var o=e("<div>"+n+"</div>")(g.$parent);f.empty(),angular.element(f).append(o.contents())})},0)}else f.empty()},!0)}}}]),app.filter("trustUrl",["$sce",function(e){return function(t){return e.trustAsResourceUrl(t)}}]),app.filter("vimeoEmbed",["$sce",function(e){return function(t){const a=t.split("|");let c="//player.vimeo.com/video/"+a[0].split("/")[0];return c+=a.length>1&&a[2]?"?h="+a[2]+"&badge=0&portrait=0&byline=0":"?badge=0&portrait=0&byline=0",e.trustAsResourceUrl(c)}}]),app.filter("vimeoWatch",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//vimeo.com/"+t.split("|")[0])}}]),app.filter("vimeoImage",["$sce",function(e){return function(t){var a=t.split("|")[1];return a||(a="/Content/images/vimeo_logo.jpg"),e.trustAsResourceUrl(a)}}]),app.filter("youtubeEmbed",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//www.youtube.com/embed/"+t.split("||")[0]+"?modestbranding=1&amp;rel=0")}}]),app.filter("youtubeWatch",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//youtu.be/"+t.split("||")[0])}}]),app.filter("youtubeImage",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//img.youtube.com/vi/"+t.split("||")[0]+"/0.jpg")}}]),app.factory("backendHubProxy",["$rootScope",function(e){return function t(a){var r=$.hubConnection(),c=r.createHubProxy(a);return c.connection.logging=!0,{on:function(g,f){c.on(g,function(n){e.$apply(function(){f&&f(n)})})},invoke:function(g,f,n){c.invoke(g,f).done(function(d){e.$apply(function(){n&&n(d)})})},start:function(g){r.start().done(function(){g&&g()}).catch(function(f){console.log(f.toString())})},stop:function(g){r.stop(),g&&g()}}}}]),app.controller("IkUpLandingPageController",["$scope","$rootScope","ikUpLandingPageService","$location","$timeout","$window",function(e,t,a,r,c,g){switch(e.input={},e.description=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description"),e.placeholder=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey"),e.loginbutton=t.scope.currentScope.network.getResourceOrKeyName("web_common_login"),(g.navigator.language||g.navigator.userLanguage).substring(0,2).toLowerCase()){case"en":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description_en")&&(e.description=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description_en")),t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey_en")&&(e.placeholder=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey_en")),t.scope.currentScope.network.getResourceOrKeyName("web_common_login_en")&&(e.loginbutton=t.scope.currentScope.network.getResourceOrKeyName("web_common_login_en"));break;case"fr":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description_fr")&&(e.description=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description_fr")),t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey_fr")&&(e.placeholder=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey_fr")),t.scope.currentScope.network.getResourceOrKeyName("web_common_login_fr")&&(e.loginbutton=t.scope.currentScope.network.getResourceOrKeyName("web_common_login_fr"))}e.request=function(){a.getCompanyKey(e.input.companyKey).then(function(n){let d=new URL(r.absUrl());if(n)window.location.href=d.origin+d.pathname+"?id="+n.landingSwitchRedirectId;else{var i=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches");switch((g.navigator.language||g.navigator.userLanguage).substring(0,2).toLowerCase()){case"en":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_en")&&(i=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_en"));break;case"fr":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_fr")&&(i=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_fr"))}e.input.noMatches=i,c(function(){e.input.noMatches=""},2e3)}})}}]),app.factory("ikUpLandingPageService",["$http","$q",function(e,t){return{getCompanyKey:function(r){var c=t.defer();return e.post(scope.apiEndpoint+"companyKeys",{Key:r}).then(function(g){c.resolve(g.data)}),c.promise}}}]),app.controller("ChapterSwitchDialog",["$scope","$rootScope","profileService","scopeService","$stateParams",function(e,t,a,r,c){scope.network.settings.configurations.chapterSwitchGrantedChaptersOnly?a.getProfile().then(function(g){e.aprofile=g;for(var f=[],n=0;n<scope.network.chapters.length;n++)(g.closedChapterSlugs.includes(scope.network.chapters[n].slug)||!scope.network.chapters[n].closed)&&f.push(scope.network.chapters[n]);e.chapterList=f}):e.chapterList=scope.network.chapters}]),app.controller("IndexController",["$scope","$rootScope","$location","authService","$uibModal","$window","profileService","$timeout",function(e,t,a,r,c,g,f,n){var d=function(){"unrecognized"!==ResponsiveBootstrapToolkit.current()?t.mobile=ResponsiveBootstrapToolkit.is("<=sm"):n(d)};d(),$(window).resize(function(){e.$apply(function(){t.mobile=ResponsiveBootstrapToolkit.is("<=sm")})}),e.login=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return function(){}},facebookSignUpData:!1,login:!0}})},e.profile=f.profile,e.authentication=r,f.getProfile().then(function(){n(function(){e.loaded=!0})}),e.openSnip=function(){var l=c.open({templateUrl:"/ClientApp/src/legacy-app/article/articleCreate.html",controller:"ArticleCreateController",size:"lg",resolve:{}});l.result.then(function(i){},function(){}),l.opened.then(function(){})},e.isActive=function(l){return l===a.path()}}]),app.controller("AppLandingController",["$rootScope","$scope","profileService",function(e,t,a){t.chapterClick=function(r){e.switchChapter(r)}}]),app.controller("LandingController",["$rootScope","$scope","profileService","scopeService","logoService","pageMetaInfoService","$state",function(e,t,a,r,c,g,f){t.success=!1,t.networkLogoUrl=c.getNetworkLogoUrl(),t.logoService=c,t.accessibility=e.scope.currentScope.network.settings.configurations.accessibility,g.run("home"),t.switchChapter=function(n,d){d.preventDefault(),e.switchChapter(n)},t.submitForm=function(n){n&&a.insertProposedCity(t.proposedCity).then(function(d){t.success=!0},function(){}).then(function(){})},t.updatePageMetaInfo=function(n){g.run(n)}}]),app.controller("MarketResearchElasticReportController",["$scope","$rootScope","marketResearchService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,r,c,g,f,n){AmCharts.isReady=!0;var s,o,b,d=getComputedStyle(document.querySelector("body")).getPropertyValue("--color1-alpha50"),l=[{color:d},{color:"#cccccc"},{color:"#b53967"},{color:"#00a9fd"},{color:"#9d4f9f"},{color:"#8e6fff"},{color:"#00ffeb"},{color:"#63223a"},{color:"#00496d"},{color:"#d4aad5"},{color:"#160066"},{color:"#e5cce6"},{color:"#ff5733"},{color:"#33ff57"},{color:"#5733ff"},{color:"#ffd700"},{color:"#ff1493"},{color:"#00ced1"},{color:"#adff2f"},{color:"#ff4500"},{color:"#7f00ff"},{color:"#ff6347"}],i=[],p=[];e.report=null,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null,e.totalClickCount=0;var h=function(x){var k=0,R=0,u=0;p.forEach(function(U,F){p[F].value=0}),$.each(x,function(U,F){k+=F.impressionTime,R+=F.impressionCount,$.each(F.answers,function(w,S){$.each(p,function(v,A){if(A.id===S.id)return A.value+=S.clicks,void(u+=S.clicks)})})}),e.$apply(function(){e.totalImpressionTime=k,e.totalImpressionCount=R,e.totalClickCount=u}),b.validateData(),s.validateData(),o.validateData()},I=function(){var x=moment(s.startDate).startOf("day").toDate(),k=moment(s.endDate).startOf("day").toDate(),R=e.report.filter(function(u){return u.day>=x&&u.day<=k});h(R),o.zoom(x,moment(k).add(1,"d").toDate()),e.$apply(function(){e.startDay=x,e.endDay=k})};e.filterChapter=function(x){x.filtered=!x.filtered,function(){var x=e.chapters.filter(function(k){return!k.filtered}).map(function(k){return k.id});e.filterDisabled=!0,a.getReport({marketResearchId:e.marketResearch.id,marketResearchQuestionId:e.marketResearch.questionId,chapterIds:x}).then(function(k){k.forEach(function(R){R.day=moment(R.day.replace("Z","")).toDate()}),e.report=k,f(function(){(function(x){i.length=0,$.each(x,function(k,R){i.push(R)}),s.validateData(),o.validateData()})(k),I(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(x){return e.filterDisabled||1===e.chapters.filter(function(k){return!k.filtered}).length&&!x.filtered},a.getMarketResearch(c.id).then(function(x){e.marketResearch=x,x.questions[0].answers.forEach(function(k,R){p.push({title:k.text,value:0,id:k.intId,color:p.length<l.length?l[p.length].color:"#000000"})}),a.getReport({marketResearchId:c.id,marketResearchQuestionId:x.questionId}).then(function(k){k.forEach(function(u){u.day=moment(u.day.replace("Z","")).toDate()}),e.report=k,e.startDay=k[0].day,e.endDay=k[k.length-1].day;var R=[];$.each(x.chapterSlugs,function(u,U){R.push(r.getChapter(U))}),R=R.filter(function(u){return 2===u.managementState}),e.chapters=R,$.each(k,function(u,U){i.push(U)}),f(function(){(s=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:i,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){I()}),o=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:d,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"clickCount",toField:"clickCount"}],dataProvider:i,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clickCount",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),b=AmCharts.makeChart("chartAnswers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:p,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%\nClicks: [[value]]"}),h(k)})},function(){e.error=!0})})}]),app.controller("MarketResearchReportController",["$scope","$rootScope","marketResearchService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,r,c,g,f,n){AmCharts.isReady=!0;var d=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getMarketResearch(c.id).then(function(i){e.marketResearch=i,a.getReportMarketResearchCalendar(c.id).then(function(s){s.forEach(function(o){o.chapter=r.getChapter(o.chapterSlug),o.reports.forEach(function(b){b.calendar.forEach(function(p){p.start=moment(p.start.replace("Z","")).toDate(),p.end=moment(p.end.replace("Z","")).toDate()})})}),i.report=s,f(function(){var o,b,p,h=[],I=new Set;$.each(s,function(F,w){w.active=!0,I.add(w.chapter.name)}),s.uniqueChapters=[],I.forEach(function(F){s.uniqueChapters.push(F)});var y=[],C=function(){y.length=0,$.each(s[0].reports[0].calendar,function(F,w){y.push({start:w.start,end:w.end,impressions:0,viewableImpressions:0,clicks:0,impressionTime:0})}),$.each(s,function(F,w){w.active&&(s[F-1]&&2===s[F-1].chapter.managementState&&2===w.chapter.managementState&&s[F-1].chapter.name!==w.chapter.name&&(s.multiChapterShipment=!0),$.each(w.reports,function(S,v){var A=v.marketResearch.id;$.each(v.calendar,function(T,D){D.id=A,y[T].impressions+=D.impressions,y[T].viewableImpressions+=D.viewableImpressions,y[T].impressionTime+=D.impressionTime,null!==D.marketResearchAnswerId&&(y[T].clicks+=D.impressions)})}))}),b.validateData(),o.validateData()},R=s.summary={};o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:y,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),b=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:d,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"impressions",toField:"impressions"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:y,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_impressions"),type:"smoothedLine",valueField:"impressions",periodValue:"Sum",comparable:!0,balloonText:"Einblendungen: <i class='fa fa-eye-slash'></i> [[value]]",lineAlpha:.5,fillAlphas:.05,periodValueText:"[[value.sum]]",visibleInLegend:!1},{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"viewableImpressions",type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),p=AmCharts.makeChart("chartAnswers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:h,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%\nClicks: [[value]]"});var F,U=function(){var F=moment(o.startDate).startOf("day").toDate(),w=moment(o.endDate).startOf("day").add(-1,"d").toDate();(function(F,w){R.viewableImpressions=0,R.impressions=0,R.clicks=0,R.impressionTime=0,R.start=F,R.end=w,$.each(y,function(S,v){var A=new Date(v.start);A<F||A>w||(R.viewableImpressions+=v.viewableImpressions,R.impressions+=v.impressions,R.clicks+=v.clicks,R.impressionTime+=v.impressionTime)}),p.validateData(),b.validateData(),e.$apply()})(F,w),function(F,w){h.forEach(function(S,v){h[v].value=0}),$.each(s,function(S,v){v.active&&$.each(v.reports,function(A,T){$.each(T.calendar,function(D,m){var M=new Date(m.start);M<F||M>w||m.impressions>0&&null!==m.marketResearchAnswerId&&m.start>=F&&m.end<=w&&h.forEach(function(E,P){h[P].answerId!==m.marketResearchAnswerId||(h[P].value+=m.impressions)})})})}),p.validateData(),e.$apply()}(F,w),b.zoom(F,moment(w).add(1,"d").toDate())};o.addListener("zoomed",function(F){U()}),e.toggleReport=function(F){$.each(s,function(w,S){S.chapter.name===F&&(S.active=!S.active)}),f(function(){C(),U()},50)},C(),(F=i.questions[0].answers).sort(function(w,S){return(w.id>S.id)-(w.id<S.id)}),F.forEach(function(w,S){h.push({title:w.text,value:0,answerId:w.id,color:h.length<=l.length?l[h.length].color:"#000000"})}),U()},function(){e.error=!0})})},function(){n.path("/")});var l=[{color:d},{color:"#cccccc"},{color:"#b53967"},{color:"#00a9fd"},{color:"#9d4f9f"},{color:"#8e6fff"},{color:"#00ffeb"},{color:"#63223a"},{color:"#00496d"},{color:"#d4aad5"},{color:"#160066"},{color:"#e5cce6"}]}]),app.factory("marketResearchService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,r,c,g){return{getMarketResearch:function(i){var s=t.defer();return e.get(scope.apiEndpoint+"marketresearch/"+i).then(function(o){s.resolve(o.data)},function(){s.reject()}),s.promise},getReportMarketResearchCalendar:function(i){var s=t.defer();return e.get(scope.apiEndpoint+"marketresearch/"+i+"/ReportMarketResearchCalendar").then(function(o){s.resolve(o.data)},function(){s.reject()}),s.promise},getReportMarketResearchAnswers:function(i){var s=t.defer();return e.get(scope.apiEndpoint+"marketresearch/"+i+"/ReportMarketResearchAnswers").then(function(o){s.resolve(o.data)},function(){s.reject()}),s.promise},getReport:function(i){var s=t.defer();return e.post(scope.apiEndpoint+"marketResearch/report",i).then(function(o){s.resolve(o.data)},function(){s.reject()}),s.promise}}}]),app.component("apicodoMediaManager",{templateUrl:"/ClientApp/src/legacy-app/media/apicodoMediaManagerComponent.html",bindings:{callback:"<"},controller:["$scope","$element","$stateParams","$location","$rootScope","profileService","apicodoMediaService","authService",function(e,t,a,r,c,g,f,n){var d=this;d.uploading=!1,d.isInitialized=!1,d.apicodoBaseUrl=n.mediaApiBase.url,d.odataBaseUrl=d.apicodoBaseUrl+"/api/odata/",d.apiBaseUrl=d.apicodoBaseUrl+"/api/",DevExpress.localization.locale(c.scope.currentScope.network.settings.languageCode),d.refreshGrid=function(){d.gridInstance.refresh()},d.executeClickCallback=function(i){d.callback&&d.callback({text:d.apicodoBaseUrl+"/play/"+i.row.data.id+"?guiMode=iframe",title:i.row.data.title,attachment:i.row.data.id,thumbnailUrl:d.apicodoBaseUrl+"/api/Asset/"+i.row.data.id+"/Thumbnail000001.jpg"})},f.getConnectionData().then(function(i){d.token=i.token,d.odataBaseUrl=i.apiBase+"/api/odata/",d.gridInstance=$("#mediaGridContainer").dxDataGrid({dataSource:{store:new DevExpress.data.ODataStore({url:d.getGridUrl(),key:"id",keyType:"Guid",version:4,withCredentials:!0,beforeSend:function(s){s.headers=d.getHeaders()}})},paging:{pageSize:5},pager:{showPageSizeSelector:!0,allowedPageSizes:[5,10,25,50,100]},remoteOperations:!0,searchPanel:{visible:!0,highlightCaseSensitive:!0},showColumnHeaders:!1,showColumnLines:!1,showRowLines:!1,columns:[{width:75,allowFiltering:!1,allowSorting:!1,dataField:"id",cellTemplate:function(s,o){$("<div>").append($("<button>",{class:"btn btn-green action-button",click:function(){d.callback&&d.callback({text:d.apicodoBaseUrl+"/play/"+o.data.id+"?guiMode=iframe",title:o.data.title,attachment:o.data.id,thumbnailUrl:d.apicodoBaseUrl+"/api/Asset/"+o.data.id+"/Thumbnail000001.jpg"})}}).append($("<img>",{src:d.apicodoBaseUrl+"/api/Asset/"+o.data.id+"/Thumbnail000001.jpg",height:20}))).appendTo(s)}},{dataField:"title",caption:"Name"},{dataField:"description",caption:"Description",visible:!1},{dataField:"createdOn",sortIndex:0,sortOrder:"desc",visible:!1}]}).dxDataGrid("instance"),d.uploaderInstance=$("#mediaFileUploader").dxFileUploader({name:"file",multiple:!1,accept:"video/*",value:[],chunkSize:5e5,uploadMode:"instantly",labelText:c.scope.currentScope.network.getResourceOrKeyName("web_upload_drag_drop_here"),selectButtonText:c.scope.currentScope.network.getResourceOrKeyName("web_upload_video_button"),uploadHeaders:d.getHeaders(),uploadUrl:d.getFileUploaderUrl(),onValueChanged:function(s){var o=s.value;o.length>0&&$.each(o,function(b,p){var h=(new DevExpress.data.Guid)._value;p.guid=h})},onUploadStarted:function(s){d.uploading=!0},onUploadAborted:function(s){d.uploading=!1},onUploadError:function(s){d.uploading=!1},onUploaded:function(s){d.refreshGrid(),d.uploading=!1}}).dxFileUploader("instance"),d.isInitialized=!0,$(".dx-fileuploader-button").addClass("btn btn-green action-button")}),d.getGridUrl=function(){return d.odataBaseUrl+"MediaFiles"},d.getFileUploaderUrl=function(){return d.apiBaseUrl+"Upload"},d.getHeaders=function(){return{Authorization:"Bearer "+d.token,withCredentials:!1}}}]}),app.component("apicodoMediaPlay",{templateUrl:"/ClientApp/src/legacy-app/media/apicodoMediaPlayComponent.html",bindings:{fileid:"<",originNetworkSlug:"<"},controller:["$scope","$element","$stateParams","$location","$rootScope","profileService","apicodoMediaService","$sce","authService",function(e,t,a,r,c,g,f,n,d){var l=this;l.isVerticalVideo=!0,this.$onInit=function(){f.getConnectionData(l.originNetworkSlug).then(function(i){l.getVideoUrl=function(s){return n.trustAsResourceUrl(d.mediaApiBase.url+"/play/"+s+"?guiMode=iframe&token="+i.token+"&platform=external")},f.getVideoData(l.fileid,l.originNetworkSlug).then(function(s){try{var o=s.metaData.assetMetadata.assetFile[0].videoTracks[0].height,b=s.metaData.assetMetadata.assetFile[0].videoTracks[0].width,p=void 0!==s.metaData.assetMetadata.assetFile[0].videoTracks[0].metadata.find(function(h){return"rotate"===h.key});l.isVerticalVideo=p,p?console.log(parseInt(o),"x",parseInt(b),"rotation"):(console.log(parseInt(o),"x",parseInt(b),"no rotation"),parseInt(o)>parseInt(b)&&(l.isVerticalVideo=!0))}catch{console.log("ERROR META ROTATION"),console.log(s)}}),l.videoUrl=l.getVideoUrl(l.fileid)})}}]}),app.controller("apicodoMediaPlayDialog",["$scope","videoId",function(e,t){e.working=!1,e.error=!1,e.videoid=t}]),app.controller("apicodoMediaPlayPageController",["$scope","$stateParams","$location",function(e,t,a){e.videoid=t.id}]),app.factory("apicodoMediaService",["$rootScope","$http","$q","authService",function(e,t,a,r){var c=scope.globalSettings.configurations.apicodoMediaBaseUrl;e.apicodoMediaConnectionData||(e.apicodoMediaConnectionData={});var g=function(n){var d=a.defer(),l=n||"default";if(e.apicodoMediaConnectionData[l]&&e.apicodoMediaConnectionData[l].expiresOn>Date.now())d.resolve(e.apicodoMediaConnectionData[l]);else{var i=scope.apiEndpoint+"media/token";n&&(i+="?originNetworkSlug="+n),t.get(i).then(function(s){var o=s.data;e.apicodoMediaConnectionData[l]=o,e.apicodoMediaConnectionData[l].isInitialized=!0,e.apicodoMediaConnectionData[l].expiresOn=new Date(Date.now()+36e5),d.resolve(o)},function(){d.reject()})}return d.promise};return{apicodoMediaUrl:scope.globalSettings.configurations.apicodoMediaBaseUrl,getConnectionData:g,getVideoData:function(n,d){var l=a.defer();return g(d).then(function(i){t.get(c+"/api/Thumbnail/GetWebFrontendData?fileId="+n,{headers:{Authorization:"Bearer "+i.token}}).then(function(o){l.resolve(o.data)},function(){l.reject()})}),l.promise}}}]),app.component("collapsableMenu",{templateUrl:"/ClientApp/src/legacy-app/collapsableMenu/collapsableMenu.html",bindings:{menuitems:"<"},controller:["$element","$timeout",function(e,t){}]}),app.directive("collapsableMenuTarget",["$rootScope",function(e){return{restrict:"A",link:function(t,a,r){var c=r.href;(!c.match("https?://(.*/)?"+location.hostname+".*")&&!c.startsWith("/")||-1!==c.indexOf("/pdf/")||-1!==c.indexOf("/document/")||-1!==c.indexOf("/file/"))&&a.attr("target","_blank")}}}]),app.controller("NotificationSettingsController",["$rootScope","$scope","notificationService","$stateParams","$timeout","$location",function(e,t,a,r,c,g){t.working=!1,t.success=!1,t.error=!1;var f=!0;e.profile.isAdmin||e.profile.isNetworkAdmin||(f=!1,e.profile.chapterRoles&&e.profile.chapterRoles.forEach(d=>{d>2&&(f=!0)})),t.isRedesign="Redesign2024"==e.scope.currentScope.network.settings.configurations.contentRenderEngine;var n=r.privateUserGuid||null;a.getNotificationGroups(n).then(function(d){if(!f)for(let i=0;i<d.length;i++)1001==d[i].order&&d.splice(i,1);if(t.notificationGroups=d,g.search().optOutAll){for(var l=0;l<t.notificationGroups.length;l++)6===t.notificationGroups[l].order&&e.scope.currentScope.chapter.settings.featureBreakingNewsToAll||(t.notificationGroups[l].enabled=!1);t.working=!0,a.updateNotificationGroups(t.notificationGroups,n).then(function(){c(function(){t.working=!1,t.success=!0},2e3)},function(){t.error=!0})}}),a.getUserEmail(n).then(function(d){t.userEmail=d}),t.toggleNotificationGroup=function(d){d.enabled=!d.enabled,t.success=!1,t.working=!0,a.updateNotificationGroups(t.notificationGroups,r.privateUserGuid).then(function(){c(function(){t.working=!1,t.success=!0},2e3)},function(){t.error=!0,d.enabled=!d.enabled})}}]),app.directive("articleImpression",["$state","$rootScope","clickService",function(e,t,a){return{restrict:"A",link:function(r,c,g){var f=r.$eval(g.articleImpression),l=Oculus.trackArticleImpression(c,{ia:f.id,iar:f.revisionId,iav:f.variantId,c:t.scope.currentScope.chapter.slug,n:t.scope.currentScope.network.slug});l.persistent=e.includes("app.main-news"),c.on("click",function(){l.click(),a.clickArticle(l.guid,f.id)})}}}]),app.directive("articleReading",["$rootScope",function(e){return{restrict:"A",link:function(t,a,r){var c=$(a).children().map(function(){for(var d=$(this),l=d;l.length;){if(l.parent().hasClass("allow-float"))return l[0];l=(d=l).children()}return this}),g=e.scope.currentScope.network,f=t.$eval(r.articleReading);Oculus.trackArticleReading(c,{ia:f.id,iar:f.revisionId,iav:f.variantId,c:e.scope.currentScope.chapter.slug,n:g.slug})}}}]),app.directive("marketResearchQuestion",["$timeout","$state","$rootScope",function(e,t,a){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/marketResearchQuestion.html",scope:{marketResearch:"=",article:"=",question:"=",nextQuestion:"="},link:function(r,c){var g=a.scope.currentScope.network,f=a.scope.currentScope.chapter;r.isInView=!1,r.oculus=Oculus.trackMarketResearch(c.children().first(),{mq:r.question.id,ia:r.article?r.article.id:null,iar:r.article?r.article.revisionId:null,iav:r.article?r.article.variantId:null,c:f.slug,n:g.slug}),r.oculus.persistent=t.includes("app.main"),r.answering=function(n){r.oculus.bundle.ma=n,r.oculus.push(),r.oculus.stop(0),r.nextQuestion()}}}}]),app.directive("marketResearchShipment",[function(){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/marketResearchShipment.html",scope:{marketResearch:"=",article:"="},link:function(e){e.actQuestionIndex=0,e.actQuestion=e.marketResearch.questions[e.actQuestionIndex],e.actQuestion.isVisible=!0,e.nextQuestion=function(){e.actQuestion.nextQuestionId?(e.actQuestion.isVisible=!1,e.actQuestionIndex++,e.actQuestion=e.marketResearch.questions[e.actQuestionIndex],e.actQuestion.isVisible=!0):(e.actQuestion.isVisible=!1,e.answered=!0)}}}}]),app.directive("oculusContainer",[function(){return{restrict:"A",link:function(e,t,a){Oculus.addScrollContainer(t)}}}]),app.directive("searchImpression",["$state","$rootScope",function(e){return{restrict:"A",scope:{query:"<searchQuery",guid:"=searchGuid"},link:function(t,a){t.$watch(function(){return t.query},function(r){if(r){var c=Oculus.trackSearch(a,{q:r});t.guid=c.guid,c.persistent=e.includes("app.main-news")}})}}}]),app.directive("delivery",["shipmentService","profileService","localStorageService","$rootScope","$timeout","$state","redirectService","clickService",function(e,t,a,r,c,g,f,n){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/shipment.html",scope:!0,link:function(d,l,i){var s=d.$eval(i.article),o=s?s.id:void 0;t.getProfile().then(function(b){e.getShipment(o).then(function(p){d.shipment=p;var h=r.scope.globalSettings.blobStorageCdnUrl,I=r.scope.globalSettings.blobStorageContainerNameShipment;d.imageUrl="",p.pin&&(d.imageUrl=h+"/"+I+"/"+p.pin+(r.scope.currentChapter.settings.configurations.allowCustomBannerResolution?"":"?preset=shipment")),p.uri&&(d.inSameChapter=f.isSameChapterUrl(p.uri),d.uriIsDocument=-1!==p.uri.indexOf("/pdf/")||-1!==p.uri.indexOf("/document/")||-1!==p.uri.indexOf("/file/"));var y=angular.copy(d.scope.oculus),C=r.scope.currentScope.network,x=r.scope.currentScope.chapter;y.impressionThreshold=y.shipmentImpressionThreshold,y.impressionViewportThreshold=y.shipmentImpressionViewportThreshold,1===p.articleDetailDisplayableType&&c(function(){p.oculus=Oculus.trackBanner(l.children().first(),{c:x.slug,n:C.slug,ia:s?s.id:null,iar:s?s.revisionId:null,iav:s?s.variantId:null,ibc:p.bannerCampaignId,ib:p.bannerId}),p.oculus.persistent=g.includes("app.main-news")}),d.clickBanner=function(){d.shipment.oculus.click(),n.clickBannerPost(d.shipment.oculus.guid,d.shipment.pin)}})})}}}]),app.component("deliveryPremium",{templateUrl:"/ClientApp/src/legacy-app/oculus/shipmentPremium.html",bindings:{shipment:"="},controller:["$interpolate","$scope","shipmentService","profileService","localStorageService","scopeService","$timeout","$element","$state","$rootScope","redirectService","clickService",function(e,t,a,r,c,g,f,n,d,l,i,s){var o=this,b=g.getGlobalSettings().blobStorageCdnUrl,p=g.getGlobalSettings().blobStorageContainerNameShipment;o.web_shipment_premium_title=e(scope.currentScope.network.resources.web_shipment_premium_title)({chapterName:scope.currentScope.chapter.name}),this.$onInit=function(){if(o.shipment){o.imageUrl="",o.shipment.pin&&(o.imageUrl=b+"/"+p+"/"+o.shipment.pin+(l.scope.currentChapter.settings.configurations.allowCustomBannerResolution?"":o.shipment.mobile?"?preset=premium-shipment-xs":"?preset=premium-shipment")),o.shipment.uri&&(o.inSameChapter=i.isSameChapterUrl(o.shipment.uri),o.uriIsDocument=-1!==o.shipment.uri.indexOf("/pdf/")||-1!==o.shipment.uri.indexOf("/document/")||-1!==o.shipment.uri.indexOf("/file/"));var h=l.scope.currentScope.network,I=l.scope.currentScope.chapter,y=angular.copy(l.scope.oculus);y.impressionThreshold=y.shipmentImpressionThreshold,y.impressionViewportThreshold=y.shipmentImpressionViewportThreshold,o.shipment.oculus=Oculus.trackPremiumBanner(n.find(".shipmentPremium-image-wrapper"),{c:I.slug,n:h.slug,ip:o.shipment.premiumId,ipb:o.shipment.premiumBannerId}),o.clickBanner=function(){o.shipment.oculus.click(),s.clickPremiumPost(o.shipment.oculus.guid,o.shipment.pin)},o.shipment.oculus.persistent=d.includes("app.main-news")}}}]}),app.component("deliverySuper",{templateUrl:"/ClientApp/src/legacy-app/oculus/shipmentSuper.html",bindings:{shipment:"<"},controller:["scopeService","$element","$state","$rootScope","$timeout","redirectService","clickService",function(e,t,a,r,c,g,f){var n=this,d=e.getGlobalSettings().blobStorageCdnUrl,l=e.getGlobalSettings().blobStorageContainerNameShipment;this.$onInit=function(){if(n.shipment){n.imageUrl="",n.shipment.pin&&(n.imageUrl=d+"/"+l+"/"+n.shipment.pin+(r.scope.currentChapter.settings.configurations.allowCustomBannerResolution?"":n.shipment.mobile?"?preset=premium-shipment-xs":"?preset=premium-shipment")),n.shipment.uri&&(n.inSameChapter=g.isSameChapterUrl(n.shipment.uri),n.uriIsDocument=-1!==n.shipment.uri.indexOf("/pdf/")||-1!==n.shipment.uri.indexOf("/document/")||-1!==n.shipment.uri.indexOf("/file/"));var i=r.scope.currentScope.network,s=r.scope.currentScope.chapter,o=angular.copy(r.scope.oculus);o.impressionThreshold=o.shipmentImpressionThreshold,o.impressionViewportThreshold=o.shipmentImpressionViewportThreshold,n.shipment.oculus=Oculus.trackSuperBanner(t.find(".shipmentSuper-image-wrapper"),{c:s.slug,n:i.slug,isu:n.shipment.superCampaignId,isub:n.shipment.superBannerId}),n.clickBanner=function(){n.shipment.oculus.click(),f.clickSuperPost(n.shipment.oculus.guid,n.shipment.pin)},n.shipment.oculus.persistent=a.includes("app.main-news")}}}]}),app.directive("snipImpression",["$state","$rootScope","clickService",function(e,t,a){return{restrict:"A",link:function(r,c,g){var f=r.$eval(g.snipImpression),n=r.$eval(g.searchGuid),i=Oculus.trackSnipImpression(c,{is:f.id,isr:f.revisionId,seg:n,c:t.scope.currentScope.chapter.slug,n:t.scope.currentScope.network.slug});i.persistent=e.includes("app.main-snips"),c.on("click",function(){i.click(),a.clickSnip(i.guid,f.id)})}}}]),app.directive("snipReading",["$rootScope",function(e){return{restrict:"A",link:function(t,a,r){var c=$(a).children().map(function(){for(var d=$(this),l=d;l.length;){if(l.parent().hasClass("allow-float"))return l[0];l=(d=l).children()}return this}),g=e.scope.currentScope.network,f=e.scope.currentScope.chapter,n=t.$eval(r.snipReading);Oculus.trackSnipReading(c,{is:n.id,isr:n.revisionId,c:f.slug,n:g.slug})}}}]),app.directive("sparticleImpression",["$state","$rootScope","clickService",function(e,t,a){return{restrict:"A",link:function(r,c,g){var f=r.$eval(g.sparticleImpression),n=r.$eval(g.sparticleImpressionArticle),d=t.scope.currentScope.network,l=t.scope.currentScope.chapter,i=r.$eval(g.searchGuid),s=Oculus.trackSponsoredArticleImpression(c,{isac:f.sponsoredArticleCampaignId,isa:f.id,isar:f.revisionId,isav:f.variantId,c:l.slug,n:d.slug,seg:i,iar:n?n.revisionId:null,iav:n?n.variantId:null});s.persistent=e.includes("app.main-news"),c.on("click",function(){s.click(),a.clickSponsoredArticle(s.guid,f.sponsoredArticleCampaignId)})}}}]),app.directive("sparticleReading",["$rootScope",function(e){return{restrict:"A",link:function(t,a,r){var c=$(a).children().map(function(){for(var d=$(this),l=d;l.length;){if(l.parent().hasClass("allow-float"))return l[0];l=(d=l).children()}return this}),g=e.scope.currentScope.network,f=e.scope.currentScope.chapter,n=t.$eval(r.sparticleReading);Oculus.trackSponsoredArticleReading(c,{isa:n.id,isac:n.sponsoredArticleCampaignId,isar:n.revisionId,isav:n.variantId,c:f.slug,n:g.slug})}}}]),app.directive("specialImpression",["$state","$rootScope",function(e,t){return{restrict:"A",link:function(a,r,c){var g=a.$eval(c.specialImpression),f=t.scope.currentScope.network,n=t.scope.currentScope.chapter,d=a.$eval(c.article);Oculus.trackSpecialImpression(r,{isp:g.id,c:n.slug,n:f.slug,ia:d?d.id:null,iar:d?d.revisionId:null,iav:d?d.variantId:null}).persistent=e.includes("app.main-news")}}}]),app.directive("specialItemImpression",["$rootScope","redirectService","clickService",function(e,t,a){return{restrict:"A",link:function(r,c,g){var f=r.$eval(g.specialItemImpression),n=e.scope.currentScope.chapter,d=e.scope.currentScope.network,l=g.specialItemSpecialViewOculus?r.$eval(g.specialItemSpecialViewOculus):null;r.imageUrl=e.scope.globalSettings.blobStorageCdnUrl+"/"+e.scope.globalSettings.blobStorageContainerNameSpecial+"/"+f.values.image+"?preset=shipment",f.uri&&(r.inSameChapter=t.isSameChapterUrl(f.uri),r.uriIsDocument=-1!==f.uri.indexOf("/pdf/")||-1!==f.uri.indexOf("/document/")||-1!==f.uri.indexOf("/file/")),f.oculus=Oculus.trackSpecialItemImpression(c,{ispi:f.id,c:n.slug,n:d.slug,spg:l?l.guid:null}),f.oculusGuid=f.oculus.guid,r.clickBanner=function(){a.clickSpecialPost(f.oculusGuid,f.id),f.oculus.click()}}}}]),app.directive("survey",["$state","$rootScope","redirectService","clickService",function(e,t,a,r){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/survey.html",scope:{survey:"<",article:"<",preview:"<"},link:function(c,g,f){var n=c.survey;c.actQuestionId=n.firstQuestionId,c.$watch("survey",function(){n=c.survey,c.finalBannerId=null,n.preview=c.preview,n.questionDict={},n.questions.forEach(function(i){n.questionDict[i.id]=i});var d=t.scope.globalSettings.blobStorageCdnUrl,l=t.scope.globalSettings.blobStorageContainerNameShipment;n.bannerDict={},n.banners.forEach(function(i){i.imageUrl="",i.pin&&(i.imageUrl=d+"/"+l+"/"+i.pin+"?preset=shipment"),i.uri&&(i.inSameChapter=a.isSameChapterUrl(i.uri),i.uriIsDocument=-1!==i.uri.indexOf("/pdf/")||-1!==i.uri.indexOf("/document/")||-1!==i.uri.indexOf("/file/")),n.bannerDict[i.id]=i}),n.answers.forEach(function(i){null!==i.finalBannerId&&(i.finalBanner=n.bannerDict[i.finalBannerId]),null===n.questionDict[i.questionId].answers&&(n.questionDict[i.questionId].answers={}),n.questionDict[i.questionId].answers[i.id]=i}),c.actQuestion=n.questionDict[c.actQuestionId]}),c.processAnswer=function(d){if(d.nextQuestionId)c.actQuestionId=d.nextQuestionId,c.actQuestion=n.questionDict[c.actQuestionId];else if(c.actQuestionId=null,d.finalBannerId){c.finalBannerId=d.finalBannerId;var l=n.bannerDict[c.finalBannerId],i=$(g).find(".survey-banner-wrapper-"+c.finalBannerId);n.preview||(c.oculus=Oculus.trackSurveyBannerImpression(i,{sv:n.id,sb:c.finalBannerId,ia:c.article?c.article.id:null,iar:c.article?c.article.revisionId:null,iav:c.article?c.article.variantId:null}),c.oculus.persistent=e.includes("app.main-news"),c.oculus.impressionThreshold=0,c.clickBanner=function(){console.log("clickSurveyBanner",c.oculus.guid,c.finalBannerId,n.id),r.clickSurveyBannerPost(c.oculus.guid,l.guid),c.oculus.click()},c.oculus.push())}}}}}]),app.directive("surveyQuestion",["$state","shipmentService",function(e,t){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/surveyQuestion.html",scope:{survey:"<",article:"<",question:"<",processAnswer:"<"},link:function(a,r){a.isInView=!1,a.$watch("survey",function(){a.answerArray=Object.keys(a.question.answers).map(function(c){return a.question.answers[c]}),a.fixedAnswers=a.answerArray.filter(function(c){return!c.isFreeTextAnswer}),a.freeTextAnswers=a.answerArray.filter(function(c){return c.isFreeTextAnswer})}),a.survey.preview||(a.oculus=Oculus.trackSurveyImpression(r.children().first(),{sv:a.survey.id,sq:a.question.id,ia:a.article?a.article.id:null,iar:a.article?a.article.revisionId:null,iav:a.article?a.article.variantId:null}),a.oculus.persistent=e.includes("app.main-news"),a.survey.firstQuestionId!==a.question.id&&(a.oculus.impressionThreshold=0)),a.answerQuestion=function(c,g){if(!a.survey.preview){if(a.question.answers[c].isFreeTextAnswer){if(!g||g.match(/^\s*$/))return;a.oculus.bundle.sft=g}a.oculus.bundle.sa=c,a.oculus.ignoreImpressionThreshold=!0,a.oculus.push(),a.oculus.stop(0),t.clickSurvey(a.survey.id)}a.processAnswer(a.question.answers[c])}}}}]),app.controller("OptOutController",["$rootScope","$scope","localStorageService",function(e,t,a){t.oculusOptOut=a.oculusOptOut,t.toggleOptOut=function(){t.oculusOptOut=!t.oculusOptOut,t.oculusOptOut?a.oculusOptOut=!0:delete a.oculusOptOut}}]),app.controller("PremiumElasticReportController",["$scope","$rootScope","premiumService","scopeService","$stateParams","$timeout","$location",function(e,t,a,r,c,g,f){AmCharts.isReady=!0;var i,s,o,n=getComputedStyle(document.querySelector("body")).getPropertyValue("--color1-alpha50"),d=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],l=[];e.report=null,e.totalClickCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var b=function(y){var C=0,x=0,k=0,R=0,u=0,U=0;$.each(y,function(F,w){C+=w.desktopImpressionCount,x+=w.tabletImpressionCount,k+=w.mobileImpressionCount,R+=w.clickCount,u+=w.impressionTime,U+=w.impressionCount}),e.$apply(function(){e.totalClickCount=R,e.totalImpressionTime=u,e.totalImpressionCount=U}),d[0].value=Math.round(100/(U/C)),d[1].value=Math.round(100/(U/k)),d[2].value=Math.round(100/(U/x)),i.validateData()},p=function(){var y=moment(s.startDate).startOf("day").toDate(),C=moment(s.endDate).startOf("day").toDate(),x=e.report.filter(function(k){return k.day>=y&&k.day<=C});b(x),o.zoom(y,moment(C).add(1,"d").toDate()),e.$apply(function(){e.startDay=y,e.endDay=C})},I=function(){var y=e.premium.premiumBanners.filter(function(x){return!x.filtered}).map(function(x){return x.id}),C=e.chapters.filter(function(x){return!x.filtered}).map(function(x){return x.id});e.filterDisabled=!0,a.getPremiumReport(e.premium.pin,{premiumId:e.premium.id,premiumbannerIds:y,chapterIds:C}).then(function(x){x.forEach(function(k){k.day=moment(k.day.replace("Z","")).toDate()}),e.report=x,g(function(){(function(y){l.length=0,$.each(y,function(C,x){l.push(x)}),s.validateData(),o.validateData()})(x),p(),e.filterDisabled=!1},50)})};e.filterChapter=function(y){y.filtered=!y.filtered,I()},e.chapterFilterDisabled=function(y){return e.filterDisabled||1===e.chapters.filter(function(C){return!C.filtered}).length&&!y.filtered},e.filterBanner=function(y){e.filterDisabled||1===e.premium.premiumBanners.filter(function(C){return!C.filtered}).length&&!y.filtered||(y.filtered=!y.filtered,I())},a.getPremiumByPin(c.pin).then(function(y){e.premium=y,a.getPremiumReport(y.pin,{premiumId:y.id}).then(function(C){C.forEach(function(k){k.day=moment(k.day.replace("Z","")).toDate()}),e.report=C,e.startDay=C[0].day,e.endDay=C[C.length-1].day;var x=[];$.each(y.chapterSlugs,function(k,R){x.push(r.getChapter(R))}),x=x.filter(function(k){return 2===k.managementState}),e.chapters=x,$.each(C,function(k,R){l.push(R)}),g(function(){i=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:n,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(s=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:l,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){p()}),o=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:n,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"clickCount",toField:"clickCount"}],dataProvider:l,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clickCount",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),b(C)})},function(){e.error=!0})})}]),app.controller("premiumReportController",["$scope","$rootScope","premiumService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,r,c,g,f,n){AmCharts.isReady=!0;var d=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getPremiumByPin(c.pin).then(function(o){e.premium=o,a.getReportPremiumBannerCalendar(o.pin).then(function(b){b.forEach(function(p){p.chapter=r.getChapter(p.chapterSlug),p.reports.forEach(function(h){h.calendar.forEach(function(I){I.start=moment(I.start.replace("Z","")).toDate(),I.end=moment(I.end.replace("Z","")).toDate()})})}),o.report=b,f(function(){var p,h,I,y,C,x=new Set;$.each(b,function(w,S){S.active=!0,x.add(S.chapter.name)}),b.uniqueChapters=[],x.forEach(function(w){b.uniqueChapters.push(w)}),$.each(o.premiumBanners,function(w,S){S.reportActive=!0});var k=[],R=function(){k.length=0,$.each(b[0].reports[0].calendar,function(w,S){k.push({start:S.start,end:S.end,impressions:0,viewableImpressions:0,viewableImpressionTimeSeconds:0,desktopViewableImpressions:0,mobileViewableImpressions:0,tabletViewableImpressions:0,clicks:0,maleViewableImpressions:0,femaleViewableImpressions:0,age1617MaleViewableImpressions:0,age1824MaleViewableImpressions:0,age2534MaleViewableImpressions:0,age3544MaleViewableImpressions:0,age4554MaleViewableImpressions:0,age55MaleViewableImpressions:0,age1617FemaleViewableImpressions:0,age1824FemaleViewableImpressions:0,age2534FemaleViewableImpressions:0,age3544FemaleViewableImpressions:0,age4554FemaleViewableImpressions:0,age55FemaleViewableImpressions:0})}),$.each(b,function(w,S){S.active&&(b[w-1]&&2===b[w-1].chapter.managementState&&2===S.chapter.managementState&&b[w-1].chapter.name!==S.chapter.name&&(b.multiChapterShipment=!0),$.each(S.reports,function(v,A){if(o.premiumBanners[v].reportActive){var T=A.premiumBanner.pin;$.each(A.calendar,function(D,m){m.pin=T,k[D].impressions+=m.impressions,k[D].viewableImpressions+=m.viewableImpressions,k[D].viewableImpressionTimeSeconds+=m.viewableImpressionTimeSeconds,k[D].desktopViewableImpressions+=m.desktopViewableImpressions,k[D].mobileViewableImpressions+=m.mobileViewableImpressions,k[D].tabletViewableImpressions+=m.tabletViewableImpressions,k[D].clicks+=m.clicks,k[D].maleViewableImpressions+=m.maleViewableImpressions,k[D].femaleViewableImpressions+=m.femaleViewableImpressions,k[D].age1617MaleViewableImpressions+=m.age1617MaleViewableImpressions,k[D].age1824MaleViewableImpressions+=m.age1824MaleViewableImpressions,k[D].age2534MaleViewableImpressions+=m.age2534MaleViewableImpressions,k[D].age3544MaleViewableImpressions+=m.age3544MaleViewableImpressions,k[D].age4554MaleViewableImpressions+=m.age4554MaleViewableImpressions,k[D].age55MaleViewableImpressions+=m.age55MaleViewableImpressions,k[D].age1617FemaleViewableImpressions+=m.age1617FemaleViewableImpressions,k[D].age1824FemaleViewableImpressions+=m.age1824FemaleViewableImpressions,k[D].age2534FemaleViewableImpressions+=m.age2534FemaleViewableImpressions,k[D].age3544FemaleViewableImpressions+=m.age3544FemaleViewableImpressions,k[D].age4554FemaleViewableImpressions+=m.age4554FemaleViewableImpressions,k[D].age55FemaleViewableImpressions+=m.age55FemaleViewableImpressions})}}))}),h.validateData(),p.validateData()},u=b.summary={};p=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:k,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),h=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:d,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:k,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"viewableImpressions",type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),I=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:l,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),y=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:d,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(w,S){return-1*w.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(w){return w<0?-1*w+"":w+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),C=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:s,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:d,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}});var F=function(){var w=moment(p.startDate).startOf("day").toDate(),S=moment(p.endDate).startOf("day").add(-1,"d").toDate();(function(w,S){u.maleViewableImpressions=0,u.femaleViewableImpressions=0,u.viewableImpressions=0,u.viewableImpressionTimeSeconds=0,u.impressions=0,u.clicks=0,u.desktopViewableImpressions=0,u.mobileViewableImpressions=0,u.tabletViewableImpressions=0,u.age1617MaleViewableImpressions=0,u.age1824MaleViewableImpressions=0,u.age2534MaleViewableImpressions=0,u.age3544MaleViewableImpressions=0,u.age4554MaleViewableImpressions=0,u.age55MaleViewableImpressions=0,u.age1617FemaleViewableImpressions=0,u.age1824FemaleViewableImpressions=0,u.age2534FemaleViewableImpressions=0,u.age3544FemaleViewableImpressions=0,u.age4554FemaleViewableImpressions=0,u.age55FemaleViewableImpressions=0;var v=0,A=0,T=0,D=0,m=0,M=0,E=0,P=0,q=0,N=0,O=0,_=0,V=0,L=0,z=0;u.start=w,u.end=S,$.each(k,function(J,H){var Y=new Date(H.start);Y<w||Y>S||(u.maleViewableImpressions+=H.maleViewableImpressions,u.femaleViewableImpressions+=H.femaleViewableImpressions,u.viewableImpressions+=H.viewableImpressions,u.viewableImpressionTimeSeconds+=H.viewableImpressionTimeSeconds,u.impressions+=H.impressions,u.clicks+=H.clicks,v+=H.desktopViewableImpressions,A+=H.mobileViewableImpressions,T+=H.tabletViewableImpressions,D+=H.age1617MaleViewableImpressions,m+=H.age1824MaleViewableImpressions,M+=H.age2534MaleViewableImpressions,E+=H.age3544MaleViewableImpressions,P+=H.age4554MaleViewableImpressions,q+=H.age55MaleViewableImpressions,N+=H.age1617FemaleViewableImpressions,O+=H.age1824FemaleViewableImpressions,_+=H.age2534FemaleViewableImpressions,V+=H.age3544FemaleViewableImpressions,L+=H.age4554FemaleViewableImpressions,z+=H.age55FemaleViewableImpressions)}),u.desktopViewableImpressions=Math.round(100/(u.viewableImpressions/v)),u.mobileViewableImpressions=Math.round(100/(u.viewableImpressions/A)),u.tabletViewableImpressions=Math.round(100/(u.viewableImpressions/T));var G=u.viewableImpressions-(D+m+M+E+P+q+N+O+_+V+L+z);G>100&&(D+=G*t.scope.globalSettings.reportAverageAge1617Male,m+=G*t.scope.globalSettings.reportAverageAge1824Male,M+=G*t.scope.globalSettings.reportAverageAge2534Male,E+=G*t.scope.globalSettings.reportAverageAge3544Male,P+=G*t.scope.globalSettings.reportAverageAge4554Male,q+=G*t.scope.globalSettings.reportAverageAge55Male,N+=G*t.scope.globalSettings.reportAverageAge1617Female,O+=G*t.scope.globalSettings.reportAverageAge1824Female,_+=G*t.scope.globalSettings.reportAverageAge2534Female,V+=G*t.scope.globalSettings.reportAverageAge3544Female,L+=G*t.scope.globalSettings.reportAverageAge4554Female,z+=G*t.scope.globalSettings.reportAverageAge55Female),u.age1617MaleViewableImpressions=Math.round(100/(u.viewableImpressions/D)),u.age1824MaleViewableImpressions=Math.round(100/(u.viewableImpressions/m)),u.age2534MaleViewableImpressions=Math.round(100/(u.viewableImpressions/M)),u.age3544MaleViewableImpressions=Math.round(100/(u.viewableImpressions/E)),u.age4554MaleViewableImpressions=Math.round(100/(u.viewableImpressions/P)),u.age55MaleViewableImpressions=Math.round(100/(u.viewableImpressions/q)),u.age1617FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/N)),u.age1824FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/O)),u.age2534FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/_)),u.age3544FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/V)),u.age4554FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/L)),u.age55FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/z)),u.maleViewableImpressions=Math.round(u.maleViewableImpressions),u.femaleViewableImpressions=Math.round(u.femaleViewableImpressions),l[0].value=u.femaleViewableImpressions,l[1].value=u.maleViewableImpressions,i[0].male=Math.round(-1*u.age1617MaleViewableImpressions),i[1].male=Math.round(-1*u.age1824MaleViewableImpressions),i[2].male=Math.round(-1*u.age2534MaleViewableImpressions),i[3].male=Math.round(-1*u.age3544MaleViewableImpressions),i[4].male=Math.round(-1*u.age4554MaleViewableImpressions),i[5].male=Math.round(-1*u.age55MaleViewableImpressions),i[0].female=Math.round(u.age1617FemaleViewableImpressions),i[1].female=Math.round(u.age1824FemaleViewableImpressions),i[2].female=Math.round(u.age2534FemaleViewableImpressions),i[3].female=Math.round(u.age3544FemaleViewableImpressions),i[4].female=Math.round(u.age4554FemaleViewableImpressions),i[5].female=Math.round(u.age55FemaleViewableImpressions),s[0].value=u.desktopViewableImpressions,s[1].value=u.mobileViewableImpressions,s[2].value=u.tabletViewableImpressions,I.validateData(),y.validateData(),C.validateData(),e.$apply()})(w,S),h.zoom(w,moment(S).add(1,"d").toDate())};p.addListener("zoomed",function(w){F()}),e.toggleReport=function(w){$.each(o.premiumBanners,function(S,v){v.pin===w.pin&&(v.reportActive=!v.reportActive)}),f(function(){R(),F()},50)},e.toggleChapter=function(w){$.each(b,function(S,v){v.chapter.name===w&&(v.active=!v.active)}),f(function(){R(),F()},50)},R(),h.validateData(),p.validateNow(),p.setDefaultPeriod()},function(){e.error=!0})})},function(){n.path("/")});var l=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:d,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],i=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],s=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.factory("premiumService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,r,c,g){var f=[],l=function(){var o=t.defer();return f.length>0?o.resolve(f):e.get(scope.apiEndpoint+"premiums").then(function(b){angular.copy(b.data,f),o.resolve(f)},function(){o.reject()}),o.promise};function i(o){var b=null;return $.each(f,function(p,h){if(h.pin===o)return b=h,!1}),b}return{premiums:f,getPremiums:l,getReportPremiumBannerCalendar:function(o){var b=t.defer();return e.get(scope.apiEndpoint+"premiums/"+o+"/ReportPremiumBannerCalendar").then(function(p){b.resolve(p.data)},function(){b.reject()}),b.promise},getPremiumReport:function(o,b){var p=t.defer();return e.post(scope.apiEndpoint+"premiums/"+o+"/report",b).then(function(h){p.resolve(h.data)},function(){p.reject()}),p.promise},getPremiumByPin:function(o){var b=t.defer();if(f.length>0){var p=i(o);p?b.resolve(p):e.get(scope.apiEndpoint+"/premiums"+o).then(function(h){b.resolve(h.data)},function(){b.reject()})}else l().then(function(){var h=i(o);h?b.resolve(h):e.get(scope.apiEndpoint+"premiums/"+o).then(function(I){b.resolve(I.data)},function(){b.reject()})},function(){b.reject()});return b.promise}}}]),app.controller("AddMetaInfoDialogController",["$scope","onSuccessfulCallback",function(e,t){var a=this;function r(c,g){this.tagValue=c,this.displayName=g}e.availableMetaTags=[new r("person","Personen"),new r("location","Stadt"),new r("event","Veranstaltung")],this.cancel=function(){e.$dismiss()},this.addMetaInfo=function(c){c&&e.selectedMetaTag.tagValue&&(t(e.selectedMetaTag.tagValue),a.cancel())}}]),app.controller("CreateCallToActionDialogController",["$scope","onSuccessfulCallback",function(e,t){var a=this;this.cancel=function(){e.$dismiss()},this.createCallToAction=function(r){r&&(t({href:e.linkUrl,description:e.linkDescription}),a.cancel())}}]),app.controller("CreateEditorCommentDialogController",["$scope","editorCommentCallback","sourceService","messageHolder",function(e,t,a,r){var c=this;e.messageText=null,this.cancel=function(){e.$dismiss()},this.saveComment=function(){a.save({messageText:e.messageText,holderId:r.id,parentId:null}).then(function(g){t(g.guid),c.cancel()})}}]),app.controller("CreateLinkDialogController",["$scope","onSuccessfulCallback",function(e,t){var a=this;this.cancel=function(){e.$dismiss()},this.createLink=function(r){r&&(t({href:e.linkUrl,title:""}),a.cancel())}}]),app.service("editorAssetsService",["$filter","$sce","$q","workflowService","logoService",function(e,t,a,r,c){var g=this;function f(l){this.name=l.firstName+" "+l.lastName,this.profileURL=l.avatarImageUrl||"",this.avatarURL=l.avatarImageUrl+"?preset=article-detail-badge"}function n(l){this.guid=l.guid||"",this.imgContent=l.imgContent||"",this.textContent=l.textContent||"",this.videoThumbnail=l.videoThumbnail||"",this.type=l.type||0,this.author=l.author||new f}return this.url=scope.apiEndpoint+"editorAssets",this.getImageContent=function(l){var i=null;return l.assetImage&&(i=l.assetImage.assetImageUrl+"?maxheight=50"),l.assetArticle&&(i=l.assetArticle.coverAssetImageUrl.includes("00000000-0000-0000-0000-000000000000")?c.hasChapterLogo()?c.getChapterLogoUrl()+"&maxheight=50":c.getNetworkLogoUrl()+"&maxheight=50":l.assetArticle.coverAssetImageUrl+"?maxheight=50"),l.assetStaticArticle&&(i=!l.assetStaticArticle.coverAssetImageUrl||l.assetStaticArticle.coverAssetImageUrl.includes("00000000-0000-0000-0000-000000000000")?c.hasChapterLogo()?c.getChapterLogoUrl()+"&maxheight=50":c.getNetworkLogoUrl()+"&maxheight=50":l.assetStaticArticle.coverAssetImageUrl+"?maxheight=50"),l.assetFile&&(i=l.assetFile.fileName),i},this.getTextContent=function(l){var i=null;return l.assetText&&(i=l.assetText.text),l.assetFile&&(i=l.assetFile.text),i},this.getAssetType=function(l){var i=null;return l.assetImage&&(i=l.assetImage.type),l.assetText&&(i=l.assetText.type),l.assetArticle&&(i=l.assetArticle.type),l.assetFile&&(i=l.assetFile.type),l.assetStaticArticle&&(i=l.assetStaticArticle.type),i},this.getUser=function(l){var i=null;return l.assetImage&&(i=l.assetImage.user),l.assetText&&(i=l.assetText.user),l.assetArticle&&(i=l.assetArticle.user),l.assetFile&&(i=l.assetFile.user),l.assetStaticArticle&&(i=l.assetStaticArticle.user),i},this.getThumbnail=function(l){var i=null;return l.assetText&&(i=l.thumbnailUrl),i},{getAsset:function(l,i){var o=i.filter(function(C){return C.guid===l})[0];if(o.assetText){var b=null,p=o.assetText.type;if(5===p)b=e("youtubeImage")(o.assetText.text);else if(6===p)b=e("facebookImage")(o.assetText.text);else if(7===p)b=e("vimeoImage")(o.assetText.text);else if(13===p)b=e("apicodoMediaServiceImage")(o.assetText.text);else if(14===p){var h=a.defer();return r.getWorkflowTemplate(o.assetText.text).then(function(C){if(o){var x=new n({guid:o.guid,imgContent:C.name,textContent:C.description,type:14,author:new f(g.getUser(o))});h.resolve(x)}else h.resolve({guid:l})},function(){h.resolve({guid:l})}),h.promise}if(b){var I=t.valueOf(b);o.thumbnailUrl=I}}return new Promise(function(C,x){C(o?new n({guid:o.guid,imgContent:g.getImageContent(o),textContent:g.getTextContent(o),videoThumbnail:g.getThumbnail(o),type:g.getAssetType(o),author:new f(g.getUser(o))}):{guid:l})})}}}]),app.component("editorCommentItem",{templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/editorCommentItem.html",bindings:{authorName:"@",messageText:"@",messageDate:"@",profileImage:"@",enableDelete:"<",onDelete:"&"}}),app.service("editorCommentService",["$http","$q",function(e,t){var a=this;return this.url=scope.apiEndpoint+"editorCommentsArticle",{save:function(f){var n=t.defer();return e.put(a.url,f).then(function(d){n.resolve(d.data)},function(d){n.reject(d)}),n.promise},getChain:function(f){var n=t.defer();return e.get(a.url+"/chain/"+f).then(function(d){n.resolve(d.data)},function(d){n.reject(d)}),n.promise},deleteComment:function(f){var n=t.defer();return e.delete(a.url,{data:f,headers:{"Content-type":"application/json;charset=utf-8"}}).then(function(d){n.resolve(d.data)},function(d){n.reject(d)}),n.promise}}}]),app.service("editorCommentSponsoredArticleService",["$http","$q",function(e,t){var a=this;return this.url=scope.apiEndpoint+"editorCommentsSponsoredArticle",{save:function(f){var n=t.defer();return e.put(a.url,f).then(function(d){n.resolve(d.data)},function(d){n.reject(d)}),n.promise},getChain:function(f){var n=t.defer();return e.get(a.url+"/chain/"+f).then(function(d){n.resolve(d.data)},function(d){n.reject(d)}),n.promise},deleteComment:function(f){var n=t.defer();return e.delete(a.url,{data:f,headers:{"Content-type":"application/json;charset=utf-8"}}).then(function(d){n.resolve(d.data)},function(d){n.reject(d)}),n.promise}}}]),app.service("editorCommentStaticArticleService",["$http","$q",function(e,t){var a=this;return this.url=scope.apiEndpoint+"editorCommentsStaticArticle",{save:function(f){var n=t.defer();return e.put(a.url,f).then(function(d){n.resolve(d.data)},function(d){n.reject(d)}),n.promise},getChain:function(f){var n=t.defer();return e.get(a.url+"/chain/"+f).then(function(d){n.resolve(d.data)},function(d){n.reject(d)}),n.promise},deleteComment:function(f){var n=t.defer();return e.delete(a.url,{data:f,headers:{"Content-type":"application/json;charset=utf-8"}}).then(function(d){n.resolve(d.data)},function(d){n.reject(d)}),n.promise}}}]),app.controller("ListEditorCommentDialogController",["$scope","onDeletedCallback","onAddedCallback","messageHolder","chainComments","profileService","sourceService",function(e,t,a,r,c,g,f){var n=this;function d(s){this.guid=s.guid,this.contentText=s.contentText,this.displayMessages=[]}e.messageText=null,e.master={holderId:r.id},e.newComment=window.angular.copy(e.master),e.availableParentMessages=[],e.selectedParentMessage=null,this.close=function(){e.$dismiss()},this.saveChildComment=function(s){s.parentId=e.selectedParentMessage.guid,f.save(s).then(function(o){e.selectedParentMessage.displayMessages.push(o),e.availableParentMessages.filter(function(b){return b.guid===e.selectedParentMessage.guid})[0].displayMessages.push(o),n.reset()})},this.deleteComment=function(s){f.deleteComment({holderId:r.id,deleteMessageGuid:s,parentGuid:e.selectedParentMessage.guid}).then(function(b){e.selectedParentMessage.displayMessages=b,t(e.selectedParentMessage.guid,s),e.selectedParentMessage.guid===s&&n.close(),n.reset()})},this.reset=function(){e.newComment=window.angular.copy(e.master),e.deleteComment=null},c.chains.forEach(function(s){var o=new d({guid:s.id,contentText:c.textContents[s.id]});f.getChain(o.guid).then(function(b){o.displayMessages=b,e.availableParentMessages.push(o),e.selectedParentMessage||(e.selectedParentMessage=angular.copy(e.availableParentMessages[0]))})}),g.getProfile().then(function(s){e.myProfile=s})}]),app.service("proseMirrorEditorService",["$window","aiService","editorService",function(e,t,a){var r=this;return this.connection=null,{init:function(i){i||(i={docId:"unknown"}),r.connection=e.initializeEditor({docID:i.docID,assetDlgFactory:i.assetDlgFactory,commentCreationDlgFactory:i.commentCreationDlgFactory,createLinkFactory:i.createLinkFactory,callToActionDlgFactory:i.callToActionDlgFactory,commentMgmtDlgFactory:i.commentMgmtDlgFactory,metadataCreationDlgFactory:i.metadataCreationDlgFactory,initialDocument:i.initialDocument,initialAssetReferences:i.initialAssetReferences,assetResolver:i.assetResolver,onNewStateFactory:i.onNewStateFactory,transformHtmlFactory:function(s){var o=$("<div>").html(s).find("img").remove().end().html();return $("<div>").html(o).find("br").remove().end().html().replace(/<\/word><word/gi,"</word><span>&nbsp;</span><word").replace(/&nbsp\;/gi," ")},onLoadTransactionCallback:i.onLoadTransactionCallback||null,languageCode:i.languageCode,aiService:t,editorService:a}),e.editorConnection=r.connection},getDocument:function(){try{return r.connection.exportModel()}catch(i){console.error("getting JSON Document threw an error",i)}},setDocument:function(i){try{r.connection.importModel(i,!0)}catch(s){console.error("loading error with proseMirror",s)}},getHtmlDocument:function(){return r.connection.getDbDoc()},setFocus:function(){r.connection.view.focus()},closeConnection:function(){r.connection.report.success(),r.connection.request.abort()}}}]),app.factory("publishService",["$http","$q","$window","spellingService",function(e,t,a,r){var g=150;return this.checkWords=function(s){if(!s)return 0;var o=r.countWords(s);return o>=g&&o<=750},this.checkSentences=function(s){return s?r.countSentences(s)>=8:0},this.checkParagraphs=function(s){return s?r.countParagraphs(s)>=4:0},this.checkGoogleNewsRecommendation=function(s){return(function(s){if(!s)return 0;var o=r.countParagraphs(s);return o>=4?1:o/4}(s)+function(s){if(!s)return 0;var o=r.countSentences(s);return o>=8?1:o/8}(s)+function(s){if(!s)return 0;var o=r.countWords(s);return o>=g&&o<=750?1:o<g?o/g:750/o}(s))/3},{checkWords:this.checkWords,checkSentences:this.checkSentences,checkParagraphs:this.checkParagraphs,checkGoogleNewsRecommendation:this.checkGoogleNewsRecommendation}}]),app.service("spellingService",[function(){var e=function(c){return"<div>"+c+"</div>"};return{countWords:function(c){var g=e(c);return $(g).find("p:not(:empty)").text().split(/\s+/).filter(function(f){return f}).length},countParagraphs:function(c){var g=e(c);return $(g).find("p:not(:empty)").length},countSentences:function(c){var g=e(c);return $(g).find("p:not(:empty)").text().split(/[!.?]/g).length}}}]),app.service("resourceService",["$http","$q",function(e,t){return{GetResources:function(){var r=t.defer();return e.get(scope.apiEndpoint+"resources").then(function(c){r.resolve(c.data)},function(){r.reject()}),r.promise}}}]),app.controller("RootController",["$scope","$state","$rootScope","$interpolate","logoService","pageMetaInfoService",function(e,t,a,r,c,g){e.profile=a.profile,e.shipmentSnipDistribution=4,e.cookieManager=0,a.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&!navigator.userAgent.includes("Merkurist_IAB")&&!navigator.userAgent.includes("Apicodo_IAB")&&(e.cookieManager=a.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),e.showSnipSlide=a.showSnipSlide,e.getChapterLogoUrl=function(){return c.getChapterLogoUrl()},e.getChapterLogoDarkUrl=function(){return c.getChapterLogoDarkUrl()},e.chapterGroupChoose=function(f){return r(scope.currentScope.network.resources.web_root_snip_chapterGroupChoose)({chapterGroupName:f.toUpperCase()})},a.$on("$stateChangeSuccess",function(){g.run(t.$current.name)})}]),app.component("rootFooter",{templateUrl:"/ClientApp/src/legacy-app/root/footer/rootFooterComponent.html",bindings:{inputParam:"<"},controller:["$scope","$rootScope",function(e,t){e.year=t.scope.year,e.dataPrivacy=t.scope.currentChapter.partner.settings.dataPrivacyUrl,e.tos=t.scope.currentScope.network.settings.configurations.enableTOS,e.accessibility=t.scope.currentScope.network.settings.configurations.accessibility,e.cookieManager=0,t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&!navigator.userAgent.includes("Merkurist_IAB")&&!navigator.userAgent.includes("Apicodo_IAB")&&(e.cookieManager=t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager)}]}),app.component("rootLogin",{templateUrl:"/ClientApp/src/legacy-app/root/login/rootLoginComponent.html",controller:"rootLoginComponentController",bindings:{inputParam:"<"}}),app.controller("rootLoginComponentController",["$scope","$rootScope","authService","$location","$timeout","$state","instagramService","$uibModal",function(e,t,a,r,c,g,f,n){e.inputType="password",e.showInstagram=f.isAvailable(),e.emailValidationState=0,e.emailValidationStates={none:0,inProgress:1,failure:2,success:3},e.profile=t.scope.profile,!e.profile.isRegistered&&r.search().token?(e.emailValidationState=e.emailValidationStates.inProgress,a.validateEmail(r.search().token).then(function(){c(function(){e.emailValidationState=e.emailValidationStates.success},2e3)},function(){c(function(){e.emailValidationState=e.emailValidationStates.failure},2e3)})):e.profile.isRegistered&&r.search().token?r.path("/settings").replace():e.profile.isRegistered&&g.go("app.main-news");var d={userName:"",password:""};e.loginData=angular.copy(d),e.loginError=null,t.$on("authenticationStateChanged",function(){e.loginError=null,angular.copy(d,e.loginData)}),e.login=function(l){l&&a.login(e.loginData).then(function(){e.loginForm.$setPristine(),r.search().closedToken&&scope.currentChapter.closed?g.go("app.closedChapter",{action:"Get",token:r.search().closedToken}):g.go("app.main-news")},function(i){i.data?e.loginError=i.data:i.error&&"string"==typeof i.error&&""!==i.error&&(e.loginError=i.error),e.loginError||(e.loginError="Unknown error")})},e.saml2ModulePaths=saml2ModulePathSplitted=[],t.scope.network.settings.saml2ModulePath&&(saml2ModulePathSplitted=t.scope.network.settings.saml2ModulePath.split(","),saml2ModulePathSplitted.length>0&&saml2ModulePathSplitted.forEach(l=>{e.saml2ModulePaths.push(l.trim())})),e.loginSaml2=function(l){if(e.saml2ModulePaths.indexOf(l)>=0){var i="/authentication/saml2?authenticationType="+l+"&referrerUri="+encodeURIComponent(window.location.origin+scope.currentScope.appRoute+"login/saml2");if(t.app){var s="location=no,toolbarposition=top,toolbartranslucent=no,hidenavigationbuttons=yes";"android"===cordova.platformId&&(s="location=yes,hideurlbar=yes,zoom=no,hidenavigationbuttons=yes,closebuttoncaption="+scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"));var o=cordova.InAppBrowser.open(i,"_blank",s);o.addEventListener("loadstart",function(b){b.url.endsWith("login/saml2")&&(o.close(),g.go("app.loginSaml2"))})}else window.location.href=i}},e.register=function(){g.go("app.register",{closedToken:r.search().closedToken})},e.facebookLogin=function(){a.facebookLogin(t.app).then(function(l){l.token?n.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return function(){g.go("app.main-news"),document.location.reload()}},facebookSignUpData:function(){return l},login:!1}}):r.path("/").search("")})},e.instagramLogin=function(){f.getGrant(t.app)},e.togglePasswordVisibility=function(){e.inputType="password"==e.inputType?"text":"password"}}]),app.component("rootMenu",{templateUrl:"/ClientApp/src/legacy-app/root/menu/rootMenuComponent.html",controller:"rootMenuComponentController",bindings:{inputParam:"<"}}),app.controller("rootMenuComponentController",["$scope","$rootScope","$state","specialService","authService","localStorageService",function(e,t,a,r,c,g){e.isAuthorCollapsed=e.defaultCollapsed,e.profile=t.scope.profile,e.containers=t.scope.currentScope.chapter.containers,e.networkContainers=t.scope.currentScope.network.containers.sort((d,l)=>d.position-l.position),e.containers.sort((d,l)=>d.position-l.position),e.activeSpecials||r.getActiveSpecials().then(function(d){e.activeSpecials=d}),e.toggleAuthorContainer=function(){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isAuthorCollapsed=!e.isAuthorCollapsed)},e.toggleAdvertiserContainer=function(){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isAdvertiserCollapsed=!e.isAdvertiserCollapsed)},e.toggleSpecialsContainer=function(){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isSpecialsCollapsed=!e.isSpecialsCollapsed)},e.toggleSocialContainer=function(){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isSocialCollapsed=!e.isSocialCollapsed)},e.toggleChapterContainer=function(d){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isChapterCollapsed[d]=!e.isChapterCollapsed[d])},e.toggleNetworkContainer=function(d){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isNetworkCollapsed[d]=!e.isNetworkCollapsed[d])},e.defaultCollapsed=2!==t.scope.currentChapter.settings.featureMenuContainerCollapsable,e.isAuthorCollapsed=e.defaultCollapsed,e.isAdvertiserCollapsed=e.defaultCollapsed,e.isSpecialsCollapsed=e.defaultCollapsed,e.isSocialCollapsed=e.defaultCollapsed,e.isChapterCollapsed=[];for(var f=0;f<scope.currentScope.chapter.containers.length;f++)e.isChapterCollapsed[f]=e.defaultCollapsed;e.isNetworkCollapsed=[];for(var n=0;n<scope.currentScope.network.containers.length;n++)e.isNetworkCollapsed[n]=e.defaultCollapsed;e.privateLogOut=function(){const d=t.scope.currentChapter.closed;c.logout().then(function(){Oculus.navigate(""),d?window.location.href="/"!==t.scope.currentChapter.path?t.scope.currentChapter.path+"/login":"/login":(null!==t.scope.currentScope.network.settings.sharedAppLogoutUrl&&(window.location.href=t.scope.currentScope.network.settings.sharedAppLogoutUrl),t.app?window.location.href="/":a.go("app.main-login"))})},e.logout=function(){g.oculusOptOut?e.privateLogOut():Oculus.push(!1,e.privateLogOut)}}]),app.component("rootNews",{templateUrl:"/ClientApp/src/legacy-app/root/news/rootNewsComponent.html",controller:"rootNewsCompomentController",bindings:{inputParam:"<"}}),app.controller("rootNewsCompomentController",["$scope","$rootScope","$state","articleService","snipService","profileService","$interpolate","$timeout","shipmentService","$interval","$filter","$q","logoService",function(e,t,a,r,c,g,f,n,d,l,i,s,o){function I(y,C,x){(x||!e.articleListDisplayables||!e.articleListDisplayableSnips)&&s.all([g.getProfile(),y(),C()]).then(function(k){var R=k[0],u=k[1],U=k[2];e.dataLoading=!1;var F=i("includeMyUnpublishedSnips");e.articleListDisplayableSnips=U,e.articleListDisplayables=function h(y,C){for(var u=[],U=y.slice(),F=C.slice(),w=1;F.length>0||U.length>0&&w<7;){for(var S=0;S<4;S++){var v=F.shift();v&&u.push(v)}for(var A=0;A<3;A++){var T=U.shift();T&&u.push(T)}w++}return u}(F(U,R.guid),u),e.alreadyLoadedArticleIds=e.articleListDisplayables.filter(function(w){return 1===w.articleListDisplayableType}).map(function(w){return w.id}),e.alreadyLoadedSnipIds=e.articleListDisplayables.filter(function(w){return 4===w.articleListDisplayableType}).map(function(w){return w.id}),e.amountOfArticles=e.articleListDisplayables.filter(function(w){return 4!==w.articleListDisplayableType}).length,e.articleListDisplayablesMore=[],n(function(){r.getArticleIds().then(function(w){e.articleListIds=w,e.loadMoreAvailable=e.articleListDisplayables&&e.alreadyLoadedArticleIds.length<e.articleListIds.length}),e.snipListIds=e.articleListDisplayableSnips.map(function(w){return w.id}),e.loadMorePending=!1,t.$emit("lazyImg:refresh"),n(function(){n(function(){d.resolve(Math.round(U.length/e.shipmentSnipDistribution))})})})}).catch(function(k){console.error("ERROR LOADING ARTICLES()",k)})}e.shipmentSnipDistribution=4,e.cookieManager=0,e.dataLoading=!0,e.loadMorePending=!1,t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&!navigator.userAgent.includes("Merkurist_IAB")&&!navigator.userAgent.includes("Apicodo_IAB")&&(e.cookieManager=t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),e.getChapterLogoUrl=function(){return o.getChapterLogoUrl()},e.getChapterLogoDarkUrl=function(){return o.getChapterLogoDarkUrl()},e.$on("apicodo.translate",function(y,C){var x=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,k=t.scope.profile;if(1==x){var R=t.scope.network.settings.languagePack.split("-")[0];null!=k.activeUserLanguage?.vendorLanguageCode&&R!=k.activeUserLanguage?.vendorLanguageCode&&(C=k.activeUserLanguage?.vendorLanguageCode)}a.is("app.main-news")&&(null===C?I(r.getMainArticles,c.getSnips,!0):(I(function(){return r.getTranslatedArticles(C)},function(){return c.getTranslatedSnipList(C)},!0),g.updateFavoriteLanguage(C).then(function(){t.profile.favoriteLanguage=C})))}),"Redesign2024"!==t.scope.network.settings.configurations.contentRenderEngine&&(e.premiumShipment||d.getShipmentPremium().then(function(y){e.premiumShipment=y}),a.includes("app.main-news")?I(r.getMainArticles,c.getSnips,!0):n(function(){I(r.getMainArticles,c.getSnips)})),e.loadMore=function(){e.remainingArticleIds=e.articleListIds.filter(function(y){return e.alreadyLoadedArticleIds.indexOf(y)<0}),e.remainingSnipIds=e.snipListIds.filter(function(y){return e.alreadyLoadedSnipIds.indexOf(y)<0}),e.amountOfArticles=e.articleListDisplayables.filter(function(y){return 4!==y.articleListDisplayableType}).length,e.loadMorePending=!0,s.all([g.getProfile(),r.getArticlesByIds(e.remainingArticleIds.splice(0,e.amountOfArticles))]).then(function(y){var C=y[0],x=y[1],k=i("includeMyUnpublishedSnips");e.dataLoading=!1;var F,w,A,T,D,m,M,u=e.articleListDisplayableSnips.filter(function(F){return e.remainingSnipIds.indexOf(F.id)>=0}),U=(F=k(u,C.guid),w=x,A=[],T=F.slice(),D=w.slice(),m=function(){for(;D.length>0;){for(var E=0;E<4;E++){var P=D.shift();P&&A.push(P)}for(var q=0;q<3;q++){var N=T.shift();N&&A.push(N)}}},M=function(){for(;T.length>0||D.length>0;){for(var E=0;E<3;E++){var P=T.shift();P&&A.push(P)}for(var q=0;q<4;q++){var N=D.shift();N&&A.push(N)}}},e.articleListDisplayablesMore.length>0?4===e.articleListDisplayablesMore[e.articleListDisplayablesMore.length-1].articleListDisplayableType?m():M():4===e.articleListDisplayables[e.articleListDisplayables.length-1].articleListDisplayableType?m():M(),A);angular.forEach(U,function(F){e.articleListDisplayablesMore.push(F),4===F.articleListDisplayableType?e.alreadyLoadedSnipIds.push(F.id):e.alreadyLoadedArticleIds.push(F.id)}),e.articleListDisplayablesMoreShow=!1,e.loadMoreAvailable=e.alreadyLoadedArticleIds.length<e.articleListIds.length,n(function(){e.loadMorePending=!1,e.dataLoading=!1,e.articleListDisplayablesMoreShow=!0})})},e.chapterGroupChoose=function(y){return f(t.scope.currentScope.network.resources.web_root_snip_chapterGroupChoose)({chapterGroupName:y.toUpperCase()})}}]),app.component("rootNotifications",{templateUrl:"/ClientApp/src/legacy-app/root/notifications/rootNotificationsComponent.html",bindings:{inputParam:"<"},controller:"rootNotificationsComponentController"}),app.controller("rootNotificationsComponentController",["$scope","$rootScope","metaService","notificationService","$interval","redirectService","$state",function(e,t,a,r,c,g,f){e.message="Notifications message works!",e.notifications=[],e.notificationsLoading=!0,e.clickNotification=function(n){r.click(n),n.openSeparate?window.open(n.uri):g.redirectNotificationUrl(n.uri)},"Redesign2024"!=scope.currentScope.network?.settings?.configurations?.contentRenderEngine&&a.push("Benachrichtigung","Benachrichtigung"),notificationUpdateInterval=c(function(){f.is("app.main-notifications")&&r.getNotifications().then(function(n){e.notifications=n,e.notificationsLoading=!1})},3e4),r.getNotifications().then(function(n){e.notifications=n,e.notificationsLoading=!1}),r.updateUnseenCount()}]),app.component("rootSnips",{templateUrl:"/ClientApp/src/legacy-app/root/snips/rootSnipsComponent.html",controller:"rootSnipsComponentController",bindings:{inputParam:"<"}}),app.controller("rootSnipsComponentController",["$scope","$rootScope","snipService","$interpolate","$filter","profileService",function(e,t,a,r,c,g){e.doWork=!1,e.snip={},e.snips=[],e.profile=t.scope.profile,e.snipsLoading=!0,e.code=t.scope.network.settings.languagePack.split("-")[0];var f=c("includeMyUnpublishedSnips");e.snipsLoader=function(n,d){d||(d=e.code);var l=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==l){var i=t.scope.profile;null!=i.activeUserLanguage?.vendorLanguageCode&&e.code!=i.activeUserLanguage?.vendorLanguageCode&&(d=i.activeUserLanguage?.vendorLanguageCode)}d===e.code?a.getSnips().then(function(s){e.snips=[],e.snips=s,e.snipsLoading=!1,t.$broadcast("$$rebind::refreshSnips")}):a.getTranslatedSnipList(d).then(function(s){e.snips=[],e.snips=s,e.snipsLoading=!1,g.updateFavoriteLanguage(d).then(function(){t.profile.favoriteLanguage=d}),t.$broadcast("$$rebind::refreshSnips")})},e.$on("apicodo.translate",e.snipsLoader),e.submitNewSnip=function(){e.snip.chapterGroupSelections&&(e.snip.chapterSlugs=Object.keys(e.snip.chapterGroupSelections).map(function(n){return e.snip.chapterGroupSelections[n]})),e.doWork=!0,a.createSnip(e.snip).then(function(n){e.doWork=!1,e.snip={},e.snips.push(n);var d=scope.currentChapter.path+n.path;$location.path(d)},function(){e.doWork=!1,e.error=!0})},(e.code===t.scope.profile.activeUserLanguage?.vendorLanguageCode||!t.scope.profile.activeUserLanguage?.vendorLanguageCode)&&(e.loadSnips=function(){e.snips=[],a.getSnips().then(function(n){e.snips=f(n,e.profile.guid),e.snipsLoading=!1}).catch(function(n){console.error("Error loading snips:",n)})}),e.snipsLoader(null,null),e.chapterGroupChoose=function(n){return r(scope.currentScope.network.resources.web_root_snip_chapterGroupChoose)({chapterGroupName:n.toUpperCase()})}}]),app.controller("SearchController",["$scope","$rootScope","searchService","$state","$location","$uibModal","$timeout","translationService",function(e,t,a,r,c,g,f,n){if("Redesign2024"!=t.scope.currentScope.network.settings.configurations.contentRenderEngine){let o=function(p,h){e.hits=null,e.state=p||c.search().searchFilter;var I=c.search().chapterIds,y=c.search().showAll;if(I=d(I),e.hasChapterIds=I.length>0,e.hasQuery=!1,e.model.query&&(e.hasQuery=e.model.query.length>0),!h&&(h={},c.search().staffDirFilter)){var C=JSON.parse(decodeURIComponent(c.search().staffDirFilter));C&&(C.datePickers&&(angular.forEach(Object.entries(C.datePickers),function(x){if(x[1].from){var k=new Date(x[1].from);x[1].from=k}if(x[1].until){var R=new Date(x[1].until);x[1].until=R}}),C.attributeRanges=l(C.datePickers)),h=C)}if(e.filtered=I.length>0,!0===e.isStaffDirectoryEnabled||!0===e.isCalendarEnabled)switch(e.state){case"all":default:(I.length>0||e.translatedValue||y)&&(e.searching=!0,a.search(e.translatedValue,I).then(function(x){e.hits=x,e.searching=!1})),e.isStaffDirectoryEnabled&&a.getStaffDirectoryUsers(e.translatedValue,h.optionIds,h.booleanIds,h.attributeRanges,e.state).then(function(x){e.staffDirectoryUserHits=x}),e.isCalendarEnabled&&(I.length>0||e.translatedValue||y)&&a.getEvents(e.translatedValue,0,I).then(function(x){x.sort((k,R)=>new Date(k.start).getTime()-new Date(R.start).getTime()),x.forEach(k=>{k.start=new Date(k.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"}),k.end=new Date(k.end).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"}),k.date=k.start!==k.end?`${k.start} - ${k.end}`:k.start}),e.eventHits=x});break;case"staffs":e.hits=null,e.eventHits=null,e.searching=!0,a.getStaffDirectoryUsers(e.translatedValue,h.optionIds,h.booleanIds,h.attributeRanges,e.state).then(function(x){e.staffDirectoryUserHits=x,e.searching=!1});break;case"articles":(I.length>0||e.translatedValue||y)&&(e.searching=!0,a.search(e.translatedValue,I).then(function(x){e.hits=x,x||(e.hits=[]),e.searching=!1})),e.staffDirectoryUserHits=null,e.eventHits=null;break;case"events":e.hits=null,e.staffDirectoryUserHits=null,(I.length>0||e.translatedValue||y)&&(e.searching=!0,a.getEvents(e.translatedValue,0,I).then(function(x){x.sort((k,R)=>new Date(k.start).getTime()-new Date(R.start).getTime()),x.forEach(k=>{k.start=new Date(k.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"}),k.end=new Date(k.end).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"}),k.date=k.start!==k.end?`${k.start} - ${k.end}`:k.start}),e.eventHits=x,e.searching=!1}))}else I.length>0||e.translatedValue||y?(e.searching=!0,a.search(e.translatedValue,I).then(function(x){e.hits=x,e.searching=!1}),e.staffDirectoryUserHits=[],e.eventHits=[]):(e.hits=null,e.staffDirectoryUserHits=null,e.eventHits=null);c.search("q",e.model.query)},b=function(p){return new Promise(function(h,I){n.translateToOrigin([p]).then(C=>{e.translatedValue=C[0].translation,h()})})};e.hits=null,e.translatedValue=null,e.staffDirectoryUserHits=null,e.model={},e.model.query=c.search().q,e.filter=null,e.searching=!1,e.isMobileView=t.mobile,e.hasChapterGroups=scope.currentScope.chapter.chapterGroups.length>0,e.isStaffDirectoryEnabled=t.scope.currentScope.network.settings.isStaffDirectoryEnabled,e.isCalendarEnabled=t.scope.currentScope.network.settings.configurations.enableCalendar,e.state=c.search().searchFilter||"all",e.hasChapterIds=!1,e.hasQuery=!1;var d=function(p){if(angular.isArray(p))return p;var h=[];return p&&h.push(p),h},l=function(p){return Object.keys(p).map(function(h){return{attribute_Id:h,from:p[h].from,until:p[h].until,ignoreYear:p[h].ignoreYear}})};e.search=function(p,h){var I=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,y=t.scope.profile.activeUserLanguage,C=t.scope.network.settings.languagePack.split("-")[0];y||(y={vendorLanguageCode:C,nativeName:t.scope.network.getResourceOrKeyName("web_translation_use_original")}),1==I&&y.vendorLanguageCode!=C?b(e.model.query).then(function(){o(p,h)}):(e.translatedValue=e.model.query,o(p,h))},e.filtering=function(p){e.state=p.state,1==p.shouldResetSearch&&(e.translatedValue=null)},e.navigateUp=function(){f(function(){r.go("app.main-news")})},e.loadArticles=function(){var p=c.search().chapterIds;p=d(p),e.hasChapterIds=p.length>0,a.getArticles(e.translatedValue,e.hits.articles.length/10,p).then(function(h){e.hits.articles=e.hits.articles.concat(h)})},e.filterModal=function(){g.open({templateUrl:"/ClientApp/src/legacy-app/search/searchFilterDialog.html",controller:"SearchFilterDialog",size:"lg",resolve:{searchCallback:function(){return e.search}}})},e.isMobileView?$("#app-search-input-mobile").focus():$("#app-search-input-desktop").focus(),e.search()}}]),app.component("searchFilter",{bindings:{searchCallback:"<",filterStateCallback:"<"},templateUrl:"/ClientApp/src/legacy-app/search/searchFilter.html",controller:["$location","$rootScope","searchService","$scope","translationService",function(e,t,a,r,c){var g=this;g.staffDirEnabled=t.scope.currentScope.network.settings.isStaffDirectoryEnabled,g.calendarEnabled=t.scope.currentScope.network.settings.configurations.enableCalendar,g.filtered=!1,g.filterGroupsReady=!1,g.filterRubricsReady=!1,g.isMobileView=t.mobile,g.countChanges=0,g.filterInitialized=!1,g.chapterGroupNames=[],g.chapterGroups=[],g.filterTypes=[{id:0,display:t.scope.currentScope.network.resources.web_filter_mode_both||"!RES[web_filter_mode_both]"},{id:1,display:t.scope.currentScope.network.resources.web_filter_mode_articles||"!RES[web_filter_mode_articles]"}],g.staffDirEnabled&&g.filterTypes.push({id:-1,display:t.scope.currentScope.network.resources.web_filter_mode_staff_dir||"!RES[web_filter_mode_staff_dir]"}),g.calendarEnabled&&g.filterTypes.push({id:2,display:t.scope.currentScope.network.resources.web_filter_mode_events||"!RES[web_filter_mode_events]"}),r.noSelectionStyle={"background-color":"cadetblue"},g.searchFilter=e.search().searchFilter||"all",g.$onInit=function(){a.getStaffDirectoryAttributes().then(function(y){g.attributes=y});var h=e.search().searchFilter;if(h){switch(h){case"staffs":g.rangeSelection=-1;break;case"all":default:g.rangeSelection=0;break;case"articles":g.rangeSelection=1;break;case"events":g.rangeSelection=2}g.filtered=!0}if(e.search().staffDirFilter){var I=JSON.parse(decodeURIComponent(e.search().staffDirFilter));I&&(I.datePickers&&(angular.forEach(Object.entries(I.datePickers),function(y){if(y[1].from){var C=new Date(y[1].from);y[1].from=C}if(y[1].until){var x=new Date(y[1].until);y[1].until=x}}),I.attributeRanges=p(I.datePickers)),g.staffDirFilter=I,g.filtered=!0)}g.filterInitialized=!0};var f=scope.currentScope.chapter.chapterGroups,n=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==n){if(f){g.chapterGroups=f;var d=f.map(function(h){return h.name});c.translateByUserLanguageCode(d).then(h=>{h.forEach((I,y)=>{f[y].name=I.translation}),g.chapterGroupNames=f,g.filterGroupsReady=g.chapterGroupNames.length>0});var i=f.map(function(h){return h.chapters}).map((h,I)=>{var y=h.map(function(C){return C.shortName});return c.translateByUserLanguageCode(y).then(C=>{C.forEach((x,k)=>{f[I].chapters[k].shortName=x.translation})})});Promise.all(i).then(()=>{g.filterRubricsReady=!0})}}else f&&(g.chapterGroupNames=f,g.chapterGroups=f),g.filterGroupsReady=!0,g.filterRubricsReady=!0;for(let h=0;h<g.chapterGroups.length;h++)g.chapterGroups[h].chapters.sort(function(I,y){return I.order<y.order?-1:1});if(g.chapterGroupSelections={},g.staffDirFilter={},g.changeFilter=function(h){h=g.rangeSelection,g.countChanges++,-1==h&&(g.searchFilter="staffs"),0==h&&(g.searchFilter="all"),1==h&&(g.searchFilter="articles"),2==h&&(g.searchFilter="events"),e.search("searchFilter",g.searchFilter),g.updateQuery()},e.search().chapterIds){var s=[],o=e.search().chapterIds;angular.isArray(o)?s=o:s.push(o),angular.forEach(s,function(h){angular.forEach(g.chapterGroups,function(I,y){I.chapters.filter(function(C){return C.id===h}).length>0&&(g.chapterGroupSelections[y]=h,g.filtered=!0)})})}var b=function(h){return Object.keys(h).map(function(I){return h[I]})},p=function(h){return Object.keys(h).map(function(I){return{attribute_Id:I,from:h[I].from,until:h[I].until,ignoreYear:h[I].ignoreYear}})};g.updateQuery=function(){if(g.chapterGroupSelections){var h=b(g.chapterGroupSelections);e.search("chapterIds",h)}if(g.staffDirFilter.optionSelections){var I=b(g.staffDirFilter.optionSelections);g.staffDirFilter.optionIds=I}if(g.staffDirFilter.datePickers&&(g.staffDirFilter.attributeRanges=p(g.staffDirFilter.datePickers)),g.staffDirFilter.booleanSelections){var y=b(g.staffDirFilter.booleanSelections);y=y.filter(function(x){return void 0!==x}),g.staffDirFilter.booleanIds=y}if(g.staffDirFilter.optionSelections||g.chapterGroupSelections||g.booleanSelections||g.datePickers){var C=encodeURIComponent(JSON.stringify(g.staffDirFilter));e.search("staffDirFilter",C),g.filtered=!0,g.searchCallback(g.searchFilter,g.staffDirFilter)}},g.resetFilter=function(){e.search("chapterIds",null),g.chapterGroupSelections={},g.staffDirFilter={},e.search("staffDirFilter",null),g.filtered=!1,g.searchCallback(g.searchFilter,g.staffDirFilter)}}]}),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),a=t.length,r=new Array(a);a--;)r[a]=[t[a],e[t[a]]];return r}),Object.keys||(Object.keys=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=a.length;return function(c){if("function"!=typeof c&&("object"!=typeof c||null===c))throw new TypeError("Object.keys called on non-object");var f,n,g=[];for(f in c)e.call(c,f)&&g.push(f);if(t)for(n=0;n<r;n++)e.call(c,a[n])&&g.push(a[n]);return g}}()),app.controller("SearchFilterDialog",["searchCallback","$location","$scope",function(e,t,a){if(a.chapterGroups=scope.currentScope.chapter.chapterGroups,a.chapterGroupSelections={},a.filtered=!1,a.searchCallback=e,t.search().chapterIds){var r=[],c=t.search().chapterIds;angular.isArray(c)?r=c:r.push(c),angular.forEach(r,function(f){angular.forEach(a.chapterGroups,function(n,d){n.chapters.filter(function(l){return l.id===f}).length>0&&(a.chapterGroupSelections[d]=f,a.filtered=!0)})})}a.updateQuery=function(){a.chapterGroupSelections&&(a.filtered=!0)},a.resetFilter=function(){a.chapterGroupSelections={},a.filtered=!1},a.save=function(){a.$dismiss()}}]),app.factory("searchService",["$http","$q",function(e,t){var a=function(h,I,y){var C={};return h&&(C.query=h),I&&(C.page=I),y&&(C.chapterIds=y),C};function b(h,I,y){var C=t.defer();return e.post(scope.apiEndpoint+y,a(h,I)).then(function(x){C.resolve(x.data)},function(){C.reject()}),C.promise}return{search:function(h,I){var y=t.defer();return e.post(scope.apiEndpoint+"search",a(h,0,I)).then(function(C){y.resolve(C.data)},function(){y.reject()}),y.promise},getArticles:function(h,I,y){var C=t.defer();return e.post(scope.apiEndpoint+"search/articles",a(h,I,y)).then(function(x){C.resolve(x.data)},function(){C.reject()}),C.promise},getAssetArticles:function(h,I){var y=t.defer();return e.post(scope.apiEndpoint+"search/assets/articles",a(h,I)).then(function(C){y.resolve(C.data)},function(){y.reject()}),y.promise},getAssetSponsoredArticles:function(h,I){var y=t.defer();return e.post(scope.apiEndpoint+"search/assets/articles/sponsored?q=",a(h,I)).then(function(C){y.resolve(C.data)},function(){y.reject()}),y.promise},getAssetImages:function(h,I){return b(h,I,"search/assets/images")},getSponsoredAssetImages:function(h,I){return b(h,I,"search/assets/images/sponsored")},getAssetFiles:function(h,I){return b(h,I,"search/assets/files")},getSponsoredAssetFiles:function(h,I){return b(h,I,"search/assets/files/sponsored")},getStaffDirectoryUsers:function(h,I,y,C,x){var k=t.defer();return e.post(scope.apiEndpoint+"search/staffDirectory",{query:h,optionIds:I,booleanIds:y,attributeDateTimeRanges:C,filterState:x}).then(function(R){k.resolve(R.data)},function(){k.reject()}),k.promise},getStaffDirectoryAttributes:function(){var h=t.defer();return e.get(scope.apiEndpoint+"staffDirectory/attributes").then(function(I){h.resolve(I.data)},function(){h.reject()}),h.promise},getEvents:function p(h,I,y){var C=t.defer();return e.post(scope.apiEndpoint+"search/events",a(h,I,y)).then(function(x){C.resolve(x.data)},function(){C.reject()}),C.promise}}}]),app.controller("SnipApplyController",["$interpolate","$scope","$rootScope","snipService","authorService","profileService","$stateParams","$location",function(e,t,a,r,c,g,f,n){t.snip=null;var d=f.id;t.targetSnipId=d,"Redesign2024"!=a.scope.currentScope.network.settings.configurations.contentRenderEngine&&(t.web_snipApply_notAppliedDescription=e(scope.currentScope.network.resources.web_snipApply_notAppliedDescription)({web_common_author_custom:scope.currentScope.network.getResourceOrKeyName("web_common_author_custom")}),g.getProfile().then(function(l){l.isJournalist?(r.getSnipDetails(d).then(function(i){t.snip=i}),c.checkApply(d).then(function(i){t.hasApplied=i})):n.path("/author/register").search("fromApply","1")},function(l){n.path("/author/register")}),t.apply=function(){c.applySnip(d).then(function(l){n.path("/dashboard")})})}]),app.controller("SnipDeleteDialog",["$scope","snipService","snip",function(e,t,a){e.delete=function(){t.deleteSnip(a.id).then(function(){a.deleted=new Date,e.$dismiss()},function(){e.error=!0})}}]),app.controller("SnipDetailController",["$rootScope","$scope","$previousState","snipService","$location","snip","$timeout","articleService","profileService","$uibModal","translationService","assetService",function(e,t,a,r,c,g,f,n,d,l,i,s){if((!document.referrer||!document.referrer.startsWith(scope.globalSettings.serverCdnUrl))&&!a.get()&&history){var o=c.path();history.replaceState(null,"",scope.currentChapter.path),history.pushState(null,"",scope.currentChapter.path+o)}var y;if(t.$on("$viewContentLoaded",function(){f(function(){t.viewContentLoaded=!0});var y=e.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==y){var C=e.scope.profile,x=e.scope.network.settings.languagePack.split("-")[0];null!=C.activeUserLanguage?.vendorLanguageCode&&x!=C.activeUserLanguage?.vendorLanguageCode&&t.translateSnip(C.activeUserLanguage?.vendorLanguageCode)}}),t.hasHowto=e.scope.staticArticles.filter(function(y){return"/howto"===y.path}).length>0,t.hideUserInteraction=1==scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==e.scope.profile.isRegistered&&0==e.app,$(window).scroll(function(y){$(y.target).scrollTop()>100?$(".snipDetail-mobileNavigation-wrapper").addClass("snipDetail-mobileNavigation-wrapper-scrolled"):$(".snipDetail-mobileNavigation-wrapper").removeClass("snipDetail-mobileNavigation-wrapper-scrolled")}),t.recommendedSnips=[],t.snip=g,t.availableTargetLanguages=null,i.getAvailableTargetLanguages().then(function(y){t.availableTargetLanguages=y}),t.selectedTargetLanguage=e.profile.favoriteLanguage,t.$on("apicodo.translate",function(y,C){t.translateSnip(C)}),t.translateSnip=function(y){y&&(t.selectedTargetLanguage=y),null===t.selectedTargetLanguage?r.getSnipDetails(t.snip.id).then(function(C){t.snip.text=C.text,t.snip.formattedText=C.formattedText,t.snip.assetReferences=C.assetReferences,I()}):r.getTranslatedSnipDetails(t.snip.id,t.selectedTargetLanguage).then(function(C){t.snip.text=C.text,t.snip.formattedText=C.formattedText,t.snip.assetReferences=C.assetReferences,I(),d.updateFavoriteLanguage(t.selectedTargetLanguage).then(function(){e.profile.favoriteLanguage=t.selectedTargetLanguage})})},e.scope.currentScope.chapter.settings.enableSnipRecommendations&&r.getRecommendedSnips(t.snip.id).then(function(y){t.recommendedSnips=y}),g.articleId&&n.getArticleDetails(g.articleId).then(function(y){t.article=y}),t.deleteSnip=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/snip/snipDeleteDialog.html",controller:"SnipDeleteDialog",size:"lg",resolve:{snip:function(){return t.snip}}})},t.contactSnipUser=function(){d.getProfile().then(function(y){y.isRegistered&&l.open({templateUrl:"/ClientApp/src/legacy-app/user/userContactDialog.html",controller:"UserContactDialog",size:"lg",resolve:{snip:function(){return t.snip}}})})},(y=window.navigator.userAgent).indexOf(" Android ")>-1&&y.indexOf("Version/")>-1&&parseFloat((y.match("Android ([0-9.]+)")||[])[1])<=4.4){var p=$(window).height();$(".app-mobile .snipDetail-wrapper").css("height",p+"px"),$(".app-desktop .snipDetail-wrapper").css("height",p+"px")}var h=function(y){t.snip.assetReferences.unshift(y),I()};function I(){t.snip.assetsMedia=[],t.snip.assetsFacts=[],t.snip.assetsQuestions=[],t.snip.assetsComments=[],angular.isDefined(g.assetReferences)&&g.assetReferences.forEach(function(y){null!==y.assetImage||null!==y.assetText&&(5===y.assetText.type||6===y.assetText.type||7===y.assetText.type||10===y.assetText.type||13===y.assetText.type)?t.snip.assetsMedia.push(y):null!==y.assetText&&(8===y.assetText.type?t.snip.assetsFacts.push(y):9===y.assetText.type?t.snip.assetsQuestions.push(y):0===y.assetText.type&&t.snip.assetsComments.push(y))})}t.assetCreateOpinionDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateOpinionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return h},createAssetAsync:function(){return function(y){return s.insertAssetTextToSnip(y,t.snip.id)}}}})},t.assetCreateFactDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return h},createAssetAsync:function(){return function(y){return s.insertAssetTextToSnip(y,t.snip.id)}}}})},t.assetCreateQuestionDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return h},createAssetAsync:function(){return function(y){return s.insertAssetTextToSnip(y,t.snip.id)}}}})},t.assetCreateImageDialog=function(y,C,x){y&&0!==y.length?C.length||l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return y},resultCallback:function(){return h},createAssetAsync:function(){return function(k){return s.insertAssetImageToSnip(k,t.snip.id)}}}}):C||x.$setPristine()},t.assetCreateVideoDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return h},createAssetAsync:function(){return function(y){return s.insertAssetTextToSnip(y,t.snip.id)}}}})},t.assetCreateGifDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return h},createAssetAsync:function(){return function(y){return s.insertAssetTextToSnip(y,t.snip.id)}}}})},t.assetSearchDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return h},snipId:function(){return t.snip.id},assetReferences:function(){return t.snip.assetReferences}}})},t.assetImageFocuspointDialog=function(y){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return y}}})},t.scrollTo=function(y){$("body,html").animate({scrollTop:$(y).offset().top-120},1e3)},I(),t.share=function(){!window.plugins||!window.plugins.socialsharing||(window._paq&&_paq.push(["trackEvent","Conversion","StartShareSnip","SnipDetail"]),window.plugins.socialsharing.shareWithOptions({message:t.snip.text+" "+c.absUrl()},function(){window._paq&&_paq.push(["trackEvent","Conversion","SuccessShareSnip","SnipDetail"])}))}}]),app.controller("SnipElasticReportController",["$scope","$rootScope","snipService","scopeService","$timeout","$location","$stateParams",function(e,t,a,r,c,g,f){AmCharts.isReady=!0;var o,b,p,h,n=getComputedStyle(document.querySelector("body")).getPropertyValue("--color1-alpha50"),d=[{name:t.scope.currentScope.network.getResourceOrKeyName("web_report_unknownReferrer"),color:"#cccccc",regEx:["^$"]},{name:t.scope.currentScope.network.domain.charAt(0).toUpperCase()+t.scope.currentScope.network.domain.slice(1),color:n,regEx:["^https?:\\/\\/"+t.scope.currentScope.network.domain]},{name:"Facebook",color:"#3B5998",regEx:["^https?:\\/\\/(\\w*\\.)?facebook\\.com","^android-app:\\/\\/m.facebook."]},{name:"Google",color:"#F44336",regEx:["^https?:\\/\\/((www\\.)|(images\\.))?google\\.","^android-app:\\/\\/com\\.google\\.android\\.googlequicksearchbox"]},{name:"Twitter",color:"#4099FF",regEx:["^https?:\\/\\/t\\.co\\/","^https?:\\/\\/twitter\\.com\\/"]},{name:"Webmail",color:"#ff66ff",regEx:["^https?:\\/\\/.*\\.mail\\.live\\.com","^https?:\\/\\/mail\\.google\\.com","^https?:\\/\\/3c\\.gmx\\.net","^https?:\\/\\/3c\\.web\\.de","^https?:\\/\\/email\\.t-online\\.de","^https?:\\/\\/3c-bap\\.web\\.de","^https?:\\/\\/email\\.1und1\\.de","^https?:\\/\\/www\\.arcor\\.de\\/home\\/link\\.php"]},{name:"WhatsApp",color:"#43d854",regEx:["^https?:\\/\\/web.whatsapp.com"]},{name:t.scope.currentScope.network.getResourceOrKeyName("web_report_articleSuggestionReferrer"),color:"#F44336",regEx:["^https?:\\/\\/www\\.googleapis\\.com\\/auth\\/chrome-content-suggestions","^https?:\\/\\/play\\.google\\.(com|de){1}\\/newsstand"]},{name:"Google News",color:"#F44336",regEx:["^https?:\\/\\/((www\\.news\\.)|(news\\.))?(url\\.)?google\\."]},{name:"Instagram",color:"#cd486b",regEx:["^https?:\\/\\/(\\w*\\.)?instagram\\."]}],l=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],i=[],s=[];e.report=null,e.totalReadingTime=0,e.totalReadingCount=0,e.totalImpressionCount=0,e.totalUniqueImpressionCount=0,e.totalUniqueReadingCount=0,e.totalUniqueReadingHavingImpressionsCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var I=function(k){var R=0,u=0,U=0,F=0,w=0,S=0,v=0,A=0,T=0,D=[];i.length=0,$.each(k,function(m,M){R+=M.desktopReadingCount,u+=M.tabletReadingCount,U+=M.mobileReadingCount,v+=M.uniqueReadingCount,S+=M.uniqueImpressionCount,A+=M.uniqueReadingHavingImpressionsCount,F+=M.readingTime,T+=M.impressionCount,w+=M.readingCount,M.referrers&&$.each(M.referrers,function(E,P){var q=!1;$.each(d,function(N,O){if($.each(O.regEx,function(_,V){if(P.uri.match(V))return D[O.name]?(D[O.name].count+=P.count,q=!0,!1):(D[O.name]={count:P.count,referrer:O.name,color:O.color},i.push(D[O.name]),q=!0,!1)}),q)return!1}),q||(D.others?D.others.count+=P.count:(D.others={count:P.count,referrer:"Andere"},i.push(D.others)))})}),e.$apply(function(){e.totalUniqueReadingCount=v,e.totalUniqueReadingHavingImpressionsCount=A,e.totalReadingTime=F,e.totalImpressionCount=T,e.totalReadingCount=w,e.totalUniqueImpressionCount=S}),l[0].value=Math.round(100/(w/R)),l[1].value=Math.round(100/(w/U)),l[2].value=Math.round(100/(w/u)),h.validateData(),o.validateData()},y=function(){var k=moment(b.startDate).startOf("day").toDate(),R=moment(b.endDate).startOf("day").toDate(),u=e.report.filter(function(U){return U.day>=k&&U.day<=R});I(u),p.zoom(k,moment(R).add(1,"d").toDate()),e.$apply(function(){e.startDay=k,e.endDay=R})};e.filterChapter=function(k){k.filtered=!k.filtered,function(){var k=e.chapters.filter(function(R){return!R.filtered}).map(function(R){return R.id});e.filterDisabled=!0,a.getSnipReport(e.snip.id,{chapterIds:k}).then(function(R){R.forEach(function(u){u.day=moment(u.day.replace("Z","")).toDate()}),e.report=R,c(function(){(function(k){s.length=0,$.each(k,function(R,u){s.push(u)}),b.validateData(),p.validateData()})(R),y(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(k){return e.filterDisabled||1===e.chapters.filter(function(R){return!R.filtered}).length&&!k.filtered},a.getSnipDetails(f.id).then(function(k){e.snip=k,a.getSnipReport({snipId:k.id}).then(function(R){R.forEach(function(U){U.day=moment(U.day.replace("Z","")).toDate()}),e.report=R,e.startDay=R[0].day,e.endDay=R[R.length-1].day;var u=[];$.each(k.chapterSlugs,function(U,F){u.push(r.getChapter(F))}),u=u.filter(function(U){return 2===U.managementState}),e.chapters=u,$.each(R,function(U,F){s.push(F)}),c(function(){o=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:l,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:n,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(b=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:s,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){y()}),p=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:n,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"readingCount",toField:"readingCount"}],dataProvider:s,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_reportSnip_uniqueReadersAmount,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_reportSnip_callsAmount"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_calls"),valueField:"readingCount",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_calls")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),(h=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,valueField:"count",titleField:"referrer",colorField:"color",labelsEnabled:!1,autoMargins:!1,pullOutRadius:0,innerRadius:"30%",legend:{switchable:!1,textClickEnabled:!0,markerType:"circle",position:"bottom",autoMargins:!1,marginLeft:2},balloonText:"[[title]]: [[value]]"})).legend.addListener("clickLabel",function(U){U.dataItem.dataContext.name.startsWith("http")&&window.prompt(scope.currentScope.network.getResourceOrKeyName("web_report_copyLink"),U.dataItem.dataContext.referrer)}),I(R)})},function(){e.error=!0})})}]),app.controller("SnipReportController",["$scope","$rootScope","snip","chapterReport","snipService","scopeService","$timeout",function(e,t,a,r,c,g,f){AmCharts.isReady=!0;var n=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",d=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:n,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],l=[],i=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],s=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];r.forEach(function(o){o.chapter=g.getChapter(o.chapterSlug),o.report.calendar.forEach(function(b){b.start=moment(b.start.replace("Z","")).toDate(),b.end=moment(b.end.replace("Z","")).toDate()})}),e.chapterReport=r,e.snip=a,f(function(){var o,b,p,h,I,y,C;$.each(r,function(w,S){S.active=!0});var x=[],k=function(){x.length=0,r.hasVariants=!1,$.each(r[0].report.calendar,function(w,S){x.push({start:S.start,end:S.end,viewableImpressions:0,uniqueViewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueReadings:0,femaleUniqueReadings:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueReadings:0,age1824MaleUniqueReadings:0,age2534MaleUniqueReadings:0,age3544MaleUniqueReadings:0,age4554MaleUniqueReadings:0,age55MaleUniqueReadings:0,age1617FemaleUniqueReadings:0,age1824FemaleUniqueReadings:0,age2534FemaleUniqueReadings:0,age3544FemaleUniqueReadings:0,age4554FemaleUniqueReadings:0,age55FemaleUniqueReadings:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,referrers:[]})}),$.each(r,function(w,S){if(S.active){r[w-1]&&2===r[w-1].chapter.managementState&&2===S.chapter.managementState&&r[w-1].chapter.name!==S.chapter.name&&(r.multiChapterShipment=!0);var v=a.id;$.each(S.report.calendar,function(A,T){T.id=v,x[A].viewableImpressions+=T.viewableImpressions,x[A].uniqueViewableImpressions+=T.uniqueViewableImpressions,x[A].billableViewableImpressions+=T.billableViewableImpressions,x[A].activeTimeSeconds+=T.activeTimeSeconds,x[A].readings+=T.readings,x[A].uniqueReadings+=T.uniqueReadings,x[A].uniqueReadingsHavingViewableImpressions+=T.uniqueReadingsHavingViewableImpressions,x[A].uniqueReadingPercentageReads+=T.uniqueReadingPercentageReads,x[A].maleUniqueReadings+=T.maleUniqueReadings,x[A].femaleUniqueReadings+=T.femaleUniqueReadings,x[A].desktopReadings+=T.desktopReadings,x[A].mobileReadings+=T.mobileReadings,x[A].tabletReadings+=T.tabletReadings,x[A].age1617MaleUniqueReadings+=T.age1617MaleUniqueReadings,x[A].age1824MaleUniqueReadings+=T.age1824MaleUniqueReadings,x[A].age2534MaleUniqueReadings+=T.age2534MaleUniqueReadings,x[A].age3544MaleUniqueReadings+=T.age3544MaleUniqueReadings,x[A].age4554MaleUniqueReadings+=T.age4554MaleUniqueReadings,x[A].age55MaleUniqueReadings+=T.age55MaleUniqueReadings,x[A].age1617FemaleUniqueReadings+=T.age1617FemaleUniqueReadings,x[A].age1824FemaleUniqueReadings+=T.age1824FemaleUniqueReadings,x[A].age2534FemaleUniqueReadings+=T.age2534FemaleUniqueReadings,x[A].age3544FemaleUniqueReadings+=T.age3544FemaleUniqueReadings,x[A].age4554FemaleUniqueReadings+=T.age4554FemaleUniqueReadings,x[A].age55FemaleUniqueReadings+=T.age55FemaleUniqueReadings,x[A].uniqueReadingPercentage24Reads+=T.uniqueReadingPercentage24Reads,x[A].uniqueReadingPercentage2549Reads+=T.uniqueReadingPercentage2549Reads,x[A].uniqueReadingPercentage5074Reads+=T.uniqueReadingPercentage5074Reads,x[A].uniqueReadingPercentage75100Reads+=T.uniqueReadingPercentage75100Reads,T.referrers.length&&T.referrers.forEach(function(D){x[A].referrers.push(D)})})}}),o.validateData(),b.validateData(),p.validateData(),h.validateData(),I.validateData(),y.validateData(),C.validateData()},R=r.summary={referrers:[]},u=function(w,S){R.viewableImpressions=0,R.uniqueViewableImpressions=0,R.billableViewableImpressions=0,R.activeTimeSeconds=0,R.readings=0,R.uniqueReadings=0,R.uniqueReadingsHavingViewableImpressions=0,R.uniqueReadingPercentageReads=0,R.maleUniqueReadings=0,R.femaleUniqueReadings=0,R.desktopReadings=0,R.mobileReadings=0,R.tabletReadings=0,R.age1617MaleUniqueReadings=0,R.age1824MaleUniqueReadings=0,R.age2534MaleUniqueReadings=0,R.age3544MaleUniqueReadings=0,R.age4554MaleUniqueReadings=0,R.age55MaleUniqueReadings=0,R.age1617FemaleUniqueReadings=0,R.age1824FemaleUniqueReadings=0,R.age2534FemaleUniqueReadings=0,R.age3544FemaleUniqueReadings=0,R.age4554FemaleUniqueReadings=0,R.age55FemaleUniqueReadings=0,R.uniqueReadingPercentage24Reads=0,R.uniqueReadingPercentage2549Reads=0,R.uniqueReadingPercentage5074Reads=0,R.uniqueReadingPercentage75100Reads=0;var v=0,A=0,T=0,D=0,m=0,M=0,E=0,P=0,q=0,N=0,O=0,_=0,V=0,L=0,z=0;R.start=w,R.end=S,R.referrers.length=0,$.each(x,function(Z,Q){var ae=new Date(Q.start);ae<w||ae>S||(R.viewableImpressions+=Q.viewableImpressions,R.uniqueViewableImpressions+=Q.uniqueViewableImpressions,R.billableViewableImpressions+=Q.billableViewableImpressions,R.activeTimeSeconds+=Q.activeTimeSeconds,R.readings+=Q.readings,R.uniqueReadingPercentageReads+=Q.uniqueReadingPercentageReads,R.maleUniqueReadings+=Q.maleUniqueReadings,R.femaleUniqueReadings+=Q.femaleUniqueReadings,R.uniqueReadings+=Q.uniqueReadings,R.uniqueReadingsHavingViewableImpressions+=Q.uniqueReadingsHavingViewableImpressions,R.uniqueReadingPercentage24Reads+=Q.uniqueReadingPercentage24Reads,R.uniqueReadingPercentage2549Reads+=Q.uniqueReadingPercentage2549Reads,R.uniqueReadingPercentage5074Reads+=Q.uniqueReadingPercentage5074Reads,R.uniqueReadingPercentage75100Reads+=Q.uniqueReadingPercentage75100Reads,v+=Q.desktopReadings,A+=Q.mobileReadings,T+=Q.tabletReadings,D+=Q.age1617MaleUniqueReadings,m+=Q.age1824MaleUniqueReadings,M+=Q.age2534MaleUniqueReadings,E+=Q.age3544MaleUniqueReadings,P+=Q.age4554MaleUniqueReadings,q+=Q.age55MaleUniqueReadings,N+=Q.age1617FemaleUniqueReadings,O+=Q.age1824FemaleUniqueReadings,_+=Q.age2534FemaleUniqueReadings,V+=Q.age3544FemaleUniqueReadings,L+=Q.age4554FemaleUniqueReadings,z+=Q.age55FemaleUniqueReadings,Q.referrers.forEach(function(X){var K=R.referrers.filter(function(B){return B.referrer===X.referrer});K.length?K[0].readings+=X.readings:R.referrers.push({referrer:X.referrer,readings:X.readings,color:X.color})}))}),R.referrers.sort(function(Z,Q){return Q.readings-Z.readings}),R.referrers.forEach(function(Z){Z.name=Z.referrer?Z.referrer.substring(0,30):Z.referrer}),l.length=0,[].push.apply(l,R.referrers.slice(0,8)),l.filter(function(Z){return!Z.color}).forEach(function(Z,Q){Z.color=h.colors[Q]});var G=R.referrers.slice(9,-1),J={referrer:scope.currentScope.network.getResourceOrKeyName("web_report_others"),name:scope.currentScope.network.getResourceOrKeyName("web_report_others"),readings:0,color:h.colors[10]};G.forEach(function(Z){J.readings+=Z.readings}),J.readings>0&&l.push(J);var H=v+A+T;R.desktopReadings=Math.round(100/(H/v)),R.mobileReadings=Math.round(100/(H/A)),R.tabletReadings=Math.round(100/(H/T)),R.maleUniqueReadings=Math.round(R.maleUniqueReadings),R.femaleUniqueReadings=Math.round(R.femaleUniqueReadings),d[0].value=R.femaleUniqueReadings,d[1].value=R.maleUniqueReadings;var Y=D+m+M+E+P+q+N+O+_+V+L+z;R.age1617MaleUniqueReadings=Math.round(100/(Y/D)),R.age1824MaleUniqueReadings=Math.round(100/(Y/m)),R.age2534MaleUniqueReadings=Math.round(100/(Y/M)),R.age3544MaleUniqueReadings=Math.round(100/(Y/E)),R.age4554MaleUniqueReadings=Math.round(100/(Y/P)),R.age55MaleUniqueReadings=Math.round(100/(Y/q)),R.age1617FemaleUniqueReadings=Math.round(100/(Y/N)),R.age1824FemaleUniqueReadings=Math.round(100/(Y/O)),R.age2534FemaleUniqueReadings=Math.round(100/(Y/_)),R.age3544FemaleUniqueReadings=Math.round(100/(Y/V)),R.age4554FemaleUniqueReadings=Math.round(100/(Y/L)),R.age55FemaleUniqueReadings=Math.round(100/(Y/z)),i[0].male=Math.round(-1*R.age1617MaleUniqueReadings),i[1].male=Math.round(-1*R.age1824MaleUniqueReadings),i[2].male=Math.round(-1*R.age2534MaleUniqueReadings),i[3].male=Math.round(-1*R.age3544MaleUniqueReadings),i[4].male=Math.round(-1*R.age4554MaleUniqueReadings),i[5].male=Math.round(-1*R.age55MaleUniqueReadings),i[0].female=Math.round(R.age1617FemaleUniqueReadings),i[1].female=Math.round(R.age1824FemaleUniqueReadings),i[2].female=Math.round(R.age2534FemaleUniqueReadings),i[3].female=Math.round(R.age3544FemaleUniqueReadings),i[4].female=Math.round(R.age4554FemaleUniqueReadings),i[5].female=Math.round(R.age55FemaleUniqueReadings),s[0].value=R.desktopReadings,s[1].value=R.mobileReadings,s[2].value=R.tabletReadings,p.validateData(),I.validateData(),y.validateData(),C.validateData(),h.validateData(),e.$$phase||e.$apply()};o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:x,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),b=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:n,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:x,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_reportSnip_uniqueReadersAmount"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),p=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),(h=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:l,valueField:"readings",titleField:"referrer",colorField:"color",labelsEnabled:!1,autoMargins:!1,pullOutRadius:0,innerRadius:"30%",legend:{switchable:!1,textClickEnabled:!0,markerType:"circle",position:"bottom",autoMargins:!1,marginLeft:2},balloonText:"[[name]]: [[value]]"})).legend.addListener("clickLabel",function(w){w.dataItem.dataContext.referrer.startsWith("http")&&window.prompt(scope.currentScope.network.getResourceOrKeyName("web_report_copyLink"),w.dataItem.dataContext.referrer)}),I=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:n,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(w){return-1*w.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(w){return w<0?-1*w+"":w+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),y=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:s,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:n,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),C=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[R],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:n,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:n,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:n,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:n,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var U=function(){var w=moment(o.startDate).startOf("day").toDate(),S=moment(o.endDate).startOf("day").add(-1,"d").toDate();u(w,S),b.zoom(w,moment(S).add(1,"d").toDate())};o.addListener("zoomed",function(){U()}),e.toggleChapter=function(w){$.each(r,function(S,v){null!==v.chapter&&v.chapter.name===w.name&&(v.active=!v.active)}),k(),U()},U(),k();var F=!1;setInterval(function(){"visible"!==document.visibilityState||0===x.length||F||(F=!0,c.getLatestReport(a.id).then(function(w){if(w){w[0].start=moment(w[0].start.replace("Z","")).toDate(),w[0].end=moment(w[0].end.replace("Z","")).toDate();var S={start:w[0].start,end:w[0].end,viewableImpressions:0,uniqueViewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueReadings:0,femaleUniqueReadings:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueReadings:0,age1824MaleUniqueReadings:0,age2534MaleUniqueReadings:0,age3544MaleUniqueReadings:0,age4554MaleUniqueReadings:0,age55MaleUniqueReadings:0,age1617FemaleUniqueReadings:0,age1824FemaleUniqueReadings:0,age2534FemaleUniqueReadings:0,age3544FemaleUniqueReadings:0,age4554FemaleUniqueReadings:0,age55FemaleUniqueReadings:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,referrers:[]};$.each(w,function(T,D){r[T].active&&(S.viewableImpressions+=D.viewableImpressions,S.uniqueViewableImpressions+=D.uniqueViewableImpressions,S.billableViewableImpressions+=D.billableViewableImpressions,S.activeTimeSeconds+=D.activeTimeSeconds,S.readings+=D.readings,S.uniqueReadings+=D.uniqueReadings,S.uniqueReadingsHavingViewableImpressions+=D.uniqueReadingsHavingViewableImpressions,S.uniqueReadingPercentageReads+=D.uniqueReadingPercentageReads,S.maleUniqueReadings+=D.maleUniqueReadings,S.femaleUniqueReadings+=D.femaleUniqueReadings,S.desktopReadings+=D.desktopReadings,S.mobileReadings+=D.mobileReadings,S.tabletReadings+=D.tabletReadings,S.age1617MaleUniqueReadings+=D.age1617MaleUniqueReadings,S.age1824MaleUniqueReadings+=D.age1824MaleUniqueReadings,S.age2534MaleUniqueReadings+=D.age2534MaleUniqueReadings,S.age3544MaleUniqueReadings+=D.age3544MaleUniqueReadings,S.age4554MaleUniqueReadings+=D.age4554MaleUniqueReadings,S.age55MaleUniqueReadings+=D.age55MaleUniqueReadings,S.age1617FemaleUniqueReadings+=D.age1617FemaleUniqueReadings,S.age1824FemaleUniqueReadings+=D.age1824FemaleUniqueReadings,S.age2534FemaleUniqueReadings+=D.age2534FemaleUniqueReadings,S.age3544FemaleUniqueReadings+=D.age3544FemaleUniqueReadings,S.age4554FemaleUniqueReadings+=D.age4554FemaleUniqueReadings,S.age55FemaleUniqueReadings+=D.age55FemaleUniqueReadings,S.uniqueReadingPercentage24Reads+=D.uniqueReadingPercentage24Reads,S.uniqueReadingPercentage2549Reads+=D.uniqueReadingPercentage2549Reads,S.uniqueReadingPercentage5074Reads+=D.uniqueReadingPercentage5074Reads,S.uniqueReadingPercentage75100Reads+=D.uniqueReadingPercentage75100Reads,D.referrers.length&&D.referrers.forEach(function(m){S.referrers.push(m)}))}),x[x.length-1].start-w[0].start===0?x[x.length-1]=S:x.push(S),o.validateData(),b.validateData();var v=moment(o.startDate).startOf("day").toDate(),A=moment(o.endDate).startOf("day").add(-1,"d").toDate();v<=w[0].start&&A>=w[0].start&&u(v,A),F=!1}}))},1e4)},function(){e.error=!0},function(){$location.path("/")})}]),app.component("snipStatusHeader",{templateUrl:"/ClientApp/src/legacy-app/snip/snipStatusHeader.html",bindings:{data:"<"},controller:["$rootScope","$interpolate",function(e,t){this.web_snipStatus_lookingForAuthor=t(scope.currentScope.network.resources.web_snipStatus_lookingForAuthor)({web_common_author:scope.currentScope.network.getResourceOrKeyName("web_common_author")}),this.getSnipStatus=function(){if(!this.data.published)return 1;if(this.data.archived)return 2;if(this.data.assignedUser&&this.data.score>e.scope.globalSettings.snipShowAuthorEditStatusScoreThreshold)return 3;if(moment().diff(this.data.published,"hours")<3)return 0;if(!e.scope.currentChapter.settings.enableOhaLikes&&this.data.score>=1)return 4;if(this.data.assetReferences.length){var r=this.data.assetReferences.reduce(function(c,g){return new Date(c.published)<new Date(g.published)?c:g});if(moment().diff(r.created,"hours")<3)switch(r.type){case 2:case 5:case 6:case 7:return 5;case 8:return 6;case 9:return 7;case 0:case 1:case 10:return 8}}}}]}),app.controller("SpecialDetailController",["$scope","special","$rootScope",function(e,t,a){t.detailValues.coverAssetReference={assetImage:{assetImageUrl:scope.globalSettings.blobStorageCdnUrl+"/"+scope.globalSettings.blobStorageContainerNameSpecial+"/"+t.detailValues.coverAsset}},t.detailValues.articleDetailDisplayableType=t.articleDetailDisplayableType,e.special=t,e.getTemplateUri=function(r){return"/ClientApp/src/legacy-app/template/"+r+".html"},e.specialViewOculus=Oculus.trackSpecialView({isp:t.id,n:a.scope.currentScope.network.slug,c:t.chapterSlug}),$(window).scroll(function(r){$(r.target).scrollTop()>100?$(".specialDetail-mobileNavigation-wrapper").addClass("specialDetail-mobileNavigation-wrapper-scrolled"):$(".specialDetail-mobileNavigation-wrapper").removeClass("specialDetail-mobileNavigation-wrapper-scrolled")})}]),app.directive("special",[function(){return{restrict:"E",require:"ngModel",templateUrl:"/ClientApp/src/legacy-app/special/special.html",replace:!1,scope:!0,link:function(e,t,a,r){e.getTemplateUri=function(c){return"/ClientApp/src/legacy-app/template/"+c+".html"},e.article=e.$eval(a.article),e.$watch(a.ngModel,function(){e.special=r.$viewValue})}}}]),app.controller("SpecialElasticReportController",["$scope","$rootScope","specialService","scopeService","$stateParams","$timeout","$location",function(e,t,a,r,c,g,f){AmCharts.isReady=!0;var i,s,o,n=getComputedStyle(document.querySelector("body")).getPropertyValue("--color1-alpha50"),d=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],l=[];e.report=null,e.totalUniqueViewCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var b=function(y){var C=0,x=0,k=0,R=0,u=0,U=0,F=0;$.each(y,function(S,v){C+=v.desktopImpressionCount,x+=v.tabletImpressionCount,k+=v.mobileImpressionCount,R+=v.uniqueViews,u+=v.impressionTime,U+=v.totalViewTime,F+=v.impressionCount}),e.$apply(function(){e.totalUniqueViewCount=R,e.totalImpressionTime=u,e.totalViewTime=U,e.totalImpressionCount=F});var w=C+k+x;d[0].value=Math.round(100/(w/C)),d[1].value=Math.round(100/(w/k)),d[2].value=Math.round(100/(w/x)),i.validateData()},p=function(){var y=moment(s.startDate).startOf("day").toDate(),C=moment(s.endDate).startOf("day").toDate(),x=e.report.filter(function(k){return k.day>=y&&k.day<=C});b(x),o.zoom(y,moment(C).add(1,"d").toDate()),e.$apply(function(){e.startDay=y,e.endDay=C})};e.filterChapter=function(y){y.filtered=!y.filtered,function(){var y=e.chapters.filter(function(C){return!C.filtered}).map(function(C){return C.id});e.filterDisabled=!0,a.getSpecialReport({specialId:c.id,chapterIds:y}).then(function(C){C.forEach(function(x){x.day=moment(x.day.replace("Z","")).toDate()}),e.report=C,g(function(){(function(y){l.length=0,$.each(y,function(C,x){l.push(x)}),s.validateData(),o.validateData()})(C),p(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(y){return e.filterDisabled||1===e.chapters.filter(function(C){return!C.filtered}).length&&!y.filtered},a.getSpecialInfo(c.id).then(function(y){e.special=y,a.getSpecialReport({specialId:c.id}).then(function(C){C.forEach(function(k){k.day=moment(k.day.replace("Z","")).toDate()}),e.report=C,e.startDay=C[0].day,e.endDay=C[C.length-1].day;var x=[];$.each(y.chapterSlugs,function(k,R){x.push(r.getChapter(R))}),x=x.filter(function(k){return 2===k.managementState}),e.chapters=x,$.each(C,function(k,R){l.push(R)}),g(function(){i=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:n,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(s=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:l,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){p()}),o=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:n,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"uniqueViews",toField:"uniqueViews"}],dataProvider:l,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"uniqueViews",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),b(C)})},function(){e.error=!0})})}]),app.controller("SpecialReportController",["$scope","$rootScope","specialService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,r,c,g,f,n){AmCharts.isReady=!0;var d=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getSpecialInfo(c.id).then(function(o){e.special=o,a.getSpecialCalendar(c.id).then(function(b){b.forEach(function(p){p.chapter=r.getChapter(p.chapterSlug),p.report.calendar.forEach(function(h){h.start=moment(h.start.replace("Z","")).toDate(),h.end=moment(h.end.replace("Z","")).toDate()})}),o.chapterReport=b,f(function(){var p,h,I,y,C,x,k=new Set;$.each(b,function(S,v){v.active=!0,k.add(v.chapter.name)}),b.uniqueChapters=[],k.forEach(function(S){b.uniqueChapters.push(S)});var R=[],u=function(){R.length=0,$.each(b[0].report.calendar,function(S,v){R.push({start:v.start,end:v.end,viewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueViewableImpressions:0,femaleUniqueViewableImpressions:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueViewableImpressions:0,age1824MaleUniqueViewableImpressions:0,age2534MaleUniqueViewableImpressions:0,age3544MaleUniqueViewableImpressions:0,age4554MaleUniqueViewableImpressions:0,age55MaleUniqueViewableImpressions:0,age1617FemaleUniqueViewableImpressions:0,age1824FemaleUniqueViewableImpressions:0,age2534FemaleUniqueViewableImpressions:0,age3544FemaleUniqueViewableImpressions:0,age4554FemaleUniqueViewableImpressions:0,age55FemaleUniqueViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0})}),$.each(b,function(S,v){if(v.active){b[S-1]&&2===b[S-1].chapter.managementState&&2===v.chapter.managementState&&b[S-1].chapter.name!==v.chapter.name&&(b.multiChapterShipment=!0);var A=v.report.special.Id;$.each(v.report.calendar,function(T,D){D.specialId=A;var m=R[T];m.viewableImpressions+=D.viewableImpressions,m.activeTimeSeconds+=D.activeTimeSeconds,m.readings+=D.views,m.maleUniqueViewableImpressions+=D.maleViewableImpressions,m.femaleUniqueViewableImpressions+=D.femaleViewableImpressions,m.uniqueReadings+=D.uniqueViews,m.desktopReadings+=D.desktopViews,m.mobileReadings+=D.mobileViews,m.tabletReadings+=D.tabletViews,m.age1617MaleUniqueViewableImpressions+=D.age1617MaleViewableImpressions,m.age1824MaleUniqueViewableImpressions+=D.age1824MaleViewableImpressions,m.age2534MaleUniqueViewableImpressions+=D.age2534MaleViewableImpressions,m.age3544MaleUniqueViewableImpressions+=D.age3544MaleViewableImpressions,m.age4554MaleUniqueViewableImpressions+=D.age4554MaleViewableImpressions,m.age55MaleUniqueViewableImpressions+=D.age55MaleViewableImpressions,m.age1617FemaleUniqueViewableImpressions+=D.age1617FemaleViewableImpressions,m.age1824FemaleUniqueViewableImpressions+=D.age1824FemaleViewableImpressions,m.age2534FemaleUniqueViewableImpressions+=D.age2534FemaleViewableImpressions,m.age3544FemaleUniqueViewableImpressions+=D.age3544FemaleViewableImpressions,m.age4554FemaleUniqueViewableImpressions+=D.age4554FemaleViewableImpressions,m.age55FemaleUniqueViewableImpressions+=D.age55FemaleViewableImpressions})}}),I.validateData(),y.validateData(),C.validateData(),x.validateData()},U=b.summary={};p=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:R,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),h=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:d,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:R,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_reportSpecial_amountOfViews"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),I=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:l,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),y=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:d,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(S,v){return-1*S.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(S){return S<0?-1*S+"":S+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),C=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:s,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:d,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),x=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[U],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:d,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:d,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:d,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:d,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var w=function(){var S=moment(p.startDate).startOf("day").toDate(),v=moment(p.endDate).startOf("day").add(-1,"d").toDate();h.zoom(S,moment(v).add(1,"d").toDate()),function(S,v){U.viewableImpressions=0,U.billableViewableImpressions=0,U.activeTimeSeconds=0,U.readings=0,U.uniqueReadings=0,U.uniqueReadingsHavingViewableImpressions=0,U.uniqueReadingPercentageReads=0,U.maleUniqueViewableImpressions=0,U.femaleUniqueViewableImpressions=0,U.desktopReadings=0,U.mobileReadings=0,U.tabletReadings=0,U.age1617MaleUniqueViewableImpressions=0,U.age1824MaleUniqueViewableImpressions=0,U.age2534MaleUniqueViewableImpressions=0,U.age3544MaleUniqueViewableImpressions=0,U.age4554MaleUniqueViewableImpressions=0,U.age55MaleUniqueViewableImpressions=0,U.age1617FemaleUniqueViewableImpressions=0,U.age1824FemaleUniqueViewableImpressions=0,U.age2534FemaleUniqueViewableImpressions=0,U.age3544FemaleUniqueViewableImpressions=0,U.age4554FemaleUniqueViewableImpressions=0,U.age55FemaleUniqueViewableImpressions=0,U.uniqueReadingPercentage24Reads=0,U.uniqueReadingPercentage2549Reads=0,U.uniqueReadingPercentage5074Reads=0,U.uniqueReadingPercentage75100Reads=0;var A=0,T=0,D=0,m=0,M=0,E=0,P=0,q=0,N=0,O=0,_=0,V=0,L=0,z=0,G=0;U.start=S,U.end=v,$.each(R,function(Y,Z){var Q=new Date(Z.start);Q<S||Q>v||(U.viewableImpressions+=Z.viewableImpressions,U.activeTimeSeconds+=Z.activeTimeSeconds,U.readings+=Z.readings,U.maleUniqueViewableImpressions+=Z.maleUniqueViewableImpressions,U.femaleUniqueViewableImpressions+=Z.femaleUniqueViewableImpressions,U.uniqueReadings+=Z.uniqueReadings,A+=Z.desktopReadings,T+=Z.mobileReadings,D+=Z.tabletReadings,m+=Z.age1617MaleUniqueViewableImpressions,M+=Z.age1824MaleUniqueViewableImpressions,E+=Z.age2534MaleUniqueViewableImpressions,P+=Z.age3544MaleUniqueViewableImpressions,q+=Z.age4554MaleUniqueViewableImpressions,N+=Z.age55MalUniqueeViewableImpressions,O+=Z.age1617FemaleUniqueViewableImpressions,_+=Z.age1824FemaleUniqueViewableImpressions,V+=Z.age2534FemaleUniqueViewableImpressions,L+=Z.age3544FemaleUniqueViewableImpressions,z+=Z.age4554FemaleUniqueViewableImpressions,G+=Z.age55FemaleUniqueViewableImpressions)});var J=A+T+D;U.desktopReadings=Math.round(100/(J/A)),U.mobileReadings=Math.round(100/(J/T)),U.tabletReadings=Math.round(100/(J/D)),U.maleUniqueViewableImpressions=Math.round(U.maleUniqueViewableImpressions),U.femaleUniqueViewableImpressions=Math.round(U.femaleUniqueViewableImpressions),l[0].value=U.femaleUniqueViewableImpressions,l[1].value=U.maleUniqueViewableImpressions;var H=U.viewableImpressions-(m+M+E+P+q+N+O+_+V+L+z+G);H>100&&(m+=H*t.scope.globalSettings.reportAverageAge1617Male,M+=H*t.scope.globalSettings.reportAverageAge1824Male,E+=H*t.scope.globalSettings.reportAverageAge2534Male,P+=H*t.scope.globalSettings.reportAverageAge3544Male,q+=H*t.scope.globalSettings.reportAverageAge4554Male,N+=H*t.scope.globalSettings.reportAverageAge55Male,O+=H*t.scope.globalSettings.reportAverageAge1617Female,_+=H*t.scope.globalSettings.reportAverageAge1824Female,V+=H*t.scope.globalSettings.reportAverageAge2534Female,L+=H*t.scope.globalSettings.reportAverageAge3544Female,z+=H*t.scope.globalSettings.reportAverageAge4554Female,G+=H*t.scope.globalSettings.reportAverageAge55Female),U.age1617MaleUniqueViewableImpressions=Math.round(100/(U.viewableImpressions/m)),U.age1824MaleUniqueViewableImpressions=Math.round(100/(U.viewableImpressions/M)),U.age2534MaleUniqueViewableImpressions=Math.round(100/(U.viewableImpressions/E)),U.age3544MaleUniqueViewableImpressions=Math.round(100/(U.viewableImpressions/P)),U.age4554MaleUniqueViewableImpressions=Math.round(100/(U.viewableImpressions/q)),U.age55MaleUniqueViewableImpressions=Math.round(100/(U.viewableImpressions/N)),U.age1617FemaleUniqueViewableImpressions=Math.round(100/(U.viewableImpressions/O)),U.age1824FemaleUniqueViewableImpressions=Math.round(100/(U.viewableImpressions/_)),U.age2534FemaleUniqueViewableImpressions=Math.round(100/(U.viewableImpressions/V)),U.age3544FemaleUniqueViewableImpressions=Math.round(100/(U.viewableImpressions/L)),U.age4554FemaleUniqueViewableImpressions=Math.round(100/(U.viewableImpressions/z)),U.age55FemaleUniqueViewableImpressions=Math.round(100/(U.viewableImpressions/G)),i[0].male=Math.round(-1*U.age1617MaleUniqueViewableImpressions),i[1].male=Math.round(-1*U.age1824MaleUniqueViewableImpressions),i[2].male=Math.round(-1*U.age2534MaleUniqueViewableImpressions),i[3].male=Math.round(-1*U.age3544MaleUniqueViewableImpressions),i[4].male=Math.round(-1*U.age4554MaleUniqueViewableImpressions),i[5].male=Math.round(-1*U.age55MaleUniqueViewableImpressions),i[0].female=Math.round(U.age1617FemaleUniqueViewableImpressions),i[1].female=Math.round(U.age1824FemaleUniqueViewableImpressions),i[2].female=Math.round(U.age2534FemaleUniqueViewableImpressions),i[3].female=Math.round(U.age3544FemaleUniqueViewableImpressions),i[4].female=Math.round(U.age4554FemaleUniqueViewableImpressions),i[5].female=Math.round(U.age55FemaleUniqueViewableImpressions),s[0].value=U.desktopReadings,s[1].value=U.mobileReadings,s[2].value=U.tabletReadings,I.validateData(),y.validateData(),C.validateData(),x.validateData(),e.$apply()}(S,v)};p.addListener("zoomed",function(S){w()}),e.toggleChapter=function(S){$.each(b,function(v,A){A.chapter.name===S&&(A.active=!A.active)}),f(function(){u(),w()},50)},u(),h.validateNow(),p.validateNow(),p.setDefaultPeriod(),w(),p.zoom(new Date(o.start),new Date)},function(){e.error=!0})})},function(){n.path("/")});var l=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:d,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],i=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],s=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.factory("specialService",["$http","$q","$rootScope",function(e,t,a){var r=[],c=[];return a.$on("$locationChangeSuccess",function(){r.length=0,c.length=0}),{getSpecial:function(s){var o=t.defer();return s?e.get(scope.apiEndpoint+"specials/"+s).then(function(b){o.resolve(b.data)},function(){o.reject()}):r.length>0?o.resolve(r.splice(0,1)[0]):c.push(o),o.promise},getSpecialInfo:function(s){var o=t.defer();return e.get(scope.apiEndpoint+"specials/"+s+"/ReportInfo").then(function(b){o.resolve(b.data)},function(){o.reject()}),o.promise},getSpecialCalendar:function(s){var o=t.defer();return e.get(scope.apiEndpoint+"specials/"+s+"/ReportCalendar").then(function(b){o.resolve(b.data)},function(){o.reject()}),o.promise},resolve:function(s,o){var b=t.defer();return c.length>s&&(s=c.length),e.get(scope.apiEndpoint+"specials/"+s+"/"+o).then(function(p){b.resolve(p.data),r.length=0,r.push.apply(r,p.data),c.forEach(function(h){r.length>0?h.resolve(r.splice(0,1)[0]):h.reject()}),c.length=0},function(){b.reject()}),b.promise},getActiveSpecials:function(){var s=t.defer();return e.get(scope.apiEndpoint+"specials/sections").then(function(o){s.resolve(o.data)},function(){s.reject()}),s.promise},getSpecialReport:function(s){var o=t.defer();return e.post(scope.apiEndpoint+"specials/report",s).then(function(b){o.resolve(b.data)},function(){o.reject()}),o.promise}}}]),app.controller("SponsoredArticleDetailController",["$rootScope","$scope","snipService","sponsoredArticleService","parserService","$location","sponsoredArticle","$timeout","$uibModal",function(e,t,a,r,c,g,f,n,d){t.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,t.isPreview=f?.isPreview,t.$on("$viewContentLoaded",function(){n(function(){t.viewContentLoaded=!0})});var l,h,i=function(){l=t.sponsoredArticle.assetReferences.reduce(function(h,I,y){return h[I.guid]=I,h},{})};if(t.resolveAsset=function(h){return l[h]},$(window).scroll(function(h){$(h.target).scrollTop()>100?$(".sponsoredArticleDetail-mobileNavigation-wrapper").addClass("sponsoredArticleDetail-mobileNavigation-wrapper-scrolled"):$(".sponsoredArticleDetail-mobileNavigation-wrapper").removeClass("sponsoredArticleDetail-mobileNavigation-wrapper-scrolled")}),t.recommendedArticles=[],t.recommendedArticlePairs=[],t.recommendedSnips=[],t.assetsMedia=[],t.assetsFacts=[],t.assetsQuestions=[],t.assetsComments=[],t.$parent&&(t.$parent.sponsoredArticleUpdater||t.$parent.$parent.sponsoredArticleUpdater))t.sponsoredArticleUpdater=!0,(t.$parent.sponsoredArticleUpdater?t.$parent:t.$parent.$parent).$on("articleUpdate",function(h,I){t.sponsoredArticle=I,c.postProcessHtml(t.sponsoredArticle),t.sponsoredArticle.detailsLoaded=!0,i(),t.$broadcast("$$rebind::refresh")});else{t.$watch(function(){return"sponsoredArticle.detailsLoaded"},function(h){h&&i()});var o=f.id;if("Redesign2024"!=e.scope.currentScope.network.settings.configurations.contentRenderEngine&&r.getRecommendedArticles(o).then(function(h){if(h.length){[].push.apply(t.recommendedArticles,h);for(var I=0;I<t.recommendedArticles.length;I+=2){var y=[];y.push(t.recommendedArticles[I]),t.recommendedArticles.length>I+1&&y.push(t.recommendedArticles[I+1]),t.recommendedArticlePairs.push(y)}}}),t.sponsoredArticle=f,c.postProcessHtml(t.sponsoredArticle),"Redesign2024"!=e.scope.currentScope.network.settings.configurations.contentRenderEngine&&a.getRecommendedSnips(o).then(function(h){t.recommendedSnips=h}),(h=window.navigator.userAgent).indexOf(" Android ")>-1&&h.indexOf("Version/")>-1&&parseFloat((h.match("Android ([0-9.]+)")||[])[1])<=4.4){var p=$(window).height();$(".app-mobile .sponsoredArticleDetail-wrapper").css("height",p+"px"),$(".app-desktop .sponsoredArticleDetail-wrapper").css("height",p+"px")}}t.assetImageFocuspointDialog=function(h){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return h}}})},t.share=function(){if(!window.plugins||!window.plugins.socialsharing)return;window._paq&&_paq.push(["trackEvent","Conversion","StartShareSponsoredArticle","SponsoredArticleDetail"]);let h=g.absUrl().substring(0,g.absUrl().lastIndexOf("/"));window.plugins.socialsharing.shareWithOptions({message:(t.sponsoredArticle.heading?t.sponsoredArticle.heading+": ":"")+t.sponsoredArticle.text+" "+h},function(){window._paq&&_paq.push(["trackEvent","Conversion","SuccessShareSponsoredArticle","SponsoredArticleDetail"])})}}]),app.controller("SponsoredArticleEditController",["$scope","sponsoredArticleService","metaService","$state","authService","fileUploadService","$location","$timeout","$uibModal","$rootScope","proseMirrorEditorService","editorCommentSponsoredArticleService","editorAssetsService","spellingService","backendHubProxy","assetService",function(e,t,a,r,c,g,f,n,d,l,i,s,o,b,p,h){e.initializedMobile=e.mobile,e.enableHighQualityImage=l.scope.network.settings.configurations.enableHighQualityImage,e.isRedesign="Redesign2024"==l.scope.network.settings.configurations.contentRenderEngine,e.forceArticleCoverDisabled=e.isRedesign&&(l.scope.currentScope.chapter.settings.configurations.forceArticleCoverDisabled??!1),e.revision={coverAssetImages:[],texts:[{heading:"",text:""}],chapterSlug:null},e.loaderOptions={width:20,height:20,visible:!0},e.isSaving=!1,e.$on("lazyImg:refresh",function(_,V){e.revision.coverAssetImages.forEach(L=>{L.guid==V&&L.cache++})}),e.$on("$destroy",function(){a.setFavicon()}),e.sponsoredArticleUpdater=!0;var x,I=r.params.id,y="sp_"+I+"_"+l.scope.currentScope.chapter.id,C=p("editorHub"),k=!1;e.sponsoredArticle={text:"",content:"",summary:"",heading:""},e.editor=null,e.changed=!1,e.loading=!0;var R=l.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");window.onbeforeunload=function(){if(e.changed)return R};var u=!1;l.$on("$stateChangeStart",function(_,V){u?_.preventDefault():e.changed&&!confirm(R)?(u=!0,_.preventDefault(),k=!1,n(function(){u=!1},1e3)):(e.changed=!1,k&&(C.invoke("leaveGroup",y),i.closeConnection(),C.stop(),k=!1))}),e.textCarousel=null,e.textSlick=null,e.textSlickIndex=0,e.coverAssetSlickIndex=0;var F=function(_){e.sponsoredArticle=_;var V=A(_);V?e.revision=V:_.revisions.push(e.revision),e.revision.texts.length||(V.texts=[{heading:"",text:""}]),x=v(_),n(function(){e.textCarousel||(e.textCarousel=$("#sponsoredArticleEdit-text-wrapper").find(".sponsoredArticleEdit-text-carousel"),e.textCarousel.on("afterChange",function(L,z){e.textSlickIndex=z.currentSlide})),e.coverAssetCarousel||(e.coverAssetCarousel=$("#sponsoredArticleEdit-cover-wrapper").find(".sponsoredArticleEdit-cover-carousel"),e.coverAssetCarousel.on("afterChange",function(L,z){e.coverAssetSlickIndex=z.currentSlide})),e.revision.texts.push({}),n(function(){e.revision.texts.splice(e.revision.texts.length-1,1),n(function(){e.textSlick=e.textCarousel.slick({dots:!0,initialSlide:e.textSlickIndex})},100)}),e.revision.coverAssetImages.push({}),n(function(){e.revision.coverAssetImages.splice(e.revision.coverAssetImages.length-1,1),n(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0,initialSlide:e.coverAssetSlickIndex})},100)})})};e.addTextVariant=function(){e.textSlick=e.textCarousel.slick("unslick"),n(function(){e.revision.texts.push({heading:"",text:""}),n(function(){e.textSlick=e.textCarousel.slick({dots:!0}),e.textSlick.slick("slickGoTo",e.revision.texts.length-1)})})},e.delTextVariant=function(){var _=e.textSlick.slick("slickCurrentSlide");e.textSlick.slick("slickRemove",_-1),e.revision.texts.splice(_,1),e.textSlick.slick("unslick"),e.revision.texts.push({}),n(function(){e.revision.texts.splice(e.revision.texts.length-1,1),n(function(){e.textSlick=e.textCarousel.slick({dots:!0}),_>0&&(e.textSlick.slick("slickGoTo",_-1),e.textSlickIndex=_-1)},100)})},e.mobileEditorFocused=!1,e.focusMobileEditor=function(){e.mobileEditorFocused=!0},e.blurMobileEditor=function(){e.mobileEditorFocused=!1},e.coverAssetCarousel=null,e.coverAssetSlick=null,e.delCoverAssetVariant=function(){if(e.revision.coverAssetImages.length>1){var _=e.coverAssetSlick.slick("slickCurrentSlide");e.coverAssetSlick.slick("slickRemove",_-1),e.revision.coverAssetImages.splice(_,1),e.coverAssetSlick.slick("unslick"),e.revision.coverAssetImages.push({}),n(function(){e.revision.coverAssetImages.splice(e.revision.coverAssetImages.length-1,1),n(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0}),_>0&&(e.coverAssetSlick.slick("slickGoTo",_-1),e.coverAssetSlickIndex=_-1)})})}},e.pickCoverAsset=function(_){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 2},single:function(){return!0},showOnlyImage:function(){return!1},hideInComments:function(){return!0},resultCallback:function(){return function(V){e.coverAssetSlick.slick("unslick"),_&&e.revision.coverAssetImages.length?e.revision.coverAssetImages[0]=V.assetImage:e.revision.coverAssetImages.push(V.assetImage),n(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0}),e.coverAssetSlick.slick("slickGoTo",e.revision.coverAssetImages.length-1)})}},sponsoredArticle:function(){return e.sponsoredArticle}}})},e.assetDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},showOnlyImage:function(){return!1},resultCallback:function(){return w},sponsoredArticle:function(){return e.sponsoredArticle}}})};var w=function(_){n(function(){e.insertAsset(_)},500)};e.insertAsset=function(_){if($("#assetModal").modal("hide"),e.initializedMobile){if(e.initializedMobile){var V=$("#sponsoredArticleEdit-editor-mobile")[0],L=V.selectionStart,z=V.selectionEnd,G=V.value,J=G.substring(0,L),H=G.substring(z,G.length),Y="\n!["+_.guid+"]\n";V.value=J+Y+H,n(function(){V.selectionStart=V.selectionEnd=L+Y.length,V.focus()})}}else{if(!e.editor)return;e.editor.replaceSelection("\n!["+_.guid+"]\n"),setTimeout(function(){e.editor.focus()},600)}},e.save=function(){for(var _=angular.copy(e.sponsoredArticle),V=e.revision.coverAssetImages.map(function(z){return z.id}),L=0;L<V.length;L++)if(V.lastIndexOf(V[L])>L)return void d.open({templateUrl:"/ClientApp/src/legacy-app/article/noDuplicateCoverAssetDialog.html"});e.isSaving=!0,_.texts=e.revision.texts,_.coverAssetImages=e.revision.coverAssetImages,_.summary=_.revisions[0].summary,_.jsonDocument=i.getDocument(),_.HtmlDocument=i.getHtmlDocument(),t.updateSponsoredArticle(_).then(function(z){e.changed=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),F(z.data)},function(){d.open({templateUrl:"/ClientApp/src/legacy-app/article/unableToSaveDialog.html"})}).finally(function(){e.isSaving=!1})},e.submit=function(){e.editForm.$submitted=!0},e.publish=function(_){if(e.editForm.$submitted=!0,_){var V=angular.copy(e.sponsoredArticle);t.publishSponsoredArticle(V).then(function(L){e.changed=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),F(L.data)},function(){})}},e.preview=!1,e.togglePreview=function(){if(e.preview=!e.preview,e.preview){var _=angular.copy(e.sponsoredArticle);_.content=i.getHtmlDocument(),_.assetReferences=_.assetReferences,_.text=e.revision.texts[0].text,_.heading=e.revision.texts[0].heading,_.summary=e.revision.summary,_.sponsored=!0,_.isPreview=!0,e.revision.coverAssetImages.length&&(_.coverAssetReference=_.assetReferences.filter(function(V){return V.assetImage&&V.assetImage.id===e.revision.coverAssetImages[0].id})[0]),e.previewArticle=angular.copy(_),n(function(){e.$broadcast("articleUpdate",_)},500)}};var v=function(_){var V=A(_);return angular.toJson(V.texts)+angular.toJson(V.coverAssetImages)+V.summary+V.jsonDocument},A=function(_){var V=e.scope.currentScope.chapter.slug,L=_.revisions.filter(function(G){return G.chapterSlug===V});if(L.length)return L[0];var z=_.revisions.filter(function(G){return null===G.chapterSlug});return z.length?z[0]:void 0},T=function(_,V){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},single:function(){return!1},showOnlyImage:function(){return!1},hideInComments:function(){return!0},resultCallback:function(){return function(L){if(V){i.setFocus();var z=[];$.each(L,function(G,J){z.push({guid:J.guid,type:J.assetImage?J.assetImage.type:J.assetText.type})}),V(z)}}},sponsoredArticle:function(){return e.sponsoredArticle}}})},D=function(_,V){d.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return V},messageHolder:function(){return new MessageHolder(e.sponsoredArticle)},sourceService:function(){return s}}})},m=function(_,V,L){d.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return L},onAddedCallback:function(){return V},messageHolder:function(){return new MessageHolder(e.sponsoredArticle)},chainComments:function(){return _},sourceService:function(){return s}}})},M=function(_){d.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return _}}})},E=function(_,V){d.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return V}}})},P=function(_){return o.getAsset(_,e.sponsoredArticle.assetReferences)},q=function(_){n(function(){A(e.sponsoredArticle).jsonDocument=_,e.numberOfWords=b.countWords(i.getHtmlDocument())})};$(".sponsoredArticleEdit-wrapper").scroll(function(){!function _(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),C.on("broadcastSummary",function(_){e.revision.summary=_}),C.on("broadcastHeading",function(_){e.revision.texts[_.indexPosition].heading=_.heading}),C.on("broadcastAddVariant",function(){e.addTextVariant(!1)}),C.on("broadcastDeleteVariant",function(_){e.delTextVariant(!1,_.indexPosition)}),C.on("broadcastTitle",function(_){e.revision.texts[_.indexPosition].text=_.title}),C.start(function(){C.invoke("joinGroup",y)}),e.leaveEditor=function(){k=!0},e.blurHeading=function(_){C.invoke("updatingHeading",{groupName:y,heading:e.revision.texts[_].heading,indexPosition:_})},e.blurTitle=function(_){C.invoke("updatingTitle",{groupName:y,title:e.revision.texts[_].text,indexPosition:_})},e.blurSummary=function(){C.invoke("updatingSummary",{groupName:y,summary:e.revision.summary})},t.getSponsoredArticleEdit(I).then(function(_){e.loading=!1,F(_),i.init({docID:"sparticle_"+_.id+"_"+scope.currentChapter.slug,assetDlgFactory:T,commentCreationDlgFactory:D,commentMgmtDlgFactory:m,initialDocument:A(_).jsonDocument,initialAssetReferences:_.assetReferences,createLinkFactory:M,callToActionDlgFactory:E,assetResolver:P,onNewStateFactory:q,onLoadTransactionCallback:q,languageCode:l.scope.currentScope.network.settings.languageCode}),a.setFavicon(!0),e.$watch(function(){return v(e.sponsoredArticle)},function(_){e.changed=x!==_})},function(){f.path("/")}),e.changeCoverButtonOptions={onClick:function(){e.pickCoverAsset(!0)},text:l.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_cover_changeCoverAsset"),icon:"fa-regular fa-image",hint:l.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_cover_changeCoverAsset")},e.deleteCoverButton={onClick:function(){h.removeReference(e.revision.coverAssetImages[0]),e.revision.coverAssetImages=[],e.coverAssetCarousel=[]},text:"",icon:"fa fa-trash",hint:l.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_deleteVariantTooltip")}}]),app.controller("SponsoredArticleListController",["$scope","$timeout","$rootScope","sponsoredArticleService",function(e,t,a,r){r.getSponsoredArticles().then(function(c){e.sponsoredArticles=c,t(function(){a.$emit("lazyImg:refresh")})})}]),app.factory("sponsoredArticleService",["$http","$q",function(e,t){var l=[];return{getSponsoredArticles:function(){var p=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles").then(function(h){p.resolve(h.data)}),p.promise},getSponsoredArticle:function(p,h){var I=t.defer(),y=scope.apiEndpoint+"sponsoredArticles/"+p;return h&&(y=y+"?v="+h),e.get(y).then(function(C){I.resolve(C.data)}),I.promise},getSponsoredArticlesForEventCalendar:function(){var p=t.defer();return 0===l.length?e.get(scope.apiEndpoint+"sponsoredArticles/events").then(function(h){p.resolve(l=h.data)},function(){p.reject()}):p.resolve(l),p.promise},getSponsoredArticleEdit:function(p){var h=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/"+p+"/edit").then(function(I){h.resolve(I.data)},function(I){h.reject()}),h.promise},getRecommendedArticles:function(p){var h=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/"+p+"/recommendedarticles").then(function(I){h.resolve(I.data)}),h.promise},getSponsoredArticleParse:function(p,h){var I=t.defer();return e.post(scope.apiEndpoint+"sponsoredArticles/"+p+"/parse",h).then(function(y){I.resolve(y.data)},function(){I.reject()}),I.promise},updateSponsoredArticle:function(p){var h=t.defer();return e.put(scope.apiEndpoint+"sponsoredArticles",p).then(function(I){angular.copy(I.data,p),h.resolve(I)},function(){h.reject()}),h.promise},publishSponsoredArticle:function(p){var h=t.defer();return e.put(scope.apiEndpoint+"sponsoredArticles/"+p.id+"/publish",p).then(function(I){h.resolve(I)},function(){h.reject()}),h.promise}}}]),app.controller("SponsoredArticleCampaignElasticReportController",["$scope","$rootScope","sponsoredArticleCampaignService","formatterService","scopeService","$timeout","$location","$stateParams",function(e,t,a,r,c,g,f,n){var d=getComputedStyle(document.querySelector("body")).getPropertyValue("--color1-alpha50");e.dateFormatString=r.getShortDateFormatString();var i,s,o,b,l=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],p={impressions:0,readings:0,billableImpressions:0,uniqueImpressions:0,uniqueReadings:0,uniqueReadingPercentageReads:0,uniqueViewableImpressions:0,activeTimeSeconds:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,end:moment(new Date).startOf("day").toDate()},h=[],I=[],y=[];a.GetSponsoredArticleReport(n.pin).then(function(C){var x=C.chapterReports,u=function(){(i=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",marginRight:80,marginTop:7,path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:h,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).validateData(),i.addListener("zoomed",function(){var S,v;p.start=moment(i.startDate).startOf("day").toDate(),p.end=moment(i.endDate).startOf("day").toDate(),s.zoom(p.start,moment(p.end).startOf("day").add(1,"d").toDate()),S=moment(p.start).startOf("day").add(1,"d").toDate(),v=moment(p.end).startOf("day").add(2,"d").toDate(),$.each(x,function(A,T){T.chapter=c.getChapter(T.chapterSlug),a.getChapterReport({chapterId:T.chapter.id,start:S,end:v,pin:C.sponsoredArticleCampaign.pin,sponsoredArticleCampaignId:C.sponsoredArticleCampaign.id}).then(function(D){T.reports=D,w()}),i.validateData(),s.validateData(),o.validateData(),b.validateData()})}),s=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:"Gesamt",color:d,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"readings",toField:"readings"}],dataProvider:I,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:t.scope.currentScope.network.resources.web_report_viewableImpressions+": <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:t.scope.currentScope.network.resources.web_reportArticle_articleCallsHeading,percentHeight:30,stockGraphs:[{valueField:"readings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:t.scope.currentScope.network.resources.web_report_views+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),o=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:l,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:d,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),b=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[p],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:d,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:d,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:d,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:d,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}})};AmCharts.isReady?u():AmCharts.ready(u),e.sponsoredArticleCampaign=C.sponsoredArticleCampaign,e.sponsoredArticleCampaign.report=x,$.each(x,function(S,v){v.active=!0,v.variants.length&&$.each(v.variants,function(A,T){T.viewableImpressions>0&&(x.hasVariants=!0,T.hasViews=!0)})});for(var U=new Date(C.sponsoredArticleCampaign.start);U<=moment(new Date).startOf("day").add(1,"d").toDate();U.setDate(U.getDate()+1)){var F={start:new Date(U),viewableImpressions:0,readings:0};y[F.start.toDateString()]=F,I.push(F)}p.start=moment(C.sponsoredArticleCampaign.start).startOf("day").toDate(),e.summary=p;var w=function(){if(x.hasVariants=!1,$.each(I,function(v,A){A.readings=0,A.viewableImpressions=0}),p.impressions=0,p.billableImpressions=0,p.readings=0,p.billableReadings=0,p.uniqueImpressions=0,p.uniqueReadings=0,p.uniqueReadingPercentageReads=0,p.uniqueViewableImpressions=0,p.activeTimeSeconds=0,p.uniqueReadingsHavingViewableImpressions=0,p.uniqueReadingPercentage24Reads=0,p.uniqueReadingPercentage2549Reads=0,p.uniqueReadingPercentage5074Reads=0,p.uniqueReadingPercentage75100Reads=0,l[0].value=0,l[1].value=0,l[2].value=0,$.each(x,function(v,A){if(A.active){var T=0;$.each(A.reports,function(D,m){var M=!1;$.each(C.sponsoredArticleCampaign.sponsoredArticles,function(E,P){P.id===m.sponsoredArticleId&&P.active&&(M=!0)}),M&&(m.billableImpressionCalendar.length&&$.each(m.billableImpressionCalendar,function(E,P){y[new Date(P.day).toDateString()].viewableImpressions+=P.data}),m.readingCalendar.length&&$.each(m.readingCalendar,function(E,P){y[new Date(P.day).toDateString()].readings+=P.data}),p.impressions+=m.impressions,p.billableImpressions+=m.billableImpressions,p.readings+=m.readings,p.billableReadings+=m.billableReadings,p.uniqueReadings+=m.uniqueReadings,p.uniqueReadingsHavingViewableImpressions+=m.uniqueReadingsHavingViewableImpressions,p.uniqueImpressions+=m.uniqueImpressions,p.uniqueReadingPercentageReads+=m.uniqueReadingPercentageReads,p.activeTimeSeconds+=m.activeTimeSeconds,p.uniqueReadingPercentage24Reads+=m.uniqueReadingPercentage24Reads,p.uniqueReadingPercentage2549Reads+=m.uniqueReadingPercentage2549Reads,p.uniqueReadingPercentage5074Reads+=m.uniqueReadingPercentage5074Reads,p.uniqueReadingPercentage75100Reads+=m.uniqueReadingPercentage75100Reads,T+=m.desktopCount+m.mobileCount+m.tabletCount,l[0].value+=m.desktopCount,l[1].value+=m.mobileCount,l[2].value+=m.tabletCount)}),l[0].value=Math.round(l[0].value/T*100),l[1].value=Math.round(l[1].value/T*100),l[2].value=Math.round(l[2].value/T*100),A.variants.length&&$.each(A.variants,function(D,m){m.viewableImpressions>0&&(x.hasVariants=!0,m.hasViews=!0)})}}),x.length>1){var S=x.filter(function(v){return v.active}).length;l[0].value=Math.round(l[0].value/S),l[1].value=Math.round(l[1].value/S),l[2].value=Math.round(l[2].value/S)}i.validateData(),s.validateData(),o.validateData(),b.validateData()};e.toggleChapter=function(S){$.each(x,function(v,A){null!==A.chapter&&A.chapter.name===S&&(A.active=!A.active)}),w()},e.toggleReport=function(S){$.each(C.sponsoredArticleCampaign.sponsoredArticles,function(v,A){A.guid===S.guid&&(A.active=!A.active)}),w()},$.each(x,function(S,v){v.chapter=c.getChapter(v.chapterSlug),a.getChapterReport({chapterId:v.chapter.id,start:C.sponsoredArticleCampaign.start,end:moment(new Date).startOf("day").add(2,"d").toDate(),pin:C.sponsoredArticleCampaign.pin,sponsoredArticleCampaignId:C.sponsoredArticleCampaign.id}).then(function(A){v.reports=A,w(),$.each(C.sponsoredArticleCampaign.sponsoredArticles,function(T,D){D.active=!0}),$.each(I,function(T,D){h.push({start:D.start,viewableImpressions:D.viewableImpressions})})}),i.validateData(),s.validateData(),o.validateData(),b.validateData()})})}]),app.factory("sponsoredArticleCampaignService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,r,c,g){var f=[],d=function(){var b=t.defer();return f.length>0?b.resolve(f):e.get(scope.apiEndpoint+"SponsoredArticleCampaigns").then(function(p){angular.copy(p.data,f),b.resolve(f)},function(){b.reject()}),b.promise};function l(b){var p=null;return $.each(f,function(h,I){if(I.pin===b)return p=I,!1}),p}return{sponsoredArticleCampaigns:f,getsponsoredArticleCampaigns:d,getreportSponsoredArticleCalendar:function(b){var p=t.defer();return e.get(scope.apiEndpoint+"SponsoredArticleCampaigns/"+b+"/ReportSponsoredArticleCalendar").then(function(h){p.resolve(h.data)},function(){p.reject()}),p.promise},getsponsoredArticleCampaignByPin:function(b){var p=t.defer();if(f.length>0){var h=l(b);h?p.resolve(h):e.get(scope.apiEndpoint+"/SponsoredArticleCampaigns"+b).then(function(I){p.resolve(I.data)},function(){p.reject()})}else d().then(function(){var I=l(b);I?p.resolve(I):e.get(scope.apiEndpoint+"sponsoredArticleCampaigns/"+b).then(function(y){p.resolve(y.data)},function(){p.reject()})},function(){p.reject()});return p.promise},GetSponsoredArticleReport:function(b){var p=t.defer();return e.get(scope.apiEndpoint+"SponsoredArticleCampaigns/"+b+"/Elastic").then(function(h){p.resolve(h.data)},function(){p.reject()}),p.promise},getChapterReport:function(b){var p=t.defer();return e.post(scope.apiEndpoint+"SponsoredArticleCampaigns/chapterReport",b).then(function(h){p.resolve(h.data)},function(){p.reject()}),p.promise}}}]),app.controller("sponsoredArticleCampaignReportController",["$scope","$rootScope","sponsoredArticleCampaignService","articleService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,r,c,g,f,n,d){AmCharts.isReady=!0;var l=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getsponsoredArticleCampaignByPin(g.pin).then(function(b){e.sponsoredArticleCampaign=b,a.getreportSponsoredArticleCalendar(b.pin).then(function(p){p.forEach(function(h){h.chapter=c.getChapter(h.chapterSlug),h.reports.forEach(function(I){I.calendar.forEach(function(y){y.start=moment(y.start.replace("Z","")).toDate(),y.end=moment(y.end.replace("Z","")).toDate()})})}),b.report=p,n(function(){var h,I,y,C,x,k,R=new Set;$.each(p,function(v,A){A.active=!0,R.add(A.chapter.name)}),p.uniqueChapters=[],R.forEach(function(v){p.uniqueChapters.push(v)}),$.each(b.sponsoredArticles,function(v,A){A.reportActive=!0});var u=[],U=function(){u.length=0,p.hasVariants=!1,$.each(p[0].reports[0].calendar,function(v,A){u.push({start:A.start,end:A.end,viewableImpressions:0,billableViewableImpressions:0,uniqueViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueViewableImpressions:0,femaleUniqueViewableImpressions:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueViewableImpressions:0,age1824MaleUniqueViewableImpressions:0,age2534MaleUniqueViewableImpressions:0,age3544MaleUniqueViewableImpressions:0,age4554MaleUniqueViewableImpressions:0,age55MaleUniqueViewableImpressions:0,age1617FemaleUniqueViewableImpressions:0,age1824FemaleUniqueViewableImpressions:0,age2534FemaleUniqueViewableImpressions:0,age3544FemaleUniqueViewableImpressions:0,age4554FemaleUniqueViewableImpressions:0,age55FemaleUniqueViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0})}),$.each(p,function(v,A){A.active&&(p[v-1]&&2===p[v-1].chapter.managementState&&2===A.chapter.managementState&&p[v-1].chapter.name!==A.chapter.name&&(p.multiChapterShipment=!0),$.each(A.reports,function(T,D){D.variants&&(b.report.hasVariants=!0,$.each(D.variants,function(m,M){M.viewableImpressions>0&&(M.hasViews=!0)}))}),$.each(A.reports,function(T,D){if(b.sponsoredArticles[T].reportActive){var m=D.sponsoredArticle.Id;$.each(D.calendar,function(M,E){E.sponsoredArticleId=m,u[M].uniqueViewableImpressions+=E.uniqueViewableImpressions,u[M].viewableImpressions+=E.viewableImpressions,u[M].billableViewableImpressions+=E.billableViewableImpressions,u[M].activeTimeSeconds+=E.activeTimeSeconds,u[M].readings+=E.readings,u[M].uniqueReadingPercentageReads+=E.uniqueReadingPercentageReads,u[M].maleUniqueViewableImpressions+=E.maleUniqueViewableImpressions,u[M].femaleUniqueViewableImpressions+=E.femaleUniqueViewableImpressions,u[M].uniqueReadings+=E.uniqueReadings,u[M].uniqueReadingsHavingViewableImpressions+=E.uniqueReadingsHavingViewableImpressions,u[M].uniqueReadingPercentage24Reads+=E.uniqueReadingPercentage24Reads,u[M].uniqueReadingPercentage2549Reads+=E.uniqueReadingPercentage2549Reads,u[M].uniqueReadingPercentage5074Reads+=E.uniqueReadingPercentage5074Reads,u[M].uniqueReadingPercentage75100Reads+=E.uniqueReadingPercentage75100Reads,u[M].desktopReadings+=E.desktopReadings,u[M].mobileReadings+=E.mobileReadings,u[M].tabletReadings+=E.tabletReadings,u[M].age1617MaleUniqueViewableImpressions+=E.age1617MaleUniqueViewableImpressions,u[M].age1824MaleUniqueViewableImpressions+=E.age1824MaleUniqueViewableImpressions,u[M].age2534MaleUniqueViewableImpressions+=E.age2534MaleUniqueViewableImpressions,u[M].age3544MaleUniqueViewableImpressions+=E.age3544MaleUniqueViewableImpressions,u[M].age4554MaleUniqueViewableImpressions+=E.age4554MaleUniqueViewableImpressions,u[M].age55MaleUniqueViewableImpressions+=E.age55MaleUniqueViewableImpressions,u[M].age1617FemaleUniqueViewableImpressions+=E.age1617FemaleUniqueViewableImpressions,u[M].age1824FemaleUniqueViewableImpressions+=E.age1824FemaleUniqueViewableImpressions,u[M].age2534FemaleUniqueViewableImpressions+=E.age2534FemaleUniqueViewableImpressions,u[M].age3544FemaleUniqueViewableImpressions+=E.age3544FemaleUniqueViewableImpressions,u[M].age4554FemaleUniqueViewableImpressions+=E.age4554FemaleUniqueViewableImpressions,u[M].age55FemaleUniqueViewableImpressions+=E.age55FemaleUniqueViewableImpressions})}}))}),I.validateData(),h.validateData()},F=p.summary={};h=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:u,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),I=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:l,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:u,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_reportSponsoredArticle_uniqueReadersAmount"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),y=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,marginLeft:2,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),C=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:s,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:l,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(v){return-1*v.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(v){return v<0?-1*v+"":v+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),x=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:l,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),k=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[F],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:l,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:l,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:l,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:l,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var S=function(){var v=moment(h.startDate).startOf("day").toDate(),A=moment(h.endDate).startOf("day").add(-1,"d").toDate();I.zoom(v,moment(A).add(1,"d").toDate()),function(v,A){F.viewableImpressions=0,F.billableViewableImpressions=0,F.uniqueViewableImpressions=0,F.activeTimeSeconds=0,F.readings=0,F.uniqueReadings=0,F.uniqueReadingsHavingViewableImpressions=0,F.uniqueReadingPercentageReads=0,F.maleUniqueViewableImpressions=0,F.femaleUniqueViewableImpressions=0,F.desktopReadings=0,F.mobileReadings=0,F.tabletReadings=0,F.age1617MaleUniqueViewableImpressions=0,F.age1824MaleUniqueViewableImpressions=0,F.age2534MaleUniqueViewableImpressions=0,F.age3544MaleUniqueViewableImpressions=0,F.age4554MaleUniqueViewableImpressions=0,F.age55MaleUniqueViewableImpressions=0,F.age1617FemaleUniqueViewableImpressions=0,F.age1824FemaleUniqueViewableImpressions=0,F.age2534FemaleUniqueViewableImpressions=0,F.age3544FemaleUniqueViewableImpressions=0,F.age4554FemaleUniqueViewableImpressions=0,F.age55FemaleUniqueViewableImpressions=0,F.uniqueReadingPercentage24Reads=0,F.uniqueReadingPercentage2549Reads=0,F.uniqueReadingPercentage5074Reads=0,F.uniqueReadingPercentage75100Reads=0;var T=0,D=0,m=0,M=0,E=0,P=0,q=0,N=0,O=0,_=0,V=0,L=0,z=0,G=0,J=0;F.start=v,F.end=A,$.each(u,function(Z,Q){var ae=new Date(Q.start);ae<v||ae>A||(F.viewableImpressions+=Q.viewableImpressions,F.billableViewableImpressions+=Q.billableViewableImpressions,F.uniqueViewableImpressions+=Q.uniqueViewableImpressions,F.activeTimeSeconds+=Q.activeTimeSeconds,F.readings+=Q.readings,F.uniqueReadingPercentageReads+=Q.uniqueReadingPercentageReads,F.maleUniqueViewableImpressions+=Q.maleUniqueViewableImpressions,F.femaleUniqueViewableImpressions+=Q.femaleUniqueViewableImpressions,F.uniqueReadings+=Q.uniqueReadings,F.uniqueReadingsHavingViewableImpressions+=Q.uniqueReadingsHavingViewableImpressions,F.uniqueReadingPercentage24Reads+=Q.uniqueReadingPercentage24Reads,F.uniqueReadingPercentage2549Reads+=Q.uniqueReadingPercentage2549Reads,F.uniqueReadingPercentage5074Reads+=Q.uniqueReadingPercentage5074Reads,F.uniqueReadingPercentage75100Reads+=Q.uniqueReadingPercentage75100Reads,T+=Q.desktopReadings,D+=Q.mobileReadings,m+=Q.tabletReadings,M+=Q.age1617MaleUniqueViewableImpressions,E+=Q.age1824MaleUniqueViewableImpressions,P+=Q.age2534MaleUniqueViewableImpressions,q+=Q.age3544MaleUniqueViewableImpressions,N+=Q.age4554MaleUniqueViewableImpressions,O+=Q.age55MaleUniqueViewableImpressions,_+=Q.age1617FemaleUniqueViewableImpressions,V+=Q.age1824FemaleUniqueViewableImpressions,L+=Q.age2534FemaleUniqueViewableImpressions,z+=Q.age3544FemaleUniqueViewableImpressions,G+=Q.age4554FemaleUniqueViewableImpressions,J+=Q.age55FemaleUniqueViewableImpressions)});var H=T+D+m;F.desktopReadings=Math.round(100/(H/T)),F.mobileReadings=Math.round(100/(H/D)),F.tabletReadings=Math.round(100/(H/m)),F.maleUniqueViewableImpressions=Math.round(F.maleUniqueViewableImpressions),F.femaleUniqueViewableImpressions=Math.round(F.femaleUniqueViewableImpressions),i[0].value=F.femaleUniqueViewableImpressions,i[1].value=F.maleUniqueViewableImpressions;var Y=F.viewableImpressions-(M+E+P+q+N+O+_+V+L+z+G+J);Y>100&&(M+=Y*t.scope.globalSettings.reportAverageAge1617Male,E+=Y*t.scope.globalSettings.reportAverageAge1824Male,P+=Y*t.scope.globalSettings.reportAverageAge2534Male,q+=Y*t.scope.globalSettings.reportAverageAge3544Male,N+=Y*t.scope.globalSettings.reportAverageAge4554Male,O+=Y*t.scope.globalSettings.reportAverageAge55Male,_+=Y*t.scope.globalSettings.reportAverageAge1617Female,V+=Y*t.scope.globalSettings.reportAverageAge1824Female,L+=Y*t.scope.globalSettings.reportAverageAge2534Female,z+=Y*t.scope.globalSettings.reportAverageAge3544Female,G+=Y*t.scope.globalSettings.reportAverageAge4554Female,J+=Y*t.scope.globalSettings.reportAverageAge55Female),F.age1617MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/M)),F.age1824MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/E)),F.age2534MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/P)),F.age3544MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/q)),F.age4554MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/N)),F.age55MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/O)),F.age1617FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/_)),F.age1824FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/V)),F.age2534FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/L)),F.age3544FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/z)),F.age4554FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/G)),F.age55FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/J)),s[0].male=Math.round(-1*F.age1617MaleUniqueViewableImpressions),s[1].male=Math.round(-1*F.age1824MaleUniqueViewableImpressions),s[2].male=Math.round(-1*F.age2534MaleUniqueViewableImpressions),s[3].male=Math.round(-1*F.age3544MaleUniqueViewableImpressions),s[4].male=Math.round(-1*F.age4554MaleUniqueViewableImpressions),s[5].male=Math.round(-1*F.age55MaleUniqueViewableImpressions),s[0].female=Math.round(F.age1617FemaleUniqueViewableImpressions),s[1].female=Math.round(F.age1824FemaleUniqueViewableImpressions),s[2].female=Math.round(F.age2534FemaleUniqueViewableImpressions),s[3].female=Math.round(F.age3544FemaleUniqueViewableImpressions),s[4].female=Math.round(F.age4554FemaleUniqueViewableImpressions),s[5].female=Math.round(F.age55FemaleUniqueViewableImpressions),o[0].value=F.desktopReadings,o[1].value=F.mobileReadings,o[2].value=F.tabletReadings,y.validateData(),C.validateData(),x.validateData(),k.validateData(),e.$apply()}(v,A)};h.addListener("zoomed",function(){S()}),e.toggleReport=function(v){$.each(b.sponsoredArticles,function(A,T){T.guid===v.guid&&(T.reportActive=!T.reportActive)}),n(function(){U(),S()},50)},e.toggleChapter=function(v){$.each(p,function(A,T){T.chapter.name===v&&(T.active=!T.active)}),n(function(){U(),S()},50)},U(),I.validateNow(),h.validateNow(),h.setDefaultPeriod(),S()},function(){e.error=!0})})},function(){d.path("/")});var i=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:l,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],s=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.controller("StaticArticleDetailController",["$rootScope","$scope","snipService","parserService","$location","staticArticle","$timeout","$uibModal",function(e,t,a,r,c,g,f,n){t.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,t.isPreview=g?.isPreview,t.$on("$viewContentLoaded",function(){f(function(){t.viewContentLoaded=!0})});var d,p,l=function(){d=t.staticArticle.assetReferences.reduce(function(p,h,I){return p[h.guid]=h,p},{})};if(t.resolveAsset=function(p){return d[p]},$(window).scroll(function(p){$(p.target).scrollTop()>100?$(".staticArticleDetail-mobileNavigation-wrapper").addClass("staticArticleDetail-mobileNavigation-wrapper-scrolled"):$(".staticArticleDetail-mobileNavigation-wrapper").removeClass("staticArticleDetail-mobileNavigation-wrapper-scrolled")}),t.recommendedArticles=[],t.recommendedArticlePairs=[],t.recommendedSnips=[],t.assetsMedia=[],t.assetsFacts=[],t.assetsQuestions=[],t.assetsComments=[],t.staticArticleUpdater)(t.$parent.staticArticleUpdater?t.$parent:t.$parent.$parent).$on("staticArticleUpdater",function(p,h){t.staticArticle=h,r.postProcessHtml(t.staticArticle),t.staticArticle.detailsLoaded=!0,l(),t.$broadcast("$$rebind::refresh")});else{t.$watch(function(){return"staticArticle.detailsLoaded"},function(p){p&&l()});var s=g.id;if(t.staticArticle=g,r.postProcessHtml(t.staticArticle),a.getRecommendedSnips(s).then(function(p){t.recommendedSnips=p}),(p=window.navigator.userAgent).indexOf(" Android ")>-1&&p.indexOf("Version/")>-1&&parseFloat((p.match("Android ([0-9.]+)")||[])[1])<=4.4){var b=$(window).height();$(".app-mobile .staticArticleDetail-wrapper").css("height",b+"px"),$(".app-desktop .staticArticleDetail-wrapper").css("height",b+"px")}}t.assetImageFocuspointDialog=function(p){n.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return p}}})},t.share=function(){!window.plugins||!window.plugins.socialsharing||(window._paq&&_paq.push(["trackEvent","Conversion","StartSharestaticArticle","staticArticleDetail"]),window.plugins.socialsharing.shareWithOptions({message:(t.staticArticle.heading?t.staticArticle.heading+": ":"")+t.staticArticle.text+" "+c.absUrl()},function(){window._paq&&_paq.push(["trackEvent","Conversion","SuccessSharestaticArticle","staticArticleDetail"])}))}}]),app.controller("StaticArticleEditController",["$scope","$window","staticArticleService","metaService","$state","authService","fileUploadService","$location","$timeout","$uibModal","$rootScope","staticArticleId","proseMirrorEditorService","editorCommentStaticArticleService","editorAssetsService","spellingService","backendHubProxy","assetService",function(e,t,a,r,c,g,f,n,d,l,i,s,o,b,p,h,I,y){var C=I("editorHub");e.revision={coverAssetImages:[],texts:[{heading:"",text:""}],chapterSlug:null};var x="static_"+s+"_"+i.scope.currentScope.chapter.id;e.enableHighQualityImage=i.scope.network.settings.configurations.enableHighQualityImage,e.isRedesign="Redesign2024"==i.scope.network.settings.configurations.contentRenderEngine,e.forceArticleCoverDisabled=e.isRedesign&&(i.scope.currentScope.chapter.settings.configurations.forceArticleCoverDisabled??!1),e.$on("lazyImg:refresh",function(V,L){e.revision.coverAssetImages.forEach(z=>{z.guid==L&&z.cache++})}),e.loaderOptions={width:20,height:20,visible:!0},e.isSaving=!1,e.$on("$destroy",function(){r.setFavicon()}),e.staticArticleUpdater=!0;var R,k=!1;e.staticArticle={text:"",content:"",summary:"",heading:""},e.editor=null,e.changed=!1,e.loading=!0;var u=i.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");window.onbeforeunload=function(){if(e.changed)return u};var U=!1;i.$on("$stateChangeStart",function(V,L){U?V.preventDefault():e.changed&&!confirm(u)?(U=!0,V.preventDefault(),k=!1,d(function(){U=!1},1e3)):(e.changed=!1,k&&(C.invoke("leaveGroup",x),o.closeConnection(),C.stop(),k=!1))}),e.textCarousel=null,e.textSlick=null,e.textSlickIndex=0,e.coverAssetSlickIndex=0;var w=function(V){e.staticArticle=V;var L=T(V);L?e.revision=L:V.revisions.push(e.revision),R=A(V),d(function(){e.textCarousel||(e.textCarousel=$("#staticArticleEdit-text-wrapper").find(".staticArticleEdit-text-carousel"),e.textCarousel.on("afterChange",function(z,G){e.textSlickIndex=G.currentSlide})),e.coverAssetCarousel||(e.coverAssetCarousel=$("#staticArticleEdit-cover-wrapper").find(".staticArticleEdit-cover-carousel"),e.coverAssetCarousel.on("afterChange",function(z,G){e.coverAssetSlickIndex=G.currentSlide})),d(function(){})})};e.coverAssetCarousel=null,e.coverAssetSlick=null,e.delCoverAssetVariant=function(){e.revision.coverAssetImages=[],e.revision.coverAssetImageId=null},e.pickCoverAsset=function(V){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 2},single:function(){return!0},showOnlyImage:function(){return!0},hideInComments:function(){return!0},resultCallback:function(){return function(L){V&&e.revision.coverAssetImages.length?e.revision.coverAssetImages[0]=L.assetImage:e.revision.coverAssetImages.push(L.assetImage)}},staticArticle:function(){return e.staticArticle}}})},e.assetDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},showOnlyImage:function(){return!1},resultCallback:function(){return S},staticArticle:function(){return e.staticArticle}}})};var S=function(V){d(function(){e.insertAsset(V)},500)};e.insertAsset=function(V){if($("#assetModal").modal("hide"),e.initializedMobile){if(e.initializedMobile){var L=$("#staticArticleEdit-editor-mobile")[0],z=L.selectionStart,G=L.selectionEnd,J=L.value,H=J.substring(0,z),Y=J.substring(G,J.length),Z="\n!["+V.guid+"]\n";L.value=H+Z+Y,d(function(){L.selectionStart=L.selectionEnd=z+Z.length,L.focus()})}}else{if(!e.editor)return;e.editor.replaceSelection("\n!["+V.guid+"]\n"),setTimeout(function(){e.editor.focus()},600)}},e.save=function(){var V={id:e.staticArticle.id,title:e.revision.title,heading:e.revision.heading,summary:e.revision.summary,htmlDocument:o.getHtmlDocument(),jsonDocument:o.getDocument()};null!==e.staticArticle.revisions[0].coverAssetImages&&e.staticArticle.revisions[0].coverAssetImages.length>0&&(V.coverAssetImageId=e.revision.coverAssetImages[0].id),e.isSaving=!0,a.updateStaticArticle(V).then(function(L){e.changed=!1,w(L.data)},function(){l.open({templateUrl:"/ClientApp/src/legacy-app/article/unableToSaveDialog.html"})}).finally(function(){e.isSaving=!1})},e.submit=function(){e.editForm.$submitted=!0},e.publish=function(V){e.editForm.$submitted=!0,V&&a.publishStaticArticle(e.staticArticle).then(function(L){e.changed=!1,w(L.data)},function(){})},e.preview=!1,e.togglePreview=function(){if(e.preview=!e.preview,e.preview){var V=angular.copy(e.staticArticle);V.content=o.getHtmlDocument(),V.assetReferences=V.assetReferences,V.title=e.revision.title,V.heading=e.revision.heading,V.summary=e.revision.summary,V.isPreview=!0,e.revision.coverAssetImages.length&&(V.coverAssetReference=V.assetReferences.filter(function(L){return L.assetImage&&L.assetImage.id===e.revision.coverAssetImages[0].id})[0]),e.previewArticle=angular.copy(V),d(function(){e.$broadcast("staticArticleUpdater",V)},500)}};var A=function(V){var L=T(V);return angular.toJson(L.coverAssetImages)+L.summary+L.jsonDocument+L.title+L.heading},T=function(V){return V.revisions[0]},D=function(V,L){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},single:function(){return!1},showOnlyImage:function(){return!1},hideInComments:function(){return!0},resultCallback:function(){return function(z){if(L){o.setFocus();var G=[];$.each(z,function(J,H){var Y=null;H.assetImage&&(Y=H.assetImage.type),H.assetText&&(Y=H.assetText.type),H.assetArticle&&(Y=H.assetArticle.type),H.assetFile&&(Y=H.assetFile.type),H.assetStaticArticle&&(Y=H.assetStaticArticle.type),G.push({guid:H.guid,type:Y})}),L(G)}}},staticArticle:function(){return e.staticArticle}}})},m=function(V,L){l.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return L},messageHolder:function(){return new MessageHolder(e.staticArticle)},sourceService:function(){return b}}})},M=function(V,L,z){l.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return z},onAddedCallback:function(){return L},messageHolder:function(){return new MessageHolder(e.staticArticle)},chainComments:function(){return V},sourceService:function(){return b}}})},E=function(V){l.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return V}}})},P=function(V,L){l.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return L}}})},q=function(V){return p.getAsset(V,e.staticArticle.assetReferences)},N=function(V){d(function(){T(e.staticArticle).jsonDocument=V,e.numberOfWords=h.countWords(o.getHtmlDocument())})};$(".staticArticleEdit-wrapper").scroll(function(){!function V(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),C.on("broadcastSummary",function(V){e.revision.summary=V}),C.on("broadcastHeading",function(V){e.revision.heading=V.heading}),C.on("broadcastTitle",function(V){e.revision.title=V.title}),C.start(function(){C.invoke("joinGroup",x)}),e.leaveEditor=function(){k=!0},e.blurHeading=function(){C.invoke("updatingHeading",{groupName:x,heading:e.revision.heading})},e.blurTitle=function(){C.invoke("updatingTitle",{groupName:x,title:e.revision.title})},e.blurSummary=function(){C.invoke("updatingSummary",{groupName:x,summary:e.revision.summary})},a.getStaticArticleEdit(s).then(function(V){e.loading=!1,w(V),r.setFavicon(!0),o.init({docID:"staticArticle_"+V.id+"_"+V.chapterId,assetDlgFactory:D,commentCreationDlgFactory:m,commentMgmtDlgFactory:M,initialDocument:T(V).jsonDocument,initialAssetReferences:V.assetReferences,createLinkFactory:E,callToActionDlgFactory:P,assetResolver:q,onNewStateFactory:N,onLoadTransactionCallback:N,languageCode:i.scope.currentScope.network.settings.languageCode}),e.$watch(function(){return A(e.staticArticle)},function(V){e.changed=R!==V})},function(){n.path("/")}),e.changeCoverButtonOptions={onClick:function(){e.pickCoverAsset(!0)},text:i.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_cover_changeCoverAsset"),icon:"fa-regular fa-image",hint:i.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_cover_changeCoverAsset")},e.deleteCoverButton={onClick:function(){y.removeReference(e.revision.coverAssetImages[0]),e.revision.coverAssetImages=[],e.coverAssetCarousel=[]},text:"",icon:"fa fa-trash",hint:i.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_deleteVariantTooltip")}}]),app.factory("staticArticleService",["$http","$q",function(e,t){return{getStaticArticles:function(){var l=t.defer();return e.get(scope.apiEndpoint+"staticArticles").then(function(i){l.resolve(i.data)}),l.promise},getStaticArticle:function(l){var i=t.defer();return e.get(scope.apiEndpoint+"staticArticles/"+l).then(function(s){i.resolve(s.data)}),i.promise},getStaticArticleEdit:function(l){var i=t.defer();return e.get(scope.apiEndpoint+"staticArticles/"+l+"/edit").then(function(s){i.resolve(s.data)},function(s){i.reject()}),i.promise},getStaticArticleParse:function(l,i){var s=t.defer();return e.post(scope.apiEndpoint+"staticArticles/"+l+"/parse",i).then(function(o){s.resolve(o.data)},function(){s.reject()}),s.promise},updateStaticArticle:function(l){var i=t.defer();return e.put(scope.apiEndpoint+"staticArticles",l).then(function(s){angular.copy(s.data,l),i.resolve(s)},function(){i.reject()}),i.promise},publishStaticArticle:function(l){var i=t.defer();return e.put(scope.apiEndpoint+"staticArticles/"+l.id+"/publish",l).then(function(s){i.resolve(s)},function(){i.reject()}),i.promise},addAssetStaticArticle:function(l,i,s){var o=t.defer();return e.post(scope.apiEndpoint+"assets/StaticArticle/CreateAsset",{ownerId:l,staticArticleId:i,type:"static",target:s}).then(function(p){o.resolve(p.data)},function(){o.reject()}),o.promise}}}]),app.controller("SuperCampaignElasticReportController",["$scope","$rootScope","superService","scopeService","$stateParams","$timeout","$location",function(e,t,a,r,c,g,f){AmCharts.isReady=!0;var i,s,o,n=getComputedStyle(document.querySelector("body")).getPropertyValue("--color1-alpha50"),d=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],l=[];e.report=null,e.totalClickCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var b=function(y){var C=0,x=0,k=0,R=0,u=0,U=0;$.each(y,function(F,w){C+=w.desktopImpressionCount,x+=w.tabletImpressionCount,k+=w.mobileImpressionCount,R+=w.clickCount,u+=w.impressionTime,U+=w.impressionCount}),e.$apply(function(){e.totalClickCount=R,e.totalImpressionTime=u,e.totalImpressionCount=U}),d[0].value=Math.round(100/(U/C)),d[1].value=Math.round(100/(U/k)),d[2].value=Math.round(100/(U/x)),i.validateData()},p=function(){var y=moment(s.startDate).startOf("day").toDate(),C=moment(s.endDate).startOf("day").toDate(),x=e.report.filter(function(k){return k.day>=y&&k.day<=C});b(x),o.zoom(y,moment(C).add(1,"d").toDate())},I=function(){var y=e.superCampaign.superBanners.filter(function(x){return!x.filtered}).map(function(x){return x.id}),C=e.chapters.filter(function(x){return!x.filtered}).map(function(x){return x.id});e.filterDisabled=!0,a.getSuperReport(e.superCampaign.pin,{superCampaignId:e.superCampaign.id,superBannerIds:y,chapterIds:C}).then(function(x){x.forEach(function(k){k.day=moment(k.day.replace("Z","")).toDate()}),e.report=x,g(function(){(function(y){l.length=0,$.each(y,function(C,x){l.push(x)}),s.validateData(),o.validateData(),e.$apply(function(){e.startDay=start,e.endDay=end})})(x),p(),e.filterDisabled=!1},50)})};e.filterChapter=function(y){y.filtered=!y.filtered,I()},e.chapterFilterDisabled=function(y){return e.filterDisabled||1===e.chapters.filter(function(C){return!C.filtered}).length&&!y.filtered},e.filterBanner=function(y){e.filterDisabled||1===e.superCampaign.superBanners.filter(function(C){return!C.filtered}).length&&!y.filtered||(y.filtered=!y.filtered,I())},a.getSuperByPin(c.pin).then(function(y){e.superCampaign=y,a.getSuperReport(y.pin,{superCampaignId:y.id}).then(function(C){C.forEach(function(k){k.day=moment(k.day.replace("Z","")).toDate()}),e.report=C,e.startDay=C[0].day,e.endDay=C[C.length-1].day;var x=[];$.each(y.chapterSlugs,function(k,R){x.push(r.getChapter(R))}),x=x.filter(function(k){return 2===k.managementState}),e.chapters=x,$.each(C,function(k,R){l.push(R)}),g(function(){i=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:n,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(s=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:l,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){p()}),o=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:n,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"clickCount",toField:"clickCount"}],dataProvider:l,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clickCount",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),b(C)})})},function(){f.path("/")})}]),app.controller("superCampaignReportController",["$scope","$rootScope","superService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,r,c,g,f,n){AmCharts.isReady=!0;var d="#00cdbd",l=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:d,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],i=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],s=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];a.getSuperByPin(c.pin).then(function(o){e.superCampaign=o,a.getReportSuperBannerCalendar(o.pin).then(function(b){b.forEach(function(p){p.chapter=r.getChapter(p.chapterSlug),p.reports.forEach(function(h){h.calendar.forEach(function(I){I.start=moment(I.start.replace("Z","")).toDate(),I.end=moment(I.end.replace("Z","")).toDate()})})}),o.report=b,f(function(){var p,h,I,y,C,x=new Set;$.each(b,function(w,S){S.active=!0,x.add(S.chapter.name)}),b.uniqueChapters=[],x.forEach(function(w){b.uniqueChapters.push(w)}),$.each(o.superBanners,function(w,S){S.reportActive=!0});var k=[],R=function(){k.length=0,$.each(b[0].reports[0].calendar,function(w,S){k.push({start:S.start,end:S.end,impressions:0,viewableImpressions:0,viewableImpressionTimeSeconds:0,desktopViewableImpressions:0,mobileViewableImpressions:0,tabletViewableImpressions:0,clicks:0,maleViewableImpressions:0,femaleViewableImpressions:0,age1617MaleViewableImpressions:0,age1824MaleViewableImpressions:0,age2534MaleViewableImpressions:0,age3544MaleViewableImpressions:0,age4554MaleViewableImpressions:0,age55MaleViewableImpressions:0,age1617FemaleViewableImpressions:0,age1824FemaleViewableImpressions:0,age2534FemaleViewableImpressions:0,age3544FemaleViewableImpressions:0,age4554FemaleViewableImpressions:0,age55FemaleViewableImpressions:0})}),$.each(b,function(w,S){S.active&&(b[w-1]&&2===b[w-1].chapter.managementState&&2===S.chapter.managementState&&b[w-1].chapter.name!==S.chapter.name&&(b.multiChapterShipment=!0),$.each(S.reports,function(v,A){if(o.superBanners[v].reportActive){var T=A.superBanner.pin;$.each(A.calendar,function(D,m){m.pin=T,k[D].impressions+=m.impressions,k[D].viewableImpressions+=m.viewableImpressions,k[D].viewableImpressionTimeSeconds+=m.viewableImpressionTimeSeconds,k[D].desktopViewableImpressions+=m.desktopViewableImpressions,k[D].mobileViewableImpressions+=m.mobileViewableImpressions,k[D].tabletViewableImpressions+=m.tabletViewableImpressions,k[D].clicks+=m.clicks,k[D].maleViewableImpressions+=m.maleViewableImpressions,k[D].femaleViewableImpressions+=m.femaleViewableImpressions,k[D].age1617MaleViewableImpressions+=m.age1617MaleViewableImpressions,k[D].age1824MaleViewableImpressions+=m.age1824MaleViewableImpressions,k[D].age2534MaleViewableImpressions+=m.age2534MaleViewableImpressions,k[D].age3544MaleViewableImpressions+=m.age3544MaleViewableImpressions,k[D].age4554MaleViewableImpressions+=m.age4554MaleViewableImpressions,k[D].age55MaleViewableImpressions+=m.age55MaleViewableImpressions,k[D].age1617FemaleViewableImpressions+=m.age1617FemaleViewableImpressions,k[D].age1824FemaleViewableImpressions+=m.age1824FemaleViewableImpressions,k[D].age2534FemaleViewableImpressions+=m.age2534FemaleViewableImpressions,k[D].age3544FemaleViewableImpressions+=m.age3544FemaleViewableImpressions,k[D].age4554FemaleViewableImpressions+=m.age4554FemaleViewableImpressions,k[D].age55FemaleViewableImpressions+=m.age55FemaleViewableImpressions})}}))}),h.validateData(),p.validateData()},u=b.summary={};p=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:k,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),h=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:d,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:k,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"viewableImpressions",type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),I=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:l,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),y=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:d,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(w,S){return-1*w.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(w){return w<0?-1*w+"":w+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),C=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:s,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:d,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}});var F=function(){var w=moment(p.startDate).startOf("day").toDate(),S=moment(p.endDate).startOf("day").add(-1,"d").toDate();(function(w,S){u.maleViewableImpressions=0,u.femaleViewableImpressions=0,u.viewableImpressions=0,u.viewableImpressionTimeSeconds=0,u.impressions=0,u.clicks=0,u.desktopViewableImpressions=0,u.mobileViewableImpressions=0,u.tabletViewableImpressions=0,u.age1617MaleViewableImpressions=0,u.age1824MaleViewableImpressions=0,u.age2534MaleViewableImpressions=0,u.age3544MaleViewableImpressions=0,u.age4554MaleViewableImpressions=0,u.age55MaleViewableImpressions=0,u.age1617FemaleViewableImpressions=0,u.age1824FemaleViewableImpressions=0,u.age2534FemaleViewableImpressions=0,u.age3544FemaleViewableImpressions=0,u.age4554FemaleViewableImpressions=0,u.age55FemaleViewableImpressions=0;var v=0,A=0,T=0,D=0,m=0,M=0,E=0,P=0,q=0,N=0,O=0,_=0,V=0,L=0,z=0;u.start=w,u.end=S,$.each(k,function(J,H){var Y=new Date(H.start);Y<w||Y>S||(u.maleViewableImpressions+=H.maleViewableImpressions,u.femaleViewableImpressions+=H.femaleViewableImpressions,u.viewableImpressions+=H.viewableImpressions,u.viewableImpressionTimeSeconds+=H.viewableImpressionTimeSeconds,u.impressions+=H.impressions,u.clicks+=H.clicks,v+=H.desktopViewableImpressions,A+=H.mobileViewableImpressions,T+=H.tabletViewableImpressions,D+=H.age1617MaleViewableImpressions,m+=H.age1824MaleViewableImpressions,M+=H.age2534MaleViewableImpressions,E+=H.age3544MaleViewableImpressions,P+=H.age4554MaleViewableImpressions,q+=H.age55MaleViewableImpressions,N+=H.age1617FemaleViewableImpressions,O+=H.age1824FemaleViewableImpressions,_+=H.age2534FemaleViewableImpressions,V+=H.age3544FemaleViewableImpressions,L+=H.age4554FemaleViewableImpressions,z+=H.age55FemaleViewableImpressions)}),u.desktopViewableImpressions=Math.round(100/(u.viewableImpressions/v)),u.mobileViewableImpressions=Math.round(100/(u.viewableImpressions/A)),u.tabletViewableImpressions=Math.round(100/(u.viewableImpressions/T));var G=u.viewableImpressions-(D+m+M+E+P+q+N+O+_+V+L+z);G>100&&(D+=G*t.scope.globalSettings.reportAverageAge1617Male,m+=G*t.scope.globalSettings.reportAverageAge1824Male,M+=G*t.scope.globalSettings.reportAverageAge2534Male,E+=G*t.scope.globalSettings.reportAverageAge3544Male,P+=G*t.scope.globalSettings.reportAverageAge4554Male,q+=G*t.scope.globalSettings.reportAverageAge55Male,N+=G*t.scope.globalSettings.reportAverageAge1617Female,O+=G*t.scope.globalSettings.reportAverageAge1824Female,_+=G*t.scope.globalSettings.reportAverageAge2534Female,V+=G*t.scope.globalSettings.reportAverageAge3544Female,L+=G*t.scope.globalSettings.reportAverageAge4554Female,z+=G*t.scope.globalSettings.reportAverageAge55Female),u.age1617MaleViewableImpressions=Math.round(100/(u.viewableImpressions/D)),u.age1824MaleViewableImpressions=Math.round(100/(u.viewableImpressions/m)),u.age2534MaleViewableImpressions=Math.round(100/(u.viewableImpressions/M)),u.age3544MaleViewableImpressions=Math.round(100/(u.viewableImpressions/E)),u.age4554MaleViewableImpressions=Math.round(100/(u.viewableImpressions/P)),u.age55MaleViewableImpressions=Math.round(100/(u.viewableImpressions/q)),u.age1617FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/N)),u.age1824FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/O)),u.age2534FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/_)),u.age3544FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/V)),u.age4554FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/L)),u.age55FemaleViewableImpressions=Math.round(100/(u.viewableImpressions/z)),u.maleViewableImpressions=Math.round(u.maleViewableImpressions),u.femaleViewableImpressions=Math.round(u.femaleViewableImpressions),l[0].value=u.femaleViewableImpressions,l[1].value=u.maleViewableImpressions,i[0].male=Math.round(-1*u.age1617MaleViewableImpressions),i[1].male=Math.round(-1*u.age1824MaleViewableImpressions),i[2].male=Math.round(-1*u.age2534MaleViewableImpressions),i[3].male=Math.round(-1*u.age3544MaleViewableImpressions),i[4].male=Math.round(-1*u.age4554MaleViewableImpressions),i[5].male=Math.round(-1*u.age55MaleViewableImpressions),i[0].female=Math.round(u.age1617FemaleViewableImpressions),i[1].female=Math.round(u.age1824FemaleViewableImpressions),i[2].female=Math.round(u.age2534FemaleViewableImpressions),i[3].female=Math.round(u.age3544FemaleViewableImpressions),i[4].female=Math.round(u.age4554FemaleViewableImpressions),i[5].female=Math.round(u.age55FemaleViewableImpressions),s[0].value=u.desktopViewableImpressions,s[1].value=u.mobileViewableImpressions,s[2].value=u.tabletViewableImpressions,I.validateData(),y.validateData(),C.validateData(),e.$apply()})(w,S),h.zoom(w,moment(S).add(1,"d").toDate())};p.addListener("zoomed",function(w){F()}),e.toggleReport=function(w){$.each(o.superBanners,function(S,v){v.pin===w.pin&&(v.reportActive=!v.reportActive)}),f(function(){R(),F()},50)},e.toggleChapter=function(w){$.each(b,function(S,v){v.chapter.name===w&&(v.active=!v.active)}),f(function(){R(),F()},50)},R(),h.validateData(),p.validateNow(),p.setDefaultPeriod()},function(){e.error=!0})})},function(){n.path("/")})}]),app.factory("superService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,r,c,g){var f=[],d=function(){var o=t.defer();return f.length>0?o.resolve(f):e.get(scope.apiEndpoint+"super").then(function(b){angular.copy(b.data,f),o.resolve(f)},function(){o.reject()}),o.promise};function l(o){var b=null;return $.each(f,function(p,h){if(h.pin===o)return b=h,!1}),b}return{supers:f,getSuperReport:function(o,b){var p=t.defer();return e.post(scope.apiEndpoint+"super/"+o+"/report",b).then(function(h){p.resolve(h.data)},function(){p.reject()}),p.promise},getSupers:d,getReportSuperBannerCalendar:function(o){var b=t.defer();return e.get(scope.apiEndpoint+"super/"+o+"/ReportSuperBannerCalendar").then(function(p){b.resolve(p.data)},function(){b.reject()}),b.promise},getSuperByPin:function(o){var b=t.defer();if(f.length>0){var p=l(o);p?b.resolve(p):e.get(scope.apiEndpoint+"super/"+o).then(function(h){b.resolve(h.data)},function(){b.reject()})}else d().then(function(){var h=l(o);h?b.resolve(h):e.get(scope.apiEndpoint+"super/"+o).then(function(I){b.resolve(I.data)},function(){b.reject()})},function(){b.reject()});return b.promise}}}]),app.controller("SurveyDetailController",["$scope","$stateParams","shipmentService","$location","$rootScope","translationService","profileService",function(e,t,a,r,c,g,f){e.surveyId=t.id,e.preview=void 0!==r.search().preview,e.requestInProgress=!0,a.getSurveyForDeeplink(e.surveyId,e.preview).then(function(n){e.requestInProgress=!1,e.shipment=n},function(){e.requestInProgress=!1,r.path("/")}),e.availableTargetLanguages=null,g.getAvailableTargetLanguages().then(function(n){e.availableTargetLanguages=n}),e.selectedTargetLanguage=c.profile.favoriteLanguage,e.translateSurvey=function(){null===e.selectedTargetLanguage?a.getSurveyForDeeplink(e.surveyId,e.preview).then(function(n){e.shipment=n}):a.getTranslatedSurveyForDeeplink(e.surveyId,e.preview,e.selectedTargetLanguage).then(function(n){e.shipment=n,f.updateFavoriteLanguage(e.selectedTargetLanguage).then(function(){c.profile.favoriteLanguage=e.selectedTargetLanguage})})}}]),app.factory("configurationsService",["$rootScope","$http","$q","authService",function(e,t,a,r){return{getConfigurationsData:function(g){var f=a.defer(),n=scope.apiEndpoint+"configurations";return g&&(n=n+"?key="+g),t.get(n).then(function(d){f.resolve(d.data)},function(){f.reject()}),f.promise}}}]),app.controller("DataPrivacyPolicyController",["$scope","$filter","$sce","$window","configurationsService","markdownConverterService","$templateRequest","$interpolate",function(e,t,a,r,c,g,f,n){e.updatePolicyHtml=function(){var s=new RegExp("{{resource:[a-z]*}}","i"),o=e.policyHtml.match(s);o&&o.forEach(function(b,p,h){var I=b.substring(11,b.length-2);e.policyHtml=e.policyHtml.replaceAll(b,scope.network.resources[I])}),e.policyHtml=e.policyHtml.replaceAll("{{Matomo}}",scope.currentScope.chapter.settings.piwikBaseUrl?'<iframe style="border: 0; height: 200px; width: 600px; " src="'+e.matomoOptOutUrl+'"></iframe>':""),e.policyHtml=e.policyHtml.replaceAll("{{TrackingLink}}",e.trackingLink),e.policyHtml=n(e.policyHtml)(e)},e.partner=scope.currentScope.chapter.partner?scope.currentScope.chapter.partner:scope.currentScope.network.partner,e.network=scope.currentScope.network,e.chapter=scope.currentScope.chapter,e.cookieManager=0,e.partner.settings.dataPrivacyUrl&&(r.location.href=e.partner.settings.dataPrivacyUrl),scope.currentScope.chapter&&scope.currentScope.chapter.settings&&(scope.currentScope.chapter.settings.piwikBaseUrl&&(e.matomoOptOutUrl=a.trustAsResourceUrl(scope.currentScope.chapter.settings.piwikBaseUrl+"index.php?module=CoreAdminHome&action=optOut&language=de")),scope.currentScope.chapter.settings.configurations.externalMediaConsentConfiguration&&(e.cookieManager=scope.currentScope.chapter.settings.configurations.externalMediaConsentConfiguration.Manager)),e.trackingLink=scope.currentScope.chapter.path,e.trackingLink.endsWith("/")||(e.trackingLink+="/"),e.trackingLink+="optout",c.getConfigurationsData("privacy_policy_markdown").then(function(d){if(d.chapterConfiguration&&d.chapterConfiguration.privacy_policy_markdown)return e.policyHtml=g.toHtml(d.chapterConfiguration.privacy_policy_markdown),void e.updatePolicyHtml();if(d.networkConfiguration.privacy_policy_markdown)e.policyHtml=g.toHtml(d.networkConfiguration.privacy_policy_markdown),e.updatePolicyHtml();else{var l="/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-common-de.html";if(scope.currentScope.network.settings.languagePack.indexOf("business")>-1)switch(scope.currentScope.network.settings.languageCode){case"de":l="/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-ik-up-de.html";break;case"en":l="/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-ik-up-en.html"}if(scope.currentScope.network.settings.languagePack.indexOf("location")>-1)switch(scope.currentScope.network.settings.languageCode){case"de":l="/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-location-de.html";break;case"en":l="/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-location-en.html";break;case"fr":l="/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-location-fr.html"}if(scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1)switch(scope.currentScope.network.settings.languageCode){case"de":l="/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-common-de.html";break;case"en":l="/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-common-en.html"}var i=a.getTrustedResourceUrl(l);f(i).then(function(s){e.policyHtml=s,e.updatePolicyHtml()})}}),e.newsrooms=t("filter")(scope.network.chapters,{managementState:2}),e.scrollTo=function(d){$("body,html").animate({scrollTop:$(d).offset().top-120},1e3)}}]),app.controller("TermsOfUseController",["$scope","$filter","$sce","$window","configurationsService","markdownConverterService","$interpolate","$templateRequest",function(e,t,a,r,c,g,f,n){e.updateTosHtml=function(){var s=new RegExp("{{resource:[a-z]*}}","i"),o=e.tosHtml.match(s);o&&o.forEach(function(b,p,h){var I=b.substring(11,b.length-2);e.tosHtml=e.tosHtml.replaceAll(b,scope.network.resources[I])}),e.tosHtml=e.tosHtml.replaceAll("{{Matomo}}",scope.currentScope.chapter.settings.piwikBaseUrl?'<iframe style="border: 0; height: 200px; width: 600px; " src="'+e.matomoOptOutUrl+'"></iframe>':""),e.tosHtml=e.tosHtml.replaceAll("{{TrackingLink}}",e.trackingLink),e.tosHtml=f(e.tosHtml)(e)},e.newsrooms=t("filter")(scope.network.chapters,{managementState:2}),e.network=scope.currentScope.network,e.chapter=scope.currentScope.chapter,scope.currentScope.chapter&&scope.currentScope.chapter.settings&&scope.currentScope.chapter.settings.piwikBaseUrl&&(e.matomoOptOutUrl=a.trustAsResourceUrl(scope.currentScope.chapter.settings.piwikBaseUrl+"index.php?module=CoreAdminHome&action=optOut&language=de")),e.trackingLink="/optout",c.getConfigurationsData("terms_of_service_markdown").then(function(d){if(d.chapterConfiguration&&d.chapterConfiguration.terms_of_service_markdown)return e.tosHtml=g.toHtml(d.chapterConfiguration.terms_of_service_markdown),void e.updateTosHtml();if(d.networkConfiguration.terms_of_service_markdown)e.tosHtml=g.toHtml(d.networkConfiguration.terms_of_service_markdown),e.updateTosHtml();else{var l="/ClientApp/src/legacy-app/termsOfUse/termsOfUse-common-de.html";if(scope.currentScope.network.settings.languagePack.indexOf("business")>-1)switch(scope.currentScope.network.settings.languageCode){case"de":l="/ClientApp/src/legacy-app/termsOfUse/termsOfUse-ik-up-de.html";break;case"en":l="/ClientApp/src/legacy-app/termsOfUse/termsOfUse-ik-up-en.html"}if(scope.currentScope.network.settings.languagePack.indexOf("location")>-1)switch(scope.currentScope.network.settings.languageCode){case"de":l="/ClientApp/src/legacy-app/termsOfUse/termsOfUse-location-de.html";break;case"en":l="/ClientApp/src/legacy-app/termsOfUse/termsOfUse-location-en.html";break;case"fr":l="/ClientApp/src/legacy-app/termsOfUse/termsOfUse-location-fr.html"}if(scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1)switch(scope.currentScope.network.settings.languageCode){case"de":l="/ClientApp/src/legacy-app/termsOfUse/termsOfUse-common-de.html";break;case"en":l="/ClientApp/src/legacy-app/termsOfUse/termsOfUse-common-en.html"}var i=a.getTrustedResourceUrl(l);n(i).then(function(s){e.tosHtml=s,e.updateTosHtml()})}})}]),app.controller("AccessibilityController",["$scope","$filter","$sce","$window","configurationsService","markdownConverterService","$templateRequest","$interpolate",function(e,t,a,r,c,g,f,n){e.updateAccessibilityHtml=function(){var s=new RegExp("{{resource:[a-z]*}}","i"),o=e.accessibilityHtml.match(s);o&&o.forEach(function(b,p,h){var I=b.substring(11,b.length-2);e.accessibilityHtml=e.accessibilityHtml.replaceAll(b,scope.network.resources[I])}),e.accessibilityHtml=e.accessibilityHtml.replaceAll("{{Matomo}}",scope.currentScope.chapter.settings.piwikBaseUrl?'<iframe style="border: 0; height: 200px; width: 600px; " src="'+e.matomoOptOutUrl+'"></iframe>':""),e.accessibilityHtml=e.accessibilityHtml.replaceAll("{{TrackingLink}}",e.trackingLink),e.accessibilityHtml=n(e.accessibilityHtml)(e)},e.newsrooms=t("filter")(scope.network.chapters,{managementState:2}),e.network=scope.currentScope.network,e.chapter=scope.currentScope.chapter,scope.currentScope.chapter&&scope.currentScope.chapter.settings&&scope.currentScope.chapter.settings.piwikBaseUrl&&(e.matomoOptOutUrl=a.trustAsResourceUrl(scope.currentScope.chapter.settings.piwikBaseUrl+"index.php?module=CoreAdminHome&action=optOut&language=de")),e.trackingLink="/optout",c.getConfigurationsData("accessibility_markdown").then(function(d){if(d.chapterConfiguration&&d.chapterConfiguration.accessibility_markdown)return e.accessibilityHtml=g.toHtml(d.chapterConfiguration.accessibility_markdown),void e.updateAccessibilityHtml();if(d.networkConfiguration.accessibility_markdown)e.accessibilityHtml=g.toHtml(d.networkConfiguration.accessibility_markdown),e.updateAccessibilityHtml();else{var l="/ClientApp/src/legacy-app/termsOfUse/accessibility-common-de.html";if(scope.currentScope.network.settings.languagePack.indexOf("business")>-1)switch(scope.currentScope.network.settings.languageCode){case"de":l="/ClientApp/src/legacy-app/termsOfUse/accessibility-ik-up-de.html";break;case"en":l="/ClientApp/src/legacy-app/termsOfUse/accessibility-ik-up-en.html"}if(scope.currentScope.network.settings.languagePack.indexOf("location")>-1)switch(scope.currentScope.network.settings.languageCode){case"de":l="/ClientApp/src/legacy-app/termsOfUse/accessibility-location-de.html";break;case"en":l="/ClientApp/src/legacy-app/termsOfUse/accessibility-location-en.html";break;case"fr":l="/ClientApp/src/legacy-app/termsOfUse/accessibility-location-fr.html"}if(scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1)switch(scope.currentScope.network.settings.languageCode){case"de":l="/ClientApp/src/legacy-app/termsOfUse/accessibility-common-de.html";break;case"en":l="/ClientApp/src/legacy-app/termsOfUse/accessibility-common-en.html"}var i=a.getTrustedResourceUrl(l);f(i).then(function(s){e.accessibilityHtml=s,e.updateAccessibilityHtml()})}})}]),app.factory("translationService",["$http","$q","$rootScope","$cacheFactory",function(e,t,a,r){var c=new Map;function f(){var s=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==s){var o=a.scope.profile,b=a.scope.network.settings.languagePack.split("-")[0];if(null!=o.activeUserLanguage?.vendorLanguageCode&&b!=o.activeUserLanguage?.vendorLanguageCode)return!0}return!1}var d=async function(s,o){if(null==o)return s.map(function(I){return{source:I,translation:I}});var p=JSON.stringify({textEntries:s,targetVendorLanguageId:o});if(c.has(p))return c.get(p);var h=function(s,o){var b=t.defer(),p=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==p&&null!==o){var h=a.scope.profile,I=a.scope.network.settings.languagePack.split("-")[0];if(null!=h.activeUserLanguage?.vendorLanguageCode&&I!=h.activeUserLanguage?.vendorLanguageCode){var y=a.scope.globalSettings.configurations.translationEndpointInfo;return e.post(y.baseUrl+"/api/Translations/vendorbatch",{TenantId:"ab1c0d0b-c2d1-d0ab-1c0d-0ab1c0d0ab1c",Sources:s,IgnoreReplacements:!0,ToVendorLanguageId:o},{headers:{"Content-Type":"application/json",Authorization:"Bearer "+y.token}}).then(function(U){b.resolve(U.data.translations)},function(U){console.log("TRANS FETCH FAIL",U);var F=s.map(function(w){return{source:w,translation:"UNABLE TO TRANSLATE:\n"+w}});return b.resolve(F),b.promise}),b.promise}}var u=s.map(function(U){return{source:U,translation:U}});return b.resolve(u),b.promise}(s,o);return c.set(p,h),h};return{getAvailableTargetLanguages:function(){var s=r.get("targetLanguagesCache");s||(s=r("targetLanguagesCache"));var o=s.get("availableTargetLanguages");if(o)return t.resolve(o);var b=t.defer();return e.get(scope.apiEndpoint+"translations/targetLanguages").then(function(p){var h=p.data;s.put("availableTargetLanguages",h),b.resolve(h)},function(){b.reject()}),b.promise},translate:d,translateByUserLanguageCode:function(s){if(f()){var o=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration.VendorId,b=a.scope.profile,p=b.activeUserLanguage?.vendorLanguageCode,I=a.scope.globalSettings.configurations.availableVendorLanguages.find(y=>y.id==o).supportedVendorLanguages.find(y=>y.languageCode===p||y.languageISO639Code===p);return d(s,I.id)}return d(s,null)},translateToOrigin:function(s){if(f()){var o=a.scope.network.settings.languagePack.split("-")[0],b=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration.VendorId,h=a.scope.globalSettings.configurations.availableVendorLanguages.find(I=>I.id==b).supportedVendorLanguages.find(I=>I.languageCode===o||I.languageISO639Code===o);return d(s,h.id)}return d(s,null)}}}]),app.controller("FeedbackController",["$scope","$rootScope","profileService","authService",function(e,t,a,r){e.data=a,e.success=!1,e.feedback={description:""},e.showEmail=!1,"Redesign2024"!=t.scope.currentScope.network.settings.configurations.contentRenderEngine&&(a.getProfile(!0).then(function(c){c.isRegistered||(e.showEmail=!0)}),e.submitForm=function(c){c&&a.insertFeedback(e.feedback).then(function(g){e.success=!0},function(){}).then(function(){})})}]),app.controller("ProfileController",["$interpolate","$scope","profileService","fileUploadService","$location","Upload","$rootScope","translationService",function(e,t,a,r,c,g,f,n){if("Redesign2024"!=f.scope.network.settings.configurations?.contentRenderEngine){if(t.avatarInitials=function(){if(t.profile.firstName&&t.profile.lastName)return`${t.profile.firstName[0]||""}${t.profile.lastName[0]||""}`.toUpperCase()}(),t.blurb="About me",t.multiLanguageTranslationSystemIsEnabled=f.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,t.profile=a.profile,t.profileSvc=a,t.web_profile_newsletter=e(scope.currentScope.network.resources.web_profile_newsletter)({chapterName:scope.currentScope.chapter.name}),t.birthdayCalendarVisible=!1,t.staffDirectoryLoad=h=>a.getStaffDirectoryOwned(h),t.staffDirectorySave=a.updateStaffDirectory,t.staffDirectoryLoadAdminEditable=h=>a.getOwnPrivateStaffDirData(h),t.profileSaved=!1,t.blurb=t.profile.about,t.loadingAvatar=!1,t.loadingCover=!1,t.showNewsListOrder=t.profile.isMerkuristJournalist,t.profile.birthdayCalendarData){var l=new Date(t.profile.birthdayCalendarData.birthday);t.profile.birthdayCalendarData.convertedDate=new Date(l.getFullYear(),l.getMonth(),l.getDate()),t.profile.birthdayCalendarData.convertedDate.setMinutes(t.profile.birthdayCalendarData.convertedDate.getMinutes()-t.profile.birthdayCalendarData.convertedDate.getTimezoneOffset())}t.listOflanguages=[];var i=f.scope.network.settings.languagePack.split("-")[0],s=f.scope.network.getResourceOrKeyName("web_translation_use_original");f.scope.network.getResourceOrKeyName("web_translation_select_target_language"),t.listOflanguages.push({vendorLanguageCode:i,nativeName:s}),n.getAvailableTargetLanguages().then(function(h){Object.keys(h).forEach(I=>{t.listOflanguages.push({vendorLanguageCode:I,nativeName:h[I]})}),a.getProfile().then(function(I){t.profile.activeUserLanguage||(t.profile.activeUserLanguage=t.listOflanguages.find(function(x){return x.vendorLanguageCode===i})),I.isRegistered||c.path("/").replace(),t.blurb=I.about;var y=I.guid;if(t.profile.birthdayCalendarData){var C=new Date(t.profile.birthdayCalendarData.birthday);t.birthdayDisplayString=C.setMinutes(C.getMinutes()-C.getTimezoneOffset()).toLocaleDateString("de-DE")}t.$watch("profile.guid",function(){y!==I.guid&&c.path("/")})},function(I){c.path("/").replace()})}),t.deleteAvatar=function(){a.updateAvatar(null)},t.deleteCover=function(){a.updateCover(null)},t.uploadCover=function(h,I){h||!I?h&&(t.loadingCover=!0,g.upload({url:scope.apiEndpoint+"upload",data:{file:h}}).then(function(y){a.updateCover(y.data).then(function(){})},function(y){alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},function(y){t.fileUploadProgress=parseInt(100*y.loaded/y.total)}).finally(function(){t.loadingCover=!1})):alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},t.uploadAvatar=function(h,I){h||!I?h&&(t.loadingAvatar=!0,g.upload({url:scope.apiEndpoint+"upload",data:{file:h}}).then(function(y){a.updateAvatar(y.data).then(function(){})},function(y){alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},function(y){t.fileUploadProgress=parseInt(100*y.loaded/y.total)}).finally(function(){t.loadingAvatar=!1})):alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},t.toggleLocationSelection=function(h){-1===t.profile.locations.indexOf(h)?t.profile.locations.push(h):t.profile.locations.splice(t.profile.locations.indexOf(h),1)},t.toggleUnsubscribe=function(){t.profile.unsubscribe=null===t.profile.unsubscribe?new Date:null},t.submitForm=function(h){if(t.profileSaved=!1,h){if(t.profile.birthdayCalendarData){var I=new Date(t.profile.birthdayCalendarData.birthday);t.profile.birthdayCalendarData.convertedDate=new Date(I.getFullYear(),I.getMonth(),I.getDate()),t.profile.birthdayCalendarData.convertedDate.setMinutes(t.profile.birthdayCalendarData.convertedDate.getMinutes()-t.profile.birthdayCalendarData.convertedDate.getTimezoneOffset());var y=new Date(t.profile.birthdayCalendarData.convertedDate.getFullYear(),t.profile.birthdayCalendarData.convertedDate.getMonth(),t.profile.birthdayCalendarData.convertedDate.getDate());y.setMilliseconds(0),y.setSeconds(0),y.setMinutes(y.getMinutes()-y.getTimezoneOffset()),t.profile.birthdayCalendarData.birthday=y}t.gridApi&&(t.profile.StaffDirectoryData=t.gridApi.getData()),a.updateProfile(t.profile).then(function(C){t.profileSaved=!0,t.birthdayCalendarVisible=!1,t.profile.birthdayCalendarData&&(t.profile.birthdayCalendarData.convertedDate=new Date(t.profile.birthdayCalendarData.birthday)),t.multiLanguageTranslationSystemIsEnabled&&document.location.reload()})}},t.toggleBirthdayCalendar=function(){t.birthdayCalendarVisible=!t.birthdayCalendarVisible},t.birthdayDatePickerOptions={},t.profile.birthdayCalendarData&&(t.birthdayDatePickerOptions={value:t.profile.birthdayCalendarData.birthday,openOnFieldClick:!0,type:"date",onValueChanged:function(h){t.profile.birthdayCalendarData.birthday=h.value}})}}]),app.factory("profileService",["$rootScope","$http","$q","authService","profileServiceRedesign",function(e,t,a,r,c){var g={};e.$on("authenticationStateChanged",function(){n(!0)});let f=null;function n(D){return f||angular.equals({},g)||D?(f||(f=r.noop().then(function(){return t.get(scope.apiEndpoint+"Profiles")}).then(function(m){return angular.copy(m.data,g),g.translatedResources&&(scope.network.resources=g.translatedResources),g}).catch(function(m){return a.reject(m)}).finally(function(){f=null})),f):a.resolve(g)}return{updateProfile:function(D){var m=a.defer();return console.log("_updateProfile"),t.post(scope.apiEndpoint+"Profiles",D).then(function(M){angular.copy(M.data,g),m.resolve(g)},function(){m.reject()}),m.promise},updateAvatar:function(D){var m=a.defer();return t.post(scope.apiEndpoint+"Profiles/Avatar",{guid:D}).then(function(M){g?(g.avatarGuid=M.data.avatarGuid,g.avatarImageUrl=M.data.avatarImageUrl):angular.copy(M.data,g),m.resolve(g)},function(){m.reject()}),m.promise},updatePartnerAccessAllow:function(){var D=a.defer();return t.post(scope.apiEndpoint+"Profiles/PartnerAccessAllow").then(function(m){angular.copy(m.data,g),D.resolve(g)},function(){D.reject()}),D.promise},fetchExternalAvatar:function(D){var m=a.defer();return t.post(scope.apiEndpoint+"Profiles/Avatar/FetchExternal",D).then(function(M){g?(g.avatarGuid=M.data.avatarGuid,g.avatarImageUrl=M.data.avatarImageUrl+"?preset=profile-avatar"):angular.copy(M.data,g),m.resolve(g)},function(){m.reject()}),m.promise},updateCover:function(D){var m=a.defer();return t.post(scope.apiEndpoint+"Profiles/Cover",{guid:D}).then(function(M){g?(g.coverGuid=M.data.coverGuid,g.coverImageUrl=M.data.coverImageUrl):angular.copy(M.data,g),m.resolve(g)},function(){m.reject()}),m.promise},getProfile:n,insertFeedback:function(D){var m=a.defer();return t.post(scope.apiEndpoint+"Sendmail/Feedback",D).then(function(M){m.resolve(M.data)},function(){m.reject()}),m.promise},insertProposedCity:function(D){var m=a.defer();return t.post(scope.apiEndpoint+"Sendmail/ProposedCity",D).then(function(M){m.resolve(M.data)},function(){m.reject()}),m.promise},profile:g,getPublicProfile:function(D){var m=a.defer();return console.log("_getPublicProfile"),t.get(scope.apiEndpoint+"profiles/public/"+D).then(function(M){m.resolve(M.data)},function(){m.reject()}),m.promise},unsubscribe:function(D){var m=a.defer();return t.put(scope.apiEndpoint+"profiles/unsubscribe/"+D).then(function(M){m.resolve(M.data)},function(){m.reject()}),m.promise},updateFavoriteChapter:function(D){var m=a.defer();return t.post(scope.apiEndpoint+"Profiles/FavoriteChapter/"+D).then(function(){m.resolve()},function(){m.reject()}),m.promise},updateFavoriteLanguage:function(D){var m=a.defer();return t.post(scope.apiEndpoint+"Profiles/favoriteLanguage/"+D).then(function(){m.resolve()},function(){m.reject()}),m.promise},getPartnerAccessAllowData:function(){var D=a.defer();return t.get(scope.apiEndpoint+"Profiles/PartnerAccessAllowData").then(function(m){D.resolve(m.data)},function(){D.reject()}),D.promise},consentCookies:function(){var D=a.defer();return t.post(scope.apiEndpoint+"profiles/cookiesConsent").then(function(m){D.resolve(m.data)},function(){D.reject()}),D.promise},consentExternalMediaCookies:function(D){var m=a.defer();return t.post(scope.apiEndpoint+"profiles/externalMediaCookiesConsent",D).then(function(M){m.resolve(M.data)},function(){m.reject()}),m.promise},contactSnipCreator:function(D){var m=a.defer();return t.post(scope.apiEndpoint+"profiles/contactSnipCreator",D).then(function(M){m.resolve()},function(){m.reject()}),m.promise},getStaffDirectoryPublic:function(D){var m=a.defer();return console.log("_getPublicStaffDirectoryProfile"),t.get(scope.apiEndpoint+"profiles/publicstaffdirdata/"+D).then(function(M){m.resolve(M.data)},function(){m.reject()}),m.promise},getStaffDirectoryOwned:function(D){var m=a.defer();return console.log("_getOwnStaffDirectoryProfile"),t.get(scope.apiEndpoint+"profiles/ownstaffdirdata/"+D).then(function(M){m.resolve(M.data)},function(){m.reject()}),m.promise},updateStaffDirectory:function(D,m){var M=a.defer();return t.post(scope.apiEndpoint+"Profiles/staffdirdata/?userId="+D,m).then(function(E){angular.copy(E.data,g),M.resolve(g)},function(){M.reject()}),M.promise},getOwnPrivateStaffDirData:function(D){var m=a.defer();return t.get(scope.apiEndpoint+"profiles/ownnoneditablestaffdirdata/"+D).then(function(M){m.resolve(M.data)},function(){m.reject()}),m.promise},reportProfile:function(D){var m=a.defer();return t.post(scope.apiEndpoint+"profiles/report",D).then(function(M){m.resolve(g)},function(){m.reject()}),m.promise},block:function(D){var m=a.defer();return t.post(scope.apiEndpoint+"profiles/block",D).then(function(M){m.resolve(g)},function(){m.reject()}),m.promise}}}]),app.controller("PublicProfileController",["$scope","$rootScope","profileService","articleService","scopeService","$stateParams","$uibModal",function(e,t,a,r,c,g,f){e.targetUserId=g.id,"Redesign2024"!=t.scope.currentScope.network.settings.configurations.contentRenderEngine&&(e.articleLimit=12,e.articleIncrement=12,e.enableUserReports=t.scope.currentScope.chapter.settings.configurations.enableUserReports,e.enableBlockUsers=t.scope.currentScope.chapter.settings.configurations.enableBlockUsers,e.enableUserReportsOrBlockForAll=t.scope.currentScope.chapter.settings.configurations.enableUserReportsOrBlockForAll,e.showReportUser=e.enableUserReports,e.showBlockUser=e.enableBlockUsers,e.enableVerifiedUsers=t.scope.currentScope.chapter.settings.configurations.enableVerifiedUsers,e.showVerifiedUser=!1,e.loadProfile=function(){a.getPublicProfile(g.id).then(function(n){e.aprofile=n,e.aprofile.callback=e.loadProfile,e.staffDirectoryLoad=a.getStaffDirectoryPublic,e.imageContainer=c.getGlobalSettings().blobStorageCdnUrl+"/"+c.getGlobalSettings().blobStorageContainerNameImage+"/",n.isJournalist&&r.getArticlesByAuthor(g.id).then(function(d){e.articles=d}),e.showReportUser=e.enableUserReports&&(!!e.enableUserReportsOrBlockForAll||!e.aprofile.isJournalist),e.showBlockUser=e.enableBlockUsers&&(!!e.enableUserReportsOrBlockForAll||!e.aprofile.isJournalist),e.showVerifiedUser=e.aprofile.isVerifiedUser})},e.loadProfile(),e.reportUser=function(n){f.open({templateUrl:"/ClientApp/src/legacy-app/user/profileReportDialog.html",controller:"ProfileReportDialog",size:"lg",resolve:{profile:function(){return n}}})},e.blockUser=function(n){f.open({templateUrl:"/ClientApp/src/legacy-app/user/profileBlockDialog.html",controller:"ProfileBlockDialog",size:"lg",resolve:{profile:function(){return n}}})})}]),app.controller("ProfileReportDialog",["$scope","profile","profileService",function(e,t,a){e.working=!1,e.error=!1,e.type=-1,e.reportUser=function(){e.working=!0,a.reportProfile({reportedUserGuid:t.guid,reportingReason:e.type}).then(function(){e.working=!1,t.callback&&t.callback(),e.$dismiss()},function(){e.error=!0,e.working=!1,e.$dismiss()})}}]),app.controller("ProfileBlockDialog",["$scope","profile","profileService",function(e,t,a){e.working=!1,e.error=!1,e.type=-1,e.isBlocked=t.isBlockedByCurrentUser,e.blockUser=function(){e.working=!0,a.block({blockedUserGuid:t.guid,blockingReason:e.type}).then(function(){e.working=!1,t.callback&&t.callback(),e.$dismiss()},function(){e.error=!0,e.working=!1,e.$dismiss()})},e.unblockUser=function(){e.working=!0,a.block({blockedUserGuid:t.guid,blockingReason:e.type,performUnblock:!0}).then(function(){e.working=!1,t.callback&&t.callback(),e.$dismiss()},function(){e.error=!0,e.working=!1,e.$dismiss()})}}]),app.controller("UnsubscribeController",["$scope","profileService","$location","$stateParams",function(e,t,a,r){e.unsubscribed=!1,e.email="",a.search().email&&(e.email=a.search().email),e.unsubscribe=function(){t.unsubscribe(r.id).then(function(c){e.unsubscribed=!0,e.success=c},function(){e.unsubscribed=!0,e.success=!1}).then(function(){})}}]),app.component("userBadge",{templateUrl:"/ClientApp/src/legacy-app/user/userBadge.html",bindings:{user:"<",article:"<",snip:"<"},controller:["$state","$scope","$rootScope","scopeService","formatterService","profileService","$uibModal",function(e,t,a,r,c,g,f){var n=this;n.shortDateTimeFormatString=c.getShortDateTimeFormatString(),n.showVerifiedUser=!1,this.$onInit=function(){n.article&&n.article.originChapterSlug&&n.article.originNetworkSlug?r.getNetworkChapter(n.article.originChapterSlug,n.article.originNetworkSlug).then(function(d){n.crossNetworkInfo=d,n.userProfileUrl=d.network.path+("/"===d.chapter.path?"/profile/"+n.user.guid:d.chapter.path+"/profile/"+n.user.guid)}):n.userProfileUrl=a.scope.currentScope.chapter.path+"/profile/"+n.user.guid,n.article&&n.article.originArticle&&(n.originArticlePath=a.scope.currentScope.network.path+r.getChapter(n.article.originChapterSlug).path+n.article.originArticle.path),n.showVerifiedUser=n.user.isVerifiedUser},n.userBadgeImprintDialog=function(){f.open({templateUrl:"/ClientApp/src/legacy-app/user/userBadgeImprintDialog.html",controller:"UserBadgeImprintDialog",size:"lg",resolve:{user:function(){return n.user},article:function(){return n.article}}})}}]}),app.controller("UserBadgeImprintDialog",["$scope","user","article","scopeService","authorService",function(e,t,a,r,c){e.user=t,t.freelance?c.getAuthorImprint(t.guid).then(function(g){e.impressum=g.html}):a&&a.originChapterSlug&&a.originNetworkSlug&&r.getNetworkChapter(a.originChapterSlug,a.originNetworkSlug).then(function(g){e.impressum=g.chapter.partner.settings.frontendImpressum.html})}]),app.controller("UserContactDialog",["$scope","$timeout","snip","profileService",function(e,t,a,r){e.user=a.user,e.content={snipId:a.id,message:""},e.successful=!1,e.contactFailed=!1,e.send=function(){e.content.message&&r.contactSnipCreator(e.content).then(function(){e.successful=!0,t(function(){e.$dismiss()},3e3)},function(){e.successful=!1,e.contactFailed=!0})}}]),app.controller("workflowController",["$scope","$stateParams","$location",function(e,t,a){e.workflowId=t.id,e.preview=void 0!==a.search().preview,1!=a.search().preview&&(e.revisionId=a.search().preview)}]),app.factory("workflowService",["$rootScope","$http","$q","authService",function(e,t,a,r){var f=function(){return scope.apiEndpoint+"workflow/attachment/"};return{getWorkflowTemplate:function(l,i,s,o){var b=a.defer(),p=i?"?preview=true":"";return p?(s&&(p=p+"&articleId="+s),o&&(p=p+"&revisionId="+o)):s&&(p="?articleId="+s),t.get(scope.apiEndpoint+"workflow/template/"+l+p).then(function(h){b.resolve(h.data)},function(){b.reject()}),b.promise},saveWorkflowData:function(l){var i=a.defer();return t.post(scope.apiEndpoint+"workflow/submission",JSON.stringify(l)).then(function(s){i.resolve(s.data)},function(){i.reject()}),i.promise},getWorkflowUploadBaseUrl:f,getEmbeddableWorkflowList:function(){var l=a.defer();return t.get(scope.apiEndpoint+"workflow/list/").then(function(i){l.resolve(i.data)},function(){l.reject()}),l.promise},deleteSubmittedFile:function(l){var i=a.defer();return t.delete(f()+l).then(function(s){i.resolve(!1)},function(s){i.reject("Can not delete file: "+s)}),i}}}]),function(e,t){"use strict";var l,i,a="oculus",r="oculusOptOut",c="oculusLastSuccessfulLocationRequest",g="oculusLastFailedLocationRequest",f="oculusBrowserGuid",n="oculusBrowser",d="oculusSession";try{l=e.localStorage,i=e.sessionStorage}catch{i={removeItem:function(){}},(l={removeItem:function(){}})[r]=!0}var s={BROWSER:-1,SESSION:-2,APP:-3,ARTICLEIMPRESSION:1,SNIPIMPRESSION:2,SPONSOREDARTICLEIMPRESSION:3,ARTICLEREADING:4,SNIPREADING:5,BANNERIMPRESSION:6,PREMIUMBANNERIMPRESSION:7,SPECIALIMPRESSION:8,SPECIALVIEW:9,SPECIALITEMIMPRESSION:10,MARKETRESEARCH:11,SEARCH:13,SPONSOREDARTICLEREADING:14,ARTICLEWORDREADING:15,SPONSOREDARTICLEWORDREADING:16,SURVEYIMPRESSION:17,SURVEYBANNERIMPRESSION:18,SUPERBANNERIMPRESSION:19,ASSETREFERENCEIMPRESSION:20,WORKFLOWIMPRESSION:21};function h(w,S){for(var v in w)S.hasOwnProperty(v)||(S[v]=w[v]);return S}function I(w){this.controller=w,this.guid=w.generateGuid(),this.trackingType=s.BROWSER,this.persistent=!0,this.instanceStart=new Date,this.device=0;var S=new MobileDetect(window.navigator.userAgent);this.device=S.tablet()?3:S.phone()?2:1}function y(w){this.controller=w,this.guid=w.generateGuid(),this.browserGuid=w.oculusBrowser.g,this.trackingType=s.SESSION,this.persistent=!0,this.instanceStart=new Date}function C(w){this.controller=w,this.guid=w.generateGuid(),this.sessionGuid=w.oculusSession.g,this.trackingType=s.APP,this.persistent=!0,this.instanceStart=new Date,this.referrer=w.referrer,this.location={lc:-1}}function x(w){this.controller=w,this.guid=w.generateGuid(),this.instanceStart=new Date,this.stopTime=null,this.idleTime=0,this.referrer=w.referrer}function k(w,S,v){this.trackingType=S,this.bundle=typeof v>"u"?null:v,x.call(this,w)}function R(w,S,v,A,T,D){this.trackingType=S,this.trackingType===s.SHIPMENT?(this.originalImpressionThreshold=w.settings.shipmentImpressionThreshold,this.impressionThreshold=w.settings.shipmentImpressionThreshold,this.impressionViewportThreshold=w.settings.shipmentImpressionViewportThreshold):(this.originalImpressionThreshold=w.settings.impressionThreshold,this.impressionThreshold=w.settings.impressionThreshold,this.impressionViewportThreshold=w.settings.impressionViewportThreshold),this.element=v,this.bundle=typeof A>"u"?null:A,this.pushRequestType=typeof T<"u"?T:0,this.lastImpressionUpdate=new Date,this.impressionTime=0,this.ignoreImpressionThreshold=!1,this.previousFracs=null,this.focused=!0,w.settings.feedback&&setInterval(function(m){return function(){R.prototype.update.call(m)}}(this),w.settings.feedbackInterval),x.call(this,w),D&&(this.guid=D)}function u(w,S,v,A,T){x.call(this,w);var D=this,m=new Date;this.readedWordCount=0,this.pushRequestType=typeof T<"u"?T:0,this.trackingType=S,this.elements=v.map(function(){for(var M=t(this),E=M;E.length;){if("left"===E.css("float")||"right"===E.css("float"))return E[0];E=(M=E).children()}return this}),this.elementsData=new WeakMap,this.unreadedElementsData=new WeakMap,this.readedElementsData=new WeakMap,this.wordCount=0,this.elements.each(function(){var M={threshold:D.controller.settings.readingThreshold,wordCount:t(this).text().replace(/[^\w ]/g,"").trim().split(/\s+/).clean("").length,readedWordCount:0,impressionTime:0};D.wordCount+=M.wordCount,D.elementsData.set(this,M),M.wordCount>0?D.unreadedElementsData.set(this,M):D.readedElementsData.set(this,M)}),this.bundle=typeof A>"u"?null:A,this.lastReadingUpdate=m,this.readingTimeOffset=m,this.readingEnded=null,w.settings.feedback&&setInterval(function(M){return function(){u.prototype.update.call(M)}}(this),w.settings.feedbackInterval)}function U(w,S,v,A){x.call(this,w);var T=this,D=new Date;this.readedWordCount=0,this.trackingType=S,this.elements=v.find("word"),this.elementsData=new WeakMap,this.unreadedElementsData=new WeakMap,this.readedElementsData=new WeakMap,this.readedWords=[],this.wordCount=this.elements.length,this.elements.each(function(m){T.unreadedElementsData.set(this,m+1)}),this.bundle=typeof A>"u"?null:A,this.lastReadingUpdate=D,this.readingTimeOffset=D,this.readingEnded=null,w.settings.feedback&&setInterval(function(m){return function(){U.prototype.update.call(m)}}(this),w.settings.feedbackInterval)}typeof document.hasFocus>"u"&&(document.hasFocus=function(){return"visible"===document.visibilityState}),I.prototype.getData=function(){return{g:this.guid,t:this.trackingType,s:this.instanceStart,e:new Date,d:this.device}},y.prototype.getData=function(){return{g:this.guid,t:this.trackingType,s:this.instanceStart,e:new Date,bg:this.browserGuid}},C.prototype.getData=function(){var w={g:this.guid,t:this.trackingType,s:this.instanceStart,e:new Date,sg:this.sessionGuid,n:this.controller.settings.networkSlug,c:this.controller.settings.chapterSlug,w:screen.width,h:screen.height,r:this.referrer};return h(this.location,w)},x.prototype.start=function(w){this.stopTime&&(this.idleTime+=new Date-this.stopTime,this.stopTime=null)},x.prototype.stop=function(w){this.stopTime||(this.stopTime=new Date)},x.prototype.getData=function(){return{g:this.guid,t:this.trackingType,a:new Date-this.instanceStart-this.idleTime,s:this.instanceStart,e:new Date,r:this.referrer,ag:this.controller.oculusApp.g,oa:this.controller.oculusApp,os:this.controller.oculusSession,ob:this.controller.oculusBrowser}},x.prototype.scroll=function(){},x.prototype.push=function(w){this.controller.push([this],w)},(k.prototype=Object.create(x.prototype)).constructor=k,k.prototype.getData=function(){var w=x.prototype.getData.call(this);return this.bundle&&h(this.bundle,w),w},(R.prototype=Object.create(x.prototype)).constructor=R,R.prototype.start=function(w){2===w&&(this.focused=!0),x.prototype.start.call(this,w),this.lastImpressionUpdate=new Date},R.prototype.stop=function(w){2===w&&(this.focused=!1),x.prototype.stop.call(this,w)},R.prototype.getData=function(){if(this.update(),this.impressionTime<this.impressionThreshold&&!this.ignoreImpressionThreshold)return null;var w=x.prototype.getData.call(this);return this.bundle&&h(this.bundle,w),h({i:this.impressionTime},w)},R.prototype.scroll=function(){this.update(),x.prototype.scroll.call(this)},R.prototype.update=function(){var w=!1;if(!this.stopTime){var S=this.previousFracs,v=this.previousFracs=t(this.element).fracs(),A=new Date,T=!1;if(v.possible>=this.impressionViewportThreshold&&(!S||S.possible<this.impressionViewportThreshold)?(T=!0,this.lastImpressionUpdate=A):v.possible<this.impressionViewportThreshold&&S&&S.possible>=this.impressionViewportThreshold&&(this.impressionThreshold=this.impressionThreshold,T=!0),A-this.lastImpressionUpdate<=this.controller.generalThrottling&&!T)return void(S=v);var D=A-this.lastImpressionUpdate;if(v.possible>=this.impressionViewportThreshold){var m=this.impressionThreshold;if(this.impressionThreshold-=D,this.impressionTime+=D,m>0&&this.impressionThreshold<=0&&(w=!0),this.controller.settings.feedback){var N,M=function(O,_,V){return V=V||"0",(O+="").length>=_?O:new Array(_-O.length+1).join(V)+O},E=Math.floor(this.impressionTime/1e3),P=M(Math.floor(E/60),2,0)+":"+M(E%60,2,0),q=Math.round(this.impressionThreshold/1e3);N=q>0?'<span style="color: #00cdbd">'+q+"</span>":"0",this.feedbackElement||(this.feedbackElement=t('<div style="position: relative; bottom: 0px; right: 0; width: 100%; text-align: right;"><span style="height: 22px; border-top-left-radius: 5px; color: white !important; text-align: right; padding: 5px; background-color: rgba(0, 0, 0, 0.7) !important;"><i class="fa fa-spinner feedbackImpressionThresholdIcon"></i> <span class="feedbackImpressionThresholdString"></span> | <i class="fa fa-eye"></i> <span class="feedbackImpressionTimeString"></span></span></div>'),this.feedbackImpressionThresholdIconElement=this.feedbackElement.find(".feedbackImpressionThresholdIcon"),this.feedbackImpressionThresholdStringElement=this.feedbackElement.find(".feedbackImpressionThresholdString"),this.feedbackImpressionTimeStringElement=this.feedbackElement.find(".feedbackImpressionTimeString"),"IMG"===this.element[0].tagName?t(this.element).after(this.feedbackElement):t(this.element).append(this.feedbackElement)),this.impressionThreshold>0?this.feedbackImpressionThresholdIconElement.removeClass("fa-pulse"):this.feedbackImpressionThresholdIconElement.addClass("fa-pulse"),this.feedbackImpressionThresholdStringElement.html(N),this.feedbackImpressionTimeStringElement.html(P)}}this.lastImpressionUpdate=A,w&&this.controller.requestPush(this,this.pushRequestType)}},R.prototype.click=function(){this.ignoreImpressionThreshold=!0,this.controller.requestPush(this,this.pushRequestType)},(u.prototype=Object.create(x.prototype)).constructor=u,u.prototype.start=function(w){var S=new Date;this.readingTimeOffset=new Date(this.readingTimeOffset.getTime()+(S-this.stopTime)),this.lastReadingUpdate=S,x.prototype.start.call(this,w)},u.prototype.stop=function(w){x.prototype.stop.call(this,w)},u.prototype.getData=function(){this.update();var w=x.prototype.getData.call(this);return this.bundle&&h(this.bundle,w),h({wc:this.wordCount,wr:this.readedWordCount,re:this.readingEnded?this.readingEnded:new Date},w)},u.prototype.update=function(){if(!this.stopTime){var w=this,S=new Date;if(this.lastReadingUpdate<this.startTime)return this.readingTimeOffset=new Date(this.readingTimeOffset+(S-this.lastReadingUpdate)),void(this.lastReadingUpdate=S);var v=S-this.readingTimeOffset,A=S-this.lastReadingUpdate,T=[],D=[];this.elements.each(function(){if(t(this).fracs().possible<w.controller.settings.readingViewportThreshold)w.elementsData.get(this).threshold=w.controller.settings.readingThreshold;else{var O=w.unreadedElementsData.get(this);D.push(this),O&&T.push(this)}});var m=0;D.forEach(function(O){var _=w.elementsData.get(O);_.threshold-=A,_.threshold<0&&(_.impressionTime+=A,m+=_.wordCount-_.readedWordCount)});var M=function(){if(w.controller.settings.feedback){var O=function(_,V,L){return L=L||"0",(_+="").length>=V?_:new Array(V-_.length+1).join(L)+_};D.forEach(function(_){var V=w.elementsData.get(_);t(_).css("background-color","rgba(0, 204, 187, "+V.readedWordCount/V.wordCount/2+")");var L=t(_).css("float");if("left"!==L&&"right"!==L){var H,z=Math.floor(V.impressionTime/1e3),G=O(Math.floor(z/60),2,0)+":"+O(z%60,2,0),J=Math.round(V.threshold/1e3);H=J>0?'<span style="color: #00cdbd">'+J+"</span>":"0";var Y=Math.floor(V.wordCount/(w.controller.settings.readingSpeed/60)),Z=O(Math.floor(Y/60),2,0)+":"+O(Y%60,2,0),Q=V.readedWordCount+"/"+V.wordCount;V.feedbackElement||(V.feedbackElement=t('<div style="position: absolute; margin-top: -19px; width: 100%;"><progress style="width: 100%;" class="oculus-progress feedbackProgress" value="0" max="'+V.wordCount+'"></progress><div style="padding: 2px; background-color: #eee !important; border-bottom-left-radius: 5px; color: rgba(0, 0, 0, 0.9) !important; border-bottom-right-radius: 5px; text-align: right;"><span title="threshold"><i class="fa fa-spinner feedbackThresholdIcon"></i> <span class="feedbackThresholdString"></span></span> | <span class="fa fa-eye" title="visibility time"> <span class="feedbackImpressionTimeString"></span></span> | <span class="fa fa-clock-o" title="time to read"> <span class="feedbackTimeString"></span></span> | <span class="fa fa-file-text-o" title="words read / words total"> <span class="feedbackParagraphString"></span></span></div></div>'),V.feedbackProgressElement=V.feedbackElement.find(".feedbackProgress"),V.feedbackThresholdIconElement=V.feedbackElement.find(".feedbackThresholdIcon"),V.feedbackThresholdStringElement=V.feedbackElement.find(".feedbackThresholdString"),V.feedbackImpressionTimeStringElement=V.feedbackElement.find(".feedbackImpressionTimeString"),V.feedbackTimeStringElement=V.feedbackElement.find(".feedbackTimeString"),V.feedbackParagraphStringElement=V.feedbackElement.find(".feedbackParagraphString"),t(_).after(V.feedbackElement)),V.threshold>0?V.feedbackThresholdIconElement.removeClass("fa-pulse"):V.feedbackThresholdIconElement.addClass("fa-pulse"),V.feedbackThresholdStringElement.html(H),V.feedbackProgressElement.val(V.readedWordCount),V.feedbackImpressionTimeStringElement.html(G),V.feedbackTimeStringElement.html(Z),V.feedbackParagraphStringElement.html(Q)}else V.feedbackElement&&V.feedbackElement.hide()})}};if(0===m)this.readingTimeOffset=new Date(this.readingTimeOffset.getTime()+(S-this.lastReadingUpdate)),M();else{var E=Math.round(v*(w.controller.settings.readingSpeed/6e4));E>this.wordCount&&(E=this.wordCount);var P=E-this.readedWordCount;if(P>m&&(P=m),P>0){var q=P;T.forEach(function(O){var _=w.unreadedElementsData.get(O);if(_){var V=_.wordCount-_.readedWordCount;if(!(q>V))return _.readedWordCount+=q,q=0,!1;_.readedWordCount=_.wordCount,q-=V,w.unreadedElementsData.set(O,void 0),w.readedElementsData.get(O,_)}return!0});var N=this.readedWordCount;this.readedWordCount+=P-q,Math.floor(this.readedWordCount/this.wordCount*100/25)>Math.floor(N/this.wordCount*100/25)&&this.controller.requestPush(this,this.pushRequestType),this.readedWordCount===this.wordCount&&(this.readingEnded=S),M()}}this.lastReadingUpdate=S}},(U.prototype=Object.create(x.prototype)).constructor=U,U.prototype.start=function(w){var S=new Date;this.readingTimeOffset=new Date(this.readingTimeOffset.getTime()+(S-this.stopTime)),this.lastReadingUpdate=S,x.prototype.start.call(this,w)},U.prototype.stop=function(w){x.prototype.stop.call(this,w)},U.prototype.getData=function(){this.update();var w=x.prototype.getData.call(this);return this.bundle&&h(this.bundle,w),h({wc:this.wordCount,wr:this.readedWordCount,ws:this.readedWords,re:this.readingEnded?this.readingEnded:new Date},w)},U.prototype.update=function(){if(!this.stopTime){var w=this,S=new Date;if(this.lastReadingUpdate<this.startTime)return this.readingTimeOffset=new Date(this.readingTimeOffset+(S-this.lastReadingUpdate)),void(this.lastReadingUpdate=S);var v=S-this.readingTimeOffset,A=[],T=[];this.elements.each(function(){if(!(t(this).fracs().possible<w.controller.settings.readingViewportThreshold)){var N=w.unreadedElementsData.get(this);T.push(this),N&&A.push(this)}});var D=0;T.forEach(function(N){w.unreadedElementsData.get(N)&&D++});var m=function(){w.controller.settings.feedback&&T.forEach(function(N){w.readedElementsData.get(N)&&("rgba(0, 0, 0, 0)"===t(N).css("background-color")||"transparent"===t(N).css("background-color"))&&t(N).css("background-color","rgba(0, 205, 189, 0.2)")})};if(0===D)this.readingTimeOffset=new Date(this.readingTimeOffset.getTime()+(S-this.lastReadingUpdate)),m();else{var M=Math.round(v*(w.controller.settings.readingSpeed/6e4));M>this.wordCount&&(M=this.wordCount);var E=M-this.readedWordCount;if(E>D&&(E=D),E>0){var P=E;A.every(function(N){var O=w.unreadedElementsData.get(N);return w.unreadedElementsData.set(N,void 0),w.readedElementsData.set(N,O),w.readedWords.push(O),0!==--P});var q=this.readedWordCount;this.readedWordCount+=E-P,Math.floor(this.readedWordCount/this.wordCount*100/25)>Math.floor(q/this.wordCount*100/25)&&this.controller.requestPush(this,this.pushRequestType),this.readedWordCount===this.wordCount&&(this.readingEnded=S),m()}}this.lastReadingUpdate=S}},e.Oculus=function F(w){var S=this;this.settings=h({softPushThrottling:300,generalThrottling:250,navigationThrottling:1500,saveInterval:2e3,idleTimeout:5e3,feedback:!1,feedbackInterval:300,impressionThreshold:3e3,impressionViewportThreshold:.5,shipmentImpressionThreshold:2e3,shipmentImpressionViewportThreshold:.5,readingSpeed:400,readingThreshold:2e3,readingViewportThreshold:.5,locationRequestEnable:!0,locationRequestSuccessThrottleDays:14,locationRequestFailedThrottleDays:30},w),this.referrer=document.referrer,this.generateGuid=function(){var W,ee=this.crypto||this.msCrypto;if(!W&&ee&&ee.getRandomValues){var se=new Uint8Array(16);W=function(){return ee.getRandomValues(se),se}}if(!W){var le=new Array(16);W=function(){for(var ne,oe=0;16>oe;oe++)!(3&oe)&&(ne=4294967296*Math.random()),le[oe]=ne>>>((3&oe)<<3)&255;return le}}for(var pe="function"==typeof this.Buffer?this.Buffer:Array,de=[],fe={},ue=0;256>ue;ue++)de[ue]=(ue+256).toString(16).substr(1),fe[de[ue]]=ue;return function j(ne,oe,re){var ie=oe&&re||0;"string"==typeof ne&&(oe="binary"==ne?new pe(16):null,ne=null);var ce=(ne=ne||{}).random||(ne.rng||W)();if(ce[6]=15&ce[6]|64,ce[8]=63&ce[8]|128,oe)for(var ge=0;16>ge;ge++)oe[ie+ge]=ce[ge];return oe||function B(ne,oe){var re=oe||0;return de[ne[re++]]+de[ne[re++]]+de[ne[re++]]+de[ne[re++]]+"-"+de[ne[re++]]+de[ne[re++]]+"-"+de[ne[re++]]+de[ne[re++]]+"-"+de[ne[re++]]+de[ne[re++]]+"-"+de[ne[re++]]+de[ne[re++]]+de[ne[re++]]+de[ne[re++]]+de[ne[re++]]+de[ne[re++]]}(ce)}}.call(window),this.settings.feedback?(t(document.body).prepend('<canvas id="oculus-outline" width="200" height="200" style="position: fixed; right: 0; bottom: 0px;"></canvas>'),t("#oculus-outline").fracs("outline",{crop:!0,styles:[{selector:"p,div.article",fillStyle:"rgb(220,220,220)"},{selector:"h1,h2,h3,.subheader",fillStyle:"rgb(165,204,39)"},{selector:"img,.bigpicture",fillStyle:"rgb(250,250,150)"},{selector:".shipment",fillStyle:"rgb(204,0,0)"}]})):t("#oculus-outline").remove();var A=[];if(l[n])this.oculusBrowser=JSON.parse(l[n]);else{var T=new I(this);l[f]&&(T.guid=l[f]),l[n]=JSON.stringify(T.getData()),A.push(T),this.oculusBrowser=T.getData()}if(i[d])this.oculusSession=JSON.parse(i[d]);else{var D=new y(this);i[d]=JSON.stringify(D.getData()),A.push(D),this.oculusSession=D.getData()}var m=new C(this);this.oculusApp=m.getData(),A.push(m);var M=function(){var B=l[a],j=null;try{j=JSON.parse(B)}catch{}return jQuery.isArray(j)&&0!==j.length?j:[]},E=function(B){for(var j=M(),W=[],te=0;te<B.length;te++){var ee=B[te].getData();ee&&(W.push(ee),j.some(function(se){return function(le,pe,de){return le.g===se.g&&(de[pe]=se,!0)}}(ee))||j.push(ee))}return l[a]=JSON.stringify(j),W};this.push=function(B,j){var W;if(B?W=E(B):(E(A),W=M()),0!==W.length){var te={clientTime:new Date,data:W};if(!l[r]){var ee=new XMLHttpRequest;ee.withCredentials=!0;var se=scope.apiEndpoint+"oculus/v2";ee.open("POST",se,!0),ee.setRequestHeader("Content-type","application/json; charset=utf-8"),ee.onreadystatechange=function(){ee.readyState===XMLHttpRequest.DONE&&(200===ee.status&&function(B){for(var j=M(),W=0;W<B.length;W++)j.some(function(te){return function(ee,se,le){return ee.g===te.g&&(le.splice(se,1),!0)}}(B[W]));l[a]=JSON.stringify(j)}(W),j&&j())},ee.send(JSON.stringify(te))}}else j&&j()};var q,N=[];this.requestPush=function(B,j){q&&(clearTimeout(q),q=null),0===j?(N.push(B),q=setTimeout(function(){S.push(N),N.length=0},this.settings.softPushThrottling)):this.push()},this.navigate=function(B){this.referrer=B;for(var j=[],W=[],te=[],ee=0;ee<A.length;ee++)te.push(A[ee]),A[ee].persistent?W.push(A[ee]):j.push(A[ee]);for(A.length=0,ee=0;ee<W.length;ee++)A.push(W[ee]);setTimeout(function(){E(te),j.length=0},w.navigationThrottling)};var O=!0,_=function(j){O&&(document.hasFocus()||-1!==navigator.userAgent.indexOf("FBIOS")?j.stop(0):j.stop(2)),A.push(j)};this.updateLocation=function(){if(this.settings.locationRequestEnable){var j=l[g]?this.settings.locationRequestFailedThrottleDays:this.settings.locationRequestSuccessThrottleDays,W=l[g]?l[g]:l[c];if(W&&(te=new Date,ee=new Date(parseInt(W)),Math.round((te-ee)/864e5)<j))return void(this.oculusApp.location={lc:-2});navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition&&navigator.geolocation.getCurrentPosition(function(te){this.oculusApp.location={lc:0,lt:new Date(te.timestamp),lac:te.coords.accuracy,la:te.coords.altitude,laac:te.coords.altitudeAccuracy,lh:te.coords.heading,llo:te.coords.longitude,lla:te.coords.latitude,ls:te.coords.speed},l.removeItem(g),l[c]=(new Date).getTime()},function(te){this.oculusApp.location={lc:te.code},l[g]=(new Date).getTime(),l.removeItem(c)})}var te,ee},this.trackArticleReading=function(B,j){var W=new u(this,s.ARTICLEREADING,B,j);return _(W),W},this.trackSponsoredArticleReading=function(B,j){var W=new u(this,s.SPONSOREDARTICLEREADING,B,j);return _(W),W},this.trackSnipReading=function(B,j){var W=new u(this,s.SNIPREADING,B,j);return _(W),W},this.trackArticleImpression=function(B,j){var W=new R(this,s.ARTICLEIMPRESSION,B,j,0);return _(W),W},this.trackSnipImpression=function(B,j){var W=new R(this,s.SNIPIMPRESSION,B,j,0);return _(W),W},this.trackSponsoredArticleImpression=function(B,j){var W=new R(this,s.SPONSOREDARTICLEIMPRESSION,B,j,0);return _(W),W},this.trackSpecialImpression=function(B,j){var W=new R(this,s.SPECIALIMPRESSION,B,j,0);return _(W),W},this.trackSpecialView=function(B){var j=new k(this,s.SPECIALVIEW,B);return _(j),j},this.trackSpecialItemImpression=function(B,j){var W=new R(this,s.SPECIALITEMIMPRESSION,B,j,1);return _(W),W},this.trackBanner=function(B,j){var W=new R(this,s.BANNERIMPRESSION,B,j,1);return _(W),W},this.trackPremiumBanner=function(B,j){var W=new R(this,s.PREMIUMBANNERIMPRESSION,B,j,1);return _(W),W},this.trackSuperBanner=function(B,j){var W=new R(this,s.SUPERBANNERIMPRESSION,B,j,1);return _(W),W},this.trackMarketResearch=function(B,j){var W=new R(this,s.MARKETRESEARCH,B,j,1);return W.ignoreImpressionThreshold=!0,_(W),W},this.trackSearch=function(B,j){var W=new R(this,s.SEARCH,B,j,0);return _(W),W},this.trackSurveyImpression=function(B,j){var W=new R(this,s.SURVEYIMPRESSION,B,j,1);return _(W),W},this.trackSurveyBannerImpression=function(B,j){var W=new R(this,s.SURVEYBANNERIMPRESSION,B,j,1);return _(W),W},this.trackAssetReferenceImpression=function(B,j){var W=new R(this,s.ASSETREFERENCEIMPRESSION,B,j,0);return _(W),W},this.trackWorkflowImpression=function(B,j){var W=new R(this,s.WORKFLOWIMPRESSION,B,j,0);return _(W),W},window.addEventListener("unload",function(){S.push()});var Z,V=function(){E(A)},L=null,J=function(B){if(!O){L&&(clearInterval(L),L=null);for(var j=0;j<A.length;j++)A[j].stop&&A[j].stop(B);O=!0,2===B&&S.push()}},H=function(){J(1)},Y=function(B){if(O){L||(L=setInterval(V,w.saveInterval));for(var j=0;j<A.length;j++)A[j].start&&A[j].start(B);O=!1}},Q=!1,ae=function(){Q||(Q=!0,Z&&clearTimeout(Z),Z=setTimeout(H,w.idleTimeout),Y(1),setTimeout(function(){Q=!1},w.generalThrottling))};t(document).mousemove(ae),t(document).keypress(ae);var X=!1,K=function(){if(!X){X=!0;for(var B=0;B<A.length;B++)A[B].scroll&&setTimeout(function(j){return function(){j.scroll()}}(A[B]),10*B);setTimeout(function(){X=!1},w.generalThrottling),ae()}};t(document).scroll(K),this.addScrollContainer=function(B){t(B).scroll(K)},window.addEventListener("blur",function(){J(2)}),window.addEventListener("focus",function(){Y(2)}),document.hasFocus()||-1!==navigator.userAgent.indexOf("FBIOS")?(Y(),ae()):J()}}(window,jQuery),function(){"use strict";function e(m,M){return typeof m===M}function t(m,M){return m instanceof M}function a(m){return m&&m.nodeType}function r(m){return a(m)?m:t(m,C)?m[0]:void 0}function c(m,M,E){return C.each(m,function(P,q){E=M.call(q,E,P,q)}),E}function g(m,M,E){var P,q,N;if(m===M)return!0;if(!m||!M||m.constructor!==M.constructor)return!1;for(P=0,q=E.length;q>P;P+=1)if(m[N=E[P]]&&u(m[N].equals)&&!m[N].equals(M[N])||m[N]!==M[N])return!1;return!0}function f(m,M,E,P){this.left=w(m),this.top=w(M),this.width=w(E),this.height=w(P),this.right=this.left+this.width,this.bottom=this.top+this.height}function n(m,M,E,P){this.visible=m||0,this.viewport=M||0,this.possible=E||0,this.rects=P&&R({},P)||null}function d(m,M){this.els=m,this.viewport=M}function l(m,M,E){var P;return C.inArray(E,v)>=0?P=f.ofElement(m):C.inArray(E,A)>=0&&(P=n.of(m,M)),P?P[E]:0}function i(m,M){return m.val-M.val}function s(m,M){return M.val-m.val}function o(m){var M=f.ofContent(m,!0),E=f.ofViewport(m,!0),P=M.width-E.width,q=M.height-E.height;this.content=M,this.viewport=E,this.width=0>=P?null:E.left/P,this.height=0>=q?null:E.top/q,this.left=E.left,this.top=E.top,this.right=M.right-E.right,this.bottom=M.bottom-E.bottom}function b(m){this.el=m||window}function p(m,M){this.context=m,this.viewport=M,this.init()}function h(m,M,E,P){this.context=new d(m,M),this.property=E,this.descending=P,this.init()}function I(m){m&&m!==window&&m!==document?(this.context=m,this.$autoTarget=C(m)):this.context=window,this.init()}var C=jQuery,x=C(window),k=C(document),R=C.extend,u=C.isFunction,U=Math.max,F=Math.min,w=Math.round,S=function(){var m={},M=1;return function(E){return E?(m[E]||(m[E]=M,M+=1),m[E]):0}}();R(f.prototype,{equals:function(m){return g(this,m,["left","top","width","height"])},area:function(){return this.width*this.height},relativeTo:function(m){return new f(this.left-m.left,this.top-m.top,this.width,this.height)},intersection:function(m){if(!t(m,f))return null;var M=U(this.left,m.left),E=F(this.right,m.right),P=U(this.top,m.top),N=E-M,O=F(this.bottom,m.bottom)-P;return N>=0&&O>=0?new f(M,P,N,O):null},envelope:function(m){if(!t(m,f))return this;var M=F(this.left,m.left),E=U(this.right,m.right),P=F(this.top,m.top);return new f(M,P,E-M,U(this.bottom,m.bottom)-P)}}),R(f,{ofContent:function(m,M){return m&&m!==document&&m!==window?M?new f(0,0,m.scrollWidth,m.scrollHeight):new f(m.offsetLeft-m.scrollLeft,m.offsetTop-m.scrollTop,m.scrollWidth,m.scrollHeight):new f(0,0,k.width(),k.height())},ofViewport:function(m,M){return m&&m!==document&&m!==window?M?new f(m.scrollLeft,m.scrollTop,m.clientWidth,m.clientHeight):new f(m.offsetLeft,m.offsetTop,m.clientWidth,m.clientHeight):new f(x.scrollLeft(),x.scrollTop(),x.width(),x.height())},ofElement:function(m){var M=C(m);if(!M.is(":visible"))return null;var E=M.offset();return new f(E.left,E.top,M.outerWidth(),M.outerHeight())}}),R(n.prototype,{equals:function(m){return this.fracsEqual(m)&&this.rectsEqual(m)},fracsEqual:function(m){return g(this,m,["visible","viewport","possible"])},rectsEqual:function(m){return g(this.rects,m.rects,["document","element","viewport"])}}),R(n,{of:function(m,M){var E,P,q;return m=a(m)&&f.ofElement(m)||m,M=a(M)&&f.ofViewport(M)||M||f.ofViewport(),m instanceof f&&(E=m.intersection(M))?(P=E.area(),q=F(m.width,M.width)*F(m.height,M.height),new n(P/m.area(),P/M.area(),P/q,{document:E,element:E.relativeTo(m),viewport:E.relativeTo(M)})):new n}});var v=["width","height","left","right","top","bottom"],A=["possible","visible","viewport"];R(d.prototype,{sorted:function(m,M){var E=this.viewport;return C.map(this.els,function(P){return{el:P,val:l(P,E,m)}}).sort(M?s:i)},best:function(m,M){return this.els.length?this.sorted(m,M)[0]:null}}),R(o.prototype,{equals:function(m){return g(this,m,["width","height","left","top","right","bottom","content","viewport"])}}),R(b.prototype,{equals:function(m){return g(this,m,["el"])},scrollState:function(){return new o(this.el)},scrollTo:function(m,M,E){var P=C(this.el===window?"html,body":this.el);m=m||0,M=M||0,E=isNaN(E)?1e3:E,P.stop(!0).animate({scrollLeft:m,scrollTop:M},E)},scroll:function(m,M,E){var P=this.el===window?x:C(this.el);m=m||0,M=M||0,this.scrollTo(P.scrollLeft()+m,P.scrollTop()+M,E)},scrollToRect:function(m,M,E,P){this.scrollTo(m.left-(M=M||0),m.top-(E=E||0),P)},scrollToElement:function(m,M,E,P){var q=f.ofElement(m).relativeTo(f.ofContent(this.el));this.scrollToRect(q,M,E,P)}});var T={init:function(){this.callbacks=C.Callbacks("memory unique"),this.currVal=null,this.prevVal=null,this.checkProxy=C.proxy(this.check,this),this.autoCheck()},bind:function(m){this.callbacks.add(m)},unbind:function(m){m?this.callbacks.remove(m):this.callbacks.empty()},trigger:function(){this.callbacks.fireWith(this.context,[this.currVal,this.prevVal])},check:function(m){var M=this.updatedValue(m);return void 0!==M&&(this.prevVal=this.currVal,this.currVal=M,this.trigger(),!0)},$autoTarget:x,autoEvents:"load resize scroll",autoCheck:function(m){this.$autoTarget[!1===m?"off":"on"](this.autoEvents,this.checkProxy)}};R(p.prototype,T,{updatedValue:function(){var m=n.of(this.context,this.viewport);return this.currVal&&this.currVal.equals(m)?void 0:m}}),R(h.prototype,T,{updatedValue:function(){var m=this.context.best(this.property,this.descending);return m&&this.currVal!==(m=m.val>0?m.el:null)?m:void 0}}),R(I.prototype,T,{updatedValue:function(){var m=new o(this.context);return this.currVal&&this.currVal.equals(m)?void 0:m}});var D="fracs";!function y(m,M){function E(G,J,H,Y){return H=_(H)?H.apply(G,J):H,_(Y[H])?Y[H].apply(G,J):void N.error('Method "'+H+'" does not exist on jQuery.'+m)}function P(G){G&&(O(L,G.statics),O(z,G.methods)),L.modplug=P}var q=[].slice,N=jQuery,O=N.extend,_=N.isFunction,V=O({},M),L=function G(){return E(this,q.call(arguments),V.defaultStatic,G)},z=function G(J){return _(G[J])?G[J].apply(this,q.call(arguments,1)):E(this,q.call(arguments),V.defaultMethod,G)};P.prev={statics:N[m],methods:N.fn[m]},P(M),N[m]=L,N.fn[m]=z}(D,{statics:{version:"0.15.1",Rect:f,Fractions:n,Group:d,ScrollState:o,Viewport:b,FracsCallbacks:p,GroupCallbacks:h,ScrollStateCallbacks:I,fracs:function(m,M){return n.of(m,M)}},methods:{content:function(m){return this.length?f.ofContent(this[0],m):null},envelope:function(){return c(this,function(m){var M=f.ofElement(this);return m?m.envelope(M):M})},fracs:function(m,M,E){e(m,"string")||(E=M,M=m,m=null),u(M)||(E=M,M=null),E=r(E);var P=D+".fracs."+S(E);return"unbind"===m?this.each(function(){var q=C(this).data(P);q&&q.unbind(M)}):"check"===m?this.each(function(){var q=C(this).data(P);q&&q.check()}):u(M)?this.each(function(){var q=C(this),N=q.data(P);N||(N=new p(this,E),q.data(P,N)),N.on(M)}):this.length?n.of(this[0],E):null},intersection:function(){return c(this,function(m){var M=f.ofElement(this);return m?m.intersection(M):M})},max:function(m,M,E){return u(M)||(E=M,M=null),E=r(E),M?(new h(this,E,m,!0).on(M),this):this.pushStack(new d(this,E).best(m,!0).el)},min:function(m,M,E){return u(M)||(E=M,M=null),E=r(E),M?(new h(this,E,m).on(M),this):this.pushStack(new d(this,E).best(m).el)},rect:function(){return this.length?f.ofElement(this[0]):null},scrollState:function(m,M){var E=D+".scrollState";return e(m,"string")||(M=m,m=null),"unbind"===m?this.each(function(){var P=C(this).data(E);P&&P.unbind(M)}):"check"===m?this.each(function(){var P=C(this).data(E);P&&P.check()}):u(M)?this.each(function(){var P=C(this),q=P.data(E);q||(q=new I(this),P.data(E,q)),q.on(M)}):this.length?new o(this[0]):null},scroll:function(m,M,E){return this.each(function(){new b(this).scroll(m,M,E)})},scrollTo:function(m,M,E,P){return C.isNumeric(m)&&(P=E,E=M,M=m,m=null),m=r(m),this.each(function(){m?new b(this).scrollToElement(m,M,E,P):new b(this).scrollTo(M,E,P)})},scrollToThis:function(m,M,E,P){return(P=new b(r(P))).scrollToElement(this[0],m,M,E),this},softLink:function(m,M,E,P){return P=new b(r(P)),this.filter("a[href^=#]").each(function(){var q=C(this);q.on("click",function(){P.scrollToElement(C(q.attr("href"))[0],m,M,E)})})},sort:function(m,M,E){return e(M,"boolean")||(E=M,M=null),E=r(E),this.pushStack(C.map(new d(this,E).sorted(m,!M),function(P){return P.el}))},viewport:function(m){return this.length?f.ofViewport(this[0],m):null}},defaultStatic:"fracs",defaultMethod:"fracs"})}(),function(){"use strict";function e(l,i,s){function o(q,N,O,_,V){q&&(O||_)&&(_&&(R.beginPath(),V?(R.rect(0,0,u.width,q.top),R.rect(0,q.top,q.left,q.height),R.rect(q.right,q.top,u.width-q.right,q.height),R.rect(0,q.bottom,u.width,u.height-q.bottom)):R.rect(q.left,q.top,q.width,q.height),R.fillStyle=_,R.fill()),O&&(R.beginPath(),R.rect(q.left,q.top,q.width,q.height),R.lineWidth=F?Math.max(N,.2/F):N,R.strokeStyle=O,R.stroke()))}function I(){u=g.ofContent(s),U=g.ofViewport(s,!0),F=Math.min(T/u.width,D/u.height),v.crop&&A.attr("width",u.width*F).attr("height",u.height*F),R.setTransform(1,0,0,1,0,0),R.clearRect(0,0,A.width(),A.height()),R.scale(F,F),function p(){t.each(v.styles,function(q,N){E(N.selector).each(function(){!function b(q,N,O,_){var V=t(q),L=g.ofElement(q);!L||L.width<=0||L.height<=0||"hidden"===V.css("visibility")||o(L=L.relativeTo(u),N="auto"===N?parseInt(V.css("border-top-width"),10):N,O="auto"===O?V.css("border-top-color"):O,_="auto"===_?V.css("background-color"):_)}(this,N.strokeWidth,N.strokeStyle,N.fillStyle)})})}(),function h(){var q=P&&v.viewportDragStyle?v.viewportDragStyle:v.viewportStyle;o(U,q.strokeWidth,q.strokeStyle,q.fillStyle,v.invertViewport)}()}function y(q){var N=g.ofElement(l);M.scrollTo((q.pageX-N.left)/F-U.width*w,(q.pageY-N.top)/F-U.height*S,v.duration)}function C(q){P=!1,q.preventDefault(),A.css("cursor","pointer").removeClass("dragOn"),t("body").css("cursor","auto"),a.off("mousemove",y),I()}function x(q){var N;v.autoFocus&&(N=g.ofElement(l),w=((q.pageX-N.left)/F-U.left)/U.width,S=((q.pageY-N.top)/F-U.top)/U.height),(!v.autoFocus||0>w||w>1||0>S||S>1)&&(w=v.focusWidth,S=v.focusHeight),P=!0,q.preventDefault(),A.css("cursor","crosshair").addClass("dragOn"),t("body").css("cursor","crosshair"),a.on("mousemove",y).one("mouseup",C),y(q)}if(!l||!t.isFunction(l.getContext))return null;var R=l.getContext("2d");if(!R)return null;s=s||window;var u,U,F,w,S,v=r({},n,i),A=t(l),T=A.attr("width"),D=A.attr("height"),m=t(s),M=new f(s),E=s===window?function(q){return t(q)}:function(q){return m.find(q)},P=!1;(function k(){A.css("cursor","pointer").mousedown(x),m.on("load resize scroll",I),I()})(),this.redraw=I}var t=jQuery,a=t(window),r=t.extend,c=t.fracs,g=c.Rect,f=c.Viewport,n={crop:!1,duration:0,focusWidth:.5,focusHeight:.5,autoFocus:!0,styles:[{selector:"header,footer,section,article",fillStyle:"rgb(230,230,230)"},{selector:"h1,h2,h3,h4",fillStyle:"rgb(255,144,55)"}],viewportStyle:{fillStyle:"rgba(255,144,55,0.3)"},viewportDragStyle:{fillStyle:"rgba(255,144,55,0.5)"},invertViewport:!1},d="fracs.outline";c.modplug({statics:{Outline:e},methods:{outline:function(l,i,s){return"string"!=typeof l&&(s=i,i=l,l=null),s instanceof t&&(s=s[0]),this.each("redraw"===l?function(){var o=t(this).data(d);o&&o.redraw()}:function(){var o=t(this).data(d);o||(o=new e(this,i,s))&&t(this).data(d,o)})}}})}();
(self.webpackChunkClientApp=self.webpackChunkClientApp||[]).push([["main"],{36:(En,it,p)=>{"use strict";p.d(it,{A:()=>k});var S=p(3090);const m=(0,p(6110).w3)(),T=/(webkit)[ /]([\w.]+)/,C=/(mozilla)(?:.*? rv:([\w.]+))/,e=w=>{w=w.toLowerCase();const P={},v=T.exec(w)||w.indexOf("compatible")<0&&C.exec(w)||[];let x=v[1],b=v[2];return"webkit"===x&&(P.webkit=!0,w.indexOf("chrome")>=0||w.indexOf("crios")>=0?(x="chrome",b=/(?:chrome|crios)\/(\d+\.\d+)/.exec(w),b=b&&b[1]):w.indexOf("fxios")>=0?(x="mozilla",b=/fxios\/(\d+\.\d+)/.exec(w),b=b&&b[1]):w.indexOf("safari")>=0&&/version|phantomjs/.test(w)?(x="safari",b=/(?:version|phantomjs)\/([0-9.]+)/.exec(w),b=b&&b[1]):(x="unknown",b=/applewebkit\/([0-9.]+)/.exec(w),b=b&&b[1])),x&&(P[x]=!0,P.version=b),P},k=(0,S.X)({_fromUA:e},e(m.userAgent))},53:(En,it,p)=>{"use strict";p.d(it,{g:()=>j});var S=p(1520);const m=" .,:;/\\<>()-[]\u060c",C=function(F){const X=F&&S.A.convertDigits(F,!1).charCodeAt(0),U=S.A.convertDigits("0",!1).charCodeAt(0);return U<=X&&X<U+10},e=function(F,X,U,Z){const A=F[U],M=F[U+1];if(!Z&&("."===A||" "===A&&". m."===F.slice(U-1,U+3)||"-"===A&&!C(M)))return!0;const H=Z&&X.some(J=>F[U]!==J[U]);return m.indexOf(A)<0&&Z===C(A)&&(!Z||H)},k=function(F,X){if(!C(F[X]))for(;X>0&&!C(F[X-1])&&("."===F[X-1]||m.indexOf(F[X-1])<0);)X--;return X},x=function(F,X){return Array.isArray(F)?F.map(function(U){return(X(U)||"").toString()}):(X(F)||"").toString()},b=/[a-zA-Z]/g,j=function(F){const X=[],U=x(new Date(2009,8,8,6,5,4),F),Z=U.split("").map(function(J,R){return R});let A=U;const M={},H=[{date:new Date(2009,8,8,6,5,4,111),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(A&&(H.forEach(function(J){const R=function(F,X,U,Z){let A=0;const M=[],H=function(J){return F[A]!==J[A]&&(void 0===Z||C(F[A])===Z)};for(Array.isArray(X)||(X=[X]),A=0;A<F.length;A++)if(U.indexOf(A)<0&&X.filter(H).length){A=k(F,A);do{if(Z=C(F[A]),!M.length&&!Z&&C(X[0][A]))break;M.push(A),U.unshift(A),A++}while(F[A]&&e(F,X,A,Z));break}return 1===M.length&&("0"===F[U[0]-1]||"\u0660"===F[U[0]-1])&&U.unshift(U[0]-1),M}(U,x(J.date,F),X,J.isDigit),L="M"!==J.pattern||M.d?J.pattern:"L";A=function(F,X,U,Z){let A,M,H;if(!C(F[X[0]]||"0")){const J=Math.max(X.length<=3?3:4,U.length);for(;X.length>J;){for(M=X.pop(),H=Z[M],Z[M]=-1,A=M+1;A<Z.length;A++)Z[A]--;F=F.substr(0,H)+F.substr(H+1)}for(M=X[X.length-1]+1,H=M<Z.length?Z[M]:M;X.length<J;){for(X.push(X[X.length-1]+1),A=M;A<Z.length;A++)Z[A]++;F=F.substr(0,H)+" "+F.substr(H)}}return F=function(F,X,U,Z){const A=X[0],M=A<Z.length?Z[A]:A;return X.forEach(function(H,J){F=F.substr(0,M+J)+(U.length>1?U[J]:U)+F.substr(M+J+1)}),1===X.length&&(F=(F=F.replace("0"+U,U+U)).replace("\u0660"+U,U+U)),F}(F,X,U,Z),F}(A,R,L,Z),M[L]=R.length}),A=function(F,X,U,Z){const A=X.split("").map(function(M,H){return U.indexOf(H)<0&&(M.match(b)||"'"===M)?Z[H]:-1});return F.split("").map(function(M,H){let J=M;const R=A.indexOf(H)>=0,L=H>0&&A.indexOf(H-1)>=0,G=A.indexOf(H+1)>=0;return R&&(L||(J="'"+J),G||(J+="'")),J}).join("")}(A,U,X,Z),X.length))return A}},65:(En,it,p)=>{"use strict";p.d(it,{$R:()=>vo,JV:()=>j,Lr:()=>F,Qq:()=>de,_y:()=>G,b$:()=>pi,hv:()=>W,rx:()=>L}),p(6394);var d=p(656),T=(p(4303),p(4807)),C=p(8503),e=p(6347),k=p(3527),w=p(2831),P=p(9406),x=(p(8399),p(756)),b=p(2145);class B{}class j{}class F{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(li){li?"string"==typeof li?this.lazyInit=()=>{this.headers=new Map,li.split("\n").forEach(si=>{const Ni=si.indexOf(":");if(Ni>0){const Yi=si.slice(0,Ni),Sn=si.slice(Ni+1).trim();this.addHeaderEntry(Yi,Sn)}})}:typeof Headers<"u"&&li instanceof Headers?(this.headers=new Map,li.forEach((si,Ni)=>{this.addHeaderEntry(Ni,si)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(li).forEach(([si,Ni])=>{this.setHeaderEntries(si,Ni)})}:this.headers=new Map}has(li){return this.init(),this.headers.has(li.toLowerCase())}get(li){this.init();const si=this.headers.get(li.toLowerCase());return si&&si.length>0?si[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(li){return this.init(),this.headers.get(li.toLowerCase())||null}append(li,si){return this.clone({name:li,value:si,op:"a"})}set(li,si){return this.clone({name:li,value:si,op:"s"})}delete(li,si){return this.clone({name:li,value:si,op:"d"})}maybeSetNormalizedName(li,si){this.normalizedNames.has(si)||this.normalizedNames.set(si,li)}init(){this.lazyInit&&(this.lazyInit instanceof F?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(li=>this.applyUpdate(li)),this.lazyUpdate=null))}copyFrom(li){li.init(),Array.from(li.headers.keys()).forEach(si=>{this.headers.set(si,li.headers.get(si)),this.normalizedNames.set(si,li.normalizedNames.get(si))})}clone(li){const si=new F;return si.lazyInit=this.lazyInit&&this.lazyInit instanceof F?this.lazyInit:this,si.lazyUpdate=(this.lazyUpdate||[]).concat([li]),si}applyUpdate(li){const si=li.name.toLowerCase();switch(li.op){case"a":case"s":let Ni=li.value;if("string"==typeof Ni&&(Ni=[Ni]),0===Ni.length)return;this.maybeSetNormalizedName(li.name,si);const Yi=("a"===li.op?this.headers.get(si):void 0)||[];Yi.push(...Ni),this.headers.set(si,Yi);break;case"d":const Sn=li.value;if(Sn){let ri=this.headers.get(si);if(!ri)return;ri=ri.filter(It=>-1===Sn.indexOf(It)),0===ri.length?(this.headers.delete(si),this.normalizedNames.delete(si)):this.headers.set(si,ri)}else this.headers.delete(si),this.normalizedNames.delete(si)}}addHeaderEntry(li,si){const Ni=li.toLowerCase();this.maybeSetNormalizedName(li,Ni),this.headers.has(Ni)?this.headers.get(Ni).push(si):this.headers.set(Ni,[si])}setHeaderEntries(li,si){const Ni=(Array.isArray(si)?si:[si]).map(Sn=>Sn.toString()),Yi=li.toLowerCase();this.headers.set(Yi,Ni),this.maybeSetNormalizedName(li,Yi)}forEach(li){this.init(),Array.from(this.normalizedNames.keys()).forEach(si=>li(this.normalizedNames.get(si),this.headers.get(si)))}}class U{encodeKey(li){return H(li)}encodeValue(li){return H(li)}decodeKey(li){return decodeURIComponent(li)}decodeValue(li){return decodeURIComponent(li)}}const A=/%(\d[a-f0-9])/gi,M={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function H(Fn){return encodeURIComponent(Fn).replace(A,(li,si)=>M[si]??li)}function J(Fn){return`${Fn}`}class R{map;encoder;updates=null;cloneFrom=null;constructor(li={}){if(this.encoder=li.encoder||new U,li.fromString){if(li.fromObject)throw new d.buA(2805,!1);this.map=function Z(Fn,li){const si=new Map;return Fn.length>0&&Fn.replace(/^\?/,"").split("&").forEach(Yi=>{const Sn=Yi.indexOf("="),[ri,It]=-1==Sn?[li.decodeKey(Yi),""]:[li.decodeKey(Yi.slice(0,Sn)),li.decodeValue(Yi.slice(Sn+1))],Pt=si.get(ri)||[];Pt.push(It),si.set(ri,Pt)}),si}(li.fromString,this.encoder)}else li.fromObject?(this.map=new Map,Object.keys(li.fromObject).forEach(si=>{const Ni=li.fromObject[si],Yi=Array.isArray(Ni)?Ni.map(J):[J(Ni)];this.map.set(si,Yi)})):this.map=null}has(li){return this.init(),this.map.has(li)}get(li){this.init();const si=this.map.get(li);return si?si[0]:null}getAll(li){return this.init(),this.map.get(li)||null}keys(){return this.init(),Array.from(this.map.keys())}append(li,si){return this.clone({param:li,value:si,op:"a"})}appendAll(li){const si=[];return Object.keys(li).forEach(Ni=>{const Yi=li[Ni];Array.isArray(Yi)?Yi.forEach(Sn=>{si.push({param:Ni,value:Sn,op:"a"})}):si.push({param:Ni,value:Yi,op:"a"})}),this.clone(si)}set(li,si){return this.clone({param:li,value:si,op:"s"})}delete(li,si){return this.clone({param:li,value:si,op:"d"})}toString(){return this.init(),this.keys().map(li=>{const si=this.encoder.encodeKey(li);return this.map.get(li).map(Ni=>si+"="+this.encoder.encodeValue(Ni)).join("&")}).filter(li=>""!==li).join("&")}clone(li){const si=new R({encoder:this.encoder});return si.cloneFrom=this.cloneFrom||this,si.updates=(this.updates||[]).concat(li),si}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(li=>this.map.set(li,this.cloneFrom.map.get(li))),this.updates.forEach(li=>{switch(li.op){case"a":case"s":const si=("a"===li.op?this.map.get(li.param):void 0)||[];si.push(J(li.value)),this.map.set(li.param,si);break;case"d":if(void 0===li.value){this.map.delete(li.param);break}{let Ni=this.map.get(li.param)||[];const Yi=Ni.indexOf(J(li.value));-1!==Yi&&Ni.splice(Yi,1),Ni.length>0?this.map.set(li.param,Ni):this.map.delete(li.param)}}}),this.cloneFrom=this.updates=null)}}class L{defaultValue;constructor(li){this.defaultValue=li}}class G{map=new Map;set(li,si){return this.map.set(li,si),this}get(li){return this.map.has(li)||this.map.set(li,li.defaultValue()),this.map.get(li)}delete(li){return this.map.delete(li),this}has(li){return this.map.has(li)}keys(){return this.map.keys()}}function z(Fn){return typeof ArrayBuffer<"u"&&Fn instanceof ArrayBuffer}function K(Fn){return typeof Blob<"u"&&Fn instanceof Blob}function ee(Fn){return typeof FormData<"u"&&Fn instanceof FormData}const be="Content-Type",Re="X-Request-URL",Se="text/plain",De="application/json",Pe=`${De}, ${Se}, */*`;class Ie{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(li,si,Ni,Yi){let Sn;if(this.url=si,this.method=li.toUpperCase(),function Q(Fn){switch(Fn){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Yi?(this.body=void 0!==Ni?Ni:null,Sn=Yi):Sn=Ni,Sn){if(this.reportProgress=!!Sn.reportProgress,this.withCredentials=!!Sn.withCredentials,this.keepalive=!!Sn.keepalive,Sn.responseType&&(this.responseType=Sn.responseType),Sn.headers&&(this.headers=Sn.headers),Sn.context&&(this.context=Sn.context),Sn.params&&(this.params=Sn.params),Sn.priority&&(this.priority=Sn.priority),Sn.cache&&(this.cache=Sn.cache),Sn.credentials&&(this.credentials=Sn.credentials),"number"==typeof Sn.timeout){if(Sn.timeout<1||!Number.isInteger(Sn.timeout))throw new d.buA(2822,"");this.timeout=Sn.timeout}Sn.mode&&(this.mode=Sn.mode),Sn.redirect&&(this.redirect=Sn.redirect),Sn.integrity&&(this.integrity=Sn.integrity),Sn.referrer&&(this.referrer=Sn.referrer),this.transferCache=Sn.transferCache}if(this.headers??=new F,this.context??=new G,this.params){const ri=this.params.toString();if(0===ri.length)this.urlWithParams=si;else{const It=si.indexOf("?");this.urlWithParams=si+(-1===It?"?":It<si.length-1?"&":"")+ri}}else this.params=new R,this.urlWithParams=si}serializeBody(){return null===this.body?null:"string"==typeof this.body||z(this.body)||K(this.body)||ee(this.body)||function re(Fn){return typeof URLSearchParams<"u"&&Fn instanceof URLSearchParams}(this.body)?this.body:this.body instanceof R?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:K(this.body)?this.body.type||null:z(this.body)?null:"string"==typeof this.body?Se:this.body instanceof R?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?De:null}clone(li={}){const si=li.method||this.method,Ni=li.url||this.url,Yi=li.responseType||this.responseType,Sn=li.keepalive??this.keepalive,ri=li.priority||this.priority,It=li.cache||this.cache,Pt=li.mode||this.mode,dn=li.redirect||this.redirect,jt=li.credentials||this.credentials,Ot=li.referrer||this.referrer,Tn=li.integrity||this.integrity,ni=li.transferCache??this.transferCache,Bi=li.timeout??this.timeout,Zi=void 0!==li.body?li.body:this.body,ro=li.withCredentials??this.withCredentials,mo=li.reportProgress??this.reportProgress;let ho=li.headers||this.headers,St=li.params||this.params;const Qt=li.context??this.context;return void 0!==li.setHeaders&&(ho=Object.keys(li.setHeaders).reduce((jn,ai)=>jn.set(ai,li.setHeaders[ai]),ho)),li.setParams&&(St=Object.keys(li.setParams).reduce((jn,ai)=>jn.set(ai,li.setParams[ai]),St)),new Ie(si,Ni,Zi,{params:St,headers:ho,context:Qt,reportProgress:mo,responseType:Yi,withCredentials:ro,transferCache:ni,keepalive:Sn,cache:It,priority:ri,timeout:Bi,mode:Pt,redirect:dn,credentials:jt,referrer:Ot,integrity:Tn})}}var W=function(Fn){return Fn[Fn.Sent=0]="Sent",Fn[Fn.UploadProgress=1]="UploadProgress",Fn[Fn.ResponseHeader=2]="ResponseHeader",Fn[Fn.DownloadProgress=3]="DownloadProgress",Fn[Fn.Response=4]="Response",Fn[Fn.User=5]="User",Fn}(W||{});class ie{headers;status;statusText;url;ok;type;redirected;constructor(li,si=200,Ni="OK"){this.headers=li.headers||new F,this.status=void 0!==li.status?li.status:si,this.statusText=li.statusText||Ni,this.url=li.url||null,this.redirected=li.redirected,this.ok=this.status>=200&&this.status<300}}class he extends ie{constructor(li={}){super(li)}type=W.ResponseHeader;clone(li={}){return new he({headers:li.headers||this.headers,status:void 0!==li.status?li.status:this.status,statusText:li.statusText||this.statusText,url:li.url||this.url||void 0})}}class Ce extends ie{body;constructor(li={}){super(li),this.body=void 0!==li.body?li.body:null}type=W.Response;clone(li={}){return new Ce({body:void 0!==li.body?li.body:this.body,headers:li.headers||this.headers,status:void 0!==li.status?li.status:this.status,statusText:li.statusText||this.statusText,url:li.url||this.url||void 0,redirected:li.redirected??this.redirected})}}class ye extends ie{name="HttpErrorResponse";message;error;ok=!1;constructor(li){super(li,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${li.url||"(unknown url)"}`:`Http failure response for ${li.url||"(unknown url)"}: ${li.status} ${li.statusText}`,this.error=li.error||null}}function Ye(Fn,li){return{body:li,headers:Fn.headers,context:Fn.context,observe:Fn.observe,params:Fn.params,reportProgress:Fn.reportProgress,responseType:Fn.responseType,withCredentials:Fn.withCredentials,credentials:Fn.credentials,transferCache:Fn.transferCache,timeout:Fn.timeout,keepalive:Fn.keepalive,priority:Fn.priority,cache:Fn.cache,mode:Fn.mode,redirect:Fn.redirect,integrity:Fn.integrity,referrer:Fn.referrer}}let de=(()=>{class Fn{handler;constructor(si){this.handler=si}request(si,Ni,Yi={}){let Sn;if(si instanceof Ie)Sn=si;else{let Pt,dn;Pt=Yi.headers instanceof F?Yi.headers:new F(Yi.headers),Yi.params&&(dn=Yi.params instanceof R?Yi.params:new R({fromObject:Yi.params})),Sn=new Ie(si,Ni,void 0!==Yi.body?Yi.body:null,{headers:Pt,context:Yi.context,params:dn,reportProgress:Yi.reportProgress,responseType:Yi.responseType||"json",withCredentials:Yi.withCredentials,transferCache:Yi.transferCache,keepalive:Yi.keepalive,priority:Yi.priority,cache:Yi.cache,mode:Yi.mode,redirect:Yi.redirect,credentials:Yi.credentials,referrer:Yi.referrer,integrity:Yi.integrity,timeout:Yi.timeout})}const ri=(0,x.of)(Sn).pipe((0,T.H)(Pt=>this.handler.handle(Pt)));if(si instanceof Ie||"events"===Yi.observe)return ri;const It=ri.pipe((0,C.p)(Pt=>Pt instanceof Ce));switch(Yi.observe||"body"){case"body":switch(Sn.responseType){case"arraybuffer":return It.pipe((0,k.T)(Pt=>{if(null!==Pt.body&&!(Pt.body instanceof ArrayBuffer))throw new d.buA(2806,!1);return Pt.body}));case"blob":return It.pipe((0,k.T)(Pt=>{if(null!==Pt.body&&!(Pt.body instanceof Blob))throw new d.buA(2807,!1);return Pt.body}));case"text":return It.pipe((0,k.T)(Pt=>{if(null!==Pt.body&&"string"!=typeof Pt.body)throw new d.buA(2808,!1);return Pt.body}));default:return It.pipe((0,k.T)(Pt=>Pt.body))}case"response":return It;default:throw new d.buA(2809,!1)}}delete(si,Ni={}){return this.request("DELETE",si,Ni)}get(si,Ni={}){return this.request("GET",si,Ni)}head(si,Ni={}){return this.request("HEAD",si,Ni)}jsonp(si,Ni){return this.request("JSONP",si,{params:(new R).append(Ni,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(si,Ni={}){return this.request("OPTIONS",si,Ni)}patch(si,Ni,Yi={}){return this.request("PATCH",si,Ye(Yi,Ni))}post(si,Ni,Yi={}){return this.request("POST",si,Ye(Yi,Ni))}put(si,Ni,Yi={}){return this.request("PUT",si,Ye(Yi,Ni))}static \u0275fac=function(Ni){return new(Ni||Fn)(d.KVO(B))};static \u0275prov=d.jDH({token:Fn,factory:Fn.\u0275fac})}return Fn})();const Ee=new d.nKC("");function fe(Fn,li){return li(Fn)}const tt=new d.nKC(""),at=new d.nKC(""),Vt=new d.nKC("",{providedIn:"root",factory:()=>!0});let et=(()=>{class Fn extends B{backend;injector;chain=null;pendingTasks=(0,d.WQX)(d.u5s);contributeToStability=(0,d.WQX)(Vt);constructor(si,Ni){super(),this.backend=si,this.injector=Ni}handle(si){if(null===this.chain){const Ni=Array.from(new Set([...this.injector.get(tt),...this.injector.get(at,[])]));this.chain=Ni.reduceRight((Yi,Sn)=>function Ue(Fn,li,si){return(Ni,Yi)=>(0,d.N4e)(si,()=>li(Ni,Sn=>Fn(Sn,Yi)))}(Yi,Sn,this.injector),fe)}if(this.contributeToStability){const Ni=this.pendingTasks.add();return this.chain(si,Yi=>this.backend.handle(Yi)).pipe((0,e.j)(Ni))}return this.chain(si,Ni=>this.backend.handle(Ni))}static \u0275fac=function(Ni){return new(Ni||Fn)(d.KVO(j),d.KVO(d.uvJ))};static \u0275prov=d.jDH({token:Fn,factory:Fn.\u0275fac})}return Fn})();const nn=/^\)\]\}',?\n/,rn=RegExp(`^${Re}:`,"m");let ji=(()=>{class Fn{xhrFactory;constructor(si){this.xhrFactory=si}handle(si){if("JSONP"===si.method)throw new d.buA(-2800,!1);const Ni=this.xhrFactory;return(0,x.of)(null).pipe((0,w.n)(()=>new P.c(Sn=>{const ri=Ni.build();if(ri.open(si.method,si.urlWithParams),si.withCredentials&&(ri.withCredentials=!0),si.headers.forEach((ro,mo)=>ri.setRequestHeader(ro,mo.join(","))),si.headers.has("Accept")||ri.setRequestHeader("Accept",Pe),!si.headers.has(be)){const ro=si.detectContentTypeHeader();null!==ro&&ri.setRequestHeader(be,ro)}if(si.timeout&&(ri.timeout=si.timeout),si.responseType){const ro=si.responseType.toLowerCase();ri.responseType="json"!==ro?ro:"text"}const It=si.serializeBody();let Pt=null;const dn=()=>{if(null!==Pt)return Pt;const ro=ri.statusText||"OK",mo=new F(ri.getAllResponseHeaders()),ho=function Mn(Fn){return"responseURL"in Fn&&Fn.responseURL?Fn.responseURL:rn.test(Fn.getAllResponseHeaders())?Fn.getResponseHeader(Re):null}(ri)||si.url;return Pt=new he({headers:mo,status:ri.status,statusText:ro,url:ho}),Pt},jt=()=>{let{headers:ro,status:mo,statusText:ho,url:St}=dn(),Qt=null;204!==mo&&(Qt=typeof ri.response>"u"?ri.responseText:ri.response),0===mo&&(mo=Qt?200:0);let jn=mo>=200&&mo<300;if("json"===si.responseType&&"string"==typeof Qt){const ai=Qt;Qt=Qt.replace(nn,"");try{Qt=""!==Qt?JSON.parse(Qt):null}catch($i){Qt=ai,jn&&(jn=!1,Qt={error:$i,text:Qt})}}jn?(Sn.next(new Ce({body:Qt,headers:ro,status:mo,statusText:ho,url:St||void 0})),Sn.complete()):Sn.error(new ye({error:Qt,headers:ro,status:mo,statusText:ho,url:St||void 0}))},Ot=ro=>{const{url:mo}=dn(),ho=new ye({error:ro,status:ri.status||0,statusText:ri.statusText||"Unknown Error",url:mo||void 0});Sn.error(ho)};let Tn=Ot;si.timeout&&(Tn=ro=>{const{url:mo}=dn(),ho=new ye({error:new DOMException("Request timed out","TimeoutError"),status:ri.status||0,statusText:ri.statusText||"Request timeout",url:mo||void 0});Sn.error(ho)});let ni=!1;const Bi=ro=>{ni||(Sn.next(dn()),ni=!0);let mo={type:W.DownloadProgress,loaded:ro.loaded};ro.lengthComputable&&(mo.total=ro.total),"text"===si.responseType&&ri.responseText&&(mo.partialText=ri.responseText),Sn.next(mo)},Zi=ro=>{let mo={type:W.UploadProgress,loaded:ro.loaded};ro.lengthComputable&&(mo.total=ro.total),Sn.next(mo)};return ri.addEventListener("load",jt),ri.addEventListener("error",Ot),ri.addEventListener("timeout",Tn),ri.addEventListener("abort",Ot),si.reportProgress&&(ri.addEventListener("progress",Bi),null!==It&&ri.upload&&ri.upload.addEventListener("progress",Zi)),ri.send(It),Sn.next({type:W.Sent}),()=>{ri.removeEventListener("error",Ot),ri.removeEventListener("abort",Ot),ri.removeEventListener("load",jt),ri.removeEventListener("timeout",Tn),si.reportProgress&&(ri.removeEventListener("progress",Bi),null!==It&&ri.upload&&ri.upload.removeEventListener("progress",Zi)),ri.readyState!==ri.DONE&&ri.abort()}})))}static \u0275fac=function(Ni){return new(Ni||Fn)(d.KVO(b.N))};static \u0275prov=d.jDH({token:Fn,factory:Fn.\u0275fac})}return Fn})();const Mi=new d.nKC(""),Co=new d.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Qn=new d.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class ei{}let Rt=(()=>{class Fn{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(si,Ni){this.doc=si,this.cookieName=Ni}getToken(){const si=this.doc.cookie||"";return si!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,b.b)(si,this.cookieName),this.lastCookieString=si),this.lastToken}static \u0275fac=function(Ni){return new(Ni||Fn)(d.KVO(d.qQL),d.KVO(Co))};static \u0275prov=d.jDH({token:Fn,factory:Fn.\u0275fac})}return Fn})();function Jt(Fn,li){const si=Fn.url.toLowerCase();if(!(0,d.WQX)(Mi)||"GET"===Fn.method||"HEAD"===Fn.method||si.startsWith("http://")||si.startsWith("https://"))return li(Fn);const Ni=(0,d.WQX)(ei).getToken(),Yi=(0,d.WQX)(Qn);return null!=Ni&&!Fn.headers.has(Yi)&&(Fn=Fn.clone({headers:Fn.headers.set(Yi,Ni)})),li(Fn)}var Jn=function(Fn){return Fn[Fn.Interceptors=0]="Interceptors",Fn[Fn.LegacyInterceptors=1]="LegacyInterceptors",Fn[Fn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Fn[Fn.NoXsrfProtection=3]="NoXsrfProtection",Fn[Fn.JsonpSupport=4]="JsonpSupport",Fn[Fn.RequestsMadeViaParent=5]="RequestsMadeViaParent",Fn[Fn.Fetch=6]="Fetch",Fn}(Jn||{});function vo(...Fn){const li=[de,ji,et,{provide:B,useExisting:et},{provide:j,useFactory:()=>(0,d.WQX)(Ee,{optional:!0})??(0,d.WQX)(ji)},{provide:tt,useValue:Jt,multi:!0},{provide:Mi,useValue:!0},{provide:ei,useClass:Rt}];for(const si of Fn)li.push(...si.\u0275providers);return(0,d.EmA)(li)}function pi(Fn){return function Ii(Fn,li){return{\u0275kind:Fn,\u0275providers:li}}(Jn.Interceptors,Fn.map(li=>({provide:tt,useValue:li,multi:!0})))}},79:(En,it,p)=>{"use strict";p.d(it,{p:()=>k});var S=p(2198),d=p(9090),m=p(3746),T=p(656),C=p(65),e=p(6449);let k=(()=>{var w;class P{constructor(x,b,B,j){this.http=x,this.scopeService=b,this.authService=B,this.upgrade=j,this.profilePromise=null,this.apiEndpoint="your_api_endpoint",this.profileChanged=new d.m,this.profileChanged$=this.profileChanged.asObservable(),this.isRedesign=!0,this.updateRootScope=()=>{this.upgrade.injector.get("$rootScope").profile=this.profile,this.scope.profile=this.profile},this.getProfile=(F=!1)=>!F&&this.profile&&0!==Object.keys(this.profile).length?Promise.resolve(this.profile):(this.profilePromise||(this.profilePromise=this.authService.noop().then(()=>this.http.get(`${this.apiEndpoint}Profiles`).toPromise()).then(X=>(this.profile=X,this.scope.profile=this.profile,this.profile.translatedResources&&(this.scope.network.resources=this.profile.translatedResources),this.profilePromise=null,this.updateRootScope(),this.profile)).catch(X=>{throw this.profilePromise=null,new Error("Profile fetch failed: "+X)})),this.profilePromise),this.updateFavoriteChapter=F=>this.http.post(`${this.apiEndpoint}Profiles/FavoriteChapter/${F}`,{}).toPromise(),this.updateFavoriteLanguage=F=>this.http.post(`${this.apiEndpoint}Profiles/favoriteLanguage/${F}`,{}).toPromise().then(()=>{this.profile.favoriteLanguage=F,this.updateRootScope()}),this.updateProfile=F=>this.http.post(`${this.apiEndpoint}Profiles`,F).toPromise().then(X=>(this.profile=X,this.updateRootScope(),this.profile)),this.updateCover=F=>this.http.post(`${this.apiEndpoint}Profiles/Cover`,{guid:F}).toPromise().then(X=>{const U=X;return this.profile?(this.profile.coverGuid=U.coverGuid,this.profile.coverImageUrl=U.coverImageUrl):this.profile={coverGuid:U.coverGuid,coverImageUrl:U.coverImageUrl},this.scope.profile=this.profile,this.updateRootScope(),this.profileChanged.next(this.profile),this.profile}),this.updateAvatar=F=>this.http.post(`${this.apiEndpoint}Profiles/Avatar`,{guid:F}).toPromise().then(X=>{const U=X;return this.profile?(this.profile.avatarGuid=U.avatarGuid,this.profile.avatarImageUrl=`${U.avatarImageUrl}`):this.profile=U,this.scope.profile=this.profile,this.updateRootScope(),this.profile}),this.updatePartnerAccessAllow=()=>this.http.post(`${this.apiEndpoint}Profiles/PartnerAccessAllow`,{}).toPromise().then(F=>{const X={...this.profile,...F};return this.profile=X,this.scope.profile=this.profile,this.profileChanged.next(this.profile),this.updateRootScope(),this.profile}),this.getPartnerAccessAllowData=()=>this.http.get(`${this.apiEndpoint}Profiles/PartnerAccessAllowData`,{}).toPromise().then(F=>{const X={...this.profile,...F};return this.profile=X,this.profileChanged.next(this.profile),this.updateRootScope(),X}),this.fetchExternalAvatar=F=>this.http.post(`${this.apiEndpoint}Profiles/Avatar/FetchExternal`,F).toPromise().then(X=>{const U=X;return this.profile?(this.profile.avatarGuid=U.avatarGuid,this.profile.avatarImageUrl=`${U.avatarImageUrl}?preset=profile-avatar`):this.profile=U,this.scope.profile=this.profile,this.updateRootScope(),this.profile}),this.insertFeedback=F=>this.http.post(`${this.apiEndpoint}Sendmail/Feedback`,F).toPromise(),this.insertProposedCity=F=>this.http.post(`${this.apiEndpoint}Sendmail/ProposedCity`,F).toPromise(),this.getPublicProfile=F=>this.http.get(`${this.apiEndpoint}profiles/public/${F}`).toPromise(),this.getStaffDirectoryPublic=F=>this.http.get(`${this.apiEndpoint}profiles/publicstaffdirdata/${F}`).toPromise(),this.getStaffDirectoryOwned=F=>this.http.get(`${this.apiEndpoint}profiles/ownstaffdirdata/${F}`).toPromise(),this.getOwnPrivateStaffDirData=F=>this.http.get(`${this.apiEndpoint}profiles/ownnoneditablestaffdirdata/${F}`).toPromise(),this.getBirthdayCalendarEventData=()=>this.http.get(`${this.apiEndpoint}eventcalendar/chapter`).toPromise(),this.updateStaffDirectory=(F,X)=>this.http.post(`${this.apiEndpoint}Profiles/staffdirdata/?userId=${F}`,X).toPromise().then(U=>(this.profile=U,this.scope.profile=this.profile,this.updateRootScope(),this.profile)),this.unsubscribe=F=>this.http.put(`${this.apiEndpoint}profiles/unsubscribe/${F}`,{}).toPromise(),this.consentCookies=()=>this.http.post(`${this.apiEndpoint}profiles/cookiesConsent`,{}).toPromise(),this.consentExternalMediaCookies=F=>this.http.post(`${this.apiEndpoint}profiles/externalMediaCookiesConsent`,F).toPromise(),this.contactSnipCreator=F=>this.http.post(`${this.apiEndpoint}profiles/contactSnipCreator`,F).toPromise(),this.reportProfile=F=>this.http.post(`${this.apiEndpoint}profiles/report`,F).toPromise(),this.blockProfile=F=>this.http.post(`${this.apiEndpoint}profiles/block`,F).toPromise(),this.block=F=>this.http.post(`${this.apiEndpoint}profiles/block`,F).toPromise(),this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint,this.isRedesign="Redesign2024"==this.scope.network.settings.configurations?.contentRenderEngine,this.upgrade.$injector.get("$rootScope").$on("authenticationStateChanged",()=>{this.getProfile(!0).then(()=>{this.profileChanged.next(this.profile)})}),this.isRedesign&&this.authService.loginState$.subscribe(()=>{this.getProfile(!0).then(()=>{this.profileChanged.next(this.profile)})})}static#e=w=()=>(this.\u0275fac=function(b){return new(b||P)(T.KVO(C.Qq),T.KVO(m.A),T.KVO(e.u),T.KVO(S.be))},this.\u0275prov=T.jDH({token:P,factory:P.\u0275fac,providedIn:"root"}))}return w(),P})()},127:(En,it,p)=>{"use strict";p.d(it,{A:()=>m});var S=p(7754),d=p(7251);const m=(0,S.A)(d.A.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created: {0}",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',E1058:'The "startDayHour" and "endDayHour" options must be integers in the [0, 24] range, with "endDayHour" being greater than "startDayHour".',E1059:"The following column names are not unique: {0}",E1060:"All editable columns must have names",E1061:'The "offset" option must be an integer in the [-1440, 1440] range, divisible by 5 without a remainder.',E1062:'The "cellDuration" must be a positive integer, evenly dividing the ("endDayHour" - "startDayHour") interval into minutes.',W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config.",W1016:"The '{0}' field in the HTML Editor toolbar item configuration was renamed to '{1}'. Please make a corresponding change in your code.",W1017:"The 'key' property is not specified for a lookup data source. Please specify it to prevent requests for the entire dataset when users filter data.",W1018:"Infinite scrolling may not work properly with multiple selection. To use these features together, set 'selection.deferred' to true or set 'selection.selectAllMode' to 'page'.",W1019:"Filter query string exceeds maximum length limit of {0} characters.",W1020:"hideEvent is ignored when the shading property is true",W1021:"The '{0}' is not rendered because none of the DOM elements match the value of the \"container\" property.",W1022:"{0} JSON parsing error: '{1}'",W1023:"Appointments require unique keys. Otherwise, the agenda view may not work correctly.",W1024:"The client-side export is enabled. Implement the 'onExporting' function.",W1025:"'scrolling.mode' is set to 'virtual' or 'infinite'. Specify the height of the component."})},179:(En,it,p)=>{"use strict";p.d(it,{A:()=>R});var S=p(2123),d=p(6054),m=p(5704),T=p(4859),C=p(3090),e=p(2720),k=p(1830),w=p(4072),P=p(9209),v=p(9293),x=p(7080);const b="dxScrollbar",Z="horizontal";let H=null;const J=x.A.inherit({_getDefaultOptions(){return(0,C.X)(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:"onScroll",containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init(){this.callBase(),this._isHovered=!1},_initMarkup(){this._renderThumb(),this.callBase()},_render(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass("dx-scrollbar-hoverable",this.option("hoverStateEnabled"))},_renderThumb(){this._$thumb=(0,m.A)("<div>").addClass("dx-scrollable-scroll"),(0,m.A)("<div>").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass("dx-scrollable-scrollbar").append(this._$thumb)},isThumb(L){return!!this.$element().find(L).length},_isHoverMode(){const L=this.option("visibilityMode");return("onHover"===L||"always"===L)&&this.option("expandable")},_renderDirection(){const L=this.option("direction");this.$element().addClass(`dx-scrollbar-${L}`),this._dimension=L===Z?"width":"height",this._prop=L===Z?"left":"top"},_attachPointerDownHandler(){w.A.on(this._$thumb,(0,v.b4)(P.A.down,b),this.feedbackOn.bind(this))},feedbackOn(){this.$element().addClass("dx-scrollable-scrollbar-active"),H=this},feedbackOff(){this.$element().removeClass("dx-scrollable-scrollbar-active"),H=null},cursorEnter(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility(L){"onScroll"===this.option("visibilityMode")&&this._$thumb.css("opacity"),L=this._adjustVisibility(L),this.option().visible=L,this._$thumb.toggleClass("dx-state-invisible",!L)},_adjustVisibility(L){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case"onScroll":break;case"onHover":L=L||!!this._isHovered;break;case"never":L=!1;break;case"always":L=!0}return L},moveTo(L){if(this._isHidden())return;(0,k.Qd)(L)&&(L=L[this._prop]||0);const G={};G[this._prop]=this._calculateScrollBarPosition(L),(0,S.Cy)(this._$thumb,G)},_calculateScrollBarPosition(L){return-L*this._thumbRatio},_update(){const L=Math.round(this.option("containerSize")),G=Math.round(this.option("contentSize"));let Q=Math.round(this.option("baseContainerSize")),z=Math.round(this.option("baseContentSize"));isNaN(Q)&&(Q=L,z=G),this._baseContainerToContentRatio=z?Q/z:Q,this._realContainerToContentRatio=G?L/G:L;const K=Math.round(Math.max(Math.round(L*this._realContainerToContentRatio),15));this._thumbRatio=(L-K)/(this.option("scaleRatio")*(G-L)),this.option(this._dimension,K/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden(){return"never"===this.option("visibilityMode")},_needScrollbar(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio(){return this._realContainerToContentRatio},_normalizeSize(L){return(0,k.Qd)(L)?L[this._dimension]||0:L},_clean(){this.callBase(),this===H&&(H=null),w.A.off(this._$thumb,`.${b}`)},_optionChanged(L){if(!this._isHidden())switch(L.name){case"containerSize":case"contentSize":this.option()[L.name]=this._normalizeSize(L.value),this._update();break;case"baseContentSize":case"baseContainerSize":case"scaleRatio":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;default:this.callBase.apply(this,arguments)}},update:(0,T.Mb)(function(){this._adjustVisibility()&&this.option("visible",!0)})});e.A.add(()=>{w.A.subscribeGlobal(d.A.getDocument(),(0,v.b4)(P.A.up,b),()=>{H&&H.feedbackOff()})});const R=J},199:(En,it,p)=>{"use strict";p.d(it,{z:()=>v});var S=p(9406),d=p(6872),m=p(8399),T=p(9656),C=p(6219),e=p(2363),k=p(6405),w=p(6111),P=p(1982);function v(...B){const j=(0,e.lI)(B),F=(0,e.ms)(B),{args:X,keys:U}=(0,d.D)(B);if(0===X.length)return(0,m.H)([],j);const Z=new S.c(function x(B,j,F=T.D){return X=>{b(j,()=>{const{length:U}=B,Z=new Array(U);let A=U,M=U;for(let H=0;H<U;H++)b(j,()=>{const J=(0,m.H)(B[H],j);let R=!1;J.subscribe((0,w._)(X,L=>{Z[H]=L,R||(R=!0,M--),M||X.next(F(Z.slice()))},()=>{--A||X.complete()}))},X)},X)}}(X,j,U?A=>(0,k.e)(U,A):T.D));return F?Z.pipe((0,C.I)(F)):Z}function b(B,j,F){B?(0,P.N)(F,B,j):j()}},221:(En,it,p)=>{"use strict";p.d(it,{A:()=>ei});var S=p(1973),d=p(5704),m=p(4859),T=p(3090),C=p(2660),e=p(9495),k=p(1830),w=p(4072),P=p(8573),v=p(9293),x=p(8360),b=p(402),B=p(3686),j=p(5973),F=p(6054),X=p(2925),U=p(2013),Z=p(6021),A=p(1363),M=p(9209),H=p(6620),J=p(2359),R=p(9212),L=p(127),G=p(5685),Q=p(6110),z=p(778),K=p(4451),ee=p(1134),ie=p(7525);const Ke=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],Be=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"];let q=class W{constructor(Jt){this.NAME="dxLabel",this._props=Jt,this._id=`dx-texteditor-label-${new X.A}`,this._render(),this._toggleMarkupVisibility()}_isVisible(){return!!this._props.text&&"hidden"!==this._props.mode}_render(){this._$before=(0,d.A)("<div>").addClass("dx-label-before"),this._$labelSpan=(0,d.A)("<span>"),this._$label=(0,d.A)("<div>").addClass("dx-label").append(this._$labelSpan),this._$after=(0,d.A)("<div>").addClass("dx-label-after"),this._$root=(0,d.A)("<div>").addClass("dx-texteditor-label").attr("id",this._id).append(this._$before).append(this._$label).append(this._$after),this._updateMark(),this._updateText(),this._updateBeforeWidth(),this._updateMaxWidth()}_toggleMarkupVisibility(){const Jt=this._isVisible();this._updateEditorBeforeButtonsClass(Jt),this._updateEditorLabelClass(Jt),Jt?this._$root.appendTo(this._props.$editor):this._$root.detach(),this._attachEvents()}_attachEvents(){const Jt=(0,v.b4)(z.U,this.NAME),Pn=(0,v.b4)(ee.n,this.NAME),Jn=(0,v.b4)(K.vu,this.NAME);w.A.off(this._$labelSpan,Jt),w.A.off(this._$labelSpan,Pn),w.A.off(this._$labelSpan,Jn),this._isVisible()&&this._isOutsideMode()&&(w.A.on(this._$labelSpan,Jt,Ii=>{""===(0,Q.zk)().getSelection().toString()&&(this._props.onClickHandler(),Ii.preventDefault())}),w.A.on(this._$labelSpan,Pn,Ii=>{this._props.onHoverHandler(Ii)}),w.A.on(this._$labelSpan,Jn,Ii=>{this._props.onActiveHandler(Ii)}))}_updateEditorLabelClass(Jt){this._props.$editor.removeClass("dx-texteditor-with-floating-label").removeClass("dx-texteditor-label-outside").removeClass("dx-texteditor-with-label"),Jt&&(this._props.$editor.addClass("floating"===this._props.mode?"dx-texteditor-with-floating-label":"dx-texteditor-with-label"),this._isOutsideMode()&&this._props.$editor.addClass("dx-texteditor-label-outside"))}_isOutsideMode(){return"outside"===this._props.mode}_updateEditorBeforeButtonsClass(){let Jt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible();this._props.$editor.removeClass("dx-texteditor-with-before-buttons"),Jt&&this._props.$editor.addClass(this._props.containsButtonsBefore?"dx-texteditor-with-before-buttons":"")}_updateMark(){this._$labelSpan.attr("data-mark",this._props.mark)}_updateText(){this._$labelSpan.text(this._props.text)}_updateBeforeWidth(){if(this._isVisible()){const Jt=this._props.beforeWidth??this._props.getBeforeWidth();this._$before.css({width:Jt}),this._updateLabelTransform()}}_updateLabelTransform(){let Jt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this._$labelSpan.css("transform",""),this._isVisible()&&this._isOutsideMode()){const Jn=(this._props.rtlEnabled?1:-1)*((0,A.RG)(this._$before)+Jt);this._$labelSpan.css("transform",`translateX(${Jn}px)`)}}_updateMaxWidth(){if(this._isVisible()&&!this._isOutsideMode()){const Jt=this._props.containerWidth??this._props.getContainerWidth();this._$label.css({maxWidth:Jt})}}$element(){return this._$root}isVisible(){return this._isVisible()}getId(){if(this._isVisible())return this._id}updateMode(Jt){this._props.mode=Jt,this._toggleMarkupVisibility(),this._updateBeforeWidth(),this._updateMaxWidth()}updateText(Jt){this._props.text=Jt,this._updateText(),this._toggleMarkupVisibility(),this._updateBeforeWidth(),this._updateMaxWidth()}updateMark(Jt){this._props.mark=Jt,this._updateMark()}updateContainsButtonsBefore(Jt){this._props.containsButtonsBefore=Jt,this._updateEditorBeforeButtonsClass()}updateBeforeWidth(Jt){this._props.beforeWidth=Jt,this._updateBeforeWidth()}updateMaxWidth(Jt){this._props.containerWidth=Jt,this._updateMaxWidth()}};function Oe(Rt){if((0,k.O9)(Rt)&&!Array.isArray(Rt))throw L.A.Error("E1053")}const We=H.A.inherit({ctor(Rt,Jt){Jt&&Oe(Jt.buttons),this._buttonCollection=new ie.A(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._labelContainerElement=null,this.callBase.apply(this,arguments)},_getDefaultOptions(){return(0,T.X)(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,displayValueFormatter:Rt=>(0,k.O9)(Rt)&&!1!==Rt?Rt:"",stylingMode:(0,B.A)().editorStylingMode||"outlined",showValidationMark:!0,label:"",labelMode:"static",labelMark:""})},_defaultOptionsRules(){return this.callBase().concat([{device(){const Rt=(0,R.ss)();return(0,R.gx)(Rt)},options:{labelMode:"floating",stylingMode:(0,B.A)().editorStylingMode||"filled"}},{device(){const Rt=(0,R.ss)();return(0,R.Ft)(Rt)},options:{labelMode:"outside"}}])},_getDefaultButtons:()=>[{name:"clear",Ctor:G.A}],_isClearButtonVisible(){return this.option("showClearButton")&&!this.option("readOnly")},_input(){return this.$element().find(".dx-texteditor-input").first()},_isFocused(){return(0,b.in)(this._input())||this.callBase()},_inputWrapper(){return this.$element()},_buttonsContainer(){return this._inputWrapper().find(".dx-texteditor-buttons-container").eq(0)},_isControlKey:Rt=>Be.includes(Rt),_renderStylingMode(){this.callBase(),this._updateButtonsStyling(this.option("stylingMode"))},_initMarkup(){this.$element().addClass("dx-texteditor"),this._renderInput(),this._renderButtonContainers(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue(),this._renderLabel()},_render(){this.callBase(),this._refreshValueChangeEvent(),this._refreshEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent()},_renderInput(){this._$textEditorContainer=(0,d.A)("<div>").addClass("dx-texteditor-container").appendTo(this.$element()),this._$textEditorInputContainer=(0,d.A)("<div>").addClass("dx-texteditor-input-container").appendTo(this._$textEditorContainer),this._$textEditorInputContainer.append(this._createInput())},_getInputContainer(){return this._$textEditorInputContainer},_renderPendingIndicator(){this.$element().addClass("dx-validation-pending");const Rt=this._getInputContainer(),Jt=(0,d.A)("<div>").addClass("dx-pending-indicator").appendTo(Rt);this._pendingIndicator=this._createComponent(Jt,J.A)},_disposePendingIndicator(){this._pendingIndicator&&(this._pendingIndicator.dispose(),this._pendingIndicator.$element().remove(),this._pendingIndicator=null,this.$element().removeClass("dx-validation-pending"))},_renderValidationState(){this.callBase(),"pending"===this.option("validationStatus")?(!this._pendingIndicator&&this._renderPendingIndicator(),this._showValidMark=!1):("invalid"===this.option("validationStatus")&&(this._showValidMark=!1),!this._showValidMark&&!0===this.option("showValidationMark")&&(this._showValidMark="valid"===this.option("validationStatus")&&!!this._pendingIndicator),this._disposePendingIndicator()),this._toggleValidMark()},_getButtonsContainer(){return this._$textEditorContainer},_renderButtonContainers(){const Rt=this.option("buttons"),Jt=this._getButtonsContainer();this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(Rt,Jt),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(Rt,Jt)},_cleanButtonContainers(){var Rt,Jt;null===(Rt=this._$beforeButtonsContainer)||void 0===Rt||Rt.remove(),null===(Jt=this._$afterButtonsContainer)||void 0===Jt||Jt.remove(),this._buttonCollection.clean()},_clean(){this._buttonCollection.clean(),this._disposePendingIndicator(),this._unobserveLabelContainerResize(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._$textEditorContainer=null,this.callBase()},_createInput(){const Rt=(0,d.A)("<input>");return this._applyInputAttributes(Rt,this.option("inputAttr")),Rt},_setSubmitElementName(Rt){const Jt=this.option("inputAttr.name");return this.callBase(Rt||Jt||"")},_applyInputAttributes(Rt,Jt){const Pn=(0,T.X)(this._getDefaultAttributes(),Jt);Rt.attr(Pn).addClass("dx-texteditor-input"),this._setInputMinHeight(Rt)},_setInputMinHeight(Rt){Rt.css("minHeight",this.option("height")?"0":"")},_getPlaceholderAttr(){const{ios:Rt,mac:Jt}=j.A.real(),{placeholder:Pn}=this.option();return Pn||(Rt||Jt?" ":null)},_getDefaultAttributes(){return{autocomplete:"off",placeholder:this._getPlaceholderAttr()}},_updateButtons(Rt){this._buttonCollection.updateButtons(Rt)},_updateButtonsStyling(Rt){(0,C.__)(this.option("buttons"),(Jt,Pn)=>{let{options:Jn,name:Ii}=Pn;if(Jn&&!Jn.stylingMode&&this.option("visible")){const vo=this.getButton(Ii);vo.option&&vo.option("stylingMode","underlined"===Rt?"text":"contained")}})},_renderValue(){return this._renderInputValue().promise()},_renderInputValue(Rt){Rt=Rt??this.option("value");let Jt=this.option("text");const Pn=this.option("displayValue"),Jn=this.option("displayValueFormatter");return void 0!==Pn&&null!==Rt?Jt=Jn(Pn):(0,k.O9)(Jt)||(Jt=Jn(Rt)),this.option("text",Jt),this._input().val()!==((0,k.O9)(Jt)?Jt:"")?this._renderDisplayText(Jt):this._toggleEmptinessEventHandler(),(0,Z.cY)().resolve()},_renderDisplayText(Rt){this._input().val(Rt),this._toggleEmptinessEventHandler()},_isValueValid(){if(this._input().length){const{validity:Rt}=this._input().get(0);if(Rt)return Rt.valid}return!0},_toggleEmptiness(Rt){this.$element().toggleClass("dx-texteditor-empty",Rt),this._togglePlaceholder(Rt)},_togglePlaceholder(Rt){this.$element().find(".dx-placeholder").eq(0).toggleClass("dx-state-invisible",!Rt)},_renderProps(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState(Rt){this.callBase.apply(this,arguments),this._input().prop("disabled",Rt)},_toggleTabIndex(){const Rt=this._input(),Jt=this.option("disabled"),Pn=this.option("focusStateEnabled");Jt||!Pn?Rt.attr("tabIndex",-1):Rt.removeAttr("tabIndex")},_toggleReadOnlyState(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue(){return this.option("readOnly")},_toggleSpellcheckState(){this._input().prop("spellcheck",this.option("spellcheck"))},_unobserveLabelContainerResize(){this._labelContainerElement&&(U.A.unobserve(this._labelContainerElement),this._labelContainerElement=null)},_getLabelContainer(){return this._input()},_getLabelContainerWidth(){return(0,A.RG)(this._getLabelContainer())},_getLabelBeforeWidth(){return(this._$beforeButtonsContainer&&(0,A.RG)(this._$beforeButtonsContainer))??0},_updateLabelWidth(){this._label.updateBeforeWidth(this._getLabelBeforeWidth()),this._label.updateMaxWidth(this._getLabelContainerWidth())},_getFieldElement(){return this._getLabelContainer()},_setFieldAria(Rt){var Jt;const Pn=this.option("inputAttr"),Jn=Pn?.["aria-label"],Ii=null===(Jt=this._label)||void 0===Jt?void 0:Jt.getId(),vo=Jn?void 0:Ii;(vo||Rt)&&this.setAria({labelledby:vo,label:Jn},this._getFieldElement())},_renderLabel(){this._unobserveLabelContainerResize(),this._labelContainerElement=(0,d.A)(this._getLabelContainer()).get(0);const{label:Rt,labelMode:Jt,labelMark:Pn,rtlEnabled:Jn}=this.option(),Ii={onClickHandler:()=>{this.focus()},onHoverHandler:vo=>{vo.stopPropagation()},onActiveHandler:vo=>{vo.stopPropagation()},$editor:this.$element(),text:Rt,mark:Pn,mode:Jt,rtlEnabled:Jn,containsButtonsBefore:!!this._$beforeButtonsContainer,getContainerWidth:()=>this._getLabelContainerWidth(),getBeforeWidth:()=>this._getLabelBeforeWidth()};this._label=new q(Ii),this._setFieldAria(),this._labelContainerElement&&U.A.observe(this._labelContainerElement,this._updateLabelWidth.bind(this))},_renderPlaceholder(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);const Rt=this._input(),Jt=this.option("placeholder"),Pn={id:Jt?`dx-${new X.A}`:void 0,"data-dx_placeholder":Jt},Jn=this._$placeholder=(0,d.A)("<div>").attr(Pn);Jn.insertAfter(Rt),Jn.addClass("dx-placeholder")},_attachPlaceholderEvents(){const Rt=(0,v.b4)(M.A.up,this.NAME);w.A.on(this._$placeholder,Rt,()=>{w.A.trigger(this._input(),"focus")}),this._toggleEmptinessEventHandler()},_placeholder(){return this._$placeholder||(0,d.A)()},_clearValueHandler(Rt){const Jt=this._input();Rt.stopPropagation(),this._saveValueChangeEvent(Rt),this._clearValue(),!this._isFocused()&&w.A.trigger(Jt,"focus"),w.A.trigger(Jt,"input")},_clearValue(){this.clear()},_renderEvents(){const Rt=this._input();(0,C.__)(Ke,(Jt,Pn)=>{if(this.hasActionSubscription(`on${Pn}`)){const Jn=this._createActionByOption(`on${Pn}`,{excludeValidators:["readOnly"]});w.A.on(Rt,(0,v.b4)(Pn.toLowerCase(),this.NAME),Ii=>{this._disposed||Jn({event:Ii})})}})},_refreshEvents(){const Rt=this._input();(0,C.__)(Ke,(Jt,Pn)=>{w.A.off(Rt,(0,v.b4)(Pn.toLowerCase(),this.NAME))}),this._renderEvents()},_keyPressHandler(){this.option("text",this._input().val())},_keyDownHandler(Rt){const Jt=this._input(),Pn=Rt.ctrlKey&&"enter"===(0,v.YD)(Rt),Jn=Jt.val()!==this.option("value");Pn&&Jn&&w.A.trigger(Jt,"change")},_getValueChangeEventOptionName:()=>"valueChangeEvent",_renderValueChangeEvent(){const Rt=(0,v.b4)(this._renderValueEventName(),`${this.NAME}TextChange`),Jt=(0,v.b4)(this.option(this._getValueChangeEventOptionName()),`${this.NAME}ValueChange`),Pn=(0,v.b4)("keydown",`${this.NAME}TextChange`),Jn=this._input();w.A.on(Jn,Rt,this._keyPressHandler.bind(this)),w.A.on(Jn,Jt,this._valueChangeEventHandler.bind(this)),w.A.on(Jn,Pn,this._keyDownHandler.bind(this))},_cleanValueChangeEvent(){const Rt=`.${this.NAME}ValueChange`,Jt=`.${this.NAME}TextChange`;w.A.off(this._input(),Rt),w.A.off(this._input(),Jt)},_refreshValueChangeEvent(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:()=>"input change keypress",_focusTarget(){return this._input()},_focusEventTarget(){return this.element()},_isInput(Rt){return Rt===this._input().get(0)},_preventNestedFocusEvent(Rt){if(Rt.isDefaultPrevented())return!0;let Jt=this._isNestedTarget(Rt.relatedTarget);return"focusin"===Rt.type?Jt=Jt&&this._isNestedTarget(Rt.target)&&!this._isInput(Rt.target):Jt||this._toggleFocusClass(!1,this.$element()),Jt&&Rt.preventDefault(),Jt},_isNestedTarget(Rt){return!!this.$element().find(Rt).length},_focusClassTarget(){return this.$element()},_focusInHandler(Rt){this._preventNestedFocusEvent(Rt),this.callBase.apply(this,arguments)},_focusOutHandler(Rt){this._preventNestedFocusEvent(Rt),this.callBase.apply(this,arguments)},_toggleFocusClass(Rt,Jt){this.callBase(Rt,this._focusClassTarget(Jt))},_hasFocusClass(Rt){return this.callBase((0,d.A)(Rt||this.$element()))},_renderEmptinessEvent(){const Rt=this._input();w.A.on(Rt,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler(){const Rt=this._input().val(),Jt=(""===Rt||null===Rt)&&this._isValueValid();this._toggleEmptiness(Jt)},_valueChangeEventHandler(Rt,Jt){this.option("readOnly")||(this._saveValueChangeEvent(Rt),this.option("value",arguments.length>1?Jt:this._input().val()),this._saveValueChangeEvent(void 0))},_renderEnterKeyAction(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),w.A.off(this._input(),"keyup.onEnterKey.dxTextEditor"),w.A.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp(Rt){this._disposed||"enter"===(0,v.YD)(Rt)&&this._enterKeyAction({event:Rt})},_updateValue(){this._options.silent("text",null),this._renderValue()},_dispose(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement(){return this._input()},_hasActiveElement(){return this._input().is(F.A.getActiveElement(this._input()[0]))},_optionChanged(Rt){const{name:Jt,fullName:Pn,value:Jn}=Rt,Ii=Jt.replace("on","");if(Ke.includes(Ii))this._refreshEvents();else switch(Jt){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(Rt),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder(),this._setFieldAria(!0),this._input().attr({placeholder:this._getPlaceholderAttr()});break;case"label":this._label.updateText(Jn),this._setFieldAria(!0);break;case"labelMark":this._label.updateMark(Jn);break;case"labelMode":this._label.updateMode(Jn),this._setFieldAria();break;case"width":this.callBase(Rt),this._label.updateMaxWidth(this._getLabelContainerWidth());break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(Rt);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":case"showValidationMark":break;case"value":this._updateValue(),this.callBase(Rt);break;case"inputAttr":this._applyInputAttributes(this._input(),this.option(Jt));break;case"stylingMode":this._renderStylingMode(),this._updateLabelWidth();break;case"buttons":Pn===Jt&&Oe(Jn),this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")),this._updateLabelWidth(),this._label.updateContainsButtonsBefore(!!this._$beforeButtonsContainer);break;case"visible":this.callBase(Rt),Jn&&this.option("buttons")&&(this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")));break;case"displayValueFormatter":this._invalidate();break;default:this.callBase(Rt)}},_renderInputType(){this._setInputType(this.option("mode"))},_setInputType(Rt){const Jt=this._input();"search"===Rt&&(Rt="text");try{Jt.prop("type",Rt)}catch{Jt.prop("type","text")}},getButton(Rt){return this._buttonCollection.getButton(Rt)},focus(){w.A.trigger(this._input(),"focus")},clear(){this._showValidMark&&(this._showValidMark=!1,this._renderValidationState());const Rt=this._getDefaultOptions();this.option("value")===Rt.value?(this._options.silent("text",""),this._renderValue()):this.option("value",Rt.value)},_resetToInitialValue(){this.option("value")===this._initialValue?(this._options.silent("text",this._initialValue),this._renderValue()):this.callBase(),this._disposePendingIndicator(),this._showValidMark=!1,this._toggleValidMark()},_toggleValidMark(){this.$element().toggleClass("dx-valid",!!this._showValidMark)},reset(){arguments.length?this.callBase(arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0):this.callBase()},on(Rt,Jt){const Pn=this.callBase(Rt,Jt),Jn=Rt.charAt(0).toUpperCase()+Rt.substr(1);return Ke.includes(Jn)&&this._refreshEvents(),Pn}});class Ve{constructor(Jt){this._value=" ",(0,T.X)(this,Jt)}next(Jt){if(!arguments.length)return this._next;this._next=Jt}_prepareHandlingArgs(Jt,Pn){Pn=Pn||{};const Jn=Object.prototype.hasOwnProperty.call(Jt,"value")?"value":"text";return Jt[Jn]=Pn.str??Jt[Jn],Jt.start=Pn.start??Jt.start,Jt.length=Pn.length??Jt.length,Jt.index+=1,Jt}first(Jt){return Jt=Jt||0,this.next().first(Jt+1)}isAccepted(Jt){return!1}adjustedCaret(Jt,Pn,Jn){return Pn?this._adjustedForward(Jt,0,Jn):this._adjustedBackward(Jt,0,Jn)}_adjustedForward(Jt,Pn,Jn){}_adjustedBackward(Jt,Pn,Jn){}isValid(Jt){}reset(){}clear(Jt){}text(){}value(){}rawValue(){}handle(Jt){}}class tt extends Ve{next(){}handle(){return 0}text(){return""}value(){return""}first(){return 0}rawValue(){return""}adjustedCaret(){return 0}isValid(){return!0}}class at extends Ve{text(){return(" "!==this._value?this._value:this.maskChar)+this.next().text()}value(){return this._value+this.next().value()}rawValue(){return this._value+this.next().rawValue()}handle(Jt){const Pn=Object.prototype.hasOwnProperty.call(Jt,"value")?Jt.value:Jt.text;if(!Pn||!Pn.length||!Jt.length)return 0;if(Jt.start)return this.next().handle(this._prepareHandlingArgs(Jt,{start:Jt.start-1}));const Jn=Pn[0],Ii=Pn.substring(1);return this._tryAcceptChar(Jn,Jt),this._accepted()?this.next().handle(this._prepareHandlingArgs(Jt,{str:Ii,length:Jt.length-1}))+1:this.handle(this._prepareHandlingArgs(Jt,{str:Ii,length:Jt.length-1}))}clear(Jt){this._tryAcceptChar(" ",Jt),this.next().clear(this._prepareHandlingArgs(Jt))}reset(){this._accepted(!1),this.next().reset()}_tryAcceptChar(Jt,Pn){if(this._accepted(!1),!this._isAllowed(Jt,Pn))return;const Jn=" "===Jt?this.maskChar:Jt;Pn.fullText=Pn.fullText.substring(0,Pn.index)+Jn+Pn.fullText.substring(Pn.index+1),this._accepted(!0),this._value=Jt}_accepted(Jt){if(!arguments.length)return!!this._isAccepted;this._isAccepted=!!Jt}first(Jt){return" "===this._value?Jt||0:super.first(Jt)}_isAllowed(Jt,Pn){return" "===Jt||this._isValid(Jt,Pn)}_isValid(Jt,Pn){const{allowedChars:Jn}=this;return Jn instanceof RegExp?Jn.test(Jt):(0,k.Tn)(Jn)?Jn(Jt,Pn.index,Pn.fullText):Array.isArray(Jn)?Jn.includes(Jt):Jn===Jt}isAccepted(Jt){return 0===Jt?this._accepted():this.next().isAccepted(Jt-1)}_adjustedForward(Jt,Pn,Jn){return Pn>=Jt?Pn:this.next()._adjustedForward(Jt,Pn+1,Jn)||Pn+1}_adjustedBackward(Jt,Pn){return Pn>=Jt-1?Jt:this.next()._adjustedBackward(Jt,Pn+1)||Pn+1}isValid(Jt){return this._isValid(this._value,Jt)&&this.next().isValid(this._prepareHandlingArgs(Jt))}}class Vt extends at{value(){return this.next().value()}handle(Jt){const Pn=Object.prototype.hasOwnProperty.call(Jt,"value"),Jn=Pn?Jt.value:Jt.text;if(!Jn.length||!Jt.length)return 0;if(Jt.start||Pn)return this.next().handle(this._prepareHandlingArgs(Jt,{start:Jt.start&&Jt.start-1}));const Ii=Jn[0],vo=Jn.substring(1);this._tryAcceptChar(Ii);const pi=this._isAllowed(Ii)?this._prepareHandlingArgs(Jt,{str:vo,length:Jt.length-1}):Jt;return this.next().handle(pi)+1}clear(Jt){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(Jt))}_tryAcceptChar(Jt){this._accepted(this._isValid(Jt))}_isValid(Jt){return Jt===this.maskChar}first(Jt){return Jt=Jt||0,this.next().first(Jt+1)}_adjustedForward(Jt,Pn,Jn){return Pn>=Jt&&Jn===this.maskChar?Pn:Jt===Pn+1&&this._accepted()?Jt:this.next()._adjustedForward(Jt,Pn+1,Jn)}_adjustedBackward(Jt,Pn){return Pn>=Jt-1?0:this.next()._adjustedBackward(Jt,Pn+1)}isValid(Jt){return this.next().isValid(this._prepareHandlingArgs(Jt))}}var qe=p(36),Nt=p(1832);const Te=["deleteContentBackward","deleteSoftLineBackward","deleteContent","deleteHardLineBackward"],je=["historyUndo","historyRedo"],Ne=["focusIn","focusOut","input","paste","cut","drop","beforeInput"];class Qe{constructor(Jt){this.editor=Jt}_editorOption(){return this.editor.option(...arguments)}_editorInput(){return this.editor._input()}_editorCaret(Jt){if(!Jt)return this.editor._caret();this.editor._caret(Jt)}_attachChangeEventHandler(){if(!this._editorOption("valueChangeEvent").split(" ").includes("change"))return;const Jt=this._editorInput(),Pn=(0,v.b4)("blur beforedeactivate","dxMask");w.A.on(Jt,Pn,Jn=>{this.editor._changeHandler(Jn)})}_beforeInputHandler(){this._previousText=this._editorOption("text"),this._prevCaret=this._editorCaret()}_inputHandler(Jt){const{originalEvent:Pn}=Jt;if(!Pn)return;const{inputType:Jn}=Pn;if(je.includes(Jn))this._handleHistoryInputEvent();else if(Te.includes(Jn))this._handleBackwardDeleteInputEvent();else{const Ii=this._editorCaret();if(!Ii.end)return;this._clearSelectedText(),this._autoFillHandler(Pn),this._editorCaret(Ii),this._handleInsertTextInputEvent(Pn.data)}this._editorOption("text")===this._previousText&&Jt.stopImmediatePropagation()}_handleHistoryInputEvent(){const Jt=this._editorCaret();this._updateEditorMask({start:Jt.start,length:Jt.end-Jt.start,text:""}),this._editorCaret(this._prevCaret)}_handleBackwardDeleteInputEvent(){this._clearSelectedText();const Jt=this._editorCaret();this.editor.setForwardDirection(),this.editor._adjustCaret(),this._editorCaret().start!==Jt.start&&(this.editor.setBackwardDirection(),this.editor._adjustCaret())}_clearSelectedText(){var Jt,Pn;const Jn=(null===(Jt=this._prevCaret)||void 0===Jt?void 0:Jt.end)-(null===(Pn=this._prevCaret)||void 0===Pn?void 0:Pn.start)||1,Ii=this._editorCaret();var Rt;this._isAutoFill()||(this.editor.setBackwardDirection(),this._updateEditorMask({start:Ii.start,length:Jn,text:(Rt=Jn," ".repeat(Rt))}))}_handleInsertTextInputEvent(Jt){var Pn;const Jn=Jt??"";this.editor.setForwardDirection(),this._updateEditorMask({start:(null===(Pn=this._prevCaret)||void 0===Pn?void 0:Pn.start)??0,length:Jn.length||1,text:Jn})||this._editorCaret(this._prevCaret)}_updateEditorMask(Jt){const Pn=Jt.text.length,Jn=this.editor._handleChain(Jt);if(this.editor._displayMask(),this.editor.isForwardDirection()){const{start:Ii,end:vo}=this._editorCaret(),pi=Jn-Pn;Jn>1&&1===Pn&&this._editorCaret({start:Ii+pi,end:vo+pi}),this.editor._adjustCaret()}return!!Jn}_focusInHandler(){if(this.editor._showMaskPlaceholder(),this.editor.setForwardDirection(),!this.editor._isValueEmpty()&&this._editorOption("isValid"))this.editor._adjustCaret();else{const Jt=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(()=>{this._editorCaret({start:Jt,end:Jt})},0)}}_focusOutHandler(Jt){this.editor._changeHandler(Jt),"onFocus"===this._editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this._editorOption("text",""),this.editor._renderDisplayText(""))}_delHandler(Jt){const{editor:Pn}=this;Pn._maskKeyHandler(Jt,()=>{Pn._hasSelection()||Pn._handleKey(" ")})}_cutHandler(Jt){const Pn=this._editorCaret(),Jn=this._editorInput().val().substring(Pn.start,Pn.end);this.editor._maskKeyHandler(Jt,()=>(0,Nt.KR)(Jt,Jn))}_dropHandler(){this._clearDragTimer(),this._dragTimer=setTimeout(()=>{const Jt=this.editor._convertToValue(this._editorInput().val());this._editorOption("value",Jt)})}_pasteHandler(Jt){const{editor:Pn}=this;if(this._editorOption("disabled"))return;const Jn=this._editorCaret();Pn._maskKeyHandler(Jt,()=>{const Ii=(0,Nt.KR)(Jt),vo=Pn._maskRulesChain.text().substring(Jn.end),pi=Pn._handleChain({text:Ii,start:Jn.start,length:Ii.length}),Wo=Jn.start+pi;Pn._handleChain({text:vo,start:Wo,length:vo.length}),Pn._caret({start:Wo,end:Wo})})}_autoFillHandler(Jt){const{editor:Pn}=this,Jn=this._editorInput().val();this._inputHandlerTimer=setTimeout(()=>{this._isAutoFill()&&(Pn._maskKeyHandler(Jt,()=>{Pn._handleChain({text:Jn,start:0,length:Jn.length})}),Pn._validateMask())})}_isAutoFill(){const Jt=this._editorInput();if(qe.A.webkit){const Pn=Jt.get(0);return Pn?.matches(":-webkit-autofill")??!1}return!1}_clearDragTimer(){clearTimeout(this._dragTimer)}_clearTimers(){this._clearDragTimer(),clearTimeout(this._caretTimeout),clearTimeout(this._inputHandlerTimer)}getHandler(Jt){return Pn=>{var Jn;null===(Jn=this[`_${Jt}Handler`])||void 0===Jn||Jn.call(this,Pn)}}attachEvents(){const Jt=this._editorInput();Ne.forEach(Pn=>{const Jn=(0,v.b4)(Pn.toLowerCase(),"dxMask");w.A.on(Jt,Jn,this.getHandler(Pn))}),this._attachChangeEventHandler()}detachEvents(){this._clearTimers(),w.A.off(this._editorInput(),".dxMask")}clean(){this._clearTimers()}}const yt=p(699).A,ji={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:Rt=>Vo(Rt),l:Rt=>Vo(Rt)||Co(Rt),C:/\S/,c:/./,A:Rt=>Vo(Rt)||Mi(Rt),a:Rt=>Vo(Rt)||Mi(Rt)||Co(Rt)};function Mi(Rt){return/[0-9]/.test(Rt)}function Vo(Rt){const Jt=Rt.charCodeAt();return Jt>64&&Jt<91||Jt>96&&Jt<123||Jt>127}function Co(Rt){return" "===Rt}const Qn=We.inherit({_getDefaultOptions(){return(0,T.X)(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:x.A.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys(){const Rt=this,Jt={del:Rt._maskStrategy.getHandler("del"),enter:Rt._changeHandler},Pn=Rt.callBase();return(0,C.__)(Jt,(Jn,Ii)=>{const vo=Pn[Jn];Pn[Jn]=function(pi){Rt.option("mask")&&Ii.call(Rt,pi),vo&&vo(pi)}}),Pn},_getSubmitElement(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy(){this._maskStrategy=new Qe(this)},_initMarkup(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers(){if(this._onMouseWheel===m.lQ)return;const Jt=this._input(),Pn=(0,v.b4)(P.U,this.NAME),Jn=this._createAction(Ii=>{const{event:vo}=Ii;(0,b.in)(Jt)&&!(0,v.By)(vo)&&(this._onMouseWheel(vo),vo.preventDefault(),vo.stopPropagation())});w.A.off(Jt,Pn),w.A.on(Jt,Pn,Ii=>{Jn({event:Ii})})},_onMouseWheel:m.lQ,_useMaskBehavior(){return!!this.option("mask")},_attachDropEventHandler(){if(!this._useMaskBehavior())return;const Jt=(0,v.b4)("drop",this.NAME),Pn=this._input();w.A.off(Pn,Jt),w.A.on(Pn,Jt,Jn=>Jn.preventDefault())},_render(){this._attachMouseWheelEventHandlers(),this._renderMask(),this.callBase(),this._attachDropEventHandler()},_renderHiddenElement(){this.option("mask")&&(this._$hiddenElement=(0,d.A)("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask(){this.$element().removeClass("dx-texteditor-masked"),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass("dx-texteditor-masked"),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_changeHandler(Rt){const Jt=this._input(),Pn=Jt.val();if(Pn===this._changedValue)return;this._changedValue=Pn;const Jn=(0,v.lh)(Rt,{type:"change"});w.A.trigger(Jt,Jn)},_parseMask(){this._maskRules=(0,T.X)({},ji,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule(Rt){const Jt=this.option("mask");if(Rt>=Jt.length)return new tt;const Pn=Jt[Rt],Jn="\\"===Pn,Ii=Jn?new Vt({maskChar:Jt[Rt+1]}):this._getMaskRule(Pn);return Ii.next(this._parseMaskRule(Rt+1+Jn)),Ii},_getMaskRule(Rt){let Jt;return(0,C.__)(this._maskRules,(Pn,Jn)=>{if(Pn===Rt)return Jt={pattern:Pn,allowedChars:Jn},!1}),(0,k.O9)(Jt)?new at((0,T.X)({maskChar:this.option("maskChar")||" "},Jt)):new Vt({maskChar:Rt})},_renderMaskedValue(){if(!this._maskRulesChain)return;const Rt=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());const Jt={length:Rt.length};Jt[this._isMaskedValueMode()?"text":"value"]=Rt,this._handleChain(Jt),this._displayMask()},_replaceSelectedText:(Rt,Jt,Pn)=>void 0===Pn?Rt:Rt.slice(0,Jt.start)+Pn+Rt.slice(Jt.end),_isMaskedValueMode(){return this.option("useMaskedValue")},_displayMask(Rt){Rt=Rt||this._caret(),this._renderValue(),this._caret(Rt)},_isValueEmpty(){return(0,e.Im)(this._value)},_shouldShowMask(){return"onFocus"!==this.option("showMaskMode")||(0,b.in)(this._input())||!this._isValueEmpty()},_showMaskPlaceholder(){if(this._shouldShowMask()){const Rt=this._maskRulesChain.text();this.option("text",Rt),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(Rt)}},_renderValue(){if(this._maskRulesChain&&(this._showMaskPlaceholder(),this._$hiddenElement)){const Rt=this._maskRulesChain.value(),Jt=(0,e.Im)(Rt)?"":this._getPreparedValue();this._$hiddenElement.val(Jt)}return this.callBase()},_getPreparedValue(){return this._convertToValue().replace(/\s+$/,"")},_valueChangeEventHandler(Rt){this._maskRulesChain?(this._saveValueChangeEvent(Rt),this.option("value",this._getPreparedValue())):this.callBase.apply(this,arguments)},_isControlKeyFired(Rt){return this._isControlKey((0,v.YD)(Rt))||(0,v.By)(Rt)},_handleChain(Rt){const Jt=this._maskRulesChain.handle(this._normalizeChainArguments(Rt));return this._updateMaskInfo(),Jt},_normalizeChainArguments(Rt){return(Rt=Rt||{}).index=0,Rt.fullText=this._maskRulesChain.text(),Rt},_convertToValue(Rt){return this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(Rt||this._textValue||""):Rt||this._value||""},_replaceMaskCharWithEmpty(Rt){return Rt.replace(new RegExp(this.option("maskChar"),"g")," ")},_maskKeyHandler(Rt,Jt){if(this.option("readOnly"))return;this.setForwardDirection(),Rt.preventDefault(),this._handleSelection();const Pn=this._input().val(),Jn=()=>{Pn!==this._input().val()&&w.A.trigger(this._input(),"input")},Ii=Jt();Ii?Ii.then(Jn):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),Jn())},_handleKey(Rt,Jt){this._direction(Jt||"forward"),this._adjustCaret(Rt),this._handleKeyChain(Rt),this._moveCaret()},_handleSelection(){if(!this._hasSelection())return;const Rt=this._caret(),Jt=new Array(Rt.end-Rt.start+1).join(" ");this._handleKeyChain(Jt)},_handleKeyChain(Rt){const Jt=this._caret(),Pn=this.isForwardDirection()?Jt.start:Jt.start-1,Jn=this.isForwardDirection()?Jt.end:Jt.end-1;this._handleChain({text:Rt,start:Pn,length:Pn===Jn?1:Jn-Pn})},_tryMoveCaretBackward(){this.setBackwardDirection();const Rt=this._caret().start;return this._adjustCaret(),!Rt||Rt!==this._caret().start},_adjustCaret(Rt){const Jt=this._caret().start,Pn=this.isForwardDirection(),Jn=this._maskRulesChain.adjustedCaret(Jt,Pn,Rt);this._caret({start:Jn,end:Jn})},_moveCaret(){const Rt=this._caret().start,Jt=Rt+(this.isForwardDirection()?0:-1),Pn=this._maskRulesChain.isAccepted(Jt)?Rt+(this.isForwardDirection()?1:-1):Rt;this._caret({start:Pn,end:Pn})},_caret(Rt,Jt){const Pn=this._input();if(Pn.length){if(!arguments.length)return yt(Pn);yt(Pn,Rt,Jt)}},_hasSelection(){const Rt=this._caret();return Rt.start!==Rt.end},_direction(Rt){if(!arguments.length)return this._typingDirection;this._typingDirection=Rt},setForwardDirection(){this._direction("forward")},setBackwardDirection(){this._direction("backward")},isForwardDirection(){return"forward"===this._direction()},_updateMaskInfo(){this._textValue=this._maskRulesChain.text(),this._value=this._maskRulesChain.value()},_clean(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask(){if(!this._maskRulesChain)return;const Rt=(0,e.Im)(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:Rt,validationError:Rt?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})},_updateHiddenElement(){this._removeHiddenElement(),this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption(){this._updateHiddenElement(),this._renderMask(),this._validateMask(),this._refreshValueChangeEvent()},_processEmptyMask(Rt){if(Rt)return;const Jt=this.option("value");this.option({text:Jt,isValid:!0,validationError:null}),this.validationRequest.fire({value:Jt,editor:this}),this._renderValue()},_optionChanged(Rt){switch(Rt.name){case"mask":this._updateMaskOption(),this._processEmptyMask(Rt.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(Rt),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(Rt)}},clear(){const{value:Rt}=this._getDefaultOptions();this.option("value")===Rt&&this._renderMaskedValue(),this.callBase()}});(0,S.A)("dxTextEditor",Qn);const ei=Qn},239:(En,it,p)=>{"use strict";p.d(it,{_:()=>L,b:()=>G});var S=p(4303),d=p(656),m=p(1973),T=p(5704),C=p(4859),e=p(3090),k=p(1363),w=p(1830),P=p(6110),v=p(4072),x=p(7940),b=p(9209),B=p(9293),j=p(8910),F=p(4647);const Z=j.A.inherit({_getDefaultOptions(){return(0,e.X)(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup(){this.$element().addClass("dx-textarea"),this.callBase(),this.setAria("multiline","true")},_renderContentImpl(){this._updateInputHeight(),this.callBase()},_renderInput(){this.callBase(),this._renderScrollHandler()},_createInput(){const Q=(0,T.A)("<textarea>");return this._applyInputAttributes(Q,this.option("inputAttr")),this._updateInputAutoResizeAppearance(Q),Q},_setInputMinHeight:C.lQ,_renderScrollHandler(){this._eventY=0;const Q=this._input(),z=(0,F.N)(Q,!0);v.A.on(Q,(0,B.b4)(x.A.init,this.NAME),z,C.lQ),v.A.on(Q,(0,B.b4)(b.A.down,this.NAME),this._pointerDownHandler.bind(this)),v.A.on(Q,(0,B.b4)(b.A.move,this.NAME),this._pointerMoveHandler.bind(this))},_pointerDownHandler(Q){this._eventY=(0,B.rw)(Q).y},_pointerMoveHandler(Q){const z=(0,B.rw)(Q).y,K=this._eventY-z;(0,F.f)(this._input(),K)&&(Q.isScrollingEvent=!0,Q.stopPropagation()),this._eventY=z},_renderDimensions(){const Q=this.$element(),z=Q.get(0),K=this._getOptionValue("width",z),ee=this._getOptionValue("height",z),re=this.option("minHeight"),be=this.option("maxHeight");Q.css({minHeight:void 0!==re?re:"",maxHeight:void 0!==be?be:"",width:K,height:ee})},_resetDimensions(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents(){this.option("autoResizeEnabled")&&v.A.on(this._input(),(0,B.b4)("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents(){v.A.off(this._input(),(0,B.b4)("input paste",this.NAME)),this.callBase()},_getHeightDifference(Q){return(0,k.pD)(this._$element.get(0),!1)+(0,k.pD)(this._$textEditorContainer.get(0),!1)+(0,k.pD)(this._$textEditorInputContainer.get(0),!0)+(0,k.GU)("height",(0,P.zk)().getComputedStyle(Q.get(0))).margin},_updateInputHeight(){if(!(0,P.Vd)())return;const Q=this._input(),z=this.option("height"),K=void 0===z&&this.option("autoResizeEnabled");if(!(K||void 0===z&&this.option("minHeight")))return void Q.css("height","");this._resetDimensions(),this._$element.css("height",(0,k.P$)(this._$element)),Q.css("height",0);const re=this._getHeightDifference(Q);this._renderDimensions();const be=this._getBoundaryHeight("minHeight"),ce=this._getBoundaryHeight("maxHeight");let Re=Q[0].scrollHeight;if(void 0!==be&&(Re=Math.max(Re,be-re)),void 0!==ce){const Se=ce-re,De=Re>Se;Re=Math.min(Re,Se),this._updateInputAutoResizeAppearance(Q,!De)}Q.css("height",Re),K&&this._$element.css("height","auto")},_getBoundaryHeight(Q){const z=this.option(Q);if((0,w.O9)(z))return"number"==typeof z?z:(0,k.hP)(z,this.$element().get(0).parentElement,this._$element.get(0))},_renderInputType:C.lQ,_visibilityChanged(Q){Q&&this._updateInputHeight()},_updateInputAutoResizeAppearance(Q,z){if(Q){const K=(0,C.YD)(z,this.option("autoResizeEnabled"));Q.toggleClass("dx-texteditor-input-auto-resize",K)}},_dimensionChanged(){this.option("visible")&&this._updateInputHeight()},_optionChanged(Q){switch(Q.name){case"autoResizeEnabled":this._updateInputAutoResizeAppearance(this._input(),Q.value),this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(Q),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(Q),Q.value&&this._updateInputHeight();break;default:this.callBase(Q)}}});(0,m.A)("dxTextArea",Z);const M=Z;var H=p(8832),J=p(3349);const R={provide:H.kq,useExisting:(0,d.Rfq)(()=>L),multi:!0};let L=(()=>{class Q extends J.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(K){this._setOption("accessKey",K)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(K){this._setOption("activeStateEnabled",K)}get autoResizeEnabled(){return this._getOption("autoResizeEnabled")}set autoResizeEnabled(K){this._setOption("autoResizeEnabled",K)}get disabled(){return this._getOption("disabled")}set disabled(K){this._setOption("disabled",K)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(K){this._setOption("elementAttr",K)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(K){this._setOption("focusStateEnabled",K)}get height(){return this._getOption("height")}set height(K){this._setOption("height",K)}get hint(){return this._getOption("hint")}set hint(K){this._setOption("hint",K)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(K){this._setOption("hoverStateEnabled",K)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(K){this._setOption("inputAttr",K)}get isDirty(){return this._getOption("isDirty")}set isDirty(K){this._setOption("isDirty",K)}get isValid(){return this._getOption("isValid")}set isValid(K){this._setOption("isValid",K)}get label(){return this._getOption("label")}set label(K){this._setOption("label",K)}get labelMode(){return this._getOption("labelMode")}set labelMode(K){this._setOption("labelMode",K)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(K){this._setOption("maxHeight",K)}get maxLength(){return this._getOption("maxLength")}set maxLength(K){this._setOption("maxLength",K)}get minHeight(){return this._getOption("minHeight")}set minHeight(K){this._setOption("minHeight",K)}get name(){return this._getOption("name")}set name(K){this._setOption("name",K)}get placeholder(){return this._getOption("placeholder")}set placeholder(K){this._setOption("placeholder",K)}get readOnly(){return this._getOption("readOnly")}set readOnly(K){this._setOption("readOnly",K)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(K){this._setOption("rtlEnabled",K)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(K){this._setOption("spellcheck",K)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(K){this._setOption("stylingMode",K)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(K){this._setOption("tabIndex",K)}get text(){return this._getOption("text")}set text(K){this._setOption("text",K)}get validationError(){return this._getOption("validationError")}set validationError(K){this._setOption("validationError",K)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(K){this._setOption("validationErrors",K)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(K){this._setOption("validationMessageMode",K)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(K){this._setOption("validationMessagePosition",K)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(K){this._setOption("validationStatus",K)}get value(){return this._getOption("value")}set value(K){this._setOption("value",K)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(K){this._setOption("valueChangeEvent",K)}get visible(){return this._getOption("visible")}set visible(K){this._setOption("visible",K)}get width(){return this._getOption("width")}set width(K){this._setOption("width",K)}onChange;onContentReady;onCopy;onCut;onDisposing;onEnterKey;onFocusIn;onFocusOut;onInitialized;onInput;onKeyDown;onKeyUp;onOptionChanged;onPaste;onValueChanged;accessKeyChange;activeStateEnabledChange;autoResizeEnabledChange;disabledChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;inputAttrChange;isDirtyChange;isValidChange;labelChange;labelModeChange;maxHeightChange;maxLengthChange;minHeightChange;nameChange;placeholderChange;readOnlyChange;rtlEnabledChange;spellcheckChange;stylingModeChange;tabIndexChange;textChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;valueChangeEventChange;visibleChange;widthChange;onBlur;change(K){}touched=K=>{};constructor(K,ee,re,be,ce,Re,Se,De){super(K,ee,re,be,Se,De),this._watcherHelper=be,this._idh=ce,this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"autoResizeEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxHeightChange"},{emit:"maxLengthChange"},{emit:"minHeightChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),Re.setHost(this)}_createInstance(K,ee){return new M(K,ee)}writeValue(K){this.eventHelper.lockedValueChangeEvent=!0,this.value=K,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(K){this.disabled=K}registerOnChange(K){this.change=K}registerOnTouched(K){this.touched=K}_createWidget(K){super._createWidget(K),this.instance.on("focusOut",ee=>{this.eventHelper.fireNgEvent("onBlur",[ee])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(K){super.ngOnChanges(K),this.setupChanges("validationErrors",K)}setupChanges(K,ee){K in this._optionsToUpdate||this._idh.setup(K,ee)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(K,ee){let re=this._idh.setupSingle(K,ee),be=null!==this._idh.getChanges(K,ee);(re||be)&&super._setOption(K,ee)}static \u0275fac=function(ee){return new(ee||Q)(S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(J.zF),S.rXU(J.jS),S.rXU(J.$M),S.rXU(J.fH),S.rXU(S.pJN),S.rXU(S.Agw))};static \u0275cmp=S.VBU({type:Q,selectors:[["dx-text-area"]],hostBindings:function(ee,re){1&ee&&S.bIt("valueChange",function(ce){return re.change(ce)})("onBlur",function(ce){return re.touched(ce)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",autoResizeEnabled:"autoResizeEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isDirty:"isDirty",isValid:"isValid",label:"label",labelMode:"labelMode",maxHeight:"maxHeight",maxLength:"maxLength",minHeight:"minHeight",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",autoResizeEnabledChange:"autoResizeEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxHeightChange:"maxHeightChange",maxLengthChange:"maxLengthChange",minHeightChange:"minHeightChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[S.Jv_([J.zF,J.jS,R,J.fH,J.$M]),S.Vt3,S.OA$],decls:0,vars:0,template:function(ee,re){},encapsulation:2})}return Q})(),G=(()=>{class Q{static \u0275fac=function(ee){return new(ee||Q)};static \u0275mod=S.$C({type:Q});static \u0275inj=d.G2t({imports:[J.p_,J.xZ,J.xZ]})}return Q})()},242:(En,it,p)=>{"use strict";p.d(it,{E:()=>Q});var S=p(9516),d=p(656),m=p(4303),T=p(6610);const C={UKNOWN:"Unknown"},e={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:C.UKNOWN},k={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n      A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n      MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n      ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n      WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n      XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n      XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n      GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n      GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n      GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n      GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n      GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n      GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n      GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n      GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n      GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n      GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n      GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n      GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n      GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n      GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n      GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n      GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n      GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n      SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n      SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n      SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n      SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n      SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n      SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n      SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n      SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n      SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n      SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n      SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n      SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n      SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n      SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n      SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n      SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n      SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n      SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n      SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n      SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n      SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n      SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n      SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n      SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n      SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n      SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n      SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n      SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n      SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n      SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n      SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n      GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n      GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n      GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n      SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n      SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n      SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n      LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n      C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n      LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n      VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n      MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n        IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n        IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n        CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n        P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n        SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n        CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n        up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},w={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n        GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n        SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n        GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n        SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n        GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n        SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n        SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n        GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n        SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n        GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n        SM-T510|SM-T515|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n        SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n        SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n        SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n        SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n        SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n        SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n        SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200|SM-T970"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n        KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome        /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n        TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n        Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n        ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n        ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n        W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n        \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n        PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n        PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n        PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n        PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n        YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n        B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n        TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n        TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n        TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n        TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n         Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n        SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n        EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n        SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n        MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n        MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n        MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n        Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n        Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n        S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09|AGS-L09|BAH3-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n        TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n        TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n        TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n        TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n        TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n        TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n        T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n        Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n        PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n        PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n        PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n        TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n        TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n        TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n        TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n        TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n        TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n        MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n        TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n        GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n        TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n        TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n        FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n        FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n        Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n        Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n        S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n        P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n        Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n        Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n        Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n        Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n        PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n        PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n        TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n        NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n        \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n        \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n        \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n        \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n        \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n        \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n        \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n        \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n        V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n        V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n        Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n        \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n        MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n        POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n        FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n        TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n        A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n        Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},P={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:C.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},v=[P.PS4,P.CHROME_BOOK,P.MAC,P.DELL,P.ASUS,P.UNKNOWN],x={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:C.UKNOWN},b={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:C.UKNOWN.toLowerCase()},B={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},F={...k,...w,...B,FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}},X={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},U={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},Z=Object.keys(X).reduce((z,K)=>(z[K]=X[K],z),{}),A=Object.keys(U).reduce((z,K)=>(z[e[K]]=U[K],z),{});var M=Object.freeze({__proto__:null,BROWSERS:e,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},BROWSER_VERSIONS_RE:A,BROWSER_VERSIONS_RE_MAP:U,DESKTOP_DEVICES:v,DEVICES:P,DEVICES_RE:F,GENERAL:C,MOBILES_RE:k,OS:x,OS_RE:B,OS_VERSIONS:b,OS_VERSIONS_RE:Z,OS_VERSIONS_RE_MAP:X,TABLETS_RE:w});class H{constructor(){this.regexCache=new Map}getRegex(K){return this.regexCache.has(K)||this.regexCache.set(K,new RegExp(K)),this.regexCache.get(K)}test(K,ee){return"string"==typeof ee&&(ee=this.getRegex(ee)),ee instanceof RegExp?ee.test(K):ee&&Array.isArray(ee.and)?ee.and.every(re=>this.test(K,re)):ee&&Array.isArray(ee.or)?ee.or.some(re=>this.test(K,re)):!(!ee||!ee.not||this.test(K,ee.not))}exec(K,ee){return"string"==typeof ee&&(ee=this.getRegex(ee)),ee instanceof RegExp?ee.exec(K):ee&&Array.isArray(ee)?ee.reduce((re,be)=>re||this.exec(K,be),null):null}}var J=function(z){return z.Mobile="mobile",z.Tablet="tablet",z.Desktop="desktop",z.Unknown="unknown",z}(J||{}),R=function(z){return z.Portrait="portrait",z.Landscape="landscape",z}(R||{});const L="iPad";let G=(()=>{var z;class K{constructor(re){this.platformId=re,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new H,this.deviceType="",this.orientation="",this.isDesktopMode=!1,(0,T.UE)(this.platformId)&&typeof window<"u"&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}detectFromMapping(re,be){const ce=M[be.const],Re=M[`${be.const}_RE`];if(ce.device&&"device"===ce.device&&(0,T.UE)(this.platformId)&&(this.reTree.test(this.userAgent,w[L])||typeof navigator<"u"&&navigator.platform&&navigator.platform.includes("Mac")&&navigator.maxTouchPoints>1))return L;for(const Se of Object.keys(ce)){const De=Re[Se];if(De&&this.reTree.test(re,De))return ce[Se]}return ce.UNKNOWN||C.UKNOWN}detectDesktopMode(re){if(!(0,T.UE)(this.platformId)||typeof window>"u"||this.deviceType===J.Mobile||this.deviceType===J.Tablet||this.deviceType!==J.Desktop)return!1;const be={hasTouch:"ontouchstart"in window||navigator.maxTouchPoints&&navigator.maxTouchPoints>0,hasMobileScreenSize:this.hasMobileScreenDimensions(),hasMobileBrowserSignatures:this.hasMobileBrowserSignatures(re),hasOrientationSupport:"orientation"in window||"onorientationchange"in window,hasDeviceMotion:"DeviceMotionEvent"in window||"DeviceOrientationEvent"in window};return!!be.hasTouch||Object.values(be).filter(Boolean).length>=2}hasMobileScreenDimensions(){if(typeof window>"u"||!window.screen)return!1;const{width:re,height:be}=window.screen,ce=Math.max(re,be),Re=Math.min(re,be);return ce<=1024&&Re<=768}hasMobileBrowserSignatures(re){return[/Mobile.*Safari/,/Chrome.*Mobile/,/Android.*Chrome/,/iPhone.*CriOS/,/iPad.*CriOS/,/Mobile.*Firefox/,/FxiOS/].some(ce=>ce.test(re))}setDeviceInfo(re=this.userAgent){if(re!==this.userAgent&&(this.userAgent=re),this.os=this.detectFromMapping(re,{const:"OS",prop:"os"}),this.browser=this.detectFromMapping(re,{const:"BROWSERS",prop:"browser"}),this.device=this.detectFromMapping(re,{const:"DEVICES",prop:"device"}),this.device===P.ANDROID){const be=P,ce=F;for(const Re of Object.keys(be)){const Se=ce[Re];if(Se&&this.reTree.test(re,Se)&&be[Re]!==P.ANDROID){this.device=be[Re];break}}}if(this.os_version=this.detectFromMapping(re,{const:"OS_VERSIONS",prop:"os_version"}),this.browser_version="0",this.browser!==e.UNKNOWN){const be=A[this.browser];if(be){const ce=this.reTree.exec(re,be);ce&&(this.browser_version=ce[1])}}this.orientation=typeof window<"u"&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?R.Landscape:R.Portrait:C.UKNOWN,this.deviceType=this.isTablet()?J.Tablet:this.isMobile(this.userAgent)?J.Mobile:this.isDesktop(this.userAgent)?J.Desktop:J.Unknown,this.isDesktopMode=this.detectDesktopMode(re)}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation,isDesktopMode:this.isDesktopMode}}isMobile(re=this.userAgent){if(this.isTablet(re))return!1;for(const be of Object.keys(k))if(this.reTree.test(re,k[be]))return!0;return!1}isTablet(re=this.userAgent){if((0,T.UE)(this.platformId)&&(this.reTree.test(this.userAgent,w[L])||typeof navigator<"u"&&navigator.platform&&navigator.platform.includes("Mac")&&navigator.maxTouchPoints>1))return!0;for(const be of Object.keys(w))if(this.reTree.test(re,w[be]))return!0;return!1}isDesktop(re=this.userAgent){return(this.device!==P.UNKNOWN||!this.isMobile(re)&&!this.isTablet(re))&&v.includes(this.device)}isDesktopModeEnabled(){return this.isDesktopMode}static#e=z=()=>(this.\u0275fac=function(be){return new(be||K)(d.KVO(m.Agw))},this.\u0275prov=d.jDH({token:K,factory:K.\u0275fac,providedIn:"root"}))}return z(),K})(),Q=(()=>{var z;class K{constructor(re){this.deviceService=re,this.deviceInfo=null,this.userAgentsApp={merkurist:"Merkurist_IAB",apicodo:"Apicodo_IAB"},this.UserAgentRegex={AppMerkurist:new RegExp(`${this.userAgentsApp.merkurist}`),AppApicodo:new RegExp(`${this.userAgentsApp.apicodo}`),Ios:/iPhone|iPad|iPod/i,Android:/Android/i,Safari:/Safari/i,ChromeIos:/CriOS/i,FirefoxIos:/FxiOS/i,EdgeIos:/EdgiOS/i},this.userAgentInfo=this.detectUserAgent()}detectUserAgent(){let re=navigator.userAgent;const be=re.includes("Macintosh")&&"ontouchend"in document,ce=this.UserAgentRegex.AppMerkurist.test(re)||this.UserAgentRegex.AppApicodo.test(re),Re="iOS"===this.deviceService.os||be,Se="Android"===this.deviceService.os,De=Se?parseFloat((window.navigator.userAgent.match("Android ([0-9.]+)")||[])[1]):-1,Pe=this.UserAgentRegex.ChromeIos.test(re),Ie=this.UserAgentRegex.FirefoxIos.test(re),W=this.UserAgentRegex.EdgeIos.test(re),ie=this.UserAgentRegex.Safari.test(re)&&!Pe&&!Ie&&!W;return{isApp:ce,isAndroid:Se,androidVersion:De,isIos:Re,isSafari:ie,isChromeIos:Pe,isFireFoxIos:Ie,isEdgeIos:W,isOtherBrowser:!(ie||Pe||Ie||W),isOtherDevice:!ce&&!Re&&!Se,isMobile:window.innerWidth<=768,isTablet:this.deviceService.isTablet(),isDesktop:this.deviceService.isDesktop(),appVersion:re.replace(/.*\[.*_IAB\/(.*)\]/gi,function(de,Ae){return Ae}),appPlatform:Se?S.Y.Android:S.Y.iOS}}getUserAgentInfo(){return this.userAgentInfo}static#e=z=()=>(this.\u0275fac=function(be){return new(be||K)(d.KVO(G))},this.\u0275prov=d.jDH({token:K,factory:K.\u0275fac,providedIn:"root"}))}return z(),K})()},262:(En,it,p)=>{"use strict";function S(){}p.d(it,{l:()=>S})},273:(En,it,p)=>{"use strict";p.d(it,{A:()=>x});var S=p(1973),d=p(2925),m=p(5704),T=p(3090),C=p(1830);const P=p(3608).A.inherit({_getDefaultOptions(){return(0,T.X)(this.callBase(),{toolbarItems:[],showCloseButton:!1,enableBodyScroll:!0,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,preventScrollEvents:!1,propagateOutsideClick:!0})},_render(){this.$element().addClass("dx-tooltip"),this.$wrapper().addClass("dx-tooltip-wrapper"),this.callBase()},_renderContent(){this.callBase(),this._toggleAriaAttributes()},_toggleAriaDescription(b){const B=(0,m.A)(this.option("target")),j=b?this._contentId:void 0;(0,C.l6)(B.get(0))||this.setAria("describedby",j,B)},_toggleAriaAttributes(){this._contentId=`dx-${new d.A}`,this.$overlayContent().attr({id:this._contentId}),this._toggleAriaDescription(!0)}});(0,S.A)("dxTooltip",P);const x=P},275:(En,it,p)=>{"use strict";p.d(it,{P:()=>C});var S=p(65),d=p(3746),m=p(656),T=p(6449);let C=(()=>{var e;class k{constructor(P,v,x){this.http=P,this.authService=v,this.scopeService=x,this.apiBaseUrl="",this.apicodoMediaConnectionData={},this.scope=x.getScope(),this.apiBaseUrl=this.scope.globalSettings.configurations.apicodoMediaBaseUrl}getConnectionData(P){const v=P||"default";if(this.apicodoMediaConnectionData[v]&&this.apicodoMediaConnectionData[v].expiresOn>Date.now())return Promise.resolve(this.apicodoMediaConnectionData[v]);{let x=this.scope.apiEndpoint+"media/token";return P&&(x+=`?originNetworkSlug=${P}`),this.http.get(x).toPromise().then(b=>(this.apicodoMediaConnectionData[v]=b,this.apicodoMediaConnectionData[v].isInitialized=!0,this.apicodoMediaConnectionData[v].expiresOn=Date.now()+36e5,b)).catch(this.handleError)}}getVideoData(P,v){return console.log(`Video id: ${P}`),this.getConnectionData(v).then(x=>{const b=new S.Lr({Authorization:`Bearer ${x.token}`});return this.http.get(`${this.apiBaseUrl}/api/Thumbnail/GetWebFrontendData?fileId=${P}`,{headers:b}).toPromise().then(B=>B).catch(this.handleError)})}handleError(P){return console.error("An error occurred",P),Promise.reject(P.message||P)}static#e=e=()=>(this.\u0275fac=function(v){return new(v||k)(m.KVO(S.Qq),m.KVO(T.u),m.KVO(d.A))},this.\u0275prov=m.jDH({token:k,factory:k.\u0275fac,providedIn:"root"}))}return e(),k})()},281:(En,it,p)=>{"use strict";p.d(it,{D:()=>U});var S=p(2925),d=p(5340),m=p(3746),T=p(656),C=p(4303),e=p(3008),k=p(7543),w=p(4312),P=p(4882),v=p(3349),x=p(4539),b=p(1983);function B(Z,A){if(1&Z&&(C.j41(0,"div"),C.nrm(1,"i",4),C.j41(2,"span",5),C.EFF(3),C.k0s(),C.nrm(4,"dx-load-indicator",6),C.k0s()),2&Z){const M=C.XpG(2);C.R7$(3),C.JRh(M.scope.currentScope.network.getResourceOrKeyName("web_common_message")),C.R7$(),C.Y8G("visible",M.loadIndicatorVisible)}}function j(Z,A){if(1&Z){const M=C.RV6();C.j41(0,"dx-button",2),C.bIt("onClick",function(){T.eBV(M);const J=C.XpG();return T.Njj(J.createOrOpenChat())}),C.DNE(1,B,5,2,"div",3),C.k0s()}if(2&Z){const M=C.XpG();C.Y8G("disabled",M.buttonDisabled)("visible",M.chatIsEnabled),C.R7$(),C.Y8G("dxTemplateOf","content")}}function F(Z,A){if(1&Z&&(C.j41(0,"div"),C.nrm(1,"i",4),C.j41(2,"span",5),C.EFF(3),C.k0s(),C.nrm(4,"dx-load-indicator",6),C.k0s()),2&Z){const M=C.XpG(2);C.R7$(3),C.JRh(M.scope.currentScope.network.getResourceOrKeyName("web_chat_open_or_create_one_to_one")),C.R7$(),C.Y8G("visible",M.loadIndicatorVisible)}}function X(Z,A){if(1&Z){const M=C.RV6();C.j41(0,"dx-button",7),C.bIt("onClick",function(){T.eBV(M);const J=C.XpG();return T.Njj(J.createOrOpenChat())}),C.DNE(1,F,5,2,"div",3),C.k0s()}if(2&Z){const M=C.XpG();C.Y8G("visible",M.chatIsEnabled)("disabled",M.buttonDisabled),C.R7$(),C.Y8G("dxTemplateOf","content")}}let U=(()=>{var Z;class A{constructor(H,J,R,L,G,Q){this.chatRoomService=H,this.chatRelayService=J,this.authenticationService=R,this.chatroomCache=L,this.router=G,this.scopeService=Q,this.otherUserGuid="Parameter is not there",this.chatIsEnabled=!0,this.buttonDisabled=!1,this.buttonText="",this.isRedesign=!1,this.loadIndicatorVisible=!1,this.scope=this.scopeService.getScope()}ngOnInit(){typeof this.scope.network.settings.configurations.enableChat<"u"&&this.scope.currentChapter.settings.configurations.chatChapterConfiguration?.ChatEnabled?(this.chatIsEnabled=this.scope.network.settings.configurations.enableChat&&(this.scope.currentChapter.settings.configurations.chatChapterConfiguration?.OneToOneEnabled??!0)&&(this.scope.currentChapter.settings.configurations.chatChapterConfiguration?.ChatEnabled??!0),this.isRedesign="Redesign2024"==this.scope.currentScope.network.settings.configurations.contentRenderEngine):this.chatIsEnabled=!1,this.buttonText=this.scope.network.getResourceOrKeyName("web_chat_open_or_create_one_to_one")}createOrOpenChat(){this.loadIndicatorVisible=!0;var H=new S.A(this.otherUserGuid);this.buttonDisabled=!0,this.chatRoomService.createOneToOneChat(H).subscribe(J=>{this.chatRelayService.addToChatroom(J.id.toString()),this.authenticationService.expireToken(this).then(R=>{this.chatroomCache.rebuildCacheAndGetArrayStore(this).then(L=>{this.router.navigate(["/chat"]).then(G=>{this.router.navigate([`/chat/room/${J.id}`]).then(Q=>{})})})})})}static#e=Z=()=>(this.\u0275fac=function(J){return new(J||A)(C.rXU(d.A),C.rXU(e.p),C.rXU(k.u),C.rXU(w.D),C.rXU(P.Ix),C.rXU(m.A))},this.\u0275cmp=C.VBU({type:A,selectors:[["app-chat-one-to-one-action-button"]],inputs:{otherUserGuid:"otherUserGuid"},standalone:!1,decls:2,vars:1,consts:[["stylingMode","text",1,"chat-one-to-one-message-button",3,"disabled","visible"],["stylingMode","contained","type","default",3,"visible","disabled"],["stylingMode","text",1,"chat-one-to-one-message-button",3,"onClick","disabled","visible"],[4,"dxTemplate","dxTemplateOf"],[1,"fa-regular","fa-message"],[1,"dx-button-text"],["height","20","width","20",1,"button-indicator",3,"visible"],["stylingMode","contained","type","default",3,"onClick","visible","disabled"]],template:function(J,R){1&J&&C.nVh(0,j,2,3,"dx-button",0)(1,X,2,3,"dx-button",1),2&J&&C.vxM(R.isRedesign?0:1)},dependencies:[v.eC,x.e,b.B],styles:[".chat-one-to-one-message-button[_ngcontent-%COMP%]{color:var(--textColor);font-size:1.5rem}.chat-one-to-one-message-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:10px}.chat-one-to-one-message-button[_ngcontent-%COMP%]   .button-indicator[_ngcontent-%COMP%]{margin-left:5px}"]}))}return Z(),A})()},316:(En,it,p)=>{"use strict";p.d(it,{G:()=>Me,H:()=>he});var S=p(2123),d=p(3538),m=p(6054),T=p(5704),C=p(4859),e=p(6021),k=p(3090),w=p(6946),P=p(2660),v=p(4757),x=p(1363),b=p(1830),B=p(6110),j=p(4072),F=p(9293),X=p(912),U=p(179);const Z="dxSimulatedScrollable",M=`${Z}Cursor`,H=`${Z}Keyboard`,G="vertical",Q="horizontal",Pe=(1-.92**(400/Math.round(1e3/60)))/(1-.92),W=X.A.inherit({ctor(_e){this.callBase(),this.scroller=_e},VELOCITY_LIMIT:1,_isFinished(){return Math.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration(){return this.scroller._inBounds()?.92:.5},_complete(){this.scroller._scrollComplete()}}),ie=W.inherit({VELOCITY_LIMIT:.2,_isFinished(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:()=>.92,_complete(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),he=d.A.inherit({ctor(_e){this._initOptions(_e),this._initAnimators(),this._initScrollbar()},_initOptions(_e){this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=_e.direction===Q?"x":"y",this._prop=_e.direction===Q?"left":"top",this._dimension=_e.direction===Q?"width":"height",this._scrollProp=_e.direction===Q?"scrollLeft":"scrollTop",(0,P.__)(_e,(ke,Ye)=>{this[`_${ke}`]=Ye})},_initAnimators(){this._inertiaAnimator=new W(this),this._bounceAnimator=new ie(this)},_initScrollbar(){this._scrollbar=new U.A((0,T.A)("<div>").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:_e=>!0===_e?"onScroll":!1===_e?"never":_e,_scrollStep(_e){const ke=this._location;this._location+=_e,this._suppressBounce(),this._move(),!(Math.abs(ke-this._location)<1)&&j.A.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation(_e){return _e=void 0!==_e?_e:this._location,Math.max(Math.min(_e,this._maxOffset),this._minOffset)},_move(_e){this._location=void 0!==_e?_e*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent(){const _e=this._location;this._$container[this._scrollProp](-_e/this._getScaleRatio()),this._moveContentByTranslator(_e)},_getScaleRatio(){if((0,B.Vd)()&&!this._scaleRatio){const _e=this._$element.get(0),ke=this._getRealDimension(_e,this._dimension),Ye=this._getBaseDimension(_e,this._dimension);this._scaleRatio=Math.round(ke/Ye*100)/100}return this._scaleRatio||1},_getRealDimension:(_e,ke)=>Math.round((0,v.N)(_e)[ke]),_getBaseDimension:(_e,ke)=>_e[`offset${(0,w.Ns)(ke)}`],_moveContentByTranslator(_e){let ke;const Ye=-this._maxScrollPropValue;if(ke=_e>0?_e:_e<=Ye?_e-Ye:_e%1,this._translateOffset===ke)return;const de={};de[this._prop]=ke,this._translateOffset=ke,0!==ke?(0,S.Cy)(this._$content,de):(0,S.fw)(this._$content)},_moveScrollbar(){this._scrollbar.moveTo(this._location)},_scrollComplete(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce(){const ke=(this._bounceLocation=this._boundLocation())-this._location;this._velocity=ke/Pe},_inBounds(_e){return this._boundLocation(_e=void 0!==_e?_e:this._location)===_e},_crossBoundOnNextStep(){const _e=this._location,ke=_e+this._velocity;return _e<this._minOffset&&ke>=this._minOffset||_e>this._maxOffset&&ke<=this._maxOffset},_initHandler(_e){this._stopScrolling(),this._prepareThumbScrolling(_e)},_stopScrolling:(0,C.Mb)(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling(_e){if((0,F.X1)(_e.originalEvent))return;const ke=(0,T.A)(_e.originalEvent.target),Ye=this._isScrollbar(ke);Ye&&this._moveToMouseLocation(_e),this._thumbScrolling=Ye||this._isThumb(ke),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(ke),this._thumbScrolling&&this._scrollbar.feedbackOn()},_isThumbScrollingHandler(_e){return this._isThumb(_e)},_moveToMouseLocation(_e){const ke=_e[`page${this._axis.toUpperCase()}`]-this._$element.offset()[this._prop],Ye=this._location+ke/this._containerToContentRatio()-(0,x.Oq)(this._$container)/2;this._scrollStep(-Math.round(Ye))},_startHandler(){this._showScrollbar()},_moveHandler(_e){this._crossThumbScrolling||(this._thumbScrolling&&(_e[this._axis]=-Math.round(_e[this._axis]/this._containerToContentRatio())),this._scrollBy(_e))},_scrollBy(_e){_e=_e[this._axis],this._inBounds()||(_e*=.5),this._scrollStep(_e)},_scrollByHandler(_e){this._scrollBy(_e),this._scrollComplete()},_containerToContentRatio(){return this._scrollbar.containerToContentRatio()},_endHandler(_e){return this._completeDeferred=(0,e.cY)(),this._velocity=_e[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia(){(!this._inertiaEnabled||this._thumbScrolling)&&(this._velocity=0)},_resetThumbScrolling(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler(){this._update(),this._moveToBounds()},_update(){return this._stopScrolling(),(0,C.OX)(()=>{this._resetScaleRatio(),this._updateLocation(),this._updateBounds(),this._updateScrollbar(),(0,C.zE)(()=>{this._moveScrollbar(),this._scrollbar.update()})})},_resetScaleRatio(){this._scaleRatio=null},_updateLocation(){this._location=((0,S.x5)(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds(){this._maxOffset=this._getMaxOffset(),this._minOffset=this._getMinOffset()},_getMaxOffset:()=>0,_getMinOffset(){return this._maxScrollPropValue=Math.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:(0,C.a0)(function(){const _e=this._containerSize(),ke=this._contentSize(),Ye=this._getBaseDimension(this._$container.get(0),this._dimension),de=this._getBaseDimension(this._$content.get(0),this._dimension);(0,C.zE)(()=>{this._scrollbar.option({containerSize:_e,contentSize:ke,baseContainerSize:Ye,baseContentSize:de,scaleRatio:this._getScaleRatio()})})}),_moveToBounds:(0,C.Mb)((0,C.a0)((0,C.Mb)(function(){const _e=this._boundLocation(),ke=_e!==this._location;this._location=_e,this._move(),ke&&this._scrollAction()}))),_createActionsHandler(_e){this._scrollAction=_e.scroll,this._bounceAction=_e.bounce},_showScrollbar(){this._scrollbar.option("visible",!0)},_hideScrollbar(){this._scrollbar.option("visible",!1)},_containerSize(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize(){const _e="hidden"===this._$content.css(`overflow${this._axis.toUpperCase()}`);let ke=this._getRealDimension(this._$content.get(0),this._dimension);if(!_e){const Ye=this._$content[0][`scroll${(0,w.Ns)(this._dimension)}`]*this._getScaleRatio();ke=Math.max(Ye,ke)}return ke},_validateEvent(_e){const ke=(0,T.A)(_e.originalEvent.target);return this._isThumb(ke)||this._isScrollbar(ke)},_isThumb(_e){return this._scrollByThumb&&this._scrollbar.isThumb(_e)},_isScrollbar(_e){return this._scrollByThumb&&_e&&_e.is(this._$scrollbar)},_reachedMin(){return Math.round(this._location-this._minOffset)<=0},_reachedMax(){return Math.round(this._location-this._maxOffset)>=0},_cursorEnterHandler(){this._resetScaleRatio(),this._updateScrollbar(),this._scrollbar.cursorEnter()},_cursorLeaveHandler(){this._scrollbar.cursorLeave()},dispose:C.lQ});let Ce,ye;const Me=d.A.inherit({ctor(_e){this._init(_e)},_init(_e){this._component=_e,this._$element=_e.$element(),this._$container=(0,T.A)(_e.container()),this._$wrapper=_e._$wrapper,this._$content=_e.$content(),this.option=_e.option.bind(_e),this._createActionByOption=_e._createActionByOption.bind(_e),this._isLocked=_e._isLocked.bind(_e),this._isDirection=_e._isDirection.bind(_e),this._allowedDirection=_e._allowedDirection.bind(_e),this._getMaxOffset=_e._getMaxOffset.bind(_e)},render(){this._$element.addClass("dx-scrollable-simulated"),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers(){this._scrollers={},this._isDirection(Q)&&this._createScroller(Q),this._isDirection(G)&&this._createScroller(G),this._$element.toggleClass("dx-scrollable-scrollbars-alwaysvisible","always"===this.option("showScrollbar"))},_createScroller(_e){this._scrollers[_e]=new he(this._scrollerOptions(_e))},_scrollerOptions(_e){return{direction:_e,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio(_e){for(const ke in this._scrollers){const Ye=this._getPropByDirection(ke);(0,b.O9)(_e[Ye])&&(_e[Ye]*=this._scrollers[ke]._getScaleRatio())}return _e},_isAnyThumbScrolling(_e){let ke=!1;return this._eventHandler("isThumbScrolling",_e).done((Ye,de)=>{ke=Ye||de}),ke},handleInit(_e){this._suppressDirections(_e),this._eventForUserAction=_e,this._eventHandler("init",_e)},_suppressDirections(_e){(0,F.X1)(_e.originalEvent)?this._prepareDirections(!0):(this._prepareDirections(),this._eachScroller(function(ke,Ye){const de=(0,T.A)(_e.originalEvent.target),Ae=ke._validateEvent(_e)||this.option("scrollByContent")&&this._isContent(de);this._validDirections[Ye]=Ae}))},_isContent(_e){return!!_e.closest(this._$element).length},_prepareDirections(_e){_e=_e||!1,this._validDirections={},this._validDirections[Q]=_e,this._validDirections[G]=_e},_eachScroller(_e){_e=_e.bind(this),(0,P.__)(this._scrollers,(ke,Ye)=>{_e(Ye,ke)})},handleStart(_e){this._eventForUserAction=_e,this._eventHandler("start").done(this._startAction)},_saveActive(){ye=this},_resetActive(){ye===this&&(ye=null)},handleMove(_e){if(this._isLocked())return _e.cancel=!0,void this._resetActive();this._saveActive(),_e.preventDefault&&_e.preventDefault(),this._adjustDistance(_e,_e.delta),this._eventForUserAction=_e,this._eventHandler("move",_e.delta)},_adjustDistance(_e,ke){ke.x*=this._validDirections[Q],ke.y*=this._validDirections[G];const Ye=this._tryGetDevicePixelRatio();Ye&&(0,F.X1)(_e.originalEvent)&&(ke.x=Math.round(ke.x/Ye*100)/100,ke.y=Math.round(ke.y/Ye*100)/100)},_tryGetDevicePixelRatio(){if((0,B.Vd)())return(0,B.zk)().devicePixelRatio},handleEnd(_e){return this._resetActive(),this._refreshCursorState(_e.originalEvent&&_e.originalEvent.target),this._adjustDistance(_e,_e.velocity),this._eventForUserAction=_e,this._eventHandler("end",_e.velocity).done(this._endAction)},handleCancel(_e){return this._resetActive(),this._eventForUserAction=_e,this._eventHandler("end",{x:0,y:0})},handleStop(){this._resetActive(),this._eventHandler("stop")},handleScroll(){this._updateRtlConfig(),this._scrollAction()},_attachKeyboardHandler(){j.A.off(this._$element,`.${H}`),!this.option("disabled")&&this.option("useKeyboard")&&j.A.on(this._$element,(0,F.b4)("keydown",H),this._keyDownHandler.bind(this))},_keyDownHandler(_e){if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout(()=>{"tab"===(0,F.YD)(_e)&&this._eachScroller(Ye=>{Ye._updateHandler()})}),!this._$container.is(m.A.getActiveElement(this._$container.get(0))))return;let ke=!0;switch((0,F.YD)(_e)){case"downArrow":this._scrollByLine({y:1});break;case"upArrow":this._scrollByLine({y:-1});break;case"rightArrow":this._scrollByLine({x:1});break;case"leftArrow":this._scrollByLine({x:-1});break;case"pageDown":this._scrollByPage(1);break;case"pageUp":this._scrollByPage(-1);break;case"home":this._scrollToHome();break;case"end":this._scrollToEnd();break;default:ke=!1}ke&&(_e.stopPropagation(),_e.preventDefault())},_scrollByLine(_e){const ke=this._tryGetDevicePixelRatio();let Ye=40;ke&&(Ye=Math.abs(Ye/ke*100)/100),this.scrollBy({top:(_e.y||0)*-Ye,left:(_e.x||0)*-Ye})},_scrollByPage(_e){const ke=this._wheelProp(),Ye=this._dimensionByProp(ke),de={};de[ke]=_e*-("width"===Ye?x.RG:x.Oq)(this._$container),this.scrollBy(de)},_dimensionByProp:_e=>"left"===_e?"width":"height",_getPropByDirection:_e=>_e===Q?"left":"top",_scrollToHome(){const ke={};ke[this._wheelProp()]=0,this._component.scrollTo(ke)},_scrollToEnd(){const _e=this._wheelProp(),Ye={},de="width"===this._dimensionByProp(_e)?x.RG:x.Oq;Ye[_e]=de(this._$content)-de(this._$container),this._component.scrollTo(Ye)},createActions(){this._startAction=this._createActionHandler("onStart"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler(_e){const ke=this._createActionByOption(_e);return()=>{ke((0,k.X)(this._createActionArgs(),arguments))}},_createActionArgs(){const{horizontal:_e,vertical:ke}=this._scrollers,Ye=this._getScrollOffset();return this._scrollOffset={top:ke&&Ye.top,left:_e&&Ye.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:_e&&_e._reachedMax(),reachedRight:_e&&_e._reachedMin(),reachedTop:ke&&ke._reachedMax(),reachedBottom:ke&&ke._reachedMin()}},_getScrollOffset(){return{top:-this.location().top,left:-this.location().left}},_eventHandler(_e){const ke=[].slice.call(arguments).slice(1),Ye=(0,P.Tj)(this._scrollers,de=>de[`_${_e}Handler`].apply(de,ke));return e.z7.apply(T.A,Ye).promise()},location(){const _e=(0,S.x5)(this._$content);return _e.top-=this._$container.scrollTop(),_e.left-=this._$container.scrollLeft(),_e},disabledChanged(){this._attachCursorHandlers()},_attachCursorHandlers(){j.A.off(this._$element,`.${M}`),!this.option("disabled")&&this._isHoverMode()&&(j.A.on(this._$element,(0,F.b4)("mouseenter",M),this._cursorEnterHandler.bind(this)),j.A.on(this._$element,(0,F.b4)("mouseleave",M),this._cursorLeaveHandler.bind(this)))},_isHoverMode(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler(_e){(_e=_e||{}).originalEvent=_e.originalEvent||{},!ye&&!_e.originalEvent._hoverHandled&&(Ce&&Ce._cursorLeaveHandler(),Ce=this,this._eventHandler("cursorEnter"),_e.originalEvent._hoverHandled=!0)},_cursorLeaveHandler(_e){Ce!==this||ye===Ce||(this._eventHandler("cursorLeave"),Ce=null,this._refreshCursorState(_e&&_e.relatedTarget))},_refreshCursorState(_e){if(!this._isHoverMode()&&(!_e||ye))return;const Ye=(0,T.A)(_e).closest(".dx-scrollable-simulated:not(.dx-state-disabled)"),de=Ye.length&&Ye.data("dxScrollableStrategy");Ce&&Ce!==de&&Ce._cursorLeaveHandler(),de&&de._cursorEnterHandler()},update(){const _e=this._eventHandler("update").done(this._updateAction);return(0,e.z7)(_e,(0,C.OX)(()=>{const ke=this._allowedDirections();return(0,C.zE)(()=>{let Ye=ke.vertical?"pan-x":"";Ye=ke.horizontal?"pan-y":Ye,Ye=ke.vertical&&ke.horizontal?"none":Ye,this._$container.css("touchAction",Ye)}),(0,e.z7)().promise()}))},_allowedDirections(){const _e=this.option("bounceEnabled"),ke=this._scrollers[G],Ye=this._scrollers[Q];return{vertical:ke&&(ke._minOffset<0||_e),horizontal:Ye&&(Ye._minOffset<0||_e)}},_updateBounds(){this._scrollers[Q]&&this._scrollers[Q]._updateBounds()},_isHorizontalAndRtlEnabled(){return this.option("rtlEnabled")&&this.option("direction")!==G},updateRtlPosition(_e){if(_e&&(this._rtlConfig={scrollRight:0,clientWidth:this._$container.get(0).clientWidth,windowPixelRatio:this._getWindowDevicePixelRatio()}),this._updateBounds(),this._isHorizontalAndRtlEnabled()){let ke=this._getMaxOffset().left-this._rtlConfig.scrollRight;ke<=0&&(ke=0,this._rtlConfig.scrollRight=this._getMaxOffset().left),this._getScrollOffset().left!==ke&&(this._rtlConfig.skipUpdating=!0,this._component.scrollTo({left:ke}),this._rtlConfig.skipUpdating=!1)}},_updateRtlConfig(){if(this._isHorizontalAndRtlEnabled()&&!this._rtlConfig.skipUpdating){const{clientWidth:_e,scrollLeft:ke}=this._$container.get(0),Ye=this._getWindowDevicePixelRatio();this._rtlConfig.windowPixelRatio===Ye&&this._rtlConfig.clientWidth===_e&&(this._rtlConfig.scrollRight=this._getMaxOffset().left-ke),this._rtlConfig.clientWidth=_e,this._rtlConfig.windowPixelRatio=Ye}},_getWindowDevicePixelRatio:()=>(0,B.Vd)()?(0,B.zk)().devicePixelRatio:1,scrollBy(_e){const ke=this._scrollers[G],Ye=this._scrollers[Q];ke&&(_e.top=ke._boundLocation(_e.top+ke._location)-ke._location),Ye&&(_e.left=Ye._boundLocation(_e.left+Ye._location)-Ye._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:_e.left,y:_e.top}),this._endAction(),this._updateRtlConfig()},validate(_e){return!((0,F.X1)(_e)&&(0,F.By)(_e)||this.option("disabled"))&&(!!this.option("bounceEnabled")||((0,F.X1)(_e)?this._validateWheel(_e):this._validateMove(_e)))},_validateWheel(_e){const ke=this._scrollers[this._wheelDirection(_e)],Ye=ke._reachedMin(),de=ke._reachedMax();let Ke=(!Ye||!de)&&(!Ye&&!de||Ye&&_e.delta>0||de&&_e.delta<0);return Ke=Ke||void 0!==this._validateWheelTimer,Ke&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout(()=>{this._validateWheelTimer=void 0},500)),Ke},_validateMove(_e){return!(!this.option("scrollByContent")&&!(0,T.A)(_e.target).closest(".dx-scrollable-scrollbar").length)&&this._allowedDirection()},getDirection(_e){return(0,F.X1)(_e)?this._wheelDirection(_e):this._allowedDirection()},_wheelProp(){return this._wheelDirection()===Q?"left":"top"},_wheelDirection(_e){switch(this.option("direction")){case Q:return Q;case G:return G;default:return _e&&_e.shiftKey?Q:G}},dispose(){this._resetActive(),Ce===this&&(Ce=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass("dx-scrollable-simulated"),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers(){j.A.off(this._$element,`.${M}`),j.A.off(this._$container,`.${H}`)}})},339:(En,it,p)=>{"use strict";p.d(it,{s:()=>lS,N:()=>KC});var S=p(4303),d=p(656),m=p(6054),T=p(5704),C=p(3090),e=p(2660),k=p(1363),w=p(1830),P=p(4072),v=p(8360),x=p(9293),b=p(4859);const B="dx-state-focused",X=".dx-datagrid-rowsview .dx-row",U=`${X} > td`,Z=".dx-treelist-rowsview .dx-row",A=`${Z} > td`,M={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell .dx-texteditor-input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell .dx-texteditor-input"],rowsView:[".dx-row-focused",`${X}[tabindex]`,`${U}[tabindex]`,`${U}`,`${Z}[tabindex]`,`${A}[tabindex]`,`${A}`],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]};let H=!1,J=!1,R=null;function G(I,i){const a=(0,T.A)(I),c=a.attr("aria-label"),y=Q(c,i.element()).index(a);R=(0,C.X)({},{ariaLabel:c,index:y},{viewInstance:i})}function Q(I,i){let c;return c=(0,T.A)(i).find(I?`[aria-label="${I}"][tabindex]`:"[tabindex]"),c}function z(I,i){const a=i?.getRootNode()||m.A.getDocument();for(const c in I){const g=I[c],y=(0,T.A)(a).find(g).first();if(y.length)return y}}function ee(){J="visible"===m.A.getDocument().visibilityState}function be(){P.A.off(m.A.getDocument(),"visibilitychange",ee)}function Re(I,i,a,c,g,y){if(i.option("useLegacyKeyboardNavigation"))return b.lQ;const D=()=>(0,T.A)(i.element()),Y=st=>function L(I,i,a,c,g,y){if(function K(I,i,a){const c={event:i,handled:!1};return a?a(c):I._createActionByOption("onKeyDown")(c),c.handled}(i,a.originalEvent,y))return;const Y=(0,x.YD)(a);"enter"===Y||"space"===Y?(G(a.target,i),c&&c({event:a})):"tab"===Y?g.addClass(B):De(I,i,a)}(I,i,st,g,D(),y),xe=()=>{H=!0,D().removeClass(B)},Le=()=>{!H&&!J&&D().addClass(B),H=!1};return P.A.on(a,"keydown",c,Y),P.A.on(a,"mousedown",c,xe),P.A.on(a,"focusin",c,Le),()=>{P.A.off(a,"keydown",c,Y),P.A.off(a,"mousedown",c,xe),P.A.off(a,"focusin",c,Le)}}function Se(I){if(!I.option("useLegacyKeyboardNavigation")&&R){const i=R.viewInstance;if(i){const c=Q(R.ariaLabel,i.element()).eq(R.index);R=null,P.A.trigger(c,"focus")}}}function De(I,i,a){const c=(0,x.YD)(a);if(a.ctrlKey&&("upArrow"===c||"downArrow"===c)){const g=Object.keys(M);let y=g.indexOf(I);for(;y>=0&&y<g.length;){y="upArrow"===c?--y:++y;const xe=z(M[g[y]],a.target);if(xe&&xe.length){xe.attr("tabindex",i.option("tabindex")||0),P.A.trigger(xe,"focus"),xe.removeClass("dx-cell-focus-disabled");break}}}}const Ie=function(I,i,a,c,g){const y=i.getController("keyboardNavigation");i.option("useLegacyKeyboardNavigation")||y&&!y.isKeyboardEnabled()||(i.createAction("onKeyDown"),Re(I,i,a,c,g,D=>{i.executeAction("onKeyDown",D)}))};var W=p(9522),ie=p(5397),he=p(2925),Ce=p(36),ye=p(6021),Me=p(4757),_e=p(8649),ke=p(7007),Ye=p(6110),de=p(778),Ae=p(1395),pe=p(9209),Ee=p(1110);const Be=I=>class extends I{_applyColumnState(i){var a;const c=this.option("rtlEnabled"),g=this._getColumnAlignment(i.column.alignment,c),y=(0,C.X)(!0,{columnAlignment:g},i),D=y.rootElement.hasClass("dx-group-panel-item"),Y=this._createIndicatorContainer(y,D),xe=(0,T.A)("<span>").addClass(this._getIndicatorClassName(i.name)),Le=null===(a=this.component)||void 0===a?void 0:a.getController("columns"),st=Le?.getHeaderContentAlignment(g)||g;return y.container=Y,y.indicator=xe,this._renderIndicator(y),Y[!D&&i.showColumnLines||"left"!==st?"prependTo":"appendTo"](i.rootElement),xe}_getIndicatorClassName(i){}_getColumnAlignment(i,a){return a=a||this.option("rtlEnabled"),i&&"center"!==i?i:(0,Me.n)(a)}_createIndicatorContainer(i,a){let c=this._getIndicatorContainer(i.rootElement);const g="left"===i.columnAlignment?"right":"left";return c.length||(c=(0,T.A)("<div>").addClass("dx-column-indicators")),this.setAria("role","presentation",c),c.css("float",i.showColumnLines&&!a?g:null)}_getIndicatorContainer(i){return i&&i.find(".dx-column-indicators")}_getIndicatorElements(i){const a=this._getIndicatorContainer(i);return a&&a.children()}_renderIndicator(i){const a=i.container,c=i.indicator;a&&c&&a.append(c)}_updateIndicators(i){const a=this,c=a.getColumns(),g=a.getColumnElements();let y;if(g&&c.length===g.length)for(let D=0;D<c.length;D++){y=g.eq(D),a._updateIndicator(y,c[D],i);const Y=y.parent().data("options");Y&&Y.cells&&(Y.cells[y.index()].column=c[D])}}_updateIndicator(i,a,c){if(!a.command)return this._applyColumnState({name:c,rootElement:i,column:a,showColumnLines:this.option("showColumnLines")})}};var Oe=p(5737),fe=p(8684),We=p(127),Ue=p(9144);const Ve=["rowsView"],qe=(I,i)=>{const a=Object.values(I).find(c=>{var g;return null==c||null===(g=c.element())||void 0===g?void 0:g.hasClass(i)});return a?.element()??null};class me{constructor(i){const a=this;a._updateLockCount=0,a.component=i,a._actions={},a._actionConfigs={},(0,e.__)(this.callbackNames()||[],function(c,g){const y=a.callbackFlags(g)||{};y.unique=!0,y.syncStrategy=!0,a[this]=(0,fe.A)(y)})}_endUpdateCore(){}init(){}callbackNames(){}callbackFlags(i){}publicMethods(){return[]}beginUpdate(){this._updateLockCount++}endUpdate(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())}option(i){const{component:a}=this,c=a._optionCache;return 1===arguments.length&&c?(i in c||(c[i]=a.option(i)),c[i]):a.option.apply(a,arguments)}_silentOption(i,a){const{component:c}=this,g=c._optionCache;return g&&(g[i]=a),c._setOptionWithoutOptionChange(i,a)}localize(i){const a=this.component._optionCache;return a?(i in a||(a[i]=v.A.format(i)),a[i]):v.A.format(i)}on(i,a){return this.component.on.apply(this.component,arguments)}off(){return this.component.off.apply(this.component,arguments)}optionChanged(i){i.name in this._actions&&(this.createAction(i.name,this._actionConfigs[i.name]),i.handled=!0)}getAction(i){return this._actions[i]}setAria(i,a,c){const g=c.get(0),y="role"!==i&&"id"!==i?"aria-":"";g.setAttribute?g.setAttribute(y+i,a):c.attr(y+i,a)}_createComponent(i,a,c){return this.component._createComponent(i,a,c)}getController(i){return this.component._controllers[i]}createAction(i,a){if((0,w.Tn)(i)){const c=this.component._createAction(i.bind(this),a);return function(g){c({event:g})}}this._actions[i]=this.component._createActionByOption(i,a),this._actionConfigs[i]=a}executeAction(i,a){const c=this._actions[i];return c&&c(a)}dispose(){const i=this;(0,e.__)(i.callbackNames()||[],function(){i[this].empty()})}addWidgetPrefix(i){return`dx-${this.component.NAME.slice(2).toLowerCase()}${i?`-${i}`:""}`}getWidgetContainerClass(){return this.addWidgetPrefix("dxDataGrid"===this.component.NAME?null:"container")}elementIsInsideGrid(i){return i.closest(`.${this.getWidgetContainerClass()}`).parent().is(this.component.$element())}}class Te extends me{}class Ne extends me{constructor(i){super(i),this.renderCompleted=(0,fe.A)(),this.resizeCompleted=(0,fe.A)()}_isReady(){return this.component.isReady()}_endUpdateCore(){super._endUpdateCore(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))}_invalidate(i,a){this._requireRender=!0,this.component._requireResize=(0,Ye.Vd)()&&(this.component._requireResize||i),this._requireReady=this._requireReady||a}_renderCore(i){}_resizeCore(){}_parentElement(){return this._$parent}element(){return this._$element}getElementHeight(){const i=this.element();if(!i)return 0;const a=parseFloat(i.css("marginTop"))||0,c=parseFloat(i.css("marginBottom"))||0,{offsetHeight:g}=i.get(0);return g+a+c}isVisible(){return!0}getTemplate(i){return this.component._getTemplate(i)}getView(i){return this.component._views[i]}_getBorderedViews(){return{columnHeadersView:this.component._views.columnHeadersView,rowsView:this.component._views.rowsView,filterPanelView:this.component._views.filterPanelView,footerView:this.component._views.footerView}}render(i,a){let c=this._$element;const g=this.isVisible();if((c||i)&&(this._requireReady=!1,c||(c=this._$element=(0,T.A)("<div>").appendTo(i),this._$parent=i),c.toggleClass("dx-hidden",!g),this.component._views&&((I,i)=>{if(!((I,i)=>{var a;if(!Object.keys(i).includes(I))return!1;const{rowsView:c}=i,g=(0,Ue.A)(i,Ve);return!!(0,w.O9)(null==c||null===(a=c.element)||void 0===a?void 0:a.call(c))&&Object.values(g).filter(y=>{var D;return null==y||null===(D=y.isVisible)||void 0===D?void 0:D.call(y)}).every(y=>(0,w.O9)(y?.element()))})(I,i))return;const a=qe(i,"dx-bordered-top-view"),c=qe(i,"dx-bordered-bottom-view"),g=(I=>{let{columnHeadersView:i,rowsView:a}=I;return null!=i&&i.isVisible()?i.element():a.element()})(i),y=(I=>{let{filterPanelView:i,footerView:a,rowsView:c}=I;return null!=i&&i.isVisible()?i.element():null!=a&&a.isVisible()?a.element():c.element()})(i);a&&!a.is(g)&&a.removeClass("dx-bordered-top-view"),c&&!c.is(y)&&c.removeClass("dx-bordered-bottom-view"),g.hasClass("dx-bordered-top-view")||g.addClass("dx-bordered-top-view"),y.hasClass("dx-bordered-bottom-view")||y.addClass("dx-bordered-bottom-view")})(this.name,this._getBorderedViews()),g)){this.component._optionCache={};const y=this._renderCore(a);this.component._optionCache=void 0,y?y.done(()=>{this.renderCompleted.fire(a)}):this.renderCompleted.fire(a)}}resize(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1}focus(i){this.element().get(0).focus({preventScroll:i})}}function Qe(I){const a={};return Object.entries(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).forEach(c=>{let[g,y]=c;const D=I[g];D&&(a[g]=(0,w.Tn)(y)?y(D):D.inherit(y))}),a}const ft={modules:[],View:Ne,ViewController:class je extends Te{getView(i){return this.component._views[i]}getViews(){return this.component._views}},Controller:Te,registerModule(I,i){const{modules:a}=this;for(let c=0;c<a.length;c++)if(a[c].name===I)return;i.name=I,a.push(i)},registerModulesOrder(I){this.modulesOrder=I},unregisterModule(I){this.modules=(0,b.VM)(this.modules,i=>i.name!==I)},processModules:function yt(I,i){const{modules:a}=i,{modulesOrder:c}=i;function g(st){const mt={};return(0,e.__)(st,(on,wn)=>{const Kn=new wn(I);Kn.name=on,function Ct(I,i,a){const c=a.publicMethods();c&&(0,e.__)(c,(g,y)=>{if(!a[y])throw We.A.Error("E1006",i,y);if(I[y])throw We.A.Error("E1005",y);I[y]=function(){return a[y](...arguments)}})}(I,on,Kn),mt[on]=Kn}),mt}c&&a.sort((st,mt)=>{let on=c.indexOf(st.name),wn=c.indexOf(mt.name);return on<0&&(on=1e6),wn<0&&(wn=1e6),on-wn});const y={},D={};a.forEach(st=>{let{name:mt,controllers:on={},views:wn={}}=st;Object.entries(on).forEach(Kn=>{let[Ai,no]=Kn;if(y[Ai])throw We.A.Error("E1001",mt,Ai);if(!(no?.prototype instanceof Te))throw We.A.Error("E1002",mt,Ai);y[Ai]=no}),Object.entries(wn).forEach(Kn=>{let[Ai,no]=Kn;if(D[Ai])throw We.A.Error("E1003",mt,Ai);if(!(no?.prototype instanceof Ne))throw We.A.Error("E1004",mt,Ai);D[Ai]=no})});const Y=a.filter(st=>{let{extenders:mt}=st;return!!mt}),xe=Y.reduce((st,mt)=>{let{extenders:on}=mt;return(0,Oe.A)({},st,Qe(st,on?.controllers))},y),Le=Y.reduce((st,mt)=>{let{extenders:on}=mt;return(0,Oe.A)({},st,Qe(st,on?.views))},D);I._controllers=g(xe),I._views=g(Le)},callModuleItemsMethod:function(I,i,a){a=a||[],I._controllers&&(0,e.__)(I._controllers,function(){this[i]&&this[i].apply(this,a)}),I._views&&(0,e.__)(I._views,function(){this[i]&&this[i].apply(this,a)})}};var nn=p(4270),rn=p(9495),Mn=p(6234),On=p(1221),ji=p(5335),Mi=p(9916),Vo=p(676),Co=p(1520),ti=p(9061),Qn=p(1926);p(9461);const Rt=(0,Qn.A)({format:function(I,i){const a=(0,w.Kg)(i)&&""!==i||(0,w.Qd)(i)||(0,w.Tn)(i),c=(0,w.kf)(I)||(0,w.$P)(I);return a&&c?(0,w.Tn)(i)?i(I):((0,w.Kg)(i)&&(i={type:i}),(0,w.kf)(I)?Co.A.format(I,i):(0,w.$P)(I)?ti.A.format(I,i):void 0):(0,w.O9)(I)?I.toString():""},getTimeFormat:function(I){return I?"longtime":"shorttime"},_normalizeFormat:function(I){return Array.isArray(I)?1===I.length?I[0]:function(i){return I.map(function(a){return ti.A.format(i,a)}).join(" ")}:I},getDateFormatByDifferences:function(I,i){const a=[],c=i&&I.millisecond&&!(I.year||I.month||I.day);return c?a.push(function(y){return y.getSeconds()+y.getMilliseconds()/1e3+"s"}):I.millisecond&&a.push("millisecond"),(I.hour||I.minute||!c&&I.second)&&a.unshift(this.getTimeFormat(I.second)),I.year&&I.month&&I.day?i&&"month"===i?"monthandyear":(a.unshift("shortdate"),this._normalizeFormat(a)):I.year&&I.month?"monthandyear":I.year&&I.quarter?"quarterandyear":I.year?"year":I.quarter?"quarter":I.month&&I.day?(a.unshift(i?function(y){return ti.A.getMonthNames("abbreviated")[y.getMonth()]+" "+ti.A.format(y,"day")}:"monthandday"),this._normalizeFormat(a)):I.month?"month":I.day?(a.unshift(i?"day":function(y){return ti.A.format(y,"dayofweek")+", "+ti.A.format(y,"day")}),this._normalizeFormat(a)):this._normalizeFormat(a)},getDateFormatByTicks:function(I){let i,a,c;if(I.length>1)for(i=Vo.A.getDatesDifferences(I[0],I[1]),c=1;c<I.length-1;c++)a=Vo.A.getDatesDifferences(I[c],I[c+1]),i.count<a.count&&(i=a);else i={year:!0,month:!0,day:!0,hour:I[0].getHours()>0,minute:I[0].getMinutes()>0,second:I[0].getSeconds()>0,millisecond:I[0].getMilliseconds()>0};return this.getDateFormatByDifferences(i)},getDateFormatByTickInterval:function(I,i,a){let c;const g=function(Y,xe,Le){switch(xe){case"year":case"quarter":Y.month=Le;case"month":Y.day=Le;case"week":case"day":Y.hour=Le;case"hour":Y.minute=Le;case"minute":Y.second=Le;case"second":Y.millisecond=Le}};a=(0,w.Kg)(a)?a.toLowerCase():a;const y=Vo.A.getDatesDifferences(I,i);return I!==i&&(Y=y,xe=I>i?i:I,!(Le=I>i?I:i).getMilliseconds()&&Le.getSeconds()?Le.getSeconds()-xe.getSeconds()===1&&(Y.millisecond=!0,Y.second=!1):!Le.getSeconds()&&Le.getMinutes()?Le.getMinutes()-xe.getMinutes()===1&&(Y.second=!0,Y.minute=!1):!Le.getMinutes()&&Le.getHours()?Le.getHours()-xe.getHours()===1&&(Y.minute=!0,Y.hour=!1):!Le.getHours()&&Le.getDate()>1?Le.getDate()-xe.getDate()===1&&(Y.hour=!0,Y.day=!1):1===Le.getDate()&&Le.getMonth()?Le.getMonth()-xe.getMonth()===1&&(Y.day=!0,Y.month=!1):!Le.getMonth()&&Le.getFullYear()&&Le.getFullYear()-xe.getFullYear()===1&&(Y.month=!0,Y.year=!1)),c=Vo.A.getDateUnitInterval(y),g(y,c,!0),c=Vo.A.getDateUnitInterval(a||"second"),g(y,c,!1),y[{week:"day"}[c]||c]=!0,this.getDateFormatByDifferences(y);var Y,xe,Le}});var Jt=p(7281);const Pn=["year","month","day"],Jn=["year","month","day","hour","minute"],Ii=function(I){return"date"===I||"datetime"===I},vo=function(I){let i,a=[];const c=["year","month","day","hour","minute","second"],g=I.headerFilter&&I.headerFilter.groupInterval,y="quarter"===g?"month":g;return Ii(I.dataType)&&null!==g?(a="datetime"===I.dataType?Jn:Pn,i=c.indexOf(y),i>=0&&(a=c.slice(0,i),a.push(g)),a):(0,w.O9)(g)?Array.isArray(g)?g:[g]:void 0},pi=function(){const I=function(g,y){let D=g.dataField||g.selector;return"search"===y&&(D=g.displayField||g.calculateDisplayValue||D),D},i=function(g,y){const D=this;let Y,xe,Le;const st=I(D,y);if(Array.isArray(g)&&(0,w.O9)(g[0])&&(0,w.O9)(g[1]))return xe=[st,">=",g[0]],Le=[st,"<=",g[1]],Ii(D.dataType)&&(mt=g[1]).getHours()+mt.getMinutes()+mt.getSeconds()+mt.getMilliseconds()<1&&(Y=new Date(g[1].getTime()),"date"===D.dataType&&Y.setDate(g[1].getDate()+1),Le=[st,"<",Y]),[xe,"and",Le];var mt},a=function(g,y,D){const Y=this;let xe,Le,st;const mt=(0,w.$P)(wn=g)?[wn.getFullYear(),wn.getMonth(),wn.getDate(),wn.getHours(),wn.getMinutes(),wn.getSeconds()]:(0,e.Tj)((""+wn).split("/"),function(Kn,Ai){return 1===Ai?Number(Kn)-1:Number(Kn)}),on=I(Y,D);var wn;switch("headerFilter"===D?st=vo(Y)[mt.length-1]:"datetime"===Y.dataType&&(st="minute"),st){case"year":xe=new Date(mt[0],0,1),Le=new Date(mt[0]+1,0,1);break;case"month":xe=new Date(mt[0],mt[1],1),Le=new Date(mt[0],mt[1]+1,1);break;case"quarter":xe=new Date(mt[0],3*mt[1],1),Le=new Date(mt[0],3*mt[1]+3,1);break;case"hour":xe=new Date(mt[0],mt[1],mt[2],mt[3]),Le=new Date(mt[0],mt[1],mt[2],mt[3]+1);break;case"minute":xe=new Date(mt[0],mt[1],mt[2],mt[3],mt[4]),Le=new Date(mt[0],mt[1],mt[2],mt[3],mt[4]+1);break;case"second":xe=new Date(mt[0],mt[1],mt[2],mt[3],mt[4],mt[5]),Le=new Date(mt[0],mt[1],mt[2],mt[3],mt[4],mt[5]+1);break;default:xe=new Date(mt[0],mt[1],mt[2]),Le=new Date(mt[0],mt[1],mt[2]+1)}switch(y){case"<":return[on,"<",xe];case"<=":return[on,"<",Le];case">":return[on,">=",Le];case">=":return[on,">=",xe];case"<>":return[[on,"<",xe],"or",[on,">=",Le]];default:return[[on,">=",xe],"and",[on,"<",Le]]}},c=function(g,y,D){const Y=I(this,D),xe=vo(this);if("headerFilter"===D&&xe&&(0,w.O9)(g)){const Le=(""+g).split("/"),st=Number(Le[Le.length-1]);return[[Y,">=",st],"and",[Y,"<",st+xe[Le.length-1]]]}return[Y,y||"=",g]};return{defaultCalculateFilterExpression:function(g,y,D){const Y=this,xe=I(Y,D),Le=Y.calculateDisplayValue&&"search"===D,st=Le&&Y.lookup&&Y.lookup.dataType||Y.dataType;let mt=null;if("headerFilter"!==D&&"filterBuilder"!==D||null!==g)if("string"!==st||Y.lookup&&!Le){if("between"===y)return i.apply(Y,[g,D]);if(Ii(st)&&(0,w.O9)(g))return a.apply(Y,arguments);if("number"===st)return c.apply(Y,arguments);mt=[xe,y||"=",g]}else mt=[xe,y||"contains",g];else mt=[xe,y||"=",null],"string"===st&&(mt=[mt,"="===y?"or":"and",[xe,y||"=",""]]);return mt},getGroupInterval:vo}}(),Fn={year:I=>I&&I.getFullYear(),month:I=>I&&I.getMonth()+1,day:I=>I&&I.getDate(),quarter:I=>I&&Math.floor(I.getMonth()/3)+1,hour:I=>I&&I.getHours(),minute:I=>I&&I.getMinutes(),second:I=>I&&I.getSeconds()},li=function(){const i=this.calculateCellValue(arguments[1]);if(!(0,w.O9)(i))return null;if(Ni(this.dataType))return Fn[arguments[0]](i);if("number"===this.dataType){const a=arguments[0];return Math.floor(Number(i)/a)*a}},si=function(I,i){return(0,w.Tn)(I)&&(0,w.Tn)(i)&&I.originalCallback&&i.originalCallback?I.originalCallback===i.originalCallback&&I.columnIndex===i.columnIndex:I===i};function Ni(I){return"date"===I||"datetime"===I}const Yi=function(I){I.get(0).textContent="\xa0"},Sn=function(I){const i=(0,Mi.st)(I=I||[]);for(let a=0;a<I.length;a++)I&&I[a]&&void 0!==I[a].isExpanded&&(i[a].isExpanded=I[a].isExpanded),I&&I[a]&&void 0!==I[a].groupInterval&&(i[a].groupInterval=I[a].groupInterval);return i},ri=function(I,i){const a=Rt.format(I,i.format)||I&&I.toString()||"",c={value:I,valueText:i.getDisplayFormat?i.getDisplayFormat(a):a,target:i.target||"row",groupInterval:i.groupInterval};return i.customizeText?i.customizeText.call(i,c):c.valueText},It=function(I,i){const a=I.displayFormat||I.columnCaption&&i[`${I.summaryType}OtherColumn`]||i[I.summaryType];return ri(I.value,{format:I.valueFormat,getDisplayFormat:c=>a?(0,rn.GP)(a,c,I.columnCaption):c,customizeText:I.customizeText})},Pt=function(I){const i=I.data&&I.data(),a=i&&i.dxComponents,c=a&&a[0];return c&&i[c]},dn=function(I,i){if(Array.isArray(I)&&Array.isArray(i)){if(I.length!==i.length)return!1;for(let a=0;a<I.length;a++)if(!dn(I[a],i[a]))return!1;return!0}return(0,w.Tn)(I)&&I.columnIndex>=0&&(0,w.Tn)(i)&&i.columnIndex>=0?I.columnIndex===i.columnIndex&&(0,nn.ao)(I.filterValue)===(0,nn.ao)(i.filterValue)&&(0,nn.ao)(I.selectedFilterOperation)===(0,nn.ao)(i.selectedFilterOperation):(0,nn.ao)(I)==(0,nn.ao)(i)},Ot={renderNoDataText(I){if(!(I=I||this.element()))return;const a=this.addWidgetPrefix("nodata");let c=I.find(`.${a}`).last();const g=this._dataController.isEmpty(),y=this._dataController.isLoading();c.length||(c=(0,T.A)("<span>").addClass(a)),c.parent().is(I)||c.appendTo(I),g&&!y?c.removeClass("dx-hidden").text(this._getNoDataText()):c.addClass("dx-hidden")},renderLoadPanel(I,i,a){const c=this;let g;c._loadPanel&&c._loadPanel.$element().remove(),g=c.option("loadPanel"),g&&("auto"===g.enabled?!a:g.enabled)?(g=(0,C.X)({shading:!1,message:g.text,container:i},g),c._loadPanel=c._createComponent((0,T.A)("<div>").appendTo(i),Jt.A,g)):c._loadPanel=null},calculateLoadPanelPosition(I){const i=(0,T.A)((0,Ye.zk)());return(0,k.Oq)(I)>(0,k.Oq)(i)?{of:i,boundary:I,collision:"fit"}:{of:I}},getIndexByKey(I,i,a){let c=-1;if(void 0!==I&&Array.isArray(i)){a=arguments.length<=2?"key":a;for(let g=0;g<i.length;g++){const y=(0,w.O9)(a)?i[g][a]:i[g];if((0,b.RL)(I,y)){c=g;break}}}return c},combineFilters(I,i){let a=[];i=i||"and";for(let g=0;g<I.length;g++){var c;if(I[g]){if(1===(null===(c=I[g])||void 0===c?void 0:c.length)&&"!"===I[g][0]){if("and"===i)return["!"];if("or"===i)continue}a.length&&a.push(i),a.push(I[g])}}if(1===a.length&&(a=a[0]),a.length)return a},checkChanges(I,i){let a=0;for(let c=0;c<i.length;c++)I[i[c]]&&a++;return I.length&&I.length===a},equalFilterParameters:dn,proxyMethod(I,i,a){I[i]||(I[i]=function(){const c=this._dataSource;return c?c[i].apply(c,arguments):a})},formatValue:ri,getFormatOptionsByColumn:(I,i)=>({format:I.format,getDisplayFormat:I.getDisplayFormat,customizeText:I.customizeText,target:i,trueText:I.trueText,falseText:I.falseText}),getDisplayValue:(I,i,a,c)=>I.displayValueMap&&void 0!==I.displayValueMap[i]?I.displayValueMap[i]:I.calculateDisplayValue&&a&&"group"!==c?I.calculateDisplayValue(a):!I.lookup||"group"===c&&(I.calculateGroupValue||I.calculateDisplayValue)?i:I.lookup.calculateCellValue(i),getGroupRowSummaryText(I,i){let a="(";for(let c=0;c<I.length;c++)a+=(c>0?", ":"")+It(I[c],i);return a+")"},getSummaryText:It,normalizeSortingInfo:Sn,getFormatByDataType(I){switch(I){case"date":return"shortDate";case"datetime":return"shortDateShortTime";default:return}},getHeaderFilterGroupParameters(I,i){let a=[];const c=I.dataField||I.name,g=pi.getGroupInterval(I);return g?((0,e.__)(g,(y,D)=>{a.push(i?{selector:c,groupInterval:D,isExpanded:y<g.length-1}:li.bind(I,D))}),a):(i?a=[{selector:c,isExpanded:!1}]:(a=function(y){let D=I.calculateCellValue(y);return(void 0===D||""===D)&&(D=null),D},I.sortingMethod&&(a=[{selector:a,compare:I.sortingMethod.bind(I)}])),a)},equalSortParameters(I,i,a){if(I=Sn(I),i=Sn(i),Array.isArray(I)&&Array.isArray(i)){if(I.length!==i.length)return!1;for(let c=0;c<I.length;c++)if(!si(I[c].selector,i[c].selector)||I[c].desc!==i[c].desc||I[c].groupInterval!==i[c].groupInterval||!a&&!!I[c].isExpanded!=!!i[c].isExpanded)return!1;return!0}return(!I||!I.length)==(!i||!i.length)},getPointsByColumns(I,i,a,c){const g=I.length;let D,Y,y=!1,xe=c||0;const Le=[];let st;for(let mt=0;mt<=g;mt++){mt<g&&(D=I.eq(mt),Y=D.offset(),st="rtl"===D.css("direction"));const on={index:xe,x:Y?Y.left+(!a&&st^mt===g?(0,Me.N)(D[0]).width:0):0,y:Y?Y.top+(a&&mt===g?(0,Me.N)(D[0]).height:0):0,columnIndex:xe};if(!a&&mt>0){const wn=I.eq(mt-1).offset();wn.top<on.y&&(on.y=wn.top)}i&&(y=i(on)),y||Le.push(on),xe++}return Le},getExpandCellTemplate:()=>({allowRenderToDetachedContainer:!0,render(I,i){const a=(0,T.A)(I);if(!(0,w.O9)(i.value)||i.data&&i.data.isContinuation||i.row.isNewRow)Yi(a);else{const c=i.component.getView("rowsView");a.addClass("dx-datagrid-expand").addClass("dx-selection-disabled"),(0,T.A)("<div>").addClass(i.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(a),c.setAria("label",c.localize(i.value?"dxDataGrid-ariaCollapse":"dxDataGrid-ariaExpand"),a)}}}),setEmptyText:Yi,isDateType:Ni,getSelectionRange(I){try{if(I)return{selectionStart:I.selectionStart,selectionEnd:I.selectionEnd}}catch{}return{}},setSelectionRange(I,i){try{I&&I.setSelectionRange&&I.setSelectionRange(i.selectionStart,i.selectionEnd)}catch{}},focusAndSelectElement(I,i){const a=i.is(":focus");P.A.trigger(i,"focus");const c=I.option("editing.selectTextOnEditStart"),g=i.get(0);if(!a&&c&&i.is(".dx-texteditor-input")&&!i.is("[readonly]")){const y=Pt(i.closest(".dx-texteditor"));(0,ye.z7)(y&&y._loadItemDeferred).done(()=>{g.select()})}},getWidgetInstance:Pt,getLastResizableColumnIndex(I,i){const a=I.some(g=>g&&!g.command&&!g.fixed&&!1!==g.allowResizing);let c;for(c=I.length-1;I[c];c--){const g=I[c];if(!(g.command||g.fixed||"adaptiveHidden"===(i&&i[c])||a&&!1===g.allowResizing))break}return c},isElementInCurrentGrid:(I,i)=>!(!i||!i.length)&&i.closest(`.${I.getWidgetContainerClass()}`).parent().is(I.component.$element()),isVirtualRowRendering(I){const i=I.option("scrolling.rowRenderingMode"),a="virtual"===I.option("scrolling.mode"),c="infinite"===I.option("scrolling.mode");return!(!1!==I.option("scrolling.legacyMode")||!a&&!c)||"virtual"===i},getPixelRatio:I=>I.devicePixelRatio||1,getContentHeightLimit(I){return I.mozilla?8e6:15e6/this.getPixelRatio((0,Ye.zk)())},normalizeLookupDataSource(I){let i;return I.items?i=I.items:(i=I.dataSource,(0,w.Tn)(i)&&!Mn.A.isWrapped(i)&&(i=i({}))),(0,ji.ho)(i)},getWrappedLookupDataSource(I,i,a){if(!i)return[];const c=this.normalizeLookupDataSource(I.lookup);if(I.calculateCellValue!==I.defaultCalculateCellValue)return c;const g=i.remoteOperations().groupPaging,y=I.displayField&&(0,w.Kg)(I.displayField);let D,Y,xe;const Le=(mt,on)=>{const wn=on.skip??0;return mt.slice(wn,on.take?wn+on.take:mt.length)};return(0,Oe.A)({},c,{__dataGridSourceFilter:a,load:mt=>{const on=new ye.cY;return(wn=>{const Kn=function jt(I){return Array.isArray(I)||(I=[I]),I.map((i,a)=>(0,w.Kg)(i)?{selector:i,isExpanded:a<I.length-1}:i)}(y?[I.dataField,I.displayField]:I.dataField),Ai=new ye.cY;return D&&(!g||wn.skip===xe&&wn.take===Y)?Ai.resolve(Le(D,wn)):(xe=wn.skip,Y=wn.take,i.load({filter:a,group:Kn,take:g?wn.take:void 0,skip:g?wn.skip:void 0}).done(Yo=>{D=Yo,Ai.resolve(g?Yo:Le(Yo,wn))}).fail(Ai.fail)),Ai})(mt).done(wn=>{if(0===wn.length)return void on.resolve([]);const Kn=this.combineFilters(wn.flatMap(no=>no.key).map(no=>[I.lookup.valueExpr,no]),"or");new On.q((0,Oe.A)({},c,mt,{filter:this.combineFilters([Kn,mt.filter],"and"),paginate:!1})).load().done(on.resolve).fail(on.fail)}).fail(on.fail),on},key:I.lookup.valueExpr,byKey(mt){const on=(0,ye.cY)();return this.load({filter:[I.lookup.valueExpr,"=",mt]}).done(wn=>{on.resolve(wn[0])}),on.promise()}})},logHeaderFilterDeprecatedWarningIfNeed(I){const i=I._logDeprecatedOptionWarning.bind(I);(0,w.O9)(I.option("headerFilter.allowSearch"))&&i("headerFilter.allowSearch",{since:"23.1",alias:"headerFilter.search.enabled"}),(0,w.O9)(I.option("headerFilter.searchTimeout"))&&i("headerFilter.searchTimeout",{since:"23.1",alias:"headerFilter.search.timeout"});const a="dxPivotGrid"===I.NAME?"dataSource.fields":"columns",c=I.option(a);if(!Array.isArray(c))return;const g=y=>{y.forEach(D=>{var Y;const xe=D.headerFilter||{};(0,w.O9)(xe.allowSearch)&&i(`${a}[].headerFilter.allowSearch`,{since:"23.1",alias:`${a}[].headerFilter.search.enabled`}),(0,w.O9)(xe.searchMode)&&i(`${a}[].headerFilter.searchMode`,{since:"23.1",alias:`${a}[].headerFilter.search.mode`}),null!==(Y=D.columns)&&void 0!==Y&&Y.length&&g(D.columns)})};g(c)}},ai="dx-master-detail-row",gs="dxCellHintVisible",Bn={render(I){I.container.append(I.content)}},Ri=function(I){return"auto"===I?"":(0,w.kf)(I)?`${I}px`:I},Xi=function(I,i,a){I.style.width=I.style.maxWidth="auto"===i.width?"":a},Fo=function(I){I.resolve()},Vs=I=>"number"==typeof I?`${I.toFixed(3)}px`:"adaptiveHidden"===I?"0.0001px":I;class fs extends(Be(ft.View)){init(){this._scrollLeft=-1,this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._columnChooserController=this.getController("columnChooser"),this._editorFactoryController=this.getController("editorFactory"),this._selectionController=this.getController("selection"),this._columnChooserView=this.getView("columnChooserView"),this._delayedTemplates=[],this._templateDeferreds=new Set,this._templatesCache={},this._templateTimeouts=new Set,this.createAction("onCellClick"),this.createAction("onRowClick"),this.createAction("onCellDblClick"),this.createAction("onRowDblClick"),this.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:i=>{this._afterRowPrepared(i)}}),this._columnsController.columnsChanged.add(this._columnOptionChanged.bind(this)),this._dataController&&this._dataController.changed.add(this._handleDataChanged.bind(this))}dispose(){if((0,Ye.Vd)()){var i,a;const c=(0,Ye.zk)();null===(i=this._templateTimeouts)||void 0===i||i.forEach(g=>c.clearTimeout(g)),null===(a=this._templateTimeouts)||void 0===a||a.clear()}}optionChanged(i){switch(super.optionChanged(i),i.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),i.handled=!0;break;case"keyboardNavigation":"keyboardNavigation.enabled"===i.fullName&&this._invalidate(!0,!0),i.handled=!0}}_createScrollableOptions(){const i=this.option("scrolling");let a=this.option("scrolling.useNative");const c=(0,C.X)({},i,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===a&&(a=!0),"auto"===a?(delete c.useNative,delete c.useSimulatedScrollbar):(c.useNative=!!a,c.useSimulatedScrollbar=!a),c}_updateCell(i,a){a.rowType&&this._cellPrepared(i,a)}_needToSetCellWidths(){return this.option("columnAutoWidth")}_createCell(i){const{column:a}=i,c=a.alignment||(0,Me.n)(this.option("rtlEnabled")),g=this._needToSetCellWidths(),y=m.A.createElement("td");y.style.textAlign=c;const D=(0,T.A)(y);return"data"===i.rowType&&a.headerId&&!a.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",a.headerId,D),a.cssClass&&D.addClass(a.cssClass),Array.isArray(a.elementAttr)&&a.elementAttr.forEach(Y=>{let{name:xe,value:Le}=Y;D.attr(xe,Le)}),"expand"===a.command&&(D.addClass(a.cssClass),D.addClass(this.addWidgetPrefix("group-space"))),a.colspan>1?D.attr("colSpan",a.colspan):!a.isBand&&"auto"!==a.visibleWidth&&g&&((a.width||a.minWidth)&&(y.style.minWidth=Ri(a.minWidth||a.width)),a.width&&Xi(y,a,Ri(a.width))),D}_createRow(i,a){const c=(0,T.A)(`<${a=a||"tr"}>`).addClass("dx-row");return"tr"===a&&this.setAria("role","row",c),c}_isAltRow(i){return i&&i.dataIndex%2==1}_createTable(i,a){const c=(0,T.A)("<table>").addClass(this.addWidgetPrefix("table")).addClass(this.addWidgetPrefix("table-fixed"));if(i&&!a?(c.attr("id",`dx-${new he.A}`).append(this._createColGroup(i)),Ce.A.safari&&c.append((0,T.A)("<thead>").append("<tr>")),this.setAria("role","presentation",c)):this.setAria("hidden",!0,c),this.setAria("role","presentation",(0,T.A)("<tbody>").appendTo(c)),a)return c;Ce.A.mozilla&&P.A.on(c,"mousedown","td",y=>{y.ctrlKey&&y.preventDefault()}),this.option("cellHintEnabled")&&P.A.on(c,"mousemove",".dx-row > td",this.createAction(y=>{const D=y.event,Y=(0,T.A)(D.target),xe=(0,T.A)(D.currentTarget),Le=xe.parent(),st=this._columnsController.getVisibleColumns(),mt=Le.data("options"),on=xe.index(),wn=mt&&mt.cells&&mt.cells[on],Kn=wn?wn.column:st[on],Ai=Le.hasClass("dx-header-row"),no=Le.hasClass("dx-data-row"),Yo=Le.hasClass(ai),ps=Le.hasClass("dx-group-row"),Ls=Le.hasClass(this.addWidgetPrefix("filter-row")),_r=no&&(!Kn||Kn.cellTemplate);!Yo&&!Ls&&!(no&&wn&&(mt.isEditing||wn.isEditing||Kn?.showEditorAlways))&&!_r&&(!Ai||Kn&&!Kn.headerCellTemplate)&&(!ps||!(!Kn||Kn.groupIndex&&Kn.groupCellTemplate))&&(Y.data(gs)&&(Y.removeAttr("title"),Y.data(gs,!1)),Y[0].scrollWidth-Y[0].clientWidth>0&&!(0,w.O9)(Y.attr("title"))&&(Y.attr("title",Y.text()),Y.data(gs,!0)))}));const g=y=>{const D=(0,T.A)(y.currentTarget),Y=(0,T.A)(y.target).closest(".dx-field-item-content"),xe=D.parent(),Le=xe.data("options"),st=Le&&Le.cells&&Le.cells[D.index()];if(!D.closest("table").is(y.delegateTarget))return;const mt=(0,C.X)({},st,{cellElement:(0,W.cc)(D),event:y,eventType:y.type});if(mt.rowIndex=this.getRowIndex(xe),Y.length){const on=Y.data("dx-form-item");on.column&&(mt.column=on.column,mt.columnIndex=this._columnsController.getVisibleIndex(mt.column.index))}return mt};return P.A.on(c,"mouseover",".dx-row > td",y=>{const D=g(y);D&&this.executeAction("onCellHoverChanged",D)}),P.A.on(c,"mouseout",".dx-row > td",y=>{const D=g(y);D&&this.executeAction("onCellHoverChanged",D)}),P.A.on(c,de.U,".dx-row > td",y=>{const D=g(y);D&&this.executeAction("onCellClick",D)}),P.A.on(c,Ae.U,".dx-row > td",y=>{const D=g(y);D&&this.executeAction("onCellDblClick",D)}),function(I,i){let a,c,g;function y(D){return setTimeout(()=>{a=c=null},D)}P.A.on(i,"touchstart touchend",".dx-row",D=>{clearTimeout(g),"touchstart"===D.type?(a=D.target,c=D.currentTarget,g=y(1e3)):g=y()}),P.A.on(i,[de.U,Ae.U,pe.A.down].join(" "),".dx-row",I.createAction(D=>{const{event:Y}=D;a&&(Y.target=a,Y.currentTarget=c),(0,T.A)(Y.target).closest("a").length||(D.rowIndex=I.getRowIndex(Y.currentTarget),D.rowIndex>=0&&(D.rowElement=(0,W.cc)((0,T.A)(Y.currentTarget)),D.columns=I.getColumns(),Y.type===pe.A.down?I._rowPointerDown(D):Y.type===de.U?I._rowClick(D):I._rowDblClick(D)))}))}(this,c),c}_rowPointerDown(i){}_rowClick(){}_rowDblClick(){}_createColGroup(i){const a=(0,T.A)("<colgroup>");for(let c=0;c<i.length;c++){const g=i[c].colspan||1;for(let y=0;y<g;y++)a.append(this._createCol(i[c]))}return a}_createCol(i){let a=i.visibleWidth||i.width;"adaptiveHidden"===a&&(a="0.0001px");const c=(0,T.A)("<col>");return(0,_e.zj)(c,a),c}renderDelayedTemplates(i){const a=this._delayedTemplates,c=a.filter(y=>!y.async),g=a.filter(y=>y.async);this._delayedTemplates=[],this._renderDelayedTemplatesCore(c,!1,i),this._renderDelayedTemplatesCoreAsync(g)}_renderDelayedTemplatesCoreAsync(i){if(i.length){const a=(0,Ye.zk)().setTimeout(()=>{this._templateTimeouts.delete(a),this._renderDelayedTemplatesCore(i,!0)});this._templateTimeouts.add(a)}}_renderDelayedTemplatesCore(i,a,c){const g=new Date;for(;i.length;){const y=i.shift(),{options:D}=y,Y=m.A.getRootNode((0,T.A)(D.container).get(0)),xe=this.needWaitAsyncTemplates();if((!a||(0,T.A)(D.container).closest(Y).length||xe)&&(c&&(D.change=c),y.template.render(D)),a&&new Date-g>30){this._renderDelayedTemplatesCoreAsync(i);break}}!i.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()}_processTemplate(i,a){const c=this;let g;if(i&&i.render&&!(0,w.Kb)(i))g={allowRenderToDetachedContainer:i.allowRenderToDetachedContainer,render(y){i.render(y.container,y.model,y.change),y.deferred&&y.deferred.resolve()}};else if((0,w.Tn)(i))g={render(y){const D=i((0,W.cc)(y.container),y.model,y.change);D&&(D.nodeType||(0,w.Kb)(D))&&y.container.append(D),y.deferred&&y.deferred.resolve()}};else{const y=(0,w.Kg)(i)?i:(0,T.A)(i).attr("id");y?(c._templatesCache[y]||(c._templatesCache[y]=c.getTemplate(i)),g=c._templatesCache[y]):g=c.getTemplate(i)}return g}renderTemplate(i,a,c,g,y){const D=this._processTemplate(a,c),{column:Y}=c,xe="data"===c.rowType,Le=new ye.cY,st={container:i,model:c,deferred:Le,onRendered:()=>{this.isDisposed()?Le.reject():Le.resolve()}};if(D){c.component=this.component;const mt=Y&&(Y.renderAsync&&xe||this.option("renderAsync")&&(!1!==Y.renderAsync&&(Y.command||Y.showEditorAlways)&&xe||"filter"===c.rowType)),on=c.renderAsync??mt;!D.allowRenderToDetachedContainer&&!g||on?this._delayedTemplates.push({template:D,options:st,async:on}):D.render(st),this._templateDeferreds.add(Le),P.A.on(i,Ee.N,Fo.bind(null,Le))}else Le.reject();return Le.promise().always(()=>{this._templateDeferreds.delete(Le)})}_getBodies(i){return(0,T.A)(i).children("tbody").not(".dx-header").not(".dx-footer")}_needWrapRow(i){var a;return!!this.option().rowTemplate&&!(null===(a=this._getBodies(i))||void 0===a||!a.filter(".dx-row").length)}_wrapRowIfNeed(i,a,c){if(this._needWrapRow(c?i||this._tableElement:this._tableElement||i)){const D=(0,T.A)("<tbody>").addClass(a.attr("class"));return this.setAria("role","presentation",D),D.append(a)}return a}_appendRow(i,a,c){(c=c||Bn).render({content:a,container:i})}_resizeCore(){const i=this._scrollLeft;i>=0&&(this._scrollLeft=0,this.scrollTo({left:i}))}_renderCore(i){const a=this.element().parent();(!a||a.parent().length)&&this.renderDelayedTemplates(i)}_renderTable(i){(i=i||{}).columns=this._columnsController.getVisibleColumns();const a=i.change&&i.change.changeType,c=this._createTable(i.columns,"append"===a||"prepend"===a||"update"===a);return this._renderRows(c,i),c}_renderRows(i,a){const c=this,g=c._getRows(a.change),y=a.change&&a.change.columnIndices||[],D=a.change&&a.change.changeTypes||[];for(let Y=0;Y<g.length;Y++)c._renderRow(i,(0,C.X)({row:g[Y],columnIndices:y[Y],changeType:D[Y]},a))}_renderRow(i,a){a.columnIndices||(a.row.cells=[]);const c=this._createRow(a.row),g=this._wrapRowIfNeed(i,c);"remove"!==a.changeType&&this._renderCells(c,a),this._appendRow(i,g);const y=(0,C.X)({columns:a.columns},a.row);this._addWatchMethod(y,a.row),this._rowPrepared(g,y,a.row)}_needRenderCell(i,a){return!a||a.indexOf(i)>=0}_renderCells(i,a){const c=this;let g=0;const{row:y}=a,{columns:D}=a;for(let Y=0;Y<D.length;Y++)this._needRenderCell(Y,a.columnIndices)&&c._renderCell(i,(0,C.X)({column:D[Y],columnIndex:g,value:y.values&&y.values[g],oldValue:y.oldValues&&y.oldValues[g]},a)),D[Y].colspan>1?g+=D[Y].colspan:g++}_updateCells(i,a,c){const g=i.children(),y=a.children(),D=this.option("highlightChanges"),Y=this.addWidgetPrefix("cell-updated-animation");c.forEach((xe,Le)=>{const st=g.eq(xe),mt=y.eq(Le);st.replaceWith(mt),D&&!mt.hasClass("dx-command-expand")&&mt.addClass(Y)}),function(I,i){if(!I||!i)return;const a=I.attributes,c=i.attributes;let g;for(g=0;g<a.length;g++){const y=a[g].nodeName;i.hasAttribute(y)||I.removeAttribute(y)}for(g=0;g<c.length;g++)I.setAttribute(c[g].nodeName,c[g].nodeValue)}(i.get(0),a.get(0))}_setCellAriaAttributes(i,a){if("freeSpace"!==a.rowType){this.setAria("role","gridcell",i);const c=this._columnsController.getColumnIndexOffset();this.setAria("colindex",a.columnIndex+c+1,i)}}_renderCell(i,a){const c=this._getCellOptions(a);if(a.columnIndices){if(a.row.cells){const y=a.row.cells.findIndex(D=>D.columnIndex===c.columnIndex);a.row.cells[y]=c}}else a.row.cells.push(c);const g=this._createCell(c);return this._setCellAriaAttributes(g,c),this._renderCellContent(g,c,a),i.get(0).appendChild(g.get(0)),g}_renderCellContent(i,a,c){const g=this._getCellTemplate(a);(0,ye.z7)(!g||this.renderTemplate(i,g,a,void 0,c.change)).done(()=>{this._updateCell(i,a)})}_getCellTemplate(i){}_getRows(i){return[]}_getCellOptions(i){const a={column:i.column,columnIndex:i.columnIndex,rowType:i.row.rowType,isAltRow:this._isAltRow(i.row)};return this._addWatchMethod(a),a}_addWatchMethod(i,a){if(!this.option("repaintChangesOnly"))return;const c=[];return(a=a||i).watch=a.watch||function(g,y,D){let Y=g(a.data);const xe=function(Le){Le&&D&&D(Le);const st=g(a.data);JSON.stringify(Y)!==JSON.stringify(st)&&(Le&&y(st),Y=st)};return c.push(xe),function(){const Le=c.indexOf(xe);Le>=0&&c.splice(Le,1)}},a.update=a.update||function(g,y){g&&(this.data=i.data=g.data,this.rowIndex=i.rowIndex=g.rowIndex,this.dataIndex=i.dataIndex=g.dataIndex,this.isExpanded=i.isExpanded=g.isExpanded,i.row&&!y&&(i.row=g)),c.forEach(D=>{D(g)})},a!==i&&(i.watch=a.watch.bind(a)),i}_cellPrepared(i,a){a.cellElement=(0,W.cc)((0,T.A)(i)),this.executeAction("onCellPrepared",a)}_rowPrepared(i,a,c){(0,ie.p)(i.get(0),"options",a),a.rowElement=(0,W.cc)(i),this.executeAction("onRowPrepared",a)}_columnOptionChanged(i){const{optionNames:a}=i;if(Ot.checkChanges(a,["width","visibleWidth"])){const g=this._columnsController.getVisibleColumns().map(y=>y.visibleWidth||y.width);return void this.setColumnWidths({widths:g,optionNames:a})}this._requireReady||this.render()}getCellIndex(i,a){return i.length?i[0].cellIndex:-1}getTableElements(){return this._tableElement||(0,T.A)()}getTableElement(i){return this._tableElement}setTableElement(i,a){this._tableElement=i}_afterRowPrepared(i){}_handleDataChanged(i){}callbackNames(){return["scrollChanged"]}_updateScrollLeftPosition(){const i=this._scrollLeft;i>=0&&(this._scrollLeft=0,this.scrollTo({left:i}))}scrollTo(i){const a=this.element(),c=a&&a.children(`.${this.addWidgetPrefix("scroll-container")}`).not(`.${this.addWidgetPrefix("content-fixed")}`);(0,w.O9)(i)&&(0,w.O9)(i.left)&&this._scrollLeft!==i.left&&(this._scrollLeft=i.left,c&&c.scrollLeft(i.left))}_getContent(i){var a;return null===(a=this._tableElement)||void 0===a?void 0:a.parent()}_removeContent(i){const a=this._getContent(i);null!=a&&a.length&&a.remove()}_wrapTableInScrollContainer(i,a){const c=(0,T.A)("<div>"),g=this.option("scrolling.useNative");return(!1===g||"auto"===g&&!ke.nativeScrolling)&&c.addClass(this.addWidgetPrefix("scrollable-simulated")),P.A.on(c,"scroll",()=>{const y=c.scrollLeft();y!==this._scrollLeft&&this.scrollChanged.fire({left:y},this.name)}),c.addClass(this.addWidgetPrefix("content")).addClass(this.addWidgetPrefix("scroll-container")).append(i).appendTo(this.element()),this.setAria("role","presentation",c),c}needWaitAsyncTemplates(){return this.option("templatesRenderAsynchronously")&&!1===this.option("renderAsync")}waitAsyncTemplates(){let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const a=new ye.cY;if(!i&&!this.needWaitAsyncTemplates())return a.resolve();const g=()=>ye.z7.apply(this,Array.from(this._templateDeferreds)).done(()=>{this.isDisposed()?a.reject():this._templateDeferreds.size>0?g():a.resolve()}).fail(a.reject);return g(),a.promise()}_updateContent(i,a,c){return this.waitAsyncTemplates().done(()=>{this._removeContent(c),this.setTableElement(i,c),this._wrapTableInScrollContainer(i,c)})}_findContentElement(i){}_getWidths(i){if(!i)return[];const a=[];return i.toArray().forEach(g=>{let y=g.offsetWidth;if(g.getBoundingClientRect){const D=(0,Me.N)(g);D.width>g.offsetWidth-1&&(y=D.width)}a.push(y)}),a}getColumnWidths(i){if((this.option("forceApplyBindings")||b.lQ)(),i=i??this.getTableElement()){const a=i.children("tbody:not(.dx-header)").children();for(let c=0;c<a.length;c++){const g=a.eq(c),y=g.hasClass("dx-group-row"),D=g.hasClass(ai),Y=g.hasClass("dx-error-row");if(!("none"===g.get(0).style.display||g.hasClass("dx-state-invisible")||y||D||Y)){const st=g.children("td");return this._getWidths(st)}}}return[]}getVisibleColumnIndex(i,a){return i}setColumnWidths(i){let{widths:a}=i;const g=this.getTableElement();if(null==g||!g.length||!a)return;const y=this.getColumns(),D=this._needToSetCellWidths(),Y=g.children("colgroup").children("col");Y.toArray().forEach(xe=>xe.removeAttribute("style")),y.forEach((xe,Le)=>{if(D&&xe.width&&!xe.command){const mt=Ri(xe.visibleWidth||xe.width),on=Ri(xe.minWidth||mt),wn=g.children().children(".dx-row").not(`.${ai}`);for(let Kn=0;Kn<wn.length;Kn++){const Ai=this.getVisibleColumnIndex(Le,Kn);if(Ai>=0){const no=wn.eq(Kn),Yo=no.hasClass("dx-group-row")?no.find(`td[aria-colindex='${Ai+1}']:not(.dx-group-cell)`):no.find("td").eq(Ai);if(Yo.length){const ps=Yo.get(0);Xi(ps,xe,mt),ps.style.minWidth=on}}}}const st=Vs(a[Le]);(0,w.O9)(st)&&(0,_e.zj)(Y.eq(Le),st)})}getCellElements(i){return this._getCellElementsCore(i)}_getCellElementsCore(i){return i<0?void 0:this._getRowElements().eq(i).children()}_getCellElement(i,a){const c=this.getCellElements(i),g=this._getVisibleColumnIndex(c,i,a);if(null==c||!c.length||g<0)return;const y=c.eq(g);return y.length>0?y:void 0}_getRowElement(i){const a=this;let c=(0,T.A)();const g=a.getTableElements();if(e.__(g,(y,D)=>{c=c.add(a._getRowElements((0,T.A)(D)).eq(i))}),c.length)return c}getCellElement(i,a){const c=this._getCellElement(i,a);if(c)return(0,W.cc)(c)}getRowElement(i){const a=this._getRowElement(i);let c=[];if(a&&!(0,W.cc)(a).get)for(let g=0;g<a.length;g++)c.push(a[g]);else c=a;return c}_getVisibleColumnIndex(i,a,c){if((0,w.Kg)(c)){const g=this._columnsController.columnOption(c,"index");return this._columnsController.getVisibleIndex(g)}return c}getColumnElements(){}getColumns(i,a){return this._columnsController.getVisibleColumns(i)}getCell(i,a,c){const g=a||this._getRowElements();let y;var D;if(g.length>0&&i.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&"virtual"!==this.option("scrolling.rowRenderingMode")&&(i.rowIndex=i.rowIndex<g.length?i.rowIndex:g.length-1),y=c||this.getCellElements(i.rowIndex),(null===(D=y)||void 0===D?void 0:D.length)>0))return y.eq(y.length>i.columnIndex?i.columnIndex:y.length-1)}getRowsCount(){const i=this.getTableElement();return i&&1===i.length?i[0].rows.length:0}_getRowElementsCore(i){if(i=i||this.getTableElement()){const c=(this.option().rowTemplate||this.option("dataRowTemplate"))&&i.find("> tbody.dx-row");return c&&c.length?c:i.find("> tbody > .dx-row, > .dx-row")}return(0,T.A)()}_getRowElements(i){return this._getRowElementsCore(i)}getRowIndex(i){return this._getRowElements().index(i)}getBoundingRect(){}getName(){}setScrollerSpacing(i){const a=this.element(),c=this.option("rtlEnabled");a&&a.css({paddingLeft:c?i:"",paddingRight:c?"":i})}isScrollbarVisible(i){const a=this.element(),c=this._tableElement;return!(!a||!c)&&(i?(0,k.Ot)(c)-(0,k.RG)(a)>0:(0,k.P$)(c)-(0,k.Oq)(a)>0)}isDisposed(){var i;return null===(i=this.component)||void 0===i?void 0:i._disposed}}const gi=function(I,i,a){const c=(0,T.A)("<div>").addClass(I.addWidgetPrefix("text-content"));I.setAria("role","presentation",c),mi(I,i,a.column,c);const g=I.option("showColumnLines"),y=I.getController("columns").getHeaderContentAlignment(a.column.alignment);return c[g||"right"===y?"appendTo":"prependTo"](i)};function mi(I,i,a,c){const g=I._getIndicatorElements(i,!0),y=I._getIndicatorElements(i),D=g&&g.length,Y=I._getColumnAlignment(a.alignment),xe=`.${I._getIndicatorClassName("sort")}`,Le=`.${I._getIndicatorClassName("sortIndex")}`,st=y.filter(xe),mt=y.children().filter(Le);(c=c||i.children(`.${I.addWidgetPrefix("text-content")}`)).toggleClass("dx-text-content-alignment-"+Y,D>0).toggleClass("dx-text-content-alignment-"+("left"===Y?"right":"left"),D>0&&"center"===a.alignment).toggleClass("dx-sort-indicator",!!st.length).toggleClass("dx-sort-index-indicator",!!mt.length).toggleClass("dx-header-filter-indicator",!!y.filter(`.${I._getIndicatorClassName("headerFilter")}`).length)}const Yt={defaultOptions:()=>({showColumnHeaders:!0,cellHintEnabled:!0}),views:{columnHeadersView:class ut extends fs{init(){super.init(),this._headerPanelView=this.getView("headerPanel"),this._headerFilterController=this.getController("headerFilter"),this._dataController=this.getController("data")}_createTable(){const i=super._createTable.apply(this,arguments);return P.A.on(i,"mousedown selectstart",this.createAction(a=>{const{event:c}=a;c.shiftKey&&c.preventDefault()})),i}_isLegacyKeyboardNavigation(){return this.option("useLegacyKeyboardNavigation")}_getDefaultTemplate(i){const a=this;return function(c,g){const{caption:y}=i,D=!i.command||y&&"expand"!==i.command;"empty"===i.command?a._renderEmptyMessage(c,g):D?gi(a,c,g).text(y):i.command&&c.html("&nbsp;")}}_renderEmptyMessage(i,a){const c=this._getEmptyHeaderText();if(!c)return void i.html("&nbsp;");const g=gi(this,i,a);if(c.includes("{0}")){const[D,Y]=c.split("{0}"),xe=v.A.format("dxDataGrid-emptyHeaderColumnChooserText"),Le=this._columnChooserView,st=(0,T.A)("<a>").text(xe).addClass("dx-link");P.A.on(st,"click",this.createAction(()=>Le.showColumnChooser())),g.append(m.A.createTextNode(D)).append(st).append(m.A.createTextNode(Y))}else g.text(c)}_getEmptyHeaderText(){const i=!!this._columnChooserView.hasHiddenColumns(),a=!!this._headerPanelView.hasGroupedColumns();switch(!0){case i&&a:return v.A.format("dxDataGrid-emptyHeaderWithColumnChooserAndGroupPanelText");case a:return v.A.format("dxDataGrid-emptyHeaderWithGroupPanelText");case i:return v.A.format("dxDataGrid-emptyHeaderWithColumnChooserText");default:return""}}_getHeaderTemplate(i){return i.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(i)}}_processTemplate(i,a){const c=this;let g;const{column:y}=a,D=super._processTemplate(i);return g="header"===a.rowType&&D&&y.headerCellTemplate&&!y.command?{render(Y){const xe=gi(c,Y.container,Y.model);D.render((0,C.X)({},Y,{container:xe}))}}:D,g}_handleDataChanged(i){"refresh"===i.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())}_renderCell(i,a){const c=super._renderCell(i,a);return"header"===a.row.rowType&&(c.addClass("dx-cell-focus-disabled"),this._isLegacyKeyboardNavigation()||a.column&&!a.column.type&&c.attr("tabindex",this.option("tabindex")||0)),c}_setCellAriaAttributes(i,a){super._setCellAriaAttributes(i,a),"header"===a.rowType&&(a.column.type||this.setAria("role","columnheader",i),a.column&&!a.column.command&&!a.column.isBand&&(i.attr("id",a.column.headerId),this.setAria("label",`${v.A.format("dxDataGrid-ariaColumn")} ${a.column.caption}`,i)))}_createRow(i){const a=super._createRow.apply(this,arguments);return a.toggleClass("dx-column-lines",this.option("showColumnLines")),"header"===i.rowType&&(a.addClass("dx-header-row"),this._isLegacyKeyboardNavigation()||Ie("columnHeaders",this,a,"td",this._handleActionKeyDown.bind(this))),a}_processHeaderAction(i,a){}_handleActionKeyDown(i){const{event:a}=i,c=(0,T.A)(a.target);if(this._lastActionElement=a.target,c.is(".dx-header-filter")){const g=this._headerFilterController,y=c.closest("td"),D=this.getColumnIndexByElement(y);D>=0&&g.showHeaderFilterMenu(D,!1)}else{const g=c.closest(".dx-row");this._processHeaderAction(a,g)}a.preventDefault()}_renderCore(){const i=this.element(),a={};if(this._tableElement&&!this._dataController.isLoaded()&&!this._hasRowElements)return;i.addClass(this.addWidgetPrefix("headers")).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")).empty(),this.setAria("role","presentation",i);const c=this._updateContent(this._renderTable({change:a}),a);return this.getRowCount()>1&&i.addClass("dx-header-multi-row"),super._renderCore.apply(this,arguments),c}_renderRows(){const i=this;(i._dataController.isLoaded()||i._hasRowElements)&&(super._renderRows.apply(i,arguments),i._hasRowElements=!0)}_renderRow(i,a){const c=1===this.getRowCount()?null:a.row.rowIndex;a.columns=this.getColumns(c),super._renderRow(i,a)}_createCell(i){const{column:a}=i,c=super._createCell.apply(this,arguments);return a.rowspan>1&&"header"===i.rowType&&c.attr("rowSpan",a.rowspan),c}_getRows(){const i=[],a=this.getRowCount();if(this.option("showColumnHeaders"))for(let c=0;c<a;c++)i.push({rowType:"header",rowIndex:c});return i}_getCellTemplate(i){if("header"===i.rowType)return this._getHeaderTemplate(i.column)}_columnOptionChanged(i){const{changeTypes:a}=i,{optionNames:c}=i;a.grouping||a.groupExpanding?a.grouping&&(this._isGroupingChanged=!0):(super._columnOptionChanged(i),(c.width||c.visible)&&this.resizeCompleted.fire())}_isElementVisible(i){return i&&i.visible}_alignCaptionByCenter(i){let a=this._getIndicatorContainer(i,!0);a&&a.length&&(a.filter(".dx-visibility-hidden").remove(),a=this._getIndicatorContainer(i),a.clone().addClass("dx-visibility-hidden").css("float","").insertBefore(i.children(`.${this.addWidgetPrefix("text-content")}`)))}_updateCell(i,a){"header"===a.rowType&&"center"===a.column.alignment&&this._alignCaptionByCenter(i),super._updateCell.apply(this,arguments)}_updateIndicator(i,a,c){const g=super._updateIndicator.apply(this,arguments);return"center"===a.alignment&&this._alignCaptionByCenter(i),mi(this,i,a),g}_getIndicatorContainer(i,a){const c=super._getIndicatorContainer(i);return a?c:c.filter(":not(.dx-visibility-hidden)")}_isSortableElement(i){return!0}getHeadersRowHeight(){const i=this.getTableElement(),a=i&&i.find(".dx-header-row");return a&&a.toArray().reduce((c,g)=>c+(0,k.Oq)(g),0)||0}getHeaderElement(i){const a=this.getColumnElements();return a&&a.eq(i)}getColumnElements(i,a){const c=this;let g;const y=c._columnsController,D=c.getRowCount();if(c.option("showColumnHeaders")){if(D>1&&(!(0,w.O9)(i)||(0,w.O9)(a))){const Y=[],xe=(0,w.O9)(a)?y.getChildrenByBandColumn(a,!0):y.getVisibleColumns();return(0,e.__)(xe,(Le,st)=>{const mt=(0,w.O9)(i)?i:y.getRowIndex(st.index);g=c._getCellElement(mt,y.getVisibleIndex(st.index,mt)),g&&Y.push(g.get(0))}),(0,T.A)(Y)}if(!i||i<D)return c.getCellElements(i||0)}}getColumnIndexByElement(i){const a=this.getCellIndex(i),c=i.closest(".dx-row"),{rowIndex:g}=c[0],y=this.getColumns(g)[a];return y?y.index:-1}getVisibleColumnIndex(i,a){const c=this.getColumns()[i];return c?this._columnsController.getVisibleIndex(c.index,a):-1}getColumnWidths(){const i=this.getColumnElements();return i&&i.length?this._getWidths(i):super.getColumnWidths.apply(this,arguments)}allowDragging(i){const a=i&&this._columnsController.getRowIndex(i.index),c=this.getColumns(a);return(this.option("allowColumnReordering")??this._columnsController.isColumnOptionUsed("allowReordering"))&&i.allowReordering&&c.length>1}getBoundingRect(){const a=this.getColumnElements();return a&&a.length?{top:this.getTableElement().offset().top}:null}getName(){return"headers"}getColumnCount(){const i=this.getColumnElements();return i?i.length:0}isVisible(){return this.option("showColumnHeaders")}optionChanged(i){const a=this;switch(i.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":a._invalidate(!0,!0),i.handled=!0;break;default:super.optionChanged(i)}}getHeight(){return this.getElementHeight()}getContextMenuItems(i){const a=this,{column:c}=i;if(i.row&&("header"===i.row.rowType||"detailAdaptive"===i.row.rowType)){const g=a.option("sorting");if(g&&"none"!==g.mode&&c&&c.allowSorting){const y=function(D){setTimeout(()=>{a._columnsController.changeSortOrder(c.index,D.itemData.value)})};return[{text:g.ascendingText,value:"asc",disabled:"asc"===c.sortOrder,icon:"context-menu-sort-asc",onItemClick:y},{text:g.descendingText,value:"desc",disabled:"desc"===c.sortOrder,icon:"context-menu-sort-desc",onItemClick:y},{text:g.clearText,value:"none",disabled:!c.sortOrder,icon:"context-menu-sort-none",onItemClick:y}]}}}getRowCount(){return this._columnsController&&this._columnsController.getRowCount()}setRowsOpacity(i,a,c){let g,y;const D=this.getRowCount(),Y=this._columnsController.getColumns(),xe=Y&&Y[i],Le=xe&&xe.isBand&&xe.index,st=(mt,on)=>{mt.ownerBand===Le&&(y.eq(on).css({opacity:a}),mt.isBand&&this.setRowsOpacity(mt.index,a,g+1))};if((0,w.O9)(Le))for(g=c=c||0;g<D;g++)y=this.getCellElements(g),y&&this.getColumns(g).forEach(st)}}}},Dt=(0,Oe.A)({},ft,Ot,{modules:[]});Dt.registerModule("columnHeaders",Yt);var Yn=p(3686),xi=p(6946),Ki=p(6509),Ro=p(6569);const yo=["filterValues","filterType","fixed","fixedPosition"],ko=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","added"].concat(yo),Ho={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},ds=Number.MAX_SAFE_INTEGER||9007199254740991,Bo="groupExpand",Ys=/columns\[(\d+)\]\.?/gi,Us={visible:!0,showInColumnChooser:!0},Qs={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},nr={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},gn="group",Xt="columnChooser";var hn=p(5345),Wn=p(4761);const Fi=function(I){I.filterOperations=I.defaultFilterOperations};let io=1;const bo=function(I,i,a,c){let g={};if(i){(0,w.Kg)(i)&&(i={dataField:i}),I.setName(i);let y={};if(i.command)y=(0,Ki.tm)(g,i);else{g=I.getCommonSettings(i),a&&a.name&&a.dataField&&(i=(0,C.X)({},i,{dataField:a.dataField}));const D=I._createCalculatedColumnOptions(i,c);i.type||(y={headerId:"dx-col-"+io++}),y=(0,Ki.tm)(y,Us),(0,Ki.tm)(y,g),(0,Ki.tm)(y,D),(0,Ki.tm)(y,i),(0,Ki.tm)(y,{selector:null})}return i.filterOperations===i.defaultFilterOperations&&Fi(y),y}},Mo=function(I,i,a,c){let g=[];return i&&(0,e.__)(i,(y,D)=>{const Y=(c??0)+g.length,xe=I._columnsUserState&&oa(D,I._columnsUserState[Y])&&I._columnsUserState[Y],Le=bo(I,D,xe,a);Le&&(a&&(Le.ownerBand=a),g.push(Le),Le.columns&&(g=g.concat(Mo(I,Le.columns,Le,g.length)),delete Le.columns,Le.hasColumns=!0))}),g},rs=function(I,i){const a=[];let c=i[I];for(;c;)a.unshift(c),c=i[I=c.index];return a},is=function(I,i,a){let c=[];const g=i[I];if(g)for(let y=0;y<g.length;y++){const D=g[y];(!(0,w.O9)(D.groupIndex)||D.showWhenGrouped)&&(c.push(D),a&&D.isBand&&(c=c.concat(is(D.index,i,a))))}return c},ir=function(I,i){let a=0;const c=I.getChildrenByBandColumn(i,!0);return(0,e.__)(c,(g,y)=>{y.isBand?(y.colspan=y.colspan||ir(I,y.index),a+=y.colspan||1):a+=1}),a},Js=function(I){let i=(0,w.NW)(I);return"string"!==i&&"boolean"!==i&&"number"!==i&&"date"!==i&&"object"!==i&&(i=void 0),i},Or=function(I,i){switch(I){case"date":case"datetime":return Wn.A.getDateSerializationFormat(i);case"number":if((0,w.Kg)(i))return"string";if((0,w.kf)(i))return null}},rr=function(I,i){I.deserializeValue||(Ot.isDateType(i)&&(I.deserializeValue=function(a){return Wn.A.deserializeDate(a)},I.serializeValue=function(a){return(0,w.Kg)(a)?a:Wn.A.serializeDate(a,this.serializationFormat)}),"number"===i&&(I.deserializeValue=function(a){const c=parseFloat(a);return isNaN(c)?a:c},I.serializeValue=function(a,c){return"filter"===c?a:(0,w.O9)(a)&&"string"===this.serializationFormat?a.toString():a}))},ur=function(I){return!0===I.value?this.trueText||"true":!1===I.value?this.falseText||"false":I.valueText||""},Ar=function(I){if("boolean"===I)return ur},Vr=function(I){(0,e.__)(I._columns,(i,a)=>{a.index=i}),(0,e.__)(I._columns,(i,a)=>{(0,w.Gv)(a.ownerBand)&&(a.ownerBand=a.ownerBand.index)}),(0,e.__)(I._commandColumns,(i,a)=>{a.index=-(i+1)})},Hr=function(I,i){(0,hn.Il)(I._columns,"groupIndex",i,a=>{const{grouped:c}=a;return delete a.grouped,c})},va=function(I,i,a){const c=(0,w.Gv)(i)?i.rowIndex:null,g=a===gn?I.getGroupColumns():a===Xt?I.getChooserColumns():I.getVisibleColumns(c);let y;return i=(0,w.Gv)(i)?i.columnIndex:i,y=g[i],y&&y.type===Bo&&(y=I._columns.filter(D=>y.type===D.type)[0]||y),y&&(0,w.O9)(y.index)?y.index:-1};function oa(I,i){return I&&i&&i.name===(I.name||I.dataField)&&(i.dataField===I.dataField||I.name)}const ot=function(I){const i=I._columnsUserState,a=I._ignoreColumnOptionNames||[],c=I._columns,g={};let y=[],D=!0;const Y=[];let xe,Le,st;function mt(wn,Kn){if(Kn)for(let Ai=0;Ai<ko.length;Ai++){const no=ko[Ai];a.includes(no)||("dataType"===no?wn[no]=wn[no]||Kn[no]:yo.includes(no)?no in Kn&&(wn[no]=Kn[no]):("selectedFilterOperation"===no&&Kn[no]&&(wn.defaultSelectedFilterOperation=wn[no]||null),wn[no]=Kn[no]))}}function on(wn,Kn){const Ai=Kn.name||Kn.dataField;let no=g[Ai]||0;for(let Yo=0;Yo<wn.length;Yo++)if(oa(Kn,wn[Yo])){if(!no)return g[Ai]=g[Ai]||0,g[Ai]++,Yo;no--}return-1}if(i){for(st=0;st<c.length;st++)Le=on(i,c[st]),D=D&&Le>=0,Y.push(Le);for(st=0;st<c.length;st++)xe=c[st],Le=Y[st],(I._hasUserState||D)&&mt(xe,i[Le]),Le>=0&&(0,w.O9)(i[Le].initialIndex)?y[Le]=xe:y.push(xe);let wn=!1;for(st=0;st<i.length;st++){const Kn=i[st];Kn.added&&on(c,Kn)<0&&(xe=bo(I,Kn.added),mt(xe,Kn),y.push(xe),Kn.added.columns&&(wn=!0))}wn&&(Vr(I),y=Mo(I,y)),bn(I,y)}},Bt=function(I,i){Vr(I),Hr(I,i),function(I,i){(0,e.__)(I._columns,(a,c)=>{(0,w.O9)(c.sortIndex)&&!Ko(c.sortOrder)&&delete c.sortIndex}),(0,hn.Il)(I._columns,"sortIndex",i,a=>!(0,w.O9)(a.groupIndex)&&Ko(a.sortOrder))}(I,i),ki(I),function(I,i){let a;const c=[],g=I.getBandColumnsCache(),y=[],D=I._columns.filter(Y=>!Y.command);for(let Y=0;Y<D.length;Y++)a=D[Y],rs(Y,g.columnParentByIndex).length?y.push(a):c.push(a);(0,hn.Il)(y,"visibleIndex",i),(0,hn.Il)(c,"visibleIndex",i)}(I,i)},qt=function(I){I.resetColumnsCache()};function bn(I,i){I._previousColumns=I._columns,I._columns=i,qt(I),I.updateColumnDataTypes()}const kn=function(I,i,a,c){const g=I._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:c};a=(a=a||"all").split(".")[0];const{changeTypes:y}=g;i&&!y[i]&&(y[i]=!0,y.length++);const{optionNames:D}=g;a&&!D[a]&&(D[a]=!0,D.length++),(void 0===c||c!==g.columnIndex)&&((0,w.O9)(c)&&(g.columnIndices??(g.columnIndices=[]),(0,w.O9)(g.columnIndex)&&g.columnIndices.push(g.columnIndex),g.columnIndices.push(c)),delete g.columnIndex),I._columnChanges=g,qt(I)},yi=function(I){const i=I.option("onColumnsChanging"),a=I._columnChanges;var g;I.isInitialized()&&!I._updateLockCount&&a&&(i&&(I._updateLockCount++,i((0,C.X)({component:I.component},a)),I._updateLockCount--),I._columnChanges=void 0,(g=a.optionNames)&&["dataField","lookup","dataType","columns"].some(y=>g[y])?(I._reinitAfterLookupChanges=a?.optionNames.lookup,I.reinit(),I._reinitAfterLookupChanges=void 0):I.columnsChanged.fire(a))},Po=function(I,i,a,c,g){const y=(0,nn.Hz)(a),D=i.index;let Y,xe,Le;if(3===arguments.length)return y(i,{functionsAsIs:!0});const st=y(i,{functionsAsIs:!0});if(!(0,b.RL)(st,c,{maxDepth:5})){"groupIndex"===a||"calculateGroupValue"===a?(xe="grouping",function(I,i,a,c){if(a>=0)c>=0||(i.lastSortOrder=i.sortOrder);else{const y=I.option("sorting.mode");let D=i.lastSortOrder;"single"===y&&I._columns.some(xe=>xe!==i&&(0,w.O9)(xe.sortIndex))&&(D=void 0),i.sortOrder=D}}(I,i,c,st)):xe="sortIndex"===a||"sortOrder"===a||"calculateSortValue"===a?"sorting":"columns";const mt=(0,nn.vL)(a);mt(i,c,{functionsAsIs:!0});const on=function(I,i){let c,a=[];const g=I.getBandColumnsCache(),y=function(D){return D.ownerBand===i.ownerBand};if(g.isPlain){const D=I._columns.indexOf(i);D>=0&&(a=[`columns[${D}]`])}else for(c=I._columns.filter(y);c.length&&-1!==c.indexOf(i);)a.unshift(`columns[${c.indexOf(i)}]`),c=(i=g.columnParentByIndex[i.index])?I._columns.filter(y):[];return a.join(".")}(I,i);nr[a]&&(Bt(I,i),c=y(i)),("name"===a||"allowEditing"===a)&&I._checkColumns(),!(0,w.O9)(st)&&!(0,w.O9)(c)&&0!==a.indexOf("buffer")&&(g=!0),g?qt(I):(!ko.includes(a)&&"visibleWidth"!==a&&(Y=I.option("columns"),Le=I.getColumnByPath(on,Y),(0,w.Kg)(Le)&&(Le=Y[D]={dataField:Le}),Le&&oa(Le,i)&&mt(Le,c,{functionsAsIs:!0})),kn(I,xe,a,D)),on&&function(I,i){const{value:a}=i,{optionName:c}=i,{prevValue:g}=i,{fullOptionName:y}=i,D=`${y}.${c}`;!Ho[c]&&I._skipProcessingColumnsChange!==D&&(I._skipProcessingColumnsChange=D,I.component._notifyOptionChanged(D,a,g),I._skipProcessingColumnsChange=!1)}(I,{fullOptionName:on,optionName:a,value:c,prevValue:st})}};function Ko(I){return"asc"===I||"desc"===I}const Wt=function(I,i){if(!this.dataField)return;const a=this.dataField.split("."),c=a.length-1;this.serializeValue&&(i=this.serializeValue(i));for(let g=0;g<c;g++){const y=a[g];I=I[y]=I[y]||{}}I[a[c]]=i},xt=function(I,i,a){const c=[];return I[i=i||0]&&(0,e.__)(I[i],(g,y)=>{(y.ownerBand===a||y.type===Bo)&&(y.isBand&&y.colspan?c.push.apply(c,xt(I,i+1,y.index)):(!y.command||i<1)&&c.push(y))}),c},He=(I,i)=>!!I._columns.filter(c=>c.type===i.type).length,wt=function(I,i){const a=I.option("rtlEnabled");return i.command&&!He(I,i)||!i.fixedPosition?a?"right":"left":i.fixedPosition},Ut=function(I,i,a,c){let g;const y=this.getRowCount();let D=I[c]&&I[c].rowspan,Y=i.filter(xe=>xe.type===a);return I.forEach((xe,Le)=>{xe.type===a&&(g=Le,D=I[Le+1]?I[Le+1].rowspan:y)}),D>1&&(Y=(0,e.Tj)(Y,xe=>(0,C.X)({},xe,{rowspan:D}))),Y.unshift.apply(Y,(0,w.O9)(g)?[g,1]:[c,0]),I.splice.apply(I,Y),D||1},Ln=function(I,i){let a=I?I.toString():"0";for(;a.length<i;)a=`0${a}`;return a},$n=(I,i,a,c)=>{let g,y,D=i.slice().map(mt=>(0,C.X)({},mt));const Y=I._isColumnFixing();let xe=a.slice().map(mt=>(0,C.X)({fixed:Y},mt));const Le=mt=>a.reduce((on,wn,Kn)=>wn.type===(c&&mt.type===Bo?"expand":mt.type)||wn.command===mt.command?Kn:on,-1),st=mt=>mt.command!==a[y].command;for(let mt=0;mt<i.length;mt++)g=i[mt],y=g&&(g.type||g.command)?Le(g):-1,y>=0&&(c?(D[mt]=(0,C.X)({fixed:Y},a[y],g),g.type!==Bo&&(xe=xe.filter(st))):D[mt]=(0,C.X)({},g,a[y],g.type===Bo&&{visibleIndex:g.visibleIndex,index:g.index,headerId:g.headerId,allowFixing:0===g.groupIndex,allowReordering:0===g.groupIndex,groupIndex:g.groupIndex}));return i.length&&c&&xe.length&&(D=D.concat(xe)),D},bi=(I,i)=>(0,w.O9)(i.fixed)||!i.type?i.fixed:I._isColumnFixing(),ki=I=>{I._bandColumnsCache=void 0},Si=(I,i)=>{const a=(0,w.Kg)(i)&&i.substr(0,i.indexOf(":"));let c;if(void 0!==i)return a&&(i=i.substr(a.length+1)),a?c=I.filter(g=>`${g[a]}`===i)[0]:["index","name","dataField","caption"].some(g=>(c=I.filter(y=>y[g]===i)[0],!!c)),c},Do={defaultOptions:()=>({commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:v.A.format("dxDataGrid-trueText"),falseText:v.A.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}),controllers:{columns:class oo extends ft.Controller{init(i){this._dataController=this.getController("data"),this._focusController=this.getController("focus"),this._stateStoringController=this.getController("stateStoring");const a=this.option("columns");this._commandColumns=this._commandColumns||[],this._columns=this._columns||[],this._isColumnsFromOptions=!!a,this._isColumnsFromOptions?(bn(this,a?Mo(this,a):[]),ot(this)):bn(this,this._columnsUserState?Mo(this,this._columnsUserState):this._columns),function(I){const i=I._getExpandColumnOptions();I.addCommandColumn(i)}(this),this._dataSourceApplied?this.applyDataSource(this._dataSource,!0,i):Bt(this),this._checkColumns()}_getExpandColumnOptions(){return{type:"expand",command:"expand",width:"auto",cssClass:"dx-command-expand",allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}}_getFirstItems(i){let a,c=[];const g=function(y,D){if(!y||!D)return y;for(let Y=0;Y<y.length;Y++){const xe=g(y[Y].items||y[Y].collapsedItems,D-1);if(xe&&xe.length)return xe}};return i&&i.items().length>0&&(a=Ot.normalizeSortingInfo(i.group()).length,c=g(i.items(),a)||[]),c}_endUpdateCore(){!this._skipProcessingColumnsChange&&yi(this)}callbackNames(){return["columnsChanged"]}getColumnByPath(i,a){let g;const y=[];return i.replace(Ys,(D,Y)=>(y.push(parseInt(Y)),"")),y.length&&(g=a?y.reduce((D,Y)=>D&&D.columns&&D.columns[Y],{columns:a}):function(I,i){let a,c;const y=function(D){return D.ownerBand===(a?a.index:void 0)};if(I.getBandColumnsCache().isPlain)a=I._columns[i[0]];else{c=I._columns.filter(y);for(let D=0;D<i.length;D++)a=c[i[D]],a&&(c=I._columns.filter(y))}return a}(this,y)),g}optionChanged(i){let a;switch(i.name){case"adaptColumnWidthByRatio":i.handled=!0;break;case"dataSource":i.value!==i.previousValue&&!this.option("columns")&&(!Array.isArray(i.value)||!Array.isArray(i.previousValue))&&(this._columns=[]);break;case"columns":a=this._skipProcessingColumnsChange,i.handled=!0,this._skipProcessingColumnsChange||(i.name===i.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):(this._columnOptionChanged(i),a=!0)),a&&this._updateRequireResize(i);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":i.handled=!0,this.reinit("columnWidth"===i.fullName&&["width"]);break;case"rtlEnabled":this.reinit();break;default:super.optionChanged(i)}}_columnOptionChanged(i){let a={};const c=this.getColumnByPath(i.fullName),g=i.fullName.replace(Ys,"");c&&(g?a[g]=i.value:a=i.value,this._skipProcessingColumnsChange=i.fullName,this.columnOption(c.index,a),this._skipProcessingColumnsChange=!1)}_updateRequireResize(i){const{component:a}=this;"width"===i.fullName.replace(Ys,"")&&a._updateLockCount&&(a._requireResize=!0)}publicMethods(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns","getVisibleColumnIndex"]}applyDataSource(i,a,c){const g=this,y=i&&i.isLoaded();if(g._dataSource=i,!g._dataSourceApplied||0===g._dataSourceColumnsCount||a||g.option("regenerateColumnsByVisibleItems")){if(y){if(!g._isColumnsFromOptions){const D=function(I,i){const a=I._getFirstItems(i);let c;const g={},y=[];for(let D=0;D<a.length;D++)if(a[D])for(c in a[D])(!(0,w.Tn)(a[D][c])||Mn.A.isWrapped(a[D][c]))&&(g[c]=!0);for(c in g)if(0!==c.indexOf("__")){const D=bo(I,c);y.push(D)}return y}(g,i);D.length&&(bn(g,D),g._dataSourceColumnsCount=g._columns.length,ot(g))}return g.updateColumns(i,a,c)}g._dataSourceApplied=!1,Bt(g)}else if(y&&!g.isAllDataTypesDefined(!0)&&g.updateColumnDataTypes(i))return kn(g,"columns"),yi(g),(new ye.cY).reject().promise()}reset(){this._dataSource=null,this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()}resetColumnsCache(){this._visibleColumns=void 0,this._fixedColumns=void 0,this._rowCount=void 0,ki(this)}reinit(i){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=i||null,this.init(),i&&(this._ignoreColumnOptionNames=null)}isInitialized(){return!!this._columns.length||!!this.option("columns")}isDataSourceApplied(){return this._dataSourceApplied}getCommonSettings(i){const a=(!i||!i.type)&&this.option("commonColumnSettings")||{},c=this.option("grouping")??{},g=this.option("groupPanel")??{};return(0,C.X)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:c.autoExpandAll,allowCollapsing:c.allowCollapsing,allowGrouping:g.allowColumnDragging&&g.visible||c.contextMenuEnabled},a)}isColumnOptionUsed(i){for(let a=0;a<this._columns.length;a++)if(this._columns[a][i])return!0}isAllDataTypesDefined(i){const a=this._columns;if(!a.length)return!1;for(let c=0;c<a.length;c++)if((a[c].dataField||a[c].calculateCellValue!==a[c].defaultCalculateCellValue)&&(!a[c].dataType||i&&a[c].deserializeValue&&void 0===a[c].serializationFormat))return!1;return!0}getColumns(){return this._columns}isBandColumnsUsed(){return this.getColumns().some(i=>i.isBand)}getGroupColumns(){const i=[];return(0,e.__)(this._columns,function(){const a=this;(0,w.O9)(a.groupIndex)&&(i[a.groupIndex]=a)}),i}_shouldReturnVisibleColumns(){return!0}_compileVisibleColumns(i){return this._visibleColumns=this._visibleColumns||this._compileVisibleColumnsCore(),i=(0,w.O9)(i)?i:this._visibleColumns.length-1,this._visibleColumns[i]||[]}getVisibleColumns(i,a){return this._shouldReturnVisibleColumns()?this._compileVisibleColumns.apply(this,arguments):[]}getFixedColumns(i){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),i=(0,w.O9)(i)?i:this._fixedColumns.length-1,this._fixedColumns[i]||[]}getFilteringColumns(){return this.getColumns().filter(i=>(i.dataField||i.name)&&(i.allowFiltering||i.allowHeaderFiltering)).map(i=>{const a=(0,C.X)(!0,{},i);return(0,w.O9)(a.dataField)||(a.dataField=a.name),a.filterOperations=i.filterOperations!==i.defaultFilterOperations?a.filterOperations:null,a})}getColumnIndexOffset(){return 0}_getFixedColumnsCore(){const i=this,a=[],c=i.getRowCount(),y={command:"transparent"};let Y,xe,Le,D=0;if(i._isColumnFixing())for(let st=0;st<=c;st++){Y=0,Le=null,xe=null;const mt=i.getVisibleColumns(st,!0);for(let on=0;on<mt.length;on++){const wn=mt[on-1],Kn=mt[on];Kn.fixed?wn&&wn.fixed&&wt(i,wn)!==wt(i,Kn)?(0,w.O9)(xe)||(xe=on):Le=Kn.fixedPosition:(0===st&&(Kn.isBand&&Kn.colspan?D+=Kn.colspan:D++),Y++,(0,w.O9)(xe)||(xe=on))}if(0===st&&(0===Y||Y>=mt.length))return[];(0,w.O9)(xe)||(xe="right"===Le?0:mt.length),a[st]=mt.slice(0),y.colspan||(y.colspan=D),a[st].splice(xe,Y,y)}return a.map(st=>st.map(mt=>{const on=(0,Oe.A)({},mt);return on.headerId&&(on.headerId+="-fixed"),on}))}_isColumnFixing(){let i=this.option("columnFixing.enabled");return!i&&(0,e.__)(this._columns,(a,c)=>{if(c.fixed)return i=!0,!1}),i}_getExpandColumnsCore(){return this.getGroupColumns()}getExpandColumns(){let a,i=this._getExpandColumnsCore();const c=i.filter(Y=>0===Y.groupIndex)[0],g=c&&c.fixed,y=this._isColumnFixing(),D=this.option("rtlEnabled");return i.length&&(a=this.columnOption("command:expand")),i=(0,e.Tj)(i,Y=>(0,C.X)({},Y,{visibleWidth:null,minWidth:null,cellTemplate:(0,w.O9)(Y.groupIndex)?null:Y.cellTemplate,headerCellTemplate:null,fixed:!(!(0,w.O9)(Y.groupIndex)||!g)||y,fixedPosition:D?"right":"left"},a,{index:Y.index,type:Y.type||Bo})),i}getBandColumnsCache(){if(!this._bandColumnsCache){const i=this._columns,a={},c={};let g=!0;i.forEach(y=>{const{ownerBand:D}=y;let Y=(0,w.Gv)(D)?D.index:D;const xe=i[Y];y.hasColumns&&(g=!1),y.colspan&&(y.colspan=void 0),y.rowspan&&(y.rowspan=void 0),xe?c[y.index]=xe:Y=-1,a[Y]=a[Y]||[],a[Y].push(y)}),this._bandColumnsCache={isPlain:g,columnChildrenByIndex:a,columnParentByIndex:c}}return this._bandColumnsCache}_isColumnVisible(i){return i.visible&&this.isParentColumnVisible(i.index)}_isColumnInGroupPanel(i){return(0,w.O9)(i.groupIndex)&&!i.showWhenGrouped}hasVisibleDataColumns(){return this._columns.some(a=>{const c=this._isColumnVisible(a),g=this._isColumnInGroupPanel(a);return c&&!g&&!a.command})}_compileVisibleColumnsCore(){const i=this.getBandColumnsCache(),a=$n(this,this._columns,this._commandColumns,!0);!function(I,i,a){let c;for(let g=0;g<i.length;g++){const y=i[g];(y.visible||y.command)&&(y.isBand&&(y.colspan=y.colspan||ir(I,y.index)),(!y.isBand||!y.colspan)&&(c=I.getRowCount(),!y.command&&(!(0,w.O9)(y.groupIndex)||y.showWhenGrouped)&&(c-=rs(y.index,a.columnParentByIndex).length),c>1&&(y.rowspan=c)))}}(this,a,i);const c=this._getIndexedColumns(a),g=this._getVisibleColumnsFromIndexed(c);return!this.hasVisibleDataColumns()&&this._columns.length&&g[g.length-1].push({command:"empty"}),g}_getIndexedColumns(i){const a=this.option("rtlEnabled"),c=this.getRowCount(),g=function(I){let i;for(i=0;I>1;i++)I/=10;return i}(i.length),y=this.getBandColumnsCache(),D=[],Y=[];for(let xe=0;xe<c;xe+=1)Y[xe]=[{}],D[xe]=[{},{},{}];return i.forEach(xe=>{let st,{visibleIndex:Le}=xe;const mt=rs(xe.index,y.columnParentByIndex),on=this._isColumnVisible(xe),wn=this._isColumnInGroupPanel(xe);if(on&&!wn){const no=mt.length;var Kn,Ai;if(Le<0)Le=-Le,st=Y[no];else if(xe.fixed=(null===(Kn=mt[0])||void 0===Kn?void 0:Kn.fixed)??xe.fixed,xe.fixedPosition=(null===(Ai=mt[0])||void 0===Ai?void 0:Ai.fixedPosition)??xe.fixedPosition,xe.fixed){const Yo=!!xe.command&&!He(this,xe);let ps="right"===xe.fixedPosition;a&&!Yo&&(ps=!ps),st=ps?D[no][2]:D[no][0]}else st=D[no][1];if(mt.length){Le=Ln(Le,g);for(let Yo=mt.length-1;Yo>=0;Yo-=1)Le=Ln(mt[Yo].visibleIndex,g)+Le}st[Le]=st[Le]||[],st[Le].push(xe)}}),{positiveIndexedColumns:D,negativeIndexedColumns:Y}}_getVisibleColumnsFromIndexed(i){let{positiveIndexedColumns:a,negativeIndexedColumns:c}=i;const g=[],y=this.getRowCount(),D=$n(this,this.getExpandColumns(),this._columns);let Y=0,xe=0;for(let Le=0;Le<y;Le+=1){g.push([]),(0,Ki.ap)(c[Le],(on,wn)=>{g[Le].unshift.apply(g[Le],wn)});const st=g[Le].length;a[Le].forEach(on=>{(0,Ki.ap)(on,(wn,Kn)=>{g[Le].push.apply(g[Le],Kn)})}),xe<=Le&&(xe+=Ut.call(this,g[Le],D,"detailExpand",st)),Y<=Le&&(Y+=Ut.call(this,g[Le],D,Bo,st))}return g.push(xt(g)),g}getInvisibleColumns(i,a){const c=this;let y,g=[];return(0,e.__)(i=i||c._columns,(D,Y)=>{if(Y.ownerBand===a){if(Y.isBand)return y=Y.visible?c.getInvisibleColumns(c.getChildrenByBandColumn(Y.index),Y.index):c.getChildrenByBandColumn(Y.index),void(y.length&&(g.push(Y),g=g.concat(y)));Y.visible||g.push(Y)}}),g}getChooserColumns(i){return((I,i)=>{if("asc"!==i&&"desc"!==i)return I;const a="asc"===i?1:-1;return I.sort((c,g)=>a*(c.caption||"").localeCompare(g.caption||"")),I})((i?this.getColumns():this.getInvisibleColumns()).filter(y=>y.showInColumnChooser),this.option("columnChooser.sortOrder"))}allowMoveColumn(i,a,c,g){const y=va(this,i,c),D=this._columns[y];return!(!D||!(D.allowReordering||D.allowGrouping||D.allowHiding))&&(c===g?c!==Xt&&(i=(0,w.Gv)(i)?i.columnIndex:i)!==(a=(0,w.Gv)(a)?a.columnIndex:a)&&i+1!==a:c===gn&&g!==Xt||g===gn?D&&D.allowGrouping:c!==Xt&&g!==Xt||D&&D.allowHiding)}moveColumn(i,a,c,g){const y=this,D={};let Y;const xe=va(y,i,c),Le=va(y,a,g);let st;if(xe>=0){const mt=y._columns[xe];if(a=(0,w.Gv)(a)?a.columnIndex:a,st=Le>=0?y._columns[Le].groupIndex:-1,(0,w.O9)(mt.groupIndex)&&c===gn&&(st>mt.groupIndex&&st--,g!==gn?D.groupIndex=void 0:(Y=mt.groupIndex,delete mt.groupIndex,Hr(y))),g===gn)D.groupIndex=function(I,i,a){const c=I.getGroupColumns();let g;if(a>=0)for(g=0;g<c.length;g++)c[g].groupIndex>=a&&c[g].groupIndex++;else for(a=0,g=0;g<c.length;g++)a=Math.max(a,c[g].groupIndex+1);return a}(y,0,st),mt.groupIndex=Y;else if(a>=0){const wn=y._columns[Le];D.visibleIndex=!wn||mt.ownerBand!==wn.ownerBand||bi(y,mt)^bi(y,wn)?ds:wn.visibleIndex}const on=g!==Xt;mt.visible!==on&&(D.visible=on),y.columnOption(mt.index,D)}}changeSortOrder(i,a){const c=this,g={},y=c.option("sorting"),D=y&&y.mode,Le=c._columns[i];("single"===D||"multiple"===D)&&Le&&Le.allowSorting&&(("single"===D||!a)&&!(0,w.O9)(Le.groupIndex)&&(0,e.__)(c._columns,function(st){st!==i&&this.sortOrder&&((0,w.O9)(this.groupIndex)||delete this.sortOrder,delete this.sortIndex)}),Ko(a)?Le.sortOrder!==a&&(g.sortOrder=a):"none"===a?Le.sortOrder&&(g.sortIndex=void 0,g.sortOrder=void 0):function(st){if("ctrl"===a){if(!("sortOrder"in st)||!("sortIndex"in st))return!1;g.sortOrder=void 0,g.sortIndex=void 0}else g.sortOrder=(0,w.O9)(st.groupIndex)||(0,w.O9)(st.sortIndex)?"desc"===st.sortOrder?"asc":"desc":"asc"}(Le)),c.columnOption(Le.index,g)}getSortDataSourceParameters(i){const a=[],c=[];return(0,e.__)(this._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&(0,w.O9)(this.sortIndex)&&!(0,w.O9)(this.groupIndex)&&(a[this.sortIndex]=this)}),(0,e.__)(a,function(){if(Ko(this&&this.sortOrder)){const y={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||i&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(y.compare=this.sortingMethod.bind(this)),c.push(y)}}),c.length>0?c:null}getGroupDataSourceParameters(i){const a=[];return(0,e.__)(this.getGroupColumns(),function(){const c=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||i&&this.selector||this.dataField||this.calculateCellValue;if(c){const g={selector:c,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(g.compare=this.sortingMethod.bind(this)),a.push(g)}}),a.length>0?a:null}refresh(i){const a=[];return(0,e.__)(this._columns,function(){const{lookup:c}=this;if(c&&!this.calculateDisplayValue){if(i&&c.valueMap)return;c.update&&a.push(c.update())}}),ye.z7.apply(T.A,a).done(qt.bind(null,this))}_updateColumnOptions(i,a){var c,g;const y=this._reinitAfterLookupChanges&&(null===(c=this._previousColumns)||void 0===c?void 0:c[a]);i.selector=i.selector??(xe=>i.calculateCellValue(xe)),i.selector.columnIndex=a,i.selector.originalCallback=y?(null===(g=this._previousColumns[a].selector)||void 0===g?void 0:g.originalCallback)??i.selector:i.selector,(0,e.__)(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],(xe,Le)=>{const st=i[Le];if((0,w.Tn)(st))if(st.originalCallback)i[Le].context.column=i;else{const mt={column:i};i[Le]=function(on){return st.call(mt.column,on)},i[Le].originalCallback=st,i[Le].columnIndex=a,i[Le].context=mt}}),(0,w.Kg)(i.calculateDisplayValue)&&(i.displayField=i.calculateDisplayValue,i.calculateDisplayValue=(0,nn.Hz)(i.displayField)),i.calculateDisplayValue&&(i.displayValueMap=i.displayValueMap||{}),rr(i,i.dataType);const{lookup:D}=i;D&&rr(D,D.dataType);const Y=D?D.dataType:i.dataType;Y&&(i.alignment=i.alignment||function(I,i){switch(I){case"number":return"right";case"boolean":return"center";default:return(0,Me.n)(i)}}(Y,this.option("rtlEnabled")),i.format=i.format||Ot.getFormatByDataType(Y),i.customizeText=i.customizeText||Ar(Y),i.defaultFilterOperations=i.defaultFilterOperations||!D&&Qs[Y]||[],(0,w.O9)(i.filterOperations)||Fi(i),i.defaultFilterOperation=i.filterOperations&&i.filterOperations[0]||"=",i.showEditorAlways=(0,w.O9)(i.showEditorAlways)?i.showEditorAlways:"boolean"===Y&&!i.cellTemplate&&!i.lookup)}updateColumnDataTypes(i){const a=this,c=a.option("dateSerializationFormat"),g=a._getFirstItems(i);let y=!1;return(0,e.__)(a._columns,(D,Y)=>{let xe,Le,st,mt,on;const{lookup:wn}=Y;if(Ot.isDateType(Y.dataType)&&void 0===Y.serializationFormat&&(Y.serializationFormat=c),wn&&Ot.isDateType(wn.dataType)&&void 0===Y.serializationFormat&&(wn.serializationFormat=c),Y.calculateCellValue&&g.length){if(!Y.dataType||wn&&!wn.dataType){for(xe=0;xe<g.length;xe++)Le=Y.calculateCellValue(g[xe]),Y.dataType||(on=Js(Le),st=st||on,st&&on&&st!==on&&(st="string")),wn&&!wn.dataType&&(on=Js(Ot.getDisplayValue(Y,Le,g[xe])),mt=mt||on,mt&&on&&mt!==on&&(mt="string"));(st||mt)&&(st&&(Y.dataType=st),wn&&mt&&(wn.dataType=mt),y=!0)}if(void 0===Y.serializationFormat||wn&&void 0===wn.serializationFormat)for(xe=0;xe<g.length;xe++)Le=Y.calculateCellValue(g[xe],!0),void 0===Y.serializationFormat&&(Y.serializationFormat=Or(Y.dataType,Le)),wn&&void 0===wn.serializationFormat&&(wn.serializationFormat=Or(wn.dataType,wn.calculateCellValue(Le,!0)))}a._updateColumnOptions(Y,D)}),y}_customizeColumns(i){const a=this,c=a.option("customizeColumns");c&&(i.some(y=>(0,w.Gv)(y.ownerBand))&&Bt(a),c(i),bn(a,Mo(a,i)))}updateColumns(i,a,c){if(a||this.updateSortingGrouping(i),!i||i.isLoaded()){const g=i?i.sort()||[]:this.getSortDataSourceParameters(),y=i?i.group()||[]:this.getGroupDataSourceParameters(),D=i?.lastLoadOptions().filter;c||this._customizeColumns(this._columns),Bt(this);const Y=this._columns;return(0,ye.z7)(this.refresh(!0)).always(()=>{this._columns===Y&&(this._updateChanges(i,{sorting:g,grouping:y,filtering:D}),yi(this))})}}_updateChanges(i,a){i&&(this.updateColumnDataTypes(i),this._dataSourceApplied=!0),Ot.equalSortParameters(a.sorting,this.getSortDataSourceParameters())||kn(this,"sorting"),Ot.equalSortParameters(a.grouping,this.getGroupDataSourceParameters())||kn(this,"grouping"),this._dataController&&!Ot.equalFilterParameters(a.filtering,this._dataController.getCombinedFilter())&&kn(this,"filtering"),kn(this,"columns")}updateSortingGrouping(i,a){const c=this;let g,y;const D=function(Y,xe,Le){(0,e.__)(Y,(st,mt)=>{if(delete mt[Le],xe)for(let on=0;on<xe.length;on++){const{selector:wn}=xe[on],{isExpanded:Kn}=xe[on];if(wn===mt.dataField||wn===mt.name||wn===mt.displayField||wn===mt.selector||wn===mt.calculateCellValue||wn===mt.calculateGroupValue||wn===mt.calculateDisplayValue){mt.sortOrder=a?"sortOrder"in mt?mt.sortOrder:xe[on].desc?"desc":"asc":mt.sortOrder||(xe[on].desc?"desc":"asc"),void 0!==Kn&&(mt.autoExpandGroup=Kn),mt[Le]=on;break}}})};if(i){g=Ot.normalizeSortingInfo(i.sort());const Y=Ot.normalizeSortingInfo(i.group()),xe=c.getGroupDataSourceParameters(),Le=c.getSortDataSourceParameters(),st=!Ot.equalSortParameters(Y,xe,!0),mt=!st&&!Ot.equalSortParameters(Y,xe);c._columns.length||((0,e.__)(Y,(on,wn)=>{c._columns.push(wn.selector)}),(0,e.__)(g,(on,wn)=>{(0,w.Tn)(wn.selector)||c._columns.push(wn.selector)}),bn(c,Mo(c,c._columns))),(a||!xe&&!c._hasUserState)&&(st||mt)&&(D(c._columns,Y,"groupIndex"),a&&(st&&kn(c,"grouping"),mt&&kn(c,"groupExpanding"),y=!0)),(a||!Le&&!c._hasUserState)&&!Ot.equalSortParameters(g,Le)&&(D(c._columns,g,"sortIndex"),a&&(kn(c,"sorting"),y=!0)),y&&yi(c)}}updateFilter(i,a,c,g){const y=this;if(!Array.isArray(i))return i;if(c=void 0!==(i=(0,C.X)([],i)).columnIndex?i.columnIndex:c,g=void 0!==i.filterValue?i.filterValue:g,(0,w.Kg)(i[0])&&"!"!==i[0]){const D=y.columnOption(i[0]);a?(0,Yn.A)().forceIsoDateParsing&&D&&D.serializeValue&&i.length>1&&(i[i.length-1]=D.serializeValue(i[i.length-1],"filter")):D&&D.selector&&(i[0]=D.selector,i[0].columnIndex=D.index)}else(0,w.Tn)(i[0])&&(i[0].columnIndex=c,i[0].filterValue=g,i[0].selectedFilterOperation=i.selectedFilterOperation);for(let D=0;D<i.length;D++)i[D]=y.updateFilter(i[D],a,c,g);return i}columnCount(){return this._columns?this._columns.length:0}columnOption(i,a,c,g){const y=this,D=y._columns.concat(y._commandColumns),Y=Si(D,i);if(Y){if(1===arguments.length)return(0,C.X)({},Y);if((0,w.Kg)(a)){if(2===arguments.length)return Po(y,Y,a);Po(y,Y,a,c,g)}else(0,w.Gv)(a)&&(0,e.__)(a,(xe,Le)=>{Po(y,Y,xe,Le,g)});yi(y)}}clearSorting(){const i=this,a=this.columnCount();i.beginUpdate();for(let c=0;c<a;c++)i.columnOption(c,"sortOrder",void 0),delete Si(i._columns,c).sortOrder;i.endUpdate()}clearGrouping(){const i=this,a=this.columnCount();i.beginUpdate();for(let c=0;c<a;c++)i.columnOption(c,"groupIndex",void 0);i.endUpdate()}getVisibleIndex(i,a){const c=this.getVisibleColumns(a);for(let g=c.length-1;g>=0;g--)if(c[g].index===i)return g;return-1}getVisibleIndexByColumn(i,a){const c=this.getVisibleColumns(a),g=c.filter(y=>y.index===i.index&&y.command===i.command)[0];return c.indexOf(g)}getVisibleColumnIndex(i,a){const c=this.columnOption(i,"index");return this.getVisibleIndex(c,a)}addColumn(i){const a=this;let c=bo(a,i);const g=a._columns.length;a._columns.push(c),c.isBand&&(a._columns=Mo(a,a._columns),c=a._columns[g]),c.added=i,Bt(a,c),a.updateColumns(a._dataSource),a._checkColumns()}deleteColumn(i){const a=this,c=a.columnOption(i);if(c&&c.index>=0){if((I=a._columns).forEach(i=>{(0,w.O9)(i.ownerBand)&&(i.ownerBand=I[i.ownerBand])}),a._columns.splice(c.index,1),c.isBand){const g=a.getChildrenByBandColumn(c.index).map(y=>y.index);a._columns=a._columns.filter(y=>g.indexOf(y.index)<0)}Bt(a),a.updateColumns(a._dataSource)}var I}addCommandColumn(i){let a=this._commandColumns.filter(c=>c.command===i.command)[0];a||(a=i,this._commandColumns.push(a))}getUserState(){const i=this._columns,a=[];let c;function g(y,D){void 0!==i[c][D]&&(a[c][D]=i[c][D])}for(c=0;c<i.length;c++)a[c]={},(0,e.__)(ko,g);return a}setName(i){i.name=i.name||i.dataField||i.type}setUserState(i){const a=this,c=a._dataSource;let g=a.option("stateStoring.ignoreColumnOptionNames");if(i?.forEach(this.setName),!g){g=[];const y=a.getCommonSettings();a.option("columnChooser.enabled")||g.push("visible"),"none"===a.option("sorting.mode")&&g.push("sortIndex","sortOrder"),y.allowGrouping||g.push("groupIndex"),y.allowFixing||g.push("fixed","fixedPosition"),y.allowResizing||g.push("width","visibleWidth");const D=!a.option("filterPanel.visible");!a.option("filterRow.visible")&&D&&g.push("filterValue","selectedFilterOperation"),!a.option("headerFilter.visible")&&D&&g.push("filterValues","filterType")}a._columnsUserState=i,a._ignoreColumnOptionNames=g,a._hasUserState=!!i,kn(a,"filtering"),a.init(!0),c&&(c.sort(a.getSortDataSourceParameters()),c.group(a.getGroupDataSourceParameters()))}_checkColumns(){const i={};let a=!1;const c=[];this._columns.forEach(g=>{var y;const{name:D}=g,Y=null===(y=g.columns)||void 0===y?void 0:y.length,xe=g.allowEditing&&(g.dataField||g.setCellValue)&&!Y;D?(i[D]&&c.push(`"${D}"`),i[D]=!0):xe&&(a=!0)}),c.length&&We.A.log("E1059",c.join(", ")),a&&We.A.log("E1060")}_createCalculatedColumnOptions(i,a){let c={},{dataField:g}=i;if((Array.isArray(i.columns)&&i.columns.length||i.isBand)&&(c.isBand=!0,g=null),g){if((0,w.Kg)(g)){const y=(0,nn.Hz)(g);c={caption:(0,xi.Bc)(g),calculateCellValue(D,Y){const xe=y(D);return this.deserializeValue&&!Y?this.deserializeValue(xe):xe},setCellValue:Wt,parseValue(D){const Y=this;let xe,Le;return"number"===Y.dataType?(0,w.Kg)(D)&&Y.format?xe=function(I,i){const a=Co.A.parse(I);if((0,w.kf)(a)){const c=Co.A.format(a,i),g=Co.A.format(a,"decimal");if(c===I||g===I)return a}}(D.trim(),Y.format):(0,w.O9)(D)&&(0,w.kf)(D)&&(xe=Number(D)):"boolean"===Y.dataType?D===Y.trueText?xe=!0:D===Y.falseText&&(xe=!1):Ot.isDateType(Y.dataType)?(Le=ti.A.parse(D,Y.format),Le&&(xe=Le)):xe=D,xe}}}c.allowFiltering=!0}else c.allowFiltering=!!i.calculateFilterExpression;return c.calculateFilterExpression=function(){return pi.defaultCalculateFilterExpression.apply(this,arguments)},c.defaultFilterOperation="=",c.createFilterExpression=function(y,D){let Y;return this.calculateFilterExpression&&(Y=this.calculateFilterExpression.apply(this,arguments)),(0,w.Tn)(Y)&&(Y=[Y,"=",!0]),Y&&(Y.columnIndex=this.index,Y.filterValue=y,Y.selectedFilterOperation=D),Y},(!g||!(0,w.Kg)(g))&&(0,C.X)(!0,c,{allowSorting:!1,allowGrouping:!1,calculateCellValue:()=>null}),a&&(c.allowFixing=!1),i.dataType&&(c.userDataType=i.dataType),i.selectedFilterOperation&&!("defaultSelectedFilterOperation"in c)&&(c.defaultSelectedFilterOperation=i.selectedFilterOperation),i.lookup&&(c.lookup={calculateCellValue(y,D){return this.valueExpr&&(y=this.valueMap&&this.valueMap[y]),this.deserializeValue&&!D?this.deserializeValue(y):y},updateValueMap(){if(this.valueMap={},this.items){const y=(0,nn.Hz)(this.valueExpr),D=(0,nn.Hz)(this.displayExpr);for(let Y=0;Y<this.items.length;Y++){const xe=this.items[Y],Le=D(xe);this.valueMap[y(xe)]=Le,this.dataType=this.dataType||Js(Le)}}},update(){const y=this;let{dataSource:D}=y;if(D)if((0,w.Tn)(D)&&!Mn.A.isWrapped(D)&&(D=D({})),(0,w.Qd)(D)||D instanceof Ro.A||Array.isArray(D)){if(y.valueExpr){const Y=(0,ji.ho)(D);return Y.paginate=!1,D=new On.q(Y),D.load().done(xe=>{y.items=xe,y.updateValueMap&&y.updateValueMap()})}}else We.A.log("E1016");else y.updateValueMap&&y.updateValueMap()}}),c.resizedCallbacks=(0,fe.A)(),i.resized&&c.resizedCallbacks.add(i.resized.bind(i)),(0,e.__)(c,y=>{if((0,w.Tn)(c[y])&&0!==y.indexOf("default")){const D=`default${y.charAt(0).toUpperCase()}${y.substr(1)}`;c[D]=c[y]}}),c}getRowCount(){return this._rowCount=this._rowCount||function(I){let i=1;const a=I.getBandColumnsCache(),{columnParentByIndex:c}=a;return I._columns.forEach(g=>{const y=rs(g.index,c),D=y.filter(Y=>!Y.visible);g.visible&&!D.length&&(i=Math.max(i,y.length+1))}),i}(this),this._rowCount}getRowIndex(i,a){const c=this._columns[i],g=this.getBandColumnsCache();return c&&(a||c.visible&&!c.command&&!(0,w.O9)(c.groupIndex))?rs(i,g.columnParentByIndex).length:0}getChildrenByBandColumn(i,a){const c=this.getBandColumnsCache(),g=is(i,c.columnChildrenByIndex,!a);return a?g.filter(y=>y.visible&&!y.command).sort((y,D)=>y.visibleIndex-D.visibleIndex):g}isParentBandColumn(i,a){let c=!1;const g=this._columns[i],y=this.getBandColumnsCache(),D=g&&rs(i,y.columnParentByIndex);return D&&(0,e.__)(D,(Y,xe)=>{if(xe.index===a)return c=!0,!1}),c}isParentColumnVisible(i){let a=!0;const c=this.getBandColumnsCache(),g=i>=0&&rs(i,c.columnParentByIndex);return g&&(0,e.__)(g,(y,D)=>(a=a&&D.visible,a)),a}getColumnId(i){return i.command&&i.type===Bo?He(this,i)?`type:${i.type}`:`command:${i.command}`:i.index}getCustomizeTextByDataType(i){return Ar(i)}getHeaderContentAlignment(i){return this.option("rtlEnabled")?"left"===i?"right":"left":i}}}};Dt.registerModule("columns",{defaultOptions:()=>(0,C.X)(!0,{},Do.defaultOptions(),{commonColumnSettings:{allowExporting:!0}}),controllers:Do.controllers});var Ht=p(9965),Mt=p(1614),bt=p(2440),an=p(8299);const di="_dataSourceChangedHandler",go="_getSpecificDataSourceOption",eo="_normalizeDataSource",os=I=>class extends I{postCtor(){this.on("disposing",()=>{this._disposeDataSource()})}_refreshDataSource(){this._initDataSource(),this._loadDataSource()}_initDataSource(){let a,c,i=go in this?this[go]():this.option("dataSource");this._disposeDataSource(),i&&(i instanceof On.q?(this._isSharedDataSource=!0,this._dataSource=i):(a="_dataSourceOptions"in this?this._dataSourceOptions():{},c=this._dataSourceType?this._dataSourceType():On.q,i=(0,ji.ho)(i,{fromUrlLoadMode:"_dataSourceFromUrlLoadMode"in this&&this._dataSourceFromUrlLoadMode()}),this._dataSource=new c((0,C.X)(!0,{},a,i))),eo in this&&(this._dataSource=this[eo](this._dataSource)),this._addDataSourceHandlers(),this._initDataController())}_initDataController(){var i;const a=null===(i=this.option)||void 0===i?void 0:i.call(this,"_dataController");this._dataController=a||new an.A(this._dataSource)}_addDataSourceHandlers(){di in this&&this._addDataSourceChangeHandler(),"_dataSourceLoadErrorHandler"in this&&this._addDataSourceLoadErrorHandler(),"_dataSourceLoadingChangedHandler"in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()}_addReadyWatcher(){this.readyWatcher=function(i){this._ready&&this._ready(!i)}.bind(this),this._dataSource.on("loadingChanged",this.readyWatcher)}_addDataSourceChangeHandler(){const i=this._dataSource;this._proxiedDataSourceChangedHandler=function(a){this[di](i.items(),a)}.bind(this),i.on("changed",this._proxiedDataSourceChangedHandler)}_addDataSourceLoadErrorHandler(){this._proxiedDataSourceLoadErrorHandler=this._dataSourceLoadErrorHandler.bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)}_addDataSourceLoadingChangedHandler(){this._proxiedDataSourceLoadingChangedHandler=this._dataSourceLoadingChangedHandler.bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)}_loadDataSource(){const i=this._dataSource;i&&(i.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():i.load())}_loadSingle(i,a){return i="this"===i?this._dataSource.key()||"this":i,this._dataSource.loadSingle(i,a)}_isLastPage(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize}_isDataSourceLoading(){return this._dataSource&&this._dataSource.isLoading()}_disposeDataSource(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler),this._dataSource._eventsStrategy&&this._dataSource._eventsStrategy.off("loadingChanged",this.readyWatcher)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)}getDataSource(){return this._dataSource||null}},as=function(I,i,a){const c=I._dataSource;if(c){if(void 0!==a){if(I._getPagingOptionValue(i)!==a){"pageSize"===i&&c.pageIndex(0),c[i](a),I._skipProcessingPagingChange=!0,I.option(`paging.${i}`,a),I._skipProcessingPagingChange=!1;const y=c.pageIndex();return I._isPaging="pageIndex"===i,c["pageIndex"===i?"load":"reload"]().done(()=>{I._isPaging=!1,I.pageChanged.fire(y)})}return(0,ye.cY)().resolve().promise()}return c[i]()}return 0};class Os extends(os(ft.Controller)){init(){this._items=[],this._cachedProcessedItems=null,this._columnsController=this.getController("columns"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._editingController=this.getController("editing"),this._editorFactoryController=this.getController("editorFactory"),this._errorHandlingController=this.getController("errorHandling"),this._filterSyncController=this.getController("filterSync"),this._applyFilterController=this.getController("applyFilter"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._focusController=this.getController("focus"),this._headerFilterController=this.getController("headerFilter"),this._selectionController=this.getController("selection"),this._stateStoringController=this.getController("stateStoring"),this._validatingController=this.getController("validating"),this._isPaging=!1,this._currentOperationTypes=null,this._dataChangedHandler=i=>{this._currentOperationTypes=this._dataSource.operationTypes(),this._handleDataChanged(i),this._currentOperationTypes=null},this._columnsChangedHandler=this._handleColumnsChanged.bind(this),this._loadingChangedHandler=this._handleLoadingChanged.bind(this),this._loadErrorHandler=this._handleLoadError.bind(this),this._customizeStoreLoadOptionsHandler=this._handleCustomizeStoreLoadOptions.bind(this),this._changingHandler=this._handleChanging.bind(this),this._dataPushedHandler=this._handleDataPushed.bind(this),this._columnsController.columnsChanged.add(this._columnsChangedHandler),this._isLoading=!1,this._isCustomLoading=!1,this._repaintChangesOnly=void 0,this._changes=[],this.createAction("onDataErrorOccurred"),this.dataErrorOccurred.add(i=>this.executeAction("onDataErrorOccurred",{error:i})),this._refreshDataSource(),this.postCtor()}_getPagingOptionValue(i){return this._dataSource[i]()}callbackNames(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged","pushed"]}callbackFlags(i){if("dataErrorOccurred"===i)return{stopOnFalse:!0}}publicMethods(){return["_disposeDataSource","beginCustomLoading","byKey","clearFilter","endCustomLoading","filter","getCombinedFilter","getDataByKeys","getDataSource","getKeyByRowIndex","getRowIndexByKey","getVisibleRows","keyOf","pageCount","pageIndex","pageSize","refresh","repaintRows","totalCount"]}reset(){this._columnsController.reset(),this._items=[],this._refreshDataSource()}_handleDataSourceChange(i){if(i.value===i.previousValue||this.option("columns")&&Array.isArray(i.value)&&Array.isArray(i.previousValue)){if(i.value!==i.previousValue){const c=this.store();c&&(c._array=i.value)}return this.needToRefreshOnDataSourceChange(i)&&this.refresh(this.option("repaintChangesOnly")),!0}return!1}needToRefreshOnDataSourceChange(i){return!0}optionChanged(i){const a=this;let c,g;function y(){i.handled=!0}if("dataSource"===i.name&&i.name===i.fullName&&this._handleDataSourceChange(i))y();else switch(i.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":y();break;case"remoteOperations":case"keyExpr":case"dataSource":case"scrolling":y(),a.reset();break;case"paging":if(c=a.dataSource(),c&&(g=a._setPagingOptions(c),g)){const D=c.pageIndex();this._isPaging=g.isPageIndexChanged,c.load().done(()=>{this._isPaging=!1,a.pageChanged.fire(D)})}y();break;case"rtlEnabled":a.reset();break;case"columns":c=a.dataSource(),c&&c.isLoading()&&i.name===i.fullName&&(this._useSortingGroupingFromColumns=!0,c.load());break;default:super.optionChanged(i)}}isReady(){return!this._isLoading}getDataSource(){return this._dataSource&&this._dataSource._dataSource}getCombinedFilter(i){return this.combinedFilter(void 0,i)}combinedFilter(i,a){if(!this._dataSource)return i;let c=i??this._dataSource.filter();if(this._columnsController.isDataSourceApplied()||this._columnsController.isAllDataTypesDefined()){const D=this._calculateAdditionalFilter();c=D?Ot.combineFilters([D,c]):c}const y=this._dataSource.remoteOperations().filtering||a;return c=this._columnsController.updateFilter(c,y),c}waitReady(){return this._updateLockCount?(this._readyDeferred=new ye.cY,this._readyDeferred):(0,ye.z7)()}_endUpdateCore(){const i=this._changes;if(i.length){this._changes=[];const a=i.every(c=>c.repaintChangesOnly);this.updateItems(1===i.length?i[0]:{repaintChangesOnly:a})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)}_handleCustomizeStoreLoadOptions(i){var a;const c=this._columnsController,g=this._dataSource,{storeLoadOptions:y}=i;i.isCustomLoading&&!y.isLoadingAll||(y.filter=this.combinedFilter(y.filter),1===(null===(a=y.filter)||void 0===a?void 0:a.length)&&"!"===y.filter[0]&&(i.data=[],i.extra=i.extra||{},i.extra.totalCount=0),c.isDataSourceApplied()||c.updateColumnDataTypes(g),this._columnsUpdating=!0,c.updateSortingGrouping(g,!this._useSortingGroupingFromColumns),this._columnsUpdating=!1,y.sort=c.getSortDataSourceParameters(),y.group=c.getGroupDataSourceParameters(),g.sort(y.sort),g.group(y.group),y.sort=c.getSortDataSourceParameters(!g.remoteOperations().sorting),i.group=c.getGroupDataSourceParameters(!g.remoteOperations().grouping))}_handleColumnsChanged(i){const a=this,{changeTypes:c}=i,{optionNames:g}=i;let y,D,Y;const xe=function(Le){var st;a._columnsController.columnsChanged.remove(xe),a.updateItems({repaintChangesOnly:!1,virtualColumnsScrolling:null==Le||null===(st=Le.changeTypes)||void 0===st?void 0:st.virtualColumnsScrolling})};if(c.sorting||c.grouping)a._dataSource&&!a._columnsUpdating&&(a._dataSource.group(a._columnsController.getGroupDataSourceParameters()),a._dataSource.sort(a._columnsController.getSortDataSourceParameters()),a.reload());else if(c.columns&&(D=a._columnsController.columnOption(i.columnIndex,"filterValues"),(g.filterValues||g.filterType&&Array.isArray(D)||g.filterValue||g.selectedFilterOperation||g.allowFiltering)&&(y=a._columnsController.columnOption(i.columnIndex,"filterValue"),(Array.isArray(D)||void 0===i.columnIndex||(0,w.O9)(y)||!g.selectedFilterOperation||g.filterValue)&&(a._applyFilter(),Y=!0)),!a._needApplyFilter&&!Ot.checkChanges(g,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])&&a._columnsController.columnsChanged.add(xe),(0,w.O9)(g.visible))){const Le=a._columnsController.columnOption(i.columnIndex);Le&&((0,w.O9)(Le.filterValue)||(0,w.O9)(Le.filterValues))&&(a._applyFilter(),Y=!0)}!Y&&c.filtering&&!this._needApplyFilter&&a.reload()}_handleDataChanged(i){const a=this,c=a._dataSource,g=a._columnsController;let y=!1;this._useSortingGroupingFromColumns=!1,c&&!a._isDataSourceApplying&&(a._isDataSourceApplying=!0,(0,ye.z7)(a._columnsController.applyDataSource(c)).done(()=>{a._isLoading&&a._handleLoadingChanged(!1),y&&i&&i.isDelayed&&(i.isDelayed=!1),a._isDataSourceApplying=!1;const D=a._needApplyFilter;a._needApplyFilter=!1,D&&!a._isAllDataTypesDefined&&(()=>{const Y=a._calculateAdditionalFilter();return Y&&Y.length})()?(We.A.log("W1005",a.component.NAME),a._applyFilter()):a.updateItems(i,!0)}).fail(()=>{a._isDataSourceApplying=!1}),a._isDataSourceApplying&&(y=!0,a._handleLoadingChanged(!0)),a._needApplyFilter=!a._columnsController.isDataSourceApplied(),a._isAllDataTypesDefined=g.isAllDataTypesDefined())}_handleLoadingChanged(i){this._isLoading=i,this._fireLoadingChanged()}_handleLoadError(i){this.dataErrorOccurred.fire(i)}_handleDataPushed(i){this.pushed.fire(i)}fireError(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];this.dataErrorOccurred.fire(We.A.Error.apply(We.A,a))}_setPagingOptions(i){const a=this.option("paging.pageIndex"),c=this.option("paging.pageSize"),g=this.option("paging.enabled"),y=this.option("scrolling.mode"),D="infinite"===y,xe=g||"virtual"===y||D;let Le=!1,st=!1,mt=!1;return i.requireTotalCount(!D),void 0!==g&&i.paginate()!==xe&&(i.paginate(xe),Le=!0),void 0!==c&&i.pageSize()!==c&&(i.pageSize(c),st=!0),void 0!==a&&i.pageIndex()!==a&&(i.pageIndex(a),mt=!0),!!(Le||st||mt)&&{isPaginateChanged:Le,isPageSizeChanged:st,isPageIndexChanged:mt}}_getSpecificDataSourceOption(){const i=this.option("dataSource");return Array.isArray(i)?{store:{type:"array",data:i,key:this.option("keyExpr")}}:i}_initDataSource(){const i=this,a=this._dataSource;super._initDataSource();const c=i._dataSource;if(i._useSortingGroupingFromColumns=!0,i._cachedProcessedItems=null,c){const g=i._setPagingOptions(c);this._isPaging=g?.isPageIndexChanged,i.setDataSource(c)}else a&&i.updateItems()}_loadDataSource(){const i=this,a=i._dataSource,c=new ye.cY;return(0,ye.z7)(this._columnsController.refresh(!0)).always(()=>{a?a.load().done(function(){i._isPaging=!1,c.resolve.apply(c,arguments)}).fail(c.reject):c.resolve()}),c.promise()}_beforeProcessItems(i){return i.slice(0)}getRowIndexDelta(){return 0}getDataIndex(i){const a=this._items,c="append"===i.changeType&&a.length>0?a[a.length-1]:null;return(0,w.O9)(c?.dataIndex)?c.dataIndex+1:0}_processItems(i,a){const c=this,g=c.getRowIndexDelta(),{changeType:y}=a,xe={visibleColumns:c._columnsController.getVisibleColumns(null,"loadingAll"===y),dataIndex:this.getDataIndex(a)},Le=[];return(0,e.__)(i,(st,mt)=>{(0,w.O9)(mt)&&(xe.rowIndex=st-g,mt=c._processItem(mt,xe),Le.push(mt))}),Le}_processItem(i,a){return i=this._generateDataItem(i,a),(i=this._processDataItem(i,a)).dataIndex=a.dataIndex++,i}_generateDataItem(i,a){return{rowType:"data",data:i,key:this.keyOf(i)}}_processDataItem(i,a){return i.values=this.generateDataValues(i.data,a.visibleColumns),i}generateDataValues(i,a,c){const g=[];let y;for(let D=0;D<a.length;D++){const Y=a[D];y=c?void 0:null,Y.command||(Y.calculateCellValue?y=Y.calculateCellValue(i):Y.dataField&&(y=i[Y.dataField])),g.push(y)}return g}_applyChange(i){const a=this;"update"===i.changeType?a._applyChangeUpdate(i):a.items().length&&i.repaintChangesOnly&&"refresh"===i.changeType?a._applyChangesOnly(i):"refresh"===i.changeType&&a._applyChangeFull(i)}_applyChangeFull(i){this._items=i.items.slice(0)}_getRowIndices(i){const a=i.rowIndices.slice(0),c=this.getRowIndexDelta();a.sort((g,y)=>g-y);for(let g=0;g<a.length;g++){let y=a[g];i.allowInvisibleRowIndices&&(y+=c),y<0&&(a.splice(g,1),g--)}return a}_applyChangeUpdate(i){const a=this,{items:c}=i,g=a._getRowIndices(i),y=a.getRowIndexDelta(),D=a.option("repaintChangesOnly");let Le,Y=-1,xe=0;i.items=[],i.rowIndices=[],i.columnIndices=[],i.changeTypes=[];const st=function(mt,on,wn){let Kn=mt&&on&&(0,b.RL)(mt.key,on.key);return Kn&&wn&&(Kn=mt.rowType===on.rowType&&("detail"!==on.rowType||mt.isEditing===on.isEditing)),Kn};(0,e.__)(g,(mt,on)=>{let wn;if(Y===(on+=xe+y))return;Y=on;const Kn=a._items[on],Ai=a._items[on+1],no=c[on],Yo=c[on+1],ps=st(Kn,Ai)||st(no,Yo);if(no&&(no.rowIndex=on,i.items.push(no)),Kn&&no&&st(Kn,no,ps))Le="update",a._items[on]=no,Kn.visible!==no.visible?i.items.splice(-1,1,{visible:no.visible}):D&&!i.isFullUpdate&&(wn=a._partialUpdateRow(Kn,no,on-y));else if(no&&!Kn||Yo&&st(Kn,Yo,ps))Le="insert",a._items.splice(on,0,no),xe++;else if(Kn&&!no||Ai&&st(no,Ai,ps))Le="remove",a._items.splice(on,1),xe--,Y=-1;else{if(!no)return;Le="update",a._items[on]=no}i.rowIndices.push(on-y),i.changeTypes.push(Le),i.columnIndices.push(wn)})}_isCellChanged(i,a,c,g,y){if(JSON.stringify(i.values[g])!==JSON.stringify(a.values[g]))return!0;function D(Y,xe){return!!Y.modifiedValues&&void 0!==Y.modifiedValues[xe]}return D(i,g)!==D(a,g)}_getChangedColumnIndices(i,a,c,g){let y;if(i.rowType===a.rowType){if("group"!==a.rowType&&"groupFooter"!==a.rowType&&(y=[],"detail"!==a.rowType))for(let D=0;D<i.values.length;D++)this._isCellChanged(i,a,c,D,g)&&y.push(D);"group"===a.rowType&&i.cells&&a.isExpanded===i.isExpanded&&a.data.isContinuation===i.data.isContinuation&&a.data.isContinuationOnNextPage===i.data.isContinuationOnNextPage&&(y=i.cells.map((Y,xe)=>{var Le;return"groupExpand"!==(null===(Le=Y.column)||void 0===Le?void 0:Le.type)?xe:-1}).filter(Y=>Y>=0))}return y}_partialUpdateRow(i,a,c,g){var y;let D=this._getChangedColumnIndices(i,a,c,g);return null!==(y=D)&&void 0!==y&&y.length&&this.option("dataRowTemplate")&&(D=void 0),D&&(i.cells&&i.cells.forEach((Y,xe)=>{!(D.indexOf(xe)>=0)&&Y&&Y.update&&Y.update(a)}),a.update=i.update,a.watch=i.watch,a.cells=i.cells,g&&(a.oldValues=i.values),i.update&&i.update(a)),D}_isItemEquals(i,a){if(JSON.stringify(i.values)!==JSON.stringify(a.values)||["modified","isNewRow","removed","isEditing"].some(Y=>i[Y]!==a[Y]))return!1;if("group"===i.rowType||"groupFooter"===i.rowType){var c,g,y,D;const Y=i.isExpanded===a.isExpanded,xe=JSON.stringify(i.summaryCells)===JSON.stringify(a.summaryCells),Le=(null===(c=i.data)||void 0===c?void 0:c.isContinuation)===(null===(g=a.data)||void 0===g?void 0:g.isContinuation)&&(null===(y=i.data)||void 0===y?void 0:y.isContinuationOnNextPage)===(null===(D=a.data)||void 0===D?void 0:D.isContinuationOnNextPage);if(!Y||!xe||!Le)return!1}return!0}_applyChangesOnly(i){const a=[],c=[],g=[],y=[],D={},Y=i?.isLiveUpdate??!0;function xe(on){if(on)return`${on.rowType},${JSON.stringify(on.key)}`}const Le=this._items,st=Le.slice();i.items.forEach((on,wn)=>{const Kn=xe(on);D[Kn]=wn,on.rowIndex=wn});const mt=(0,Ht.p)(st,i.items,xe,(on,wn)=>!!this._isItemEquals(on,wn)&&(on.cells&&(on.update&&on.update(wn),on.cells.forEach(Kn=>{Kn&&Kn.update&&Kn.update(wn,!0)})),!0));mt?(mt.forEach(on=>{switch(on.type){case"update":{const{index:wn}=on,Kn=on.data,{oldItem:Ai}=on,no=this._partialUpdateRow(Ai,Kn,wn,Y);a.push(wn),g.push("update"),y.push(Kn),Le[wn]=Kn,c.push(no);break}case"insert":a.push(on.index),g.push("insert"),y.push(on.data),c.push(void 0),Le.splice(on.index,0,on.data);break;case"remove":a.push(on.index),g.push("remove"),Le.splice(on.index,1),y.push(on.oldItem),c.push(void 0)}}),i.repaintChangesOnly=!0,i.changeType="update",i.rowIndices=a,i.columnIndices=c,i.changeTypes=g,i.items=y,st.length&&(i.isLiveUpdate=!0),this._correctRowIndices(on=>{const wn=this._rowIndexOffset||0,Kn=this.getRowIndexOffset(),no=xe(st[on-wn]),Yo=D[no];return Yo>=0?Yo+Kn-on:0})):this._applyChangeFull(i)}_correctRowIndices(i){}_afterProcessItems(i,a){return i}_updateItemsCore(i){let a;const c=this._dataSource;if(i.changeType=i.changeType||"refresh",c){const y=this._cachedProcessedItems;i.useProcessedItemsCache&&y?a=y:(a=i.items||c.items(),a=this._beforeProcessItems(a),a=this._processItems(a,i),this._cachedProcessedItems=a),a=this._afterProcessItems(a,i),i.items=a;const D=this._items.length===a.length&&this._items;this._applyChange(i);const Y=this.getRowIndexDelta();(0,e.__)(this._items,(xe,Le)=>{Le.rowIndex=xe-Y,D&&(Le.cells=D[xe].cells??[]);const st=a[xe];st&&(Le.loadIndex=st.loadIndex)}),this._rowIndexOffset=this.getRowIndexOffset()}else this._items=[]}_handleChanging(i){const a=this.getVisibleRows();this.dataSource()&&i.changes.forEach(g=>{if("insert"===g.type&&g.index>=0){let y=0;for(let D=0;D<g.index;D++){const Y=a[D];Y&&("data"===Y.rowType||"group"===Y.rowType)&&y++}g.index=y}})}updateItems(i,a){i=i||{};const c=this;if(void 0!==c._repaintChangesOnly)i.repaintChangesOnly=i.repaintChangesOnly??c._repaintChangesOnly,i.needUpdateDimensions=i.needUpdateDimensions||c._needUpdateDimensions;else if(i.changes)i.repaintChangesOnly=c.option("repaintChangesOnly");else if(a){const g=c.dataSource().operationTypes();i.repaintChangesOnly=g&&!g.grouping&&!g.filtering&&c.option("repaintChangesOnly"),i.isDataChanged=!0,g&&(g.reload||g.paging||g.groupExpanding)&&(i.needUpdateDimensions=!0)}!c._updateLockCount||i.cancel?(c._updateItemsCore(i),!i.cancel&&c._fireChanged(i)):c._changes.push(i)}loadingOperationTypes(){const i=this.dataSource();return i&&i.loadingOperationTypes()||{}}_fireChanged(i){this._currentOperationTypes&&(i.operationTypes=this._currentOperationTypes,this._currentOperationTypes=null),(0,b.zE)(()=>{this.changed.fire(i)})}isLoading(){return this._isLoading||this._isCustomLoading}_fireLoadingChanged(){this.loadingChanged.fire(this.isLoading(),this._loadingText)}_calculateAdditionalFilter(){return null}_applyFilter(){const i=this._dataSource;return i?(i.pageIndex(0),this._isFilterApplying=!0,this.reload().done(()=>{this._isFilterApplying&&this.pageChanged.fire()})):(new ye.cY).resolve()}resetFilterApplying(){this._isFilterApplying=!1}filter(i){const a=this._dataSource,c=a&&a.filter();if(0===arguments.length)return c;i=arguments.length>1?Array.prototype.slice.call(arguments,0):i,!Ot.equalFilterParameters(c,i)&&(a&&a.filter(i),this._applyFilter())}clearFilter(i){const a=this,c=a._columnsController,g=function(y){const D=c.columnCount();for(let Y=0;Y<D;Y++)c.columnOption(Y,y,void 0)};if(a.component.beginUpdate(),arguments.length>0)switch(i){case"dataSource":a.filter(null);break;case"search":a.searchByText("");break;case"header":g("filterValues");break;case"row":g("filterValue")}else a.filter(null),a.searchByText(""),g("filterValue"),g("bufferedFilterValue"),g("filterValues");a.component.endUpdate()}_fireDataSourceChanged(){const i=this,a=function(){i.changed.remove(a),i.dataSourceChanged.fire()};i.changed.add(a)}_getDataSourceAdapter(){}_createDataSourceAdapterCore(i,a){const g=this._getDataSourceAdapter().create(this.component);return g.init(i,a),g}isLocalStore(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.store())instanceof Mt.A}isCustomStore(i){return(i=i||this.store())instanceof bt.A}_createDataSourceAdapter(i){let a=this.option("remoteOperations");const c=i.store(),g={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return(0,w.Gv)(a)&&a.groupPaging&&(a=(0,C.X)({},g,a)),"auto"===a&&(a=this.isLocalStore(c)||this.isCustomStore(c)?{}:{filtering:!0,sorting:!0,paging:!0}),!0===a&&(a=g),this._createDataSourceAdapterCore(i,a)}setDataSource(i){const a=this,c=a._dataSource;!i&&c&&(c.cancelAll(),c.changed.remove(a._dataChangedHandler),c.loadingChanged.remove(a._loadingChangedHandler),c.loadError.remove(a._loadErrorHandler),c.customizeStoreLoadOptions.remove(a._customizeStoreLoadOptionsHandler),c.changing.remove(a._changingHandler),c.pushed.remove(a._dataPushedHandler),c.dispose(a._isSharedDataSource)),i&&(i=a._createDataSourceAdapter(i)),a._dataSource=i,i&&(a._fireDataSourceChanged(),a._isLoading=!i.isLoaded(),a._needApplyFilter=!0,a._isAllDataTypesDefined=a._columnsController.isAllDataTypesDefined(),i.changed.add(a._dataChangedHandler),i.loadingChanged.add(a._loadingChangedHandler),i.loadError.add(a._loadErrorHandler),i.customizeStoreLoadOptions.add(a._customizeStoreLoadOptionsHandler),i.changing.add(a._changingHandler),i.pushed.add(a._dataPushedHandler))}items(i){return this._items}isEmpty(){return!this.items().length}pageCount(){return this._dataSource?this._dataSource.pageCount():1}dataSource(){return this._dataSource}store(){const i=this._dataSource;return i&&i.store()}loadAll(i){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const c=this,g=new ye.cY,y=c._dataSource;if(y)if(i){const D={data:i,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:a?null:c.getCombinedFilter(),group:y.group(),sort:y.sort()}};y._handleDataLoaded(D),(0,ye.z7)(D.data).done(Y=>{var xe;Y=c._beforeProcessItems(Y),g.resolve(c._processItems(Y,{changeType:"loadingAll"}),null===(xe=D.extra)||void 0===xe?void 0:xe.summary)}).fail(g.reject)}else if(y.isLoading())g.reject();else{const D=(0,C.X)({},y.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});y.load(D).done((Y,xe)=>{Y=c._beforeProcessItems(Y),Y=c._processItems(Y,{changeType:"loadingAll"}),g.resolve(Y,xe&&xe.summary)}).fail(g.reject)}else g.resolve([]);return g}getKeyByRowIndex(i,a){const c=this.items(a)[i];if(c)return c.key}getRowIndexByKey(i,a){return Ot.getIndexByKey(i,this.items(a))}keyOf(i){const a=this.store();if(a)return a.keyOf(i)}byKey(i){const a=this.store(),c=this.getRowIndexByKey(i);let g;if(a)return c>=0&&(g=(new ye.cY).resolve(this.items()[c].data)),g||a.byKey(i)}key(){const i=this.store();if(i)return i.key()}getRowIndexOffset(i){return 0}getDataByKeys(i){const a=this,c=new ye.cY,g=[],y=[];return(0,e.__)(i,(D,Y)=>{g.push(a.byKey(Y).done(xe=>{y[D]=xe}))}),ye.z7.apply(T.A,g).always(()=>{c.resolve(y)}),c}pageIndex(i){return as(this,"pageIndex",i)}pageSize(i){return as(this,"pageSize",i)}beginCustomLoading(i){this._isCustomLoading=!0,this._loadingText=i||"",this._fireLoadingChanged()}endCustomLoading(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()}refresh(i){!0===i?i={reload:!0,changesOnly:!0}:i||(i={lookup:!0,selection:!0,reload:!0});const a=this,c=a.getDataSource(),{changesOnly:g}=i,y=new ye.cY,D=function(){a._repaintChangesOnly=!!g};return(0,ye.z7)(!i.lookup||a._columnsController.refresh()).always(()=>{i.load||i.reload?(c&&c.on("customizeLoadResult",D),(0,ye.z7)(a.reload(i.reload,g)).always(()=>{c&&c.off("customizeLoadResult",D),a._repaintChangesOnly=void 0}).done(y.resolve).fail(y.reject)):(a.updateItems({repaintChangesOnly:i.changesOnly}),y.resolve())}),y.promise()}getVisibleRows(){return this.items()}_disposeDataSource(){this._dataSource&&this._dataSource._eventsStrategy&&this._dataSource._eventsStrategy.off("loadingChanged",this.readyWatcher),this.setDataSource(null)}dispose(){this._disposeDataSource(),super.dispose()}repaintRows(i,a){((i=Array.isArray(i)?i:[i]).length>1||(0,w.O9)(i[0]))&&this.updateItems({changeType:"update",rowIndices:i,isFullUpdate:!a})}skipProcessingPagingChange(i){return this._skipProcessingPagingChange&&("paging.pageIndex"===i||"paging.pageSize"===i)}getUserState(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}}getCachedStoreData(){return this._dataSource&&this._dataSource.getCachedStoreData()}isLastPageLoaded(){return this.pageIndex()===this.pageCount()-1}load(){var i;return null===(i=this._dataSource)||void 0===i?void 0:i.load()}reload(i,a){var c;return null===(c=this._dataSource)||void 0===c?void 0:c.reload(i,a)}push(){for(var i,a=arguments.length,c=new Array(a),g=0;g<a;g++)c[g]=arguments[g];return null===(i=this._dataSource)||void 0===i?void 0:i.push(...c)}itemsCount(){var i;return this._dataSource?null===(i=this._dataSource)||void 0===i?void 0:i.itemsCount():0}totalItemsCount(){var i;return this._dataSource?null===(i=this._dataSource)||void 0===i?void 0:i.totalItemsCount():0}hasKnownLastPage(){var i;return!this._dataSource||(null===(i=this._dataSource)||void 0===i?void 0:i.hasKnownLastPage())}isLoaded(){var i;return!this._dataSource||(null===(i=this._dataSource)||void 0===i?void 0:i.isLoaded())}totalCount(){var i;return this._dataSource?null===(i=this._dataSource)||void 0===i?void 0:i.totalCount():0}hasLoadOperation(){var i;const a=(null===(i=this._dataSource)||void 0===i?void 0:i.operationTypes())??{};return Object.keys(a).some(c=>a[c])}}const Ks={defaultOptions:()=>({loadingTimeout:0,dataSource:null,cacheEnabled:!0,repaintChangesOnly:!1,highlightChanges:!1,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}),controllers:{data:Os}};var ht=p(2946);const _t=function(I,i){if(I&&(I=I.slice(0),i))for(let a=0;a<I.length;a++)I[a]=(0,C.X)({key:I[a].key},I[a]),I[a].items=_t(I[a].items,i-1);return I},_n=function(I,i,a){let c={reload:!0,fullReload:!0};return i&&(c={sorting:!Ot.equalSortParameters(I.sort,i.sort),grouping:!Ot.equalSortParameters(I.group,i.group,!0),groupExpanding:!Ot.equalSortParameters(I.group,i.group)||i.groupExpand,filtering:!Ot.equalFilterParameters(I.filter,i.filter),pageIndex:I.pageIndex!==i.pageIndex,skip:I.skip!==i.skip,take:I.take!==i.take,pageSize:I.pageSize!==i.pageSize,fullReload:a,reload:!1,paging:!1},c.reload=a||c.sorting||c.grouping||c.filtering,c.paging=c.pageIndex||c.pageSize||c.take),c},po=function(I,i){const a=Ot.normalizeSortingInfo(I.group||I.storeLoadOptions.group||I.loadOptions.group).length,c=[];if(Zs(c,I,a))return c;i&&Ea(c,I,a)},Zs=function(I,i,a,c){var g;const{storeLoadOptions:y}=i,D=i.take??y.take??0,Y=null===(g=i.cachedData)||void 0===g?void 0:g.items;if(D&&Y){const xe=i.skip??y.skip??0;for(let Le=0;Le<D;Le+=1){const st=c?D-1-Le:Le,mt=st+xe,on=Y[mt];if(void 0===on&&mt in Y)return!0;const wn=xa(i,on,a,st,D);if(!wn)return!1;I.push(wn)}return!0}return!1},xa=function(I,i,a,c,g){return a&&i?yl(i,a,0===c&&I.skips||[],c===g-1&&I.takes||[]):i},yl=function(I,i,a,c){if(i&&I){const g=(0,Oe.A)({},I),y=a[0]||0,D=c[0],{items:Y}=I;if(Y){if(void 0===D&&!Y[y])return;g.items=[],a.length&&(g.isContinuation=!0),D&&(g.isContinuationOnNextPage=I.count>D);for(let xe=0;void 0===D?Y[xe+y]:xe<D;xe+=1){const st=xe+1===D,mt=yl(Y[xe+y],i-1,0===xe?a.slice(1):[],st?c.slice(1):[]);if(void 0===mt)return;g.items.push(mt)}}return g}return I},Ea=function(I,i,a){const c=I.length,{storeLoadOptions:g}=i;if(void 0!==g.skip&&g.take&&!a){const y=[];Zs(y,i,a,!0);const D=y.length;(c||D)&&(i.skip=i.skip??g.skip,i.take=i.take??g.take),c&&(g.skip+=c,g.take-=c,i.cachedDataPartBegin=I),D&&(g.take-=D,i.cachedDataPartEnd=y.reverse())}},xl=function(I,i,a,c){if(a&&i){const g=(0,Oe.A)({},i);delete g.isContinuation,delete g.isContinuationOnNextPage;const y=c[0]||0;return i.items&&(g.items=I?.items||{},i.items.forEach((D,Y)=>{const xe=Y+y,Le=0===Y?c.slice(1):[];g.items[xe]=xl(g.items[xe],D,a-1,Le)})),g}return i};let oc=class ic extends ft.Controller{init(i,a){const c=this;c._dataSource=i,c._remoteOperations=a||{},c._isLastPage=!i.isLastPage(),c._hasLastPage=!1,c._currentTotalCount=0,c._cachedData={items:{}},c._lastOperationTypes={},c._eventsStrategy=i._eventsStrategy,c._totalCountCorrection=0,c._isLoadingAll=!1,c.changed=(0,fe.A)(),c.loadingChanged=(0,fe.A)(),c.loadError=(0,fe.A)(),c.customizeStoreLoadOptions=(0,fe.A)(),c.changing=(0,fe.A)(),c.pushed=(0,fe.A)(),c._dataChangedHandler=c._handleDataChanged.bind(c),c._customizeStoreLoadOptionsHandler=c._handleCustomizeStoreLoadOptions.bind(c),c._dataLoadedHandler=c._handleDataLoaded.bind(c),c._loadingChangedHandler=c._handleLoadingChanged.bind(c),c._loadErrorHandler=c._handleLoadError.bind(c),c._pushHandler=c._handlePush.bind(c),c._changingHandler=c._handleChanging.bind(c),i.on("changed",c._dataChangedHandler),i.on("customizeStoreLoadOptions",c._customizeStoreLoadOptionsHandler),i.on("customizeLoadResult",c._dataLoadedHandler),i.on("loadingChanged",c._loadingChangedHandler),i.on("loadError",c._loadErrorHandler),i.on("changing",c._changingHandler),i.store().on("beforePush",c._pushHandler),(0,e.__)(i,(g,y)=>{!c[g]&&(0,w.Tn)(y)&&(c[g]=function(){return this._dataSource[g].apply(this._dataSource,arguments)})})}dispose(i){const a=this._dataSource,c=a.store();a.off("changed",this._dataChangedHandler),a.off("customizeStoreLoadOptions",this._customizeStoreLoadOptionsHandler),a.off("customizeLoadResult",this._dataLoadedHandler),a.off("loadingChanged",this._loadingChangedHandler),a.off("loadError",this._loadErrorHandler),a.off("changing",this._changingHandler),c&&c.off("beforePush",this._pushHandler),i||a.dispose()}remoteOperations(){return this._remoteOperations}refresh(i,a){const c=this,g=c._dataSource;a.reload&&(c.resetCurrentTotalCount(),c._isLastPage=!g.paginate(),c._hasLastPage=c._isLastPage)}resetCurrentTotalCount(){this._currentTotalCount=0,this._totalCountCorrection=0}resetCache(){this._cachedStoreData=void 0,this._cachedPagingData=void 0}resetPagesCache(i){this._cachedData={items:{}}}_needClearStoreDataCache(){const i=this.remoteOperations(),a=_n(this._lastLoadOptions||{},{});return!Object.keys(i).every(g=>!a[g]||!i[g])}push(i,a){const c=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&(0,ht.VK)({keyInfo:c,data:this._cachedStoreData,changes:i}),a||this._applyBatch(i),this.pushed.fire(i)}getDataIndexGetter(){if(!this._dataIndexGetter){let i,a;const c=this.store();this._dataIndexGetter=g=>{if(!i||a&&a!==this._cachedStoreData){a=this._cachedStoreData||[],i={};for(let D=0;D<a.length;D++)i[(0,b.GP)(c.keyOf(a[D]))]=D}return i[(0,b.GP)(c.keyOf(g))]}}return this._dataIndexGetter}_getKeyInfo(){return this.store()}_needToCopyDataObject(){return!0}_applyBatch(i,a){const c=this._getKeyInfo(),g=this._dataSource,y=Ot.normalizeSortingInfo(this.group()).length,D="reshape"===this.option("editing.refreshMode"),Y="virtual"===this.option("scrolling.mode");i=i.filter(mt=>!g.paginate()||"insert"!==mt.type||void 0!==mt.index);const xe=()=>y?this.itemsCount():this.items().length,Le=xe();(0,ht.VK)({keyInfo:c,data:this._items,changes:i,groupCount:y,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(0,ht.VK)({keyInfo:c,data:g.items(),changes:i,groupCount:y,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(this._currentTotalCount>0||(a||!D)&&Y)&&(this._totalCountCorrection+=xe()-Le),i.splice(0,i.length)}_handlePush(i){let{changes:a}=i;this.push(a,!0)}_handleChanging(i){this.changing.fire(i),this._applyBatch(i.changes,!0)}_needCleanCacheByOperation(i,a){const c=["filtering","sorting","paging"],g=c.indexOf(i);return(g>=0?c.slice(g):[i]).some(D=>a[D])}_customizeRemoteOperations(i,a){let c=this._cachedStoreData,g=this._cachedPagingData,y=this._cachedData;(i.storeLoadOptions.filter&&!i.remoteOperations.filtering||i.storeLoadOptions.sort&&!i.remoteOperations.sorting)&&(i.remoteOperations={filtering:i.remoteOperations.filtering,summary:i.remoteOperations.summary}),a.fullReload?(c=void 0,g=void 0,y={items:{}}):(a.reload?(g=void 0,y={items:{}}):a.groupExpanding&&(y={items:{}}),(0,e.__)(a,(D,Y)=>{Y&&this._needCleanCacheByOperation(D,i.remoteOperations)&&(c=void 0,g=void 0)})),g&&(i.remoteOperations.paging=!1),i.cachedStoreData=c,i.cachedPagingData=g,i.cachedData=y,i.isCustomLoading||(this._cachedStoreData=c,this._cachedPagingData=g,this._cachedData=y)}_handleCustomizeStoreLoadOptions(i){var a;this._handleDataLoading(i),0!==(null===(a=i.data)||void 0===a?void 0:a.length)&&(i.data=po(i,!0)||i.cachedStoreData)}_handleDataLoading(i){const a=this._dataSource,c=this._lastLoadOptions;this.customizeStoreLoadOptions.fire(i),i.delay=this.option("loadingTimeout"),i.originalStoreLoadOptions=i.storeLoadOptions,i.remoteOperations=(0,C.X)({},this.remoteOperations());const g=!this.isLoaded()&&!this._isRefreshing;this.option("integrationOptions.renderedOnServer")&&!this.isLoaded()&&(i.delay=void 0);const y=(0,C.X)({pageIndex:this.pageIndex(),pageSize:this.pageSize()},i.storeLoadOptions),D=_n(y,c,g);if(this._customizeRemoteOperations(i,D),!i.isCustomLoading){const Y=this._isRefreshing;i.pageIndex=a.pageIndex(),i.lastLoadOptions=y,i.operationTypes=D,this._loadingOperationTypes=D,this._isRefreshing=!0,(0,ye.z7)(Y||this._isRefreshed||this.refresh(i,D)).done(()=>{this._lastOperationId===i.operationId&&(this._isRefreshed=!0,this.load().always(()=>{this._isRefreshed=!1}))}).fail(()=>{a.cancel(i.operationId)}).always(()=>{this._isRefreshing=!1}),a.cancel(this._lastOperationId),this._lastOperationId=i.operationId,this._isRefreshing&&a.cancel(this._lastOperationId)}this._handleDataLoadingCore(i)}_handleDataLoadingCore(i){const{remoteOperations:a}=i;i.loadOptions={};const c=i.cachedData.extra,g={filter:!a.filtering,sort:!a.sorting,group:!a.grouping,summary:!a.summary,skip:!a.paging,take:!a.paging,requireTotalCount:c&&"totalCount"in c||!a.paging,langParams:!a.filtering||!a.sorting};(0,e.__)(i.storeLoadOptions,(y,D)=>{g[y]&&(i.loadOptions[y]=D,delete i.storeLoadOptions[y])}),c&&(i.extra=c)}_handleDataLoaded(i){const{loadOptions:a}=i,c=i.remoteOperations&&!i.remoteOperations.paging,{cachedData:g}=i,{storeLoadOptions:y}=i,D=!1!==this.option("cacheEnabled")&&y,Y=D&&!i.isCustomLoading&&g&&(!c||y.group),xe=D&&c,Le=xe&&!i.isCustomLoading;if(!a)return void this._dataSource.cancel(i.operationId);c&&(i.skip=a.skip,i.take=a.take,delete a.skip,delete a.take),a.group&&(a.group=i.group||a.group);const st=Ot.normalizeSortingInfo(i.group||y.group||a.group).length;var mt;i.cachedDataPartBegin&&(i.data=i.cachedDataPartBegin.concat(i.data)),i.cachedDataPartEnd&&(i.data=i.data.concat(i.cachedDataPartEnd)),Y&&po(i)||(xe&&i.cachedPagingData?i.data=_t(i.cachedPagingData,st):(Le&&(this._cachedStoreData?i.mergeStoreLoadData&&(i.data=this._cachedStoreData=this._cachedStoreData.concat(i.data)):this._cachedStoreData=_t(i.data,Ot.normalizeSortingInfo(y.group).length)),new Mt.A(i.data).load(a).done(on=>{i.data=on,Le&&(this._cachedPagingData=_t(i.data,st))}).fail(on=>{i.data=(new ye.cY).reject(on)})),a.requireTotalCount&&c&&(i.extra=(0,w.Qd)(i.extra)?i.extra:{},i.extra.totalCount=i.data.length),i.extra&&i.extra.totalCount>=0&&(!1===y.requireTotalCount||!1===a.requireTotalCount)&&(i.extra.totalCount=-1),!a.data&&(y.requireTotalCount||((null===(mt=i.extra)||void 0===mt?void 0:mt.totalCount)??-1)>=0)&&(this._totalCountCorrection=0),this._handleDataLoadedCore(i),Y&&(g.extra=g.extra||(0,C.X)({},i.extra),(0,ye.z7)(i.data).done(on=>{!function(I,i,a){const{storeLoadOptions:c}=I,g=I.skip??c.skip??0,y=I.take??c.take??0;for(let D=0;D<y;D+=1){const Y=D+g,xe=I.cachedData.items;xe[Y]=xl(xe[Y],i[D],a,0===D&&I.skips||[])}}(i,on,st)}))),(0,ye.z7)(i.data).done(()=>{i.lastLoadOptions&&(this._lastLoadOptions=i.lastLoadOptions,Object.keys(i.operationTypes).forEach(on=>{this._lastOperationTypes[on]=this._lastOperationTypes[on]||i.operationTypes[on]}))}),i.storeLoadOptions=i.originalStoreLoadOptions}_handleDataLoadedCore(i){i.remoteOperations&&!i.remoteOperations.paging&&Array.isArray(i.data)&&(void 0!==i.skip&&(i.data=i.data.slice(i.skip)),void 0!==i.take&&(i.data=i.data.slice(0,i.take)))}_handleLoadingChanged(i){this.loadingChanged.fire(i)}_handleLoadError(i){this.loadError.fire(i),this.changed.fire({changeType:"loadError",error:i})}_loadPageSize(){return this.pageSize()}_handleDataChanged(i){let a;const c=this._dataSource;let g=!1;const y=!i||(0,w.O9)(i.changeType),D=this.itemsCount();y&&(this._isLastPage=!D||!this._loadPageSize()||D<this._loadPageSize(),this._isLastPage&&(this._hasLastPage=!0)),c.totalCount()>=0?c.pageIndex()>=this.pageCount()&&(c.pageIndex(this.pageCount()-1),this.pageIndex(c.pageIndex()),this.resetPagesCache(),c.load(),g=!0):y&&(a=c.pageIndex()*this.pageSize()+D,a>this._currentTotalCount&&(this._currentTotalCount=a,(0===c.pageIndex()||!this.option("scrolling.legacyMode"))&&(this._totalCountCorrection=0)),0===D&&c.pageIndex()>=this.pageCount()&&(c.pageIndex(this.pageCount()-1),"infinite"!==this.option("scrolling.mode")&&(c.load(),g=!0))),g||(this._operationTypes=this._lastOperationTypes,this._lastOperationTypes={},this.component._optionCache={},this.changed.fire(i),this.component._optionCache=void 0)}_scheduleCustomLoadCallbacks(i){const a=this;a._isCustomLoading=!0,i.always(()=>{a._isCustomLoading=!1})}loadingOperationTypes(){return this._loadingOperationTypes}operationTypes(){return this._operationTypes}lastLoadOptions(){return this._lastLoadOptions||{}}isLastPage(){return this._isLastPage}_dataSourceTotalCount(){return this._dataSource.totalCount()}_changeRowExpandCore(i){}changeRowExpand(i){}totalCount(){return parseInt((this._currentTotalCount||this._dataSourceTotalCount())+this._totalCountCorrection)}totalCountCorrection(){return this._totalCountCorrection}items(){}itemsCount(){return this._dataSource.items().length}totalItemsCount(){return this.totalCount()}pageSize(){const i=this._dataSource;return arguments.length||i.paginate()?i.pageSize.apply(i,arguments):0}pageCount(){const i=this.totalItemsCount()-this._totalCountCorrection,a=this.pageSize();return a&&i>0?Math.max(1,Math.ceil(i/a)):1}hasKnownLastPage(){return this._hasLastPage||this._dataSource.totalCount()>=0}loadFromStore(i,a){const c=this._dataSource,g=new ye.cY;if(c)return(a=a||c.store()).load(i).done((y,D)=>{y&&!Array.isArray(y)&&Array.isArray(y.data)&&(D=y,y=y.data),g.resolve(y,D)}).fail(g.reject),g}isCustomLoading(){return!!this._isCustomLoading}load(i){const a=this,c=a._dataSource,g=new ye.cY;if(i){const y=c.store(),D=c.loadOptions(),Y={storeLoadOptions:(0,C.X)({},i,{langParams:D?.langParams}),isCustomLoading:!0};return(0,e.__)(y._customLoadOptions()||[],(xe,Le)=>{Le in Y.storeLoadOptions||(Y.storeLoadOptions[Le]=D[Le])}),this._isLoadingAll=i.isLoadingAll,a._scheduleCustomLoadCallbacks(g),c._scheduleLoadCallbacks(g),a._handleCustomizeStoreLoadOptions(Y),function(I,i){(0,w.O9)(i)?(0,b.uG)(I,i):I()}(()=>{if(!c.store())return g.reject("canceled");(0,ye.z7)(Y.data||a.loadFromStore(Y.storeLoadOptions)).done((xe,Le)=>{Y.data=xe,Y.extra=Le||{},a._handleDataLoaded(Y),i.requireTotalCount&&void 0===Y.extra.totalCount&&(Y.extra.totalCount=y.totalCount(Y.storeLoadOptions)),(0,ye.z7)(Y.data,Y.extra.totalCount).done((st,mt)=>{Y.extra.totalCount=mt,g.resolve(st,Y.extra)}).fail(g.reject)}).fail(g.reject)},a.option("loadingTimeout")),g.fail(function(){a._eventsStrategy.fireEvent("loadError",arguments)}).always(()=>{this._isLoadingAll=!1}).promise()}return c.load()}reload(i){return i?this._dataSource.reload():this._dataSource.load()}getCachedStoreData(){return this._cachedStoreData}isLoaded(){}pageIndex(i){}};const js={extend(I){oc=I(oc)},create:I=>new oc(I)};Dt.registerModule("data",{defaultOptions:Ks.defaultOptions,controllers:{data:class El extends Os{_getDataSourceAdapter(){return js}_getSpecificDataSourceOption(){const i=this.option("dataSource");return i&&!Array.isArray(i)&&this.option("keyExpr")&&We.A.log("W1011"),super._getSpecificDataSourceOption()}}}});const Ll=I=>class extends I{_applyColumnState(i){const a=this;let c,g;const y=a.option("sorting.mode"),{rootElement:D}=i,{column:Y}=i,xe=a._getIndicatorContainer(D);if("sort"===i.name){D.find(".dx-sort").remove(),!xe.children().length&&xe.remove();const Le="none"!==y&&Y.allowSorting,st=a.getController&&!!a.getController("columns").columnOption("sortIndex:1");return!(0,w.O9)(Y.groupIndex)&&(Le||(0,w.O9)(Y.sortOrder))&&(c="asc"===Y.sortOrder?"ascending":"descending",g=super._applyColumnState(i).toggleClass("dx-sort-up","asc"===Y.sortOrder).toggleClass("dx-sort-down","desc"===Y.sortOrder),st&&a.option("sorting.showSortIndexes")&&Y.sortIndex>=0&&((0,T.A)("<span>").addClass("dx-sort-index-icon").text(Y.sortIndex+1).appendTo(g),g.addClass("dx-sort-index")),Le&&i.rootElement.addClass(a.addWidgetPrefix("action"))),this._setAriaSortAttribute(Y,c,D,st),g}return super._applyColumnState(i)}_setAriaSortAttribute(i,a,c,g){if(c.removeAttr("aria-roledescription"),i.isGrouped){let y=this.localize("dxDataGrid-ariaNotSortedColumn");(0,w.O9)(i.sortOrder)&&(y=this.localize("asc"===i.sortOrder?"dxDataGrid-ariaSortedAscendingColumn":"dxDataGrid-ariaSortedDescendingColumn")),this.setAria("roledescription",y,c)}else if((0,w.O9)(i.sortOrder)){if(this.setAria("sort",a,c),g&&i.sortIndex>=0){const y=v.A.format("dxDataGrid-ariaColumnHeader"),D=v.A.format("dxDataGrid-ariaSortIndex",i.sortIndex+1);this.setAria("roledescription",`${y}, ${D}`,c)}}else this.setAria("sort","none",c)}_getIndicatorClassName(i){return"sort"===i?"dx-sort":"sortIndex"===i?"dx-sort-index-icon":super._getIndicatorClassName(i)}_renderIndicator(i){const{column:a}=i,c=i.container,g=i.indicator;if("sort"===i.name){const y=this.option("rtlEnabled");if((0,w.O9)(a.sortOrder)||g&&g.addClass("dx-sort-none"),c.children().length&&(!y&&"left"===i.columnAlignment||y&&"right"===i.columnAlignment))return void c.prepend(g)}super._renderIndicator(i)}_updateIndicator(i,a,c){if("sort"!==c||!(0,w.O9)(a.groupIndex))return super._updateIndicator.apply(this,arguments)}_getIndicatorElements(i,a){const c=super._getIndicatorElements(i);return a?c:c&&c.not(".dx-sort-none")}};Dt.registerModule("sorting",{defaultOptions:()=>({sorting:{mode:"single",ascendingText:v.A.format("dxDataGrid-sortingAscendingText"),descendingText:v.A.format("dxDataGrid-sortingDescendingText"),clearText:v.A.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}),extenders:{views:{columnHeadersView:I=>class extends(Ll(I)){optionChanged(i){"sorting"===i.name?(this._invalidate(),i.handled=!0):super.optionChanged(i)}_createRow(i){const a=super._createRow(i);return"header"===i.rowType&&P.A.on(a,(0,x.b4)(de.U,"dxDataGridColumnHeadersView"),"td",this.createAction(c=>{this._processHeaderAction(c.event,a)})),a}_processHeaderAction(i,a){if((0,T.A)(i.currentTarget).parent().get(0)!==a.get(0))return;const c=this;let g=null;const y=(0,T.A)(i.currentTarget),D=y.parent().index();let Y=-1;[].slice.call(c.getCellElements(D)).some((wn,Kn)=>{if(wn===y.get(0))return Y=Kn,!0});const Le=c._columnsController.getVisibleColumns(D)[Y],st=c.getController("editing"),mt=c.option("editing.mode");st&&st.isEditing()&&("batch"===mt||"cell"===mt)||!c._isSortableElement((0,T.A)(i.target))||Le&&!(0,w.O9)(Le.groupIndex)&&!Le.command&&(i.shiftKey?g="shift":(0,x.By)(i)&&(g="ctrl"),setTimeout(()=>{c._columnsController.changeSortOrder(Le.index,g)}))}_renderCellContent(i,a){const{column:g}=a;!g.command&&"header"===a.rowType&&this._applyColumnState({name:"sort",rootElement:i,column:g,showColumnLines:this.option("showColumnLines")}),super._renderCellContent.apply(this,arguments)}_columnOptionChanged(i){const{changeTypes:a}=i;1===a.length&&a.sorting?this._updateIndicators("sort"):super._columnOptionChanged(i)}},headerPanel:I=>class extends(Ll(I)){optionChanged(i){"sorting"===i.name?(this._invalidate(),i.handled=!0):super.optionChanged(i)}_createGroupPanelItem(i,a){const c=this,g=super._createGroupPanelItem(...arguments);return P.A.on(g,(0,x.b4)(de.U,"dxDataGridHeaderPanel"),c.createAction(()=>{c._processGroupItemAction(a.index)})),c._applyColumnState({name:"sort",rootElement:g,column:{alignment:c.option("rtlEnabled")?"right":"left",allowSorting:a.allowSorting,sortOrder:"desc"===a.sortOrder?"desc":"asc",isGrouped:!0},showColumnLines:!0}),g}_processGroupItemAction(i){setTimeout(()=>this.getController("columns").changeSortOrder(i))}}}}});var Sa=p(4602);const Ic="dx-freespace-row",kt="dx-last-row-border";function lo(I){return I?Math.round(I.scrollWidth()-I.clientWidth()):0}function Cs(I){let{rowType:i,column:a}=I;return"group"===i&&(0,w.O9)(a.groupIndex)&&!a.showWhenGrouped&&!a.command}function lr(I){let{element:i,watch:a,getter:c,callBack:g}=I;if(a){const y=a(c,g);P.A.on(i,Ee.N,y)}}const Xr=function(I,i){const a=(0,rn.Im)(i.text)&&"data"===i.rowType,{text:c}=i,g=I.get(0);a?Ot.setEmptyText(I):i.column.encodeHtml?g.textContent=c:g.innerHTML=c};Dt.registerModule("rows",{defaultOptions:()=>({hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:v.A.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},dataRowTemplate:null,columnAutoWidth:!1,noDataText:v.A.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}),views:{rowsView:class Ga extends fs{init(){super.init(),this._editingController=this.getController("editing"),this._resizingController=this.getController("resizing"),this._columnsResizerController=this.getController("columnsResizer"),this._focusController=this.getController("focus"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._validatingController=this.getController("validating"),this._errorHandlingController=this.getController("errorHandling"),this._columnHeadersView=this.getView("columnHeadersView"),this._rowHeight=0,this._scrollTop=0,this._scrollLeft=-1,this._scrollRight=0,this._hasHeight=void 0,this._contentChanges=[],this._dataController.loadingChanged.add((i,a)=>{this.setLoading(i,a)}),this._dataController.dataSourceChanged.add(()=>{this._scrollLeft>=0&&!this._dataController.isLoading()&&this._handleScroll({component:this.getScrollable(),forceUpdateScrollPosition:!0,scrollOffset:{top:this._scrollTop,left:this._scrollLeft}})})}_getDefaultTemplate(i){return"empty"===i.command?function(a){a.html("&nbsp;")}:Xr}renderFocusState(i){}_getDefaultGroupTemplate(i){const a=this.option("summary.texts");return function(c,g){const{data:y}=g;let D=`${g.column.caption}: ${g.text}`;const Y=c.get(0);g.summaryItems&&g.summaryItems.length&&(D+=` ${Ot.getGroupRowSummaryText(g.summaryItems,a)}`),y&&(g.groupContinuedMessage&&g.groupContinuesMessage?D+=` (${g.groupContinuedMessage}. ${g.groupContinuesMessage})`:g.groupContinuesMessage?D+=` (${g.groupContinuesMessage})`:g.groupContinuedMessage&&(D+=` (${g.groupContinuedMessage})`)),i.encodeHtml?Y.textContent=D:Y.innerHTML=D}}_update(i){}_updateCell(i,a){Cs(a)&&i.addClass("dx-group-cell"),super._updateCell.apply(this,arguments)}_getCellTemplate(i){const{column:c}=i;let g;return g=Cs(i)?c.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(c)}:("data"===i.rowType||c.command)&&c.cellTemplate?c.cellTemplate:{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(c)},g}_createRow(i,a){const c=super._createRow.apply(this,arguments);if(i){const g="group"===i.rowType,y="data"===i.rowType;y&&c.addClass("dx-data-row"),y&&this.option("showRowLines")&&c.addClass("dx-row-lines"),this.option("showColumnLines")&&c.addClass("dx-column-lines"),!1===i.visible&&c.hide(),g&&(c.addClass("dx-group-row"),this.setAriaExpandedAttribute(c,i))}return c}_rowPrepared(i,a,c){"data"===a.rowType&&(this.option("rowAlternationEnabled")&&(this._isAltRow(c)&&i.addClass("dx-row-alt"),lr({element:i.get(0),watch:a.watch,getter:()=>this._isAltRow(c),callBack:g=>{i.toggleClass("dx-row-alt",g)}})),this._setAriaRowIndex(a,i),lr({element:i.get(0),watch:a.watch,getter:()=>a.rowIndex,callBack:()=>this._setAriaRowIndex(a,i)})),super._rowPrepared.apply(this,arguments)}_setAriaRowIndex(i,a){if(!a.is("tr"))return;const{component:c}=this,g="standard"===c.option("scrolling.mode")&&!Ot.isVirtualRowRendering(c);let y=i.rowIndex+1;g?y=c.pageIndex()*c.pageSize()+y:y+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",y,a)}setAriaExpandedAttribute(i,a){const c=this.localize(a.isExpanded?"dxDataGrid-ariaExpandedRow":"dxDataGrid-ariaCollapsedRow");this.setAria("roledescription",c,i)}_afterRowPrepared(i){const a=i.args[0],c=this._dataController,g=c.getVisibleRows()[a.rowIndex],y=this.option("integrationOptions.watchMethod");if(!a.data||"data"!==a.rowType||a.isNewRow||!this.option("twoWayBindingEnabled")||!y||!g)return;const D=y(()=>c.generateDataValues(a.data,a.columns),()=>{c.repaintRows([g.rowIndex],this.option("repaintChangesOnly"))},{deep:!0,skipImmediate:!0});P.A.on(a.rowElement,Ee.N,D)}_renderScrollable(i){const a=this,c=a.element();if(c.children().length||c.append("<div>"),(i||!a._loadPanel)&&a._renderLoadPanel(c,c.parent(),a._dataController.isLocalStore()),(i||!a.getScrollable())&&a._dataController.isLoaded()){const g=a.getColumns();let y=!0;for(let D=0;D<g.length;D++)if(!g[D].width&&!g[D].minWidth){y=!1;break}(a.option("columnAutoWidth")||a._hasHeight||y||a._columnsController._isColumnFixing())&&a._renderScrollableCore(c)}}_handleScroll(i){const a=this.option("rtlEnabled"),c=i.component.option("useNative");this._scrollTop=i.scrollOffset.top,this._scrollLeft=i.scrollOffset.left;let g=i.scrollOffset.left;a&&(this._scrollRight=lo(i.component)-this._scrollLeft,c&&(g=-this._scrollRight),this.isScrollbarVisible(!0)||(this._scrollLeft=-1)),this.scrollChanged.fire((0,Oe.A)({},i.scrollOffset,{left:g}),this.name)}_renderScrollableCore(i){const a=this._createScrollableOptions(),c=this._handleScroll.bind(this);a.onScroll=c,this._scrollable=this._createComponent(i,Sa.A,a),this._scrollableContainer=this._scrollable&&(0,T.A)(this._scrollable.container())}_renderLoadPanel(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return Ot.renderLoadPanel.apply(this,arguments)}_renderContent(i,a,c){return i.empty().append(a),this._findContentElement()}_updateContent(i,a,c){return this._contentChanges.push({newTableElement:i,change:a,isFixedTableRendering:c}),this.waitAsyncTemplates().done(()=>{const g=this._contentChanges;this._contentChanges=[],g.forEach(y=>{let{newTableElement:D,change:Y,isFixedTableRendering:xe}=y;const Le=this.getTableElement(xe),st=this._findContentElement(xe),mt=Y?.changeType,on=[],wn=this.option("highlightChanges"),Kn=this.addWidgetPrefix("row-inserted-animation");"update"===mt?((0,e.__)(Y.rowIndices,(Ai,no)=>{var Yo;const ps=this._getRowElements(D).eq(Ai),Ls=null===(Yo=Y.changeTypes)||void 0===Yo?void 0:Yo[Ai],_r=Y.items&&Y.items[Ai];on.push(()=>{const Sr=this._getRowElements(Le),Dr=Sr.eq(no);switch(Ls){case"update":if(_r){var ia;const rl=null===(ia=Y.columnIndices)||void 0===ia?void 0:ia[Ai];(0,w.O9)(_r.visible)&&_r.visible!==Dr.is(":visible")?Dr.toggle(_r.visible):rl?this._updateCells(Dr,ps,rl):Dr.replaceWith(ps)}break;case"insert":if(Sr.length)Dr.length?ps.insertBefore(Dr):ps.insertAfter(Sr.last());else if(Le){const rl=ps.is("tbody")?Le:Le.children("tbody");ps.prependTo(rl)}wn&&Y.isLiveUpdate&&ps.addClass(Kn);break;case"remove":Dr.remove()}})}),(0,e.__)(on,function(){this()}),D.remove()):(this.setTableElement(D,xe),st.addClass(this.addWidgetPrefix("content")),this._setGridRole(st),this._renderContent(st,D,xe))})}).fail(()=>{this._contentChanges=[]})}_getGridRoleName(){return"grid"}_setGridRole(i){var a;const c=!(null!==(a=this._dataController)&&void 0!==a&&a.isEmpty()),g=this._getGridRoleName();null!=i&&i.length&&c&&this.setAria("role",g,i)}_createEmptyRow(i,a,c){const g=this;let y;const D=g._createRow(),Y=a?this.getFixedColumns():this.getColumns();D.addClass(i).toggleClass("dx-column-lines",g.option("showColumnLines"));for(let xe=0;xe<Y.length;xe++)y=g._createCell({column:Y[xe],rowType:"freeSpace",columnIndex:xe,columns:Y}),(0,w.kf)(c)&&y.css("height",c),D.append(y);return g.setAria("role","presentation",D),D}getFixedColumns(){throw new Error("Method not implemented.")}_appendEmptyRow(i,a,c){const g=this._getBodies(i),y=!g.length||a.is("tbody"),D=y?i:g;if("top"===c){if(D.first().prepend(a),y){const Y=D.children("colgroup");D.prepend(Y)}}else D.last().append(a)}_renderFreeSpaceRow(i,a){let c=this._createEmptyRow(Ic);c=this._wrapRowIfNeed(i,c,"refresh"===a?.changeType),this._appendEmptyRow(i,c)}_checkRowKeys(i){const a=this,c=a._getRows(i),g=a._dataController.store()&&a._dataController.store().key();g&&c.some(y=>{if("data"===y.rowType&&void 0===y.key)return a._dataController.fireError("E1046",g),!0})}_needUpdateRowHeight(i){return i>0&&!this._rowHeight}_getRowsHeight(i){return(i=i||this._tableElement).children("tbody").children().not(".dx-virtual-row").not(`.${Ic}`).toArray().reduce((c,g)=>c+(0,Me.N)(g).height,0)}_updateRowHeight(){const i=this,a=i.getTableElement(),c=i._dataController.items().length;if(a&&i._needUpdateRowHeight(c)){const g=i._getRowsHeight(a);i._rowHeight=g/c}}_findContentElement(i){let a=this.element();const c=this.getScrollable();if(a)return c&&(a=(0,T.A)(c.content())),a.children().first()}_getRowElements(i){const a=super._getRowElements(i);return a&&a.not(`.${Ic}`)}_getFreeSpaceRowElements(i){const a=i||this.getTableElements();return a&&a.children("tbody").children(`.${Ic}`)}_getNoDataText(){return this.option("noDataText")}_rowClick(i){const a=this._dataController.items()[i.rowIndex]||{};this.executeAction("onRowClick",(0,C.X)({evaluate:c=>(0,nn.Hz)(c)(a.data)},i,a))}_rowDblClick(i){const a=this._dataController.items()[i.rowIndex]||{};this.executeAction("onRowDblClick",(0,C.X)({},i,a))}_getColumnsCountBeforeGroups(i){for(let a=0;a<i.length;a++)if("groupExpand"===i[a].type)return a;return 0}_getGroupCellOptions(i){const a=this._getColumnsCountBeforeGroups(i.columns),c=(i.row.groupIndex||0)+a;return{columnIndex:c,colspan:i.columns.length-c-1}}_needWrapRow(){return super._needWrapRow.apply(this,arguments)||!!this.option("dataRowTemplate")}_renderCells(i,a){"group"===a.row.rowType?this._renderGroupedCells(i,a):a.row.values&&super._renderCells(i,a)}_renderGroupedCells(i,a){const{row:c}=a;let g;const{columns:y}=a,{rowIndex:D}=c;let Y;const xe=this._getGroupCellOptions(a);for(let mt=0;mt<=xe.columnIndex;mt++)mt===xe.columnIndex&&y[mt].allowCollapsing&&"infinite"!==a.scrollingMode?(Y=!!c.isExpanded,g=y[mt]):(Y=null,g={command:"expand",cssClass:y[mt].cssClass}),this._needRenderCell(mt,a.columnIndices)&&this._renderCell(i,{value:Y,row:c,rowIndex:D,column:g,columnIndex:mt,columnIndices:a.columnIndices,change:a.change});const Le=(0,Me.n)(this.option("rtlEnabled")),st=(0,C.X)({},y[xe.columnIndex],{command:null,type:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:Le});xe.colspan>1&&(st.colspan=xe.colspan),this._needRenderCell(xe.columnIndex+1,a.columnIndices)&&this._renderCell(i,{value:c.values[c.groupIndex],row:c,rowIndex:D,column:st,columnIndex:xe.columnIndex+1,columnIndices:a.columnIndices,change:a.change})}_renderRows(i,a){const c=this,g=c.option("scrolling.mode");super._renderRows(i,(0,C.X)({scrollingMode:g},a)),c._checkRowKeys(a.change),c._renderFreeSpaceRow(i,a.change),c._hasHeight||c.updateFreeSpaceRowHeight(i)}_renderDataRowByTemplate(i,a,c){const{row:g}=a,y=(0,C.X)({columns:a.columns},g),D=this._createRow(g,"tbody");D.appendTo(i),this.renderTemplate(D,c,y,!0,a.change),this._rowPrepared(D,y,a.row)}_renderRow(i,a){const{row:c}=a,{rowTemplate:g}=this.option(),y=this.option("dataRowTemplate");"data"===c.rowType&&y?this._renderDataRowByTemplate(i,a,y):"data"!==c.rowType&&"group"!==c.rowType||(0,w.O9)(c.groupIndex)||!g?super._renderRow(i,a):this.renderTemplate(i,g,(0,C.X)({columns:a.columns},c),!0)}_renderTable(i){const a=this,c=super._renderTable(i),g=function(){const y=a.getScrollable();y&&a.element().closest((0,Ye.zk)().document).length&&(a.resizeCompleted.remove(g),y._visibilityChanged(!0))};return(0,w.O9)(a.getTableElement())?a._renderScrollable():(a.setTableElement(c),a._renderScrollable(!0),a.resizeCompleted.add(g)),c}_createTable(){const i=super._createTable.apply(this,arguments);return(this.option().rowTemplate||this.option().dataRowTemplate)&&i.appendTo(this.component.$element()),i}_renderCore(i){const a=this.element();a.addClass(this.addWidgetPrefix("rowsview")).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")),a.toggleClass("dx-empty",this._dataController.isEmpty()),this.setAria("role","presentation",a);const c=this._renderTable({change:i}),g=this._updateContent(c,i);return super._renderCore(i),this._lastColumnWidths=null,g}_getRows(i){return i&&i.items||this._dataController.items()}_getCellOptions(i){const a=this,{column:c}=i,{row:g}=i,{data:y}=g,D=g&&g.summaryCells,{value:Y}=i,xe=Ot.getDisplayValue(c,Y,y,g.rowType),Le=super._getCellOptions(i);if(Le.value=Y,Le.oldValue=i.oldValue,Le.displayValue=xe,Le.row=g,Le.key=g.key,Le.data=y,Le.rowType=g.rowType,Le.values=g.values,Le.text=c.command?"":Ot.formatValue(xe,c),Le.rowIndex=g.rowIndex,Le.summaryItems=D&&D[i.columnIndex],Le.resized=c.resizedCallbacks,(0,w.O9)(c.groupIndex)&&!c.command){const st=a.option("grouping.texts"),mt=a.option("scrolling.mode");"virtual"!==mt&&"infinite"!==mt&&(Le.groupContinuesMessage=y&&y.isContinuationOnNextPage&&st&&st.groupContinuesMessage,Le.groupContinuedMessage=y&&y.isContinuation&&st&&st.groupContinuedMessage)}return Le}_setRowsOpacityCore(i,a,c,g){const y=this._columnsController,D=y.getColumns(),Y=D&&D[c],xe=Y&&Y.isBand&&Y.index;(0,e.__)(i,(Le,st)=>{if(!(0,T.A)(st).hasClass("dx-group-row"))for(let mt=0;mt<a.length&&(!((0,w.kf)(xe)&&y.isParentBandColumn(a[mt].index,xe)||a[mt].index===c)||(i.eq(Le).children().eq(mt).css({opacity:g}),(0,w.kf)(xe)));mt++);})}_getDevicePixelRatio(){return(0,Ye.zk)().devicePixelRatio}renderNoDataText(){return Ot.renderNoDataText.apply(this,arguments)}getCellOptions(i,a){const c=this._dataController.items()[i];let g,y;return c&&(y=(0,w.Kg)(a)?this._columnsController.columnOption(a):this._columnsController.getVisibleColumns()[a],y&&(g=this._getCellOptions({value:y.calculateCellValue(c.data),rowIndex:c.rowIndex,row:c,column:y}))),g}getRow(i){if(i>=0){const a=this._getRowElements();if(a.length>i)return(0,T.A)(a[i])}}updateFreeSpaceRowHeight(i){const a=this._dataController,c=a.items(!0).length,g=this._findContentElement(),y=this._getFreeSpaceRowElements(i);if(y&&g&&a.totalCount()>=0){let D=!1;if(c>0)if(this._hasHeight)y.hide(),(0,b.OX)(()=>{const Y=this.getScrollbarWidth(!0),xe=(0,k.Oq)(this.element())-Y,st=xe-(0,k.P$)(g)>0,mt=this._getRowsHeight(g.children().first()),on=i||this.getTableElements(),Ai=xe-mt-Math.ceil(parseFloat(on.css("borderTopWidth")))-this._getHeightCorrection();st&&(0,b.zE)(()=>{y.css("height",Ai),D=!0,y.show()}),(0,b.zE)(()=>this._updateLastRowBorder(D))});else{const Y=a.pageSize()-c,xe=this.option("scrolling.mode");Y>0&&a.pageCount()>1&&"virtual"!==xe&&"infinite"!==xe&&((0,_e.k$)(y,Y*this._rowHeight),D=!0),!D&&i?(0,_e.k$)(y,0):y.toggle(D),this._updateLastRowBorder(D)}else y.css("height",0),y.show(),this._updateLastRowBorder(!0)}}_getHeightCorrection(){const i=Ce.A.webkit&&this._getDevicePixelRatio()>=2,a=Ce.A.chrome&&Ce.A.version>=91,c=Ce.A.mozilla&&Ce.A.version>=70&&!this.option("showRowLines");return i||c||a?1:0}_columnOptionChanged(i){const{optionNames:a}=i;i.changeTypes.grouping||(a.width||a.visibleWidth)&&(super._columnOptionChanged(i),this._fireColumnResizedCallbacks())}getScrollable(){return this._scrollable}_handleDataChanged(i){const a=this;switch(i.changeType){case"refresh":case"prepend":case"append":case"update":a.render(null,i);break;default:a._update(i)}}publicMethods(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]}contentWidth(){return(0,k.RG)(this.element())-this.getScrollbarWidth()}getScrollbarWidth(i){const a=this._scrollableContainer&&this._scrollableContainer.get(0);let c=0;return a&&(i?(c=a.clientHeight?a.offsetHeight-a.clientHeight:0,c+=function(I){const i=I.getScrollable();return i?Math.ceil(parseFloat((0,T.A)(i.content()).css("paddingBottom"))):0}(this)):c=a.clientWidth?a.offsetWidth-a.clientWidth:0),c>0?c:0}_fireColumnResizedCallbacks(){const i=this._lastColumnWidths||[],a=[],c=this.getColumns();for(let g=0;g<c.length;g++)a[g]=c[g].visibleWidth,c[g].resizedCallbacks&&!(0,w.O9)(c[g].groupIndex)&&i[g]!==a[g]&&c[g].resizedCallbacks.fire(a[g]);this._lastColumnWidths=a}_updateLastRowBorder(i){this.option("showBorders")&&!i?this.element().addClass(kt):this.element().removeClass(kt)}_updateScrollable(){const i=Sa.A.getInstance(this.element());i&&(i.update(),(i.option("useNative")||null==i||!i.isRenovated())&&this._updateHorizontalScrollPosition())}_updateHorizontalScrollPosition(){const i=this.getScrollable(),a=i&&i.scrollOffset().left;if(this.option("rtlEnabled")){const g=lo(i);g-a!==this._scrollRight&&(this._scrollLeft=g-this._scrollRight)}this._scrollLeft>=0&&a!==this._scrollLeft&&i.scrollTo({x:this._scrollLeft})}_resizeCore(){const i=this;i._fireColumnResizedCallbacks(),i._updateRowHeight(),(0,b.zE)(()=>{i._renderScrollable(),i.renderNoDataText(),i.updateFreeSpaceRowHeight(),(0,b.OX)(()=>{i._updateScrollable()})})}scrollTo(i){const a=this.element(),c=a&&Sa.A.getInstance(a);c&&c.scrollTo(i)}height(i){const c=this.element();if(0===arguments.length)return c?(0,k.P$)(c,!0):0;(0,w.O9)(i)&&c&&(this.hasHeight("auto"!==i),(0,_e.k$)(c,i))}hasHeight(i){if(0===arguments.length)return!!this._hasHeight;this._hasHeight=i}setLoading(i,a){const c=this;let g=c._loadPanel;const y=c._dataController,D=c.option("loadPanel")||{},Y=y.isLoaded()?D.animation:null,xe=c.element();if((0,Ye.Vd)()&&(!g&&void 0!==a&&y.isLocalStore()&&"auto"===D.enabled&&xe&&(c._renderLoadPanel(xe,xe.parent()),g=c._loadPanel),g)){const Le={message:a||D.text,animation:Y,visible:i};i&&(Le.position=Ot.calculateLoadPanelPosition(xe)),clearTimeout(c._hideLoadingTimeoutID),g.option("visible")&&!i?c._hideLoadingTimeoutID=setTimeout(()=>{g.option(Le)},200):g.option(Le)}}setRowsOpacity(i,a){const c=this._getRowElements().not(".dx-group-row")||[];this._setRowsOpacityCore(c,this.getColumns(),i,a)}_getCellElementsCore(i){const a=super._getCellElementsCore.apply(this,arguments);if(a){const c=a.filter(".dx-group-cell").index();if(c>=0&&a.length>c+1)return a.slice(0,c+1)}return a}_getBoundaryVisibleItemIndex(i,a){const c=this;let g=0,y=0,D=0,Y=c._scrollTop;const xe=c._findContentElement(),Le=xe&&xe.offset().top,st=this._dataController.items(),mt=c.getTableElement();if(st.length&&mt){const on=c._getRowElements(mt).filter(":visible");for(i||(Y+=(0,k.P$)(this._hasHeight?this.element():(0,Ye.zk)())),g=0;g<st.length;g++){y=D;const wn=(0,T.A)(on).eq(g);if(wn.length&&(D=wn.offset(),D=(i?D.top:D.top+(0,k.P$)(wn))-Le,D>Y)){g&&(a||2*Y<Math.round(D+y))&&g--;break}}g&&g===st.length&&g--}return g}getTopVisibleItemIndex(i){return this._getBoundaryVisibleItemIndex(!0,i)}getBottomVisibleItemIndex(i){return this._getBoundaryVisibleItemIndex(!1,i)}getTopVisibleRowData(){const i=this.getTopVisibleItemIndex(),a=this._dataController.items();if(a[i])return a[i].data}_scrollToElement(i,a){const c=this.getScrollable();c&&c.scrollToElement(i,a)}optionChanged(i){const a=this;switch(super.optionChanged(i),i.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"dataRowTemplate":case"twoWayBindingEnabled":a._invalidate(!0,!0),i.handled=!0;break;case"scrolling":a._rowHeight=null,a._tableElement=null,i.handled=!0;break;case"rtlEnabled":a._rowHeight=null,a._tableElement=null;break;case"loadPanel":a._tableElement=null,a._invalidate(!0,"loadPanel.enabled"!==i.fullName),i.handled=!0;break;case"noDataText":a.renderNoDataText(),i.handled=!0}}setAriaOwns(i,a,c){const g=this._findContentElement(),y=this.getTableElement();null!=y&&y.length&&this.setAria("owns",`${i??""} ${y.attr("id")??""} ${a??""}`.trim(),g)}dispose(){super.dispose(),clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()}setScrollerSpacing(i,a){}getFixedContentElement(){var i;const a=this.addWidgetPrefix("content-fixed");return null===(i=this.element())||void 0===i?void 0:i.children(`.${a}`)}_restoreErrorRow(i){}isElementInside(i){return i.closest(`.${this.addWidgetPrefix("rowsview")}`).is(this.element())}}}});var Wa=p(784);const wl={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},Ma=["columnHeadersView","rowsView","footerView","headerPanel"];Dt.registerModule("contextMenu",{defaultOptions:()=>({onContextMenuPreparing:null}),controllers:{contextMenu:class Wc extends ft.ViewController{init(){this.createAction("onContextMenuPreparing")}getContextMenuItems(i){if(!i)return!1;const a=this,c=(0,T.A)(i.target);let g,y,D,Y;return(0,e.__)(Ma,function(){const xe=a.getView(this);if(g=xe&&xe.element(),g&&(g.is(c)||g.find(c).length)){var Le;D=c.closest(".dx-row > td, .dx-row > tr"),y=D.parent();const st=xe.getRowIndex(y),mt=D[0]&&D[0].cellIndex,on=y.data("options"),wn={event:i,targetElement:(0,W.cc)(c),target:wl[this],rowIndex:st,row:xe._getRows()[st],columnIndex:mt,column:null==on||null===(Le=on.cells)||void 0===Le||null===(Le=Le[mt])||void 0===Le?void 0:Le.column};if(wn.items=xe.getContextMenuItems&&xe.getContextMenuItems(wn),a.executeAction("onContextMenuPreparing",wn),a._contextMenuPrepared(wn),Y=wn.items,Y)return!1}}),Y}_contextMenuPrepared(i){}}},views:{contextMenuView:class Zd extends ft.View{init(){super.init(),this._contextMenuController=this.getController("contextMenu")}_renderCore(){const i=this.element().addClass("dx-context-menu");this.setAria("role","presentation",i),this._createComponent(i,Wa.A,{onPositioning:a=>{const{event:c}=a,g=a.component,y=this._contextMenuController.getContextMenuItems(c);y?(g.option("items",y),c.stopPropagation()):a.cancel=!0},onItemClick(a){var c,g;null===(c=a.itemData)||void 0===c||null===(g=c.onItemClick)||void 0===g||g.call(c,a)},cssClass:this.getWidgetContainerClass(),target:this.component.$element()})}}}}),Dt.registerModule("errorHandling",{defaultOptions:()=>({errorRowEnabled:!0}),controllers:{errorHandling:class Mc extends ft.ViewController{init(){this._resizingController=this.getController("resizing"),this._columnsController=this.getController("columns"),this._columnHeadersView=this.getView("columnHeadersView"),this._rowsView=this.getView("rowsView")}_createErrorRow(i,a){let c,g;const y=this._renderErrorMessage(i);return a?(c=(0,T.A)("<tr>").attr("role","row").addClass("dx-error-row"),g=(0,T.A)("<div>").addClass("dx-closebutton").addClass(this.addWidgetPrefix("action")),P.A.on(g,de.U,this.createAction(D=>{var Y,xe;const Le=D.event;let st;const mt=(0,T.A)(Le.currentTarget).closest(".dx-error-row").index();Le.stopPropagation(),(0,e.__)(a,(on,wn)=>{st=(0,T.A)(wn).children("tbody").children("tr").eq(mt),this.removeErrorRow(st)}),null===(Y=this._resizingController)||void 0===Y||null===(xe=Y.fireContentReadyAction)||void 0===xe||xe.call(Y)})),(0,T.A)("<td>").attr({colSpan:this._columnsController.getVisibleColumns().length,role:"gridcell"}).prepend(g).append(y).appendTo(c),c):y}_renderErrorMessage(i){const a=i.url?i.message.replace(i.url,""):i.message||i,c=(0,T.A)("<div>").attr("role","alert").attr("aria-roledescription",v.A.format("dxDataGrid-ariaError")).addClass("dx-error-message").text(a);return i.url&&(0,T.A)("<a>").attr("href",i.url).text(i.url).appendTo(c),c}renderErrorRow(i,a,c){var g,y;const D=this;let Y,xe;if(c)return c.find(".dx-error-message").remove(),Y=D._createErrorRow(i),c.prepend(Y),Y;const Le=a>=0||!D._columnHeadersView.isVisible()?D._rowsView:D._columnHeadersView,st=Le.getTableElements();return(0,e.__)(st,(mt,on)=>{if(Y=D._createErrorRow(i,st),xe=xe||Y,a>=0){const wn=Le._getRowElements((0,T.A)(on)).eq(a);D.removeErrorRow(wn.next()),Y.insertAfter(wn)}else{const wn=(0,T.A)(on).children("tbody"),Kn=wn.children("tr");D._columnHeadersView.isVisible()?(D.removeErrorRow(Kn.last()),(0,T.A)(on).append(Y)):(D.removeErrorRow(Kn.first()),wn.first().prepend(Y))}}),null===(g=this._resizingController)||void 0===g||null===(y=g.fireContentReadyAction)||void 0===y||y.call(g),xe}removeErrorRow(i){if(!i){const a=this._columnHeadersView&&this._columnHeadersView.element();if(!(i=a&&a.find(".dx-error-row"))||!i.length){const c=this._rowsView.element();i=c&&c.find(".dx-error-row")}}i&&i.hasClass("dx-error-row")&&i.remove()}optionChanged(i){"errorRowEnabled"===i.name?i.handled=!0:super.optionChanged(i)}}},extenders:{controllers:{data:I=>class extends I{init(){super.init(),this.dataErrorOccurred.add((i,a)=>{this.option("errorRowEnabled")&&this._errorHandlingController.renderErrorRow(i,void 0,a)}),this.changed.add(i=>{var a,c;i&&"loadError"===i.changeType||!this._editingController||this._editingController.hasChanges()||null===(a=this._errorHandlingController)||void 0===a||null===(c=a.removeErrorRow)||void 0===c||c.call(a)})}}}}});const eu=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],Sl=function(I){return(0,w.Kg)(I)&&I.endsWith("%")},tu=function(I,i){const a=I._rowsView.contentWidth();return a-I._getTotalWidth(i,a)},Cd=function(I,i,a,c){return tu(I,c.map((g,y)=>y===i?a:g))};Dt.registerModule("gridView",{defaultOptions:()=>({showBorders:!1,renderAsync:!1}),controllers:{resizing:class Kc extends ft.ViewController{init(){this._prevContentMinHeight=null,this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._columnHeadersView=this.getView("columnHeadersView"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._editorFactoryController=this.getController("editorFactory"),this._footerView=this.getView("footerView"),this._rowsView=this.getView("rowsView"),this._gridView=this.getView("gridView")}_initPostRenderHandlers(){this._refreshSizesHandler||(this._refreshSizesHandler=i=>{let a=(new ye.cY).resolve(null);const c=i?.changeType,g=i?.isDelayed,y=c&&"updateSelection"!==c&&"updateFocusedRow"!==c&&"pageIndex"!==c&&!g;this._dataController.changed.remove(this._refreshSizesHandler),this._checkSize()&&(a=this._refreshSizes(i)),y&&(0,ye.z7)(a).done(()=>{this._setAriaLabel(),this.fireContentReadyAction()})},this._dataController.changed.add(()=>{this._dataController.changed.add(this._refreshSizesHandler)}))}_refreshSizes(i){let a=(new ye.cY).resolve(null);const c=i?.changeType,g=i?.isDelayed,y=this._dataController.items();if(i&&"refresh"!==c&&"prepend"!==c&&"append"!==c){if("update"===c){var D;if(0===(null===(D=i.changeTypes)||void 0===D?void 0:D.length))return a;!(y.length>1||"insert"!==i.changeTypes[0])||0===y.length&&"remove"===i.changeTypes[0]||i.needUpdateDimensions?a=this.resize():(a=new ye.cY,this._waitAsyncTemplates().done(()=>{(0,b.OX)(()=>(0,b.zE)(()=>(0,b.OX)(()=>{this._setScrollerSpacing(),this._rowsView.resize(),a.resolve()})))}).fail(a.reject))}}else g||(a=this.resize());return a}fireContentReadyAction(){this.component._fireContentReadyAction()}_getWidgetAriaLabel(){return"dxDataGrid-ariaDataGrid"}_setAriaLabel(){var i;const a=(null===(i=this._columnsController)||void 0===i||null===(i=i._columns)||void 0===i?void 0:i.filter(Y=>{let{visible:xe}=Y;return!!xe}).length)??0,c=Math.max(0,this._dataController.totalItemsCount()),g=this._getWidgetAriaLabel(),y=v.A.format(g,c,a),D=this.component.$element().children(".dx-gridbase-container");this.component.setAria("label",y,D),this._gridView.setWidgetA11yStatusText(y)}_getBestFitWidths(){var i;const a=this._rowsView,c=this._columnHeadersView;let g=a.getColumnWidths();if(null===(i=g)||void 0===i||!i.length){var y;const D=c.getTableElement();c.setTableElement(null===(y=a.getTableElement())||void 0===y?void 0:y.children(".dx-header")),g=c.getColumnWidths(),c.setTableElement(D)}return g}_setVisibleWidths(i,a){const c=this._columnsController;c.beginUpdate(),(0,e.__)(i,(g,y)=>{const D=c.getColumnId(y);c.columnOption(D,"visibleWidth",a[g])}),c.endUpdate()}_toggleBestFitModeForView(i,a,c){if(!i||!i.isVisible())return;const g=this._rowsView.getTableElements(),y=i.getTableElements();(0,e.__)(g,(D,Y)=>{let xe;const Le=(0,T.A)(Y),st=y.eq(D);st&&st.length&&(xe=c?st.children("tbody").appendTo(Le):Le.children(`.${a}`).appendTo(st),xe.toggleClass(a,c),xe.toggleClass(this.addWidgetPrefix("best-fit"),c))})}_toggleBestFitMode(i){const a=this._rowsView.getTableElement(),c=this._rowsView.getTableElements().eq(1);a&&(a.css("tableLayout",i?"auto":"fixed"),a.children("colgroup").css("display",i?"none":""),(0,e.__)(c.find("tr.dx-group-row"),(g,y)=>{(0,T.A)(y).css("display",i?"none":"")}),c.toggleClass(this.addWidgetPrefix("table-fixed"),!i),this._toggleBestFitModeForView(this._columnHeadersView,"dx-header",i),this._toggleBestFitModeForView(this._footerView,"dx-footer",i),this._needStretch()&&(a.get(0).style.width=i?"auto":""))}_toggleContentMinHeight(i){const a=this._rowsView.getScrollable(),c=this._rowsView._findContentElement();!1===a?.option("useNative")&&(!0===i&&(this._prevContentMinHeight=c.get(0).style.minHeight),(0,w.O9)(this._prevContentMinHeight)&&c.css({minHeight:i?Ot.getContentHeightLimit(Ce.A):this._prevContentMinHeight}))}_synchronizeColumns(){const i=this._columnsController,a=i.getVisibleColumns(),c=this.option("columnAutoWidth"),g=this.option("wordWrapEnabled"),y=a.some(Kn=>!(0,w.O9)(Kn.width));let xe,mt,on,D=this._needBestFit(),Y=!1,Le=!1,st=[];!D&&(0,e.__)(a,(Kn,Ai)=>{if("auto"===Ai.width)return D=!0,!1}),(0,e.__)(a,(Kn,Ai)=>{if(Ai.minWidth)return Y=!0,!1}),this._setVisibleWidths(a,[]);const wn=this.component.$element();D&&(mt=m.A.getActiveElement(wn.get(0)),on=Ot.getSelectionRange(mt),this._toggleBestFitMode(!0),xe=!0),this._toggleContentMinHeight(g),wn&&wn.get(0)&&this._maxWidth&&(delete this._maxWidth,wn[0].style.maxWidth=""),(0,b.OX)(()=>{D?(st=this._getBestFitWidths(),(0,e.__)(a,(Kn,Ai)=>{const no=i.getColumnId(Ai);i.columnOption(no,"bestFitWidth",st[Kn],!0)})):Y&&(st=this._getBestFitWidths()),(0,e.__)(a,function(Kn){const{width:Ai}=this;var I;"auto"!==Ai&&((0,w.O9)(Ai)?st[Kn]=(0,w.kf)(Ai)||(0,w.Kg)(I=Ai)&&I.endsWith("px")?parseFloat(Ai):Ai:c||(st[Kn]=void 0))}),xe&&(this._toggleBestFitMode(!1),xe=!1,mt&&mt!==m.A.getActiveElement()&&((0,Me.N)(mt).bottom<0||function(I,i){(function ce(I,i){J=!0,I.focus({preventScroll:i}),J=!1})(I,!0),Ot.setSelectionRange(I,i)}(mt,on))),Le=this._correctColumnWidths(st,a),c&&(function(){let Kn;(0,e.__)(a,(Ai,no)=>{"groupExpand"===no.type&&(Kn=st[Ai])}),(0,e.__)(a,(Ai,no)=>{"groupExpand"===no.type&&Kn&&(st[Ai]=Kn)})}(),this._needStretch()&&this._processStretch(st,a)),(0,b.zE)(()=>{(D||Le||y)&&this._setVisibleWidths(a,st),g&&this._toggleContentMinHeight(!1)})})}_needBestFit(){return this.option("columnAutoWidth")}_needStretch(){return this._columnsController.getVisibleColumns().some(i=>"auto"===i.width&&!i.command)}_getAverageColumnsWidth(i){return tu(this,i)/i.filter(g=>void 0===g).length}_correctColumnWidths(i,a){const c=this;let g,y=!1,D=!1,Y=!1;const xe=c.component.$element(),Le=c._hasWidth;for(g=0;g<a.length;g++){const st=g,mt=a[st],on="adaptiveHidden"===i[st];let wn=i[st];const{minWidth:Kn}=mt;Kn&&(void 0===wn?wn=c._getAverageColumnsWidth(i):Sl(wn)&&Cd(c,st,Kn,i)<0&&(wn=-1));const Ai=c._getRealColumnWidth(st,i.map((no,Yo)=>st===Yo?wn:no));Kn&&!on&&Ai<Kn&&(i[st]=Kn,Y=!0,g=-1),(0,w.O9)(mt.width)||(D=!0),Sl(mt.width)&&(y=!0)}if(!D&&i.length){const st=c._rowsView.element(),mt=c._rowsView.contentWidth(),on=c._rowsView.getScrollbarWidth(),wn=c._getTotalWidth(i,mt);if(wn<mt){const Kn=Ot.getLastResizableColumnIndex(a,i);if(Kn>=0&&(i[Kn]="auto",Y=!0,!1===Le&&!y)){const Ai=c.option("showBorders")?Math.ceil((0,k.Ot)(st)-(0,k.hh)(st)):0;c._maxWidth=wn+on+Ai,xe.css("maxWidth",c._maxWidth)}}}return Y}_processStretch(i,a){const c=this._rowsView.contentWidth(),g=this._getTotalWidth(i,c),y={length:0};if(!i.length)return;(0,e.__)(a,function(Le){(this.width||"adaptiveHidden"===i[Le])&&(y[Le]=!0,y.length++)});const D=c-g,Y=Math.floor(D/(i.length-y.length));let xe=D-Y*(i.length-y.length);if(D>=0)for(let Le=0;Le<i.length;Le++)y[Le]||(i[Le]+=Y,xe>0&&(xe<1?(i[Le]+=xe,xe=0):(i[Le]++,xe--)))}_getRealColumnWidth(i,a,c){let g=1;const y=a[i];if(!Sl(y))return parseFloat(y);const D=a.reduce((st,mt,on)=>Sl(mt)?st+parseFloat(mt):st,0),Y=a.reduce((st,mt)=>!mt||"adaptiveHidden"===mt||Sl(mt)?st:st+parseFloat(mt),0),xe=(c=c||this._rowsView.contentWidth())-Y,Le=D*c/100;return Y>0&&Le+Y>=c&&(g=Le>xe?xe/Le:1),parseFloat(y)*c*g/100}_getTotalWidth(i,a){let c=0;for(let g=0;g<i.length;g++){const y=i[g];y&&"adaptiveHidden"!==y&&(c+=this._getRealColumnWidth(g,i,a))}return Math.ceil(c)}_getGroupElement(){return this.component.$element().children().get(0)}updateSize(i){const a=this,c=(0,T.A)(i),g=a.addWidgetPrefix("important-margin");if(void 0===a._hasHeight&&c&&c.is(":visible")&&(0,k.RG)(c)){const y=c.children(`.${a.getWidgetContainerClass()}`);y.length&&y.detach(),a._hasHeight=!!(0,k.Oq)(c);const D=(0,k.RG)(c);c.addClass(g),a._hasWidth=(0,k.RG)(c)===D,c.removeClass(g),y.length&&y.appendTo(c)}}publicMethods(){return["resize","updateDimensions"]}_waitAsyncTemplates(){var i,a,c;return(0,ye.z7)(null===(i=this._columnHeadersView)||void 0===i?void 0:i.waitAsyncTemplates(!0),null===(a=this._rowsView)||void 0===a?void 0:a.waitAsyncTemplates(!0),null===(c=this._footerView)||void 0===c?void 0:c.waitAsyncTemplates(!0))}resize(){if(this.component._requireResize)return(new ye.cY).resolve();const i=new ye.cY;return this._waitAsyncTemplates().done(()=>{(0,ye.z7)(this.updateDimensions()).done(i.resolve).fail(i.reject)}).fail(i.reject),i.promise()}updateDimensions(i){const a=this;if(a._initPostRenderHandlers(),!a._checkSize(i))return;const c=a._resizeDeferred,g=a._resizeDeferred=new ye.cY;return(0,ye.z7)(c).always(()=>{(0,b.zE)(()=>{a._dataController.isLoaded()&&a._synchronizeColumns(),a._resetGroupElementHeight(),(0,b.OX)(()=>{(0,b.zE)(()=>{(0,b.OX)(()=>{a._updateDimensionsCore()})})})}).done(g.resolve).fail(g.reject)}),g.promise()}_resetGroupElementHeight(){const i=this._getGroupElement(),a=this._rowsView.getScrollable();i&&i.style.height&&(!a||!a.scrollTop())&&(i.style.height="")}_checkSize(i){const a=this.component.$element(),c=a.is(":visible"),g=this._lastWidth!==(0,k.RG)(a)||this._lastHeight!==(0,k.Oq)(a)||this._devicePixelRatio!==(0,Ye.zk)().devicePixelRatio;return c&&(!i||g)}_setScrollerSpacingCore(){const i=this,a=i._rowsView.getScrollbarWidth(),c=i._rowsView.getScrollbarWidth(!0);(0,b.zE)(()=>{i._columnHeadersView&&i._columnHeadersView.setScrollerSpacing(a),i._footerView&&i._footerView.setScrollerSpacing(a),i._rowsView.setScrollerSpacing(a,c)})}_setScrollerSpacing(){const i=this._rowsView.getScrollable(),a=!0===this.option("scrolling.useNative");!i||a?(0,b.zE)(()=>{(0,b.OX)(()=>{this._setScrollerSpacingCore()})}):this._setScrollerSpacingCore()}_setAriaOwns(){var i,a,c;const g=null===(i=this._columnHeadersView)||void 0===i?void 0:i.getTableElement(),y=null===(a=this._footerView)||void 0===a?void 0:a.getTableElement();null===(c=this._rowsView)||void 0===c||c.setAriaOwns(g?.attr("id"),y?.attr("id"))}_updateDimensionsCore(){const i=this,a=i._dataController,c=i._rowsView,g=i.component.$element(),y=this._getGroupElement(),D=(0,k.Oq)(g),Y=i.option("height")??g.get(0).style.height,xe=!!Y&&"auto"!==Y,Le=parseInt(g.css("maxHeight")),st=Le&&D>=Le,mt=y&&y.scrollHeight===y.offsetHeight;i.updateSize(g),(0,b.zE)(()=>{c.hasHeight(i._hasHeight||!!Le||xe),this._setAriaOwns(),st&&!mt&&(0,T.A)(y).css("height",Le),a.isLoaded()?(0,b.OX)(()=>{i._updateLastSizes(g),i._setScrollerSpacing(),(0,e.__)(eu,(wn,Kn)=>{const Ai=i.getView(Kn);Ai&&Ai.resize()}),this._editorFactoryController&&this._editorFactoryController.resize()}):c.setLoading(a.isLoading())})}_updateLastSizes(i){this._lastWidth=(0,k.RG)(i),this._lastHeight=(0,k.Oq)(i),this._devicePixelRatio=(0,Ye.zk)().devicePixelRatio}optionChanged(i){switch(i.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"renderAsync":return void(i.handled=!0);default:super.optionChanged(i)}}},synchronizeScrolling:class Nu extends ft.ViewController{_scrollChangedHandler(i,a,c){for(let g=0;g<i.length;g++)i[g]&&i[g].name!==c&&i[g].scrollTo({left:a.left,top:a.top})}init(){const i=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")];for(let a=0;a<i.length;a++){const c=i[a];c&&c.scrollChanged.add(this._scrollChangedHandler.bind(this,i))}}}},views:{gridView:class Xc extends ft.View{init(){this._resizingController=this.getController("resizing"),this._dataController=this.getController("data")}_endUpdateCore(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())}getView(i){return this.component._views[i]}element(){return this._groupElement}optionChanged(i){const a=this;(0,w.O9)(a._groupElement)&&"showBorders"===i.name?(a._groupElement.toggleClass(a.addWidgetPrefix("borders"),!!i.value),i.handled=!0):super.optionChanged(i)}_renderViews(i){const a=this;(0,e.__)(eu,(c,g)=>{const y=a.getView(g);y&&y.render(i)})}_getTableRoleName(){return"group"}render(i){const a=!this._groupElement,c=this._groupElement||(0,T.A)("<div>").addClass(this.getWidgetContainerClass());c.addClass("dx-gridbase-container"),c.toggleClass(this.addWidgetPrefix("borders"),!!this.option("showBorders")),this.setAria("role","presentation",i),this.component.setAria("role",this._getTableRoleName(),c),this._rootElement=i||this._rootElement,a&&(this._groupElement=c,(0,Ye.Vd)()&&this._resizingController.updateSize(i),c.appendTo(i)),this._a11yGeneralStatusElement||(this._a11yGeneralStatusElement=(()=>{let{statusText:i}={};return(0,T.A)("<div>").text(i??"").addClass("dx-gridbase-a11y-status-container").attr("role","status")})(),this._a11yGeneralStatusElement.attr("e2e-a11y-general-status-container","true"),this._rootElement.append(this._a11yGeneralStatusElement)),this._renderViews(c)}update(){const i=this;i._rootElement&&i._groupElement&&(this._resizingController.resize(),i._dataController.isLoaded()&&i._resizingController.fireContentReadyAction())}setWidgetA11yStatusText(i){var a;null===(a=this._a11yGeneralStatusElement)||void 0===a||a.text(i)}}},VIEW_NAMES:eu});var dl=p(3651);const bd=["addRowButton","applyFilterButton","columnChooserButton","exportButton","groupPanel","revertButton","saveButton","searchPanel"];Dt.registerModule("headerPanel",{defaultOptions:()=>({}),views:{headerPanel:class Hl extends fs{init(){super.init(),this._editingController=this.getController("editing"),this._headerFilterController=this.getController("headerFilter"),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})}_getToolbarItems(){return[]}_getButtonContainer(){return(0,T.A)("<div>").addClass(this.addWidgetPrefix("toolbar-button"))}_getToolbarButtonClass(i){const a=i?` ${i}`:"";return this.addWidgetPrefix("toolbar-button")+a}_getToolbarOptions(){const i=this.option("toolbar"),a={toolbarOptions:{items:this._getToolbarItems(),visible:i?.visible,disabled:i?.disabled,onItemRendered(g){const y=g.itemData.onItemRendered;y&&y(g)}}},c=i?.items;if(a.toolbarOptions.items=this._normalizeToolbarItems(a.toolbarOptions.items,c),this.executeAction("onToolbarPreparing",a),a.toolbarOptions&&!(0,w.O9)(a.toolbarOptions.visible)){const g=a.toolbarOptions.items;a.toolbarOptions.visible=!(null==g||!g.length)}return a.toolbarOptions}_normalizeToolbarItems(i,a){i.forEach(Y=>{if(!bd.includes(Y.name))throw new Error(`Default toolbar item '${Y.name}' is not added to DEFAULT_TOOLBAR_ITEM_NAMES`)});const c={location:"after"},g=Array.isArray(a);if(!(0,w.O9)(a))return i;g||(a=[a]);const y={};i.forEach(Y=>{y[Y.name]=Y});const D=a.map(Y=>((0,w.Kg)(Y)&&(Y={name:Y}),(0,w.O9)(Y.name)&&((0,w.O9)(y[Y.name])?Y=(0,C.X)(!0,{},y[Y.name],Y):bd.includes(Y.name)&&(Y=(0,Oe.A)({},Y,{visible:!1}))),(0,C.X)(!0,{},c,Y)));return g?D:D[0]}_renderCore(){if(this._toolbar)this._toolbar.option(this._toolbarOptions);else{const i=this.element();i.addClass(this.addWidgetPrefix("header-panel"));const a=v.A.format(this.component.NAME+"-ariaToolbar"),c=(0,T.A)("<div>").attr("aria-label",a).appendTo(i);this._toolbar=this._createComponent(c,dl.A,this._toolbarOptions)}}_columnOptionChanged(){}_handleDataChanged(){this._requireReady&&this.render()}_isDisabledDefinedByUser(i){var a;const c=null===(a=this.option("toolbar"))||void 0===a?void 0:a.items,g=c?.find(y=>y?.name===i);return(0,w.O9)(g?.disabled)}render(){this._toolbarOptions=this._getToolbarOptions(),super.render.apply(this,arguments)}setToolbarItemDisabled(i,a){const c=this._toolbar,g=this._isDisabledDefinedByUser(i);if(!c||g)return;const D=(c.option("items")??[]).findIndex(xe=>xe.name===i);if(D<0)return;const Y=c.option(`items[${D}]`);c.option(`items[${D}].disabled`,a),Y.options&&c.option(`items[${D}].options.disabled`,a)}updateToolbarDimensions(){var i;null===(i=this._toolbar)||void 0===i||i.updateDimensions()}getHeaderPanel(){return this.element()}getHeight(){return this.getElementHeight()}optionChanged(i){if("onToolbarPreparing"===i.name&&(this._invalidate(),i.handled=!0),"toolbar"===i.name){const y=(0,nn.u7)(i.fullName),D=i.fullName.replace(/^toolbar\./,"");if(1===y.length)this._invalidate();else if("items"===y[1]){if(2===y.length){var a;const Y=this._getToolbarOptions();null===(a=this._toolbar)||void 0===a||a.option("items",Y.items)}else if(3===y.length){var c;const Y=this._normalizeToolbarItems(this._getToolbarItems(),i.value);null===(c=this._toolbar)||void 0===c||c.option(D,Y)}else if(y.length>=4){var g;null===(g=this._toolbar)||void 0===g||g.option(D,i.value)}}else this._invalidate();i.handled=!0}super.optionChanged(i)}isVisible(){return!(!this._toolbarOptions||!this._toolbarOptions.visible)}allowDragging(){}hasGroupedColumns(){}}},extenders:{controllers:{resizing:I=>class extends I{_updateDimensionsCore(){super._updateDimensionsCore.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}});var $l=p(1973),vp=p(8181),Yr=p(9212),Pc=p(7080);class nu extends Pc.A{_getDefaultOptions(){const i=super._getDefaultOptions();return(0,e.__)(this.getGridCoreHelper().modules,function(){(0,w.Tn)(this.defaultOptions)&&(0,C.X)(!0,i,this.defaultOptions())}),i}_init(){this._activeStateUnit=".dx-row",super._init()}_setDeprecatedOptions(){super._setDeprecatedOptions(),(0,C.X)(this._deprecatedOptions,{"columnChooser.allowSearch":{since:"23.1",message:'Use the "columnChooser.search.enabled" option instead'},"columnChooser.searchTimeout":{since:"23.1",message:'Use the "columnChooser.search.timeout" option instead'}})}_clean(){}_optionChanged(i){this.getGridCoreHelper().callModuleItemsMethod(this,"optionChanged",[i]),i.handled||super._optionChanged(i)}_dimensionChanged(){this.updateDimensions(!0)}_visibilityChanged(i){i&&this.updateDimensions()}_renderContentImpl(){this.getView("gridView").update()}_renderContent(){const i=this;(0,b.zE)(()=>{i._renderContentImpl()})}_dispose(){super._dispose(),this.getGridCoreHelper().callModuleItemsMethod(this,"dispose")}isReady(){return this.getController("data").isReady()}getController(i){return this._controllers[i]}getView(i){return this._views[i]}getGridCoreHelper(){}beginUpdate(){super.beginUpdate(),this.getGridCoreHelper().callModuleItemsMethod(this,"beginUpdate")}endUpdate(){this.getGridCoreHelper().callModuleItemsMethod(this,"endUpdate"),super.endUpdate()}}Dt.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","editingRowBased","editingFormBased","editingCellBased","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);class Ul extends nu{_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:()=>(0,Yr.Nt)(),options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0},selection:{showCheckBoxesMode:"always"}}},{device:()=>Ce.A.webkit,options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:i=>"desktop"!==i.deviceType,options:{grouping:{expandMode:"rowClick"}}}])}_init(){super._init(),Ot.logHeaderFilterDeprecatedWarningIfNeed(this),Dt.processModules(this,Dt),Dt.callModuleItemsMethod(this,"init")}_initMarkup(){super._initMarkup.apply(this,arguments),this.getView("gridView").render(this.$element())}_setDeprecatedOptions(){super._setDeprecatedOptions(),(0,C.X)(this._deprecatedOptions,{useKeyboard:{since:"19.2",alias:"keyboardNavigation.enabled"},rowTemplate:{since:"21.2",message:'Use the "dataRowTemplate" option instead'}})}static registerModule(i,a){Dt.registerModule(i,a)}getGridCoreHelper(){return Dt}_getTemplate(i){let a=i;return(0,w.Kg)(a)&&a.startsWith("#")&&(a=(0,T.A)(i),vp.v.warn("Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.")),super._getTemplate(a)}focus(i){this.getController("keyboardNavigation").focus(i)}}(0,$l.A)("dxDataGrid",Ul);const iu=Ul;var Hu=p(4129);const Ed=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,$u=function(I){I&&(0,e.__)(I,(i,a)=>{if((0,w.Qd)(a)||Array.isArray(a))$u(a);else if("string"==typeof a){const c=Ed.exec(a);c&&(I[i]=new Date(Date.UTC(+c[1],+c[2]-1,+c[3],+c[4],+c[5],+c[6])))}})},Uu=function(I){const i="sessionStorage"===I.type?(0,Hu.s)():(0,Ye.zk)().localStorage;if(!i)throw new Error("E1007");return i},ou=function(I){return(0,w.O9)(I.storageKey)?I.storageKey:"storage"};Dt.registerModule("stateStoring",{defaultOptions:()=>({stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}),controllers:{stateStoring:class Rc extends ft.ViewController{getDataController(){return this.getController("data")}getExportController(){return this.getController("export")}getColumnsController(){return this.getController("columns")}init(){return this._state={},this._isLoaded=!1,this._isLoading=!1,this._windowUnloadHandler=()=>{void 0!==this._savingTimeoutID&&this._saveState(this.state())},P.A.on((0,Ye.zk)(),"unload",this._windowUnloadHandler),this}optionChanged(i){const a=this;"stateStoring"===i.name?(a.isEnabled()&&!a.isLoading()&&a.load(),i.handled=!0):super.optionChanged(i)}dispose(){clearTimeout(this._savingTimeoutID),P.A.off((0,Ye.zk)(),"unload",this._windowUnloadHandler)}_loadState(){const i=this.option("stateStoring");if("custom"===i.type)return i.customLoad&&i.customLoad();try{return JSON.parse(Uu(i).getItem(ou(i)))}catch(a){We.A.log("W1022","State storing",a.message)}}_saveState(i){const a=this.option("stateStoring");if("custom"!==a.type)try{Uu(a).setItem(ou(a),JSON.stringify(i))}catch(c){We.A.log(c.message)}else a.customSave&&a.customSave(i)}publicMethods(){return["state"]}isEnabled(){return this.option("stateStoring.enabled")}isLoaded(){return this._isLoaded}isLoading(){return this._isLoading}load(){this._isLoading=!0;const i=(0,ye.Sx)(this._loadState());return i.always(()=>{this._isLoaded=!0,this._isLoading=!1}).done(a=>{null!==a&&!(0,w.RI)(a)&&this.state(a)}),i}state(i){const a=this;if(!arguments.length)return(0,C.X)(!0,{},a._state);a._state=(0,C.X)({},i),$u(a._state)}save(){const i=this;clearTimeout(i._savingTimeoutID),i._savingTimeoutID=setTimeout(()=>{i._saveState(i.state()),i._savingTimeoutID=void 0},i.option("stateStoring.savingTimeout"))}}},extenders:{views:{rowsView:I=>class extends I{init(){super.init(),this._dataController.stateLoaded.add(()=>{if(this._dataController.isLoaded()&&!this._dataController.getDataSource()){this.setLoading(!1),this.renderNoDataText();const i=this.component.getView("columnHeadersView");i&&i.render(),this.component._fireContentReadyAction()}})}}},controllers:{stateStoring:I=>class extends I{init(){return super.init.apply(this,arguments),(I=>{const i=I.getController("columns"),a=I.getController("selection"),c=I.getController("export"),g=I.getController("data");i&&i.columnsChanged.add(()=>{I.updateState({columns:i.getUserState()})}),a&&a.selectionChanged.add(y=>{I.updateState({selectedRowKeys:y.selectedRowKeys,selectionFilter:y.selectionFilter})}),g&&(I._initialPageSize=I.option("paging.pageSize"),I._initialFilterValue=I.option("filterValue"),g.changed.add(()=>{const y=(I=>{const i=I.getView("pagerView"),a=I.getController("data"),c={allowedPageSizes:i?i.getPageSizes():void 0,filterPanel:{filterEnabled:I.option("filterPanel.filterEnabled")},filterValue:I.option("filterValue"),focusedRowKey:I.option("focusedRowEnabled")?I.option("focusedRowKey"):void 0};return(0,C.X)(c,a.getUserState())})(I);I.updateState(y)})),c&&c.selectionOnlyChanged.add(()=>{I.updateState({exportSelectionOnly:c.selectionOnly()})})})(this),this}isLoading(){return super.isLoading()||this.getDataController().isStateLoading()}state(i){const a=super.state.apply(this,arguments);return void 0!==i&&this.applyState((0,C.X)(!0,{},i)),a}updateState(i){if(this.isEnabled()){const a=this.state(),c=(0,C.X)({},a,i),g=(0,b.GP)(a),y=(0,b.GP)(c);(0,b.RL)(g,y)||(i=(0,C.X)(!0,{},i),(0,C.X)(this._state,i),this.save())}else(0,C.X)(this._state,i)}applyState(i){var a;const{allowedPageSizes:c}=i,{searchText:g}=i,{selectedRowKeys:y}=i,{selectionFilter:D}=i,Y=this.option("scrolling.mode"),xe="virtual"===Y||"infinite"===Y,Le=!0===this.option("pager.visible")&&this.option("pager.showPageSizeSelector"),st=null===(a=this.getView("rowsView"))||void 0===a?void 0:a.hasHeight();this.component.beginUpdate(),this.getColumnsController()&&this.getColumnsController().setUserState(i.columns),this.getExportController()&&this.getExportController().selectionOnly(i.exportSelectionOnly),this.option("selection.deferred")||this.option("selectedRowKeys",y||[]),this.option("selectionFilter",D),c&&"auto"===this.option("pager.allowedPageSizes")&&(this.option("pager").allowedPageSizes=c),this.option("focusedRowEnabled")&&(this.option("focusedRowIndex",-1),this.option("focusedRowKey",i.focusedRowKey||null)),this.component.endUpdate(),this.option("searchPanel.text",g||""),this.option("filterValue",((I,i)=>{const a=I.getController("filterSync"),c=I.getController("columns");return a?i.columns||void 0!==i.filterValue?i.filterValue||a.getFilterValueFromColumns(i.columns):I._initialFilterValue||a.getFilterValueFromColumns(c.getColumns()):null})(this,i)),this.option("filterPanel.filterEnabled",!i.filterPanel||i.filterPanel.filterEnabled),this.option("paging.pageIndex",(!xe||st)&&i.pageIndex||0),this.option("paging.pageSize",xe&&!Le||!(0,w.O9)(i.pageSize)?this._initialPageSize:i.pageSize),this.getDataController()&&this.getDataController().reset()}},columns:I=>class extends I{_shouldReturnVisibleColumns(){return super._shouldReturnVisibleColumns.apply(this,arguments)&&(!this._stateStoringController.isEnabled()||this._stateStoringController.isLoaded())}},data:I=>class extends I{dispose(){clearTimeout(this._restoreStateTimeoutID),super.dispose()}callbackNames(){return super.callbackNames().concat(["stateLoaded"])}_refreshDataSource(){if(this._stateStoringController.isEnabled()&&!this._stateStoringController.isLoaded()){clearTimeout(this._restoreStateTimeoutID);const i=new ye.cY;return this._restoreStateTimeoutID=setTimeout(()=>{this._stateStoringController.load().always(()=>{this._restoreStateTimeoutID=null}).done(()=>{super._refreshDataSource(),this.stateLoaded.fire(),i.resolve()}).fail(a=>{this.stateLoaded.fire(),this._handleLoadError(a||"Unknown error"),i.reject()})}),i.promise()}this.isStateLoading()||super._refreshDataSource()}isLoading(){return super.isLoading()||this._stateStoringController.isLoading()}isStateLoading(){return(0,w.O9)(this._restoreStateTimeoutID)}isLoaded(){return super.isLoaded()&&!this.isStateLoading()}},selection:I=>class extends I{_fireSelectionChanged(i){const a=this.option("selection.deferred");this._stateStoringController.isLoading()&&a||super._fireSelectionChanged.apply(this,arguments)}}}}});var Cp=p(3535),yp=p(9658);const Al="selection.showCheckBoxesMode",Wu="selection.mode",su=function(I,i){const a=I.getView("rowsView"),c=I.getController("selection"),g=(0,T.A)(i.target).closest(".dx-data-row"),y=a.getRowIndex(g);y<0||("onLongTap"===I.option(Al)?c.isSelectionWithCheckboxes()?c.stopSelectionWithCheckboxes():c.startSelectionWithCheckboxes():("onClick"===I.option(Al)&&c.startSelectionWithCheckboxes(),"always"!==I.option(Al)&&c.changeItemSelection(y,{control:!0})))},bp=(I,i)=>{const{component:a}=i,c=a.getView("rowsView");a.option("renderAsync")&&!a.option("selection.deferred")&&(i.value=a.isRowSelected(i.row.key)),c.renderSelectCheckBoxContainer((0,T.A)(I),i)},xp=(I,i)=>{const{column:a}=i,c=(0,T.A)(I),g=i.component.getView("columnHeadersView");c.addClass("dx-editor-cell"),g._renderSelectAllCheckBox(c,a),g._attachSelectAllCheckBoxClickEvent(c)};Dt.registerModule("selection",{defaultOptions:()=>({selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",deferred:!1,maxFilterLengthInRequest:1500,alwaysSelectByShift:!1},selectionFilter:[],selectedRowKeys:[]}),controllers:{selection:class ru extends ft.Controller{init(){const{deferred:i,selectAllMode:a,mode:c}=this.option("selection")??{};"infinite"===this.option("scrolling.mode")&&!i&&"multiple"===c&&"allPages"===a&&We.A.log("W1018"),this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._stateStoringController=this.getController("stateStoring"),this._selectionMode=c,this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]}),this._dataPushedHandler||(this._dataPushedHandler=this._handleDataPushed.bind(this),this._dataController.pushed.add(this._dataPushedHandler))}_handleDataPushed(i){this._deselectRemovedOnPush(i),this._updateSelectedOnPush(i)}_deselectRemovedOnPush(i){const a=this.option("selection.deferred");let c=i.filter(g=>"remove"===g.type).map(g=>g.key);if(a){const g=this._dataController.items().filter(y=>y.isSelected).map(y=>y.key);c=c.filter(y=>g.find(D=>(0,b.RL)(D,y)))}c.length&&this.deselectRows(c)}_updateSelectedOnPush(i){if(this.option("selection.deferred"))return;const c=i.filter(y=>"update"===y.type),g=this.getSelectedRowsData();(0,ht.VK)({keyInfo:this._selection.options,data:g,changes:c})}_getSelectionConfig(){const i=this._dataController,a=this._columnsController,c=this.option("selection")??{},{deferred:g}=c,y=this.option("scrolling.mode"),D="virtual"===y||"infinite"===y,Y=this.option("selection.allowSelectAll"),xe=this.option("scrolling.legacyMode");return{selectedKeys:this.option("selectedRowKeys"),mode:this._selectionMode,deferred:g,alwaysSelectByShift:c.alwaysSelectByShift,maxFilterLengthInRequest:c.maxFilterLengthInRequest,selectionFilter:this.option("selectionFilter"),ignoreDisabledItems:!0,isVirtualPaging:D,allowLoadByRange(){const Le=a.getGroupColumns().length>0;return D&&!xe&&!Le&&Y&&!g},key:()=>i?.key(),keyOf:Le=>i?.keyOf(Le),dataFields(){var Le;return null===(Le=i.dataSource())||void 0===Le?void 0:Le.select()},load(Le){var st;return(null===(st=i.dataSource())||void 0===st?void 0:st.load(Le))||(new ye.cY).resolve([])},plainItems:Le=>i.items(!0),isItemSelected:Le=>Le.selected,isSelectableItem:Le=>"data"===Le?.rowType&&!Le.isNewRow,getItemData:Le=>(0,w.O9)(Le?.rowType)?Le?.oldData||Le?.data:Le,filter:()=>i.getCombinedFilter(g),totalCount:()=>i.totalCount(),getLoadOptions(Le,st,mt){var on;const{sort:wn,filter:Kn}=(null===(on=i.dataSource())||void 0===on?void 0:on.lastLoadOptions())??{};let Ai=Math.min(Le,st),no=Math.max(Le,st);return(0,w.O9)(mt)&&(Ai=Math.min(mt,Ai),no=Math.max(mt,no)),{skip:Ai,take:no-Ai+1,filter:Kn,sort:wn}},onSelectionChanged:this._updateSelectedItems.bind(this)}}_updateSelectColumn(){const i=this._columnsController,a=this.isSelectColumnVisible();i.addCommandColumn({type:"selection",command:"select",visible:a,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:"dx-command-select",width:"auto",cellTemplate:bp,headerCellTemplate:xp}),i.columnOption("command:select","visible",a)}_createSelection(){const i=this._getSelectionConfig();return new yp.A(i)}_fireSelectionChanged(i){const a=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(a),i&&this.executeAction("onSelectionChanged",i)}_updateCheckboxesState(i){const{isDeferredMode:a}=i,{selectionFilter:c}=i,{selectedItemKeys:g}=i,{removedItemKeys:y}=i;"onClick"===this.option(Al)&&((a?c&&function(I,i){let a=0;const c=I._dataController.store(),g=c&&c.key(),y=Array.isArray(g);if(!i.length)return!1;if(y&&Array.isArray(i[0])&&"and"===i[1]){for(let D=0;D<i.length;D++)if(Array.isArray(i[D])){if(i[D][0]!==g[a]||"="!==i[D][1])return!0;a++}return!1}return g!==i[0]}(this,c):g.length>1)?this.startSelectionWithCheckboxes():(a?c&&!c.length:0===g.length&&y.length)&&this.stopSelectionWithCheckboxes())}_updateSelectedItems(i){const a=this;let c;const g=a.option("selection.deferred"),y=a._selection.selectionFilter(),D=a._dataController,Y=D.items(!0),xe=D.items();if(!Y)return;const Le=a.isSelectionWithCheckboxes(),st=a.getChangedItemIndexes(Y),mt=a.getChangedItemIndexes(xe);a._updateCheckboxesState({selectedItemKeys:i.selectedItemKeys,removedItemKeys:i.removedItemKeys,selectionFilter:y,isDeferredMode:g}),(st.length||Le!==a.isSelectionWithCheckboxes())&&D.updateItems({changeType:"updateSelection",itemIndexes:mt}),g?(a.option("selectionFilter",y),c={}):(i.addedItemKeys.length||i.removedItemKeys.length)&&(a._selectedItemsInternalChange=!0,a.option("selectedRowKeys",i.selectedItemKeys.slice(0)),a._selectedItemsInternalChange=!1,c={selectedRowsData:i.selectedItems.slice(0),selectedRowKeys:i.selectedItemKeys.slice(0),currentSelectedRowKeys:i.addedItemKeys.slice(0),currentDeselectedRowKeys:i.removedItemKeys.slice(0)}),a._fireSelectionChanged(c)}getChangedItemIndexes(i){const a=this,c=[],g=this.option("selection.deferred");for(let y=0,{length:D}=i;y<D;y++){const Y=i[y],xe=a.isRowSelected(g?Y.data:Y.key);a._selection.isDataItem(Y)&&Y.isSelected!==xe&&c.push(y)}return c}callbackNames(){return["selectionChanged"]}optionChanged(i){switch(super.optionChanged(i),i.name){case"selection":{const a=this._selectionMode;if(this.init(),"selection.showCheckBoxesMode"!==i.fullName){const c=this._selectionMode;let g=this.option("selectedRowKeys");a!==c&&("single"===c?g.length>1&&(g=[g[0]]):"multiple"!==c&&(g=[])),this.selectRows(g).always(()=>{this._fireSelectionChanged()})}this._columnsController.updateColumns(),i.handled=!0;break}case"selectionFilter":this._selection.selectionFilter(i.value),i.handled=!0;break;case"selectedRowKeys":{const a=i.value||[];Array.isArray(a)&&!this._selectedItemsInternalChange&&(this.component.getDataSource()||!a.length)&&this.selectRows(a),i.handled=!0;break}}}publicMethods(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]}isRowSelected(i){return this._selection.isItemSelected(i)}isSelectColumnVisible(){return"multiple"===this.option(Wu)&&("always"===this.option(Al)||"onClick"===this.option(Al)||this._isSelectionWithCheckboxes)}_isOnePageSelectAll(){return"page"===this.option("selection.selectAllMode")}isSelectAll(){return this._selection.getSelectAllState(this._isOnePageSelectAll())}selectAll(){return"onClick"===this.option(Al)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())}deselectAll(){return this._selection.deselectAll(this._isOnePageSelectAll())}clearSelection(){return this.selectedItemKeys([])}refresh(){const i=this.option("selectedRowKeys")??[];return!this.option("selection.deferred")&&i.length?this.selectedItemKeys(i):(new ye.cY).resolve().promise()}selectedItemKeys(i,a,c,g){return this._selection.selectedItemKeys(i,a,c,g)}getSelectedRowKeys(i){return this._selection.getSelectedItemKeys()}selectRows(i,a){return this.selectedItemKeys(i,a)}deselectRows(i){return this.selectedItemKeys(i,!0,!0)}selectRowsByIndexes(i){const a=this._dataController.items(),c=[];return Array.isArray(i)||(i=Array.prototype.slice.call(arguments,0)),(0,e.__)(i,function(){const g=a[this];g&&"data"===g.rowType&&c.push(g.key)}),this.selectRows(c)}getSelectedRowsData(i){return this._selection.getSelectedItems()}loadSelectedItemsWithFilter(){return this._selection.loadSelectedItemsWithFilter()}changeItemSelection(i,a,c){a=a||{},this.isSelectionWithCheckboxes()&&(a.control=!0);const g=i+this._dataController.getRowIndexOffset()-this._dataController.getRowIndexOffset(!0);return this._selection.changeItemSelection(g,a,c)}focusedItemIndex(i){if(!(0,w.O9)(i))return this._selection._focusedItemIndex;this._selection._focusedItemIndex=i}isSelectionWithCheckboxes(){return"multiple"===this.option(Wu)&&("always"===this.option(Al)||this._isSelectionWithCheckboxes)}startSelectionWithCheckboxes(){const i=this;return"multiple"===i.option(Wu)&&!i.isSelectionWithCheckboxes()&&(i._isSelectionWithCheckboxes=!0,i._updateSelectColumn(),!0)}stopSelectionWithCheckboxes(){const i=this;return!!i._isSelectionWithCheckboxes&&(i._isSelectionWithCheckboxes=!1,i._updateSelectColumn(),!0)}}},extenders:{controllers:{data:I=>class extends I{init(){const i=this.option("selection.deferred");super.init.apply(this,arguments),i&&this._selectionController._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})}_loadDataSource(){const i=this;return super._loadDataSource().always(()=>{i._selectionController.refresh()})}_processDataItem(i,a){const c=this._selectionController.isSelectColumnVisible(),g=a.isDeferredSelection=void 0===a.isDeferredSelection?this.option("selection.deferred"):a.isDeferredSelection,y=super._processDataItem.apply(this,arguments);if(y.isSelected=this._selectionController.isRowSelected(g?y.data:y.key),c&&y.values)for(let D=0;D<a.visibleColumns.length;D++)if("select"===a.visibleColumns[D].command){y.values[D]=y.isSelected;break}return y}refresh(i){const a=this,c=new ye.cY;return super.refresh.apply(this,arguments).done(()=>{!i||i.selection?a._selectionController.refresh().done(c.resolve).fail(c.reject):c.resolve()}).fail(c.reject),c.promise()}_handleDataChanged(i){const a=this.hasLoadOperation();super._handleDataChanged.apply(this,arguments),a&&!this._repaintChangesOnly&&this._selectionController.focusedItemIndex(-1)}_applyChange(i){if(!i||"updateSelection"!==i.changeType)return super._applyChange.apply(this,arguments);i.items.forEach((a,c)=>{const g=this._items[c];g&&(g.isSelected=a.isSelected,g.values=a.values)})}_endUpdateCore(){const i=this._changes;if(i.length>1&&i.every(c=>"updateSelection"===c.changeType)){const c=i.map(g=>g.itemIndexes||[]).reduce((g,y)=>g.concat(y));this._changes=[{changeType:"updateSelection",itemIndexes:c}]}super._endUpdateCore.apply(this,arguments)}},contextMenu:I=>class extends I{_contextMenuPrepared(i){const a=i.event;a.originalEvent&&"dxhold"!==a.originalEvent.type||i.items&&i.items.length>0||su(this,a)}}},views:{columnHeadersView:I=>class extends I{init(){super.init(),this._selectionController.selectionChanged.add(this._updateSelectAllValue.bind(this))}_updateSelectAllValue(){const i=this,a=i.element(),c=a&&a.find(".dx-select-checkbox");if(a&&c.length&&"multiple"===i.option("selection.mode")){const g=i._selectionController.isSelectAll(),y=!1!==g,D=i.option("selection.allowSelectAll")?!i._dataController.isEmpty():y;c.dxCheckBox("instance").option({visible:D,value:g})}}_handleDataChanged(i){super._handleDataChanged(i),(!i||"refresh"===i.changeType||i.repaintChangesOnly&&"update"===i.changeType)&&this.waitAsyncTemplates().done(()=>{this._updateSelectAllValue()})}_renderSelectAllCheckBox(i,a){const c=this,g=c._dataController.isEmpty(),y=(0,T.A)("<div>").appendTo(i).addClass("dx-select-checkbox");return c.setAria("label",v.A.format("dxDataGrid-ariaSelectAll"),y),c._editorFactoryController.createEditor(y,(0,C.X)({},a,{parentType:"headerRow",dataType:"boolean",value:this._selectionController.isSelectAll(),editorOptions:{visible:!g&&(c.option("selection.allowSelectAll")||!1!==this._selectionController.isSelectAll())},tabIndex:c.option("useLegacyKeyboardNavigation")?-1:c.option("tabIndex")||0,setValue:(D,Y)=>{const xe=c.option("selection.allowSelectAll");Y.component.option("visible",xe||!1!==Y.component.option("value")),Y.event&&this._selectionController.isSelectAll()!==D&&(Y.value&&!xe?Y.component.option("value",!1):Y.value?this._selectionController.selectAll():this._selectionController.deselectAll(),Y.event.preventDefault())}})),y}_attachSelectAllCheckBoxClickEvent(i){P.A.on(i,de.U,this.createAction(a=>{const{event:c}=a;(0,T.A)(c.target).closest(".dx-select-checkbox").length||P.A.trigger((0,T.A)(c.currentTarget).children(".dx-select-checkbox"),de.U),c.preventDefault()}))}},rowsView:I=>class extends I{renderSelectCheckBoxContainer(i,a){"data"!==a.rowType||a.row.isNewRow?Ot.setEmptyText(i):(i.addClass("dx-editor-cell"),this._attachCheckBoxClickEvent(i),this._renderSelectCheckBox(i,a))}_renderSelectCheckBox(i,a){const c=(0,T.A)("<div>").addClass("dx-select-checkbox").appendTo(i);return this.setAria("label",v.A.format("dxDataGrid-ariaSelectRow"),c),this._editorFactoryController.createEditor(c,(0,C.X)({},a.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:a.value,setValue(g,y){var D;"keydown"===(null==y||null===(D=y.event)||void 0===D?void 0:D.type)&&P.A.trigger(y.element,de.U,y)},row:a.row})),c}_attachCheckBoxClickEvent(i){P.A.on(i,de.U,this.createAction(function(a){const{event:c}=a,g=this.getRowIndex((0,T.A)(c.currentTarget).closest(".dx-row"));g>=0&&(this._selectionController.startSelectionWithCheckboxes(),this._selectionController.changeItemSelection(g,{shift:c.shiftKey}),(0,T.A)(c.target).closest(".dx-select-checkbox").length&&this._dataController.updateItems({changeType:"updateSelection",itemIndexes:[g]}))}))}_update(i){const a=this,c=a.getTableElements();"updateSelection"===i.changeType?c.length>0&&((0,e.__)(c,(g,y)=>{(0,e.__)(i.itemIndexes||[],(D,Y)=>{let xe;if(i.items[Y]&&(xe=a._getRowElements((0,T.A)(y)).eq(Y),xe.length)){const{isSelected:Le}=i.items[Y];xe.toggleClass("dx-selection",void 0!==Le&&Le).find(".dx-select-checkbox").dxCheckBox("option","value",Le),a.setAria("selected",Le,xe)}})}),a._updateCheckboxesClass()):super._update(i)}_createTable(){const i=this,a=i.option("selection.mode"),c=super._createTable.apply(i,arguments);return"none"!==a&&(("onLongTap"===i.option(Al)||!ke.touch)&&P.A.on(c,(0,x.b4)(Cp.A.name,"dxDataGridRowsView"),".dx-data-row",i.createAction(g=>{su(i.component,g.event),g.event.stopPropagation()})),P.A.on(c,"mousedown selectstart",i.createAction(g=>{const{event:y}=g;y.shiftKey&&y.preventDefault()}))),c}_createRow(i){const a=super._createRow.apply(this,arguments);if(i){const{isSelected:c}=i;c&&a.addClass("dx-selection"),"none"!==this.option(Wu)&&this.setAria("selected",c,a)}return a}_rowClickForTreeList(i){super._rowClick(i)}_rowClick(i){const a=this,c=i.event,g=(0,T.A)(c.target).closest(".dx-selection-disabled").length;a.isClickableElement((0,T.A)(c.target))||(!g&&("multiple"!==a.option(Wu)||"always"!==a.option(Al))&&a._selectionController.changeItemSelection(i.rowIndex,{control:(0,x.By)(c),shift:c.shiftKey})&&(c.preventDefault(),i.handled=!0),super._rowClick(i))}isClickableElement(i){return!!i.closest(".dx-command-select").length}_renderCore(i){const a=super._renderCore(i);return this._updateCheckboxesClass(),a}_updateCheckboxesClass(){const i=this.getTableElements(),a=this._selectionController.isSelectColumnVisible()&&!this._selectionController.isSelectionWithCheckboxes();(0,e.__)(i,(c,g)=>{(0,T.A)(g).toggleClass("dx-select-checkboxes-hidden",a)})}}}}});var jl=p(5973),Xu=p(9012),lu=p(8628),Ta=p(1757);const Ep=["showInColumnChooser","caption","allowHiding","visible","cssClass","ownerBand"];Dt.registerModule("columnChooser",{defaultOptions:()=>({columnChooser:{enabled:!1,search:{enabled:!1,timeout:500,editorOptions:{}},selection:{allowSelectAll:!1,selectByClick:!1,recursive:!1},position:void 0,mode:"dragAndDrop",width:250,height:260,title:v.A.format("dxDataGrid-columnChooserTitle"),emptyPanelText:v.A.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}),controllers:{columnChooser:class Gl extends ft.ViewController{init(){super.init(),this._rowsView=this.getView("rowsView")}renderShowColumnChooserButton(i){const a=this,c=a.addWidgetPrefix("column-chooser-button"),g=a.option("columnChooser.enabled"),y=i.find(`.${c}`);let D;g?y.length?y.show():(D=(0,T.A)("<div>").addClass(c).appendTo(i),a._createComponent(D,Xu.A,{icon:"column-chooser",onClick(){a.getView("columnChooserView").showColumnChooser()},hint:a.option("columnChooser.title"),integrationOptions:{}})):y.hide()}getPosition(){const i=this.option("columnChooser.position");return(0,w.O9)(i)?i:{my:"right bottom",at:"right bottom",of:this._rowsView&&this._rowsView.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}}},views:{columnChooserView:class Op extends fs{optionChanged(i){"columnChooser"===i.name?(this._initializePopupContainer(),this.render(null,"full")):super.optionChanged(i)}publicMethods(){return["showColumnChooser","hideColumnChooser"]}_resizeCore(){}_isWinDevice(){return!!jl.A.real().win}_initializePopupContainer(){const i=this,a=i.addWidgetPrefix("column-chooser"),c=i.element().addClass(a),g=i.option("columnChooser"),y=this._columnChooserController.getPosition(),D=(0,Yr.ss)(),Y=(0,Yr.AE)(D),xe=(0,Yr.gx)(D),Le={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,wrapperAttr:{class:a},toolbarItems:[{text:g.title,toolbar:"top",location:Y||xe?"before":"center"}],position:y,width:g.width,height:g.height,rtlEnabled:i.option("rtlEnabled"),onHidden(){i._isWinDevice()&&(0,T.A)("body").removeClass(i.addWidgetPrefix("notouch-action"))},container:g.container};Y||xe?(0,C.X)(Le,{showCloseButton:!0}):Le.toolbarItems[Le.toolbarItems.length]={shortcut:"cancel"},(0,w.O9)(this._popupContainer)?this._popupContainer.option(Le):(i._popupContainer=i._createComponent(c,lu.A,Le),i._popupContainer.on("optionChanged",st=>{"visible"===st.name&&i.renderCompleted.fire()})),this.setPopupAttributes()}setPopupAttributes(){const i=this.isSelectMode(),a=this._columnsController.isBandColumnsUsed();this._popupContainer.setAria({role:"dialog",label:v.A.format("dxDataGrid-columnChooserTitle")}),this._popupContainer.$wrapper().toggleClass(this.addWidgetPrefix("column-chooser-mode-drag"),!i).toggleClass(this.addWidgetPrefix("column-chooser-mode-select"),i),this._popupContainer.$content().addClass(this.addWidgetPrefix("column-chooser-list")),i&&!a&&this._popupContainer.$content().addClass(this.addWidgetPrefix("column-chooser-plain"))}_renderCore(i){if(this._popupContainer){const a=!this.isSelectMode();this._columnChooserList&&"full"!==i?a&&this._updateItems():this._renderTreeView()}}_renderTreeView(){var i,a,c;const g=this,y=this._popupContainer.$content(),D=this.option("columnChooser"),Y=this.isSelectMode(),st={dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:(0,w.O9)(D.allowSearch)?D.allowSearch:null===(i=D.search)||void 0===i?void 0:i.enabled,searchTimeout:(0,w.O9)(D.searchTimeout)?D.searchTimeout:null===(a=D.search)||void 0===a?void 0:a.timeout,searchEditorOptions:null===(c=D.search)||void 0===c?void 0:c.editorOptions};if(this._isWinDevice()&&(st.useNativeScrolling=!1),(0,C.X)(st,Y?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList)st.searchEnabled||(st.searchValue=""),this._columnChooserList.option(st),this._updateItems();else{this._columnChooserList=this._createComponent(y,Ta.A,st),this._updateItems();let mt=0;this._columnChooserList.on("optionChanged",on=>{mt=on.component.getScrollable().scrollTop()}),this._columnChooserList.on("contentReady",on=>{(0,b.OX)(()=>{on.component.getScrollable().scrollTo({y:mt}),g.renderCompleted.fire()})})}}_prepareDragModeConfig(){return{noDataText:this.option("columnChooser").emptyPanelText,activeStateEnabled:!1,hoverStateEnabled:!1,itemTemplate(a,c,g){(0,T.A)(g).text(a.text).parent().addClass(a.cssClass).addClass("dx-column-chooser-item")}}}_prepareSelectModeConfig(){const i=this,a=this.option("columnChooser.selection")??{};let c=!1;return{selectByClick:a.selectByClick,selectNodesRecursive:a.recursive,showCheckBoxesMode:a.allowSelectAll?"selectAll":"normal",onSelectionChanged:g=>{if(c)return;const y=(D=>{const Y=(xe,Le)=>xe.reduce((st,mt)=>(st.push(mt),mt.children.length&&Y(mt.children,st),st),Le);return Y(D,[])})(g.component.getNodes());var D;g.component.beginUpdate(),c=!0,D=g,y.filter(xe=>!1===xe.itemData.allowHiding).forEach(xe=>D.component.selectItem(xe.key)),g.component.endUpdate(),c=!1,i.component.beginUpdate(),this._isUpdatingColumnVisibility=!0,(D=>{D.forEach(Y=>{i._columnsController.columnOption(Y.itemData.id,"visible",!1!==Y.selected)})})(y),i.component.endUpdate(),this._isUpdatingColumnVisibility=!1}}}_updateItems(){const i=this.isSelectMode(),c=function(I,i){const a=[],c=I.isSelectMode(),g=I.option("columnChooser.selection.recursive");return i.length&&(0,e.__)(i,(y,D)=>{const Y={text:D.caption,cssClass:D.cssClass,allowHiding:D.allowHiding,expanded:!0,id:D.index,disabled:!1===D.allowHiding,parentId:(0,w.O9)(D.ownerBand)?D.ownerBand:null};c&&!(g&&D.hasColumns)&&(Y.selected=D.visible),a.push(Y)}),a}(this,this._columnsController.getChooserColumns(i));this._columnChooserList.option("items",c)}_updateItemsSelection(i){const a=i?.map(c=>this._columnsController.columnOption(c));this._columnChooserList.beginUpdate(),a?.forEach(c=>{let{visible:g,index:y}=c;g?this._columnChooserList.selectItem(y):this._columnChooserList.unselectItem(y)}),this._columnChooserList.endUpdate()}_columnOptionChanged(i){if(super._columnOptionChanged(i),this.isSelectMode()&&this._columnChooserList&&!this._isUpdatingColumnVisibility){const{optionNames:c}=i,g=c.visible&&1===c.length,y=(0,w.O9)(i.columnIndex)?[i.columnIndex]:i.columnIndices;(Ep.some(Y=>c[Y])||i.changeTypes.columns&&c.all)&&(this._updateItemsSelection(y),g||this._updateItems())}}getColumnElements(){const i=[],a=this.isSelectMode(),c=this._columnsController.getChooserColumns(a),g=this._popupContainer&&this._popupContainer.$content(),y=g&&g.find(".dx-treeview-node");return y&&c.forEach(D=>{const Y=y.filter(`[data-item-id = '${D.index}']`),xe=Y.length?Y.children(".dx-column-chooser-item").get(0):null;i.push(xe)}),(0,T.A)(i)}getName(){return"columnChooser"}getColumns(){return this._columnsController.getChooserColumns()}allowDragging(i){const a=this._columnsController.isParentColumnVisible(i.index),c=!i.visible&&i.allowHiding;return this.isColumnChooserVisible()&&a&&c}allowColumnHeaderDragging(i){return!this.isSelectMode()&&this.isColumnChooserVisible()&&i.allowHiding}getBoundingRect(){const i=this._popupContainer&&this._popupContainer.$overlayContent();if(i&&i.is(":visible")){const a=i.offset();return{left:a.left,top:a.top,right:a.left+(0,k.Ot)(i),bottom:a.top+(0,k.P$)(i)}}return null}showColumnChooser(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&(0,T.A)("body").addClass(this.addWidgetPrefix("notouch-action"))}hideColumnChooser(){this._popupContainer&&this._popupContainer.hide()}isColumnChooserVisible(){const i=this._popupContainer;return i&&i.option("visible")}isSelectMode(){return"select"===this.option("columnChooser.mode")}hasHiddenColumns(){const i=this.option("columnChooser.enabled"),a=this.getColumns().filter(c=>!c.visible);return i&&a.length}}},extenders:{views:{headerPanel:I=>class extends I{_getToolbarItems(){const i=super._getToolbarItems();return this._appendColumnChooserItem(i)}_appendColumnChooserItem(i){const a=this;if(a.option("columnChooser.enabled")){const g=function(){a.component.getView("columnChooserView").showColumnChooser()},y=function(xe){(0,T.A)(xe.element).addClass(a._getToolbarButtonClass(a.addWidgetPrefix("column-chooser-button")))},D=a.option("columnChooser.title");i.push({widget:"dxButton",options:{icon:"column-chooser",onClick:g,hint:D,text:D,onInitialized:y,elementAttr:{"aria-haspopup":"dialog"}},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40})}return i}optionChanged(i){"columnChooser"===i.name?(this._invalidate(),i.handled=!0):super.optionChanged(i)}isVisible(){const i=this.option("columnChooser.enabled");return super.isVisible()||i}},columnHeadersView:I=>class extends I{allowDragging(i){const a=!this._columnChooserView.isSelectMode(),c=this._columnChooserView.isColumnChooserVisible();return a&&c&&i.allowHiding||super.allowDragging(i)}}},controllers:{columns:I=>class extends I{allowMoveColumn(i,a,c,g){return("select"!==this.option("columnChooser.mode")||"columnChooser"!==g)&&super.allowMoveColumn(i,a,c,g)}}}}});var du=p(2614);function Qc(I,i){const a=(0,Mi.st)(i.group),c=[];for(let g=0;g<I.length;g++)c.push([a[g].selector,"=",I[g]]);return i.filter&&c.push(i.filter),Ot.combineFilters(c)}function Ph(I,i,a){const c=(0,Mi.st)(i.group);let g=[];for(let y=a?I.length-1:0;y<I.length;y++){const D=[];for(let Y=0;Y<=y;Y++){const{selector:xe}=c[Y];if(y!==Y||null!==I[Y]&&!1!==I[Y]&&!0!==I[Y]){const Le=[xe,y===Y?c[Y].desc?">":"<":"=",I[Y]];D.push("<"===Le[1]?[Le,"or",[xe,"=",null]]:Le)}else!1===I[Y]?D.push([xe,"=",!!c[Y].desc||null]):(I[Y]?!c[Y].desc:c[Y].desc)?D.push([xe,"<>",I[Y]]):(D.push([xe,"<>",null]),D.push([xe,"=",null]))}g.push(Dt.combineFilters(D))}return g=Dt.combineFilters(g,"or"),Dt.combineFilters([g,i.filter])}const Ka=function(I,i){const{hash:a}=I;return a&&a[JSON.stringify(i)]},Rh=function(I,i){let g,a=0,c=I.length-1;if(!I.length)return 0;do{const y=c+a>>1;I[y].offset>i?c=y:a=y}while(c-a>1);for(g=a;g<=c&&!(I[g].offset>i);g++);return g},Ju=function(I,i,a){for(let c=0;c<I.length;c++)i+1>=a?I[c].children=[]:Ju(I[c].children,i+1,a)},Dp=function(I,i,a){let c=0;if(i)if(a)for(let g=0;g<i.length;g++)I.isGroupItemCountable(i[g])&&c++,c+=Dp(I,i[g].items,a-1);else c=i.length;return c};class tl{constructor(i){this._dataSource=i,this.reset()}reset(){this._groupsInfo=[],this._totalCountCorrection=0}totalCountCorrection(){return this._totalCountCorrection}updateTotalItemsCount(i){this._totalCountCorrection=i||0}isGroupItemCountable(i){return!this._isVirtualPaging()||!i.isContinuation}_isVirtualPaging(){const i=this._dataSource.option("scrolling.mode");return"virtual"===i||"infinite"===i}itemsCount(){const a=this._dataSource._dataSource,c=Dt.normalizeSortingInfo(a.group()||[]).length;return Dp(this,a.items(),c)}foreachGroups(i,a,c,g,y){const D=this;return function Y(xe,Le,st,mt){const on=[];function wn(Ai,no,Yo,ps){const Ls=no&&Ai(no,Yo);return Ls&&ps.push(Ls),Ls}for(let Ai=0;Ai<xe.length;Ai++){if(mt.push(xe[Ai].data),!st&&!1===wn(Le,xe[Ai].data,mt,on))return!1;if(!xe[Ai].data||xe[Ai].data.isExpanded||c){const{children:no}=xe[Ai],Yo=no.length&&Y(no,Le,st,mt);if(Yo&&on.push(Yo),!1===Yo)return!1}if(st&&!1===wn(Le,xe[Ai].data,mt,on))return!1;(!xe[Ai].data||xe[Ai].data.offset!==xe[Ai].offset)&&(g=!0),mt.pop()}const Kn=y&&mt.slice(0);return g&&ye.z7.apply(T.A,on).always(()=>{D._updateGroupInfoOffsets(xe,Kn)})}(D._groupsInfo,i,a,[])}_updateGroupInfoOffsets(i,a){a=a||[];for(let c=0;c<i.length;c++){const g=i[c];if(g.data&&g.data.offset!==g.offset){g.offset=g.data.offset;for(let y=0;y<a.length;y++)a[y].offset=g.offset}}i.sort((c,g)=>c.offset-g.offset)}findGroupInfo(i){let a,c=this._groupsInfo;for(let g=0;c&&g<i.length;g++)a=Ka(c,i[g]),c=a&&a.children;return a&&a.data}addGroupInfo(i){const a=this;let c;const{path:g}=i;let y=a._groupsInfo;for(let D=0;D<g.length;D++){if(c=Ka(y,g[D]),!c){c={key:g[D],offset:i.offset,data:{offset:i.offset,isExpanded:!0,path:g.slice(0,D+1)},children:[]};const Y=Rh(y,i.offset);y.splice(Y,0,c),y.hash=y.hash||{},y.hash[JSON.stringify(c.key)]=c}D===g.length-1&&(c.data=i,c.offset!==i.offset&&a._updateGroupInfoOffsets(y)),y=c.children}}allowCollapseAll(){return!0}refresh(i){const a=this,{storeLoadOptions:c}=i,g=(0,Mi.st)(c.group||[]),y="_group"in a?(0,Mi.st)(a._group||[]):g;let D=Math.min(y.length,g.length);a._group=c.group;for(let Y=0;Y<D;Y++)if(y[Y].selector!==g[Y].selector){D=Y;break}D?Ju(a._groupsInfo,0,D):a.reset()}handleDataLoading(){}handleDataLoaded(i,a){a(i)}handleDataLoadedCore(i,a){a(i)}}function Tp(I,i,a,c){if(c=c||0,i>1&&a>0){let g=I-Math.floor(I/i)*i||i;return g+=a-c-2,g<0&&(g+=i),Math.floor(g/(i-c-1))}return 0}const nl=function(I,i,a){return I.foreachGroups((c,g)=>{if(c.isExpanded)return i(c,g)},!0,!1,a,a)},kh=function(I,i,a,c,g,y,D){let Y;if(c.items=c.items||[],c.paths=c.paths||[],c.count=c.count||0,c.lastCount=c.lastCount||0,a)for(let xe=0;xe<i.length;xe++){const Le=i[xe];if(void 0!==Le.items){if(g.push(Le.key),y)Y=!0;else{const st=I.findGroupInfo(g);Y=st&&st.isExpanded}Y?Le.items?kh(I,Le.items,a-1,c,g,y,D):1===a&&Le.count&&(!y||D)&&(c.items.push(Le),c.paths.push(g.slice(0)),c.count+=c.lastCount,c.lastCount=Le.count):(Le.collapsedItems=Le.items,Le.items=null),g.pop()}}},Ap=function(I,i,a,c,g){const y=I.findGroupInfo(c);let D;y?(a?y.count=i.count>0?i.count:i.items&&i.items.length||0:i.count=y.count||i.count,y.offset=g):(a&&(D=i.count>0?i.count:i.items.length),I.addGroupInfo({isExpanded:I._isGroupExpanded(c.length-1),path:c.slice(0),offset:g,count:D||0}))},qu=function(I,i,a,c,g,y,D){const xe=(i.group?i.group.length:0)===c;let on,st=0,mt=0;if(g=g||0,y=y||[],i.remoteOperations.paging&&!D&&(st=0===g?i.skip||0:i.skips[g-1]||0),g>=c)return a.length;for(let wn=0;wn<a.length;wn++){const Kn=a[wn];if(Kn){if(y.push(Kn.key),!Kn.count&&!Kn.items||void 0===Kn.items||(Ap(I,Kn,xe,y,st+wn),on=Kn.items?qu(I,i,Kn.items,c,g+1,y,wn):Kn.count||-1,on<0))return-1;mt+=on,y.pop()}}return mt},Bh=function(I,i){return I&&I.length&&I[i]&&!!I[i].isExpanded},Fh=function(I,i,a){let c,g=a;for(let y=0;y<I.length;y++)c=I[y].offset+1,y>0&&(c+=I[y-1].childrenTotalCount,i&&(c+=Tp(g,i,c,y-1)*y)),g+=c;return g};function Zc(I,i,a,c){const g=i.items[c],y=I.skips&&I.skips[a],D=I.takes&&I.takes[a],Y=c===i.items.length-1,xe=0===c,st=g.count>D+(xe&&y||0);xe&&void 0!==y&&(g.isContinuation=!0),Y&&void 0!==D&&st&&(g.isContinuationOnNextPage=!0)}function bg(I){return!Array.isArray(I)}function br(I){bg(I.data)||(I.data=new ye.cY)}function eh(I,i,a,c,g,y){i.isCustomLoading||(kh(I,y,a,c={},[]),function yg(I,i,a){const c=a-1,g=I.group?I.group.length:0;i.skip=I.skips&&I.skips[c],I.takes&&void 0!==I.takes[c]&&(i.take=g===a&&i.count?i.count-(i.skip||0):0,i.take+=I.takes[c])}(i,c,a)),c.paths.length&&(i.group?i.group.length:0)-a>0?(br(i),function Ip(I,i,a,c,g,y){const D=i.group||[],Y=D[g+1],xe=[];(0,e.__)(a.paths,Le=>{var st;const mt={requireTotalCount:!1,requireGroupCount:!0,group:[Y],groupSummary:i.storeLoadOptions.groupSummary,filter:Qc(a.paths[Le],{filter:i.storeLoadOptions.filter,group:D}),select:i.storeLoadOptions.select,langParams:null===(st=i.storeLoadOptions)||void 0===st?void 0:st.langParams};0===Le&&(mt.skip=a.skip||0),Le===a.paths.length-1&&(mt.take=a.take);const on=0===mt.take?[]:I._dataSource.loadFromStore(mt);(0,ye.z7)(on).done(wn=>{const Kn=a.items[Le];Zc(i,a,g,Le),Kn.items=wn}),xe.push(on)}),ye.z7.apply(null,xe).done(()=>{qu(I,i,y,c+1),eh(I,i,c+1,a,g+1,y)})}(I,i,c,a,g,y)):c.paths.length&&i.storeLoadOptions.group?(br(i),function Nh(I,i,a,c){const g=[],y=i.group||[];(0,e.__)(a.paths,(Le,st)=>{g.push(Qc(st,{group:i.isCustomLoading?i.storeLoadOptions.group:y}))});let{filter:D}=i.storeLoadOptions;i.storeLoadOptions.isLoadingAll||(D=Dt.combineFilters([D,Dt.combineFilters(g,"or")]));const Y=(0,C.X)({},i.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:y.concat(Dt.normalizeSortingInfo(i.storeLoadOptions.sort||[])),filter:D}),xe=I._dataSource.isLastLevelGroupItemsPagingLocal();xe||(Y.skip=a.skip,Y.take=a.take),(0,ye.z7)(0===a.take?[]:I._dataSource.loadFromStore(Y)).done(Le=>{xe&&(Le=I._dataSource.sortLastLevelGroupItems(Le,y,a.paths),Le=a.skip?Le.slice(a.skip):Le,Le=a.take?Le.slice(0,a.take):Le),(0,e.__)(a.items,(st,mt)=>{const wn=Le.splice(0,mt.count-(0===st&&a.skip||0));Zc(i,a,y.length-1,st),mt.items=wn}),i.data.resolve(c)}).fail(i.data.reject)}(I,i,c,y)):bg(i.data)&&i.data.resolve(y)}const wd=function(I,i){const a=new ye.cY,c=!(!i.group||!i.group.length),g=(0,C.X)({skip:0,take:1,requireGroupCount:c,requireTotalCount:!c},i,{group:c?i.group:null});return I.load(g).done((y,D)=>{const Y=D&&(c?D.groupCount:D.totalCount);isFinite(Y)?a.resolve(Y):a.reject(du.sO.Error(c?"E4022":"E4021"))}).fail(a.reject.bind(a)),a};class Bc extends tl{updateTotalItemsCount(i){let a=0;const c=i.extra&&i.extra.totalCount||0,g=i.extra&&i.extra.groupCount||0,y=this._dataSource.pageSize(),D=this._isVirtualPaging();nl(this,Y=>{Y.childrenTotalCount=0}),nl(this,(Y,xe)=>{const Le=Fh(xe,D?0:y,a);let st=Y.count+Y.childrenTotalCount;D||(st+=Tp(Le,y,st,xe.length-1)),xe[xe.length-2]?xe[xe.length-2].childrenTotalCount+=st:a+=st}),super.updateTotalItemsCount(a-c+g)}_isGroupExpanded(i){const a=this._dataSource.group();return Bh(a,i)}_updatePagingOptions(i,a){const c=this,g=c._isVirtualPaging(),y=c._dataSource.pageSize(),D=[],Y=[];let xe=0,Le=0;i.take&&(nl(this,st=>{st.childrenTotalCount=0,st.skipChildrenTotalCount=0}),nl(c,(st,mt)=>{let on,wn=0,Kn=0;const Ai=Fh(mt,g?0:y,Le);let no=0,Yo=0,ps=st.count+st.childrenTotalCount,Ls=ps;a&&a(st,Ai);const _r=i.skip-Ai;Ai<=i.skip+i.take&&ps&&(on=i.take,g||(no=Tp(Ai,y,ps,mt.length-1),ps+=no*mt.length,Ls+=no,y&&_r>=0&&(wn=mt.length,Kn=mt.length-1,Yo=Math.floor(_r/y))),_r>=0?(Ai+ps>i.skip&&D.unshift(_r-Yo*wn-st.skipChildrenTotalCount),Ai+ps>=i.skip+on&&Y.unshift(on-wn-st.childrenTotalCount+st.skipChildrenTotalCount)):Ai+ps>=i.skip+on&&Y.unshift(on+_r-st.childrenTotalCount)),Ai<=i.skip&&(mt[mt.length-2]?mt[mt.length-2].skipChildrenTotalCount+=Math.min(Ls,_r+1-Yo*Kn):xe+=Math.min(Ls,_r+1)),Ai<=i.skip+on&&(ps=Math.min(Ls,_r+on-(Yo+1)*Kn),mt[mt.length-2]?mt[mt.length-2].childrenTotalCount+=ps:Le+=ps)}),i.skip-=xe,i.take-=Le-xe),i.skips=D,i.takes=Y}changeRowExpand(i){const a=this.findGroupInfo(i),c=this._dataSource,g=c.remoteOperations().groupPaging,y=Dt.normalizeSortingInfo(c.group());return a?(a.isExpanded=!a.isExpanded,g&&a.isExpanded&&i.length<y.length?wd(c,{filter:Qc(i,{filter:c.lastLoadOptions().filter,group:c.group()}),group:[y[i.length]],select:c.select()}).done(D=>{a.count=D}):(new ye.cY).resolve()):(new ye.cY).reject()}handleDataLoading(i){const a=this,{storeLoadOptions:c}=i,g=Dt.normalizeSortingInfo(c.group||i.loadOptions.group);if(!i.isCustomLoading&&g.length){if(i.remoteOperations.grouping){const y=a._dataSource.remoteOperations().paging;c.group=Dt.normalizeSortingInfo(c.group),c.group.forEach((D,Y)=>{D.isExpanded=!(y&&Y===c.group.length-1)})}i.group=i.group||g,i.remoteOperations.paging?(i.skip=c.skip,i.take=c.take,c.requireGroupCount=!0,c.group=g.slice(0,1),a._updatePagingOptions(i),c.skip=i.skip,c.take=i.take):(i.skip=i.loadOptions.skip,i.take=i.loadOptions.take,a._updatePagingOptions(i))}}handleDataLoadedCore(i,a){const c=this,g=Dt.normalizeSortingInfo(i.storeLoadOptions.group||i.loadOptions.group).length,y=i.group?i.group.length:0;let D;const Y={};if(i.isCustomLoading)a(i),kh(c,i.data,g,Y,[],i.isCustomLoading,i.storeLoadOptions.isLoadingAll);else{if(i.remoteOperations.paging||c.foreachGroups(xe=>{xe.count=0}),D=qu(c,i,i.data,g),D<0)return void(i.data=(new ye.cY).reject(We.A.Error("E1037")));if(i.remoteOperations.paging||g&&i.extra&&i.loadOptions.requireTotalCount&&(i.extra.totalCount=D,i.extra.groupCount=i.data.length),y&&i.storeLoadOptions.requireGroupCount&&!isFinite(i.extra.groupCount))return void(i.data=(new ye.cY).reject(du.sO.Error("E4022")));c.updateTotalItemsCount(i),i.remoteOperations.paging||(c._updatePagingOptions(i),i.lastLoadOptions.skips=i.skips,i.lastLoadOptions.takes=i.takes),a(i),i.remoteOperations.paging||c._processPaging(i,g)}eh(c,i,g,Y,0,i.data)}_processSkips(i,a,c){if(!c)return;const g=i[0],y=a[0],D=g&&g.items;void 0!==y&&(g.isContinuation=!0,D&&(g.items=D.slice(y),this._processSkips(g.items,a.slice(1),c-1)))}_processTakes(i,a,c,g,y){if(!g||!i)return;y=y||[];const D=i[i.length-1];let Y=D&&D.items;const xe=c[0];D&&(void 0!==xe&&(D.count-(D.isContinuation&&a[0]||0)||Y.length)>xe&&(D.isContinuationOnNextPage=!0,y.forEach(mt=>{mt.isContinuationOnNextPage=!0}),Y&&(Y=Y.slice(0,xe),D.items=Y)),y.push(D),this._processTakes(Y,a.slice(1),c.slice(1),g-1,y))}_processPaging(i,a){this._processSkips(i.data,i.skips,a),this._processTakes(i.data,i.skips,i.takes,a)}isLastLevelGroupItemsPagingLocal(){return!1}sortLastLevelGroupItems(i){return i}refresh(i,a){const c=this,g=c._dataSource,{storeLoadOptions:y}=i,D=i.group||i.storeLoadOptions.group,Y=Dt.normalizeSortingInfo(c._group);let xe,Le;function st(mt,on){on.length===Le+1&&(mt.isExpanded=xe)}for(Le=0;Le<Y.length;Le++)xe=Bh(D,Le),Bh(c._group,Le)!==xe&&c.foreachGroups(st);if(super.refresh.apply(this,arguments),D&&i.remoteOperations.paging&&a.reload)return nl(c,mt=>{const on=wd(g,{filter:Qc(mt.path,{filter:y.filter,group:D}),group:D.slice(mt.path.length),select:y.select}),wn=wd(g,{filter:Ph(mt.path,{filter:y.filter,group:D},!0),group:D.slice(mt.path.length-1,mt.path.length),select:y.select});return(0,ye.z7)(wn,on).done((Kn,Ai)=>{Kn=parseInt(Kn.length?Kn[0]:Kn),Ai=parseInt(Ai.length?Ai[0]:Ai),mt.offset=Kn,mt.count!==Ai&&(mt.count=Ai,c.updateTotalItemsCount(i))})},!0)}}var Sd=p(1541),uu=p(1435);const Fc=function(I,i){const a=new ye.cY,c=(0,C.X)({skip:0,take:1,requireTotalCount:!0},i);return I.load(c).done((g,y)=>{a.resolve(y&&y.totalCount)}).fail(a.reject.bind(a)),a},ga=function(I,i,a){return I.foreachGroups(c=>{if(!c.isExpanded)return i(c)},!1,!1,a,!0)},Mp=function(I,i){let a=0,c=i||0;return i&&(ga(I,g=>{if(g.offset-a>=i)return!1;a+=g.count-1}),c+=a),c},Nc=function(I,i,a,c,g,y){let D=0,Y=!1;for(let xe=0;xe<i.length;xe++){const Le=i[xe];if(void 0!==Le.items){a.push(Le.key);const st=I.findGroupInfo(a);if(st&&!st.isExpanded)Le.collapsedItems=Le.items,Le.items=null,c+=st.count,--y<0&&D++,g&&(Y=!0);else if(Le.items){const mt=Nc(I,Le.items,a,c,g,y);g&&(mt.offset-c>1?Le.isContinuation=!0:Y=!0),c=mt.offset,(y=mt.take)<0&&(Le.items.length?Le.isContinuationOnNextPage=!0:D++)}a.pop()}else g&&(Y=!0),c++,--y<0&&D++;g=!1}return Y&&i.splice(0,1),D&&i.splice(-D,D),{offset:c,take:y}},hu=function(I,i){if(I.length!==i.length)return!1;for(let a=0;a<I.length;a++)if(!(0,Mi.t7)(null,I[a],i[a]))return!1;return!0},Jc=function(I,i,a,c,g){if(i){for(let y=0;y<i.length;y++){const D=i[y];if("key"in D&&void 0!==D.items){a.push(D.key),g&&hu(g.path,a)&&!D.isContinuation&&(g.offset=c);const Y=I.findGroupInfo(a);Y&&!D.isContinuation&&(Y.offset=c),Y&&!Y.isExpanded?c+=Y.count:c=Jc(I,D.items,a,c,g),a.pop()}else c++}return c}},Il=function(I,i){let a=I.count||I.items.length;if(!I.count&&i>1){a=0;for(let c=0;c<I.items.length;c++)a+=Il(I.items[c],i-1)}return a};class ul extends tl{handleDataLoading(i){const{storeLoadOptions:a}=i,c=[];let D,g=0,y=!1;const{group:Y}=i.loadOptions;let xe=0;if(function(I,i){if(i.group){const a=Dt.normalizeSortingInfo(i.group),c=Dt.normalizeSortingInfo(I.sort);I.sort=uu.A.arrangeSortingInfo(a,c),delete i.group}}(a,i.loadOptions),i.group=i.group||Y,i.isCustomLoading)return;const Le=(0,C.X)({},a);Le.skip=Mp(this,a.skip),Le.skip&&Le.take&&Y&&(Le.skip--,Le.take++,y=!0),Le.take&&Y&&(D=Le.take,Le.take++),ga(this,st=>{if(st.offset>=Le.skip+Le.take+xe)return!1;st.offset>=Le.skip+xe&&st.count&&(xe+=st.count-1,c.push(st),g+=st.count)}),(0,e.__)(c,function(){Le.filter=function(I,i,a){const c=Dt.normalizeSortingInfo(a||i.group);let g=[];for(let y=0;y<I.length;y++){const D=[];for(let Y=0;Y<=y;Y++)D.push([c[Y].selector,y===Y?"<>":"=",I[Y]]);g.push(Dt.combineFilters(D))}return g=Dt.combineFilters(g,"or"),Dt.combineFilters([g,i.filter])}(this.path,Le,Y)}),i.storeLoadOptions=Le,i.collapsedGroups=c,i.collapsedItemsCount=g,i.skip=Le.skip||0,i.skipFirstItem=y,i.take=D}handleDataLoaded(i,a){const c=this,{collapsedGroups:g}=i,y=Dt.normalizeSortingInfo(i.group),D=y.length;function Y(xe,Le,st,mt,on){if(!xe||!Le.length||!st.length)return;let wn,Kn;const Ai=(0,nn.ao)(Le[0],!0);for(Kn=0;Kn<xe.length&&(wn=(0,nn.ao)(xe[Kn].key,!0),!(on>=mt.offset||Ai===wn));Kn++)on+=Il(xe[Kn],st.length);(!xe.length||Ai!==wn)&&xe.splice(Kn,0,{key:Le[0],items:[],count:1===Le.length?mt.count:void 0}),Y(xe[Kn].items,Le.slice(1),st.slice(1),mt,on)}if(i.collapsedItemsCount&&i.extra&&i.extra.totalCount>=0&&(i.extra._totalCountWasIncreasedByCollapsedItems||(i.extra.totalCount+=i.collapsedItemsCount,i.extra._totalCountWasIncreasedByCollapsedItems=!0)),a(i),D){let{data:xe}=i;const Le=(0,Sd.A)(xe);if(uu.A.multiLevelGroup(Le,y).enumerate().done(st=>{xe=st}),g)for(let st=0;st<g.length;st++)Y(xe,g[st].path,y,g[st],i.skip);i.isCustomLoading||Nc(c,xe,[],i.skip,i.skipFirstItem,i.take),i.data=xe}}isGroupItemCountable(i){return null===i.items}updateTotalItemsCount(){let i=0;ga(this,a=>{a.count&&(i-=a.count-1)}),super.updateTotalItemsCount(i)}changeRowExpand(i){const a=this,c=a._dataSource,g=c.beginPageIndex?c.beginPageIndex():c.pageIndex(),y=c.items(),D=Mp(a,g*c.pageSize());let xe,Y=a.findGroupInfo(i);return xe=Y&&!Y.isExpanded?(new ye.cY).resolve(Y.count):Fc(c,{filter:Qc(i,{filter:c.filter(),group:c.group()})}),(0,ye.z7)(xe).done(Le=>{Le=parseInt(Le.length?Le[0]:Le),Y?(Jc(a,y,[],D),Y.isExpanded=!Y.isExpanded,Y.count=Le):(Y={offset:-1,count:Le,path:i,isExpanded:!1},Jc(a,y,[],D,Y),Y.offset>=0&&a.addGroupInfo(Y)),a.updateTotalItemsCount()}).fail(function(){c._eventsStrategy.fireEvent("loadError",arguments)})}allowCollapseAll(){return!1}refresh(i,a){const c=this,{storeLoadOptions:g}=i,y=c._dataSource;if(super.refresh.apply(this,arguments),a.reload)return ga(c,D=>{const Y=Fc(y,{filter:Qc(D.path,g)}),xe=Fc(y,{filter:Ph(D.path,g)});return(0,ye.z7)(xe,Y).done((Le,st)=>{Le=parseInt(Le.length?Le[0]:Le),st=parseInt(st.length?st[0]:st),D.offset=Le,D.count!==st&&(D.count=st,c.updateTotalItemsCount())})},!0)}}js.extend(I=>class extends I{init(){super.init.apply(this,arguments),this._initGroupingHelper()}_initGroupingHelper(i){const a=this._grouping,c=this.option("grouping.autoExpandAll"),g=this.option("focusedRowEnabled"),y=i?i.remoteOperations:this.remoteOperations();y.filtering&&y.sorting&&y.paging&&!y.grouping&&(c||!g)?(!a||a instanceof Bc)&&(this._grouping=new ul(this)):(!a||a instanceof ul)&&(this._grouping=new Bc(this))}totalItemsCount(){const i=super.totalItemsCount();return i>0&&this._dataSource.group()&&this._dataSource.requireTotalCount()?i+this._grouping.totalCountCorrection():i}itemsCount(){return this._dataSource.group()?this._grouping.itemsCount()||0:super.itemsCount.apply(this,arguments)}allowCollapseAll(){return this._grouping.allowCollapseAll()}isGroupItemCountable(i){return this._grouping.isGroupItemCountable(i)}isRowExpanded(i){const a=this._grouping.findGroupInfo(i);return a?a.isExpanded:!this._grouping.allowCollapseAll()}collapseAll(i){return this._collapseExpandAll(i,!1)}expandAll(i){return this._collapseExpandAll(i,!0)}_collapseExpandAll(i,a){const c=this,g=c._dataSource,y=g.group(),D=Dt.normalizeSortingInfo(y||[]);if(D.length){for(let Y=0;Y<D.length;Y++)void 0===i||i===Y?D[Y].isExpanded=a:y&&y[Y]&&(D[Y].isExpanded=y[Y].isExpanded);g.group(D),c._grouping.foreachGroups((Y,xe)=>{(void 0===i||i===xe.length-1)&&(Y.isExpanded=a)},!1,!0),c.resetPagesCache()}return!0}refresh(){return super.refresh.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)}changeRowExpand(i){const a=this,c=a._dataSource;if(c.group())return c.beginLoading(),a._lastLoadOptions&&(a._lastLoadOptions.groupExpand=!0),a._changeRowExpandCore(i).always(()=>{c.endLoading()})}_changeRowExpandCore(i){return this._grouping.changeRowExpand(i)}_hasGroupLevelsExpandState(i,a){if(i&&Array.isArray(i))for(let c=0;c<i.length;c++)if(i[c].isExpanded===a)return!0}_customizeRemoteOperations(i,a){const{remoteOperations:c}=i;i.storeLoadOptions.group?(c.grouping&&!i.isCustomLoading&&(!c.groupPaging||this._hasGroupLevelsExpandState(i.storeLoadOptions.group,!0))&&(c.paging=!1),!c.grouping&&(!c.sorting||!c.filtering||i.isCustomLoading||this._hasGroupLevelsExpandState(i.storeLoadOptions.group,!1))&&(c.paging=!1)):!i.isCustomLoading&&c.paging&&a.grouping&&this.resetCache(),super._customizeRemoteOperations.apply(this,arguments)}_handleDataLoading(i){return super._handleDataLoading(i),this._initGroupingHelper(i),this._grouping.handleDataLoading(i)}_handleDataLoaded(i){return this._grouping.handleDataLoaded(i,super._handleDataLoaded.bind(this))}_handleDataLoadedCore(i){return this._grouping.handleDataLoadedCore(i,super._handleDataLoadedCore.bind(this))}});const Hh=function(I,i){const a=this._columnsController;switch(i.itemData.value){case"group":{const c=a._dataSource.group()||[];a.columnOption(I.dataField,"groupIndex",c.length);break}case"ungroup":a.columnOption(I.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},Ad=I=>{const i=I?.visible;return"auto"===i?"desktop"===jl.A.current().deviceType:!!i},zl=(I,i)=>Ad(I)&&!(!I?.allowColumnDragging||!i.allowGrouping);Dt.registerModule("grouping",{defaultOptions:()=>({grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:v.A.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:v.A.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:v.A.format("dxDataGrid-groupHeaderText"),ungroup:v.A.format("dxDataGrid-ungroupHeaderText"),ungroupAll:v.A.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:v.A.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}),extenders:{controllers:{data:I=>class extends I{init(){super.init(),this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed")}_beforeProcessItems(i){const a=this._columnsController.getGroupColumns();return(i=super._beforeProcessItems(i)).length&&a.length&&(i=this._processGroupItems(i,a.length)),i}_processItem(i,a){return(0,w.O9)(i.groupIndex)&&(0,w.Kg)(i.rowType)&&0===i.rowType.indexOf("group")?(i=this._processGroupItem(i,a),a.dataIndex=0):i=super._processItem.apply(this,arguments),i}_processGroupItem(i,a){return i}_processGroupItems(i,a,c){const g=this,y=g._columnsController.getGroupColumns(),D=y[y.length-a];if(!c){const xe=g.option("scrolling.mode");c={collectContinuationItems:"virtual"!==xe&&"infinite"!==xe,resultItems:[],path:[],values:[]}}const{resultItems:Y}=c;if(c.data&&(c.collectContinuationItems||!c.data.isContinuation)&&Y.push({rowType:"group",data:c.data,groupIndex:c.path.length-1,isExpanded:!!c.data.items,key:c.path.slice(0),values:c.values.slice(0)}),i)if(0===a)Y.push.apply(Y,i);else for(let xe=0;xe<i.length;xe++){const Le=i[xe];Le&&"items"in Le?(c.data=Le,c.path.push(Le.key),c.values.push(D&&D.deserializeValue&&!D.calculateDisplayValue?D.deserializeValue(Le.key):Le.key),g._processGroupItems(Le.items,a-1,c),c.data=void 0,c.path.pop(),c.values.pop()):Y.push(Le)}return Y}publicMethods(){return super.publicMethods().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])}collapseAll(i){const a=this._dataSource;a&&a.collapseAll(i)&&(a.pageIndex(0),a.reload())}expandAll(i){const a=this._dataSource;a&&a.expandAll(i)&&(a.pageIndex(0),a.reload())}changeRowExpand(i){const a=this,c=a.isRowExpanded(i),g={key:i,expanded:c};return a.executeAction(c?"onRowCollapsing":"onRowExpanding",g),g.cancel?(new ye.cY).resolve():(0,ye.z7)(a._changeRowExpandCore(i)).done(()=>{g.expanded=!c,a.executeAction(c?"onRowCollapsed":"onRowExpanded",g)})}_changeRowExpandCore(i){const a=this,c=this._dataSource,g=new ye.cY;return c?(0,ye.z7)(c.changeRowExpand(i)).done(()=>{a.load().done(g.resolve).fail(g.reject)}).fail(g.reject):g.resolve(),g}isRowExpanded(i){const a=this._dataSource;return a&&a.isRowExpanded(i)}expandRow(i){return this.isRowExpanded(i)?(new ye.cY).resolve():this.changeRowExpand(i)}collapseRow(i){return this.isRowExpanded(i)?this.changeRowExpand(i):(new ye.cY).resolve()}optionChanged(i){"grouping"===i.name&&(i.name="dataSource"),super.optionChanged(i)}},columns:I=>class extends I{_getExpandColumnOptions(){const i=super._getExpandColumnOptions.apply(this,arguments);return i.cellTemplate=Dt.getExpandCellTemplate(),i}},editing:I=>class extends I{_isProcessedItem(i){return(0,w.O9)(i.groupIndex)&&(0,w.Kg)(i.rowType)&&0===i.rowType.indexOf("group")}}},views:{headerPanel:I=>class extends I{_getToolbarItems(){const i=super._getToolbarItems();return this._appendGroupingItem(i)}_appendGroupingItem(i){if(this._isGroupPanelVisible()){let a=!1;i.push({template:()=>{const g=(0,T.A)("<div>").addClass("dx-datagrid-group-panel");return this._updateGroupPanelContent(g),Ie("groupPanel",this,g,void 0,this._handleActionKeyDown.bind(this)),g},name:"groupPanel",onItemRendered:()=>{a&&this.renderCompleted.fire(),a=!0},location:"before",locateInMenu:"never",sortIndex:1}),this.updateToolbarDimensions()}return i}_handleActionKeyDown(i){const{event:a}=i,c=(0,T.A)(a.target),g=c.closest(".dx-group-panel-item").index(),y=this._columnsController.getGroupColumns()[g],D=y&&y.index;c.is(".dx-header-filter")?this._headerFilterController.showHeaderFilterMenu(D,!0):this._processGroupItemAction(D),a.preventDefault()}_isGroupPanelVisible(){return Ad(this.option("groupPanel"))}_renderGroupPanelItems(i,a){const c=this;i.empty(),(0,e.__)(a,(g,y)=>{c._createGroupPanelItem(i,y)}),Se(this)}_createGroupPanelItem(i,a){const c=(0,T.A)("<div>").addClass(a.cssClass).addClass("dx-group-panel-item").data("columnData",a).appendTo(i).text(a.caption);return function Pe(I,i){I.option("useLegacyKeyboardnavigation")||i.attr("tabindex",I.option("tabindex")||0)}(this,c),c}_columnOptionChanged(i){if(!this._requireReady&&!Dt.checkChanges(i.optionNames,["width","visibleWidth"])){const a=this.element(),c=a&&a.find(".dx-datagrid-group-panel");c&&c.length&&(this._updateGroupPanelContent(c),this.updateToolbarDimensions(),this.renderCompleted.fire())}super._columnOptionChanged()}_updateGroupPanelContent(i){const a=this.getColumns(),c=this.option("groupPanel");this._renderGroupPanelItems(i,a),c.allowColumnDragging&&!a.length&&((0,T.A)("<div>").addClass("dx-group-panel-message").text(c.emptyPanelText).appendTo(i),i.closest(".dx-toolbar-item").addClass("dx-toolbar-label"),i.closest(".dx-toolbar-label").css("maxWidth","none"))}allowDragging(i){const a=this.option("groupPanel");return zl(a,i)}getColumnElements(){const i=this.element();return i&&i.find(".dx-group-panel-item")}getColumns(){return this._columnsController.getGroupColumns()}getBoundingRect(){const i=this.element();if(i&&i.find(".dx-datagrid-group-panel").length){const a=i.offset();return{top:a.top,bottom:a.top+(0,k.Oq)(i)}}return null}getName(){return"group"}getContextMenuItems(i){const a=this,c=a.option("grouping.contextMenuEnabled"),g=(0,T.A)(i.targetElement).closest(".dx-group-panel-item");let y;if(g.length&&(i.column=g.data("columnData")),c&&i.column){const{column:D}=i;if(!(0,w.O9)(D.allowGrouping)||D.allowGrouping){const xe=(0,w.O9)(D.groupIndex)&&D.groupIndex>-1,Le=a.option("grouping.texts"),st=Hh.bind(a,D);y=[{text:Le.ungroup,value:"ungroup",disabled:!xe,onItemClick:st},{text:Le.ungroupAll,value:"ungroupAll",onItemClick:st}]}}return y}isVisible(){return super.isVisible()||this._isGroupPanelVisible()}hasGroupedColumns(){return this._isGroupPanelVisible()&&!!this.getColumns().length}optionChanged(i){"groupPanel"===i.name?(this._invalidate(),i.handled=!0):super.optionChanged(i)}},rowsView:I=>class extends I{getContextMenuItems(i){const a=this;let g;if(a.option("grouping.contextMenuEnabled")&&i.row&&"group"===i.row.rowType){const D=a._columnsController.columnOption(`groupIndex:${i.row.groupIndex}`);if(D&&D.allowGrouping){const Y=a.option("grouping.texts"),xe=Hh.bind(a,D);g=[],g.push({text:Y.ungroup,value:"ungroup",onItemClick:xe},{text:Y.ungroupAll,value:"ungroupAll",onItemClick:xe})}}return g}_rowClick(i){const a=this,c=a.option("grouping.expandMode"),y="infinite"!==a.option("scrolling.mode")&&"rowClick"===c&&(0,T.A)(i.event.target).closest(".dx-group-row").length,D=(0,T.A)(i.event.target).closest(".dx-datagrid-expand").length;(y||D)&&a._changeGroupRowState(i),super._rowClick(i)}_changeGroupRowState(i){const a=this._dataController.items()[i.rowIndex],c=this._columnsController.columnOption(`groupIndex:${a.groupIndex}`,"allowCollapsing");("data"===a.rowType||"group"===a.rowType&&!1!==c)&&(this._dataController.changeRowExpand(a.key,!0),i.event.preventDefault(),i.handled=!0)}},columnHeadersView:I=>class extends I{getContextMenuItems(i){const a=this,c=a.option("grouping.contextMenuEnabled");let g=super.getContextMenuItems(i);if(c&&i.row&&("header"===i.row.rowType||"detailAdaptive"===i.row.rowType)){const{column:y}=i;if(!y.command&&(!(0,w.O9)(y.allowGrouping)||y.allowGrouping)){const D=a.option("grouping.texts"),Y=(0,w.O9)(y.groupIndex)&&y.groupIndex>-1,xe=Hh.bind(a,y);g=g||[],g.push({text:D.groupByThisColumn,value:"group",beginGroup:!0,disabled:Y,onItemClick:xe}),y.showWhenGrouped&&g.push({text:D.ungroup,value:"ungroup",disabled:!Y,onItemClick:xe}),g.push({text:D.ungroupAll,value:"ungroupAll",onItemClick:xe})}}return g}allowDragging(i){const a=this.option("groupPanel");return zl(a,i)||super.allowDragging(i)}}}}});const dc=function(I){I._expandedItems=[],I._isExpandAll=I.option("masterDetail.autoExpandAll")};Dt.registerModule("masterDetail",{defaultOptions:()=>({masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}),extenders:{controllers:{columns:I=>class extends I{_getExpandColumnsCore(){const i=super._getExpandColumnsCore();return this.option("masterDetail.enabled")&&i.push({type:"detailExpand",cellTemplate:Ot.getExpandCellTemplate()}),i}},data:I=>class extends I{init(){dc(this),super.init()}expandAll(i){const a=this;i<0?(a._isExpandAll=!0,a._expandedItems=[],a.updateItems()):super.expandAll.apply(a,arguments)}collapseAll(i){const a=this;i<0?(a._isExpandAll=!1,a._expandedItems=[],a.updateItems()):super.collapseAll.apply(a,arguments)}isRowExpandedHack(){return super.isRowExpanded.apply(this,arguments)}isRowExpanded(i){const a=this,c=Ot.getIndexByKey(i,a._expandedItems);return Array.isArray(i)?super.isRowExpanded.apply(a,arguments):!!(a._isExpandAll^(c>=0&&a._expandedItems[c].visible))}_getRowIndicesForExpand(i){const a=this.getRowIndexByKey(i);return[a,a+1]}_changeRowExpandCore(i){const a=this;let c;if(Array.isArray(i))c=super._changeRowExpandCore.apply(a,arguments);else{const g=Ot.getIndexByKey(i,a._expandedItems);if(g>=0){const{visible:y}=a._expandedItems[g];a._expandedItems[g].visible=!y}else a._expandedItems.push({key:i,visible:!0});a.updateItems({changeType:"update",rowIndices:a._getRowIndicesForExpand(i)}),c=(new ye.cY).resolve()}return c}_processDataItemHack(){return super._processDataItem.apply(this,arguments)}_processDataItem(i,a){const c=super._processDataItem.apply(this,arguments);return c.isExpanded=this.isRowExpanded(c.key),void 0===a.detailColumnIndex&&(a.detailColumnIndex=-1,(0,e.__)(a.visibleColumns,(g,y)=>{if("expand"===y.command&&!(0,w.O9)(y.groupIndex))return a.detailColumnIndex=g,!1})),a.detailColumnIndex>=0&&(c.values[a.detailColumnIndex]=c.isExpanded),c}_processItemsHack(){return super._processItems.apply(this,arguments)}_processItems(i,a){const c=this,{changeType:g}=a,y=[];return i=super._processItems.apply(c,arguments),"loadingAll"===g?i:("refresh"===g&&(c._expandedItems=(0,b.VM)(c._expandedItems,D=>D.visible)),(0,e.__)(i,(D,Y)=>{y.push(Y);const xe=Ot.getIndexByKey(Y.key,c._expandedItems);"data"===Y.rowType&&(Y.isExpanded||xe>=0)&&!Y.isNewRow&&y.push({visible:Y.isExpanded,rowType:"detail",key:Y.key,data:Y.data,values:[]})}),y)}optionChanged(i){const a=this;let c,g;if("masterDetail"===i.name){switch(i.name="dataSource",i.fullName){case"masterDetail":{const y=i.value||{},D=i.previousValue||{};c=y.enabled!==D.enabled,g=y.autoExpandAll!==D.autoExpandAll;break}case"masterDetail.template":dc(a);break;case"masterDetail.enabled":c=!0;break;case"masterDetail.autoExpandAll":g=!0}(c||g)&&dc(a)}super.optionChanged(i)}},resizing:I=>class extends I{fireContentReadyAction(){super.fireContentReadyAction.apply(this,arguments),this._updateParentDataGrids(this.component.$element())}_updateParentDataGrids(i){const a=i.closest(".dx-master-detail-row");a.length&&(0,ye.z7)(this._updateMasterDataGrid(a,i)).done(()=>{this._updateParentDataGrids(a.parent())})}_updateMasterDataGrid(i,a){const c=(0,T.A)(i).data("options"),g=(0,T.A)(i).closest(`.${this.getWidgetContainerClass()}`).parent().data("dxDataGrid");if(c&&g)return this._updateMasterDataGridCore(g,c)}_updateMasterDataGridCore(i,a){const c=(0,ye.cY)();if(i.getView("rowsView").isFixedColumns())this._updateFixedMasterDetailGrids(i,a.rowIndex,(0,T.A)(a.rowElement)).done(c.resolve);else{if(!0===i.option("scrolling.useNative"))return void i.updateDimensions().done(()=>c.resolve(!0));const g=i.getScrollable();g?g?.update().done(()=>c.resolve()):c.resolve()}return c.promise()}_updateFixedMasterDetailGrids(i,a,c){const g=(0,ye.cY)(),y=(0,T.A)(i.getRowElement(a)),D=(0,T.A)(i.getView("rowsView").getTableElements()),Y=2===y?.length&&(0,k.Oq)(y.eq(0))!==(0,k.Oq)(y.eq(1)),xe=2===D?.length&&(0,k.Oq)(D.eq(0))!==(0,k.Oq)(D.eq(1));if(Y||xe){const Le=(0,k.RG)(c);return i.updateDimensions().done(()=>{const st=this.option("columnAutoWidth")&&!0===i.option("scrolling.useNative"),mt=st&&Le!==(0,k.RG)(c);st&&mt?this.updateDimensions().done(()=>g.resolve(!0)):g.resolve(!0)}),g.promise()}return(0,ye.cY)().resolve()}_toggleBestFitMode(i){if(super._toggleBestFitMode.apply(this,arguments),this.option("masterDetail.template")){const a=this._rowsView.getTableElement();a&&a.find(".dx-master-detail-cell").css("maxWidth",i?0:"")}}}},views:{rowsView:I=>class extends I{_getCellTemplate(i){const a=this,{column:c}=i,g=this._editingController,y=g&&g.isEditRow(i.rowIndex);let D;return D="detail"!==c.command||y?super._getCellTemplate.apply(a,arguments):a.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:a._getDefaultTemplate(c)},D}_isDetailRow(i){return i&&i.rowType&&0===i.rowType.indexOf("detail")}_createRow(i){const a=super._createRow.apply(this,arguments);return i&&this._isDetailRow(i)&&(this.option("showRowLines")&&a.addClass("dx-row-lines"),a.addClass("dx-master-detail-row"),(0,w.O9)(i.visible)&&a.toggle(i.visible)),a}_renderCells(i,a){const{row:c}=a;let g;const y=this._columnsController.getVisibleColumns();c.rowType&&this._isDetailRow(c)?this._needRenderCell(0,a.columnIndices)&&(g=this._renderCell(i,{value:null,row:c,rowIndex:c.rowIndex,column:{command:"detail"},columnIndex:0,change:a.change}),g.addClass("dx-cell-focus-disabled").addClass("dx-master-detail-cell").attr("colSpan",y.length),c.isEditing||g.attr("aria-roledescription",v.A.format("dxDataGrid-masterDetail"))):super._renderCells.apply(this,arguments)}}}}});var Id=p(6870),Kl=(p(8910),p(9810)),Zt=p(3480),Ze=p(6520);p(8638);const{isWrapped:Hn}=Mn.A,so=function(I,i){return(0,C.X)(I,{readOnly:i.readOnly,placeholder:i.placeholder,inputAttr:{id:i.id,"aria-labelledby":i["aria-labelledby"]},tabIndex:i.tabIndex},i.editorOptions)},Ao=function(){return Ce.A.mozilla||jl.A.real().ios},Xo=function(I){const i={},a=Ao(),c=I.sharedData||i;return so({placeholder:I.placeholder,width:I.width,value:I.value,onValueChanged:function(g){const y="filterRow"===I.parentType||"searchPanel"===I.parentType,D=g.event&&("input"===g.event.type||"keyup"===g.event.type),Y=function(xe,Le){I&&I.setValue(xe.value,Le)};clearTimeout(i.valueChangeTimeout),D&&y?c.valueChangeTimeout=i.valueChangeTimeout=setTimeout(function(){Y(g,i.valueChangeTimeout!==c.valueChangeTimeout)},(0,w.O9)(I.updateValueTimeout)?I.updateValueTimeout:0):Y(g)},onKeyDown:function(g){a&&"enter"===(0,x.YD)(g.event)&&P.A.trigger((0,T.A)(g.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===I.parentType?" keyup input":"")},I)},As=function(I){I.editorName="dxDateBox",I.editorOptions=so({value:I.value,onValueChanged:function(i){I.setValue(i.value)},onKeyDown:function(i){let{component:a,event:c}=i;const g=a.option("useMaskBehavior");(Ao()||g)&&"enter"===(0,x.YD)(c)&&(a.blur(),a.focus())},displayFormat:I.format,type:I.dataType,dateSerializationFormat:null,width:"filterBuilder"===I.parentType?void 0:"auto"},I)},Zo=function(I){const i=Xo(I),a="searchPanel"===I.parentType;var c;i.value=I.editorType&&"dxTextBox"!==I.editorType?I.value:(0,w.O9)(c=I.value)?c.toString():"",i.valueChangeEvent+=a?" keyup input search":"",i.mode=i.mode||(a?"search":"text"),I.editorName="dxTextBox",I.editorOptions=i},qs=function(I){const i=Xo(I);i.value=(0,w.O9)(I.value)?I.value:null,I.editorName="dxNumberBox",I.editorOptions=i};function Lr(I){const i=I.lookup;let a,c,g;const y="filterRow"===I.parentType;if(i){a=(0,nn.Hz)(i.displayExpr),c=i.dataSource,(0,w.Tn)(c)&&!Hn(c)&&(c=c(I.row||{}),function or(I){if(I.row&&I.row.watch&&"dataRow"===I.parentType){const i=I.editorOptions||{};let a;I.editorOptions=i;const c=i.onInitialized;let g;i.onInitialized=function(D){c&&c.apply(this,arguments),a=D.component,a.on("disposing",y)};const y=I.row.watch(()=>(g=I.lookup.dataSource(I.row),g&&g.filter),()=>{a.option("dataSource",g)},D=>{I.row=D})}}(I)),((0,w.Gv)(c)||Array.isArray(c))&&(c=(0,ji.ho)(c),y&&(g=c.postProcess,c.postProcess=function(Y){return 0===this.pageIndex()&&(Y=Y.slice(0)).unshift(null),g?g.call(this,Y):Y}));const D=!(!i.allowClearing||y);I.editorName=I.editorType??"dxSelectBox",I.editorOptions=so({searchEnabled:!0,value:I.value,valueExpr:I.lookup.valueExpr,searchExpr:I.lookup.searchExpr||I.lookup.displayExpr,allowClearing:D,showClearButton:D,displayExpr:function(Y){return null===Y?I.showAllText:a(Y)},dataSource:c,onValueChanged:function(Y){const xe=[Y.value];!y&&xe.push(Y.component.option("text")),I.setValue.apply(this,xe)}},I)}}function pr(I){I.editorName="dxCheckBox",I.editorOptions=so({elementAttr:{id:I.id},value:(0,w.O9)(I.value)?I.value:void 0,hoverStateEnabled:!I.readOnly,focusStateEnabled:!I.readOnly,activeStateEnabled:!1,onValueChanged:function(i){I.setValue&&I.setValue(i.value,i)}},I)}const Gr=I=>{I.editorName=I.editorType,I.editorOptions=so({value:I.value,onValueChanged:function(i){I.setValue(i.value)}},I)},Wr=I=>{const i={dxDateBox:As,dxCheckBox:pr,dxNumberBox:qs,dxTextBox:Zo};if(I.lookup)Lr(I);else if(I.editorType)(i[I.editorType]??Gr)(I);else switch(I.dataType){case"date":case"datetime":As(I);break;case"boolean":!function(I){"filterRow"===I.parentType||"filterBuilder"===I.parentType?Lr((0,C.X)(I,{lookup:{displayExpr:function(i){return!0===i?I.trueText||"true":!1===i?I.falseText||"false":void 0},dataSource:[!0,!1]}})):pr(I)}(I);break;case"number":qs(I);break;default:Zo(I)}},mr=I=>class extends I{createEditor(i,a){a.cancel=!1,a.editorElement=(0,W.cc)(i),(0,w.O9)(a.tabIndex)||(a.tabIndex=this.option("tabIndex")),Wr(a),this.executeAction("onEditorPreparing",a),!a.cancel&&("dataRow"===a.parentType&&!a.isOnForm&&!(0,w.O9)(a.editorOptions.showValidationMark)&&(a.editorOptions.showValidationMark=!1),function(I,i){const a=(0,T.A)(i.editorElement);if(i.editorName&&i.editorOptions&&a[i.editorName]){if(("dxCheckBox"===i.editorName||"dxSwitch"===i.editorName)&&(i.isOnForm||(a.addClass(I.addWidgetPrefix("checkbox-size")),a.parent().addClass("dx-editor-inline-block"))),I._createComponent(a,i.editorName,i.editorOptions),"dxDateBox"===i.editorName){const c=a.dxDateBox("instance"),g=c._supportedKeys().enter;c.registerKeyHandler("enter",y=>(c.option("opened")&&g(y),!0))}"dxTextArea"===i.editorName&&a.dxTextArea("instance").registerKeyHandler("enter",function(c){"enter"===(0,x.YD)(c)&&!c.ctrlKey&&!c.shiftKey&&c.stopPropagation()})}}(this,a),this.executeAction("onEditorPrepared",a))}},Ml="dxDataGridEditorFactory",ol=(0,x.b4)([pe.A.down,"focusin",de.U].join(" "),Ml),Ya="dx-hidden",Md=mr(ft.ViewController);Dt.registerModule("editorFactory",{defaultOptions:()=>({}),controllers:{editorFactory:class Yl extends Md{init(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._columnsResizerController=this.getController("columnsResizer"),this._editingController=this.getController("editing"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._columnsController=this.getController("columns"),this._validatingController=this.getController("validating"),this._rowsView=this.getView("rowsView"),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),this._subscribedContainerRoot=this._getContainerRoot(),P.A.on(this._subscribedContainerRoot,ol,this._updateFocusHandler),this._attachContainerEventHandlers()}dispose(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),P.A.off(this._subscribedContainerRoot,ol,this._updateFocusHandler)}_getFocusedElement(i){const c=["td[tabindex]:focus",this.option("focusedRowEnabled")?"tr[tabindex]:focus":"tr[tabindex]:not(.dx-data-row):focus","input:focus","button:focus","textarea:focus","div[tabindex]:focus",".dx-lookup-field:focus",".dx-checkbox:focus",".dx-switch:focus",".dx-dropdownbutton .dx-buttongroup:focus",".dx-adaptive-item-text:focus"].join(","),g=i.find(c);return this.elementIsInsideGrid(g)&&g}_getFocusCellSelector(){return".dx-row > td"}_updateFocusCore(){const i=this.component&&this.component.$element();if(i){let a=this._getFocusedElement(i);if(a&&a.length){let c;if(!a.hasClass("dx-cell-focus-disabled")&&!a.hasClass("dx-row")){const g=a.closest(`${this._getFocusCellSelector()}, .dx-cell-focus-disabled`);g.get(0)!==a.get(0)&&(c=this._needHideBorder(g),a=g)}if(a.length&&!a.hasClass("dx-cell-focus-disabled"))return void this.focus(a,c)}}this.loseFocus()}_needHideBorder(i){const a=this._rowsView.element(),c=i.closest(a).length>0,g=this._editingController.isEditing();return i.hasClass("dx-editor-inline-block")||c&&!g}_updateFocus(i){const a=this,c=i&&i.event&&(0,T.A)(i.event.target).hasClass(a.addWidgetPrefix("focus-overlay"));a._isFocusOverlay=a._isFocusOverlay||c,clearTimeout(a._updateFocusTimeoutID),a._updateFocusTimeoutID=setTimeout(()=>{delete a._updateFocusTimeoutID,a._isFocusOverlay||a._updateFocusCore(),a._isFocusOverlay=!1})}_updateFocusOverlaySize(i,a){i.hide();const c=Id.A.calculate(i,(0,C.X)({collision:"fit"},a));c.h.oversize>0&&(0,k.iT)(i,(0,k.Ot)(i)-c.h.oversize),c.v.oversize>0&&(0,k.NG)(i,(0,k.P$)(i)-c.v.oversize),i.show()}callbackNames(){return["focused"]}focus(i,a){const c=this;if(void 0===i)return c._$focusedElement;i&&(i.is(c._$focusedElement)||c._$focusedElement&&c._$focusedElement.removeClass("dx-focused"),c._$focusedElement=i,clearTimeout(c._focusTimeoutID),c._focusTimeoutID=setTimeout(()=>{delete c._focusTimeoutID,c.renderFocusOverlay(i,a),i.addClass("dx-focused"),c.focused.fire(i)}))}refocus(){const i=this.focus();this.focus(i)}renderFocusOverlay(i,a){const c=this;if(Ot.isElementInCurrentGrid(this,i))if(c._$focusOverlay||(c._$focusOverlay=(0,T.A)("<div>").addClass(c.addWidgetPrefix("focus-overlay"))),a)c._$focusOverlay.addClass(Ya);else if(i.length){const g=Ce.A.mozilla?"right bottom":"left top",y=i.closest(`.${c.addWidgetPrefix("content")}`),D=(0,Me.N)(i.get(0)),Y=i.hasClass(this.addWidgetPrefix("invalid")),xe=i.hasClass("dx-cell-modified")&&!Y;c._$focusOverlay.removeClass(Ya).toggleClass("dx-focused-cell-invalid",Y).toggleClass("dx-focused-cell-modified",xe).appendTo(y),(0,k.NG)(c._$focusOverlay,D.bottom-D.top+1),(0,k.iT)(c._$focusOverlay,D.right-D.left+1);const Le={precise:!0,my:g,at:g,of:i,boundary:y.length&&y};c._updateFocusOverlaySize(c._$focusOverlay,Le),Id.A.setup(c._$focusOverlay,Le),c._$focusOverlay.css("visibility","visible")}}resize(){const i=this._$focusedElement;i&&this.focus(i)}loseFocus(i){this._$focusedElement&&this._$focusedElement.removeClass("dx-focused"),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(Ya)}_getContainerRoot(){var i;const a=null===(i=this.component)||void 0===i?void 0:i.$element(),c=m.A.getRootNode(a?.get(0));return c.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||c.host?c:m.A.getDocument()}_attachContainerEventHandlers(){const i=this,a=i.component&&i.component.$element();a&&P.A.on(a,(0,x.b4)("keydown",Ml),c=>{"tab"===(0,x.YD)(c)&&i._updateFocusHandler(c)})}}}});var ed=p(1832),Pd=p(8535),td=p(8761);const Ql="dx-editor-cell",fa="dx-row",Rd="dx-selection",uc="edit-form",Ia="insert",hc="remove",Ba="editing.popup",ah="editing.form",sl="editing.editRowKey",kd="editing.editColumnName",Vc="targetComponent",Uh="input:not([type='hidden'])",lh=`[tabindex]:not([disabled]), ${Uh}:not([disabled])`,jh="batch",mu="row",nd="cell",Bd="form",h="last",we="pageBottom",Cn="pageTop",Ns="viewportBottom",vs="viewportTop",_u=["batch","row","cell","form","popup"],yf=["row","form","popup"],wg=["batch","cell"],id=["batch","row","cell"],Gh=["row","form"],Im="dx-command-edit-with-icons",Rl="__DX_INSERT_INDEX__",dv="dx-cell-modified",te="update",ve={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete",delete:"dx-link-delete",add:"dx-link-add"},Ge={save:"save",cancel:"revert",edit:"edit",undelete:"revert",delete:"trash",add:"add"},Je={edit:"editRow",delete:"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},pt={add:"allowAdding",edit:"allowUpdating",delete:"allowDeleting"},Tt=["edit","save","cancel","delete","undelete"],$t="editing.changes",ts="edit-form-item",sr=Sa.A.IS_RENOVATED_WIDGET?"dx-scrollable":"dx-scrollable-container",Mm="dx-edit-row",Dg=function(I){return function(i){const a=i instanceof Error?i:new Error(i&&String(i)||"Unknown error");I.reject(a)}},Kh=function(I,i){return i.isEditing||I&&i.column.allowEditing},Rm=function(I,i){const a=!!i.column.command,c=Kh(I,i);return"data"===i.rowType&&!a&&(c||i.column.showEditorAlways)},Fp=(I,i)=>{let a=-1;return I.some((c,g)=>{if(hv(c)===i)return a=g,!0}),a};function hv(I){return(0,w.Gv)(I)?I.name:I}const Tg=(I,i)=>{I.forEach(a=>{a.items||a.tabs?Tg(a.items||a.tabs,i):i(a)})},My=I=>class extends I{reload(i,a){return!a&&this._editingController.refresh(),super.reload.apply(this,arguments)}repaintRows(){if(!this._editingController.isSaving())return super.repaintRows.apply(this,arguments)}_updateEditRow(i){const a=this.option(sl),g=i[Ot.getIndexByKey(a,i)];var y;g&&(g.isEditing=!0,null===(y=this._updateEditItem)||void 0===y||y.call(this,g))}_updateItemsCore(i){super._updateItemsCore(i),this._updateEditRow(this.items(!0))}_applyChangeUpdate(i){this._updateEditRow(i.items),super._applyChangeUpdate(i)}_applyChangesOnly(i){this._updateEditRow(i.items),super._applyChangesOnly(i)}_processItems(i,a){return i=this._editingController.processItems(i,a),super._processItems(i,a)}_processDataItem(i,a){return this._editingController.processDataItem(i,a,this.generateDataValues),super._processDataItem(i,a)}_processItem(i,a){return(i=super._processItem(i,a)).isNewRow&&(a.dataIndex--,delete i.dataIndex),i}_getChangedColumnIndices(i,a,c,g){if(i.isNewRow===a.isNewRow&&i.removed===a.removed)return super._getChangedColumnIndices.apply(this,arguments)}_isCellChanged(i,a,c,g,y){const D=i.cells&&i.cells[g],Y=this._editingController&&this._editingController.isEditCell(c,g);return(!y||!Y)&&(!(!D||!D.column||D.column.showEditorAlways||D.isEditing===Y)||super._isCellChanged.apply(this,arguments))}needToRefreshOnDataSourceChange(i){return!(Array.isArray(i.value)&&i.value===i.previousValue&&this._editingController.isSaving())}_handleDataSourceChange(i){const a=super._handleDataSourceChange(i),c=this.option("editing.changes"),g=i.value;if(Array.isArray(g)&&c.length){const y=g.map(Le=>this.keyOf(Le)),D=c.filter(Le=>"insert"===Le.type||y.some(st=>(0,b.RL)(Le.key,st)));D.length!==c.length&&this.option("editing.changes",D);const Y=this.option("editing.editRowKey");!D.some(Le=>"insert"===Le.type&&(0,b.RL)(Y,Le.key))&&y.every(Le=>!(0,b.RL)(Y,Le))&&this.option("editing.editRowKey",null)}return a}},km={defaultOptions:()=>({editing:{mode:"row",refreshMode:"full",newRowPosition:vs,allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,confirmDelete:!0,texts:{editRow:v.A.format("dxDataGrid-editingEditRow"),saveAllChanges:v.A.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:v.A.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:v.A.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:v.A.format("dxDataGrid-editingCancelRowChanges"),addRow:v.A.format("dxDataGrid-editingAddRow"),deleteRow:v.A.format("dxDataGrid-editingDeleteRow"),undeleteRow:v.A.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:v.A.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click",editRowKey:null,editColumnName:null,changes:[]},useLegacyColumnButtonTemplate:!1}),controllers:{editing:class oE extends ft.ViewController{init(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._validatingController=this.getController("validating"),this._editorFactoryController=this.getController("editorFactory"),this._focusController=this.getController("focus"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._columnsResizerController=this.getController("columnsResizer"),this._errorHandlingController=this.getController("errorHandling"),this._rowsView=this.getView("rowsView"),this._headerPanelView=this.getView("headerPanel"),this._lastOperation=null,this._changes=[],this._deferreds&&this._deferreds.forEach(i=>{i.reject("cancel")}),this._deferreds=[],this._dataChangedHandler||(this._dataChangedHandler=this._handleDataChanged.bind(this),this._dataController.changed.add(this._dataChangedHandler)),this._saveEditorHandler||(this.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceling",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceled",{excludeValidators:["disabled","readOnly"]})),this._updateEditColumn(),this._updateEditButtons(),this._internalState||(this._internalState=[]),this.component._optionsByReference[sl]=!0,this.component._optionsByReference[$t]=!0}getEditMode(){const i=this.option("editing.mode")??mu;return _u.includes(i)?i:mu}isCellBasedEditMode(){const i=this.getEditMode();return wg.includes(i)}_getDefaultEditorTemplate(){return(i,a)=>{const c=(0,T.A)("<div>").appendTo(i),g=(0,C.X)({},a.column,{value:a.value,setValue:a.setValue,row:a.row,parentType:"dataRow",width:null,readOnly:!a.setValue,isOnForm:a.isOnForm,id:a.id});id.includes(this.getEditMode())&&(g["aria-labelledby"]=a.column.headerId),this._editorFactoryController.createEditor(c,g)}}_getNewRowPosition(){const i=this.option("editing.newRowPosition");if("virtual"===this.option("scrolling.mode"))switch(i){case Cn:return vs;case we:return Ns;default:return i}return i}getChanges(){return this.option($t)}getInsertRowCount(){return this.option($t).filter(a=>"insert"===a.type).length}resetChanges(){const i=this.getChanges();i?.length&&this._silentOption($t,[])}_getInternalData(i){return this._internalState.filter(a=>(0,b.RL)(a.key,i))[0]}_addInternalData(i){const a=this._getInternalData(i.key);return a?(0,C.X)(a,i):(this._internalState.push(i),i)}_getOldData(i){var a;return null===(a=this._getInternalData(i))||void 0===a?void 0:a.oldData}getUpdatedData(i){const a=this._dataController.keyOf(i),c=this.getChanges(),g=Ot.getIndexByKey(a,c);return c[g]?(0,ht.lj)(i,c[g].data):i}getInsertedData(){return this.getChanges().filter(i=>i.data&&i.type===Ia).map(i=>i.data)}getRemovedData(){return this.getChanges().filter(i=>this._getOldData(i.key)&&i.type===hc).map(i=>this._getOldData(i.key))}_fireDataErrorOccurred(i){if("cancel"===i)return;const a=this.getPopupContent();this._dataController.dataErrorOccurred.fire(i,a)}_needToCloseEditableCell(i){}_closeEditItem(i){}_handleDataChanged(i){}_isDefaultButtonVisible(i,a){let c=!0;switch(i.name){case"delete":c=this.allowDeleting(a);break;case"undelete":c=!1}return c}isPopupEditMode(){return"popup"===this.option("editing.mode")}_isButtonVisible(i,a){const{visible:c}=i;return(0,w.O9)(c)?(0,w.Tn)(c)?c.call(i,{component:a.component,row:a.row,column:a.column}):c:this._isDefaultButtonVisible(i,a)}_isButtonDisabled(i,a){const{disabled:c}=i;return(0,w.Tn)(c)?c.call(i,{component:a.component,row:a.row,column:a.column}):!!c}_getButtonConfig(i,a){const c=(0,w.Gv)(i)?i:{},g=hv(i),y=(I=>{const i=I.component.option("editing.texts")||{};return{save:i.saveRowChanges,cancel:i.cancelRowChanges,edit:i.editRow,undelete:i.undeleteRow,delete:i.deleteRow,add:i.addRowToNode}})(a),D=Je[g],Y=this.option("editing"),xe=pt[g],Le=!xe||Y[xe];return(0,C.X)({name:g,text:y[g],cssClass:ve[g]},{onClick:D&&(st=>{const{event:mt}=st;mt.stopPropagation(),mt.preventDefault(),setTimeout(()=>{a.row&&Le&&this[D]&&this[D](a.row.rowIndex)})})},c)}_getEditingButtons(i){let a;const c=!!i.column.buttons;let g=(i.column.buttons||[]).slice();return c?(a=Fp(g,"edit"),a>=0&&(Fp(g,"save")<0&&g.splice(a+1,0,"save"),Fp(g,"cancel")<0&&g.splice(Fp(g,"save")+1,0,"cancel")),a=Fp(g,"delete"),a>=0&&Fp(g,"undelete")<0&&g.splice(a+1,0,"undelete")):g=Tt.slice(),g.map(y=>this._getButtonConfig(y,i))}_renderEditingButtons(i,a,c,g){a.forEach(y=>{this._isButtonVisible(y,c)&&this._createButton(i,y,c,g)})}_getEditCommandCellTemplate(){return(i,a,c)=>{const g=(0,T.A)(i);if("data"===a.rowType){const y=this._getEditingButtons(a);if(this._renderEditingButtons(g,y,a,c),a.watch){const D=a.watch(()=>y.map(Y=>({visible:this._isButtonVisible(Y,a),disabled:this._isButtonDisabled(Y,a)})),()=>{g.empty(),this._renderEditingButtons(g,y,a)});P.A.on(g,Ee.N,D)}}else Ot.setEmptyText(g)}}isRowBasedEditMode(){const i=this.getEditMode();return yf.includes(i)}getFirstEditableColumnIndex(){let i;const a=this._columnsController.getVisibleColumns();return(0,e.__)(a,(c,g)=>{if(g.allowEditing)return i=c,!1}),i}getFirstEditableCellInRow(i){var a;const c=this.getFirstEditableColumnIndex();return null===(a=this._rowsView)||void 0===a?void 0:a._getCellElement(i||0,c)}getFocusedCellInRow(i){return this.getFirstEditableCellInRow(i)}getIndexByKey(i,a){return Ot.getIndexByKey(i,a)}hasChanges(i){const a=this.getChanges();let c=!1;for(let g=0;g<a?.length;g++)if(a[g].type&&(!(0,w.O9)(i)||this._dataController.getRowIndexByKey(a[g].key)===i)){c=!0;break}return c}dispose(){super.dispose(),clearTimeout(this._inputFocusTimeoutID),P.A.off(m.A.getDocument(),pe.A.up,this._pointerUpEditorHandler),P.A.off(m.A.getDocument(),pe.A.down,this._pointerDownEditorHandler),P.A.off(m.A.getDocument(),de.U,this._saveEditorHandler)}_silentOption(i,a){"editing.changes"===i&&(this._changes=(0,Ki.tm)([],a)),super._silentOption(i,a)}optionChanged(i){if("editing"===i.name){const{fullName:a}=i;a===sl?this._handleEditRowKeyChange(i):a===$t?(0,b.RL)(i.value,this._changes,{maxDepth:4})||(this._changes=(0,Ki.tm)([],i.value),this._handleChangesChange(i)):i.handled||(this._columnsController.reinit(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey()),i.handled=!0}else super.optionChanged(i)}_handleEditRowKeyChange(i){const a=this._dataController.getRowIndexByKey(i.value),c=this._getEditRowIndexCorrection(),g=this._dataController.getRowIndexByKey(i.previousValue)+c;(0,w.O9)(i.value)?i.value!==i.previousValue&&this._editRowFromOptionChanged(a,g):this.cancelEditData()}_handleChangesChange(i){const a=this._dataController;!i.value.length&&!i.previousValue.length||(i.value.forEach(g=>{if("insert"===g.type)this._addInsertInfo(g);else{var y;const D=a.getCachedStoreData()||(null===(y=a.items())||void 0===y?void 0:y.map(xe=>xe.data)),Y=Ot.getIndexByKey(g.key,D,a.key());this._addInternalData({key:g.key,oldData:D[Y]})}}),a.updateItems({repaintChangesOnly:!0,isLiveUpdate:!1,isOptionChanged:!0}))}publicMethods(){return["addRow","deleteRow","undeleteRow","editRow","saveEditData","cancelEditData","hasEditData"]}refresh(){(0,w.O9)(this._pageIndex)&&this._refreshCore.apply(this,arguments)}_refreshCore(i){}isEditing(){return(0,w.O9)(this.option(sl))}isEditRow(i){return!1}_setEditRowKey(i,a){a?this._silentOption(sl,i):this.option(sl,i),this._refocusEditCell&&(this._refocusEditCell=!1,this._focusEditingCell())}_setEditRowKeyByIndex(i,a){const c=this._dataController.getKeyByRowIndex(i);void 0!==c?this._setEditRowKey(c,a):this._dataController.fireError("E1043")}getEditRowIndex(){return this._getVisibleEditRowIndex()}getEditFormRowIndex(){return-1}isEditRowByIndex(i){const a=this._dataController.getKeyByRowIndex(i);return(0,w.O9)(a)&&(0,b.RL)(this.option(sl),a)&&this._getVisibleEditRowIndex()===i}isEditCell(i,a){return this.isEditRowByIndex(i)&&this._getVisibleEditColumnIndex()===a}getPopupContent(){}_isProcessedItem(i){return!1}_getInsertRowIndex(i,a,c){let g=-1;const y=this._dataController,D=this._getInsertAfterOrBeforeKey(a);return(0,w.O9)(D)||0!==i.length?(0,w.O9)(D)&&i.some((Y,xe)=>{const Le=c||this._isProcessedItem(Y);if((0,w.Gv)(Y)&&(Le||(0,w.O9)(Y[Rl])?(0,b.RL)(Y.key,D)&&(g=xe):(0,b.RL)(y.keyOf(Y),D)&&(g=xe)),g>=0){const st=i[g+1];return st&&("detail"===st.rowType||"detailAdaptive"===st.rowType)&&(0,w.O9)(a.insertAfterKey)?void 0:((0,w.O9)(a.insertAfterKey)&&(g+=1),!0)}}):g=0,g}_generateNewItem(i){var a;const c={key:i},g=null===(a=this._getInternalData(i))||void 0===a?void 0:a.insertInfo;return null!=g&&g[Rl]&&(c[Rl]=g[Rl]),c}_getLoadedRowIndex(i,a,c){let g=this._getInsertRowIndex(i,a,c);const y=this._dataController;if(g<0){const D=this._getNewRowPosition(),Y=y.pageIndex(),xe=this._getInsertAfterOrBeforeKey(a);D===h||0!==Y||(0,w.O9)(xe)?D===h&&y.isLastPageLoaded()&&(g=i.length):g=0}return g}processItems(i,a){const{changeType:c}=a;return this.update(c),this.getChanges().forEach(y=>{var D;if(y.type!==Ia)return;let{key:xe}=y,Le=null===(D=this._getInternalData(xe))||void 0===D?void 0:D.insertInfo;(!(0,w.O9)(xe)||!(0,w.O9)(Le))&&(Le=this._addInsertInfo(y),xe=Le.key);const st=this._getLoadedRowIndex(i,y),mt=this._generateNewItem(xe);st>=0&&i.splice(st,0,mt)}),i}processDataItem(i,a,c){const g=a.visibleColumns,y=i.data[Rl]?i.data.key:i.key,D=this.getChanges(),Y=Ot.getIndexByKey(y,D);i.isEditing=!1,Y>=0&&this._processDataItemCore(i,D[Y],y,g,c)}_processDataItemCore(i,a,c,g,y){const{data:D,type:Y}=a;switch(Y){case Ia:i.isNewRow=!0,i.key=c,i.data=D;break;case te:i.modified=!0,i.oldData=i.data,i.data=(0,ht.lj)(i.data,D),i.modifiedValues=y(D,g,!0);break;case hc:i.removed=!0}}_initNewRow(i){if(this.executeAction("onInitNewRow",i),i.promise){const a=new ye.cY;return(0,ye.z7)((0,ye.Sx)(i.promise)).done(a.resolve).fail(Dg(a)).fail(c=>this._fireDataErrorOccurred(c)),a}}_createInsertInfo(){const i={};return i[Rl]=this._getInsertIndex(),i}_addInsertInfo(i,a){var c;let g;i.key=this.getChangeKeyValue(i);const{key:y}=i;if(g=null===(c=this._getInternalData(y))||void 0===c?void 0:c.insertInfo,!(0,w.O9)(g)){const D=this._getInsertAfterOrBeforeKey(i);g=this._createInsertInfo(),(0,w.O9)(D)||this._setInsertAfterOrBeforeKey(i,a)}return this._addInternalData({insertInfo:g,key:y}),{insertInfo:g,key:y}}getChangeKeyValue(i){if((0,w.O9)(i.key))return i.key;const a=this._dataController.key();let c;return i.data&&a&&!Array.isArray(a)&&(c=i.data[a]),(0,w.O9)(c)||(c=`_DX_KEY_${new he.A}`),c}_setInsertAfterOrBeforeKey(i,a){const c=this.getView("rowsView"),g=this._dataController,y=g.items(!0),D=this._getNewRowPosition();switch(D){case"first":case h:break;case Cn:case we:if(y.length){const Y=D===Cn?0:y.length-1;i[0===Y?"insertBeforeKey":"insertAfterKey"]=y[Y].key}break;default:{let xe=D===Ns?c?.getBottomVisibleItemIndex():c?.getTopVisibleItemIndex();const Le=g.getVisibleRows()[xe];Le&&(!Le.isEditing&&"detail"===Le.rowType||"detailAdaptive"===Le.rowType)&&xe++;const st=g.getKeyByRowIndex(xe);(0,w.O9)(st)&&(i.insertBeforeKey=st)}}}_getInsertIndex(){let i=0;return this.getChanges().forEach(a=>{var c;const g=null===(c=this._getInternalData(a.key))||void 0===c?void 0:c.insertInfo;(0,w.O9)(g)&&a.type===Ia&&g[Rl]>i&&(i=g[Rl])}),i+1}_getInsertAfterOrBeforeKey(i){return i.insertAfterKey??i.insertBeforeKey}_getPageIndexToInsertRow(){const i=this._getNewRowPosition(),a=this._dataController,c=a.pageIndex(),g=a.pageCount()-1;return"first"===i&&0!==c?0:i===h&&c!==g?g:-1}addRow(i){const a=this._dataController;return a.store()?this._addRow(i):(a.fireError("E1052",this.component.NAME),(new ye.cY).reject())}_addRow(i){const c=this._dataController.store(),g=c&&c.key(),y={data:{}},D=this._getVisibleEditRowIndex(),Y=new ye.cY;return this.refresh({allowCancelEditing:!0}),this._allowRowAdding()?(g||(y.data.__KEY__=String(new he.A)),(0,ye.z7)(this._initNewRow(y,i)).done(()=>{this._allowRowAdding()?(0,ye.z7)(this._addRowCore(y.data,i,D)).done(Y.resolve).fail(Y.reject):Y.reject("cancel")}).fail(Y.reject),Y.promise()):((0,ye.z7)(this._navigateToNewRow(D)).done(Y.resolve).fail(Y.reject),Y.promise())}_allowRowAdding(i){return!(this._getInsertIndex()>1)}_addRowCore(i,a,c){const g={data:i,type:Ia},y=this._getVisibleEditRowIndex(),D=this._addInsertInfo(g,a),{key:Y}=D;return this._setEditRowKey(Y,!0),this._addChange(g),this._navigateToNewRow(c,g,y)}_navigateToNewRow(i,a,c){const g=new ye.cY,y=this._dataController;if(c=c??-1,!(a=a??this.getChanges().filter(st=>st.type===Ia)[0]))return g.reject("cancel").promise();const D=this._getPageIndexToInsertRow();let Y=this._getLoadedRowIndex(y.items(),a,!0);const xe=st=>{var mt;(0,ye.z7)(null===(mt=this._focusController)||void 0===mt?void 0:mt.navigateToRow(st)).done(()=>{Y=y.getRowIndexByKey(a.key),g.resolve()})},Le=this._getInsertAfterOrBeforeKey(a);return D>=0?y.pageIndex(D).done(()=>{xe(a.key)}).fail(g.reject):Y<0&&(0,w.O9)(Le)?xe(Le):(y.updateItems({changeType:"update",rowIndices:[i,c,Y]}),Y=y.getRowIndexByKey(a.key),Y<0?xe(a.key):g.resolve()),g.done(()=>{var st;null===(st=this._rowsView)||void 0===st||st.waitAsyncTemplates(!0).done(()=>{this._showAddedRow(Y),this._afterInsertRow(a.key)})}),g.promise()}_showAddedRow(i){this._focusFirstEditableCellInRow(i)}_beforeFocusElementInRow(i){}_focusFirstEditableCellInRow(i){var a;const c=this._dataController,g=c.getKeyByRowIndex(i),y=this.getFirstEditableCellInRow(i);null===(a=this._keyboardNavigationController)||void 0===a||a.focus(y),this.option("focusedRowKey",g),this._editCellInProgress=!0,this._delayedInputFocus(y,()=>{i=c.getRowIndexByKey(g),this._editCellInProgress=!1,this._beforeFocusElementInRow(i)})}_isEditingStart(i){return this.executeAction("onEditingStart",i),i.cancel}_beforeUpdateItems(i,a){}_getVisibleEditColumnIndex(){const i=this.option(kd);return(0,w.O9)(i)?this._columnsController.getVisibleColumnIndex(i):-1}_setEditColumnNameByIndex(i,a){var c;const g=this._columnsController.getVisibleColumns();this._setEditColumnName(null===(c=g[i])||void 0===c?void 0:c.name,a)}_setEditColumnName(i,a){a?this._silentOption(kd,i):this.option(kd,i)}_resetEditColumnName(){this._setEditColumnName(null,!0)}_getEditColumn(){const i=this.option(kd);return this._getColumnByName(i)}_getColumnByName(i){const a=this._columnsController.getVisibleColumns();let c;return(0,w.O9)(i)&&a.some(g=>{if(g.name===i)return c=g,!0}),c}_getVisibleEditRowIndex(i){const a=this._dataController,c=this.option(sl),g=a.getRowIndexByKey(c);return-1===g?g:g+this._getEditRowIndexCorrection(i)}_getEditRowIndexCorrection(i){const a=i?this._getColumnByName(i):this._getEditColumn();return"adaptiveHidden"===a?.visibleWidth?1:0}_resetEditRowKey(){this._refocusEditCell=!1,this._setEditRowKey(null,!0)}_resetEditIndices(){this._resetEditColumnName(),this._resetEditRowKey()}editRow(i){const a=this._dataController,g=a.items()[i],y={data:g&&g.data,cancel:!1},D=this._getVisibleEditRowIndex();if(g){if(i===D)return!0;if(void 0===g.key)return void this._dataController.fireError("E1043");g.isNewRow||(y.key=g.key),!this._isEditingStart(y)&&(this.resetChanges(),this.init(),this._resetEditColumnName(),this._pageIndex=a.pageIndex(),this._addInternalData({key:g.key,oldData:g.oldData??g.data}),this._setEditRowKey(g.key))}}_editRowFromOptionChanged(i,a){const c=[a,i];this._beforeUpdateItems(c,i,a),this._editRowFromOptionChangedCore(c,i)}_editRowFromOptionChangedCore(i,a,c){this._needFocusEditor=!0,this._dataController.updateItems({changeType:"update",rowIndices:i,cancel:c})}_focusEditorIfNeed(){}_showEditPopup(i,a){}_repaintEditPopup(){}_getEditPopupHiddenHandler(){return i=>{this.isEditing()&&this.cancelEditData()}}_getPopupEditFormTemplate(i){}_getSaveButtonConfig(){const i={text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)};return(0,Yr.Ft)((0,Yr.ss)())&&(i.stylingMode="contained",i.type="default"),i}_getCancelButtonConfig(){const i={text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)};return(0,Yr.Ft)((0,Yr.ss)())&&(i.stylingMode="outlined"),i}_removeInternalData(i){const a=this._getInternalData(i),c=this._internalState.indexOf(a);c>-1&&this._internalState.splice(c,1)}_updateInsertAfterOrBeforeKeys(i,a){const c=i[a];i.forEach(g=>{const y=this._getInsertAfterOrBeforeKey(g);(0,b.RL)(y,c.key)&&(g[(0,w.O9)(g.insertAfterKey)?"insertAfterKey":"insertBeforeKey"]=this._getInsertAfterOrBeforeKey(c))})}_removeChange(i){if(i>=0){const a=[...this.getChanges()],{key:c}=a[i];this._removeInternalData(c),this._updateInsertAfterOrBeforeKeys(a,i),a.splice(i,1),this._silentOption($t,a),(0,b.RL)(this.option(sl),c)&&this._resetEditIndices()}}executeOperation(i,a){this._lastOperation&&this._lastOperation.reject(),this._lastOperation=i,this.waitForDeferredOperations().done(()=>{"rejected"!==i.state()&&(a(),this._lastOperation=null)}).fail(()=>{i.reject(),this._lastOperation=null})}waitForDeferredOperations(){return(0,ye.z7)(...this._deferreds)}_processCanceledEditingCell(){}_repaintEditCell(i,a,c){!i||!i.showEditorAlways||a&&!a.showEditorAlways?(this._editCellInProgress=!0,this._needFocusEditor=!0,this._editorFactoryController.loseFocus(),this._dataController.updateItems({changeType:"update",rowIndices:[c,this._getVisibleEditRowIndex()]})):i!==a&&(this._needFocusEditor=!0,this._dataController.updateItems({changeType:"update",rowIndices:[]}))}_delayedInputFocus(i,a,c){const g=()=>{if(a&&a(),i){const y=i.find(lh).first();Ot.focusAndSelectElement(this,y)}this._beforeFocusCallback=null};jl.A.real().ios||jl.A.real().android?g():(this._beforeFocusCallback&&this._beforeFocusCallback(),clearTimeout(this._inputFocusTimeoutID),c&&(this._beforeFocusCallback=a),this._inputFocusTimeoutID=setTimeout(g))}_focusEditingCell(i,a,c){const g=this._getVisibleEditColumnIndex();(a=a||this._rowsView&&this._rowsView._getCellElement(this._getVisibleEditRowIndex(),g))&&this._delayedInputFocus(a,i,c)}deleteRow(i){this._checkAndDeleteRow(i)}_checkAndDeleteRow(i){const a=this.option("editing"),c=a?.texts,g=a?.confirmDelete,y=c?.confirmDeleteMessage,D=this._dataController.items()[i],Y=!this.isEditing()||D.isNewRow;if(D&&Y)if(g&&y){const xe=c&&c.confirmDeleteTitle,Le=(0,w.O9)(xe)&&xe.length>0;(0,td.lJ)(y,xe,Le).done(st=>{st&&this._deleteRowCore(i)})}else this._deleteRowCore(i)}_deleteRowCore(i){const c=this._dataController.items()[i],g=c&&c.key,y=this._getVisibleEditRowIndex();this.refresh();const D=this.getChanges(),Y=Ot.getIndexByKey(g,D);return Y>=0?D[Y].type===Ia?this._removeChange(Y):this._addChange({key:g,type:hc}):this._addChange({key:g,oldData:c.data,type:hc}),this._afterDeleteRow(i,y)}_afterDeleteRow(i,a){return this.saveEditData()}undeleteRow(i){const a=this._dataController,c=a.items()[i],g=this._getVisibleEditRowIndex(),y=c&&c.key,D=this.getChanges();if(c){const Y=Ot.getIndexByKey(y,D);if(Y>=0){const{data:xe}=D[Y];(0,w.RI)(xe)?this._removeChange(Y):this._addChange({key:y,type:te}),a.updateItems({changeType:"update",rowIndices:[g,i]})}}}_fireOnSaving(){const i={cancel:!1,promise:null,changes:[...this.getChanges()]};this.executeAction("onSaving",i);const a=new ye.cY;return(0,ye.z7)((0,ye.Sx)(i.promise)).done(()=>{a.resolve(i)}).fail(c=>{Dg(a),this._fireDataErrorOccurred(c),a.resolve({cancel:!0})}),a}_executeEditingAction(i,a,c){if(this.component._disposed)return null;const g=new ye.cY;return this.executeAction(i,a),(0,ye.z7)((0,ye.Sx)(a.cancel)).done(y=>{y?setTimeout(()=>{g.resolve("cancel")}):c(a).done(g.resolve).fail(Dg(g))}).fail(Dg(g)),g}_processChanges(i,a,c,g){const y=this._dataController.store();(0,e.__)(g,(D,Y)=>{const xe=this._getOldData(Y.key),{data:Le,type:st}=Y,mt=(0,Oe.A)({},Y);let on,wn;if(!this._beforeSaveEditData(Y,D)){switch(st){case hc:wn={data:xe,key:Y.key,cancel:!1},on=this._executeEditingAction("onRowRemoving",wn,()=>y.remove(Y.key).done(Kn=>{c.push({type:"remove",key:Kn})}));break;case Ia:wn={data:Le,cancel:!1},on=this._executeEditingAction("onRowInserting",wn,()=>y.insert(wn.data).done((Kn,Ai)=>{(0,w.O9)(Ai)&&(mt.key=Ai),Kn&&(0,w.Gv)(Kn)&&Kn!==wn.data&&(mt.data=Kn),c.push({type:"insert",data:Kn,index:0})}));break;case te:wn={newData:Le,oldData:xe,key:Y.key,cancel:!1},on=this._executeEditingAction("onRowUpdating",wn,()=>y.update(Y.key,wn.newData).done((Kn,Ai)=>{Kn&&(0,w.Gv)(Kn)&&Kn!==wn.newData&&(mt.data=Kn),c.push({type:"update",key:Ai,data:Kn})}))}if(g[D]=mt,on){const Kn=new ye.cY;on.always(Ai=>{a.push({key:Y.key,result:Ai})}).always(Kn.resolve),i.push(Kn.promise())}}})}_processRemoveIfError(i,a){const c=i[a];return c?.type===hc&&a>=0&&i.splice(a,1),!0}_processRemove(i,a,c){const g=i[a];if(!c||!g||g.type===hc)return this._processRemoveCore(i,a,!c||!g)}_processRemoveCore(i,a,c){return a>=0&&i.splice(a,1),!0}_processSaveEditDataResult(i){let a=!1;const c=[...this.getChanges()],g=c.length;for(let y=0;y<i.length;y++){const D=i[y].result,Y="cancel"===D,xe=Ot.getIndexByKey(i[y].key,c),Le=c[xe];if(D&&D instanceof Error){if(Le&&this._addInternalData({key:Le.key,error:D}),this._fireDataErrorOccurred(D),this._processRemoveIfError(c,xe))break}else this._processRemove(c,xe,Y)&&(a=!Y)}return c.length<g&&this._silentOption($t,c),a}_fireSaveEditDataEvents(i){(0,e.__)(i,(a,c)=>{let{data:g,key:y,type:D}=c;const Y=this._addInternalData({key:y}),xe={key:y,data:g};switch(Y.error&&(xe.error=Y.error),D){case hc:this.executeAction("onRowRemoved",(0,C.X)({},xe,{data:Y.oldData}));break;case Ia:this.executeAction("onRowInserted",xe);break;case te:this.executeAction("onRowUpdated",xe)}}),this.executeAction("onSaved",{changes:i})}saveEditData(){const i=new ye.cY;return this.waitForDeferredOperations().done(()=>{this.isSaving()?this._resolveAfterSave(i):(0,ye.z7)(this._beforeSaveEditData()).done(a=>{a?this._resolveAfterSave(i,{cancel:a}):(this._saving=!0,this._saveEditDataInner().always(()=>{this._saving=!1,this._refocusEditCell&&this._focusEditingCell()}).done(i.resolve).fail(i.reject))}).fail(i.reject)}).fail(i.reject),i.promise()}_resolveAfterSave(i){let{cancel:a,error:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,ye.z7)(this._afterSaveEditData(a)).done(()=>{i.resolve(c)}).fail(i.reject)}_saveEditDataInner(){const i=new ye.cY,a=[],c=[],g=[],y=this._dataController.dataSource();return(0,ye.z7)(this._fireOnSaving()).done(D=>{let{cancel:Y,changes:xe}=D;return Y?i.resolve().promise():(this._processChanges(c,a,g,xe),c.length?(this._refocusEditCell=!0,y?.beginLoading(),(0,ye.z7)(...c).done(()=>{this._processSaveEditDataResult(a)?this._endSaving(g,xe,i):(y?.endLoading(),i.resolve())}).fail(Le=>{y?.endLoading(),i.resolve(Le)}),i.always(()=>{this._refocusEditCell=!0}).promise()):void this._cancelSaving(i))}).fail(i.reject),i.promise()}_beforeEndSaving(i){this._resetEditIndices()}_endSaving(i,a,c){const g=this._dataController.dataSource();this._beforeEndSaving(a),g?.endLoading(),this._refreshDataAfterSave(i,a,c)}_cancelSaving(i){this.executeAction("onSaved",{changes:[]}),this._resolveAfterSave(i)}_refreshDataAfterSave(i,a,c){const g=this._dataController,y=this.option("editing.refreshMode"),D="reshape"!==y&&"repaint"!==y;D||g.push(i),(0,ye.z7)(g.refresh({selection:D,reload:D,load:"reshape"===y,changesOnly:this.option("repaintChangesOnly")})).always(()=>{this._fireSaveEditDataEvents(a)}).done(()=>{this._resolveAfterSave(c)}).fail(Y=>{this._resolveAfterSave(c,{error:Y})})}isSaving(){return this._saving}_updateEditColumn(){const i=this._isEditColumnVisible(),c="dx-command-edit"+(this.option("editing.useIcons")?` ${Im}`:"");this._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:i,cssClass:c,width:"auto",alignment:"center",cellTemplate:this._getEditCommandCellTemplate(),fixedPosition:"right"}),this._columnsController.columnOption("command:edit",{visible:i,cssClass:c})}_isEditColumnVisible(){return this.option("editing").allowDeleting}_isEditButtonDisabled(){const i=this.hasChanges();return!((0,w.O9)(this.option("editing.editRowKey"))||i)}_updateEditButtons(){const i=this._isEditButtonDisabled();this._headerPanelView&&(this._headerPanelView.setToolbarItemDisabled("saveButton",i),this._headerPanelView.setToolbarItemDisabled("revertButton",i))}_applyModified(i,a){i&&i.addClass(dv)}_beforeCloseEditCellInBatchMode(i){}cancelEditData(){const i=this.getChanges(),a={cancel:!1,changes:i};this.executeAction("onEditCanceling",a),a.cancel||(this._cancelEditDataCore(),this.executeAction("onEditCanceled",{changes:i}))}_cancelEditDataCore(){const i=this._getVisibleEditRowIndex();this._beforeCancelEditData(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey(),this._afterCancelEditData(i)}_afterCancelEditData(i){this._dataController.updateItems({repaintChangesOnly:this.option("repaintChangesOnly")})}_hideEditPopup(){}hasEditData(){return this.hasChanges()}update(i){const a=this._dataController;a&&this._pageIndex!==a.pageIndex()&&("refresh"===i&&this.refresh({isPageChanged:!0}),this._pageIndex=a.pageIndex()),this._updateEditButtons()}_getRowIndicesForCascadeUpdating(i,a){return a?[]:[i.rowIndex]}addDeferred(i){this._deferreds.includes(i)||(this._deferreds.push(i),i.always(()=>{const a=this._deferreds.indexOf(i);a>=0&&this._deferreds.splice(a,1)}))}_prepareChange(i,a,c){var g;const y={},D=null===(g=i.row)||void 0===g?void 0:g.data,Y=i.key,xe=new ye.cY;return void 0!==Y&&(i.value=a,(0,ye.Sx)(i.column.setCellValue(y,a,(0,C.X)(!0,{},D),c)).done(()=>{xe.resolve({data:y,key:Y,oldData:D,type:te})}).fail(Dg(xe)).fail(st=>this._fireDataErrorOccurred(st)),(0,w.O9)(c)&&i.column.displayValueMap&&(i.column.displayValueMap[a]=c),this._updateRowValues(i),this.addDeferred(xe)),xe}_updateRowValues(i){if(i.values){const a=this._dataController,c=a.getRowIndexByKey(i.key),g=a.getVisibleRows()[c];g&&(i.row.values=g.values,i.values=g.values),i.values[i.columnIndex]=i.value}}updateFieldValue(i,a,c,g){const y=i.key,D=new ye.cY;return void 0===y&&this._dataController.fireError("E1043"),i.column.setCellValue?this._prepareChange(i,a,c).done(Y=>{(0,ye.z7)(this._applyChange(i,Y,g)).always(()=>{D.resolve()})}):D.resolve(),D.promise()}_focusPreviousEditingCellIfNeed(i){if(this.hasEditData()&&!this.isEditCell(i.rowIndex,i.columnIndex))return this._focusEditingCell(),this._updateEditRow(i.row,!0),!0}_needUpdateRow(i){const a=this._columnsController.getVisibleColumns();i||(i=this._getEditColumn());const c=i&&i.setCellValue!==i.defaultSetCellValue,g=a.some(y=>y.calculateCellValue!==y.defaultCalculateCellValue);return c||g}_applyChange(i,a,c){const g=(0,Oe.A)({},i,{forceUpdateRow:c});return this._addChange(a,g),this._updateEditButtons(),this._applyChangeCore(i,g.forceUpdateRow)}_applyChangeCore(i,a){const c=i.column.setCellValue!==i.column.defaultSetCellValue,{row:g}=i;g&&(a||c?this._updateEditRow(g,a,c):g.update&&g.update())}_updateEditRowCore(i,a,c){this._dataController.updateItems({changeType:"update",rowIndices:this._getRowIndicesForCascadeUpdating(i,a)})}_updateEditRow(i,a,c){a?this._updateRowImmediately(i,a,c):this._updateRowWithDelay(i,c)}_updateRowImmediately(i,a,c){this._updateEditRowCore(i,!a,c),this._validateEditFormAfterUpdate(i,c),a||this._focusEditingCell()}_updateRowWithDelay(i,a){const c=new ye.cY;this.addDeferred(c),setTimeout(()=>{var g;const y=(null===(g=this._editForm)||void 0===g?void 0:g.element())||this.component.$element().get(0),D=(0,T.A)(m.A.getActiveElement(y)),Y=this._rowsView.getCellIndex(D,i.rowIndex);let xe=D.get(0);const Le=Ot.getSelectionRange(xe);if(this._updateEditRowCore(i,!1,a),this._validateEditFormAfterUpdate(i,a),Y>=0){const st=this._rowsView._getCellElement(i.rowIndex,Y);this._delayedInputFocus(st,()=>{setTimeout(()=>{var mt;xe=m.A.getActiveElement(null===(mt=this.component.$element())||void 0===mt?void 0:mt.get(0)),Le.selectionStart>=0&&Ot.setSelectionRange(xe,Le)})})}c.resolve()})}_validateEditFormAfterUpdate(){}_addChange(i,a){var c;const g=a?.row,y=[...this.getChanges()];let D=Ot.getIndexByKey(i.key,y);D<0&&(D=y.length,this._addInternalData({key:i.key,oldData:i.oldData}),delete i.oldData,y.push(i));const Y=(0,Oe.A)({},y[D]);return Y&&(i.data&&(Y.data=(0,ht.lj)(Y.data,i.data)),(!Y.type||!i.data)&&i.type&&(Y.type=i.type),g&&(g.oldData=this._getOldData(g.key),g.data=(0,ht.lj)(g.data,i.data))),y[D]=Y,this._silentOption($t,y),a&&Y!==(null===(c=this.getChanges())||void 0===c?void 0:c[D])&&(a.forceUpdateRow=!0),Y}_getFormEditItemTemplate(i,a){return a.editCellTemplate||this._getDefaultEditorTemplate()}getColumnTemplate(i){const{column:a}=i,c=i.row&&i.row.rowIndex;let g;const y=this.isRowBasedEditMode(),D=this.isEditRow(c),Y=this.isEditCell(c,i.columnIndex);let xe;return!(a.showEditorAlways||a.setCellValue&&(D&&a.allowEditing||Y))||"data"!==i.rowType&&"detailAdaptive"!==i.rowType||a.command?"detail"===a.command&&"detail"===i.rowType&&D&&(g=null==this?void 0:this.getEditFormTemplate(i)):(((this.allowUpdating(i)||D)&&a.allowEditing||Y)&&(D||!y)&&(a.showEditorAlways&&!y&&(xe={cancel:!1,key:i.row.isNewRow?void 0:i.row.key,data:i.row.data,column:a},this._isEditingStart(xe)),(!xe||!xe.cancel)&&(i.setValue=(st,mt)=>{this.updateFieldValue(i,st,mt)})),g=a.editCellTemplate||this._getDefaultEditorTemplate()),g}_createButton(i,a,c,g){let y=Ge[a.name];const D=this.option("editing.useIcons"),Y=this.option("useLegacyColumnButtonTemplate");let xe=(0,T.A)("<a>").attr("href","#").addClass("dx-link").addClass(a.cssClass);if(a.template&&Y)this._rowsView.renderTemplate(i,a.template,c,!0);else{if(a.template)xe=(0,T.A)("<span>").addClass(a.cssClass);else if(D&&y||a.icon){y=a.icon||y;const Le=Pd.F(y);"image"===Le||"svg"===Le?xe=Pd.N(y).addClass(a.cssClass):xe.addClass(`dx-icon${"dxIcon"===Le?"-":" "}${y}`).attr("title",a.text),xe.addClass("dx-link-icon"),i.addClass(Im);const st=this.getButtonLocalizationNames()[a.name];st&&xe.attr("aria-label",v.A.format(st))}else xe.text(a.text);(0,w.O9)(a.hint)&&xe.attr("title",a.hint),this._isButtonDisabled(a,c)?xe.addClass("dx-state-disabled"):(!a.template||a.onClick)&&P.A.on(xe,(0,x.b4)("click","dxDataGridEditing"),this.createAction(Le=>{var st;null===(st=a.onClick)||void 0===st||st.call(a,(0,C.X)({},Le,{row:c.row,column:c.column})),Le.event.preventDefault(),Le.event.stopPropagation()})),i.append(xe),a.template&&(c.renderAsync=!1,this._rowsView.renderTemplate(xe,a.template,c,!0,g))}}getButtonLocalizationNames(){return{edit:"dxDataGrid-editingEditRow",save:"dxDataGrid-editingSaveRowChanges",delete:"dxDataGrid-editingDeleteRow",undelete:"dxDataGrid-editingUndeleteRow",cancel:"dxDataGrid-editingCancelRowChanges"}}prepareButtonItem(i,a,c,g){const y=this.option("editing.texts")??{},Y={revert:"cancel",save:"save",addRow:"addrow"}[a],xe={revert:y.cancelAllChanges,save:y.saveAllChanges,addRow:y.addRow}[a],Le=("save"===Y||"cancel"===Y)&&this._isEditButtonDisabled();return{widget:"dxButton",options:{onInitialized:st=>{(0,T.A)(st.element).addClass(i._getToolbarButtonClass(`dx-edit-button ${this.addWidgetPrefix(Y)}-button`))},icon:`edit-button-${Y}`,disabled:Le,onClick:()=>{setTimeout(()=>{this[c]()})},text:xe,hint:xe},showText:"inMenu",name:`${a}Button`,location:"after",locateInMenu:"auto",sortIndex:g}}prepareEditButtons(i){const c=[];return(this.option("editing")??{}).allowAdding&&c.push(this.prepareButtonItem(i,"addRow","addRow",20)),c}highlightDataCell(i,a){this.shouldHighlightCell(a)&&i.addClass(dv)}_afterInsertRow(i){}_beforeSaveEditData(i){if(i&&!(0,w.O9)(i.key)&&(0,w.O9)(i.type))return!0}_afterSaveEditData(){}_beforeCancelEditData(){}_allowEditAction(i,a){let c=this.option(`editing.${i}`);return(0,w.Tn)(c)&&(c=c({component:this.component,row:a.row})),c}allowUpdating(i,a){const c=this.option("editing.startEditAction")??"click";return(!(arguments.length>1)||c===a||"down"===a)&&this._allowEditAction("allowUpdating",i)}allowDeleting(i){return this._allowEditAction("allowDeleting",i)}isCellModified(i){var a,c;const{columnIndex:g}=i;let y=null==i||null===(a=i.row)||void 0===a||null===(a=a.modifiedValues)||void 0===a?void 0:a[g];return null!=i&&null!==(c=i.row)&&void 0!==c&&c.isNewRow&&(y=i.value),void 0!==y}isNewRowInEditMode(){const i=this._getVisibleEditRowIndex(),a=this._dataController.items();return i>=0&&a[i].isNewRow}_isRowDeleteAllowed(){}shouldHighlightCell(i){return this.isCellModified(i)&&i.column.setCellValue&&(this.getEditMode()!==mu||!i.row.isEditing)}}},extenders:{controllers:{data:My},views:{rowsView:I=>class extends I{getCellIndex(i,a){if(!i.is("td")&&a>=0){const c=this.getCellElements(a);let g=-1;return(0,e.__)(c,(y,D)=>{(0,T.A)(D).find(i).length&&(g=y)}),g}return super.getCellIndex.apply(this,arguments)}publicMethods(){return super.publicMethods().concat(["cellValue"])}_getCellTemplate(i){return this._editingController.getColumnTemplate(i)||super._getCellTemplate(i)}_createRow(i){const a=super._createRow.apply(this,arguments);if(i){const c=!!i.removed,g=!!i.isNewRow,y=!!i.modified;g&&a.addClass("dx-row-inserted"),y&&a.addClass("dx-row-modified"),(g||c)&&a.removeClass("dx-selection")}return a}_getColumnIndexByElement(i){let a=i.closest("table");const c=this.getTableElements();for(;a.length&&!c.filter(a).length;)i=a.closest("td"),a=i.closest("table");return this._getColumnIndexByElementCore(i)}_getColumnIndexByElementCore(i){const a=i.closest(`.${fa}> td:not(.dx-master-detail-cell)`);return this.getCellIndex(a)}_editCellByClick(i,a){const c=this._editingController,g=(0,T.A)(i.event.target),y=this._getColumnIndexByElement(g),D=this._dataController.items()[i.rowIndex],Y=c.allowUpdating({row:D},a)||D&&D.isNewRow,xe=this._columnsController.getVisibleColumns()[y],Le=c.isEditCell(i.rowIndex,y),st=Y&&xe&&(xe.allowEditing||Le),mt=this.option("editing.startEditAction")||"click",on=xe&&xe.showEditorAlways;if(Le)return!0;if("down"===a)return(jl.A.real().ios||jl.A.real().android)&&(0,ed.GX)(),on&&st&&c.editCell(i.rowIndex,y);if("click"===a&&"dblClick"===mt&&this._pointerDownTarget===g.get(0)){const Kn=D?.isNewRow;c.closeEditCell(!1,Kn)}return st&&a===mt?c.editCell(i.rowIndex,y)||c.isEditRow(i.rowIndex):void 0}_rowPointerDown(i){this._pointerDownTarget=i.event.target,this._pointerDownTimeout=setTimeout(()=>{this._editCellByClick(i,"down")})}_rowClickTreeListHack(i){super._rowClick.apply(this,arguments)}_rowClick(i){const a=(0,T.A)(i.rowElement).hasClass(this.addWidgetPrefix(uc));i.event[Vc]=this.component,!this._editCellByClick(i,"click")&&!a&&super._rowClick.apply(this,arguments)}_rowDblClickTreeListHack(i){super._rowDblClick.apply(this,arguments)}_rowDblClick(i){this._editCellByClick(i,"dblClick")||super._rowDblClick.apply(this,arguments)}_cellPrepared(i,a){var c;const g=this._editingController,y=!!a.column.command,D=a.setValue,Y=g.isEditRow(a.rowIndex),xe=Kh(Y,a);if(Rm(Y,a)){const{alignment:st}=a.column;i.toggleClass(this.addWidgetPrefix("readonly"),!D).toggleClass("dx-cell-focus-disabled",!D),st&&i.find(Uh).first().css("textAlign",st)}xe&&this._editCellPrepared(i);const Le=!(null===(c=a.column)||void 0===c||!c.cellTemplate);a.column&&!y&&(!Le||g.shouldHighlightCell(a))&&g.highlightDataCell(i,a),super._cellPrepared.apply(this,arguments)}_getCellOptions(i){const a=super._getCellOptions(i),{columnIndex:c,row:g}=i;return a.isEditing=this._editingController.isEditCell(a.rowIndex,a.columnIndex),a.removed=g.removed,g.modified&&(a.modified=void 0!==g.modifiedValues[c]),a}_setCellAriaAttributes(i,a){super._setCellAriaAttributes(i,a),a.removed&&this.setAria("roledescription",v.A.format("dxDataGrid-ariaDeletedCell"),i),a.modified&&this.setAria("roledescription",v.A.format("dxDataGrid-ariaModifiedCell"),i),a.column.allowEditing&&!a.removed&&!a.modified&&"data"===a.rowType&&a.column.calculateCellValue===a.column.defaultCalculateCellValue&&this._editingController.isCellBasedEditMode()&&this.setAria("roledescription",v.A.format("dxDataGrid-ariaEditableCell"),i)}_createCell(i){const a=super._createCell(i),c=this._editingController.isEditRow(i.rowIndex);return Rm(c,i)&&a.addClass(Ql),a}cellValue(i,a,c,g){const y=this.getCellOptions(i,a);if(y){if(void 0===c)return y.value;this._editingController.updateFieldValue(y,c,g,!0)}}dispose(){super.dispose.apply(this,arguments),clearTimeout(this._pointerDownTimeout)}_renderCore(){return super._renderCore.apply(this,arguments),this.waitAsyncTemplates(!0).done(()=>{this._editingController._focusEditorIfNeed()})}_editCellPrepared(){}_formItemPrepared(){}},headerPanel:I=>class extends I{optionChanged(i){const{fullName:a}=i;switch(i.name){case"editing":a&&![Ba,$t,kd,sl].some(y=>y===a)&&this._invalidate(),super.optionChanged(i);break;case"useLegacyColumnButtonTemplate":i.handled=!0;break;default:super.optionChanged(i)}}_getToolbarItems(){const i=super._getToolbarItems();return this._editingController.prepareEditButtons(this).concat(i)}isVisible(){const i=this._editingController.option("editing");return super.isVisible()||i?.allowAdding}}}}};Dt.registerModule("editing",(0,Oe.A)({},km,{extenders:(0,Oe.A)({},km.extenders,{controllers:(0,Oe.A)({},km.extenders.controllers,{data:I=>class extends(My(I)){_changeRowExpandCore(i){const a=this._editingController;return Array.isArray(i)&&a&&a.refresh(),super._changeRowExpandCore.apply(this,arguments)}}})})})),Dt.registerModule("editingRowBased",{extenders:{controllers:{editing:I=>class extends I{isRowEditMode(){return this.getEditMode()===mu}_afterCancelEditData(i){const a=this._dataController;this.isRowBasedEditMode()&&i>=0?a.updateItems({changeType:"update",rowIndices:[i,i+1]}):super._afterCancelEditData(i)}_isDefaultButtonVisible(i,a){const c=this.isRowBasedEditMode(),y=!this.isPopupEditMode()&&a.row&&(0,b.RL)(a.row.key,this.option(sl));if(c)switch(i.name){case"edit":return!y&&this.allowUpdating(a);case"delete":return super._isDefaultButtonVisible(i,a)&&!y;case"save":case"cancel":return y;default:return super._isDefaultButtonVisible(i,a)}return super._isDefaultButtonVisible(i,a)}isEditRow(i){return this.isRowBasedEditMode()&&this.isEditRowByIndex(i)}_cancelSaving(i){this.isRowBasedEditMode()&&(this.hasChanges()||this._cancelEditDataCore()),super._cancelSaving(i)}_refreshCore(i){const{allowCancelEditing:a}=i??{};if(this.isRowBasedEditMode()){const c=this.getChanges().filter(g=>"update"===g.type).length>0;this.init(),a&&c&&this._cancelEditDataCore()}super._refreshCore(i)}_isEditColumnVisible(){const i=super._isEditColumnVisible(),a=this.option("editing"),c=this.isRowEditMode();return i||c&&(a.allowUpdating||a.allowAdding)}_focusEditorIfNeed(){const i=this.getEditMode();if(this._needFocusEditor){if(Gh.includes(i)){const a=this.getFocusedCellInRow(this._getVisibleEditRowIndex());this._delayedInputFocus(a,()=>{a&&this.component.focus(a)})}this._needFocusEditor=!1}}},data:I=>class extends I{_getChangedColumnIndices(i,a,c,g){if(!this._editingController.isRowBasedEditMode()||i.isEditing===a.isEditing)return super._getChangedColumnIndices.apply(this,arguments)}}},views:{rowsView:I=>class extends I{_createRow(i){const a=super._createRow.apply(this,arguments);return i&&this._editingController.isEditRow(i.rowIndex)&&(a.addClass(Mm),a.removeClass(Rd),"detail"===i.rowType&&a.addClass(this.addWidgetPrefix(uc))),a}_update(i){super._update(i),"updateSelection"===i.changeType&&this.getTableElements().children("tbody").children(`.${Mm}`).removeClass(Rd)}}}}});var xf=p(5480);Dt.registerModule("editingFormBased",{extenders:{controllers:{editing:I=>class extends I{init(){this._editForm=null,this._updateEditFormDeferred=null,super.init()}isEditRow(i){return!this.isPopupEditMode()&&super.isEditRow(i)}isFormOrPopupEditMode(){return this.isPopupEditMode()||this.isFormEditMode()}isFormEditMode(){return this.option("editing.mode")===Bd}getFirstEditableColumnIndex(){const i=this._firstFormItem;if(this.isFormEditMode()&&i){const a=this.option(sl),c=this._dataController.getRowIndexByKey(a),g=this._rowsView.getCellElements(c);return this._rowsView._getEditFormEditorVisibleIndex(g,i.column)}return super.getFirstEditableColumnIndex()}getEditFormRowIndex(){return this.isFormOrPopupEditMode()?this._getVisibleEditRowIndex():super.getEditFormRowIndex()}_isEditColumnVisible(){const i=super._isEditColumnVisible(),a=this.option("editing");return this.isFormOrPopupEditMode()&&a.allowUpdating||i}_handleDataChanged(i){if(this.isPopupEditMode()){var a,c;const g=this.option("editing.editRowKey"),y=null==i||null===(a=i.items)||void 0===a?void 0:a.some(Y=>(0,b.RL)(Y.key,g)),D=(null===(c=i.changeTypes)||void 0===c?void 0:c.length)&&i.changeTypes.every(Y=>"insert"===Y);("refresh"===i.changeType||y&&i.isOptionChanged)&&!D&&this._repaintEditPopup()}super._handleDataChanged(i)}getPopupContent(){var i;const a=null===(i=this._editPopup)||void 0===i?void 0:i.option("visible");if(this.isPopupEditMode()&&a)return this._$popupContent}_showAddedRow(i){this.isPopupEditMode()?this._showEditPopup(i):super._showAddedRow(i)}_cancelEditDataCore(){super._cancelEditDataCore(),this.isPopupEditMode()&&this._hideEditPopup()}_updateEditRowCore(i,a,c){const g=this._editForm;if(this.isPopupEditMode())if(this.option("repaintChangesOnly")){var y;null===(y=i.update)||void 0===y||y.call(i,i),this._rowsView.renderDelayedTemplates()}else g&&(this._updateEditFormDeferred=(new ye.cY).done(()=>g.repaint()),this._updateLockCount||this._updateEditFormDeferred.resolve());else super._updateEditRowCore(i,a,c)}_showEditPopup(i,a){const c="desktop"!==jl.A.current().deviceType,g=this.addWidgetPrefix("edit-popup"),y=(0,C.X)({showTitle:!1,fullScreen:c,wrapperAttr:{class:g},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getCancelButtonConfig()}],contentTemplate:this._getPopupEditFormTemplate(i)},this.option(Ba));if(!this._editPopup){const D=(0,T.A)("<div>").appendTo(this.component.$element()).addClass(g);this._editPopup=this._createComponent(D,lu.A),this._editPopup.on("hiding",this._getEditPopupHiddenHandler()),this._editPopup.on("shown",Y=>{var xe;P.A.trigger(Y.component.$content().find(lh).not(`.${sr}`).first(),"focus"),a&&(null===(xe=this._editForm)||void 0===xe||xe.repaint())})}this._editPopup.option(y),this._editPopup.show(),super._showEditPopup(i,a)}_getPopupEditFormTemplate(i){const a=this.component.getVisibleRows()[i],c={row:a,values:a.values,rowType:a.rowType,key:a.key,rowIndex:i};return this._rowsView._addWatchMethod(c,a),g=>{const y=this.getEditFormTemplate(),D=this._createComponent((0,T.A)("<div>").appendTo(g),Sa.A);this._$popupContent=(0,T.A)(D.content()),y(this._$popupContent,c,{isPopupForm:!0}),this._rowsView.renderDelayedTemplates(),(0,T.A)(g).parent().attr("aria-label",this.localize("dxDataGrid-ariaEditForm"))}}_repaintEditPopup(){const i=this._getVisibleEditRowIndex();if(i>=0){var a,c;const g=null===(a=this._editPopup)||void 0===a?void 0:a.option("animation");null===(c=this._editPopup)||void 0===c||c.option("animation",null),this._showEditPopup(i,!0),void 0!==g&&this._editPopup.option("animation",g)}}_hideEditPopup(){var i;null===(i=this._editPopup)||void 0===i||i.option("visible",!1)}optionChanged(i){if("editing"===i.name&&this.isFormOrPopupEditMode()){const{fullName:a}=i;0===a.indexOf(ah)?(this._handleFormOptionChange(i),i.handled=!0):0===a.indexOf(Ba)&&(this._handlePopupOptionChange(i),i.handled=!0)}super.optionChanged(i)}_handleFormOptionChange(i){var a;if(this.isFormEditMode()){const c=this._getVisibleEditRowIndex();c>=0&&this._dataController.updateItems({changeType:"update",rowIndices:[c]})}else null!==(a=this._editPopup)&&void 0!==a&&a.option("visible")&&0===i.fullName.indexOf(ah)&&this._repaintEditPopup()}_handlePopupOptionChange(i){const a=this._editPopup;if(a){const c=i.fullName.slice(Ba.length+1);c?a.option(c,i.value):a.option(i.value)}}renderFormEditorTemplate(i,a,c,g,y){const D=this,Y=(0,T.A)(g),{column:xe}=a,Le=(I=>{var i;const{column:a}=I;return I.isCustomEditorType?I.editorType:null===(i=a.formItem)||void 0===i?void 0:i.editorType})(a),st=i?.row,mt=st?.data,on=c.component,wn=xe.calculateCellValue(mt),Kn=Ot.getDisplayValue(xe,wn,mt,st?.rowType),{label:Ai,labelMark:no,labelMode:Yo}=c.editorOptions||{},ps=(0,C.X)({},i,{data:mt,cellElement:null,isOnForm:!0,item:a,id:on.getItemID(a.name||a.dataField),column:(0,C.X)({},xe,{editorType:Le,editorOptions:(0,C.X)({label:Ai,labelMark:no,labelMode:Yo},xe.editorOptions,a.editorOptions)}),columnIndex:xe.index,setValue:!y&&xe.allowEditing&&function(_r,Sr){D.updateFieldValue(ps,_r,Sr)}});ps.value=wn,ps.displayValue=Kn,ps.text=xe.command?"":Ot.formatValue(Kn,xe);const Ls=this._getFormEditItemTemplate.bind(this)(ps,xe);return this._rowsView.renderTemplate(Y,Ls,ps,!!(0,ed.A1)(Y)).done(()=>{this._rowsView._updateCell(Y,ps)}),ps}getFormEditorTemplate(i,a){const c=this.component.columnOption(a.name||a.dataField);return(g,y)=>{const D=(0,T.A)(y),{row:Y}=i;if(null!=Y&&Y.watch){const xe=Y.watch(()=>c.selector(Y.data),()=>{var Le;let st=D.find(".dx-widget").first(),mt=st.data("dxValidator");const on=null===(Le=mt)||void 0===Le?void 0:Le.option();D.contents().remove(),i=this.renderFormEditorTemplate.bind(this)(i,a,g,D),st=D.find(".dx-widget").first(),mt=st.data("dxValidator"),on&&!mt&&st.dxValidator({validationRules:on.validationRules,validationGroup:on.validationGroup,dataGetter:on.dataGetter})});P.A.on(D,Ee.N,xe)}i=this.renderFormEditorTemplate.bind(this)(i,a,g,D)}}getEditFormOptions(i){var a;const c=null===(a=this._getValidationGroupsInForm)||void 0===a?void 0:a.call(this,i),g=this.option("editing.form.customizeItem"),y=this.addWidgetPrefix(ts);let D=this.option("editing.form.items");const Y={};if(D)Tg(D,xe=>{const Le=xe?.name||xe?.dataField;Le&&(Y[Le]=!!xe.editorType)});else{const xe=this._columnsController.getColumns();D=[],(0,e.__)(xe,(Le,st)=>{!st.isBand&&!st.type&&D.push({column:st,name:st.name,dataField:st.dataField})})}return(0,C.X)({},c,{items:D,formID:`dx-${new he.A}`,customizeItem:xe=>{let Le;const st=xe.name||xe.dataField;if((xe.column||st)&&(Le=xe.column||this._columnsController.columnOption(xe.name?`name:${xe.name}`:`dataField:${xe.dataField}`)),Le){if(xe.label=xe.label||{},xe.label.text=xe.label.text||Le.caption,"boolean"===Le.dataType&&void 0===xe.label.visible){const on=this.option("editing.form.labelMode");("floating"===on||"static"===on)&&(xe.label.visible=!0)}xe.template=xe.template||this.getFormEditorTemplate(i,xe),xe.column=Le,xe.isCustomEditorType=Y[st],Le.formItem&&(0,C.X)(xe,Le.formItem),void 0===xe.isRequired&&Le.validationRules&&(xe.isRequired=Le.validationRules.some(on=>"required"===on.type),xe.validationRules=[]);const mt=!(0,w.O9)(xe.visible)||xe.visible;!this._firstFormItem&&mt&&(this._firstFormItem=xe)}g?.call(this,xe),xe.cssClass=(0,w.Kg)(xe.cssClass)?`${xe.cssClass} ${y}`:y}})}getEditFormTemplate(){return(i,a,c)=>{const g=this.option(ah),y=this.getEditFormOptions(a),D=(0,T.A)("<div>").appendTo(i),Y=c?.isPopupForm;if(this._firstFormItem=void 0,Y&&D.addClass(this.addWidgetPrefix("edit-popup-form")),this._editForm=this._createComponent(D,xf.A,(0,C.X)({},g,y)),!Y){const xe=(0,T.A)("<div>").addClass(this.addWidgetPrefix("form-buttons-container")).appendTo(i);this._createComponent((0,T.A)("<div>").appendTo(xe),Xu.A,this._getSaveButtonConfig()),this._createComponent((0,T.A)("<div>").appendTo(xe),Xu.A,this._getCancelButtonConfig())}this._editForm.on("contentReady",()=>{var xe;this._rowsView.renderDelayedTemplates(),null===(xe=this._editPopup)||void 0===xe||xe.repaint()})}}getEditForm(){return this._editForm}_endUpdateCore(){var i;null===(i=this._updateEditFormDeferred)||void 0===i||i.resolve()}_beforeEndSaving(i){var a;super._beforeEndSaving(i),this.isPopupEditMode()&&(null===(a=this._editPopup)||void 0===a||a.hide())}_processDataItemCore(i,a,c,g,y){const{type:D}=a;this.isPopupEditMode()&&D===Ia&&(i.visible=!1),super._processDataItemCore(i,a,c,g,y)}_editRowFromOptionChangedCore(i,a){const c=this.isPopupEditMode();super._editRowFromOptionChangedCore(i,a,c),c&&this._showEditPopup(a)}},data:I=>class extends I{_updateEditItem(i){this._editingController.isFormEditMode()&&(i.rowType="detail")}_getChangedColumnIndices(i,a,c,g){if(!1!==g||!a.isEditing||!this._editingController.isFormEditMode())return super._getChangedColumnIndices.apply(this,arguments)}}},views:{rowsView:I=>class extends I{_renderCellContent(i,a){"data"===a.rowType&&this._editingController.isPopupEditMode()&&!1===a.row.visible||super._renderCellContent.apply(this,arguments)}getCellElements(i){const a=super.getCellElements(i),c=this._editingController,g=c.getEditForm();return c.getEditFormRowIndex()===i&&a&&g?g.$element().find(`.${this.addWidgetPrefix(ts)}, .dx-button`):a}_getVisibleColumnIndex(i,a,c){if(this._editingController.getEditFormRowIndex()===a&&(0,w.Kg)(c)){const y=this._columnsController.columnOption(c);return this._getEditFormEditorVisibleIndex(i,y)}return super._getVisibleColumnIndex.apply(this,arguments)}_getEditFormEditorVisibleIndex(i,a){let c=-1;return(0,e.__)(i,(g,y)=>{const D=(0,T.A)(y).find(".dx-field-item-content").data("dx-form-item");if(null!=D&&D.column&&a&&D.column.index===a.index)return c=g,!1}),c}_isFormItem(i){const a="detail"===i.rowType||"detailAdaptive"===i.rowType,c="data"===i.rowType&&this._editingController.isPopupEditMode();return(a||c)&&i.item}_updateCell(i,a){this._isFormItem(a)?this._formItemPrepared(a,i):super._updateCell(i,a)}_updateContent(){const i=this._editingController,a=i.getEditForm(),c=a?.option("validationGroup");return super._updateContent.apply(this,arguments).done(()=>{const y=i.getEditForm();c&&y&&y!==a&&y.option("validationGroup",c)})}}}}}),Dt.registerModule("editingCellBased",{extenders:{controllers:{editing:I=>class extends I{init(){const i=!this._saveEditorHandler;if(super.init(),i){let a,c;this._pointerUpEditorHandler=()=>{var g;c=null===(g=this._columnsResizerController)||void 0===g?void 0:g.isResizing()},this._pointerDownEditorHandler=g=>a=(0,T.A)(g.target),this._saveEditorHandler=this.createAction(function(g){const{event:y}=g,D=(0,T.A)(y.target),Y=y[Vc],{component:xe}=this;if((!function nE(I){return I&&(I.is("input")||I.is("textarea"))}(a)||a.is(D))&&this.isCellOrBatchEditMode()&&!this._editCellInProgress){const st=Le(D)||Le(Y?.$element()),mt=Y&&!Y._disposed&&Y!==this.component,on=!!D.closest(`.${this.addWidgetPrefix("addrow-button")}`).length,wn=D.hasClass(this.addWidgetPrefix("focus-overlay")),Kn=this.isCellEditMode();!c&&!st&&!wn&&!(on&&Kn&&this.isEditing())&&((0,ed.A1)(D)||mt)&&this._closeEditItem.bind(this)(D)}function Le(st){if(!st)return!1;const mt=st.closest(".dx-dropdowneditor-overlay"),on=xe.$element();return mt.length>0&&0===on.closest(mt).length}}),P.A.on(m.A.getDocument(),pe.A.up,this._pointerUpEditorHandler),P.A.on(m.A.getDocument(),pe.A.down,this._pointerDownEditorHandler),P.A.on(m.A.getDocument(),de.U,this._saveEditorHandler)}}isCellEditMode(){return this.option("editing.mode")===nd}isBatchEditMode(){return this.option("editing.mode")===jh}isCellOrBatchEditMode(){return this.isCellEditMode()||this.isBatchEditMode()}_needToCloseEditableCell(i){const a=this.component.$element();let c=this.isEditing();if((!a||i.closest(a).length)&&i.closest(".dx-data-row").length){const Y=i.closest(`.${fa}> td`),xe=this._rowsView.getRowIndex(Y.parent()),Le=this._rowsView.getCellElements(xe);if(null!=Le&&Le.length){var y;const st=Le.index(Y),on=null===(y=this._columnsController.getVisibleColumns()[st])||void 0===y?void 0:y.allowEditing,wn=this.isEditCell(xe,st);c=c&&!on&&!wn}}return c||super._needToCloseEditableCell(i)}_closeEditItem(i){this._needToCloseEditableCell(i)&&this.closeEditCell()}_focusEditorIfNeed(){if(this._needFocusEditor&&this.isCellOrBatchEditMode()){var i;const a=this._getVisibleEditColumnIndex(),c=null===(i=this._rowsView)||void 0===i?void 0:i._getCellElement(this._getVisibleEditRowIndex(),a);this._refocusEditCell=!1,clearTimeout(this._inputFocusTimeoutID),c&&!c.find(":focus").length?this._focusEditingCell(()=>{this._editCellInProgress=!1},c,!0):this._editCellInProgress=!1,this._needFocusEditor=!1}else super._focusEditorIfNeed()}isEditing(){if(this.isCellOrBatchEditMode()){const i=(0,w.O9)(this.option(sl)),a=(0,w.O9)(this.option(kd));return i&&a}return super.isEditing()}_handleEditColumnNameChange(i){const a=this._getVisibleEditRowIndex(i.previousValue);if(this.isCellOrBatchEditMode()&&-1!==a&&(0,w.O9)(i.value)&&i.value!==i.previousValue){const c=this._columnsController.getVisibleColumnIndex(i.value),g=this._columnsController.getVisibleColumnIndex(i.previousValue);this._editCellFromOptionChanged(c,g,a)}}_addRow(i){if(this.isCellEditMode()&&this.hasChanges()){const a=new ye.cY;return this.saveEditData().done(()=>{this.hasChanges()?a.reject("cancel"):this.addRow(i).done(a.resolve).fail(a.reject)}),a.promise()}return super._addRow(i)}editCell(i,a){return this._editCell({rowIndex:i,columnIndex:a})}_editCell(i){const a=new ye.cY;let c;return this.executeOperation(a,()=>{c=this._editCellCore(i),(0,ye.z7)(c).done(a.resolve).fail(a.reject)}),void 0!==c?c:a.promise()}_editCellCore(i){const a=this._dataController,c=(0,w.O9)(i.oldColumnIndex)||(0,w.O9)(i.oldRowIndex),{columnIndex:g,rowIndex:y,column:D,item:Y}=this._getNormalizedEditCellOptions(i),xe={data:Y?.data,cancel:!1,column:D};if(void 0!==Y.key){if(D&&("data"===Y.rowType||"detailAdaptive"===Y.rowType)&&!Y.removed&&this.isCellOrBatchEditMode()){if(!c&&this.isEditCell(y,g))return!0;const Le=y+a.getRowIndexOffset();return(0,ye.z7)(this._beforeEditCell(y,g,Y)).done(st=>{st||this._prepareEditCell(xe,Y,g,Le)||this._processCanceledEditingCell()})}return!1}this._dataController.fireError("E1043")}_beforeEditCell(i,a,c){if(this.isCellEditMode()&&!c.isNewRow&&this.hasChanges()){const g=new ye.cY;return this.saveEditData().always(()=>{g.resolve(this.hasChanges())}),this.addDeferred(g),g}return!1}publicMethods(){return super.publicMethods().concat(["editCell","closeEditCell"])}_getNormalizedEditCellOptions(i){let{oldColumnIndex:a,oldRowIndex:c,columnIndex:g,rowIndex:y}=i;const D=this._columnsController,Y=D.getVisibleColumns(),Le=this._dataController.items()[y];let st;return st=(0,w.O9)(a)?Y[a]:this._getEditColumn(),(0,w.O9)(c)||(c=this._getVisibleEditRowIndex()),(0,w.Kg)(g)&&(g=D.columnOption(g,"index"),g=D.getVisibleIndex(g)),{oldColumn:st,columnIndex:g,oldRowIndex:c,rowIndex:y,column:Y[g],item:Le}}_prepareEditCell(i,a,c,g){return a.isNewRow||(i.key=a.key),!this._isEditingStart(i)&&(this._pageIndex=this._dataController.pageIndex(),this._setEditRowKey(a.key),this._setEditColumnNameByIndex(c),i.column.showEditorAlways||this._addInternalData({key:a.key,oldData:a.oldData??a.data}),!0)}closeEditCell(i,a){let c=(0,ye.z7)();const g=this._getVisibleEditRowIndex();if(this.isCellOrBatchEditMode()){const y=new ye.cY;c=new ye.cY,this.executeOperation(y,()=>{this._closeEditCellCore(i,g,a).always(c.resolve)})}return c.promise()}_closeEditCellCore(i,a,c){const g=this._dataController,y=new ye.cY,D=y.promise();if(this.isCellEditMode()&&this.hasChanges()){if(!c)return this.saveEditData().done(Y=>{this.hasChanges()?y.resolve():this.closeEditCell(!!Y).always(y.resolve)}),D}else if(this._resetEditRowKey(),this._resetEditColumnName(),a>=0){const Y=[a];this._beforeCloseEditCellInBatchMode(Y),i||g.updateItems({changeType:"update",rowIndices:Y})}return y.resolve(),D}_resetModifiedClassCells(i){if(this.isBatchEditMode()){const a=this._columnsController.getVisibleColumns().length;i.forEach(c=>{let{key:g}=c;const y=this._dataController.getRowIndexByKey(g);for(let D=0;D<a;D++){const Y=this._rowsView._getCellElement(y,D);Y?.removeClass("dx-cell-modified")}})}}_prepareChange(i,a,c){const g=(0,T.A)(i.cellElement);return this.isBatchEditMode()&&void 0!==i.key&&this._applyModified(g,i),super._prepareChange(i,a,c)}_cancelSaving(i){const a=this._dataController;this.isCellOrBatchEditMode()&&(this.isBatchEditMode()&&this._resetEditIndices(),a.updateItems()),super._cancelSaving(i)}optionChanged(i){const{fullName:a}=i;"editing"===i.name&&a===kd?(this._handleEditColumnNameChange(i),i.handled=!0):super.optionChanged(i)}_editCellFromOptionChanged(i,a,c){const g=this._columnsController.getVisibleColumns();i>-1&&(0,b.zE)(()=>{this._repaintEditCell(g[i],g[a],c)})}_handleEditRowKeyChange(i){if(this.isCellOrBatchEditMode()){const c=this._getVisibleEditColumnIndex(),g=this._getEditRowIndexCorrection(),y=this._dataController.getRowIndexByKey(i.previousValue)+g;var a;(0,w.O9)(i.value)&&i.value!==i.previousValue&&(null===(a=this._editCellFromOptionChanged)||void 0===a||a.call(this,c,c,y))}else super._handleEditRowKeyChange(i)}deleteRow(i){if(this.isCellEditMode()&&this.isEditing()){const{isNewRow:a}=this._dataController.items()[i],c=this._dataController.getKeyByRowIndex(i);this.closeEditCell(null,a).always(()=>{i=this._dataController.getRowIndexByKey(c),this._checkAndDeleteRow(i)})}else super.deleteRow(i)}_checkAndDeleteRow(i){this.isBatchEditMode()?this._deleteRowCore(i):super._checkAndDeleteRow(i)}_refreshCore(i){const{isPageChanged:a}=i??{},c=this.isBatchEditMode()||a&&"virtual"!==this.option("scrolling.mode");this.isCellOrBatchEditMode()?c&&(this._resetEditColumnName(),this._resetEditRowKey()):super._refreshCore(i)}_allowRowAdding(i){return!!this.isBatchEditMode()||super._allowRowAdding(i)}_afterDeleteRow(i,a){const c=this._dataController;return this.isBatchEditMode()?(c.updateItems({changeType:"update",rowIndices:[a,i]}),(new ye.cY).resolve()):super._afterDeleteRow(i,a)}_updateEditRow(i,a,c){this.isCellOrBatchEditMode()?this._updateRowImmediately(i,a,c):super._updateEditRow(i,a,c)}_isDefaultButtonVisible(i,a){if(this.isCellOrBatchEditMode()){const c=this.isBatchEditMode();switch(i.name){case"save":case"cancel":case"edit":return!1;case"delete":return super._isDefaultButtonVisible(i,a)&&(!c||!a.row.removed);case"undelete":return c&&this.allowDeleting(a)&&a.row.removed;default:return super._isDefaultButtonVisible(i,a)}}return super._isDefaultButtonVisible(i,a)}_isRowDeleteAllowed(){return super._isRowDeleteAllowed()||this.isBatchEditMode()}_beforeEndSaving(i){var a;this.isCellEditMode()?"update"!==(null===(a=i[0])||void 0===a?void 0:a.type)&&super._beforeEndSaving(i):(this.isBatchEditMode()&&this._resetModifiedClassCells(i),super._beforeEndSaving(i))}prepareEditButtons(i){const a=this.option("editing")??{},c=super.prepareEditButtons(i);return(a.allowUpdating||a.allowAdding||a.allowDeleting)&&this.isBatchEditMode()&&(c.push(this.prepareButtonItem(i,"save","saveEditData",21)),c.push(this.prepareButtonItem(i,"revert","cancelEditData",22))),c}_saveEditDataInner(){var i;const a=this._dataController.getVisibleRows()[this.getEditRowIndex()],c=this._getEditColumn(),g=c?.showEditorAlways;let D;return this.isCellEditMode()&&!(null!=a&&a.isNewRow)&&g&&(D=new ye.cY,this.addDeferred(D)),super._saveEditDataInner().always(null===(i=D)||void 0===i?void 0:i.resolve)}_applyChange(i,a,c){const g=this.isCellEditMode()&&i.row&&!i.row.isNewRow,{showEditorAlways:y}=i.column,D=i.column.setCellValue!==i.column.defaultSetCellValue;return y&&!c&&g&&this.hasEditData()&&!this.isEditCell(i.rowIndex,i.columnIndex)?(this._focusEditingCell(),void this._updateEditRow(i.row,!0,D)):super._applyChange(i,a,c)}_applyChangeCore(i,a){const{showEditorAlways:c}=i.column,g=this.isCellEditMode()&&i.row&&!i.row.isNewRow;if(c&&!a){if(g)return this._setEditRowKey(i.row.key,!0),this._setEditColumnNameByIndex(i.columnIndex,!0),this.saveEditData();if(this.isBatchEditMode())return a=this._needUpdateRow(i.column),super._applyChangeCore(i,a)}return super._applyChangeCore(i,a)}_processDataItemCore(i,a,c,g,y){const{data:D,type:Y}=a;this.isBatchEditMode()&&Y===hc&&(i.data=(0,ht.lj)(i.data,D)),super._processDataItemCore(i,a,c,g,y)}_processRemoveCore(i,a,c){if(!this.isBatchEditMode()||c)return super._processRemoveCore(i,a,c)}_processRemoveIfError(i,a){if(!this.isBatchEditMode())return super._processRemoveIfError(i,a)}_beforeFocusElementInRow(i){super._beforeFocusElementInRow(i);const a=i>=0?i:0,c=this.getFirstEditableColumnIndex();c>=0&&this.editCell(a,c)}}},views:{rowsView:I=>class extends I{_createTable(){const i=super._createTable.apply(this,arguments),a=this._editingController;return a.isCellOrBatchEditMode()&&this.option("editing.allowUpdating")&&P.A.on(i,(0,x.b4)(Cp.A.name,"dxDataGridRowsView"),`td:not(.${Ql})`,this.createAction(()=>{a.isEditing()&&a.closeEditCell()})),i}_createRow(i){const a=super._createRow.apply(this,arguments);if(i){const g=!!i.removed;this._editingController.isBatchEditMode()&&g&&a.addClass("dx-row-removed")}return a}},headerPanel:I=>class extends I{isVisible(){const i=this._editingController.option("editing");return super.isVisible()||i&&(i.allowUpdating||i.allowDeleting)&&i.mode===jh}}}}});var Bm=p(2359),Fm=p(3949),Ef=p(3777),Of=p(8025),wf=p(402);const Sf="__DX_INSERT_INDEX__",hE="row",mv="batch",Ag="cell",Ly=["popup","form"],Np=function(I){return(0,w.O9)(I)&&"cancel"!==I},Tf=function(I,i){return void 0!==I||void 0===I&&i&&!i.isNewRow};Dt.registerModule("validating",{defaultOptions:()=>({editing:{texts:{validationCancelChanges:v.A.format("dxDataGrid-validationCancelChanges")}}}),controllers:{validating:class Ig extends ft.Controller{constructor(){super(...arguments),this._isValidationInProgress=!1,this._disableApplyValidationResults=!1}init(){this._editingController=this.getController("editing"),this._editorFactoryController=this.getController("editorFactory"),this._columnsController=this.getController("columns"),this.createAction("onRowValidating"),this._validationState||this.initValidationState()}initValidationState(){this._validationState=[],this._validationStateCache={}}_rowIsValidated(i){const a=this._getValidationData(i?.key);return!!a&&!!a.validated}_getValidationData(i,a){const c=(0,b.GP)(i),g=(0,w.Gv)(c);let y;return y=g?this._validationState.filter(D=>(0,b.RL)(D.key,i))[0]:this._validationStateCache[c],!y&&a&&(y={key:i,isValid:!0},this._validationState.push(y),g||(this._validationStateCache[c]=y)),y}_getBrokenRules(i,a){let c;return c=a?a.brokenRules||a.brokenRule&&[a.brokenRule]:i.brokenRules||[],c}_rowValidating(i,a){const c=new ye.cY,g=this._editingController.getChangeByKey(i?.key),y=this._getBrokenRules(i,a),Y={brokenRules:y,isValid:a?a.isValid:i.isValid,key:g.key,newData:g.data,oldData:this._editingController._getOldData(g.key),promise:null,errorText:this.getHiddenValidatorsErrorText(y)};return this.executeAction("onRowValidating",Y),(0,ye.z7)((0,ye.Sx)(Y.promise)).always(()=>{i.isValid=Y.isValid,i.errorText=Y.errorText,c.resolve(Y)}),c.promise()}getHiddenValidatorsErrorText(i){const a=[];return(0,e.__)(i,(c,g)=>{const{column:y}=g,D=y&&void 0!==y.groupIndex&&!y.showWhenGrouped,Y=y&&y.visible;!g.validator.$element().parent().length&&(!Y||D)&&a.push(g.message)}),a.join(", ")}validate(i){let a=!0;const c=this._editingController,g=new ye.cY,y=[],D=c.getEditMode();if(i=i||D===hE,this._isValidationInProgress)return g.resolve(!1).promise();if(this._isValidationInProgress=!0,i){c.addDeferred(g);const Y=c.getChanges();(0,e.__)(Y,(xe,Le)=>{let{type:st,key:mt}=Le;if("remove"!==st){const on=this._getValidationData(mt,!0),wn=this.validateGroup(on);y.push(wn),wn.done(Kn=>{on.validated=!0,a=a&&Kn.isValid})}})}else if(this._currentCellValidator){const Y=this.validateGroup(this._currentCellValidator._findGroup());y.push(Y),Y.done(xe=>{a=xe.isValid})}return(0,ye.z7)(...y).done(()=>{this._isValidationInProgress=!1,g.resolve(a)}),g.promise()}validateGroup(i){var a;const c=new ye.cY,g=i&&Ef.A.getGroupConfig(i);let y;return null!=g&&g.validators.length&&(this.resetRowValidationResults(i),y=Ef.A.validateGroup(i)),(0,ye.z7)((null===(a=y)||void 0===a?void 0:a.complete)||y).done(D=>{(0,ye.z7)(this._rowValidating(i,D)).done(c.resolve)}),c.promise()}isRowDataModified(i){return!(0,w.RI)(i.data)}updateValidationState(i){const a=this._editingController.getEditMode(),{key:c}=i,g=this._getValidationData(c,!0);if(Ly.includes(a))g.isValid=!0;else{if("insert"===i.type&&!this.isRowDataModified(i))return void(g.isValid=!0);if(this.setDisableApplyValidationResults(!0),Ef.A.getGroupConfig(g)){const D=Ef.A.validateGroup(g);(0,ye.z7)(D.complete||D).done(Y=>{g.isValid=Y.isValid,g.brokenRules=Y.brokenRules})}else(!g.brokenRules||!g.brokenRules.length)&&(g.isValid=!0);this.setDisableApplyValidationResults(!1)}}setValidator(i){this._currentCellValidator=i}renderCellPendingIndicator(i){let a=i.find(".dx-pending-indicator");if(!a.length){const c=i;a=(0,T.A)("<div>").appendTo(c).addClass("dx-pending-indicator"),this._createComponent(a,Bm.A),i.addClass("dx-validation-pending")}}disposeCellPendingIndicator(i){const a=i.find(".dx-pending-indicator");if(a.length){const c=Bm.A.getInstance(a);c&&(c.dispose(),c.$element().remove()),i.removeClass("dx-validation-pending")}}validationStatusChanged(i){const{validator:a}=i,c=a.option("validationGroup"),{column:g}=a.option("dataGetter")();this.updateCellValidationResult({rowKey:c.key,columnIndex:g.index,validationResult:i})}validatorInitialized(i){i.component.on("validating",this.validationStatusChanged.bind(this)),i.component.on("validated",this.validationStatusChanged.bind(this))}validatorDisposing(i){const a=i.component,c=a.option("validationGroup"),{column:g}=a.option("dataGetter")(),y=this.getCellValidationResult({rowKey:c?.key,columnIndex:g.index});Np(y)&&"pending"===y.status&&this.cancelCellValidationResult({change:c,columnIndex:g.index})}applyValidationResult(i,a){const{validator:c}=a,g=c.option("validationGroup"),{column:y}=c.option("dataGetter")();if(a.brokenRules&&a.brokenRules.forEach(D=>{D.columnIndex=y.index,D.column=y}),i){const D=this.getCellValidationResult({rowKey:g.key,columnIndex:y.index}),Y=Np(D)&&D.disabledPendingId===a.id;if(this._disableApplyValidationResults||Y)return;if("invalid"===a.status){const Le=i.find(":focus");(0,wf.in)(Le)||(P.A.trigger(Le,"focus"),P.A.trigger(Le,pe.A.down))}const xe=!y.editCellTemplate&&this._editorFactoryController.getEditorInstance(i);"pending"===a.status?xe?xe.option("validationStatus","pending"):this.renderCellPendingIndicator(i):xe?xe.option("validationStatus","valid"):this.disposeCellPendingIndicator(i),i.toggleClass(this.addWidgetPrefix("invalid"),"invalid"===a.status)}}_syncInternalEditingData(i){var a;const c=this._editingController,g=c.getChangeByKey(i.key),y=c._getOldData(i.key),D=null===(a=i.row)||void 0===a?void 0:a.oldData;g&&D&&!y&&c._addInternalData({key:i.key,oldData:D})}createValidator(i,a){const c=this._editingController,{column:g}=i;let{showEditorAlways:y}=g;if((0,w.O9)(g.command)||!g.validationRules||!Array.isArray(g.validationRules)||!g.validationRules.length)return;let Y=c.getIndexByKey(i.key,c.getChanges())>-1;if(!Y){var xe;y||(y=((null===(xe=this._columnsController)||void 0===xe?void 0:xe.getVisibleColumns())||[]).some(wn=>wn.showEditorAlways));const st=(0,b.RL)(this.option("editing.editRowKey"),i.key),mt=c.isCellOrBatchEditMode()&&c.allowUpdating({row:i.row});var Le;Y=st||mt&&y,mt&&y&&c._addInternalData({key:i.key,oldData:(null===(Le=i.row)||void 0===Le?void 0:Le.oldData)??i.data})}if(Y){if(a&&!a.length)return void We.A.log("E1050");this._syncInternalEditingData(i);const st=this._getValidationData(i.key,!0),mt=()=>{const Kn=c.getChangeByKey(st?.key),Ai=g.calculateCellValue(Kn?.data||{});return void 0!==Ai?Ai:i.value},on=a&&a.hasClass("dx-widget");a&&a.addClass(this.addWidgetPrefix("validator"));const wn=new Of.A(a||(0,T.A)("<div>"),{name:g.caption,validationRules:(0,C.X)(!0,[],g.validationRules),validationGroup:st,adapter:on?null:{getValue:mt,applyValidationResults:Kn=>{this.applyValidationResult(a,Kn)}},dataGetter(){const Kn=st?.key,Ai=c.getChangeByKey(Kn),no=c._getOldData(Kn);return{data:(0,ht.lj)(no,Ai?.data),column:g}},onInitialized:this.validatorInitialized.bind(this),onDisposing:this.validatorDisposing.bind(this)});if(on){const Kn=wn.option("adapter");if(Kn){const Ai=Kn.bypass,no=()=>i.row.isNewRow&&!this._isValidationInProgress&&!c.isCellModified(i);Kn.getValue=mt,Kn.validationRequestsCallbacks=[],Kn.bypass=()=>Ai.call(Kn)||no()}}return wn}}setDisableApplyValidationResults(i){this._disableApplyValidationResults=i}getDisableApplyValidationResults(){return this._disableApplyValidationResults}isCurrentValidatorProcessing(i){let{rowKey:a,columnIndex:c}=i;return this._currentCellValidator&&(0,b.RL)(this._currentCellValidator.option("validationGroup").key,a)&&this._currentCellValidator.option("dataGetter")().column.index===c}validateCell(i){const a={rowKey:i.option("validationGroup").key,columnIndex:i.option("dataGetter")().column.index,validationResult:null};let c=this.getCellValidationResult(a);const g=Np(c),y=i.option("adapter");if(g){const Y=y.getValue();(0,b.RL)(Y,c.value)||(c=i.validate())}else c=i.validate();const D=new ye.cY;return g&&"pending"===c.status&&(this.updateCellValidationResult(a),y.applyValidationResults(c)),(0,ye.z7)(c.complete||c).done(Y=>{g&&y.applyValidationResults(Y),D.resolve(Y)}),D.promise()}updateCellValidationResult(i){let{rowKey:a,columnIndex:c,validationResult:g}=i;const y=this._getValidationData(a);if(!y)return;let D;if(y.validationResults||(y.validationResults={}),g){if(D=(0,C.X)({},g),y.validationResults[c]=D,"pending"===g.status&&(this._editingController.getEditMode()===Ag&&(D.deferred=new ye.cY,D.complete.always(()=>{D.deferred.resolve()}),this._editingController.addDeferred(D.deferred)),this._disableApplyValidationResults))return void(D.disabledPendingId=g.id)}else D=y.validationResults[c];D&&D.disabledPendingId&&delete D.disabledPendingId}getCellValidationResult(i){var a;let{rowKey:c,columnIndex:g}=i;const y=this._getValidationData(c,!0);return null==y||null===(a=y.validationResults)||void 0===a?void 0:a[g]}removeCellValidationResult(i){let{change:a,columnIndex:c}=i;const g=this._getValidationData(a?.key);g&&g.validationResults&&(this.cancelCellValidationResult({change:a,columnIndex:c}),delete g.validationResults[c])}cancelCellValidationResult(i){let{change:a,columnIndex:c}=i;const g=this._getValidationData(a.key);if(a&&g.validationResults){const y=g.validationResults[c];y&&(y.deferred&&y.deferred.reject("cancel"),g.validationResults[c]="cancel")}}resetRowValidationResults(i){i&&(i.validationResults&&delete i.validationResults,delete i.validated)}isInvalidCell(i){let{rowKey:a,columnIndex:c}=i;const g=this.getCellValidationResult({rowKey:a,columnIndex:c});return Np(g)&&"invalid"===g.status}getCellValidator(i){let{rowKey:a,columnIndex:c}=i;const g=this._getValidationData(a),y=g&&Ef.A.getGroupConfig(g),D=y&&y.validators;return D&&D.filter(Y=>{const{column:xe}=Y.option("dataGetter")();return!!xe&&xe.index===c})[0]}setCellValidationStatus(i){const a=this.getCellValidationResult({rowKey:i.key,columnIndex:i.column.index});(0,w.O9)(a)?i.validationStatus="cancel"!==a?a.status:"cancel":delete i.validationStatus}}},extenders:{controllers:{editing:I=>class extends I{processDataItemTreeListHack(i){super.processDataItem.apply(this,arguments)}processItemsTreeListHack(i,a){return super.processItems.apply(this,arguments)}_addChange(i){const a=super._addChange.apply(this,arguments);return a&&"remove"!==i.type&&this._validatingController.updateValidationState(a),a}_handleChangesChange(i){super._handleChangesChange.apply(this,arguments),i.value.forEach(a=>{void 0===this._validatingController._getValidationData(a.key)&&this._validatingController.updateValidationState(a)})}_updateRowAndPageIndices(){const i=this,a=i.getView("rowsView").getTopVisibleItemIndex();let c=a;(0,e.__)(i.getChanges(),(g,y)=>{let{key:D,type:Y}=y;const xe=this._validatingController._getValidationData(D);xe&&!xe.isValid&&xe.pageIndex!==i._pageIndex&&(xe.pageIndex=i._pageIndex,xe.rowIndex="insert"===Y?a:c,c++)})}_getValidationGroupsInForm(i){return{validationGroup:this._validatingController._getValidationData(i.key,!0)}}_validateEditFormAfterUpdate(i,a){a&&this._editForm&&this._editForm.validate(),super._validateEditFormAfterUpdate.apply(this,arguments)}_prepareEditCell(i){const a=super._prepareEditCell.apply(this,arguments);return a&&i.column.showEditorAlways&&this._validatingController.updateValidationState({key:i.key}),a}processItems(i,a){const c=this.getChanges(),g=(D,Y)=>{let xe=-1;const Le="insert"===D.type,{key:st}=D;return(0,e.__)(Y,(mt,on)=>{if((0,b.RL)(st,Le?on.key:this._dataController.keyOf(on)))return xe=mt,!1}),xe},y=(i=super.processItems(i,a)).length;return this.getEditMode()===mv&&"prepend"!==a&&"append"!==a&&c.forEach(D=>{const{key:Y}=D,xe=this._validatingController._getValidationData(Y);xe&&D.type&&xe.pageIndex===this._pageIndex&&D?.pageIndex!==this._pageIndex&&function(Le,st){const mt={key:Le.key};if(g(Le,i)>=0)return;st.rowIndex=st.rowIndex>y?st.rowIndex%y:st.rowIndex;const{rowIndex:wn}=st;mt[Sf]=1,i.splice(wn,0,mt)}(D,xe)}),i}processDataItem(i){const a=i.data[Sf],c=a?i.data.key:i.key;if(this.getEditMode()===mv&&a&&c){const y=this.getChanges(),D=Ot.getIndexByKey(c,y);if(D>=0){const Y=y[D];if("insert"!==Y.type){const xe=this._getOldData(Y.key);i.data=(0,C.X)(!0,{},xe,Y.data),i.key=c}}}super.processDataItem.apply(this,arguments)}_createInvisibleColumnValidators(i){const a=this,c=this._columnsController.getColumns(),g=this._columnsController.getInvisibleColumns().filter(xe=>!xe.isBand),y=this._columnsController.getGroupColumns().filter(xe=>!xe.showWhenGrouped&&-1===g.indexOf(xe)),D=[],Y=(xe,Le)=>this._dataController.getRowIndexByKey(Le)>=0&&g.indexOf(xe)<0;return g.push(...y),Ly.includes(this.getEditMode())||(0,e.__)(c,(xe,Le)=>{i.forEach(st=>{let mt;if(!Y(Le,st.key)){if("insert"===st.type)mt=st.data;else if("update"===st.type){const on=a._getOldData(st.key);if(!(0,w.O9)(on))return;mt=(0,ht.lj)(on,st.data)}if(mt){const on=this._validatingController.createValidator({column:Le,key:st.key,value:Le.calculateCellValue(mt)});on&&D.push(on)}}})}),function(){D.forEach(xe=>{xe.dispose()})}}_beforeSaveEditData(i,a){let c=super._beforeSaveEditData.apply(this,arguments);const g=this._validatingController._getValidationData(i?.key);if(i)c=c||!("remove"===i.type||g.isValid);else{const y=this._createInvisibleColumnValidators(this.getChanges());c=new ye.cY,this.executeOperation(c,()=>{this._validatingController.validate(!0).done(D=>{switch(y(),this._updateRowAndPageIndices(),this.getEditMode()){case Ag:D||this._focusEditingCell();break;case mv:D||(this._resetEditRowKey(),this._resetEditColumnName(),this._dataController.updateItems())}c.resolve(!D)})})}return c.promise?c.promise():c}_beforeEditCell(i,a,c){const g=super._beforeEditCell(i,a,c);if(this.getEditMode()===Ag){const y=this._rowsView._getCellElement(i,a),D=y&&y.data("dxValidator"),Y=y&&y.closest(".dx-row").data("options"),xe=D&&D.option("adapter").getValue();if(D&&Tf(xe,Y)){const Le=new ye.cY;return(0,ye.z7)(this._validatingController.validateCell(D),g).done((st,mt)=>{Le.resolve("valid"===st.status&&mt)}),Le.promise()}if(!D)return g}return!1}_afterSaveEditData(i){let a;const c=this.getEditMode()===Ag;if((0,e.__)(this.getChanges(),(g,y)=>{const D=this._showErrorRow(y);a=a||D}),a){const g=this._rowsView.getScrollable();g&&(g.update(),g.scrollToElement(a))}if(i&&c&&this._needUpdateRow()){const g=this.getEditRowIndex();this._dataController.updateItems({changeType:"update",rowIndices:[g]}),this._focusEditingCell()}else if(!i){let g=!0;c&&(g=!(this._columnsController.getColumns().filter(Y=>{var xe;return Y.showEditorAlways&&(null===(xe=Y.validationRules)||void 0===xe?void 0:xe.length)>0}).length>0)),g&&this._validatingController.initValidationState()}}_handleDataChanged(i){const a=this._validatingController._validationState;"standard"===this.option("scrolling.mode")&&this.resetRowAndPageIndices(),"prepend"===i.changeType&&(0,e.__)(a,(c,g)=>{g.rowIndex+=i.items.length}),super._handleDataChanged(i)}resetRowAndPageIndices(){(0,e.__)(this._validatingController._validationState,(a,c)=>{c.pageIndex!==this._pageIndex&&(delete c.pageIndex,delete c.rowIndex)})}_beforeCancelEditData(){this._validatingController.initValidationState(),super._beforeCancelEditData()}_showErrorRow(i){let a;const c=this._dataController.items(),g=this.getIndexByKey(i.key,c),y=this._validatingController._getValidationData(i.key);if((null==y||!y.isValid)&&null!=y&&y.errorText&&g>=0)return a=this.getPopupContent(),this._errorHandlingController&&this._errorHandlingController.renderErrorRow(y?.errorText,g,a)}updateFieldValue(i){const a=new ye.cY;return this._validatingController.removeCellValidationResult({change:this.getChangeByKey(i.key),columnIndex:i.column.index}),super.updateFieldValue.apply(this,arguments).done(()=>{const c=this._validatingController.getCellValidator({rowKey:i.key,columnIndex:i.column.index});(0,ye.z7)(c&&this._validatingController.validateCell(c)).done(g=>{this._editorFactoryController.refocus(),a.resolve(g)})}),a.promise()}highlightDataCell(i,a){super.highlightDataCell.apply(this,arguments),this._validatingController.setCellValidationStatus(a);const c=!!a.setValue,g=this.isCellModified(a),y=(0,w.O9)(a.validationStatus);if(g&&a.column.setCellValue||c&&!g&&!a.row.isNewRow&&y){const Y=i.data("dxValidator");Y&&(0,ye.z7)(this._validatingController.validateCell(Y)).done(()=>{this._validatingController.setCellValidationStatus(a)})}}getChangeByKey(i){const a=this.getChanges();return a[Ot.getIndexByKey(i,a)]}isCellModified(i){const a=super.isCellModified(i),c=this.getChangeByKey(i.key),g=!!i.row&&this._validatingController.isInvalidCell({rowKey:i.key,columnIndex:i.column.index});return a||this._validatingController._rowIsValidated(c)&&g}},editorFactory:I=>class extends I{_showRevertButton(i){var a,c;let g=null===(a=this._revertTooltip)||void 0===a?void 0:a.$element();var y;if(!i||!i.length)return null===(y=g)||void 0===y||y.remove(),void(this._revertTooltip=void 0);if(i.find(g).length)return;const D=i.closest(`.${this.addWidgetPrefix("content")}`).parent(),Y=this.addWidgetPrefix("revert-tooltip");null===(c=g)||void 0===c||c.remove(),g=(0,T.A)("<div>").addClass(Y).appendTo(i);const xe={animation:null,visible:!0,width:"auto",height:"auto",shading:!1,container:D,propagateOutsideClick:!0,hideOnOutsideClick:!1,wrapperAttr:{class:Y},contentTemplate:()=>{const Le=(0,T.A)("<div>").addClass("dx-revert-button"),st={icon:"revert",hint:this.option("editing.texts.validationCancelChanges"),elementAttr:{id:"dxRevertButton","aria-label":v.A.format("dxDataGrid-ariaRevertButton")},onClick:()=>{this._editingController.cancelEditData()}};return new Xu.A(Le,st).$element()},position:{my:"left top",at:"right top",offset:"1 0",collision:"flip",boundaryOffset:"0 0",boundary:this._rowsView.element(),of:i},onPositioned:this._positionedHandler.bind(this)};this._revertTooltip=new Fm.A(g,xe)}_hideFixedGroupCell(i,a){let c,g;const y=this._rowsView.isFixedColumns(),D=this._editingController.isFormOrPopupEditMode();if(y&&!D){const Y=i.closest(".dx-row").next().data("options");Y&&"group"===Y.rowType&&(c=(0,T.A)(this._rowsView.getRowElement(Y.rowIndex)).last(),g=c.find(".dx-group-cell"),g.length&&"hidden"!==g.get(0).style.visibility&&(g.css("visibility","hidden"),a.onDisposing=function(){g.css("visibility","")}))}}_positionedHandler(i,a){if(!i.component.__skipPositionProcessing){const c=(0,T.A)(i.element).hasClass(this.addWidgetPrefix("revert-tooltip")),g=!c&&this._rowsView.updateFreeSpaceRowHeight(),y=this._normalizeValidationMessagePositionAndMaxWidth(i,c,a);i.component.__skipPositionProcessing=!(!g&&!y),y?i.component.option(y):g&&i.component.repaint()}}_showValidationMessage(i,a,c){var g;const y=i.find(".dx-dropdowneditor-overlay").data("dxPopup"),D=y&&y.option("visible"),Y=D?"top right":`top ${c}`,xe=D?"top left":`bottom ${c}`,st=(null===(g=this._columnsController.getFixedColumns())||void 0===g?void 0:g.length)>0?this.getView("rowsView").element():i.closest(`.${this.addWidgetPrefix("content")}`);let mt="";a&&a.forEach(Ai=>{mt+=(mt.length?"<br/>":"")+(0,rn.o4)(Ai)});const on=this.addWidgetPrefix("invalid-message");this._rowsView.element().find(`.${on}`).remove();const wn=(0,T.A)("<div>").addClass("dx-invalid-message").addClass("dx-invalid-message-always").addClass(on).html(mt).appendTo(i),Kn={container:st,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,hideOnOutsideClick:!1,wrapperAttr:{id:"dxInvalidMessage",class:`dx-invalid-message dx-invalid-message-always ${on}`},position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",offset:{x:0,y:!D&&Ce.A.mozilla?-1:0},my:Y,at:xe,of:i},onPositioned:Ai=>{this._positionedHandler(Ai,D),this._shiftValidationMessageIfNeed(Ai.component.$content(),i)}};this._hideFixedGroupCell(i,Kn),new Fm.A(wn,Kn)}_hideValidationMessage(){var i;const a=null===(i=this._rowsView.element())||void 0===i?void 0:i.find(this._getValidationMessagesSelector());a?.remove()}_normalizeValidationMessagePositionAndMaxWidth(i,a,c){const g=this._columnsController.getFixedColumns();if(!g||!g.length)return;let y;const D=!a&&function(I,i){const a=(0,T.A)(i).closest("tr").index(),c=(0,T.A)(I._rowsView.getRowElement(a)).first().children().filter(":not(.dx-hidden-cell)");return I._rowsView._getWidths(c).reduce((g,y)=>g+y,0)}(this,i.element),Y=i.component.$content(),xe=(0,k.Ot)(Y,!0),Le=!a&&xe>D,st=this._rowsView.getCellIndex((0,T.A)(i.element).closest("td")),mt=function(I){let i,a;return I.some((c,g)=>{if("transparent"===c.command)return i=0===g?-1:g,a=g===I.length-1?-1:g+c.colspan-1,!0}),{startColumnIndex:i,endColumnIndex:a}}(g);return a||st!==mt.startColumnIndex&&!Le?st===mt.endColumnIndex&&(y={collision:"none flip",my:"top right",at:a||c?"top left":"bottom right"},a&&(y.offset="-1 0")):y={collision:"none flip",my:"top left",at:c?"top right":"bottom left"},y&&{position:y,maxWidth:Le?D-2:void 0}}_shiftValidationMessageIfNeed(i,a){const c=this._revertTooltip&&this._revertTooltip.$content();if(!c)return;const g=i.offset(),y=c.offset();if(g.top===y.top&&g.left+(0,k.RG)(i)>y.left){const D=(0,k.RG)(c)+2;i.css("left",y.left<a.offset().left?-D:D)}}_getRevertTooltipsSelector(){return`.dx-editor-cell .${this.addWidgetPrefix("revert-tooltip")}`}_getValidationMessagesSelector(){const i=this.addWidgetPrefix("invalid-message");return`.dx-editor-cell .${i}, .dx-cell-modified .${i}`}loseFocus(i){i||this._validatingController.setValidator(null),super.loseFocus()}updateCellState(i,a,c){var g;const y=i?.closest(this._getFocusCellSelector()),D=null!=y&&y.is("td")?y:null,Y=y?.closest(".dx-row").data("options"),xe=Y?this._editingController.getChangeByKey(Y.key):null,Le=D&&this._columnsController.getVisibleColumns()[D.index()],st=void 0!==(null==xe||null===(g=xe.data)||void 0===g?void 0:g[Le?.name])&&!this._editingController.isSaving(),mt=[];if(this._editingController.getEditMode()===Ag&&("invalid"===a?.status||st?(this._showRevertButton(y),mt.push("dxRevertButton")):this._revertTooltip&&this._revertTooltip.$element().remove()),a&&"invalid"===a.status&&D&&Le&&a&&a.brokenRules){const wn=[];a.brokenRules.forEach(Kn=>{Kn.message&&wn.push(Kn.message)}),wn.length&&(this._showValidationMessage(y,wn,Le.alignment||"left"),mt.push("dxInvalidMessage"))}this._updateAriaValidationAttributes(y,mt),!c&&this._rowsView.element()&&this._rowsView.updateFreeSpaceRowHeight()}_updateAriaValidationAttributes(i,a){if(0===a.length)return;const c=this._editingController.getEditMode();if([Ag,mv,hE].includes(c)){const y=this._getCurrentFocusElement(i);y.attr("aria-labelledby",a.join(" ")),y.attr("aria-invalid",!0)}}_getCurrentFocusElement(i){return this._editingController.isEditing()?i.find(Uh).first():i}focus(i,a){if(!arguments.length)return super.focus();if(this._hideValidationMessage(),null!=i&&i.hasClass("dx-row")||null!=i&&i.hasClass("dx-master-detail-cell"))return super.focus(i,a);const c=i?.closest(this._getFocusCellSelector()),g=c&&(c.data("dxValidator")||i.find(`.${this.addWidgetPrefix("validator")}`).eq(0).data("dxValidator")),y=c&&c.closest(".dx-row").data("options"),D=y?this._editingController.getChangeByKey(y.key):null;let Y;if(g){this._validatingController.setValidator(g);const xe=g.option("adapter").getValue();if(Tf(xe,y)||this._validatingController._rowIsValidated(D))return this._editingController.waitForDeferredOperations().done(()=>{this._rowsView.isElementInside(i)&&(0,ye.z7)(this._validatingController.validateCell(g)).done(st=>{Y=st;const{column:mt}=Y.validator.option("dataGetter")();D&&mt&&!this._validatingController.isCurrentValidatorProcessing({rowKey:D.key,columnIndex:mt.index})||(!(0,Yr.Ft)((0,Yr.ss)())&&"invalid"===Y.status&&(a=!0),this.updateCellState(i,Y,a),super.focus.call(this,i,a))})}),super.focus(i,a)}return this.updateCellState(i,Y,a),super.focus(i,a)}getEditorInstance(i){const a=i.find(".dx-texteditor").eq(0);return Ot.getWidgetInstance(a)}},data:I=>class extends I{_getValidationStatus(i){return(Np(i)?i.status:i)||"valid"}_isCellChanged(i,a,c,g,y){var D,Y;const xe=null===(D=i.cells)||void 0===D?void 0:D[g],Le=this._getValidationStatus({status:xe?.validationStatus}),st=this._validatingController.getCellValidationResult({rowKey:i.key,columnIndex:g}),mt=this._validatingController._getValidationData(i.key),on=this._getValidationStatus(st),wn=JSON.stringify(a.modifiedValues)!==JSON.stringify(i.modifiedValues),Kn=Le!==on&&wn,Ai=(0,T.A)(xe?.cellElement).hasClass(this.addWidgetPrefix("invalid")),no=null==xe||null===(Y=xe.column.validationRules)||void 0===Y?void 0:Y.length;return!!(i.isEditing!==a.isEditing&&no||Kn||mt.isValid&&Ai)||super._isCellChanged.apply(this,arguments)}}},views:{rowsView:I=>class extends I{updateFreeSpaceRowHeight(i){const a=this;let c,g,y;const D=a.element(),Y=D&&D.find(`.${a.addWidgetPrefix("invalid-message")} .dx-overlay-content`);if(super.updateFreeSpaceRowHeight(i),Y&&Y.length&&(c=a._getRowElements(),y=a._getFreeSpaceRowElements(i),g=y.first(),g&&1===c.length&&(!g.is(":visible")||(0,k.P$)(Y)>(0,k.P$)(g))))return y.show(),(0,k.k$)(y,(0,k.P$)(Y)),!0}_formItemPrepared(i,a){super._formItemPrepared.apply(this,arguments),(0,b.OX)(()=>{const c=a.find(".dx-widget").first();c.length&&!c.children().length||this._validatingController.createValidator(i,c)})}_cellPrepared(i,a){this._editingController.isFormOrPopupEditMode()||this._validatingController.createValidator(a,i),super._cellPrepared.apply(this,arguments)}_restoreErrorRow(i){this._editingController&&this._editingController.hasChanges()&&this._getRowElements(i).each((a,c)=>{const g=(0,T.A)(c).data("options");if(g){const y=this._editingController.getChangeByKey(g.key);y&&this._editingController._showErrorRow(y)}})}}}}});const vv="scrolling.legacyMode",Cv=I=>I.option("scrolling.loadTwoPagesOnStart")||I._controller.isVirtual()||I._controller.getViewportItemIndex()>0,Lp=I=>I._cache.length?I._cache[0].pageIndex:-1,Mg=I=>I._cache.length?I._cache[I._cache.length-1].pageIndex:-1,Lm=(I,i,a)=>{I._isChangedFiring=!0,i(a),I._isChangedFiring=!1},Hy=(I,i,a)=>{if(I._isDelayChanged)return I._isDelayChanged=!1,Lm(I,i,a),!0},Vp=(I,i)=>{const a=I.option("scrolling.preloadEnabled");let c=(I=>{const i=I._dataOptions.pageSize();if(I.option("scrolling.preventPreload"))return 0;let c=I._controller.viewportSize();if(I._controller.isVirtualMode()&&I.option("scrolling.removeInvisiblePages")){c=0;const g=I._controller.viewportSize()*I._controller.viewportItemSize();let y=I._controller.getContentOffset();const D=I._controller.getViewportPosition(),Y=I._controller.virtualItemsCount(),xe=I._dataOptions.totalItemsCount();for(let Le=Y.begin;Le<xe&&!(y>=D+g);Le++)y+=I._controller.getItemSizes()[Le]||I._controller.viewportItemSize(),y>=D&&c++}return i&&c>0?Math.ceil(c/i):1})(I);const g=I._controller.isAppendMode();return c&&(i?c=a?1:0:(a&&c++,(g||!Cv(I))&&c--)),c},Uy=(I,i,a,c,g)=>{const y=I._dataOptions,D=y.items().slice();let Y=(0,w.Gv)(a)?a:void 0;const xe="prepend"===a,Le=y.viewportItems();a&&(0,w.Kg)(a)&&!I._isDelayChanged&&(Y={changeType:a,items:D},g&&(Y.removeCount=g.itemsCount,Y.removeCount&&y.correctCount&&(Y.removeCount=y.correctCount(Le,Y.removeCount,xe))));let st=g?g.itemsLength:0;st&&y.correctCount&&(st=y.correctCount(Le,st,xe)),"append"===a?(Le.push.apply(Le,D),g&&Le.splice(0,st)):xe?(Le.unshift.apply(Le,D),g&&Le.splice(-st)):I._dataOptions.viewportItems(D),y.updateLoading(),I._lastPageIndex=I.pageIndex(),I._isDelayChanged=c,c||Lm(I,i,Y)};class If{constructor(i,a){this._dataOptions=a,this._controller=i,this._pageIndex=this._lastPageIndex=a.pageIndex(),this._cache=[],this._loadingPageIndexes={}}option(){return this._controller.option.apply(this._controller,arguments)}viewportItemIndexChanged(i){const a=this._dataOptions.pageSize(),c=this._dataOptions.pageCount(),g=this._controller.isVirtualMode(),y=this._controller.isAppendMode(),D=this._dataOptions.totalItemsCount();let Y;if(a&&(g||y)&&D>=0){const xe=this._controller.viewportSize();if(xe&&i+xe>=D&&!this._controller.isVirtual())if(this._dataOptions.hasKnownLastPage()){Y=c-1;const Le=D%a;Y>0&&Le>0&&Le<xe&&Y--}else Y=c;else{Y=Math.floor(i/a);const Le=c-1;Y=Math.max(Y,0),Y=Math.min(Y,Le)}return this.pageIndex(Y),this.load()}}pageIndex(i){const a=this._controller.isVirtualMode(),c=this._controller.isAppendMode();return!1!==this.option(vv)&&(a||c)?(void 0!==i&&(this._pageIndex=i),this._pageIndex):this._dataOptions.pageIndex(i)}beginPageIndex(i){let a=Lp(this);return a<0&&(a=void 0!==i?i:this.pageIndex()),a}endPageIndex(){const i=Mg(this);return i>0?i:this._lastPageIndex}pageSize(){return this._dataOptions.pageSize()}load(){const i=this._dataOptions;let a;const c=this._controller.isVirtualMode(),g=this._controller.isAppendMode();if(!1!==this.option(vv)&&(c||g)){const y=(I=>{let i=-1;const a=Lp(I),c=I._dataOptions;return a<0?i=I._pageIndex:I._cache[I._pageIndex-a]?a>=0&&I._controller.viewportSize()>=0&&(a>0&&(Mg(I)+1===c.pageCount()&&I._cache.length<Vp(I)+1||I._pageIndex===a&&Vp(I,!0))&&(i=a-1),i<0&&a+I._cache.length<=I._pageIndex+Vp(I)&&(i=a+I._cache.length)):i=I._pageIndex,I._loadingPageIndexes[i]&&(i=-1),i})(this);if(y>=0){const D=((I,i)=>{const a=I._dataOptions;if(i===I.pageIndex()||!a.isLoading()&&i<a.pageCount()||!a.hasKnownLastPage()&&i===a.pageCount())return a.pageIndex(i),I._loadingPageIndexes[i]=!0,(0,ye.z7)(a.load()).always(()=>{I._loadingPageIndexes[i]=!1})})(this,y);D&&(a=new ye.cY,D.done(()=>{const Y=this._delayDeferred;Y?Y.done(a.resolve).fail(a.reject):a.resolve()}).fail(a.reject),i.updateLoading())}}else a=i.load();return!a&&this._lastPageIndex!==this.pageIndex()&&this._dataOptions.onChanged({changeType:"pageIndex"}),a||(new ye.cY).resolve()}loadIfNeed(){const i=this._controller.isVirtualMode(),a=this._controller.isAppendMode();if((i||a)&&!this._dataOptions.isLoading()&&(!this._isChangedFiring||this._controller.isVirtual())){const c=this._controller.getViewportPosition();c>0?this._controller._setViewportPositionCore(c):this.load()}}handleDataChanged(i,a){const c=this._dataOptions;let y,D,g=this._cache.length;const Y=this._controller.isVirtualMode(),xe=this._controller.isAppendMode();if(a&&a.changes)Lm(this,i,a);else if(!1!==this.option(vv)&&(Y||xe)){const Le=Lp(this);if(Le>=0&&(Y&&Le+this._cache.length!==c.pageIndex()&&Le-1!==c.pageIndex()&&(g=0,this._cache=[]),xe))if(0===c.pageIndex())this._cache=[];else if(c.pageIndex()<Mg(this))return void Lm(this,i,{changeType:"append",items:[]});const st={pageIndex:c.pageIndex(),itemsLength:c.items(!0).length,itemsCount:this.itemsCount(!0)};let mt;this.option("scrolling.removeInvisiblePages")&&Y?D=this._cache.length>Math.max(Vp(this)+(this.option("scrolling.preloadEnabled")?1:0),2):Hy(this,i,{isDelayed:!0}),Le===c.pageIndex()+1?(D&&(mt=this._cache.pop()),y="prepend",this._cache.unshift(st)):(D&&(mt=this._cache.shift()),y="append",this._cache.push(st));const on=Y&&0===g&&Cv(this);Uy(this,i,this._cache.length>1?y:void 0,on,mt),this._delayDeferred=this.load().done(()=>{Hy(this,i)&&this.load()})}else Uy(this,i,a)}getDelayDeferred(){return this._delayDeferred}itemsCount(i){let a=0;const c=this._controller.isVirtualMode();return!i&&c?this._cache.forEach(g=>{a+=g.itemsCount}):a=this._dataOptions.itemsCount(),a}virtualItemsCount(){let i=Lp(this);i<0&&(i=this._dataOptions.pageIndex());const a=i*this._dataOptions.pageSize(),c=this._cache.length*this._dataOptions.pageSize();return{begin:a,end:Math.max(0,this._dataOptions.totalItemsCount()-c-a)}}reset(){this._loadingPageIndexes={},this._cache=[]}}const Xh="scrolling.legacyMode",yv=I=>"virtual"===I.option("scrolling.mode")||I._isVirtual;function Gy(I,i,a){let c;const g=[],y=[],D=[];function Y(mt){const on=mt.element?mt.$element():mt,wn=Id.A.offset(on);return wn?mt.scrollTop()-(wn.top-I.offset().top):I.offset().top}a=a||I;const xe={on(mt,on,wn){mt.on("scroll",wn)},off(mt,on,wn){mt.off("scroll",wn)}};function Le(mt){const on="#document"===mt.get(0).nodeName,wn=mt.get(0).nodeType===(0,Ye.zk)().Node.ELEMENT_NODE;let Kn=mt.data("dxScrollable"),Ai=xe;if(!Kn&&(Kn=on&&(0,T.A)((0,Ye.zk)())||wn&&"auto"===mt.css("overflowY")&&mt,Ai=P.A,!Kn))return;const no=function(Yo){return function(){let ps=Yo.scrollTop()-Y(Yo);ps=ps>0?ps:0,i(ps)}}(Kn);Ai.on(Kn,"scroll",no),y.push(Yo=>{const ps=Y(Kn);Yo-ps>=0&&Kn[Kn.scrollTo?"scrollTo":"scrollTop"](Yo+ps)}),g.push(Kn),D.push(()=>{Ai.off(Kn,"scroll",no)})}const st=mt=>(0,T.A)(mt.get(0).parentNode??mt.get(0).host);for(c=a.parent();c.length;c=st(c))Le(c);return{scrollTo(mt){(0,e.__)(y,(on,wn)=>{wn(mt)})},dispose(){(0,e.__)(D,(mt,on)=>{on()})}}}class Vm{constructor(i,a,c){this._dataOptions=a,this.component=i,this._viewportSize=!1===i.option(Xh)?15:0,this._viewportItemSize=20,this._viewportItemIndex=0,this._position=0,this._isScrollingBack=!1,this._contentSize=0,this._itemSizes={},this._sizeRatio=1,this._isVirtual=c,this.positionChanged=(0,fe.A)(),this._dataLoader=new If(this,this._dataOptions)}getItemSizes(){return this._itemSizes}option(i,a){return this.component.option.apply(this.component,arguments)}isVirtual(){return this._isVirtual}virtualItemsCount(){if(yv(this)){const i=this._dataOptions,a=i.totalItemsCount();if(!1===this.option(Xh)&&-1!==a){const c=this.getViewportParams(),g=i.loadedOffset(),y=i.loadedItemCount(),D=Math.max(c.skip,g),Y=Math.min(c.take,y);return{begin:D,end:Math.max(a-(D+Y),0)}}return this._dataLoader.virtualItemsCount.apply(this._dataLoader,arguments)}}getScrollingTimeout(){const i=this.option("scrolling.renderAsync");let a=0;return(0,w.O9)(i)?i&&(a=this.option("scrolling.timeout")??0):(a=Math.min(this.option("scrolling.timeout")||0,this._dataOptions.changingDuration()),a<this.option("scrolling.renderingThreshold")&&(a=this.option("scrolling.minTimeout")||0)),a}setViewportPosition(i){const a=new ye.cY,c=this.getScrollingTimeout();return clearTimeout(this._scrollTimeoutID),c>0?this._scrollTimeoutID=setTimeout(()=>{this._setViewportPositionCore(i),a.resolve()},c):(this._setViewportPositionCore(i),a.resolve()),a.promise()}getViewportPosition(){return this._position}getItemIndexByPosition(i,a,c){i=i??this._position;const g=this.getItemSize();let y=0,D=0;const Y=Object.keys(this._itemSizes).concat(-1);for(let xe=0;xe<Y.length&&y<i;xe++){const Le=parseInt(Y[xe]);let st=(i-y)/g;if(Le<0||D+st<Le){D+=st,this._sizeRatio<1&&(0,w.O9)(a)&&(D=a+c/this._viewportItemSize);break}st=Le-D,y+=st*g,D+=st;const mt=this._itemSizes[Le];y+=mt,D+=y<i?1:(i-y+mt)/mt}return Math.round(50*D)/50}isScrollingBack(){return this._isScrollingBack}_setViewportPositionCore(i){const a=this._position||0;this._position=i,a!==this._position&&(this._isScrollingBack=this._position<a);const c=this.getItemIndexByPosition(),g=this.setViewportItemIndex(c);return this.positionChanged.fire(),g}setContentItemSizes(i){const a=this.virtualItemsCount();if(this._contentSize=i.reduce((c,g)=>c+g,0),a){i.forEach((y,D)=>{this._itemSizes[a.begin+D]=y});const c=(a.begin+a.end+this.itemsCount())*this._viewportItemSize,g=Ot.getContentHeightLimit(Ce.A);this._sizeRatio=c>g?g/c:1}}getItemSize(){return this._viewportItemSize*this._sizeRatio}getItemOffset(i,a){const c=this.virtualItemsCount();let g=i;if(!c)return 0;let y=0;const D=this._dataOptions.totalItemsCount();return Object.keys(this._itemSizes).forEach(Y=>{g&&(a?Y>=D-i:Y<i)&&(y+=this._itemSizes[Y],g--)}),Math.floor(y+g*this._viewportItemSize*this._sizeRatio)}getContentOffset(i){const a="end"===i,c=this.virtualItemsCount();return c?this.getItemOffset(a?c.end:c.begin,a):0}getVirtualContentSize(){return this.virtualItemsCount()?this.getContentOffset("begin")+this.getContentOffset("end")+this._contentSize:0}getViewportItemIndex(){return this._viewportItemIndex}setViewportItemIndex(i){if(this._viewportItemIndex=i,!1!==this.option(Xh))return this._dataLoader.viewportItemIndexChanged.apply(this._dataLoader,arguments)}viewportItemSize(i){return void 0!==i&&(this._viewportItemSize=i),this._viewportItemSize}viewportSize(i){return void 0!==i&&(this._viewportSize=i),this._viewportSize}viewportHeight(i,a){const c=a??this._position,g=this.getItemIndexByPosition(c),y=this.getItemIndexByPosition(c+i,g,i);this.viewportSize(Math.ceil(y-g)),!(0,w.O9)(a)&&this._viewportItemIndex!==g&&this._setViewportPositionCore(c)}reset(i){this._dataLoader.reset(),i||(this._itemSizes={})}subscribeToWindowScrollEvents(i){this._windowScroll=this._windowScroll||Gy(i,a=>{this.viewportItemSize()&&this.setViewportPosition(a)})}dispose(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null}scrollTo(i){this._windowScroll&&this._windowScroll.scrollTo(i)}isVirtualMode(){return yv(this)}isAppendMode(){return"infinite"===(I=this).option("scrolling.mode")&&!I._isVirtual;var I}getViewportParams(){const i="virtual"===this.option("scrolling.mode"),a=this._dataOptions.totalItemsCount(),g=this._dataOptions.hasKnownLastPage()&&this._viewportItemIndex>a?a:this._viewportItemIndex,y=this._viewportSize+g,D=this.option("scrolling.prerenderedRowChunkSize")||1,Y=this.isScrollingBack(),xe=this.option("scrolling.prerenderedRowCount")??1,st=Y?0:xe,mt=Math.floor(Math.max(0,g-(Y?xe:0))/D)*D;let on=Math.ceil((y+st-mt)/D)*D;if(i){const wn=Math.max(0,a-mt);on=Math.min(on,wn)}return{skip:mt,take:on}}itemsCount(){let i=0;return i=this.option(Xh)?this._dataLoader.itemsCount.apply(this._dataLoader,arguments):this._dataOptions.itemsCount(),i}pageIndex(){return this._dataLoader.pageIndex(...arguments)}beginPageIndex(){return this._dataLoader.beginPageIndex(...arguments)}endPageIndex(){return this._dataLoader.endPageIndex(...arguments)}pageSize(){return this._dataLoader.pageSize(...arguments)}load(){return this._dataLoader.load(...arguments)}loadIfNeed(){return this._dataLoader.loadIfNeed(...arguments)}handleDataChanged(){return this._dataLoader.handleDataChanged(...arguments)}getDelayDeferred(){return this._dataLoader.getDelayDeferred()}}const bv="dx-freespace-row",er="scrolling.legacyMode",_E=["beginPageIndex","endPageIndex","pageIndex"],kl=function(I){return"virtual"===I.option("scrolling.mode")},hl=function(I){return"infinite"===I.option("scrolling.mode")},Zl=function(I){return kl(I)||hl(I)},Mf=function(I,i,a,c){for(let g=0;g<i+1;g++){const y=I[a?I.length-1-g:g];y&&!c(y,g===i,a)&&i++}return i},dh=function(I,i){return"data"===I.rowType&&!I.isNewRow||"group"===I.rowType&&i.isGroupItemCountable(I.data)},uh=function(I){const i=I._virtualScrollController.beginPageIndex(-1);kl(I)&&(i<0||I.viewportSize()>=0&&I.getViewportItemIndex()>=0&&(i*I.pageSize()>I.getViewportItemIndex()||i*I.pageSize()+I.itemsCount()<I.getViewportItemIndex()+I.viewportSize())&&I._dataSource.isLoading()?I._isLoading||(I._isLoading=!0,I.loadingChanged.fire(!0)):I._isLoading&&(I._isLoading=!1,I.loadingChanged.fire(!1)))},pl=function(I,i,a){if(!1===I.option(er)&&_E.includes(i)){const g=I._dataSource;return g.pageIndex.apply(g,a)}const c=I._virtualScrollController;return c[i].apply(c,a)},Ov=function(I,i){const a=I.toArray().map(g=>(0,T.A)(g).parent(`.${i}`).get(0)).filter(g=>g);a.length&&(I=(0,T.A)(a));const c=i===bv?I.length-1:I.length;for(let g=0;g<c;g++)I.eq(g).remove()};Dt.registerModule("virtualScrolling",{defaultOptions:()=>({scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,prerenderedRowChunkSize:1,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard",loadTwoPagesOnStart:!1,legacyMode:!1,prerenderedRowCount:1}}),extenders:{controllers:{data:I=>class extends I{dispose(){const i=this._rowsScrollController;i&&i.dispose(),super.dispose.apply(this,arguments)}_refreshDataSource(){const i=super._refreshDataSource.apply(this,arguments)||(new ye.cY).resolve().promise();return i.done(this.initVirtualRows.bind(this)),i}_loadDataSource(){if(this._rowsScrollController&&Zl(this)){var i;const{loadPageCount:a}=(0,w.O9)(this._loadViewportParams)?this.getLoadPageParams():{loadPageCount:0};a>=1&&(null===(i=this._dataSource)||void 0===i||i.loadPageCount(a))}return super._loadDataSource.apply(this,arguments)}getRowPageSize(){const i=this.option("scrolling.rowPageSize"),a=this.pageSize();return a&&a<i?a:i}reload(){const i=this._rowsScrollController||this._dataSource,a=i&&i.getItemIndexByPosition(),c=super.reload.apply(this,arguments);return c&&c.done(()=>{if(kl(this)||Ot.isVirtualRowRendering(this)){const y=this.getRowIndexOffset(),D=Math.floor(a)-y,{component:Y}=this,xe=Y.getScrollable&&Y.getScrollable(),Le=this.dataSource().operationTypes().sorting;if(xe&&!Le&&D>=0){var g;const st=Y.getRowElement(D),mt=st&&st[0]&&(0,T.A)(st[0]);let on=mt&&(null===(g=mt.position())||void 0===g?void 0:g.top);const wn=Ce.A.chrome&&Number(Ce.A.version??0)>=91;on&&on>(Ce.A.mozilla||wn?1:0)&&(on=Math.round(on+(0,k.P$)(mt)*(a%1)),xe.scrollTo({y:on}))}}})}initVirtualRows(){const i=Ot.isVirtualRowRendering(this);if(this._allItems=null,this._loadViewportParams=null,"virtual"!==this.option("scrolling.mode")&&!i||!i||!1!==this.option(er)&&!this.option("scrolling.rowPageSize"))return this._visibleItems=null,void(this._rowsScrollController=null);const a=!kl(this)&&this.pageIndex()>=this.pageCount()?this.pageCount()-1:this.pageIndex();this._rowPageIndex=Math.ceil(a*this.pageSize()/this.getRowPageSize()),this._visibleItems=!1===this.option(er)?null:[],this._viewportChanging=!1,this._needUpdateViewportAfterLoading=!1,this._rowsScrollController||(this._rowsScrollController=new Vm(this.component,this._getRowsScrollDataOptions(),!0),this._rowsScrollController.positionChanged.add(()=>{var c;if(!1===this.option(er))return this._viewportChanging=!0,this.loadViewport(),void(this._viewportChanging=!1);null===(c=this._dataSource)||void 0===c||c.setViewportItemIndex(this._rowsScrollController.getViewportItemIndex())})),!1===this.option(er)&&this._updateLoadViewportParams(),this.isLoaded()&&!1!==this.option(er)&&this._rowsScrollController.load()}isViewportChanging(){return this._viewportChanging}_getRowsScrollDataOptions(){const i=this,a=function(c){return dh(c,i._dataSource)};return{pageSize:()=>i.getRowPageSize(),loadedOffset(){var c;return kl(i)&&(null===(c=i._dataSource)||void 0===c?void 0:c.lastLoadOptions().skip)||0},loadedItemCount:()=>i._itemCount,totalItemsCount:()=>Zl(i)?i.totalItemsCount():!1===i.option(er)?i._itemCount:i._items.filter(a).length,hasKnownLastPage:()=>!1!==i.option(er)||i.hasKnownLastPage(),pageIndex:c=>(void 0!==c&&(i._rowPageIndex=c),i._rowPageIndex),isLoading:()=>i.isLoading(),pageCount(){return Math.ceil(this.totalItemsCount()/this.pageSize())||1},load(){i._rowsScrollController.pageIndex()>=this.pageCount()&&(i._rowPageIndex=this.pageCount()-1,i._rowsScrollController.pageIndex(i._rowPageIndex)),(this.items().length||!this.totalItemsCount())&&i._rowsScrollController.handleDataChanged(c=>{(c=c||{}).changeType=c.changeType||"refresh",c.items=c.items||i._visibleItems,i._visibleItems.forEach((g,y)=>{g.rowIndex=y}),i._fireChanged(c)})},updateLoading(){},itemsCount(){return this.items(!0).length},correctCount:(c,g,y)=>Mf(c,g,y,(D,Y,xe)=>D.isNewRow?Y&&!xe:Y&&xe?!D.isNewRow:a(D)),items(c){let g=i._items;if(i.option(er)){const y=i.dataSource(),D=y?.virtualItemsCount(),Y=D?D.begin:0,xe=i.getRowPageSize();let Le=i._rowPageIndex*xe-Y,st=xe;if(Le<0)return[];Le&&(Le=this.correctCount(g,Le),g=g.slice(Le)),st&&(st=this.correctCount(g,st),g=g.slice(0,st))}return c?g.filter(a):g},viewportItems:c=>(c&&!1!==i.option(er)&&(i._visibleItems=c),i._visibleItems),onChanged(){},changingDuration(){const c=i.dataSource();return null!=c&&c.isLoading()&&!1!==i.option(er)?300:c?._renderTime||0}}}_updateItemsCore(i){const a=this.getRowIndexDelta();if(super._updateItemsCore.apply(this,arguments),!1===this.option(er)&&Ot.isVirtualRowRendering(this))return void("update"===i.changeType&&0===i.rowIndices.length&&i.cancelEmptyChanges&&(i.cancel=!0));const c=this._rowsScrollController;if(c){const g=this._visibleItems,y="refresh"===i.changeType||i.isLiveUpdate;if("append"===i.changeType&&i.items&&!i.items.length)return;y||"append"===i.changeType||"prepend"===i.changeType?(i.cancel=!0,y&&c.reset(!0),c.load()):("update"===i.changeType?i.rowIndices.forEach((D,Y)=>{const xe=i.changeTypes[Y],Le=i.items[Y];"update"===xe?g[D]=Le:"insert"===xe?g.splice(D,0,Le):"remove"===xe&&g.splice(D,1)}):(g.forEach((D,Y)=>{g[Y]=this._items[Y+a]||g[Y]}),i.items=g),function(I){I.forEach((i,a)=>{i.rowIndex=a})}(g))}}_updateLoadViewportParams(){const i=this._rowsScrollController.getViewportParams(),a=this.pageSize();if(i&&!Zl(this)&&a>0){const c=this.pageIndex()*a;i.skip+=c}this._loadViewportParams=i}_processItems(){const i=super._processItems.apply(this,arguments);if(!1===this.option(er)){const a=this._dataSource;let g,y,D,c=a?.lastLoadOptions().skip??0,Y=!1,xe=[];i.forEach(Le=>{const{rowType:st}=Le,mt=dh(Le,a),on="group"===st&&(g||mt||"group"!==y&&c>0),wn="data"===st&&mt&&(g||"group"!==y);!Le.isNewRow&&(0,w.O9)(g)&&(on||wn)&&!(D&&!Y)&&c++,(on||wn)&&(Y=!0),Le.isNewRow?xe.push(Le):(xe.forEach(Kn=>{Kn.loadIndex=c}),xe=[]),Le.loadIndex=c,g=mt,y=st,D=Le.isNewRow}),xe.forEach(Le=>{Le.loadIndex=c})}return i}_afterProcessItems(i){if(this._itemCount=i.filter(a=>dh(a,this._dataSource)).length,(0,w.O9)(this._loadViewportParams)){this._updateLoadViewportParams();let a=i;if(this._allItems=i,i.length){const{skipForCurrentPage:c}=this.getLoadPageParams(!0),g=i[0].loadIndex+c,{take:y}=this._loadViewportParams;a=i.filter(D=>D.loadIndex>=g&&(D.loadIndex<g+y||D.isNewRow&&D.loadIndex===g&&0===y))}return a}return super._afterProcessItems.apply(this,arguments)}_applyChange(i){const a=this,{items:c}=i,{changeType:g}=i;let{removeCount:y}=i;switch(y&&(y=Mf(a._items,y,"prepend"===g,(Y,xe)=>"data"===Y.rowType&&!Y.isNewRow||"group"===Y.rowType&&(a._dataSource.isGroupItemCountable(Y.data)||xe)),i.removeCount=y),g){case"prepend":a._items.unshift.apply(a._items,c),y&&a._items.splice(-y);break;case"append":a._items.push.apply(a._items,c),y&&a._items.splice(0,y);break;default:super._applyChange(i)}}items(i){return i?this._allItems||this._items:this._visibleItems||this._items}getRowIndexDelta(){let i=0;if(this.option(er)){const a=this._visibleItems;a&&a[0]&&(i=this._items.indexOf(a[0]))}return i<0?0:i}getRowIndexOffset(i,a){let c=0;const g=this.dataSource(),y=this._rowsScrollController,D=!1===this.option(er),Y=Zl(this);if(y&&!i)if(D&&(0,w.O9)(this._loadViewportParams)){const{skipForCurrentPage:Le,pageIndex:st}=this.getLoadPageParams(!0),mt=this.items(!0);if(c=Y?st*this.pageSize():0,mt.length){const on=mt[0].loadIndex;c+=mt.filter(wn=>wn.loadIndex<on+Le).length}}else c=y.beginPageIndex()*y.pageSize();else if(Y&&D&&g){var xe;const Le=g.lastLoadOptions();c=a&&null!==(xe=Le.skips)&&void 0!==xe&&xe.length?Le.skips.reduce((st,mt)=>st+mt,0):Le.skip??0}else kl(this)&&g&&(c=g.beginPageIndex()*g.pageSize());return c}getDataIndex(){return!1===this.option(er)?this.getRowIndexOffset(!0,!0):super.getDataIndex.apply(this,arguments)}viewportSize(){const i=this._rowsScrollController,a=this._dataSource,c=i?.viewportSize.apply(i,arguments);return!1===this.option(er)?c:a?.viewportSize.apply(a,arguments)}viewportHeight(i,a){var c;null===(c=this._rowsScrollController)||void 0===c||c.viewportHeight(i,a)}viewportItemSize(){const i=this._rowsScrollController,a=this._dataSource,c=i?.viewportItemSize.apply(i,arguments);return!1===this.option(er)?c:a?.viewportItemSize.apply(a,arguments)}setViewportPosition(){const i=this._rowsScrollController,a=this._dataSource;this._isPaging=!1,i?i.setViewportPosition.apply(i,arguments):a?.setViewportPosition.apply(a,arguments)}setContentItemSizes(i){const a=this._rowsScrollController,c=this._dataSource,g=a?.setContentItemSizes(i);return!1===this.option(er)?g:c?.setContentItemSizes(i)}getPreloadedRowCount(){const i=this.option("scrolling.preloadedRowCount"),a=this.option("scrolling.preloadEnabled");if((0,w.O9)(i))return i;const c=this.viewportSize();return a?2*c:c}getLoadPageParams(i){var a,c;const g=this.pageSize(),y=this._loadViewportParams,D=null===(a=this._dataSource)||void 0===a?void 0:a.lastLoadOptions(),Y=D?.pageIndex||0,xe=D?.take||0,Le=this._rowsScrollController.isScrollingBack(),st=Le?this.getPreloadedRowCount():0,mt=Le?0:this.getPreloadedRowCount(),on=(null===(c=this._dataSource)||void 0===c?void 0:c.totalCountCorrection())||0,wn=Math.max(0,y.skip-st),Kn=i?Y:Math.floor(g?wn/g:0),no=y.skip-Kn*g,Ls=Math.ceil(g?(i?xe:y.take+no+mt-on)/g:0);return{pageIndex:Kn,loadPageCount:Math.max(1,Ls),skipForCurrentPage:Math.max(0,no)}}_updateVisiblePageIndex(i){if(!this._rowsScrollController)return;if((0,w.O9)(i))return this._silentOption("paging.pageIndex",i),void this.pageChanged.fire();const a=this._rowsScrollController.getViewportItemIndex(),c=Math.floor(a/this.pageSize());this.pageIndex()!==c&&(this._silentOption("paging.pageIndex",c),this.updateItems({changeType:"pageIndex"}))}_getChangedLoadParams(){const i=this.getLoadPageParams(!0),{pageIndex:a,loadPageCount:c}=this.getLoadPageParams(),g=this._pageIndexIsValid(a);let y=null;return!this._isLoading&&g&&(a!==i.pageIndex||c!==i.loadPageCount)&&(y={pageIndex:a,loadPageCount:c}),y}_pageIndexIsValid(i){let a=!0;return(hl(this)&&this.hasKnownLastPage()||kl(this))&&(a=i*this.pageSize()<this.totalItemsCount()),a}_loadItems(i,a){const c=Zl(this),g=this._dataSource,y=this._getChangedLoadParams(),D=g?.loadPageCount()??0,Y=this.pageSize()*D,xe=g?.pageIndex()??0,Le=y?.pageIndex===xe,st=hl(this)&&this.totalItemsCount()<Y,mt="repaint"===this.option("editing.refreshMode");let wn=!1;if(!g||c&&i&&(mt&&a||y?.pageIndex>xe||Le&&st))return wn;if(c&&this._isLoading&&(this._needUpdateViewportAfterLoading=!0),c&&y){wn=!0,g.pageIndex(y.pageIndex),g.loadPageCount(y.loadPageCount),this._repaintChangesOnly=!0,this._needUpdateDimensions=!0;const Kn=this._viewportChanging;this.load().always(()=>{this._repaintChangesOnly=void 0,this._needUpdateDimensions=void 0}).done(()=>{const Ai=this.pageCount()>0&&this.pageIndex()===this.pageCount()-1;(Kn||Ai)&&this._updateVisiblePageIndex(),this._needUpdateViewportAfterLoading&&(this._needUpdateViewportAfterLoading=!1,this.loadViewport({checkLoadedParamsOnly:!0}))})}return wn}loadViewport(i){const{checkLoadedParamsOnly:a,checkLoading:c,viewportIsNotFilled:g}=i??{};if(Zl(this)||Ot.isVirtualRowRendering(this)){var D;this._updateLoadViewportParams();const xe=this._loadItems(c,!g),Le=null===(D=this._dataSource)||void 0===D?void 0:D.isCustomLoading();if(!(xe||c&&!Le&&this._isLoading||a)){var Y;const on=!(null!==(Y=this._editingController)&&void 0!==Y&&null!==(Y=Y.getChanges())&&void 0!==Y&&Y.length);this.updateItems({repaintChangesOnly:!0,needUpdateDimensions:!0,useProcessedItemsCache:on,cancelEmptyChanges:!0})}}}updateViewport(){var i;const a=this.viewportSize(),c=this.items().length,g=a>c,y=(null===(i=this._loadViewportParams)||void 0===i?void 0:i.take)??0,D=this._rowsScrollController,Y=D?.getViewportParams().take;(g||y<Y)&&!this._isPaging&&c&&this.loadViewport({checkLoading:!0,viewportIsNotFilled:g})}loadIfNeed(){if(!1===this.option(er))return;const i=this._rowsScrollController;i&&i.loadIfNeed();const a=this._dataSource;return a&&a.loadIfNeed()}getItemSize(){const i=this._rowsScrollController;if(i)return i.getItemSize.apply(i,arguments);const a=this._dataSource;return a&&a.getItemSize.apply(a,arguments)}getItemSizes(){const i=this._rowsScrollController;if(i)return i.getItemSizes.apply(i,arguments);const a=this._dataSource;return a&&a.getItemSizes.apply(a,arguments)}getContentOffset(){const i=this._rowsScrollController;if(i)return i.getContentOffset.apply(i,arguments);const a=this._dataSource;return a&&a.getContentOffset.apply(a,arguments)}refresh(i){const a=this._dataSource;return a&&i&&i.load&&hl(this)&&a.resetCurrentTotalCount(),super.refresh.apply(this,arguments)}topItemIndex(){var i;return null===(i=this._loadViewportParams)||void 0===i?void 0:i.skip}bottomItemIndex(){const i=this._loadViewportParams;return i&&i.skip+i.take}virtualItemsCount(){const i=this._rowsScrollController;if(i)return i.virtualItemsCount.apply(i,arguments);const a=this._dataSource;return a?.virtualItemsCount.apply(a,arguments)}pageIndex(i){const a=Zl(this),c=this._rowsScrollController;return!1===this.option(er)&&a&&c&&void 0===i?this.option("paging.pageIndex")??0:super.pageIndex.apply(this,arguments)}_fireChanged(i){super._fireChanged.apply(this,arguments);const{operationTypes:a}=i;if(!1===this.option(er)&&Zl(this)&&a){const{fullReload:c,pageIndex:g}=a;i.isDataChanged&&!c&&g&&this._updateVisiblePageIndex(this._dataSource.pageIndex())}}_getPagingOptionValue(i){let a=super._getPagingOptionValue.apply(this,arguments);return!1===this.option(er)&&Zl(this)&&(a=this[i]()),a}isEmpty(){return!1===this.option(er)?!this.items(!0).length:super.isEmpty.apply(this,arguments)}isLastPageLoaded(){let i=!1;if(!1===this.option(er)&&Zl(this)){const{pageIndex:a,loadPageCount:c}=this.getLoadPageParams(!0);i=a+c>=this.pageCount()}else i=super.isLastPageLoaded.apply(this,arguments);return i}reset(){this._itemCount=0,this._allItems=null,super.reset.apply(this,arguments)}_applyFilter(){var i;return null===(i=this._dataSource)||void 0===i||i.loadPageCount(1),super._applyFilter.apply(this,arguments)}getVirtualContentSize(){var i;return null===(i=this._dataSource)||void 0===i?void 0:i.getVirtualContentSize.apply(this._dataSource,arguments)}setViewportItemIndex(){var i;return null===(i=this._dataSource)||void 0===i?void 0:i.setViewportItemIndex.apply(this._dataSource,arguments)}},resizing:I=>class extends I{dispose(){super.dispose.apply(this,arguments),clearTimeout(this._resizeTimeout)}_updateMasterDataGridCore(i){return(0,ye.z7)(super._updateMasterDataGridCore.apply(this,arguments)).done(a=>{const c=kl(i)&&!1===i.option(er);!a&&c&&i.getScrollable()&&i.updateDimensions()})}hasResizeTimeout(){return!!this._resizeTimeout}resize(){let i;if(kl(this)||Ot.isVirtualRowRendering(this)){clearTimeout(this._resizeTimeout),this._resizeTimeout=null;const a=new Date-this._lastTime,c=this.option("scrolling.updateTimeout");this._lastTime&&a<c?(i=new ye.cY,this._resizeTimeout=setTimeout(()=>{this._resizeTimeout=null,super.resize.apply(this).done(i.resolve).fail(i.reject),this._lastTime=new Date},c),this._lastTime=new Date):(i=super.resize.apply(this),this._dataController.isLoaded()&&(this._lastTime=new Date))}else i=super.resize.apply(this);return i}}},views:{rowsView:I=>class extends I{init(){var i;super.init(),this._dataController.pageChanged.add(a=>{const c=this._scrollTop;this.scrollToPage(a??this._dataController.pageIndex()),!1===this.option(er)&&this._scrollTop===c&&this._dataController.updateViewport()}),this._dataController.dataSourceChanged.add(()=>{!this._scrollTop&&this._scrollToCurrentPageOnResize()}),null===(i=this._dataController.stateLoaded)||void 0===i||i.add(()=>{this._scrollToCurrentPageOnResize()}),this._scrollToCurrentPageOnResize()}dispose(){clearTimeout(this._scrollTimeoutID),super.dispose()}_scrollToCurrentPageOnResize(){if(this._dataController.pageIndex()>0){const i=()=>{this.resizeCompleted.remove(i),this.scrollToPage(this._dataController.pageIndex())};this.resizeCompleted.add(i)}}scrollToPage(i){const a=this._dataController?this._dataController.pageSize():0;let c;if(kl(this)||hl(this)){const g=this._dataController.getItemSize(),y=this._dataController.getItemSizes(),D=i*a;c=D*g;for(const Y in y)parseInt(Y)<D&&(c+=y[Y]-g)}else c=0;this.scrollTo({y:c,x:this._scrollLeft})}renderDelayedTemplates(){this.waitAsyncTemplates().done(()=>{this._updateContentPosition(!0)}),super.renderDelayedTemplates.apply(this,arguments)}_renderCore(i){const a=new Date,c=super._renderCore.apply(this,arguments),g=this._dataController._dataSource;if(g&&i){const y=i.items?i.items.length:20,D=this._dataController.viewportSize()||20;g._renderTime=Ot.isVirtualRowRendering(this)&&y>0&&!1!==this.option(er)?(new Date-a)*D/y:new Date-a}return c}_getRowElements(i){const a=super._getRowElements(i);return a&&a.not(".dx-virtual-row")}_removeRowsElements(i,a,c){let g=this._getRowElements(i).toArray();g="append"===c?g.slice(0,a):g.slice(-a),g.map(y=>{const D=(0,T.A)(y);this._errorHandlingController&&this._errorHandlingController.removeErrorRow(D.next()),D.remove()})}_updateContent(i,a){let c;const g=this._findContentElement(),y=a&&a.changeType,D=(0,ye.cY)(),Y=g.children().first();return"append"===y||"prepend"===y?this.waitAsyncTemplates().done(()=>{const xe=this._getBodies(i);1===xe.length?this._getBodies(Y)["append"===y?"append":"prepend"](xe.children()):xe["append"===y?"appendTo":"prependTo"](Y),i.remove(),c=this._getFreeSpaceRowElements(Y),Ov(c,bv),a.removeCount&&this._removeRowsElements(Y,a.removeCount,y),this._restoreErrorRow(Y),D.resolve()}).fail(D.reject):super._updateContent.apply(this,arguments).done(()=>{"update"===y&&this._restoreErrorRow(Y),D.resolve()}).fail(D.reject),D.promise().done(()=>{this._updateBottomLoading()})}_addVirtualRow(i,a,c,g){if(!g)return;let y=this._createEmptyRow("dx-virtual-row",a,g);y=this._wrapRowIfNeed(i,y),this._appendEmptyRow(i,y,c)}_updateContentItemSizes(){const i=this._getRowHeights(),a=this._correctRowHeights(i);this._dataController.setContentItemSizes(a)}_updateViewportSize(i,a){(0,w.O9)(i)||(i=(0,k.P$)(this._hasHeight?this.element():(0,Ye.zk)())),this._dataController.viewportHeight(i,a)}_getRowHeights(){var i,a;const c=null===(i=this._editingController)||void 0===i||null===(a=i.isPopupEditMode)||void 0===a?void 0:a.call(i);let g=this._getRowElements(this._tableElement).toArray();return c&&(g=g.filter(y=>!(0,T.A)(y).hasClass("dx-row-inserted"))),g.map(y=>(0,Me.N)(y).height)}_correctRowHeights(i){const a=this._dataController,c=a._dataSource,g=[],y=a.getVisibleRows();let D=0,Y=!0,xe=-1;for(let Le=0;Le<i.length;Le++){const st=y[Le];(0,w.O9)(st)&&(!1===this.option(er)?(xe>=0&&xe!==st.loadIndex&&(g.push(D),D=0),xe=st.loadIndex):dh(st,c)&&(Y?Y=!1:(g.push(D),D=0)),D+=i[Le])}return D>0&&g.push(D),g}_updateContentPosition(i){if(this._dataController.viewportItemSize(this._rowHeight||20),kl(this)||Ot.isVirtualRowRendering(this)){i||this._updateContentItemSizes();const c=this._dataController.getContentOffset("begin"),g=this._dataController.getContentOffset("end"),y=this.getTableElements(),D=y.children("tbody").children(".dx-virtual-row");Ov(D,"dx-virtual-row"),y.each((Y,xe)=>{const Le=Y>0,st=this._isFixedTableRendering;this._isFixedTableRendering=Le,this._addVirtualRow((0,T.A)(xe),Le,"top",c),this._addVirtualRow((0,T.A)(xe),Le,"bottom",g),this._isFixedTableRendering=st})}}_isTableLinesDisplaysCorrect(i){return i.find(".dx-column-lines").length>0===this.option("showColumnLines")}_isColumnElementsEqual(i,a){let c=i.length===a.length;return c&&(0,e.__)(i,(g,y)=>{if(y.style.width!==a[g].style.width)return c=!1,c}),c}_getCellClasses(i){const a=[],{cssClass:c}=i,g="expand"===i.command;return c&&a.push(c),g&&a.push(this.addWidgetPrefix("group-space")),a}_findBottomLoadPanel(i){const a=i||this.element(),c=a&&a.find(`.${this.addWidgetPrefix("bottom-load-panel")}`);if(c&&c.length)return c}_updateBottomLoading(){const i=this,a=kl(this),c=hl(this),g=!i._dataController.hasKnownLastPage()&&i._dataController.isLoaded()&&(a||c),y=i._findContentElement(),D=i._findBottomLoadPanel(y);g?D||(0,T.A)("<div>").addClass(i.addWidgetPrefix("bottom-load-panel")).append(i._createComponent((0,T.A)("<div>"),Bm.A,{elementAttr:{role:null,"aria-label":null}}).$element()).appendTo(y):D&&D.remove()}_handleScroll(i){const a=!0===this.option(er);(this._scrollTop!==i.scrollOffset.top||i.forceUpdateScrollPosition)&&(this._hasHeight||!a&&0===i.scrollOffset.top)&&this._rowHeight&&(this._scrollTop=i.scrollOffset.top,(kl(this)||"standard"!==this.option("scrolling.rowRenderingMode"))&&!1===this.option(er)&&(this._updateContentItemSizes(),this._updateViewportSize(null,this._scrollTop)),this._dataController.setViewportPosition(i.scrollOffset.top)),super._handleScroll.apply(this,arguments)}_needUpdateRowHeight(i){return super._needUpdateRowHeight.apply(this,arguments)||i>0&&hl(this)&&!Ot.isVirtualRowRendering(this)}_updateRowHeight(){if(super._updateRowHeight.apply(this,arguments),this._rowHeight){this._updateContentPosition();const i=(0,k.P$)(this._hasHeight?this.element():(0,Ye.zk)());!1===this.option(er)?(this._updateViewportSize(i),this._dataController.updateViewport()):this._dataController.viewportSize(Math.ceil(i/this._rowHeight))}}updateFreeSpaceRowHeight(){const i=super.updateFreeSpaceRowHeight.apply(this,arguments);return i&&this._updateContentPosition(),i}setLoading(i,a){const c=this._dataController,g=c.pageIndex()>0&&c.isLoaded()&&!!this._findBottomLoadPanel();!1===this.option(er)&&i&&c.isViewportChanging()||(g&&(i=!1),super.setLoading.call(this,i,a))}throwHeightWarningIfNeed(){void 0!==this._hasHeight&&!this._hasHeight&&Zl(this)&&!this._heightWarningIsThrown&&(this._heightWarningIsThrown=!0,We.A.log("W1025"))}_resizeCore(){const i=this,a=i.element();super._resizeCore(),this.throwHeightWarningIfNeed(),i.component.$element()&&!i._windowScroll&&(0,ed.A1)(a)&&(i._windowScroll=Gy(a,c=>{!i._hasHeight&&i._rowHeight&&i._dataController.setViewportPosition(c)},i.component.$element()),i.on("disposing",()=>{i._windowScroll.dispose()})),!1!==this.option(er)&&i.loadIfNeed()}loadIfNeed(){var i,a;null===(i=this._dataController)||void 0===i||null===(a=i.loadIfNeed)||void 0===a||a.call(i)}_restoreErrorRow(i){var a;!1===this.option(er)&&(null===(a=this._errorHandlingController)||void 0===a||a.removeErrorRow()),super._restoreErrorRow.apply(this,arguments)}}}}}),js.extend(I=>class extends I{init(){super.init.apply(this,arguments),this._items=[],this._totalCount=-1,this._isLoaded=!0,this._loadPageCount=1,this._virtualScrollController=new Vm(this.component,this._getVirtualScrollDataOptions())}dispose(){this._virtualScrollController.dispose(),super.dispose.apply(this,arguments)}_getVirtualScrollDataOptions(){const i=this;return{pageSize:()=>i.pageSize(),totalItemsCount:()=>i.totalItemsCount(),hasKnownLastPage:()=>i.hasKnownLastPage(),pageIndex:a=>i._dataSource.pageIndex(a),isLoading:()=>i._dataSource.isLoading()&&!i.isCustomLoading(),pageCount:()=>i.pageCount(),load:()=>i._dataSource.load(),updateLoading(){uh(i)},itemsCount:()=>i.itemsCount(!0),items:()=>i._dataSource.items(),viewportItems:a=>(a&&(i._items=a),i._items),onChanged(a){i.changed.fire(a)},changingDuration:()=>i.isLoading()?300:i._renderTime||0}}_handleLoadingChanged(i){!1!==this.option(er)?((!kl(this)||this._isLoadingAll)&&(this._isLoading=i,super._handleLoadingChanged.apply(this,arguments)),this._startLoadTime=i?new Date:void 0):super._handleLoadingChanged.apply(this,arguments)}_handleLoadError(){!1!==this.option(er)&&(this._isLoading=!1,this.loadingChanged.fire(!1)),super._handleLoadError.apply(this,arguments)}_handleDataChanged(i){if(!1===this.option(er))return this._items=this._dataSource.items().slice(),this._totalCount=this._dataSourceTotalCount(!0),void super._handleDataChanged.apply(this,arguments);const a=super._handleDataChanged.bind(this);this._virtualScrollController.handleDataChanged(a,i)}_customizeRemoteOperations(i,a){const c=!1===this.option(er);let g=this.option("scrolling.renderAsync");(0,w.O9)(g)||(g=this._renderTime>=this.option("scrolling.renderingThreshold")),(kl(this)||hl(this)&&c)&&!a.reload&&(a.skip||c)&&!g&&(i.delay=void 0),super._customizeRemoteOperations.apply(this,arguments)}items(){return this._items}_dataSourceTotalCount(i){return!1===this.option(er)&&kl(this)&&!i?this._totalCount:super._dataSourceTotalCount()}itemsCount(i){return i||!1===this.option(er)?super.itemsCount():this._virtualScrollController.itemsCount()}load(i){return!1===this.option(er)||i?super.load(i):this._virtualScrollController.load()}isLoading(){return!1===this.option(er)?this._dataSource.isLoading():this._isLoading}isLoaded(){return this._dataSource.isLoaded()&&this._isLoaded}resetPagesCache(i){i||this._virtualScrollController.reset(!0),super.resetPagesCache.apply(this,arguments)}_changeRowExpandCore(){const i=super._changeRowExpandCore.apply(this,arguments);return!1===this.option(er)||(this.resetPagesCache(),uh(this)),i}reload(){this._dataSource.pageIndex(this.pageIndex());const i=this._virtualScrollController;if(!1!==this.option(er)&&i){const a=new ye.cY;return super.reload.apply(this,arguments).done(c=>{const g=i.getDelayDeferred();g?g.done(a.resolve).fail(a.reject):a.resolve(c)}).fail(a.reject),a}return super.reload.apply(this,arguments)}refresh(i,a){if(!1!==this.option(er)){const{storeLoadOptions:c}=i,g=this._dataSource;a.reload?(this._virtualScrollController.reset(),g.items().length=0,this._isLoaded=!1,uh(this),this._isLoaded=!0,hl(this)?(this.pageIndex(0),g.pageIndex(0),c.pageIndex=0,i.pageIndex=0,c.skip=0):(g.pageIndex(this.pageIndex()),g.paginate()&&(i.pageIndex=this.pageIndex(),c.skip=this.pageIndex()*this.pageSize()))):hl(this)&&c.skip&&this._totalCountCorrection<0&&(c.skip+=this._totalCountCorrection)}return super.refresh.apply(this,arguments)}loadPageCount(i){if(!(0,w.O9)(i))return this._loadPageCount;this._loadPageCount=i}_handleDataLoading(i){const a=this.loadPageCount(),c=this.pageSize(),g=!1===this.option(er),{storeLoadOptions:y}=i,D=(0,w.O9)(y.take);i.loadPageCount=a,!i.isCustomLoading&&g&&D&&a>1&&c>0&&(y.take=a*c),super._handleDataLoading.apply(this,arguments)}_loadPageSize(){return super._loadPageSize.apply(this,arguments)*this.loadPageCount()}beginPageIndex(){return pl(this,"beginPageIndex",[...arguments])}endPageIndex(){return pl(this,"endPageIndex",[...arguments])}pageIndex(i){return pl(this,"pageIndex",[...arguments])}virtualItemsCount(){return pl(this,"virtualItemsCount",[...arguments])}getContentOffset(){return pl(this,"getContentOffset",[...arguments])}getVirtualContentSize(){return pl(this,"getVirtualContentSize",[...arguments])}setContentItemSizes(){return pl(this,"setContentItemSizes",[...arguments])}setViewportPosition(){return pl(this,"setViewportPosition",[...arguments])}getViewportItemIndex(){return pl(this,"getViewportItemIndex",[...arguments])}setViewportItemIndex(i){return pl(this,"setViewportItemIndex",[...arguments])}getItemIndexByPosition(){return pl(this,"getItemIndexByPosition",[...arguments])}viewportSize(){return pl(this,"viewportSize",[...arguments])}viewportItemSize(){return pl(this,"viewportItemSize",[...arguments])}getItemSize(){return pl(this,"getItemSize",[...arguments])}getItemSizes(){return pl(this,"getItemSizes",[...arguments])}loadIfNeed(){return pl(this,"loadIfNeed",[...arguments])}});var zy=p(6620),wv=p(6314);const Um={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal",default:"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},Ky={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},Yh="input:not([type='hidden'])",od=["date","datetime","number"],Rf=v.A.format("dxDataGrid-ariaSearchBox");function Hp(I){return"onClick"===I.option("filterRow.applyFilter")}const Gm=function(I){const i=I&&I.children(),a=i&&i.data("dxComponents"),c=a&&a.length&&i.data(a[0]);return c instanceof zy.A?c:null},Dv=function(I,i){let a="",c="";const g=Wm(I,i),y=Ot.getFormatOptionsByColumn(i,"filterRow");return Array.isArray(g)?(a=Ot.formatValue(g[0],y),c=Ot.formatValue(g[1],y),""!==c&&(a+=` - ${c}`)):(0,w.O9)(g)&&(a=Ot.formatValue(g,y)),a};function Wm(I,i){if(i)return Hp(I)&&void 0!==i.bufferedFilterValue?i.bufferedFilterValue:i.filterValue}const vu=function(I,i){if(i)return Hp(I)&&void 0!==i.bufferedSelectedFilterOperation?i.bufferedSelectedFilterOperation:i.selectedFilterOperation},$p=function(I,i,a){const c=I._columnsController.columnOption(i),g=Wm(I,c),y=a.closest(`.${I.addWidgetPrefix("filter-range-overlay")}`).length,D=a.hasClass(I.addWidgetPrefix("filter-range-start"));return g&&Array.isArray(g)&&"between"===vu(I,c)?D?g[0]:g[1]:!y&&function(I,i){return!(i&&od.includes(i.dataType)&&Array.isArray(I))&&void 0!==I}(g,c)?g:null};Dt.registerModule("filterRow",{defaultOptions:()=>({syncLookupFilterValues:!0,filterRow:{visible:!1,showOperationChooser:!0,showAllText:v.A.format("dxDataGrid-filterRowShowAllText"),resetOperationText:v.A.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:v.A.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:v.A.format("dxDataGrid-filterRowOperationEquals"),notEqual:v.A.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:v.A.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:v.A.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:v.A.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:v.A.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:v.A.format("dxDataGrid-filterRowOperationStartsWith"),contains:v.A.format("dxDataGrid-filterRowOperationContains"),notContains:v.A.format("dxDataGrid-filterRowOperationNotContains"),endsWith:v.A.format("dxDataGrid-filterRowOperationEndsWith"),between:v.A.format("dxDataGrid-filterRowOperationBetween"),isBlank:v.A.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:v.A.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:v.A.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:v.A.format("dxDataGrid-filterRowOperationBetweenEndText")}}),controllers:{applyFilter:class OE extends ft.ViewController{init(){this._columnsController=this.getController("columns")}_getHeaderPanel(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel}setHighLight(i,a){Hp(this)&&(i&&i.toggleClass("dx-highlight-outline",a)&&i.closest(".dx-editor-cell").toggleClass("dx-filter-modified",a),this._getHeaderPanel().enableApplyButton(a))}applyFilter(){const i=this._columnsController.getColumns();this._columnsController.beginUpdate();for(let a=0;a<i.length;a++){const c=i[a];void 0!==c.bufferedFilterValue&&(this._columnsController.columnOption(a,"filterValue",c.bufferedFilterValue),c.bufferedFilterValue=void 0),void 0!==c.bufferedSelectedFilterOperation&&(this._columnsController.columnOption(a,"selectedFilterOperation",c.bufferedSelectedFilterOperation),c.bufferedSelectedFilterOperation=void 0)}this._columnsController.endUpdate(),this.removeHighLights()}removeHighLights(){if(Hp(this)){const i=this.getView("columnHeadersView").element();i.find(`.${this.addWidgetPrefix("filter-row")} .dx-highlight-outline`).removeClass("dx-highlight-outline"),i.find(`.${this.addWidgetPrefix("filter-row")} .dx-filter-modified`).removeClass("dx-filter-modified"),this._getHeaderPanel().enableApplyButton(!1)}}setCurrentColumnForFiltering(i){this._currentColumn=i}getCurrentColumnForFiltering(){return this._currentColumn}}},extenders:{controllers:{data:I=>class extends I{skipCalculateColumnFilters(){return!1}_calculateAdditionalFilter(){if(this.skipCalculateColumnFilters())return super._calculateAdditionalFilter();const i=[super._calculateAdditionalFilter()],a=this._columnsController.getVisibleColumns(null,!0),c=this._applyFilterController;return(0,e.__)(a,function(){var g;const y=(null===(g=c.getCurrentColumnForFiltering())||void 0===g?void 0:g.index)===this.index;if(this.allowFiltering&&this.calculateFilterExpression&&(0,w.O9)(this.filterValue)&&!y){const D=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow");i.push(D)}}),Ot.combineFilters(i)}},columnsResizer:I=>class extends I{_startResizing(){const i=this;if(super._startResizing.apply(i,arguments),i.isResizing()){const a=i._columnHeadersView.getFilterRangeOverlayInstance();if(a){const c=a.$element().closest("td").index();(c===i._targetPoint.columnIndex||c===i._targetPoint.columnIndex+1)&&a.$content().hide()}}}_endResizing(){const i=this;let a;if(i.isResizing()){const c=i._columnHeadersView.getFilterRangeOverlayInstance();c&&(a=c.$element().closest("td"),i._columnHeadersView._updateFilterRangeOverlay({width:(0,k.Ot)(a,!0)+1}),c.$content().show())}super._endResizing.apply(i,arguments)}},editing:I=>class extends I{updateFieldValue(i){return i.column.lookup&&(this._needUpdateLookupDataSource=!0),super.updateFieldValue.apply(this,arguments)}_afterSaveEditData(i){var a;return this._needUpdateLookupDataSource&&!i&&(null===(a=this.getView("columnHeadersView"))||void 0===a||a.updateLookupDataSource()),this._needUpdateLookupDataSource=!1,super._afterSaveEditData.apply(this,arguments)}_afterCancelEditData(){return this._needUpdateLookupDataSource=!1,super._afterCancelEditData.apply(this,arguments)}}},views:{columnHeadersView:I=>class extends I{init(){super.init(),this._applyFilterViewController=this.getController("applyFilter")}optionChanged(i){switch(i.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),i.handled=!0;break;case"syncLookupFilterValues":i.value?this.updateLookupDataSource():this.render(),i.handled=!0;break;default:super.optionChanged(i)}}_updateEditorValue(i,a){const c=Gm(a);c&&c.option("value",$p(this,i.index,a))}_columnOptionChanged(i){const a=this,{optionNames:c}=i;let g,y,D,Y;if(Ot.checkChanges(c,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","filterValues","filterType"])&&void 0!==i.columnIndex){const xe=a._columnsController.getVisibleIndex(i.columnIndex),Le=a._columnsController.columnOption(i.columnIndex);if(g=a._getCellElement(a.element().find(`.${a.addWidgetPrefix("filter-row")}`).index(),xe)??(0,T.A)(),y=g.find(".dx-editor-container").first(),c.filterValue||c.bufferedFilterValue){a._updateEditorValue(Le,y);const st=g.find(`.${a.addWidgetPrefix("filter-range-overlay")}`).data("dxOverlay");st&&(D=st.$content().find(".dx-editor-container"),a._updateEditorValue(Le,D.first()),a._updateEditorValue(Le,D.last())),(!st||!st.option("visible"))&&a._updateFilterRangeContent(g,Dv(a,Le))}return void((c.selectedFilterOperation||c.bufferedSelectedFilterOperation)&&xe>=0&&Le&&(Y=g.find(".dx-menu"),Y.length&&(a._updateFilterOperationChooser(Y,Le,y),"between"===vu(a,Le)?a._renderFilterRangeContent(g,Le):y.find(".dx-filter-range-content").length&&(a._renderEditor(y,a._getEditorOptions(y,Le)),a._hideFilterRange()))))}super._columnOptionChanged(i)}_renderCore(){return this._filterRangeOverlayInstance=null,super._renderCore.apply(this,arguments)}_resizeCore(){var i;super._resizeCore.apply(this,arguments),null===(i=this._filterRangeOverlayInstance)||void 0===i||i.repaint()}isFilterRowVisible(){return this._isElementVisible(this.option("filterRow"))}isVisible(){return super.isVisible()||this.isFilterRowVisible()}_initFilterRangeOverlay(i,a){const c=this,g={},y=i.find(".dx-editor-container"),D=c.addWidgetPrefix("filter-range-overlay"),Y=(0,T.A)("<div>").addClass(D).appendTo(i);return c._createComponent(Y,Fm.A,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,hideOnOutsideClick:!0,wrapperAttr:{class:D},animation:!1,position:{my:"top",at:"top",of:y.length&&y||i,offset:"0 -1"},contentTemplate(xe){let Le,st=(0,T.A)("<div>").addClass(`dx-editor-container ${c.addWidgetPrefix("filter-range-start")}`).appendTo(xe);return a=c._columnsController.columnOption(a.index),Le=c._getEditorOptions(st,a),Le.sharedData=g,c._renderEditor(st,Le),P.A.on(st.find(Yh),"keydown",mt=>{let on=i.find("[tabindex]").not(mt.target).first();"tab"===(0,x.YD)(mt)&&mt.shiftKey&&(mt.preventDefault(),c._hideFilterRange(),on.length||(on=i.prev().find("[tabindex]").last()),P.A.trigger(on,"focus"))}),st=(0,T.A)("<div>").addClass(`dx-editor-container ${c.addWidgetPrefix("filter-range-end")}`).appendTo(xe),Le=c._getEditorOptions(st,a),Le.sharedData=g,c._renderEditor(st,Le),P.A.on(st.find(Yh),"keydown",mt=>{"tab"===(0,x.YD)(mt)&&!mt.shiftKey&&(mt.preventDefault(),c._hideFilterRange(),P.A.trigger(i.next().find("[tabindex]").first(),"focus"))}),(0,T.A)(xe).addClass(c.getWidgetContainerClass())},onShown(xe){const Le=xe.component.$content().find(".dx-editor-container").first();P.A.trigger(Le.find(Yh),"focus")},onHidden(){a=c._columnsController.columnOption(a.index),i.find(".dx-menu").parent().addClass("dx-editor-with-menu"),"between"===vu(c,a)&&(c._updateFilterRangeContent(i,Dv(c,a)),c.component.updateDimensions())}})}_updateFilterRangeOverlay(i){const a=this._filterRangeOverlayInstance;a&&a.option(i)}_showFilterRange(i,a){const c=this,g=i.children(`.${c.addWidgetPrefix("filter-range-overlay")}`);let y=g.length&&g.data("dxOverlay");!y&&a&&(y=c._initFilterRangeOverlay(i,a)),y.option("visible")||(c._filterRangeOverlayInstance&&c._filterRangeOverlayInstance.hide(),c._filterRangeOverlayInstance=y,c._updateFilterRangeOverlay({width:(0,k.Ot)(i,!0)+1}),c._filterRangeOverlayInstance&&c._filterRangeOverlayInstance.show())}_hideFilterRange(){const i=this._filterRangeOverlayInstance;i&&i.hide()}getFilterRangeOverlayInstance(){return this._filterRangeOverlayInstance}_createRow(i){const a=super._createRow(i);return"filter"===i.rowType&&(a.addClass(this.addWidgetPrefix("filter-row")),this.option("useLegacyKeyboardNavigation")||P.A.on(a,"keydown",c=>De("filterRow",this,c))),a}_getRows(){const i=super._getRows();return this.isFilterRowVisible()&&i.push({rowType:"filter"}),i}_renderFilterCell(i,a){const c=this,{column:g}=a,y=(0,T.A)(i);c.component.option("showColumnHeaders")&&c.setAria("describedby",g.headerId,y),c.setAria("label",v.A.format("dxDataGrid-ariaFilterCell"),y),y.addClass("dx-editor-cell");const D=(0,T.A)("<div>").appendTo(y),Y=(0,T.A)("<div>").addClass("dx-editor-container").appendTo(D);if("between"===vu(c,g))c._renderFilterRangeContent(y,g);else{const Le=c._getEditorOptions(Y,g);c._renderEditor(Y,Le)}const{alignment:xe}=g;xe&&"center"!==xe&&y.find(Yh).first().css("textAlign",g.alignment),g.filterOperations&&g.filterOperations.length&&c._renderFilterOperationChooser(D,g,Y)}_renderCellContent(i,a){const c=this,{column:g}=a;if("filter"===a.rowType)if(g.command)i.html("&nbsp;");else if(g.allowFiltering)return void c.renderTemplate(i,c._renderFilterCell.bind(c),a).done(()=>{c._updateCell(i,a)});super._renderCellContent.apply(this,arguments)}_getEditorOptions(i,a){const c=this,g={editorOptions:{inputAttr:c._getFilterInputAccessibilityAttributes(a)}},y=(0,C.X)(g,a,{value:$p(c,a.index,i),parentType:"filterRow",showAllText:c.option("filterRow.showAllText"),updateValueTimeout:"onClick"===c.option("filterRow.applyFilter")?0:700,width:null,setValue(D,Y){!function(I,i){const a=""===i.value?null:i.value,c=i.container,g=I._columnsController.columnOption(i.column.index),y=$p(I,g.index,c);if(!(0,w.O9)(y)&&!(0,w.O9)(a))return;I._applyFilterViewController.setHighLight(c,y!==a);const D=Hp(I)?"bufferedFilterValue":"filterValue",Y=function(I,i,a,c){if("between"===vu(I,a)){const g=Wm(I,a);return c.hasClass(I.addWidgetPrefix("filter-range-start"))?[i,Array.isArray(g)?g[1]:void 0]:[Array.isArray(g)?g[0]:g,i]}return i}(I,a,g,c),xe="between"===vu(I,g),Le=i.notFireEvent||xe&&Array.isArray(Y)&&Y.includes(void 0);I._columnsController.columnOption(g.index,D,Y,Le)}(c,{column:a,value:D,container:i,notFireEvent:Y})}});return"between"===vu(c,a)&&(y.placeholder=i.hasClass(c.addWidgetPrefix("filter-range-start"))?c.option("filterRow.betweenStartText"):c.option("filterRow.betweenEndText")),y}_getFilterInputAccessibilityAttributes(i){const a=v.A.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":a,"aria-describedby":i.headerId}:{"aria-label":a}}_renderEditor(i,a){i.empty();const c=(0,T.A)("<div>").appendTo(i),g=this._dataController.dataSource();if(a.lookup&&this.option("syncLookupFilterValues")){this._applyFilterViewController.setCurrentColumnForFiltering(a);const y=this._dataController.getCombinedFilter();this._applyFilterViewController.setCurrentColumnForFiltering(null);const D=Ot.getWrappedLookupDataSource(a,g,y),Y=(0,Oe.A)({},a,{lookup:(0,Oe.A)({},a.lookup,{dataSource:D})});return this._editorFactoryController.createEditor(c,Y)}return this._editorFactoryController.createEditor(c,a)}_renderFilterRangeContent(i,a){const c=this,g=i.find(".dx-editor-container").first();g.empty();const y=(0,T.A)("<div>").addClass("dx-filter-range-content").attr("tabindex",this.option("tabIndex"));P.A.on(y,"focusin",()=>{c._showFilterRange(i,a)}),y.appendTo(g),c._updateFilterRangeContent(i,Dv(c,a))}_updateFilterRangeContent(i,a){const c=i.find(".dx-filter-range-content");c.length&&(""===a?c.html("&nbsp;"):c.text(a))}_updateFilterOperationChooser(i,a,c){const g=this;let y;const D=function(){const xe=wv.A.getInstance(i);xe&&xe.option("focusedElement",null),y&&g._focusEditor(c)},Y=this._editorFactoryController;g._createComponent(i,wv.A,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:`${g.getWidgetContainerClass()} dx-cell-focus-disabled dx-filter-menu`,showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!(a.filterOperations&&a.filterOperations.length),icon:Um[vu(g,a)||"default"],selectable:!1,items:g._getFilterOperationMenuItems(a)}],onItemRendered:xe=>{let{itemElement:Le}=xe;this.setAria("label",Rf,(0,T.A)(Le))},onItemClick(xe){const Le=xe.itemData.name,st=vu(g,a);let mt=!1;const on=Hp(g),wn={};if(!(xe.itemData.items||Le&&Le===st)){if(Le?(wn[on?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=Le,("between"===Le||"between"===st)&&(mt="between"===Le,wn[on?"bufferedFilterValue":"filterValue"]=null)):(wn[on?"bufferedFilterValue":"filterValue"]=null,wn[on?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=a.defaultSelectedFilterOperation||null),g._columnsController.columnOption(a.index,wn),g._applyFilterViewController.setHighLight(c,!0),!Le){const Kn=Gm(c);Kn&&"dxDateBox"===Kn.NAME&&!Kn.option("isValid")&&(Kn.clear(),Kn.option("isValid",!0))}mt?g._showFilterRange(c.closest(".dx-editor-cell"),a):g._focusEditor(c)}},onSubmenuShowing(){y=g._isEditorFocused(c),Y.loseFocus()},onSubmenuHiding(){P.A.trigger(i,"blur"),D()},onContentReady(xe){P.A.on(i,"blur",()=>{xe.component._hideSubmenuAfterTimeout(),D()})},rtlEnabled:g.option("rtlEnabled")})}_isEditorFocused(i){return i.hasClass("dx-focused")||i.parents(".dx-focused").length}_focusEditor(i){this._editorFactoryController.focus(i),P.A.trigger(i.find(Yh),"focus")}_renderFilterOperationChooser(i,a,c){let y;this.option("filterRow.showOperationChooser")&&(i.addClass("dx-editor-with-menu"),y=(0,T.A)("<div>").prependTo(i),this._updateFilterOperationChooser(y,a,c))}_getFilterOperationMenuItems(i){const a=this;let c=[{}];const g=a.option("filterRow"),y=g&&g.operationDescriptions||{};if(i.filterOperations&&i.filterOperations.length){const D=i.filterOperations.filter(Y=>(0,w.O9)(Ky[Y]));c=(0,e.Tj)(D,Y=>{const xe=Ky[Y];return{name:Y,selected:(vu(a,i)||i.defaultFilterOperation)===Y,text:y[xe],icon:Um[Y]}}),c.push({name:null,text:g&&g.resetOperationText,icon:Um.default})}return c}_handleDataChanged(i){var a,c,g,y,D;const Y=null===(a=this._dataController)||void 0===a||null===(c=a.dataSource)||void 0===c?void 0:c.call(a),xe=null==Y||null===(g=Y.lastLoadOptions)||void 0===g?void 0:g.call(Y);var Le;super._handleDataChanged.apply(this,arguments),(null!==(y=i.operationTypes)&&void 0!==y&&y.filtering||null!==(D=i.operationTypes)&&void 0!==D&&D.fullReload)&&this.updateLookupDataSource((null===(Le=i.operationTypes)||void 0===Le?void 0:Le.filtering)||xe?.filter)}updateLookupDataSource(i){if(!this.option("syncLookupFilterValues")||!this.element())return;const a=this._columnsController.getVisibleColumns(),c=this._dataController.dataSource(),g=this._applyFilterViewController,y=this.element().find(`.${this.addWidgetPrefix("filter-row")}`).index();-1!==y&&a.forEach((D,Y)=>{if(!D.lookup||D.calculateCellValue!==D.defaultCalculateCellValue)return;const xe=this._getCellElement(y,Y),Le=Gm(xe?.find(".dx-editor-container"));if(Le){g.setCurrentColumnForFiltering(D);const st=this._dataController.getCombinedFilter()||null;g.setCurrentColumnForFiltering(null);const mt=Le.option("dataSource");if(!i||!(0,b.RL)(mt.__dataGridSourceFilter||null,st)){const wn=Ot.getWrappedLookupDataSource(D,c,st);Le.option("dataSource",wn)}}})}},headerPanel:I=>class extends I{init(){super.init(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")}optionChanged(i){"filterRow"===i.name?(this._invalidate(),i.handled=!0):super.optionChanged(i)}_getToolbarItems(){const i=super._getToolbarItems();return this._prepareFilterItem().concat(i)}_prepareFilterItem(){const i=this,a=[];if(i._isShowApplyFilterButton()){const c=i.option("filterRow.applyFilterText"),xe={widget:"dxButton",options:{icon:"apply-filter",disabled:!i._columnsController.getColumns().filter(Le=>void 0!==Le.bufferedFilterValue).length,onClick:function(){i._applyFilterViewController.applyFilter()},hint:c,text:c,onInitialized:function(Le){(0,T.A)(Le.element).addClass(i._getToolbarButtonClass("dx-apply-button"))}},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10};a.push(xe)}return a}_isShowApplyFilterButton(){const i=this.option("filterRow");return!(null==i||!i.visible)&&"onClick"===i.applyFilter}enableApplyButton(i){this.setToolbarItemDisabled("applyFilterButton",!i)}isVisible(){return super.isVisible()||this._isShowApplyFilterButton()}}}}}),p(6998),p(5470);var wE=p(2392);function Jy(I){I=I||[];for(let i=0;i<I.length;i++)I[i].selected=!1,Jy(I[i].items)}function kf(I){const i="dxTreeView"===I.NAME?".dx-treeview-select-all-item":".dx-list-select-all-checkbox";return I.$element().find(i).dxCheckBox("instance")}function qy(I,i){if(I.component.option("searchValue"))return;const a=kf(I.component);a&&i&&i.length&&a.option("value",void 0)}function SE(I,i,a){if(i^a){if(I.selected=!0,a&&I.items)for(let c=0;c<I.items.length;c++)if(!I.items[c].selected){I.selected=void 0;break}}else(a||I.selected)&&(I.selected=!1,Jy(I.items))}const zm=function(I){return(0,w.O9)(I.allowHeaderFiltering)?I.allowHeaderFiltering:I.allowFiltering},tb=I=>class extends I{optionChanged(i){if("headerFilter"===i.name){const a="columnHeadersView"===this.name;this._invalidate(a,a),i.handled=!0}else super.optionChanged(i)}_applyColumnState(i){let a;const{rootElement:c}=i,{column:g}=i;if("headerFilter"===i.name){if(c.find(".dx-header-filter").remove(),zm(g)){a=super._applyColumnState(i).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(g)),this.option("useLegacyKeyboardNavigation")||a.attr("tabindex",this.option("tabindex")||0);const y=v.A.format("dxDataGrid-headerFilterIndicatorLabel",g.caption);a.attr("aria-label",y),a.attr("aria-haspopup","dialog"),a.attr("role","button")}return a}return super._applyColumnState(i)}_isHeaderFilterEmpty(i){return!i.filterValues||!i.filterValues.length}_getIndicatorClassName(i){return"headerFilter"===i?"dx-header-filter":super._getIndicatorClassName(i)}_renderIndicator(i){const a=i.container,c=i.indicator;if("headerFilter"===i.name){const g=this.option("rtlEnabled");if(a.children().length&&(!g&&"right"===i.columnAlignment||g&&"left"===i.columnAlignment))return void a.prepend(c)}super._renderIndicator(i)}},Km={month:I=>ti.A.getMonthNames()[I-1],quarter:I=>ti.A.format(new Date(2e3,3*I-1),"quarter")};function nb(I,i,a){return i=i||[],a=a||[],I.forEach(c=>{if((0,w.O9)(c.key)){if(i.push(1===i.length?c.key-1:c.key),c.items)nb(c.items,i,a);else{const y=new Date(Date.UTC.apply(Date,i));a.push(y)}i.pop()}else a.push(null)}),a}function DE(I,i){const a=nb(I),c=(0,Sd.A)(a),g=Ot.getHeaderFilterGroupParameters((0,Oe.A)({},i,{calculateCellValue:y=>y}));return uu.A.queryByOptions(c,{group:g}).toArray()}Dt.registerModule("headerFilter",{defaultOptions:()=>({syncLookupFilterValues:!0,headerFilter:{visible:!1,width:252,height:325,allowSelectAll:!0,search:{enabled:!1,timeout:500,mode:"contains",editorOptions:{}},texts:{emptyValue:v.A.format("dxDataGrid-headerFilterEmptyValue"),ok:v.A.format("dxDataGrid-headerFilterOK"),cancel:v.A.format("dxDataGrid-headerFilterCancel")}}}),controllers:{headerFilter:class Tv extends ft.ViewController{init(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")}_updateSelectedState(i,a){let c=i.length;const g="exclude"===a.filterType;for(;c--;){const y=i[c];"items"in i[c]&&this._updateSelectedState(i[c].items,a),SE(y,Ot.getIndexByKey(i[c].value,a.filterValues,null)>-1,g)}}_normalizeGroupItem(i,a,c){let g,y;const{path:D}=c,{valueSelector:Y}=c,{displaySelector:xe}=c,{column:Le}=c;return Y&&xe?(g=Y(i),y=xe(i)):(g=i.key,y=g),i=(0,w.Gv)(i)?(0,C.X)({},i):{},D.push(g),i.value=1===D.length?D[0]:D.join("/"),i.text=this.getHeaderItemText(y,Le,a,c.headerFilterOptions),i}getHeaderItemText(i,a,c,g){let y=Ot.formatValue(i,function(I,i,a){const c=pi.getGroupInterval(i),g=Ot.getFormatOptionsByColumn(i,"headerFilter");return c&&(g.groupInterval=c[a],Ot.isDateType(i.dataType)?g.format=Km[c[a]]:"number"===i.dataType&&(g.getDisplayFormat=function(){const y={format:i.format,target:"headerFilter"},D=Ot.formatValue(I,y),xe=Ot.formatValue(I+c[a],y);return D&&xe?`${D} - ${xe}`:""})),g}(i,a,c));return y||(y=g.texts.emptyValue),y}_processGroupItems(i,a,c,g){const y=this;let D,Y;const{column:xe}=g,{lookup:Le}=xe,{level:st}=g;c=c||[],a=a||0,Le&&(D=(0,nn.Hz)(Le.displayExpr),Y=(0,nn.Hz)(Le.valueExpr));for(let mt=0;mt<i.length;mt++)i[mt]=y._normalizeGroupItem(i[mt],a,{column:g.column,headerFilterOptions:g.headerFilterOptions,displaySelector:D,valueSelector:Y,path:c}),"items"in i[mt]&&(a!==st&&(0,w.O9)(i[mt].value)?y._processGroupItems(i[mt].items,a+1,c,g):delete i[mt].items),c.pop()}getDataSource(i){var a;const c=this._dataController.dataSource(),g=c?.remoteOperations().grouping,y=Ot.getHeaderFilterGroupParameters(i,g),D=null===(a=i.headerFilter)||void 0===a?void 0:a.dataSource,Y=this.option("headerFilter");let xe=!1;const Le={component:this.component};if(!c)return;if((0,w.O9)(D)&&!(0,w.Tn)(D))Le.dataSource=(0,ji.ho)(D);else if(i.lookup)if(xe=!0,this.option("syncLookupFilterValues")){this._currentColumn=i;const on=this._dataController.getCombinedFilter();this._currentColumn=null,Le.dataSource=Ot.getWrappedLookupDataSource(i,c,on)}else Le.dataSource=Ot.normalizeLookupDataSource(i.lookup);else{const on=Array.isArray(y)?y.length-1:0;this._currentColumn=i;const wn=this._dataController.getCombinedFilter();this._currentColumn=null,Le.dataSource={filter:wn,group:y,useDefaultSearch:!0,load:Kn=>{const Ai=new ye.cY;return Kn.dataField=i.dataField||i.name,c.load(Kn).done(no=>{g&&function ib(I){return"Z"===I?.slice(-1)||"'Z'"===I?.slice(-3)}(i.serializationFormat)&&on>3&&(no=DE(no,i)),mt._processGroupItems(no,null,null,{level:on,column:i,headerFilterOptions:Y}),Ai.resolve(no)}).fail(Ai.reject),Ai}}}(0,w.Tn)(D)&&D.call(i,Le);const st=Le.dataSource.postProcess,mt=this;return Le.dataSource.postProcess=function(on){let wn=on;return xe&&(wn=wn.filter(Kn=>null!==Kn[i.lookup.valueExpr]),0===this.pageIndex()&&!this.searchValue()&&(wn=wn.slice(0),wn.unshift(null)),mt._processGroupItems(wn,null,null,{level:0,column:i,headerFilterOptions:Y})),wn=st&&st.call(this,wn)||wn,mt._updateSelectedState(wn,i),wn},Le.dataSource}getCurrentColumn(){return this._currentColumn}showHeaderFilterMenu(i,a){const c=this._columnsController,g=(0,C.X)(!0,{},this._columnsController.getColumns()[i]);if(g){const y=c.getVisibleIndex(i),Y=this.getView(a?"headerPanel":"columnHeadersView").getColumnElements().eq(a?g.groupIndex:y);this.showHeaderFilterMenuBase({columnElement:Y,column:g,applyFilter:!0,apply(){c.columnOption(i,{filterValues:this.filterValues,filterType:this.filterType})}})}}showHeaderFilterMenuBase(i){const a=this,{column:c}=i;if(c){const g=pi.getGroupInterval(c),y=a._dataController.dataSource(),D=y&&y.remoteOperations().filtering,Y=i.onHidden;(0,C.X)(i,c,{type:g&&g.length>1?"tree":"list",remoteFiltering:D,onShowing:xe=>{const Le=xe.component.$overlayContent().dxResizable("instance");Le&&Le.option("onResizeEnd",st=>{let mt=this._columnsController.columnOption(i.dataField,"headerFilter");mt=mt||{},mt.width=st.width,mt.height=st.height,this._columnsController.columnOption(i.dataField,"headerFilter",mt,!0)})},onHidden:()=>{Y?.(),Se(this)}}),i.dataSource=a.getDataSource(i),i.isFilterBuilder&&(i.dataSource.filter=null,i.alignment="right"),a._headerFilterView.showHeaderFilterMenu(i.columnElement,i)}}hideHeaderFilterMenu(){this._headerFilterView.hideHeaderFilterMenu()}}},views:{headerFilterView:class eb extends ft.View{getPopupContainer(){return this._popupContainer}getListComponent(){return this._listComponent}applyHeaderFilter(i){const a=this.getListComponent(),c=a.option("searchValue"),g=kf(a),y=!c&&!i.isFilterBuilder&&g?.option("value"),D=[],Y=function(xe,Le,st){(0,e.__)(Le,(mt,on)=>{if(void 0!==on.selected&&!!on.selected^st){const wn=a._getNode(on),Ai=a._hasChildren(wn)&&on.items&&on.items.some(no=>no.selected);if(!c||!Ai)return void xe.push(on.value)}on.items&&on.items.length&&Y(xe,on.items,st)})};y?("tree"===i.type&&(i.filterType="exclude"),Array.isArray(i.filterValues)&&(i.filterValues=[])):"tree"===i.type&&(i.filterType&&(i.filterType="include"),Y(D,a.option("items"),!1),i.filterValues=D),i.filterValues&&!i.filterValues.length&&(i.filterValues=null),i.apply(),this.hideHeaderFilterMenu()}showHeaderFilterMenu(i,a){const c=this;if(a){c._initializePopupContainer(a);const g=c.getPopupContainer();c.hideHeaderFilterMenu(),c.updatePopup(i,a),g.show()}}hideHeaderFilterMenu(){const i=this.getPopupContainer();i&&i.hide()}updatePopup(i,a){const c=this,g=this.option("showColumnLines"),y="right"===a.alignment^!g?"left":"right";c._popupContainer.setAria({role:"dialog",label:v.A.format("dxDataGrid-headerFilterLabel")}),c._popupContainer&&(c._cleanPopupContent(),c._popupContainer.option("position",{my:`${y} top`,at:`${y} bottom`,of:i,collision:"fit fit"}))}_getSearchExpr(i,a){const{lookup:c}=i,{useDefaultSearchExpr:g}=i,y=a.dataSource,D=a.search.searchExpr;if(D)return D;if(g||(0,w.O9)(y)&&!(0,w.Tn)(y))return"text";if(c)return c.displayExpr||"this";if(i.dataSource){const{group:Y}=i.dataSource;if(Array.isArray(Y)&&Y.length>0)return Y[0].selector;if((0,w.Tn)(Y)&&!i.remoteFiltering)return Y}return i.dataField||i.selector}_cleanPopupContent(){this._popupContainer&&this._popupContainer.$content().empty()}_initializePopupContainer(i){const a=this,c=a.element(),g=this._normalizeHeaderFilterOptions(i),{height:y,width:D}=g,Y={width:D,height:y,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,hideOnParentScroll:!1,dragEnabled:!1,hideOnOutsideClick:!0,wrapperAttr:{class:"dx-header-filter-menu"},focusStateEnabled:!1,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:g.texts.ok,onClick(){a.applyHeaderFilter(i)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:g.texts.cancel,onClick(){a.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing(xe){xe.component.$content().parent().addClass("dx-dropdowneditor-overlay"),a._initializeListContainer(i,g),i.onShowing&&i.onShowing(xe)},onShown(){a.getListComponent().focus()},onHidden:i.onHidden,onInitialized(xe){const{component:Le}=xe;Le.option("animation",Le._getDefaultOptions().animation)}};(0,w.O9)(a._popupContainer)?a._popupContainer.option(Y):a._popupContainer=a._createComponent(c,lu.A,Y)}_initializeListContainer(i,a){const c=this,g=c._popupContainer.$content(),y=!i.isFilterBuilder&&a.allowSelectAll,D={searchEnabled:a.search.enabled,searchTimeout:a.search.timeout,searchEditorOptions:a.search.editorOptions,searchMode:a.search.mode||"",dataSource:i.dataSource,onContentReady(){c.renderCompleted.fire()},itemTemplate(xe,Le,st){const mt=(0,T.A)(st);return i.encodeHtml?mt.text(xe.text):mt.html(xe.text)}};function Y(xe){"searchValue"===xe.fullName&&y&&!1!==c.option("headerFilter.hideSelectAllOnSearch")&&("tree"===i.type?xe.component.option("showCheckBoxesMode",xe.value?"normal":"selectAll"):xe.component.option("selectionMode",xe.value?"multiple":"all"))}c._listComponent="tree"===i.type?c._createComponent((0,T.A)("<div>").appendTo(g),Ta.A,(0,C.X)(D,{showCheckBoxesMode:y?"selectAll":"normal",onOptionChanged:Y,keyExpr:"id"})):c._createComponent((0,T.A)("<div>").appendTo(g),wE.A,(0,C.X)(D,{searchExpr:c._getSearchExpr(i,a),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:y?"all":"multiple",onOptionChanged:Y,onSelectionChanged(xe){const Le=xe.component.option("items"),st=xe.component.option("selectedItems");if(!xe.component._selectedItemsUpdating&&!xe.component.option("searchValue")&&!i.isFilterBuilder){const mt=i.filterValues||[];0===st.length&&Le.length&&(mt.length<=1||"exclude"===i.filterType&&mt.length===Le.length-1)?(i.filterType="include",i.filterValues=[]):st.length===Le.length&&(i.filterType="exclude",i.filterValues=[])}(0,e.__)(Le,(mt,on)=>{const wn=Ot.getIndexByKey(on,st,null)>=0;if(!!on.selected!==wn){on.selected=wn,i.filterValues=i.filterValues||[];const Ai=Ot.getIndexByKey(on.value,i.filterValues,null);Ai>=0&&i.filterValues.splice(Ai,1),wn^"exclude"===i.filterType&&i.filterValues.push(on.value)}}),qy(xe,i.filterValues)},onContentReady(xe){const{component:Le}=xe,st=Le.option("items"),mt=[];(0,e.__)(st,function(){this.selected&&mt.push(this)}),Le._selectedItemsUpdating=!0,Le.option("selectedItems",mt),Le._selectedItemsUpdating=!1,qy(xe,i.filterValues)}}))}_normalizeHeaderFilterOptions(i){const a=this.option("headerFilter")||{},c=i.headerFilter||{};return(0,C.X)(!0,{},a,{search:{enabled:a.allowSearch,timeout:a.searchTimeout}},c,{search:{enabled:c.allowSearch,mode:c.searchMode,timeout:c.searchTimeout}})}_renderCore(){this.element().addClass("dx-header-filter-menu")}}},extenders:{controllers:{data:I=>class extends I{skipCalculateColumnFilters(){return!1}_calculateAdditionalFilter(){if(this.skipCalculateColumnFilters())return super._calculateAdditionalFilter();const i=[super._calculateAdditionalFilter()],a=this._columnsController.getVisibleColumns(null,!0),g=this._headerFilterController.getCurrentColumn();return(0,e.__)(a,(y,D)=>{let Y;if((!g||g.index!==D.index)&&zm(D)&&D.calculateFilterExpression&&Array.isArray(D.filterValues)&&D.filterValues.length){let xe=[];(0,e.__)(D.filterValues,(Le,st)=>{Array.isArray(st)?Y=st:(D.deserializeValue&&!Ot.isDateType(D.dataType)&&"number"!==D.dataType&&(st=D.deserializeValue(st)),Y=D.createFilterExpression(st,"=","headerFilter")),Y&&(Y.columnIndex=D.index),xe.push(Y)}),xe=Ot.combineFilters(xe,"or"),i.push("exclude"===D.filterType?["!",xe]:xe)}}),Ot.combineFilters(i)}}},views:{columnHeadersView:I=>class extends(tb(I)){_renderCellContent(i,a){const c=this;let g;const{column:y}=a;!y.command&&zm(y)&&c.option("headerFilter.visible")&&"header"===a.rowType&&(g=c._applyColumnState({name:"headerFilter",rootElement:i,column:y,showColumnLines:c.option("showColumnLines")}),g&&c._subscribeToIndicatorEvent(g,y,"headerFilter")),super._renderCellContent.apply(this,arguments)}_subscribeToIndicatorEvent(i,a,c){"headerFilter"===c&&P.A.on(i,de.U,this.createAction(g=>{g.event.stopPropagation(),G(i,this),this._headerFilterController.showHeaderFilterMenu(a.index,!1)}))}_updateIndicator(i,a,c){const g=super._updateIndicator(i,a,c);g&&this._subscribeToIndicatorEvent(g,a,c)}_updateHeaderFilterIndicators(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")}_needUpdateFilterIndicators(){return!0}_columnOptionChanged(i){const{optionNames:a}=i,c=Ot.checkChanges(a,["filterValues","filterValue"]),g=Ot.checkChanges(a,["filterValues","filterType"]);(c||g)&&this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators(),g||super._columnOptionChanged(i)}},headerPanel:I=>class extends(tb(I)){_createGroupPanelItem(i,a){const c=this,g=super._createGroupPanelItem.apply(c,arguments);let y;return!a.command&&zm(a)&&c.option("headerFilter.visible")&&(y=c._applyColumnState({name:"headerFilter",rootElement:g,column:{alignment:(0,Me.n)(c.option("rtlEnabled")),filterValues:a.filterValues,allowHeaderFiltering:!0,caption:a.caption},showColumnLines:!0}),y&&P.A.on(y,de.U,c.createAction(D=>{const{event:Y}=D;Y.stopPropagation(),this._headerFilterController.showHeaderFilterMenu(a.index,!0)}))),g}}}}});const Bf="dx-filterbuilder-range",IE=`${Bf}-start`,ME=`${Bf}-end`,cT=`${Bf}-separator`;function Av(I,i){const a=(0,T.A)("<div>").addClass(IE),c=(0,T.A)("<div>").addClass(ME);let g=I.value||[];const y=function(Y){return Y&&Y.length>0?Y[0]:null},D=function(Y){return Y&&2===Y.length?Y[1]:null};i.append(a),i.append((0,T.A)("<span>").addClass(cT).text("\u2013")),i.append(c),i.addClass(Bf),this._editorFactory.createEditor.call(this,a,(0,C.X)({},I.field,I,{value:y(g),parentType:"filterBuilder",setValue(Y){g=[Y,D(g)],I.setValue(g)}})),this._editorFactory.createEditor.call(this,c,(0,C.X)({},I.field,I,{value:D(g),parentType:"filterBuilder",setValue(Y){g=[y(g),Y],I.setValue(g)}}))}function Iv(I,i){return{name:"between",caption:I,icon:"range",valueSeparator:"\u2013",dataTypes:["number","date","datetime"],editorTemplate:Av.bind(i),notForLookup:!0}}const Mv={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},Pv={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"},ab_getIconByFilterOperation=I=>Mv[I],Qm="string",Zh="and",Bg={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],boolean:["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},Jm={date:"shortDate",datetime:"shortDateShortTime"},lb=["=","<>","isblank","isnotblank"],cb=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"];function Fg(I){return I&&I.length>1&&"!"===I[0]&&!Fa(I)}function tp(I){return Fg(I)?I[1]:I}function Up(I){if(Fa(I))return Zh;let i="";for(let a=0;a<I.length;a++){const c=I[a];if(!Array.isArray(c)){if(i&&i!==c)throw new du.sO.Error("E4019");"!"!==c&&(i=c)}}return i}function Nd(I){const i=tp(I);let a=Up(i);return a||(a=Zh),i!==I&&(a=`!${a}`),a}function ub(I){const i=function uT(I){return Array.isArray(I)&&I.length}(I.filterOperations)?I.filterOperations:function FE(I){return I.lookup&&lb||Bg[I.dataType||Qm]}(I);return(0,C.X)([],i)}function kv(I,i){const a=(I=>Pv[I])(I);return i&&i[a]?i[a]:a}function np(I,i){const a=I.filter(c=>c.name===i);return a.length?a[0]:null}function hb(I){return I.defaultFilterOperation||ub(I)[0]}function ip(I,i){const a=tp(I),c=a.indexOf(i);return a.splice(c,1),1!==a.length&&a.splice(c,1),I}function LE(I){const i=mb(I),a=i?VE(I):I;return i?["!",[a]]:[a]}function gb(I,i){const a=tp(i),c=Nd(a);return 1===a.length?a.unshift(I):a.push(I,c),i}function fb(I,i){for(let c=0;c<i.length;c++)if(i[c].name===I||i[c].dataField.toLowerCase()===I.toLowerCase())return i[c];const a=Vf(i,!0).filter(c=>c.dataField.toLowerCase()===I.toLowerCase());if(a.length>0)return a[0];throw new We.A.Error("E1047",I)}function jp(I){return!!Array.isArray(I)&&(I.length<2||Array.isArray(I[0])||Array.isArray(I[1]))}function Fa(I){return!!Array.isArray(I)&&I.length>1&&!Array.isArray(I[0])&&!Array.isArray(I[1])}function gl(I,i,a){a=a||Zh;const c=Up(I).toLowerCase()||a;let g=[];for(let y=0;y<I.length;y++)jp(I[y])?(g.push(Fv(I[y],i,a)),g=Bv(g,c)):Fa(I[y])&&(g.push(qm(I[y],i)),g=Bv(g,c));return 0===g.length&&(g=Bv(g,c)),g}function qm(I,i){return function Ng(I,i){const a=np(i,I[1]);return a&&a.name===I[1]}(I,i)||I.length<3&&(I[2]=I[1],I[1]="="),I}function mb(I){return-1!==I.indexOf("not")}function VE(I){return I.substring(3).toLowerCase()}function Lg(I,i){const a=mb(i);return i=a?VE(i):i,a?["!",I,i]:[I,i]}function Bv(I,i){const a=mb(i);i=a?VE(i):i,I.push(i);let c=I;return a&&(c=["!",c]),c}function Fv(I,i,a){return a=a||Zh,I?Fa(I=(0,C.X)(!0,[],I))?Lg(qm(I,i),a):Fg(I)?["!",Fa(I[1])?Lg(qm(I[1],i),a):Fg(I[1])?Lg(Fv(I[1],i),a):gl(I[1],i,a)]:gl(I,i,a):LE(a)}function Lf(I,i,a,c){const g=fb(I[0],i),y=qm(I,a),D=a.length&&np(a,y[1]);return D&&D.calculateFilterExpression?D.calculateFilterExpression.apply(D,[y[2],g,i]):g.createFilterExpression?g.createFilterExpression.apply(g,[y[2],y[1],c]):g.calculateFilterExpression?g.calculateFilterExpression.apply(g,[y[2],y[1],c]):g.defaultCalculateFilterExpression.apply(g,[y[2],y[1],c])}function Vg(I,i,a,c){if(!(0,w.O9)(I))return null;if(Fg(I))return["!",Vg(I[1],i,a,c)];const g=tp(I);if(Fa(g))return Lf(g,i,a,c)||null;let D,y=[];const Y=Nd(g);for(let xe=0;xe<g.length;xe++)jp(g[xe])?(D=Vg(g[xe],i,a,c),D&&(xe&&y.push(Y),y.push(D))):Fa(g[xe])&&(D=Lf(g[xe],i,a,c),D&&(y.length&&y.push(Y),y.push(D)));return 1===y.length&&(y=y[0]),y.length?y:null}function Hg(I){const i=tp(I);let a;if(0===i.length)return null;const c=[];for(a=0;a<i.length;a++)if(jp(i[a])){const g=Hg(i[a]);g?i[a]=g:c.push(i[a])}else Fa(i[a])&&(UE(i[a])||c.push(i[a]));for(a=0;a<c.length;a++)ip(i,c[a]);return 1===i.length||(i.splice(i.length-1,1),1===i.length&&(I=function RE(I,i){return Fg(I)?I[1]=i:I=i,I}(I,i[0])),0===I.length)?null:I}function Nv(I,i,a){if(""===i)return void a("");const{lookup:c}=I;if(c.items)a(c.calculateCellValue(i)||"");else{const g=(0,w.Tn)(c.dataSource)?c.dataSource({}):c.dataSource;new On.q(g).loadSingle(c.valueExpr,i).done(D=>{let Y="";D&&(Y=c.displayExpr?(0,nn.Hz)(c.displayExpr)(D):D),I.customizeText&&(Y=I.customizeText({value:i,valueText:Y})),a(Y)}).fail(()=>{a("")})}}function Lv(I,i,a,c,g){let y;return y=!0===i?I.trueText||v.A.format("dxDataGrid-trueText"):!1===i?I.falseText||v.A.format("dxDataGrid-falseText"):function Nf(I,i){return Rt.format(i,I.format||Jm[I.dataType])}(I,i),I.customizeText&&(y=I.customizeText.call(I,{value:i,valueText:y,target:c})),a&&a.customizeText&&(y=a.customizeText.call(a,{value:i,valueText:y,field:I,target:c},g)),y}function Vv(I){return""===I||null===I}function Hv(I,i,a){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(Vv(i))return"";if(Array.isArray(i)){const g=new ye.cY;return ye.z7.apply(this,function $E(I,i,a,c){const g={values:i};return i.map(y=>Lv(I,y,a,c,g))}(I,i,a,c)).done(function(){for(var y=arguments.length,D=new Array(y),Y=0;Y<y;Y++)D[Y]=arguments[Y];const xe=D.some(Le=>!Vv(Le))?D.map(Le=>Vv(Le)?"?":Le):"";g.resolve(xe)}),g}return Lv(I,i,a,c)}function $v(I,i){return I.some(a=>a.dataField===i)}function Uv(I,i,a){const{dataField:c}=a;Gv(c)&&(a.parentId=_b(c),!$v(i,a.parentId)&&!$v(I,a.parentId)&&Uv(I,i,{id:a.parentId,dataType:"object",dataField:a.parentId,caption:jv(a.parentId,!0),filterOperations:["isblank","isnotblank"],defaultCalculateFilterExpression:pi.defaultCalculateFilterExpression})),i.push(a)}function jv(I,i){let a="";if(i)I=I.substring(I.lastIndexOf(".")+1);else if(Gv(I))return I.split(".").forEach((c,g,y)=>{a+=(0,xi.Bc)(c),g!==y.length-1&&(a+=".")}),a;return(0,xi.Bc)(I)}function Vf(I,i){const a=[];for(let c=0;c<I.length;c++){const g=(0,C.X)(!0,{caption:jv(I[c].dataField,i)},I[c]);g.id=g.name||g.dataField,i?Uv(I,a,g):a.push(g)}return a}function Gv(I){return-1!==I.lastIndexOf(".")}function _b(I){return I.substring(0,I.lastIndexOf("."))}function Wv(I,i){if(Gv(I.dataField)){const a=_b(I.dataField);for(let c=0;c<i.length;c++)if(i[c].dataField===a)return`${Wv(i[c],i)}.${I.caption}`}return I.caption}function Hf(I,i,a){let c=np(a,i);return c?(!1===c.hasValue?(I[1]=i,I.length=2):(I[1]=i,I[2]=""),I):("isblank"===i?(I[1]="=",I[2]=null):"isnotblank"===i?(I[1]="<>",I[2]=null):(c=np(a,I[1]),(c||2===I.length||null===I[2])&&(I[2]=""),I[1]=i),I)}function vb(I){let i;return i=null===I[2]?"="===I[1]?"isblank":"isnotblank":I[1],i}function UE(I){return""!==I[2]}function $f(I,i){return I[0]===i}function Kv(I,i){return I&&0!==I.length?Fa(I)?$f(I,i)?null:I:Cb(I,[i],!1):null}function Cb(I,i,a){const c=[];return I.forEach(g=>{Fa(g)?$f(g,i[0])?a?(c.push(i),a=!1):c.splice(c.length-1,1):c.push(g):(c.length||jp(g))&&c.push(g)}),0===c.length?null:(a&&(c.push(Zh),c.push(i)),1===c.length?c[0]:c)}function yb(I,i){return null===I||0===I.length?i:Fa(I)?$f(I,i[0])?i:[I,Zh,i]:Nd(I)!==Zh?[i,"and",I]:Cb(I,i,!0)}function mc(I,i){return null!==I&&0!==I.length&&(Fa(I)?I[0]===i:I.some(a=>(Fa(a)||jp(a))&&mc(a,i)))}const e_=function(I,i,a){if(Array.isArray(i)){const c=i.length-1;I.empty(),i.forEach((g,y)=>{(0,T.A)("<span>").addClass("dx-filterbuilder-text-part").text(g).appendTo(I),y!==c&&(0,T.A)("<span>").addClass("dx-filterbuilder-text-separator").text(a&&a.valueSeparator?a.valueSeparator:"|").addClass("dx-filterbuilder-text-separator-empty").appendTo(I)})}else I.text(i||v.A.format("dxFilterBuilder-enterValueText"))};function Xv(I){const i=function(g,y){return y?`${y}/${g}`:g},a=function(g,y){let D=[];return g.forEach(Y=>{if(Y.items){const xe=a(Y.items,i(Y.text,y));D=D.concat(xe)}Y.selected&&D.push(i(Y.text,y))}),D},c=I&&I.getController("headerFilter");return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:function(g,y,D){const Y=[],xe=g.length-1;return g&&g.forEach((Le,st)=>{if(Fa(Le)||jp(Le)){const mt=Vg(Le,D,[],"headerFilter");Y.push(mt)}else{const mt=Vg([y.dataField,"=",Le],D,[],"headerFilter");Y.push(mt)}st!==xe&&Y.push("or")}),1===Y.length?Y[0]:Y},editorTemplate(g,y){const D=(0,T.A)("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(y),Y=(0,C.X)(!0,{},I.columnOption(g.field.dataField));return e_(D,g.text&&g.text.split("|")),Y.filterType="include",Y.filterValues=g.value?g.value.slice():[],c.showHeaderFilterMenuBase({columnElement:D,column:Y,apply(){g.setValue(this.filterValues),c.hideHeaderFilterMenu(),g.closeEditor()},onHidden(){g.closeEditor()},isFilterBuilder:!0}),y},customizeText:function(g,y){y=y||{};const{value:D}=g;let Y=I.columnOption(g.field.dataField);const xe=Y&&Y.headerFilter,Le=Y&&Y.lookup,st=y.values||[D];if(xe&&xe.dataSource||Le&&Le.dataSource){const on=new ye.cY,wn=y.items||new ye.cY;if(!y.items){Y=(0,C.X)({},Y,{filterType:"include",filterValues:st});const Kn=c.getDataSource(Y);Kn.paginate=!1;const Ai=new On.q(Kn),no=Ai.store().key();if(no){const{values:Yo}=y;if(Yo&&Yo.length>1){const ps=Yo.reduce((Ls,_r)=>(Ls.length&&Ls.push("or"),Ls.push([no,"=",_r]),Ls),[]);Ai.filter(ps)}else Ai.filter([no,"=",g.value])}else g.field.calculateDisplayValue&&We.A.log("W1017");y.items=wn,Ai.load().done(wn.resolve)}return wn.done(Kn=>{const Ai=st.indexOf(g.value);on.resolve(a(Kn,null)[Ai])}),on}return c.getHeaderItemText(D,Y,0,I.option("headerFilter"))}}}function bb(I){const i=Xv(I);return(0,C.X)({},i,{calculateFilterExpression(a,c,g){const y=i.calculateFilterExpression(a,c,g);return y&&0!==y.length?"!"===y[0]?y:["!",y]:null},name:"noneof",icon:"unselectall",caption:v.A.format("dxFilterBuilder-filterOperationNoneOf")})}const Yv=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"];function ph(I){return I.name||I.dataField}const Eb=function(I){const i=I.filterValues||[];return!pi.getGroupInterval(I)&&!(I.headerFilter&&I.headerFilter.dataSource)||1===i.length&&null===i[0]},n_=function(I){if((0,w.O9)(I.filterValue)){const a=I.selectedFilterOperation||I.defaultFilterOperation||hb(I);return[ph(I),a,I.filterValue]}return null},Qv=function(I){let i,a;const{filterValues:c}=I;return c?(1===c.length&&Eb(I)&&!Array.isArray(c[0])?(i="exclude"===I.filterType?"<>":"=",a=c[0]):(i="exclude"===I.filterType?"noneof":"anyof",a=c),[ph(I),i,a]):null},Zv=function(I,i,a){const c=function(I,i){if(!I)return{filterType:"include",filterValues:void 0};let a;const c=I[1],g=I[2],y=Array.isArray(g);if(!y&&!Eb(i))return{filterType:"include",filterValues:void 0};switch(c){case"anyof":case"=":a="include";break;case"noneof":case"<>":a="exclude";break;default:return{filterType:"include",filterValues:void 0}}return{filterType:a,filterValues:y?g:[g]}}(a,i);I.columnOption(ph(i),c)},Jv=function(I,i,a){let c,g=a?.[1];const y=a?.[2],D=i.filterOperations||i.defaultFilterOperations;(!D||D.indexOf(g)>=0||g===i.defaultFilterOperation)&&Yv.includes(g)&&null!==y?(g===i.defaultFilterOperation&&!(0,w.O9)(i.selectedFilterOperation)&&(g=i.selectedFilterOperation),c={filterValue:y,selectedFilterOperation:g}):c={filterValue:void 0,selectedFilterOperation:void 0},I.columnOption(ph(i),c)};Dt.registerModule("filterSync",{defaultOptions:()=>({filterValue:null,filterSyncEnabled:"auto"}),controllers:{filterSync:class WE extends ft.Controller{init(){this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._dataController.isFilterSyncActive()&&(this._columnsController.isAllDataTypesDefined()?this._initSync():this._dataController.dataSourceChanged.add(()=>this._initSync()))}publicMethods(){return["getCustomFilterOperations"]}syncFilterValue(){const i=this,a=this._columnsController.getFilteringColumns();this._skipSyncColumnOptions=!0,a.forEach(c=>{const g=function jE(I,i){return null===I||0===I.length?[]:Fa(I)?$f(I,i)?[I]:[]:Nd(I)!==Zh?[]:I.filter(g=>Fa(g)&&$f(g,i))}(i.option("filterValue"),ph(c));if(1===g.length){const y=g[0];Zv(this._columnsController,c,y),Jv(this._columnsController,c,y)}else(0,w.O9)(c.filterValues)&&Zv(this._columnsController,c,null),(0,w.O9)(c.filterValue)&&Jv(this._columnsController,c,null)}),this._skipSyncColumnOptions=!1}_initSync(){const i=this._columnsController.getColumns(),a=this._dataController.pageIndex();if(function xb(I){I.forEach(i=>{const a=ph(i);if(!(0,w.O9)(a)&&i.allowFiltering)throw new We.A.Error("E1049",i.caption)})}(i),!this.option("filterValue")){const c=this._columnsController.getFilteringColumns(),g=this.getFilterValueFromColumns(c);this._silentOption("filterValue",g)}this.syncFilterValue(),this._dataController.pageIndex(a)}_getSyncFilterRow(i,a){const c=n_(a);return(0,w.O9)(c)?yb(i,c):Kv(i,ph(a))}_getSyncHeaderFilter(i,a){const c=Qv(a);return c?yb(i,c):Kv(i,ph(a))}getFilterValueFromColumns(i){if(!this._dataController.isFilterSyncActive())return null;const a=["and"];return i&&i.forEach(c=>{const g=Qv(c),y=n_(c);g&&gb(g,a),y&&gb(y,a)}),Hg(a)}syncFilterRow(i,a){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),i))}syncHeaderFilter(i){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),i))}getCustomFilterOperations(){const i=this.option("filterBuilder.customOperations")??[];return[(I=this.component,(0,C.X)(Xv(I),{name:"anyof",icon:"selectall",caption:v.A.format("dxFilterBuilder-filterOperationAnyOf")})),bb(this.component)].concat(i);var I}}},extenders:{controllers:{data:I=>class extends I{optionChanged(i){switch(i.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this._filterSyncController.syncFilterValue(),i.handled=!0;break;case"filterSyncEnabled":i.handled=!0;break;case"columns":if(this.isFilterSyncActive()){const a=this._columnsController.getColumnByPath(i.fullName);if(a&&!this._filterSyncController._skipSyncColumnOptions){const c=this._parseColumnPropertyName(i.fullName);this._filterSyncController._skipSyncColumnOptions=!0,"filterType"===c?("exclude"===i.value||"exclude"===i.previousValue)&&this._filterSyncController.syncHeaderFilter(a):"filterValues"===c?this._filterSyncController.syncHeaderFilter(a):["filterValue","selectedFilterOperation"].includes(c)&&this._filterSyncController.syncFilterRow(a,a.filterValue),this._filterSyncController._skipSyncColumnOptions=!1}}super.optionChanged(i);break;default:super.optionChanged(i)}}isFilterSyncActive(){const i=this.option("filterSyncEnabled");return"auto"===i?this.option("filterPanel.visible"):i}skipCalculateColumnFilters(){return((0,w.O9)(this.option("filterValue"))||this._filterSyncController._skipSyncColumnOptions)&&this.isFilterSyncActive()}_calculateAdditionalFilter(){if(!1===this.option("filterPanel.filterEnabled"))return super._calculateAdditionalFilter();const i=[super._calculateAdditionalFilter()],a=this._columnsController.getFilteringColumns();let c=this.option("filterValue");if(this.isFilterSyncActive()){const D=this._headerFilterController.getCurrentColumn(),Y=this._applyFilterController.getCurrentColumnForFiltering(),xe=D||Y;(D||(0,w.O9)(Y?.filterValue))&&c&&(c=Kv(c,ph(xe)))}const y=Vg(c,a,this._filterSyncController.getCustomFilterOperations(),"filterBuilder");return y&&i.push(y),Ot.combineFilters(i)}_parseColumnPropertyName(i){const a=i.match(/.*\.(.*)/);return a?a[1]:null}clearFilter(i){this.component.beginUpdate(),arguments.length>0?("filterValue"===i&&this.option("filterValue",null),super.clearFilter(i)):(this.option("filterValue",null),super.clearFilter()),this.component.endUpdate()}_applyFilter(){return this._filterSyncController._skipSyncColumnOptions?(new ye.cY).resolve():super._applyFilter.apply(this,arguments)}}},views:{columnHeadersView:I=>class extends I{optionChanged(i){"filterValue"===i.name?this._updateHeaderFilterIndicators():super.optionChanged(i)}_isHeaderFilterEmpty(i){return this._dataController.isFilterSyncActive()?!mc(this.option("filterValue"),ph(i)):super._isHeaderFilterEmpty(i)}_needUpdateFilterIndicators(){return!this._dataController.isFilterSyncActive()}}}}});var Ob=p(6163);const wb="dx-filterbuilder-action-icon",Wf="dx-state-active",Cu="filterBuilder",a_=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],Tb={and:"and",or:"or",notAnd:"!and",notOr:"!or"},aa=mr(class{});class Ab extends Pc.A{_getDefaultOptions(){return(0,C.X)(super._getDefaultOptions(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:v.A.format("dxFilterBuilder-and"),or:v.A.format("dxFilterBuilder-or"),notAnd:v.A.format("dxFilterBuilder-notAnd"),notOr:v.A.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:v.A.format("dxFilterBuilder-filterOperationBetween"),equal:v.A.format("dxFilterBuilder-filterOperationEquals"),notEqual:v.A.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:v.A.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:v.A.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:v.A.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:v.A.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:v.A.format("dxFilterBuilder-filterOperationStartsWith"),contains:v.A.format("dxFilterBuilder-filterOperationContains"),notContains:v.A.format("dxFilterBuilder-filterOperationNotContains"),endsWith:v.A.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:v.A.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:v.A.format("dxFilterBuilder-filterOperationIsNotBlank")}})}_optionChanged(i){switch(i.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(i.value!==i.previousValue){const a=this._disableInvalidateForValue;a||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:i.value,previousValue:i.previousValue}),this._disableInvalidateForValue=a}break;default:super._optionChanged(i)}}getFilterExpression(){const i=this._getNormalizedFields();return Vg(Hg((0,C.X)(!0,[],this._model)),i,this._customOperations,Cu)}_getNormalizedFields(){return function HE(I){return I.reduce((i,a)=>{if((0,w.O9)(a.dataField)){const c={};for(const g in a)a[g]&&cb.includes(g)&&(c[g]=a[g]);c.defaultCalculateFilterExpression=pi.defaultCalculateFilterExpression,(0,w.O9)(c.dataType)||(c.dataType=Qm),(0,w.O9)(c.trueText)||(c.trueText=v.A.format("dxDataGrid-trueText")),(0,w.O9)(c.falseText)||(c.falseText=v.A.format("dxDataGrid-falseText")),i.push(c)}return i},[])}(this.option("fields"))}_updateFilter(){this._disableInvalidateForValue=!0;const a=Hg((0,C.X)(!0,[],this._model)),c=Hg(this._getModel(this.option("value")));JSON.stringify(c)!==JSON.stringify(a)&&this.option("value",a),this._disableInvalidateForValue=!1,this._fireContentReadyAction()}_init(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),super._init()}_initEditorFactory(){this._editorFactory=new aa}_initCustomOperations(){this._customOperations=function zv(I,i,a){const c=(0,C.X)(!0,[],I);let g=-1;return c.some((y,D)=>{if("between"===y.name)return g=D,!0}),-1!==g?c[g]=(0,C.X)(Iv(i,a),c[g]):c.unshift(Iv(i,a)),c}(this.option("customOperations"),this.option("filterOperationDescriptions.between"),this)}_getDefaultGroupOperation(){var i;return(null===(i=this.option("groupOperations"))||void 0===i?void 0:i[0])??Tb.and}_getModel(i){return Fv(i,this._customOperations,this._getDefaultGroupOperation())}_initModel(){this._model=this._getModel(this.option("value"))}_initActions(){const i=this;i._actions={},a_.forEach(a=>{const c=(0,C.X)({},a.config);i._actions[a.name]=i._createActionByOption(a.name,c)})}executeAction(i,a){const c=this._actions[i];return c&&c(a)}_initMarkup(){this.$element().addClass("dx-filterbuilder"),super._initMarkup(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())}_createConditionElement(i,a){return(0,T.A)("<div>").addClass("dx-filterbuilder-group").append(this._createConditionItem(i,a))}_createGroupElementByCriteria(i,a){let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const g=this._createGroupElement(i,a,c),y=g.find(".dx-filterbuilder-group-content"),D=tp(i);for(let Y=0;Y<D.length;Y++){const xe=D[Y];jp(xe)?this._createGroupElementByCriteria(xe,i,c+1).appendTo(y):Fa(xe)&&this._createConditionElement(xe,i).appendTo(y)}return g}_createGroupElement(i,a,c){const g=(0,T.A)("<div>").addClass("dx-filterbuilder-group-item"),y=(0,T.A)("<div>").addClass("dx-filterbuilder-group-content"),D=(0,T.A)("<div>").addClass("dx-filterbuilder-group").append(g).append(y);return null!=a&&this._createRemoveButton(()=>{ip(a,i),D.remove(),this._updateFilter()}).appendTo(g),this._createGroupOperationButton(i).appendTo(g),this._createAddButton(()=>{const Y=LE(this._getDefaultGroupOperation());gb(Y,i),this._createGroupElement(Y,i,c+1).appendTo(y),this._updateFilter()},()=>{const xe=function pb(I,i){const a=[I.dataField,"",""];return Hf(a,hb(I),i),a}(this.option("fields")[0],this._customOperations);gb(xe,i),this._createConditionElement(xe,i).appendTo(y),this._updateFilter()},c).appendTo(g),D}_createButton(i){return(0,T.A)("<div>").text(i)}_createGroupOperationButton(i){const a=this._getGroupOperations(i);let c=function BE(I,i){const a=Nd(I);return i.filter(c=>c.value===a)[0]}(i,a);const g=c.text,y=a&&a.length<2?this._createButton(g).addClass("dx-state-disabled"):this._createButtonWithMenu({caption:g,menu:{items:a,displayExpr:"text",keyExpr:"value",onItemClick:D=>{c!==D.itemData&&(function kE(I,i){let c;return function db(I,i){-1!==i.indexOf("!")?Fg(I)||function(a){const c=a.slice(0);a.length=0,a.push("!",c)}(I):Fg(I)&&function(a){const c=tp(a);a.length=0,[].push.apply(a,c)}(I)}(I,i),function(g,y){for(c=0;c<g.length;c++)Array.isArray(g[c])||(g[c]=y)}(tp(I),i=-1===(g=i).indexOf("!")?g:g.substring(1)),I;var g}(i,D.itemData.value),y.text(D.itemData.text),c=D.itemData,this._updateFilter())},onContentReady(D){D.component.selectItem(c)},cssClass:"dx-filterbuilder-group-operations"}});return y.addClass("dx-filterbuilder-text").addClass("dx-filterbuilder-group-operation").attr("tabindex",0)}_createButtonWithMenu(i){const a=this,c=function(){a.$element().find(`.${Wf}`).removeClass(Wf),a.$element().find(".dx-overlay .dx-treeview").remove(),a.$element().find(".dx-overlay").remove()},g=this.option("rtlEnabled"),y=g?"right":"left",D=this._createButton(i.caption);var Y;return(0,C.X)(i.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:(Y=i.menu.onItemClick,function(xe){Y(xe),"dxclick"===xe.event.type&&c()}),onHiding(){D.removeClass(Wf)},position:{my:`${y} top`,at:`${y} bottom`,offset:"0 1",of:D,collision:"flip"},animation:null,onHidden(){c()},cssClass:`dx-filterbuilder-overlay ${i.menu.cssClass}`,rtlEnabled:g}),i.popup={onShown(xe){const Le=(0,T.A)(xe.component.content()).find(".dx-treeview"),st=Le.dxTreeView("instance");P.A.on(Le,"keyup keydown",mt=>{const on=(0,x.YD)(mt);("keydown"===mt.type&&"tab"===on||"keyup"===mt.type&&("escape"===on||"enter"===on))&&(xe.component.hide(),P.A.trigger(i.menu.position.of,"focus"))}),st.focus(),st.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(D,()=>{c(),a._createPopupWithTreeView(i,a.$element()),D.addClass(Wf)}),D}_hasValueButton(i){const a=np(this._customOperations,i[1]);return a?!1!==a.hasValue:null!==i[2]}_createOperationButtonWithMenu(i,a){const c=this,g=function NE(I,i,a){const c=ub(I),g=!!I.lookup;return a.forEach(y=>{if(!I.filterOperations&&-1===c.indexOf(y.name)){const D=y&&y.dataTypes;(!g||!y.notForLookup)&&D&&D.indexOf(I.dataType||Qm)>=0&&c.push(y.name)}}),c.map(y=>{const D=np(a,y);return D?{icon:D.icon||"icon-none",text:D.caption||(0,xi.Bc)(D.name),value:D.name,isCustom:!0}:{icon:ab_getIconByFilterOperation(y)||"icon-none",text:kv(y,i),value:y}})}(a,this.option("filterOperationDescriptions"),this._customOperations);let y=function hT(I,i){for(let a=0;a<i.length;a++)if(i[a].value===I)return i[a];throw new We.A.Error("E1048",I)}(vb(i),g);const D=this._createButtonWithMenu({caption:y.text,menu:{items:g,displayExpr:"text",onItemRendered(Y){Y.itemData.isCustom&&(0,T.A)(Y.itemElement).addClass("dx-filterbuilder-menu-custom-operation")},onContentReady(Y){Y.component.selectItem(y)},onItemClick:Y=>{if(y!==Y.itemData){y=Y.itemData,Hf(i,y.value,c._customOperations);const xe=D.siblings().filter(".dx-filterbuilder-item-value");c._hasValueButton(i)?(0!==xe.length&&xe.remove(),c._createValueButton(i,a).appendTo(D.parent())):xe.remove(),D.text(y.text),this._updateFilter()}},cssClass:"dx-filterbuilder-operations"}}).addClass("dx-filterbuilder-text").addClass("dx-filterbuilder-item-operation").attr("tabindex",0);return D}_createOperationAndValueButtons(i,a,c){this._createOperationButtonWithMenu(i,a).appendTo(c),this._hasValueButton(i)&&this._createValueButton(i,a).appendTo(c)}_createFieldButtonWithMenu(i,a,c){const g=this,y=this.option("allowHierarchicalFields"),D=Vf(i,y);let Y=fb(c.name||c.dataField,D);const xe=function(st,mt){return y?Wv(st,mt):st.caption},Le=this._createButtonWithMenu({caption:xe(Y,D),menu:{items:D,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:st=>{if(Y!==st.itemData){Y=st.itemData,a[0]=Y.name||Y.dataField,a[2]="object"===Y.dataType?null:"",Hf(a,hb(Y),g._customOperations),Le.siblings().filter(".dx-filterbuilder-text").remove(),g._createOperationAndValueButtons(a,Y,Le.parent());const mt=xe(Y,st.component.option("items"));Le.text(mt),this._updateFilter()}},onContentReady(st){st.component.selectItem(Y)},cssClass:"dx-filterbuilder-fields"}}).addClass("dx-filterbuilder-text").addClass("dx-filterbuilder-item-field").attr("tabindex",0);return Le}_createConditionItem(i,a){const c=(0,T.A)("<div>").addClass("dx-filterbuilder-group-item"),g=this._getNormalizedFields(),y=fb(i[0],g);return this._createRemoveButton(()=>{ip(a,i),1===c.parent().children().length?c.parent().remove():c.remove(),this._updateFilter()}).appendTo(c),this._createFieldButtonWithMenu(g,i,y).appendTo(c),this._createOperationAndValueButtons(i,y,c),c}_getGroupOperations(i){let a=this.option("groupOperations");const c=this.option("groupOperationDescriptions");return(!a||!a.length)&&(a=[Nd(i).replace("!","not")]),a.map(g=>({text:c[g],value:Tb[g]}))}_createRemoveButton(i){const a=(0,T.A)("<div>").addClass(wb).addClass("dx-icon-remove").addClass("dx-filterbuilder-action").attr("tabindex",0);return this._subscribeOnClickAndEnterKey(a,i),a}_createAddButton(i,a,c){let g;const y=this.option("maxGroupLevel");return(0,w.O9)(y)&&c>=y?(g=this._createButton(),this._subscribeOnClickAndEnterKey(g,a)):g=this._createButtonWithMenu({menu:{items:[{caption:v.A.format("dxFilterBuilder-addCondition"),click:a},{caption:v.A.format("dxFilterBuilder-addGroup"),click:i}],displayExpr:"caption",onItemClick(D){D.itemData.click()},cssClass:"dx-filterbuilder-add-condition"}}),g.addClass(wb).addClass("dx-icon-plus").addClass("dx-filterbuilder-action").attr("tabindex",0)}_createValueText(i,a,c){const g=this,y=(0,T.A)("<div>").html("&nbsp;").addClass("dx-filterbuilder-item-value-text").attr("tabindex",0).appendTo(c),D=i[2],Y=np(g._customOperations,i[1]);return!Y&&a.lookup?Nv(a,D,xe=>{e_(y,xe)}):(0,ye.z7)(Hv(a,D,Y)).done(xe=>{e_(y,xe,Y)}),g._subscribeOnClickAndEnterKey(y,xe=>{"keyup"===xe.type&&xe.stopPropagation(),g._createValueEditorWithEvents(i,a,c)}),y}_updateConditionValue(i,a,c){i[2]!==a&&(i[2]=a),c(),this._updateFilter()}_addDocumentKeyUp(i,a){let c=!1,g=!1;const y=m.A.getDocument(),D=xe=>{c||g?g=!1:a(xe)};P.A.on(y,"keyup",D);const Y=i.find("input");P.A.on(Y,"compositionstart",()=>{c=!0}),P.A.on(Y,"compositionend",()=>{c=!1,g=!0}),P.A.on(Y,"keydown",xe=>{229!==xe.which&&(g=!1)}),this._documentKeyUpHandler=D}_addDocumentClick(i,a){const c=m.A.getDocument(),g=y=>{this._isFocusOnEditorParts(i,y.target)||(P.A.trigger(i.find("input"),"change"),a())};P.A.on(c,"dxpointerdown",g),this._documentClickHandler=g}_isFocusOnEditorParts(i,a){const c=a||m.A.getActiveElement();return(0,T.A)(c).closest(i.children()).length||(0,T.A)(c).closest(".dx-dropdowneditor-overlay").length}_removeEvents(){const i=m.A.getDocument();(0,w.O9)(this._documentKeyUpHandler)&&P.A.off(i,"keyup",this._documentKeyUpHandler),(0,w.O9)(this._documentClickHandler)&&P.A.off(i,"dxpointerdown",this._documentClickHandler)}_dispose(){this._removeEvents(),super._dispose()}_createValueEditorWithEvents(i,a,c){let g=i[2];const y=()=>(c.empty(),this._removeEvents(),this._createValueText(i,a,c)),D=()=>{this._updateConditionValue(i,g,()=>{y()})},Y={value:""===g?null:g,filterOperation:vb(i),setValue(Le){g=null===Le?"":Le},closeEditor:D,text:c.text()};c.empty();const xe=this._createValueEditor(c,a,Y);P.A.trigger(xe.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(xe,D),this._addDocumentKeyUp(xe,Le=>{const st=(0,x.YD)(Le);if("tab"===st){if(this._isFocusOnEditorParts(xe))return;this._updateConditionValue(i,g,()=>{y(),Le.shiftKey&&P.A.trigger(c.prev(),"focus")})}"escape"===st&&P.A.trigger(y(),"focus"),"enter"===st&&this._updateConditionValue(i,g,()=>{P.A.trigger(y(),"focus")})}),this._fireContentReadyAction()}_createValueButton(i,a){const c=(0,T.A)("<div>").addClass("dx-filterbuilder-text").addClass("dx-filterbuilder-item-value");return this._createValueText(i,a,c),c}_createValueEditor(i,a,c){const g=(0,T.A)("<div>").attr("tabindex",0).appendTo(i),y=np(this._customOperations,c.filterOperation),D=y&&y.editorTemplate?y.editorTemplate:a.editorTemplate;return D?this._getTemplate(D).render({model:(0,C.X)({field:a},c),container:g}):this._editorFactory.createEditor.call(this,g,(0,C.X)({},a,c,{parentType:Cu})),g}_createPopupWithTreeView(i,a){const c=this,g=(0,T.A)("<div>").addClass(i.menu.cssClass).appendTo(a);this._createComponent(g,lu.A,{onHiding:i.menu.onHiding,onHidden:i.menu.onHidden,rtlEnabled:i.menu.rtlEnabled,position:i.menu.position,animation:i.menu.animation,contentTemplate(y){const D=(0,T.A)("<div>").appendTo(y);c._createComponent(D,Ta.A,i.menu),this.repaint()},_ignoreFunctionValueDeprecation:!0,maxHeight:()=>(0,Ob.J)(i.menu.position.of),visible:!0,focusStateEnabled:!1,preventScrollEvents:!1,hideOnParentScroll:this.option("closePopupOnTargetScroll"),hideOnOutsideClick:!0,onShown:i.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1,_wrapperClassExternal:i.menu.cssClass})}_subscribeOnClickAndEnterKey(i,a){P.A.on(i,"dxclick",a),P.A.on(i,"keyup",c=>{"enter"===(0,x.YD)(c)&&a(c)})}}(0,$l.A)("dxFilterBuilder",Ab);const ZE=Ab;var JE=p(9994);function oC(I){return!!(I.allowSearch??I.allowFiltering)}function sO(I,i){const{lookup:a}=I;return I.parseValue?a?I.parseValue.call(a,i):I.parseValue(i):i}Dt.registerModule("filterBuilder",{defaultOptions:()=>({filterBuilder:{groupOperationDescriptions:{and:v.A.format("dxFilterBuilder-and"),or:v.A.format("dxFilterBuilder-or"),notAnd:v.A.format("dxFilterBuilder-notAnd"),notOr:v.A.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:v.A.format("dxFilterBuilder-filterOperationBetween"),equal:v.A.format("dxFilterBuilder-filterOperationEquals"),notEqual:v.A.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:v.A.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:v.A.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:v.A.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:v.A.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:v.A.format("dxFilterBuilder-filterOperationStartsWith"),contains:v.A.format("dxFilterBuilder-filterOperationContains"),notContains:v.A.format("dxFilterBuilder-filterOperationNotContains"),endsWith:v.A.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:v.A.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:v.A.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}),views:{filterBuilderView:class nC extends ft.View{init(){super.init(),this._columnsController=this.getController("columns"),this._filterSyncController=this.getController("filterSync")}optionChanged(i){switch(i.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),i.handled=!0;break;default:super.optionChanged(i)}}_renderCore(){this._updatePopupOptions()}_updatePopupOptions(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()}_disposePopup(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)}_initPopup(){const i=this;i._disposePopup(),i._filterBuilderPopup=i._createComponent(i.element(),lu.A,(0,C.X)({title:v.A.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:a=>i._getPopupContentTemplate(a),onOptionChanged(a){"visible"===a.name&&i.option("filterBuilderPopup.visible",a.value)},toolbarItems:i._getPopupToolbarItems()},i.option("filterBuilderPopup"),{onHidden(){Se(i),i._disposePopup()}}))}_getPopupContentTemplate(i){const a=(0,T.A)(i),c=(0,T.A)("<div>").appendTo((0,T.A)(i));this._filterBuilder=this._createComponent(c,ZE,(0,C.X)({value:this.option("filterValue"),fields:this._columnsController.getFilteringColumns()},this.option("filterBuilder"),{customOperations:this._filterSyncController.getCustomFilterOperations()})),this._createComponent(a,JE.A,{direction:"both"})}_getPopupToolbarItems(){const i=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:v.A.format("OK"),onClick(){const a=i._filterBuilder.option("value");i.option("filterValue",a),i._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:v.A.format("Cancel"),onClick(){i._filterBuilderPopup.hide()}}}]}}}}),Dt.registerModule("filterPanel",{defaultOptions:()=>({filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:v.A.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:v.A.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:v.A.format("dxDataGrid-filterPanelFilterEnabledHint")}}}),views:{filterPanelView:class Mb extends ft.View{init(){this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._filterSyncController=this.getController("filterSync"),this._dataController.dataSourceChanged.add(()=>this.render())}isVisible(){return this.option("filterPanel.visible")&&this._dataController.dataSource()}_renderCore(){const i=this.element();if(i.empty(),!this._columnsController.getColumns().length)return;i.addClass(this.addWidgetPrefix("filter-panel"));const c=(0,T.A)("<div>").addClass(this.addWidgetPrefix("filter-panel-left")).appendTo(i);this._renderFilterBuilderText(i,c)}_renderFilterBuilderText(i,a){const c=this._getFilterElement(),g=this._getTextElement();if(this.option("filterValue")||this._filterValueBuffer){const y=this._getCheckElement(),D=this._getRemoveButtonElement();return a.append(y).append(c).append(g),void i.append(D)}a.append(c).append(g)}_getCheckElement(){const i=this,a=(0,T.A)("<div>").addClass(this.addWidgetPrefix("filter-panel-checkbox"));return i._createComponent(a,Zt.A,{value:i.option("filterPanel.filterEnabled"),onValueChanged(c){i.option("filterPanel.filterEnabled",c.value)}}),a.attr("title",this.option("filterPanel.texts.filterEnabledHint")),a}_getFilterElement(){const i=this,a=(0,T.A)("<div>").addClass("dx-icon-filter");return P.A.on(a,"click",()=>i._showFilterBuilder()),Ie("filterPanel",i,a,void 0,()=>i._showFilterBuilder()),i._addTabIndexToElement(a),a}_getTextElement(){const i=this,a=(0,T.A)("<div>").addClass(i.addWidgetPrefix("filter-panel-text"));let c;const g=i.option("filterValue");return g?(0,ye.z7)(i.getFilterText(g,this._filterSyncController.getCustomFilterOperations())).done(y=>{const D=i.option("filterPanel.customizeText");if(D){const Y=D({component:i.component,filterValue:g,text:y});"string"==typeof Y&&(y=Y)}a.text(y)}):(c=i.option("filterPanel.texts.createFilter"),a.text(c)),P.A.on(a,"click",()=>i._showFilterBuilder()),Ie("filterPanel",i,a,void 0,()=>i._showFilterBuilder()),i._addTabIndexToElement(a),a}_showFilterBuilder(){this.option("filterBuilderPopup.visible",!0)}_getRemoveButtonElement(){const i=this,a=()=>i.option("filterValue",null),c=(0,T.A)("<div>").addClass(i.addWidgetPrefix("filter-panel-clear-filter")).text(i.option("filterPanel.texts.clearFilter"));return P.A.on(c,"click",a),Ie("filterPanel",this,c,void 0,a),i._addTabIndexToElement(c),c}_addTabIndexToElement(i){if(!this.option("useLegacyKeyboardNavigation")){const a=this.option("tabindex")||0;i.attr("tabindex",a)}}optionChanged(i){switch(i.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),i.handled=!0;break;case"filterPanel":this._invalidate(),i.handled=!0;break;default:super.optionChanged(i)}}_getConditionText(i,a,c){let g=`[${i}] ${a}`;return(0,w.O9)(c)&&(g+=c),g}_getValueMaskedText(i){return Array.isArray(i)?`('${i.join("', '")}')`:` '${i}'`}_getValueText(i,a,c){const g=new ye.cY,y=a&&a.customizeText;if((0,w.O9)(c)||y)if(!y&&i.lookup)Nv(i,c,D=>{g.resolve(this._getValueMaskedText(D))});else{const D=Array.isArray(c)?c:Ot.getDisplayValue(i,c,null);(0,ye.z7)(Hv(i,D,a,"filterPanel")).done(Y=>{g.resolve(this._getValueMaskedText(Y))})}else g.resolve("");return g.promise()}getConditionText(i,a){const c=this,g=i[1],y=new ye.cY,D=np(a.customOperations,g);let Y;const xe=fb(i[0],a.columns),Le=xe.caption||"",st=i[2];return Y=D?D.caption||(0,xi.Bc)(D.name):kv(null===st?"="===g?"isblank":"isnotblank":g,a.filterOperationDescriptions),this._getValueText(xe,D,st).done(mt=>{y.resolve(c._getConditionText(Le,Y,mt))}),y}getGroupText(i,a,c){const g=this,y=new ye.cY,D=[],Y=Nd(i);return i.forEach(xe=>{Fa(xe)?D.push(g.getConditionText(xe,a)):jp(xe)&&D.push(g.getGroupText(xe,a,!0))}),ye.z7.apply(this,D).done(function(){let xe;for(var Le=arguments.length,st=new Array(Le),mt=0;mt<Le;mt++)st[mt]=arguments[mt];xe=Y.startsWith("!")?`${a.groupOperationDescriptions[`not${Y.substring(1,2).toUpperCase()}${Y.substring(2)}`].split(" ")[0]} ${st[0]}`:st.join(` ${a.groupOperationDescriptions[Y]} `),c&&(xe=`(${xe})`),y.resolve(xe)}),y}getFilterText(i,a){const c={customOperations:a,columns:this._columnsController.getFilteringColumns(),filterOperationDescriptions:this.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:this.option("filterBuilder.groupOperationDescriptions")};return Fa(i)?this.getConditionText(i,c):this.getGroupText(i,c)}}},extenders:{controllers:{data:I=>class extends I{optionChanged(i){"filterPanel"===i.name?(this._applyFilter(),i.handled=!0):super.optionChanged(i)}}}}}),Dt.registerModule("search",{defaultOptions:()=>({searchPanel:{visible:!1,width:160,placeholder:v.A.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}),extenders:{controllers:{data:I=>class extends I{optionChanged(i){switch(i.fullName){case"searchPanel.text":case"searchPanel":this._applyFilter(),i.handled=!0;break;default:super.optionChanged(i)}}publicMethods(){return super.publicMethods().concat(["searchByText"])}_calculateAdditionalFilter(){const i=super._calculateAdditionalFilter(),a=this.calculateSearchFilter(this.option("searchPanel.text"));return Ot.combineFilters([i,a])}searchByText(i){this.option("searchPanel.text",i)}calculateSearchFilter(i){let a,c;const g=this._columnsController.getColumns(),y=this.option("searchPanel.searchVisibleColumnsOnly");let D;const Y=[];if(!i)return null;function xe(Le){const st=(0,nn.Hz)(D.valueExpr);for(let mt=0;mt<Le.length;mt++){const on=st(Le[mt]);Y.push(c.createFilterExpression(on,null,"search"))}}for(a=0;a<g.length;a++)if(c=g[a],(!y||c.visible)&&oC(c)&&c.calculateFilterExpression){D=c.lookup;const Le=sO(c,i);D&&D.items?(0,Sd.A)(D.items).filter(c.createFilterExpression.call({dataField:D.displayExpr,dataType:D.dataType,calculateFilterExpression:c.calculateFilterExpression},Le,null,"search")).enumerate().done(xe):void 0!==Le&&Y.push(c.createFilterExpression(Le,null,"search"))}return 0===Y.length?["!"]:Ot.combineFilters(Y,"or")}}},views:{headerPanel:I=>class extends I{optionChanged(i){if("searchPanel"===i.name){if("searchPanel.text"===i.fullName){const a=this.getSearchTextEditor();a&&a.option("value",i.value)}else this._invalidate();i.handled=!0}else super.optionChanged(i)}_getToolbarItems(){const i=super._getToolbarItems();return this._prepareSearchItem(i)}_prepareSearchItem(i){const a=this,c=this._dataController,g=this.option("searchPanel");return g&&g.visible&&i.push({template(D,Y,xe){const Le=(0,T.A)("<div>").addClass(a.addWidgetPrefix("search-panel")).appendTo(xe);a._editorFactoryController.createEditor(Le,{width:g.width,placeholder:g.placeholder,parentType:"searchPanel",value:a.option("searchPanel.text"),updateValueTimeout:700,setValue(st){c.searchByText(st)},editorOptions:{inputAttr:{"aria-label":v.A.format(`${a.component.NAME}-ariaSearchInGrid`)}}}),a.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40}),i}getSearchTextEditor(){const i=this,a=i.element(),c=a.find(`.${i.addWidgetPrefix("search-panel")}`).filter(function(){return(0,T.A)(this).closest(`.${i.addWidgetPrefix("header-panel")}`).is(a)});return c.length?c.dxTextBox("instance"):null}isVisible(){const i=this.option("searchPanel");return super.isVisible()||!(null==i||!i.visible)}},rowsView:I=>class extends I{init(){super.init.apply(this,arguments),this._searchParams=[],this._dataController=this.getController("data")}dispose(){clearTimeout(this._highlightTimer),super.dispose()}_getFormattedSearchText(i,a){const c=sO(i,a),g=Ot.getFormatOptionsByColumn(i,"search");return Ot.formatValue(c,g)}_getStringNormalizer(){var i,a,c;const g=this.option("searchPanel.highlightCaseSensitive"),y=null===(i=this._dataController)||void 0===i||null===(a=i.getDataSource)||void 0===a?void 0:a.call(i),D=null==y||null===(c=y.loadOptions)||void 0===c||null===(c=c.call(y))||void 0===c?void 0:c.langParams;return Y=>(0,nn.ao)(Y,g,D)}_findHighlightingTextNodes(i,a,c){var g;const y=this;let Y,D=a.parent();const xe=this._getStringNormalizer(),Le=xe(c),st=[];if(D.length){if(i)if(i.groupIndex>=0&&!i.showWhenGrouped)Y=a;else{const mt=y._columnsController.getVisibleIndex(i.index);Y=D.children("td").eq(mt).find("*")}}else D=(0,T.A)("<div>").append(a);return Y=null!==(g=Y)&&void 0!==g&&g.length?Y:D.find("*"),Y.each((mt,on)=>{const wn=(0,T.A)(on).contents();for(let Kn=0;Kn<wn.length;Kn++){const Ai=wn.get(Kn);3===Ai.nodeType&&xe(Ai.textContent??Ai.nodeValue??"").includes(Le)&&st.push(Ai)}}),st}_highlightSearchTextCore(i,a){const g=(0,T.A)("<span>").addClass(this.addWidgetPrefix("search-text")),y=i.text(),D=i[0],Y=this._getStringNormalizer(),xe=Y(y).indexOf(Y(a));if(xe>=0)return D.textContent?D.textContent=y.substr(0,xe):D.nodeValue=y.substr(0,xe),i.after(g.text(y.substr(xe,a.length))),i=(0,T.A)(m.A.createTextNode(y.substr(xe+a.length))).insertAfter(g),this._highlightSearchTextCore(i,a)}_highlightSearchText(i,a,c){const g=this,y=this._getStringNormalizer();let D=g.option("searchPanel.text");a&&c&&(D=D&&g._getFormattedSearchText(c,D)),D&&g.option("searchPanel.highlightSearchText")&&g._findHighlightingTextNodes(c,i,D).forEach(xe=>{a?y((0,T.A)(xe).text())===y(D??"")&&(0,T.A)(xe).replaceWith((0,T.A)("<span>").addClass(g.addWidgetPrefix("search-text")).text((0,T.A)(xe).text())):g._highlightSearchTextCore((0,T.A)(xe),D)})}_renderCore(){const i=super._renderCore.apply(this,arguments);return(this.option().rowTemplate||this.option("dataRowTemplate"))&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(()=>{this._highlightSearchText(this.getTableElement())})):this._highlightSearchText(this.getTableElement())),i}_updateCell(i,a){const{column:c}=a,y="string"!==(c.lookup&&c.lookup.dataType||c.dataType);oC(c)&&!a.isOnForm&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(()=>{this._searchParams.forEach(D=>{this._highlightSearchText.apply(this,D)}),this._searchParams=[]})),this._searchParams.push([i,y,c])):this._highlightSearchText(i,y,c)),super._updateCell(i,a)}}}}});var rO=p(9066);class aO extends rO.A{_optionChanged(i){switch(i.name){case"pageIndex":{const a=this.option("pageIndexChanged");a&&a(i.value);break}case"pageSize":{const a=this.option("pageSizeChanged");a&&a(i.value);break}}super._optionChanged(i)}}var cr=p(5328),ha=p(5652),sC=p(1773),wT=p(6847);function yu(I,i){const a=function lO(I){var i;const a=(0,Ye.zk)();return I?null===(i=a.getComputedStyle)||void 0===i?void 0:i.call(a,I):null}(i)??{};return(0,wT.R)(a[I])}function rC(I){return yu("marginLeft",I)+yu("marginRight",I)+yu("width",I)}function c_(I){return yu("minWidth",I)}const cO=["contentTemplate","pagerProps"];const hO={},pO=I=>I&&(I.defaultProps?i=>(0,cr._B)((0,cr.sO)(2,I,(0,Oe.A)({},i))):I);let Gg=(()=>{class I extends ha.JP{constructor(a){super(a),this.parentRef=(0,cr._3)(),this.pageSizesRef=(0,cr._3)(),this.infoTextRef=(0,cr._3)(),this.pagesRef=(0,cr._3)(),this.actualIsLargeDisplayMode=!0,this.actualInfoTextVisible=!0,this.state={infoTextVisible:!0,isLargeDisplayMode:!0},this.subscribeToResize=this.subscribeToResize.bind(this),this.effectUpdateChildProps=this.effectUpdateChildProps.bind(this),this.updateAdaptivityProps=this.updateAdaptivityProps.bind(this)}createEffects(){return[new ha.Lt(this.subscribeToResize,[this.state.infoTextVisible,this.state.isLargeDisplayMode]),new ha.Lt(this.effectUpdateChildProps,[this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])]}updateEffects(){var a,c;null===(a=this._effects[0])||void 0===a||a.update([this.state.infoTextVisible,this.state.isLargeDisplayMode]),null===(c=this._effects[1])||void 0===c||c.update([this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])}subscribeToResize(){const a=()=>{this.parentWidth>0&&this.updateAdaptivityProps()};return sC.A.add(a),()=>{sC.A.remove(a)}}effectUpdateChildProps(){this.parentWidth>0&&this.updateAdaptivityProps()}get contentAttributes(){const{className:a,displayMode:c,gridCompatibility:g,hasKnownLastPage:y,infoText:D,label:Y,lightModeEnabled:xe,maxPagesCount:Le,onKeyDown:st,pageCount:mt,pageIndex:on,pageIndexChange:wn,pageSize:Kn,pageSizeChange:Ai,pageSizes:no,pagesCountText:Yo,pagesNavigatorVisible:ps,rtlEnabled:Ls,showInfo:_r,showNavigationButtons:Sr,showPageSizes:Dr,totalCount:ia,visible:rl}=this.props.pagerProps;return(0,Oe.A)({},this.restAttributes,{pageSize:Kn,pageIndex:on,pageIndexChange:wn,pageSizeChange:Ai,gridCompatibility:g,className:a,showInfo:_r,infoText:D,lightModeEnabled:xe,displayMode:c,maxPagesCount:Le,pageCount:mt,pagesCountText:Yo,visible:rl,hasKnownLastPage:y,pagesNavigatorVisible:ps,showPageSizes:Dr,pageSizes:no,rtlEnabled:Ls,showNavigationButtons:Sr,totalCount:ia,onKeyDown:st,label:Y})}get parentWidth(){return this.parentRef.current?rC(this.parentRef.current):0}updateAdaptivityProps(){const a=function uO(I){let{info:i,pageSizes:a,pages:c,parent:g}=I;const y=function ST(I){const i=yu("paddingLeft",I)+yu("paddingRight",I);return yu("width",I)-i}(g),D=rC(a),Y=rC(i),xe=rC(c);return{parent:y,pageSizes:D,info:Y+yu("marginLeft",i)+yu("marginRight",i),pages:xe}}({parent:this.parentRef.current,pageSizes:this.pageSizesRef.current,info:this.infoTextRef.current,pages:this.pagesRef.current});if(this.actualInfoTextVisible!==this.state.infoTextVisible||this.actualIsLargeDisplayMode!==this.state.isLargeDisplayMode)return;const c=!(0,w.O9)(this.elementsWidth);c&&(this.elementsWidth={}),(c||this.state.isLargeDisplayMode)&&(this.elementsWidth.pageSizes=a.pageSizes,this.elementsWidth.pages=a.pages),(c||this.state.infoTextVisible)&&(this.elementsWidth.info=a.info),this.actualIsLargeDisplayMode=function jg(I){let{pageSizes:i,pages:a,parent:c}=I;return c-(i+a)>0}((0,Oe.A)({parent:a.parent},{pageSizes:this.elementsWidth.pageSizes,pages:this.elementsWidth.pages})),this.actualInfoTextVisible=function d_(I){let{info:i,pageSizes:a,pages:c,parent:g}=I;return g-(a+c+i)>0}((0,Oe.A)({},a,{info:this.elementsWidth.info})),this.setState(g=>({infoTextVisible:this.actualInfoTextVisible})),this.setState(g=>({isLargeDisplayMode:this.actualIsLargeDisplayMode}))}get restAttributes(){return(0,Ue.A)(this.props,cO)}render(){const a=this.props;return(I=>{let{contentAttributes:i,infoTextRef:a,infoTextVisible:c,isLargeDisplayMode:g,pageSizesRef:y,pagesRef:D,parentRef:Y,props:{contentTemplate:xe}}=I;return xe((0,Oe.A)({rootElementRef:Y,pageSizesRef:y,infoTextRef:a,pagesRef:D,infoTextVisible:c,isLargeDisplayMode:g},i))})({props:(0,Oe.A)({},a,{contentTemplate:pO(a.contentTemplate)}),infoTextVisible:this.state.infoTextVisible,isLargeDisplayMode:this.state.isLargeDisplayMode,parentRef:this.parentRef,pageSizesRef:this.pageSizesRef,infoTextRef:this.infoTextRef,pagesRef:this.pagesRef,contentAttributes:this.contentAttributes,parentWidth:this.parentWidth,updateAdaptivityProps:this.updateAdaptivityProps,restAttributes:this.restAttributes})}}return I.defaultProps=hO,I})();const aC={gridCompatibility:!0,showInfo:!1,displayMode:"adaptive",maxPagesCount:10,pageCount:10,visible:!0,hasKnownLastPage:!0,pagesNavigatorVisible:"auto",showPageSizes:!0,pageSizes:Object.freeze([5,10]),showNavigationButtons:!1,totalCount:0,get label(){return v.A.format("dxPager-ariaLabel")}},u_=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(aC),Object.getOwnPropertyDescriptors({defaultPageSize:5,pageSizeChange:()=>{},defaultPageIndex:1,pageIndexChange:()=>{}}))),Za=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(aC),Object.getOwnPropertyDescriptors({pageSize:5,pageIndex:1}))),DT=["infoText","pageCount","pageIndex","rootElementRef","totalCount"],op={get pageIndex(){return Za.pageIndex},get pageCount(){return Za.pageCount},get totalCount(){return Za.totalCount}};let fO=(()=>{class I extends ha.eh{constructor(a){super(a),this.state={}}get infoText(){return(this.props.infoText??"")||v.A.getFormatter("dxPager-infoText")()}get text(){const{pageCount:a,pageIndex:c,totalCount:g}=this.props;return(0,rn.GP)(this.infoText,(c+1).toString(),a.toString(),g.toString())}get restAttributes(){return(0,Ue.A)(this.props,DT)}render(){return(I=>{let{props:{rootElementRef:i},text:a}=I;return(0,cr.bF)(1,"div","dx-info",a,0,null,null,i)})({props:(0,Oe.A)({},this.props),infoText:this.infoText,text:this.text,restAttributes:this.restAttributes})}}return I.defaultProps=op,I})();var Pb=p(2047);const zf=(0,ha.q6)(void 0),Rb=["children","className","label","onClick","selected","tabIndex"],Wg={className:"",label:"",tabIndex:0,selected:!1};let Kf=(()=>{class I extends ha.JP{get keyboardContext(){return this.context[zf.id]?this.context[zf.id]:zf.defaultValue}constructor(a){super(a),this.state={},this.widgetRef=(0,cr._3)(),this.keyboardEffect=this.keyboardEffect.bind(this),this.subscribeToClick=this.subscribeToClick.bind(this)}createEffects(){return[new ha.Lt(this.keyboardEffect,[this.keyboardContext,this.props.onClick]),new ha.Lt(this.subscribeToClick,[this.props.onClick])]}updateEffects(){var a,c;null===(a=this._effects[0])||void 0===a||a.update([this.keyboardContext,this.props.onClick]),null===(c=this._effects[1])||void 0===c||c.update([this.props.onClick])}keyboardEffect(){return this.keyboardContext.registerKeyboardAction(this.widgetRef.current,this.props.onClick)}subscribeToClick(){return(0,Pb.Ao)(this.widgetRef.current,this.props.onClick)}get restAttributes(){return(0,Ue.A)(this.props,Rb)}render(){return(I=>{let{props:{children:i,className:a,label:c,selected:g,tabIndex:y},widgetRef:D}=I;return(0,cr.bF)(1,"div",a,i,0,{tabIndex:y,role:"button","aria-label":c,"aria-current":g?"page":void 0},null,D)})({props:(0,Oe.A)({},this.props),widgetRef:this.widgetRef,keyboardContext:this.keyboardContext,restAttributes:this.restAttributes})}}return I.defaultProps=Wg,I})();const cC="dx-pager",mO="dx-light-mode",_O="dx-selection",Xf="dx-first-child";var p_=p(6628);const CO=["className","index","onClick","selected"],bO={index:0,selected:!1,className:"dx-page"};let Fb=(()=>{class I extends ha.eh{constructor(a){super(a),this.state={}}get label(){return(0,rn.GP)(v.A.getFormatter("dxPager-page"),this.value)}get value(){return this.props.index+1}get className(){const{selected:a}=this.props;return(0,p_.g)({[`${this.props.className}`]:!!this.props.className,[_O]:!!a})}get restAttributes(){return(0,Ue.A)(this.props,CO)}render(){return(I=>{let{className:i,label:a,props:{onClick:c,selected:g},value:y}=I;return(0,cr.sO)(2,Kf,{className:i,label:a,onClick:c,selected:g,children:y})})({props:(0,Oe.A)({},this.props),label:this.label,value:this.value,className:this.className,restAttributes:this.restAttributes})}}return I.defaultProps=bO,I})();var bu=p(1848);const xO=["pageIndexes"],EO=["maxPagesCount","pageCount","pageIndex","pageIndexChange"];function Lb(I,i,a){return 1===I?"high":I+i===a-1?"low":"both"}function Yf(I,i,a){let c=[],g=[];switch(a){case"none":c=[...I];break;case"both":c=[0,"low",...I,"high",i-1],g=I.slice(1,-1);break;case"high":c=[0,...I,"high",i-1],g=I.slice(0,-1);break;case"low":c=[0,"low",...I,i-1],g=I.slice(1)}return{slidingWindowIndexes:I,indexesForReuse:g,pageIndexes:c}}function Vb(I,i,a,c){const g=[];for(let y=0;y<i;y+=1)g.push(y+I);return Yf(g,a,c)}const Hb={get pageIndex(){return Za.pageIndex},get maxPagesCount(){return Za.maxPagesCount},get pageCount(){return Za.pageCount}};let wO=(()=>{class I extends ha.eh{get config(){return this.context[bu.Q.id]?this.context[bu.Q.id]:bu.Q.defaultValue}constructor(a){super(a),this.state={},this.canReuseSlidingWindow=this.canReuseSlidingWindow.bind(this),this.generatePageIndexes=this.generatePageIndexes.bind(this),this.isSlidingWindowMode=this.isSlidingWindowMode.bind(this),this.onPageClick=this.onPageClick.bind(this)}get slidingWindowState(){return this.slidingWindowStateHolder||{indexesForReuse:[],slidingWindowIndexes:[]}}canReuseSlidingWindow(a,c){const{indexesForReuse:g}=this.slidingWindowState,y=g.slice(-1)[0]<a-1,D=g.includes(c);return y&&D}generatePageIndexes(){const{pageCount:a,pageIndex:c}=this.props;let g=0;const{slidingWindowIndexes:y}=this.slidingWindowState;g=c===y[0]?c-1:c===y[y.length-1]?c+2-4:c<4?1:c>=a-4?a-4-1:c-1;const Y=Vb(g,4,a,Lb(g,4,a)),{pageIndexes:xe}=Y,Le=(0,Ue.A)(Y,xO);return this.slidingWindowStateHolder=Le,xe}isSlidingWindowMode(){const{maxPagesCount:a,pageCount:c}=this.props;return c<=4||c<=a}onPageClick(a){this.props.pageIndexChange(a)}get pageIndexes(){const{pageCount:a}=this.props;if(this.isSlidingWindowMode())return Vb(0,a,a,"none").pageIndexes;if(this.canReuseSlidingWindow(a,this.props.pageIndex)){const{slidingWindowIndexes:c}=this.slidingWindowState;return Yf(c,a,Lb(c[0],4,a)).pageIndexes}return this.generatePageIndexes()}get pages(){var a;const{pageIndex:c}=this.props,g=D=>{const Y="low"===D||"high"===D?null:{index:D,onClick:()=>this.onPageClick(D),selected:c===D};return{key:D.toString(),pageProps:Y}};return(null!==(a=this.config)&&void 0!==a&&a.rtlEnabled?[...this.pageIndexes].reverse():this.pageIndexes).map(D=>g(D))}get restAttributes(){return(0,Ue.A)(this.props,EO)}render(){return(I=>{let{pages:i}=I;const a=i.map(c=>{let{key:g,pageProps:y}=c;return y?(0,cr.sO)(2,Fb,{index:y.index,selected:y.selected,onClick:y.onClick},g):(0,cr.bF)(1,"div","dx-separator",". . .",16,null,g)});return(0,cr.nl)(a,0)})({props:(0,Oe.A)({},this.props),config:this.config,pageIndexes:this.pageIndexes,pages:this.pages,restAttributes:this.restAttributes})}}return I.defaultProps=Hb,I})();var $b=p(807),dC=p(1257);const Kg={hoverStateEnabled:!0,activeStateEnabled:!0,get focusStateEnabled(){return"desktop"===jl.A.real().deviceType&&!jl.A.isSimulator()}},g_={label:"",get labelMode(){return(0,Yr.gx)((0,Yr.ss)())?"floating":"static"}},SO=["accessKey","activeStateEnabled","className","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","inputAttr","invalidValueMessage","isDirty","isValid","label","labelMode","max","min","mode","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","showSpinButtons","step","tabIndex","useLargeSpinButtons","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],Jl=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(dC.eH),Object.getOwnPropertyDescriptors({defaultValue:0,isReactComponentWrapper:!0}))),TO={get defaultValue(){return Jl.defaultValue},get readOnly(){return Jl.readOnly},get name(){return Jl.name},get validationError(){return Jl.validationError},get validationErrors(){return Jl.validationErrors},get validationMessageMode(){return Jl.validationMessageMode},get validationMessagePosition(){return Jl.validationMessagePosition},get validationStatus(){return Jl.validationStatus},get isValid(){return Jl.isValid},get isDirty(){return Jl.isDirty},get inputAttr(){return Jl.inputAttr},get className(){return Jl.className},get activeStateEnabled(){return Kg.activeStateEnabled},get disabled(){return Jl.disabled},get focusStateEnabled(){return Kg.focusStateEnabled},get hoverStateEnabled(){return Kg.hoverStateEnabled},get tabIndex(){return Jl.tabIndex},get visible(){return Jl.visible},get label(){return g_.label},get labelMode(){return g_.labelMode},isReactComponentWrapper:!0};let AO=(()=>{class I extends ha.eh{constructor(a){super(a),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return(0,Oe.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){const a=(0,Oe.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,Ue.A)(a,SO)}render(){return(I=>{let{componentProps:i,restAttributes:a}=I;return(0,cr._B)((0,cr.sO)(2,$b.FU,(0,Oe.A)({componentType:Kl.A,componentProps:i,templateNames:[]},a)))})({props:(0,Oe.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return I.defaultProps=TO,I})();function Ub(I,i){return I+10*Math.max(...i).toString().length}const jb=["inputAttr","pageCount","pageIndex","pageIndexChange","pagesCountText"],MO={inputAttr:Object.freeze({"aria-label":v.A.format("dxPager-ariaPageNumber")})},PO={get pageIndex(){return Za.pageIndex},get pageCount(){return Za.pageCount},get inputAttr(){return MO.inputAttr}};let Gb=(()=>{class I extends ha.JP{constructor(a){super(a),this.pageIndexRef=(0,cr._3)(),this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this),this.selectLastPageIndex=this.selectLastPageIndex.bind(this),this.valueChange=this.valueChange.bind(this)}createEffects(){return[new ha.Lt(this.updateWidth,[this.state.minWidth])]}updateEffects(){var a;null===(a=this._effects[0])||void 0===a||a.update([this.state.minWidth])}updateWidth(){var a;const c=null===(a=this.pageIndexRef.current)||void 0===a?void 0:a.querySelector(".dx-page-index");this.setState(g=>({minWidth:c&&c_(c)||g.minWidth}))}get value(){return this.props.pageIndex+1}get width(){const{pageCount:a}=this.props;return Ub(this.state.minWidth,[a])}get pagesCountText(){return(this.props.pagesCountText??"")||v.A.getFormatter("dxPager-pagesCountText")()}selectLastPageIndex(){this.props.pageIndexChange(this.props.pageCount-1)}valueChange(a){this.props.pageIndexChange(a-1)}get restAttributes(){return(0,Ue.A)(this.props,jb)}render(){return(I=>{let{pageIndexRef:i,pagesCountText:a,props:{inputAttr:c,pageCount:g},selectLastPageIndex:y,value:D,valueChange:Y,width:xe}=I;return(0,cr.bF)(1,"div","dx-light-pages",[(0,cr.sO)(2,AO,{className:"dx-page-index",min:1,max:Math.max(g,D),width:xe,value:D,valueChange:Y,inputAttr:c}),(0,cr.bF)(1,"span","dx-info  dx-info-text",a,0),(0,cr.sO)(2,Fb,{className:"dx-pages-count",selected:!1,index:g-1,onClick:y})],4,null,null,i)})({props:(0,Oe.A)({},this.props),pageIndexRef:this.pageIndexRef,value:this.value,width:this.width,pagesCountText:this.pagesCountText,selectLastPageIndex:this.selectLastPageIndex,valueChange:this.valueChange,restAttributes:this.restAttributes})}}return I.defaultProps=PO,I})();const Wb=["hasKnownLastPage","isLargeDisplayMode","maxPagesCount","pageCount","pageIndex","pageIndexChange","pagesCountText","showNavigationButtons","totalCount"],$c={nextEnabledClass:"dx-navigate-button dx-next-button",prevEnabledClass:"dx-navigate-button dx-prev-button",nextDisabledClass:"dx-button-disable dx-navigate-button dx-next-button",prevDisabledClass:"dx-button-disable dx-navigate-button dx-prev-button"},Wp={next:"prev",prev:"next"},HT={get pageIndex(){return Za.pageIndex},get maxPagesCount(){return Za.maxPagesCount},get pageCount(){return Za.pageCount},get hasKnownLastPage(){return Za.hasKnownLastPage},get showNavigationButtons(){return Za.showNavigationButtons},get totalCount(){return Za.totalCount},get isLargeDisplayMode(){return true}};let Xb=(()=>{class I extends ha.eh{get config(){return this.context[bu.Q.id]?this.context[bu.Q.id]:bu.Q.defaultValue}constructor(a){super(a),this.state={},this.__getterCache={},this.pageIndexChange=this.pageIndexChange.bind(this),this.getButtonProps=this.getButtonProps.bind(this),this.canNavigateToPage=this.canNavigateToPage.bind(this),this.getNextPageIndex=this.getNextPageIndex.bind(this),this.canNavigateTo=this.canNavigateTo.bind(this),this.navigateToPage=this.navigateToPage.bind(this)}pageIndexChange(a){this.canNavigateToPage(a)&&this.props.pageIndexChange(a)}getButtonProps(a){var c;const g=null!==(c=this.config)&&void 0!==c&&c.rtlEnabled?Wp[a]:a,y=this.canNavigateTo(g);return{className:$c[`${a}${y?"Enabled":"Disabled"}Class`],tabIndex:y?0:-1,navigate:()=>this.navigateToPage(g)}}canNavigateToPage(a){return this.props.hasKnownLastPage?a>=0&&a<=this.props.pageCount-1:a>=0}getNextPageIndex(a){return this.props.pageIndex+function _c(I){return"next"===I?1:-1}(a)}canNavigateTo(a){return this.canNavigateToPage(this.getNextPageIndex(a))}navigateToPage(a){this.pageIndexChange(this.getNextPageIndex(a))}get renderPrevButton(){const{isLargeDisplayMode:a,showNavigationButtons:c}=this.props;return!a||c}get renderNextButton(){return this.renderPrevButton||!this.props.hasKnownLastPage}get prevButtonProps(){return void 0!==this.__getterCache.prevButtonProps?this.__getterCache.prevButtonProps:this.__getterCache.prevButtonProps=this.getButtonProps("prev")}get nextButtonProps(){return void 0!==this.__getterCache.nextButtonProps?this.__getterCache.nextButtonProps:this.__getterCache.nextButtonProps=this.getButtonProps("next")}get restAttributes(){return(0,Ue.A)(this.props,Wb)}componentWillUpdate(a,c,g){(this.context[bu.Q.id]!==g[bu.Q.id]||this.props.hasKnownLastPage!==a.hasKnownLastPage||this.props.pageCount!==a.pageCount||this.props.pageIndex!==a.pageIndex||this.props.pageIndexChange!==a.pageIndexChange)&&(this.__getterCache.prevButtonProps=void 0),(this.context[bu.Q.id]!==g[bu.Q.id]||this.props.hasKnownLastPage!==a.hasKnownLastPage||this.props.pageCount!==a.pageCount||this.props.pageIndex!==a.pageIndex||this.props.pageIndexChange!==a.pageIndexChange)&&(this.__getterCache.nextButtonProps=void 0)}render(){return(I=>{let{nextButtonProps:i,pageIndexChange:a,prevButtonProps:c,props:{isLargeDisplayMode:g,maxPagesCount:y,pageCount:D,pageIndex:Y,pagesCountText:xe},renderNextButton:Le,renderPrevButton:st}=I;return(0,cr.nl)([st&&(0,cr.sO)(2,Kf,{label:v.A.getFormatter("dxPager-prevPage")(),className:c.className,tabIndex:c.tabIndex,onClick:c.navigate}),g&&(0,cr.sO)(2,wO,{maxPagesCount:y,pageCount:D,pageIndex:Y,pageIndexChange:a}),!g&&(0,cr.sO)(2,Gb,{pageCount:D,pageIndex:Y,pageIndexChange:a,pagesCountText:xe}),Le&&(0,cr.sO)(2,Kf,{label:v.A.getFormatter("dxPager-nextPage")(),className:i.className,tabIndex:i.tabIndex,onClick:i.navigate})],0)})({props:(0,Oe.A)({},this.props),config:this.config,pageIndexChange:this.pageIndexChange,renderPrevButton:this.renderPrevButton,renderNextButton:this.renderNextButton,prevButtonProps:this.prevButtonProps,nextButtonProps:this.nextButtonProps,restAttributes:this.restAttributes})}}return I.defaultProps=HT,I})();const Yb=["accessKey","activeStateEnabled","className","dataSource","defaultValue","disabled","displayExpr","focusStateEnabled","height","hint","hoverStateEnabled","inputAttr","isDirty","isValid","label","labelMode","name","onClick","onFocusIn","onKeyDown","placeholder","readOnly","rtlEnabled","searchEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","valueExpr","visible","width"],Ja=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(dC.eH),Object.getOwnPropertyDescriptors({placeholder:"",hoverStateEnabled:!0,searchEnabled:!1,defaultValue:null,isReactComponentWrapper:!0}))),Qb={get placeholder(){return Ja.placeholder},get hoverStateEnabled(){return Kg.hoverStateEnabled},get searchEnabled(){return Ja.searchEnabled},get defaultValue(){return Ja.defaultValue},get readOnly(){return Ja.readOnly},get name(){return Ja.name},get validationError(){return Ja.validationError},get validationErrors(){return Ja.validationErrors},get validationMessageMode(){return Ja.validationMessageMode},get validationMessagePosition(){return Ja.validationMessagePosition},get validationStatus(){return Ja.validationStatus},get isValid(){return Ja.isValid},get isDirty(){return Ja.isDirty},get inputAttr(){return Ja.inputAttr},get className(){return Ja.className},get activeStateEnabled(){return Kg.activeStateEnabled},get disabled(){return Ja.disabled},get focusStateEnabled(){return Kg.focusStateEnabled},get tabIndex(){return Ja.tabIndex},get visible(){return Ja.visible},get label(){return g_.label},get labelMode(){return g_.labelMode},isReactComponentWrapper:!0};let FO=(()=>{class I extends ha.eh{constructor(a){super(a),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return(0,Oe.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){const a=(0,Oe.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,Ue.A)(a,Yb)}render(){return(I=>{let{componentProps:i,restAttributes:a}=I;return(0,cr._B)((0,cr.sO)(2,$b.FU,(0,Oe.A)({componentType:Ze.A,componentProps:i,templateNames:["dropDownButtonTemplate","groupTemplate","itemTemplate"]},a)))})({props:(0,Oe.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return I.defaultProps=Qb,I})();const Zb=["inputAttr","pageSize","pageSizeChange","pageSizes","parentRef"],NO={inputAttr:Object.freeze({"aria-label":v.A.format("dxPager-ariaPageSize")})},UT={get pageSize(){return Za.pageSize},get inputAttr(){return NO.inputAttr}};let Jb=(()=>{class I extends ha.JP{constructor(a){super(a),this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this)}createEffects(){return[new ha.Lt(this.updateWidth,[this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes,this.props.inputAttr])]}updateEffects(){var a;null===(a=this._effects[0])||void 0===a||a.update([this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes,this.props.inputAttr])}updateWidth(){this.setState(a=>({minWidth:c_(this.props.parentRef.current)||a.minWidth}))}get width(){return Ub(this.state.minWidth,this.props.pageSizes.map(a=>a.value))}get restAttributes(){return(0,Ue.A)(this.props,Zb)}render(){return(I=>{let{props:{inputAttr:i,pageSize:a,pageSizeChange:c,pageSizes:g},width:y}=I;return(0,cr.sO)(2,FO,{displayExpr:"text",valueExpr:"value",dataSource:g,value:a,valueChange:c,width:y,inputAttr:i})})({props:(0,Oe.A)({},this.props),width:this.width,restAttributes:this.restAttributes})}}return I.defaultProps=UT,I})();const qb=["pageSize","pageSizeChange","pageSizes"],zp={get pageSize(){return Za.pageSize}};let LO=(()=>{class I extends ha.eh{constructor(a){super(a),this.state={},this.__getterCache={},this.onPageSizeChange=this.onPageSizeChange.bind(this)}get pageSizesText(){return void 0!==this.__getterCache.pageSizesText?this.__getterCache.pageSizesText:this.__getterCache.pageSizesText=(()=>{const{pageSize:a,pageSizes:c}=this.props;return c.map((g,y)=>{let{text:D,value:Y}=g;const xe=Y===a;return{className:(0,p_.g)({[xe?"dx-page-size dx-selection":"dx-page-size"]:!0,[Xf]:0===y}),click:this.onPageSizeChange(Y),label:(0,rn.GP)(v.A.getFormatter("dxPager-pageSize"),Y||v.A.getFormatter("dxPager-pageSizesAllText")),text:D}})})()}onPageSizeChange(a){return()=>(this.props.pageSizeChange(a),this.props.pageSize)}get restAttributes(){return(0,Ue.A)(this.props,qb)}componentWillUpdate(a,c,g){(this.props.pageSize!==a.pageSize||this.props.pageSizes!==a.pageSizes||this.props.pageSizeChange!==a.pageSizeChange)&&(this.__getterCache.pageSizesText=void 0)}render(){return(I=>{let{pageSizesText:i}=I;return(0,cr.nl)(i.map(a=>{let{className:c,click:g,label:y,text:D}=a;return(0,cr.sO)(2,Kf,{className:c,label:y,onClick:g,children:D},D)}),0)})({props:(0,Oe.A)({},this.props),pageSizesText:this.pageSizesText,restAttributes:this.restAttributes})}}return I.defaultProps=zp,I})();const hC=["isLargeDisplayMode","pageSize","pageSizeChange","pageSizes","rootElementRef"],VO={get pageSize(){return Za.pageSize},get pageSizes(){return Za.pageSizes},get isLargeDisplayMode(){return true}};let ox=(()=>{class I extends ha.JP{constructor(a){super(a),this.state={},this.htmlRef=(0,cr._3)(),this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this)}createEffects(){return[new ha.Lt(this.setRootElementRef,[])]}setRootElementRef(){const{rootElementRef:a}=this.props;a&&(a.current=this.htmlRef.current)}get normalizedPageSizes(){return void 0!==this.__getterCache.normalizedPageSizes?this.__getterCache.normalizedPageSizes:this.__getterCache.normalizedPageSizes=(()=>{const{pageSizes:a}=this.props;return a.map(c=>"all"===c||0===c?{text:v.A.getFormatter("dxPager-pageSizesAllText")(),value:0}:{text:String(c),value:c})})()}get restAttributes(){return(0,Ue.A)(this.props,hC)}componentWillUpdate(a,c,g){super.componentWillUpdate(),this.props.pageSizes!==a.pageSizes&&(this.__getterCache.normalizedPageSizes=void 0)}render(){return(I=>{let{htmlRef:i,normalizedPageSizes:a,props:{isLargeDisplayMode:c,pageSize:g,pageSizeChange:y}}=I;return(0,cr.bF)(1,"div","dx-page-sizes",[c&&(0,cr.sO)(2,LO,{pageSizes:a,pageSize:g,pageSizeChange:y}),!c&&(0,cr.sO)(2,Jb,{parentRef:i,pageSizes:a,pageSize:g,pageSizeChange:y})],0,null,null,i)})({props:(0,Oe.A)({},this.props),htmlRef:this.htmlRef,normalizedPageSizes:this.normalizedPageSizes,restAttributes:this.restAttributes})}}return I.defaultProps=VO,I})();var sx=p(2673);const HO=["className","displayMode","gridCompatibility","hasKnownLastPage","infoText","infoTextRef","infoTextVisible","isLargeDisplayMode","label","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pageSizesRef","pagesCountText","pagesNavigatorVisible","pagesRef","rootElementRef","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"],UO=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(Za),Object.getOwnPropertyDescriptors({infoTextVisible:!0,isLargeDisplayMode:!0})));let GT=(()=>{class I extends ha.JP{constructor(a){super(a),this.state={},this.widgetRootElementRef=(0,cr._3)(),this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this),this.createFakeInstance=this.createFakeInstance.bind(this)}createEffects(){return[new ha.Lt(this.setRootElementRef,[])]}getChildContext(){return(0,Oe.A)({},this.context,{[zf.id]:this.keyboardAction||zf.defaultValue})}setRootElementRef(){const{rootElementRef:a}=this.props;a&&(a.current=this.widgetRootElementRef.current)}createFakeInstance(){return{option:()=>!1,element:()=>this.widgetRootElementRef.current,_createActionByOption:()=>a=>{var c,g;null===(c=(g=this.props).onKeyDown)||void 0===c||c.call(g,a)}}}get keyboardAction(){return void 0!==this.__getterCache.keyboardAction?this.__getterCache.keyboardAction:this.__getterCache.keyboardAction={registerKeyboardAction:(a,c)=>Re("pager",this.createFakeInstance(),a,void 0,c)}}get infoVisible(){const{infoTextVisible:a,showInfo:c}=this.props;return c&&a}get pageIndexSelectorVisible(){return 0!==this.props.pageSize}get normalizedDisplayMode(){const{displayMode:a,lightModeEnabled:c}=this.props;return"adaptive"===a&&void 0!==c?c?"compact":"full":a}get pagesContainerVisible(){return!!this.props.pagesNavigatorVisible&&this.props.pageCount>0}get pagesContainerVisibility(){if("auto"===this.props.pagesNavigatorVisible&&1===this.props.pageCount&&this.props.hasKnownLastPage)return"hidden"}get isLargeDisplayMode(){const a=this.normalizedDisplayMode;let c=!1;return c="adaptive"===a?this.props.isLargeDisplayMode:"full"===a,c}get classes(){return(0,p_.g)({[`${this.props.className}`]:!!this.props.className,[cC]:!0,[mO]:!this.isLargeDisplayMode})}get aria(){return{role:"navigation",label:this.props.label}}get restAttributes(){return(0,Ue.A)(this.props,HO)}componentWillUpdate(a,c,g){super.componentWillUpdate(),this.props.onKeyDown!==a.onKeyDown&&(this.__getterCache.keyboardAction=void 0)}render(){return(I=>{let{aria:i,classes:a,infoVisible:c,isLargeDisplayMode:g,pageIndexSelectorVisible:y,pagesContainerVisibility:D,pagesContainerVisible:Y,props:{hasKnownLastPage:xe,infoText:Le,infoTextRef:st,maxPagesCount:mt,pageCount:on,pageIndex:wn,pageIndexChange:Kn,pageSize:Ai,pageSizeChange:no,pageSizes:Yo,pageSizesRef:ps,pagesCountText:Ls,pagesRef:_r,rtlEnabled:Sr,showNavigationButtons:Dr,showPageSizes:ia,totalCount:rl,visible:Hd},restAttributes:cS,widgetRootElementRef:dS}=I;return(0,cr._B)((0,cr.sO)(2,sx.x0,(0,Oe.A)({rootElementRef:dS,rtlEnabled:Sr,classes:a,visible:Hd,aria:i},cS,{children:[ia&&(0,cr.sO)(2,ox,{rootElementRef:ps,isLargeDisplayMode:g,pageSize:Ai,pageSizeChange:no,pageSizes:Yo}),Y&&(0,cr.bF)(1,"div","dx-pages",[c&&(0,cr.sO)(2,fO,{rootElementRef:st,infoText:Le,pageCount:on,pageIndex:wn,totalCount:rl}),y&&(0,cr.bF)(1,"div","dx-page-indexes",(0,cr.sO)(2,Xb,{hasKnownLastPage:xe,isLargeDisplayMode:g,maxPagesCount:mt,pageCount:on,pageIndex:wn,pageIndexChange:Kn,pagesCountText:Ls,showNavigationButtons:Dr,totalCount:rl}),2,null,null,_r)],0,{style:(0,ha.gs)({visibility:D})})]})))})({props:(0,Oe.A)({},this.props),widgetRootElementRef:this.widgetRootElementRef,keyboardAction:this.keyboardAction,infoVisible:this.infoVisible,pageIndexSelectorVisible:this.pageIndexSelectorVisible,pagesContainerVisible:this.pagesContainerVisible,pagesContainerVisibility:this.pagesContainerVisibility,isLargeDisplayMode:this.isLargeDisplayMode,classes:this.classes,aria:this.aria,restAttributes:this.restAttributes})}}return I.defaultProps=UO,I})();const jO=["className","defaultPageIndex","defaultPageSize","displayMode","gridCompatibility","hasKnownLastPage","infoText","label","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pagesCountText","pagesNavigatorVisible","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"];let f_=(()=>{class I extends ha.oe{constructor(a){super(a),this.__getterCache={},this.state={pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.props.defaultPageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.props.defaultPageIndex},this.pageIndexChange=this.pageIndexChange.bind(this),this.pageSizeChange=this.pageSizeChange.bind(this)}createEffects(){return[(0,ha.h2)()]}pageIndexChange(a){if(this.props.gridCompatibility){let c;this.setState(g=>(c=a+1,{pageIndex:c})),this.props.pageIndexChange(c)}else{let c;this.setState(g=>(c=a,{pageIndex:c})),this.props.pageIndexChange(c)}}get pageIndex(){return this.props.gridCompatibility?(void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex)-1:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}pageSizeChange(a){{let c;this.setState(g=>(c=a,{pageSize:c})),this.props.pageSizeChange(c)}}get className(){return this.props.gridCompatibility?(0,p_.g)({"dx-datagrid-pager":!0,[`${this.props.className}`]:!!this.props.className}):this.props.className}get pagerProps(){return void 0!==this.__getterCache.pagerProps?this.__getterCache.pagerProps:this.__getterCache.pagerProps=(0,Oe.A)({},(0,Oe.A)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),{className:this.className,pageIndex:this.pageIndex,pageIndexChange:a=>this.pageIndexChange(a),pageSizeChange:a=>this.pageSizeChange(a)})}get restAttributes(){const a=(0,Oe.A)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex});return(0,Ue.A)(a,jO)}componentWillUpdate(a,c,g){super.componentWillUpdate(),(this.props!==a||this.props.gridCompatibility!==a.gridCompatibility||this.props.className!==a.className||this.state.pageIndex!==c.pageIndex||this.props.pageIndex!==a.pageIndex||this.props.pageIndexChange!==a.pageIndexChange||this.props.pageSizeChange!==a.pageSizeChange)&&(this.__getterCache.pagerProps=void 0)}render(){return(I=>{let{pagerProps:i,restAttributes:a}=I;return(0,cr._B)((0,cr.sO)(2,Gg,(0,Oe.A)({contentTemplate:GT,pagerProps:i},a)))})({props:(0,Oe.A)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),pageIndexChange:this.pageIndexChange,pageIndex:this.pageIndex,pageSizeChange:this.pageSizeChange,className:this.className,pagerProps:this.pagerProps,restAttributes:this.restAttributes})}}return I.defaultProps=u_,I})();class GO extends aO{getProps(){const i=super.getProps();return i.onKeyDown=this._wrapKeyDownHandler(i.onKeyDown),i}get _propsInfo(){return{twoWay:[["pageSize","defaultPageSize","pageSizeChange"],["pageIndex","defaultPageIndex","pageIndexChange"]],allowNull:[],elements:[],templates:[],props:["defaultPageSize","pageSizeChange","defaultPageIndex","pageIndexChange","gridCompatibility","className","showInfo","infoText","lightModeEnabled","displayMode","maxPagesCount","pageCount","pagesCountText","visible","hasKnownLastPage","pagesNavigatorVisible","showPageSizes","pageSizes","rtlEnabled","showNavigationButtons","totalCount","label","onKeyDown","pageSize","pageIndex"]}}get _viewComponent(){return f_}}(0,$l.A)("dxPager",GO);const m_=GO,pC=function(I){return 1+(parseInt(I.pageIndex())||0)};Dt.registerModule("pager",{defaultOptions:()=>({pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto",label:v.A.format("dxPager-ariaLabel")}}),views:{pagerView:class Qf extends ft.View{init(){const i=this.getController("data");i.changed.add(a=>{if(a&&a.repaintChangesOnly){const c=this._pager;c?c.option({pageIndex:pC(i),pageSize:i.pageSize(),pageCount:i.pageCount(),totalCount:i.totalCount(),hasKnownLastPage:i.hasKnownLastPage()}):this.render()}else(!a||"update"!==a.changeType&&"updateSelection"!==a.changeType&&"updateFocusedRow"!==a.changeType)&&(this._pager=null,this.render())})}dispose(){this._pager=null}optionChanged(i){const{name:a}=i,c="pager"===a,g="paging"===a,y="dataSource"===a,D="scrolling"===a,Y=this.getController("data");if(c||g||D||y){if(i.handled=!0,Y.skipProcessingPagingChange(i.fullName))return;(c||g)&&(this._pageSizes=null),y||(this._pager=null,this._invalidate(),(0,Ye.Vd)()&&c&&this.component&&this.component.resize())}}_renderCore(){const i=this,a=i.element().addClass(i.addWidgetPrefix("pager")),c=i.option("pager")??{},g=i.getController("data"),y=i.getController("keyboardNavigation"),D={maxPagesCount:10,pageIndex:pC(g),pageCount:g.pageCount(),pageSize:g.pageSize(),showPageSizes:c.showPageSizeSelector,showInfo:c.showInfo,displayMode:c.displayMode,pagesNavigatorVisible:c.visible,showNavigationButtons:c.showNavigationButtons,label:c.label,pageSizes:i.getPageSizes(),totalCount:g.totalCount(),hasKnownLastPage:g.hasKnownLastPage(),pageIndexChanged(Y){g.pageIndex()!==Y-1&&g.pageIndex(Y-1)},pageSizeChanged(Y){g.pageSize(Y)},onKeyDown:Y=>y&&y.executeAction("onKeyDown",Y),useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};(0,w.O9)(c.infoText)&&(D.infoText=c.infoText),this._pager?this._pager.repaint():(0,Ye.Vd)()?this._pager=i._createComponent(a,m_,D):a.addClass("dx-pager").html('<div class="dx-pages"><div class="dx-page"></div></div>')}getPager(){return this._pager}getPageSizes(){const i=this,a=i.getController("data"),c=i.option("pager"),g=c&&c.allowedPageSizes,y=a.pageSize();return(!(0,w.O9)(i._pageSizes)||!i._pageSizes.includes(y))&&(i._pageSizes=[],c&&(Array.isArray(g)?i._pageSizes=g:g&&y>1&&(i._pageSizes=[Math.floor(y/2),y,2*y]))),i._pageSizes}isVisible(){const i=this.getController("data"),a=this.option("pager");let c=a&&a.visible;const g=this.option("scrolling");return"auto"===c&&(c=(!g||"virtual"!==g.mode&&"infinite"!==g.mode)&&(i.pageCount()>1||i.isLoaded()&&!i.hasKnownLastPage())),!!c}getHeight(){return this.getElementHeight()}}}});var fC=p(2583),sd=p(8664),Kp=p(7358);const mC="columns-separator-transparent",Br="dxDataGridResizingReordering",__=function(I){return I.option("allowColumnResizing")||I.getController("columns").isColumnOptionUsed("allowResizing")},cx=function(I){return I.option("allowColumnReordering")||I.getController("columns").isColumnOptionUsed("allowReordering")};class dx extends ft.View{_renderSeparator(){}_renderCore(i){const a=super._renderCore(i);return this._isShown=!0,this._renderSeparator(),this.hide(),a}show(){this._isShown=!0}hide(){this._isShown=!1}height(i){const a=this.element();if(a){if(!(0,w.O9)(i))return(0,k.Oq)(a);(0,k.k$)(a,i)}}width(i){const a=this.element();if(a){if(!(0,w.O9)(i))return(0,k.RG)(a);(0,k.zj)(a,i)}}}const vC=function(I){return"widget"!==I.option("columnResizingMode")};Dt.registerModule("columnsResizingReordering",{views:{columnsSeparatorView:class QO extends dx{init(){super.init(),this._tablePositionController=this.getController("tablePosition"),this._init()}dispose(){this._unsubscribeFromCallback(),super.dispose()}optionChanged(i){"allowColumnResizing"===i.name&&(i.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=__(this),this.hide(!0))),super.optionChanged(i)}_renderSeparator(){super._renderSeparator(),this.element().addClass(this.addWidgetPrefix("columns-separator"))}_subscribeToCallback(){const i=this;let a;i._positionChanged=function(c){a=i.element(),a&&(a.css({top:c.top}),(0,k.k$)(a,c.height))},i._tablePositionController.positionChanged.add(i._positionChanged)}_unsubscribeFromCallback(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)}_init(){this._isTransparent=__(this),this.isVisible()&&this._subscribeToCallback()}isVisible(){return this.option("showColumnHeaders")&&(cx(this)||__(this))}show(){const i=this,a=this.element();a&&!i._isShown&&(i._isTransparent?a.removeClass(i.addWidgetPrefix(mC)):a.show()),super.show()}hide(i){const a=this.element(),c=this.addWidgetPrefix(mC);a&&(this._isShown||i)&&(this._isTransparent?(a.addClass(c),a.css("left",""),a.show()):(a.hasClass(c)&&a.removeClass(c),a.hide())),super.hide()}moveByX(i){const a=this.element();a&&a.css("left",null===i?0:i-this._parentElement().offset().left)}changeCursor(i){i=(0,w.O9)(i)?i:"";const a=this.element();a&&a.css("cursor",i)}},blockSeparatorView:class ux extends dx{init(){super.init(),this.getController("data").loadingChanged.add(a=>{a||this.hide()})}_renderSeparator(){super._renderSeparator(),this.element().addClass("dx-block-separator").html("&nbsp;")}hide(){const a=this._parentElement(),c=this.element();c&&this._isShown&&c.css("display","none"),a&&!a.children(".dx-block-separator").length&&a.prepend(this.element()),super.hide()}isVisible(){const i=this.option("groupPanel"),a=this.option("columnChooser");return i&&i.visible||a&&a.enabled}show(i){const a=this.element();if(a&&!this._isShown)switch(i){case"group":this.element().css("display","block");break;case"columnChooser":c={width:"100%",display:"block"},fC.A.stop(a,!0),fC.A.animate(a,{type:"slide",from:{width:0,display:c.display},to:c,duration:300,easing:"swing"});break;default:a.css("display","")}var c;super.show()}},draggingHeaderView:class JT extends ft.View{init(){super.init();const i=this.getController("data");this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this._columnsController=this.getController("columns"),this._isDragging=!1,i.loadingChanged.add(a=>{const c=this.element();!a&&c&&c.hide()})}isDragging(){return this._isDragging}_getDraggingPanelByPos(i){let a;return(0,e.__)(this._dragOptions.draggingPanels,(c,g)=>{if(g){const y=g.getBoundingRect();if(y&&(void 0===y.bottom||i.y<y.bottom)&&(void 0===y.top||i.y>y.top)&&(void 0===y.left||i.x>y.left)&&(void 0===y.right||i.x<y.right))return a=g,!1}}),a}_renderCore(){this.element().addClass(`${this.addWidgetPrefix("drag-header")} ${this.addWidgetPrefix("text-content")} dx-widget`).hide()}_resetTargetColumnOptions(){const i=this._dropOptions;i.targetColumnIndex=-1,delete i.targetColumnElement,delete i.isLast,delete i.posX,delete i.posY}_getVisibleIndexObject(i,a){return(0,w.O9)(i)?{columnIndex:a,rowIndex:i}:a}dispose(){const i=this.element();this._dragOptions=null,i&&i.parent().find(`.${this.addWidgetPrefix("drag-header")}`).remove()}isVisible(){const i=this._columnsController.getCommonSettings();return this.option("showColumnHeaders")&&(cx(this)||i.allowGrouping||i.allowHiding)}dragHeader(i){const{columnElement:a}=i,c=!!i.sourceColumn.type;this._isDragging=!0,this._dragOptions=i,this._dropOptions={sourceIndex:i.index,sourceColumnIndex:this._getVisibleIndexObject(i.rowIndex,i.columnIndex),sourceColumnElement:i.columnElement,sourceLocation:i.sourceLocation};const g=m.A.getDocument();this._onSelectStart=g.onselectstart,g.onselectstart=function(){return!1},this._controller.drag(this._dropOptions),this.element().css({textAlign:a&&a.css("textAlign"),height:a&&(c&&a.get(0).clientHeight||(0,k.Oq)(a)),width:a&&(c&&a.get(0).clientWidth||(0,k.RG)(a)),whiteSpace:a&&a.css("whiteSpace")}).addClass(this.addWidgetPrefix("drag-action")).toggleClass("dx-drag-command-cell",c).text(c?"":i.sourceColumn.caption),this.element().appendTo(Kp.A.getSwatchContainer(a))}moveHeader(i){const a=i.event,{that:c}=a.data,g=(0,x.rw)(a),y=!!c._columnsResizerViewController&&c._columnsResizerViewController.isResizing(),D=c._dragOptions;if(c._isDragging&&!y){const Y=c.element(),xe=Math.abs(g.x-D.columnElement.offset().left-D.deltaX),Le=Math.abs(g.y-D.columnElement.offset().top-D.deltaY);(Y.is(":visible")||xe>5||Le>5)&&(Y.show(),Y.css({left:g.x-D.deltaX,top:g.y-D.deltaY}),c.dockHeader(g)),a.preventDefault()}}dockHeader(i){const a=this,c=a._getDraggingPanelByPos(i),g=a._controller,y=a._dropOptions,D=a._dragOptions;if(c){const Y=a.option("rtlEnabled"),xe="columnChooser"===c.getName(),Le=xe?"y":"x",st=c.getName(),mt="headers"===st?D.rowIndex:void 0,{sourceColumn:on}=D,wn=c.getColumnElements(mt,on?.ownerBand)||[],Kn=D.pointsByTarget=D.pointsByTarget||{},Ai="columnChooser"===st?[]:Kn[st]||g._generatePointsByColumns((0,C.X)({},D,{targetDraggingPanel:c,columns:c.getColumns(mt),columnElements:wn,isVerticalOrientation:xe,startColumnIndex:"headers"===st&&(0,T.A)(wn[0]).index()}));if(Kn[st]=Ai,y.targetLocation=st,Ai.length>0)for(let no=0;no<Ai.length;no++){const Yo=Ai[no+1]&&(Ai[no][Le]+Ai[no+1][Le])/2;if(void 0===Yo||(Y&&"x"===Le?i[Le]>Yo:i[Le]<Yo)){y.targetColumnIndex=a._getVisibleIndexObject(mt,Ai[no].columnIndex),wn[no]?(y.targetColumnElement=wn.eq(no),y.isLast=!1):(y.targetColumnElement=wn.last(),y.isLast=!0),y.posX=Ai[no].x,y.posY=Ai[no].y,g.dock(y);break}}else a._resetTargetColumnOptions(),g.dock(y)}}dropHeader(i){const a=i.event,{that:c}=a.data,g=c._controller;c.element().hide(),g&&c._isDragging&&g.drop(c._dropOptions),c.element().appendTo(c._parentElement()),c._dragOptions=null,c._dropOptions=null,c._isDragging=!1,m.A.getDocument().onselectstart=c._onSelectStart||null}},trackerView:class YO extends ft.View{init(){super.init(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()}dispose(){this._unsubscribeFromCallback(),super.dispose()}optionChanged(i){"allowColumnResizing"===i.name&&(this._unsubscribeFromCallback(),i.value&&(this._subscribeToCallback(),this._invalidate())),super.optionChanged(i)}_renderCore(){const i=super._renderCore();return this.element().addClass(this.addWidgetPrefix("tracker")),this.hide(),i}_unsubscribeFromCallback(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)}_subscribeToCallback(){const i=this;i._positionChanged=function(a){const c=i.element();c&&c.hasClass(i.addWidgetPrefix("tracker"))&&(c.css({top:a.top}),(0,k.k$)(c,a.height))},this._tablePositionController.positionChanged.add(i._positionChanged)}isVisible(){return __(this)}show(){this.element().show()}hide(){this.element()&&this.element().hide()}setHeight(i){(0,k.k$)(this.element(),i)}}},controllers:{draggingHeader:class qO extends ft.ViewController{init(){super.init(),this._columnsController=this.getController("columns"),this._tablePositionController=this.getController("tablePosition"),this._columnHeadersView=this.getView("columnHeadersView"),this._columnsSeparatorView=this.getView("columnsSeparatorView"),this._draggingHeaderView=this.getView("draggingHeaderView"),this._rowsView=this.getView("rowsView"),this._blockSeparatorView=this.getView("blockSeparatorView"),this._headerPanelView=this.getView("headerPanel"),this._columnChooserView=this.getView("columnChooserView");const i=()=>{if(this._draggingHeaderView){const a=[this._columnChooserView,this._columnHeadersView,this._headerPanelView];this._unsubscribeFromEvents(this._draggingHeaderView,a),this._subscribeToEvents(this._draggingHeaderView,a)}};this._columnHeadersView.renderCompleted.add(i),this._headerPanelView&&this._headerPanelView.renderCompleted.add(i),this._columnChooserView&&this._columnChooserView.renderCompleted.add(i)}dispose(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}_generatePointsByColumns(i){const a=this;return this.isCustomGroupColumnPosition=this.checkIsCustomGroupColumnPosition(i),Ot.getPointsByColumns(i.columnElements,g=>a._pointCreated(g,i.columns,i.targetDraggingPanel.getName(),i.sourceColumn),i.isVerticalOrientation,i.startColumnIndex)}checkIsCustomGroupColumnPosition(i){let a=!0;for(let c=0;c<i.columns.length;c+=1){const g=i.columns[c];if("expand"===g.command&&!a)return!0;g.command||(a=!1)}return!1}_pointCreated(i,a,c,g){const y=a[i.columnIndex],D=a[i.columnIndex-1],Y="expand"===D?.command,xe="expand"===y?.command&&"expand"!==D?.command,Le=g&&!g.allowReordering,st=!(null!=y&&y.allowReordering||null!=D&&D.allowReordering);switch(c){case"columnChooser":return!0;case"headers":if(Le)return!0;if(!xe)return Y||st;if(this.isCustomGroupColumnPosition)return!1;for(;"expand"===(null===(mt=a[i.columnIndex])||void 0===mt?void 0:mt.command);){var mt;i.columnIndex+=1}return!1;default:return 0===a.length}}_subscribeToEvents(i,a){const c=this;(0,e.__)(a,(g,y)=>{if(y){let D;const Y=y.getRowCount?y.getRowCount():1,xe=y.getName(),Le=function(st,mt){if(!mt)return;const on=(0,T.A)(mt),wn=D[st];wn&&y.allowDragging(wn)&&(on.addClass(c.addWidgetPrefix("drag-action")),P.A.on(on,(0,x.b4)(sd.ni,Br),c.createAction(Kn=>{const Ai=Kn.event,no=(0,x.rw)(Ai);i.dragHeader({deltaX:no.x-(0,T.A)(Ai.currentTarget).offset().left,deltaY:no.y-(0,T.A)(Ai.currentTarget).offset().top,sourceColumn:wn,index:wn.index,columnIndex:st,columnElement:on,sourceLocation:xe,draggingPanels:a,rowIndex:c._columnsController.getRowIndex(wn.index,!0)})})),P.A.on(on,(0,x.b4)(sd.Cy,Br),{that:i},c.createAction(i.moveHeader)),P.A.on(on,(0,x.b4)(sd._N,Br),{that:i},c.createAction(i.dropHeader)))};for(let st=0;st<Y;st++){const mt=y.getColumnElements(st)||[];mt.length&&(D=y.getColumns(st)||[],(0,e.__)(mt,Le))}}})}_unsubscribeFromEvents(i,a){const c=this;(0,e.__)(a,(g,y)=>{if(y){const D=y.getColumnElements()||[];(0,e.__)(D,(Y,xe)=>{const Le=(0,T.A)(xe);P.A.off(Le,(0,x.b4)(sd.ni,Br)),P.A.off(Le,(0,x.b4)(sd.Cy,Br)),P.A.off(Le,(0,x.b4)(sd._N,Br)),Le.removeClass(c.addWidgetPrefix("drag-action"))})}})}_getSeparator(i){return"headers"===i?this._columnsSeparatorView:this._blockSeparatorView}hideSeparators(i){const a=this._blockSeparatorView,c=this._columnsSeparatorView;this._animationColumnIndex=void 0,a&&a.hide(),"block"!==i&&c&&c.hide()}allowDrop(i){return this._columnsController.allowMoveColumn(i.sourceColumnIndex,i.targetColumnIndex,i.sourceLocation,i.targetLocation)}drag(i){const{sourceIndex:a}=i,{sourceLocation:c}=i,{sourceColumnElement:g}=i,y=this._columnHeadersView,D=this._rowsView;g&&(g.css({opacity:.5}),"headers"===c&&(y&&y.setRowsOpacity(a,.5),D&&D.setRowsOpacity(a,.5)))}dock(i){const a=this,c=(0,w.Gv)(i.targetColumnIndex)?i.targetColumnIndex.columnIndex:i.targetColumnIndex,{sourceLocation:g}=i,{targetLocation:y}=i,D=a._getSeparator(y),Y=c>=0;a._columnHeadersView.element().find(".dx-header-row").toggleClass(a.addWidgetPrefix("drop-highlight"),"headers"!==g&&"headers"===y&&!Y),D&&(a.allowDrop(i)&&Y?"group"===y||"columnChooser"===y?a._animationColumnIndex!==c&&(a.hideSeparators(),D.element()[i.isLast?"insertAfter":"insertBefore"](i.targetColumnElement),a._animationColumnIndex=c,D.show(y)):(a.hideSeparators("block"),a._tablePositionController.update(i.posY),D.moveByX(i.posX-D.width()),D.show()):a.hideSeparators())}drop(i){const{sourceColumnElement:a}=i;if(a&&(a.css({opacity:""}),this._columnHeadersView.setRowsOpacity(i.sourceIndex,""),this._rowsView.setRowsOpacity(i.sourceIndex,""),this._columnHeadersView.element().find(".dx-header-row").removeClass(this.addWidgetPrefix("drop-highlight"))),this.allowDrop(i)){const c=this._getSeparator(i.targetLocation);c&&c.hide(),this._columnsController.moveColumn(i.sourceColumnIndex,i.targetColumnIndex,i.sourceLocation,i.targetLocation)}}},tablePosition:class JO extends ft.ViewController{constructor(i){super(i),this.positionChanged=(0,fe.A)()}init(){super.init(),this._columnsResizerController=this.getController("columnsResizer"),this._columnHeadersView=this.getView("columnHeadersView"),this._rowsView=this.getView("rowsView"),this._pagerView=this.getView("pagerView"),this._rowsView.resizeCompleted.add(()=>{if(this.option("allowColumnResizing")){const i=this._columnsResizerController._targetPoint;this.update(i?i.y:null)}})}update(i){const a={},c=this._columnHeadersView.element(),g=c&&c.offset(),y=g&&g.top||0,D=(0,w.O9)(i)?Math.abs(i-y):0,Y=this._columnHeadersView?this._columnHeadersView.getHeight():0,xe=this._rowsView.getScrollbarWidth(!0),Le=this._rowsView?this._rowsView.height()-xe:0,st=this.component.getView("draggingHeaderView");a.height=Y,(this._columnsResizerController.isResizing()||st.isDragging())&&(a.height+=Le-D),null!==i&&c&&c.length&&(a.top=c[0].offsetTop+D),this.positionChanged.fire(a)}},columnsResizer:class ZO extends ft.ViewController{init(){this._subscribesToCallbacks=[],__(this)&&this._init()}dispose(){this._unsubscribes(),super.dispose()}optionChanged(i){super.optionChanged(i),"allowColumnResizing"===i.name&&(i.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())}_isHeadersRowArea(i){if(this._columnHeadersView){const a=this._columnHeadersView.element();if(a){const c=a.offset().top,g=this._columnHeadersView.getHeadersRowHeight();return i>=c&&i<=c+g}}return!1}_isRtlParentStyle(){var i;return this.option("rtlEnabled")&&"rtl"===(null===(i=this._$parentContainer)||void 0===i?void 0:i.parent().css("direction"))}_pointCreated(i,a,c){const g=vC(this),y=this.option("rtlEnabled"),D=this._isRtlParentStyle(),Y=g||!y||D?1:0;if(i.index>=Y&&i.index<a+(g||y&&!D?0:1)){i.columnIndex-=Y;const xe=c[i.columnIndex]||{};return!(g?xe.allowResizing&&(c[i.columnIndex+1]||{}).allowResizing:xe.allowResizing)}return!0}_getTargetPoint(i,a,c){if(i)for(let g=0;g<i.length;g++)if((i[g].x!==i[0].x||!i[g+1]||i[g].x!==i[g+1].x)&&i[g].x-c<=a&&a<=i[g].x+c)return i[g];return null}_moveSeparator(i){var a;const c=i.event,g=c.data,y=g._columnsSeparatorView.width(),D=vC(g),Y=y/2,xe=g._$parentContainer.offset(),Le=xe.left,st=(0,x.rw)(c),mt=g.option("rtlEnabled"),on=this._isRtlParentStyle(),wn=null===(a=g._draggingHeaderView)||void 0===a?void 0:a.isDragging();if(g._isResizing&&g._resizingInfo){if((Le<=st.x||!D&&on)&&(!D||st.x<=Le+(0,k.RG)(g._$parentContainer))&&g._updateColumnsWidthIfNeeded(st.x)){const Kn=g._columnHeadersView.getColumnElements().eq(g._resizingInfo.currentColumnIndex),Ai=Kn[0];if(Ai){const no=Ai.getBoundingClientRect().width;g._columnsSeparatorView.moveByX(Kn.offset().left+((D||on)&&mt?0:no)),g._tablePositionController.update(g._targetPoint.y),c.preventDefault()}}}else wn||(g._isHeadersRowArea(st.y)?(g._previousParentOffset&&(g._previousParentOffset.left!==xe.left||g._previousParentOffset.top!==xe.top)&&g.pointsByColumns(null),g._targetPoint=g._getTargetPoint(g.pointsByColumns(),st.x,y),g._previousParentOffset=xe,g._isReadyResizing=!1,g._targetPoint?(g._columnsSeparatorView.changeCursor("col-resize"),g._columnsSeparatorView.moveByX(g._targetPoint.x-Y),g._tablePositionController.update(g._targetPoint.y),g._isReadyResizing=!0,c.preventDefault()):(g._columnsSeparatorView.changeCursor(),g._columnsSeparatorView.moveByX(null))):(g.pointsByColumns(null),g._isReadyResizing=!1,g._columnsSeparatorView.changeCursor(),g._columnsSeparatorView.moveByX(null)))}_endResizing(i){const c=i.event.data;c._isResizing&&(c.pointsByColumns(null),c._resizingInfo=null,c._columnsSeparatorView.hide(),c._columnsSeparatorView.changeCursor(),c._trackerView.hide(),c._isReadyResizing=!1,c._isResizing=!1)}_getNextColumnIndex(i){return i+1}_setupResizingInfo(i){const a=this._targetPoint.columnIndex,c=this._getNextColumnIndex(a),g=this._columnHeadersView.getHeaderElement(a),y=this._columnHeadersView.getHeaderElement(c);this._resizingInfo={startPosX:i,currentColumnIndex:a,currentColumnWidth:g&&g.length>0?(0,Me.N)(g[0]).width:0,nextColumnIndex:c,nextColumnWidth:y&&y.length>0?(0,Me.N)(y[0]).width:0}}_startResizing(i){const a=i.event,c=a.data,g=(0,x.rw)(a);if((0,x.kH)(a)&&(c._isHeadersRowArea(g.y)?(c._targetPoint=c._getTargetPoint(c.pointsByColumns(),g.x,10),c._targetPoint&&(c._columnsSeparatorView.moveByX(c._targetPoint.x-c._columnsSeparatorView.width()/2),c._isReadyResizing=!0)):c._isReadyResizing=!1),c._isReadyResizing){c._setupResizingInfo(g.x),c._isResizing=!0,c._tablePositionController.update(c._targetPoint.y),c._columnsSeparatorView.show(),c._trackerView.show();const y=c.component.getScrollable();y&&c._isRtlParentStyle()&&(c._scrollRight=(0,k.RG)(y.$content())-(0,k.RG)(y.container())-y.scrollLeft()),a.preventDefault(),a.stopPropagation()}this.isResizing()&&this._editorFactoryController.loseFocus()}_generatePointsByColumns(){const i=this,a=i._columnsController?i._columnsController.getVisibleColumns():[],c=i._columnHeadersView.getColumnElements();let g=[];c&&c.length>0&&(g=Ot.getPointsByColumns(c,y=>i._pointCreated(y,c.length,a))),i._pointsByColumns=g}_unsubscribeFromEvents(){this._moveSeparatorHandler&&P.A.off(m.A.getDocument(),(0,x.b4)(pe.A.move,Br),this._moveSeparatorHandler),this._startResizingHandler&&P.A.off(this._$parentContainer,(0,x.b4)(pe.A.down,Br),this._startResizingHandler),this._endResizingHandler&&(P.A.off(this._columnsSeparatorView.element(),(0,x.b4)(pe.A.up,Br),this._endResizingHandler),P.A.off(m.A.getDocument(),(0,x.b4)(pe.A.up,Br),this._endResizingHandler))}_subscribeToEvents(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),P.A.on(m.A.getDocument(),(0,x.b4)(pe.A.move,Br),this,this._moveSeparatorHandler),P.A.on(this._$parentContainer,(0,x.b4)(pe.A.down,Br),this,this._startResizingHandler),P.A.on(this._columnsSeparatorView.element(),(0,x.b4)(pe.A.up,Br),this,this._endResizingHandler),P.A.on(m.A.getDocument(),(0,x.b4)(pe.A.up,Br),this,this._endResizingHandler)}_updateColumnsWidthIfNeeded(i){let a,c=!1,g=this._rowsView.contentWidth();const y=this._resizingInfo,D=this._columnsController,Y=D.getVisibleColumns(),xe=this._columnsSeparatorView.width(),Le=vC(this),st=Le&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth"),mt=this.option("rtlEnabled"),on=this._isRtlParentStyle(),wn=Y[y.currentColumnIndex],Kn=Y[y.nextColumnIndex];function Ai(Ls){return(0,w.Kg)(Ls)&&Ls.endsWith("%")}function no(Ls,_r,Sr,Dr){if(Ls){const ia=Ls.width;ia&&(Dr=Ai(ia)),Dr?(D.columnOption(Ls.index,"visibleWidth",_r),D.columnOption(Ls.index,"width",`${(_r/Sr*100).toFixed(3)}%`)):(D.columnOption(Ls.index,"visibleWidth",null),D.columnOption(Ls.index,"width",_r))}}a=i-y.startPosX,(Le||on)&&mt&&(a=-a);let{cellWidth:Yo,nextCellWidth:ps}=function(Ls){let _r,Sr,Dr;const ia=y.currentColumnWidth+Ls,rl=wn&&wn.minWidth||xe,Hd={};return ia>=rl?Hd.cellWidth=ia:(Hd.cellWidth=rl,Dr=!0),Le&&(Sr=y.nextColumnWidth-Ls,_r=Kn&&Kn.minWidth||xe,Sr>=_r?Hd.nextCellWidth=Dr?y.nextColumnWidth-(Ls+rl-ia):Sr:(Hd.nextCellWidth=_r,Hd.cellWidth=y.currentColumnWidth+(Ls-_r+Sr))),Hd}(a);if(c=wn.width!==Yo,c){if(D.beginUpdate(),Yo=Math.floor(Yo),g=function(Ls,_r){if(_r.every(Dr=>Dr.width)){const Dr=_r.reduce((ia,rl)=>(Ai(rl.width)&&(ia+=parseFloat(rl.width)),ia),0);Dr>100&&(Ls=Ls/Dr*100)}return Ls}(g,Y),no(wn,Yo,g,st),Le)ps=Math.floor(ps),no(Kn,ps,g,st);else{const Ls=this._columnHeadersView.getColumnWidths();if(Ls[y.currentColumnIndex]=Yo,!(Ls.reduce((Sr,Dr)=>Sr+Dr,0)>this._rowsView.contentWidth())){const Sr=Ot.getLastResizableColumnIndex(Y);Sr>=0&&D.columnOption(Y[Sr].index,"visibleWidth","auto")}for(let Sr=0;Sr<Ls.length;Sr++)Y[Sr]&&Y[Sr]!==wn&&void 0===Y[Sr].width&&D.columnOption(Y[Sr].index,"width",Ls[Sr])}if(D.endUpdate(),!Le){this.component.updateDimensions();const Ls=this.component.getScrollable();if(Ls&&on){const _r=(0,k.RG)(Ls.$content())-(0,k.RG)(Ls.container())-this._scrollRight;Ls.scrollTo({left:_r})}}}return c}_subscribeToCallback(i,a){i.add(a),this._subscribesToCallbacks.push({callback:i,handler:a})}_unsubscribeFromCallbacks(){for(let i=0;i<this._subscribesToCallbacks.length;i++){const a=this._subscribesToCallbacks[i];a.callback.remove(a.handler)}this._subscribesToCallbacks=[]}_unsubscribes(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()}_init(){const i=()=>{this._isResizing||this.pointsByColumns(null)},a=y=>{this._scrollLeft!==y.left&&(this._scrollLeft=y.left,this.pointsByColumns(null))};this._columnsSeparatorView=this.getView("columnsSeparatorView"),this._columnHeadersView=this.getView("columnHeadersView"),this._trackerView=this.getView("trackerView"),this._rowsView=this.getView("rowsView"),this._columnsController=this.getController("columns"),this._tablePositionController=this.getController("tablePosition"),this._editorFactoryController=this.getController("editorFactory"),this._draggingHeaderView=this.component.getView("draggingHeaderView"),this._$parentContainer=this.component.$element(),this._subscribeToCallback(this._columnHeadersView.renderCompleted,i),this._subscribeToCallback(this._columnHeadersView.resizeCompleted,i),this._subscribeToCallback(this._columnsSeparatorView.renderCompleted,()=>{this._unsubscribeFromEvents(),this._subscribeToEvents()}),this._subscribeToCallback(this._rowsView.renderCompleted,()=>{this._rowsView.scrollChanged.remove(a),this._rowsView.scrollChanged.add(a)});let c=0!==this._rowsView.getScrollbarWidth(),g=0;this._subscribeToCallback(this._tablePositionController.positionChanged,y=>{if(this._isResizing&&!this._rowsView.isResizing){const D=0!==this._rowsView.getScrollbarWidth();c!==D||g&&g!==y.height?(c=D,g=y.height,this.component.updateDimensions()):this._rowsView.updateFreeSpaceRowHeight()}g=y.height})}isResizing(){return this._isResizing}pointsByColumns(i){if(void 0===i)return this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns;this._pointsByColumns=i}}},extenders:{views:{rowsView:I=>class extends I{_needUpdateRowHeight(i){const a=this.option("wordWrapEnabled"),c=this._columnsResizerController.isResizing();return super._needUpdateRowHeight.apply(this,arguments)||i>0&&!!a&&!!c}}},controllers:{editorFactory:I=>class extends I{renderFocusOverlay(){if(!this._columnsResizerController.isResizing())return super.renderFocusOverlay.apply(this,arguments)}}}}});var CC=p(1294);const rw=(I,i)=>I.length===i.length&&!Object.keys(I).some(a=>I[a]!==i[a]),aw=(I,i)=>(0,b.RL)(I,i,{maxDepth:4}),cw={compareType:"reference"},hx=function(I){let{compareType:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cw,a=null;return function(){for(var c=arguments.length,g=new Array(c),y=0;y<c;y++)g[y]=arguments[y];if(!a){const D=I(...g);return a=((I,i,a,c)=>{let g=I,y=i;return function(){for(var D=arguments.length,Y=new Array(D),xe=0;xe<D;xe++)Y[xe]=arguments[xe];return c(Y,g)||(g=Y,y=a(...g)),y}})(g,D,I,"reference"===i?rw:aw),D}return a(...g)}},bC="rowsview",Vd="dx-data-row",gx="dx-master-detail-row",fx="dx-freespace-row",Xg="dx-master-detail-cell",v_="dx-command-expand",wC="dx-command-select",_x="dx-command-edit",SC="[class^=dx-command]",C_="dx-cell-focus-disabled",sp="dx-state-focused",b_="dx-focused",DC="delete",xu='\n  input:not([type="hidden"]):not([disabled]),\n  textarea:not([disabled]),\n  a:not([disabled]),\n  select:not([disabled]),\n  button:not([disabled]),\n  [tabindex]:not([disabled]),\n  .dx-checkbox:not([disabled],.dx-state-readonly)\n',fh=`${xu}, .dx-dropdowneditor-icon`,AC="columnHeadersView",fw=["shift","control","alt"];function qf(I){return I&&I.hasClass("dx-group-row")}function S_(I){return I&&I.hasClass(Vd)}function xx(I,i){return!I._isRowEditMode()&&i&&!i.hasClass(wC)&&i.hasClass(Ql)}function rd(I){return(0,w.O9)(I)&&I.length>0}function em(){return"desktop"!==jl.A.current().deviceType}function vw(I){return!!I.parent(".dx-header-row").length}function MC(I,i,a,c){let g=0;if(I<i)for(;g<a.items.length;g++)MC(I+1,i,a.items[g],c);I===i&&c(a)}function tm(I,i){let a;if("map"in I)return I.map(i);const c=new Array(I.length);for(a in I)c[a]=i(I[a],a);return c}function Sx(I){return I===Mi.zL.count}function ww(I){const i=(0,nn.Hz)(I.selector),a=!("skipEmptyValues"in I)||I.skipEmptyValues;let{aggregator:c}=I;if("string"==typeof c&&(c=Mi.zL[c],!c))throw du.sO.Error("E4001",I.aggregator);return{selector:i,aggregator:c,skipEmptyValues:a}}Dt.registerModule("keyboardNavigation",{defaultOptions:()=>({useLegacyKeyboardNavigation:!1,keyboardNavigation:{enabled:!0,enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}),controllers:{keyboardNavigation:class Ox extends ft.ViewController{init(){var i,a;this._dataController=this.getController("data"),this._selectionController=this.getController("selection"),this._editingController=this.getController("editing"),this._headerPanel=this.getView("headerPanel"),this._rowsView=this.getView("rowsView"),this._columnsController=this.getController("columns"),this._editorFactory=this.getController("editorFactory"),this._focusController=this.getController("focus"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._columnResizerController=this.getController("columnsResizer"),this._memoFireFocusedCellChanged=hx(this._memoFireFocusedCellChanged.bind(this),{compareType:"value"}),this._memoFireFocusedRowChanged=hx(this._memoFireFocusedRowChanged.bind(this),{compareType:"value"}),this.focusedHandlerWithContext=this.focusedHandlerWithContext||this.focusedHandler.bind(this),this.renderCompletedWithContext=this.renderCompletedWithContext||this.renderCompleted.bind(this),this.rowsViewFocusHandlerContext=this.rowsViewFocusHandlerContext||this.rowsViewFocusHandler.bind(this),this.rowsViewFocusOutHandlerContext=this.rowsViewFocusOutHandlerContext??this.rowsViewFocusOutHandler.bind(this),this._updateFocusTimeout=null,this._fastEditingStarted=!1,this._focusedCellPosition={},this._canceledCellPosition=null,this.isKeyboardEnabled()?(function re(){P.A.on(m.A.getDocument(),"visibilitychange",ee)}(),null===(i=this._editorFactory)||void 0===i||i.focused.add(this.focusedHandlerWithContext),this.createAction("onKeyDown")):(be(),null===(a=this._editorFactory)||void 0===a||a.focused.remove(this.focusedHandlerWithContext)),this.initViewHandlers(),this.initDocumentHandlers()}dispose(){super.dispose(),this._resetFocusedView(),CC.QJ.off(this._keyDownListener),P.A.off(m.A.getDocument(),(0,x.b4)(pe.A.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),clearTimeout(this._updateFocusTimeout),be()}focusedHandler(i){this.setupFocusedView(),this._isNeedScroll&&i.is(":visible")&&this._focusedView&&this._focusedView.getScrollable()&&(this._focusedView._scrollToElement(i),this._isNeedScroll=!1)}rowsViewFocusHandler(i){const a=(0,T.A)(i.target),c=(0,T.A)(i.relatedTarget).closest(this._rowsView.element()).length,g=a.is("a");if(i.relatedTarget&&g&&!c&&this._isEventInCurrentGrid(i)){let Y=this._getFocusedCell();Y=rd(Y)?Y:this._rowsView.getCellElements(0).filter("[tabindex]").eq(0),a.closest(Y).length||(i.preventDefault(),P.A.trigger(Y,"focus"))}const y=a.is("td"),D=(this.option("focusedRowIndex")??-1)<0;y&&D&&this._updateFocusedCellPosition(a)}rowsViewFocusOutHandler(){this._toggleInertAttr(!1)}subscribeToRowsViewFocusEvent(){var i;const a=null===(i=this._rowsView)||void 0===i?void 0:i.element();P.A.on(a,"focusin",this.rowsViewFocusHandlerContext),P.A.on(a,"focusout",this.rowsViewFocusOutHandlerContext)}unsubscribeFromRowsViewFocusEvent(){var i;const a=null===(i=this._rowsView)||void 0===i?void 0:i.element();P.A.off(a,"focusin",this.rowsViewFocusHandlerContext),P.A.off(a,"focusout",this.rowsViewFocusOutHandlerContext)}renderCompleted(i){const a=this._rowsView.element(),c=!i||"refresh"===i.changeType,g=this._focusedView&&this._focusedView.name===this._rowsView.name;let y=!1;const D=i&&("append"===i.changeType||"prepend"===i.changeType),xe=(0,T.A)(m.A.getRootNode(a.get&&a.get(0))).find(":focus"),Le=!xe.length||xe.closest(a).length;this.unsubscribeFromRowsViewFocusEvent(),this.subscribeToRowsViewFocusEvent(),this.initPointerEventHandler(),this.initKeyDownHandler(),this._setRowsViewAttributes(),g&&Le&&(y=this._isNeedFocus?!D:this._isHiddenFocus&&c&&!(null!=i&&i.virtualColumnsScrolling),y&&this._updateFocus(!0))}initViewHandlers(){var i;this.unsubscribeFromRowsViewFocusEvent(),this.unsubscribeFromPointerEvent(),this.unsubscribeFromKeyDownEvent(),null===(i=this._rowsView)||void 0===i||null===(i=i.renderCompleted)||void 0===i||i.remove(this.renderCompletedWithContext),this.isKeyboardEnabled()&&this._rowsView.renderCompleted.add(this.renderCompletedWithContext)}initDocumentHandlers(){const i=m.A.getDocument();this._documentClickHandler=this._documentClickHandler||this.createAction(a=>{const c=(0,T.A)(a.event.target),g=this._isEventInCurrentGrid(a.event)&&c.closest(`.${this.addWidgetPrefix(bC)}`).length,y=c.closest(".dx-dropdowneditor-overlay").length,D=!!this._columnResizerController&&this._columnResizerController.isResizing();!g&&!y&&!D&&(!(this._focusedView&&c.parents().filter(this._focusedView.element()).length>0)&&this._resetFocusedCell(!0),this._resetFocusedView())}),P.A.off(i,(0,x.b4)(pe.A.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),this.isKeyboardEnabled()&&P.A.on(i,(0,x.b4)(pe.A.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)}_setRowsViewAttributes(){const i=this._getRowsViewElement();!this._dataController.getVisibleRows().length&&this._applyTabIndexToElement(i)}unsubscribeFromPointerEvent(){const i=em()?de.U:pe.A.down,a=this._getRowsViewElement();this._pointerEventAction&&P.A.off(a,(0,x.b4)(i,"dxDataGridKeyboardNavigation"),this._pointerEventAction)}subscribeToPointerEvent(){const i=em()?de.U:pe.A.down,a=this._getRowsViewElement(),c=`.${fa} > td, .${fa}`;P.A.on(a,(0,x.b4)(i,"dxDataGridKeyboardNavigation"),c,this._pointerEventAction)}initPointerEventHandler(){this._pointerEventAction=this._pointerEventAction||this.createAction(this._pointerEventHandler),this.unsubscribeFromPointerEvent(),this.subscribeToPointerEvent()}unsubscribeFromKeyDownEvent(){CC.QJ.off(this._keyDownListener)}subscribeToKeyDownEvent(){const i=this._getRowsViewElement();this._keyDownListener=CC.QJ.on(i,null,a=>this._keyDownHandler(a))}initKeyDownHandler(){this._keyDownListener&&this.unsubscribeFromKeyDownEvent(),this.subscribeToKeyDownEvent()}optionChanged(i){switch(i.name){case"keyboardNavigation":"keyboardNavigation.enabled"===i.fullName&&this.init(),i.handled=!0;break;case"useLegacyKeyboardNavigation":this.init(),i.handled=!0;break;default:super.optionChanged(i)}}isRowFocusType(){return"row"===this.focusType}isCellFocusType(){return"cell"===this.focusType}setRowFocusType(){this.option("focusedRowEnabled")&&(this.focusType="row")}setCellFocusType(){this.focusType="cell"}_keyDownHandler(i){var a;let c=!0;this._isNeedFocus=!0,this._isNeedScroll=!0;let g=this._processOnKeyDown(i);const y=null===(a=this._editingController)||void 0===a?void 0:a.isEditing(),{originalEvent:D}=i;if(D.isDefaultPrevented())return this._isNeedFocus=!1,void(this._isNeedScroll=!1);if(!fw.includes(i.keyName)&&this._updateFocusedCellPositionByTarget(D.target),!g){switch(i.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(i,y),g=!0;break;case"upArrow":case"downArrow":i.ctrl?De("rowsView",this,D):this._upDownKeysHandler(i,y),g=!0;break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(i),g=!0;break;case"space":g=this._spaceKeyHandler(i,y);break;case"A":(0,x.By)(i.originalEvent)?(this._ctrlAKeyHandler(i,y),g=!0):g=this._beginFastEditing(i.originalEvent);break;case"tab":this._tabKeyHandler(i,y),g=!0;break;case"enter":this._enterKeyHandler(i,y),g=!0;break;case"escape":g=this._escapeKeyHandler(i,y);break;case"F":(0,x.By)(i.originalEvent)?(this._ctrlFKeyHandler(i),g=!0):g=this._beginFastEditing(i.originalEvent);break;case"F2":this._f2KeyHandler(),g=!0;break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&(g=this._beginFastEditing(D,!0))}!g&&!this._beginFastEditing(D)&&(this._isNeedFocus=!1,this._isNeedScroll=!1,c=!1),c&&D.stopPropagation()}}_processOnKeyDown(i){const{originalEvent:a}=i,c={handled:!1,event:a};return this.executeAction("onKeyDown",c),i.ctrl=a.ctrlKey,i.alt=a.altKey,i.shift=a.shiftKey,!!c.handled}_closeEditCell(){const i=(0,ye.cY)();return setTimeout(()=>{this._editingController.closeEditCell().always(i.resolve)}),i}_leftRightKeysHandler(i,a){const c=this.getVisibleRowIndex(),g=i.originalEvent,y=this._focusedView&&this._focusedView.getRow(c),D=this._getDirectionCodeByKey(i.keyName),Y=this._isFastEditingStarted();if((!a||Y)&&S_(y)){this.setCellFocusType(),Y&&this._closeEditCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(D);const Le=this._getNextCell(D);rd(Le)&&this._arrowKeysHandlerFocusCell(g,Le,D),g&&g.preventDefault()}}isInsideMasterDetail(i){const a=i.closest(`.${Xg}`);return!!a.get(0)&&this.elementIsInsideGrid(a)&&!i.is(a)}_upDownKeysHandler(i,a){var c,g;const y=this.getVisibleRowIndex(),D=this._focusedView&&this._focusedView.getRow(y),Y=i.originalEvent,xe="upArrow"===i.keyName,Le=this._dataController.dataSource(),st=null===(c=this._editingController)||void 0===c||null===(g=c.isEditRowByIndex)||void 0===g?void 0:g.call(c,y),mt=this._isFastEditingStarted(),on=this.isInsideMasterDetail((0,T.A)(Y?.target));if((!st||!a||mt)&&D&&!function iA(I){return I&&I.hasClass(gx)&&I.hasClass("edit-form")}(D)&&!on){if(mt&&this._closeEditCell(),!this._navigateNextCell(Y,i.keyName)&&this._isVirtualRowRender()&&xe&&Le&&!Le.isLoading()){const Kn=(0,k.P$)(D);this._scrollBy(0,-Kn,this._focusedCellPosition.rowIndex-1,Y)}Y&&Y.preventDefault()}}_pageUpDownKeyHandler(i){const a=this._dataController.pageIndex(),c=this._dataController.pageCount(),g=this.option("paging.enabled"),y="pageUp"===i.keyName,D=y?-1:1,Y=this._rowsView.getScrollable();g&&!this._isVirtualScrolling()?(y?a>0:a<c-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex(a+D),i.originalEvent.preventDefault()):Y&&(0,k.Oq)(Y.container())<(0,k.Oq)(Y.$content())&&(this._scrollBy(0,(0,k.Oq)(Y.container())*D),i.originalEvent.preventDefault())}_spaceKeyHandler(i,a){const c=this.getVisibleRowIndex(),g=(0,T.A)(i.originalEvent&&i.originalEvent.target);if(this.option("selection")&&"none"!==this.option("selection").mode&&!a){const y="row"===this._getElementType(g)&&this.isRowFocusType()&&S_(g);return g.hasClass(wC)&&"onClick"===this.option("selection.showCheckBoxesMode")&&this._selectionController.startSelectionWithCheckboxes(),!!(y||g.parent().hasClass(Vd)||g.hasClass(this.addWidgetPrefix(bC)))&&(this._selectionController.changeItemSelection(c,{shift:i.shift,control:i.ctrl}),i.originalEvent.preventDefault(),!0)}return this._beginFastEditing(i.originalEvent)}_ctrlAKeyHandler(i,a){!a&&!i.alt&&"multiple"===this.option("selection.mode")&&this.option("selection.allowSelectAll")&&(this._selectionController.selectAll(),i.originalEvent.preventDefault())}_toggleInertAttr(i){}_tabKeyHandler(i,a){const c=this.option("editing"),g=i.shift?"previous":"next",y=(0,w.O9)(this._focusedCellPosition)&&!(0,w.RI)(this._focusedCellPosition),D=i.shift&&this._isFirstValidCell(this._focusedCellPosition),Y=!i.shift&&this._isLastValidCell(this._focusedCellPosition);let xe=!y||D||Y;const Le=i.originalEvent.target,st=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(Le,g)){if((0,T.A)(st).addClass(sp),c&&Le&&!xe)if((0,T.A)(Le).hasClass(this.addWidgetPrefix(bC))&&this._resetFocusedCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(g),a){if(!this._editingCellTabHandler(i,g))return}else this._targetCellTabHandler(i,g)&&(xe=!0);xe?(Y&&this._toggleInertAttr(!0),this._editorFactory.loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(!0),this._resetFocusedView(),this._closeEditCell())):i.originalEvent.preventDefault()}}_getMaxHorizontalOffset(){const i=this.component.getScrollable();return i?i.scrollWidth()-(0,k.RG)(this._rowsView.element()):0}_isColumnRendered(i){const a=this._columnsController.getVisibleColumns(null,!0),c=this._columnsController.getVisibleColumns(),g=a[i];let y=!1;return g&&(y=c.indexOf(g)>=0),y}_isFixedColumn(i){const c=this._columnsController.getVisibleColumns(null,!0)[i];return!!c&&!!c.fixed}_isColumnVirtual(i){const a=i-this._columnsController.getColumnIndexOffset(),g=this._columnsController.getVisibleColumns()[a];return!!g&&"virtual"===g.command}_processVirtualHorizontalPosition(i){const a=this.component.getScrollable(),c=this.getColumnIndex();let g,y=0,D=!1;switch(i){case"next":case"nextInRow":{const Y=this._getVisibleColumnCount();g=c+1,y=this.option("rtlEnabled")?this._getMaxHorizontalOffset():0,D="next"===i?Y===g||this._isFixedColumn(c)&&!this._isColumnRendered(g):Y>g&&this._isFixedColumn(c)&&!this._isColumnRendered(g);break}case"previous":case"previousInRow":if(g=c-1,y=this.option("rtlEnabled")?0:this._getMaxHorizontalOffset(),"previous"===i){const Y=this._columnsController.getColumnIndexOffset();D=g<0&&0===Y||this._isFixedColumn(c)&&!this._isColumnRendered(g)}else D=g>=0&&this._isFixedColumn(c)&&!this._isColumnRendered(g)}D?a.scrollTo({left:y}):(0,w.O9)(g)&&(0,w.O9)(i)&&this._isColumnVirtual(g)&&(y=this._getHorizontalScrollPositionOffset(i),0!==y&&a.scrollBy({left:y,top:0}))}_getHorizontalScrollPositionOffset(i){let a=0;const c=this._getCell(this._focusedCellPosition),g=c&&(0,k.Ot)(c);if(g>0){const y=this.option("rtlEnabled")?-1:1;a="nextInRow"===i||"next"===i?g*y:g*y*-1}return a}_editingCellTabHandler(i,a){const c=i.originalEvent.target;let y,g=this._getCellElementFromTarget(c);const D=i.originalEvent,Y=this._getElementType(c);if(g.is(SC))return!this._targetCellTabHandler(i,a);this._updateFocusedCellPosition(g);const xe=this._getNextCellByTabKey(D,a,Y);if(g=xe.$cell,!g||this._handleTabKeyOnMasterDetailCell(g,a))return!1;const Le=this._getColumnByCellElement(g),st=g.parent(),mt=this._getRowIndex(st),on=this._dataController.items()[mt];if(Le&&Le.allowEditing){const Kn=!on||"data"===on.rowType;y=this._editingController.allowUpdating({row:on})?Kn:on&&on.isNewRow}return y||this._closeEditCell(),this._focusCell(g,!xe.isHighlighted)&&(!this._isRowEditMode()&&y?this._editFocusedCell():this._focusInteractiveElement(g,i.shift)),!0}_targetCellTabHandler(i,a){const c=i.originalEvent;let g=c.target,y=this._getElementType(g),D=this._getCellElementFromTarget(g);const Y="cell"===y&&this._getInteractiveElement(D,!i.shift);let xe=!1;if(!xx(this,D)&&null!=Y&&Y.length&&g!==Y.get(0))xe=!0;else{void 0===this._focusedCellPosition.rowIndex&&(0,T.A)(g).hasClass(fa)&&this._updateFocusedCellPosition(D),y=this._getElementType(g),this.isRowFocusType()&&(this.setCellFocusType(),"row"===y&&S_((0,T.A)(g))&&(g=this.getFirstValidCellInRow((0,T.A)(g)),y=this._getElementType(g)));const Le=this._getNextCellByTabKey(c,a,y);if(D=Le.$cell,!D||(D=this._checkNewLineTransition(c,D),!D))return!1;this._focusCell(D,!Le.isHighlighted),xx(this,D)||this._focusInteractiveElement(D,i.shift)}return xe}_getNextCellByTabKey(i,a,c){let g=this._getNextCell(a,c);const y=g&&this._fireFocusedCellChanging(i,g,!0);return!y||y.cancel?{}:(y.$newCellElement&&(g=y.$newCellElement),{$cell:g,isHighlighted:y.isHighlighted})}_checkNewLineTransition(i,a){const c=this.getVisibleRowIndex(),g=a.parent();if(c!==this._getRowIndex(g)){const y=this._getCellPosition(a),D=this._fireFocusedRowChanging(i,g);if(D.cancel)return;D.rowIndexChanged&&y&&(this.setFocusedColumnIndex(y.columnIndex),a=this._getFocusedCell())}return a}_enterKeyHandler(i,a){var c,g;const y=this.getVisibleRowIndex(),D=this._dataController.getKeyByRowIndex(y),Y=null===(c=this._focusedView)||void 0===c?void 0:c.getRow(y),xe=this._getFocusedCell(),Le=this.option("grouping.allowCollapsing")&&qf(Y),st=this.option("masterDetail.enabled")&&xe?.hasClass(v_),mt=xe?.hasClass("dx-command-adaptive");if(Le||st){const on=this._dataController.items()[y],wn=on?.data&&!on.data.isContinuation;(0,w.O9)(D)&&wn&&this._dataController.changeRowExpand(D)}else mt?(this._adaptiveColumnsController.toggleExpandAdaptiveDetailRow(D),this._updateFocusedCellPosition(xe)):null!==(g=this.getMasterDetailCell(xe))&&void 0!==g&&g.is(xe)?xe.is(":focus")&&this.focusFirstInteractiveElementInside(xe):null!=xe&&xe.hasClass(_x)||this._processEnterKeyForDataCell(i,a)}focusFirstInteractiveElementInside(i){i.find(xu).get(0).focus()}_processEnterKeyForDataCell(i,a){const c=this._getEnterKeyDirection(i),g=this._allowEditingOnEnterKey();a||!g&&c?this._handleEnterKeyEditingCell(i.originalEvent).done(()=>{"next"===c||"previous"===c?this._targetCellTabHandler(i,c):("upArrow"===c||"downArrow"===c)&&this._navigateNextCell(i.originalEvent,c)}):g&&this._startEditing(i)}_getEnterKeyDirection(i){const a=this.option("keyboardNavigation.enterKeyDirection"),c=i.shift;return"column"===a?c?"upArrow":"downArrow":"row"===a?c?"previous":"next":void 0}_handleEnterKeyEditingCell(i){const a=(0,ye.cY)(),{target:c}=i,g=this._getCellElementFromTarget(c),y=this._isRowEditMode();return this._updateFocusedCellPosition(g),y?(this._focusEditFormCell(g),setTimeout(this._editingController.saveEditData.bind(this._editingController)),a.resolve()):(P.A.trigger((0,T.A)(c),"change"),this._closeEditCell().always(a.resolve),i.preventDefault()),a}_escapeKeyHandler(i,a){const c=this._getCellElementFromTarget(i.originalEvent.target);if(a)return this._updateFocusedCellPosition(c),this._isRowEditMode()?(this._focusEditFormCell(c),this._editingController.cancelEditData(),0===this._dataController.items().length&&(this._resetFocusedCell(),this._editorFactory.loseFocus())):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._closeEditCell(),i.originalEvent.preventDefault(),!0;const g=this.getMasterDetailCell(c);return!!g&&(this._focusCell(g),!0)}_ctrlFKeyHandler(i){if(this.option("searchPanel.visible")){const a=this._headerPanel.getSearchTextEditor();a&&(a.focus(),i.originalEvent.preventDefault())}}_f2KeyHandler(){const i=this._editingController.isEditing(),a=this.getVisibleRowIndex(),c=this._focusedView&&this._focusedView.getRow(a);!i&&S_(c)&&this._startEditing()}_navigateNextCell(i,a){const c=this._getNextCell(a),g=this._getDirectionCodeByKey(a);return!(!c||!this._isCellValid(c))&&this._arrowKeysHandlerFocusCell(i,c,g)}_arrowKeysHandlerFocusCell(i,a,c){const y=this._fireFocusChangingEvents(i,a,"prevRow"===c||"nextRow"===c,!0);return a=y.$newCellElement,!(y.cancel||!this._isCellValid(a)||(this._focus(a,!y.isHighlighted),0))}_beginFastEditing(i,a){if(!this._isFastEditingAllowed()||i.altKey||i.ctrlKey||this._editingController.isEditing())return!1;if(a)this._startEditing(i,DC);else{const{key:c}=i,g=i.keyCode||i.which,y=c||g&&String.fromCharCode(g);y&&(1===y.length||y===DC)&&this._startEditing(i,y)}return!0}_pointerEventHandler(i){var a;const c=i.event||i;let g=(0,T.A)(c.currentTarget);const y=null===(a=this._rowsView)||void 0===a?void 0:a.element(),D=g.parent(),Y=(0,T.A)(c.target).is(xu),xe=!!(0,T.A)(c.target).closest(".dx-revert-button").length,Le=g.hasClass(v_);this._isEventInCurrentGrid(c)&&(xe||!this._isCellValid(g,!Y)&&!Le?g.is("td")&&this._resetFocusedCell():(g=this._isInsideEditForm(g)?(0,T.A)(c.target):g,this._focusView(),(0,T.A)(y).removeClass(sp),D.hasClass(fx)?(this._updateFocusedCellPosition(g),this._applyTabIndexToElement(this._focusedView.element()),this._focusedView.focus(!0)):this.getMasterDetailCell(g)?this._updateFocusedCellPosition(g):this._clickTargetCellHandler(c,g)))}_clickTargetCellHandler(i,a){const c=this._getColumnByCellElement(a),g=this._isCellEditMode();this.setCellFocusType();const y=this._fireFocusChangingEvents(i,a,!0);if(a=y.$newCellElement,y.cancel)this.setRowFocusType(),this.setFocusedRowIndex(y.prevRowIndex),this._editingController.isEditing()&&g&&this._closeEditCell();else{if(y.resetFocusedRow)return void this._focusController._resetFocusedRow();if(y.rowIndexChanged&&(a=this._getFocusedCell()),!y.isHighlighted&&!g&&this.setRowFocusType(),this._updateFocusedCellPosition(a),this._allowRowUpdating()&&g&&c&&c.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{a=this._getFocusedCell();const D=i&&(0,T.A)(i.target).closest(`${fh}, td`),Y=D&&D.not(a).is(fh),Le=!(c&&!c.command&&a.hasClass(Ql))&&(!y.isHighlighted||Y);this._focus(a,Le,Y)}}}_allowRowUpdating(){const i=this.getVisibleRowIndex(),a=this._dataController.items()[i];return this._editingController.allowUpdating({row:a},"click")}focus(i){let a;const c=this.option("focusedRowEnabled"),g=this._isCellElement((0,T.A)(i));i||(a=".dx-datagrid-rowsview .dx-row[tabindex]",c||(a+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),i=this.component.$element().find(a).first()),i&&this._focusElement((0,T.A)(i),g)}getFocusedView(){return this._focusedView}setupFocusedView(){this.isKeyboardEnabled()&&!(0,w.O9)(this._focusedView)&&this._focusView()}_focusElement(i,a){const c=(0,T.A)(this._getRowsViewElement()),g=i.closest(c),y=this.isRowFocusType();let D={};!g.length||this._isCellElement(i)&&!this._isCellValid(i)||(this._focusView(),this._isNeedFocus=!0,this._isNeedScroll=!0,(this._isCellElement(i)||qf(i))&&(this.setCellFocusType(),D=this._fireFocusChangingEvents(null,i,!0,a),i=D.$newCellElement,y&&!D.isHighlighted&&this.setRowFocusType()),D.cancel||(this._focus(i,!D.isHighlighted),this._focusInteractiveElement(i)))}_getFocusedViewByElement(i){const a=this.getFocusedView(),c=a&&(0,T.A)(a.element());return i&&0!==i.closest(c).length}_focusView(){this._focusedView=this._rowsView}_resetFocusedView(){this.setRowFocusType(),this._focusedView=null}_focusInteractiveElement(i,a){if(!i)return;const c=this._getInteractiveElement(i,a);Ot.focusAndSelectElement(this,c)}_focus(i,a,c){const g=i&&!i.hasClass(fa)?i.closest(`.${fa}`):i;if(g&&function _w(I){return!I||I.hasClass(fx)||I.hasClass("dx-virtual-row")}(g))return;const y=this._focusedView,D=y&&y.element();let Y;this._isHiddenFocus=a;const xe=qf(g)||function bx(I){return I&&I.hasClass("dx-datagrid-group-footer")}(g)||this.isRowFocusType();xe?(Y=g,y&&this.setFocusedRowIndex(this._getRowIndex(g))):this._isCellElement(i)&&(Y=i,this._updateFocusedCellPosition(i)),Y&&(D&&D.find(".dx-row[tabindex], .dx-row > td[tabindex]").filter((Le,st)=>Ot.isElementInCurrentGrid(this,(0,T.A)(st))).not(Y).removeClass(C_).removeClass(b_).removeAttr("tabindex"),P.A.one(Y,"blur",Le=>{Le.relatedTarget&&Y.removeClass(C_).removeClass(b_)}),c||(this._applyTabIndexToElement(Y),P.A.trigger(Y,"focus")),a?(Y.addClass(C_),xe&&i.addClass(C_)):this._editorFactory.focus(Y))}_updateFocus(i){this._updateFocusTimeout=setTimeout(()=>{if(this._needFocusEditingCell())return void this._editingController._focusEditingCell();let a=this._getFocusedCell();const c=this._editingController.isEditing();if((!this.getMasterDetailCell(a)||this._isRowEditMode())&&(this._hasSkipRow(a.parent())&&(a=this._getNextCell(this._focusedCellPosition&&this._focusedCellPosition.rowIndex>0?"upArrow":"downArrow")),rd(a)))if(a.is("td")||a.hasClass(this.addWidgetPrefix("edit-form-item"))){const g=a.is(SC),y=a.find(":focus"),D=rd(y),Y=this._getColumnByCellElement(a);if(!i&&g||!this._editorFactory.focus())!D&&(this._isNeedFocus||this._isHiddenFocus)&&this._focus(a,this._isHiddenFocus);else{if(g&&D)return void Ot.focusAndSelectElement(this,y);!D&&this._focus(a)}c&&(null==Y||!Y.showEditorAlways)&&this._focusInteractiveElement.bind(this)(a)}else P.A.trigger(a,"focus")})}_getColumnByCellElement(i){const c=this._rowsView.getCellIndex(i)+this._columnsController.getColumnIndexOffset();return this._columnsController.getVisibleColumns(null,!0)[c]}_needFocusEditingCell(){const i=this._editingController.getEditMode()===nd,a=this._editingController.getEditMode()===jh,c=i&&this._editingController.hasChanges(),g=a&&this._editingController.isNewRowInEditMode(),y=this._getFocusedCell();return(0===y.children().length||y.find(lh).length>0)&&(c||g)}_getFocusedCell(){return(0,T.A)(this._getCell(this._focusedCellPosition))}_updateFocusedCellPositionByTarget(i){var a;if("row"===this._getElementType(i)&&(0,w.O9)(null===(a=this._focusedCellPosition)||void 0===a?void 0:a.columnIndex)){const g=(0,T.A)(i);this._focusedView&&qf(g)&&this.setFocusedRowIndex(this._getRowIndex(g))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(i))}_updateFocusedCellPosition(i,a){const c=this._getCellPosition(i,a);return c&&(!i.length||c.rowIndex>=0&&c.columnIndex>=0)&&this.setFocusedCellPosition(c.rowIndex,c.columnIndex),c}_getFocusedColumnIndexOffset(i){let a=0;const c=this._columnsController.getVisibleColumns()[i];return c&&c.fixed?a=this._getFixedColumnIndexOffset(c):i>=0&&(a=this._columnsController.getColumnIndexOffset()),a}_getFixedColumnIndexOffset(i){return function Cw(I,i){return I.option("rtlEnabled")?!("right"===i.fixedPosition||(0,w.O9)(i.command)&&!(0,w.O9)(i.fixedPosition)):!(!(0,w.O9)(i.fixedPosition)||"left"===i.fixedPosition)}(this,i)?this._getVisibleColumnCount()-this._columnsController.getVisibleColumns().length:0}_getCellPosition(i,a){let c;const g=rd(i)&&i.closest("tr");if(rd(g)){const y=this._getRowIndex(g);return c=this._rowsView.getCellIndex(i,y),c+=this._getFocusedColumnIndexOffset(c),a&&(c="previous"===a?c-1:c+1,c=this._applyColumnIndexBoundaries(c)),{rowIndex:y,columnIndex:c}}}_focusCell(i,a){if(this._isCellValid(i))return this._focus(i,a),!0}_focusEditFormCell(i){i.hasClass(Xg)&&this._editorFactory.focus(i,!0)}_resetFocusedCell(i){var a;const c=this._getFocusedCell();rd(c)&&c.removeAttr("tabindex"),this._isNeedFocus=!1,this._isNeedScroll=!1,this._focusedCellPosition={},clearTimeout(this._updateFocusTimeout),null===(a=this._focusedView)||void 0===a||a.renderFocusState({preventScroll:i})}restoreFocusableElement(i,a){const c=this;let g,y;const D=(0,w.O9)(i),Y=this._rowsView.element(),{columnIndex:xe}=c._focusedCellPosition,Le=c._dataController.getRowIndexOffset();i=D?i:this._rowsView.getTopVisibleItemIndex()+Le,D?(y=this._rowsView.getRow(i-Le),g=c._fireFocusedRowChanging(a,y),!g.cancel&&g.rowIndexChanged&&(i=g.newRowIndex)):(c._editorFactory.loseFocus(),c._applyTabIndexToElement(Y),P.A.trigger(Y,"focus")),(!D||!g.cancel)&&c.setFocusedCellPosition(i,xe),D&&c._updateFocus()}_getNewPositionByCode(i,a,c){let D,{columnIndex:g}=i,{rowIndex:y}=i;if(void 0===i.rowIndex&&"next"===c)return{columnIndex:0,rowIndex:0};switch(c){case"nextInRow":case"next":D=this._getVisibleColumnCount(),g<D-1&&"row"!==a&&this._hasValidCellAfterPosition({columnIndex:g,rowIndex:y})?g++:!this._isLastRow(y)&&"next"===c&&(g=0,y++);break;case"previousInRow":case"previous":g>0&&"row"!==a&&this._hasValidCellBeforePosition({columnIndex:g,rowIndex:y})?g--:y>0&&"previous"===c&&(y--,D=this._getVisibleColumnCount(),g=D-1);break;case"upArrow":y=y>0?y-1:y;break;case"downArrow":y=this._isLastRow(y)?y:y+1}return{columnIndex:g,rowIndex:y}}setFocusedCellPosition(i,a){this.setFocusedRowIndex(i),this.setFocusedColumnIndex(a)}setFocusedRowIndex(i){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=i}setFocusedColumnIndex(i){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=i}getRowIndex(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex:-1}getColumnIndex(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:-1}getVisibleRowIndex(){var i;const a=null===(i=this._focusedCellPosition)||void 0===i?void 0:i.rowIndex;return!(0,w.O9)(a)||a<0?-1:a-this._dataController.getRowIndexOffset()}getVisibleColumnIndex(){var i;const a=null===(i=this._focusedCellPosition)||void 0===i?void 0:i.columnIndex;return(0,w.O9)(a)?a-this._columnsController.getColumnIndexOffset():-1}_applyColumnIndexBoundaries(i){const a=this._getVisibleColumnCount();return i<0?i=0:i>=a&&(i=a-1),i}_isCellByPositionValid(i){const a=(0,T.A)(this._getCell(i));return this._isCellValid(a)}_isLastRow(i){const a=this._dataController;return this._isVirtualRowRender()?i>=a.getMaxRowIndex():i===Math.max(...a.items().map((g,y)=>!1!==g.visible?y:-1))}_isFirstValidCell(i){let a=!1;return 0===i.rowIndex&&i.columnIndex>=0&&(a=a||!this._hasValidCellBeforePosition(i)),a}_hasValidCellBeforePosition(i){let{columnIndex:a}=i,c=!1;for(;a>0&&!c;){const g={columnIndex:--a,rowIndex:i.rowIndex};c=this._isCellByPositionValid(g)}return c}_hasValidCellAfterPosition(i){let{columnIndex:a}=i,c=!1;const g=this._getVisibleColumnCount();for(;a<g-1&&!c;){const y={columnIndex:++a,rowIndex:i.rowIndex};c=this._isCellByPositionValid(y)}return c}_isLastValidCell(i){const a=i.columnIndex>=0?i.columnIndex+1:0,{rowIndex:c}=i,g={columnIndex:a,rowIndex:c},y=this._dataController.getVisibleRows(),D=y&&y[c];return!!this._isLastRow(c)&&(("group"===D?.rowType||"groupFooter"===D?.rowType)&&i.columnIndex>0||i.columnIndex===this._getVisibleColumnCount()-1||!this._isCellByPositionValid(g)&&this._isLastValidCell(g))}_isCellValid(i,a){if(rd(i)){const c=i.parent(),g=this._rowsView.getCellIndex(i)+this._columnsController.getColumnIndexOffset(),y=this._getColumnByCellElement(i),D=this._getVisibleColumnCount(),Y=this._editingController,xe=function mw(I){return I&&I.hasClass(gx)}(c),Le=y&&y.showWhenGrouped,st=y&&!i.hasClass(v_)&&S_(c),mt=function(){return!xe&&y&&(!(0,w.O9)(y.groupIndex)||Le&&st)||parseInt(i.attr("colspan"),10)>1};if(void 0!==i.attr("dx-drag-cell"))return!1;if(this.getMasterDetailCell(i))return!0;if(D>g&&mt()){const wn=this._dataController.items(),Kn=this._rowsView.getRowIndex(c),Ai=wn[Kn],no=Y&&this._isCellEditMode()&&Y.isEditing(),Yo=Y&&Y.isEditRow(Kn),ps=Yo||no;return y.command?this._isLegacyNavigation()?!ps&&"expand"===y.command:!no&&(Yo?"select"!==y.command:!ps):(!no||!Ai||"data"===Ai.rowType)&&(!ps||y.allowEditing||a)}}}getFirstValidCellInRow(i,a){const c=this,g=i.find("> td");let y,D;for(let Y=a=a||0;Y<g.length;++Y)if(y=g.eq(Y),c._isCellValid(y)){D=y;break}return D}_getNextCell(i,a,c){const g=c||this._focusedCellPosition,y=this.isRowFocusType(),D=y||["next","previous"].includes(i);let Y,xe;if(this._focusedView&&g){const Le=this._getNewPositionByCode(g,a,i);Y=(0,T.A)(this._getCell(Le));const st="previous"===i?this._isFirstValidCell(Le):this._isLastValidCell(Le);if(rd(Y)&&!this._isCellValid(Y)&&this._isCellInRow(Le,D)&&!st&&(Y=y?this.getFirstValidCellInRow(Y.parent(),Le.columnIndex):this._getNextCell(i,"cell",Le)),xe=rd(Y)&&Y.parent(),this._hasSkipRow(xe)){const mt=this._getRowIndex(xe);if(this._isLastRow(mt))return null;Y=this._getNextCell(i,"row",{columnIndex:g.columnIndex,rowIndex:mt})}return rd(Y)?Y:null}return null}_startEditing(i,a){const c=this._focusedCellPosition,g=this.getVisibleRowIndex(),y=this.getVisibleColumnIndex(),D=this._dataController.items()[g],Y=this._columnsController.getVisibleColumns()[y];this._isAllowEditing(D,Y)&&(this._isRowEditMode()?this._editingController.editRow(g):c&&this._startEditCell(i,a))}_isAllowEditing(i,a){return this._editingController.allowUpdating({row:i})&&a&&a.allowEditing}_editFocusedCell(){const i=this.getVisibleRowIndex(),a=this.getVisibleColumnIndex();return this._editingController.editCell(i,a)}_startEditCell(i,a){this._fastEditingStarted=(0,w.O9)(a);const c=this._editFocusedCell(),g=(0,w.uF)(c);if(!this._isFastEditingStarted()||!g&&!c)return;const D=g&&a===DC?"":a,Y=g?c:(0,ye.cY)().resolve(),xe=this._rowsView.waitAsyncTemplates(!0);(0,ye.z7)(Y,xe).done(()=>{this._editingCellHandler(i,D)})}_editingCellHandler(i,a){var c;const g=this._getFocusedCell().find(xu).eq(0),y=g.get(0);if(!y)return;const D=(0,x.lh)(i,{type:"keydown",target:y}),Y=(0,x.lh)(i,{type:"keypress",target:y}),xe=(0,x.lh)(i,{type:"input",target:y});xe.originalEvent&&(xe.originalEvent=(0,x.lh)(xe.originalEvent,{data:a})),null===(c=y.select)||void 0===c||c.call(y),P.A.trigger(g,D),D.isDefaultPrevented()||(P.A.trigger(g,Y),Y.isDefaultPrevented())||setTimeout(()=>{const st=this._getKeyPressInputValue(g,a);g.val(st);const mt=g.closest(".dx-widget");P.A.off(mt,"focusout"),P.A.one(mt,"focusout",()=>{P.A.trigger(g,"change")}),P.A.trigger(g,xe)},Ce.A.mozilla?25:0)}_getKeyPressInputValue(i,a){const c=i.val();return"-"===a&&"-0"===c?"-0":a}_fireFocusChangingEvents(i,a,c,g){let y={};const D=this._getCellPosition(a)??{};return this.isCellFocusType()&&(y=this._fireFocusedCellChanging(i,a,g),y.cancel||(D.columnIndex=y.newColumnIndex,D.rowIndex=y.newRowIndex,g=y.isHighlighted,a=(0,T.A)(this._getCell(D)))),!y.cancel&&c&&a&&(y=this._fireFocusedRowChanging(i,a.parent()),y.cancel||(D.rowIndex=y.newRowIndex,y.isHighlighted=g)),y.$newCellElement=(0,T.A)(this._getCell(D)),y.$newCellElement.length||(y.$newCellElement=a),y}_fireFocusedCellChanging(i,a,c){const g=this.option("focusedColumnIndex"),y=this.option("focusedRowIndex"),D=this._getCellPosition(a),Y=D?D.columnIndex:-1,xe=D?D.rowIndex:-1,mt={cellElement:a,prevColumnIndex:g,prevRowIndex:y,newColumnIndex:Y,newRowIndex:xe,rows:this._dataController.getVisibleRows(),columns:this._columnsController.getVisibleColumns(),event:i,isHighlighted:c||!1,cancel:!1};return this._canceledCellPosition=null,this.executeAction("onFocusedCellChanging",mt),(mt.newColumnIndex!==Y||mt.newRowIndex!==xe)&&(mt.$newCellElement=(0,T.A)(this._getCell({columnIndex:mt.newColumnIndex,rowIndex:mt.newRowIndex}))),mt.cancel&&(this._canceledCellPosition={rowIndex:xe,columnIndex:Y}),mt}_fireFocusedCellChanged(i){const a=this._rowsView.getCellIndex(i),c=i?.parent().data("options"),g=c?.key;this._memoFireFocusedCellChanged(g,a)}_memoFireFocusedCellChanged(i,a){const c=this._getFocusedCell(),g=this._getRowIndex(c?.parent()),y=Math.min(g-this._dataController.getRowIndexOffset(),this._dataController.items().length-1);if(this._editingController.isEditCell(y,a))return;const Y=this._dataController.items()[y],xe=this._columnsController.getVisibleColumns()[a];this.executeAction("onFocusedCellChanged",{cellElement:c?(0,W.cc)(c):void 0,columnIndex:a,rowIndex:g,row:Y,column:xe})}_fireFocusedRowChanging(i,a){const c=this._getRowIndex(a),g=this.option("focusedRowIndex"),y=this._dataController.loadingOperationTypes(),D={rowElement:a,prevRowIndex:g,newRowIndex:c,event:i,rows:this._dataController.getVisibleRows(),cancel:!1},Y=y.sorting||y.grouping||y.filtering||y.paging;return!this._dataController||this._dataController.isLoading()&&Y?(D.cancel=!0,D):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",D),!D.cancel&&D.newRowIndex!==c&&(D.resetFocusedRow=D.newRowIndex<0,D.resetFocusedRow||this.setFocusedRowIndex(D.newRowIndex),D.rowIndexChanged=!0)),D)}_fireFocusedRowChanged(){var i;const a=this.option("focusedRowEnabled"),c=this.option("focusedRowKey"),g=null===(i=this._focusController)||void 0===i?void 0:i.getFocusedRowIndexByKey(c);!a||(0,w.O9)(c)&&g<0||this._memoFireFocusedRowChanged(c,g)}_memoFireFocusedRowChanged(i,a){const c=a-this._dataController.getRowIndexOffset();this.executeAction("onFocusedRowChanged",{rowElement:a<0?void 0:this._rowsView.getRowElement(c),rowIndex:a,row:a<0?void 0:this._dataController.getVisibleRows()[c]})}_isEventInCurrentGrid(i){return Ot.isElementInCurrentGrid(this,(0,T.A)(i.target))}_isRowEditMode(){const i=this._editingController.getEditMode();return i===mu||i===Bd}_isCellEditMode(){const i=this._editingController.getEditMode();return i===nd||i===jh}_isFastEditingAllowed(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")}_getInteractiveElement(i,a){const c=i.find(xu).filter(":visible");return a?c.last():c.first()}_applyTabIndexToElement(i){const a=this.option("tabIndex")??0;i.attr("tabindex",a)}_getCell(i){if(this._focusedView&&i){const a=this._dataController.getRowIndexOffset(),c=this._columnsController.getVisibleColumns(null,!0)[i.columnIndex],g=c&&c.fixed?this._getFixedColumnIndexOffset(c):this._columnsController.getColumnIndexOffset();return this._focusedView.getCell({rowIndex:i.rowIndex>=0?i.rowIndex-a:-1,columnIndex:i.columnIndex>=0?i.columnIndex-g:-1})}}_getRowIndex(i){let a=this._rowsView.getRowIndex(i);return a>=0&&(a+=this._dataController.getRowIndexOffset()),a}_hasSkipRow(i){const a=i&&i.get(0);return a&&"none"===a.style.display}_allowEditingOnEnterKey(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")}_isLegacyNavigation(){return this.option("useLegacyKeyboardNavigation")}_getDirectionCodeByKey(i){let a;switch(i){case"upArrow":a="prevRow";break;case"downArrow":a="nextRow";break;case"leftArrow":a=this.option("rtlEnabled")?"nextInRow":"previousInRow";break;case"rightArrow":a=this.option("rtlEnabled")?"previousInRow":"nextInRow"}return a}_isVirtualScrolling(){const i=this.option("scrolling.mode");return"virtual"===i||"infinite"===i}_isVirtualRowRender(){return this._isVirtualScrolling()||Ot.isVirtualRowRendering(this)}_isVirtualColumnRender(){return"virtual"===this.option("scrolling.columnRenderingMode")}_scrollBy(i,a,c,g){const y=this,D=this._rowsView.getScrollable();if(y._focusedCellPosition){const Y=function(){D.off("scroll",Y),setTimeout(y.restoreFocusableElement.bind(y,c,g))};D.on("scroll",Y)}return D.scrollBy({left:i,top:a})}_isInsideEditForm(i){const a=(0,T.A)(i).closest(`.${this.addWidgetPrefix(uc)}`);return a.length&&this.elementIsInsideGrid(a)}getMasterDetailCell(i){const a=(0,T.A)(i).closest(`.${Xg}`);return a.length&&this.elementIsInsideGrid(a)?a:null}_processNextCellInMasterDetail(i,a){!this._isInsideEditForm(i)&&i&&this._applyTabIndexToElement(i)}_handleTabKeyOnMasterDetailCell(i,a){if(this.getMasterDetailCell(i)){this._updateFocusedCellPosition((0,T.A)(i),a);const c=this._getNextCell(a,"row");return this._processNextCellInMasterDetail(c,(0,T.A)(i)),!0}return!1}_getElementType(i){return(0,T.A)(i).is("tr")?"row":"cell"}_isFastEditingStarted(){return this._isFastEditingAllowed()&&this._fastEditingStarted}_getVisibleColumnCount(){return this._columnsController.getVisibleColumns(null,!0).length}_isCellInRow(i,a){const{columnIndex:c}=i,g=this._getVisibleColumnCount();return a?c>=0&&c<=g-1:c>0&&c<g-1}_isCellElement(i){return i.length&&"TD"===i[0].tagName}_getCellElementFromTarget(i){const a=this._getElementType(i),c=(0,T.A)(i);let g;return g="cell"===a?c.closest(`.${fa} > td`):c.children().not(`.${v_}`).first(),g}_getRowsViewElement(){var i;return null===(i=this._rowsView)||void 0===i?void 0:i.element()}isKeyboardEnabled(){return this.option("keyboardNavigation.enabled")}_processCanceledEditCellPosition(i,a){if(this._canceledCellPosition){const c=this._canceledCellPosition.rowIndex===i&&this._canceledCellPosition.columnIndex===a;return this._canceledCellPosition=null,c}}updateFocusedRowIndex(){const i=this._dataController,a=this.getVisibleRowIndex(),c=i.items(),g=c.length?c.length-1:-1,y=i.getRowIndexOffset();g>=0&&a>g&&this.setFocusedRowIndex(g+y)}}},extenders:{views:{rowsView:I=>class extends I{_rowClick(i){const a=this._editingController.getEditRowIndex(),c=this._keyboardNavigationController.isKeyboardEnabled();a===i.rowIndex&&this._keyboardNavigationController.setCellFocusType(),(em()||!c)&&this.option("focusedRowEnabled")&&this._triggerPointerDownEventHandler(i,!c),super._rowClick.apply(this,arguments)}_triggerPointerDownEventHandler(i,a){const{originalEvent:c}=i.event;if(c){const g=(0,T.A)(c.target),y=this.getCellIndex(g),D=this._columnsController.getVisibleColumns()[y],Y=this._dataController.items()[i.rowIndex];if(this._keyboardNavigationController._isAllowEditing(Y,D)||a){const xe=(0,x.lh)(c,{currentTarget:c.target});this._keyboardNavigationController._pointerEventHandler(xe)}}}renderFocusState(i){super.renderFocusState(i);const{preventScroll:a,pageSizeChanged:c}=i??{},g=this.element();g&&!(0,wf.in)(g)&&g.attr("tabindex",null),c&&this._keyboardNavigationController.updateFocusedRowIndex();let y=this._keyboardNavigationController.getVisibleRowIndex();(!(0,w.O9)(y)||y<0)&&(y=0);const D=this.getCellElements(y);this._keyboardNavigationController.isKeyboardEnabled()&&null!=D&&D.length&&this.updateFocusElementTabIndex(D,a)}updateFocusElementTabIndex(i,a){const c=i.eq(0).parent();if(qf(c))this._keyboardNavigationController._applyTabIndexToElement(c);else{let g=this._keyboardNavigationController.getColumnIndex();(!(0,w.O9)(g)||g<0)&&(g=0),this._updateFocusedCellTabIndex(i,g)}}_updateFocusedCellTabIndex(i,a){const c=this._keyboardNavigationController,g=i?i.length:-1,y=function(Y){const xe=!!c.getMasterDetailCell(Y),Le=c._isCellValid(Y);if(!xe&&Le&&c._isCellElement(Y))return c._applyTabIndexToElement(Y),c.setCellFocusType(),!0},D=((I,i)=>I.filter((I=>[`[aria-colindex="${I+1}"]`,":not([dx-drag-cell])",":not([aria-hidden=true])"].join(""))(i)).first())(i,a);if(D.length)y(D);else{g<=a&&(a=g-1);for(let Y=a;Y<g&&!y((0,T.A)(i[Y]));++Y);}}renderDelayedTemplates(i){super.renderDelayedTemplates.apply(this,arguments),this.waitAsyncTemplates().done(()=>{this._renderFocusByChange(i)})}_renderFocusByChange(i){var a;const{operationTypes:c,repaintChangesOnly:g}=i??{},{fullReload:y,pageSize:D}=c??{},Y=!(null==i||null===(a=i.changeTypes)||void 0===a||!a.find(xe=>"insert"===xe||"remove"===xe));if(!i||!g||y||D||Y){const xe=function IC(I){const i=I.getController("keyboardNavigation");return!!i._isVirtualScrolling()&&I.option("focusedRowIndex")===i.getRowIndex()}(this);this.renderFocusState({preventScroll:xe,pageSizeChanged:D})}}_renderCore(i){const a=super._renderCore.apply(this,arguments);return this._renderFocusByChange(i),a}_editCellPrepared(i){var a;const c=this._getEditorInstance(i),g=null===(a=this._keyboardNavigationController)||void 0===a?void 0:a._isFastEditingStarted();c&&g&&this._handleEditingNavigationMode(c),super._editCellPrepared.apply(this,arguments)}_handleEditingNavigationMode(i){["downArrow","upArrow"].forEach(c=>{const g=i._supportedKeys()[c];i.registerKeyHandler(c,y=>{if("true"===i._input().attr("aria-expanded"))return g&&g.call(i,y)})}),i.registerKeyHandler("leftArrow",b.lQ),i.registerKeyHandler("rightArrow",b.lQ),"dxDateBox"===i.NAME&&i.option("useMaskBehavior")&&i.registerKeyHandler("enter",b.lQ)}_getEditorInstance(i){const a=i.find(".dx-texteditor").eq(0);return Ot.getWidgetInstance(a)}}},controllers:{editing:I=>class extends I{editCell(i,a){if(this._keyboardNavigationController._processCanceledEditCellPosition(i,a))return!1;const c=super.editCell(i,a);return c&&this._keyboardNavigationController.setupFocusedView(),c}editRow(i){const a=this._keyboardNavigationController.getVisibleColumnIndex(),c=this._columnsController.getVisibleColumns()[a];(c&&c.type||this.option("editing.mode")===Bd)&&this._keyboardNavigationController._resetFocusedCell(),super.editRow(i)}addRow(i){return this._keyboardNavigationController.setupFocusedView(),this._keyboardNavigationController.setCellFocusType(),super.addRow.apply(this,arguments)}getFocusedCellInRow(i){let a=super.getFocusedCellInRow(i);const c=this._dataController.getRowIndexOffset(),g=this._keyboardNavigationController._focusedCellPosition.rowIndex-c;if(this._keyboardNavigationController.isKeyboardEnabled()&&g===i){const y=this._keyboardNavigationController._getFocusedCell();rd(y)&&!y.hasClass(_x)&&(a=y)}return a}_processCanceledEditingCell(){this.closeEditCell().done(()=>{this._keyboardNavigationController._updateFocus()})}closeEditCell(){const i=this._keyboardNavigationController;i._fastEditingStarted=!1;const a=super.closeEditCell.apply(this,arguments);return i._updateFocus(),a}_delayedInputFocus(){this._keyboardNavigationController._isNeedScroll=!0,super._delayedInputFocus.apply(this,arguments)}_isEditingStart(){const i=super._isEditingStart.apply(this,arguments);if(i&&!this._keyboardNavigationController._isNeedFocus){const a=this._keyboardNavigationController._getFocusedCell();this._keyboardNavigationController._focus(a,!0)}return i}},data:I=>class extends I{_correctRowIndices(i){const a=this._keyboardNavigationController._focusedCellPosition;if(super._correctRowIndices.apply(this,arguments),a&&a.rowIndex>=0){const c=i(a.rowIndex);c&&(a.rowIndex+=c,this._editorFactoryController.refocus())}}getMaxRowIndex(){let i=this.items().length-1;const a=this.virtualItemsCount();return a&&(i+=this.getRowIndexOffset()+a.end),i}},adaptiveColumns:I=>class extends I{_showHiddenCellsInView(i){let{viewName:a,$cells:c,isCommandColumn:g}=i;super._showHiddenCellsInView.apply(this,arguments),a===AC&&!g&&c.each((y,D)=>{const Y=(0,T.A)(D);vw(Y)&&Y.attr("tabindex",0)})}_hideVisibleCellInView(i){let{viewName:a,$cell:c,isCommandColumn:g}=i;super._hideVisibleCellInView.apply(this,arguments),a===AC&&!g&&vw(c)&&c.removeAttr("tabindex")}_hideVisibleColumnInView(i){let{view:a,isCommandColumn:c,visibleIndex:g}=i;super._hideVisibleColumnInView({view:a,isCommandColumn:c,visibleIndex:g}),"rowsView"===a.name&&this._rowsView.renderFocusState(null)}},keyboardNavigation:I=>class extends I{rowsViewFocusHandler(i){const a=(0,T.A)(i.target);this.translateFocusIfNeed(i,a),super.rowsViewFocusHandler(i)}rowsViewFocusOutHandler(){super.rowsViewFocusOutHandler(),this.makeScrollableFocusableIfNeed()}translateFocusIfNeed(i,a){const c=this.isScrollableNeedFocusable(),g=this._isFixedColumn(0);if(!c||!g)return;const y=this._rowsView.getCell({rowIndex:0,columnIndex:0}),D=!!y.attr("tabindex"),Y=a.is(this._$firstNotFixedCell);D&&Y&&(i.preventDefault(),this._focus(y))}renderCompleted(i){this._$firstNotFixedCell=this.getFirstNotFixedCell(),this.makeScrollableFocusableIfNeed(),super.renderCompleted(i)}_focus(i,a,c){super._focus(i,a,c),this.makeScrollableFocusableIfNeed()}_tabKeyHandler(i,a){const g=!((0,w.O9)(this._focusedCellPosition)&&!(0,w.RI)(this._focusedCellPosition))||!i.shift&&this._isLastValidCell(this._focusedCellPosition)||i.shift&&this._isFirstValidCell(this._focusedCellPosition),y=this.isScrollableNeedFocusable();var D;g&&y&&(null===(D=this._$firstNotFixedCell)||void 0===D||D.removeAttr("tabIndex")),super._tabKeyHandler(i,a)}getFirstNotFixedCell(){const a=this._columnsController.getVisibleColumns().findIndex(c=>{let{fixed:g}=c;return!g});return-1===a?void 0:this._rowsView._getCellElement(0,a)}isScrollableNeedFocusable(){var i,a;const c=!!this._rowsView.getScrollable(),g=!(null===(i=this._rowsView._fixedTableElement)||void 0===i||!i.length),y=!(null===(a=this._rowsView.getCellElements(0))||void 0===a||!a.length);return c&&g&&y}makeScrollableFocusableIfNeed(){!this.isScrollableNeedFocusable()||!this._$firstNotFixedCell||this._applyTabIndexToElement(this._$firstNotFixedCell)}}}}});class oA{constructor(i){this._data=i.data,this._groupLevel=i.groupLevel||0,this._totalAggregates=tm(i.totalAggregates||[],ww),this._groupAggregates=tm(i.groupAggregates||[],ww),this._totals=[]}calculate(){this._totalAggregates.length&&this._calculateTotals(0,{items:this._data}),this._groupAggregates.length&&this._groupLevel>0&&this._calculateGroups({items:this._data})}totalAggregates(){return this._totals}_aggregate(i,a,c){const g=a.items?a.items.length:0;for(let y=0;y<i.length;y++)if(Sx(i[y].aggregator))c[y]=(c[y]||0)+g;else for(let D=0;D<g;D++)this._accumulate(y,i[y],c,a.items[D])}_calculateTotals(i,a){if(0===i&&(this._totals=this._seed(this._totalAggregates)),i===this._groupLevel)this._aggregate(this._totalAggregates,a,this._totals);else for(let c=0;c<a.items.length;c++)this._calculateTotals(i+1,a.items[c]);0===i&&(this._totals=this._finalize(this._totalAggregates,this._totals))}_calculateGroups(i){const a=this._groupLevel;let c=a+1;const g=this._seed.bind(this,this._groupAggregates),y=this._aggregate.bind(this,this._groupAggregates),D=this._finalize.bind(this,this._groupAggregates);function Y(xe){xe.aggregates=g(c-1),c===a?y(xe,xe.aggregates):MC(c,a,xe,Le=>{y(Le,xe.aggregates)}),xe.aggregates=D(xe.aggregates)}for(;--c>0;)MC(0,c,i,Y)}_seed(i,a){return tm(i,c=>{const{aggregator:g}=c;return"seed"in g?(0,w.Tn)(g.seed)?g.seed(a):g.seed:NaN})}_accumulate(i,a,c,g){const y=a.selector(g),{aggregator:D}=a,{skipEmptyValues:Y}=a;Y&&function Ow(I){return I!=I||""===I||null==I}(y)||(c[i]=c[i]!=c[i]?y:D.step(c[i],y))}_finalize(i,a){return tm(i,(c,g)=>{const y=c.aggregator.finalize;return y?y(a[g]):a[g]})}}const D_=function(I,i){const a=(0,T.A)(I),{column:c}=i,{summaryItems:g}=i,y=[];if(!c.command&&g){for(let D=0;D<g.length;D++){const Y=g[D],xe=Dt.getSummaryText(Y,i.summaryTexts);y.push((0,T.A)("<div>").css("textAlign",Y.alignment||c.alignment).addClass("dx-datagrid-summary-item").addClass("dx-datagrid-text-content").addClass(Y.cssClass).toggleClass("dx-datagrid-group-text-content","group"===i.rowType).text(xe).attr("aria-label",`${c.caption} ${xe}`))}a.append(y)}},nm=function(I,i){const a=I.option("summary.texts")||{};return{totalItem:i.row,summaryItems:i.row.summaryCells[i.columnIndex],summaryTexts:a}},Yg=function(I){return I.summary||I.aggregates||[]},im=function(I){return I.option("summary.recalculateWhileEditing")},T_=function(I,i,a,c){c=c||[];for(let g=0;g<I.length;g++)c.push(I[g].key),1===i?a(c,I[g].items):T_(I[g].items,i-1,a,c),c.pop()},Ax=function(I,i,a){return a?Ax(I,i.map(c=>({items:[c]}),a-1)):I.concat(i)},Dw=function(I,i,a){return a?I.map(c=>{const g={},y=Dw(c.items||[],i,a-1);return Object.defineProperty(g,"aggregates",{get:()=>c.aggregates,set:D=>{c.aggregates=D}}),(0,C.X)(g,c,{items:y})}):I.filter(c=>i.indexOf(c)<0)},om=function(I,i,a){if(!I||!i.length)return I;const g=a[0];let y;return i[0]&&g&&g.length&&(y=(0,Sd.A)(I),(0,e.__)(g,function(D){y=0===D?y.sortBy(this.selector,this.desc):y.thenBy(this.selector,this.desc)}),y.enumerate().done(D=>{I=D})),i=i.slice(1),a=a.slice(1),i.length&&a.length&&(0,e.__)(I,function(){this.items=om(this.items,i,a)}),I},Qg=function(I,i,a){const c=a&&a.sortByGroups&&a.sortByGroups();return c&&c.length?om(I,i,c):I},A_=function(I,i,a,c){let g;if(im(I)){const y=I._editingController;if(y){const D=y.getInsertedData();D.length&&(a=Ax(a,D,c));const Y=y.getRemovedData();Y.length&&(a=Dw(a,Y,c))}}return i&&(g=new oA({totalAggregates:i.totalAggregates,groupAggregates:i.groupAggregates,data:a,groupLevel:c}),g.calculate()),g?g.totalAggregates():[]};js.extend(I=>class extends I{init(){super.init.apply(this,arguments),this._editingController=this.getController("editing"),this._totalAggregates=[],this._summaryGetter=b.lQ}summaryGetter(i){if(!arguments.length)return this._summaryGetter;(0,w.Tn)(i)&&(this._summaryGetter=i)}summary(i){if(!arguments.length)return this._summaryGetter();this._summaryGetter=function(){return i}}totalAggregates(){return this._totalAggregates}isLastLevelGroupItemsPagingLocal(){const i=this.summary(),a=i?.sortByGroups();return a?.length}sortLastLevelGroupItems(i,a,c){const g=uu.A.multiLevelGroup((0,Sd.A)(i),a).toArray();let y=[];return c.forEach(D=>{T_(g,a.length,(Y,xe)=>{D.toString()===Y.toString()&&(y=y.concat(xe))})}),y}_customizeRemoteOperations(i){const a=this.summary();a&&(i.remoteOperations.summary?(!i.isCustomLoading||i.storeLoadOptions.isLoadingAll)&&(i.storeLoadOptions.group&&(i.remoteOperations.grouping?i.storeLoadOptions.groupSummary=a.groupAggregates:a.groupAggregates.length&&(i.remoteOperations.paging=!1)),i.storeLoadOptions.totalSummary=a.totalAggregates):(a.totalAggregates.length||a.groupAggregates.length&&i.storeLoadOptions.group)&&(i.remoteOperations.paging=!1)),super._customizeRemoteOperations.apply(this,arguments);const c=i.cachedData.extra;null!=c&&c.summary&&!i.isCustomLoading&&(i.storeLoadOptions.totalSummary=void 0)}_handleDataLoadedCore(i){const a=(0,Mi.st)(i.storeLoadOptions.group||i.loadOptions.group||[]),c=i.remoteOperations||{},g=this.summaryGetter()(c);if(!i.isCustomLoading||i.storeLoadOptions.isLoadingAll)if(c.summary)!c.paging&&a.length&&g&&(c.grouping||A_(this,{groupAggregates:g.groupAggregates},i.data,a.length),i.data=Qg(i.data,a,g));else if(!c.paging&&g){var y;const D=i.operationTypes||{};if(!Object.keys(D).some(xe=>D[xe])||null===(y=i.cachedData)||void 0===y||null===(y=y.extra)||void 0===y||!y.summary||a.length&&g.groupAggregates.length){const xe=A_(this,g,i.data,a.length);i.extra=(0,w.Qd)(i.extra)?i.extra:{},i.extra.summary=xe,i.cachedData&&(i.cachedData.extra=i.extra)}i.data=Qg(i.data,a,g)}i.isCustomLoading||(this._totalAggregates=i.extra&&i.extra.summary||this._totalAggregates),super._handleDataLoadedCore(i)}}),Dt.registerModule("summary",{defaultOptions:()=>({summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,recalculateWhileEditing:!1,texts:{sum:v.A.format("dxDataGrid-summarySum"),sumOtherColumn:v.A.format("dxDataGrid-summarySumOtherColumn"),min:v.A.format("dxDataGrid-summaryMin"),minOtherColumn:v.A.format("dxDataGrid-summaryMinOtherColumn"),max:v.A.format("dxDataGrid-summaryMax"),maxOtherColumn:v.A.format("dxDataGrid-summaryMaxOtherColumn"),avg:v.A.format("dxDataGrid-summaryAvg"),avgOtherColumn:v.A.format("dxDataGrid-summaryAvgOtherColumn"),count:v.A.format("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}),views:{footerView:class FC extends fs{_getRows(){return this._dataController.footerItems()}_getCellOptions(i){return(0,C.X)(super._getCellOptions(i),nm(this,i))}_renderCellContent(i,a){D_(i,a),super._renderCellContent.apply(this,arguments)}_renderCore(i){let a=!1;const c=this._dataController.footerItems()[0];(!i||!i.columnIndices)&&(this.element().empty().addClass("dx-datagrid-total-footer").toggleClass("dx-datagrid-nowrap",!this.option("wordWrapEnabled")),a=!0),c&&c.summaryCells&&c.summaryCells.length&&(this._updateContent(this._renderTable({change:i}),i),a&&this._updateScrollLeftPosition())}_updateContent(i,a){return a&&"update"===a.changeType&&a.columnIndices?this.waitAsyncTemplates().done(()=>{const c=this.getTableElement().find(".dx-row"),g=i.find(".dx-row");this._updateCells(c,g,a.columnIndices[0])}):super._updateContent.apply(this,arguments)}_rowClick(i){const a=this._dataController.footerItems()[i.rowIndex]||{};this.executeAction("onRowClick",(0,C.X)({},i,a))}_columnOptionChanged(i){const{optionNames:a}=i;i.changeTypes.grouping||(a.width||a.visibleWidth)&&super._columnOptionChanged(i)}_handleDataChanged(i){const{changeType:a}=i;"update"===i.changeType&&i.repaintChangesOnly?i.totalColumnIndices?i.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[i.totalColumnIndices]}):this.render():("refresh"===a||"append"===a||"prepend"===a)&&this.render()}_createRow(i){const a=super._createRow.apply(this,arguments);return"totalFooter"===i.rowType&&(a.addClass("dx-footer-row"),a.addClass("dx-cell-focus-disabled"),a.attr("tabindex",0)),a}getHeight(){return this.getElementHeight()}isVisible(){return!!this._dataController.footerItems().length}}},extenders:{controllers:{data:I=>class extends I{_isDataColumn(i){return i&&(!(0,w.O9)(i.groupIndex)||i.showWhenGrouped)}_isGroupFooterVisible(){const i=this.option("summary.groupItems")||[];for(let a=0;a<i.length;a++){const c=i[a],g=this._columnsController.columnOption(c.showInColumn||c.column);if(c.showInGroupFooter&&this._isDataColumn(g))return!0}return!1}_processGroupItems(i,a,c){const g=c&&c.data,y=super._processGroupItems.apply(this,arguments);return c&&(void 0===c.isGroupFooterVisible&&(c.isGroupFooterVisible=this._isGroupFooterVisible()),g&&g.items&&c.isGroupFooterVisible&&(c.collectContinuationItems||!g.isContinuationOnNextPage)&&y.push({rowType:"groupFooter",key:c.path.slice(),data:g,groupIndex:c.path.length-1,values:[]})),y}_processGroupItem(i,a){const c=this;if(a.summaryGroupItems||(a.summaryGroupItems=c.option("summary.groupItems")||[]),"group"===i.rowType){let g=-1,y=-1;(0,e.__)(a.visibleColumns,function(D){i.groupIndex===this.groupIndex&&(g=this.index),D>0&&"expand"===a.visibleColumns[D-1].command&&"expand"!==this.command&&(y=this.index)}),i.summaryCells=this._calculateSummaryCells(a.summaryGroupItems,Yg(i.data),a.visibleColumns,(D,Y)=>D.showInGroupFooter?-1:D.alignByColumn&&Y&&!(0,w.O9)(Y.groupIndex)&&Y.index!==y?Y.index:g,!0)}return"groupFooter"===i.rowType&&(i.summaryCells=this._calculateSummaryCells(a.summaryGroupItems,Yg(i.data),a.visibleColumns,(g,y)=>g.showInGroupFooter&&c._isDataColumn(y)?y.index:-1)),i}_calculateSummaryCells(i,a,c,g,y){const D=this,Y=[],xe={};return(0,e.__)(i,(Le,st)=>{const mt=D._columnsController.columnOption(st.column),on=st.showInColumn&&D._columnsController.columnOption(st.showInColumn)||mt,wn=g(st,on);if(wn>=0){xe[wn]||(xe[wn]=[]);const Kn=a[Le];if(Kn==Kn){let Ai;(0,w.O9)(st.valueFormat)?Ai=st.valueFormat:"count"!==st.summaryType&&(Ai=Dt.getFormatByDataType(mt&&mt.dataType)),xe[wn].push((0,C.X)({},st,{value:(0,w.Kg)(Kn)&&mt&&mt.deserializeValue?mt.deserializeValue(Kn):Kn,valueFormat:Ai,columnCaption:mt&&mt.index!==wn?mt.caption:void 0}))}}}),(0,w.RI)(xe)||c.forEach((Le,st)=>{const mt=c[st-1];Y.push(xe[!y||"expand"!==mt?.command&&"expand"!==Le.command?Le.index:mt?.index]||[])}),Y}_getSummaryCells(i,a){const c=this;return c._calculateSummaryCells(i,a,c._columnsController.getVisibleColumns(),(y,D)=>c._isDataColumn(D)?D.index:-1)}_updateItemsCore(i){const a=this;let c;const g=a._dataSource,y=a._footerItems,D=y&&y[0]&&y[0].summaryCells,Y=a.option("summary.totalItems");if(a._footerItems=[],g&&Y&&Y.length){const xe=g.totalAggregates();c=a._getSummaryCells(Y,xe),i&&i.repaintChangesOnly&&D&&(i.totalColumnIndices=c.map((Le,st)=>JSON.stringify(Le)!==JSON.stringify(D[st])?st:-1).filter(Le=>Le>=0)),c.length&&a._footerItems.push({rowType:"totalFooter",summaryCells:c})}super._updateItemsCore(i)}_prepareUnsavedDataSelector(i){if(im(this)){const a=this._editingController;if(a)return function(c){return c=a.getUpdatedData(c),i(c)}}return i}_prepareAggregateSelector(i,a){return i=this._prepareUnsavedDataSelector(i),"avg"===a||"sum"===a?function(c){const g=i(c);return(0,w.O9)(g)?Number(g):g}:i}_getAggregates(i,a){const c=this;let g=c.option("summary.calculateCustomSummary");const y=c.option("summary.skipEmptyValues");return(0,e.Tj)(i||[],D=>{const Y=this._columnsController.columnOption(D.column),xe=Y&&Y.calculateCellValue?Y.calculateCellValue.bind(Y):(0,nn.Hz)(Y?Y.dataField:D.column);let Le=D.summaryType||"count";const st=(0,w.O9)(D.skipEmptyValues)?D.skipEmptyValues:y;if(a)return{selector:D.column,summaryType:Le};const mt=c._prepareAggregateSelector(xe,Le);if("custom"===Le){g||(We.A.log("E1026"),g=function(){});const on={component:c.component,name:D.name};g(on),on.summaryProcess="calculate",Le={seed:wn=>(on.summaryProcess="start",on.totalValue=void 0,on.groupIndex=wn,delete on.value,g(on),on.totalValue),step:(wn,Kn)=>(on.summaryProcess="calculate",on.totalValue=wn,on.value=Kn,g(on),on.totalValue),finalize:wn=>(on.summaryProcess="finalize",on.totalValue=wn,delete on.value,g(on),on.totalValue)}}return{selector:mt,aggregator:Le,skipEmptyValues:st}})}_addSortInfo(i,a,c,g){if(a){const{groupIndex:y}=a;g=g||a.sortOrder,(0,w.O9)(y)&&(i[y]=i[y]||[],i[y].push({selector:c,desc:"desc"===g}))}}_findSummaryItem(i,a){let c=-1;return(0,w.O9)(a)&&(0,e.__)(i||[],function(g){if(this.name===a||g===a||this.summaryType===a||this.column===a||function(y){const{summaryType:D}=y,{column:Y}=y;return D&&Y&&`${D}_${Y}`}(this)===a)return c=g,!1}),c}_getSummarySortByGroups(i,a){const c=this,g=c._columnsController,y=g.getGroupColumns(),D=[];if(a&&a.length)return(0,e.__)(i||[],function(){const{sortOrder:Y}=this;let{groupColumn:xe}=this;const Le=c._findSummaryItem(a,this.summaryItem);if(Le<0)return;const st=function(mt){return Yg(mt)[Le]};(0,w.O9)(xe)?(xe=g.columnOption(xe),c._addSortInfo(D,xe,st,Y)):(0,e.__)(y,(mt,on)=>{c._addSortInfo(D,on,st,Y)})}),D}_createDataSourceAdapterCore(i,a){const c=this,g=super._createDataSourceAdapterCore(i,a);return g.summaryGetter(y=>c._getSummaryOptions(y||a)),g}_getSummaryOptions(i){const a=this,c=a.option("summary.groupItems"),g=a.option("summary.totalItems"),y=a.option("sortByGroupSummaryInfo"),D=a._getAggregates(c,i&&i.grouping&&i.summary),Y=a._getAggregates(g,i&&i.summary);if(D.length||Y.length)return{groupAggregates:D,totalAggregates:Y,sortByGroups:function(){return a._getSummarySortByGroups(y,c)}}}publicMethods(){const i=super.publicMethods();return i.push("getTotalSummaryValue"),i}getTotalSummaryValue(i){const a=this._findSummaryItem(this.option("summary.totalItems"),i),c=this._dataSource.totalAggregates();if(c.length&&a>-1)return c[a]}optionChanged(i){("summary"===i.name||"sortByGroupSummaryInfo"===i.name)&&(i.name="dataSource"),super.optionChanged(i)}init(){this._footerItems=[],super.init()}footerItems(){return this._footerItems}},editing:I=>class extends I{_refreshSummary(){im(this)&&!this.isSaving()&&this._dataController.refresh({load:!0,changesOnly:!0})}_addChange(i){const a=super._addChange.apply(this,arguments);return i.type&&this._refreshSummary(),a}_removeChange(){const i=super._removeChange.apply(this,arguments);return this._refreshSummary(),i}cancelEditData(){const i=super.cancelEditData.apply(this,arguments);return this._refreshSummary(),i}}},views:{rowsView:I=>class extends I{_createRow(i){const a=super._createRow.apply(this,arguments);return i&&a.addClass("groupFooter"===i.rowType?"dx-datagrid-group-footer":""),a}_renderCells(i,a){super._renderCells.apply(this,arguments),"group"===a.row.rowType&&a.row.summaryCells&&a.row.summaryCells.length&&this._renderGroupSummaryCells(i,a)}_hasAlignByColumnSummaryItems(i,a){return!(0,w.O9)(a.columns[i].groupIndex)&&a.row.summaryCells[i].length}_getAlignByColumnCellCount(i,a){let c=0;for(let g=1;g<i;g++)c=this._hasAlignByColumnSummaryItems(a.row.summaryCells.length-g,a)?g:c;return c}_renderGroupSummaryCells(i,a){const c=i.children().last(),g=Number(c.attr("colSpan"))||1,y=this._getAlignByColumnCellCount(g,a);this._renderGroupSummaryCellsCore(c,a,g,y)}_renderGroupSummaryCellsCore(i,a,c,g){if(g>0){i.attr("colSpan",c-g);for(let y=0;y<g;y++){const D=a.columns.length-g+y;this._renderCell(i.parent(),(0,C.X)({column:a.columns[D],columnIndex:this._getSummaryCellIndex(D,a.columns)},a))}}}_getSummaryCellIndex(i,a){return i}_getCellTemplate(i){return!i.column.command&&!(0,w.O9)(i.column.groupIndex)&&i.summaryItems&&i.summaryItems.length?D_:super._getCellTemplate(i)}_getCellOptions(i){const c=super._getCellOptions(i);return i.row.summaryCells?(0,C.X)(c,nm(this,i)):c}}}}});var lA=p(2123),Px=p(8573);const vc=function(I){let i=-1;return(0,e.__)(I,(a,c)=>{if("transparent"===c.command)return i=a,!1}),i},Fx=function(I,i,a){let c=0;if(I&&i&&a)for(let g=0;g<I.length;g++)"transparent"===I[g].command?c+=I[g].colspan:(i[c]<a[g]&&(i[c]=a[g]),c++);return i},LC=I=>class extends I{init(){super.init(),this._isFixedTableRendering=!1,this._isFixedColumns=!1}_createCol(i){return super._createCol(i).toggleClass("dx-col-fixed",!(!this._isFixedTableRendering||!(i.fixed||i.command&&"transparent"!==i.command)))}_correctColumnIndicesForFixedColumns(i,a){const c=vc(i),g=i[c].colspan,y=a&&a.columnIndices;y&&(a.columnIndices=y.map(D=>{if(D)return D.map(Y=>Y<c?Y:Y>=c+g?Y-g+1:-1).filter(Y=>Y>=0)}))}_partialUpdateFixedTable(i,a){const c=this._fixedTableElement,g=this._getRowElementsCore(c);c.children("colgroup").replaceWith(this._createColGroup(i));for(let D=0;D<a.length;D++)this._partialUpdateFixedRow((0,T.A)(g[D]),i,a[D])}_partialUpdateFixedRow(i,a,c){const g=i.get(0).childNodes,y=vc(a),D=a[y];let xe,Le=this._columnsController.getColumnIndexOffset()+1,{colspan:st}=D;if(i.hasClass("dx-master-detail-row")){var mt;g[0].setAttribute("colspan",null===(mt=this._columnsController.getVisibleColumns())||void 0===mt?void 0:mt.length)}else{if(i.hasClass("dx-group-row"))if(xe=this._getGroupCellOptions({row:c,columns:this._columnsController.getVisibleColumns()}),c.summaryCells.length>0){const wn=this._getAlignByColumnCellCount(xe.colspan,{columns:this._columnsController.getVisibleColumns(),row:c,isFixed:!0});st=xe.colspan-wn}else st=xe.colspan-Math.max(0,g.length-(xe.columnIndex+2));for(let on=0;on<g.length;on++){const wn=xe?on===xe.columnIndex+1:on===y;g[on].setAttribute("aria-colindex",Le),wn?(g[on].setAttribute("colspan",st),Le+=st):Le++}}}_renderTable(i){let a;const c=this.getFixedColumns();this._isFixedColumns=!!c.length;const g=super._renderTable(i);if(this._isFixedColumns){var y;const Y=i?.change,xe=this._getRowElements(this._fixedTableElement),Le=Y?.virtualColumnsScrolling&&xe.length===(null==Y||null===(y=Y.items)||void 0===y?void 0:y.length);if(this._isFixedTableRendering=!0,Le&&!0!==this.option("scrolling.legacyMode")){var D;this._partialUpdateFixedTable(c,null==i||null===(D=i.change)||void 0===D?void 0:D.items),this._isFixedTableRendering=!1}else{const st=Y?.columnIndices;this._correctColumnIndicesForFixedColumns(c,Y),a=this._createTable(c),this._renderRows(a,(0,C.X)({},i,{columns:c})),this._updateContent(a,Y,!0),st&&(Y.columnIndices=st),this._isFixedTableRendering=!1}}else this._fixedTableElement&&this._fixedTableElement.parent().remove(),this._fixedTableElement=null;return g}_renderRow(i,a){let c,{cells:g}=a.row;if(super._renderRow.apply(this,arguments),this._isFixedTableRendering&&g&&g.length){c=0;const y=a.row.cells||[];g=g.slice(),a.row.cells=g;for(let D=0;D<y.length;D++)y[D].column&&"transparent"===y[D].column.command?c=(y[D].column.colspan||1)-1:g[D+c]=y[D]}}_createCell(i){const a=this,{column:c}=i,g=c&&c.command,{rowType:y}=i,D=super._createCell.apply(a,arguments);let Y,xe,Le;(a._isFixedTableRendering||"filter"===y)&&(Y=a.getFixedColumns(),Le=vc(Y),xe=Y[Le-1]),a._isFixedTableRendering?"transparent"===g&&(D.addClass("dx-pointer-events-none").toggleClass("dx-first-cell",0===Le||xe&&"expand"===xe.command).toggleClass("dx-last-cell",Y.length&&Le===Y.length-1),"freeSpace"!==y&&Ot.setEmptyText(D)):"filter"===y&&D.toggleClass("dx-first-cell",i.columnIndex===Le);const st=a.option("rowAlternationEnabled")&&i.isAltRow,mt="multiple"===a.option("selection.mode")&&0===i.columnIndex&&"header"===i.rowType;return Ce.A.mozilla&&i.column.fixed&&"group"!==i.rowType&&!st&&!mt&&D.addClass("dx-col-fixed"),D}_getContent(i){var a;return i?null===(a=this._fixedTableElement)||void 0===a?void 0:a.parent():super._getContent.apply(this,arguments)}_wrapTableInScrollContainer(i,a){const c=super._wrapTableInScrollContainer.apply(this,arguments);return(this._isFixedTableRendering||a)&&c.addClass(this.addWidgetPrefix("content-fixed")),c}_renderCellContent(i,a){let c;const{column:g}=a,y=this._isFixedTableRendering,D="group"===a.rowType&&(0,w.O9)(g.groupIndex);if(y&&D&&!g.command&&!g.groupCellTemplate&&i.css("pointerEvents","none"),!y&&this._isFixedColumns){if(c=g.fixed||g.command&&!1!==g.fixed,D&&(c=!1,a.row.summaryCells&&a.row.summaryCells.length)){var Y;const xe=this._columnsController.getVisibleColumns(),Le=(null===(Y=this._getAlignByColumnCellCount)||void 0===Y?void 0:Y.call(this,g.colspan,{columns:xe,row:a.row,isFixed:!0}))??0;if(Le>0){const st=vc(this._columnsController.getFixedColumns());c=xe.length-Le<st}}if(c){if(g.command&&"buttons"!==g.type||"group"===a.rowType)return void i.html("&nbsp;").addClass(g.cssClass);i.addClass("dx-hidden-cell")}}"transparent"!==g.command&&super._renderCellContent.apply(this,arguments)}_getCellElementsCore(i){const a=super._getCellElementsCore.apply(this,arguments),c=a?.parent().hasClass("dx-group-row"),g="columnHeadersView"===this.name?i:void 0;if(this._fixedTableElement&&a){const y=this.getFixedColumns(g),D=this._getRowElements(this._fixedTableElement).eq(i).children("td");(0,e.__)(D,(Y,xe)=>{if(c)a[Y]&&"hidden"!==xe.style.visibility&&(a[Y]=xe);else{const Le=y[Y];if(Le)if("transparent"===Le.command)D.eq(Y).hasClass("dx-master-detail-cell")&&(a[Y]=xe||a[Y]);else{const st=this._columnsController.getVisibleIndexByColumn(Le,g);a[st]=xe||a[st]}}})}return a}getColumnWidths(i){const a=super.getColumnWidths(),c=this.getFixedColumns(),g=this._fixedTableElement&&a.length?super.getColumnWidths(this._fixedTableElement):void 0;return Fx(c,a,g)}getTableElement(i){return(i=this._isFixedTableRendering||i)?this._fixedTableElement:super.getTableElement()}setTableElement(i,a){this._isFixedTableRendering||a?this._fixedTableElement=i.addClass("dx-pointer-events-none"):super.setTableElement(i)}getColumns(i){const a=this.getTableElement();return this._isFixedTableRendering?this.getFixedColumns(i):super.getColumns(i,a)}getRowIndex(i){const a=this._fixedTableElement;return a&&a.find(i).length?this._getRowElements(a).index(i):super.getRowIndex(i)}getTableElements(){let i=super.getTableElements.apply(this,arguments);return this._fixedTableElement&&(i=(0,T.A)([i.get(0),this._fixedTableElement.get(0)])),i}getFixedColumns(i){return this._columnsController.getFixedColumns(i)}getFixedColumnsOffset(){let a,i={left:0,right:0};if(this._fixedTableElement){a=this.getTransparentColumnElement();const c=a.position();i={left:c.left,right:(0,k.Ot)(this.element(),!0)-((0,k.Ot)(a,!0)+c.left)}}return i}getTransparentColumnElement(){return this._fixedTableElement&&this._fixedTableElement.find(".dx-pointer-events-none").first()}getFixedTableElement(){return this._fixedTableElement}isFixedColumns(){return this._isFixedColumns}_resizeCore(){super._resizeCore(),this.synchronizeRows()}setColumnWidths(i){var a;const{widths:c}=i,g=this._columnsController.getVisibleColumns(),y=c?.length&&g.some(Le=>(0,w.O9)(Le.visibleWidth)),D=null===(a=i.optionNames)||void 0===a?void 0:a.width;if(super.setColumnWidths(i),this._fixedTableElement){const mt=!c?.some(on=>"auto"===on||!(0,w.O9)(on))||y&&this.isScrollbarVisible(!0)?this.getFixedColumns():g;this.setFixedTableColumnWidths(mt,c)}const Y=this.option("wordWrapEnabled");(y||D&&Y)&&this.synchronizeRows()}setFixedTableColumnWidths(i,a){if(!this._fixedTableElement||!a)return;const c=this._fixedTableElement.children("colgroup").children("col");c.toArray().forEach(y=>y.removeAttribute("style"));let g=0;i.forEach(y=>{if(y.colspan)return void(g+=y.colspan);const D=Vs(a[g]);(0,w.O9)(D)&&(0,_e.zj)(c.eq(g),D),g+=1})}_getClientHeight(i){const a=i.getBoundingClientRect&&(0,Me.N)(i);return a&&a.height?a.height:i.clientHeight}synchronizeRows(){const i=[],a=[];let c,g,y,D;this.waitAsyncTemplates(!0).done(()=>{if(this._isFixedColumns&&this._tableElement&&this._fixedTableElement){const Y=this._getClientHeight(this._tableElement.get(0)),xe=this._getClientHeight(this._fixedTableElement.get(0));if(g=this._getRowElements(this._tableElement),y=this._getRowElements(this._fixedTableElement),D=this._findContentElement(),Y!==xe){for(D&&D.css("height",Y),g.css("height",""),y.css("height",""),c=0;c<g.length;c++)i.push(this._getClientHeight(g.get(c))),a.push(this._getClientHeight(y.get(c)));for(c=0;c<g.length;c++){const Le=i[c],st=a[c];Le>st?y.eq(c).css("height",Le):Le<st&&g.eq(c).css("height",st)}D&&D.css("height","")}}})}setScrollerSpacing(i,a){const c=this.option("rtlEnabled");super.setScrollerSpacing(i),this.element().children(`.${this.addWidgetPrefix("content-fixed")}`).css({paddingLeft:c?i:"",paddingRight:c?"":i})}};Dt.registerModule("columnFixing",{defaultOptions:()=>({columnFixing:{enabled:!1,texts:{fix:v.A.format("dxDataGrid-columnFixingFix"),unfix:v.A.format("dxDataGrid-columnFixingUnfix"),leftPosition:v.A.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:v.A.format("dxDataGrid-columnFixingRightPosition")}}}),extenders:{views:{columnHeadersView:I=>class extends(LC(I)){_getRowVisibleColumns(i){return this._isFixedTableRendering?this.getFixedColumns(i):super._getRowVisibleColumns(i)}getContextMenuItems(i){const{column:a}=i,c=this.option("columnFixing");let g=super.getContextMenuItems(i);if(i.row&&"header"===i.row.rowType&&!0===c.enabled&&a&&a.allowFixing){const y=D=>{switch(D.itemData.value){case"none":this._columnsController.columnOption(a.index,"fixed",!1);break;case"left":this._columnsController.columnOption(a.index,{fixed:!0,fixedPosition:"left"});break;case"right":this._columnsController.columnOption(a.index,{fixed:!0,fixedPosition:"right"})}};g=g||[],g.push({text:c.texts.fix,beginGroup:!0,items:[{text:c.texts.leftPosition,value:"left",disabled:a.fixed&&(!a.fixedPosition||"left"===a.fixedPosition),onItemClick:y},{text:c.texts.rightPosition,value:"right",disabled:a.fixed&&"right"===a.fixedPosition,onItemClick:y}]},{text:c.texts.unfix,value:"none",disabled:!a.fixed,onItemClick:y})}return g}getFixedColumnElements(i){const a=this;if((0,w.O9)(i))return this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(i).children();const c=a.getColumnElements(),g=a.getTransparentColumnElement();if(c&&g&&g.length){const y=vc(a.getFixedColumns());c.splice(y,g.get(0).colSpan,g.get(0))}return c}getColumnWidths(){const i=this;let a;const c=super.getColumnWidths(),g=i.getFixedColumnElements(),y=i.getFixedColumns();return i._fixedTableElement&&(a=g&&g.length?i._getWidths(g):super.getColumnWidths(i._fixedTableElement)),Fx(y,c,a)}},rowsView:I=>class extends(LC(I)){dispose(){super.dispose.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}optionChanged(i){super.optionChanged(i),"hoverStateEnabled"===i.name&&this._isFixedColumns&&(i.value?this._attachHoverEvents():this._detachHoverEvents())}_detachHoverEvents(){const i=this.element();this._fixedTableElement&&this._tableElement&&P.A.off(i,"mouseover mouseout",".dx-data-row")}_attachHoverEvents(){this._fixedTableElement&&this._tableElement&&P.A.on(this.element(),"mouseover mouseout",".dx-data-row",this.createAction(i=>{const{event:a}=i,c=this.getRowIndex((0,T.A)(a.target).closest(".dx-row")),g="mouseover"===a.type;c>=0&&(this._tableElement&&this._getRowElements(this._tableElement).eq(c).toggleClass("dx-state-hover",g),this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(c).toggleClass("dx-state-hover",g))}))}_getScrollDelay(){var i;return(null===(i=this._resizingController)||void 0===i?void 0:i.hasResizeTimeout())?this.option("scrolling.updateTimeout"):Ce.A.mozilla?60:0}_findContentElement(i){let a,c;const g=this.addWidgetPrefix("content"),y=this.element();if(i=this._isFixedTableRendering||i,y&&i){a=y.children(`.${g}`);const D=this.getScrollable();return!a.length&&D&&(a=(0,T.A)("<div>").addClass(g),P.A.on(a,"scroll",Y=>{const{target:xe}=Y,Le=this._getScrollDelay();clearTimeout(this._fixedScrollTimeout),this._fixedScrollTimeout=setTimeout(()=>{c=(0,T.A)(xe).scrollTop(),D.scrollTo({y:c})},Le)}),P.A.on(a,Px.U,Y=>{const xe=(0,T.A)(Y.target).closest(".dx-scrollable");let Le=!1;if(D&&D.$element().is(xe))Le=!0;else{const st=xe.length&&Sa.A.getInstance(xe.get(0)),mt=st&&st.scrollHeight()-st.clientHeight()>0;Le=st&&!mt}if(Le){c=D.scrollTop(),D.scrollTo({y:c-Y.delta});const st=D.scrollTop()+D.clientHeight(),mt=D.scrollHeight()+this.getScrollbarWidth();if(D.scrollTop()>0&&st<mt)return!1}}),a.appendTo(y)),a}return super._findContentElement()}_updateScrollable(){super._updateScrollable();const i=this.getScrollable();if(null!=i&&i._disposed)return;const a=i&&i.scrollOffset().top;this._updateFixedTablePosition(a)}_renderContent(i,a,c){return this._isFixedTableRendering||c?i.empty().addClass(`${this.addWidgetPrefix("content")} ${this.addWidgetPrefix("content-fixed")}`).append(a):super._renderContent(i,a)}_getGroupCellOptions(i){return super._getGroupCellOptions(this._isFixedTableRendering?(0,C.X)({},i,{columns:this._columnsController.getVisibleColumns()}):i)}_renderGroupedCells(i,a){return super._renderGroupedCells(i,(0,C.X)({},a,{columns:this._columnsController.getVisibleColumns()}))}_renderGroupSummaryCells(i,a){super._renderGroupSummaryCells(i,this._isFixedTableRendering?(0,C.X)({},a,{columns:this._columnsController.getVisibleColumns()}):a)}_hasAlignByColumnSummaryItems(i,a){const c=super._hasAlignByColumnSummaryItems.apply(this,arguments),g=a.columns[i];return a.isFixed?g.fixed&&(c||"right"===g.fixedPosition):c&&(!this._isFixedColumns||!g.fixed)}_renderGroupSummaryCellsCore(i,a,c,g){let y;if(this._isFixedTableRendering){a.isFixed=!0,y=this._getAlignByColumnCellCount(c,a),a.isFixed=!1;const D=a.columns.length-y;a=(0,C.X)({},a,{columns:this.getFixedColumns()});const Y=vc(a.columns);D<Y?(y-=a.columns[Y].colspan-1||0,c-=a.columns[Y].colspan-1||0):g>0&&i.css("visibility","hidden"),g=y}super._renderGroupSummaryCellsCore(i,a,c,g)}_getSummaryCellIndex(i,a){if(this._isFixedTableRendering){const c=vc(a);return i>c&&(i+=a[c].colspan-1),i}return super._getSummaryCellIndex.apply(this,arguments)}_renderCore(i){this._detachHoverEvents();const a=super._renderCore(i),c=this._isFixedColumns;return this.element().toggleClass("dx-fixed-columns",c),this.option("hoverStateEnabled")&&c&&this._attachHoverEvents(),a}setAriaOwns(i,a,c){if(c){var g;const y=this.addWidgetPrefix("content-fixed"),D=null===(g=this.element())||void 0===g?void 0:g.children(`.${y}`),Y=this.getFixedTableElement();D.length&&null!=Y&&Y.length&&this.setAria("owns",`${i??""} ${Y.attr("id")??""} ${a??""}`.trim(),D)}else super.setAriaOwns.apply(this,arguments)}setRowsOpacity(i,a){super.setRowsOpacity(i,a);const c=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(c,this.getFixedColumns(),i,a)}getCellIndex(i){const a=this._fixedTableElement;let c=0;if(a&&i.is("td")&&i.closest(a).length){const g=this.getFixedColumns();return(0,e.__)(g,(y,D)=>{if(y===i[0].cellIndex)return!1;D.colspan?c+=D.colspan:c++}),c}return super.getCellIndex.apply(this,arguments)}_updateFixedTablePosition(i,a){if(this._fixedTableElement&&this._tableElement){let c;this._fixedTableElement.parent().scrollTop(i),a&&this._editorFactoryController&&(c=this._editorFactoryController.focus(),c&&this._editorFactoryController.focus(c))}}setScrollerSpacing(i,a){const c=this,g={marginBottom:0},y=c.element().children(`.${this.addWidgetPrefix("content-fixed")}`);y.length&&c._fixedTableElement&&(y.css(g),c._fixedTableElement.css(g),g[c.option("rtlEnabled")?"marginLeft":"marginRight"]=i,g.marginBottom=a,(c._scrollable&&c._scrollable.option("useNative")?y:c._fixedTableElement).css(g))}_getElasticScrollTop(i){let a=0;if(i.scrollOffset.top<0)a=-i.scrollOffset.top;else if(i.reachedBottom){const c=(0,T.A)(i.component.content()),g=(0,T.A)(i.component.container()),y=Math.max(c.get(0).clientHeight-g.get(0).clientHeight,0);a=Math.min(y-i.scrollOffset.top,0)}return Math.floor(a)}_applyElasticScrolling(i){if(this._fixedTableElement){const a=this._getElasticScrollTop(i);0!==Math.ceil(a)?(0,lA.Cy)(this._fixedTableElement,{top:a}):this._fixedTableElement.css("transform","")}}_handleScroll(i){this._updateFixedTablePosition(i.scrollOffset.top,!0),this._applyElasticScrolling(i),super._handleScroll(i)}_updateContentPosition(i){super._updateContentPosition.apply(this,arguments),i||this._updateFixedTablePosition(this._scrollTop)}_afterRowPrepared(i){this._isFixedTableRendering||super._afterRowPrepared(i)}_scrollToElement(i){super._scrollToElement(i,this.getFixedColumnsOffset())}},footerView:I=>class extends(LC(I)){}},controllers:{draggingHeader:I=>class extends I{_generatePointsByColumns(i){const a=i.columns,{targetDraggingPanel:c}=i;if(c&&"headers"===c.getName()&&c.isFixedColumns()&&i.sourceColumn.fixed){i.rowIndex||(i.columnElements=c.getFixedColumnElements(0)),i.columns=c.getFixedColumns(i.rowIndex);const g=super._generatePointsByColumns(i);return function(I,i,a){const c=vc(i),g=I.length-i.length;(0,e.__)(a,(y,D)=>{D.index>c&&(D.columnIndex+=g,D.index+=g)})}(a,i.columns,g),g}return super._generatePointsByColumns(i)}_pointCreated(i,a,c,g){const y=super._pointCreated.apply(this,arguments),D=a[i.columnIndex],Y=this._columnHeadersView.getTransparentColumnElement();if(!y&&"headers"===c&&Y&&Y.length){const xe=(0,Me.N)(Y.get(0));return g&&g.fixed?"right"===g.fixedPosition?i.x<xe.right:i.x>xe.left:!(!D||!D.fixed||"right"===D.fixedPosition)||i.x<xe.left||i.x>xe.right}return y}},columnsResizer:I=>class extends I{_generatePointsByColumns(){const i=this,a=i._columnsController,c=a&&i._columnsController.getVisibleColumns(),g=a&&i._columnsController.getFixedColumns(),y=vc(g),D=c.length-g.length,Y=i._columnHeadersView.getFixedColumnElements();super._generatePointsByColumns(),Y&&Y.length>0&&(i._pointsByFixedColumns=Ot.getPointsByColumns(Y,xe=>(xe.index>y&&(xe.columnIndex+=D,xe.index+=D),i._pointCreated(xe,c.length,c))))}_getTargetPoint(i,a,c){const g=this._columnHeadersView.getTransparentColumnElement();if(g&&g.length){const y=(0,Me.N)(g.get(0));if(a<=y.left||a>=y.right)return super._getTargetPoint(this._pointsByFixedColumns,a,c)}return super._getTargetPoint(i,a,c)}},resizing:I=>class extends I{_setAriaOwns(){var i,a,c;super._setAriaOwns.apply(this,arguments);const g=null===(i=this._columnHeadersView)||void 0===i?void 0:i.getFixedTableElement(),y=null===(a=this._footerView)||void 0===a?void 0:a.getFixedTableElement();null===(c=this._rowsView)||void 0===c||c.setAriaOwns(g?.attr("id"),y?.attr("id"),!0)}},keyboardNavigation:I=>class extends I{_toggleInertAttr(i){var a;const c=null===(a=this._rowsView)||void 0===a?void 0:a.getFixedContentElement();i?c?.attr("inert",!0):c?.removeAttr("inert")}}}}});const Qp="rowsView",$C=["columnHeadersView",Qp,"footerView"],Ux="dxDataGrid-ariaAdaptiveExpand";function k_(I,i){return I._columnsController.getColumnId(i)}function Hw(I,i){let a;const c=(0,T.A)(I),g=i.component.getController("adaptiveColumns");"data"===i.rowType?(a=(0,T.A)("<span>").addClass(g.addWidgetPrefix("adaptive-more")),P.A.on(a,(0,x.b4)(de.U,"dxDataGridAdaptivity"),g.createAction(()=>{g.toggleExpandAdaptiveDetailRow(i.key)})),a.appendTo(c)):Ot.setEmptyText(c)}function B_(I){var i;const a=null===(i=I.data)||void 0===i?void 0:i.$nextCell;P.A.off(a,"focus",B_),P.A.trigger(a,"dxclick")}function jC(I,i,a,c,g,y){y=y||[],(c=c||[])[a=a||0]=c[a]||0;const D=I[a];let Le,xe=0;if(D){for(Le=y[a]+1||0;Le<D.length;Le++){const st=D[Le],mt=Le+c[a],on=st.colspan||1;if(jC(I,i,a+(st.rowspan||1),c,on,y),c[a]+=on-1,xe+=on,st.rowspan)for(let wn=a+1;wn<a+st.rowspan;wn++)c[wn]=c[wn]||0,c[wn]+=st.colspan||1;if(!1===i(st,mt,a,Le)||void 0!==g&&xe>=g)break}y[a]=Le}}function GC(I,i,a){const c=[];jC(I,(g,y,D)=>{let xe,Y=g;const Le=Y.colspan||1,st=y+Le-1>=i&&y<a;if(c[D]=c[D]||[],st)y<i?(xe=Le-(i-y),y=i):xe=Le,y+xe>a&&(xe=a-y),xe!==Le&&(Y=(0,C.X)({},Y,{colspan:xe})),c[D].push(Y);else if(y>a)return!1});for(let g=0;g<c.length;g++)c[g]=c[g]||[];return c}Dt.registerModule("adaptivity",{defaultOptions:()=>({columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}),controllers:{adaptiveColumns:class $w extends ft.ViewController{init(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._editingController=this.getController("editing"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._rowsView=this.getView("rowsView"),this._columnsController.addCommandColumn({type:"adaptive",command:"adaptive",visible:!0,adaptiveHidden:!0,cssClass:"dx-command-adaptive",alignment:"center",width:"auto",cellTemplate:Hw,fixedPosition:"right"}),this._columnsController.columnsChanged.add(()=>{const i=!!this.updateHidingQueue(this._columnsController.getColumns()).length;this._columnsController.columnOption("command:adaptive","adaptiveHidden",!i,!0)}),this._hidingColumnsQueue=[],this._hiddenColumns=[],this.createAction("onAdaptiveDetailRowPreparing"),super.init()}optionChanged(i){"columnHidingEnabled"===i.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!i.value),super.optionChanged(i)}publicMethods(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]}_isRowEditMode(){return"row"===this._getEditMode()}_isItemModified(i,a){const c=this._columnsController.getVisibleIndex(i.column.index),g=this._dataController.getRowIndexByKey(a.key),y=this._dataController.items()[g+1];return y&&y.modifiedValues&&(0,w.O9)(y.modifiedValues[c])}_renderFormViewTemplate(i,a,c){const g=this,{column:y}=i,D=g.createAction(()=>{g._editingController.isEditing()&&P.A.trigger(c,de.U)}),Y=a.row.data,xe=y.calculateCellValue(Y),Le=Ot.getDisplayValue(y,xe,Y,a.rowType),st=Ot.formatValue(Le,y),mt=this._editingController.isCellOrBatchEditMode(),on=g._rowsView;if(y.allowEditing&&this._keyboardNavigationController.isKeyboardEnabled()&&(c.attr("tabIndex",g.option("tabIndex")),mt&&(P.A.off(c,"focus",D),P.A.on(c,"focus",D))),y.cellTemplate){const wn=(0,C.X)({},a,{value:xe,displayValue:Le,text:st,column:y});on.renderTemplate(c,y.cellTemplate,wn,(0,ed.A1)(c)).done(()=>{on._cellPrepared(c,a)})}else{const wn=c.get(0);y.encodeHtml?wn.textContent=st:wn.innerHTML=st,c.addClass("dx-adaptive-item-text"),(!(0,w.O9)(st)||""===st)&&c.html("&nbsp;"),g._isRowEditMode()||g._isItemModified(i,a)&&c.addClass("dx-item-modified"),on._cellPrepared(c,a)}}_getTemplate(i,a,c){const g=this,{column:y}=i,D=this._editingController;return function(Y,xe){const Le=(0,T.A)(xe),st=g._columnsController.getVisibleIndex(y.index),mt=(0,C.X)({},a),on=function(){const wn=g._isItemEdited(i);mt.value=a.row.values[st],wn||y.showEditorAlways?D.renderFormEditorTemplate(mt,i,Y,Le,!wn):(mt.column=y,mt.columnIndex=st,g._renderFormViewTemplate(i,mt,Le))};if(on(),mt.watch){const wn=mt.watch(()=>({isItemEdited:g._isItemEdited(i),value:a.row.values[st]}),()=>{Le.contents().remove(),Le.removeClass("dx-adaptive-item-text"),on()});P.A.on(Le,Ee.N,wn)}}}_isVisibleColumnsValid(i){return!(i<2||i.length-function(){let a=0;for(let c=0;c<i.length;c++)i[c].command&&a++;return a}()<=1)}_calculatePercentWidths(i,a){const c=this;let g=0;return a.forEach((y,D)=>{"adaptiveHidden"!==i[D]&&(g+=c._getItemPercentWidth(y))}),g}_isPercentWidth(i){return(0,w.Kg)(i)&&i.endsWith("%")}_isColumnHidden(i){return this._hiddenColumns.filter(a=>a.index===i.index).length>0}_getAverageColumnsWidth(i,a,c){const g=this;let y=0,D=0;return a.forEach(Y=>{if(!g._isColumnHidden(Y)){const{width:xe}=Y;(0,w.O9)(xe)&&!isNaN(parseFloat(xe))?y+=g._isPercentWidth(xe)?g._calculatePercentWidth({visibleIndex:Y.visibleIndex,columnsCount:a.length,columnsCanFit:c,bestFitWidth:Y.bestFitWidth,columnWidth:xe,containerWidth:i}):parseFloat(xe):D++}}),(i-y)/D}_calculateColumnWidth(i,a,c,g){const y=k_(this,i),D=this._columnsController.columnOption(y,"width"),Y=this._columnsController.columnOption(y,"bestFitWidth"),xe=c.length;let Le;if(D&&"auto"!==D){if(!this._isPercentWidth(D))return parseFloat(D);Le=this._calculatePercentWidth({visibleIndex:i.visibleIndex,columnsCount:xe,columnsCanFit:g,bestFitWidth:Y,columnWidth:D,containerWidth:a})}else Le=this.option("columnAutoWidth")||i.command?Y:this._getAverageColumnsWidth(a,c,g);return Le}_calculatePercentWidth(i){const a=i.visibleIndex<i.columnsCount-1&&i.columnsCanFit,c=i.containerWidth*parseFloat(i.columnWidth)/100,g=i.columnsCanFit&&c<i.bestFitWidth?i.bestFitWidth:c;return a?i.containerWidth*parseFloat(i.columnWidth)/100:g}_getNotTruncatedColumnWidth(i,a,c,g){const y=k_(this,i),D=this._columnsController.columnOption(y,"width"),Y=this._columnsController.columnOption(y,"bestFitWidth");if(D&&"auto"!==D&&!this._isPercentWidth(D))return parseFloat(D);const xe=this._calculateColumnWidth(i,a,c,g);return xe<Y?null:xe}_getItemPercentWidth(i){let a=0;return i.width&&this._isPercentWidth(i.width)&&(a=parseFloat(i.width)),a}_getCommandColumnsWidth(){const i=this,a=i._columnsController.getVisibleColumns();let c=0;return(0,e.__)(a,(g,y)=>{(y.index<0||y.command)&&(c+=i._columnsController.columnOption(k_(i,y),"bestFitWidth")||0)}),c}_isItemEdited(i){if(this.isFormOrPopupEditMode())return!1;if(!this._isRowEditMode()){const a=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,c=this._columnsController.getVisibleIndex(i.column.index);return this._editingController.isEditCell(a,c)}{const a=this.option("editing.editRowKey");if((0,b.RL)(a,this._dataController.adaptiveExpandedKey()))return!0}}_getFormItemsByHiddenColumns(i){const a=[];return(0,e.__)(i,(c,g)=>{a.push({column:g,name:g.name,dataField:g.dataField,visibleIndex:g.visibleIndex})}),a}_getAdaptiveColumnVisibleIndex(i){for(let a=0;a<i.length;a++)if("adaptive"===i[a].command)return a}_hideAdaptiveColumn(i,a){const c=this._getAdaptiveColumnVisibleIndex(a);(0,w.O9)(c)&&(i[c]="adaptiveHidden",this._hideVisibleColumn({isCommandColumn:!0,visibleIndex:c}))}_showHiddenCellsInView(i){let{$cells:a,isCommandColumn:c}=i,g=this.addWidgetPrefix("hidden-column");c?(g="dx-command-adaptive-hidden",a.attr({tabIndex:0,"aria-hidden":null}).removeClass(g)):a.removeClass(g)}_showHiddenColumns(){for(let i=0;i<$C.length;i++){const a=this.getView($C[i]);if(a&&a.isVisible()&&a.element()){const c=a.name,g=a.element().find(".dx-command-adaptive-hidden");this._showHiddenCellsInView({viewName:c,$cells:g,isCommandColumn:!0});const y=a.element().find(`.${this.addWidgetPrefix("hidden-column")}`);this._showHiddenCellsInView({viewName:c,$cells:y})}}}_isCellValid(i){return i&&i.length&&!i.hasClass("dx-master-detail-cell")&&!i.hasClass("dx-group-cell")}_hideVisibleColumn(i){let{isCommandColumn:a,visibleIndex:c}=i;const g=this;$C.forEach(y=>{const D=g.getView(y);D&&g._hideVisibleColumnInView({view:D,isCommandColumn:a,visibleIndex:c})})}_hideVisibleColumnInView(i){let{view:a,isCommandColumn:c,visibleIndex:g}=i;const y=a.name;let D;const Y=this._columnsController.getVisibleColumns()[g],xe=this._editingController&&this._editingController.getEditFormRowIndex();if(a&&a.isVisible()&&Y){const Le=a.getRowsCount(),st=a._getRowElements();for(let mt=0;mt<Le;mt++)if(mt!==xe||y!==Qp||"popup"===this.option("editing.mode")){const wn="columnHeadersView"===y?this._columnsController.getVisibleIndex(Y.index,mt):g;if(wn>=0){const Kn=st.eq(mt);D=this._findCellElementInRow(Kn,wn),this._isCellValid(D)&&this._hideVisibleCellInView({viewName:y,isCommandColumn:c,$cell:D})}}}}_findCellElementInRow(i,a){const c=i.children();let g=a,y=!1;if(i.hasClass("dx-group-row")){const Y=i.find(".dx-group-cell"),xe=Y.attr("colspan");if(Y.length&&(0,w.O9)(xe)){const Le=parseInt(xe);a>Y.index()+Le-1?g=a-Le+1:y=!0}}return y?void 0:c.eq(g)}_hideVisibleCellInView(i){let{$cell:a,isCommandColumn:c}=i;const g=c?"dx-command-adaptive-hidden":this.addWidgetPrefix("hidden-column");a.attr({tabIndex:-1,"aria-hidden":!0}).addClass(g)}_getEditMode(){return this._editingController.getEditMode()}isFormOrPopupEditMode(){const i=this._getEditMode();return"form"===i||"popup"===i}hideRedundantColumns(i,a,c){const g=this;if(this._hiddenColumns=[],g._isVisibleColumnsValid(a)&&c.length){let y=0;const D=g.component.$element();let Y=(0,k.RG)(D)-g._getCommandColumnsWidth();const xe=function(){return a.filter(Kn=>!Kn.command&&0===this._hiddenColumns.filter(Ai=>Ai.index===Kn.index).length)}.bind(this);let Le=xe();const st=Le.length;let mt,on,wn;do{wn=!1,y=0;const Kn=g._calculatePercentWidths(i,a),Ai=Kn<100&&0!==Kn;for(mt=0;mt<a.length;mt++){const no=a[mt];let Yo=g._getNotTruncatedColumnWidth(no,Y,Le,Ai);const ps=k_(g,no),Ls=g._columnsController.columnOption(ps,"width"),_r=g._columnsController.columnOption(ps,"minWidth"),Sr=g._columnsController.columnOption(ps,"bestFitWidth");if("adaptiveHidden"!==i[mt]){if(!Yo&&!no.command&&!no.fixed){wn=!0;break}(!Ls||"auto"===Ls)&&(Yo=Math.max(Sr||0,_r||0)),("adaptive"!==no.command||on)&&(y+=Yo)}else on=!0}if(wn=wn||y>(0,k.RG)(D),wn){const no=c.pop(),Yo=g._columnsController.getVisibleIndex(no.index);Y+=g._calculateColumnWidth(no,Y,Le,Ai),g._hideVisibleColumn({visibleIndex:Yo}),i[Yo]="adaptiveHidden",this._hiddenColumns.push(no),Le=xe()}}while(wn&&Le.length>1&&c.length);st===Le.length&&g._hideAdaptiveColumn(i,a)}else g._hideAdaptiveColumn(i,a)}getAdaptiveDetailItems(){return this._$itemContents}getItemContentByColumnIndex(i){let a;for(let c=0;c<this._$itemContents.length;c++){a=this._$itemContents.eq(c);const g=a.data("dx-form-item");if(g&&g.column&&this._columnsController.getVisibleIndex(g.column.index)===i)return a}}toggleExpandAdaptiveDetailRow(i,a){this.isFormOrPopupEditMode()&&this._editingController.isEditing()||this._dataController.toggleExpandAdaptiveDetailRow(i,a)}createFormByHiddenColumns(i,a){const c=this,g=(0,T.A)(i),y={items:c._getFormItemsByHiddenColumns(c._hiddenColumns),formID:`dx-${new he.A}`},D=(0,Yr.gx)()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:y}),c._$itemContents=null,c._form=c._createComponent((0,T.A)("<div>").appendTo(g),xf.A,(0,C.X)(D,y,{customizeItem(Y){const xe=Y.column||c._columnsController.columnOption(Y.name||Y.dataField);xe&&(Y.label=Y.label||{},Y.label.text=Y.label.text||xe.caption,Y.column=xe,Y.template=c._getTemplate(Y,a,c.updateForm.bind(c))),y.customizeItem&&y.customizeItem.call(this,Y)},onContentReady(Y){y.onContentReady&&y.onContentReady.call(this,Y),c._$itemContents=g.find(".dx-field-item-content")}}))}hasAdaptiveDetailRowExpanded(){return(0,w.O9)(this._dataController.adaptiveExpandedKey())}updateForm(i){this.hasAdaptiveDetailRowExpanded()&&this._form&&(0,w.O9)(this._form._contentReadyAction)&&(i&&i.length?this._form.option("items",this._getFormItemsByHiddenColumns(i)):this._form.repaint())}updateHidingQueue(i){const a=this,c=i.filter(D=>D.visible&&!D.type&&!D.fixed&&!((0,w.O9)(D.groupIndex)&&D.groupIndex>=0));let g,y;if(a._hidingColumnsQueue=[],a.option("allowColumnResizing")&&"widget"===a.option("columnResizingMode"))return a._hidingColumnsQueue;for(y=0;y<c.length;y++)(0,w.O9)(c[y].hidingPriority)&&c[y].hidingPriority>=0&&(g=!0,a._hidingColumnsQueue[c[y].hidingPriority]=c[y]);if(g)a._hidingColumnsQueue.reverse();else if(a.option("columnHidingEnabled"))for(y=0;y<c.length;y++){const D=a._columnsController.getVisibleIndex(c[y].index);a._hidingColumnsQueue[D]=c[y]}return a._hidingColumnsQueue=a._hidingColumnsQueue.filter(Object),a._hidingColumnsQueue}getHiddenColumns(){return this._hiddenColumns}hasHiddenColumns(){return this._hiddenColumns.length>0}getHidingColumnsQueue(){return this._hidingColumnsQueue}isAdaptiveDetailRowExpanded(i){const a=this._dataController;return a.adaptiveExpandedKey()&&(0,b.RL)(a.adaptiveExpandedKey(),i)}expandAdaptiveDetailRow(i){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(i)}collapseAdaptiveDetailRow(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()}updateCommandAdaptiveAriaLabel(i,a){const c=this._dataController.getRowIndexByKey(i);if(-1===c)return;const g=(0,T.A)(this.component.getRowElement(c));this.setCommandAdaptiveAriaLabel(g,a)}setCommandAdaptiveAriaLabel(i,a){i.find(".dx-command-adaptive").attr("aria-label",v.A.format(a))}}},extenders:{views:{rowsView:I=>class extends I{_getCellTemplate(i){const a=this,{column:c}=i;return"detailAdaptive"===i.rowType&&"detail"===c.command?function(g,y){a._adaptiveColumnsController.createFormByHiddenColumns((0,T.A)(g),y)}:super._getCellTemplate(i)}_createRow(i){const a=super._createRow.apply(this,arguments);return i&&"detailAdaptive"===i.rowType&&i.key===this._dataController.adaptiveExpandedKey()&&a.addClass("dx-adaptive-detail-row"),a}_renderCells(i,a){super._renderCells(i,a);const c=this._adaptiveColumnsController,g=c.getHidingColumnsQueue().length,y=c.getHiddenColumns().length;g&&!y&&function CA(I){return I.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}(i).last().addClass("dx-last-data-cell"),"data"===a.row.rowType&&c.setCommandAdaptiveAriaLabel(i,Ux)}_getColumnIndexByElementCore(i){const a=i.closest(".dx-field-item-content");if(a.length&&a.closest(this.component.$element()).length){const c=a.length?a.first().data("dx-form-item"):null;return c&&c.column&&this._columnsController.getVisibleIndex(c.column.index)}return super._getColumnIndexByElementCore(i)}_cellPrepared(i,a){super._cellPrepared.apply(this,arguments),"detailAdaptive"!==a.row.rowType&&"adaptiveHidden"===a.column.visibleWidth&&i.addClass(this.addWidgetPrefix("hidden-column"))}getCell(i,a){const c=this._dataController.items()[i?.rowIndex];if("detailAdaptive"===c?.rowType){const g=this._adaptiveColumnsController.getAdaptiveDetailItems();return super.getCell(i,a,g)}return super.getCell.apply(this,arguments)}_getCellElement(i,a){const c=this._dataController.items()[i];return c&&"detailAdaptive"===c.rowType?this._adaptiveColumnsController.getItemContentByColumnIndex(a):super._getCellElement.apply(this,arguments)}getContextMenuItems(i){var a;if(i.row&&"detailAdaptive"===i.row.rowType){const c=this._columnHeadersView,g=(0,T.A)(i.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return i.column=g?g.column:i.column,c.getContextMenuItems&&c.getContextMenuItems(i)}return null===(a=super.getContextMenuItems)||void 0===a?void 0:a.call(this,i)}isClickableElement(i){var a;return((null===(a=super.isClickableElement)||void 0===a?void 0:a.call(this,i))??!1)||!!i.closest(".dx-command-adaptive").length}}},controllers:{export:I=>class extends I{_updateColumnWidth(i,a){super._updateColumnWidth(i,"adaptiveHidden"===i.visibleWidth?i.bestFitWidth:a)}},columnsResizer:I=>class extends I{_pointCreated(i,a,c){const g=super._pointCreated(i,a,c),y=c[i.columnIndex]||{},D=this._getNextColumnIndex(i.columnIndex);return g||"adaptiveHidden"===y.visibleWidth||D!==i.columnIndex+1&&(c[D]||{}).command}_getNextColumnIndex(i){const a=this._columnsController.getVisibleColumns();let c=super._getNextColumnIndex(i);for(;a[c]&&"adaptiveHidden"===a[c].visibleWidth;)c++;return c}},draggingHeader:I=>class extends I{_pointCreated(i,a,c,g){return super._pointCreated(i,a,c,g)||"adaptiveHidden"===(a[i.columnIndex-1]||{}).visibleWidth}},editing:I=>class extends I{_isRowEditMode(){return"row"===this.getEditMode()}_getFormEditItemTemplate(i,a){return"row"!==this.getEditMode()&&"detailAdaptive"===i.rowType?(i.columnIndex=this._columnsController.getVisibleIndex(a.index),this.getColumnTemplate(i)):super._getFormEditItemTemplate(i,a)}_closeEditItem(i){const a=i.closest(".dx-field-item-content"),c=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,g=a.length?a.first().data("dx-form-item"):null,y=g&&g.column&&this._columnsController.getVisibleIndex(g.column.index);this.isEditCell(c,y)||super._closeEditItem(i)}_beforeUpdateItems(i,a){if(!this._adaptiveColumnsController.isFormOrPopupEditMode()&&this._adaptiveColumnsController.hasHiddenColumns()){const c=this._dataController.items(),g=c[a],y=Ot.getIndexByKey(this._dataController.adaptiveExpandedKey(),c);this._isForceRowAdaptiveExpand=!this._adaptiveColumnsController.hasAdaptiveDetailRowExpanded(),y>=0&&i.push(y+1),i.push(a+1),this._dataController.adaptiveExpandedKey(g.key)}}_afterInsertRow(i){super._afterInsertRow.apply(this,arguments),this._adaptiveColumnsController.hasHiddenColumns()&&(this._adaptiveColumnsController.toggleExpandAdaptiveDetailRow(i,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)}_collapseAdaptiveDetailRow(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveColumnsController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)}_cancelEditAdaptiveDetailRow(){this._adaptiveColumnsController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()}_afterSaveEditData(){super._afterSaveEditData.apply(this,arguments);const i=new ye.cY;return this._isRowEditMode()&&this._adaptiveColumnsController.hasHiddenColumns()?(0,ye.z7)(this._validatingController.validate(!0)).done(a=>{a&&this._cancelEditAdaptiveDetailRow(),i.resolve()}):i.resolve(),i.promise()}_beforeCancelEditData(){super._beforeCancelEditData(),this._cancelEditAdaptiveDetailRow()}_getRowIndicesForCascadeUpdating(i){const a=super._getRowIndicesForCascadeUpdating.apply(this,arguments);return this._adaptiveColumnsController.isAdaptiveDetailRowExpanded(i.key)&&a.push("detailAdaptive"===i.rowType?i.rowIndex-1:i.rowIndex+1),a}_beforeCloseEditCellInBatchMode(i){const a=this._dataController._adaptiveExpandedKey;if(a){const c=Ot.getIndexByKey(a,this._dataController.items());c>-1&&i.unshift(c)}}editRow(i){return this._adaptiveColumnsController.isFormOrPopupEditMode()&&this._adaptiveColumnsController.collapseAdaptiveDetailRow(),super.editRow(i)}deleteRow(i){const a=this._dataController.getKeyByRowIndex(i);"batch"===this.getEditMode()&&this._adaptiveColumnsController.isAdaptiveDetailRowExpanded(a)&&this._adaptiveColumnsController.collapseAdaptiveDetailRow(),super.deleteRow(i)}},resizing:I=>class extends I{dispose(){super.dispose.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}_needBestFit(){return super._needBestFit()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length}_correctColumnWidths(i,a){const c=this._adaptiveColumnsController,g=c.getHiddenColumns(),y=c.updateHidingQueue(this._columnsController.getColumns());c.hideRedundantColumns(i,a,y);const D=c.getHiddenColumns();return c.hasAdaptiveDetailRowExpanded()&&g.length!==D.length&&c.updateForm(D),!D.length&&c.collapseAdaptiveDetailRow(),super._correctColumnWidths.apply(this,arguments)}_toggleBestFitMode(i){i&&this._adaptiveColumnsController._showHiddenColumns(),super._toggleBestFitMode(i)}_needStretch(){const i=this._adaptiveColumnsController;return super._needStretch.apply(this,arguments)||i.getHidingColumnsQueue().length||i.hasHiddenColumns()}},data:I=>class extends I{init(){super.init(),this._adaptiveExpandedKey=void 0}_processItems(i,a){const{changeType:c}=a;if(i=super._processItems.apply(this,arguments),"loadingAll"===c||!(0,w.O9)(this._adaptiveExpandedKey))return i;const g=Ot.getIndexByKey(this._adaptiveExpandedKey,i),y=!1===this.option("scrolling.legacyMode");if(g>=0){const D=i[g];i.splice(g+1,0,{visible:!0,rowType:"detailAdaptive",key:D.key,data:D.data,node:D.node,modifiedValues:D.modifiedValues,isNewRow:D.isNewRow,values:D.values})}else"refresh"===c&&(!y||!a.repaintChangesOnly)&&(this._adaptiveExpandedKey=void 0);return i}_getRowIndicesForExpand(i){const a=super._getRowIndicesForExpand.apply(this,arguments);return this._adaptiveColumnsController.isAdaptiveDetailRowExpanded(i)&&a.push(a[a.length-1]+1),a}adaptiveExpandedKey(i){if(!(0,w.O9)(i))return this._adaptiveExpandedKey;this._adaptiveExpandedKey=i}toggleExpandAdaptiveDetailRow(i,a){let c=Ot.getIndexByKey(this._adaptiveExpandedKey,this._items),g=Ot.getIndexByKey(i,this._items);c>=0&&c===g&&!a&&(i=void 0,g=-1);const y=this._adaptiveExpandedKey;this._adaptiveExpandedKey=i,c>=0&&c++,g>=0&&g++;const D=this.getRowIndexDelta();this.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[c-D,g-D]}),this._adaptiveColumnsController.updateCommandAdaptiveAriaLabel(i,"dxDataGrid-ariaAdaptiveCollapse"),this._adaptiveColumnsController.updateCommandAdaptiveAriaLabel(y,Ux)}},editorFactory:I=>class extends I{_needHideBorder(i){return super._needHideBorder(i)||i?.hasClass("dx-field-item-content")&&i?.find(".dx-checkbox").length}_getFocusCellSelector(){return`${super._getFocusCellSelector()}, .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content`}_getRevertTooltipsSelector(){return`${super._getRevertTooltipsSelector()}, .dx-field-item-content .${this.addWidgetPrefix("revert-tooltip")}`}},columns:I=>class extends I{_isColumnVisible(i){return super._isColumnVisible(i)&&!i.adaptiveHidden}},keyboardNavigation:I=>class extends I{_isCellValid(i,a){return super._isCellValid(i,a)&&!i.hasClass(this.addWidgetPrefix("hidden-column"))&&!i.hasClass("dx-command-adaptive-hidden")}_processNextCellInMasterDetail(i,a){super._processNextCellInMasterDetail(i,a);const c=this._editingController.isCellOrBatchEditMode();this._editingController.isEditing()&&i&&c&&!this._isInsideEditForm(i)&&(P.A.off(i,"focus",B_),P.A.on(i,"focus",{$nextCell:i},B_),P.A.trigger(a,"focus"))}_isCellElement(i){return super._isCellElement(i)||i.hasClass("dx-adaptive-item-text")}}}}});const Wx=I=>class extends I{_needToSetCellWidths(){let i=super._needToSetCellWidths();return!i&&this._columnsController.isVirtualMode()&&(i=this._columnsController.getColumns().some(c=>"auto"===c.width)),i}},rm=function(I){return I.map(i=>i.visibleWidth||parseFloat(i.width)||50)};Dt.registerModule("virtualColumns",{defaultOptions:()=>({scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}),extenders:{controllers:{columns:I=>class extends I{init(){super.init.apply(this,arguments),this._resizingController=this.getController("resizing"),this._beginPageIndex=null,this._endPageIndex=null,this._position??(this._position=0),this._virtualVisibleColumns={}}dispose(){clearTimeout(this._changedTimeout),super.dispose.apply(this,arguments)}resetColumnsCache(){super.resetColumnsCache(),this._virtualVisibleColumns={}}getBeginPageIndex(i){const a=this.getVisibleColumns(void 0,!0),c=rm(a);let g=0;for(let y=0;y<c.length;y++){if(g>=i)return Math.floor(y/this.getColumnPageSize());g+=c[y]}return 0}getTotalWidth(){const i=this.option("width");return"number"==typeof i?i:this._resizingController._lastWidth||(0,k.Ot)(this.component.$element())}getEndPageIndex(i){const a=this.getVisibleColumns(void 0,!0),c=rm(a);let g=0;i+=this.getTotalWidth();for(let y=0;y<c.length;y++){if(g>=i)return Math.ceil(y/this.getColumnPageSize());g+=c[y]}return Math.ceil(c.length/this.getColumnPageSize())}getColumnPageSize(){return this.option("scrolling.columnPageSize")}_fireColumnsChanged(){const i=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,virtualColumnsScrolling:!0,length:2}}),this._renderTime=new Date-i}getScrollingTimeout(){const i=this.option("scrolling.columnRenderingThreshold"),a=this.option("scrolling.renderAsync");let c=0;return(!(0,w.O9)(a)&&this._renderTime>i||a)&&(c=this.option("scrolling.timeout")),c}setScrollPosition(i){const a=this.getScrollingTimeout();a>0?(clearTimeout(this._changedTimeout),this._changedTimeout=setTimeout(()=>{this._setScrollPositionCore(i)},a)):this._setScrollPositionCore(i)}isVirtualMode(){return(0,Ye.Vd)()&&"virtual"===this.option("scrolling.columnRenderingMode")}resize(){this._setScrollPositionCore(this._position)}_setScrollPositionCore(i){const a=this;if(a.isVirtualMode()){const c=a.getBeginPageIndex(i),g=a.getEndPageIndex(i),y=i<a._position?a._beginPageIndex>c:a._endPageIndex<g;a._position=i,y&&(a._beginPageIndex=c,a._endPageIndex=g,a._fireColumnsChanged())}}getFixedColumns(i,a){const c=super.getFixedColumns(i);if(this.isVirtualMode()&&!a&&c.length){const g=c.map(y=>y.command).indexOf("transparent");return c[g].colspan=this.getVisibleColumns().length-super.getFixedColumns().length+1,c}return c}_compileVisibleColumns(i,a){var c;if(a||!this.isVirtualMode()||!this._shouldReturnVisibleColumns())return super._compileVisibleColumns(i);null!==(c=this._columns)&&void 0!==c&&c.length&&!(0,w.O9)(this._beginPageIndex)&&!(0,w.O9)(this._endPageIndex)&&(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));const g=this._beginPageIndex,y=this._endPageIndex,D=`${i}-${g}-${y}`;if(this._virtualVisibleColumns[D])return this._virtualVisibleColumns[D];let Y=super._compileVisibleColumns();const xe=this.getRowCount(),Le=this.getColumnPageSize();let st=g*Le,mt=y*Le;const on=this.getFixedColumns(void 0,!0),wn=on.map(Dr=>Dr.command).indexOf("transparent"),Kn=on.length?wn:0;let Ai=Y.slice(0,Kn);const no=Y.slice(Kn,st),Yo=rm(no).reduce((Dr,ia)=>Dr+ia,0);Yo||(st=0);const ps=on.length?on.length-wn-1:0;let Ls=Y.slice(Y.length-ps);const _r=Y.slice(mt,Y.length-ps),Sr=rm(_r).reduce((Dr,ia)=>Dr+ia,0);if(Sr||(mt=Y.length),xe>1&&"number"==typeof i){const Dr=[];for(let ia=0;ia<=xe;ia++)Dr.push(super._compileVisibleColumns(ia));Ai=GC(Dr,0,Ai.length)[i]||[],Ls=GC(Dr,Y.length-Ls.length,Y.length)[i]||[],Y=GC(Dr,st,mt)[i]||[]}else Y=Y.slice(st,mt);return Yo&&(Y.unshift({command:"virtual",type:"virtual",width:Yo}),Y=Ai.concat(Y)),Sr&&(Y.push({command:"virtual",type:"virtual",width:Sr}),Y=Y.concat(Ls)),this._virtualVisibleColumns[D]=Y,Y}getColumnIndexOffset(){let i=0;if(this._beginPageIndex>0){const c=this.getFixedColumns().map(y=>y.command).indexOf("transparent"),g=c>=0?c:0;i=this._beginPageIndex*this.getColumnPageSize()-g-1}return i>0?i:0}}},views:{columnHeadersView:I=>class extends(Wx(I)){_renderCore(){const i=super._renderCore.apply(this,arguments);return this._columnsController.isVirtualMode()&&this._updateScrollLeftPosition(),i}},rowsView:I=>class extends(Wx(I)){_resizeCore(){super._resizeCore.apply(this,arguments),this._columnsController.resize()}_handleScroll(i){const a=this.getScrollable();let{left:c}=i.scrollOffset;super._handleScroll.apply(this,arguments),this.option("rtlEnabled")&&a&&(c=(0,k.RG)(a.$content())-(0,k.RG)(a.$element())-c),this._columnsController.setScrollPosition(c)}_renderCore(i){if(null!=i&&i.virtualColumnsScrolling){var a,c;const g=this._findContentElement(),y=null===(a=this._columnsController)||void 0===a?void 0:a.getFixedColumns(),D=null===(c=this._scrollable)||void 0===c?void 0:c.option("useNative");if(null!=y&&y.length){g.css({minHeight:D?(0,k.Oq)(g):Ot.getContentHeightLimit(Ce.A)});const Y=()=>{this.resizeCompleted.remove(Y),g.css({minHeight:""})};this.resizeCompleted.add(Y)}}return super._renderCore.apply(this,arguments)}}}}}),p(4083);class Qw{constructor(i,a,c){this._exportController=i,this._initialColumnWidthsByColumnIndex=a,this._selectedRowsOnly=c}_getGroupValue(i){const{key:a,data:c,rowType:g,groupIndex:y,summaryCells:D}=i,Y=this._options.groupColumns[y],xe=Dt.getDisplayValue(Y,Y.deserializeValue?Y.deserializeValue(a[y]):a[y],c,g);let Le=`${Y.caption}: ${Dt.formatValue(xe,Y)}`;return D&&D[0]&&D[0].length&&(Le+=` ${Dt.getGroupRowSummaryText(D[0],this._options.summaryTexts)}`),Le}_correctCellIndex(i){return i}_initOptions(){const i=this._exportController,a=i._columnsController.getGroupColumns();this._options={columns:i._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:a,items:this._selectedRowsOnly||i._selectionOnly?i._getSelectedItems():i._getAllItems(),isHeadersVisible:i.option("showColumnHeaders"),summaryTexts:i.option("summary.texts"),rtlEnabled:i.option("rtlEnabled")}}getHeaderStyles(){return[{bold:!0,alignment:"center"},{bold:!0,alignment:"left"},{bold:!0,alignment:"right"}]}getGroupRowStyle(){return{bold:!0,alignment:(0,Me.n)(this._options.rtlEnabled)}}getColumnStyles(){const i=[];return this.getColumns().forEach(a=>{i.push({alignment:a.alignment||"left",format:a.format,dataType:a.dataType})}),i}getStyles(){return[...this.getHeaderStyles(),...this.getColumnStyles(),this.getGroupRowStyle()]}_getTotalCellStyleId(i){var a;const c=(null===(a=this.getColumns()[i])||void 0===a?void 0:a.alignment)||"right";return this.getHeaderStyles().map(g=>g.alignment).indexOf(c)}getStyleId(i,a){return i<this.getHeaderRowCount()?0:this.isTotalCell(i-this.getHeaderRowCount(),a)?this._getTotalCellStyleId(a):this.isGroupRow(i-this.getHeaderRowCount())?this.getHeaderStyles().length+this.getColumns().length:a+this.getHeaderStyles().length}getColumns(i){const{columns:a}=this._options;return i?a:a[a.length-1]}getColumnsWidths(){const i=this.getColumns();return(0,w.O9)(i)?i.map(a=>a.width):void 0}getRowsCount(){return this._options.items.length+this.getHeaderRowCount()}getHeaderRowCount(){return this.isHeadersVisible()?this._options.columns.length-1:0}isGroupRow(i){return i<this._options.items.length&&"group"===this._options.items[i].rowType}getGroupLevel(i){const a=this._options.items[i-this.getHeaderRowCount()],c=a&&a.groupIndex;return a&&"totalFooter"===a.rowType?0:(0,w.O9)(c)?c:this._options.groupColumns.length}getCellType(i,a){const c=this.getColumns();if(i<this.getHeaderRowCount())return"string";if(i-=this.getHeaderRowCount(),a<c.length){const g=this._options.items.length&&this._options.items[i],y=c[a];return g&&"data"===g.rowType&&isFinite(g.values[this._correctCellIndex(a)])&&!(0,w.O9)(y.customizeText)?(0,w.O9)(y.lookup)?y.lookup.dataType:y.dataType:"string"}}ready(){this._initOptions();const i=this._options;return(0,ye.z7)(i.items).done(a=>{i.items=a}).fail(()=>{i.items=[]})}_convertFromGridGroupSummaryItems(i){if((0,w.O9)(i)&&i.length>0)return i.map(a=>({value:a.value,name:a.name}))}getCellData(i,a,c){let g,y;const D={cellSourceData:{},value:g},Y=this.getColumns(),xe=this._correctCellIndex(a);if(i<this.getHeaderRowCount())y=this.getColumns(!0)[i][a],D.cellSourceData.rowType="header",D.cellSourceData.column=y&&y.gridColumn,D.value=y&&y.caption;else{i-=this.getHeaderRowCount();const Le=this._options.items.length&&this._options.items[i];if(Le){const st=Le.values;switch(D.cellSourceData.rowType=Le.rowType,D.cellSourceData.column=Y[a]&&Y[a].gridColumn,Le.rowType){case"groupFooter":case"totalFooter":xe<st.length&&(g=st[xe],(0,w.O9)(g)?(D.cellSourceData.value=g.value,D.cellSourceData.totalSummaryItemName=g.name,D.value=Dt.getSummaryText(g,this._options.summaryTexts)):D.cellSourceData.value=void 0);break;case"group":if(D.cellSourceData.groupIndex=Le.groupIndex,a<1)D.cellSourceData.column=this._options.groupColumns[Le.groupIndex],D.cellSourceData.value=Le.key[Le.groupIndex],D.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(Le.summaryCells[0]),D.value=this._getGroupValue(Le);else{const mt=Le.values[xe];if(Array.isArray(mt)){D.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(mt),g="";for(let on=0;on<mt.length;on++)g+=(on>0?c?"\n":" \n ":"")+Dt.getSummaryText(mt[on],this._options.summaryTexts);D.value=g}else D.cellSourceData.value=void 0}break;default:if(y=Y[a],y){const mt=st[xe],on=Dt.getDisplayValue(y,mt,Le.data,Le.rowType);D.value=!isFinite(on)||(0,w.O9)(y.customizeText)?c&&(0,w.O9)(y.customizeText)&&y.customizeText===this._exportController._columnsController.getCustomizeTextByDataType("boolean")?on:Dt.formatValue(on,y):on,D.cellSourceData.value=mt}D.cellSourceData.data=Le.data}}}return D}isHeadersVisible(){return this._options.isHeadersVisible}isTotalCell(i,a){const{items:c}=this._options,g=c[i],y=this._correctCellIndex(a);return g&&"groupFooter"===g.rowType||"totalFooter"===g.rowType||g.summaryCells&&g.summaryCells[y]&&g.summaryCells[y].length>0&&g.summaryCells[y][0].alignByColumn}getCellMerging(i,a){const{columns:c}=this._options,g=c[i]&&c[i][a];return g?{colspan:(g.exportColspan||1)-1,rowspan:(g.rowspan||1)-1}:{colspan:0,rowspan:0}}getFrozenArea(){return{x:0,y:this.getHeaderRowCount()}}}Dt.registerModule("export",{defaultOptions:()=>({export:{enabled:!1,fileName:"DataGrid",formats:["xlsx"],allowExportSelectedData:!1,texts:{exportTo:v.A.format("dxDataGrid-exportTo"),exportAll:v.A.format("dxDataGrid-exportAll"),exportSelectedRows:v.A.format("dxDataGrid-exportSelectedRows")}}}),controllers:{export:class zx extends Dt.ViewController{init(){this.throwWarningIfNoOnExportingEvent(),this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._selectionController=this.getController("selection"),this._rowsView=this.getView("rowsView"),this._headersView=this.getView("columnHeadersView"),this.createAction("onExporting",{excludeValidators:["disabled","readOnly"]})}_getEmptyCell(){return{caption:"",colspan:1,rowspan:1}}_updateColumnWidth(i,a){i.width=a}_getColumns(i){let c,g,a=[];const y=this._columnsController,D=y.getRowCount();for(c=0;c<=D;c++){const Y=[];let xe;if(g=y.getVisibleColumns(c,!0),c===D)if(this._updateLockCount)xe=i;else{const Le=this._getColumnWidths(this._headersView,this._rowsView);if(Le&&Le.length){xe={};for(let st=0;st<g.length;st++)xe[g[st].index]=Le[st]}}for(let Le=0;Le<g.length;Le++){const st=(0,C.X)({},g[Le],{dataType:"datetime"===g[Le].dataType?"date":g[Le].dataType,gridColumn:g[Le]});if(this._needColumnExporting(st)){const mt=this._calculateExportColspan(st);(0,w.O9)(mt)&&(st.exportColspan=mt),xe&&this._updateColumnWidth(st,xe[st.index]),Y.push(st)}}a.push(Y)}return g=a[D],a=function Kw(I,i){const a=Le=>Le||1,c=[],g=(I[0]||[]).reduce((Le,st)=>Le+a(st.colspan),0),y=(Le=>{let st=0,mt=0;return()=>{const on=Le[st]||[],wn=on[mt++];return mt>=on.length&&(st++,mt=0),wn&&(wn.colspan=a(wn.colspan),wn.rowspan=a(wn.rowspan)),wn}})(I),D=(Le,st,mt)=>{if((c[Le]=c[Le]||[])[st]=mt,mt.colspan>1||mt.rowspan>1){const wn=(0,C.X)({},mt,i);for(let Kn=1;Kn<mt.colspan;Kn++)D(Le,st+Kn,wn);for(let Kn=1;Kn<mt.rowspan;Kn++)for(let Ai=0;Ai<mt.colspan;Ai++)D(Le+Kn,st+Ai,wn)}};let Y=y(),xe=0;for(;Y;){for(let Le=0;Le<g&&Y;Le++)c[xe]&&c[xe][Le]||(D(xe,Le,Y),Le+=Y.colspan-1,Y=y());xe++}return c}(a.slice(0,-1),this._getEmptyCell()),a.push(g),a}_calculateExportColspan(i){if(!i.isBand)return;const a=this._columnsController.getChildrenByBandColumn(i.index,!0);return(0,w.O9)(a)?a.reduce((c,g)=>this._needColumnExporting(g)?c+(this._calculateExportColspan(g)||1):c,0):void 0}_needColumnExporting(i){return!i.command&&(i.allowExporting||void 0===i.allowExporting)}_getFooterSummaryItems(i,a){const c=[];let g=1,y=0;do{const D=[];for(let Y=0;Y<i.length;Y++){const xe=i[Y],Le=xe.length;g<Le&&(g=Le),D.push(xe[y])}c.push({values:D,rowType:a?"totalFooter":"groupFooter"})}while(y++<g-1);return c}_hasSummaryGroupFooters(){const i=this.option("summary.groupItems");if((0,w.O9)(i))for(let a=0;a<i.length;a++)if(i[a].showInGroupFooter)return!0;return!1}_getItemsWithSummaryGroupFooters(i){let a=[],c=[],g=[];for(let y=0;y<i.length;y++){const D=i[y];"groupFooter"===D.rowType?(g=this._getFooterSummaryItems(D.summaryCells),a=a.concat(c,g),c=[]):c.push(D)}return a.length?a:c}_updateGroupValuesWithSummaryByColumn(i){let a=[];for(let c=0;c<i.length;c++){const g=i[c],{summaryCells:y}=g;if("group"===g.rowType&&y&&y.length>1){const D=g.values.length;for(let Y=1;Y<y.length;Y++)for(let xe=0;xe<y[Y].length;xe++){const Le=y[Y][xe];Le&&Le.alignByColumn&&(Array.isArray(a[Y-D])||(a[Y-D]=[]),a[Y-D].push(Le))}a.length>0&&(g.values.push(...a),a=[])}}}_processUnExportedItems(i){const a=this._columnsController.getVisibleColumns(null,!0),c=this._columnsController.getGroupColumns();let g,y;for(let D=0;D<i.length;D++){const Y=i[D];let xe=!1;g=[],y=[];for(let Le=0;Le<a.length;Le++){const st=a[Le];if(xe||(xe=["detailExpand","buttons"].includes(st.type)),this._needColumnExporting(st)&&(Y.values&&g.push("group"!==Y.rowType||g.length?Y.values[Le]:Y.key[Y.groupIndex]),Y.summaryCells))if("group"!==Y.rowType||y.length)y.push(Y.summaryCells[Le]);else{const mt=Le-c.length+Y.groupIndex;y.push(Y.summaryCells[xe?mt:mt+1])}}g.length&&(Y.values=g),y.length&&(Y.summaryCells=y)}}_getAllItems(i){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const c=this,g=new ye.cY,y=this._dataController.footerItems(),D=y.length&&y[0],Y=c.option("summary.totalItems");let xe;return(0,ye.z7)(i).done(Le=>{this._dataController.loadAll(Le,a).done((st,mt)=>{c._updateGroupValuesWithSummaryByColumn(st),c._hasSummaryGroupFooters()&&(st=c._getItemsWithSummaryGroupFooters(st)),xe=D&&D.summaryCells,(0,w.O9)(mt)&&Y&&(xe=c._getSummaryCells(Y,mt));const on=D&&c._getFooterSummaryItems(xe,!0);on&&(st=st.concat(on)),c._processUnExportedItems(st),g.resolve(st)}).fail(g.reject)}).fail(g.reject),g}_getSummaryCells(i,a){return this._dataController._calculateSummaryCells(i,a,this._columnsController.getVisibleColumns(null,!0),(c,g)=>this._dataController._isDataColumn(g)?g.index:-1)}_getSelectedItems(){return this.needLoadItemsOnExportingSelectedItems()?this._getAllItems(this._selectionController.loadSelectedItemsWithFilter(),!0):this._getAllItems(this._selectionController.getSelectedRowsData())}_getColumnWidths(i,a){return i&&i.isVisible()?i.getColumnWidths():a.getColumnWidths()}throwWarningIfNoOnExportingEvent(){var i,a;const c=null===(i=(a=this.component).hasActionSubscription)||void 0===i?void 0:i.call(a,"onExporting");this.option("export.enabled")&&!c&&We.A.log("W1024")}callbackNames(){return["selectionOnlyChanged"]}getDataProvider(i){const a=this._getColumnWidths(this._headersView,this._rowsView);let c;if(a&&a.length){c={};const g=this._columnsController.getVisibleColumns(this._columnsController.getRowCount(),!0);for(let y=0;y<g.length;y++)c[g[y].index]=a[y]}return new Qw(this,c,i)}exportTo(i,a){this._selectionOnly=i;const c=this.getAction("onExporting"),g={rtlEnabled:this.option("rtlEnabled"),selectedRowsOnly:!!i,format:a,fileName:"DataGrid",cancel:!1};(0,w.Tn)(c)&&c(g)}publicMethods(){return["getDataProvider"]}selectionOnly(i){if(!(0,w.O9)(i))return this._isSelectedRows;this._isSelectedRows=i,this.selectionOnlyChanged.fire()}optionChanged(i){super.optionChanged(i),"export"===i.name&&this.throwWarningIfNoOnExportingEvent()}needLoadItemsOnExportingSelectedItems(){return this.option("loadItemsOnExportingSelectedItems")??this._dataController._dataSource.remoteOperations().filtering}}},extenders:{controllers:{editing:I=>class extends I{callbackNames(){const i=super.callbackNames();return(0,w.O9)(i)?i.push("editingButtonsUpdated"):["editingButtonsUpdated"]}_updateEditButtons(){super._updateEditButtons(),this.editingButtonsUpdated.fire()}}},views:{headerPanel:I=>class extends I{_getToolbarItems(){const i=super._getToolbarItems(),a=this._getExportToolbarButton();return a&&(i.push(a),this._correctItemsPosition(i)),i}_getExportToolbarButton(){const i=this._getExportToolbarItems();if(0===i.length)return null;const a=this._needDisableExportButton(),c={name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30,options:{items:i},disabled:a};if(1===i.length){const g=(0,Oe.A)({},i[0],{hint:i[0].text,elementAttr:{class:"dx-datagrid-export-button"}});c.widget="dxButton",c.showText="inMenu",c.options=g}else{const g={icon:"export",displayExpr:"text",items:i,hint:this.option("export.texts.exportTo"),elementAttr:{class:"dx-datagrid-export-button"},dropDownOptions:{width:"auto",_wrapperClassExternal:"dx-datagrid-export-menu"}};c.options=g,c.widget="dxDropDownButton",c.menuItemTemplate=(y,D,Y)=>{this._createComponent((0,T.A)(Y),wE.A,{items:i})}}return c}_getExportToolbarItems(){const i=this.option("export"),a=this.option("export.texts"),c=this.option("export.formats")??[];if(!i.enabled)return[];const g=[];return c.forEach(y=>{let D=y.toUpperCase(),Y="export";"xlsx"===y&&(D="Excel",Y="xlsxfile"),"pdf"===y&&(Y="pdffile"),g.push({text:(0,rn.GP)(a.exportAll,D),icon:Y,onClick:()=>{this._exportController.exportTo(!1,y)}}),i.allowExportSelectedData&&g.push({text:(0,rn.GP)(a.exportSelectedRows,D),icon:"exportselected",onClick:()=>{this._exportController.exportTo(!0,y)}})}),g}_correctItemsPosition(i){i.sort((a,c)=>a.sortIndex-c.sortIndex)}_isExportButtonVisible(){return this.option("export.enabled")}optionChanged(i){super.optionChanged(i),"export"===i.name&&(i.handled=!0,this._invalidate())}_needDisableExportButton(){const i=!this._columnsController.hasVisibleDataColumns(),a=this._editingController.hasChanges();return i||a}_columnOptionChanged(i){if(super._columnOptionChanged(i),Dt.checkChanges(i.optionNames,["groupIndex","visible","all"])){const c=this._needDisableExportButton();this.setToolbarItemDisabled("exportButton",c)}}init(){super.init(),this._exportController=this.getController("export"),this._editingController.editingButtonsUpdated.add(()=>{const i=this._needDisableExportButton();this.setToolbarItemDisabled("exportButton",i)})}isVisible(){return super.isVisible()||this._isExportButtonVisible()}}}}});const L_={defaultOptions:()=>({focusedRowEnabled:!1,autoNavigateToFocusedRow:!0,focusedRowKey:null,focusedRowIndex:-1,focusedColumnIndex:-1}),controllers:{focus:class Xx extends ft.ViewController{getKeyboardController(){return this.getController("keyboardNavigation")}getDataController(){return this.getController("data")}init(){this.component._optionsByReference.focusedRowKey=!0}optionChanged(i){const{name:a,value:c,previousValue:g}=i;switch(a){case"focusedRowIndex":this._focusRowByIndex(c),this.getKeyboardController()._fireFocusedRowChanged(),i.handled=!0;break;case"focusedRowKey":if(Array.isArray(c)&&JSON.stringify(c)===JSON.stringify(g))return;this._focusRowByKey(c),this.getKeyboardController()._fireFocusedRowChanged(),i.handled=!0;break;case"focusedColumnIndex":case"focusedRowEnabled":case"autoNavigateToFocusedRow":i.handled=!0;break;default:super.optionChanged(i)}}publicMethods(){return["navigateToRow","isRowFocused"]}isAutoNavigateToFocusedRow(){return"infinite"!==this.option("scrolling.mode")&&this.option("autoNavigateToFocusedRow")}_focusRowByIndex(i,a){this.option("focusedRowEnabled")&&((i=void 0!==i?i:this.option("focusedRowIndex"))<0?this.isAutoNavigateToFocusedRow()&&this._resetFocusedRow():this._focusRowByIndexCore(i,a))}_focusRowByIndexCore(i,a){const c=this.getDataController().pageSize(),g=()=>{if(this._isValidFocusedRowIndex(i)){let y=i-this.getDataController().getRowIndexOffset(!0);if(!a||a.paging&&!a.filtering){const Y=this.getDataController()._getLastItemIndex();y=Math.min(y,Y)}const D=this.getDataController().getKeyByRowIndex(y,!0);(0,w.O9)(D)&&!this.isRowFocused(D)&&this.option("focusedRowKey",D)}};if(c>=0)if(this._isLocalRowIndex(i))g();else{const y=Math.floor(i/this.getDataController().pageSize());(0,ye.z7)(this.getDataController().pageIndex(y),this.getDataController().waitReady()).done(()=>{g()})}}_isLocalRowIndex(i){if(this.getKeyboardController()._isVirtualScrolling()){const c=Math.floor(i/this.getDataController().pageSize()),g=this.getDataController().virtualItemsCount(),y=g?g.begin:-1,D=this.getDataController().getVisibleRows().length+this.getDataController().getRowIndexOffset(),Y=Math.ceil(D/this.getDataController().pageSize());return y<=i&&Y>c}return!0}_setFocusedRowKeyByIndex(i){if(this._isValidFocusedRowIndex(i)){const a=Math.min(i-this.getDataController().getRowIndexOffset(),this.getDataController().items().length-1),c=this.getDataController().getKeyByRowIndex(a);(0,w.O9)(c)&&!this.isRowFocused(c)&&this.option("focusedRowKey",c)}}_focusRowByKey(i){(0,w.O9)(i)?this._navigateToRow(i,!0):this._resetFocusedRow()}_resetFocusedRow(){const i=this.option("focusedRowKey"),a=(0,w.O9)(i);!a&&this.option("focusedRowIndex")<0||(a&&this.option("focusedRowKey",null),this.getKeyboardController().setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getDataController().updateItems({changeType:"updateFocusedRow",focusedRowKey:null}),this.getKeyboardController()._fireFocusedRowChanged())}_isValidFocusedRowIndex(i){const a=this.getDataController().getVisibleRows()[i];return!a||"data"===a.rowType||"group"===a.rowType}navigateToRow(i){return this.isAutoNavigateToFocusedRow()||this.option("focusedRowIndex",-1),this._navigateToRow(i)}_navigateToRow(i,a){const c=this,g=c.isAutoNavigateToFocusedRow(),y=new ye.cY;if(void 0===i||!this.getDataController().dataSource())return y.reject().promise();const D=c.getFocusedRowIndexByKey(i);return!g&&a||D>=0?c._navigateTo(i,y,a):this.getDataController().getPageIndexByKey(i).done(Y=>{Y<0?y.resolve(-1):Y===this.getDataController().pageIndex()?this.getDataController().reload().done(()=>{c.isRowFocused(i)&&this.getDataController().getRowIndexByKey(i)>=0?y.resolve(c.getFocusedRowIndexByKey(i)):c._navigateTo(i,y,a)}).fail(y.reject):this.getDataController().pageIndex(Y).done(()=>{c._navigateTo(i,y,a)}).fail(y.reject)}).fail(y.reject),y.promise()}_navigateTo(i,a,c){const g=this.getDataController().getRowIndexByKey(i),y=Ot.isVirtualRowRendering(this);this.isAutoNavigateToFocusedRow()&&y&&g<0?this._navigateToVirtualRow(i,a,c):this._navigateToVisibleRow(i,a,c)}_navigateToVisibleRow(i,a,c){if(c)this._triggerUpdateFocusedRow(i,a);else{const g=this.getFocusedRowIndexByKey(i);this.getView("rowsView").scrollToRowElement(i,a).done(()=>{a.resolve(g)})}}_navigateToVirtualRow(i,a,c){const g=this.getDataController()._rowsScrollController,y=Ot.getIndexByKey(i,this.getDataController().items(!0)),D=this.getView("rowsView").getScrollable();if(g&&D&&y>=0){const Y=y+this.getDataController().getRowIndexOffset(!0),xe=g.getItemOffset(Y),Le=()=>{this.getDataController().totalCount()&&!this.getDataController().items().length||(this.component.off("contentReady",Le),c?this._triggerUpdateFocusedRow(i,a):a.resolve(Y))};this.component.on("contentReady",Le),this.getView("rowsView").scrollTopPosition(xe)}else a.resolve(-1)}_triggerUpdateFocusedRow(i,a){const c=this.getFocusedRowIndexByKey(i);if(this._isValidFocusedRowIndex(c)){let g;this.option("focusedRowEnabled")?this.getDataController().updateItems({changeType:"updateFocusedRow",focusedRowKey:i}):g=this.getView("rowsView").scrollToRowElement(i),(0,ye.z7)(g).done(()=>{this.getKeyboardController().setFocusedRowIndex(c),a&&a.resolve(c)})}else a&&a.resolve(-1)}getFocusedRowIndexByKey(i){const a=this.getDataController().getRowIndexByKey(i,!0);return a>=0?a+this.getDataController().getRowIndexOffset(!0):-1}_focusRowByKeyOrIndex(){const i=this.option("focusedRowKey");let a=this.option("focusedRowIndex");if((0,w.O9)(i)){const c=this.getDataController().getRowIndexByKey(i);c>=0?(this.getKeyboardController()._isVirtualScrolling()&&(a=c+this.getDataController().getRowIndexOffset()),this.getKeyboardController().setFocusedRowIndex(a),this._triggerUpdateFocusedRow(i)):this._navigateToRow(i,!0).done(g=>{a>=0&&g<0?this._focusRowByIndex():a<0&&g>=0&&this.getKeyboardController().setFocusedRowIndex(g)})}else a>=0&&this._focusRowByIndex(a)}isRowFocused(i){const a=this.option("focusedRowKey");if((0,w.O9)(a))return(0,b.RL)(i,this.option("focusedRowKey"))}updateFocusedRow(i){const a=this,c=i.focusedRowIndex??a.getDataController().getRowIndexByKey(i.focusedRowKey),g=a.getView("rowsView");let y,D;(0,e.__)(g.getTableElements(),(Y,xe)=>{const Le=0===Y;y=(0,T.A)(xe),a._clearPreviousFocusedRow(y,c);const st=a._prepareFocusedRow({changedItem:a.getDataController().getVisibleRows()[c],$tableElement:y,focusedRowIndex:c});Le&&(D=st)}),!i.preventScroll&&D&&g.scrollToElementVertically(D)}_clearPreviousFocusedRow(i,a){const c=i.find(".dx-row.dx-row-focused").filter((g,y)=>{const D=(0,T.A)(y).closest(`.${this.addWidgetPrefix("table")}`);return i.is(D)});c.removeClass("dx-row-focused").removeClass("dx-cell-focus-disabled").removeAttr("tabindex"),c.children("td").removeAttr("tabindex"),0!==a&&(0,T.A)(this.getView("rowsView").getRowElement(0)).removeClass("dx-cell-focus-disabled").removeAttr("tabIndex")}_prepareFocusedRow(i){let a;const{changedItem:c}=i;if(c&&("data"===c.rowType||"group"===c.rowType)){const{focusedRowIndex:g}=i,{$tableElement:y}=i,D=this.option("tabindex")||0,Y=this.getView("rowsView");a=(0,T.A)(Y._getRowElements(y).eq(g)),a.addClass("dx-row-focused").attr("tabindex",D)}return a}}},extenders:{controllers:{keyboardNavigation:I=>class extends I{init(){const i=this.option("focusedRowIndex"),a=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),super.init(),this.setRowFocusType(),this._focusedCellPosition={},(0,w.O9)(i)&&i>=0&&(this._focusedCellPosition.rowIndex=i),(0,w.O9)(a)&&a>=0&&(this._focusedCellPosition.columnIndex=a)}setFocusedRowIndex(i){super.setFocusedRowIndex(i),this.option("focusedRowIndex",i)}setFocusedColumnIndex(i){super.setFocusedColumnIndex(i),this.option("focusedColumnIndex",i)}_escapeKeyHandler(i,a){return a||!this.option("focusedRowEnabled")?super._escapeKeyHandler(i,a):!!this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(i.originalEvent.target),!0),!0)}_updateFocusedCellPosition(i,a){const c=super._updateFocusedCellPosition(i,a);return c&&c.columnIndex>=0&&this._fireFocusedCellChanged(i),c}},editorFactory:I=>class extends I{renderFocusOverlay(i,a){var c;const g=this.option("focusedRowEnabled");let y;g&&null!==(c=this._keyboardNavigationController)&&void 0!==c&&c.isRowFocusType()&&!this._editingController.isEditing()?g&&"row"===this._keyboardNavigationController._getElementType(i)&&!i.hasClass("dx-row-focused")&&(y=this._keyboardNavigationController.getFirstValidCellInRow(i),this._keyboardNavigationController.focus(y)):super.renderFocusOverlay(i,a)}},columns:I=>class extends I{getSortDataSourceParameters(i,a){let c=super.getSortDataSourceParameters.apply(this,arguments);const g=this._dataController._dataSource,y=this._dataController.store();let D=y&&y.key();const Y=g&&g.remoteOperations()||{},xe=Object.keys(Y).every(Le=>!Y[Le]);if(D&&(this.option("focusedRowEnabled")&&!1!==this._focusController.isAutoNavigateToFocusedRow()||a)){D=Array.isArray(D)?D:[D];const Le=D.filter(st=>!this.columnOption(st,"sortOrder"));Le.length&&(c=c||[],xe?c.push({selector:g.getDataIndexGetter(),desc:!1}):Le.forEach(st=>c.push({selector:st,desc:!1})))}return c}},data:I=>class extends I{_applyChange(i){if(!i||"updateFocusedRow"!==i.changeType)return super._applyChange.apply(this,arguments)}_fireChanged(i){if(super._fireChanged(i),this.option("focusedRowEnabled")&&this._dataSource){const c="update"===i.changeType&&i.repaintChangesOnly&&i.changeTypes&&i.changeTypes.indexOf("remove")>=0;"refresh"===i.changeType&&i.items.length||c?(this._updatePageIndexes(),this._updateFocusedRow(i)):"append"===i.changeType||"prepend"===i.changeType?this._updatePageIndexes():"update"===i.changeType&&i.repaintChangesOnly&&this._updateFocusedRow(i)}}_updatePageIndexes(){const i=this._lastRenderingPageIndex||0,a=this._rowsScrollController?this._rowsScrollController.pageIndex():0;this._lastRenderingPageIndex=a,this._isPagingByRendering=a!==i}isPagingByRendering(){return this._isPagingByRendering}_updateFocusedRow(i){const a=i.operationTypes||{},{reload:c,fullReload:g,pageIndex:y,paging:D}=a,Y=this._keyboardNavigationController._isVirtualScrolling(),xe=D&&!Y,Le=this.option("focusedRowKey"),st=this._focusController.isAutoNavigateToFocusedRow();if(c&&!1===y&&!g&&(0,w.O9)(Le))this._focusController._navigateToRow(Le,!0).done(on=>{on<0&&this._focusController._focusRowByIndex(void 0,a)});else if(xe&&st){const on=this.getRowIndexByKey(Le),wn=this.option("focusedRowIndex");wn>=0&&(wn===on||!(on>=0))&&this._focusController._focusRowByIndex(wn,a)}else xe&&!st&&this.getRowIndexByKey(Le)<0?this.option("focusedRowIndex",-1):a.fullReload&&this._focusController._focusRowByKeyOrIndex()}getPageIndexByKey(i){const a=this,c=new ye.cY;return a.getGlobalRowIndexByKey(i).done(g=>{c.resolve(g>=0?Math.floor(g/a.pageSize()):-1)}).fail(c.reject),c.promise()}getGlobalRowIndexByKey(i){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(i):this._calculateGlobalRowIndexByFlatData(i)}_calculateGlobalRowIndexByFlatData(i,a,c){const g=this,y=new ye.cY,D=g._dataSource;if(Array.isArray(i)||(I=>"string"==typeof I&&I.startsWith("_DX_KEY_")&&44===I.length)(i))return y.resolve(-1).promise();let Y=g._generateFilterByKey(i);return D.load({filter:g._concatWithCombinedFilter(Y),skip:0,take:1}).done(xe=>{xe.length>0?(Y=g._generateOperationFilterByKey(i,xe[0],c),D.load({filter:g._concatWithCombinedFilter(Y,a),skip:0,take:1,requireTotalCount:!0}).done((Le,st)=>{y.resolve(st.totalCount)})):y.resolve(-1)}),y.promise()}_concatWithCombinedFilter(i,a){const c=this.getCombinedFilter();return Ot.combineFilters([i,c,a])}_generateBooleanFilter(i,a,c){const{desc:g}=c;switch(!0){case!1===a&&g:return[i,"=",!0];case!1===a&&!g:return[i,"=",null];case!0===a&&!g:case!(0,w.Lm)(a)&&g:return[i,"<>",a];default:return}}_generateOperationFilterByKey(i,a,c){const g=this,y=g.option("dateSerializationFormat"),D=g._dataSource.remoteOperations().filtering,Y=g._dataSource.remoteOperations().sorting;let xe=g._generateFilterByKey(i,"<"),Le=g._columnsController.getSortDataSourceParameters(!D,!0);if(c){const st=g._columnsController.getGroupDataSourceParameters(!D);st&&(Le=Le?st.concat(Le):st)}return Le&&Le.slice().reverse().forEach(st=>{const{selector:mt,desc:on,compare:wn}=st,{getter:Kn,rawValue:Ai,safeValue:no}=((I,i,a)=>{let{isRemoteFiltering:c,dateSerializationFormat:g,getSelector:y}=a;const{selector:D}=I,Y=(0,w.Tn)(D)?D:y(D),xe=Y?Y(i):i[D];return{getter:Y,rawValue:xe,safeValue:c&&(0,w.$P)(xe)?Wn.A.serializeDate(xe,g):xe}})(st,a,{isRemoteFiltering:D,dateSerializationFormat:y,getSelector:Yo=>g._columnsController.columnOption(Yo,"selector")});if(xe=[[mt,"=",no],"and",xe],null===Ai||(0,w.Lm)(Ai)){const Yo=g._generateBooleanFilter(mt,no,on);Yo&&(xe=[Yo,"or",xe])}else{const Yo=on?">":"<";let ps;wn&&!Y?ps=Ls=>"<"===Yo?wn(Ai,Kn(Ls))>=1:wn(Ai,Kn(Ls))<=-1:(ps=[mt,Yo,no],on||(ps=[ps,"or",[mt,"=",null]])),xe=[ps,"or",xe]}}),xe}_generateFilterByKey(i,a){const c=this._dataSource.key();let g=[];if(a||(a="="),Array.isArray(c))for(let y=0;y<c.length;++y){const D=i[c[y]];D&&(g.length>0&&g.push("and"),g.push([c[y],a,D]))}else g=[c,a,i];return g}_getLastItemIndex(){return this.items(!0).length-1}},editing:I=>class extends I{_deleteRowCore(i){const a=super._deleteRowCore.apply(this,arguments),c=this._dataController.getKeyByRowIndex(i);a.done(()=>{const g=this._dataController.getRowIndexByKey(c),y=this._dataController.getVisibleRows();-1===g&&!y.length&&this._focusController._resetFocusedRow()})}}},views:{rowsView:I=>class extends I{_createRow(i){const a=super._createRow.apply(this,arguments);return this.option("focusedRowEnabled")&&i&&this._focusController.isRowFocused(i.key)&&a.addClass("dx-row-focused"),a}_checkRowKeys(i){if(super._checkRowKeys.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){const a=this._dataController.store();a&&!a.key()&&this._dataController.fireError("E1042","Row focusing")}}_update(i){"updateFocusedRow"===i.changeType?this.option("focusedRowEnabled")&&this._focusController.updateFocusedRow(i):super._update(i)}updateFocusElementTabIndex(i,a){this.option("focusedRowEnabled")?this._setFocusedRowElementTabIndex(a):super.updateFocusElementTabIndex(i)}_setFocusedRowElementTabIndex(i){const a=this.option("focusedRowKey"),c=this.option("tabIndex")??0,g=this._columnsController;let y=this._dataController.getRowIndexByKey(a),D=this.option("focusedColumnIndex");const Y=this._findRowElementForTabIndex(),xe=this._dataController.dataSource(),Le=xe?.operationTypes(),st=!Le||Le.paging;(0,w.O9)(this._scrollToFocusOnResize)||(this._scrollToFocusOnResize=()=>{this.scrollToElementVertically(this._findRowElementForTabIndex()),this.resizeCompleted.remove(this._scrollToFocusOnResize)}),Y.attr("tabIndex",c);const mt=this.option("focusedRowIndex")-this._dataController.getRowIndexOffset(!0);!st&&y<0&&mt>=0&&this._focusController.updateFocusedRow({focusedRowIndex:mt,preventScroll:i}),y>=0&&!i&&(D<0&&(D=0),y+=this._dataController.getRowIndexOffset(),D+=g.getColumnIndexOffset(),this._keyboardNavigationController.setFocusedCellPosition(y,D),this._focusController.isAutoNavigateToFocusedRow()&&!st&&!this._dataController.isPagingByRendering()&&(this.resizeCompleted.remove(this._scrollToFocusOnResize),this.resizeCompleted.add(this._scrollToFocusOnResize)))}_findRowElementForTabIndex(){const i=this.option("focusedRowKey"),a=this._dataController.getRowIndexByKey(i);return(0,T.A)(this.getRowElement(a>=0?a:0))}scrollToRowElement(i){const a=this._dataController.getRowIndexByKey(i),c=(0,T.A)(this.getRow(a));return this.scrollToElementVertically(c)}scrollToElementVertically(i){const a=this.getScrollable();if(a&&i.length){const c=a.getScrollElementPosition(i,"vertical");return this.scrollTopPosition(c)}return(new ye.cY).resolve()}scrollTopPosition(i){const a=new ye.cY,c=this.getScrollable();if(c){const g=c.scrollTop(),y=()=>{c.off("scroll",y),a.resolve()};if(i!==g)return c.on("scroll",y),this._dataController.resetFilterApplying(),c.scrollTo({top:i}),a.promise()}return a.resolve()}}}}},sS=Number.MAX_SAFE_INTEGER||9007199254740991;Dt.registerModule("focus",(0,Oe.A)({},L_,{extenders:(0,Oe.A)({},L_.extenders,{controllers:(0,Oe.A)({},L_.extenders.controllers,{data:I=>class extends(L_.extenders.controllers.data(I)){changeRowExpand(i,a){return this.option("focusedRowEnabled")&&Array.isArray(i)&&this.isRowExpanded(i)&&(!a||!this._keyboardNavigationController.isKeyboardEnabled())&&this._isFocusedRowInsideGroup(i)&&this.option("focusedRowKey",i),super.changeRowExpand(i,a)}_isFocusedRowInsideGroup(i){const a=this.option("focusedRowKey"),c=this.getRowIndexByKey(a),g=c>=0&&this.getVisibleRows()[c],y=this._columnsController.getGroupDataSourceParameters(!0);if(g)for(let D=0;D<i.length;++D)if((0,nn.Hz)(y[D]&&y[D].selector)(g.data)!==i[D])return!1;return!0}_getGroupPath(i,a){const c=[];let g=[i];for(;g&&g[0]&&a;){const y=g[0];void 0!==y.key&&c.push(y.key),g=y.items,a--}return c}_expandGroupByPath(i,a,c){const g=new ye.cY;return c++,i.expandRow(a.slice(0,c)).done(()=>{c===a.length?g.resolve():i._expandGroupByPath(i,a,c).done(g.resolve).fail(g.reject)}).fail(g.reject),g.promise()}_calculateGlobalRowIndexByGroupedData(i){const a=this,c=a._dataSource,g=a._generateFilterByKey(i),y=new ye.cY,D=Array.isArray(i),Y=c.group();return D?y.resolve(-1).promise():c._grouping._updatePagingOptions?(c.load({filter:a._concatWithCombinedFilter(g),group:Y}).done(xe=>{if(!xe||0===xe.length||!(0,w.O9)(xe[0].key)||-1===xe[0].key)return y.resolve(-1).promise();const Le=a._getGroupPath(xe[0],Y.length);a._expandGroupByPath(a,Le,0).done(()=>{a._calculateExpandedRowGlobalIndex(y,i,Le,Y)}).fail(y.reject)}).fail(y.reject),y.promise()):(a._calculateGlobalRowIndexByFlatData(i,null,!0).done(y.resolve).fail(y.reject),y)}_calculateExpandedRowGlobalIndex(i,a,c,g){const y=Qc(c,{group:g}),D=this._dataSource,Y=this.option("scrolling.mode"),xe="virtual"===Y||"infinite"===Y,Le=D.pageSize();let st;D._grouping._updatePagingOptions({skip:0,take:sS},(mt,on)=>{(0,b.RL)(mt.path,c)&&(st=on)}),this._calculateGlobalRowIndexByFlatData(a,y).done(mt=>{let on,wn;mt<0?i.resolve(-1):(on=(st%Le||Le)+mt-c.length,wn=xe?0:Math.floor(on/(Le-c.length))*c.length,on=st+mt+wn,i.resolve(on))}).fail(i.reject)}}})})}));var Qx=p(3125);Dt.registerModule("rowDragging",{defaultOptions:()=>({rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}),extenders:{views:{rowsView:I=>class extends I{init(){super.init.apply(this,arguments),this._updateHandleColumn()}optionChanged(i){"rowDragging"===i.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),i.handled=!0),super.optionChanged.apply(this,arguments)}_allowReordering(){const i=this.option("rowDragging");return!(!i||!(i.allowReordering||i.allowDropInsideItem||i.group))}_updateHandleColumn(){const i=this.option("rowDragging"),a=this._allowReordering(),c=this._columnsController,g=a&&i.showDragIcons;c?.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",elementAttr:[{name:"dx-drag-cell",value:""}],cssClass:"dx-command-drag",width:"auto",cellTemplate:this._getHandleTemplate(),visible:g}),c?.columnOption("type:drag","visible",g)}_renderContent(){const i=this.option("rowDragging"),a=this._allowReordering(),c=super._renderContent.apply(this,arguments),g=this._isFixedTableRendering,y=g?"_sortableFixed":"_sortable",D=g?"_sortable":"_sortableFixed",Y=st=>{var mt;null===(mt=this._sortableFixed)||void 0===mt||mt.$element().css("pointerEvents",st?"auto":"")},xe=".dx-row:not(.dx-freespace-row):not(.dx-virtual-row):not(.dx-header-row):not(.dx-footer-row)",Le=this.option("dataRowTemplate")?`> table > tbody${xe}`:`> table > tbody > ${xe}`;return(a||this[y])&&c.length&&(this[y]=this._createComponent(c,Qx.A,(0,C.X)({component:this.component,contentTemplate:null,filter:Le,cursorOffset:st=>{const{event:mt}=st,on=(0,T.A)(this.element()).offset();return{x:mt.pageX-on.left}},onDraggableElementShown:st=>{if(i.dragTemplate)return;const on=(0,T.A)(st.dragElement).children(".dx-widget").data(this.component.NAME);this._synchronizeScrollLeftPosition(on)},dragTemplate:this._getDraggableRowTemplate(),handle:i.showDragIcons&&".dx-command-drag",dropFeedbackMode:"indicate"},i,{onDragStart:st=>{var mt,on;null===(mt=this.getController("keyboardNavigation"))||void 0===mt||mt._resetFocusedCell();const wn=st.component.getVisibleRows()[st.fromIndex];st.itemData=wn&&wn.data,st.cancel=!a||!(wn&&"data"===wn.rowType),null===(on=i.onDragStart)||void 0===on||on.call(i,st)},onDragEnter:st=>{st.fromComponent!==st.toComponent&&Y(!0)},onDragLeave:()=>{Y(!1)},onDragEnd:st=>{var mt;Y(!1),null===(mt=i.onDragEnd)||void 0===mt||mt.call(i,st)},onAdd:st=>{var mt;Y(!1),null===(mt=i.onAdd)||void 0===mt||mt.call(i,st)},dropFeedbackMode:i.dropFeedbackMode,onOptionChanged:st=>{this._sortableFixed&&("fromIndex"===st.name||"toIndex"===st.name)&&this[D].option(st.name,st.value)}})),c.toggleClass("dx-scrollable-container",g),c.toggleClass("dx-sortable-without-handle",a&&!i.showDragIcons)),c}_renderCore(i){super._renderCore.apply(this,arguments),i&&"update"===i.changeType&&i.repaintChangesOnly&&Ot.isVirtualRowRendering(this)&&(0,b.OX)(()=>{this._updateSortable()})}_updateSortable(){const i=this._dataController.getRowIndexOffset(),a=i-this._previousOffset;[this._sortable,this._sortableFixed].forEach(c=>{const g=c?.option("toIndex");(0,w.O9)(g)&&(0,w.O9)(this._previousOffset)&&c?.option("toIndex",g-a),c?.option("offset",i),c?.update()}),this._previousOffset=i}_resizeCore(){super._resizeCore.apply(this,arguments),this._updateSortable()}_getDraggableGridOptions(i){const a=this.option(),c=this.getColumns(),g=(0,T.A)(this.getRowElement(i.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:"never"},pager:{visible:!1},loadingTimeout:null,columnFixing:a.columnFixing,columnAutoWidth:a.columnAutoWidth,showColumnLines:a.showColumnLines,columns:c.map(y=>({width:y.width||y.visibleWidth,fixed:y.fixed,fixedPosition:y.fixedPosition})),onRowPrepared:y=>{const D=y.component.getView("rowsView");(0,T.A)(y.rowElement).replaceWith(g.eq(D._isFixedTableRendering?1:0).clone())}}}_synchronizeScrollLeftPosition(i){const a=i?.getScrollable();a?.scrollTo({x:this._scrollLeft})}_getDraggableRowTemplate(){return i=>{const a=this.component.$element(),c=(0,T.A)("<div>");(0,k.zj)(c,(0,k.RG)(a));const g=this._dataController.items(),D=this._getDraggableGridOptions(g&&g[i.fromIndex]);return this._createComponent(c,this.component.NAME,D),c.find(".dx-gridbase-container").children(`:not(.${this.addWidgetPrefix("rowsview")})`).hide(),c.addClass(this.addWidgetPrefix("dragview")),c}}_getHandleTemplate(){return(I=>(i,a)=>{const c=(0,T.A)(i);if("data"===a.rowType)return c.addClass("dx-cell-focus-disabled"),(0,T.A)("<span>").addClass(I("drag-icon"));Ot.setEmptyText(c)})(i=>this.addWidgetPrefix(i))}}}}});const aS=iu;var bc=p(3349),xo=p(8914);let lS=(()=>{class I extends bc.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(a){this._setOption("accessKey",a)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(a){this._setOption("activeStateEnabled",a)}get allowColumnReordering(){return this._getOption("allowColumnReordering")}set allowColumnReordering(a){this._setOption("allowColumnReordering",a)}get allowColumnResizing(){return this._getOption("allowColumnResizing")}set allowColumnResizing(a){this._setOption("allowColumnResizing",a)}get autoNavigateToFocusedRow(){return this._getOption("autoNavigateToFocusedRow")}set autoNavigateToFocusedRow(a){this._setOption("autoNavigateToFocusedRow",a)}get cacheEnabled(){return this._getOption("cacheEnabled")}set cacheEnabled(a){this._setOption("cacheEnabled",a)}get cellHintEnabled(){return this._getOption("cellHintEnabled")}set cellHintEnabled(a){this._setOption("cellHintEnabled",a)}get columnAutoWidth(){return this._getOption("columnAutoWidth")}set columnAutoWidth(a){this._setOption("columnAutoWidth",a)}get columnChooser(){return this._getOption("columnChooser")}set columnChooser(a){this._setOption("columnChooser",a)}get columnFixing(){return this._getOption("columnFixing")}set columnFixing(a){this._setOption("columnFixing",a)}get columnHidingEnabled(){return this._getOption("columnHidingEnabled")}set columnHidingEnabled(a){this._setOption("columnHidingEnabled",a)}get columnMinWidth(){return this._getOption("columnMinWidth")}set columnMinWidth(a){this._setOption("columnMinWidth",a)}get columnResizingMode(){return this._getOption("columnResizingMode")}set columnResizingMode(a){this._setOption("columnResizingMode",a)}get columns(){return this._getOption("columns")}set columns(a){this._setOption("columns",a)}get columnWidth(){return this._getOption("columnWidth")}set columnWidth(a){this._setOption("columnWidth",a)}get customizeColumns(){return this._getOption("customizeColumns")}set customizeColumns(a){this._setOption("customizeColumns",a)}get dataRowTemplate(){return this._getOption("dataRowTemplate")}set dataRowTemplate(a){this._setOption("dataRowTemplate",a)}get dataSource(){return this._getOption("dataSource")}set dataSource(a){this._setOption("dataSource",a)}get dateSerializationFormat(){return this._getOption("dateSerializationFormat")}set dateSerializationFormat(a){this._setOption("dateSerializationFormat",a)}get disabled(){return this._getOption("disabled")}set disabled(a){this._setOption("disabled",a)}get editing(){return this._getOption("editing")}set editing(a){this._setOption("editing",a)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(a){this._setOption("elementAttr",a)}get errorRowEnabled(){return this._getOption("errorRowEnabled")}set errorRowEnabled(a){this._setOption("errorRowEnabled",a)}get export(){return this._getOption("export")}set export(a){this._setOption("export",a)}get filterBuilder(){return this._getOption("filterBuilder")}set filterBuilder(a){this._setOption("filterBuilder",a)}get filterBuilderPopup(){return this._getOption("filterBuilderPopup")}set filterBuilderPopup(a){this._setOption("filterBuilderPopup",a)}get filterPanel(){return this._getOption("filterPanel")}set filterPanel(a){this._setOption("filterPanel",a)}get filterRow(){return this._getOption("filterRow")}set filterRow(a){this._setOption("filterRow",a)}get filterSyncEnabled(){return this._getOption("filterSyncEnabled")}set filterSyncEnabled(a){this._setOption("filterSyncEnabled",a)}get filterValue(){return this._getOption("filterValue")}set filterValue(a){this._setOption("filterValue",a)}get focusedColumnIndex(){return this._getOption("focusedColumnIndex")}set focusedColumnIndex(a){this._setOption("focusedColumnIndex",a)}get focusedRowEnabled(){return this._getOption("focusedRowEnabled")}set focusedRowEnabled(a){this._setOption("focusedRowEnabled",a)}get focusedRowIndex(){return this._getOption("focusedRowIndex")}set focusedRowIndex(a){this._setOption("focusedRowIndex",a)}get focusedRowKey(){return this._getOption("focusedRowKey")}set focusedRowKey(a){this._setOption("focusedRowKey",a)}get grouping(){return this._getOption("grouping")}set grouping(a){this._setOption("grouping",a)}get groupPanel(){return this._getOption("groupPanel")}set groupPanel(a){this._setOption("groupPanel",a)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(a){this._setOption("headerFilter",a)}get height(){return this._getOption("height")}set height(a){this._setOption("height",a)}get highlightChanges(){return this._getOption("highlightChanges")}set highlightChanges(a){this._setOption("highlightChanges",a)}get hint(){return this._getOption("hint")}set hint(a){this._setOption("hint",a)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(a){this._setOption("hoverStateEnabled",a)}get keyboardNavigation(){return this._getOption("keyboardNavigation")}set keyboardNavigation(a){this._setOption("keyboardNavigation",a)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(a){this._setOption("keyExpr",a)}get loadPanel(){return this._getOption("loadPanel")}set loadPanel(a){this._setOption("loadPanel",a)}get masterDetail(){return this._getOption("masterDetail")}set masterDetail(a){this._setOption("masterDetail",a)}get noDataText(){return this._getOption("noDataText")}set noDataText(a){this._setOption("noDataText",a)}get pager(){return this._getOption("pager")}set pager(a){this._setOption("pager",a)}get paging(){return this._getOption("paging")}set paging(a){this._setOption("paging",a)}get remoteOperations(){return this._getOption("remoteOperations")}set remoteOperations(a){this._setOption("remoteOperations",a)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(a){this._setOption("renderAsync",a)}get repaintChangesOnly(){return this._getOption("repaintChangesOnly")}set repaintChangesOnly(a){this._setOption("repaintChangesOnly",a)}get rowAlternationEnabled(){return this._getOption("rowAlternationEnabled")}set rowAlternationEnabled(a){this._setOption("rowAlternationEnabled",a)}get rowDragging(){return this._getOption("rowDragging")}set rowDragging(a){this._setOption("rowDragging",a)}get rowTemplate(){return this._getOption("rowTemplate")}set rowTemplate(a){this._setOption("rowTemplate",a)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(a){this._setOption("rtlEnabled",a)}get scrolling(){return this._getOption("scrolling")}set scrolling(a){this._setOption("scrolling",a)}get searchPanel(){return this._getOption("searchPanel")}set searchPanel(a){this._setOption("searchPanel",a)}get selectedRowKeys(){return this._getOption("selectedRowKeys")}set selectedRowKeys(a){this._setOption("selectedRowKeys",a)}get selection(){return this._getOption("selection")}set selection(a){this._setOption("selection",a)}get selectionFilter(){return this._getOption("selectionFilter")}set selectionFilter(a){this._setOption("selectionFilter",a)}get showBorders(){return this._getOption("showBorders")}set showBorders(a){this._setOption("showBorders",a)}get showColumnHeaders(){return this._getOption("showColumnHeaders")}set showColumnHeaders(a){this._setOption("showColumnHeaders",a)}get showColumnLines(){return this._getOption("showColumnLines")}set showColumnLines(a){this._setOption("showColumnLines",a)}get showRowLines(){return this._getOption("showRowLines")}set showRowLines(a){this._setOption("showRowLines",a)}get sortByGroupSummaryInfo(){return this._getOption("sortByGroupSummaryInfo")}set sortByGroupSummaryInfo(a){this._setOption("sortByGroupSummaryInfo",a)}get sorting(){return this._getOption("sorting")}set sorting(a){this._setOption("sorting",a)}get stateStoring(){return this._getOption("stateStoring")}set stateStoring(a){this._setOption("stateStoring",a)}get summary(){return this._getOption("summary")}set summary(a){this._setOption("summary",a)}get syncLookupFilterValues(){return this._getOption("syncLookupFilterValues")}set syncLookupFilterValues(a){this._setOption("syncLookupFilterValues",a)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(a){this._setOption("tabIndex",a)}get toolbar(){return this._getOption("toolbar")}set toolbar(a){this._setOption("toolbar",a)}get twoWayBindingEnabled(){return this._getOption("twoWayBindingEnabled")}set twoWayBindingEnabled(a){this._setOption("twoWayBindingEnabled",a)}get visible(){return this._getOption("visible")}set visible(a){this._setOption("visible",a)}get width(){return this._getOption("width")}set width(a){this._setOption("width",a)}get wordWrapEnabled(){return this._getOption("wordWrapEnabled")}set wordWrapEnabled(a){this._setOption("wordWrapEnabled",a)}onAdaptiveDetailRowPreparing;onCellClick;onCellDblClick;onCellHoverChanged;onCellPrepared;onContentReady;onContextMenuPreparing;onDataErrorOccurred;onDisposing;onEditCanceled;onEditCanceling;onEditingStart;onEditorPrepared;onEditorPreparing;onExporting;onFocusedCellChanged;onFocusedCellChanging;onFocusedRowChanged;onFocusedRowChanging;onInitialized;onInitNewRow;onKeyDown;onOptionChanged;onRowClick;onRowCollapsed;onRowCollapsing;onRowDblClick;onRowExpanded;onRowExpanding;onRowInserted;onRowInserting;onRowPrepared;onRowRemoved;onRowRemoving;onRowUpdated;onRowUpdating;onRowValidating;onSaved;onSaving;onSelectionChanged;onToolbarPreparing;accessKeyChange;activeStateEnabledChange;allowColumnReorderingChange;allowColumnResizingChange;autoNavigateToFocusedRowChange;cacheEnabledChange;cellHintEnabledChange;columnAutoWidthChange;columnChooserChange;columnFixingChange;columnHidingEnabledChange;columnMinWidthChange;columnResizingModeChange;columnsChange;columnWidthChange;customizeColumnsChange;dataRowTemplateChange;dataSourceChange;dateSerializationFormatChange;disabledChange;editingChange;elementAttrChange;errorRowEnabledChange;exportChange;filterBuilderChange;filterBuilderPopupChange;filterPanelChange;filterRowChange;filterSyncEnabledChange;filterValueChange;focusedColumnIndexChange;focusedRowEnabledChange;focusedRowIndexChange;focusedRowKeyChange;groupingChange;groupPanelChange;headerFilterChange;heightChange;highlightChangesChange;hintChange;hoverStateEnabledChange;keyboardNavigationChange;keyExprChange;loadPanelChange;masterDetailChange;noDataTextChange;pagerChange;pagingChange;remoteOperationsChange;renderAsyncChange;repaintChangesOnlyChange;rowAlternationEnabledChange;rowDraggingChange;rowTemplateChange;rtlEnabledChange;scrollingChange;searchPanelChange;selectedRowKeysChange;selectionChange;selectionFilterChange;showBordersChange;showColumnHeadersChange;showColumnLinesChange;showRowLinesChange;sortByGroupSummaryInfoChange;sortingChange;stateStoringChange;summaryChange;syncLookupFilterValuesChange;tabIndexChange;toolbarChange;twoWayBindingEnabledChange;visibleChange;widthChange;wordWrapEnabledChange;get columnsChildren(){return this._getOption("columns")}set columnsChildren(a){this.setChildren("columns",a)}get sortByGroupSummaryInfoChildren(){return this._getOption("sortByGroupSummaryInfo")}set sortByGroupSummaryInfoChildren(a){this.setChildren("sortByGroupSummaryInfo",a)}constructor(a,c,g,y,D,Y,xe,Le){super(a,c,g,y,xe,Le),this._watcherHelper=y,this._idh=D,this._createEventEmitters([{subscribe:"adaptiveDetailRowPreparing",emit:"onAdaptiveDetailRowPreparing"},{subscribe:"cellClick",emit:"onCellClick"},{subscribe:"cellDblClick",emit:"onCellDblClick"},{subscribe:"cellHoverChanged",emit:"onCellHoverChanged"},{subscribe:"cellPrepared",emit:"onCellPrepared"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"contextMenuPreparing",emit:"onContextMenuPreparing"},{subscribe:"dataErrorOccurred",emit:"onDataErrorOccurred"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"editCanceled",emit:"onEditCanceled"},{subscribe:"editCanceling",emit:"onEditCanceling"},{subscribe:"editingStart",emit:"onEditingStart"},{subscribe:"editorPrepared",emit:"onEditorPrepared"},{subscribe:"editorPreparing",emit:"onEditorPreparing"},{subscribe:"exporting",emit:"onExporting"},{subscribe:"focusedCellChanged",emit:"onFocusedCellChanged"},{subscribe:"focusedCellChanging",emit:"onFocusedCellChanging"},{subscribe:"focusedRowChanged",emit:"onFocusedRowChanged"},{subscribe:"focusedRowChanging",emit:"onFocusedRowChanging"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"initNewRow",emit:"onInitNewRow"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"rowClick",emit:"onRowClick"},{subscribe:"rowCollapsed",emit:"onRowCollapsed"},{subscribe:"rowCollapsing",emit:"onRowCollapsing"},{subscribe:"rowDblClick",emit:"onRowDblClick"},{subscribe:"rowExpanded",emit:"onRowExpanded"},{subscribe:"rowExpanding",emit:"onRowExpanding"},{subscribe:"rowInserted",emit:"onRowInserted"},{subscribe:"rowInserting",emit:"onRowInserting"},{subscribe:"rowPrepared",emit:"onRowPrepared"},{subscribe:"rowRemoved",emit:"onRowRemoved"},{subscribe:"rowRemoving",emit:"onRowRemoving"},{subscribe:"rowUpdated",emit:"onRowUpdated"},{subscribe:"rowUpdating",emit:"onRowUpdating"},{subscribe:"rowValidating",emit:"onRowValidating"},{subscribe:"saved",emit:"onSaved"},{subscribe:"saving",emit:"onSaving"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"toolbarPreparing",emit:"onToolbarPreparing"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowColumnReorderingChange"},{emit:"allowColumnResizingChange"},{emit:"autoNavigateToFocusedRowChange"},{emit:"cacheEnabledChange"},{emit:"cellHintEnabledChange"},{emit:"columnAutoWidthChange"},{emit:"columnChooserChange"},{emit:"columnFixingChange"},{emit:"columnHidingEnabledChange"},{emit:"columnMinWidthChange"},{emit:"columnResizingModeChange"},{emit:"columnsChange"},{emit:"columnWidthChange"},{emit:"customizeColumnsChange"},{emit:"dataRowTemplateChange"},{emit:"dataSourceChange"},{emit:"dateSerializationFormatChange"},{emit:"disabledChange"},{emit:"editingChange"},{emit:"elementAttrChange"},{emit:"errorRowEnabledChange"},{emit:"exportChange"},{emit:"filterBuilderChange"},{emit:"filterBuilderPopupChange"},{emit:"filterPanelChange"},{emit:"filterRowChange"},{emit:"filterSyncEnabledChange"},{emit:"filterValueChange"},{emit:"focusedColumnIndexChange"},{emit:"focusedRowEnabledChange"},{emit:"focusedRowIndexChange"},{emit:"focusedRowKeyChange"},{emit:"groupingChange"},{emit:"groupPanelChange"},{emit:"headerFilterChange"},{emit:"heightChange"},{emit:"highlightChangesChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"keyboardNavigationChange"},{emit:"keyExprChange"},{emit:"loadPanelChange"},{emit:"masterDetailChange"},{emit:"noDataTextChange"},{emit:"pagerChange"},{emit:"pagingChange"},{emit:"remoteOperationsChange"},{emit:"renderAsyncChange"},{emit:"repaintChangesOnlyChange"},{emit:"rowAlternationEnabledChange"},{emit:"rowDraggingChange"},{emit:"rowTemplateChange"},{emit:"rtlEnabledChange"},{emit:"scrollingChange"},{emit:"searchPanelChange"},{emit:"selectedRowKeysChange"},{emit:"selectionChange"},{emit:"selectionFilterChange"},{emit:"showBordersChange"},{emit:"showColumnHeadersChange"},{emit:"showColumnLinesChange"},{emit:"showRowLinesChange"},{emit:"sortByGroupSummaryInfoChange"},{emit:"sortingChange"},{emit:"stateStoringChange"},{emit:"summaryChange"},{emit:"syncLookupFilterValuesChange"},{emit:"tabIndexChange"},{emit:"toolbarChange"},{emit:"twoWayBindingEnabledChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wordWrapEnabledChange"}]),this._idh.setHost(this),Y.setHost(this)}_createInstance(a,c){return new aS(a,c)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(a){super.ngOnChanges(a),this.setupChanges("columns",a),this.setupChanges("dataSource",a),this.setupChanges("keyExpr",a),this.setupChanges("selectedRowKeys",a),this.setupChanges("sortByGroupSummaryInfo",a)}setupChanges(a,c){a in this._optionsToUpdate||this._idh.setup(a,c)}ngDoCheck(){this._idh.doCheck("columns"),this._idh.doCheck("dataSource"),this._idh.doCheck("keyExpr"),this._idh.doCheck("selectedRowKeys"),this._idh.doCheck("sortByGroupSummaryInfo"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(a,c){let g=this._idh.setupSingle(a,c),y=null!==this._idh.getChanges(a,c);(g||y)&&super._setOption(a,c)}static \u0275fac=function(c){return new(c||I)(S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(bc.zF),S.rXU(bc.jS),S.rXU(bc.$M),S.rXU(bc.fH),S.rXU(S.pJN),S.rXU(S.Agw))};static \u0275cmp=S.VBU({type:I,selectors:[["dx-data-grid"]],contentQueries:function(c,g,y){if(1&c&&(S.wni(y,xo.nj_,4),S.wni(y,xo.x$q,4)),2&c){let D;S.mGM(D=S.lsd())&&(g.columnsChildren=D),S.mGM(D=S.lsd())&&(g.sortByGroupSummaryInfoChildren=D)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowColumnReordering:"allowColumnReordering",allowColumnResizing:"allowColumnResizing",autoNavigateToFocusedRow:"autoNavigateToFocusedRow",cacheEnabled:"cacheEnabled",cellHintEnabled:"cellHintEnabled",columnAutoWidth:"columnAutoWidth",columnChooser:"columnChooser",columnFixing:"columnFixing",columnHidingEnabled:"columnHidingEnabled",columnMinWidth:"columnMinWidth",columnResizingMode:"columnResizingMode",columns:"columns",columnWidth:"columnWidth",customizeColumns:"customizeColumns",dataRowTemplate:"dataRowTemplate",dataSource:"dataSource",dateSerializationFormat:"dateSerializationFormat",disabled:"disabled",editing:"editing",elementAttr:"elementAttr",errorRowEnabled:"errorRowEnabled",export:"export",filterBuilder:"filterBuilder",filterBuilderPopup:"filterBuilderPopup",filterPanel:"filterPanel",filterRow:"filterRow",filterSyncEnabled:"filterSyncEnabled",filterValue:"filterValue",focusedColumnIndex:"focusedColumnIndex",focusedRowEnabled:"focusedRowEnabled",focusedRowIndex:"focusedRowIndex",focusedRowKey:"focusedRowKey",grouping:"grouping",groupPanel:"groupPanel",headerFilter:"headerFilter",height:"height",highlightChanges:"highlightChanges",hint:"hint",hoverStateEnabled:"hoverStateEnabled",keyboardNavigation:"keyboardNavigation",keyExpr:"keyExpr",loadPanel:"loadPanel",masterDetail:"masterDetail",noDataText:"noDataText",pager:"pager",paging:"paging",remoteOperations:"remoteOperations",renderAsync:"renderAsync",repaintChangesOnly:"repaintChangesOnly",rowAlternationEnabled:"rowAlternationEnabled",rowDragging:"rowDragging",rowTemplate:"rowTemplate",rtlEnabled:"rtlEnabled",scrolling:"scrolling",searchPanel:"searchPanel",selectedRowKeys:"selectedRowKeys",selection:"selection",selectionFilter:"selectionFilter",showBorders:"showBorders",showColumnHeaders:"showColumnHeaders",showColumnLines:"showColumnLines",showRowLines:"showRowLines",sortByGroupSummaryInfo:"sortByGroupSummaryInfo",sorting:"sorting",stateStoring:"stateStoring",summary:"summary",syncLookupFilterValues:"syncLookupFilterValues",tabIndex:"tabIndex",toolbar:"toolbar",twoWayBindingEnabled:"twoWayBindingEnabled",visible:"visible",width:"width",wordWrapEnabled:"wordWrapEnabled"},outputs:{onAdaptiveDetailRowPreparing:"onAdaptiveDetailRowPreparing",onCellClick:"onCellClick",onCellDblClick:"onCellDblClick",onCellHoverChanged:"onCellHoverChanged",onCellPrepared:"onCellPrepared",onContentReady:"onContentReady",onContextMenuPreparing:"onContextMenuPreparing",onDataErrorOccurred:"onDataErrorOccurred",onDisposing:"onDisposing",onEditCanceled:"onEditCanceled",onEditCanceling:"onEditCanceling",onEditingStart:"onEditingStart",onEditorPrepared:"onEditorPrepared",onEditorPreparing:"onEditorPreparing",onExporting:"onExporting",onFocusedCellChanged:"onFocusedCellChanged",onFocusedCellChanging:"onFocusedCellChanging",onFocusedRowChanged:"onFocusedRowChanged",onFocusedRowChanging:"onFocusedRowChanging",onInitialized:"onInitialized",onInitNewRow:"onInitNewRow",onKeyDown:"onKeyDown",onOptionChanged:"onOptionChanged",onRowClick:"onRowClick",onRowCollapsed:"onRowCollapsed",onRowCollapsing:"onRowCollapsing",onRowDblClick:"onRowDblClick",onRowExpanded:"onRowExpanded",onRowExpanding:"onRowExpanding",onRowInserted:"onRowInserted",onRowInserting:"onRowInserting",onRowPrepared:"onRowPrepared",onRowRemoved:"onRowRemoved",onRowRemoving:"onRowRemoving",onRowUpdated:"onRowUpdated",onRowUpdating:"onRowUpdating",onRowValidating:"onRowValidating",onSaved:"onSaved",onSaving:"onSaving",onSelectionChanged:"onSelectionChanged",onToolbarPreparing:"onToolbarPreparing",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowColumnReorderingChange:"allowColumnReorderingChange",allowColumnResizingChange:"allowColumnResizingChange",autoNavigateToFocusedRowChange:"autoNavigateToFocusedRowChange",cacheEnabledChange:"cacheEnabledChange",cellHintEnabledChange:"cellHintEnabledChange",columnAutoWidthChange:"columnAutoWidthChange",columnChooserChange:"columnChooserChange",columnFixingChange:"columnFixingChange",columnHidingEnabledChange:"columnHidingEnabledChange",columnMinWidthChange:"columnMinWidthChange",columnResizingModeChange:"columnResizingModeChange",columnsChange:"columnsChange",columnWidthChange:"columnWidthChange",customizeColumnsChange:"customizeColumnsChange",dataRowTemplateChange:"dataRowTemplateChange",dataSourceChange:"dataSourceChange",dateSerializationFormatChange:"dateSerializationFormatChange",disabledChange:"disabledChange",editingChange:"editingChange",elementAttrChange:"elementAttrChange",errorRowEnabledChange:"errorRowEnabledChange",exportChange:"exportChange",filterBuilderChange:"filterBuilderChange",filterBuilderPopupChange:"filterBuilderPopupChange",filterPanelChange:"filterPanelChange",filterRowChange:"filterRowChange",filterSyncEnabledChange:"filterSyncEnabledChange",filterValueChange:"filterValueChange",focusedColumnIndexChange:"focusedColumnIndexChange",focusedRowEnabledChange:"focusedRowEnabledChange",focusedRowIndexChange:"focusedRowIndexChange",focusedRowKeyChange:"focusedRowKeyChange",groupingChange:"groupingChange",groupPanelChange:"groupPanelChange",headerFilterChange:"headerFilterChange",heightChange:"heightChange",highlightChangesChange:"highlightChangesChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",keyboardNavigationChange:"keyboardNavigationChange",keyExprChange:"keyExprChange",loadPanelChange:"loadPanelChange",masterDetailChange:"masterDetailChange",noDataTextChange:"noDataTextChange",pagerChange:"pagerChange",pagingChange:"pagingChange",remoteOperationsChange:"remoteOperationsChange",renderAsyncChange:"renderAsyncChange",repaintChangesOnlyChange:"repaintChangesOnlyChange",rowAlternationEnabledChange:"rowAlternationEnabledChange",rowDraggingChange:"rowDraggingChange",rowTemplateChange:"rowTemplateChange",rtlEnabledChange:"rtlEnabledChange",scrollingChange:"scrollingChange",searchPanelChange:"searchPanelChange",selectedRowKeysChange:"selectedRowKeysChange",selectionChange:"selectionChange",selectionFilterChange:"selectionFilterChange",showBordersChange:"showBordersChange",showColumnHeadersChange:"showColumnHeadersChange",showColumnLinesChange:"showColumnLinesChange",showRowLinesChange:"showRowLinesChange",sortByGroupSummaryInfoChange:"sortByGroupSummaryInfoChange",sortingChange:"sortingChange",stateStoringChange:"stateStoringChange",summaryChange:"summaryChange",syncLookupFilterValuesChange:"syncLookupFilterValuesChange",tabIndexChange:"tabIndexChange",toolbarChange:"toolbarChange",twoWayBindingEnabledChange:"twoWayBindingEnabledChange",visibleChange:"visibleChange",widthChange:"widthChange",wordWrapEnabledChange:"wordWrapEnabledChange"},standalone:!1,features:[S.Jv_([bc.zF,bc.jS,bc.fH,bc.$M]),S.Vt3,S.OA$],decls:0,vars:0,template:function(c,g){},encapsulation:2})}return I})(),KC=(()=>{class I{static \u0275fac=function(c){return new(c||I)};static \u0275mod=S.$C({type:I});static \u0275inj=d.G2t({imports:[xo.nrj,xo.Bkf,xo.nwt,xo.hXw,xo.YGc,xo.gf0,xo.rvW,xo._zS,xo.U9o,xo.hyP,xo._RO,xo.YC7,xo.GIV,xo.X1G,xo.W6p,xo.Pxf,xo.BR_,xo.uE7,xo.$lK,xo.aJg,xo.GCl,xo.Sy5,xo.k61,xo.POb,xo.hUd,xo.HKo,xo.Ixj,xo.a6E,xo.YLo,xo.YaD,xo.eNx,xo.Tob,xo.$Ql,xo.isg,xo.uIe,xo.L0X,xo.MtA,xo.yA4,xo.oCB,xo.tWd,xo.zkV,xo.Sn2,xo.MBy,xo.qCh,xo.joz,xo.FOK,xo.x_w,xo.s5o,xo.Zac,xo.ZaD,xo.m1r,xo.Wnt,xo.rER,xo.XUe,xo.lkr,xo.WC8,xo.GQ,xo.kYc,xo.X6g,xo.WXx,xo.CWj,xo.Mru,xo.Hl$,xo.l4W,bc.p_,bc.xZ,xo.nrj,xo.Bkf,xo.nwt,xo.hXw,xo.YGc,xo.gf0,xo.rvW,xo._zS,xo.U9o,xo.hyP,xo._RO,xo.YC7,xo.GIV,xo.X1G,xo.W6p,xo.Pxf,xo.BR_,xo.uE7,xo.$lK,xo.aJg,xo.GCl,xo.Sy5,xo.k61,xo.POb,xo.hUd,xo.HKo,xo.Ixj,xo.a6E,xo.YLo,xo.YaD,xo.eNx,xo.Tob,xo.$Ql,xo.isg,xo.uIe,xo.L0X,xo.MtA,xo.yA4,xo.oCB,xo.tWd,xo.zkV,xo.Sn2,xo.MBy,xo.qCh,xo.joz,xo.FOK,xo.x_w,xo.s5o,xo.Zac,xo.ZaD,xo.m1r,xo.Wnt,xo.rER,xo.XUe,xo.lkr,xo.WC8,xo.GQ,xo.kYc,xo.X6g,xo.WXx,xo.CWj,xo.Mru,xo.Hl$,xo.l4W,bc.xZ]})}return I})()},353:(En,it,p)=>{"use strict";p.d(it,{X:()=>T});var S=p(3746),d=p(656),m=p(5732);let T=(()=>{var C;class e{constructor(w,P){this.location=w,this.scopeService=P,this.getEditorIconUrl=()=>`${this.logoUrl}/default/icon/editor.ico`,this.getPartnerLogoUrl=v=>(v=v||this.scope.currentScope.chapter)&&v.partner?.settings?.partnerLogoCache?`${this.logoUrl}/partner/${v.partnerId}.png?cache=${v.partner.settings.partnerLogoCache}`:`${this.logoUrl}/default/partner/0.png?cache=${this.scope.globalSettings.defaultLogoCache}`,this.getNetworkIconSmallUrl=v=>(v=v||this.scope.currentScope.network)&&v.settings?.networkIconSmallCache?`${this.logoUrl}/${v.slug}/icon/small.ico`:`${this.logoUrl}/default/icon/small.ico`,this.getNetworkIconBigUrl=v=>(v=v||this.scope.currentScope.network)&&v.settings?.networkIconBigCache?`${this.logoUrl}/${v.slug}/icon/big.png?cache=${v.settings.networkIconBigCache}`:`${this.logoUrl}/default/icon/big.png?cache=${this.scope.globalSettings.defaultLogoCache}`,this.getNetworkLogoUrl=v=>(v=v||this.scope.currentScope.network)&&v.settings?.networkLogoCache?`${this.logoUrl}/${v.slug}.png?cache=${v.settings.networkLogoCache}`:`${this.logoUrl}/default/0.png?cache=${this.scope.globalSettings.defaultLogoCache}`,this.getNetworkLogoDarkUrl=v=>(v=v||this.scope.currentScope.network)?v.settings?.networkLogoDarkCache?`${this.logoUrl}/${v.slug}-dark.png?cache=${v.settings.networkLogoDarkCache}`:v.settings?.networkLogoCache?`${this.logoUrl}/${v.slug}.png?cache=${v.settings.networkLogoCache}`:`${this.logoUrl}/default/0-dark.png?cache=${this.scope.globalSettings.defaultLogoCache}`:`${this.logoUrl}/default/0-dark.png?cache=${this.scope.globalSettings.defaultLogoCache}`,this.getChapterLogoUrl=v=>(v=v||this.scope.currentScope.chapter)&&v.settings?.chapterLogoCache?`${this.logoUrl}/chapter/logo/${v.slug}?cache=${v.settings.chapterLogoCache}`:`${this.logoUrl}/default/0.png?cache=${this.scope.globalSettings.defaultLogoCache}`,this.getChapterLogoDarkUrl=v=>(v=v||this.scope.currentScope.chapter)?v.settings?.chapterLogoDarkCache?`${this.logoUrl}/chapter/logo/${v.slug}-dark?cache=${v.settings.chapterLogoDarkCache}`:v.settings?.chapterLogoCache?`${this.logoUrl}/chapter/logo/${v.slug}?cache=${v.settings.chapterLogoCache}`:`${this.logoUrl}/default/0-dark.png?cache=${this.scope.globalSettings.defaultLogoDarkCache}`:`${this.logoUrl}/default/0-dark.png?cache=${this.scope.globalSettings.defaultLogoDarkCache}`,this.getChapterPictureUrl=v=>(v=v||this.scope.currentScope.chapter)&&v.settings?.chapterPictureCache?`${this.logoUrl}/chapter/picture/${v.slug}?cache=${v.settings.chapterPictureCache}`:`${this.logoUrl}/default/chapter/0.png?cache=${this.scope.globalSettings.defaultLogoCache}`,this.getChapterEventPictureUrl=v=>(v=v||this.scope.currentScope.chapter)&&v.settings?.configurations?.chapterEventPictureCache?`${this.logoUrl}/chapter/event/${v.slug}?cache=${v.settings.configurations.chapterEventPictureCache}`:`${this.logoUrl}/default/event/1.png?cache=${this.scope.globalSettings.defaultLogoCache}`,this.hasChapterLogo=v=>(v=v||this.scope.currentScope.chapter,!!v.settings?.chapterLogoCache),this.hasChapterLogoDark=v=>this.hasChapterLogo(v)||!!v.settings?.chapterLogoDarkCache,this.getLogoContainerUrl=()=>this.logoUrl,this.scope=this.scopeService.getScope(),this.logoUrl=`${this.scope.globalSettings.blobStorageCdnUrl}/${this.scope.globalSettings.blobStorageContainerNameLogo}`}static#e=C=()=>(this.\u0275fac=function(P){return new(P||e)(d.KVO(m.aZ),d.KVO(S.A))},this.\u0275prov=d.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}))}return C(),e})()},357:(En,it,p)=>{"use strict";p.d(it,{A:()=>U});var S=p(1973),d=p(5704),m=p(3090),T=p(1830),C=p(612);const j="dx-progressbar-animating-segment",F=C.A.inherit({_getDefaultOptions(){return(0,m.X)(this.callBase(),{value:0,statusFormat:Z=>`Progress: ${Math.round(100*Z)}%`,showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules(){return this.callBase().concat([{device:Z=>"android"===Z.platform,options:{_animatingSegmentCount:2}}])},_initMarkup(){this._renderStatus(),this._createCompleteAction(),this.callBase(),this.$element().addClass("dx-progressbar"),this._$wrapper.addClass("dx-progressbar-wrapper"),this._$bar.addClass("dx-progressbar-container"),this.setAria("role","progressbar"),(0,d.A)("<div>").addClass("dx-progressbar-range-container").appendTo(this._$wrapper).append(this._$bar),this._$range.addClass("dx-progressbar-range"),this._toggleStatus(this.option("showStatus"))},_useTemplates:()=>!1,_createCompleteAction(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus(){this._$status=(0,d.A)("<div>").addClass("dx-progressbar-status")},_renderIndeterminateState(){this._$segmentContainer=(0,d.A)("<div>").addClass("dx-progressbar-animating-container");const Z=this.option("_animatingSegmentCount");for(let A=0;A<Z;A++)(0,d.A)("<div>").addClass(j).addClass(`${j}-${A+1}`).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus(Z){const A=this.option("statusPosition").split(" ");Z?"top"===A[0]||"left"===A[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass(){const A=this.option("statusPosition").split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");let M=`dx-position-${A[0]}`;A[1]&&(M+=`-${A[1]}`),this._$wrapper.addClass(M)},_toggleIndeterminateState(Z){Z?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue(){const Z=this.option("value"),A=this.option("max");Z||0===Z?(this._$segmentContainer&&this._toggleIndeterminateState(!1),Z===A&&this._completeAction(),this.callBase(),this._setStatus()):this._toggleIndeterminateState(!0)},_setStatus(){let Z=this.option("statusFormat");Z=(0,T.Tn)(Z)?Z.bind(this):function(M){return M};const A=Z(this._currentRatio,this.option("value"));this._$status.text(A)},_dispose(){this._$status.remove(),this.callBase()},_optionChanged(Z){switch(Z.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(Z.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(Z)}}});(0,S.A)("dxProgressBar",F);const U=F},402:(En,it,p)=>{"use strict";p.d(it,{Kr:()=>e,in:()=>k,nq:()=>C});var S=p(5704),d=p(6054);const m=function(w,P){if(!function T(w){const P=(0,S.A)(w);return P.is(":visible")&&"hidden"!==P.css("visibility")&&"hidden"!==P.parents().css("visibility")}(w))return!1;const v=w.nodeName.toLowerCase(),x=!isNaN(P),b=w.disabled;let F;return F=/^(input|select|textarea|button|object|iframe)$/.test(v)||w.isContentEditable?!b:"a"===v&&w.href||x,F},C=function(w,P){return m(P,(0,S.A)(P).attr("tabIndex"))},e=function(w,P){const v=(0,S.A)(P).attr("tabIndex");return(isNaN(v)||v>=0)&&m(P,v)},k=function(w){const P=(0,S.A)(w).get(0);return d.A.getActiveElement(P)===P}},444:(En,it,p)=>{"use strict";p.d(it,{x:()=>P});var S=p(656),d=p(4303),m=p(2148),T=p(8832),C=p(3349),e=p(8914);const k={provide:T.kq,useExisting:(0,S.Rfq)(()=>w),multi:!0};let w=(()=>{class v extends C.ic{_watcherHelper;_idh;instance=null;get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(b){this._setOption("acceptCustomValue",b)}get accessKey(){return this._getOption("accessKey")}set accessKey(b){this._setOption("accessKey",b)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(b){this._setOption("activeStateEnabled",b)}get applyButtonText(){return this._getOption("applyButtonText")}set applyButtonText(b){this._setOption("applyButtonText",b)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(b){this._setOption("applyValueMode",b)}get buttons(){return this._getOption("buttons")}set buttons(b){this._setOption("buttons",b)}get cancelButtonText(){return this._getOption("cancelButtonText")}set cancelButtonText(b){this._setOption("cancelButtonText",b)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(b){this._setOption("deferRendering",b)}get disabled(){return this._getOption("disabled")}set disabled(b){this._setOption("disabled",b)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(b){this._setOption("dropDownButtonTemplate",b)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(b){this._setOption("dropDownOptions",b)}get editAlphaChannel(){return this._getOption("editAlphaChannel")}set editAlphaChannel(b){this._setOption("editAlphaChannel",b)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(b){this._setOption("elementAttr",b)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(b){this._setOption("fieldTemplate",b)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(b){this._setOption("focusStateEnabled",b)}get height(){return this._getOption("height")}set height(b){this._setOption("height",b)}get hint(){return this._getOption("hint")}set hint(b){this._setOption("hint",b)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(b){this._setOption("hoverStateEnabled",b)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(b){this._setOption("inputAttr",b)}get isDirty(){return this._getOption("isDirty")}set isDirty(b){this._setOption("isDirty",b)}get isValid(){return this._getOption("isValid")}set isValid(b){this._setOption("isValid",b)}get keyStep(){return this._getOption("keyStep")}set keyStep(b){this._setOption("keyStep",b)}get label(){return this._getOption("label")}set label(b){this._setOption("label",b)}get labelMode(){return this._getOption("labelMode")}set labelMode(b){this._setOption("labelMode",b)}get name(){return this._getOption("name")}set name(b){this._setOption("name",b)}get opened(){return this._getOption("opened")}set opened(b){this._setOption("opened",b)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(b){this._setOption("openOnFieldClick",b)}get placeholder(){return this._getOption("placeholder")}set placeholder(b){this._setOption("placeholder",b)}get readOnly(){return this._getOption("readOnly")}set readOnly(b){this._setOption("readOnly",b)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(b){this._setOption("rtlEnabled",b)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(b){this._setOption("showClearButton",b)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(b){this._setOption("showDropDownButton",b)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(b){this._setOption("stylingMode",b)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(b){this._setOption("tabIndex",b)}get text(){return this._getOption("text")}set text(b){this._setOption("text",b)}get validationError(){return this._getOption("validationError")}set validationError(b){this._setOption("validationError",b)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(b){this._setOption("validationErrors",b)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(b){this._setOption("validationMessageMode",b)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(b){this._setOption("validationMessagePosition",b)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(b){this._setOption("validationStatus",b)}get value(){return this._getOption("value")}set value(b){this._setOption("value",b)}get visible(){return this._getOption("visible")}set visible(b){this._setOption("visible",b)}get width(){return this._getOption("width")}set width(b){this._setOption("width",b)}onChange;onClosed;onCopy;onCut;onDisposing;onEnterKey;onFocusIn;onFocusOut;onInitialized;onInput;onKeyDown;onKeyUp;onOpened;onOptionChanged;onPaste;onValueChanged;acceptCustomValueChange;accessKeyChange;activeStateEnabledChange;applyButtonTextChange;applyValueModeChange;buttonsChange;cancelButtonTextChange;deferRenderingChange;disabledChange;dropDownButtonTemplateChange;dropDownOptionsChange;editAlphaChannelChange;elementAttrChange;fieldTemplateChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;inputAttrChange;isDirtyChange;isValidChange;keyStepChange;labelChange;labelModeChange;nameChange;openedChange;openOnFieldClickChange;placeholderChange;readOnlyChange;rtlEnabledChange;showClearButtonChange;showDropDownButtonChange;stylingModeChange;tabIndexChange;textChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;visibleChange;widthChange;onBlur;change(b){}touched=b=>{};get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(b){this.setChildren("buttons",b)}constructor(b,B,j,F,X,U,Z,A){super(b,B,j,F,Z,A),this._watcherHelper=F,this._idh=X,this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"applyButtonTextChange"},{emit:"applyValueModeChange"},{emit:"buttonsChange"},{emit:"cancelButtonTextChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"editAlphaChannelChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"keyStepChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"nameChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),U.setHost(this)}_createInstance(b,B){return new m.A(b,B)}writeValue(b){this.eventHelper.lockedValueChangeEvent=!0,this.value=b,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(b){this.disabled=b}registerOnChange(b){this.change=b}registerOnTouched(b){this.touched=b}_createWidget(b){super._createWidget(b),this.instance.on("focusOut",B=>{this.eventHelper.fireNgEvent("onBlur",[B])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(b){super.ngOnChanges(b),this.setupChanges("buttons",b),this.setupChanges("validationErrors",b)}setupChanges(b,B){b in this._optionsToUpdate||this._idh.setup(b,B)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(b,B){let j=this._idh.setupSingle(b,B),F=null!==this._idh.getChanges(b,B);(j||F)&&super._setOption(b,B)}static \u0275fac=function(B){return new(B||v)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(C.zF),d.rXU(C.jS),d.rXU(C.$M),d.rXU(C.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:v,selectors:[["dx-color-box"]],contentQueries:function(B,j,F){if(1&B&&d.wni(F,e.BrI,4),2&B){let X;d.mGM(X=d.lsd())&&(j.buttonsChildren=X)}},hostBindings:function(B,j){1&B&&d.bIt("valueChange",function(X){return j.change(X)})("onBlur",function(X){return j.touched(X)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",applyButtonText:"applyButtonText",applyValueMode:"applyValueMode",buttons:"buttons",cancelButtonText:"cancelButtonText",deferRendering:"deferRendering",disabled:"disabled",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",editAlphaChannel:"editAlphaChannel",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isDirty:"isDirty",isValid:"isValid",keyStep:"keyStep",label:"label",labelMode:"labelMode",name:"name",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onChange:"onChange",onClosed:"onClosed",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",applyButtonTextChange:"applyButtonTextChange",applyValueModeChange:"applyValueModeChange",buttonsChange:"buttonsChange",cancelButtonTextChange:"cancelButtonTextChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",editAlphaChannelChange:"editAlphaChannelChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",keyStepChange:"keyStepChange",labelChange:"labelChange",labelModeChange:"labelModeChange",nameChange:"nameChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[d.Jv_([C.zF,C.jS,k,C.fH,C.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(B,j){},encapsulation:2})}return v})(),P=(()=>{class v{static \u0275fac=function(B){return new(B||v)};static \u0275mod=d.$C({type:v});static \u0275inj=S.G2t({imports:[e.GIV,e.u4t,e.df_,e.YLo,e.YaD,e.eNx,e.Bkf,e.nwt,e.hXw,e.YGc,e.gf0,e.rvW,e.Tob,e.$Ql,e.isg,C.p_,C.xZ,e.GIV,e.u4t,e.df_,e.YLo,e.YaD,e.eNx,e.Bkf,e.nwt,e.hXw,e.YGc,e.gf0,e.rvW,e.Tob,e.$Ql,e.isg,C.xZ]})}return v})()},471:(En,it,p)=>{"use strict";p.d(it,{c:()=>k,t:()=>e});var S=p(656),d=p(4303),m=p(1757),T=p(3349),C=p(8914);let e=(()=>{class w extends T.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(v){this._setOption("accessKey",v)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(v){this._setOption("activeStateEnabled",v)}get animationEnabled(){return this._getOption("animationEnabled")}set animationEnabled(v){this._setOption("animationEnabled",v)}get collapseIcon(){return this._getOption("collapseIcon")}set collapseIcon(v){this._setOption("collapseIcon",v)}get createChildren(){return this._getOption("createChildren")}set createChildren(v){this._setOption("createChildren",v)}get dataSource(){return this._getOption("dataSource")}set dataSource(v){this._setOption("dataSource",v)}get dataStructure(){return this._getOption("dataStructure")}set dataStructure(v){this._setOption("dataStructure",v)}get disabled(){return this._getOption("disabled")}set disabled(v){this._setOption("disabled",v)}get disabledExpr(){return this._getOption("disabledExpr")}set disabledExpr(v){this._setOption("disabledExpr",v)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(v){this._setOption("displayExpr",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get expandAllEnabled(){return this._getOption("expandAllEnabled")}set expandAllEnabled(v){this._setOption("expandAllEnabled",v)}get expandedExpr(){return this._getOption("expandedExpr")}set expandedExpr(v){this._setOption("expandedExpr",v)}get expandEvent(){return this._getOption("expandEvent")}set expandEvent(v){this._setOption("expandEvent",v)}get expandIcon(){return this._getOption("expandIcon")}set expandIcon(v){this._setOption("expandIcon",v)}get expandNodesRecursive(){return this._getOption("expandNodesRecursive")}set expandNodesRecursive(v){this._setOption("expandNodesRecursive",v)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(v){this._setOption("focusStateEnabled",v)}get hasItemsExpr(){return this._getOption("hasItemsExpr")}set hasItemsExpr(v){this._setOption("hasItemsExpr",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get hint(){return this._getOption("hint")}set hint(v){this._setOption("hint",v)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(v){this._setOption("hoverStateEnabled",v)}get itemHoldTimeout(){return this._getOption("itemHoldTimeout")}set itemHoldTimeout(v){this._setOption("itemHoldTimeout",v)}get items(){return this._getOption("items")}set items(v){this._setOption("items",v)}get itemsExpr(){return this._getOption("itemsExpr")}set itemsExpr(v){this._setOption("itemsExpr",v)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(v){this._setOption("itemTemplate",v)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(v){this._setOption("keyExpr",v)}get noDataText(){return this._getOption("noDataText")}set noDataText(v){this._setOption("noDataText",v)}get parentIdExpr(){return this._getOption("parentIdExpr")}set parentIdExpr(v){this._setOption("parentIdExpr",v)}get rootValue(){return this._getOption("rootValue")}set rootValue(v){this._setOption("rootValue",v)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(v){this._setOption("rtlEnabled",v)}get scrollDirection(){return this._getOption("scrollDirection")}set scrollDirection(v){this._setOption("scrollDirection",v)}get searchEditorOptions(){return this._getOption("searchEditorOptions")}set searchEditorOptions(v){this._setOption("searchEditorOptions",v)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(v){this._setOption("searchEnabled",v)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(v){this._setOption("searchExpr",v)}get searchMode(){return this._getOption("searchMode")}set searchMode(v){this._setOption("searchMode",v)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(v){this._setOption("searchTimeout",v)}get searchValue(){return this._getOption("searchValue")}set searchValue(v){this._setOption("searchValue",v)}get selectAllText(){return this._getOption("selectAllText")}set selectAllText(v){this._setOption("selectAllText",v)}get selectByClick(){return this._getOption("selectByClick")}set selectByClick(v){this._setOption("selectByClick",v)}get selectedExpr(){return this._getOption("selectedExpr")}set selectedExpr(v){this._setOption("selectedExpr",v)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(v){this._setOption("selectionMode",v)}get selectNodesRecursive(){return this._getOption("selectNodesRecursive")}set selectNodesRecursive(v){this._setOption("selectNodesRecursive",v)}get showCheckBoxesMode(){return this._getOption("showCheckBoxesMode")}set showCheckBoxesMode(v){this._setOption("showCheckBoxesMode",v)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(v){this._setOption("tabIndex",v)}get useNativeScrolling(){return this._getOption("useNativeScrolling")}set useNativeScrolling(v){this._setOption("useNativeScrolling",v)}get virtualModeEnabled(){return this._getOption("virtualModeEnabled")}set virtualModeEnabled(v){this._setOption("virtualModeEnabled",v)}get visible(){return this._getOption("visible")}set visible(v){this._setOption("visible",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}onContentReady;onDisposing;onInitialized;onItemClick;onItemCollapsed;onItemContextMenu;onItemExpanded;onItemHold;onItemRendered;onItemSelectionChanged;onOptionChanged;onSelectAllValueChanged;onSelectionChanged;accessKeyChange;activeStateEnabledChange;animationEnabledChange;collapseIconChange;createChildrenChange;dataSourceChange;dataStructureChange;disabledChange;disabledExprChange;displayExprChange;elementAttrChange;expandAllEnabledChange;expandedExprChange;expandEventChange;expandIconChange;expandNodesRecursiveChange;focusStateEnabledChange;hasItemsExprChange;heightChange;hintChange;hoverStateEnabledChange;itemHoldTimeoutChange;itemsChange;itemsExprChange;itemTemplateChange;keyExprChange;noDataTextChange;parentIdExprChange;rootValueChange;rtlEnabledChange;scrollDirectionChange;searchEditorOptionsChange;searchEnabledChange;searchExprChange;searchModeChange;searchTimeoutChange;searchValueChange;selectAllTextChange;selectByClickChange;selectedExprChange;selectionModeChange;selectNodesRecursiveChange;showCheckBoxesModeChange;tabIndexChange;useNativeScrollingChange;virtualModeEnabledChange;visibleChange;widthChange;get itemsChildren(){return this._getOption("items")}set itemsChildren(v){this.setChildren("items",v)}constructor(v,x,b,B,j,F,X,U){super(v,x,b,B,X,U),this._watcherHelper=B,this._idh=j,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemCollapsed",emit:"onItemCollapsed"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemExpanded",emit:"onItemExpanded"},{subscribe:"itemHold",emit:"onItemHold"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"itemSelectionChanged",emit:"onItemSelectionChanged"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectAllValueChanged",emit:"onSelectAllValueChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"animationEnabledChange"},{emit:"collapseIconChange"},{emit:"createChildrenChange"},{emit:"dataSourceChange"},{emit:"dataStructureChange"},{emit:"disabledChange"},{emit:"disabledExprChange"},{emit:"displayExprChange"},{emit:"elementAttrChange"},{emit:"expandAllEnabledChange"},{emit:"expandedExprChange"},{emit:"expandEventChange"},{emit:"expandIconChange"},{emit:"expandNodesRecursiveChange"},{emit:"focusStateEnabledChange"},{emit:"hasItemsExprChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemsExprChange"},{emit:"itemTemplateChange"},{emit:"keyExprChange"},{emit:"noDataTextChange"},{emit:"parentIdExprChange"},{emit:"rootValueChange"},{emit:"rtlEnabledChange"},{emit:"scrollDirectionChange"},{emit:"searchEditorOptionsChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"searchValueChange"},{emit:"selectAllTextChange"},{emit:"selectByClickChange"},{emit:"selectedExprChange"},{emit:"selectionModeChange"},{emit:"selectNodesRecursiveChange"},{emit:"showCheckBoxesModeChange"},{emit:"tabIndexChange"},{emit:"useNativeScrollingChange"},{emit:"virtualModeEnabledChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),F.setHost(this)}_createInstance(v,x){return new m.A(v,x)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(v){super.ngOnChanges(v),this.setupChanges("dataSource",v),this.setupChanges("items",v),this.setupChanges("searchExpr",v)}setupChanges(v,x){v in this._optionsToUpdate||this._idh.setup(v,x)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(v,x){let b=this._idh.setupSingle(v,x),B=null!==this._idh.getChanges(v,x);(b||B)&&super._setOption(v,x)}static \u0275fac=function(x){return new(x||w)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.$M),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:w,selectors:[["dx-tree-view"]],contentQueries:function(x,b,B){if(1&x&&d.wni(B,C.CVf,4),2&x){let j;d.mGM(j=d.lsd())&&(b.itemsChildren=j)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",animationEnabled:"animationEnabled",collapseIcon:"collapseIcon",createChildren:"createChildren",dataSource:"dataSource",dataStructure:"dataStructure",disabled:"disabled",disabledExpr:"disabledExpr",displayExpr:"displayExpr",elementAttr:"elementAttr",expandAllEnabled:"expandAllEnabled",expandedExpr:"expandedExpr",expandEvent:"expandEvent",expandIcon:"expandIcon",expandNodesRecursive:"expandNodesRecursive",focusStateEnabled:"focusStateEnabled",hasItemsExpr:"hasItemsExpr",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",itemHoldTimeout:"itemHoldTimeout",items:"items",itemsExpr:"itemsExpr",itemTemplate:"itemTemplate",keyExpr:"keyExpr",noDataText:"noDataText",parentIdExpr:"parentIdExpr",rootValue:"rootValue",rtlEnabled:"rtlEnabled",scrollDirection:"scrollDirection",searchEditorOptions:"searchEditorOptions",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",searchValue:"searchValue",selectAllText:"selectAllText",selectByClick:"selectByClick",selectedExpr:"selectedExpr",selectionMode:"selectionMode",selectNodesRecursive:"selectNodesRecursive",showCheckBoxesMode:"showCheckBoxesMode",tabIndex:"tabIndex",useNativeScrolling:"useNativeScrolling",virtualModeEnabled:"virtualModeEnabled",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemCollapsed:"onItemCollapsed",onItemContextMenu:"onItemContextMenu",onItemExpanded:"onItemExpanded",onItemHold:"onItemHold",onItemRendered:"onItemRendered",onItemSelectionChanged:"onItemSelectionChanged",onOptionChanged:"onOptionChanged",onSelectAllValueChanged:"onSelectAllValueChanged",onSelectionChanged:"onSelectionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",animationEnabledChange:"animationEnabledChange",collapseIconChange:"collapseIconChange",createChildrenChange:"createChildrenChange",dataSourceChange:"dataSourceChange",dataStructureChange:"dataStructureChange",disabledChange:"disabledChange",disabledExprChange:"disabledExprChange",displayExprChange:"displayExprChange",elementAttrChange:"elementAttrChange",expandAllEnabledChange:"expandAllEnabledChange",expandedExprChange:"expandedExprChange",expandEventChange:"expandEventChange",expandIconChange:"expandIconChange",expandNodesRecursiveChange:"expandNodesRecursiveChange",focusStateEnabledChange:"focusStateEnabledChange",hasItemsExprChange:"hasItemsExprChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",itemHoldTimeoutChange:"itemHoldTimeoutChange",itemsChange:"itemsChange",itemsExprChange:"itemsExprChange",itemTemplateChange:"itemTemplateChange",keyExprChange:"keyExprChange",noDataTextChange:"noDataTextChange",parentIdExprChange:"parentIdExprChange",rootValueChange:"rootValueChange",rtlEnabledChange:"rtlEnabledChange",scrollDirectionChange:"scrollDirectionChange",searchEditorOptionsChange:"searchEditorOptionsChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",searchValueChange:"searchValueChange",selectAllTextChange:"selectAllTextChange",selectByClickChange:"selectByClickChange",selectedExprChange:"selectedExprChange",selectionModeChange:"selectionModeChange",selectNodesRecursiveChange:"selectNodesRecursiveChange",showCheckBoxesModeChange:"showCheckBoxesModeChange",tabIndexChange:"tabIndexChange",useNativeScrollingChange:"useNativeScrollingChange",virtualModeEnabledChange:"virtualModeEnabledChange",visibleChange:"visibleChange",widthChange:"widthChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH,T.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(x,b){},encapsulation:2})}return w})(),k=(()=>{class w{static \u0275fac=function(x){return new(x||w)};static \u0275mod=d.$C({type:w});static \u0275inj=S.G2t({imports:[C.POb,C.B9H,C.GIV,C.u4t,T.p_,T.xZ,C.POb,C.B9H,C.GIV,C.u4t,T.xZ]})}return w})()},597:(En,it,p)=>{"use strict";p.d(it,{A:()=>A});var S=p(1973),d=p(8569),m=p(5397),T=p(2925),C=p(8684),e=p(6021),k=p(3090),w=p(2660),P=p(127),v=p(5811);const B=p(3538).A.inherit({ctor(M,H){this.editor=M,this.validator=H,this.validationRequestsCallbacks=[];const J=R=>{this.validationRequestsCallbacks.forEach(L=>L(R))};M.validationRequest.add(J),M.on("disposing",()=>{M.validationRequest.remove(J)})},getValue(){return this.editor.option("value")},getCurrentValidationError(){return this.editor.option("validationError")},bypass(){return this.editor.option("disabled")},applyValidationResults(M){this.editor.option({validationErrors:M.brokenRules,validationStatus:M.status})},reset(){this.editor.clear()},focus(){this.editor.focus()}}),Z=d.A.inherit({_initOptions(M){this.callBase.apply(this,arguments),this.option(v.A.initValidationOptions(M))},_getDefaultOptions(){return(0,k.X)(this.callBase(),{validationRules:[]})},_init(){this.callBase(),this._initGroupRegistration(),this.focused=(0,C.A)(),this._initAdapter(),this._validationInfo={result:null,deferred:null,skipValidation:!1}},_initGroupRegistration(){const M=this._findGroup();this._groupWasInit||this.on("disposing",H=>{v.A.removeRegisteredValidator(H.component._validationGroup,H.component)}),(!this._groupWasInit||this._validationGroup!==M)&&(v.A.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=M,v.A.registerValidatorInGroup(M,this))},_setOptionsByReference(){this.callBase(),(0,k.X)(this._optionsByReference,{validationGroup:!0})},_getEditor(){const M=this.$element()[0];return(0,m.p)(M,"dx-validation-target")},_initAdapter(){const M=this._getEditor();let H=this.option("adapter");if(!H){if(M)return H=new B(M,this),H.validationRequestsCallbacks.push(R=>{this._validationInfo.skipValidation||this.validate(R)}),void this.option("adapter",H);throw P.A.Error("E0120")}const J=H.validationRequestsCallbacks;J&&J.push(R=>{this.validate(R)})},_toggleRTLDirection(M){var H;const J=(null===(H=this.option("adapter"))||void 0===H||null===(H=H.editor)||void 0===H?void 0:H.option("rtlEnabled"))??M;this.callBase(J)},_initMarkup(){this.$element().addClass("dx-validator"),this.callBase()},_render(){this.callBase(),this._toggleAccessibilityAttributes()},_toggleAccessibilityAttributes(){const M=this._getEditor();if(M){const J=(this.option("validationRules")||[]).some(R=>{let{type:L}=R;return"required"===L})||null;M.isInitialized()&&M.setAria("required",J),M.option("_onMarkupRendered",()=>{M.setAria("required",J)})}},_visibilityChanged(M){M&&this._initGroupRegistration()},_optionChanged(M){switch(M.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),this._toggleAccessibilityAttributes(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;case"isValid":case"validationStatus":this.option(v.A.synchronizeValidationOptions(M,this.option()));break;default:this.callBase(M)}},_getValidationRules(){return this._validationRules||(this._validationRules=(0,w.Tj)(this.option("validationRules"),(M,H)=>(0,k.X)({},M,{validator:this,index:H}))),this._validationRules},_findGroup(){const M=this.$element();return this.option("validationGroup")||v.A.findGroup(M,this._modelByElement(M))},_resetValidationRules(){delete this._validationRules},validate(M){const H=this.option("adapter"),J=this.option("name"),R=H.bypass&&H.bypass(),L=M&&void 0!==M.value?M.value:H.getValue(),G=H.getCurrentValidationError&&H.getCurrentValidationError(),Q=this._getValidationRules(),z=this._validationInfo&&this._validationInfo.result;if(z&&"pending"===z.status&&z.value===L)return(0,k.X)({},z);let K;return R?K={isValid:!0,status:"valid"}:G&&G.editorSpecific?(G.validator=this,K={isValid:!1,status:"invalid",brokenRule:G,brokenRules:[G]}):K=v.A.validate(L,Q,J),K.id=(new T.A).toString(),this._applyValidationResult(K,H),K.complete&&K.complete.then(ee=>{ee.id===this._validationInfo.result.id&&this._applyValidationResult(ee,H)}),(0,k.X)({},this._validationInfo.result)},reset(){const M=this.option("adapter");this._validationInfo.skipValidation=!0,M.reset(),this._validationInfo.skipValidation=!1,this._resetValidationRules(),this._applyValidationResult({id:null,isValid:!0,brokenRule:null,brokenRules:null,pendingRules:null,status:"valid",complete:null},M)},_updateValidationResult(M){if(this._validationInfo.result&&this._validationInfo.result.id===M.id)for(const H in M)"id"!==H&&"complete"!==H&&(this._validationInfo.result[H]=M[H]);else this._validationInfo.result=(0,k.X)({},M,{complete:this._validationInfo.deferred&&this._validationInfo.result.complete})},_applyValidationResult(M,H){const J=this._createActionByOption("onValidated",{excludeValidators:["readOnly"]});if(M.validator=this,this._updateValidationResult(M),H.applyValidationResults&&H.applyValidationResults(this._validationInfo.result),this.option({validationStatus:this._validationInfo.result.status}),"pending"===this._validationInfo.result.status)return this._validationInfo.deferred||(this._validationInfo.deferred=(0,e.cY)(),this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this._eventsStrategy.fireEvent("validating",[this._validationInfo.result]);"pending"!==this._validationInfo.result.status&&(J(M),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(M),this._validationInfo.deferred=null))},focus(){const M=this.option("adapter");M&&M.focus&&M.focus()},_useTemplates:()=>!1});(0,S.A)("dxValidator",Z);const A=Z},608:(En,it,p)=>{"use strict";p.d(it,{u:()=>P,x:()=>w});var S=p(6110),d=p(4356);const m=(0,S.Vd)()?(0,S.zk)():{};let C=function(v){return setTimeout(v,16.666666666666668)},e=function(v){clearTimeout(v)};const k=(0,d.A)(function(){const v=m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||m.msRequestAnimationFrame,x=m.cancelAnimationFrame||m.webkitCancelAnimationFrame||m.mozCancelAnimationFrame||m.oCancelAnimationFrame||m.msCancelAnimationFrame;v&&x&&(C=v,e=x)});function w(){return k(),C.apply(m,arguments)}function P(){k(),e.apply(m,arguments)}},612:(En,it,p)=>{"use strict";p.d(it,{A:()=>b});var S=p(2583),d=p(1973),m=p(5704),T=p(3090),C=p(6110);const x=p(6620).A.inherit({_getDefaultOptions(){return(0,T.X)(this.callBase(),{min:0,max:100,value:0})},_initMarkup(){this.$element().addClass("dx-trackbar"),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper(){this._$wrapper=(0,m.A)("<div>").addClass("dx-trackbar-wrapper").appendTo(this.$element())},_renderContainer(){this._$bar=(0,m.A)("<div>").addClass("dx-trackbar-container").appendTo(this._$wrapper)},_renderRange(){this._$range=(0,m.A)("<div>").addClass("dx-trackbar-range").appendTo(this._$bar)},_renderValue(){const B=this.option("value"),j=this.option("min"),F=this.option("max");if(j>F)return;if(B<j)return this.option("value",j),void(this._currentRatio=0);if(B>F)return this.option("value",F),void(this._currentRatio=1);const X=j===F?0:(B-j)/(F-j);!this._needPreventAnimation&&this._setRangeStyles({width:100*X+"%"}),this.setAria({valuemin:this.option("min"),valuemax:F,valuenow:B}),this._currentRatio=X},_rangeStylesConfig(){return{width:100*this._currentRatio+"%"}},_setRangeStyles(B){S.A.stop(this._$range),B?this._needPreventAnimation||!(0,C.Vd)()||S.A.animate(this._$range,{type:"custom",duration:100,to:B}):this._$range.css({width:0})},_optionChanged(B){switch(B.name){case"value":this._renderValue(),this.callBase(B);break;case"max":case"min":this._renderValue();break;default:this.callBase(B)}},_dispose(){S.A.stop(this._$range),this.callBase()}});(0,d.A)("dxTrackBar",x);const b=x},625:(En,it,p)=>{"use strict";p.d(it,{A:()=>Q});var S=p(1973),d=p(5704),m=p(3090),T=p(6946),C=p(2660),e=p(8649),k=p(1830),w=p(6110),P=p(4481),v=p(5107);const X={row:"minWidth",col:"minHeight"},U={row:"maxWidth",col:"maxHeight"},Z={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},A={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},M={row:"row",col:"column"},H=(z,K,ee)=>{if(ee=(0,e.CC)(K,ee),z.style[(0,e.jA)(K)]=ee,!(0,w.Vd)()){if(""===ee||!(0,k.O9)(ee))return;const be=`${(0,T._k)(K)}: ${ee};`;(0,e.eC)(z,be,!1)}};class J extends v.A{_renderVisible(K,ee){super._renderVisible(K),(0,k.O9)(ee)&&this._options.fireItemStateChangedAction({name:"visible",state:K,oldState:ee})}}class R{constructor(K,ee){this._$element=K,this._option=ee}renderBox(){this._$element.css({display:`${(0,e.Rb)("flexDirection")}flex`}),H(this._$element.get(0),"flexDirection",M[this._option("direction")])}renderAlign(){this._$element.css({justifyContent:this._normalizedAlign()})}_normalizedAlign(){const K=this._option("align");return K in Z?Z[K]:K}renderCrossAlign(){this._$element.css({alignItems:this._normalizedCrossAlign()})}_normalizedCrossAlign(){const K=this._option("crossAlign");return K in A?A[K]:K}renderItems(K){const ee=(0,e.Rb)("flexDirection"),re=this._option("direction");(0,C.__)(K,function(){const be=(0,d.A)(this),ce=be.data("dxBoxItemData");be.css({display:`${ee}flex`}).css(U[re],ce.maxSize||"none").css(X[re],ce.minSize||"0"),H(be.get(0),"flexBasis",ce.baseSize||0),H(be.get(0),"flexGrow",ce.ratio),H(be.get(0),"flexShrink",(0,k.O9)(ce.shrink)?ce.shrink:1),be.children().each((Re,Se)=>{(0,d.A)(Se).css({width:"auto",height:"auto",display:`${(0,e.Rb)("flexDirection")}flex`,flexBasis:0}),H(Se,"flexGrow",1),H(Se,"flexDirection",(0,d.A)(Se)[0].style.flexDirection||"column")})})}}let L=(()=>{class z extends P.A{_getDefaultOptions(){return(0,m.X)(super._getDefaultOptions(),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_queue:void 0})}_itemClass(){return"dx-box-item"}_itemDataKey(){return"dxBoxItemData"}_itemElements(){return this._itemContainer().children(this._itemSelector())}_init(){super._init(),this.$element().addClass("dx-box-flex"),this._initLayout(),this._initBoxQueue()}_initLayout(){this._layout=new R(this.$element(),this.option.bind(this))}_initBoxQueue(){this._queue=this.option("_queue")||[]}_queueIsNotEmpty(){return!this.option("_queue")&&!!this._queue.length}_pushItemToQueue(ee,re){this._queue.push({$item:ee,config:re})}_shiftItemFromQueue(){return this._queue.shift()}_initMarkup(){this.$element().addClass("dx-box"),this._layout.renderBox(),super._initMarkup(),this._renderAlign(),this._renderActions()}_renderActions(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")}_renderAlign(){this._layout.renderAlign(),this._layout.renderCrossAlign()}_renderItems(ee){for(super._renderItems(ee);this._queueIsNotEmpty();){const re=this._shiftItemFromQueue();this._createComponent(re.$item,z,(0,m.X)({itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},re.config))}this._layout.renderItems(this._itemElements())}_renderItemContent(ee){const re=ee.itemData&&ee.itemData.node;return re?this._renderItemContentByNode(ee,re):super._renderItemContent(ee)}_postprocessRenderItem(ee){const re=ee.itemData.box;re&&this._pushItemToQueue(ee.itemContent,re)}_createItemByTemplate(ee,re){return re.itemData.box?ee.source?ee.source():(0,d.A)():super._createItemByTemplate(ee,re)}_itemOptionChanged(ee,re,be,ce){"visible"===re&&this._onItemStateChanged({name:re,state:be,oldState:!1!==ce}),super._itemOptionChanged(ee,re,be)}_optionChanged(ee){switch(ee.name){case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:super._optionChanged(ee)}}_itemOptions(){const ee=super._itemOptions();return ee.fireItemStateChangedAction=re=>{this._onItemStateChanged(re)},ee}}return z.ItemClass=J,z})();(0,S.A)("dxBox",L);const Q=L},656:(En,it,p)=>{"use strict";let S;function d(){return S}function m(gt){const un=S;return S=gt,un}p.d(it,{JEi:()=>ea,EJG:()=>Mo,Yrj:()=>rs,VVG:()=>hn,Y20:()=>oa,SKP:()=>Wn,hk6:()=>Yr,eVN:()=>El,b5C:()=>$s,rQE:()=>Es,X5O:()=>is,qFA:()=>jr,qQL:()=>Nu,abz:()=>Xc,tQN:()=>ur,pcR:()=>Tr,oMQ:()=>Or,Mlv:()=>_o,MZA:()=>zi,M0L:()=>io,Z63:()=>$o,VML:()=>ou,uvJ:()=>mi,zcH:()=>Dl,Wg1:()=>Us,Yw1:()=>Vr,jgP:()=>ws,tcA:()=>Xt,ID:()=>Js,YEL:()=>Fi,B9r:()=>xn,GBX:()=>Et,ZTf:()=>yd,nKC:()=>Ue,zZn:()=>Kc,rJ1:()=>an,nfM:()=>ca,s6P:()=>Ir,K29:()=>nr,CQl:()=>yt,p9y:()=>Mn,zSs:()=>rn,ONQ:()=>We,hmW:()=>nn,yAH:()=>fe,KXn:()=>Yc,oTH:()=>Bn,Czx:()=>rr,f7T:()=>Qs,wVl:()=>ir,GYQ:()=>Vu,u5s:()=>$u,rev:()=>Ed,Ds7:()=>Cr,e5P:()=>ut,Iaj:()=>Ar,GpT:()=>bo,buA:()=>B,AQb:()=>xd,jNX:()=>bt,eDl:()=>Ys,qlT:()=>gn,bm_:()=>va,r4V:()=>iu,ok8:()=>b,Evm:()=>Pc,Jy$:()=>nu,laP:()=>X,EYC:()=>Zi,ng7:()=>Tn,llW:()=>St,gsJ:()=>ho,GZS:()=>wt,iYM:()=>Ce,PEr:()=>Si,z7f:()=>Me,LZP:()=>_e,Xln:()=>ce,yzR:()=>vi,TWe:()=>ki,LIA:()=>be,GWr:()=>W,pbo:()=>ie,bBq:()=>cn,Af3:()=>Bo,zQk:()=>Wi,oZy:()=>Pi,tF7:()=>ke,ZFY:()=>qo,cP4:()=>Ln,MdC:()=>bi,XvL:()=>Pe,KET:()=>Ut,Tkx:()=>Mt,iw4:()=>Re,tdH:()=>Ul,pr_:()=>de,IAh:()=>De,U45:()=>K,WrV:()=>ee,kNT:()=>Ye,MI:()=>Ht,biv:()=>Do,ZQF:()=>Se,Cv0:()=>re,W0r:()=>He,R2n:()=>Fe,O8q:()=>Wt,VKj:()=>Ft,Rom:()=>xt,z6V:()=>dn,n$e:()=>J,hjC:()=>ri,Pz9:()=>Fu,PQT:()=>Rt,VX4:()=>Jt,_Z$:()=>Vo,N79:()=>Xd,xLP:()=>Bi,zuh:()=>lt,BI7:()=>Ne,U7d:()=>Te,uXy:()=>je,nZS:()=>me,ihb:()=>Zd,ID8:()=>lc,gv8:()=>Lu,dwj:()=>M,Bqz:()=>ni,OsK:()=>F,Rfq:()=>G,kRk:()=>tu,c$7:()=>lo,gxQ:()=>Gi,ckz:()=>pd,kLh:()=>A,xUg:()=>Xi,KdJ:()=>as,db4:()=>_t,VPL:()=>At,MT:()=>ac,Z9v:()=>Ol,Ab:()=>Gc,w7Z:()=>wl,Mx4:()=>Tc,veI:()=>md,HaV:()=>Fo,Agf:()=>Oo,znI:()=>hd,wGu:()=>Ot,ebl:()=>Oe,OAn:()=>fd,_0$:()=>bl,UaU:()=>zc,vaC:()=>qn,d31:()=>Ti,ZRn:()=>Qi,phH:()=>Gn,WbQ:()=>Ri,WB9:()=>gi,d_l:()=>xl,vNG:()=>ic,oyA:()=>Vs,_px:()=>cl,CpD:()=>qd,XRZ:()=>go,klJ:()=>Sa,Fje:()=>Sh,b$O:()=>Xr,SMZ:()=>Z,WQX:()=>Sn,MzJ:()=>ss,jXY:()=>An,MME:()=>Ss,JlV:()=>yi,Qs1:()=>bn,srX:()=>qt,vOT:()=>Os,YWB:()=>Ic,EPY:()=>Ko,yoD:()=>kn,P3H:()=>kt,Jzi:()=>z,rFz:()=>vt,JjR:()=>ta,M6u:()=>ds,KtD:()=>rc,muV:()=>Ke,A0l:()=>Bt,q$2:()=>ot,yP_:()=>Rn,EFk:()=>Hi,Hps:()=>_p,UhH:()=>Nl,QuC:()=>fs,Y3W:()=>Bs,n$r:()=>vp,K7h:()=>jn,FRF:()=>ai,ezK:()=>Qt,m7n:()=>Bu,niQ:()=>Ru,krE:()=>Mu,bll:()=>Mc,Hh6:()=>eo,EmA:()=>zt,blu:()=>xa,HAh:()=>In,WfI:()=>mo,xbp:()=>lr,jvu:()=>vd,lQ1:()=>Uu,Rc9:()=>Yn,E6O:()=>ro,DyX:()=>Ea,eFE:()=>ji,dMS:()=>po,HUe:()=>_n,nl4:()=>Q,N4e:()=>ms,XaM:()=>Qe,YXz:()=>mp,Kw3:()=>Cs,vQI:()=>Ca,RZ9:()=>Wa,GA0:()=>Ma,iMd:()=>Ac,Pfq:()=>rt,xyx:()=>Ga,a2B:()=>Hs,kcM:()=>et,DFp:()=>at,P2g:()=>ln,cBl:()=>ii,ypq:()=>ku,vPA:()=>Tl,HO5:()=>$l,M_e:()=>os,B22:()=>oc,ik5:()=>yl,AsM:()=>H,PP7:()=>Mi,$8:()=>ye,$Hz:()=>Ii,zAe:()=>di,IvY:()=>Un,_gW:()=>Zs,F1c:()=>Ks,ITl:()=>ht,brz:()=>qi,jRZ:()=>Oi,SX7:()=>eu,jDH:()=>Ae,G2t:()=>Ee,fuf:()=>Yd,cSN:()=>Ll,KVO:()=>Ni,dmw:()=>Yi,joV:()=>za,By9:()=>pg,qSk:()=>fp,Njj:()=>Dc,eBV:()=>Qd});const C=Symbol("NotFound");function k(gt){return gt===C||"\u0275NotFound"===gt?.name}Error;var w=p(1131),P=p(5981),v=p(9406);const b="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss";class B extends Error{code;constructor(un,Xn){super(F(un,Xn)),this.code=un}}function F(gt,un){return`${function j(gt){return`NG0${Math.abs(gt)}`}(gt)}${un?": "+un:""}`}const X=globalThis;function Z(){return!1}function A(gt){for(let un in gt)if(gt[un]===A)return un;throw Error("")}function M(gt,un){for(const Xn in un)un.hasOwnProperty(Xn)&&!gt.hasOwnProperty(Xn)&&(gt[Xn]=un[Xn])}function H(gt){if("string"==typeof gt)return gt;if(Array.isArray(gt))return`[${gt.map(H).join(", ")}]`;if(null==gt)return""+gt;const un=gt.overriddenName||gt.name;if(un)return`${un}`;const Xn=gt.toString();if(null==Xn)return""+Xn;const to=Xn.indexOf("\n");return to>=0?Xn.slice(0,to):Xn}function J(gt,un){return gt?un?`${gt} ${un}`:gt:un||""}const L=A({__forward_ref__:A});function G(gt){return gt.__forward_ref__=G,gt.toString=function(){return H(this())},gt}function Q(gt){return z(gt)?gt():gt}function z(gt){return"function"==typeof gt&&gt.hasOwnProperty(L)&&gt.__forward_ref__===G}function K(gt,un){"number"!=typeof gt&&ye(un,typeof gt,"number","===")}function ee(gt,un,Xn){K(gt,"Expected a number"),function Ie(gt,un,Xn){gt<=un||ye(Xn,gt,un,"<=")}(gt,Xn,"Expected number to be less than or equal to"),ie(gt,un,"Expected number to be greater than or equal to")}function re(gt,un){"string"!=typeof gt&&ye(un,null===gt?"null":typeof gt,"string","===")}function be(gt,un){"function"!=typeof gt&&ye(un,null===gt?"null":typeof gt,"function","===")}function ce(gt,un,Xn){gt!=un&&ye(Xn,gt,un,"==")}function Re(gt,un,Xn){gt==un&&ye(Xn,gt,un,"!=")}function Se(gt,un,Xn){gt!==un&&ye(Xn,gt,un,"===")}function De(gt,un,Xn){gt===un&&ye(Xn,gt,un,"!==")}function Pe(gt,un,Xn){gt<un||ye(Xn,gt,un,"<")}function W(gt,un,Xn){gt>un||ye(Xn,gt,un,">")}function ie(gt,un,Xn){gt>=un||ye(Xn,gt,un,">=")}function Ce(gt,un){null==gt&&ye(un,gt,null,"!=")}function ye(gt,un,Xn,to){throw new Error(`ASSERTION ERROR: ${gt}`+(null==to?"":` [Expected=> ${Xn} ${to} ${un} <=Actual]`))}function Me(gt){gt instanceof Node||ye(`The provided value must be an instance of a DOM Node but got ${H(gt)}`)}function _e(gt){gt instanceof Element||ye(`The provided value must be an element but got ${H(gt)}`)}function ke(gt,un){Ce(gt,"Array must be defined.");const Xn=gt.length;(un<0||un>=Xn)&&ye(`Index expected to be less than ${Xn} but got ${un}`)}function Ye(gt,...un){if(-1!==un.indexOf(gt))return!0;ye(`Expected value to be one of ${JSON.stringify(un)} but was ${JSON.stringify(gt)}.`)}function de(gt){null!==(0,w.nR)()&&ye(`${gt}() should never be called in a reactive context.`)}function Ae(gt){return{token:gt.token,providedIn:gt.providedIn||null,factory:gt.factory,value:void 0}}function Ee(gt){return{providers:gt.providers||[],imports:gt.imports||[]}}function le(gt){return function Be(gt,un){return gt.hasOwnProperty(un)&&gt[un]||null}(gt,fe)}function Ke(gt){return null!==le(gt)}function Oe(gt){return gt&&gt.hasOwnProperty(We)?gt[We]:null}const fe=A({\u0275prov:A}),We=A({\u0275inj:A});class Ue{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(un,Xn){this._desc=un,this.\u0275prov=void 0,"number"==typeof Xn?this.__NG_ELEMENT_ID__=Xn:void 0!==Xn&&(this.\u0275prov=Ae({token:this,providedIn:Xn.providedIn||"root",factory:Xn.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}let Ve;function tt(){return ye("getInjectorProfilerContext should never be called in production mode"),Ve}function at(gt){ye("setInjectorProfilerContext should never be called in production mode");const un=Ve;return Ve=gt,un}const Vt=[],qe=()=>{};function et(gt){return ye("setInjectorProfiler should never be called in production mode"),null!==gt?(Vt.includes(gt)||Vt.push(gt),()=>function Nt(gt){const un=Vt.indexOf(gt);-1!==un&&Vt.splice(un,1)}(gt)):(Vt.length=0,qe)}function ue(gt){ye("Injector profiler should never be called in production mode");for(let un=0;un<Vt.length;un++)(0,Vt[un])(gt)}function me(gt,un=!1){let Xn;ye("Injector profiler should never be called in production mode"),Xn="function"==typeof gt||gt instanceof Ue?gt:Q(gt.provide);let to=gt;gt instanceof Ue&&(to=gt.\u0275prov||gt),ue({type:2,context:tt(),providerRecord:{token:Xn,provider:to,isViewProvider:un}})}function Te(gt){ye("Injector profiler should never be called in production mode"),ue({type:4,context:tt(),token:gt})}function je(gt){ye("Injector profiler should never be called in production mode"),ue({type:1,context:tt(),instance:{value:gt}})}function Ne(gt,un,Xn){ye("Injector profiler should never be called in production mode"),ue({type:0,context:tt(),service:{token:gt,value:un,flags:Xn}})}function lt(gt){ye("Injector profiler should never be called in production mode"),ue({type:3,context:tt(),effect:gt})}function Qe(gt,un,Xn){ye("runInInjectorProfilerContext should never be called in production mode");const to=at({injector:gt,token:un});try{Xn()}finally{at(to)}}function Ct(gt){return gt&&!!gt.\u0275providers}const yt=A({\u0275cmp:A}),Gt=A({\u0275dir:A}),ft=A({\u0275pipe:A}),nn=A({\u0275mod:A}),rn=A({\u0275fac:A}),Mn=A({__NG_ELEMENT_ID__:A}),On=A({__NG_ENV_ID__:A});function ji(gt){return"string"==typeof gt?gt:null==gt?"":String(gt)}function Mi(gt){return"function"==typeof gt?gt.name||gt.toString():"object"==typeof gt&&null!=gt&&"function"==typeof gt.type?gt.type.name||gt.type.toString():ji(gt)}function Vo(gt){let un=gt[yt]||null;return null!==un&&un.debugInfo?function Co(gt){return gt.filePath&&gt.lineNumber?`${gt.className} (at ${gt.filePath}:${gt.lineNumber})`:gt.className}(un.debugInfo):Mi(gt)}const ti=A({ngErrorCode:A}),Qn=A({ngErrorMessage:A}),ei=A({ngTokenPath:A});function Rt(gt,un){return Wo("",-200,un)}function Jt(gt,un){return function pi(gt,un){return gt.message=function hs(gt,un,Xn=[],to=null){let wo="";Xn&&Xn.length>1&&(wo=` Path: ${Xn.join(" -> ")}.`);return F(un,`${gt}${to?` Source: ${to}.`:""}${wo}`)}(gt[Qn]||gt.message,gt[ti],gt[ei],un),gt}(Rt(0,un),null)}function Ii(gt,un){throw new B(-201,!1)}function Wo(gt,un,Xn){const to=new B(un,gt);return to[ti]=un,to[Qn]=gt,Xn&&(to[ei]=Xn),to}let Ps;function ls(){return Ps}function Hs(gt){const un=Ps;return Ps=gt,un}function ss(gt,un,Xn){const to=le(gt);return to&&"root"==to.providedIn?void 0===to.value?to.value=to.factory():to.value:8&Xn?null:void 0!==un?un:void Ii()}function qo(gt){}const bs={},Fn="__NG_DI_FLAG__";class li{injector;constructor(un){this.injector=un}retrieve(un,Xn){const to=ri(Xn)||0;try{return this.injector.get(un,8&to?null:bs,to)}catch(wo){if(k(wo))return wo;throw wo}}}function si(gt,un=0){const Xn=d();if(void 0===Xn)throw new B(-203,!1);if(null===Xn)return ss(gt,void 0,un);{const to=function It(gt){return{optional:!!(8&gt),host:!!(1&gt),self:!!(2&gt),skipSelf:!!(4&gt)}}(un),wo=Xn.retrieve(gt,to);if(k(wo)){if(to.optional)return null;throw wo}return wo}}function Ni(gt,un=0){return(ls()||si)(Q(gt),un)}function Yi(gt){throw new B(202,!1)}function Sn(gt,un){return Ni(gt,ri(un))}function ri(gt){return typeof gt>"u"||"number"==typeof gt?gt:0|(gt.optional&&8)|(gt.host&&1)|(gt.self&&2)|(gt.skipSelf&&4)}function Pt(gt){const un=[];for(let Xn=0;Xn<gt.length;Xn++){const to=Q(gt[Xn]);if(Array.isArray(to)){if(0===to.length)throw new B(900,!1);let wo,Ds=0;for(let kr=0;kr<to.length;kr++){const Qr=to[kr],sa=jt(Qr);"number"==typeof sa?-1===sa?wo=Qr.token:Ds|=sa:wo=Qr}un.push(Ni(wo,Ds))}else un.push(Ni(to))}return un}function dn(gt,un){return gt[Fn]=un,gt.prototype[Fn]=un,gt}function jt(gt){return gt[Fn]}function Ot(gt,un){return gt.hasOwnProperty(rn)?gt[rn]:null}function Tn(gt,un,Xn){if(gt.length!==un.length)return!1;for(let to=0;to<gt.length;to++){let wo=gt[to],Ds=un[to];if(Xn&&(wo=Xn(wo),Ds=Xn(Ds)),Ds!==wo)return!1}return!0}function ni(gt){return gt.flat(Number.POSITIVE_INFINITY)}function Bi(gt,un){gt.forEach(Xn=>Array.isArray(Xn)?Bi(Xn,un):un(Xn))}function Zi(gt,un,Xn){un>=gt.length?gt.push(Xn):gt.splice(un,0,Xn)}function ro(gt,un){return un>=gt.length-1?gt.pop():gt.splice(un,1)[0]}function mo(gt,un){const Xn=[];for(let to=0;to<gt;to++)Xn.push(un);return Xn}function ho(gt,un,Xn){const to=gt.length-Xn;for(;un<to;)gt[un]=gt[un+Xn],un++;for(;Xn--;)gt.pop()}function St(gt,un,Xn,to){let wo=gt.length;if(wo==un)gt.push(Xn,to);else if(1===wo)gt.push(to,gt[0]),gt[0]=Xn;else{for(wo--,gt.push(gt[wo-1],gt[wo]);wo>un;)gt[wo]=gt[wo-2],wo--;gt[un]=Xn,gt[un+1]=to}}function Qt(gt,un,Xn){let to=ai(gt,un);return to>=0?gt[1|to]=Xn:(to=~to,St(gt,to,un,Xn)),to}function jn(gt,un){const Xn=ai(gt,un);if(Xn>=0)return gt[1|Xn]}function ai(gt,un){return function $i(gt,un,Xn){let to=0,wo=gt.length>>Xn;for(;wo!==to;){const Ds=to+(wo-to>>1),kr=gt[Ds<<Xn];if(un===kr)return Ds<<Xn;kr>un?wo=Ds:to=Ds+1}return~(wo<<Xn)}(gt,un,1)}const zi={},_o=[],$o=new Ue(""),gs=new Ue("",-1),xn=new Ue("");class Bn{get(un,Xn=bs){if(Xn===bs){const wo=Wo("",-201);throw wo.name="\u0275NotFound",wo}return Xn}}function Gn(gt){return gt[nn]||null}function Ri(gt){const un=Gn(gt);if(!un)throw new B(915,!1);return un}function Xi(gt){return gt[yt]||null}function Oo(gt){const un=Fo(gt);if(!un)throw new B(916,!1);return un}function Fo(gt){return gt[Gt]||null}function Vs(gt){return gt[ft]||null}function fs(gt){const un=Xi(gt)||Fo(gt)||Vs(gt);return null!==un&&un.standalone}function zt(gt){return{\u0275providers:gt}}function pn(...gt){return{\u0275providers:An(0,gt),\u0275fromNgModule:!0}}function An(gt,...un){const Xn=[],to=new Set;let wo;const Ds=kr=>{Xn.push(kr)};return Bi(un,kr=>{const Qr=kr;qi(Qr,Ds,[],to)&&(wo||=[],wo.push(Qr))}),void 0!==wo&&fi(wo,Ds),Xn}function fi(gt,un){for(let Xn=0;Xn<gt.length;Xn++){const{ngModule:to,providers:wo}=gt[Xn];Go(wo,Ds=>{un(Ds,to)})}}function qi(gt,un,Xn,to){if(!(gt=Q(gt)))return!1;let wo=null,Ds=Oe(gt);const kr=!Ds&&Xi(gt);if(Ds||kr){if(kr&&!kr.standalone)return!1;wo=gt}else{const sa=gt.ngModule;if(Ds=Oe(sa),!Ds)return!1;wo=sa}const Qr=to.has(wo);if(kr){if(Qr)return!1;if(to.add(wo),kr.dependencies){const sa="function"==typeof kr.dependencies?kr.dependencies():kr.dependencies;for(const Zr of sa)qi(Zr,un,Xn,to)}}else{if(!Ds)return!1;{if(null!=Ds.imports&&!Qr){let Zr;to.add(wo);try{Bi(Ds.imports,cc=>{qi(cc,un,Xn,to)&&(Zr||=[],Zr.push(cc))})}finally{}void 0!==Zr&&fi(Zr,un)}if(!Qr){const Zr=Ot(wo)||(()=>new wo);un({provide:wo,useFactory:Zr,deps:_o},wo),un({provide:xn,useValue:wo,multi:!0},wo),un({provide:$o,useValue:()=>Ni(wo),multi:!0},wo)}const sa=Ds.providers;if(null!=sa&&!Qr){const Zr=gt;Go(sa,cc=>{un(cc,Zr)})}}}return wo!==gt&&void 0!==gt.providers}function Go(gt,un){for(let Xn of gt)Ct(Xn)&&(Xn=Xn.\u0275providers),Array.isArray(Xn)?Go(Xn,un):un(Xn)}const xs=A({provide:String,useValue:A});function Rs(gt){return null!==gt&&"object"==typeof gt&&xs in gt}function Bs(gt){return"function"==typeof gt}function Ss(gt){return!!gt.useClass}const Et=new Ue(""),en={},Dn={};let Zn;function gi(){return void 0===Zn&&(Zn=new Bn),Zn}class mi{}class ut extends mi{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(un,Xn,to,wo){super(),this.parent=Xn,this.source=to,this.scopes=wo,Ho(un,kr=>this.processProvider(kr)),this.records.set(gs,Ki(void 0,this)),wo.has("environment")&&this.records.set(mi,Ki(void 0,this));const Ds=this.records.get(Et);null!=Ds&&"string"==typeof Ds.value&&this.scopes.add(Ds.value),this.injectorDefTypes=new Set(this.get(xn,_o,{self:!0}))}retrieve(un,Xn){const to=ri(Xn)||0;try{return this.get(un,bs,to)}catch(wo){if(k(wo))return wo;throw wo}}destroy(){xi(this),this._destroyed=!0;const un=(0,w.Ht)(null);try{for(const to of this._ngOnDestroyHooks)to.ngOnDestroy();const Xn=this._onDestroyHooks;this._onDestroyHooks=[];for(const to of Xn)to()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),(0,w.Ht)(un)}}onDestroy(un){return xi(this),this._onDestroyHooks.push(un),()=>this.removeOnDestroy(un)}runInContext(un){xi(this);const Xn=m(this),to=Hs(void 0);try{return un()}finally{m(Xn),Hs(to)}}get(un,Xn=bs,to){if(xi(this),un.hasOwnProperty(On))return un[On](this);const wo=ri(to),kr=m(this),Qr=Hs(void 0);try{if(!(4&wo)){let Zr=this.records.get(un);if(void 0===Zr){const cc=function ko(gt){return"function"==typeof gt||"object"==typeof gt&&"InjectionToken"===gt.ngMetadataName}(un)&&le(un);Zr=cc&&this.injectableDefInScope(cc)?Ki(Yt(un),en):null,this.records.set(un,Zr)}if(null!=Zr)return this.hydrate(un,Zr,wo)}return(2&wo?gi():this.parent).get(un,Xn=8&wo&&Xn===bs?null:Xn)}catch(sa){const Zr=function To(gt){return gt[ti]}(sa);throw-200===Zr||-201===Zr?new B(Zr,null):sa}finally{Hs(Qr),m(kr)}}resolveInjectorInitializers(){const un=(0,w.Ht)(null),Xn=m(this),to=Hs(void 0);try{const Ds=this.get($o,_o,{self:!0});for(const kr of Ds)kr()}finally{m(Xn),Hs(to),(0,w.Ht)(un)}}toString(){const un=[],Xn=this.records;for(const to of Xn.keys())un.push(H(to));return`R3Injector[${un.join(", ")}]`}processProvider(un){let Xn=Bs(un=Q(un))?un:Q(un&&un.provide);const to=function mn(gt){return Rs(gt)?Ki(void 0,gt.useValue):Ki(Yn(gt),en)}(un);if(!Bs(un)&&!0===un.multi){let wo=this.records.get(Xn);wo||(wo=Ki(void 0,en,!0),wo.factory=()=>Pt(wo.multi),this.records.set(Xn,wo)),Xn=un,wo.multi.push(un)}this.records.set(Xn,to)}hydrate(un,Xn,to){const wo=(0,w.Ht)(null);try{if(Xn.value===Dn)throw Rt(H(un));return Xn.value===en&&(Xn.value=Dn,Xn.value=Xn.factory(void 0,to)),"object"==typeof Xn.value&&Xn.value&&function yo(gt){return null!==gt&&"object"==typeof gt&&"function"==typeof gt.ngOnDestroy}(Xn.value)&&this._ngOnDestroyHooks.add(Xn.value),Xn.value}finally{(0,w.Ht)(wo)}}injectableDefInScope(un){if(!un.providedIn)return!1;const Xn=Q(un.providedIn);return"string"==typeof Xn?"any"===Xn||this.scopes.has(Xn):this.injectorDefTypes.has(Xn)}removeOnDestroy(un){const Xn=this._onDestroyHooks.indexOf(un);-1!==Xn&&this._onDestroyHooks.splice(Xn,1)}}function Yt(gt){const un=le(gt),Xn=null!==un?un.factory:Ot(gt);if(null!==Xn)return Xn;if(gt instanceof Ue)throw new B(204,!1);if(gt instanceof Function)return function Dt(gt){if(gt.length>0)throw new B(204,!1);const Xn=function q(gt){return(gt?.[fe]??null)||null}(gt);return null!==Xn?()=>Xn.factory(gt):()=>new gt}(gt);throw new B(204,!1)}function Yn(gt,un,Xn){let to;if(Bs(gt)){const wo=Q(gt);return Ot(wo)||Yt(wo)}if(Rs(gt))to=()=>Q(gt.useValue);else if(function _s(gt){return!(!gt||!gt.useFactory)}(gt))to=()=>gt.useFactory(...Pt(gt.deps||[]));else if(function ks(gt){return!(!gt||!gt.useExisting)}(gt))to=(wo,Ds)=>Ni(Q(gt.useExisting),void 0!==Ds&&8&Ds?8:void 0);else{const wo=Q(gt&&(gt.useClass||gt.provide));if(!function Ro(gt){return!!gt.deps}(gt))return Ot(wo)||Yt(wo);to=()=>new wo(...Pt(gt.deps))}return to}function xi(gt){if(gt.destroyed)throw new B(205,!1)}function Ki(gt,un,Xn=!1){return{factory:gt,value:un,multi:Xn?[]:void 0}}function Ho(gt,un){for(const Xn of gt)Array.isArray(Xn)?Ho(Xn,un):Xn&&Ct(Xn)?Ho(Xn.\u0275providers,un):un(Xn)}function ms(gt,un){let Xn;gt instanceof ut?(xi(gt),Xn=gt):Xn=new li(gt);const wo=m(Xn),Ds=Hs(void 0);try{return un()}finally{m(wo),Hs(Ds)}}function ds(){return void 0!==ls()||null!=d()}function Bo(gt){if(!ds())throw new B(-203,!1)}const ws=0,Ys=1,Us=2,Qs=3,nr=4,gn=5,Xt=6,hn=7,Wn=8,Fi=9,io=10,bo=11,Mo=12,rs=13,is=14,$s=15,Es=16,ir=17,Cr=18,Js=19,Or=20,rr=21,Tr=22,ur=23,Ar=24,ea=25,Vr=26,Hr=1,jr=6,Ir=7,va=8,ca=9,oa=10;function ot(gt){return Array.isArray(gt)&&"object"==typeof gt[Hr]}function Bt(gt){return Array.isArray(gt)&&!0===gt[Hr]}function qt(gt){return!!(4&gt.flags)}function bn(gt){return gt.componentOffset>-1}function kn(gt){return!(1&~gt.flags)}function yi(gt){return!!gt.template}function Hi(gt){return!!(512&gt[Us])}function Ko(gt){return!(256&~gt[Us])}function Ft(gt,un){xt(gt,un[Ys])}function Wt(gt,un){const Xn=un+Vr;ke(gt,Xn),Pe(Xn,gt[Ys].bindingStartIndex,"TNodes should be created before any bindings")}function xt(gt,un){Fe(gt);const Xn=un.data;for(let to=Vr;to<Xn.length;to++)if(Xn[to]===gt)return;ye("This TNode does not belong to this TView.")}function Fe(gt){Ce(gt,"TNode must be defined"),gt&&"object"==typeof gt&&gt.hasOwnProperty("directiveStylingLast")||ye("Not of type TNode, got: "+gt)}function He(gt){Ce(gt,"Expected TIcu to be defined"),"number"!=typeof gt.currentCaseLViewIndex&&ye("Object is not of TIcu type.")}function wt(gt,un="Type passed in is not ComponentType, it does not have '\u0275cmp' property."){Xi(gt)||ye(un)}function Ut(gt,un="Type passed in is not NgModuleType, it does not have '\u0275mod' property."){Gn(gt)||ye(un)}function cn(gt){Ce(gt,"currentTNode should exist!"),Ce(gt.parent,"currentTNode should have a parent")}function Ln(gt){Ce(gt,"LContainer must be defined"),ce(Bt(gt),!0,"Expecting LContainer")}function bi(gt){Ce(gt,"LView must be defined"),ce(ot(gt),!0,"Expecting LView")}function vi(gt,un){ce(gt.firstCreatePass,!0,un||"Should only be called in first create pass.")}function ki(gt,un){ce(gt.firstUpdatePass,!0,"Should only be called in first update pass.")}function Si(gt){(void 0===gt.type||null==gt.selectors||void 0===gt.inputs)&&ye("Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.")}function Wi(gt,un){oo(Vr,gt.bindingStartIndex,un)}function Pi(gt,un){oo(gt[1].expandoStartIndex,gt.length,un)}function oo(gt,un,Xn){gt<=Xn&&Xn<un||ye(`Index out of range (expecting ${gt} <= ${Xn} < ${un})`)}function Do(gt,un){Ce(gt[$s],"Component views should exist."),Ce(gt[$s][gn].projection,"Components with projection nodes (<ng-content>) must have projection slots defined.")}function Ht(gt,un){Ce(gt,"Component views should always have a parent view (component's host view)")}function Mt(gt,un){Pi(gt,un),Pi(gt,un+8),K(gt[un+0],"injectorIndex should point to a bloom filter"),K(gt[un+1],"injectorIndex should point to a bloom filter"),K(gt[un+2],"injectorIndex should point to a bloom filter"),K(gt[un+3],"injectorIndex should point to a bloom filter"),K(gt[un+4],"injectorIndex should point to a bloom filter"),K(gt[un+5],"injectorIndex should point to a bloom filter"),K(gt[un+6],"injectorIndex should point to a bloom filter"),K(gt[un+7],"injectorIndex should point to a bloom filter"),K(gt[un+8],"injectorIndex should point to parent injector")}const bt="svg",an="math";function Un(gt){for(;Array.isArray(gt);)gt=gt[ws];return gt}function di(gt){for(;Array.isArray(gt);){if("object"==typeof gt[Hr])return gt;gt=gt[ws]}return null}function qn(gt,un){return Un(un[gt])}function Ti(gt,un){return Un(un[gt.index])}function Qi(gt,un){const Xn=null===gt?-1:gt.index;return-1!==Xn?Un(un[Xn]):null}function go(gt,un){return gt.data[un]}function eo(gt,un){return gt[un]}function os(gt,un,Xn,to){Xn>=gt.data.length&&(gt.data[Xn]=null,gt.blueprint[Xn]=null),un[Xn]=to}function as(gt,un){const Xn=un[gt];return ot(Xn)?Xn:Xn[ws]}function Os(gt){return!(4&~gt[Us])}function Ks(gt){return!(128&~gt[Us])}function ht(gt){return Bt(gt[Qs])}function _t(gt,un){return null==un?null:gt[un]}function _n(gt){gt[ir]=0}function In(gt){1024&gt[Us]||(gt[Us]|=1024,Ks(gt)&&xa(gt))}function Oi(gt,un){for(;gt>0;)un=un[is],gt--;return un}function po(gt){return!!(9216&gt[Us]||gt[Ar]?.dirty)}function Zs(gt){gt[io].changeDetectionScheduler?.notify(8),64&gt[Us]&&(gt[Us]|=1024),po(gt)&&xa(gt)}function xa(gt){gt[io].changeDetectionScheduler?.notify(0);let un=bl(gt);for(;null!==un&&!(8192&un[Us])&&(un[Us]|=8192,Ks(un));)un=bl(un)}function yl(gt,un){if(Ko(gt))throw new B(911,!1);null===gt[rr]&&(gt[rr]=[]),gt[rr].push(un)}function Ea(gt,un){if(null===gt[rr])return;const Xn=gt[rr].indexOf(un);-1!==Xn&&gt[rr].splice(Xn,1)}function bl(gt){const un=gt[Qs];return Bt(un)?un[Qs]:un}function xl(gt){return gt[hn]??=[]}function ic(gt){return gt.cleanup??=[]}function oc(gt,un,Xn,to){const wo=xl(un);wo.push(Xn),gt.firstCreatePass&&ic(gt).push(to,wo.length-1)}const js={lFrame:_d(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var El=function(gt){return gt[gt.Off=0]="Off",gt[gt.Exhaustive=1]="Exhaustive",gt[gt.OnlyDirtyViews=2]="OnlyDirtyViews",gt}(El||{});let Sc=0,sc=!1;function hd(){return js.lFrame.elementDepthCount}function Sh(){js.lFrame.elementDepthCount++}function Xd(){js.lFrame.elementDepthCount--}function pd(){return js.bindingsEnabled}function rc(){return null!==js.skipHydrationRootTNode}function Nl(gt){return js.skipHydrationRootTNode===gt}function Ll(){js.bindingsEnabled=!0}function Yd(){js.bindingsEnabled=!1}function Mu(){js.skipHydrationRootTNode=null}function fd(){return js.lFrame.lView}function Sa(){return js.lFrame.tView}function Qd(gt){return js.lFrame.contextLView=gt,gt[Wn]}function Dc(gt){return js.lFrame.contextLView=null,gt}function Tc(){let gt=md();for(;null!==gt&&64===gt.type;)gt=gt.parent;return gt}function md(){return js.lFrame.currentTNode}function Gc(){const gt=js.lFrame,un=gt.currentTNode;return gt.isParent?un:un.parent}function Ac(gt,un){const Xn=js.lFrame;Xn.currentTNode=gt,Xn.isParent=un}function Ic(){return js.lFrame.isParent}function rt(){js.lFrame.isParent=!1}function At(){return js.lFrame.contextLView}function vt(){return ye("Must never be called in production mode"),Sc!==El.Off}function kt(){return ye("Must never be called in production mode"),Sc===El.Exhaustive}function ln(gt){ye("Must never be called in production mode"),Sc=gt}function Rn(){return sc}function ii(gt){const un=sc;return sc=gt,un}function Gi(){const gt=js.lFrame;let un=gt.bindingRootIndex;return-1===un&&(un=gt.bindingRootIndex=gt.tView.bindingStartIndex),un}function lo(){return js.lFrame.bindingIndex}function Cs(gt){return js.lFrame.bindingIndex=gt}function lr(){return js.lFrame.bindingIndex++}function Xr(gt){const un=js.lFrame,Xn=un.bindingIndex;return un.bindingIndex=un.bindingIndex+gt,Xn}function ta(){return js.lFrame.inI18n}function Ga(gt){js.lFrame.inI18n=gt}function Ca(gt,un){const Xn=js.lFrame;Xn.bindingIndex=Xn.bindingRootIndex=gt,Wa(un)}function Ol(){return js.lFrame.currentDirectiveIndex}function Wa(gt){js.lFrame.currentDirectiveIndex=gt}function ac(gt){const un=js.lFrame.currentDirectiveIndex;return-1===un?null:gt[un]}function wl(){return js.lFrame.currentQueryIndex}function Ma(gt){js.lFrame.currentQueryIndex=gt}function Wc(gt){const un=gt[Ys];return 2===un.type?un.declTNode:1===un.type?gt[gn]:null}function Zd(gt,un,Xn){if(4&Xn){let wo=un,Ds=gt;for(;!(wo=wo.parent,null!==wo||1&Xn||(wo=Wc(Ds),null===wo||(Ds=Ds[is],10&wo.type))););if(null===wo)return!1;un=wo,gt=Ds}const to=js.lFrame=Pu();return to.currentTNode=un,to.lView=gt,!0}function lc(gt){const un=Pu(),Xn=gt[Ys];js.lFrame=un,un.currentTNode=Xn.firstChild,un.lView=gt,un.tView=Xn,un.contextLView=gt,un.bindingIndex=Xn.bindingStartIndex,un.inI18n=!1}function Pu(){const gt=js.lFrame,un=null===gt?null:gt.child;return null===un?_d(gt):un}function _d(gt){const un={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:gt,child:null,inI18n:!1};return null!==gt&&(gt.child=un),un}function Jd(){const gt=js.lFrame;return js.lFrame=gt.parent,gt.currentTNode=null,gt.lView=null,gt}const Ru=Jd;function Mc(){const gt=Jd();gt.isParent=!0,gt.tView=null,gt.selectedIndex=-1,gt.contextLView=null,gt.elementDepthCount=0,gt.currentDirectiveIndex=-1,gt.currentNamespace=null,gt.bindingRootIndex=-1,gt.bindingIndex=-1,gt.currentQueryIndex=0}function vd(gt){return(js.lFrame.contextLView=Oi(gt,js.lFrame.contextLView))[Wn]}function cl(){return js.lFrame.selectedIndex}function ku(gt){js.lFrame.selectedIndex=gt}function qd(){const gt=js.lFrame;return go(gt.tView,gt.selectedIndex)}function fp(){js.lFrame.currentNamespace=bt}function pg(){js.lFrame.currentNamespace=an}function za(){!function Vl(){js.lFrame.currentNamespace=null}()}function zc(){return js.lFrame.currentNamespace}let Dh=!0;function eu(){return Dh}function Bu(gt){Dh=gt}let Sl={elements:void 0};function mp(gt){void 0===Sl.elements&&(Sl.elements=gt)}function tu(){return Sl}function Cd(gt,un=null,Xn=null,to){const wo=Fu(gt,un,Xn,to);return wo.resolveInjectorInitializers(),wo}function Fu(gt,un=null,Xn=null,to,wo=new Set){const Ds=[Xn||_o,pn(gt)];return to=to||("object"==typeof gt?void 0:H(gt)),new ut(Ds,un||gi(),to||null,wo)}class Kc{static THROW_IF_NOT_FOUND=bs;static NULL=new Bn;static create(un,Xn){if(Array.isArray(un))return Cd({name:""},Xn,un,"");{const to=un.name??"";return Cd({name:to},un.parent,un.providers,to)}}static \u0275prov=Ae({token:Kc,providedIn:"any",factory:()=>Ni(gs)});static __NG_ELEMENT_ID__=-1}const Nu=new Ue("");let Xc=(()=>class gt{static __NG_ELEMENT_ID__=dl;static __NG_ENV_ID__=Xn=>Xn})();class Yc extends Xc{_lView;constructor(un){super(),this._lView=un}get destroyed(){return Ko(this._lView)}onDestroy(un){const Xn=this._lView;return yl(Xn,un),()=>Ea(Xn,un)}}function dl(){return new Yc(fd())}class Dl{_console=console;handleError(un){this._console.error("ERROR",un)}}const yd=new Ue("",{providedIn:"root",factory:()=>{const gt=Sn(mi);let un;return Xn=>{gt.destroyed&&!un?setTimeout(()=>{throw Xn}):(un??=gt.get(Dl),un.handleError(Xn))}}}),Lu={provide:$o,useValue:()=>{Sn(Dl)},multi:!0};function _p(gt){return"function"==typeof gt&&void 0!==gt[w.bh]}function Tl(gt,un){const[Xn,to,wo]=(0,w.n5)(gt,un?.equal),Ds=Xn;return Ds.set=to,Ds.update=wo,Ds.asReadonly=$l.bind(Ds),Ds}function $l(){const gt=this[w.bh];if(void 0===gt.readonlyFn){const un=()=>this();un[w.bh]=gt,gt.readonlyFn=un}return gt.readonlyFn}function vp(gt){return _p(gt)&&"function"==typeof gt.set}class Yr{}const Pc=new Ue("",{providedIn:"root",factory:()=>!1}),Vu=new Ue("",{providedIn:"root",factory:()=>!1}),nu=new Ue(""),xd=new Ue("");function Ul(gt,un){if(null!==(0,w.nR)())throw new B(-602,!1)}let iu=(()=>class gt{view;node;constructor(Xn,to){this.view=Xn,this.node=to}static __NG_ELEMENT_ID__=Hu})();function Hu(){return new iu(fd(),Tc())}let Ed=(()=>{class gt{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new P.t(!1);get hasPendingTasks(){return!this.destroyed&&this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new v.c(Xn=>{Xn.next(!1),Xn.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);const Xn=this.taskId++;return this.pendingTasks.add(Xn),Xn}has(Xn){return this.pendingTasks.has(Xn)}remove(Xn){this.pendingTasks.delete(Xn),0===this.pendingTasks.size&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=Ae({token:gt,providedIn:"root",factory:()=>new gt})}return gt})(),$u=(()=>{class gt{internalPendingTasks=Sn(Ed);scheduler=Sn(Yr);errorHandler=Sn(yd);add(){const Xn=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(Xn)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(Xn))}}run(Xn){const to=this.add();Xn().catch(this.errorHandler).finally(to)}static \u0275prov=Ae({token:gt,providedIn:"root",factory:()=>new gt})}return gt})();function Uu(...gt){}let ou=(()=>{class gt{static \u0275prov=Ae({token:gt,providedIn:"root",factory:()=>new Rc})}return gt})();class Rc{dirtyEffectCount=0;queues=new Map;add(un){this.enqueue(un),this.schedule(un)}schedule(un){un.dirty&&this.dirtyEffectCount++}remove(un){const to=this.queues.get(un.zone);to.has(un)&&(to.delete(un),un.dirty&&this.dirtyEffectCount--)}enqueue(un){const Xn=un.zone;this.queues.has(Xn)||this.queues.set(Xn,new Set);const to=this.queues.get(Xn);to.has(un)||to.add(un)}flush(){for(;this.dirtyEffectCount>0;){let un=!1;for(const[Xn,to]of this.queues)un||=null===Xn?this.flushQueue(to):Xn.run(()=>this.flushQueue(to));un||(this.dirtyEffectCount=0)}}flushQueue(un){let Xn=!1;for(const to of un)to.dirty&&(this.dirtyEffectCount--,Xn=!0,to.run());return Xn}}},662:(En,it,p)=>{"use strict";p.d(it,{D:()=>d});var S=p(8813);class d{constructor(T){this.DIRECTION_HORIZONTAL="horizontal",this.DIRECTION_VERTICAL="vertical",this.DIRECTION_BOTH="both",this.direction=T??S.lm}get isHorizontal(){return this.direction===S.fK||this.direction===S.ig}get isVertical(){return this.direction===S.lm||this.direction===S.ig}get isBoth(){return this.direction===S.ig}}},668:(En,it,p)=>{"use strict";p.d(it,{Q:()=>Q});var S=p(6394),d=p(4303),m=p(3746),T=p(656),C=p(79),e=p(3349),k=p(4539),w=p(827),P=p(1197),v=p(6667);const x=()=>({class:"action-button btn-black"}),b=()=>({class:"action-button"});function B(z,K){if(1&z&&(d.j41(0,"p"),d.EFF(1),d.k0s()),2&z){const ee=d.XpG(2);d.R7$(),d.JRh(ee.scope.currentScope.network.getResourceOrKeyName("web_block_user_dialog_intro_1"))}}function j(z,K){if(1&z){const ee=d.RV6();d.j41(0,"dx-radio-group",8,0),d.mxI("valueChange",function(be){T.eBV(ee);const ce=d.XpG(2);return d.DH7(ce.reason,be)||(ce.reason=be),T.Njj(be)}),d.k0s()}if(2&z){const ee=d.XpG(2);d.Y8G("items",ee.reasons),d.R50("value",ee.reason),d.Y8G("layout","vertical")("tabIndex",0)("focusStateEnabled",!0)("hoverStateEnabled",!0)}}function F(z,K){if(1&z&&(d.j41(0,"p",3),d.EFF(1),d.k0s()),2&z){const ee=d.XpG(2);d.R7$(),d.SpI(" ",ee.scope.currentScope.network.getResourceOrKeyName("web_block_user_dialog_footer")," ")}}function X(z,K){if(1&z&&(d.j41(0,"div")(1,"p"),d.EFF(2),d.k0s()()),2&z){const ee=d.XpG(2);d.R7$(2),d.JRh(ee.scope.currentScope.network.getResourceOrKeyName("web_block_user_dialog_unblock_description"))}}function U(z,K){if(1&z&&(d.j41(0,"div",4),d.EFF(1),d.k0s()),2&z){const ee=d.XpG(2);d.R7$(),d.SpI(" ",ee.scope.currentScope.network.getResourceOrKeyName("web_block_user_dialog_error")," ")}}function Z(z,K){1&z&&d.nrm(0,"i",11)}function A(z,K){if(1&z&&(d.j41(0,"div"),d.nVh(1,Z,1,0,"i",11),d.EFF(2),d.k0s()),2&z){const ee=d.XpG(3);d.R7$(),d.vxM(ee.working?1:-1),d.R7$(),d.SpI(" ",ee.scope.currentScope.network.getResourceOrKeyName("web_block_user_dialog_block_button")," ")}}function M(z,K){if(1&z){const ee=d.RV6();d.j41(0,"dx-button",9),d.bIt("onClick",function(){T.eBV(ee);const be=d.XpG(2);return T.Njj(be.blockUser())}),d.DNE(1,A,3,2,"div",10),d.k0s()}if(2&z){const ee=d.XpG(2);d.Y8G("disabled",ee.working||!ee.reason)("elementAttr",d.lJ4(3,b)),d.R7$(),d.Y8G("dxTemplateOf","content")}}function H(z,K){1&z&&d.nrm(0,"i",11)}function J(z,K){if(1&z&&(d.j41(0,"div"),d.nVh(1,H,1,0,"i",11),d.EFF(2),d.k0s()),2&z){const ee=d.XpG(3);d.R7$(),d.vxM(ee.working?1:-1),d.R7$(),d.SpI(" ",ee.scope.currentScope.network.getResourceOrKeyName("web_block_user_dialog_unblock_button")," ")}}function R(z,K){if(1&z){const ee=d.RV6();d.j41(0,"dx-button",9),d.bIt("onClick",function(){T.eBV(ee);const be=d.XpG(2);return T.Njj(be.unblockUser())}),d.DNE(1,J,3,2,"div",10),d.k0s()}if(2&z){const ee=d.XpG(2);d.Y8G("disabled",ee.working)("elementAttr",d.lJ4(3,b)),d.R7$(),d.Y8G("dxTemplateOf","content")}}function L(z,K){if(1&z){const ee=d.RV6();d.j41(0,"div")(1,"p"),d.EFF(2),d.k0s(),d.nVh(3,B,2,1,"p"),d.nVh(4,j,2,6,"dx-radio-group",2),d.nVh(5,F,2,1,"p",3),d.nVh(6,X,3,1,"div"),d.nVh(7,U,2,1,"div",4),d.nrm(8,"br"),d.j41(9,"div",5),d.nVh(10,M,2,4,"dx-button",6),d.nVh(11,R,2,4,"dx-button",6),d.j41(12,"dx-button",7),d.bIt("onClick",function(){T.eBV(ee);const be=d.XpG();return T.Njj(be.closePopup())}),d.k0s()()()}if(2&z){const ee=d.XpG();d.R7$(2),d.JRh(ee.scope.currentScope.network.getResourceOrKeyName("web_block_user_dialog_intro_0")),d.R7$(),d.vxM(ee.isBlocked?-1:3),d.R7$(),d.vxM(ee.isBlocked?-1:4),d.R7$(),d.vxM(ee.isBlocked?-1:5),d.R7$(),d.vxM(ee.isBlocked?6:-1),d.R7$(),d.vxM(ee.error?7:-1),d.R7$(3),d.vxM(ee.isBlocked?-1:10),d.R7$(),d.vxM(ee.isBlocked?11:-1),d.R7$(),d.Y8G("text",ee.scope.currentScope.network.getResourceOrKeyName("web_common_cancel"))("elementAttr",d.lJ4(10,x))}}function G(z,K){if(1&z){const ee=d.RV6();d.j41(0,"p"),d.EFF(1),d.k0s(),d.j41(2,"div",5)(3,"a",12),d.bIt("click",function(){T.eBV(ee);const be=d.XpG();return T.Njj(be.closePopup())}),d.nrm(4,"span",13),d.k0s(),d.j41(5,"dx-button",7),d.bIt("onClick",function(){T.eBV(ee);const be=d.XpG();return T.Njj(be.closePopup())}),d.k0s()()}if(2&z){const ee=d.XpG();d.R7$(),d.JRh(ee.scope.currentScope.network.getResourceOrKeyName("web_block_user_dialog_unregistered")),d.R7$(3),d.Y8G("innerHTML",ee.scope.currentScope.network.getResourceOrKeyName("web_root_root_signIn"),d.npT),d.R7$(),d.Y8G("text",ee.scope.currentScope.network.getResourceOrKeyName("web_common_close"))("elementAttr",d.lJ4(4,x))}}let Q=(()=>{var z;class K{constructor(re,be){this.profileService=re,this.scopeService=be,this.visible=!1,this.visibleChange=new d.bkB,this.isBlockedChange=new d.bkB,this.isBlocked=!1,this.working=!1,this.error=!1,this.reason="",this.reasons=[],this.scope=this.scopeService.getScope()}ngOnChanges(re){!0===re.visible?.currentValue&&(this.working=!1,this.error=!1,this.reason="",this.isBlocked||this.buildReasons())}buildReasons(){this.reasons=[{value:"domain_user_report_spam",text:this.scope.network.getResourceOrKeyName("domain_user_report_spam")},{value:"domain_user_report_hate_speech",text:this.scope.network.getResourceOrKeyName("domain_user_report_hate_speech")},{value:"domain_user_report_inappropriate",text:this.scope.network.getResourceOrKeyName("domain_user_report_inappropriate")},{value:"domain_user_report_false_identity",text:this.scope.network.getResourceOrKeyName("domain_user_report_false_identity")}]}blockUser(){var re=this;return(0,S.A)(function*(){re.working=!0,re.error=!1;try{yield re.profileService.block({blockedUserGuid:re.reportedUserGuid,blockingReason:re.reason,performUnblock:!1}),re.working=!1,re.isBlocked=!0,re.isBlockedChange.emit(!0),re.closePopup()}catch{re.error=!0,re.working=!1,re.closePopup()}})()}unblockUser(){var re=this;return(0,S.A)(function*(){re.working=!0,re.error=!1;try{yield re.profileService.block({blockedUserGuid:re.reportedUserGuid,blockingReason:re.reason,performUnblock:!0}),re.isBlocked=!1,re.isBlockedChange.emit(!1),re.working=!1,re.closePopup()}catch{re.error=!0,re.working=!1,re.closePopup()}})()}closePopup(){this.visible=!1,this.visibleChange.emit(this.visible)}static#e=z=()=>(this.\u0275fac=function(be){return new(be||K)(d.rXU(C.p),d.rXU(m.A))},this.\u0275cmp=d.VBU({type:K,selectors:[["app-profile-block-dialog"]],inputs:{visible:"visible",reportedUserGuid:"reportedUserGuid",isBlocked:"isBlocked"},outputs:{visibleChange:"visibleChange",isBlockedChange:"isBlockedChange"},standalone:!1,features:[d.OA$],decls:3,vars:8,consts:[["reasonGroup",""],[3,"visibleChange","onHiding","visible","showCloseButton","showTitle","title","width","height","dragEnabled"],["displayExpr","text","valueExpr","value",3,"items","value","layout","tabIndex","focusStateEnabled","hoverStateEnabled"],[1,"info-text"],[1,"alert","alert-danger"],[1,"action-container"],["stylingMode","contained","type","normal",3,"disabled","elementAttr"],["stylingMode","contained","type","normal",3,"onClick","text","elementAttr"],["displayExpr","text","valueExpr","value",3,"valueChange","items","value","layout","tabIndex","focusStateEnabled","hoverStateEnabled"],["stylingMode","contained","type","normal",3,"onClick","disabled","elementAttr"],[4,"dxTemplate","dxTemplateOf"],[1,"fa","fa-spinner","fa-pulse",2,"margin-right",".5rem"],["href","login",1,"btn","btn-green","action-button",3,"click"],[3,"innerHTML"]],template:function(be,ce){1&be&&(d.j41(0,"dx-popup",1),d.mxI("visibleChange",function(Se){return d.DH7(ce.visible,Se)||(ce.visible=Se),Se}),d.bIt("onHiding",function(){return ce.closePopup()}),d.nVh(1,L,13,11,"div")(2,G,6,5),d.k0s()),2&be&&(d.R50("visible",ce.visible),d.Y8G("showCloseButton",!0)("showTitle",!0)("title",ce.scope.currentScope.network.getResourceOrKeyName("web_block_user_dialog_title"))("width",400)("height","auto")("dragEnabled",!1),d.R7$(),d.vxM(ce.scope.profile.isRegistered?1:2))},dependencies:[e.eC,k.e,w.i,P.s,v.B],styles:[".action-container[_ngcontent-%COMP%]{display:flex;gap:15px}"]}))}return z(),K})()},676:(En,it,p)=>{"use strict";p.d(it,{A:()=>lt});var S=p(1830),d=p(3012),m=p(2660),T=p(6946);const C={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,quarter:7776e6,year:31536e6};function e(Qe){return C[Qe]}const x=["millisecond","second","minute","hour","day","week","month","quarter","year"],j=function(Qe){let Ct,yt,Gt;const ft=["millisecond","second","minute","hour","day","month","year"],nn={};for(Ct=ft.length-1;Ct>=0;Ct--)Gt=ft[Ct],yt=Math.floor(Qe/e(Gt)),yt>0&&(nn[Gt+"s"]=yt,Qe-=X(Gt,yt));return nn};function X(Qe,Ct){return e(Qe)*Ct}function U(Qe){let yt,Ct=-1;return(0,S.Kg)(Qe)?Qe:(0,S.Gv)(Qe)?((0,m.__)(Qe,function(Gt,ft){for(yt=0;yt<x.length;yt++)ft&&(Gt===x[yt]+"s"||Gt===x[yt])&&Ct<yt&&(Ct=yt)}),x[Ct]):""}const Z={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},M=function(Qe){return Math.floor(Qe/3)},H=function(Qe){return 3*M(Qe)};function J(Qe,Ct,yt,Gt){Qe=new Date(Qe.getTime());const ft=new Date(Qe.getTime());let nn,rn;const Mn=U(Ct);switch(Mn){case"second":Qe=new Date(1e3*Math.floor(ft.getTime()/1e3));break;case"minute":Qe=new Date(6e4*Math.floor(ft.getTime()/6e4));break;case"hour":Qe=new Date(36e5*Math.floor(ft.getTime()/36e5));break;case"year":Qe.setMonth(0);case"month":Qe.setDate(1);case"day":Qe.setHours(0,0,0,0);break;case"week":(Qe=Ee(Qe,Gt||0)).setHours(0,0,0,0);break;case"quarter":nn=H(Qe.getMonth()),rn=Qe.getMonth(),Qe.setDate(1),Qe.setHours(0,0,0,0),rn!==nn&&Qe.setMonth(nn)}return yt&&"hour"!==Mn&&"minute"!==Mn&&"second"!==Mn&&qe(ft,Qe),Qe}function R(Qe){return J(Qe,"day")}function Q(Qe,Ct,yt){const Gt=new Date(Qe.getTime()),ft=(0,S.Kg)(Ct)?W(Ct.toLowerCase()):(0,S.kf)(Ct)?j(Ct):Ct;return ft.years&&Gt.setFullYear(Gt.getFullYear()+ft.years*yt),ft.quarters&&Gt.setMonth(Gt.getMonth()+3*ft.quarters*yt),ft.months&&Gt.setMonth(Gt.getMonth()+ft.months*yt),ft.weeks&&Gt.setDate(Gt.getDate()+7*ft.weeks*yt),ft.days&&Gt.setDate(Gt.getDate()+ft.days*yt),ft.hours&&Gt.setTime(Gt.getTime()+36e5*ft.hours*yt),ft.minutes&&Gt.setTime(Gt.getTime()+6e4*ft.minutes*yt),ft.seconds&&Gt.setTime(Gt.getTime()+1e3*ft.seconds*yt),ft.milliseconds&&Gt.setTime(Gt.getTime()+ft.milliseconds*yt),Gt}const z=function(Qe,Ct,yt){const Gt=yt?-1:1;return(0,S.$P)(Qe)?Q(Qe,Ct,Gt):(0,d.Ai)(Qe+Ct*Gt,Ct)};function Re(Qe){return Te(Qe.getFullYear(),Qe.getMonth()+1,0).getDate()}function W(Qe){const Ct={};switch(Qe){case"year":Ct.years=1;break;case"month":Ct.months=1;break;case"quarter":Ct.months=3;break;case"week":Ct.weeks=1;break;case"day":Ct.days=1;break;case"hour":Ct.hours=1;break;case"minute":Ct.minutes=1;break;case"second":Ct.seconds=1;break;case"millisecond":Ct.milliseconds=1}return Ct}function he(Qe,Ct){return Ce(Qe,Ct)&&Qe.getMonth()===Ct.getMonth()}function Ce(Qe,Ct){return Qe&&Ct&&Qe.getFullYear()===Ct.getFullYear()}function ke(Qe){return Qe&&Qe.getFullYear()-Qe.getFullYear()%100}function Ye(Qe){return Qe&&Qe.getFullYear()-Qe.getFullYear()%10}function Ee(Qe,Ct){const yt=(Qe.getDay()-Ct+7)%7,Gt=new Date(Qe);return Gt.setDate(Qe.getDate()-yt),Gt}function le(Qe){return Date.UTC(Qe.getFullYear(),Qe.getMonth(),Qe.getDate())}function Be(Qe){return new Date(Qe,0,1)}function q(Qe){return new Date(Qe,11,31)}function Oe(Qe,Ct){let yt=Qe.getDay()-Ct+1;return yt<=0&&(yt+=7),yt}function Vt(Qe,Ct,yt){let Gt=Qe;return(0,S.O9)(Qe)?((0,S.O9)(Ct)&&Qe<Ct&&(Gt=Ct),(0,S.O9)(yt)&&Qe>yt&&(Gt=yt),Gt):Qe}function qe(Qe,Ct){if(!(0,S.O9)(Qe))return;const yt=Ct.getHours()-Qe.getHours();if(0===yt)return;const Gt=1===yt||-23===yt?-1:1,ft=new Date(Ct.getTime()+36e5*Gt);(Gt>0||ft.getDate()===Ct.getDate())&&Ct.setTime(ft.getTime())}function et(Qe,Ct){return 60*(Ct.getTimezoneOffset()-Qe.getTimezoneOffset())*1e3}const Te=function(Qe){const Ct=new Date(...arguments);return Ct.setFullYear(Qe),Ct},Ne={dateUnitIntervals:x,convertMillisecondsToDateUnits:j,dateToMilliseconds:function(Qe){let Ct=0;return(0,S.Gv)(Qe)&&(0,m.__)(Qe,function(yt,Gt){Ct+=X(yt.substr(0,yt.length-1),Gt)}),(0,S.Kg)(Qe)&&(Ct=X(Qe,1)),Ct},getNextDateUnit:function(Qe,Ct){switch(U(Qe)){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return Ct?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":case"year":return"year";default:return 0}},convertDateUnitToMilliseconds:X,getDateUnitInterval:U,getDateFormatByTickInterval:function A(Qe){return Z[U(Qe)]||""},getDatesDifferences:function(Qe,Ct){let yt=0;const Gt={year:Qe.getFullYear()!==Ct.getFullYear(),month:Qe.getMonth()!==Ct.getMonth(),day:Qe.getDate()!==Ct.getDate(),hour:Qe.getHours()!==Ct.getHours(),minute:Qe.getMinutes()!==Ct.getMinutes(),second:Qe.getSeconds()!==Ct.getSeconds(),millisecond:Qe.getMilliseconds()!==Ct.getMilliseconds()};return(0,m.__)(Gt,function(ft,nn){nn&&yt++}),0===yt&&0!==et(Qe,Ct)&&(Gt.hour=!0,yt++),Gt.count=yt,Gt},correctDateWithUnitBeginning:J,trimTime:R,setToDayEnd:function(Qe){const Ct=R(Qe);return Ct.setDate(Ct.getDate()+1),new Date(Ct.getTime()-1)},roundDateByStartDayHour:function(Qe,Ct){const yt=this.dateTimeFromDecimal(Ct),Gt=new Date(Qe);return(Qe.getHours()===yt.hours&&Qe.getMinutes()<yt.minutes||Qe.getHours()<yt.hours)&&Gt.setHours(yt.hours,yt.minutes,0,0),Gt},dateTimeFromDecimal:function(Qe){return{hours:Math.floor(Qe),minutes:Qe%1*60}},addDateInterval:Q,addInterval:z,getSequenceByInterval:function(Qe,Ct,yt){const Gt=[];let ft;for(Gt.push((0,S.$P)(Qe)?new Date(Qe.getTime()):Qe),ft=Qe;ft<Ct;)ft=z(ft,yt),Gt.push(ft);return Gt},getDateIntervalByString:W,sameHoursAndMinutes:function ye(Qe,Ct){return Qe&&Ct&&Qe.getHours()===Ct.getHours()&&Qe.getMinutes()===Ct.getMinutes()},sameDate:function ie(Qe,Ct){return he(Qe,Ct)&&Qe.getDate()===Ct.getDate()},sameMonthAndYear:he,sameMonth:he,sameYear:Ce,sameDecade:function(Qe,Ct){if(!(0,S.O9)(Qe)||!(0,S.O9)(Ct))return;const yt=Qe.getFullYear()-Qe.getFullYear()%10,Gt=Ct.getFullYear()-Ct.getFullYear()%10;return Qe&&Ct&&yt===Gt},sameCentury:function(Qe,Ct){if(!(0,S.O9)(Qe)||!(0,S.O9)(Ct))return;const yt=Qe.getFullYear()-Qe.getFullYear()%100,Gt=Ct.getFullYear()-Ct.getFullYear()%100;return Qe&&Ct&&yt===Gt},getDifferenceInMonth:function(Qe){let Ct=1;return"year"===Qe&&(Ct=12),"decade"===Qe&&(Ct=120),"century"===Qe&&(Ct=1200),Ct},getDifferenceInMonthForCells:function(Qe){let Ct=1;return"decade"===Qe&&(Ct=12),"century"===Qe&&(Ct=120),Ct},getFirstYearInDecade:Ye,getFirstDecadeInCentury:ke,getShortDateFormat:function(){return"yyyy/MM/dd"},getViewFirstCellDate:function(Qe,Ct){return"month"===Qe?Te(Ct.getFullYear(),Ct.getMonth(),1):"year"===Qe?Te(Ct.getFullYear(),0,Ct.getDate()):"decade"===Qe?Te(Ye(Ct),Ct.getMonth(),Ct.getDate()):"century"===Qe?Te(ke(Ct),Ct.getMonth(),Ct.getDate()):void 0},getViewLastCellDate:function(Qe,Ct){return"month"===Qe?Te(Ct.getFullYear(),Ct.getMonth(),Re(Ct)):"year"===Qe?Te(Ct.getFullYear(),11,Ct.getDate()):"decade"===Qe?Te(Ye(Ct)+9,Ct.getMonth(),Ct.getDate()):"century"===Qe?Te(ke(Ct)+90,Ct.getMonth(),Ct.getDate()):void 0},getViewDown:function(Qe){switch(Qe){case"century":return"decade";case"decade":return"year";case"year":return"month"}},getViewUp:function(Qe){switch(Qe){case"month":return"year";case"year":return"decade";case"decade":return"century"}},getLastMonthDay:Re,getLastMonthDate:function(Qe){if((0,S.O9)(Qe))return Te(Qe.getFullYear(),Qe.getMonth()+1,0)},getFirstMonthDate:function(Qe){if((0,S.O9)(Qe))return Te(Qe.getFullYear(),Qe.getMonth(),1)},getFirstWeekDate:Ee,getWeekNumber:function fe(Qe,Ct,yt){const Gt=Oe(Be(Qe.getFullYear()),Ct),ft=Oe(q(Qe.getFullYear()),Ct),nn=7-Gt+1;let rn=Math.ceil((function Ke(Qe){const Ct=le(Qe)-le(Be(Qe.getFullYear()));return 1+Math.floor(Ct/e("day"))}(Qe)-nn)/7);switch(yt){case"fullWeek":return 7===nn&&rn++,0===rn?fe(q(Qe.getFullYear()-1),Ct,yt):rn;case"firstDay":return nn>0&&rn++,(rn>52&&!(7===Gt||7===ft)||54===rn)&&(rn=1),rn;case"firstFourDays":return nn>3&&rn++,rn>52&&!(4===Gt||4===ft)&&(rn=1),0===rn?fe(q(Qe.getFullYear()-1),Ct,yt):rn}},normalizeDateByWeek:function(Qe,Ct){const yt=Ne.getDatesInterval(Qe,Ct,"day");let Gt=new Date(Qe);return yt>=6&&(Gt=new Date(Gt.setDate(Gt.getDate()+7))),Gt},getQuarter:M,getFirstQuarterMonth:H,dateInRange:function(Qe,Ct,yt,Gt){return"date"===Gt&&(Ct=Ct&&Ne.correctDateWithUnitBeginning(Ct,"day"),yt=yt&&Ne.correctDateWithUnitBeginning(yt,"day"),Qe=Qe&&Ne.correctDateWithUnitBeginning(Qe,"day")),Vt(Qe,Ct,yt)===Qe},intervalsOverlap:function(Qe){const{firstMin:Ct,firstMax:yt,secondMin:Gt,secondMax:ft}=Qe;return Ct<=Gt&&Gt<=yt||Ct>Gt&&Ct<ft||Ct<ft&&yt>ft},roundToHour:function(Qe){const Ct=new Date(Qe.getTime());return Ct.setHours(Ct.getHours()+1),Ct.setMinutes(0),Ct},normalizeDate:Vt,getViewMinBoundaryDate:function(Qe,Ct){const yt=Te(Ct.getFullYear(),Ct.getMonth(),1);return"month"===Qe||(yt.setMonth(0),"year"===Qe)||("decade"===Qe&&yt.setFullYear(Ye(Ct)),"century"===Qe&&yt.setFullYear(ke(Ct))),yt},getViewMaxBoundaryDate:function(Qe,Ct){const yt=new Date(Ct);return yt.setDate(Re(Ct)),"month"===Qe||(yt.setMonth(11),yt.setDate(Re(yt)),"year"===Qe)||("decade"===Qe&&yt.setFullYear(Ye(Ct)+9),"century"===Qe&&yt.setFullYear(ke(Ct)+99)),yt},fixTimezoneGap:qe,getTimezonesDifference:et,makeDate:function(Qe){return new Date(Qe)},getDatesInterval:function(Qe,Ct,yt){const Gt=Ct.getTime()-Qe.getTime(),ft=e(yt)||1;return Math.floor(Gt/ft)},getDatesOfInterval:function(Qe,Ct,yt){const Gt=[];let ft=new Date(Qe.getTime());for(;ft<Ct;)Gt.push(new Date(ft.getTime())),ft=this.addInterval(ft,yt);return Gt},createDateWithFullYear:Te,getMachineTimezoneName:()=>typeof Intl<"u"?Intl.DateTimeFormat().resolvedOptions().timeZone:null,sameView:function(Qe,Ct,yt){return Ne[(0,T.PT)("same "+Qe)](Ct,yt)}},lt=Ne},681:function(En){var S;S=()=>(()=>{var it={1674:(m,T,C)=>{"use strict";C.d(T,{Z:()=>L});var e=C(1233),k=C(3866),w=C(3398);function P(G){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})(G)}function x(G,Q){for(var z=0;z<Q.length;z++){var K=Q[z];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(G,B(K.key),K)}}function B(G){var Q=function j(G,Q){if("object"!==P(G)||null===G)return G;var z=G[Symbol.toPrimitive];if(void 0!==z){var K=z.call(G,Q||"default");if("object"!==P(K))return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Q?String:Number)(G)}(G,"string");return"symbol"===P(Q)?Q:String(Q)}function F(){return F=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Q,z,K){var ee=function X(G,Q){for(;!Object.prototype.hasOwnProperty.call(G,Q)&&null!==(G=R(G)););return G}(Q,z);if(ee){var re=Object.getOwnPropertyDescriptor(ee,z);return re.get?re.get.call(arguments.length<3?Q:K):re.value}},F.apply(this,arguments)}function Z(G,Q){return(Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,ee){return K.__proto__=ee,K})(G,Q)}function R(G){return(R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(z){return z.__proto__||Object.getPrototypeOf(z)})(G)}var L=function(G){!function U(G,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Q&&Q.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Object.defineProperty(G,"prototype",{writable:!1}),Q&&Z(G,Q)}(z,G);var Q=function A(G){var Q=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 ee,K=R(G);if(Q){var re=R(this).constructor;ee=Reflect.construct(K,arguments,re)}else ee=K.apply(this,arguments);return function M(G,Q){if(Q&&("object"===P(Q)||"function"==typeof Q))return Q;if(void 0!==Q)throw new TypeError("Derived constructors may only return object or undefined");return function H(G){if(void 0===G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}(G)}(this,ee)}}(z);function z(K,ee){var re,be,ce=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{allowedTags:[]};return function v(G,Q){if(!(G instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,z),(be=Q.call(this,K,ee,ce)).allowedTags=null!==(re=ce.allowedTags)&&void 0!==re?re:[],be}return function b(G,Q,z){Q&&x(G.prototype,Q),z&&x(G,z),Object.defineProperty(G,"prototype",{writable:!1})}(z,[{key:"add",value:function(ee,re){return k.Mx.call(this,F(R(z.prototype),"add",this),ee,re)}},{key:"remove",value:function(ee){return k.Mx.call(this,F(R(z.prototype),"remove",this),ee)}},{key:"value",value:function(ee){return k.Mx.call(this,F(R(z.prototype),"value",this),ee)}},{key:"canAdd",value:function(ee,re){return k.ud.call(this,F(R(z.prototype),"canAdd",this),ee,re)}}],[{key:"keys",value:function(ee){return(0,k.dj)(F(R(z),"keys",this),ee,w.WT.attribute)}}]),z}(e.Attributor)},3866:(m,T,C)=>{"use strict";C.d(T,{Mx:()=>k,dj:()=>P,ud:()=>w});var e=C(3398);function k(v){var x=this.keyName;this.keyName=(0,e.mQ)(this.keyName);for(var b=arguments.length,B=new Array(b>1?b-1:0),j=1;j<b;j++)B[j-1]=arguments[j];var F=v.call.apply(v,[this].concat(B));return this.keyName=x,F}function w(v,x,b){return this.allowedTags.indexOf(x.tagName)>-1&&v.call(this,x,b)}function P(v,x,b){return v(x).map(function(B){return(0,e.jf)(x.tagName,B,b)})}},4569:(m,T,C)=>{"use strict";C.d(T,{Z:()=>L});var e=C(1233),k=C(3866),w=C(3398);function P(G){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})(G)}function x(G,Q){for(var z=0;z<Q.length;z++){var K=Q[z];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(G,B(K.key),K)}}function B(G){var Q=function j(G,Q){if("object"!==P(G)||null===G)return G;var z=G[Symbol.toPrimitive];if(void 0!==z){var K=z.call(G,Q||"default");if("object"!==P(K))return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Q?String:Number)(G)}(G,"string");return"symbol"===P(Q)?Q:String(Q)}function F(){return F=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Q,z,K){var ee=function X(G,Q){for(;!Object.prototype.hasOwnProperty.call(G,Q)&&null!==(G=R(G)););return G}(Q,z);if(ee){var re=Object.getOwnPropertyDescriptor(ee,z);return re.get?re.get.call(arguments.length<3?Q:K):re.value}},F.apply(this,arguments)}function Z(G,Q){return(Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,ee){return K.__proto__=ee,K})(G,Q)}function R(G){return(R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(z){return z.__proto__||Object.getPrototypeOf(z)})(G)}var L=function(G){!function U(G,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Q&&Q.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Object.defineProperty(G,"prototype",{writable:!1}),Q&&Z(G,Q)}(z,G);var Q=function A(G){var Q=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 ee,K=R(G);if(Q){var re=R(this).constructor;ee=Reflect.construct(K,arguments,re)}else ee=K.apply(this,arguments);return function M(G,Q){if(Q&&("object"===P(Q)||"function"==typeof Q))return Q;if(void 0!==Q)throw new TypeError("Derived constructors may only return object or undefined");return function H(G){if(void 0===G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}(G)}(this,ee)}}(z);function z(K,ee){var re,be,ce=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{allowedTags:[]};return function v(G,Q){if(!(G instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,z),(be=Q.call(this,K,ee,ce)).allowedTags=null!==(re=ce.allowedTags)&&void 0!==re?re:[],be}return function b(G,Q,z){Q&&x(G.prototype,Q),z&&x(G,z),Object.defineProperty(G,"prototype",{writable:!1})}(z,[{key:"add",value:function(ee,re){return k.Mx.call(this,F(R(z.prototype),"add",this),ee,re)}},{key:"remove",value:function(ee){return k.Mx.call(this,F(R(z.prototype),"remove",this),ee)}},{key:"value",value:function(ee){return k.Mx.call(this,F(R(z.prototype),"value",this),ee)}},{key:"canAdd",value:function(ee,re){return k.ud.call(this,F(R(z.prototype),"canAdd",this),ee,re)}}],[{key:"keys",value:function(ee){return(0,k.dj)(F(R(z),"keys",this),ee,w.WT.style)}}]),z}(e.StyleAttributor)},3398:(m,T,C)=>{"use strict";C.d(T,{WT:()=>j,jf:()=>X,mQ:()=>U});var e=C(19),k=C(8252);function w(Z){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(Z)}function P(Z,A){var M=Object.keys(Z);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(Z);A&&(H=H.filter(function(J){return Object.getOwnPropertyDescriptor(Z,J).enumerable})),M.push.apply(M,H)}return M}function v(Z){for(var A=1;A<arguments.length;A++){var M=null!=arguments[A]?arguments[A]:{};A%2?P(Object(M),!0).forEach(function(H){x(Z,H,M[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(M)):P(Object(M)).forEach(function(H){Object.defineProperty(Z,H,Object.getOwnPropertyDescriptor(M,H))})}return Z}function x(Z,A,M){return A=function b(Z){var A=function B(Z,A){if("object"!==w(Z)||null===Z)return Z;var M=Z[Symbol.toPrimitive];if(void 0!==M){var H=M.call(Z,A||"default");if("object"!==w(H))return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===A?String:Number)(Z)}(Z,"string");return"symbol"===w(A)?A:String(A)}(A),A in Z?Object.defineProperty(Z,A,{value:M,enumerable:!0,configurable:!0,writable:!0}):Z[A]=M,Z}var j={attribute:"attr",style:"style"},F=v(v({},e.Sp.allowedTags.reduce(function(Z,A){return Z[A]={name:e.Sp.name,keyNamesSet:e.bc},Z},{})),k.Pw.allowedTags.reduce(function(Z,A){return Z[A]={name:k.Pw.name,keyNamesSet:k.fU},Z},{}));function X(Z,A,M){var H=F[Z];return H&&H.keyNamesSet.has(A)?"".concat(M).concat(H.name,"_").concat(A):A}function U(Z){return Z.replace(/([^]*_)/,"")}},6446:(m,T,C)=>{"use strict";C.d(T,{i2:()=>De,qz:()=>Pe,E2:()=>Ie,ZP:()=>Se});var e=C(9098),k=C.n(e),w=C(1233),P=C(4122),v=C(6603),x=C(8222),b=C(3398);function B(W,ie,he,Ce){return he.map(ye=>{const Me=Ce?(0,b.jf)(W,ye,Ce):ye;return ie.scroll.query(Me,w.Scope.ATTRIBUTE)}).filter(ye=>ye instanceof w.Attributor).reduce((ye,Me)=>(ye[Me.attrName]=Me,ye),{})}function F(W){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ie){return typeof ie}:function(ie){return ie&&"function"==typeof Symbol&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie})(W)}function X(W,ie){var he=Object.keys(W);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(W);ie&&(Ce=Ce.filter(function(ye){return Object.getOwnPropertyDescriptor(W,ye).enumerable})),he.push.apply(he,Ce)}return he}function U(W){for(var ie=1;ie<arguments.length;ie++){var he=null!=arguments[ie]?arguments[ie]:{};ie%2?X(Object(he),!0).forEach(function(Ce){Z(W,Ce,he[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(he)):X(Object(he)).forEach(function(Ce){Object.defineProperty(W,Ce,Object.getOwnPropertyDescriptor(he,Ce))})}return W}function Z(W,ie,he){return(ie=J(ie))in W?Object.defineProperty(W,ie,{value:he,enumerable:!0,configurable:!0,writable:!0}):W[ie]=he,W}function A(W,ie){if(!(W instanceof ie))throw new TypeError("Cannot call a class as a function")}function M(W,ie){for(var he=0;he<ie.length;he++){var Ce=ie[he];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(W,J(Ce.key),Ce)}}function H(W,ie,he){return ie&&M(W.prototype,ie),he&&M(W,he),Object.defineProperty(W,"prototype",{writable:!1}),W}function J(W){var ie=function R(W,ie){if("object"!==F(W)||null===W)return W;var he=W[Symbol.toPrimitive];if(void 0!==he){var Ce=he.call(W,ie||"default");if("object"!==F(Ce))return Ce;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ie?String:Number)(W)}(W,"string");return"symbol"===F(ie)?ie:String(ie)}function L(){return L=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(ie,he,Ce){var ye=function G(W,ie){for(;!Object.prototype.hasOwnProperty.call(W,ie)&&null!==(W=ce(W)););return W}(ie,he);if(ye){var Me=Object.getOwnPropertyDescriptor(ye,he);return Me.get?Me.get.call(arguments.length<3?ie:Ce):Me.value}},L.apply(this,arguments)}function Q(W,ie){if("function"!=typeof ie&&null!==ie)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(ie&&ie.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),Object.defineProperty(W,"prototype",{writable:!1}),ie&&z(W,ie)}function z(W,ie){return(z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Ce,ye){return Ce.__proto__=ye,Ce})(W,ie)}function K(W){var ie=function be(){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,Ce=ce(W);if(ie){var Me=ce(this).constructor;ye=Reflect.construct(Ce,arguments,Me)}else ye=Ce.apply(this,arguments);return function ee(W,ie){if(ie&&("object"===F(ie)||"function"==typeof ie))return ie;if(void 0!==ie)throw new TypeError("Derived constructors may only return object or undefined");return function re(W){if(void 0===W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}(W)}(this,ye)}}function ce(W){return(ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(he){return he.__proto__||Object.getPrototypeOf(he)})(W)}!function j(){w.AttributorStore.prototype.build=function(){const{tagName:W}=this.domNode,ie=w.Registry.find(this.domNode);if(null==ie)return;const he=w.Attributor.keys(this.domNode),Ce=w.ClassAttributor.keys(this.domNode),ye=w.StyleAttributor.keys(this.domNode);this.attributes={...B(W,ie,he,b.WT.attribute),...B(W,ie,Ce),...B(W,ie,ye,b.WT.style)}}}();var Se=function(W){Q(he,W);var ie=K(he);function he(Ce,ye){var Me;return A(this,he),(Me=ie.call(this,Ce,ye)).cache={},Me}return H(he,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=Pe(this)),this.cache.delta}},{key:"deleteAt",value:function(ye,Me){L(ce(he.prototype),"deleteAt",this).call(this,ye,Me),this.cache={}}},{key:"formatAt",value:function(ye,Me,_e,ke){Me<=0||(this.scroll.query(_e,w.Scope.BLOCK)?ye+Me===this.length()&&this.format(_e,ke):L(ce(he.prototype),"formatAt",this).call(this,ye,Math.min(Me,this.length()-ye-1),_e,ke),this.cache={})}},{key:"insertAt",value:function(ye,Me,_e){if(null!=_e)return L(ce(he.prototype),"insertAt",this).call(this,ye,Me,_e),void(this.cache={});if(0!==Me.length){var ke=Me.split("\n"),Ye=ke.shift();Ye.length>0&&(ye<this.length()-1||null==this.children.tail?L(ce(he.prototype),"insertAt",this).call(this,Math.min(ye,this.length()-1),Ye):this.children.tail.insertAt(this.children.tail.length(),Ye),this.cache={});var de=this;ke.reduce(function(Ae,pe){return(de=de.split(Ae,!0)).insertAt(0,pe),pe.length},ye+Ye.length)}}},{key:"insertBefore",value:function(ye,Me){var _e=this.children.head;(!Me||this.domNode.contains(Me.domNode))&&L(ce(he.prototype),"insertBefore",this).call(this,ye,Me),_e instanceof P.Z&&_e.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=L(ce(he.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(ye,Me){L(ce(he.prototype),"moveChildren",this).call(this,ye,Me),this.cache={}}},{key:"optimize",value:function(ye){L(ce(he.prototype),"optimize",this).call(this,ye),this.cache={}}},{key:"path",value:function(ye){return L(ce(he.prototype),"path",this).call(this,ye,!0)}},{key:"removeChild",value:function(ye){L(ce(he.prototype),"removeChild",this).call(this,ye),this.cache={}}},{key:"split",value:function(ye){var Me=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Me&&(0===ye||ye>=this.length()-1)){var _e=this.clone();return 0===ye?(this.parent.insertBefore(_e,this),this):(this.parent.insertBefore(_e,this.next),_e)}var ke=L(ce(he.prototype),"split",this).call(this,ye,Me);return this.cache={},ke}}]),he}(w.BlockBlot);Se.blotName="block",Se.tagName="P",Se.defaultChild=P.Z,Se.allowedChildren=[P.Z,v.Z,w.EmbedBlot,x.Z];var De=function(W){Q(he,W);var ie=K(he);function he(){return A(this,he),ie.apply(this,arguments)}return H(he,[{key:"attach",value:function(){L(ce(he.prototype),"attach",this).call(this),this.attributes=new w.AttributorStore(this.domNode)}},{key:"delta",value:function(){return(new(k())).insert(this.value(),U(U({},this.formats()),this.attributes.values()))}},{key:"format",value:function(ye,Me){var _e=this.scroll.query(ye,w.Scope.BLOCK_ATTRIBUTE);null!=_e&&this.attributes.attribute(_e,Me)}},{key:"formatAt",value:function(ye,Me,_e,ke){this.format(_e,ke)}},{key:"insertAt",value:function(ye,Me,_e){if("string"==typeof Me&&Me.endsWith("\n")){var ke=this.scroll.create(Se.blotName);this.parent.insertBefore(ke,0===ye?this:this.next),ke.insertAt(0,Me.slice(0,-1))}else L(ce(he.prototype),"insertAt",this).call(this,ye,Me,_e)}}]),he}(w.EmbedBlot);function Pe(W){var ie=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return W.descendants(w.LeafBlot).reduce(function(he,Ce){return 0===Ce.length()?he:he.insert(Ce.value(),Ie(Ce,{},ie))},new(k())).insert("\n",Ie(W))}function Ie(W){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},he=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==W||("function"==typeof W.formats&&(ie=U(U({},ie),W.formats()),he&&delete ie["code-token"]),null==W.parent||"scroll"===W.parent.statics.blotName||W.parent.statics.scope!==W.statics.scope)?ie:Ie(W.parent,ie,he)}De.scope=w.Scope.BLOCK_BLOT},4122:(m,T,C)=>{"use strict";function k(J){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(J)}function P(J,R){for(var L=0;L<R.length;L++){var G=R[L];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(J,x(G.key),G)}}function x(J){var R=function b(J,R){if("object"!==k(J)||null===J)return J;var L=J[Symbol.toPrimitive];if(void 0!==L){var G=L.call(J,R||"default");if("object"!==k(G))return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===R?String:Number)(J)}(J,"string");return"symbol"===k(R)?R:String(R)}function j(J,R){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,Q){return G.__proto__=Q,G})(J,R)}function A(J){return(A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)})(J)}C.d(T,{Z:()=>H});var M=function(J){!function B(J,R){if("function"!=typeof R&&null!==R)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(R&&R.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),R&&j(J,R)}(L,J);var R=function F(J){var R=function Z(){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 Q,G=A(J);if(R){var z=A(this).constructor;Q=Reflect.construct(G,arguments,z)}else Q=G.apply(this,arguments);return function X(J,R){if(R&&("object"===k(R)||"function"==typeof R))return R;if(void 0!==R)throw new TypeError("Derived constructors may only return object or undefined");return function U(J){if(void 0===J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}(J)}(this,Q)}}(L);function L(){return function w(J,R){if(!(J instanceof R))throw new TypeError("Cannot call a class as a function")}(this,L),R.apply(this,arguments)}return function v(J,R,L){R&&P(J.prototype,R),L&&P(J,L),Object.defineProperty(J,"prototype",{writable:!1})}(L,[{key:"optimize",value:function(){(this.prev||this.next)&&this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),L}(C(1233).EmbedBlot);M.blotName="break",M.tagName="BR";const H=M},3553:(m,T,C)=>{"use strict";function k(J){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(J)}function w(J,R){for(var L=0;L<R.length;L++){var G=R[L];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(J,v(G.key),G)}}function v(J){var R=function x(J,R){if("object"!==k(J)||null===J)return J;var L=J[Symbol.toPrimitive];if(void 0!==L){var G=L.call(J,R||"default");if("object"!==k(G))return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===R?String:Number)(J)}(J,"string");return"symbol"===k(R)?R:String(R)}function j(J,R){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,Q){return G.__proto__=Q,G})(J,R)}function A(J){return(A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)})(J)}C.d(T,{Z:()=>H});var M=function(J){!function B(J,R){if("function"!=typeof R&&null!==R)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(R&&R.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),R&&j(J,R)}(L,J);var R=function F(J){var R=function Z(){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 Q,G=A(J);if(R){var z=A(this).constructor;Q=Reflect.construct(G,arguments,z)}else Q=G.apply(this,arguments);return function X(J,R){if(R&&("object"===k(R)||"function"==typeof R))return R;if(void 0!==R)throw new TypeError("Derived constructors may only return object or undefined");return function U(J){if(void 0===J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}(J)}(this,Q)}}(L);function L(){return function b(J,R){if(!(J instanceof R))throw new TypeError("Cannot call a class as a function")}(this,L),R.apply(this,arguments)}return function P(J,R,L){return R&&w(J.prototype,R),L&&w(J,L),Object.defineProperty(J,"prototype",{writable:!1}),J}(L)}(C(1233).ContainerBlot);const H=M},3657:(m,T,C)=>{"use strict";C.d(T,{Z:()=>L});var e=C(1233),k=C(8222);function w(G){return(w="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})(G)}function v(G,Q){for(var z=0;z<Q.length;z++){var K=Q[z];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(G,b(K.key),K)}}function b(G){var Q=function B(G,Q){if("object"!==w(G)||null===G)return G;var z=G[Symbol.toPrimitive];if(void 0!==z){var K=z.call(G,Q||"default");if("object"!==w(K))return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Q?String:Number)(G)}(G,"string");return"symbol"===w(Q)?Q:String(Q)}function j(){return j=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Q,z,K){var ee=function F(G,Q){for(;!Object.prototype.hasOwnProperty.call(G,Q)&&null!==(G=J(G)););return G}(Q,z);if(ee){var re=Object.getOwnPropertyDescriptor(ee,z);return re.get?re.get.call(arguments.length<3?Q:K):re.value}},j.apply(this,arguments)}function U(G,Q){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,ee){return K.__proto__=ee,K})(G,Q)}function J(G){return(J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(z){return z.__proto__||Object.getPrototypeOf(z)})(G)}var R=function(G){!function X(G,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Q&&Q.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Object.defineProperty(G,"prototype",{writable:!1}),Q&&U(G,Q)}(z,G);var Q=function Z(G){var Q=function H(){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 ee,K=J(G);if(Q){var re=J(this).constructor;ee=Reflect.construct(K,arguments,re)}else ee=K.apply(this,arguments);return function A(G,Q){if(Q&&("object"===w(Q)||"function"==typeof Q))return Q;if(void 0!==Q)throw new TypeError("Derived constructors may only return object or undefined");return function M(G){if(void 0===G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}(G)}(this,ee)}}(z);function z(K,ee,re){var be;return function P(G,Q){if(!(G instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,z),(be=Q.call(this,K,ee)).selection=re,be.textNode=document.createTextNode(z.CONTENTS),be.domNode.appendChild(be.textNode),be.savedLength=0,be}return function x(G,Q,z){Q&&v(G.prototype,Q),z&&v(G,z),Object.defineProperty(G,"prototype",{writable:!1})}(z,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(ee,re){if(0===this.savedLength){for(var be=this,ce=0;null!=be&&be.statics.scope!==e.Scope.BLOCK_BLOT;)ce+=be.offset(be.parent),be=be.parent;null!=be&&(this.savedLength=z.CONTENTS.length,be.optimize(),be.formatAt(ce,z.CONTENTS.length,ee,re),this.savedLength=0)}else j(J(z.prototype),"format",this).call(this,ee,re)}},{key:"index",value:function(ee,re){return ee===this.textNode?0:j(J(z.prototype),"index",this).call(this,ee,re)}},{key:"length",value:function(){return this.savedLength}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){j(J(z.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(this.selection.composing||null==this.parent)return null;for(var ee=this.selection.getNativeRange();null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);var Pe,re=this.prev instanceof k.Z?this.prev:null,be=re?re.length():0,ce=this.next instanceof k.Z?this.next:null,Re=ce?ce.text:"",Se=this.textNode,De=Se.data.split(z.CONTENTS).join("");if(Se.data=z.CONTENTS,re)Pe=re,(De||ce)&&(re.insertAt(re.length(),De+Re),ce&&ce.remove());else if(ce)Pe=ce,ce.insertAt(0,De);else{var Ie=document.createTextNode(De);Pe=this.scroll.create(Ie),this.parent.insertBefore(Pe,this)}if(this.remove(),ee){var W=function(ye,Me){return re&&ye===re.domNode?Me:ye===Se?be+Me-1:ce&&ye===ce.domNode?be+De.length+Me:null},ie=W(ee.start.node,ee.start.offset),he=W(ee.end.node,ee.end.offset);if(null!==ie&&null!==he)return{startNode:Pe.domNode,startOffset:ie,endNode:Pe.domNode,endOffset:he}}return null}},{key:"update",value:function(ee,re){var be=this;if(ee.some(function(Re){return"characterData"===Re.type&&Re.target===be.textNode})){var ce=this.restore();ce&&(re.range=ce)}}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),z}(e.EmbedBlot);R.blotName="cursor",R.className="ql-cursor",R.tagName="span",R.CONTENTS="\ufeff";const L=R},7452:(m,T,C)=>{"use strict";C.d(T,{Z:()=>G});var e=C(1233),k=C(8222);function w(Q){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(z){return typeof z}:function(z){return z&&"function"==typeof Symbol&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z})(Q)}function v(Q,z){for(var K=0;K<z.length;K++){var ee=z[K];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(Q,b(ee.key),ee)}}function b(Q){var z=function B(Q,z){if("object"!==w(Q)||null===Q)return Q;var K=Q[Symbol.toPrimitive];if(void 0!==K){var ee=K.call(Q,z||"default");if("object"!==w(ee))return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===z?String:Number)(Q)}(Q,"string");return"symbol"===w(z)?z:String(z)}function j(){return j=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(z,K,ee){var re=function F(Q,z){for(;!Object.prototype.hasOwnProperty.call(Q,z)&&null!==(Q=J(Q)););return Q}(z,K);if(re){var be=Object.getOwnPropertyDescriptor(re,K);return be.get?be.get.call(arguments.length<3?z:ee):be.value}},j.apply(this,arguments)}function U(Q,z){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,re){return ee.__proto__=re,ee})(Q,z)}function J(Q){return(J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)})(Q)}var R="\ufeff";const G=function(Q){!function X(Q,z){if("function"!=typeof z&&null!==z)throw new TypeError("Super expression must either be null or a function");Q.prototype=Object.create(z&&z.prototype,{constructor:{value:Q,writable:!0,configurable:!0}}),Object.defineProperty(Q,"prototype",{writable:!1}),z&&U(Q,z)}(K,Q);var z=function Z(Q){var z=function H(){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 re,ee=J(Q);if(z){var be=J(this).constructor;re=Reflect.construct(ee,arguments,be)}else re=ee.apply(this,arguments);return function A(Q,z){if(z&&("object"===w(z)||"function"==typeof z))return z;if(void 0!==z)throw new TypeError("Derived constructors may only return object or undefined");return function M(Q){if(void 0===Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}(Q)}(this,re)}}(K);function K(ee,re){var be;return function P(Q,z){if(!(Q instanceof z))throw new TypeError("Cannot call a class as a function")}(this,K),(be=z.call(this,ee,re)).contentNode=document.createElement("span"),be.contentNode.setAttribute("contenteditable",!1),Array.from(be.domNode.childNodes).forEach(function(ce){be.contentNode.appendChild(ce)}),be.leftGuard=document.createTextNode(R),be.rightGuard=document.createTextNode(R),be.domNode.appendChild(be.leftGuard),be.domNode.appendChild(be.contentNode),be.domNode.appendChild(be.rightGuard),be}return function x(Q,z,K){z&&v(Q.prototype,z),K&&v(Q,K),Object.defineProperty(Q,"prototype",{writable:!1})}(K,[{key:"index",value:function(re,be){return re===this.leftGuard?0:re===this.rightGuard?1:j(J(K.prototype),"index",this).call(this,re,be)}},{key:"restore",value:function(re){var be,ce,Re=re.data.split(R).join("");if(re===this.leftGuard)if(this.prev instanceof k.Z){var Se=this.prev.length();this.prev.insertAt(Se,Re),be={startNode:this.prev.domNode,startOffset:Se+Re.length}}else ce=document.createTextNode(Re),this.parent.insertBefore(this.scroll.create(ce),this),be={startNode:ce,startOffset:Re.length};else re===this.rightGuard&&(this.next instanceof k.Z?(this.next.insertAt(0,Re),be={startNode:this.next.domNode,startOffset:Re.length}):(ce=document.createTextNode(Re),this.parent.insertBefore(this.scroll.create(ce),this.next),be={startNode:ce,startOffset:Re.length}));return re.data=R,be}},{key:"update",value:function(re,be){var ce=this;re.forEach(function(Re){if("characterData"===Re.type&&(Re.target===ce.leftGuard||Re.target===ce.rightGuard)){var Se=ce.restore(Re.target);Se&&(be.range=Se)}})}}]),K}(e.EmbedBlot)},6603:(m,T,C)=>{"use strict";C.d(T,{Z:()=>G});var e=C(1233),k=C(4122),w=C(8222);function P(Q){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(z){return typeof z}:function(z){return z&&"function"==typeof Symbol&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z})(Q)}function x(Q,z){for(var K=0;K<z.length;K++){var ee=z[K];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(Q,B(ee.key),ee)}}function B(Q){var z=function j(Q,z){if("object"!==P(Q)||null===Q)return Q;var K=Q[Symbol.toPrimitive];if(void 0!==K){var ee=K.call(Q,z||"default");if("object"!==P(ee))return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===z?String:Number)(Q)}(Q,"string");return"symbol"===P(z)?z:String(z)}function F(){return F=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(z,K,ee){var re=function X(Q,z){for(;!Object.prototype.hasOwnProperty.call(Q,z)&&null!==(Q=R(Q)););return Q}(z,K);if(re){var be=Object.getOwnPropertyDescriptor(re,K);return be.get?be.get.call(arguments.length<3?z:ee):be.value}},F.apply(this,arguments)}function Z(Q,z){return(Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,re){return ee.__proto__=re,ee})(Q,z)}function R(Q){return(R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)})(Q)}var L=function(Q){!function U(Q,z){if("function"!=typeof z&&null!==z)throw new TypeError("Super expression must either be null or a function");Q.prototype=Object.create(z&&z.prototype,{constructor:{value:Q,writable:!0,configurable:!0}}),Object.defineProperty(Q,"prototype",{writable:!1}),z&&Z(Q,z)}(K,Q);var z=function A(Q){var z=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 re,ee=R(Q);if(z){var be=R(this).constructor;re=Reflect.construct(ee,arguments,be)}else re=ee.apply(this,arguments);return function M(Q,z){if(z&&("object"===P(z)||"function"==typeof z))return z;if(void 0!==z)throw new TypeError("Derived constructors may only return object or undefined");return function H(Q){if(void 0===Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}(Q)}(this,re)}}(K);function K(){return function v(Q,z){if(!(Q instanceof z))throw new TypeError("Cannot call a class as a function")}(this,K),z.apply(this,arguments)}return function b(Q,z,K){z&&x(Q.prototype,z),K&&x(Q,K),Object.defineProperty(Q,"prototype",{writable:!1})}(K,[{key:"formatAt",value:function(re,be,ce,Re){if(K.compare(this.statics.blotName,ce)<0&&this.scroll.query(ce,e.Scope.BLOT)){var Se=this.isolate(re,be);Re&&Se.wrap(ce,Re)}else F(R(K.prototype),"formatAt",this).call(this,re,be,ce,Re)}},{key:"optimize",value:function(re){if(F(R(K.prototype),"optimize",this).call(this,re),this.parent instanceof K&&K.compare(this.statics.blotName,this.parent.statics.blotName)>0){var be=this.parent.isolate(this.offset(),this.length());this.moveChildren(be),be.wrap(this)}}}],[{key:"compare",value:function(re,be){var ce=K.order.indexOf(re),Re=K.order.indexOf(be);return ce>=0||Re>=0?ce-Re:re===be?0:re<be?-1:1}}]),K}(e.InlineBlot);L.allowedChildren=[L,k.Z,e.EmbedBlot,w.Z],L.order=["cursor","inline","link","underline","strike","italic","bold","script","code"];const G=L},3272:(m,T,C)=>{"use strict";C.d(T,{Z:()=>De});var e=C(1233),k=C(2069),w=C(6446),P=C(4122),v=C(3553),x=C(1969);function b(Pe){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ie){return typeof Ie}:function(Ie){return Ie&&"function"==typeof Symbol&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie})(Pe)}function B(Pe,Ie){return function Z(Pe){if(Array.isArray(Pe))return Pe}(Pe)||function U(Pe,Ie){var W=null==Pe?null:typeof Symbol<"u"&&Pe[Symbol.iterator]||Pe["@@iterator"];if(null!=W){var ie,he,Ce,ye,Me=[],_e=!0,ke=!1;try{if(Ce=(W=W.call(Pe)).next,0===Ie){if(Object(W)!==W)return;_e=!1}else for(;!(_e=(ie=Ce.call(W)).done)&&(Me.push(ie.value),Me.length!==Ie);_e=!0);}catch(Ye){ke=!0,he=Ye}finally{try{if(!_e&&null!=W.return&&(ye=W.return(),Object(ye)!==ye))return}finally{if(ke)throw he}}return Me}}(Pe,Ie)||function F(Pe,Ie){if(Pe){if("string"==typeof Pe)return X(Pe,Ie);var W=Object.prototype.toString.call(Pe).slice(8,-1);if("Object"===W&&Pe.constructor&&(W=Pe.constructor.name),"Map"===W||"Set"===W)return Array.from(Pe);if("Arguments"===W||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return X(Pe,Ie)}}(Pe,Ie)||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 X(Pe,Ie){(null==Ie||Ie>Pe.length)&&(Ie=Pe.length);for(var W=0,ie=new Array(Ie);W<Ie;W++)ie[W]=Pe[W];return ie}function M(Pe,Ie){for(var W=0;W<Ie.length;W++){var ie=Ie[W];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(Pe,J(ie.key),ie)}}function J(Pe){var Ie=function R(Pe,Ie){if("object"!==b(Pe)||null===Pe)return Pe;var W=Pe[Symbol.toPrimitive];if(void 0!==W){var ie=W.call(Pe,Ie||"default");if("object"!==b(ie))return ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Ie?String:Number)(Pe)}(Pe,"string");return"symbol"===b(Ie)?Ie:String(Ie)}function L(){return L=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Ie,W,ie){var he=function G(Pe,Ie){for(;!Object.prototype.hasOwnProperty.call(Pe,Ie)&&null!==(Pe=ce(Pe)););return Pe}(Ie,W);if(he){var Ce=Object.getOwnPropertyDescriptor(he,W);return Ce.get?Ce.get.call(arguments.length<3?Ie:ie):Ce.value}},L.apply(this,arguments)}function z(Pe,Ie){return(z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ie,he){return ie.__proto__=he,ie})(Pe,Ie)}function ce(Pe){return(ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)})(Pe)}function Re(Pe){return Pe instanceof w.ZP||Pe instanceof w.i2}var Se=function(Pe){!function Q(Pe,Ie){if("function"!=typeof Ie&&null!==Ie)throw new TypeError("Super expression must either be null or a function");Pe.prototype=Object.create(Ie&&Ie.prototype,{constructor:{value:Pe,writable:!0,configurable:!0}}),Object.defineProperty(Pe,"prototype",{writable:!1}),Ie&&z(Pe,Ie)}(W,Pe);var Ie=function K(Pe){var Ie=function be(){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 he,ie=ce(Pe);if(Ie){var Ce=ce(this).constructor;he=Reflect.construct(ie,arguments,Ce)}else he=ie.apply(this,arguments);return function ee(Pe,Ie){if(Ie&&("object"===b(Ie)||"function"==typeof Ie))return Ie;if(void 0!==Ie)throw new TypeError("Derived constructors may only return object or undefined");return function re(Pe){if(void 0===Pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pe}(Pe)}(this,he)}}(W);function W(ie,he,Ce){var ye,Me=Ce.emitter,_e=Ce.toggleBlankClass;return function A(Pe,Ie){if(!(Pe instanceof Ie))throw new TypeError("Cannot call a class as a function")}(this,W),(ye=Ie.call(this,ie,he)).emitter=Me,ye.toggleBlankClass=_e,ye.batch=!1,ye.optimize(),ye.enable(),ye.domNode.addEventListener("dragstart",function(ke){return ye.handleDragStart(ke)}),ye}return function H(Pe,Ie,W){Ie&&M(Pe.prototype,Ie),W&&M(Pe,W),Object.defineProperty(Pe,"prototype",{writable:!1})}(W,[{key:"batchStart",value:function(){Array.isArray(this.batch)||(this.batch=[])}},{key:"batchEnd",value:function(){var he=this.batch;this.batch=!1,this.update(he)}},{key:"emitMount",value:function(he){this.emitter.emit(k.Z.events.SCROLL_BLOT_MOUNT,he)}},{key:"emitUnmount",value:function(he){this.emitter.emit(k.Z.events.SCROLL_BLOT_UNMOUNT,he)}},{key:"deleteAt",value:function(he,Ce){var Me=B(this.line(he),2),_e=Me[0],ke=Me[1],Ae=B(this.line(he+Ce),1)[0];L(ce(W.prototype),"deleteAt",this).call(this,he,Ce),null!=Ae&&_e!==Ae&&ke>0&&(_e instanceof w.i2||Ae instanceof w.i2||(_e instanceof x.zW||Ae instanceof x.zW)&&_e.parent!==Ae.parent||(_e.moveChildren(Ae,Ae.children.head instanceof P.Z?null:Ae.children.head),_e.remove())),this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(he,Ce,ye,Me){L(ce(W.prototype),"formatAt",this).call(this,he,Ce,ye,Me),this.optimize()}},{key:"handleDragStart",value:function(he){he.preventDefault()}},{key:"insertAt",value:function(he,Ce,ye){if(he>=this.length())if(null==ye||null==this.scroll.query(Ce,e.Scope.BLOCK)){var Me=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(Me),null==ye&&Ce.endsWith("\n")?Me.insertAt(0,Ce.slice(0,-1),ye):Me.insertAt(0,Ce,ye)}else{var _e=this.scroll.create(Ce,ye);this.appendChild(_e)}else L(ce(W.prototype),"insertAt",this).call(this,he,Ce,ye);this.optimize()}},{key:"insertBefore",value:function(he,Ce){if(he.statics.scope===e.Scope.INLINE_BLOT){var ye=this.scroll.create(this.statics.defaultChild.blotName);ye.appendChild(he),L(ce(W.prototype),"insertBefore",this).call(this,ye,Ce)}else L(ce(W.prototype),"insertBefore",this).call(this,he,Ce)}},{key:"isEnabled",value:function(){return"true"===this.domNode.getAttribute("contenteditable")}},{key:"leaf",value:function(he){return this.path(he).pop()||[null,-1]}},{key:"line",value:function(he){return he===this.length()?this.line(he-1):this.descendant(Re,he)}},{key:"lines",value:function(){return function Me(_e,ke,Ye){var de=[],Ae=Ye;return _e.children.forEachAt(ke,Ye,function(pe,Ee,le){Re(pe)?de.push(pe):pe instanceof e.ContainerBlot&&(de=de.concat(Me(pe,Ee,Ae))),Ae-=le}),de}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(L(ce(W.prototype),"optimize",this).call(this,he,Ce),he.length>0&&this.emitter.emit(k.Z.events.SCROLL_OPTIMIZE,he,Ce))}},{key:"path",value:function(he){return L(ce(W.prototype),"path",this).call(this,he).slice(1)}},{key:"remove",value:function(){}},{key:"update",value:function(he){var Ce=this;if(this.batch)Array.isArray(he)&&(this.batch=this.batch.concat(he),this.toggleBlankClass());else{var ye=k.Z.sources.USER;"string"==typeof he&&(ye=he),Array.isArray(he)||(he=this.observer.takeRecords()),(he=he.filter(function(Me){var ke=Ce.find(Me.target,!0);return ke&&ke.scroll===Ce})).length>0&&this.emitter.emit(k.Z.events.SCROLL_BEFORE_UPDATE,ye,he),L(ce(W.prototype),"update",this).call(this,he.concat([])),he.length>0&&this.emitter.emit(k.Z.events.SCROLL_UPDATE,ye,he)}}}]),W}(e.ScrollBlot);Se.blotName="scroll",Se.className="ql-editor",Se.tagName="DIV",Se.defaultChild=w.ZP,Se.allowedChildren=[w.ZP,w.i2,v.Z];const De=Se},8222:(m,T,C)=>{"use strict";function k(J){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(J)}function w(J,R){for(var L=0;L<R.length;L++){var G=R[L];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(J,v(G.key),G)}}function v(J){var R=function x(J,R){if("object"!==k(J)||null===J)return J;var L=J[Symbol.toPrimitive];if(void 0!==L){var G=L.call(J,R||"default");if("object"!==k(G))return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===R?String:Number)(J)}(J,"string");return"symbol"===k(R)?R:String(R)}function j(J,R){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,Q){return G.__proto__=Q,G})(J,R)}function A(J){return(A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)})(J)}C.d(T,{Z:()=>M,b:()=>H});var M=function(J){!function B(J,R){if("function"!=typeof R&&null!==R)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(R&&R.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),R&&j(J,R)}(L,J);var R=function F(J){var R=function Z(){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 Q,G=A(J);if(R){var z=A(this).constructor;Q=Reflect.construct(G,arguments,z)}else Q=G.apply(this,arguments);return function X(J,R){if(R&&("object"===k(R)||"function"==typeof R))return R;if(void 0!==R)throw new TypeError("Derived constructors may only return object or undefined");return function U(J){if(void 0===J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}(J)}(this,Q)}}(L);function L(){return function b(J,R){if(!(J instanceof R))throw new TypeError("Cannot call a class as a function")}(this,L),R.apply(this,arguments)}return function P(J,R,L){return R&&w(J.prototype,R),L&&w(J,L),Object.defineProperty(J,"prototype",{writable:!1}),J}(L)}(C(1233).TextBlot);function H(J){return J.replace(/[&<>"']/g,function(R){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[R]})}},2432:(m,T,C)=>{"use strict";C.d(T,{default:()=>M});var e=C(281),k=C(6446),w=C(4122),P=C(3553),v=C(3657),x=C(7452),b=C(6603),B=C(3272),j=C(8222),F=C(5635),X=C(2613),U=C(3071),Z=C(3859),A=C(990);e.ZP.register({"blots/block":k.ZP,"blots/block/embed":k.i2,"blots/break":w.Z,"blots/container":P.Z,"blots/cursor":v.Z,"blots/embed":x.Z,"blots/inline":b.Z,"blots/scroll":B.Z,"blots/text":j.Z,"modules/clipboard":F.ZP,"modules/history":X.Z,"modules/keyboard":U.ZP,"modules/uploader":Z.Z,"modules/input":A.Z});const M=e.ZP},6229:(m,T,C)=>{"use strict";C.d(T,{Z:()=>F});var e=C(7452),k=C(2069);function w(X){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(U){return typeof U}:function(U){return U&&"function"==typeof Symbol&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U})(X)}function v(X,U){for(var Z=0;Z<U.length;Z++){var A=U[Z];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(X,b(A.key),A)}}function b(X){var U=function B(X,U){if("object"!==w(X)||null===X)return X;var Z=X[Symbol.toPrimitive];if(void 0!==Z){var A=Z.call(X,U||"default");if("object"!==w(A))return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===U?String:Number)(X)}(X,"string");return"symbol"===w(U)?U:String(U)}const F=function(){function X(U,Z){var A=this;(function P(X,U){if(!(X instanceof U))throw new TypeError("Cannot call a class as a function")})(this,X),this.scroll=U,this.emitter=Z,this.isComposing=!1,U.domNode.addEventListener("compositionstart",function(M){A.isComposing||A.handleCompositionStart(M)}),U.domNode.addEventListener("compositionend",function(M){A.isComposing&&A.handleCompositionEnd(M)})}return function x(X,U,Z){U&&v(X.prototype,U),Z&&v(X,Z),Object.defineProperty(X,"prototype",{writable:!1})}(X,[{key:"isCompositionInProgress",value:function(){return this.isComposing}},{key:"handleCompositionStart",value:function(Z){var A=Z.target instanceof Node?this.scroll.find(Z.target,!0):null;A&&!(A instanceof e.Z)&&(this.emitter.emit(k.Z.events.COMPOSITION_BEFORE_START,Z),this.scroll.batchStart(),this.emitter.emit(k.Z.events.COMPOSITION_START,Z),this.isComposing=!0)}},{key:"handleCompositionEnd",value:function(Z){this.emitter.emit(k.Z.events.COMPOSITION_BEFORE_END,Z),this.scroll.batchEnd(),this.emitter.emit(k.Z.events.COMPOSITION_END,Z),this.isComposing=!1}}]),X}()},2861:(m,T,C)=>{"use strict";C.d(T,{Z:()=>Ke});var e=C(8805),k=C.n(e),w=C(2722),P=C.n(w),v=C(732),x=C.n(v),b=C(9098),B=C.n(b),j=C(1233),F=C(7800),X=C(3657),U=C(6446),Z=C(4122),A=C(8222),H=C(5874);function L(Be,q){var Oe=Object.keys(Be);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(Be);q&&(fe=fe.filter(function(We){return Object.getOwnPropertyDescriptor(Be,We).enumerable})),Oe.push.apply(Oe,fe)}return Oe}function G(Be){for(var q=1;q<arguments.length;q++){var Oe=null!=arguments[q]?arguments[q]:{};q%2?L(Object(Oe),!0).forEach(function(fe){Q(Be,fe,Oe[fe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Be,Object.getOwnPropertyDescriptors(Oe)):L(Object(Oe)).forEach(function(fe){Object.defineProperty(Be,fe,Object.getOwnPropertyDescriptor(Oe,fe))})}return Be}function Q(Be,q,Oe){return(q=Ie(q))in Be?Object.defineProperty(Be,q,{value:Oe,enumerable:!0,configurable:!0,writable:!0}):Be[q]=Oe,Be}function z(Be){return(z="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})(Be)}function K(Be,q){return Re(Be)||function ce(Be,q){var Oe=null==Be?null:typeof Symbol<"u"&&Be[Symbol.iterator]||Be["@@iterator"];if(null!=Oe){var fe,We,Ue,Ve,tt=[],at=!0,Vt=!1;try{if(Ue=(Oe=Oe.call(Be)).next,0===q){if(Object(Oe)!==Oe)return;at=!1}else for(;!(at=(fe=Ue.call(Oe)).done)&&(tt.push(fe.value),tt.length!==q);at=!0);}catch(qe){Vt=!0,We=qe}finally{try{if(!at&&null!=Oe.return&&(Ve=Oe.return(),Object(Ve)!==Ve))return}finally{if(Vt)throw We}}return tt}}(Be,q)||re(Be,q)||ee()}function ee(){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 re(Be,q){if(Be){if("string"==typeof Be)return be(Be,q);var Oe=Object.prototype.toString.call(Be).slice(8,-1);if("Object"===Oe&&Be.constructor&&(Oe=Be.constructor.name),"Map"===Oe||"Set"===Oe)return Array.from(Be);if("Arguments"===Oe||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Oe))return be(Be,q)}}function be(Be,q){(null==q||q>Be.length)&&(q=Be.length);for(var Oe=0,fe=new Array(q);Oe<q;Oe++)fe[Oe]=Be[Oe];return fe}function Re(Be){if(Array.isArray(Be))return Be}function De(Be,q){for(var Oe=0;Oe<q.length;Oe++){var fe=q[Oe];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(Be,Ie(fe.key),fe)}}function Ie(Be){var q=function W(Be,q){if("object"!==z(Be)||null===Be)return Be;var Oe=Be[Symbol.toPrimitive];if(void 0!==Oe){var fe=Oe.call(Be,q||"default");if("object"!==z(fe))return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===q?String:Number)(Be)}(Be,"string");return"symbol"===z(q)?q:String(q)}var ie=/^[ -~]*$/,he=function(){function Be(q){(function Se(Be,q){if(!(Be instanceof q))throw new TypeError("Cannot call a class as a function")})(this,Be),this.scroll=q,this.delta=this.getDelta(),this.immediateFormats=new Set}return function Pe(Be,q,Oe){q&&De(Be.prototype,q),Oe&&De(Be,Oe),Object.defineProperty(Be,"prototype",{writable:!1})}(Be,[{key:"addImmediateFormat",value:function(Oe){this.immediateFormats.add(Oe)}},{key:"applyDelta",value:function(Oe){var fe=this;this.scroll.update();var We=this.scroll.length();this.scroll.batchStart();var Ue=function Ee(Be){return Be.reduce(function(q,Oe){if("string"==typeof Oe.insert){var fe=Oe.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return q.insert(fe,Oe.attributes)}return q.push(Oe)},new(B()))}(Oe),Ve=new(B());return Ue.reduce(function(tt,at){var Vt=b.Op.length(at),qe=at.attributes||{},Nt=!1;if(null!=at.insert){if(Ve.retain(Vt),"string"==typeof at.insert){var et=at.insert;Nt=!et.endsWith("\n")&&(We<=tt||fe.scroll.descendant(U.i2,tt)[0]),fe.scroll.insertAt(tt,et);var me=K(fe.scroll.line(tt),2),Te=me[0],je=me[1],Ne=x()({},(0,U.E2)(Te));if(Te instanceof U.ZP){var Ct=K(Te.descendant(j.LeafBlot,je),1)[0];Ne=x()(Ne,(0,U.E2)(Ct))}qe=b.AttributeMap.diff(Ne,qe)||{}}else if("object"===z(at.insert)){var yt=Object.keys(at.insert)[0];if(null==yt)return tt;Nt=null!=fe.scroll.query(yt,j.Scope.INLINE)&&(We<=tt||fe.scroll.descendant(U.i2,tt)[0]),fe.scroll.insertAt(tt,yt,at.insert[yt])}We+=Vt}else Ve.push(at);var Gt=Object.keys(qe);fe.immediateFormats.forEach(function(nn){Gt.indexOf(nn)>-1&&(fe.scroll.formatAt(tt,Vt,nn,qe[nn]),delete qe[nn])}),Object.keys(qe).forEach(function(nn){fe.scroll.formatAt(tt,Vt,nn,qe[nn])});var ft=Nt?1:0;return We+=ft,Ve.delete(ft),tt+Vt+ft},0),Ve.reduce(function(tt,at){return"number"==typeof at.delete?(fe.scroll.deleteAt(tt,at.delete),tt):tt+b.Op.length(at)},0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(Ue)}},{key:"deleteText",value:function(Oe,fe){return this.scroll.deleteAt(Oe,fe),this.update((new(B())).retain(Oe).delete(fe))}},{key:"formatLine",value:function(Oe,fe){var We=this,Ue=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(Ue).forEach(function(tt){We.scroll.lines(Oe,Math.max(fe,1)).forEach(function(at){at.format(tt,Ue[tt])})}),this.scroll.optimize();var Ve=(new(B())).retain(Oe).retain(fe,k()(Ue));return this.update(Ve)}},{key:"formatText",value:function(Oe,fe){var We=this,Ue=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(Ue).forEach(function(tt){We.scroll.formatAt(Oe,fe,tt,Ue[tt])});var Ve=(new(B())).retain(Oe).retain(fe,k()(Ue));return this.update(Ve)}},{key:"getContents",value:function(Oe,fe){return this.delta.slice(Oe,Oe+fe)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(Oe,fe){return Oe.concat(fe.delta())},new(B()))}},{key:"getFormat",value:function(Oe){var fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,We=[],Ue=[];0===fe?this.scroll.path(Oe).forEach(function(at){var qe=K(at,1)[0];qe instanceof U.ZP?We.push(qe):qe instanceof j.LeafBlot&&Ue.push(qe)}):(We=this.scroll.lines(Oe,fe),Ue=this.scroll.descendants(j.LeafBlot,Oe,fe));var tt=K([We,Ue].map(function(at){if(0===at.length)return{};for(var Vt=(0,U.E2)(at.shift());Object.keys(Vt).length>0;){var qe=at.shift();if(null==qe)return Vt;Vt=Ye((0,U.E2)(qe),Vt)}return Vt}),2);return Ue=tt[1],G(G({},We=tt[0]),Ue)}},{key:"getHTML",value:function(Oe,fe){var Ue=K(this.scroll.line(Oe),2),Ve=Ue[0],tt=Ue[1];return Ve.length()>tt+fe?ye(Ve,tt,fe,!0):ye(this.scroll,Oe,fe,!0)}},{key:"getText",value:function(Oe,fe){return this.getContents(Oe,fe).filter(function(We){return"string"==typeof We.insert}).map(function(We){return We.insert}).join("")}},{key:"insertEmbed",value:function(Oe,fe,We){return this.scroll.insertAt(Oe,fe,We),this.update((new(B())).retain(Oe).insert(Q({},fe,We)))}},{key:"insertText",value:function(Oe,fe){var We=this,Ue=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fe=fe.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(Oe,fe),Object.keys(Ue).forEach(function(Ve){We.scroll.formatAt(Oe,fe.length,Ve,Ue[Ve])}),this.update((new(B())).retain(Oe).insert(fe,k()(Ue)))}},{key:"isBlank",value:function(){if(0===this.scroll.children.length)return!0;if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.scroll.children.length>1)return!1;var fe=this.scroll.children.head;return!(fe.statics.blotName!==U.ZP.blotName||fe.children.length>1)&&fe.children.head instanceof Z.Z}},{key:"removeFormat",value:function(Oe,fe){var We=this.getText(Oe,fe),Ve=K(this.scroll.line(Oe+fe),2),tt=Ve[0],at=Ve[1],Vt=0,qe=new(B());null!=tt&&(Vt=tt.length()-at,qe=tt.delta().slice(at,at+Vt-1).insert("\n"));var et=this.getContents(Oe,fe+Vt).diff((new(B())).insert(We).concat(qe)),ue=(new(B())).retain(Oe).concat(et);return this.applyDelta(ue)}},{key:"update",value:function(Oe){var fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],We=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,Ue=this.delta;if(1===fe.length&&"characterData"===fe[0].type&&fe[0].target.data.match(ie)&&this.scroll.find(fe[0].target)){var Ve=this.scroll.find(fe[0].target),tt=(0,U.E2)(Ve),at=Ve.offset(this.scroll),Vt=fe[0].oldValue.replace(X.Z.CONTENTS,""),qe=(new(B())).insert(Vt),Nt=(new(B())).insert(Ve.value()),et=We&&{oldRange:le(We.oldRange,-at),newRange:le(We.newRange,-at)};Oe=(new(B())).retain(at).concat(qe.diff(Nt,et)).reduce(function(me,Te){return Te.insert?me.insert(Te.insert,tt):me.push(Te)},new(B())),this.delta=Ue.compose(Oe)}else this.delta=this.getDelta(),(!Oe||!P()(Ue.compose(Oe),this.delta))&&(this.deltaContainsRetain(Ue)||(Oe=Ue.diff(this.delta,We)));return Oe}},{key:"deltaContainsRetain",value:function(Oe){return Oe.ops.some(function(fe){return(0,H.Z)(fe.retain)})}}]),Be}();function Ce(Be,q,Oe){if(0===Be.length){var Ue=K(de(Oe.pop()),1)[0];return q<=0?"</li></".concat(Ue,">"):"</li></".concat(Ue,">").concat(Ce([],q-1,Oe))}var Ve=function J(Be){return Re(Be)||function R(Be){if(typeof Symbol<"u"&&null!=Be[Symbol.iterator]||null!=Be["@@iterator"])return Array.from(Be)}(Be)||re(Be)||ee()}(Be),tt=Ve[0],at=tt.child,Vt=tt.offset,qe=tt.length,Nt=tt.indent,et=tt.type,ue=Ve.slice(1),Te=K(de(et,at),2),je=Te[0],Ne=Te[1];if(Nt>q)return Oe.push(et),Nt===q+1?"<".concat(je,"><li").concat(Ne,">").concat(ye(at,Vt,qe)).concat(Ce(ue,Nt,Oe)):"<".concat(je,"><li>").concat(Ce(Be,q+1,Oe));if(Nt===q&&et===Oe[Oe.length-1])return"</li><li".concat(Ne,">").concat(ye(at,Vt,qe)).concat(Ce(ue,Nt,Oe));var Ct=K(de(Oe.pop()),1);return"</li></".concat(Ct[0],">").concat(Ce(Be,q-1,Oe))}function ye(Be,q,Oe){var fe=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"==typeof Be.html)return Be.html(q,Oe);if(Be instanceof A.Z)return(0,A.b)(Be.value().slice(q,q+Oe));if(Be.children){if("list-container"===Be.statics.blotName){var We=[];return Be.children.forEachAt(q,Oe,function(ue,me,Te){var je=ue.formats();We.push({child:ue,offset:me,length:Te,indent:je.indent||0,type:je.list})}),Ce(We,-1,[])}var Ue=[];if(Be.children.forEachAt(q,Oe,function(ue,me,Te){Ue.push(ye(ue,me,Te))}),function Me(Be,q){1===Be.length&&Be.head instanceof Z.Z&&q.push("<br>")}(Be.children,Ue),fe||"list"===Be.statics.blotName)return Ue.join("");var Ve=function _e(Be){var q=Be.domNode.cloneNode(!0);return function ke(Be,q){return["tableCellLine","tableHeaderCellLine","tableCell","tableHeaderCell"].includes(Be.statics.blotName)&&function M(Be,q){Be.classList.remove(q),0===Be.classList.length&&Be.removeAttribute("class")}(q,Be.statics.className),q}(Be,q)}(Be),qe=K(Ve.outerHTML.split(">".concat(Ve.innerHTML,"<")),2),Nt=qe[0],et=qe[1];return 0===Nt.indexOf("<table")?"".concat(Nt.replace(/(\sdata-.+?=["'].*?["'])/g,""),">").concat(Ue.join("").replace(/(\sdata-table.+?=["'].*?["'])/g,""),"<").concat(et):"".concat(Nt,">").concat(Ue.join(""),"<").concat(et)}return Be.domNode.outerHTML}function Ye(Be,q){return Object.keys(q).reduce(function(Oe,fe){return null==Be[fe]||(q[fe]===Be[fe]?Oe[fe]=q[fe]:Array.isArray(q[fe])?q[fe].indexOf(Be[fe])<0&&(Oe[fe]=q[fe].concat([Be[fe]])):Oe[fe]=[q[fe],Be[fe]]),Oe},{})}function de(Be,q){var Oe="ordered"===Be?"ol":"ul",fe=q?"".concat(function Ae(Be){var q=Be.domNode;if(!q.hasAttributes())return"";for(var Oe=q.attributes,fe=" ",We=0;We<Oe.length;We+=1){var Ue=Oe[We].name,Ve=Oe[We].value;"class"===Ue&&(Ve=pe(Ve)),Ve.length&&-1===Ue.indexOf("data-")&&(fe+="".concat(Ue,'="').concat(Ve,'"'))}return fe.length>1?fe:""}(q)):"";switch(Be){case"checked":return[Oe,"".concat(fe,' data-list="checked"')];case"unchecked":return[Oe,"".concat(fe,' data-list="unchecked"')];default:return[Oe,fe]}}function pe(Be){return Be.replace(/ql-indent-\d/g,"").trim()}function le(Be,q){return new F.e(Be.index+q,Be.length)}const Ke=he},2069:(m,T,C)=>{"use strict";C.d(T,{Z:()=>ee});var e=C(3034),k=C.n(e),w=C(8034),P=C(2598);function x(re){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(be){return typeof be}:function(be){return be&&"function"==typeof Symbol&&be.constructor===Symbol&&be!==Symbol.prototype?"symbol":typeof be})(re)}function B(re,be){for(var ce=0;ce<be.length;ce++){var Re=be[ce];Re.enumerable=Re.enumerable||!1,Re.configurable=!0,"value"in Re&&(Re.writable=!0),Object.defineProperty(re,F(Re.key),Re)}}function F(re){var be=function X(re,be){if("object"!==x(re)||null===re)return re;var ce=re[Symbol.toPrimitive];if(void 0!==ce){var Re=ce.call(re,be||"default");if("object"!==x(Re))return Re;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===be?String:Number)(re)}(re,"string");return"symbol"===x(be)?be:String(be)}function U(){return U=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(be,ce,Re){var Se=function Z(re,be){for(;!Object.prototype.hasOwnProperty.call(re,be)&&null!==(re=G(re)););return re}(be,ce);if(Se){var De=Object.getOwnPropertyDescriptor(Se,ce);return De.get?De.get.call(arguments.length<3?be:Re):De.value}},U.apply(this,arguments)}function M(re,be){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Re,Se){return Re.__proto__=Se,Re})(re,be)}function G(re){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ce){return ce.__proto__||Object.getPrototypeOf(ce)})(re)}var Q=(0,C(3122).Z)("quill:events");(0,w.Z)()&&["selectionchange","mousedown","mouseup","click"].forEach(function(re){document.addEventListener(re,function(){for(var be,ce=arguments.length,Re=new Array(ce),Se=0;Se<ce;Se++)Re[Se]=arguments[Se];var De=Re[0],W=((null==De||null===(be=De.target)||void 0===be?void 0:be.shadowRoot)??document).querySelectorAll(".ql-container");Array.from(W).forEach(function(ie){var Ce,he=P.Z.get(ie);he&&he.emitter&&(Ce=he.emitter).handleDOM.apply(Ce,Re)})})});var K=function(re){!function A(re,be){if("function"!=typeof be&&null!==be)throw new TypeError("Super expression must either be null or a function");re.prototype=Object.create(be&&be.prototype,{constructor:{value:re,writable:!0,configurable:!0}}),Object.defineProperty(re,"prototype",{writable:!1}),be&&M(re,be)}(ce,re);var be=function H(re){var be=function L(){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 Se,Re=G(re);if(be){var De=G(this).constructor;Se=Reflect.construct(Re,arguments,De)}else Se=Re.apply(this,arguments);return function J(re,be){if(be&&("object"===x(be)||"function"==typeof be))return be;if(void 0!==be)throw new TypeError("Derived constructors may only return object or undefined");return function R(re){if(void 0===re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re}(re)}(this,Se)}}(ce);function ce(){var Re;return function b(re,be){if(!(re instanceof be))throw new TypeError("Cannot call a class as a function")}(this,ce),(Re=be.call(this)).listeners={},Re.on("error",Q.error),Re}return function j(re,be,ce){be&&B(re.prototype,be),ce&&B(re,ce),Object.defineProperty(re,"prototype",{writable:!1})}(ce,[{key:"emit",value:function(){for(var Se,De,Pe=arguments.length,Ie=new Array(Pe),W=0;W<Pe;W++)Ie[W]=arguments[W];(Se=Q.log).call.apply(Se,[Q].concat(Ie)),(De=U(G(ce.prototype),"emit",this)).call.apply(De,[this].concat(Ie))}},{key:"handleDOM",value:function(Se){for(var De=arguments.length,Pe=new Array(De>1?De-1:0),Ie=1;Ie<De;Ie++)Pe[Ie-1]=arguments[Ie];(this.listeners[Se.type]||[]).forEach(function(W){var ie=W.node,he=W.handler;(Se.target===ie||ie.contains(Se.target))&&he.apply(void 0,[Se].concat(Pe))})}},{key:"listenDOM",value:function(Se,De,Pe){this.listeners[Se]||(this.listeners[Se]=[]),this.listeners[Se].push({node:De,handler:Pe})}}]),ce}(k());K.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",CONTENT_SETTED:"content-setted",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"},K.sources={API:"api",SILENT:"silent",USER:"user"};const ee=K},2598:(m,T,C)=>{"use strict";C.d(T,{Z:()=>e});const e=new WeakMap},3122:(m,T,C)=>{"use strict";C.d(T,{Z:()=>v});var e=["error","warn","log","info"],k="warn";function w(x){if(e.indexOf(x)<=e.indexOf(k)){for(var b,B=arguments.length,j=new Array(B>1?B-1:0),F=1;F<B;F++)j[F-1]=arguments[F];(b=console)[x].apply(b,j)}}function P(x){return e.reduce(function(b,B){return b[B]=w.bind(console,B,x),b},{})}w.level=P.level=function(x){k=x};const v=P},7094:(m,T,C)=>{"use strict";function e(j){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(j)}function k(j,F){for(var X=0;X<F.length;X++){var U=F[X];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(j,P(U.key),U)}}function w(j,F,X){return F&&k(j.prototype,F),X&&k(j,X),Object.defineProperty(j,"prototype",{writable:!1}),j}function P(j){var F=function v(j,F){if("object"!==e(j)||null===j)return j;var X=j[Symbol.toPrimitive];if(void 0!==X){var U=X.call(j,F||"default");if("object"!==e(U))return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===F?String:Number)(j)}(j,"string");return"symbol"===e(F)?F:String(F)}C.d(T,{Z:()=>B});var b=w(function j(F){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function x(j,F){if(!(j instanceof F))throw new TypeError("Cannot call a class as a function")})(this,j),this.quill=F,this.options=X});b.DEFAULTS={};const B=b},281:(m,T,C)=>{"use strict";C.d(T,{ZP:()=>W});var e=C(9098),k=C.n(e),w=C(8805),P=C.n(w),v=C(732),x=C.n(v),b=C(1233),B=C(2861),j=C(2069),F=C(7094),X=C(7800),U=C(2598),Z=C(3122),A=C(1690),M=C(5874),H=C(6229);function J(Me){return(J="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})(Me)}function R(Me,_e,ke){return(_e=Re(_e))in Me?Object.defineProperty(Me,_e,{value:ke,enumerable:!0,configurable:!0,writable:!0}):Me[_e]=ke,Me}function L(Me,_e){return function ee(Me){if(Array.isArray(Me))return Me}(Me)||function K(Me,_e){var ke=null==Me?null:typeof Symbol<"u"&&Me[Symbol.iterator]||Me["@@iterator"];if(null!=ke){var Ye,de,Ae,pe,Ee=[],le=!0,Ke=!1;try{if(Ae=(ke=ke.call(Me)).next,0===_e){if(Object(ke)!==ke)return;le=!1}else for(;!(le=(Ye=Ae.call(ke)).done)&&(Ee.push(Ye.value),Ee.length!==_e);le=!0);}catch(Be){Ke=!0,de=Be}finally{try{if(!le&&null!=ke.return&&(pe=ke.return(),Object(pe)!==pe))return}finally{if(Ke)throw de}}return Ee}}(Me,_e)||function Q(Me,_e){if(Me){if("string"==typeof Me)return z(Me,_e);var ke=Object.prototype.toString.call(Me).slice(8,-1);if("Object"===ke&&Me.constructor&&(ke=Me.constructor.name),"Map"===ke||"Set"===ke)return Array.from(Me);if("Arguments"===ke||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ke))return z(Me,_e)}}(Me,_e)||function G(){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 z(Me,_e){(null==_e||_e>Me.length)&&(_e=Me.length);for(var ke=0,Ye=new Array(_e);ke<_e;ke++)Ye[ke]=Me[ke];return Ye}function be(Me,_e){for(var ke=0;ke<_e.length;ke++){var Ye=_e[ke];Ye.enumerable=Ye.enumerable||!1,Ye.configurable=!0,"value"in Ye&&(Ye.writable=!0),Object.defineProperty(Me,Re(Ye.key),Ye)}}function Re(Me){var _e=function Se(Me,_e){if("object"!==J(Me)||null===Me)return Me;var ke=Me[Symbol.toPrimitive];if(void 0!==ke){var Ye=ke.call(Me,_e||"default");if("object"!==J(Ye))return Ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_e?String:Number)(Me)}(Me,"string");return"symbol"===J(_e)?_e:String(_e)}var De=(0,Z.Z)("quill"),Pe="style-data-key",Ie=new b.Registry;b.ParentBlot.uiClass="ql-ui";var W=function(){function Me(_e){var ke=this,Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function re(Me,_e){if(!(Me instanceof _e))throw new TypeError("Cannot call a class as a function")}(this,Me),this.options=function ie(Me,_e){if((_e=x()({container:Me,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0}},_e)).theme&&_e.theme!==W.DEFAULTS.theme){if(_e.theme=W.import("themes/".concat(_e.theme)),null==_e.theme)throw new Error("Invalid theme ".concat(_e.theme,". Did you register it?"))}else _e.theme=A.Z;var ke=P()(_e.theme.DEFAULTS);[ke,_e].forEach(function(Ae){Ae.modules=Ae.modules||{},Object.keys(Ae.modules).forEach(function(pe){!0===Ae.modules[pe]&&(Ae.modules[pe]={})})});var de=Object.keys(ke.modules).concat(Object.keys(_e.modules)).reduce(function(Ae,pe){var Ee=W.import("modules/".concat(pe));return null==Ee?De.error("Cannot load ".concat(pe," module. Are you sure you registered it?")):Ae[pe]=Ee.DEFAULTS||{},Ae},{});return null!=_e.modules&&_e.modules.toolbar&&_e.modules.toolbar.constructor!==Object&&(_e.modules.toolbar={container:_e.modules.toolbar}),_e=x()({},W.DEFAULTS,{modules:de},ke,_e),["bounds","container","scrollingContainer"].forEach(function(Ae){"string"==typeof _e[Ae]&&(_e[Ae]=document.querySelector(_e[Ae]))}),_e.modules=Object.keys(_e.modules).reduce(function(Ae,pe){return _e.modules[pe]&&(Ae[pe]=_e.modules[pe]),Ae},{}),_e}(_e,Ye),this.container=this.options.container,null==this.container)return De.error("Invalid Quill container",_e);this.options.debug&&Me.debug(this.options.debug);var de=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",U.Z.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new j.Z;var Ae=this.options.registry.query(b.ScrollBlot.blotName);this.scroll=new Ae(this.options.registry,this.root,{emitter:this.emitter,toggleBlankClass:this.toggleBlankClass.bind(this)}),this.editor=new B.Z(this.scroll),this.composition=new H.Z(this.scroll,this.emitter),this.selection=new X.Z(this.scroll,this.emitter,this.composition),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.init(),this.emitter.on(j.Z.events.EDITOR_CHANGE,function(pe){pe===j.Z.events.TEXT_CHANGE&&ke.toggleBlankClass()}),this.emitter.on(j.Z.events.SCROLL_UPDATE,function(pe,Ee){var le=ke.selection.lastRange,q=L(ke.selection.getRange(),1)[0],Oe=le&&q?{oldRange:le,newRange:q}:void 0;he.call(ke,function(){return ke.editor.update(null,Ee,Oe)},pe)}),this.setContents(this.getInitialContent(de)),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}return function ce(Me,_e,ke){_e&&be(Me.prototype,_e),ke&&be(Me,ke),Object.defineProperty(Me,"prototype",{writable:!1})}(Me,[{key:"getInitialContent",value:function(ke){return this.clipboard.convert({html:"".concat(ke,"<p><br></p>"),text:"\n"})}},{key:"toggleBlankClass",value:function(){var ke=this.composition.isCompositionInProgress();this.root.classList.toggle("ql-blank",this.editor.isBlank(ke))}},{key:"addContainer",value:function(ke){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof ke){var de=ke;(ke=document.createElement("div")).classList.add(de)}return this.container.insertBefore(ke,Ye),ke}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ke,Ye,de){var Ae=this,Ee=L(Ce(ke,Ye,de),4);return he.call(this,function(){return Ae.editor.deleteText(ke,Ye)},de=Ee[3],ke=Ee[0],-1*(Ye=Ee[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"editReadOnly",value:function(ke){this.allowReadOnlyEdits=!0;var Ye=ke();return this.allowReadOnlyEdits=!1,Ye}},{key:"enable",value:function(){var ke=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(ke),this.container.classList.toggle("ql-disabled",!ke)}},{key:"focus",value:function(){var ke=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=ke,this.scrollIntoView()}},{key:"format",value:function(ke,Ye){var de=this,Ae=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j.Z.sources.API;return this.applyCompositionChanges(),he.call(this,function(){var pe=de.getSelection(!0),Ee=new(k());if(null==pe)return Ee;if(de.scroll.query(ke,b.Scope.BLOCK))Ee=de.editor.formatLine(pe.index,pe.length,R({},ke,Ye));else{if(0===pe.length)return de.selection.format(ke,Ye),Ee;Ee=de.editor.formatText(pe.index,pe.length,R({},ke,Ye))}return de.setSelection(pe,j.Z.sources.SILENT),Ee},Ae)}},{key:"formatLine",value:function(ke,Ye,de,Ae,pe){var le,Ee=this,Be=L(Ce(ke,Ye,de,Ae,pe),4);return Ye=Be[1],le=Be[2],he.call(this,function(){return Ee.editor.formatLine(ke,Ye,le)},pe=Be[3],ke=Be[0],0)}},{key:"formatText",value:function(ke,Ye,de,Ae,pe){var le,Ee=this,Be=L(Ce(ke,Ye,de,Ae,pe),4);return Ye=Be[1],le=Be[2],he.call(this,function(){return Ee.editor.formatText(ke,Ye,le)},pe=Be[3],ke=Be[0],0)}},{key:"getBounds",value:function(ke){var de;de="number"==typeof ke?this.selection.getBounds(ke,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(ke.index,ke.length);var Ae=this.container.getBoundingClientRect();return{bottom:de.bottom-Ae.top,height:de.height,left:de.left-Ae.left,right:de.right-Ae.left,top:de.top-Ae.top,width:de.width}}},{key:"getContents",value:function(){var ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ke,Ae=L(Ce(ke,Ye),2);return this.editor.getContents(ke=Ae[0],Ye=Ae[1])}},{key:"getFormat",value:function(){var ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,M.Z)(ke)?"number"==typeof ke?this.editor.getFormat(ke,Ye):this.editor.getFormat(ke.index,ke.length):{}}},{key:"getIndex",value:function(ke){return ke.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(ke){return this.scroll.leaf(ke)}},{key:"getLine",value:function(ke){return this.scroll.line(ke)}},{key:"getLines",value:function(){var ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof ke?this.scroll.lines(ke.index,ke.length):this.scroll.lines(ke,Ye)}},{key:"getModule",value:function(ke){return this.theme.modules[ke]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getSemanticHTML",value:function(){var ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ke,Ae=L(Ce(ke,Ye),2);return this.editor.getHTML(ke=Ae[0],Ye=Ae[1])}},{key:"getText",value:function(){var ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ke,Ae=L(Ce(ke,Ye),2);return this.editor.getText(ke=Ae[0],Ye=Ae[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ke,Ye,de){var Ae=this;return he.call(this,function(){return Ae.editor.insertEmbed(ke,Ye,de)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:Me.sources.API,ke)}},{key:"insertText",value:function(ke,Ye,de,Ae,pe){var le,Ee=this,Be=L(Ce(ke,0,de,Ae,pe),4);return le=Be[2],he.call(this,function(){return Ee.editor.insertText(ke,Ye,le)},pe=Be[3],ke=Be[0],Ye.length)}},{key:"isEnabled",value:function(){return this.scroll.isEnabled()}},{key:"off",value:function(){var ke;return(ke=this.emitter).off.apply(ke,arguments)}},{key:"on",value:function(){var ke;return(ke=this.emitter).on.apply(ke,arguments)}},{key:"once",value:function(){var ke;return(ke=this.emitter).once.apply(ke,arguments)}},{key:"removeFormat",value:function(ke,Ye,de){var Ae=this,Ee=L(Ce(ke,Ye,de),4);return Ye=Ee[1],he.call(this,function(){return Ae.editor.removeFormat(ke,Ye)},de=Ee[3],ke=Ee[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(ke){var Ye=this;return he.call(this,function(){ke=new(k())(ke);var Ae=Ye.getLength(),pe=Ye.editor.deleteText(0,Ae),Ee=Ye.editor.applyDelta(ke),le=Ye.editor.deleteText(Ye.getLength()-1,1);return Ye.emitter.emit(Me.events.CONTENT_SETTED),pe.compose(Ee).compose(le)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.Z.sources.API)}},{key:"setSelection",value:function(ke,Ye,de){if(null==ke)this.selection.setRange(null,Ye||Me.sources.API);else{var pe=L(Ce(ke,Ye,de),4);ke=pe[0],Ye=pe[1],de=pe[3],this.selection.setRange(new X.e(Math.max(0,ke),Ye),de),de!==j.Z.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(ke){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.Z.sources.API,de=(new(k())).insert(ke);return this.setContents(de,Ye)}},{key:"update",value:function(){var ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j.Z.sources.USER,Ye=this.scroll.update(ke);return this.selection.update(ke),Ye}},{key:"updateContents",value:function(ke){var Ye=this,de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.Z.sources.API;return he.call(this,function(){return ke=new(k())(ke),Ye.editor.applyDelta(ke,de)},de,!0)}},{key:"applyCompositionChanges",value:function(){this.composition.handleCompositionEnd({})}}],[{key:"debug",value:function(ke){!0===ke&&(ke="log"),Z.Z.level(ke)}},{key:"find",value:function(ke){return U.Z.get(ke)||Ie.find(ke)}},{key:"import",value:function(ke){return null==this.imports[ke]&&De.error("Cannot import ".concat(ke,". Are you sure it was registered?")),this.imports[ke]}},{key:"register",value:function(ke,Ye){var de=this,Ae=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof ke){var pe=ke.attrName||ke.blotName;"string"==typeof pe?this.register("formats/".concat(pe),ke,Ye):Object.keys(ke).forEach(function(Ee){de.register(Ee,ke[Ee],Ye)})}else null!=this.imports[ke]&&!Ae&&De.warn("Overwriting ".concat(ke," with"),Ye),this.imports[ke]=Ye,(0===ke.indexOf("blots/")||0===ke.indexOf("formats/"))&&"abstract"!==Ye.blotName&&Ie.register(Ye),"function"==typeof Ye.register&&Ye.register(Ie)}}]),Me}();function he(Me,_e,ke,Ye){if(!this.isEnabled()&&_e===j.Z.sources.USER&&!this.allowReadOnlyEdits)return new(k());var de=null==ke?null:this.getSelection(),Ae=this.editor.delta,pe=Me();if(null!=de&&(!0===ke&&(ke=de.index),null==Ye?de=ye(de,pe,_e):0!==Ye&&(de=ye(de,ke,Ye,_e)),this.setSelection(de,j.Z.sources.SILENT)),pe.length()>0){var Ee,Ke,le=[j.Z.events.TEXT_CHANGE,pe,Ae,_e];(Ee=this.emitter).emit.apply(Ee,[j.Z.events.EDITOR_CHANGE].concat(le)),_e!==j.Z.sources.SILENT&&(Ke=this.emitter).emit.apply(Ke,le)}return pe}function Ce(Me,_e,ke,Ye,de){var Ae={};return"number"==typeof Me.index&&"number"==typeof Me.length?"number"!=typeof _e?(de=Ye,Ye=ke,ke=_e,_e=Me.length,Me=Me.index):(_e=Me.length,Me=Me.index):"number"!=typeof _e&&(de=Ye,Ye=ke,ke=_e,_e=0),"object"===J(ke)?(Ae=ke,de=Ye):"string"==typeof ke&&(null!=Ye?Ae[ke]=Ye:de=ke),[Me,_e,Ae,de=de||j.Z.sources.API]}function ye(Me,_e,ke,Ye){if(null==Me)return null;var de,Ae;if(_e instanceof k()){var Ee=L([Me.index,Me.index+Me.length].map(function(Be){return _e.transformPosition(Be,Ye!==j.Z.sources.USER)}),2);de=Ee[0],Ae=Ee[1]}else{var Ke=L([Me.index,Me.index+Me.length].map(function(Be){return Be<_e||Be===_e&&Ye===j.Z.sources.USER?Be:ke>=0?Be+ke:Math.max(_e,Be+ke)}),2);de=Ke[0],Ae=Ke[1]}return new X.e(de,Ae-de)}W.DEFAULTS={bounds:null,modules:{},placeholder:"",readOnly:!1,registry:Ie,scrollingContainer:null,theme:"default"},W.events=j.Z.events,W.sources=j.Z.sources,W.version="1.7.1",W.MS_LIST_DATA_KEY="mso-list-data",W.replaceStyleAttribute=function(Me){return Me.replace(/(?:(<[a-z0-9]+\s*))([\s\S]*?)(>|\/>)/gi,function(ke,Ye,de,Ae){return Ye+de.replace(/style\s*=/gi,"".concat(Pe,"="))+Ae})},W.restoreStyleAttribute=function(Me){Me.querySelectorAll("[".concat(Pe,"]")).forEach(function(_e){var ke=_e.getAttribute(Pe);_e.style=ke,_e.setAttribute(W.MS_LIST_DATA_KEY,ke),_e.removeAttribute(Pe)})},W.imports={delta:k(),parchment:b,"core/module":F.Z,"core/theme":A.Z}},7800:(m,T,C)=>{"use strict";C.d(T,{Z:()=>ce,e:()=>be});var e=C(1233),k=C(8805),w=C.n(k),P=C(2722),v=C.n(P),x=C(2069);function B(Se){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(De){return typeof De}:function(De){return De&&"function"==typeof Symbol&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De})(Se)}function j(Se){return function U(Se){if(Array.isArray(Se))return H(Se)}(Se)||function X(Se){if(typeof Symbol<"u"&&null!=Se[Symbol.iterator]||null!=Se["@@iterator"])return Array.from(Se)}(Se)||M(Se)||function F(){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 Z(Se,De){return function R(Se){if(Array.isArray(Se))return Se}(Se)||function J(Se,De){var Pe=null==Se?null:typeof Symbol<"u"&&Se[Symbol.iterator]||Se["@@iterator"];if(null!=Pe){var Ie,W,ie,he,Ce=[],ye=!0,Me=!1;try{if(ie=(Pe=Pe.call(Se)).next,0===De){if(Object(Pe)!==Pe)return;ye=!1}else for(;!(ye=(Ie=ie.call(Pe)).done)&&(Ce.push(Ie.value),Ce.length!==De);ye=!0);}catch(_e){Me=!0,W=_e}finally{try{if(!ye&&null!=Pe.return&&(he=Pe.return(),Object(he)!==he))return}finally{if(Me)throw W}}return Ce}}(Se,De)||M(Se,De)||function A(){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 M(Se,De){if(Se){if("string"==typeof Se)return H(Se,De);var Pe=Object.prototype.toString.call(Se).slice(8,-1);if("Object"===Pe&&Se.constructor&&(Pe=Se.constructor.name),"Map"===Pe||"Set"===Pe)return Array.from(Se);if("Arguments"===Pe||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pe))return H(Se,De)}}function H(Se,De){(null==De||De>Se.length)&&(De=Se.length);for(var Pe=0,Ie=new Array(De);Pe<De;Pe++)Ie[Pe]=Se[Pe];return Ie}function L(Se,De){for(var Pe=0;Pe<De.length;Pe++){var Ie=De[Pe];Ie.enumerable=Ie.enumerable||!1,Ie.configurable=!0,"value"in Ie&&(Ie.writable=!0),Object.defineProperty(Se,Q(Ie.key),Ie)}}function G(Se,De,Pe){return De&&L(Se.prototype,De),Pe&&L(Se,Pe),Object.defineProperty(Se,"prototype",{writable:!1}),Se}function Q(Se){var De=function z(Se,De){if("object"!==B(Se)||null===Se)return Se;var Pe=Se[Symbol.toPrimitive];if(void 0!==Pe){var Ie=Pe.call(Se,De||"default");if("object"!==B(Ie))return Ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===De?String:Number)(Se)}(Se,"string");return"symbol"===B(De)?De:String(De)}function K(Se,De){if(!(Se instanceof De))throw new TypeError("Cannot call a class as a function")}var ee=(0,C(3122).Z)("quill:selection");function re(Se){return Se<0?0:Se}var be=G(function Se(De){var Pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;K(this,Se),this.index=De,this.length=Pe}),ce=function(){function Se(De,Pe,Ie){var W=this;K(this,Se),this.emitter=Pe,this.scroll=De,this.composition=Ie,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new be(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){!W.mouseDown&&!W.composition.isCompositionInProgress()&&setTimeout(W.update.bind(W,x.Z.sources.USER),1)}),this.emitter.on(x.Z.events.SCROLL_BEFORE_UPDATE,function(){if(W.hasFocus()){var ie=W.getNativeRange();null!=ie&&ie.start.node!==W.cursor.textNode&&W.emitter.once(x.Z.events.SCROLL_UPDATE,function(){try{W.root.contains(ie.start.node)&&W.root.contains(ie.end.node)&&W.setNativeRange(ie.start.node,ie.start.offset,ie.end.node,ie.end.offset),W.update(x.Z.sources.SILENT)}catch{}})}}),this.emitter.on(x.Z.events.SCROLL_OPTIMIZE,function(ie,he){if(he.range){var Ce=he.range;W.setNativeRange(Ce.startNode,Ce.startOffset,Ce.endNode,Ce.endOffset),W.update(x.Z.sources.SILENT)}}),this.update(x.Z.sources.SILENT)}return G(Se,[{key:"handleDragging",value:function(){var Pe=this;this.emitter.listenDOM("mousedown",document.body,function(){Pe.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){Pe.mouseDown=!1,Pe.update(x.Z.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(Pe,Ie){this.scroll.update();var W=this.getNativeRange();if(null!=W&&W.native.collapsed&&!this.scroll.query(Pe,e.Scope.BLOCK)){if(W.start.node!==this.cursor.textNode){var ie=this.scroll.find(W.start.node,!1);if(null==ie)return;if(ie instanceof e.LeafBlot){var he=ie.split(W.start.offset);ie.parent.insertBefore(this.cursor,he)}else ie.insertBefore(this.cursor,W.start.node);this.cursor.attach()}this.cursor.format(Pe,Ie),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}},{key:"getBounds",value:function(Pe){var Ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,W=this.scroll.length();Pe=Math.min(Pe,W-1),Ie=Math.min(Pe+Ie,W-1)-Pe;var ie,Ce=Z(this.scroll.leaf(Pe),2),ye=Ce[0],Me=Ce[1];if(null==ye)return null;var ke=Z(this.getPositionData(ye,Me,!0),2);ie=ke[0],Me=ke[1];var Ye=document.createRange();if(Ie>0){Ye.setStart(ie,Me);var Ae=Z(this.scroll.leaf(Pe+Ie),2);if(null==(ye=Ae[0]))return null;var Ee=Z(this.getPositionData(ye,Me=Ae[1],!0),2);return Ye.setEnd(ie=Ee[0],Me=Ee[1]),Ye.getBoundingClientRect()}var Ke,le="left";if(ie instanceof Text){if(Me<ie.data.length)Ye.setStart(ie,Me),Ye.setEnd(ie,Me+1);else{var Be=re(Me-1);Ye.setStart(ie,Be),Ye.setEnd(ie,Me),le="right"}Ke=Ye.getBoundingClientRect()}else Ke=ye.domNode.getBoundingClientRect(),Me>0&&(le="right");return{bottom:Ke.top+Ke.height,height:Ke.height,left:Ke[le],right:Ke[le],top:Ke.top,width:0}}},{key:"getNativeRange",value:function(){var Pe,Ie,W=this.root.getRootNode(),ie=null!==(Pe=null===(Ie=W.getSelection)||void 0===Ie?void 0:Ie.call(W))&&void 0!==Pe?Pe:document.getSelection();if(null==ie||ie.rangeCount<=0)return null;var he=ie.getRangeAt(0);if(null==he)return null;var Ce=this.normalizeNative(he);return ee.info("getNativeRange",Ce),Ce}},{key:"getRange",value:function(){var Pe=this.getNativeRange();return null==Pe?[null,null]:[this.normalizedToRange(Pe),Pe]}},{key:"hasFocus",value:function(){var Pe=this.root.getRootNode();return Pe.activeElement===this.root||Re(this.root,Pe.activeElement)}},{key:"normalizedToRange",value:function(Pe){var Ie=this,W=[[Pe.start.node,Pe.start.offset]];Pe.native.collapsed||W.push([Pe.end.node,Pe.end.offset]);var ie=W.map(function(ye){var Me=Z(ye,2),_e=Me[0],ke=Me[1],Ye=Ie.scroll.find(_e,!0),de=Ye.offset(Ie.scroll);return 0===ke?de:Ye instanceof e.LeafBlot?de+Ye.index(_e,ke):de+Ye.length()}),he=Math.min(Math.max.apply(Math,j(ie)),this.scroll.length()-1),Ce=Math.min.apply(Math,[he].concat(j(ie)));return new be(Ce,he-Ce)}},{key:"normalizeNative",value:function(Pe){if(!Re(this.root,Pe.startContainer)||!Pe.collapsed&&!Re(this.root,Pe.endContainer))return null;var Ie={start:{node:Pe.startContainer,offset:Pe.startOffset},end:{node:Pe.endContainer,offset:Pe.endOffset},native:Pe};return[Ie.start,Ie.end].forEach(function(W){for(var ie=W.node,he=W.offset;!(ie instanceof Text)&&ie.childNodes.length>0;)if(ie.childNodes.length>he)ie=ie.childNodes[he],he=0;else{if(ie.childNodes.length!==he)break;he=(ie=ie.lastChild)instanceof Text?ie.data.length:ie.childNodes.length>0?ie.childNodes.length:ie.childNodes.length+1}W.node=ie,W.offset=he}),Ie}},{key:"rangeToNative",value:function(Pe){var Ie=this,W=Pe.collapsed?[Pe.index]:[Pe.index,Pe.index+Pe.length],ie=[],he=this.scroll.length();return W.forEach(function(Ce,ye){Ce=Math.min(he-1,Ce);var _e=Z(Ie.scroll.leaf(Ce),2),Ae=Z(Ie.getPositionData(_e[0],_e[1],0!==ye),2);ie.push(Ae[0],Ae[1])}),ie.length<2?ie.concat(ie):ie}},{key:"getPositionData",value:function(Pe,Ie,W){return Pe instanceof e.LeafBlot?Pe.position(Ie,W):[Pe.domNode,Ie]}},{key:"scrollIntoView",value:function(Pe){var Ie=this.lastRange;if(null!=Ie){var W=this.getBounds(Ie.index,Ie.length);if(null!=W){var ie=this.scroll.length()-1,ye=Z(this.scroll.line(Math.min(Ie.index,ie)),1)[0],Me=ye;if(Ie.length>0&&(Me=Z(this.scroll.line(Math.min(Ie.index+Ie.length,ie)),1)[0]),null!=ye&&null!=Me){var Ye=Pe.getBoundingClientRect();W.top<Ye.top?Pe.scrollTop-=Ye.top-W.top:W.bottom>Ye.bottom&&(Pe.scrollTop+=W.bottom-Ye.bottom)}}}}},{key:"setNativeRange",value:function(Pe,Ie){var W=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pe,ie=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ie,he=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(ee.info("setNativeRange",Pe,Ie,W,ie),null==Pe||null!=this.root.parentNode&&null!=Pe.parentNode&&null!=W.parentNode){var Ce=document.getSelection();if(null!=Ce)if(null!=Pe){this.hasFocus()||this.root.focus();var Me=(this.getNativeRange()||{}).native;if(null==Me||he||Pe!==Me.startContainer||Ie!==Me.startOffset||W!==Me.endContainer||ie!==Me.endOffset){"BR"===Pe.tagName&&(Ie=Array.from(Pe.parentNode.childNodes).indexOf(Pe),Pe=Pe.parentNode),"BR"===W.tagName&&(ie=Array.from(W.parentNode.childNodes).indexOf(W),W=W.parentNode);var _e=document.createRange();Ie=re(Ie),ie=re(ie),_e.setStart(Pe,Ie),_e.setEnd(W,ie),Ce.removeAllRanges(),Ce.addRange(_e)}}else Ce.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(Pe){var Ie=arguments.length>1&&void 0!==arguments[1]&&arguments[1],W=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x.Z.sources.API;if("string"==typeof Ie&&(W=Ie,Ie=!1),ee.info("setRange",Pe),null!=Pe){var ie=this.rangeToNative(Pe);this.setNativeRange.apply(this,j(ie).concat([Ie]))}else this.setNativeRange(null);this.update(W)}},{key:"update",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.Z.sources.USER,Ie=this.lastRange,ie=Z(this.getRange(),2),Ce=ie[1];if(this.lastRange=ie[0],this.lastNative=Ce,null!=this.lastRange&&(this.savedRange=this.lastRange),!v()(Ie,this.lastRange)){var ye;if(!this.composition.isCompositionInProgress()&&null!=Ce&&Ce.native.collapsed&&Ce.start.node!==this.cursor.textNode){var Me=this.cursor.restore();Me&&this.setNativeRange(Me.startNode,Me.startOffset,Me.endNode,Me.endOffset)}var ke,_e=[x.Z.events.SELECTION_CHANGE,w()(this.lastRange),w()(Ie),Pe];(ye=this.emitter).emit.apply(ye,[x.Z.events.EDITOR_CHANGE].concat(_e)),Pe!==x.Z.sources.SILENT&&(ke=this.emitter).emit.apply(ke,_e)}}}]),Se}();function Re(Se,De){return De instanceof Text&&(De=De.parentNode),Se.contains(De)}},1690:(m,T,C)=>{"use strict";function e(j){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(j)}function w(j,F){for(var X=0;X<F.length;X++){var U=F[X];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(j,v(U.key),U)}}function v(j){var F=function x(j,F){if("object"!==e(j)||null===j)return j;var X=j[Symbol.toPrimitive];if(void 0!==X){var U=X.call(j,F||"default");if("object"!==e(U))return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===F?String:Number)(j)}(j,"string");return"symbol"===e(F)?F:String(F)}C.d(T,{Z:()=>B});var b=function(){function j(F,X){(function k(j,F){if(!(j instanceof F))throw new TypeError("Cannot call a class as a function")})(this,j),this.quill=F,this.options=X,this.modules={}}return function P(j,F,X){F&&w(j.prototype,F),X&&w(j,X),Object.defineProperty(j,"prototype",{writable:!1})}(j,[{key:"init",value:function(){var X=this;Object.keys(this.options.modules).forEach(function(U){null==X.modules[U]&&X.addModule(U)})}},{key:"addModule",value:function(X){var U=this.quill.constructor.import("modules/".concat(X));return this.modules[X]=new U(this.quill,this.options.modules[X]||{}),this.modules[X]}}]),j}();b.DEFAULTS={modules:{}},b.themes={default:b};const B=b},715:(m,T,C)=>{"use strict";C.d(T,{HE:()=>v,dk:()=>P,if:()=>w});var e=C(1233),k={scope:e.Scope.BLOCK,whitelist:["right","center","justify"]},w=new e.Attributor("align","align",k),P=new e.ClassAttributor("align","ql-align",k),v=new e.StyleAttributor("align","text-align",k)},7898:(m,T,C)=>{"use strict";C.d(T,{Y:()=>w,w:()=>P});var e=C(1233),k=C(6039),w=new e.ClassAttributor("background","ql-bg",{scope:e.Scope.INLINE}),P=new k.OO("background","background-color",{scope:e.Scope.INLINE})},3991:(m,T,C)=>{"use strict";function k(L){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(G){return typeof G}:function(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(L)}function P(L,G){for(var Q=0;Q<G.length;Q++){var z=G[Q];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(L,x(z.key),z)}}function x(L){var G=function b(L,G){if("object"!==k(L)||null===L)return L;var Q=L[Symbol.toPrimitive];if(void 0!==Q){var z=Q.call(L,G||"default");if("object"!==k(z))return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===G?String:Number)(L)}(L,"string");return"symbol"===k(G)?G:String(G)}function B(){return B=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(G,Q,z){var K=function j(L,G){for(;!Object.prototype.hasOwnProperty.call(L,G)&&null!==(L=H(L)););return L}(G,Q);if(K){var ee=Object.getOwnPropertyDescriptor(K,Q);return ee.get?ee.get.call(arguments.length<3?G:z):ee.value}},B.apply(this,arguments)}function X(L,G){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,K){return z.__proto__=K,z})(L,G)}function H(L){return(H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Q){return Q.__proto__||Object.getPrototypeOf(Q)})(L)}C.d(T,{Z:()=>R});var J=function(L){!function F(L,G){if("function"!=typeof G&&null!==G)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(G&&G.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),G&&X(L,G)}(Q,L);var G=function U(L){var G=function M(){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 K,z=H(L);if(G){var ee=H(this).constructor;K=Reflect.construct(z,arguments,ee)}else K=z.apply(this,arguments);return function Z(L,G){if(G&&("object"===k(G)||"function"==typeof G))return G;if(void 0!==G)throw new TypeError("Derived constructors may only return object or undefined");return function A(L){if(void 0===L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(L)}(this,K)}}(Q);function Q(){return function w(L,G){if(!(L instanceof G))throw new TypeError("Cannot call a class as a function")}(this,Q),G.apply(this,arguments)}return function v(L,G,Q){G&&P(L.prototype,G),Q&&P(L,Q),Object.defineProperty(L,"prototype",{writable:!1})}(Q,[{key:"optimize",value:function(K){B(H(Q.prototype),"optimize",this).call(this,K),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return B(H(Q),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),Q}(C(6603).Z);J.blotName="bold",J.tagName=["STRONG","B"];const R=J},7309:(m,T,C)=>{"use strict";C.d(T,{EK:()=>re,ZP:()=>ee,se:()=>K});var e=C(6446),k=C(4122),w=C(3657),P=C(6603),v=C(8222),x=C(3553),b=C(281);function B(be){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(be)}function j(be,ce){if(!(be instanceof ce))throw new TypeError("Cannot call a class as a function")}function F(be,ce){for(var Re=0;Re<ce.length;Re++){var Se=ce[Re];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(be,U(Se.key),Se)}}function X(be,ce,Re){return ce&&F(be.prototype,ce),Re&&F(be,Re),Object.defineProperty(be,"prototype",{writable:!1}),be}function U(be){var ce=function Z(be,ce){if("object"!==B(be)||null===be)return be;var Re=be[Symbol.toPrimitive];if(void 0!==Re){var Se=Re.call(be,ce||"default");if("object"!==B(Se))return Se;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ce?String:Number)(be)}(be,"string");return"symbol"===B(ce)?ce:String(ce)}function A(){return A=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(ce,Re,Se){var De=function M(be,ce){for(;!Object.prototype.hasOwnProperty.call(be,ce)&&null!==(be=z(be)););return be}(ce,Re);if(De){var Pe=Object.getOwnPropertyDescriptor(De,Re);return Pe.get?Pe.get.call(arguments.length<3?ce:Se):Pe.value}},A.apply(this,arguments)}function H(be,ce){if("function"!=typeof ce&&null!==ce)throw new TypeError("Super expression must either be null or a function");be.prototype=Object.create(ce&&ce.prototype,{constructor:{value:be,writable:!0,configurable:!0}}),Object.defineProperty(be,"prototype",{writable:!1}),ce&&J(be,ce)}function J(be,ce){return(J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Se,De){return Se.__proto__=De,Se})(be,ce)}function R(be){var ce=function Q(){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 De,Se=z(be);if(ce){var Pe=z(this).constructor;De=Reflect.construct(Se,arguments,Pe)}else De=Se.apply(this,arguments);return function L(be,ce){if(ce&&("object"===B(ce)||"function"==typeof ce))return ce;if(void 0!==ce)throw new TypeError("Derived constructors may only return object or undefined");return function G(be){if(void 0===be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be}(be)}(this,De)}}function z(be){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Re){return Re.__proto__||Object.getPrototypeOf(Re)})(be)}var K=function(be){H(Re,be);var ce=R(Re);function Re(){return j(this,Re),ce.apply(this,arguments)}return X(Re,[{key:"code",value:function(De,Pe){var Ie=this.children.map(function(W){return W.length()<=1?"":W.domNode.textContent}).join("\n").slice(De,De+Pe);return(0,v.b)(Ie)}},{key:"html",value:function(De,Pe){return"<pre>\n".concat(this.code(De,Pe),"\n</pre>")}}],[{key:"create",value:function(De){var Pe=A(z(Re),"create",this).call(this,De);return Pe.setAttribute("spellcheck",!1),Pe}}]),Re}(x.Z),ee=function(be){H(Re,be);var ce=R(Re);function Re(){return j(this,Re),ce.apply(this,arguments)}return X(Re,null,[{key:"register",value:function(){b.ZP.register(K)}}]),Re}(e.ZP),re=function(be){H(Re,be);var ce=R(Re);function Re(){return j(this,Re),ce.apply(this,arguments)}return X(Re)}(P.Z);re.blotName="code",re.tagName="CODE",ee.blotName="code-block",ee.className="ql-code-block",ee.tagName="DIV",K.blotName="code-block-container",K.className="ql-code-block-container",K.tagName="DIV",K.allowedChildren=[ee],ee.allowedChildren=[v.Z,k.Z,w.Z],ee.requiredContainer=K,ee.TAB="  "},6039:(m,T,C)=>{"use strict";C.d(T,{HQ:()=>L,Hn:()=>R,OO:()=>J});var e=C(1233);function k(G){return(k="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})(G)}function P(G,Q){for(var z=0;z<Q.length;z++){var K=Q[z];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(G,x(K.key),K)}}function x(G){var Q=function b(G,Q){if("object"!==k(G)||null===G)return G;var z=G[Symbol.toPrimitive];if(void 0!==z){var K=z.call(G,Q||"default");if("object"!==k(K))return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Q?String:Number)(G)}(G,"string");return"symbol"===k(Q)?Q:String(Q)}function B(){return B=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Q,z,K){var ee=function j(G,Q){for(;!Object.prototype.hasOwnProperty.call(G,Q)&&null!==(G=H(G)););return G}(Q,z);if(ee){var re=Object.getOwnPropertyDescriptor(ee,z);return re.get?re.get.call(arguments.length<3?Q:K):re.value}},B.apply(this,arguments)}function X(G,Q){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,ee){return K.__proto__=ee,K})(G,Q)}function H(G){return(H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(z){return z.__proto__||Object.getPrototypeOf(z)})(G)}var J=function(G){!function F(G,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Q&&Q.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Object.defineProperty(G,"prototype",{writable:!1}),Q&&X(G,Q)}(z,G);var Q=function U(G){var Q=function M(){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 ee,K=H(G);if(Q){var re=H(this).constructor;ee=Reflect.construct(K,arguments,re)}else ee=K.apply(this,arguments);return function Z(G,Q){if(Q&&("object"===k(Q)||"function"==typeof Q))return Q;if(void 0!==Q)throw new TypeError("Derived constructors may only return object or undefined");return function A(G){if(void 0===G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}(G)}(this,ee)}}(z);function z(){return function w(G,Q){if(!(G instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,z),Q.apply(this,arguments)}return function v(G,Q,z){Q&&P(G.prototype,Q),z&&P(G,z),Object.defineProperty(G,"prototype",{writable:!1})}(z,[{key:"value",value:function(ee){var re=B(H(z.prototype),"value",this).call(this,ee);if(0!==re.indexOf("rgb("))return re;var be=(re=re.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(ce){return"00".concat(parseInt(ce,10).toString(16)).slice(-2)}).join("");return"#".concat(be)}}]),z}(e.StyleAttributor),R=new e.ClassAttributor("color","ql-color",{scope:e.Scope.INLINE}),L=new J("color","color",{scope:e.Scope.INLINE})},4048:(m,T,C)=>{"use strict";C.d(T,{H8:()=>v,IF:()=>w,hY:()=>P});var e=C(1233),k={scope:e.Scope.BLOCK,whitelist:["rtl"]},w=new e.Attributor("direction","dir",k),P=new e.ClassAttributor("direction","ql-direction",k),v=new e.StyleAttributor("direction","direction",k)},5832:(m,T,C)=>{"use strict";C.d(T,{H:()=>G,_:()=>R});var e=C(1233);function k(Q){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(z){return typeof z}:function(z){return z&&"function"==typeof Symbol&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z})(Q)}function P(Q,z){for(var K=0;K<z.length;K++){var ee=z[K];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(Q,x(ee.key),ee)}}function x(Q){var z=function b(Q,z){if("object"!==k(Q)||null===Q)return Q;var K=Q[Symbol.toPrimitive];if(void 0!==K){var ee=K.call(Q,z||"default");if("object"!==k(ee))return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===z?String:Number)(Q)}(Q,"string");return"symbol"===k(z)?z:String(z)}function B(){return B=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(z,K,ee){var re=function j(Q,z){for(;!Object.prototype.hasOwnProperty.call(Q,z)&&null!==(Q=H(Q)););return Q}(z,K);if(re){var be=Object.getOwnPropertyDescriptor(re,K);return be.get?be.get.call(arguments.length<3?z:ee):be.value}},B.apply(this,arguments)}function X(Q,z){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,re){return ee.__proto__=re,ee})(Q,z)}function H(Q){return(H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)})(Q)}var J={scope:e.Scope.INLINE,whitelist:["serif","monospace"]},R=new e.ClassAttributor("font","ql-font",J),L=function(Q){!function F(Q,z){if("function"!=typeof z&&null!==z)throw new TypeError("Super expression must either be null or a function");Q.prototype=Object.create(z&&z.prototype,{constructor:{value:Q,writable:!0,configurable:!0}}),Object.defineProperty(Q,"prototype",{writable:!1}),z&&X(Q,z)}(K,Q);var z=function U(Q){var z=function M(){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 re,ee=H(Q);if(z){var be=H(this).constructor;re=Reflect.construct(ee,arguments,be)}else re=ee.apply(this,arguments);return function Z(Q,z){if(z&&("object"===k(z)||"function"==typeof z))return z;if(void 0!==z)throw new TypeError("Derived constructors may only return object or undefined");return function A(Q){if(void 0===Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}(Q)}(this,re)}}(K);function K(){return function w(Q,z){if(!(Q instanceof z))throw new TypeError("Cannot call a class as a function")}(this,K),z.apply(this,arguments)}return function v(Q,z,K){z&&P(Q.prototype,z),K&&P(Q,K),Object.defineProperty(Q,"prototype",{writable:!1})}(K,[{key:"value",value:function(re){return B(H(K.prototype),"value",this).call(this,re).replace(/["']/g,"")}}]),K}(e.StyleAttributor),G=new L("font","font-family",J)},7256:(m,T,C)=>{"use strict";function k(L){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(G){return typeof G}:function(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(L)}function P(L,G){for(var Q=0;Q<G.length;Q++){var z=G[Q];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(L,x(z.key),z)}}function x(L){var G=function b(L,G){if("object"!==k(L)||null===L)return L;var Q=L[Symbol.toPrimitive];if(void 0!==Q){var z=Q.call(L,G||"default");if("object"!==k(z))return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===G?String:Number)(L)}(L,"string");return"symbol"===k(G)?G:String(G)}function B(){return B=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(G,Q,z){var K=function j(L,G){for(;!Object.prototype.hasOwnProperty.call(L,G)&&null!==(L=H(L)););return L}(G,Q);if(K){var ee=Object.getOwnPropertyDescriptor(K,Q);return ee.get?ee.get.call(arguments.length<3?G:z):ee.value}},B.apply(this,arguments)}function X(L,G){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,K){return z.__proto__=K,z})(L,G)}function H(L){return(H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Q){return Q.__proto__||Object.getPrototypeOf(Q)})(L)}C.d(T,{N:()=>R,Z:()=>J});var J=function(L){!function F(L,G){if("function"!=typeof G&&null!==G)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(G&&G.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),G&&X(L,G)}(Q,L);var G=function U(L){var G=function M(){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 K,z=H(L);if(G){var ee=H(this).constructor;K=Reflect.construct(z,arguments,ee)}else K=z.apply(this,arguments);return function Z(L,G){if(G&&("object"===k(G)||"function"==typeof G))return G;if(void 0!==G)throw new TypeError("Derived constructors may only return object or undefined");return function A(L){if(void 0===L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(L)}(this,K)}}(Q);function Q(){return function w(L,G){if(!(L instanceof G))throw new TypeError("Cannot call a class as a function")}(this,Q),G.apply(this,arguments)}return function v(L,G,Q){G&&P(L.prototype,G),Q&&P(L,Q),Object.defineProperty(L,"prototype",{writable:!1})}(Q,[{key:"format",value:function(K,ee){K===this.statics.blotName&&ee?this.domNode.setAttribute("href",this.constructor.sanitize(ee)):B(H(Q.prototype),"format",this).call(this,K,ee)}}],[{key:"create",value:function(K){var ee=B(H(Q),"create",this).call(this,K);return ee.setAttribute("href",this.sanitize(K)),ee.setAttribute("rel","noopener noreferrer"),ee.setAttribute("target","_blank"),ee}},{key:"formats",value:function(K){return K.getAttribute("href")}},{key:"sanitize",value:function(K){return R(K,this.PROTOCOL_WHITELIST)?K:this.SANITIZED_URL}}]),Q}(C(6603).Z);function R(L,G){var Q=document.createElement("a");Q.href=L;var z=Q.href.slice(0,Q.href.indexOf(":"));return G.indexOf(z)>-1}J.blotName="link",J.tagName="A",J.SANITIZED_URL="about:blank",J.PROTOCOL_WHITELIST=["http","https","mailto","tel"]},1629:(m,T,C)=>{"use strict";C.d(T,{Z:()=>w,m:()=>k});var e=C(1233),k=new e.ClassAttributor("size","ql-size",{scope:e.Scope.INLINE,whitelist:["small","large","huge"]}),w=new e.StyleAttributor("size","font-size",{scope:e.Scope.INLINE,whitelist:["10px","18px","32px"]})},1342:(m,T,C)=>{"use strict";C.d(T,{Du:()=>U,h6:()=>Z,kk:()=>X,yA:()=>F});var e=C(6062),k=C(1801),w=C(8252);function P(A){return function B(A){if(Array.isArray(A))return j(A)}(A)||function b(A){if(typeof Symbol<"u"&&null!=A[Symbol.iterator]||null!=A["@@iterator"])return Array.from(A)}(A)||function x(A,M){if(A){if("string"==typeof A)return j(A,M);var H=Object.prototype.toString.call(A).slice(8,-1);if("Object"===H&&A.constructor&&(H=A.constructor.name),"Map"===H||"Set"===H)return Array.from(A);if("Arguments"===H||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return j(A,M)}}(A)||function v(){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(A,M){(null==M||M>A.length)&&(M=A.length);for(var H=0,J=new Array(M);H<M;H++)J[H]=A[H];return J}var F=w.F1.map(function(A){return(0,e.Z)(w.Pw,A)}),X=w.Mu.map(function(A){return(0,k.Z)(w.Pw,A)}),U=X.reduce(function(A,M){return A[M.attrName]=M,A},{}),Z=[].concat(P(F),P(X)).reduce(function(A,M){return A[M.keyName]=M,A},{})},8252:(m,T,C)=>{"use strict";C.d(T,{F1:()=>k,Mu:()=>w,Pw:()=>e,fU:()=>P});var e={name:"cell",allowedTags:["TH","TD","TR"]},k=["height","width"],w=["height","width","vertical-align","text-align","background-color","border","border-style","border-width","border-color","padding","padding-top","padding-right","padding-bottom","padding-left"],P=new Set([].concat(k,w))},6062:(m,T,C)=>{"use strict";C.d(T,{Z:()=>b});var e=C(1674),k=C(2141),w=C(3398),P=["name"];function b(B,j){var F=B.name,X=function v(B,j){if(null==B)return{};var X,U,F=function x(B,j){if(null==B)return{};var U,Z,F={},X=Object.keys(B);for(Z=0;Z<X.length;Z++)!(j.indexOf(U=X[Z])>=0)&&(F[U]=B[U]);return F}(B,j);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(B);for(U=0;U<Z.length;U++)!(j.indexOf(X=Z[U])>=0)&&Object.prototype.propertyIsEnumerable.call(B,X)&&(F[X]=B[X])}return F}(B,P),U="".concat(F).concat((0,k.Z)(j)),Z="".concat(w.WT.attribute).concat(F,"_").concat(j);return new e.Z(U,Z,X)}},1801:(m,T,C)=>{"use strict";C.d(T,{Z:()=>Z});var e=C(4569),k=C(2141),w=C(3398),P=["name","formatName"];function B(A,M){(null==M||M>A.length)&&(M=A.length);for(var H=0,J=new Array(M);H<M;H++)J[H]=A[H];return J}function Z(A,M){var H=A.name,J=A.formatName,R=function X(A,M){if(null==A)return{};var J,R,H=function U(A,M){if(null==A)return{};var R,L,H={},J=Object.keys(A);for(L=0;L<J.length;L++)!(M.indexOf(R=J[L])>=0)&&(H[R]=A[R]);return H}(A,M);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(A);for(R=0;R<L.length;R++)!(M.indexOf(J=L[R])>=0)&&Object.prototype.propertyIsEnumerable.call(A,J)&&(H[J]=A[J])}return H}(A,P),G=function v(A,M){return function F(A){if(Array.isArray(A))return A}(A)||function j(A,M){var H=null==A?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(null!=H){var J,R,L,G,Q=[],z=!0,K=!1;try{if(L=(H=H.call(A)).next,0===M){if(Object(H)!==H)return;z=!1}else for(;!(z=(J=L.call(H)).done)&&(Q.push(J.value),Q.length!==M);z=!0);}catch(ee){K=!0,R=ee}finally{try{if(!z&&null!=H.return&&(G=H.return(),Object(G)!==G))return}finally{if(K)throw R}}return Q}}(A,M)||function b(A,M){if(A){if("string"==typeof A)return B(A,M);var H=Object.prototype.toString.call(A).slice(8,-1);if("Object"===H&&A.constructor&&(H=A.constructor.name),"Map"===H||"Set"===H)return Array.from(A);if("Arguments"===H||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return B(A,M)}}(A,M)||function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(M.split("-"),2),Q=G[0],z=G[1],K="".concat(H).concat((0,k.Z)(J??Q)).concat(z?(0,k.Z)(z):""),ee="".concat(w.WT.style).concat(H,"_").concat(M);return new e.Z(K,ee,R)}},319:(m,T,C)=>{"use strict";C.d(T,{Qu:()=>F,VT:()=>X,Zt:()=>Z,li:()=>U});var e=C(6062),k=C(1801),w=C(19);function P(A){return function B(A){if(Array.isArray(A))return j(A)}(A)||function b(A){if(typeof Symbol<"u"&&null!=A[Symbol.iterator]||null!=A["@@iterator"])return Array.from(A)}(A)||function x(A,M){if(A){if("string"==typeof A)return j(A,M);var H=Object.prototype.toString.call(A).slice(8,-1);if("Object"===H&&A.constructor&&(H=A.constructor.name),"Map"===H||"Set"===H)return Array.from(A);if("Arguments"===H||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return j(A,M)}}(A)||function v(){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(A,M){(null==M||M>A.length)&&(M=A.length);for(var H=0,J=new Array(M);H<M;H++)J[H]=A[H];return J}var F=w.N2.map(function(A){return(0,e.Z)(w.Sp,A)}),X=w.GX.map(function(A){return(0,k.Z)(w.Sp,A)}),U=X.reduce(function(A,M){return A[M.attrName]=M,A},{}),Z=[].concat(P(F),P(X)).reduce(function(A,M){return A[M.keyName]=M,A},{})},19:(m,T,C)=>{"use strict";C.d(T,{GX:()=>w,N2:()=>k,Sp:()=>e,bc:()=>P});var e={name:"table",allowedTags:["TABLE"]},k=["height","width"],w=["height","width","text-align","background-color","border","border-style","border-width","border-color"],P=new Set([].concat(k,w))},8536:(m,T,C)=>{"use strict";function e(){return Math.random().toString(36).slice(2,6)}C.d(T,{Z:()=>e})},1969:(m,T,C)=>{"use strict";C.d(T,{KA:()=>Ee,Lv:()=>Oe,RM:()=>Ke,SC:()=>pe,iD:()=>_e,pj:()=>Ye,xD:()=>Be,xJ:()=>q,xs:()=>de,zW:()=>Me});var e=C(6446),k=C(4122),w=C(3553),P=C(5874),v=C(1342),x=C(319),b=C(8536),B=C(2795);function j(We){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ue){return typeof Ue}:function(Ue){return Ue&&"function"==typeof Symbol&&Ue.constructor===Symbol&&Ue!==Symbol.prototype?"symbol":typeof Ue})(We)}function F(We,Ue){return function Z(We){if(Array.isArray(We))return We}(We)||function U(We,Ue){var Ve=null==We?null:typeof Symbol<"u"&&We[Symbol.iterator]||We["@@iterator"];if(null!=Ve){var tt,at,Vt,qe,Nt=[],et=!0,ue=!1;try{if(Vt=(Ve=Ve.call(We)).next,0===Ue){if(Object(Ve)!==Ve)return;et=!1}else for(;!(et=(tt=Vt.call(Ve)).done)&&(Nt.push(tt.value),Nt.length!==Ue);et=!0);}catch(me){ue=!0,at=me}finally{try{if(!et&&null!=Ve.return&&(qe=Ve.return(),Object(qe)!==qe))return}finally{if(ue)throw at}}return Nt}}(We,Ue)||H(We,Ue)||function X(){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 H(We,Ue){if(We){if("string"==typeof We)return L(We,Ue);var Ve=Object.prototype.toString.call(We).slice(8,-1);if("Object"===Ve&&We.constructor&&(Ve=We.constructor.name),"Map"===Ve||"Set"===Ve)return Array.from(We);if("Arguments"===Ve||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ve))return L(We,Ue)}}function L(We,Ue){(null==Ue||Ue>We.length)&&(Ue=We.length);for(var Ve=0,tt=new Array(Ue);Ve<Ue;Ve++)tt[Ve]=We[Ve];return tt}function G(We,Ue){if(!(We instanceof Ue))throw new TypeError("Cannot call a class as a function")}function Q(We,Ue){for(var Ve=0;Ve<Ue.length;Ve++){var tt=Ue[Ve];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(We,K(tt.key),tt)}}function z(We,Ue,Ve){return Ue&&Q(We.prototype,Ue),Ve&&Q(We,Ve),Object.defineProperty(We,"prototype",{writable:!1}),We}function K(We){var Ue=function ee(We,Ue){if("object"!==j(We)||null===We)return We;var Ve=We[Symbol.toPrimitive];if(void 0!==Ve){var tt=Ve.call(We,Ue||"default");if("object"!==j(tt))return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Ue?String:Number)(We)}(We,"string");return"symbol"===j(Ue)?Ue:String(Ue)}function re(){return re=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Ue,Ve,tt){var at=function be(We,Ue){for(;!Object.prototype.hasOwnProperty.call(We,Ue)&&null!==(We=W(We)););return We}(Ue,Ve);if(at){var Vt=Object.getOwnPropertyDescriptor(at,Ve);return Vt.get?Vt.get.call(arguments.length<3?Ue:tt):Vt.value}},re.apply(this,arguments)}function ce(We,Ue){if("function"!=typeof Ue&&null!==Ue)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Ue&&Ue.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Object.defineProperty(We,"prototype",{writable:!1}),Ue&&Re(We,Ue)}function Re(We,Ue){return(Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(tt,at){return tt.__proto__=at,tt})(We,Ue)}function Se(We){var Ue=function Ie(){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 at,tt=W(We);if(Ue){var Vt=W(this).constructor;at=Reflect.construct(tt,arguments,Vt)}else at=tt.apply(this,arguments);return function De(We,Ue){if(Ue&&("object"===j(Ue)||"function"==typeof Ue))return Ue;if(void 0!==Ue)throw new TypeError("Derived constructors may only return object or undefined");return function Pe(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}(this,at)}}function W(We){return(W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ve){return Ve.__proto__||Object.getPrototypeOf(Ve)})(We)}var ie=["row","cell"],Ce="data-table-";function ye(We,Ue,Ve){We.forEachAt(Ue,Ve,function(tt,at,Vt){tt.deleteAt(at,Vt)})}var Me=function(We){ce(Ve,We);var Ue=Se(Ve);function Ve(){return G(this,Ve),Ue.apply(this,arguments)}return z(Ve,[{key:"optimize",value:function(){var at,Vt=this.domNode.getAttribute("".concat(Ce,"row"));if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var qe=this.domNode,Nt={row:Vt};Object.keys(v.Du).forEach(function(Te){var je=qe.dataset[Te.toLowerCase()];je&&(Nt[Te]=je)}),this.wrap(this.statics.requiredContainer.blotName,Nt)}for(var et=arguments.length,ue=new Array(et),me=0;me<et;me++)ue[me]=arguments[me];(at=re(W(Ve.prototype),"optimize",this)).call.apply(at,[this].concat(ue))}},{key:"format",value:function(at,Vt){"tableCellLine"===at&&null===Vt&&(Vt=this.formats().tableCellLine);var Nt=ie.indexOf(at)>-1;if(Nt||x.li[at]||v.Du[at]){var ue,me,et="data-".concat(Nt?"table-":"").concat(at.toLowerCase());(0,B.Z)(this.domNode,et,Vt),v.Du[at]&&(null===(ue=this.cell())||void 0===ue||ue.format(at,Vt)),x.li[at]&&(null===(me=this.cell())||void 0===me||null===(me=me.table())||void 0===me||me.format(at,Vt))}else re(W(Ve.prototype),"format",this).call(this,at,Vt)}},{key:"cell",value:function(){return"row"in this.parent?this.parent:null}}],[{key:"create",value:function(at){var Vt=re(W(Ve),"create",this).call(this,at);return ie.forEach(function(qe){var Nt,et="row"===qe?Oe:fe;Vt.setAttribute("".concat(Ce).concat(qe),null!==(Nt=at?.[qe])&&void 0!==Nt?Nt:et())}),Vt}},{key:"formats",value:function(at){return ie.reduce(function(Vt,qe){var Nt="".concat(Ce).concat(qe);return at.hasAttribute(Nt)&&(Vt[qe]=at.getAttribute(Nt)||void 0),Vt},{})}}]),Ve}(e.ZP);Me.blotName="tableCellLine",Me.className="ql-table-cell-line",Me.tagName="P";var _e=function(We){ce(Ve,We);var Ue=Se(Ve);function Ve(){return G(this,Ve),Ue.apply(this,arguments)}return z(Ve)}(Me);_e.blotName="tableHeaderCellLine",_e.className="ql-table-header-cell-line";var ke=function(We){ce(Ve,We);var Ue=Se(Ve);function Ve(){return G(this,Ve),Ue.apply(this,arguments)}return z(Ve,[{key:"format",value:function(at,Vt){var qe;null===(qe=v.Du[at])||void 0===qe||qe.add(this.domNode,Vt)}},{key:"checkMerge",value:function(){if(re(W(Ve.prototype),"checkMerge",this).call(this)&&null!=this.next.children.head){var at=this.children.head.formats()[this.children.head.statics.blotName],Vt=this.children.tail.formats()[this.children.tail.statics.blotName],qe=this.next.children.head.formats()[this.next.children.head.statics.blotName],Nt=this.next.children.tail.formats()[this.next.children.tail.statics.blotName];return at.cell===Vt.cell&&at.cell===qe.cell&&at.cell===Nt.cell}return!1}},{key:"formats",value:function(){return Ve.cellFormats(this.domNode)}},{key:"cellOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"row",value:function(){return"table"in this.parent?this.parent:null}},{key:"rowOffset",value:function(){return this.row()?this.row().rowOffset():-1}},{key:"table",value:function(){var at;return null===(at=this.row())||void 0===at?void 0:at.table()}},{key:"optimize",value:function(){var at,Vt,qe=null!==(at=this.domNode.getAttribute("".concat(Ce,"row")))&&void 0!==at?at:this.domNode.getAttribute("".concat(Ce,"header-row"));this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName,{row:qe});for(var Nt=arguments.length,et=new Array(Nt),ue=0;ue<Nt;ue++)et[ue]=arguments[ue];(Vt=re(W(Ve.prototype),"optimize",this)).call.apply(Vt,[this].concat(et))}},{key:"deleteAt",value:function(at,Vt){ye(this.children,at,Vt)}}],[{key:"create",value:function(at){var Vt=re(W(Ve),"create",this).call(this,at);return at&&Object.keys(at).forEach(function(qe){var Nt;null===(Nt=v.Du[qe])||void 0===Nt||Nt.add(Vt,at[qe])}),Vt}},{key:"cellFormats",value:function(at){var qe,Vt={};return(at.hasAttribute("".concat(Ce,"row"))||at.hasAttribute("".concat(Ce,"header-row")))&&(Vt.row=null!==(qe=at.getAttribute("".concat(Ce,"row")))&&void 0!==qe?qe:at.getAttribute("".concat(Ce,"header-row"))),Object.keys(v.Du).forEach(function(Nt){var et,ue=null===(et=at.firstElementChild)||void 0===et?void 0:et.dataset[Nt.toLowerCase()];ue&&(Vt[Nt]=ue)}),Vt}}]),Ve}(w.Z);ke.tagName=["TD","TH"];var Ye=function(We){ce(Ve,We);var Ue=Se(Ve);function Ve(){return G(this,Ve),Ue.apply(this,arguments)}return z(Ve,[{key:"format",value:function(at,Vt){"row"===at?(this.domNode.setAttribute("".concat(Ce).concat(at),Vt),this.children.forEach(function(qe){qe.format(at,Vt)})):re(W(Ve.prototype),"format",this).call(this,at,Vt)}}],[{key:"create",value:function(at){var Vt=re(W(Ve),"create",this).call(this,at),qe="".concat(Ce,"row");return null!=at&&at.row&&Vt.setAttribute(qe,at.row),Vt}}]),Ve}(ke);Ye.blotName="tableCell",Ye.className="ql-table-data-cell",Ye.dataAttribute="".concat(Ce,"row"),Ye.defaultChild=Me;var de=function(We){ce(Ve,We);var Ue=Se(Ve);function Ve(){return G(this,Ve),Ue.apply(this,arguments)}return z(Ve,[{key:"format",value:function(at,Vt){"row"===at?(this.domNode.setAttribute("".concat(Ce).concat(at),Vt),this.children.forEach(function(qe){qe.format(at,Vt)})):re(W(Ve.prototype),"format",this).call(this,at,Vt)}}],[{key:"create",value:function(at){var Vt=re(W(Ve),"create",this).call(this,at),qe="".concat(Ce,"header-row");return at&&at.row&&Vt.setAttribute(qe,at.row),Vt}}]),Ve}(ke);de.tagName=["TH","TD"],de.className="ql-table-header-cell",de.blotName="tableHeaderCell",de.dataAttribute="".concat(Ce,"header-row"),de.defaultChild=_e;var Ae=function(We){ce(Ve,We);var Ue=Se(Ve);function Ve(){return G(this,Ve),Ue.apply(this,arguments)}return z(Ve,[{key:"checkMerge",value:function(){if(re(W(Ve.prototype),"checkMerge",this).call(this)&&(0,P.Z)(this.next.children.head)){var at="row",Vt=this.children.head.formats(),qe=this.children.tail.formats(),Nt=this.next.children.head.formats(),et=this.next.children.tail.formats();return Vt[at]===qe[at]&&Vt[at]===Nt[at]&&Vt[at]===et[at]}return!1}},{key:"optimize",value:function(){for(var at,Vt=this,qe=arguments.length,Nt=new Array(qe),et=0;et<qe;et++)Nt[et]=arguments[et];(at=re(W(Ve.prototype),"optimize",this)).call.apply(at,[this].concat(Nt));var ue=this.childFormatName;this.children.forEach(function(me){if((0,P.Z)(me.next)){var Te=me.formats(),je=me.next.formats();if(Te[ue]!==je[ue]){var Ne=Vt.splitAfter(me);Ne&&Ne.optimize(),Vt.prev&&Vt.prev.optimize()}}})}},{key:"rowOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"table",value:function(){var at;return null===(at=this.parent)||void 0===at?void 0:at.parent}},{key:"formats",value:function(){var at={},Vt="".concat(Ce,"row");return this.domNode.hasAttribute(Vt)&&(at[Vt]=this.domNode.getAttribute(Vt)),at}}],[{key:"create",value:function(at){var Vt=re(W(Ve),"create",this).call(this,at);return null!=at&&at.row&&Vt.setAttribute("".concat(Ce,"row"),at.row),Vt}}]),Ve}(w.Z);Ae.tagName="TR";var pe=function(We){ce(Ve,We);var Ue=Se(Ve);function Ve(tt,at){var Vt;return G(this,Ve),(Vt=Ue.call(this,tt,at)).childFormatName="table",Vt}return z(Ve,[{key:"deleteAt",value:function(at,Vt){ye(this.children,at,Vt)}}]),Ve}(Ae);pe.blotName="tableRow";var Ee=function(We){ce(Ve,We);var Ue=Se(Ve);function Ve(tt,at){var Vt;return G(this,Ve),(Vt=Ue.call(this,tt,at)).childFormatName="tableHeaderCell",Vt}return z(Ve)}(Ae);Ee.blotName="tableHeaderRow";var le=function(We){ce(Ve,We);var Ue=Se(Ve);function Ve(){return G(this,Ve),Ue.apply(this,arguments)}return z(Ve,[{key:"optimize",value:function(){var at;if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var Vt,qe=(null===(Vt=this.children.head.children.head.children)||void 0===Vt||null===(Vt=Vt.head)||void 0===Vt?void 0:Vt.domNode)||null,Nt={};qe&&Object.keys(x.li).forEach(function(Te){var je=qe.dataset[Te.toLowerCase()];je&&(Nt[Te]=je)}),this.wrap(this.statics.requiredContainer.blotName,Nt)}for(var et=arguments.length,ue=new Array(et),me=0;me<et;me++)ue[me]=arguments[me];(at=re(W(Ve.prototype),"optimize",this)).call.apply(at,[this].concat(ue))}}]),Ve}(w.Z),Ke=function(We){ce(Ve,We);var Ue=Se(Ve);function Ve(){return G(this,Ve),Ue.apply(this,arguments)}return z(Ve)}(le);Ke.blotName="tableBody",Ke.tagName="TBODY";var Be=function(We){ce(Ve,We);var Ue=Se(Ve);function Ve(){return G(this,Ve),Ue.apply(this,arguments)}return z(Ve)}(le);Be.blotName="tableHeader",Be.tagName="THEAD";var q=function(We){ce(Ve,We);var Ue=Se(Ve);function Ve(){return G(this,Ve),Ue.apply(this,arguments)}return z(Ve,[{key:"balanceCells",value:function(){var at=this.descendants(Ee),Vt=this.descendants(pe),qe=this.getMaxTableColCount(at,Vt);this.balanceRows(qe,at,de),this.balanceRows(qe,Vt,Ye)}},{key:"getMaxTableColCount",value:function(at,Vt){return Math.max(this.getMaxRowColCount(at),this.getMaxRowColCount(Vt))}},{key:"getMaxRowColCount",value:function(at){return Math.max.apply(Math,function A(We){return function R(We){if(Array.isArray(We))return L(We)}(We)||function J(We){if(typeof Symbol<"u"&&null!=We[Symbol.iterator]||null!=We["@@iterator"])return Array.from(We)}(We)||H(We)||function M(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(at.map(function(Vt){return Vt.children.length})))}},{key:"balanceRows",value:function(at,Vt,qe){var Nt=this;Vt.forEach(function(et){new Array(at-et.children.length).fill(0).forEach(function(){var ue;(0,P.Z)(et.children.head)&&(ue=qe.cellFormats(et.children.head.domNode));var me=Nt.scroll.create(qe.blotName,ue),Te=Nt.scroll.create(qe.allowedChildren[0].blotName,ue);me.appendChild(Te),et.appendChild(me),me.optimize()})})}},{key:"cells",value:function(at){return this.rows().map(function(Vt){return Vt.children.at(at)})}},{key:"deleteColumn",value:function(at){var Vt=this;[Be,Ke].forEach(function(qe){var ue=F(Vt.descendants(qe),1)[0];!(0,P.Z)(ue)||!(0,P.Z)(ue.children.head)||ue.children.forEach(function(me){var Te=me.children.at(at);(0,P.Z)(Te)&&Te.remove()})})}},{key:"insertColumn",value:function(at){var Vt=this;[Be,Ke].forEach(function(qe){var ue=F(Vt.descendants(qe),1)[0];if((0,P.Z)(ue)&&(0,P.Z)(ue.children.head)){var me=qe===Be?de:Ye,Te=qe===Be?_e:Me;ue.children.forEach(function(je){var Ne=je.children.at(at),lt=Te.formats(je.children.head.children.head.domNode),Qe=Vt.scroll.create(me.blotName,{row:lt.row}),Ct=Vt.scroll.create(Te.blotName,{row:lt.row}),yt=Vt.scroll.create(k.Z.blotName);Ct.appendChild(yt),Qe.appendChild(Ct),je.insertBefore(Qe,Ne)})}})}},{key:"insertRow",value:function(at){var Vt=this,et=F(this.descendants(Ke),1)[0];if((0,P.Z)(et)&&(0,P.Z)(et.children.head)){var ue=Oe(),me=this.scroll.create(pe.blotName,{row:ue});et.children.head.children.forEach(function(){var je=Vt.scroll.create(Ye.blotName,{row:ue}),Ne=Vt.scroll.create(Me.blotName,{row:ue}),lt=Vt.scroll.create(k.Z.blotName);Ne.appendChild(lt),je.appendChild(Ne),me.appendChild(je)});var Te=et.children.at(at);et.insertBefore(me,Te)}}},{key:"insertHeaderRow",value:function(){var at=this,Nt=F(this.descendants(Be),1)[0],me=F(this.descendants(Ke),1)[0];if(!(0,P.Z)(Nt)&&(0,P.Z)(me)&&(0,P.Z)(me.children.head)){var Te=Oe(),je=this.scroll.create(Be.blotName),Ne=this.scroll.create(Ee.blotName),lt=this.children.at(0);je.appendChild(Ne),me.children.head.children.forEach(function(){var Qe=at.scroll.create(de.blotName,{row:Te}),Ct=at.scroll.create(_e.blotName,{row:Te}),yt=at.scroll.create(k.Z.blotName);Ct.appendChild(yt),Qe.appendChild(Ct),Ne.appendChild(Qe),Qe.optimize()}),this.insertBefore(je,lt)}}},{key:"rows",value:function(){var at=this.children.head;return(0,P.Z)(at)?at.children.map(function(Vt){return Vt}):[]}},{key:"formats",value:function(){var at={},Vt=this.cells()[0].domNode.firstElementChild;return Object.keys(x.li).forEach(function(qe){var Nt=Vt?.dataset[qe.toLowerCase()];Nt&&(at[qe]=Nt)}),at}},{key:"format",value:function(at,Vt){var qe=x.li[at];if(qe){var Nt="data-".concat(at.toLowerCase());this.cells().forEach(function(et){(0,B.Z)(et.children.head.domNode,Nt,Vt)}),qe.add(this.domNode,Vt)}}}],[{key:"create",value:function(at){var Vt=re(W(Ve),"create",this).call(this,at);return at&&Object.keys(at).forEach(function(qe){var Nt;null===(Nt=x.li[qe])||void 0===Nt||Nt.add(Vt,at[qe])}),Vt}}]),Ve}(w.Z);function Oe(){return"row-".concat((0,b.Z)())}function fe(){return"cell-".concat((0,b.Z)())}q.blotName="tableContainer",q.tagName="TABLE",q.allowedChildren=[Be,Ke],Ke.requiredContainer=q,Be.requiredContainer=q,Ke.allowedChildren=[pe],pe.requiredContainer=Ke,pe.allowedChildren=[Ye],Ye.requiredContainer=pe,Me.requiredContainer=Ye,Ye.allowedChildren=[Me],Be.allowedChildren=[Ee],Ee.requiredContainer=Be,_e.requiredContainer=de,de.allowedChildren=[_e],Ee.allowedChildren=[de],de.requiredContainer=Ee},2795:(m,T,C)=>{"use strict";function e(k,w,P){P?k.setAttribute(w,P):k.removeAttribute(w)}C.d(T,{Z:()=>e})},5635:(m,T,C)=>{"use strict";C.d(T,{HI:()=>Ke,PF:()=>Be,ZP:()=>le,fw:()=>We});var e=C(9098),k=C.n(e),w=C(1233),P=C(6446),v=C(281),x=C(3122),b=C(7094),B=C(715),j=C(7898),F=C(7309),X=C(6039),U=C(4048),Z=C(5832),A=C(1629),M=C(3071),H=C(2141);function J(Ne,lt){var Qe=Object.keys(Ne);if(Object.getOwnPropertySymbols){var Ct=Object.getOwnPropertySymbols(Ne);lt&&(Ct=Ct.filter(function(yt){return Object.getOwnPropertyDescriptor(Ne,yt).enumerable})),Qe.push.apply(Qe,Ct)}return Qe}function R(Ne){for(var lt=1;lt<arguments.length;lt++){var Qe=null!=arguments[lt]?arguments[lt]:{};lt%2?J(Object(Qe),!0).forEach(function(Ct){G(Ne,Ct,Qe[Ct])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ne,Object.getOwnPropertyDescriptors(Qe)):J(Object(Qe)).forEach(function(Ct){Object.defineProperty(Ne,Ct,Object.getOwnPropertyDescriptor(Qe,Ct))})}return Ne}function L(Ne){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(lt){return typeof lt}:function(lt){return lt&&"function"==typeof Symbol&&lt.constructor===Symbol&&lt!==Symbol.prototype?"symbol":typeof lt})(Ne)}function G(Ne,lt,Qe){return(lt=De(lt))in Ne?Object.defineProperty(Ne,lt,{value:Qe,enumerable:!0,configurable:!0,writable:!0}):Ne[lt]=Qe,Ne}function Q(Ne,lt){return function be(Ne){if(Array.isArray(Ne))return Ne}(Ne)||function re(Ne,lt){var Qe=null==Ne?null:typeof Symbol<"u"&&Ne[Symbol.iterator]||Ne["@@iterator"];if(null!=Qe){var Ct,yt,Gt,ft,nn=[],rn=!0,Mn=!1;try{if(Gt=(Qe=Qe.call(Ne)).next,0===lt){if(Object(Qe)!==Qe)return;rn=!1}else for(;!(rn=(Ct=Gt.call(Qe)).done)&&(nn.push(Ct.value),nn.length!==lt);rn=!0);}catch(On){Mn=!0,yt=On}finally{try{if(!rn&&null!=Qe.return&&(ft=Qe.return(),Object(ft)!==ft))return}finally{if(Mn)throw yt}}return nn}}(Ne,lt)||function K(Ne,lt){if(Ne){if("string"==typeof Ne)return ee(Ne,lt);var Qe=Object.prototype.toString.call(Ne).slice(8,-1);if("Object"===Qe&&Ne.constructor&&(Qe=Ne.constructor.name),"Map"===Qe||"Set"===Qe)return Array.from(Ne);if("Arguments"===Qe||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qe))return ee(Ne,lt)}}(Ne,lt)||function z(){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(Ne,lt){(null==lt||lt>Ne.length)&&(lt=Ne.length);for(var Qe=0,Ct=new Array(lt);Qe<lt;Qe++)Ct[Qe]=Ne[Qe];return Ct}function Re(Ne,lt){for(var Qe=0;Qe<lt.length;Qe++){var Ct=lt[Qe];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(Ne,De(Ct.key),Ct)}}function De(Ne){var lt=function Pe(Ne,lt){if("object"!==L(Ne)||null===Ne)return Ne;var Qe=Ne[Symbol.toPrimitive];if(void 0!==Qe){var Ct=Qe.call(Ne,lt||"default");if("object"!==L(Ct))return Ct;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===lt?String:Number)(Ne)}(Ne,"string");return"symbol"===L(lt)?lt:String(lt)}function W(Ne,lt){return(W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Ct,yt){return Ct.__proto__=yt,Ct})(Ne,lt)}function Ce(Ne){if(void 0===Ne)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ne}function Me(Ne){return(Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Qe){return Qe.__proto__||Object.getPrototypeOf(Qe)})(Ne)}var _e=(0,x.Z)("quill:clipboard"),de=[[3,je],[3,ue],["br",function at(Ne,lt){return Be(lt,"\n")||lt.insert("\n"),lt}],[1,ue],[1,function tt(Ne,lt,Qe){var Ct=Qe.query(Ne);if(null==Ct)return lt;if(Ct.prototype instanceof w.EmbedBlot){var yt={},Gt=Ct.value(Ne);if(null!=Gt)return yt[Ct.blotName]=Gt,(new(k())).insert(yt,Ct.formats(Ne,Qe))}else if(Ct.prototype instanceof w.BlockBlot&&!Be(lt,"\n")&&lt.insert("\n"),"function"==typeof Ct.formats)return Ke(lt,Ct.blotName,Ct.formats(Ne,Qe));return lt}],[1,function Ve(Ne,lt,Qe){if(-1===["TD","TH","TR","TABLE"].indexOf(Ne.tagName)){var Ct=w.Attributor.keys(Ne),yt=w.ClassAttributor.keys(Ne),Gt=w.StyleAttributor.keys(Ne),ft={};if(Ct.concat(yt).concat(Gt).forEach(function(nn){var rn=Qe.query(nn,w.Scope.ATTRIBUTE);null!=rn&&(ft[rn.attrName]=rn.value(Ne),ft[rn.attrName])||(null!=(rn=pe[nn])&&(rn.attrName===nn||rn.keyName===nn)&&(ft[rn.attrName]=rn.value(Ne)||void 0),null!=(rn=Ee[nn])&&(rn.attrName===nn||rn.keyName===nn)&&(ft[(rn=Ee[nn]).attrName]=rn.value(Ne)||void 0))}),Object.keys(ft).length>0)return Ke(lt,ft)}return lt}],[1,function me(Ne,lt){var Qe={},Ct=Ne.style||{};return["height","width"].forEach(function(yt){var Gt=-1!==["TD","TH"].indexOf(Ne.tagName),ft="TABLE"===Ne.tagName;if((Gt||ft)&&Ct[yt]){var nn="".concat(ft?"table":"cell").concat((0,H.Z)(yt));Qe[nn]=Ct[yt]}}),"italic"===Ct.fontStyle&&(Qe.italic=!0),-1!==Ct.textDecoration.indexOf("underline")&&(Qe.underline=!0),-1!==Ct.textDecoration.indexOf("line-through")&&(Qe.strike=!0),(0===Ct.fontWeight.indexOf("bold")||parseInt(Ct.fontWeight,10)>=700)&&(Qe.bold=!0),Object.keys(Qe).length>0&&(lt=Ke(lt,Qe)),parseFloat(Ct.textIndent||0)>0?(new(k())).insert("\t").concat(lt):lt}],["li",function Nt(Ne,lt,Qe){var Ct=Qe.query(Ne);if(null==Ct||"list"!==Ct.blotName||!Be(lt,"\n"))return lt;for(var yt=-1,Gt=Ne.parentNode;null!=Gt;)-1!==["OL","UL"].indexOf(Gt.tagName)&&(yt+=1),Gt=Gt.parentNode;return yt<=0?lt:lt.reduce(function(ft,nn){return nn.attributes&&"number"==typeof nn.attributes.indent?ft.push(nn):ft.insert(nn.insert,R({indent:yt},nn.attributes||{}))},new(k()))}],["ol, ul",function et(Ne,lt){return Ke(lt,"list","OL"===Ne.tagName?"ordered":"bullet")}],["pre",function Vt(Ne,lt,Qe){var Ct=Qe.query("code-block");return Ke(lt,"code-block",!Ct||Ct.formats(Ne,Qe))}],["b",Ue.bind(Ue,"bold")],["i",Ue.bind(Ue,"italic")],["strike",Ue.bind(Ue,"strike")],["style",function qe(){return new(k())}]],Ae=[je,ue],pe=[B.if,U.IF].reduce(function(Ne,lt){return Ne[lt.keyName]=lt,Ne},{}),Ee=[B.HE,j.w,X.HQ,U.H8,Z.H,A.Z].reduce(function(Ne,lt){return Ne[lt.keyName]=lt,Ne},{}),le=function(Ne){!function Ie(Ne,lt){if("function"!=typeof lt&&null!==lt)throw new TypeError("Super expression must either be null or a function");Ne.prototype=Object.create(lt&&lt.prototype,{constructor:{value:Ne,writable:!0,configurable:!0}}),Object.defineProperty(Ne,"prototype",{writable:!1}),lt&&W(Ne,lt)}(Qe,Ne);var lt=function ie(Ne){var lt=function ye(){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 yt,Ct=Me(Ne);if(lt){var Gt=Me(this).constructor;yt=Reflect.construct(Ct,arguments,Gt)}else yt=Ct.apply(this,arguments);return function he(Ne,lt){if(lt&&("object"===L(lt)||"function"==typeof lt))return lt;if(void 0!==lt)throw new TypeError("Derived constructors may only return object or undefined");return Ce(Ne)}(this,yt)}}(Qe);function Qe(Ct,yt){var Gt,ft;return function ce(Ne,lt){if(!(Ne instanceof lt))throw new TypeError("Cannot call a class as a function")}(this,Qe),(ft=lt.call(this,Ct,yt)).quill.root.addEventListener("copy",function(nn){return ft.onCaptureCopy(nn,!1)}),ft.quill.root.addEventListener("cut",function(nn){return ft.onCaptureCopy(nn,!0)}),ft.quill.root.addEventListener("paste",ft.onCapturePaste.bind(Ce(ft))),ft.matchers=[],ft.tableBlots=null!==(Gt=yt.tableBlots)&&void 0!==Gt?Gt:[],ft.multilineParagraph=!1,de.concat(ft.options.matchers).forEach(function(nn){var rn=Q(nn,2);ft.addMatcher(rn[0],rn[1])}),ft}return function Se(Ne,lt,Qe){lt&&Re(Ne.prototype,lt),Qe&&Re(Ne,Qe),Object.defineProperty(Ne,"prototype",{writable:!1})}(Qe,[{key:"addMatcher",value:function(yt,Gt){this.matchers.push([yt,Gt])}},{key:"addTableBlot",value:function(yt){this.tableBlots.push(yt)}},{key:"convert",value:function(yt){var Gt=yt.html,ft=yt.text,nn=yt.keepLastNewLine,rn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return rn[F.ZP.blotName]?(new(k())).insert(ft,G({},F.ZP.blotName,rn[F.ZP.blotName])):Gt?this.applyMatchers(Gt,nn,rn):this.applyTextMatchers(ft)}},{key:"applyTextMatchers",value:function(){var yt=this,Gt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(0===Gt.length)return new(k());var ft=this.prepareTextMatching(),nn=this.quill.root.ownerDocument.createElement("div");nn.textContent=Gt;var rn=nn.childNodes[0];return ft.reduce(function(Mn,On){return On(rn,Mn,yt.quill.scroll)},new(k()))}},{key:"applyMatchers",value:function(yt,Gt){var ft=this,nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},rn=v.ZP.replaceStyleAttribute(yt),Mn=(new DOMParser).parseFromString(rn,"text/html");v.ZP.restoreStyleAttribute(Mn);var On=Mn.body,ji=new WeakMap,Vo=Q(this.prepareMatching(On,ji),2),Qn=We(this.quill.scroll,On,Vo[0],Vo[1],ji,this.multilineParagraph);return Gt||!Be(Qn,"\n")||null!=Qn.ops[Qn.ops.length-1].attributes&&!Object.values(nn).some(function(ei){return ft.tableBlots.includes(ei)})?Qn:Qn.compose((new(k())).retain(Qn.length()-1).delete(1))}},{key:"dangerouslyPasteHTML",value:function(yt,Gt){var ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.ZP.sources.API;if("string"==typeof yt){var nn=this.convert({html:yt,text:""});this.quill.setContents(nn,Gt),this.quill.setSelection(0,v.ZP.sources.SILENT)}else{var rn=this.convert({html:Gt,text:""});this.quill.updateContents((new(k())).retain(yt).concat(rn),ft),this.quill.setSelection(yt+rn.length(),v.ZP.sources.SILENT)}}},{key:"onCaptureCopy",value:function(yt){var Gt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!yt.defaultPrevented){if(!yt.clipboardData)return;yt.preventDefault();var rn=Q(this.quill.selection.getRange(),1)[0];if(null!=rn){var Mn=this.onCopy(rn,Gt),On=Mn.html;yt.clipboardData.setData("text/plain",Mn.text),yt.clipboardData.setData("text/html",On),Gt&&(this.raiseCallback("onCut",yt),(0,M.WQ)({range:rn,quill:this.quill}))}}}},{key:"onCapturePaste",value:function(yt){if(!yt.defaultPrevented&&this.quill.isEnabled()){if(this.raiseCallback("onPaste",yt),!yt.clipboardData)return;yt.preventDefault();var Gt=this.quill.getSelection(!0);if(null!=Gt){var ft=yt.clipboardData.getData("text/html"),nn=Array.from(yt.clipboardData.files||[]);if(!ft&&nn.length>0)return void this.quill.uploader.upload(Gt,nn);if(ft&&nn.length>0){var Mn=(new DOMParser).parseFromString(ft,"text/html").body;if(1===Mn.childElementCount&&"IMG"===Mn.firstElementChild.tagName)return void this.quill.uploader.upload(Gt,nn)}var ji=yt.clipboardData.getData("text/plain");this.onPaste(Gt,{html:ft,text:ji,keepLastNewLine:!0})}}}},{key:"raiseCallback",value:function(yt,Gt){var ft=this.options[yt];ft&&"function"==typeof ft&&ft(Gt)}},{key:"onCopy",value:function(yt){var Gt=yt.index,ft=yt.length,nn=this.quill.getText(Gt,ft);return{html:this.quill.getSemanticHTML(Gt,ft),text:nn}}},{key:"onPaste",value:function(yt,Gt){var ft=Gt.text,nn=Gt.html,rn=Gt.keepLastNewLine,Mn=this.quill.getFormat(yt.index),On=this.convert({text:ft,html:nn,keepLastNewLine:rn},Mn);_e.log("onPaste",On,{text:ft,html:nn});var ji=(new(k())).retain(yt.index).delete(yt.length).concat(On);this.quill.updateContents(ji,v.ZP.sources.USER),this.quill.setSelection(ji.length()-yt.length,v.ZP.sources.SILENT),this.quill.scrollIntoView()}},{key:"prepareMatching",value:function(yt,Gt){var ft=[],nn=[];return this.matchers.forEach(function(rn){var Mn=Q(rn,2),On=Mn[0],ji=Mn[1];switch(On){case 3:nn.push(ji);break;case 1:ft.push(ji);break;default:Array.from(yt.querySelectorAll(On)).forEach(function(Mi){Gt.has(Mi)?Gt.get(Mi).push(ji):Gt.set(Mi,[ji])})}}),[ft,nn]}},{key:"prepareTextMatching",value:function(){var yt=[Te];return this.matchers.forEach(function(Gt){var ft=Q(Gt,2),nn=ft[0],rn=ft[1];-1===Ae.indexOf(rn)&&3===nn&&yt.push(rn)}),yt}}]),Qe}(b.Z);function Ke(Ne,lt,Qe){return"object"===L(lt)?Object.keys(lt).reduce(function(Ct,yt){return Ke(Ct,yt,lt[yt])},Ne):Ne.reduce(function(Ct,yt){if(yt.attributes&&yt.attributes[lt])return Ct.push(yt);var Gt=Qe?G({},lt,Qe):{};return Ct.insert(yt.insert,R(R({},Gt),yt.attributes))},new(k()))}function Be(Ne,lt){for(var Qe="",Ct=Ne.ops.length-1;Ct>=0&&Qe.length<lt.length;--Ct){var yt=Ne.ops[Ct];if("string"!=typeof yt.insert)break;Qe=yt.insert+Qe}return Qe.slice(-1*lt.length)===lt}function q(Ne){return 0!==Ne.childNodes.length&&-1!==["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].indexOf(Ne.tagName.toLowerCase())}le.DEFAULTS={matchers:[]};var Oe=new WeakMap;function fe(Ne){return null!=Ne&&(Oe.has(Ne)||Oe.set(Ne,"PRE"===Ne.tagName||fe(Ne.parentNode)),Oe.get(Ne))}function We(Ne,lt,Qe,Ct,yt,Gt){return lt.nodeType===lt.TEXT_NODE?Ct.reduce(function(ft,nn){return nn(lt,ft,Ne)},new(k())):lt.nodeType===lt.ELEMENT_NODE?Array.from(lt.childNodes||[]).reduce(function(ft,nn,rn,Mn){var On=We(Ne,nn,Qe,Ct,yt,Gt),ji=rn<Mn.length-1&&Mn[rn+1],Mi=ji&&ji.nodeType===lt.ELEMENT_NODE&&["ul","ol"].indexOf(ji.tagName.toLowerCase())>-1;nn.nodeType===lt.ELEMENT_NODE&&(Gt="br"===nn.tagName.toLowerCase(),On=Qe.reduce(function(Co,ti){return ti(nn,Co,Ne)},On),On=(yt.get(nn)||[]).reduce(function(Co,ti){return ti(nn,Co,Ne)},On));var Vo=ft.concat(On);return Gt&&Mi&&Vo.insert("\n"),Vo},new(k())):new(k())}function Ue(Ne,lt,Qe){return Ke(Qe,Ne,!0)}function ue(Ne,lt,Qe){if(!Be(lt,"\n")){if(q(Ne))return lt.insert("\n");if(lt.length()>0&&Ne.nextSibling)for(var Ct=Ne.nextSibling;null!=Ct;){if(q(Ct))return lt.insert("\n");var yt=Qe.query(Ct);if(yt?.prototype instanceof P.i2)return lt.insert("\n");Ct=Ct.firstChild}}return lt}function Te(Ne,lt){var Qe=Ne.data||"";return Qe=Qe.replace(/\r\n/g,"\n"),lt.insert(Qe)}function je(Ne,lt){var Qe=Ne.data;if("O:P"===Ne.parentNode.tagName)return lt.insert(Qe.trim());if(0===Qe.trim().length&&-1!==Qe.indexOf("\n"))return lt;if(!fe(Ne)){var Ct=function(Gt,ft){var nn=ft.replace(/[^\u00a0]/g,"");return nn.length<1&&Gt?" ":nn};Qe=(Qe=Qe.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,Ct.bind(Ct,!0)),(null==Ne.previousSibling&&q(Ne.parentNode)||null!=Ne.previousSibling&&q(Ne.previousSibling))&&(Qe=Qe.replace(/^\s+/,Ct.bind(Ct,!1))),(null==Ne.nextSibling&&q(Ne.parentNode)||null!=Ne.nextSibling&&q(Ne.nextSibling))&&(Qe=Qe.replace(/\s+$/,Ct.bind(Ct,!1)))}return lt.insert(Qe)}},2613:(m,T,C)=>{"use strict";C.d(T,{Z:()=>R});var e=C(1233),k=C(281),w=C(7094),P=C(8034);function v(z){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(K){return typeof K}:function(K){return K&&"function"==typeof Symbol&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K})(z)}function b(z,K){for(var ee=0;ee<K.length;ee++){var re=K[ee];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(z,j(re.key),re)}}function j(z){var K=function F(z,K){if("object"!==v(z)||null===z)return z;var ee=z[Symbol.toPrimitive];if(void 0!==ee){var re=ee.call(z,K||"default");if("object"!==v(re))return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===K?String:Number)(z)}(z,"string");return"symbol"===v(K)?K:String(K)}function U(z,K){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(re,be){return re.__proto__=be,re})(z,K)}function M(z){if(void 0===z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function J(z){return(J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ee){return ee.__proto__||Object.getPrototypeOf(ee)})(z)}var R=function(z){!function X(z,K){if("function"!=typeof K&&null!==K)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(K&&K.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),Object.defineProperty(z,"prototype",{writable:!1}),K&&U(z,K)}(ee,z);var K=function Z(z){var K=function H(){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 be,re=J(z);if(K){var ce=J(this).constructor;be=Reflect.construct(re,arguments,ce)}else be=re.apply(this,arguments);return function A(z,K){if(K&&("object"===v(K)||"function"==typeof K))return K;if(void 0!==K)throw new TypeError("Derived constructors may only return object or undefined");return M(z)}(this,be)}}(ee);function ee(re,be){var ce;return function x(z,K){if(!(z instanceof K))throw new TypeError("Cannot call a class as a function")}(this,ee),(ce=K.call(this,re,be)).lastRecorded=0,ce.ignoreChange=!1,ce.clear(),ce.quill.on(k.ZP.events.EDITOR_CHANGE,function(Re,Se,De,Pe){Re!==k.ZP.events.TEXT_CHANGE||ce.ignoreChange||(ce.options.userOnly&&Pe!==k.ZP.sources.USER?ce.transform(Se):ce.record(Se,De))}),ce.quill.keyboard.addBinding({key:"z",shortKey:!0},ce.undo.bind(M(ce))),ce.quill.keyboard.addBinding({key:"z",shortKey:!0,shiftKey:!0},ce.redo.bind(M(ce))),(0,P.Z)()&&/Win/i.test(navigator.platform)&&ce.quill.keyboard.addBinding({key:"y",shortKey:!0},ce.redo.bind(M(ce))),ce.quill.root.addEventListener("beforeinput",function(Re){"historyUndo"===Re.inputType?(ce.undo(),Re.preventDefault()):"historyRedo"===Re.inputType&&(ce.redo(),Re.preventDefault())}),ce}return function B(z,K,ee){K&&b(z.prototype,K),ee&&b(z,ee),Object.defineProperty(z,"prototype",{writable:!1})}(ee,[{key:"change",value:function(be,ce){if(0!==this.stack[be].length){var Re=this.stack[be].pop(),Se=this.quill.getContents(),De=Re.invert(Se);this.stack[ce].push(De),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(Re,k.ZP.sources.USER),this.ignoreChange=!1;var Pe=function Q(z,K){var ee=K.reduce(function(be,ce){return be+(ce.delete||0)},0),re=K.length()-ee;return function G(z,K){var ee=K.ops[K.ops.length-1];return null!=ee&&(null!=ee.insert?"string"==typeof ee.insert&&ee.insert.endsWith("\n"):null!=ee.attributes&&Object.keys(ee.attributes).some(function(re){return null!=z.query(re,e.Scope.BLOCK)}))}(z,K)&&(re-=1),re}(this.quill.scroll,Re);this.quill.setSelection(Pe)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(be,ce){if(0!==be.ops.length){this.stack.redo=[];var Re=be.invert(ce),Se=Date.now();if(this.lastRecorded+this.options.delay>Se&&this.stack.undo.length>0){var De=this.stack.undo.pop();Re=Re.compose(De)}else this.lastRecorded=Se;0!==Re.length()&&(this.stack.undo.push(Re),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(be){L(this.stack.undo,be),L(this.stack.redo,be)}},{key:"undo",value:function(){this.change("undo","redo")}}]),ee}(w.Z);function L(z,K){for(var ee=K,re=z.length-1;re>=0;re-=1){var be=z[re];z[re]=ee.transform(be,!0),ee=be.transform(ee),0===z[re].length()&&z.splice(re,1)}}R.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1}},990:(m,T,C)=>{"use strict";C.d(T,{Z:()=>z});var e=C(9098),k=C.n(e),w=C(7094),P=C(281),v=C(3071);function x(K){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ee){return typeof ee}:function(ee){return ee&&"function"==typeof Symbol&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee})(K)}function B(K,ee){for(var re=0;re<ee.length;re++){var be=ee[re];be.enumerable=be.enumerable||!1,be.configurable=!0,"value"in be&&(be.writable=!0),Object.defineProperty(K,F(be.key),be)}}function F(K){var ee=function X(K,ee){if("object"!==x(K)||null===K)return K;var re=K[Symbol.toPrimitive];if(void 0!==re){var be=re.call(K,ee||"default");if("object"!==x(be))return be;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ee?String:Number)(K)}(K,"string");return"symbol"===x(ee)?ee:String(ee)}function Z(K,ee){return(Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(be,ce){return be.__proto__=ce,be})(K,ee)}function R(K){return(R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(re){return re.__proto__||Object.getPrototypeOf(re)})(K)}var L=["insertText","insertReplacementText"],G=function(K){!function U(K,ee){if("function"!=typeof ee&&null!==ee)throw new TypeError("Super expression must either be null or a function");K.prototype=Object.create(ee&&ee.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),Object.defineProperty(K,"prototype",{writable:!1}),ee&&Z(K,ee)}(re,K);var ee=function A(K){var ee=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 ce,be=R(K);if(ee){var Re=R(this).constructor;ce=Reflect.construct(be,arguments,Re)}else ce=be.apply(this,arguments);return function M(K,ee){if(ee&&("object"===x(ee)||"function"==typeof ee))return ee;if(void 0!==ee)throw new TypeError("Derived constructors may only return object or undefined");return function H(K){if(void 0===K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}(K)}(this,ce)}}(re);function re(be,ce){var Re;return function b(K,ee){if(!(K instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,re),Re=ee.call(this,be,ce),be.root.addEventListener("beforeinput",function(Se){Re.handleBeforeInput(Se)}),/Android/i.test(navigator.userAgent)||be.on(P.ZP.events.COMPOSITION_BEFORE_START,function(){Re.handleCompositionStart()}),Re}return function j(K,ee,re){ee&&B(K.prototype,ee),re&&B(K,re),Object.defineProperty(K,"prototype",{writable:!1})}(re,[{key:"deleteRange",value:function(ce){(0,v.WQ)({range:ce,quill:this.quill})}},{key:"replaceText",value:function(ce){var Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===ce.length)return!1;if(Re){var Se=this.quill.getFormat(ce.index,1);this.deleteRange(ce),this.quill.updateContents((new(k())).retain(ce.index).insert(Re,Se),P.ZP.sources.USER)}else this.deleteRange(ce);return this.quill.setSelection(ce.index+Re.length,0,P.ZP.sources.SILENT),!0}},{key:"handleBeforeInput",value:function(ce){if(!this.quill.composition.isCompositionInProgress()&&!ce.defaultPrevented&&L.includes(ce.inputType)){var Re=ce.getTargetRanges?ce.getTargetRanges()[0]:null;if(Re&&!0!==Re.collapsed){var Se=function Q(K){var ee;return"string"==typeof K.data?K.data:null!==(ee=K.dataTransfer)&&void 0!==ee&&ee.types.includes("text/plain")?K.dataTransfer.getData("text/plain"):null}(ce);if(null!=Se){var De=this.quill.selection.normalizeNative(Re),Pe=De?this.quill.selection.normalizedToRange(De):null;Pe&&this.replaceText(Pe,Se)&&ce.preventDefault()}}}}},{key:"handleCompositionStart",value:function(){var ce=this.quill.getSelection();ce&&this.replaceText(ce)}}]),re}(w.Z);const z=G},3071:(m,T,C)=>{"use strict";C.d(T,{ZP:()=>_e,WQ:()=>pe});var e=C(8805),k=C.n(e),w=C(2722),P=C.n(w),v=C(9098),x=C.n(v),b=C(1233),B=C(281),j=C(3122),F=C(7094),X=C(8034);function Z(Ee){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(le){return typeof le}:function(le){return le&&"function"==typeof Symbol&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le})(Ee)}function A(Ee,le){return function L(Ee){if(Array.isArray(Ee))return Ee}(Ee)||function R(Ee,le){var Ke=null==Ee?null:typeof Symbol<"u"&&Ee[Symbol.iterator]||Ee["@@iterator"];if(null!=Ke){var Be,q,Oe,fe,We=[],Ue=!0,Ve=!1;try{if(Oe=(Ke=Ke.call(Ee)).next,0===le){if(Object(Ke)!==Ke)return;Ue=!1}else for(;!(Ue=(Be=Oe.call(Ke)).done)&&(We.push(Be.value),We.length!==le);Ue=!0);}catch(tt){Ve=!0,q=tt}finally{try{if(!Ue&&null!=Ke.return&&(fe=Ke.return(),Object(fe)!==fe))return}finally{if(Ve)throw q}}return We}}(Ee,le)||function H(Ee,le){if(Ee){if("string"==typeof Ee)return J(Ee,le);var Ke=Object.prototype.toString.call(Ee).slice(8,-1);if("Object"===Ke&&Ee.constructor&&(Ke=Ee.constructor.name),"Map"===Ke||"Set"===Ke)return Array.from(Ee);if("Arguments"===Ke||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ke))return J(Ee,le)}}(Ee,le)||function M(){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 J(Ee,le){(null==le||le>Ee.length)&&(le=Ee.length);for(var Ke=0,Be=new Array(le);Ke<le;Ke++)Be[Ke]=Ee[Ke];return Be}function G(Ee,le){var Ke=Object.keys(Ee);if(Object.getOwnPropertySymbols){var Be=Object.getOwnPropertySymbols(Ee);le&&(Be=Be.filter(function(q){return Object.getOwnPropertyDescriptor(Ee,q).enumerable})),Ke.push.apply(Ke,Be)}return Ke}function Q(Ee){for(var le=1;le<arguments.length;le++){var Ke=null!=arguments[le]?arguments[le]:{};le%2?G(Object(Ke),!0).forEach(function(Be){z(Ee,Be,Ke[Be])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ee,Object.getOwnPropertyDescriptors(Ke)):G(Object(Ke)).forEach(function(Be){Object.defineProperty(Ee,Be,Object.getOwnPropertyDescriptor(Ke,Be))})}return Ee}function z(Ee,le,Ke){return(le=be(le))in Ee?Object.defineProperty(Ee,le,{value:Ke,enumerable:!0,configurable:!0,writable:!0}):Ee[le]=Ke,Ee}function ee(Ee,le){for(var Ke=0;Ke<le.length;Ke++){var Be=le[Ke];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(Ee,be(Be.key),Be)}}function be(Ee){var le=function ce(Ee,le){if("object"!==Z(Ee)||null===Ee)return Ee;var Ke=Ee[Symbol.toPrimitive];if(void 0!==Ke){var Be=Ke.call(Ee,le||"default");if("object"!==Z(Be))return Be;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===le?String:Number)(Ee)}(Ee,"string");return"symbol"===Z(le)?le:String(le)}function Se(Ee,le){return(Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Be,q){return Be.__proto__=q,Be})(Ee,le)}function ie(Ee){return(ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ke){return Ke.__proto__||Object.getPrototypeOf(Ke)})(Ee)}var he=(0,j.Z)("quill:keyboard"),Ce={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift",left:"leftArrow",up:"upArrow",right:"rightArrow",down:"downArrow",multiply:"asterisk",spacebar:"space",del:"del",subtract:"minus",esc:"escape"},ye={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},Me=(0,X.Z)()&&/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",_e=function(Ee){!function Re(Ee,le){if("function"!=typeof le&&null!==le)throw new TypeError("Super expression must either be null or a function");Ee.prototype=Object.create(le&&le.prototype,{constructor:{value:Ee,writable:!0,configurable:!0}}),Object.defineProperty(Ee,"prototype",{writable:!1}),le&&Se(Ee,le)}(Ke,Ee);var le=function De(Ee){var le=function W(){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 q,Be=ie(Ee);if(le){var Oe=ie(this).constructor;q=Reflect.construct(Be,arguments,Oe)}else q=Be.apply(this,arguments);return function Pe(Ee,le){if(le&&("object"===Z(le)||"function"==typeof le))return le;if(void 0!==le)throw new TypeError("Derived constructors may only return object or undefined");return function Ie(Ee){if(void 0===Ee)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ee}(Ee)}(this,q)}}(Ke);function Ke(Be,q){var Oe;return function K(Ee,le){if(!(Ee instanceof le))throw new TypeError("Cannot call a class as a function")}(this,Ke),(Oe=le.call(this,Be,q)).bindings={},Object.keys(Oe.options.bindings).forEach(function(fe){Oe.options.bindings[fe]&&Oe.addBinding(Oe.options.bindings[fe])}),Oe.addInternalBindings(),Oe.listen(),Oe}return function re(Ee,le,Ke){le&&ee(Ee.prototype,le),Ke&&ee(Ee,Ke),Object.defineProperty(Ee,"prototype",{writable:!1})}(Ke,[{key:"addInternalBindings",value:function(){var q=this;this.quill.once(B.ZP.events.CONTENT_SETTED,function(){q.addBinding({key:"enter",shiftKey:null},q.handleEnter),q.addBinding({key:"enter",metaKey:null,ctrlKey:null,altKey:null},function(){}),(0,X.Z)()&&/Firefox/i.test(navigator.userAgent)?(q.addBinding({key:"backspace"},{collapsed:!0},q.handleBackspace),q.addBinding({key:"del"},{collapsed:!0},q.handleDelete)):(q.addBinding({key:"backspace"},{collapsed:!0,prefix:/^.?$/},q.handleBackspace),q.addBinding({key:"del"},{collapsed:!0,suffix:/^.?$/},q.handleDelete)),q.addBinding({key:"backspace"},{collapsed:!1},q.handleDeleteRange),q.addBinding({key:"del"},{collapsed:!1},q.handleDeleteRange),q.addBinding({key:"backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},q.handleBackspace)})}},{key:"addBinding",value:function(q){var Oe=this,fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},We=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ue=function Ae(Ee){if("string"==typeof Ee||"number"==typeof Ee)Ee={key:Ee};else{if("object"!==Z(Ee))return null;Ee=k()(Ee)}return Ee.shortKey&&(Ee[Me]=Ee.shortKey,delete Ee.shortKey),Ee}(q);if(null!=Ue){"function"==typeof fe&&(fe={handler:fe}),"function"==typeof We&&(We={handler:We});var Ve=Ue.which?"which":"key";(Array.isArray(Ue[Ve])?Ue[Ve]:[Ue[Ve]]).forEach(function(at){var Vt=Q(Q(Q({},Ue),{},{key:at},fe),We);Oe.bindings[Vt.key]=Oe.bindings[Vt.key]||[],Oe.bindings[Vt.key].push(Vt)})}else he.warn("Attempted to add invalid keyboard binding",Ue)}},{key:"listen",value:function(){var q=this;this.quill.root.addEventListener("keydown",function(Oe){if(!Oe.defaultPrevented&&!Oe.isComposing){q.raiseOnKeydownCallback(Oe);var fe=Ke.normalizeKeyName(Oe),Ue=(q.bindings[fe]||[]).concat(q.bindings[Oe.which]||[]).filter(function(ft){return Ke.match(Oe,ft)});if(0!==Ue.length){var Ve=q.quill.getSelection();if(null!=Ve&&q.quill.hasFocus()){var at=A(q.quill.getLine(Ve.index),2),Vt=at[0],qe=at[1],et=A(q.quill.getLeaf(Ve.index),2),ue=et[0],me=et[1],je=A(0===Ve.length?[ue,me]:q.quill.getLeaf(Ve.index+Ve.length),2),Ne=je[0],lt=je[1],Qe=ue instanceof b.TextBlot?ue.value().slice(0,me):"",Ct=Ne instanceof b.TextBlot?Ne.value().slice(lt):"",yt={collapsed:0===Ve.length,empty:0===Ve.length&&Vt.length()<=1,format:q.quill.getFormat(Ve),line:Vt,offset:qe,prefix:Qe,suffix:Ct,event:Oe},Gt=!1;Ue.some(function(ft){if(null!=ft.collapsed&&ft.collapsed!==yt.collapsed||null!=ft.empty&&ft.empty!==yt.empty||null!=ft.offset&&ft.offset!==yt.offset)return!1;if(Array.isArray(ft.format)){if(ft.format.every(function(Mn){return null==yt.format[Mn]}))return!1}else if("object"===Z(ft.format)&&!Object.keys(ft.format).every(function(Mn){return!0===ft.format[Mn]?null!=yt.format[Mn]:!1===ft.format[Mn]?null==yt.format[Mn]:P()(ft.format[Mn],yt.format[Mn])}))return!1;if(null!=ft.prefix&&!ft.prefix.test(yt.prefix)||null!=ft.suffix&&!ft.suffix.test(yt.suffix))return!1;var nn=ft.handler.call(q,Ve,yt,ft),rn=nn?.preventAfterAllMatches;return(Gt=!0!==nn||rn)&&!rn}),Gt&&Oe.preventDefault()}}}})}},{key:"raiseOnKeydownCallback",value:function(q){var Oe=this.options.onKeydown;Oe&&"function"==typeof Oe&&Oe(q)}},{key:"handleBackspace",value:function(q,Oe){var fe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Oe.prefix)?2:1;if(!(0===q.index||this.quill.getLength()<=1)){var We={},tt=A(this.quill.getLine(q.index),1)[0],at=(new(x())).retain(q.index-fe).delete(fe);if(0===Oe.offset){var Nt=A(this.quill.getLine(q.index-1),1)[0];if(Nt){var et="block"===Nt.statics.blotName&&Nt.length()<=1,ue=Nt.statics.blotName.startsWith("table"),me="block"===tt.statics.blotName&&tt.length()<=1;if(ue&&(me&&tt.remove(),this.quill.setSelection(q.index-1)),!et&&!ue){var Te=tt.formats(),je=this.quill.getFormat(q.index-1,1);if(We=v.AttributeMap.diff(Te,je)||{},Object.keys(We).length>0){var Ne=(new(x())).retain(q.index+tt.length()-2).retain(1,We);at=at.compose(Ne)}}}}this.quill.updateContents(at,B.ZP.sources.USER),this.quill.focus()}}},{key:"handleDelete",value:function(q,Oe){var fe=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Oe.suffix)?2:1;if(!(q.index>=this.quill.getLength()-fe)){var We={},tt=A(this.quill.getLine(q.index),1)[0],at=(new(x())).retain(q.index).delete(fe);if(Oe.offset>=tt.length()-1){var Nt=A(this.quill.getLine(q.index+1),1)[0];if(Nt){var et=tt.formats(),ue=this.quill.getFormat(q.index,1);We=v.AttributeMap.diff(et,ue)||{},Object.keys(We).length>0&&(at=at.retain(Nt.length()-1).retain(1,We))}}this.quill.updateContents(at,B.ZP.sources.USER),this.quill.focus()}}},{key:"handleDeleteRange",value:function(q,Oe){this.raiseOnKeydownCallback(Oe.event),pe({range:q,quill:this.quill}),this.quill.focus()}},{key:"handleEnter",value:function(q,Oe){var fe=this,We=Object.keys(Oe.format).reduce(function(qe,Nt){return fe.quill.scroll.query(Nt,b.Scope.BLOCK)&&!Array.isArray(Oe.format[Nt])&&(qe[Nt]=Oe.format[Nt]),qe},{}),Ue=(new(x())).retain(q.index).delete(q.length).insert("\n",We);this.quill.updateContents(Ue,B.ZP.sources.USER),this.quill.setSelection(q.index+1,B.ZP.sources.SILENT),this.quill.focus();var at=A(this.quill.getLine(q.index+1),1)[0],Vt=function U(Ee){var Ke=window.innerHeight,Be=Ee.getBoundingClientRect();return Be.y<0||!(Be.bottom>=Ke)&&null}(at.domNode);null!==Vt&&at.domNode.scrollIntoView(Vt),Object.keys(Oe.format).forEach(function(qe){null==We[qe]&&(Array.isArray(Oe.format[qe])||"code"===qe||"link"===qe||(fe.raiseOnKeydownCallback(Oe.event),fe.quill.format(qe,Oe.format[qe],B.ZP.sources.USER)))})}}],[{key:"match",value:function(q,Oe){return!["altKey","ctrlKey","metaKey","shiftKey"].some(function(fe){return!!Oe[fe]!==q[fe]&&null!==Oe[fe]})&&(Oe.key===Ke.normalizeKeyName(q)||Oe.key===q.which)}},{key:"normalizeKeyName",value:function(q){var Oe=q.key,We=!!Oe,Ue=We?Oe:q.which;return Ue&&(Ue=We?Ce[Ue.toLowerCase()]||Ue:ye[Ue]||String.fromCharCode(Ue)),Ue}}]),Ke}(F.Z);function ke(Ee){return{key:"tab",shiftKey:!Ee,format:{"code-block":!0},handler:function(Ke){var Be=this.quill.scroll.query("code-block"),q=0===Ke.length?this.quill.getLines(Ke.index,1):this.quill.getLines(Ke),Oe=Ke.index,fe=Ke.length;q.forEach(function(We,Ue){Ee?(We.insertAt(0,Be.TAB),0===Ue?Oe+=Be.TAB.length:fe+=Be.TAB.length):0===We.domNode.textContent.indexOf(Be.TAB)&&(We.deleteAt(0,Be.TAB.length),0===Ue?Oe-=Be.TAB.length:fe-=Be.TAB.length)}),this.quill.update(B.ZP.sources.USER),this.quill.setSelection(Oe,fe,B.ZP.sources.SILENT)}}}function Ye(Ee,le){return z(z({key:Ee,shiftKey:le,altKey:null},"leftArrow"===Ee?"prefix":"suffix",/^$/),"handler",function(q){var Oe=q.index;return"rightArrow"===Ee&&(Oe+=q.length+1),!(A(this.quill.getLeaf(Oe),1)[0]instanceof b.EmbedBlot&&("leftArrow"===Ee?le?this.quill.setSelection(q.index-1,q.length+1,B.ZP.sources.USER):this.quill.setSelection(q.index-1,B.ZP.sources.USER):le?this.quill.setSelection(q.index,q.length+1,B.ZP.sources.USER):this.quill.setSelection(q.index+q.length+1,B.ZP.sources.USER),1))})}function de(Ee,le){return{key:Ee[0],which:le,shortKey:!0,handler:function(Be,q){return this.quill.format(Ee,!q.format[Ee],B.ZP.sources.USER),{preventAfterAllMatches:!0}}}}function pe(Ee){var le=Ee.quill,Ke=Ee.range,Be=le.getLines(Ke),q={};if(Be.length>1){var Oe=Be[0].formats(),fe=Be[Be.length-1].formats();q=v.AttributeMap.diff(fe,Oe)||{}}le.deleteText(Ke,B.ZP.sources.USER),Object.keys(q).length>0&&le.formatLine(Ke.index,1,q,B.ZP.sources.USER),le.setSelection(Ke.index,B.ZP.sources.SILENT)}_e.DEFAULTS={bindings:{bold:de("bold",66),italic:de("italic",73),underline:de("underline",85),indent:{key:"tab",format:["blockquote","indent","list"],handler:function(le,Ke){return!(!Ke.collapsed||0===Ke.offset)||(this.quill.format("indent","+1",B.ZP.sources.USER),!1)}},outdent:{key:"tab",shiftKey:!0,format:["blockquote","indent","list"],handler:function(le,Ke){return!(!Ke.collapsed||0===Ke.offset)||(this.quill.format("indent","-1",B.ZP.sources.USER),!1)}},"outdent backspace":{key:"backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(le,Ke){null!=Ke.format.indent?this.quill.format("indent","-1",B.ZP.sources.USER):null!=Ke.format.list&&this.quill.format("list",!1,B.ZP.sources.USER)}},"indent code-block":ke(!0),"outdent code-block":ke(!1),"remove tab":{key:"tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(le){this.quill.deleteText(le.index-1,1,B.ZP.sources.USER)}},tab:{key:"tab",handler:function(le,Ke){var Be=Ke.format;if(Be.tableCellLine||Be.tableHeaderCellLine||Be.tableHeaderCell||Be.table)return!0;this.quill.history.cutoff();var Oe=(new(x())).retain(le.index).delete(le.length).insert("\t");return this.quill.updateContents(Oe,B.ZP.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(le.index+1,B.ZP.sources.SILENT),!1}},"blockquote empty enter":{key:"enter",collapsed:!0,format:["blockquote"],empty:!0,handler:function(){this.quill.format("blockquote",!1,B.ZP.sources.USER)}},"list empty enter":{key:"enter",collapsed:!0,format:["list"],empty:!0,handler:function(le,Ke){var Be={list:!1};Ke.format.indent&&(Be.indent=!1),this.quill.formatLine(le.index,le.length,Be,B.ZP.sources.USER)}},"checklist enter":{key:"enter",collapsed:!0,format:{list:"checked"},handler:function(le){var Be=A(this.quill.getLine(le.index),2),q=Be[0],Oe=Be[1],fe=Q(Q({},q.formats()),{},{list:"checked"}),We=(new(x())).retain(le.index).insert("\n",fe).retain(q.length()-Oe-1).retain(1,{list:"unchecked"});this.quill.updateContents(We,B.ZP.sources.USER),this.quill.setSelection(le.index+1,B.ZP.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:"enter",collapsed:!0,format:["header"],suffix:/^$/,handler:function(le,Ke){var q=A(this.quill.getLine(le.index),2),Oe=q[0],fe=q[1],We=(new(x())).retain(le.index).insert("\n",Ke.format).retain(Oe.length()-fe-1).retain(1,{header:null});this.quill.updateContents(We,B.ZP.sources.USER),this.quill.setSelection(le.index+1,B.ZP.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:"space",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(le,Ke){if(null==this.quill.scroll.query("list"))return!0;var Ue,Be=Ke.prefix.length,Oe=A(this.quill.getLine(le.index),2),fe=Oe[0],We=Oe[1];if(We>Be)return!0;switch(Ke.prefix.trim()){case"[]":case"[ ]":Ue="unchecked";break;case"[x]":Ue="checked";break;case"-":case"*":Ue="bullet";break;default:Ue="ordered"}this.quill.insertText(le.index," ",B.ZP.sources.USER),this.quill.history.cutoff();var Ve=(new(x())).retain(le.index-We).delete(Be+1).retain(fe.length()-2-We).retain(1,{list:Ue});return this.raiseOnKeydownCallback(Ke.event),this.quill.updateContents(Ve,B.ZP.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(le.index-Be,B.ZP.sources.SILENT),!1}},"code exit":{key:"enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler:function(le){for(var Be=A(this.quill.getLine(le.index),2),q=Be[0],Oe=Be[1],fe=2,We=q;null!=We&&We.length()<=1&&We.formats()["code-block"];)if(We=We.prev,(fe-=1)<=0){var Ue=(new(x())).retain(le.index+q.length()-Oe-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(Ue,B.ZP.sources.USER),this.quill.setSelection(le.index-1,B.ZP.sources.SILENT),!1}return!0}},"embed left":Ye("leftArrow",!1),"embed left shift":Ye("leftArrow",!0),"embed right":Ye("rightArrow",!1),"embed right shift":Ye("rightArrow",!0)}}},9072:(m,T,C)=>{"use strict";C.d(T,{ZP:()=>ke});var e=C(9098),k=C.n(e),w=C(1233),P=C(6603),v=C(281),x=C(7094),b=C(6446),B=C(4122),j=C(3657),F=C(8222),X=C(7309),U=C(5635),Z=C(8034);function A(Ye){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(de){return typeof de}:function(de){return de&&"function"==typeof Symbol&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de})(Ye)}function M(Ye,de,Ae){return(de=re(de))in Ye?Object.defineProperty(Ye,de,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):Ye[de]=Ae,Ye}function L(Ye,de){(null==de||de>Ye.length)&&(de=Ye.length);for(var Ae=0,pe=new Array(de);Ae<de;Ae++)pe[Ae]=Ye[Ae];return pe}function z(Ye,de){if(!(Ye instanceof de))throw new TypeError("Cannot call a class as a function")}function K(Ye,de){for(var Ae=0;Ae<de.length;Ae++){var pe=de[Ae];pe.enumerable=pe.enumerable||!1,pe.configurable=!0,"value"in pe&&(pe.writable=!0),Object.defineProperty(Ye,re(pe.key),pe)}}function ee(Ye,de,Ae){return de&&K(Ye.prototype,de),Ae&&K(Ye,Ae),Object.defineProperty(Ye,"prototype",{writable:!1}),Ye}function re(Ye){var de=function be(Ye,de){if("object"!==A(Ye)||null===Ye)return Ye;var Ae=Ye[Symbol.toPrimitive];if(void 0!==Ae){var pe=Ae.call(Ye,de||"default");if("object"!==A(pe))return pe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===de?String:Number)(Ye)}(Ye,"string");return"symbol"===A(de)?de:String(de)}function ce(Ye,de){if("function"!=typeof de&&null!==de)throw new TypeError("Super expression must either be null or a function");Ye.prototype=Object.create(de&&de.prototype,{constructor:{value:Ye,writable:!0,configurable:!0}}),Object.defineProperty(Ye,"prototype",{writable:!1}),de&&Re(Ye,de)}function Re(Ye,de){return(Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(pe,Ee){return pe.__proto__=Ee,pe})(Ye,de)}function Se(Ye){var de=function Ie(){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 Ee,pe=he(Ye);if(de){var le=he(this).constructor;Ee=Reflect.construct(pe,arguments,le)}else Ee=pe.apply(this,arguments);return function De(Ye,de){if(de&&("object"===A(de)||"function"==typeof de))return de;if(void 0!==de)throw new TypeError("Derived constructors may only return object or undefined");return Pe(Ye)}(this,Ee)}}function Pe(Ye){if(void 0===Ye)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ye}function W(){return W=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(de,Ae,pe){var Ee=function ie(Ye,de){for(;!Object.prototype.hasOwnProperty.call(Ye,de)&&null!==(Ye=he(Ye)););return Ye}(de,Ae);if(Ee){var le=Object.getOwnPropertyDescriptor(Ee,Ae);return le.get?le.get.call(arguments.length<3?de:pe):le.value}},W.apply(this,arguments)}function he(Ye){return(he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ae){return Ae.__proto__||Object.getPrototypeOf(Ae)})(Ye)}var Ce=new w.ClassAttributor("code-token","hljs",{scope:w.Scope.INLINE}),ye=function(Ye){ce(Ae,Ye);var de=Se(Ae);function Ae(pe,Ee,le){var Ke;return z(this,Ae),Ke=de.call(this,pe,Ee,le),Ce.add(Ke.domNode,le),Ke}return ee(Ae,[{key:"format",value:function(Ee,le){Ee!==Ae.blotName?W(he(Ae.prototype),"format",this).call(this,Ee,le):le?Ce.add(this.domNode,le):(Ce.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}},{key:"optimize",value:function(){for(var Ee,le=arguments.length,Ke=new Array(le),Be=0;Be<le;Be++)Ke[Be]=arguments[Be];(Ee=W(he(Ae.prototype),"optimize",this)).call.apply(Ee,[this].concat(Ke)),Ce.value(this.domNode)||this.unwrap()}}],[{key:"formats",value:function(Ee,le){for(;null!=Ee&&Ee!==le.domNode;){if(Ee.classList&&Ee.classList.contains(X.ZP.className))return W(he(Ae),"formats",this).call(this,Ee,le);Ee=Ee.parentNode}}}]),Ae}(P.Z);ye.blotName="code-token",ye.className="ql-token";var Me=function(Ye){ce(Ae,Ye);var de=Se(Ae);function Ae(){return z(this,Ae),de.apply(this,arguments)}return ee(Ae,[{key:"format",value:function(Ee,le){Ee===this.statics.blotName&&le?this.domNode.setAttribute("data-language",le):W(he(Ae.prototype),"format",this).call(this,Ee,le)}},{key:"replaceWith",value:function(Ee,le){return this.formatAt(0,this.length(),ye.blotName,!1),W(he(Ae.prototype),"replaceWith",this).call(this,Ee,le)}}],[{key:"create",value:function(Ee){var le=W(he(Ae),"create",this).call(this,Ee);return"string"==typeof Ee&&le.setAttribute("data-language",Ee),le}},{key:"formats",value:function(Ee){return Ee.getAttribute("data-language")||"plain"}},{key:"register",value:function(){}}]),Ae}(X.ZP),_e=function(Ye){ce(Ae,Ye);var de=Se(Ae);function Ae(){return z(this,Ae),de.apply(this,arguments)}return ee(Ae,[{key:"attach",value:function(){W(he(Ae.prototype),"attach",this).call(this),this.forceNext=!1,this.scroll.emitMount(this)}},{key:"format",value:function(Ee,le){Ee===Me.blotName&&(this.forceNext=!0,this.children.forEach(function(Ke){Ke.format(Ee,le)}))}},{key:"formatAt",value:function(Ee,le,Ke,Be){Ke===Me.blotName&&(this.forceNext=!0),W(he(Ae.prototype),"formatAt",this).call(this,Ee,le,Ke,Be)}},{key:"highlight",value:function(Ee){var le=this,Ke=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=this.children.head){var Be=Array.from(this.domNode.childNodes).filter(function(Ue){return Ue!==le.uiNode}),q="".concat(Be.map(function(Ue){return Ue.textContent}).join("\n"),"\n"),Oe=Me.formats(this.children.head.domNode);if(Ke||this.forceNext||this.cachedText!==q){if(q.trim().length>0||null==this.cachedText){var fe=this.children.reduce(function(Ue,Ve){return Ue.concat((0,b.qz)(Ve,!1))},new(k())),We=Ee(q,Oe);fe.diff(We).reduce(function(Ue,Ve){var tt=Ve.retain,at=Ve.attributes;return tt?(at&&Object.keys(at).forEach(function(Vt){-1!==[Me.blotName,ye.blotName].indexOf(Vt)&&le.formatAt(Ue,tt,Vt,at[Vt])}),Ue+tt):Ue},0)}this.cachedText=q,this.forceNext=!1}}}},{key:"html",value:function(Ee,le){var q=function H(Ye,de){return function Q(Ye){if(Array.isArray(Ye))return Ye}(Ye)||function G(Ye,de){var Ae=null==Ye?null:typeof Symbol<"u"&&Ye[Symbol.iterator]||Ye["@@iterator"];if(null!=Ae){var pe,Ee,le,Ke,Be=[],q=!0,Oe=!1;try{if(le=(Ae=Ae.call(Ye)).next,0===de){if(Object(Ae)!==Ae)return;q=!1}else for(;!(q=(pe=le.call(Ae)).done)&&(Be.push(pe.value),Be.length!==de);q=!0);}catch(fe){Oe=!0,Ee=fe}finally{try{if(!q&&null!=Ae.return&&(Ke=Ae.return(),Object(Ke)!==Ke))return}finally{if(Oe)throw Ee}}return Be}}(Ye,de)||function R(Ye,de){if(Ye){if("string"==typeof Ye)return L(Ye,de);var Ae=Object.prototype.toString.call(Ye).slice(8,-1);if("Object"===Ae&&Ye.constructor&&(Ae=Ye.constructor.name),"Map"===Ae||"Set"===Ae)return Array.from(Ye);if("Arguments"===Ae||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ae))return L(Ye,de)}}(Ye,de)||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.")}()}(this.children.find(Ee),1)[0],Oe=q?Me.formats(q.domNode):"plain";return'<pre data-language="'.concat(Oe,'">\n').concat(this.code(Ee,le),"\n</pre>")}},{key:"optimize",value:function(Ee){if(W(he(Ae.prototype),"optimize",this).call(this,Ee),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){var le=Me.formats(this.children.head.domNode);le!==this.uiNode.value&&(this.uiNode.value=le)}}}]),Ae}(X.se);_e.allowedChildren=[Me],Me.requiredContainer=_e,Me.allowedChildren=[ye,j.Z,F.Z,B.Z];var ke=function(Ye){ce(Ae,Ye);var de=Se(Ae);function Ae(pe,Ee){var le;if(z(this,Ae),null==(le=de.call(this,pe,Ee)).options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");return le.languages=le.options.languages.reduce(function(Ke,Be){return Ke[Be.key]=!0,Ke},{}),le.highlightBlot=le.highlightBlot.bind(Pe(le)),le.initListener(),le.initTimer(),le}return ee(Ae,[{key:"initListener",value:function(){var Ee=this;this.quill.on(v.ZP.events.SCROLL_BLOT_MOUNT,function(le){if(le instanceof _e){var Ke=Ee.quill.root.ownerDocument.createElement("select");Ee.options.languages.forEach(function(Be){var q=Be.key,Oe=Be.label,fe=Ke.ownerDocument.createElement("option");fe.textContent=Oe,fe.setAttribute("value",q),Ke.appendChild(fe)}),Ke.addEventListener("change",function(){le.format(Me.blotName,Ke.value),Ee.quill.root.focus(),Ee.highlight(le,!0)}),null==le.uiNode&&(le.attachUI(Ke),le.children.head&&(Ke.value=Me.formats(le.children.head.domNode)))}})}},{key:"initTimer",value:function(){var Ee=this,le=null;this.quill.on(v.ZP.events.SCROLL_OPTIMIZE,function(){clearTimeout(le),le=setTimeout(function(){Ee.highlight(),le=null},Ee.options.interval)})}},{key:"highlight",value:function(){var Ee=this,le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,Ke=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.quill.selection.composing){this.quill.update(v.ZP.sources.USER);var Be=this.quill.getSelection();(null==le?this.quill.scroll.descendants(_e):[le]).forEach(function(Oe){Oe.highlight(Ee.highlightBlot,Ke)}),this.quill.update(v.ZP.sources.SILENT),null!=Be&&this.quill.setSelection(Be,v.ZP.sources.SILENT)}}},{key:"highlightBlot",value:function(Ee){var le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if("plain"===(le=this.languages[le]?le:"plain"))return(0,F.b)(Ee).split("\n").reduce(function(Be,q,Oe){return 0!==Oe&&Be.insert("\n",M({},X.ZP.blotName,le)),Be.insert(q)},new(k()));var Ke=this.quill.root.ownerDocument.createElement("div");return Ke.classList.add(X.ZP.className),Ke.innerHTML=this.options.hljs.highlight(le,Ee).value,(0,U.fw)(this.quill.scroll,Ke,[function(Be,q){var Oe=Ce.value(Be);return Oe?q.compose((new(k())).retain(q.length(),M({},ye.blotName,Oe))):q}],[function(Be,q){return Be.data.split("\n").reduce(function(Oe,fe,We){return 0!==We&&Oe.insert("\n",M({},X.ZP.blotName,le)),Oe.insert(fe)},q)}],new WeakMap)}}],[{key:"register",value:function(){v.ZP.register(ye,!0),v.ZP.register(Me,!0),v.ZP.register(_e,!0)}}]),Ae}(x.Z);ke.DEFAULTS={hljs:(0,Z.Z)()?window.hljs:null,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"Javascript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]}},867:(m,T,C)=>{"use strict";C.d(T,{Z:()=>Me});var e=C(9098),k=C.n(e),w=C(1233),P=C(281),v=C(7094),x=C(1969),b=C(5874),B=C(5635),j=C(9466),F=C(7896),X=C(319),U=C(1342),Z=C(2480);function A(_e){return(A="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})(_e)}function M(_e,ke,Ye){return(ke=re(ke))in _e?Object.defineProperty(_e,ke,{value:Ye,enumerable:!0,configurable:!0,writable:!0}):_e[ke]=Ye,_e}function H(_e,ke){return function Q(_e){if(Array.isArray(_e))return _e}(_e)||function G(_e,ke){var Ye=null==_e?null:typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(null!=Ye){var de,Ae,pe,Ee,le=[],Ke=!0,Be=!1;try{if(pe=(Ye=Ye.call(_e)).next,0===ke){if(Object(Ye)!==Ye)return;Ke=!1}else for(;!(Ke=(de=pe.call(Ye)).done)&&(le.push(de.value),le.length!==ke);Ke=!0);}catch(q){Be=!0,Ae=q}finally{try{if(!Ke&&null!=Ye.return&&(Ee=Ye.return(),Object(Ee)!==Ee))return}finally{if(Be)throw Ae}}return le}}(_e,ke)||function R(_e,ke){if(_e){if("string"==typeof _e)return L(_e,ke);var Ye=Object.prototype.toString.call(_e).slice(8,-1);if("Object"===Ye&&_e.constructor&&(Ye=_e.constructor.name),"Map"===Ye||"Set"===Ye)return Array.from(_e);if("Arguments"===Ye||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ye))return L(_e,ke)}}(_e,ke)||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 L(_e,ke){(null==ke||ke>_e.length)&&(ke=_e.length);for(var Ye=0,de=new Array(ke);Ye<ke;Ye++)de[Ye]=_e[Ye];return de}function K(_e,ke){for(var Ye=0;Ye<ke.length;Ye++){var de=ke[Ye];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(_e,re(de.key),de)}}function re(_e){var ke=function be(_e,ke){if("object"!==A(_e)||null===_e)return _e;var Ye=_e[Symbol.toPrimitive];if(void 0!==Ye){var de=Ye.call(_e,ke||"default");if("object"!==A(de))return de;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ke?String:Number)(_e)}(_e,"string");return"symbol"===A(ke)?ke:String(ke)}function Re(_e,ke){return(Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(de,Ae){return de.__proto__=Ae,de})(_e,ke)}function W(_e){return(W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ye){return Ye.__proto__||Object.getPrototypeOf(Ye)})(_e)}var ie=[null,null,null,-1],Ce=function(_e){!function ce(_e,ke){if("function"!=typeof ke&&null!==ke)throw new TypeError("Super expression must either be null or a function");_e.prototype=Object.create(ke&&ke.prototype,{constructor:{value:_e,writable:!0,configurable:!0}}),Object.defineProperty(_e,"prototype",{writable:!1}),ke&&Re(_e,ke)}(Ye,_e);var ke=function Se(_e){var ke=function Ie(){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 Ae,de=W(_e);if(ke){var pe=W(this).constructor;Ae=Reflect.construct(de,arguments,pe)}else Ae=de.apply(this,arguments);return function De(_e,ke){if(ke&&("object"===A(ke)||"function"==typeof ke))return ke;if(void 0!==ke)throw new TypeError("Derived constructors may only return object or undefined");return function Pe(_e){if(void 0===_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}(_e)}(this,Ae)}}(Ye);function Ye(){var de;!function z(_e,ke){if(!(_e instanceof ke))throw new TypeError("Cannot call a class as a function")}(this,Ye);for(var Ae=arguments.length,pe=new Array(Ae),Ee=0;Ee<Ae;Ee++)pe[Ee]=arguments[Ee];return(de=ke.call.apply(ke,[this].concat(pe))).tableBlots=[x.zW.blotName,x.iD.blotName],de.tableBlots.forEach(function(le){de.quill.editor.addImmediateFormat(le)}),de.integrateClipboard(),de.addKeyboardHandlers(),de.listenBalanceCells(),de}return function ee(_e,ke,Ye){ke&&K(_e.prototype,ke),Ye&&K(_e,Ye),Object.defineProperty(_e,"prototype",{writable:!1})}(Ye,[{key:"integrateClipboard",value:function(){var Ae=this;this.tableBlots.forEach(function(pe){Ae.quill.clipboard.addTableBlot(pe)}),this.quill.clipboard.addMatcher("td, th",ye),this.quill.clipboard.addMatcher("table",(0,F.F)(X.Zt)),this.quill.clipboard.addMatcher("td, th",(0,F.a)(U.h6))}},{key:"addKeyboardHandlers",value:function(){var Ae=this,pe=Ye.keyboardBindings;Object.keys(pe).forEach(function(Ee){pe[Ee]&&Ae.quill.keyboard.addBinding(pe[Ee])})}},{key:"balanceTables",value:function(){this.quill.scroll.descendants(x.xJ).forEach(function(Ae){Ae.balanceCells()})}},{key:"deleteColumn",value:function(){var pe=H(this.getTable(),3),Ee=pe[0],le=pe[2];(0,b.Z)(le)&&(Ee.deleteColumn(le.cellOffset()),this.quill.update(P.ZP.sources.USER))}},{key:"deleteRow",value:function(){var Ee=H(this.getTable(),2)[1];(0,b.Z)(Ee)&&(Ee.remove(),this.quill.update(P.ZP.sources.USER))}},{key:"deleteTable",value:function(){var Ee=H(this.getTable(),1)[0];if((0,b.Z)(Ee)){var le=Ee.offset();Ee.remove(),this.quill.update(P.ZP.sources.USER),this.quill.setSelection(le,P.ZP.sources.SILENT)}}},{key:"getTable",value:function(){var Ae=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(!(0,b.Z)(Ae))return ie;var Ee=H(this.quill.getLine(Ae.index),2),le=Ee[0],Ke=Ee[1];if(!(0,b.Z)(le)||-1===this.tableBlots.indexOf(le.statics.blotName))return ie;var Be=le.parent,q=Be.parent;return[q.parent.parent,q,Be,Ke]}},{key:"insertColumn",value:function(Ae){var pe=this.quill.getSelection(),le=H(this.getTable(pe),3),Ke=le[0],Be=le[1],q=le[2];if((0,b.Z)(q)){var Oe=q.cellOffset();Ke.insertColumn(Oe+Ae),this.quill.update(P.ZP.sources.USER);var fe=Be.rowOffset();0===Ae&&(fe+=1),this.quill.setSelection(pe.index+fe,pe.length,P.ZP.sources.SILENT)}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(Ae){var pe=this.quill.getSelection(),le=H(this.getTable(pe),3),Ke=le[0],Be=le[1];if((0,b.Z)(le[2])){var Oe=Be.rowOffset();Ke.insertRow(Oe+Ae),this.quill.update(P.ZP.sources.USER),Ae>0?this.quill.setSelection(pe,P.ZP.sources.SILENT):this.quill.setSelection(pe.index+Be.children.length,pe.length,P.ZP.sources.SILENT)}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertHeaderRow",value:function(){var Ae=this.quill.getSelection(),Ee=H(this.getTable(Ae),3),le=Ee[0];(0,b.Z)(Ee[2])&&(le.insertHeaderRow(),this.quill.update(P.ZP.sources.USER))}},{key:"insertTable",value:function(Ae,pe){var Ee=this.quill.getSelection();if((0,b.Z)(Ee)){var le=new Array(Ae).fill(0).reduce(function(Ke){var Be=(0,x.Lv)();return new Array(pe).fill("\n").forEach(function(q){Ke.insert(q,{tableCellLine:{row:Be,cell:(0,x.Lv)()}})}),Ke},(new(k())).retain(Ee.index));this.quill.updateContents(le,P.ZP.sources.USER),this.quill.setSelection(Ee.index,P.ZP.sources.SILENT),this.balanceTables()}}},{key:"tableFormats",value:function(){return this.tableBlots}},{key:"listenBalanceCells",value:function(){var Ae=this;this.quill.on(P.ZP.events.SCROLL_OPTIMIZE,function(pe){pe.some(function(Ee){return-1!==["TD","TH","TR","TBODY","THEAD","TABLE"].indexOf(Ee.target.tagName)&&(Ae.quill.once(P.ZP.events.TEXT_CHANGE,function(le,Ke,Be){Be===P.ZP.sources.USER&&Ae.balanceTables()}),!0)})}),this.quill.on(P.ZP.events.CONTENT_SETTED,function(){Ae.quill.once(P.ZP.events.TEXT_CHANGE,function(){Ae.balanceTables()})})}}],[{key:"register",value:function(){P.ZP.register(x.zW,!0),P.ZP.register(x.iD,!0),P.ZP.register(x.xs,!0),P.ZP.register(x.pj,!0),P.ZP.register(x.KA,!0),P.ZP.register(x.SC,!0),P.ZP.register(x.RM,!0),P.ZP.register(x.xD,!0),P.ZP.register(x.xJ,!0),[X.li,U.Du].forEach(function(Ae){Object.keys(Ae).forEach(function(pe){P.ZP.register(M({},"formats/".concat(pe),Ae[pe]),!0)})})}}]),Ye}(v.Z);function ye(_e,ke){var Ye=_e.parentNode,Ae="THEAD"===Ye.parentNode.tagName||null,pe=Array.from(("TABLE"===Ye.parentNode.tagName?Ye.parentNode:Ye.parentNode.parentNode).querySelectorAll("tr")),Ee=Array.from(Ye.querySelectorAll("th,td")),le=pe.indexOf(Ye)+1,Ke=Ee.indexOf(_e)+1,Be=Ae?"tableHeaderCellLine":"tableCellLine";return 0===ke.length()?ke=(new(k())).insert("\n",M({},Be,{row:le,cell:Ke})):((0,B.PF)(ke,"\n")||ke.insert("\n"),(0,B.HI)(ke,Be,{row:le,cell:Ke}))}Ce.keyboardBindings={"table backspace":{key:"backspace",format:["tableCellLine","tableHeaderCellLine"],collapsed:!0,offset:0,handler:function(ke){var Ae=H(this.quill.getLine(ke.index),1)[0];return!(!Ae.prev||-1===["tableCellLine","tableHeaderCellLine"].indexOf(Ae.prev.statics.blotName))}},"table delete":{key:"del",format:["tableCellLine","tableHeaderCellLine"],collapsed:!0,suffix:/^$/,handler:function(){}},"table enter":{key:"enter",shiftKey:null,format:["tableCellLine","tableHeaderCellLine"],handler:function(ke,Ye){var de,Ae,pe=this,Ee=this.quill.getModule("table");if(Ee){var le=this.quill,q=H(Ee.getTable(ke),1)[0];if(1===(null===(de=this.quill.selection)||void 0===de?void 0:de.lastNative.native.endContainer.nodeType)){var fe=q.offset();return void(0,Z.Z)({quill:le,index:fe,table:q})}if(null===(Ae=this.quill.selection)||void 0===Ae||!Ae.composing){ke.length>0&&this.quill.scroll.deleteAt(ke.index,ke.length);var We=Object.keys(Ye.format).reduce(function(Ue,Ve){return pe.quill.scroll.query(Ve,w.Scope.BLOCK)&&!Array.isArray(Ye.format[Ve])&&(Ue[Ve]=Ye.format[Ve]),Ue},{});this.quill.insertText(ke.index,"\n",We.tableCellLine,P.ZP.sources.USER),this.quill.setSelection(ke.index+1,P.ZP.sources.SILENT),this.quill.focus(),Object.keys(Ye.format).forEach(function(Ue){null==We[Ue]&&(Array.isArray(Ye.format[Ue])||"link"!==Ue&&pe.quill.format(Ue,Ye.format[Ue],P.ZP.sources.USER))})}}}},"table tab":{key:"tab",shiftKey:null,format:["tableCellLine","tableHeaderCellLine"],handler:function(ke,Ye){var de=Ye.event,Ae=Ye.line,pe=Ae.offset(this.quill.scroll);this.quill.setSelection(de.shiftKey?pe-1:pe+Ae.length(),P.ZP.sources.USER)}},"table down":(0,j.Z)(!1,["tableCellLine","tableHeaderCellLine"]),"table up":(0,j.Z)(!0,["tableCellLine","tableHeaderCellLine"])};const Me=Ce},6054:(m,T,C)=>{"use strict";C.d(T,{Z:()=>Co});var e=C(9098),k=C.n(e),w=C(281),P=C(7094),v=C(6446),x=C(3553),b=C(5874),B=C(319),j=C(8536),F=C(2795);function X(ti){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Qn){return typeof Qn}:function(Qn){return Qn&&"function"==typeof Symbol&&Qn.constructor===Symbol&&Qn!==Symbol.prototype?"symbol":typeof Qn})(ti)}function U(ti,Qn){return function M(ti){if(Array.isArray(ti))return ti}(ti)||function A(ti,Qn){var ei=null==ti?null:typeof Symbol<"u"&&ti[Symbol.iterator]||ti["@@iterator"];if(null!=ei){var Rt,Jt,Pn,Jn,Ii=[],vo=!0,pi=!1;try{if(Pn=(ei=ei.call(ti)).next,0===Qn){if(Object(ei)!==ei)return;vo=!1}else for(;!(vo=(Rt=Pn.call(ei)).done)&&(Ii.push(Rt.value),Ii.length!==Qn);vo=!0);}catch(Wo){pi=!0,Jt=Wo}finally{try{if(!vo&&null!=ei.return&&(Jn=ei.return(),Object(Jn)!==Jn))return}finally{if(pi)throw Jt}}return Ii}}(ti,Qn)||R(ti,Qn)||function Z(){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 R(ti,Qn){if(ti){if("string"==typeof ti)return Q(ti,Qn);var ei=Object.prototype.toString.call(ti).slice(8,-1);if("Object"===ei&&ti.constructor&&(ei=ti.constructor.name),"Map"===ei||"Set"===ei)return Array.from(ti);if("Arguments"===ei||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ei))return Q(ti,Qn)}}function Q(ti,Qn){(null==Qn||Qn>ti.length)&&(Qn=ti.length);for(var ei=0,Rt=new Array(Qn);ei<Qn;ei++)Rt[ei]=ti[ei];return Rt}function z(ti,Qn){if(!(ti instanceof Qn))throw new TypeError("Cannot call a class as a function")}function K(ti,Qn){for(var ei=0;ei<Qn.length;ei++){var Rt=Qn[ei];Rt.enumerable=Rt.enumerable||!1,Rt.configurable=!0,"value"in Rt&&(Rt.writable=!0),Object.defineProperty(ti,re(Rt.key),Rt)}}function ee(ti,Qn,ei){return Qn&&K(ti.prototype,Qn),ei&&K(ti,ei),Object.defineProperty(ti,"prototype",{writable:!1}),ti}function re(ti){var Qn=function be(ti,Qn){if("object"!==X(ti)||null===ti)return ti;var ei=ti[Symbol.toPrimitive];if(void 0!==ei){var Rt=ei.call(ti,Qn||"default");if("object"!==X(Rt))return Rt;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Qn?String:Number)(ti)}(ti,"string");return"symbol"===X(Qn)?Qn:String(Qn)}function ce(){return ce=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Qn,ei,Rt){var Jt=function Re(ti,Qn){for(;!Object.prototype.hasOwnProperty.call(ti,Qn)&&null!==(ti=he(ti)););return ti}(Qn,ei);if(Jt){var Pn=Object.getOwnPropertyDescriptor(Jt,ei);return Pn.get?Pn.get.call(arguments.length<3?Qn:Rt):Pn.value}},ce.apply(this,arguments)}function Se(ti,Qn){if("function"!=typeof Qn&&null!==Qn)throw new TypeError("Super expression must either be null or a function");ti.prototype=Object.create(Qn&&Qn.prototype,{constructor:{value:ti,writable:!0,configurable:!0}}),Object.defineProperty(ti,"prototype",{writable:!1}),Qn&&De(ti,Qn)}function De(ti,Qn){return(De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Rt,Jt){return Rt.__proto__=Jt,Rt})(ti,Qn)}function Pe(ti){var Qn=function ie(){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 Jt,Rt=he(ti);if(Qn){var Pn=he(this).constructor;Jt=Reflect.construct(Rt,arguments,Pn)}else Jt=Rt.apply(this,arguments);return function Ie(ti,Qn){if(Qn&&("object"===X(Qn)||"function"==typeof Qn))return Qn;if(void 0!==Qn)throw new TypeError("Derived constructors may only return object or undefined");return function W(ti){if(void 0===ti)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ti}(ti)}(this,Jt)}}function he(ti){return(he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ei){return ei.__proto__||Object.getPrototypeOf(ei)})(ti)}var ye="data-tablelite-",Me=function(ti){Se(ei,ti);var Qn=Pe(ei);function ei(){return z(this,ei),Qn.apply(this,arguments)}return ee(ei,[{key:"format",value:function(Jt,Pn){if(B.li[Jt]){var Jn,Ii="data-".concat(Jt.toLowerCase());(0,F.Z)(this.domNode,Ii,Pn),null===(Jn=this.row())||void 0===Jn||null===(Jn=Jn.table())||void 0===Jn||Jn.format(Jt,Pn)}else ce(he(ei.prototype),"format",this).call(this,Jt,Pn)}},{key:"cellOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"row",value:function(){return"table"in this.parent?this.parent:null}},{key:"rowOffset",value:function(){return this.row()?this.row().rowOffset():-1}},{key:"table",value:function(){var Jt;return null===(Jt=this.row())||void 0===Jt?void 0:Jt.table()}}],[{key:"create",value:function(Jt){var Pn=ce(he(ei),"create",this).call(this);return(0,F.Z)(Pn,this.dataAttribute,Jt??Be()),Pn}},{key:"formats",value:function(Jt){var Pn=this.dataAttribute;if(Jt.hasAttribute(Pn))return Jt.getAttribute(Pn)}}]),ei}(v.ZP);Me.tagName=["TD","TH"];var _e=function(ti){Se(ei,ti);var Qn=Pe(ei);function ei(){return z(this,ei),Qn.apply(this,arguments)}return ee(ei,[{key:"format",value:function(Jt,Pn){Jt===ei.blotName&&Pn?this.domNode.setAttribute(ei.dataAttribute,Pn):ce(he(ei.prototype),"format",this).call(this,Jt,Pn)}}]),ei}(Me);_e.blotName="table",_e.dataAttribute="".concat(ye,"row");var ke=function(ti){Se(ei,ti);var Qn=Pe(ei);function ei(){return z(this,ei),Qn.apply(this,arguments)}return ee(ei,[{key:"format",value:function(Jt,Pn){Jt===ei.blotName&&Pn?this.domNode.setAttribute(ei.dataAttribute,Pn):ce(he(ei.prototype),"format",this).call(this,Jt,Pn)}}]),ei}(Me);ke.tagName=["TH","TD"],ke.blotName="tableHeaderCell",ke.dataAttribute="".concat(ye,"header-row");var Ye=function(ti){Se(ei,ti);var Qn=Pe(ei);function ei(){return z(this,ei),Qn.apply(this,arguments)}return ee(ei,[{key:"checkMerge",value:function(){if(ce(he(ei.prototype),"checkMerge",this).call(this)&&(0,b.Z)(this.next.children.head)){var Jt=this.childFormatName,Pn=this.children.head.formats(),Jn=this.children.tail.formats(),Ii=this.next.children.head.formats(),vo=this.next.children.tail.formats();return Pn[Jt]===Jn[Jt]&&Pn[Jt]===Ii[Jt]&&Pn[Jt]===vo[Jt]}return!1}},{key:"optimize",value:function(){for(var Jt,Pn=this,Jn=arguments.length,Ii=new Array(Jn),vo=0;vo<Jn;vo++)Ii[vo]=arguments[vo];(Jt=ce(he(ei.prototype),"optimize",this)).call.apply(Jt,[this].concat(Ii));var pi=this.childFormatName;this.children.forEach(function(Wo){if((0,b.Z)(Wo.next)){var To=Wo.formats(),hs=Wo.next.formats();if(To[pi]!==hs[pi]){var Ps=Pn.splitAfter(Wo);Ps&&Ps.optimize(),Pn.prev&&Pn.prev.optimize()}}})}},{key:"rowOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"table",value:function(){var Jt;return null===(Jt=this.parent)||void 0===Jt?void 0:Jt.parent}}]),ei}(x.Z);Ye.tagName="TR";var de=function(ti){Se(ei,ti);var Qn=Pe(ei);function ei(Rt,Jt){var Pn;return z(this,ei),(Pn=Qn.call(this,Rt,Jt)).childFormatName="table",Pn}return ee(ei)}(Ye);de.blotName="tableRow";var Ae=function(ti){Se(ei,ti);var Qn=Pe(ei);function ei(Rt,Jt){var Pn;return z(this,ei),(Pn=Qn.call(this,Rt,Jt)).childFormatName="tableHeaderCell",Pn}return ee(ei)}(Ye);Ae.blotName="tableHeaderRow";var pe=function(ti){Se(ei,ti);var Qn=Pe(ei);function ei(){return z(this,ei),Qn.apply(this,arguments)}return ee(ei,[{key:"optimize",value:function(){var Jt;if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var Pn=this.children.head.children.head.domNode,Jn={};Object.keys(B.li).forEach(function(Wo){var To=Pn.dataset[Wo.toLowerCase()];To&&(Jn[Wo]=To)}),this.wrap(this.statics.requiredContainer.blotName,Jn)}for(var Ii=arguments.length,vo=new Array(Ii),pi=0;pi<Ii;pi++)vo[pi]=arguments[pi];(Jt=ce(he(ei.prototype),"optimize",this)).call.apply(Jt,[this].concat(vo))}}]),ei}(x.Z),Ee=function(ti){Se(ei,ti);var Qn=Pe(ei);function ei(){return z(this,ei),Qn.apply(this,arguments)}return ee(ei)}(pe);Ee.blotName="tableBody",Ee.tagName=["TBODY"];var le=function(ti){Se(ei,ti);var Qn=Pe(ei);function ei(){return z(this,ei),Qn.apply(this,arguments)}return ee(ei)}(pe);le.blotName="tableHeader",le.tagName=["THEAD"];var Ke=function(ti){Se(ei,ti);var Qn=Pe(ei);function ei(){return z(this,ei),Qn.apply(this,arguments)}return ee(ei,[{key:"balanceCells",value:function(){var Jt=this.descendants(Ae),Pn=this.descendants(de),Jn=this.getMaxTableColCount(Jt,Pn);this.balanceRows(Jn,Jt,ke),this.balanceRows(Jn,Pn,_e)}},{key:"getMaxTableColCount",value:function(Jt,Pn){return Math.max(this.getMaxRowColCount(Jt),this.getMaxRowColCount(Pn))}},{key:"getMaxRowColCount",value:function(Jt){return Math.max.apply(Math,function H(ti){return function G(ti){if(Array.isArray(ti))return Q(ti)}(ti)||function L(ti){if(typeof Symbol<"u"&&null!=ti[Symbol.iterator]||null!=ti["@@iterator"])return Array.from(ti)}(ti)||R(ti)||function J(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Jt.map(function(Pn){return Pn.children.length})))}},{key:"balanceRows",value:function(Jt,Pn,Jn){var Ii=this;Pn.forEach(function(vo){new Array(Jt-vo.children.length).fill(0).forEach(function(){var pi;(0,b.Z)(vo.children.head)&&(pi=Jn.formats(vo.children.head.domNode));var Wo=Ii.scroll.create(Jn.blotName,pi);vo.appendChild(Wo),Wo.optimize()})})}},{key:"cells",value:function(Jt){return this.rows().map(function(Pn){return Pn.children.at(Jt)})}},{key:"deleteColumn",value:function(Jt){var Pn=this;[le,Ee].forEach(function(Jn){var pi=U(Pn.descendants(Jn),1)[0];!(0,b.Z)(pi)||!(0,b.Z)(pi.children.head)||pi.children.forEach(function(Wo){var To=Wo.children.at(Jt);(0,b.Z)(To)&&To.remove()})})}},{key:"insertColumn",value:function(Jt){var Pn=this;[le,Ee].forEach(function(Jn){var pi=U(Pn.descendants(Jn),1)[0];if((0,b.Z)(pi)&&(0,b.Z)(pi.children.head)){var Wo=Jn===le?ke:_e;pi.children.forEach(function(To){var hs=To.children.at(Jt),Ps=Wo.formats(To.children.head.domNode),ls=Pn.scroll.create(Wo.blotName,Ps);To.insertBefore(ls,hs)})}})}},{key:"insertRow",value:function(Jt){var Pn=this,vo=U(this.descendants(Ee),1)[0];if((0,b.Z)(vo)&&(0,b.Z)(vo.children.head)){var pi=Be(),Wo=this.scroll.create(de.blotName);vo.children.head.children.forEach(function(){var hs=Pn.scroll.create(_e.blotName,pi);Wo.appendChild(hs)});var To=vo.children.at(Jt);vo.insertBefore(Wo,To)}}},{key:"insertHeaderRow",value:function(){var Jt=this,Ii=U(this.descendants(le),1)[0],Wo=U(this.descendants(Ee),1)[0];if(!(0,b.Z)(Ii)&&(0,b.Z)(Wo)&&(0,b.Z)(Wo.children.head)){var To=Be(),hs=this.scroll.create(le.blotName),Ps=this.scroll.create(Ae.blotName),ls=this.children.at(0);hs.appendChild(Ps),Wo.children.head.children.forEach(function(){var Hs=Jt.scroll.create(ke.blotName,To);Ps.appendChild(Hs),Hs.optimize()}),this.insertBefore(hs,ls)}}},{key:"rows",value:function(){var Jt=this.children.head;return(0,b.Z)(Jt)?Jt.children.map(function(Pn){return Pn}):[]}},{key:"formats",value:function(){var Jt={},Pn=this.cells()[0].domNode;return Object.keys(B.li).forEach(function(Jn){var Ii=Pn.dataset[Jn.toLowerCase()];Ii&&(Jt[Jn]=Ii)}),Jt}},{key:"format",value:function(Jt,Pn){var Jn=B.li[Jt];if(Jn){var Ii="data-".concat(Jt.toLowerCase());this.cells().forEach(function(vo){(0,F.Z)(vo.domNode,Ii,Pn)}),Jn.add(this.domNode,Pn)}}}],[{key:"create",value:function(Jt){var Pn=ce(he(ei),"create",this).call(this,Jt);return Jt&&Object.keys(Jt).forEach(function(Jn){var Ii;null===(Ii=B.li[Jn])||void 0===Ii||Ii.add(Pn,Jt[Jn])}),Pn}}]),ei}(x.Z);function Be(){return"row-".concat((0,j.Z)())}Ke.blotName="tableContainer",Ke.tagName="TABLE",Ke.allowedChildren=[le,Ee],Ee.requiredContainer=Ke,le.requiredContainer=Ke,Ee.allowedChildren=[de],de.requiredContainer=Ee,de.allowedChildren=[_e],_e.requiredContainer=de,le.allowedChildren=[Ae],Ae.requiredContainer=le,Ae.allowedChildren=[ke],ke.requiredContainer=Ae;var q=C(5635),Oe=C(9466);function fe(ti){var Qn=ti.quill,Rt=ti.range,Jt=ti.index-1,Pn=(new(k())).retain(Jt).insert("\n");Qn.updateContents(Pn,w.ZP.sources.USER),Qn.setSelection(Rt.index+1,Rt.length,w.ZP.sources.SILENT)}var We=C(2480);function Ue(ti,Qn,ei){return null==ti.prev&&null==ti.next?null==Qn.prev&&null==Qn.next?0===ei?-1:1:null==Qn.prev?-1:1:null==ti.prev?-1:null==ti.next?1:null}var Ve=C(7896),tt=C(1342);function at(ti){return(at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Qn){return typeof Qn}:function(Qn){return Qn&&"function"==typeof Symbol&&Qn.constructor===Symbol&&Qn!==Symbol.prototype?"symbol":typeof Qn})(ti)}function qe(ti,Qn){return function Te(ti){if(Array.isArray(ti))return ti}(ti)||function me(ti,Qn){var ei=null==ti?null:typeof Symbol<"u"&&ti[Symbol.iterator]||ti["@@iterator"];if(null!=ei){var Rt,Jt,Pn,Jn,Ii=[],vo=!0,pi=!1;try{if(Pn=(ei=ei.call(ti)).next,0===Qn){if(Object(ei)!==ei)return;vo=!1}else for(;!(vo=(Rt=Pn.call(ei)).done)&&(Ii.push(Rt.value),Ii.length!==Qn);vo=!0);}catch(Wo){pi=!0,Jt=Wo}finally{try{if(!vo&&null!=ei.return&&(Jn=ei.return(),Object(Jn)!==Jn))return}finally{if(pi)throw Jt}}return Ii}}(ti,Qn)||function et(ti,Qn){if(ti){if("string"==typeof ti)return ue(ti,Qn);var ei=Object.prototype.toString.call(ti).slice(8,-1);if("Object"===ei&&ti.constructor&&(ei=ti.constructor.name),"Map"===ei||"Set"===ei)return Array.from(ti);if("Arguments"===ei||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ei))return ue(ti,Qn)}}(ti,Qn)||function Nt(){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 ue(ti,Qn){(null==Qn||Qn>ti.length)&&(Qn=ti.length);for(var ei=0,Rt=new Array(Qn);ei<Qn;ei++)Rt[ei]=ti[ei];return Rt}function Ne(ti,Qn){for(var ei=0;ei<Qn.length;ei++){var Rt=Qn[ei];Rt.enumerable=Rt.enumerable||!1,Rt.configurable=!0,"value"in Rt&&(Rt.writable=!0),Object.defineProperty(ti,Qe(Rt.key),Rt)}}function Qe(ti){var Qn=function Ct(ti,Qn){if("object"!==at(ti)||null===ti)return ti;var ei=ti[Symbol.toPrimitive];if(void 0!==ei){var Rt=ei.call(ti,Qn||"default");if("object"!==at(Rt))return Rt;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Qn?String:Number)(ti)}(ti,"string");return"symbol"===at(Qn)?Qn:String(Qn)}function Gt(ti,Qn){return(Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Rt,Jt){return Rt.__proto__=Jt,Rt})(ti,Qn)}function On(ti){return(On=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ei){return ei.__proto__||Object.getPrototypeOf(ei)})(ti)}var ji=[null,null,null,-1],Mi=function(ti){!function yt(ti,Qn){if("function"!=typeof Qn&&null!==Qn)throw new TypeError("Super expression must either be null or a function");ti.prototype=Object.create(Qn&&Qn.prototype,{constructor:{value:ti,writable:!0,configurable:!0}}),Object.defineProperty(ti,"prototype",{writable:!1}),Qn&&Gt(ti,Qn)}(ei,ti);var Qn=function ft(ti){var Qn=function Mn(){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 Jt,Rt=On(ti);if(Qn){var Pn=On(this).constructor;Jt=Reflect.construct(Rt,arguments,Pn)}else Jt=Rt.apply(this,arguments);return function nn(ti,Qn){if(Qn&&("object"===at(Qn)||"function"==typeof Qn))return Qn;if(void 0!==Qn)throw new TypeError("Derived constructors may only return object or undefined");return function rn(ti){if(void 0===ti)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ti}(ti)}(this,Jt)}}(ei);function ei(){var Rt;!function je(ti,Qn){if(!(ti instanceof Qn))throw new TypeError("Cannot call a class as a function")}(this,ei);for(var Jt=arguments.length,Pn=new Array(Jt),Jn=0;Jn<Jt;Jn++)Pn[Jn]=arguments[Jn];return(Rt=Qn.call.apply(Qn,[this].concat(Pn))).tableBlots=[_e.blotName,ke.blotName],Rt.tableBlots.forEach(function(Ii){Rt.quill.editor.addImmediateFormat(Ii)}),Rt.integrateClipboard(),Rt.addKeyboardHandlers(),Rt.listenBalanceCells(),Rt}return function lt(ti,Qn,ei){Qn&&Ne(ti.prototype,Qn),ei&&Ne(ti,ei),Object.defineProperty(ti,"prototype",{writable:!1})}(ei,[{key:"integrateClipboard",value:function(){var Jt=this;this.tableBlots.forEach(function(Pn){return Jt.quill.clipboard.addTableBlot(Pn)}),this.quill.clipboard.addMatcher("tr",Vo),this.quill.clipboard.addMatcher("table",(0,Ve.F)(B.Zt)),this.quill.clipboard.addMatcher("td, th",(0,Ve.a)(tt.h6))}},{key:"addKeyboardHandlers",value:function(){var Jt=this,Pn=ei.keyboardBindings;Object.keys(Pn).forEach(function(Jn){Pn[Jn]&&Jt.quill.keyboard.addBinding(Pn[Jn])})}},{key:"balanceTables",value:function(){this.quill.scroll.descendants(Ke).forEach(function(Jt){Jt.balanceCells()})}},{key:"deleteColumn",value:function(){var Pn=qe(this.getTable(),3),Jn=Pn[0],Ii=Pn[2];(0,b.Z)(Ii)&&(Jn.deleteColumn(Ii.cellOffset()),this.quill.update(w.ZP.sources.USER))}},{key:"deleteRow",value:function(){var Jn=qe(this.getTable(),2)[1];(0,b.Z)(Jn)&&(Jn.remove(),this.quill.update(w.ZP.sources.USER))}},{key:"deleteTable",value:function(){var Jn=qe(this.getTable(),1)[0];if((0,b.Z)(Jn)){var Ii=Jn.offset();Jn.remove(),this.quill.update(w.ZP.sources.USER),this.quill.setSelection(Ii,w.ZP.sources.SILENT)}}},{key:"getTable",value:function(){var Jt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(!(0,b.Z)(Jt))return ji;var Jn=qe(this.quill.getLine(Jt.index),2),Ii=Jn[0],vo=Jn[1];if(!(0,b.Z)(Ii)||-1===this.tableBlots.indexOf(Ii.statics.blotName))return ji;var pi=Ii.parent;return[pi.parent.parent,pi,Ii,vo]}},{key:"insertColumn",value:function(Jt){var Pn=this.quill.getSelection(),Ii=qe(this.getTable(Pn),3),vo=Ii[0],pi=Ii[1],Wo=Ii[2];if((0,b.Z)(Wo)){var To=Wo.cellOffset();vo.insertColumn(To+Jt),this.quill.update(w.ZP.sources.USER);var hs=pi.rowOffset();0===Jt&&(hs+=1),this.quill.setSelection(Pn.index+hs,Pn.length,w.ZP.sources.SILENT)}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(Jt){var Pn=this.quill.getSelection(),Ii=qe(this.getTable(Pn),3),vo=Ii[0],pi=Ii[1];if((0,b.Z)(Ii[2])){var To=pi.rowOffset();vo.insertRow(To+Jt),this.quill.update(w.ZP.sources.USER),Jt>0?this.quill.setSelection(Pn,w.ZP.sources.SILENT):this.quill.setSelection(Pn.index+pi.children.length,Pn.length,w.ZP.sources.SILENT)}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertHeaderRow",value:function(){var Jt=this.quill.getSelection(),Jn=qe(this.getTable(Jt),3),Ii=Jn[0];(0,b.Z)(Jn[2])&&(Ii.insertHeaderRow(),this.quill.update(w.ZP.sources.USER))}},{key:"insertTable",value:function(Jt,Pn){var Jn=this.quill.getSelection();if((0,b.Z)(Jn)){var Ii=new Array(Jt).fill(0).reduce(function(vo){var pi=new Array(Pn).fill("\n").join("");return vo.insert(pi,{table:Be()})},(new(k())).retain(Jn.index));this.quill.updateContents(Ii,w.ZP.sources.USER),this.quill.setSelection(Jn.index,w.ZP.sources.SILENT),this.balanceTables()}}},{key:"tableFormats",value:function(){return this.tableBlots}},{key:"listenBalanceCells",value:function(){var Jt=this;this.quill.on(w.ZP.events.SCROLL_OPTIMIZE,function(Pn){Pn.some(function(Jn){return-1!==["TD","TH","TR","TBODY","THEAD","TABLE"].indexOf(Jn.target.tagName)&&(Jt.quill.once(w.ZP.events.TEXT_CHANGE,function(Ii,vo,pi){pi===w.ZP.sources.USER&&Jt.balanceTables()}),!0)})}),this.quill.on(w.ZP.events.CONTENT_SETTED,function(){Jt.quill.once(w.ZP.events.TEXT_CHANGE,function(){Jt.balanceTables()})})}}],[{key:"register",value:function(){w.ZP.register(ke,!0),w.ZP.register(_e,!0),w.ZP.register(Ae,!0),w.ZP.register(de,!0),w.ZP.register(Ee,!0),w.ZP.register(le,!0),w.ZP.register(Ke,!0),[B.li,tt.Du].forEach(function(Jt){Object.keys(Jt).forEach(function(Pn){w.ZP.register(function Vt(ti,Qn,ei){return(Qn=Qe(Qn))in ti?Object.defineProperty(ti,Qn,{value:ei,enumerable:!0,configurable:!0,writable:!0}):ti[Qn]=ei,ti}({},"formats/".concat(Pn),Jt[Pn]),!0)})})}}]),ei}(P.Z);function Vo(ti,Qn){var Rt="THEAD"===ti.parentNode.tagName||null,Pn=Array.from(("TABLE"===ti.parentNode.tagName?ti.parentNode:ti.parentNode.parentNode).querySelectorAll("tr")).indexOf(ti)+1;return(0,q.HI)(Qn,Rt?"tableHeaderCell":"table",Pn)}Mi.keyboardBindings={"table backspace":{key:"backspace",format:["table","tableHeaderCell"],collapsed:!0,offset:0,handler:function(){}},"table delete":{key:"del",format:["table","tableHeaderCell"],collapsed:!0,suffix:/^$/,handler:function(){}},"table enter":{key:"enter",shiftKey:null,format:["table"],handler:function(Qn){var ei=this.quill.getModule("table");if(ei){var Rt=this.quill,Pn=qe(ei.getTable(Qn),4),Jn=Pn[0],Wo=Ue(Pn[1],Pn[2],Pn[3]);if(null==Wo||Wo<0&&Jn.children.length>1&&Jn.children.head)return;var hs=Jn.offset();Wo<0?fe({quill:Rt,index:hs,range:Qn}):(0,We.Z)({quill:Rt,index:hs,table:Jn})}}},"table header enter":{key:"enter",shiftKey:null,format:["tableHeaderCell"],handler:function(Qn){var ei=this.quill.getModule("table");if(ei){var Rt=this.quill,Pn=qe(ei.getTable(Qn),4),Jn=Pn[0],Wo=Ue(Pn[1],Pn[2],Pn[3]);if(null==Wo)return;var To=Jn.offset();Wo<0||Wo>0&&Jn.children.length>1&&Jn.children.tail?fe({quill:Rt,index:To,range:Qn}):(0,We.Z)({quill:Rt,index:To,table:Jn})}}},"table tab":{key:"tab",shiftKey:null,format:["table","tableHeaderCell"],handler:function(Qn,ei){var Rt=ei.event,Jt=ei.line,Pn=Jt.offset(this.quill.scroll);this.quill.setSelection(Rt.shiftKey?Pn-1:Pn+Jt.length(),w.ZP.sources.USER)}},"table down":(0,Oe.Z)(!1,["table","tableHeaderCell"]),"table up":(0,Oe.Z)(!0,["table","tableHeaderCell"])};const Co=Mi},2480:(m,T,C)=>{"use strict";C.d(T,{Z:()=>P});var e=C(9098),k=C.n(e),w=C(281);function P(v){var x=v.quill,j=v.index+v.table.length(),F=(new(k())).retain(j).insert("\n");x.updateContents(F,w.ZP.sources.USER),x.setSelection(j,w.ZP.sources.USER)}},9466:(m,T,C)=>{"use strict";C.d(T,{Z:()=>k});var e=C(281);function k(w,P){return{key:w?"upArrow":"downArrow",collapsed:!0,format:P,handler:function(x,b){var B=w?"prev":"next",j=b.line,F=j.statics.blotName.indexOf("Line")>-1?j.parent:j,X=F.parent.parent[B],U=F.parent[B]||X?.children.head;if(null!=U){if("tableRow"===U.statics.blotName||"tableHeaderRow"===U.statics.blotName){for(var Z=U.children.head,A=F;null!=A.prev;)A=A.prev,Z=Z.next;var M=Z.offset(this.quill.scroll)+Math.min(b.offset,Z.length()-1);this.quill.setSelection(M,0,e.ZP.sources.USER)}}else{var H=F.table()[B];null!=H&&this.quill.setSelection(w?H.offset(this.quill.scroll)+H.length()-1:H.offset(this.quill.scroll),0,e.ZP.sources.USER)}return!1}}}},7896:(m,T,C)=>{"use strict";C.d(T,{F:()=>Z,a:()=>A});var e=C(1233),k=C(1674),w=C(4569),P=C(5635);function v(M){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(H){return typeof H}:function(H){return H&&"function"==typeof Symbol&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H})(M)}function x(M,H){var J=Object.keys(M);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(M);H&&(R=R.filter(function(L){return Object.getOwnPropertyDescriptor(M,L).enumerable})),J.push.apply(J,R)}return J}function b(M){for(var H=1;H<arguments.length;H++){var J=null!=arguments[H]?arguments[H]:{};H%2?x(Object(J),!0).forEach(function(R){B(M,R,J[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(J)):x(Object(J)).forEach(function(R){Object.defineProperty(M,R,Object.getOwnPropertyDescriptor(J,R))})}return M}function B(M,H,J){return H=function j(M){var H=function F(M,H){if("object"!==v(M)||null===M)return M;var J=M[Symbol.toPrimitive];if(void 0!==J){var R=J.call(M,H||"default");if("object"!==v(R))return R;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===H?String:Number)(M)}(M,"string");return"symbol"===v(H)?H:String(H)}(H),H in M?Object.defineProperty(M,H,{value:J,enumerable:!0,configurable:!0,writable:!0}):M[H]=J,M}function X(M,H,J,R){M[H]=!R&&M[H]?M[H]:J}function U(M,H,J,R,L,G){return M.filter(function(Q){return!!Q}).forEach(function(Q){var z=J.query(Q,e.Scope.ATTRIBUTE);if(null!==z){var K=z.value(H);if(K)return void X(L,z.attrName,K,G)}var ee=R[Q];if(null!=ee&&(ee.attrName===Q||ee.keyName===Q)){var re=ee.value(H)||void 0;X(L,ee.attrName,re,G)}}),L}function Z(M){return function(H,J,R){var L=k.Z.keys(H),G=w.Z.keys(H),Q=b(b({},U(L,H,R,M,{},!0)),U(G,H,R,M,{},!0));return Object.keys(Q).length>0?(0,P.HI)(J,Q):J}}function A(M){return function(H,J,R){var L,G=k.Z.keys(H),Q=w.Z.keys(H),z="TR"===(null===(L=H.parentNode)||void 0===L?void 0:L.tagName)?H.parentNode:void 0,K=b(b({},U(G,H,R,M,{},!0)),U(Q,H,R,M,{},!0));return z&&(K=U(w.Z.keys(z),z,R,M,K,!1)),Object.keys(K).length>0?(0,P.HI)(J,K):J}}},3859:(m,T,C)=>{"use strict";C.d(T,{Z:()=>Q});var e=C(9098),k=C.n(e),w=C(2069),P=C(7094),v=C(8034);function x(z){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(K){return typeof K}:function(K){return K&&"function"==typeof Symbol&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K})(z)}function j(z,K){for(var ee=0;ee<K.length;ee++){var re=K[ee];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(z,X(re.key),re)}}function X(z){var K=function U(z,K){if("object"!==x(z)||null===z)return z;var ee=z[Symbol.toPrimitive];if(void 0!==ee){var re=ee.call(z,K||"default");if("object"!==x(re))return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===K?String:Number)(z)}(z,"string");return"symbol"===x(K)?K:String(K)}function A(z,K){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(re,be){return re.__proto__=be,re})(z,K)}function L(z){return(L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ee){return ee.__proto__||Object.getPrototypeOf(ee)})(z)}var G=function(z){!function Z(z,K){if("function"!=typeof K&&null!==K)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(K&&K.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),Object.defineProperty(z,"prototype",{writable:!1}),K&&A(z,K)}(ee,z);var K=function M(z){var K=function R(){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 be,re=L(z);if(K){var ce=L(this).constructor;be=Reflect.construct(re,arguments,ce)}else be=re.apply(this,arguments);return function H(z,K){if(K&&("object"===x(K)||"function"==typeof K))return K;if(void 0!==K)throw new TypeError("Derived constructors may only return object or undefined");return function J(z){if(void 0===z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(z)}(this,be)}}(ee);function ee(re,be){var ce;return function B(z,K){if(!(z instanceof K))throw new TypeError("Cannot call a class as a function")}(this,ee),(ce=K.call(this,re,be)).preventImageUploading(!1),ce.addDragOverHandler(),ce.addDropHandler(),ce}return function F(z,K,ee){K&&j(z.prototype,K),ee&&j(z,ee),Object.defineProperty(z,"prototype",{writable:!1})}(ee,[{key:"addDragOverHandler",value:function(){if((0,v.Z)()){var be=window.navigator.userAgent.toLowerCase();(-1!==be.indexOf("msie ")||-1!==be.indexOf("trident/")||-1!==be.indexOf("edge/"))&&this.quill.root.addEventListener("dragover",function(Re){Re.preventDefault()})}}},{key:"addDropHandler",value:function(){var be=this;this.quill.root.addEventListener("drop",function(ce){var Re=0===ce.dataTransfer.files.length,Se=be.options.onDrop;if(Se&&"function"==typeof Se&&Se(ce),!Re&&!be.preventImageUpload){var De;if(ce.preventDefault(),document.caretRangeFromPoint)De=document.caretRangeFromPoint(ce.clientX,ce.clientY);else{if(!document.caretPositionFromPoint)return;var Pe=document.caretPositionFromPoint(ce.clientX,ce.clientY);(De=document.createRange()).setStart(Pe.offsetNode,Pe.offset),De.setEnd(Pe.offsetNode,Pe.offset)}var Ie=be.quill.selection.normalizeNative(De),W=be.quill.selection.normalizedToRange(Ie);be.upload(W,ce.dataTransfer.files)}})}},{key:"preventImageUploading",value:function(be){return typeof be<"u"&&(this.preventImageUpload=be),this.preventImageUpload}},{key:"upload",value:function(be,ce,Re){var Se=this;if(!this.preventImageUpload||Re){var De=[];Array.from(ce).forEach(function(Pe){Pe&&-1!==Se.options.mimetypes.indexOf(Pe.type)&&De.push(Pe)}),De.length>0&&this.options.handler.call(this,be,De,this.options.imageBlot)}}}]),ee}(P.Z);G.DEFAULTS={mimetypes:["image/png","image/jpeg","image/pjpeg","image/gif","image/webp","image/bmp","image/svg+xml","image/vnd.microsoft.icon"],imageBlot:"image",handler:function(K,ee,re){var be=this,ce=ee.map(function(Re){return new Promise(function(Se){var De=new FileReader;De.onload=function(Pe){Se(Pe.target.result)},De.readAsDataURL(Re)})});Promise.all(ce).then(function(Re){var Se=Re.reduce(function(De,Pe){return De.insert(function b(z,K,ee){return(K=X(K))in z?Object.defineProperty(z,K,{value:ee,enumerable:!0,configurable:!0,writable:!0}):z[K]=ee,z}({},re,Pe))},(new(k())).retain(K.index).delete(K.length));be.quill.updateContents(Se,w.Z.sources.USER),be.quill.setSelection(K.index+Re.length,w.Z.sources.SILENT)})}};const Q=G},2141:(m,T,C)=>{"use strict";function e(k){return k?k.substring(0,1).toUpperCase()+k.substring(1):""}C.d(T,{Z:()=>e})},8034:(m,T,C)=>{"use strict";C.d(T,{Z:()=>k});const k=function(){return typeof window<"u"}},5874:(m,T,C)=>{"use strict";function e(k){return null!=k}C.d(T,{Z:()=>e})},1233:(m,T,C)=>{"use strict";C.r(T),C.d(T,{Attributor:()=>K,AttributorStore:()=>W,BlockBlot:()=>ke,ClassAttributor:()=>ce,ContainerBlot:()=>R,EmbedBlot:()=>Ae,InlineBlot:()=>ye,LeafBlot:()=>Q,ParentBlot:()=>M,Registry:()=>j,Scope:()=>k,ScrollBlot:()=>Be,StyleAttributor:()=>Pe,TextBlot:()=>fe});var e=function(We){return We[We.TYPE=3]="TYPE",We[We.LEVEL=12]="LEVEL",We[We.ATTRIBUTE=13]="ATTRIBUTE",We[We.BLOT=14]="BLOT",We[We.INLINE=7]="INLINE",We[We.BLOCK=11]="BLOCK",We[We.BLOCK_BLOT=10]="BLOCK_BLOT",We[We.INLINE_BLOT=6]="INLINE_BLOT",We[We.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",We[We.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",We[We.ANY=15]="ANY",We}(e||{});const k=e;var w=function(){function We(){this.head=null,this.tail=null,this.length=0}return We.prototype.append=function(){for(var Ue=[],Ve=0;Ve<arguments.length;Ve++)Ue[Ve]=arguments[Ve];if(this.insertBefore(Ue[0],null),Ue.length>1){var tt=Ue.slice(1);this.append.apply(this,tt)}},We.prototype.at=function(Ue){for(var Ve=this.iterator(),tt=Ve();tt&&Ue>0;)Ue-=1,tt=Ve();return tt},We.prototype.contains=function(Ue){for(var Ve=this.iterator(),tt=Ve();tt;){if(tt===Ue)return!0;tt=Ve()}return!1},We.prototype.indexOf=function(Ue){for(var Ve=this.iterator(),tt=Ve(),at=0;tt;){if(tt===Ue)return at;at+=1,tt=Ve()}return-1},We.prototype.insertBefore=function(Ue,Ve){null!=Ue&&(this.remove(Ue),Ue.next=Ve,null!=Ve?(Ue.prev=Ve.prev,null!=Ve.prev&&(Ve.prev.next=Ue),Ve.prev=Ue,Ve===this.head&&(this.head=Ue)):null!=this.tail?(this.tail.next=Ue,Ue.prev=this.tail,this.tail=Ue):(Ue.prev=null,this.head=this.tail=Ue),this.length+=1)},We.prototype.offset=function(Ue){for(var Ve=0,tt=this.head;null!=tt;){if(tt===Ue)return Ve;Ve+=tt.length(),tt=tt.next}return-1},We.prototype.remove=function(Ue){this.contains(Ue)&&(null!=Ue.prev&&(Ue.prev.next=Ue.next),null!=Ue.next&&(Ue.next.prev=Ue.prev),Ue===this.head&&(this.head=Ue.next),Ue===this.tail&&(this.tail=Ue.prev),this.length-=1)},We.prototype.iterator=function(Ue){return void 0===Ue&&(Ue=this.head),function(){var Ve=Ue;return null!=Ue&&(Ue=Ue.next),Ve}},We.prototype.find=function(Ue,Ve){void 0===Ve&&(Ve=!1);for(var tt=this.iterator(),at=tt();at;){var Vt=at.length();if(Ue<Vt||Ve&&Ue===Vt&&(null==at.next||0!==at.next.length()))return[at,Ue];Ue-=Vt,at=tt()}return[null,0]},We.prototype.forEach=function(Ue){for(var Ve=this.iterator(),tt=Ve();tt;)Ue(tt),tt=Ve()},We.prototype.forEachAt=function(Ue,Ve,tt){if(!(Ve<=0))for(var at=this.find(Ue),Nt=Ue-at[1],et=this.iterator(at[0]),ue=et();ue&&Nt<Ue+Ve;){var me=ue.length();Ue>Nt?tt(ue,Ue-Nt,Math.min(Ve,Nt+me-Ue)):tt(ue,0,Math.min(me,Ue+Ve-Nt)),Nt+=me,ue=et()}},We.prototype.map=function(Ue){return this.reduce(function(Ve,tt){return Ve.push(Ue(tt)),Ve},[])},We.prototype.reduce=function(Ue,Ve){for(var tt=this.iterator(),at=tt();at;)Ve=Ue(Ve,at),at=tt();return Ve},We}();const P=w;var v=function(){var We=function(Ve,tt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Vt){at.__proto__=Vt}||function(at,Vt){for(var qe in Vt)Object.prototype.hasOwnProperty.call(Vt,qe)&&(at[qe]=Vt[qe])})(Ve,tt)};return function(Ue,Ve){if("function"!=typeof Ve&&null!==Ve)throw new TypeError("Class extends value "+String(Ve)+" is not a constructor or null");function tt(){this.constructor=Ue}We(Ue,Ve),Ue.prototype=null===Ve?Object.create(Ve):(tt.prototype=Ve.prototype,new tt)}}();const b=function(We){function Ue(Ve){var tt=this;return(tt=We.call(this,Ve="[Parchment] "+Ve)||this).message=Ve,tt.name=tt.constructor.name,tt}return v(Ue,We),Ue}(Error);var B=function(){function We(){this.attributes={},this.classes={},this.tags={},this.types={}}return We.find=function(Ue,Ve){if(void 0===Ve&&(Ve=!1),null==Ue)return null;if(this.blots.has(Ue))return this.blots.get(Ue)||null;if(Ve){var tt=null;try{tt=Ue.parentNode}catch{return null}return this.find(tt,Ve)}return null},We.prototype.create=function(Ue,Ve,tt){var at=this.query(Ve);if(null==at)throw new b("Unable to create ".concat(Ve," blot"));var Vt=at,qe=Ve instanceof Node||Ve.nodeType===Node.TEXT_NODE?Ve:Vt.create(tt),Nt=new Vt(Ue,qe,tt);return We.blots.set(Nt.domNode,Nt),Nt},We.prototype.find=function(Ue,Ve){return void 0===Ve&&(Ve=!1),We.find(Ue,Ve)},We.prototype.query=function(Ue,Ve){var at,tt=this;return void 0===Ve&&(Ve=k.ANY),"string"==typeof Ue?at=this.types[Ue]||this.attributes[Ue]:Ue instanceof Text||Ue.nodeType===Node.TEXT_NODE?at=this.types.text:"number"==typeof Ue?Ue&k.LEVEL&k.BLOCK?at=this.types.block:Ue&k.LEVEL&k.INLINE&&(at=this.types.inline):Ue instanceof Element&&((Ue.getAttribute("class")||"").split(/\s+/).some(function(qe){return!!(at=tt.classes[qe])}),at=at||this.tags[Ue.tagName]),null==at?null:Ve&k.LEVEL&at.scope&&Ve&k.TYPE&at.scope?at:null},We.prototype.register=function(){for(var Ue=this,Ve=[],tt=0;tt<arguments.length;tt++)Ve[tt]=arguments[tt];if(Ve.length>1)return Ve.map(function(qe){return Ue.register(qe)});var at=Ve[0];if("string"!=typeof at.blotName&&"string"!=typeof at.attrName)throw new b("Invalid definition");if("abstract"===at.blotName)throw new b("Cannot register abstract class");return this.types[at.blotName||at.attrName]=at,"string"==typeof at.keyName?this.attributes[at.keyName]=at:(null!=at.className&&(this.classes[at.className]=at),null!=at.tagName&&(at.tagName=Array.isArray(at.tagName)?at.tagName.map(function(qe){return qe.toUpperCase()}):at.tagName.toUpperCase(),(Array.isArray(at.tagName)?at.tagName:[at.tagName]).forEach(function(qe){(null==Ue.tags[qe]||null==at.className)&&(Ue.tags[qe]=at)}))),at},We.blots=new WeakMap,We}();const j=B,X=function(){function We(Ue,Ve){this.scroll=Ue,this.domNode=Ve,j.blots.set(Ve,this),this.prev=null,this.next=null}return We.create=function(Ue){if(null==this.tagName)throw new b("Blot definition missing tagName");var Ve;return Array.isArray(this.tagName)?("string"==typeof Ue&&(Ue=Ue.toUpperCase(),parseInt(Ue,10).toString()===Ue&&(Ue=parseInt(Ue,10))),Ve="number"==typeof Ue?document.createElement(this.tagName[Ue-1]):this.tagName.indexOf(Ue)>-1?document.createElement(Ue):document.createElement(this.tagName[0])):Ve=document.createElement(this.tagName),this.className&&Ve.classList.add(this.className),Ve},Object.defineProperty(We.prototype,"statics",{get:function(){return this.constructor},enumerable:!1,configurable:!0}),We.prototype.attach=function(){},We.prototype.clone=function(){var Ue=this.domNode.cloneNode(!1);return this.scroll.create(Ue)},We.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),j.blots.delete(this.domNode)},We.prototype.deleteAt=function(Ue,Ve){this.isolate(Ue,Ve).remove()},We.prototype.formatAt=function(Ue,Ve,tt,at){var Vt=this.isolate(Ue,Ve);if(null!=this.scroll.query(tt,k.BLOT)&&at)Vt.wrap(tt,at);else if(null!=this.scroll.query(tt,k.ATTRIBUTE)){var qe=this.scroll.create(this.statics.scope);Vt.wrap(qe),qe.format(tt,at)}},We.prototype.insertAt=function(Ue,Ve,tt){var at=null==tt?this.scroll.create("text",Ve):this.scroll.create(Ve,tt),Vt=this.split(Ue);this.parent.insertBefore(at,Vt||void 0)},We.prototype.isolate=function(Ue,Ve){var tt=this.split(Ue);if(null==tt)throw new Error("Attempt to isolate at end");return tt.split(Ve),tt},We.prototype.length=function(){return 1},We.prototype.offset=function(Ue){return void 0===Ue&&(Ue=this.parent),null==this.parent||this===Ue?0:this.parent.children.offset(this)+this.parent.offset(Ue)},We.prototype.optimize=function(Ue){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)},We.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},We.prototype.replaceWith=function(Ue,Ve){var tt="string"==typeof Ue?this.scroll.create(Ue,Ve):Ue;return null!=this.parent&&(this.parent.insertBefore(tt,this.next||void 0),this.remove()),tt},We.prototype.split=function(Ue,Ve){return 0===Ue?this:this.next},We.prototype.update=function(Ue,Ve){},We.prototype.wrap=function(Ue,Ve){var tt="string"==typeof Ue?this.scroll.create(Ue,Ve):Ue;if(null!=this.parent&&this.parent.insertBefore(tt,this.next||void 0),"function"!=typeof tt.appendChild)throw new b("Cannot wrap ".concat(Ue));return tt.appendChild(this),tt},We.blotName="abstract",We}();var U=function(){var We=function(Ve,tt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Vt){at.__proto__=Vt}||function(at,Vt){for(var qe in Vt)Object.prototype.hasOwnProperty.call(Vt,qe)&&(at[qe]=Vt[qe])})(Ve,tt)};return function(Ue,Ve){if("function"!=typeof Ve&&null!==Ve)throw new TypeError("Class extends value "+String(Ve)+" is not a constructor or null");function tt(){this.constructor=Ue}We(Ue,Ve),Ue.prototype=null===Ve?Object.create(Ve):(tt.prototype=Ve.prototype,new tt)}}();function Z(We,Ue){var Ve=Ue.find(We);if(null==Ve)try{Ve=Ue.create(We)}catch{Ve=Ue.create(k.INLINE),Array.from(We.childNodes).forEach(function(at){Ve.domNode.appendChild(at)}),We.parentNode&&We.parentNode.replaceChild(Ve.domNode,We),Ve.attach()}return Ve}const M=function(We){function Ue(Ve,tt){var at=We.call(this,Ve,tt)||this;return at.uiNode=null,at.build(),at}return U(Ue,We),Ue.prototype.appendChild=function(Ve){this.insertBefore(Ve)},Ue.prototype.attach=function(){We.prototype.attach.call(this),this.children.forEach(function(Ve){Ve.attach()})},Ue.prototype.attachUI=function(Ve){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=Ve,Ue.uiClass&&this.uiNode.classList.add(Ue.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)},Ue.prototype.build=function(){var Ve=this;this.children=new P,Array.from(this.domNode.childNodes).filter(function(tt){return tt!==Ve.uiNode}).reverse().forEach(function(tt){try{var at=Z(tt,Ve.scroll);Ve.insertBefore(at,Ve.children.head||void 0)}catch(Vt){if(Vt instanceof b)return;throw Vt}})},Ue.prototype.deleteAt=function(Ve,tt){if(0===Ve&&tt===this.length())return this.remove();this.children.forEachAt(Ve,tt,function(at,Vt,qe){at.deleteAt(Vt,qe)})},Ue.prototype.descendant=function(Ve,tt){void 0===tt&&(tt=0);var at=this.children.find(tt),Vt=at[0],qe=at[1];return null==Ve.blotName&&Ve(Vt)||null!=Ve.blotName&&Vt instanceof Ve?[Vt,qe]:Vt instanceof Ue?Vt.descendant(Ve,qe):[null,-1]},Ue.prototype.descendants=function(Ve,tt,at){void 0===tt&&(tt=0),void 0===at&&(at=Number.MAX_VALUE);var Vt=[],qe=at;return this.children.forEachAt(tt,at,function(Nt,et,ue){(null==Ve.blotName&&Ve(Nt)||null!=Ve.blotName&&Nt instanceof Ve)&&Vt.push(Nt),Nt instanceof Ue&&(Vt=Vt.concat(Nt.descendants(Ve,et,qe))),qe-=ue}),Vt},Ue.prototype.detach=function(){this.children.forEach(function(Ve){Ve.detach()}),We.prototype.detach.call(this)},Ue.prototype.enforceAllowedChildren=function(){var Ve=this,tt=!1;this.children.forEach(function(at){tt||Ve.statics.allowedChildren.some(function(qe){return at instanceof qe})||(at.statics.scope===k.BLOCK_BLOT?(null!=at.next&&Ve.splitAfter(at),null!=at.prev&&Ve.splitAfter(at.prev),at.parent.unwrap(),tt=!0):at instanceof Ue?at.unwrap():at.remove())})},Ue.prototype.formatAt=function(Ve,tt,at,Vt){this.children.forEachAt(Ve,tt,function(qe,Nt,et){qe.formatAt(Nt,et,at,Vt)})},Ue.prototype.insertAt=function(Ve,tt,at){var Vt=this.children.find(Ve),qe=Vt[0];if(qe)qe.insertAt(Vt[1],tt,at);else{var et=null==at?this.scroll.create("text",tt):this.scroll.create(tt,at);this.appendChild(et)}},Ue.prototype.insertBefore=function(Ve,tt){null!=Ve.parent&&Ve.parent.children.remove(Ve);var at=null;this.children.insertBefore(Ve,tt||null),Ve.parent=this,null!=tt&&(at=tt.domNode),(this.domNode.parentNode!==Ve.domNode||this.domNode.nextSibling!==at)&&this.domNode.insertBefore(Ve.domNode,at),Ve.attach()},Ue.prototype.length=function(){return this.children.reduce(function(Ve,tt){return Ve+tt.length()},0)},Ue.prototype.moveChildren=function(Ve,tt){this.children.forEach(function(at){Ve.insertBefore(at,tt)})},Ue.prototype.optimize=function(Ve){if(We.prototype.optimize.call(this,Ve),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){var tt=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(tt)}else this.remove()},Ue.prototype.path=function(Ve,tt){void 0===tt&&(tt=!1);var at=this.children.find(Ve,tt),Vt=at[0],qe=at[1],Nt=[[this,Ve]];return Vt instanceof Ue?Nt.concat(Vt.path(qe,tt)):(null!=Vt&&Nt.push([Vt,qe]),Nt)},Ue.prototype.removeChild=function(Ve){this.children.remove(Ve)},Ue.prototype.replaceWith=function(Ve,tt){var at="string"==typeof Ve?this.scroll.create(Ve,tt):Ve;return at instanceof Ue&&this.moveChildren(at),We.prototype.replaceWith.call(this,at)},Ue.prototype.split=function(Ve,tt){if(void 0===tt&&(tt=!1),!tt){if(0===Ve)return this;if(Ve===this.length())return this.next}var at=this.clone();return this.parent&&this.parent.insertBefore(at,this.next||void 0),this.children.forEachAt(Ve,this.length(),function(Vt,qe,Nt){var et=Vt.split(qe,tt);null!=et&&at.appendChild(et)}),at},Ue.prototype.splitAfter=function(Ve){for(var tt=this.clone();null!=Ve.next;)tt.appendChild(Ve.next);return this.parent&&this.parent.insertBefore(tt,this.next||void 0),tt},Ue.prototype.unwrap=function(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()},Ue.prototype.update=function(Ve,tt){var at=this,Vt=[],qe=[];Ve.forEach(function(Nt){Nt.target===at.domNode&&"childList"===Nt.type&&(Vt.push.apply(Vt,Nt.addedNodes),qe.push.apply(qe,Nt.removedNodes))}),qe.forEach(function(Nt){if(!(null!=Nt.parentNode&&"IFRAME"!==Nt.tagName&&document.body.compareDocumentPosition(Nt)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var et=at.scroll.find(Nt);null!=et&&(null==et.domNode.parentNode||et.domNode.parentNode===at.domNode)&&et.detach()}}),Vt.filter(function(Nt){return Nt.parentNode===at.domNode||Nt===at.uiNode}).sort(function(Nt,et){return Nt===et?0:Nt.compareDocumentPosition(et)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(Nt){var et=null;null!=Nt.nextSibling&&(et=at.scroll.find(Nt.nextSibling));var ue=Z(Nt,at.scroll);(ue.next!==et||null==ue.next)&&(null!=ue.parent&&ue.parent.removeChild(at),at.insertBefore(ue,et||void 0))}),this.enforceAllowedChildren()},Ue.uiClass="",Ue}(X);var H=function(){var We=function(Ve,tt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Vt){at.__proto__=Vt}||function(at,Vt){for(var qe in Vt)Object.prototype.hasOwnProperty.call(Vt,qe)&&(at[qe]=Vt[qe])})(Ve,tt)};return function(Ue,Ve){if("function"!=typeof Ve&&null!==Ve)throw new TypeError("Class extends value "+String(Ve)+" is not a constructor or null");function tt(){this.constructor=Ue}We(Ue,Ve),Ue.prototype=null===Ve?Object.create(Ve):(tt.prototype=Ve.prototype,new tt)}}(),J=function(We){function Ue(){return null!==We&&We.apply(this,arguments)||this}return H(Ue,We),Ue.prototype.checkMerge=function(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName},Ue.prototype.deleteAt=function(Ve,tt){We.prototype.deleteAt.call(this,Ve,tt),this.enforceAllowedChildren()},Ue.prototype.formatAt=function(Ve,tt,at,Vt){We.prototype.formatAt.call(this,Ve,tt,at,Vt),this.enforceAllowedChildren()},Ue.prototype.insertAt=function(Ve,tt,at){We.prototype.insertAt.call(this,Ve,tt,at),this.enforceAllowedChildren()},Ue.prototype.optimize=function(Ve){We.prototype.optimize.call(this,Ve),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())},Ue.blotName="container",Ue.scope=k.BLOCK_BLOT,Ue}(M);const R=J;var L=function(){var We=function(Ve,tt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Vt){at.__proto__=Vt}||function(at,Vt){for(var qe in Vt)Object.prototype.hasOwnProperty.call(Vt,qe)&&(at[qe]=Vt[qe])})(Ve,tt)};return function(Ue,Ve){if("function"!=typeof Ve&&null!==Ve)throw new TypeError("Class extends value "+String(Ve)+" is not a constructor or null");function tt(){this.constructor=Ue}We(Ue,Ve),Ue.prototype=null===Ve?Object.create(Ve):(tt.prototype=Ve.prototype,new tt)}}(),G=function(We){function Ue(){return null!==We&&We.apply(this,arguments)||this}return L(Ue,We),Ue.value=function(Ve){return!0},Ue.prototype.index=function(Ve,tt){return this.domNode===Ve||this.domNode.compareDocumentPosition(Ve)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(tt,1):-1},Ue.prototype.position=function(Ve,tt){var Vt=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return Ve>0&&(Vt+=1),[this.parent.domNode,Vt]},Ue.prototype.value=function(){var Ve;return(Ve={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,Ve},Ue.scope=k.INLINE_BLOT,Ue}(X);const Q=G,K=function(){function We(Ue,Ve,tt){void 0===tt&&(tt={}),this.attrName=Ue,this.keyName=Ve,this.scope=null!=tt.scope?tt.scope&k.LEVEL|k.TYPE&k.ATTRIBUTE:k.ATTRIBUTE,null!=tt.whitelist&&(this.whitelist=tt.whitelist)}return We.keys=function(Ue){return Array.from(Ue.attributes).map(function(Ve){return Ve.name})},We.prototype.add=function(Ue,Ve){return!!this.canAdd(Ue,Ve)&&(Ue.setAttribute(this.keyName,Ve),!0)},We.prototype.canAdd=function(Ue,Ve){return null==this.whitelist||("string"==typeof Ve?this.whitelist.indexOf(Ve.replace(/["']/g,""))>-1:this.whitelist.indexOf(Ve)>-1)},We.prototype.remove=function(Ue){Ue.removeAttribute(this.keyName)},We.prototype.value=function(Ue){var Ve=Ue.getAttribute(this.keyName);return this.canAdd(Ue,Ve)&&Ve?Ve:""},We}();var ee=function(){var We=function(Ve,tt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Vt){at.__proto__=Vt}||function(at,Vt){for(var qe in Vt)Object.prototype.hasOwnProperty.call(Vt,qe)&&(at[qe]=Vt[qe])})(Ve,tt)};return function(Ue,Ve){if("function"!=typeof Ve&&null!==Ve)throw new TypeError("Class extends value "+String(Ve)+" is not a constructor or null");function tt(){this.constructor=Ue}We(Ue,Ve),Ue.prototype=null===Ve?Object.create(Ve):(tt.prototype=Ve.prototype,new tt)}}();function re(We,Ue){return(We.getAttribute("class")||"").split(/\s+/).filter(function(tt){return 0===tt.indexOf("".concat(Ue,"-"))})}var be=function(We){function Ue(){return null!==We&&We.apply(this,arguments)||this}return ee(Ue,We),Ue.keys=function(Ve){return(Ve.getAttribute("class")||"").split(/\s+/).map(function(tt){return tt.split("-").slice(0,-1).join("-")})},Ue.prototype.add=function(Ve,tt){return!!this.canAdd(Ve,tt)&&(this.remove(Ve),Ve.classList.add("".concat(this.keyName,"-").concat(tt)),!0)},Ue.prototype.remove=function(Ve){re(Ve,this.keyName).forEach(function(at){Ve.classList.remove(at)}),0===Ve.classList.length&&Ve.removeAttribute("class")},Ue.prototype.value=function(Ve){var at=(re(Ve,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(Ve,at)?at:""},Ue}(K);const ce=be;var Re=function(){var We=function(Ve,tt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Vt){at.__proto__=Vt}||function(at,Vt){for(var qe in Vt)Object.prototype.hasOwnProperty.call(Vt,qe)&&(at[qe]=Vt[qe])})(Ve,tt)};return function(Ue,Ve){if("function"!=typeof Ve&&null!==Ve)throw new TypeError("Class extends value "+String(Ve)+" is not a constructor or null");function tt(){this.constructor=Ue}We(Ue,Ve),Ue.prototype=null===Ve?Object.create(Ve):(tt.prototype=Ve.prototype,new tt)}}();function Se(We){var Ue=We.split("-"),Ve=Ue.slice(1).map(function(tt){return tt[0].toUpperCase()+tt.slice(1)}).join("");return Ue[0]+Ve}var De=function(We){function Ue(){return null!==We&&We.apply(this,arguments)||this}return Re(Ue,We),Ue.keys=function(Ve){return(Ve.getAttribute("style")||"").split(";").map(function(tt){return tt.split(":")[0].trim()})},Ue.prototype.add=function(Ve,tt){return!!this.canAdd(Ve,tt)&&(Ve.style[Se(this.keyName)]=tt,!0)},Ue.prototype.remove=function(Ve){Ve.style[Se(this.keyName)]="",Ve.getAttribute("style")||Ve.removeAttribute("style")},Ue.prototype.value=function(Ve){var tt=Ve.style[Se(this.keyName)];return this.canAdd(Ve,tt)?tt:""},Ue}(K);const Pe=De,W=function(){function We(Ue){this.attributes={},this.domNode=Ue,this.build()}return We.prototype.attribute=function(Ue,Ve){Ve?Ue.add(this.domNode,Ve)&&(null!=Ue.value(this.domNode)?this.attributes[Ue.attrName]=Ue:delete this.attributes[Ue.attrName]):(Ue.remove(this.domNode),delete this.attributes[Ue.attrName])},We.prototype.build=function(){var Ue=this;this.attributes={};var Ve=j.find(this.domNode);if(null!=Ve){var tt=K.keys(this.domNode),at=ce.keys(this.domNode),Vt=Pe.keys(this.domNode);tt.concat(at).concat(Vt).forEach(function(qe){var Nt=Ve.scroll.query(qe,k.ATTRIBUTE);Nt instanceof K&&(Ue.attributes[Nt.attrName]=Nt)})}},We.prototype.copy=function(Ue){var Ve=this;Object.keys(this.attributes).forEach(function(tt){var at=Ve.attributes[tt].value(Ve.domNode);Ue.format(tt,at)})},We.prototype.move=function(Ue){var Ve=this;this.copy(Ue),Object.keys(this.attributes).forEach(function(tt){Ve.attributes[tt].remove(Ve.domNode)}),this.attributes={}},We.prototype.values=function(){var Ue=this;return Object.keys(this.attributes).reduce(function(Ve,tt){return Ve[tt]=Ue.attributes[tt].value(Ue.domNode),Ve},{})},We}();var ie=function(){var We=function(Ve,tt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Vt){at.__proto__=Vt}||function(at,Vt){for(var qe in Vt)Object.prototype.hasOwnProperty.call(Vt,qe)&&(at[qe]=Vt[qe])})(Ve,tt)};return function(Ue,Ve){if("function"!=typeof Ve&&null!==Ve)throw new TypeError("Class extends value "+String(Ve)+" is not a constructor or null");function tt(){this.constructor=Ue}We(Ue,Ve),Ue.prototype=null===Ve?Object.create(Ve):(tt.prototype=Ve.prototype,new tt)}}();const ye=function(We){function Ue(Ve,tt){var at=We.call(this,Ve,tt)||this;return at.attributes=new W(at.domNode),at}return ie(Ue,We),Ue.formats=function(Ve,tt){var at=tt.query(Ue.blotName);if(null==at||Ve.tagName!==at.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return Ve.tagName.toLowerCase()}},Ue.prototype.format=function(Ve,tt){var at=this;if(Ve!==this.statics.blotName||tt){var Vt=this.scroll.query(Ve,k.INLINE);if(null==Vt)return;Vt instanceof K?this.attributes.attribute(Vt,tt):tt&&(Ve!==this.statics.blotName||this.formats()[Ve]!==tt)&&this.replaceWith(Ve,tt)}else this.children.forEach(function(qe){qe instanceof Ue||(qe=qe.wrap(Ue.blotName,!0)),at.attributes.copy(qe)}),this.unwrap()},Ue.prototype.formats=function(){var Ve=this.attributes.values(),tt=this.statics.formats(this.domNode,this.scroll);return null!=tt&&(Ve[this.statics.blotName]=tt),Ve},Ue.prototype.formatAt=function(Ve,tt,at,Vt){null!=this.formats()[at]||this.scroll.query(at,k.ATTRIBUTE)?this.isolate(Ve,tt).format(at,Vt):We.prototype.formatAt.call(this,Ve,tt,at,Vt)},Ue.prototype.optimize=function(Ve){We.prototype.optimize.call(this,Ve);var tt=this.formats();if(0===Object.keys(tt).length)return this.unwrap();var at=this.next;at instanceof Ue&&at.prev===this&&function he(We,Ue){if(Object.keys(We).length!==Object.keys(Ue).length)return!1;for(var Ve in We)if(We[Ve]!==Ue[Ve])return!1;return!0}(tt,at.formats())&&(at.moveChildren(this),at.remove())},Ue.prototype.replaceWith=function(Ve,tt){var at=We.prototype.replaceWith.call(this,Ve,tt);return this.attributes.copy(at),at},Ue.prototype.update=function(Ve,tt){var at=this;We.prototype.update.call(this,Ve,tt),Ve.some(function(qe){return qe.target===at.domNode&&"attributes"===qe.type})&&this.attributes.build()},Ue.prototype.wrap=function(Ve,tt){var at=We.prototype.wrap.call(this,Ve,tt);return at instanceof Ue&&this.attributes.move(at),at},Ue.allowedChildren=[Ue,Q],Ue.blotName="inline",Ue.scope=k.INLINE_BLOT,Ue.tagName="SPAN",Ue}(M);var Me=function(){var We=function(Ve,tt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Vt){at.__proto__=Vt}||function(at,Vt){for(var qe in Vt)Object.prototype.hasOwnProperty.call(Vt,qe)&&(at[qe]=Vt[qe])})(Ve,tt)};return function(Ue,Ve){if("function"!=typeof Ve&&null!==Ve)throw new TypeError("Class extends value "+String(Ve)+" is not a constructor or null");function tt(){this.constructor=Ue}We(Ue,Ve),Ue.prototype=null===Ve?Object.create(Ve):(tt.prototype=Ve.prototype,new tt)}}();const ke=function(We){function Ue(Ve,tt){var at=We.call(this,Ve,tt)||this;return at.attributes=new W(at.domNode),at}return Me(Ue,We),Ue.formats=function(Ve,tt){var at=tt.query(Ue.blotName);if(null==at||Ve.tagName!==at.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return Ve.tagName.toLowerCase()}},Ue.prototype.format=function(Ve,tt){var at=this.scroll.query(Ve,k.BLOCK);null!=at&&(at instanceof K?this.attributes.attribute(at,tt):Ve!==this.statics.blotName||tt?tt&&(Ve!==this.statics.blotName||this.formats()[Ve]!==tt)&&this.replaceWith(Ve,tt):this.replaceWith(Ue.blotName))},Ue.prototype.formats=function(){var Ve=this.attributes.values(),tt=this.statics.formats(this.domNode,this.scroll);return null!=tt&&(Ve[this.statics.blotName]=tt),Ve},Ue.prototype.formatAt=function(Ve,tt,at,Vt){null!=this.scroll.query(at,k.BLOCK)?this.format(at,Vt):We.prototype.formatAt.call(this,Ve,tt,at,Vt)},Ue.prototype.insertAt=function(Ve,tt,at){if(null==at||null!=this.scroll.query(tt,k.INLINE))We.prototype.insertAt.call(this,Ve,tt,at);else{var Vt=this.split(Ve);if(null==Vt)throw new Error("Attempt to insertAt after block boundaries");var qe=this.scroll.create(tt,at);Vt.parent.insertBefore(qe,Vt)}},Ue.prototype.replaceWith=function(Ve,tt){var at=We.prototype.replaceWith.call(this,Ve,tt);return this.attributes.copy(at),at},Ue.prototype.update=function(Ve,tt){var at=this;We.prototype.update.call(this,Ve,tt),Ve.some(function(qe){return qe.target===at.domNode&&"attributes"===qe.type})&&this.attributes.build()},Ue.blotName="block",Ue.scope=k.BLOCK_BLOT,Ue.tagName="P",Ue.allowedChildren=[ye,Ue,Q],Ue}(M);var Ye=function(){var We=function(Ve,tt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Vt){at.__proto__=Vt}||function(at,Vt){for(var qe in Vt)Object.prototype.hasOwnProperty.call(Vt,qe)&&(at[qe]=Vt[qe])})(Ve,tt)};return function(Ue,Ve){if("function"!=typeof Ve&&null!==Ve)throw new TypeError("Class extends value "+String(Ve)+" is not a constructor or null");function tt(){this.constructor=Ue}We(Ue,Ve),Ue.prototype=null===Ve?Object.create(Ve):(tt.prototype=Ve.prototype,new tt)}}(),de=function(We){function Ue(){return null!==We&&We.apply(this,arguments)||this}return Ye(Ue,We),Ue.formats=function(Ve,tt){},Ue.prototype.format=function(Ve,tt){We.prototype.formatAt.call(this,0,this.length(),Ve,tt)},Ue.prototype.formatAt=function(Ve,tt,at,Vt){0===Ve&&tt===this.length()?this.format(at,Vt):We.prototype.formatAt.call(this,Ve,tt,at,Vt)},Ue.prototype.formats=function(){return this.statics.formats(this.domNode,this.scroll)},Ue}(Q);const Ae=de;var pe=function(){var We=function(Ve,tt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Vt){at.__proto__=Vt}||function(at,Vt){for(var qe in Vt)Object.prototype.hasOwnProperty.call(Vt,qe)&&(at[qe]=Vt[qe])})(Ve,tt)};return function(Ue,Ve){if("function"!=typeof Ve&&null!==Ve)throw new TypeError("Class extends value "+String(Ve)+" is not a constructor or null");function tt(){this.constructor=Ue}We(Ue,Ve),Ue.prototype=null===Ve?Object.create(Ve):(tt.prototype=Ve.prototype,new tt)}}(),Ee={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Ke=function(We){function Ue(Ve,tt){var at=We.call(this,null,tt)||this;return at.registry=Ve,at.scroll=at,at.build(),at.observer=new MutationObserver(function(Vt){at.update(Vt)}),at.observer.observe(at.domNode,Ee),at.attach(),at}return pe(Ue,We),Ue.prototype.create=function(Ve,tt){return this.registry.create(this,Ve,tt)},Ue.prototype.find=function(Ve,tt){void 0===tt&&(tt=!1);var at=this.registry.find(Ve,tt);return at?at.scroll===this?at:tt?this.find(at.scroll.domNode.parentNode,!0):null:null},Ue.prototype.query=function(Ve,tt){return void 0===tt&&(tt=k.ANY),this.registry.query(Ve,tt)},Ue.prototype.register=function(){for(var Ve,tt=[],at=0;at<arguments.length;at++)tt[at]=arguments[at];return(Ve=this.registry).register.apply(Ve,tt)},Ue.prototype.build=function(){null!=this.scroll&&We.prototype.build.call(this)},Ue.prototype.detach=function(){We.prototype.detach.call(this),this.observer.disconnect()},Ue.prototype.deleteAt=function(Ve,tt){this.update(),0===Ve&&tt===this.length()?this.children.forEach(function(at){at.remove()}):We.prototype.deleteAt.call(this,Ve,tt)},Ue.prototype.formatAt=function(Ve,tt,at,Vt){this.update(),We.prototype.formatAt.call(this,Ve,tt,at,Vt)},Ue.prototype.insertAt=function(Ve,tt,at){this.update(),We.prototype.insertAt.call(this,Ve,tt,at)},Ue.prototype.optimize=function(Ve,tt){var at=this;void 0===Ve&&(Ve=[]),void 0===tt&&(tt={}),We.prototype.optimize.call(this,tt);for(var Vt=tt.mutationsMap||new WeakMap,qe=Array.from(this.observer.takeRecords());qe.length>0;)Ve.push(qe.pop());for(var Nt=function Te(je,Ne){void 0===Ne&&(Ne=!0),null!=je&&je!==at&&null!=je.domNode.parentNode&&(Vt.has(je.domNode)||Vt.set(je.domNode,[]),Ne&&Te(je.parent))},et=function Te(je){Vt.has(je.domNode)&&(je instanceof M&&je.children.forEach(Te),Vt.delete(je.domNode),je.optimize(tt))},ue=Ve,me=0;ue.length>0;me+=1){if(me>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(ue.forEach(function(Te){var je=at.find(Te.target,!0);null!=je&&(je.domNode===Te.target&&("childList"===Te.type?(Nt(at.find(Te.previousSibling,!1)),Array.from(Te.addedNodes).forEach(function(Ne){var lt=at.find(Ne,!1);Nt(lt,!1),lt instanceof M&&lt.children.forEach(function(Qe){Nt(Qe,!1)})})):"attributes"===Te.type&&Nt(je.prev)),Nt(je))}),this.children.forEach(et),qe=(ue=Array.from(this.observer.takeRecords())).slice();qe.length>0;)Ve.push(qe.pop())}},Ue.prototype.update=function(Ve,tt){var at=this;void 0===tt&&(tt={}),Ve=Ve||this.observer.takeRecords();var Vt=new WeakMap;Ve.map(function(qe){var Nt=at.find(qe.target,!0);return null==Nt?null:Vt.has(Nt.domNode)?(Vt.get(Nt.domNode).push(qe),null):(Vt.set(Nt.domNode,[qe]),Nt)}).forEach(function(qe){null!=qe&&qe!==at&&Vt.has(qe.domNode)&&qe.update(Vt.get(qe.domNode)||[],tt)}),tt.mutationsMap=Vt,Vt.has(this.domNode)&&We.prototype.update.call(this,Vt.get(this.domNode),tt),this.optimize(Ve,tt)},Ue.blotName="scroll",Ue.defaultChild=ke,Ue.allowedChildren=[ke,R],Ue.scope=k.BLOCK_BLOT,Ue.tagName="DIV",Ue}(M);const Be=Ke;var q=function(){var We=function(Ve,tt){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Vt){at.__proto__=Vt}||function(at,Vt){for(var qe in Vt)Object.prototype.hasOwnProperty.call(Vt,qe)&&(at[qe]=Vt[qe])})(Ve,tt)};return function(Ue,Ve){if("function"!=typeof Ve&&null!==Ve)throw new TypeError("Class extends value "+String(Ve)+" is not a constructor or null");function tt(){this.constructor=Ue}We(Ue,Ve),Ue.prototype=null===Ve?Object.create(Ve):(tt.prototype=Ve.prototype,new tt)}}();const fe=function(We){function Ue(Ve,tt){var at=We.call(this,Ve,tt)||this;return at.text=at.statics.value(at.domNode),at}return q(Ue,We),Ue.create=function(Ve){return document.createTextNode(Ve)},Ue.value=function(Ve){return Ve.data},Ue.prototype.deleteAt=function(Ve,tt){this.domNode.data=this.text=this.text.slice(0,Ve)+this.text.slice(Ve+tt)},Ue.prototype.index=function(Ve,tt){return this.domNode===Ve?tt:-1},Ue.prototype.insertAt=function(Ve,tt,at){null==at?(this.text=this.text.slice(0,Ve)+tt+this.text.slice(Ve),this.domNode.data=this.text):We.prototype.insertAt.call(this,Ve,tt,at)},Ue.prototype.length=function(){return this.text.length},Ue.prototype.optimize=function(Ve){We.prototype.optimize.call(this,Ve),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof Ue&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},Ue.prototype.position=function(Ve,tt){return void 0===tt&&(tt=!1),[this.domNode,Ve]},Ue.prototype.split=function(Ve,tt){if(void 0===tt&&(tt=!1),!tt){if(0===Ve)return this;if(Ve===this.length())return this.next}var at=this.scroll.create(this.domNode.splitText(Ve));return this.parent.insertBefore(at,this.next||void 0),this.text=this.statics.value(this.domNode),at},Ue.prototype.update=function(Ve,tt){var at=this;Ve.some(function(Vt){return"characterData"===Vt.type&&Vt.target===at.domNode})&&(this.text=this.statics.value(this.domNode))},Ue.prototype.value=function(){return this.text},Ue.blotName="text",Ue.scope=k.INLINE_BLOT,Ue}(Q)},3034:function(m,T){"use strict";var C=Object.prototype.hasOwnProperty,e="~";function k(){}function w(b,B,j){this.fn=b,this.context=B,this.once=j||!1}function P(b,B,j,F,X){if("function"!=typeof j)throw new TypeError("The listener must be a function");var U=new w(j,F||b,X),Z=e?e+B:B;return b._events[Z]?b._events[Z].fn?b._events[Z]=[b._events[Z],U]:b._events[Z].push(U):(b._events[Z]=U,b._eventsCount++),b}function v(b,B){0===--b._eventsCount?b._events=new k:delete b._events[B]}function x(){this._events=new k,this._eventsCount=0}Object.create&&(k.prototype=Object.create(null),(new k).__proto__||(e=!1)),x.prototype.eventNames=function(){var j,F,B=[];if(0===this._eventsCount)return B;for(F in j=this._events)C.call(j,F)&&B.push(e?F.slice(1):F);return Object.getOwnPropertySymbols?B.concat(Object.getOwnPropertySymbols(j)):B},x.prototype.listeners=function(B){var F=this._events[e?e+B:B];if(!F)return[];if(F.fn)return[F.fn];for(var X=0,U=F.length,Z=new Array(U);X<U;X++)Z[X]=F[X].fn;return Z},x.prototype.listenerCount=function(B){var F=this._events[e?e+B:B];return F?F.fn?1:F.length:0},x.prototype.emit=function(B,j,F,X,U,Z){var A=e?e+B:B;if(!this._events[A])return!1;var J,R,M=this._events[A],H=arguments.length;if(M.fn){switch(M.once&&this.removeListener(B,M.fn,void 0,!0),H){case 1:return M.fn.call(M.context),!0;case 2:return M.fn.call(M.context,j),!0;case 3:return M.fn.call(M.context,j,F),!0;case 4:return M.fn.call(M.context,j,F,X),!0;case 5:return M.fn.call(M.context,j,F,X,U),!0;case 6:return M.fn.call(M.context,j,F,X,U,Z),!0}for(R=1,J=new Array(H-1);R<H;R++)J[R-1]=arguments[R];M.fn.apply(M.context,J)}else{var G,L=M.length;for(R=0;R<L;R++)switch(M[R].once&&this.removeListener(B,M[R].fn,void 0,!0),H){case 1:M[R].fn.call(M[R].context);break;case 2:M[R].fn.call(M[R].context,j);break;case 3:M[R].fn.call(M[R].context,j,F);break;case 4:M[R].fn.call(M[R].context,j,F,X);break;default:if(!J)for(G=1,J=new Array(H-1);G<H;G++)J[G-1]=arguments[G];M[R].fn.apply(M[R].context,J)}}return!0},x.prototype.on=function(B,j,F){return P(this,B,j,F,!1)},x.prototype.once=function(B,j,F){return P(this,B,j,F,!0)},x.prototype.removeListener=function(B,j,F,X){var U=e?e+B:B;if(!this._events[U])return this;if(!j)return v(this,U),this;var Z=this._events[U];if(Z.fn)Z.fn===j&&(!X||Z.once)&&(!F||Z.context===F)&&v(this,U);else{for(var A=0,M=[],H=Z.length;A<H;A++)(Z[A].fn!==j||X&&!Z[A].once||F&&Z[A].context!==F)&&M.push(Z[A]);M.length?this._events[U]=1===M.length?M[0]:M:v(this,U)}return this},x.prototype.removeAllListeners=function(B){var j;return B?this._events[j=e?e+B:B]&&v(this,j):(this._events=new k,this._eventsCount=0),this},x.prototype.off=x.prototype.removeListener,x.prototype.addListener=x.prototype.on,x.prefixed=e,x.EventEmitter=x,typeof m<"u"&&(m.exports=x)},1456:m=>{var T=-1;function k(R,L,G,Q){if(R===L)return R?[[0,R]]:[];if(null!=G){var z=function H(R,L,G){var Q="number"==typeof G?{index:G,length:0}:G.oldRange,z="number"==typeof G?null:G.newRange,K=R.length,ee=L.length;if(0===Q.length&&(null===z||0===z.length)){var re=Q.index,be=R.slice(0,re),ce=R.slice(re),Re=z?z.index:null,Se=re+ee-K;if(!(null!==Re&&Re!==Se||Se<0||Se>ee)){var De=L.slice(0,Se);if((Pe=L.slice(Se))===ce){var Ie=Math.min(re,Se);if((W=be.slice(0,Ie))===(ie=De.slice(0,Ie)))return M(W,be.slice(Ie),De.slice(Ie),ce)}}if(null===Re||Re===re){var ye=re,Pe=(De=L.slice(0,ye),L.slice(ye));if(De===be){var Me=Math.min(K-ye,ee-ye);if((_e=ce.slice(ce.length-Me))===(ke=Pe.slice(Pe.length-Me)))return M(be,ce.slice(0,ce.length-Me),Pe.slice(0,Pe.length-Me),_e)}}}if(Q.length>0&&z&&0===z.length){var W=R.slice(0,Q.index),_e=R.slice(Q.index+Q.length);if(!(ee<(Ie=W.length)+(Me=_e.length))){var ie=L.slice(0,Ie),ke=L.slice(ee-Me);if(W===ie&&_e===ke)return M(W,R.slice(Ie,K-Me),L.slice(Ie,ee-Me),_e)}}return null}(R,L,G);if(z)return z}var K=x(R,L),ee=R.substring(0,K);K=b(R=R.substring(K),L=L.substring(K));var re=R.substring(R.length-K),be=function w(R,L){var G;if(!R)return[[1,L]];if(!L)return[[T,R]];var Q=R.length>L.length?R:L,z=R.length>L.length?L:R,K=Q.indexOf(z);if(-1!==K)return G=[[1,Q.substring(0,K)],[0,z],[1,Q.substring(K+z.length)]],R.length>L.length&&(G[0][0]=G[2][0]=T),G;if(1===z.length)return[[T,R],[1,L]];var ee=function B(R,L){var G=R.length>L.length?R:L,Q=R.length>L.length?L:R;if(G.length<4||2*Q.length<G.length)return null;function z(Pe,Ie,W){for(var ye,Me,_e,ke,ie=Pe.substring(W,W+Math.floor(Pe.length/4)),he=-1,Ce="";-1!==(he=Ie.indexOf(ie,he+1));){var Ye=x(Pe.substring(W),Ie.substring(he)),de=b(Pe.substring(0,W),Ie.substring(0,he));Ce.length<de+Ye&&(Ce=Ie.substring(he-de,he)+Ie.substring(he,he+Ye),ye=Pe.substring(0,W-de),Me=Pe.substring(W+Ye),_e=Ie.substring(0,he-de),ke=Ie.substring(he+Ye))}return 2*Ce.length>=Pe.length?[ye,Me,_e,ke,Ce]:null}var re,be,ce,Re,Se,K=z(G,Q,Math.ceil(G.length/4)),ee=z(G,Q,Math.ceil(G.length/2));return K||ee?(re=ee?K&&K[4].length>ee[4].length?K:ee:K,R.length>L.length?(be=re[0],ce=re[1],Re=re[2],Se=re[3]):(Re=re[0],Se=re[1],be=re[2],ce=re[3]),[be,ce,Re,Se,re[4]]):null}(R,L);if(ee){var be=ee[1],Re=ee[3],Se=ee[4],De=k(ee[0],ee[2]),Pe=k(be,Re);return De.concat([[0,Se]],Pe)}return function P(R,L){for(var G=R.length,Q=L.length,z=Math.ceil((G+Q)/2),K=z,ee=2*z,re=new Array(ee),be=new Array(ee),ce=0;ce<ee;ce++)re[ce]=-1,be[ce]=-1;re[K+1]=0,be[K+1]=0;for(var Re=G-Q,Se=Re%2!=0,De=0,Pe=0,Ie=0,W=0,ie=0;ie<z;ie++){for(var he=-ie+De;he<=ie-Pe;he+=2){for(var Ce=K+he,Me=(ye=he===-ie||he!==ie&&re[Ce-1]<re[Ce+1]?re[Ce+1]:re[Ce-1]+1)-he;ye<G&&Me<Q&&R.charAt(ye)===L.charAt(Me);)ye++,Me++;if(re[Ce]=ye,ye>G)Pe+=2;else if(Me>Q)De+=2;else if(Se&&(_e=K+Re-he)>=0&&_e<ee&&-1!==be[_e]&&ye>=(ke=G-be[_e]))return v(R,L,ye,Me)}for(var Ye=-ie+Ie;Ye<=ie-W;Ye+=2){for(var ke,_e=K+Ye,de=(ke=Ye===-ie||Ye!==ie&&be[_e-1]<be[_e+1]?be[_e+1]:be[_e-1]+1)-Ye;ke<G&&de<Q&&R.charAt(G-ke-1)===L.charAt(Q-de-1);)ke++,de++;if(be[_e]=ke,ke>G)W+=2;else if(de>Q)Ie+=2;else if(!Se){var ye;if((Ce=K+Re-Ye)>=0&&Ce<ee&&-1!==re[Ce]&&(Me=K+(ye=re[Ce])-Ce,ye>=(ke=G-ke)))return v(R,L,ye,Me)}}}return[[T,R],[1,L]]}(R,L)}(R=R.substring(0,R.length-K),L=L.substring(0,L.length-K));return ee&&be.unshift([0,ee]),re&&be.push([0,re]),j(be,Q),be}function v(R,L,G,Q){var z=R.substring(0,G),K=L.substring(0,Q),ee=R.substring(G),re=L.substring(Q),be=k(z,K),ce=k(ee,re);return be.concat(ce)}function x(R,L){if(!R||!L||R.charAt(0)!==L.charAt(0))return 0;for(var G=0,Q=Math.min(R.length,L.length),z=Q,K=0;G<z;)R.substring(K,z)==L.substring(K,z)?K=G=z:Q=z,z=Math.floor((Q-G)/2+G);return F(R.charCodeAt(z-1))&&z--,z}function b(R,L){if(!R||!L||R.slice(-1)!==L.slice(-1))return 0;for(var G=0,Q=Math.min(R.length,L.length),z=Q,K=0;G<z;)R.substring(R.length-z,R.length-K)==L.substring(L.length-z,L.length-K)?K=G=z:Q=z,z=Math.floor((Q-G)/2+G);return X(R.charCodeAt(R.length-z))&&z--,z}function j(R,L){R.push([0,""]);for(var re,G=0,Q=0,z=0,K="",ee="";G<R.length;)if(G<R.length-1&&!R[G][1])R.splice(G,1);else switch(R[G][0]){case 1:z++,ee+=R[G][1],G++;break;case T:Q++,K+=R[G][1],G++;break;case 0:var be=G-z-Q-1;if(L){if(be>=0&&Z(R[be][1])){var ce=R[be][1].slice(-1);if(R[be][1]=R[be][1].slice(0,-1),K=ce+K,ee=ce+ee,!R[be][1]){R.splice(be,1),G--;var Re=be-1;R[Re]&&1===R[Re][0]&&(z++,ee=R[Re][1]+ee,Re--),R[Re]&&R[Re][0]===T&&(Q++,K=R[Re][1]+K,Re--),be=Re}}U(R[G][1])&&(ce=R[G][1].charAt(0),R[G][1]=R[G][1].slice(1),K+=ce,ee+=ce)}if(G<R.length-1&&!R[G][1]){R.splice(G,1);break}if(K.length>0||ee.length>0){K.length>0&&ee.length>0&&(0!==(re=x(ee,K))&&(be>=0?R[be][1]+=ee.substring(0,re):(R.splice(0,0,[0,ee.substring(0,re)]),G++),ee=ee.substring(re),K=K.substring(re)),0!==(re=b(ee,K))&&(R[G][1]=ee.substring(ee.length-re)+R[G][1],ee=ee.substring(0,ee.length-re),K=K.substring(0,K.length-re)));var Se=z+Q;0===K.length&&0===ee.length?(R.splice(G-Se,Se),G-=Se):0===K.length?(R.splice(G-Se,Se,[1,ee]),G=G-Se+1):0===ee.length?(R.splice(G-Se,Se,[T,K]),G=G-Se+1):(R.splice(G-Se,Se,[T,K],[1,ee]),G=G-Se+2)}0!==G&&0===R[G-1][0]?(R[G-1][1]+=R[G][1],R.splice(G,1)):G++,z=0,Q=0,K="",ee=""}""===R[R.length-1][1]&&R.pop();var De=!1;for(G=1;G<R.length-1;)0===R[G-1][0]&&0===R[G+1][0]&&(R[G][1].substring(R[G][1].length-R[G-1][1].length)===R[G-1][1]?(R[G][1]=R[G-1][1]+R[G][1].substring(0,R[G][1].length-R[G-1][1].length),R[G+1][1]=R[G-1][1]+R[G+1][1],R.splice(G-1,1),De=!0):R[G][1].substring(0,R[G+1][1].length)==R[G+1][1]&&(R[G-1][1]+=R[G+1][1],R[G][1]=R[G][1].substring(R[G+1][1].length)+R[G+1][1],R.splice(G+1,1),De=!0)),G++;De&&j(R,L)}function F(R){return R>=55296&&R<=56319}function X(R){return R>=56320&&R<=57343}function U(R){return X(R.charCodeAt(0))}function Z(R){return F(R.charCodeAt(R.length-1))}function M(R,L,G,Q){return Z(R)||U(Q)?null:function A(R){for(var L=[],G=0;G<R.length;G++)R[G][1].length>0&&L.push(R[G]);return L}([[0,R],[T,L],[1,G],[0,Q]])}function J(R,L,G){return k(R,L,G,!0)}J.INSERT=1,J.DELETE=T,J.EQUAL=0,m.exports=J},8805:(m,T,C)=>{m=C.nmd(m);var k="__lodash_hash_undefined__",w=9007199254740991,P="[object Arguments]",x="[object Boolean]",b="[object Date]",j="[object Function]",F="[object GeneratorFunction]",X="[object Map]",U="[object Number]",Z="[object Object]",A="[object Promise]",M="[object RegExp]",H="[object Set]",J="[object String]",R="[object Symbol]",L="[object WeakMap]",G="[object ArrayBuffer]",Q="[object DataView]",z="[object Float32Array]",K="[object Float64Array]",ee="[object Int8Array]",re="[object Int16Array]",be="[object Int32Array]",ce="[object Uint8Array]",Re="[object Uint8ClampedArray]",Se="[object Uint16Array]",De="[object Uint32Array]",Ie=/\w*$/,W=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,he={};he[P]=he["[object Array]"]=he[G]=he[Q]=he[x]=he[b]=he[z]=he[K]=he[ee]=he[re]=he[be]=he[X]=he[U]=he[Z]=he[M]=he[H]=he[J]=he[R]=he[ce]=he[Re]=he[Se]=he[De]=!0,he["[object Error]"]=he[j]=he[L]=!1;var ye="object"==typeof self&&self&&self.Object===Object&&self,Me="object"==typeof C.g&&C.g&&C.g.Object===Object&&C.g||ye||Function("return this")(),_e=T&&!T.nodeType&&T,ke=_e&&m&&!m.nodeType&&m,Ye=ke&&ke.exports===_e;function de(ut,Yt){return ut.set(Yt[0],Yt[1]),ut}function Ae(ut,Yt){return ut.add(Yt),ut}function le(ut,Yt,Dt,mn){var Yn=-1,xi=ut?ut.length:0;for(mn&&xi&&(Dt=ut[++Yn]);++Yn<xi;)Dt=Yt(Dt,ut[Yn],Yn,ut);return Dt}function q(ut){var Yt=!1;if(null!=ut&&"function"!=typeof ut.toString)try{Yt=!!(ut+"")}catch{}return Yt}function Oe(ut){var Yt=-1,Dt=Array(ut.size);return ut.forEach(function(mn,Yn){Dt[++Yt]=[Yn,mn]}),Dt}function fe(ut,Yt){return function(Dt){return ut(Yt(Dt))}}function We(ut){var Yt=-1,Dt=Array(ut.size);return ut.forEach(function(mn){Dt[++Yt]=mn}),Dt}var ut,Ue=Array.prototype,Ve=Function.prototype,tt=Object.prototype,at=Me["__core-js_shared__"],Vt=(ut=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||""))?"Symbol(src)_1."+ut:"",qe=Ve.toString,Nt=tt.hasOwnProperty,et=tt.toString,ue=RegExp("^"+qe.call(Nt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=Ye?Me.Buffer:void 0,Te=Me.Symbol,je=Me.Uint8Array,Ne=fe(Object.getPrototypeOf,Object),lt=Object.create,Qe=tt.propertyIsEnumerable,Ct=Ue.splice,yt=Object.getOwnPropertySymbols,Gt=me?me.isBuffer:void 0,ft=fe(Object.keys,Object),nn=Xi(Me,"DataView"),rn=Xi(Me,"Map"),Mn=Xi(Me,"Promise"),On=Xi(Me,"Set"),ji=Xi(Me,"WeakMap"),Mi=Xi(Object,"create"),Vo=qi(nn),Co=qi(rn),ti=qi(Mn),Qn=qi(On),ei=qi(ji),Rt=Te?Te.prototype:void 0,Jt=Rt?Rt.valueOf:void 0;function Pn(ut){var Yt=-1,Dt=ut?ut.length:0;for(this.clear();++Yt<Dt;){var mn=ut[Yt];this.set(mn[0],mn[1])}}function To(ut){var Yt=-1,Dt=ut?ut.length:0;for(this.clear();++Yt<Dt;){var mn=ut[Yt];this.set(mn[0],mn[1])}}function qo(ut){var Yt=-1,Dt=ut?ut.length:0;for(this.clear();++Yt<Dt;){var mn=ut[Yt];this.set(mn[0],mn[1])}}function Ni(ut){this.__data__=new To(ut)}function jt(ut,Yt,Dt){var mn=ut[Yt];(!Nt.call(ut,Yt)||!Go(mn,Dt)||void 0===Dt&&!(Yt in ut))&&(ut[Yt]=Dt)}function Ot(ut,Yt){for(var Dt=ut.length;Dt--;)if(Go(ut[Dt][0],Yt))return Dt;return-1}function ni(ut,Yt,Dt,mn,Yn,xi,Ki){var Ro;if(mn&&(Ro=xi?mn(ut,Yn,xi,Ki):mn(ut)),void 0!==Ro)return Ro;if(!en(ut))return ut;var yo=Rs(ut);if(yo){if(Ro=function Vs(ut){var Yt=ut.length,Dt=ut.constructor(Yt);return Yt&&"string"==typeof ut[0]&&Nt.call(ut,"index")&&(Dt.index=ut.index,Dt.input=ut.input),Dt}(ut),!Yt)return function gs(ut,Yt){var Dt=-1,mn=ut.length;for(Yt||(Yt=Array(mn));++Dt<mn;)Yt[Dt]=ut[Dt];return Yt}(ut,Ro)}else{var ko=Fo(ut),Ho=ko==j||ko==F;if(Bs(ut))return function St(ut,Yt){if(Yt)return ut.slice();var Dt=new ut.constructor(ut.length);return ut.copy(Dt),Dt}(ut,Yt);if(ko==Z||ko==P||Ho&&!xi){if(q(ut))return xi?ut:{};if(Ro=function fs(ut){return"function"!=typeof ut.constructor||fi(ut)?{}:function Bi(ut){return en(ut)?lt(ut):{}}(Ne(ut))}(Ho?{}:ut),!Yt)return function Bn(ut,Yt){return xn(ut,Oo(ut),Yt)}(ut,function Tn(ut,Yt){return ut&&xn(Yt,Zn(Yt),ut)}(Ro,ut))}else{if(!he[ko])return xi?ut:{};Ro=function zt(ut,Yt,Dt,mn){var Yn=ut.constructor;switch(Yt){case G:return Qt(ut);case x:case b:return new Yn(+ut);case Q:return function jn(ut,Yt){var Dt=Yt?Qt(ut.buffer):ut.buffer;return new ut.constructor(Dt,ut.byteOffset,ut.byteLength)}(ut,mn);case z:case K:case ee:case re:case be:case ce:case Re:case Se:case De:return function $o(ut,Yt){var Dt=Yt?Qt(ut.buffer):ut.buffer;return new ut.constructor(Dt,ut.byteOffset,ut.length)}(ut,mn);case X:return function ai(ut,Yt,Dt){return le(Yt?Dt(Oe(ut),!0):Oe(ut),de,new ut.constructor)}(ut,mn,Dt);case U:case J:return new Yn(ut);case M:return function $i(ut){var Yt=new ut.constructor(ut.source,Ie.exec(ut));return Yt.lastIndex=ut.lastIndex,Yt}(ut);case H:return function zi(ut,Yt,Dt){return le(Yt?Dt(We(ut),!0):We(ut),Ae,new ut.constructor)}(ut,mn,Dt);case R:return function _o(ut){return Jt?Object(Jt.call(ut)):{}}(ut)}}(ut,ko,ni,Yt)}}Ki||(Ki=new Ni);var ms=Ki.get(ut);if(ms)return ms;if(Ki.set(ut,Ro),!yo)var ds=Dt?function Gn(ut){return function Zi(ut,Yt,Dt){var mn=Yt(ut);return Rs(ut)?mn:function Ee(ut,Yt){for(var Dt=-1,mn=Yt.length,Yn=ut.length;++Dt<mn;)ut[Yn+Dt]=Yt[Dt];return ut}(mn,Dt(ut))}(ut,Zn,Oo)}(ut):Zn(ut);return function pe(ut,Yt){for(var Dt=-1,mn=ut?ut.length:0;++Dt<mn&&!1!==Yt(ut[Dt],Dt,ut););}(ds||ut,function(Bo,ws){ds&&(Bo=ut[ws=Bo]),jt(Ro,ws,ni(Bo,Yt,Dt,mn,ws,ut,Ki))}),Ro}function Qt(ut){var Yt=new ut.constructor(ut.byteLength);return new je(Yt).set(new je(ut)),Yt}function xn(ut,Yt,Dt,mn){Dt||(Dt={});for(var Yn=-1,xi=Yt.length;++Yn<xi;){var Ki=Yt[Yn],Ro=mn?mn(Dt[Ki],ut[Ki],Ki,Dt,ut):void 0;jt(Dt,Ki,void 0===Ro?ut[Ki]:Ro)}return Dt}function Ri(ut,Yt){var Dt=ut.__data__;return function pn(ut){var Yt=typeof ut;return"string"==Yt||"number"==Yt||"symbol"==Yt||"boolean"==Yt?"__proto__"!==ut:null===ut}(Yt)?Dt["string"==typeof Yt?"string":"hash"]:Dt.map}function Xi(ut,Yt){var Dt=function Be(ut,Yt){return ut?.[Yt]}(ut,Yt);return function mo(ut){return!(!en(ut)||function An(ut){return!!Vt&&Vt in ut}(ut))&&(Ss(ut)||q(ut)?ue:W).test(qi(ut))}(Dt)?Dt:void 0}Pn.prototype.clear=function Jn(){this.__data__=Mi?Mi(null):{}},Pn.prototype.delete=function Ii(ut){return this.has(ut)&&delete this.__data__[ut]},Pn.prototype.get=function vo(ut){var Yt=this.__data__;if(Mi){var Dt=Yt[ut];return Dt===k?void 0:Dt}return Nt.call(Yt,ut)?Yt[ut]:void 0},Pn.prototype.has=function pi(ut){var Yt=this.__data__;return Mi?void 0!==Yt[ut]:Nt.call(Yt,ut)},Pn.prototype.set=function Wo(ut,Yt){return this.__data__[ut]=Mi&&void 0===Yt?k:Yt,this},To.prototype.clear=function hs(){this.__data__=[]},To.prototype.delete=function Ps(ut){var Yt=this.__data__,Dt=Ot(Yt,ut);return!(Dt<0||(Dt==Yt.length-1?Yt.pop():Ct.call(Yt,Dt,1),0))},To.prototype.get=function ls(ut){var Yt=this.__data__,Dt=Ot(Yt,ut);return Dt<0?void 0:Yt[Dt][1]},To.prototype.has=function Hs(ut){return Ot(this.__data__,ut)>-1},To.prototype.set=function ss(ut,Yt){var Dt=this.__data__,mn=Ot(Dt,ut);return mn<0?Dt.push([ut,Yt]):Dt[mn][1]=Yt,this},qo.prototype.clear=function cs(){this.__data__={hash:new Pn,map:new(rn||To),string:new Pn}},qo.prototype.delete=function bs(ut){return Ri(this,ut).delete(ut)},qo.prototype.get=function Fn(ut){return Ri(this,ut).get(ut)},qo.prototype.has=function li(ut){return Ri(this,ut).has(ut)},qo.prototype.set=function si(ut,Yt){return Ri(this,ut).set(ut,Yt),this},Ni.prototype.clear=function Yi(){this.__data__=new To},Ni.prototype.delete=function Sn(ut){return this.__data__.delete(ut)},Ni.prototype.get=function ri(ut){return this.__data__.get(ut)},Ni.prototype.has=function It(ut){return this.__data__.has(ut)},Ni.prototype.set=function Pt(ut,Yt){var Dt=this.__data__;if(Dt instanceof To){var mn=Dt.__data__;if(!rn||mn.length<199)return mn.push([ut,Yt]),this;Dt=this.__data__=new qo(mn)}return Dt.set(ut,Yt),this};var Oo=yt?fe(yt,Object):function gi(){return[]},Fo=function ro(ut){return et.call(ut)};function zn(ut,Yt){return!!(Yt=Yt??w)&&("number"==typeof ut||ie.test(ut))&&ut>-1&&ut%1==0&&ut<Yt}function fi(ut){var Yt=ut&&ut.constructor;return ut===("function"==typeof Yt&&Yt.prototype||tt)}function qi(ut){if(null!=ut){try{return qe.call(ut)}catch{}try{return ut+""}catch{}}return""}function Go(ut,Yt){return ut===Yt||ut!=ut&&Yt!=Yt}(nn&&Fo(new nn(new ArrayBuffer(1)))!=Q||rn&&Fo(new rn)!=X||Mn&&Fo(Mn.resolve())!=A||On&&Fo(new On)!=H||ji&&Fo(new ji)!=L)&&(Fo=function(ut){var Yt=et.call(ut),Dt=Yt==Z?ut.constructor:void 0,mn=Dt?qi(Dt):void 0;if(mn)switch(mn){case Vo:return Q;case Co:return X;case ti:return A;case Qn:return H;case ei:return L}return Yt});var Rs=Array.isArray;function ks(ut){return null!=ut&&function Et(ut){return"number"==typeof ut&&ut>-1&&ut%1==0&&ut<=w}(ut.length)&&!Ss(ut)}var Bs=Gt||function mi(){return!1};function Ss(ut){var Yt=en(ut)?et.call(ut):"";return Yt==j||Yt==F}function en(ut){var Yt=typeof ut;return!!ut&&("object"==Yt||"function"==Yt)}function Zn(ut){return ks(ut)?function dn(ut,Yt){var Dt=Rs(ut)||function xs(ut){return function _s(ut){return function Dn(ut){return!!ut&&"object"==typeof ut}(ut)&&ks(ut)}(ut)&&Nt.call(ut,"callee")&&(!Qe.call(ut,"callee")||et.call(ut)==P)}(ut)?function Ke(ut,Yt){for(var Dt=-1,mn=Array(ut);++Dt<ut;)mn[Dt]=Yt(Dt);return mn}(ut.length,String):[],mn=Dt.length,Yn=!!mn;for(var xi in ut)(Yt||Nt.call(ut,xi))&&(!Yn||"length"!=xi&&!zn(xi,mn))&&Dt.push(xi);return Dt}(ut):function ho(ut){if(!fi(ut))return ft(ut);var Yt=[];for(var Dt in Object(ut))Nt.call(ut,Dt)&&"constructor"!=Dt&&Yt.push(Dt);return Yt}(ut)}m.exports=function So(ut){return ni(ut,!0,!0)}},2722:(m,T,C)=>{m=C.nmd(m);var k="__lodash_hash_undefined__",v=9007199254740991,x="[object Arguments]",b="[object Array]",j="[object Boolean]",F="[object Date]",X="[object Error]",U="[object Function]",A="[object Map]",M="[object Number]",J="[object Object]",R="[object Promise]",G="[object RegExp]",Q="[object Set]",z="[object String]",re="[object WeakMap]",be="[object ArrayBuffer]",ce="[object DataView]",Me=/^\[object .+?Constructor\]$/,_e=/^(?:0|[1-9]\d*)$/,ke={};ke["[object Float32Array]"]=ke["[object Float64Array]"]=ke["[object Int8Array]"]=ke["[object Int16Array]"]=ke["[object Int32Array]"]=ke["[object Uint8Array]"]=ke["[object Uint8ClampedArray]"]=ke["[object Uint16Array]"]=ke["[object Uint32Array]"]=!0,ke[x]=ke[b]=ke[be]=ke[j]=ke[ce]=ke[F]=ke[X]=ke[U]=ke[A]=ke[M]=ke[J]=ke[G]=ke[Q]=ke[z]=ke[re]=!1;var Ye="object"==typeof C.g&&C.g&&C.g.Object===Object&&C.g,de="object"==typeof self&&self&&self.Object===Object&&self,Ae=Ye||de||Function("return this")(),pe=T&&!T.nodeType&&T,Ee=pe&&m&&!m.nodeType&&m,le=Ee&&Ee.exports===pe,Ke=le&&Ye.process,Be=function(){try{return Ke&&Ke.binding&&Ke.binding("util")}catch{}}(),q=Be&&Be.isTypedArray;function We(ut,Yt){for(var Dt=-1,mn=null==ut?0:ut.length;++Dt<mn;)if(Yt(ut[Dt],Dt,ut))return!0;return!1}function tt(ut,Yt){return ut.has(Yt)}function Vt(ut){var Yt=-1,Dt=Array(ut.size);return ut.forEach(function(mn,Yn){Dt[++Yt]=[Yn,mn]}),Dt}function Nt(ut){var Yt=-1,Dt=Array(ut.size);return ut.forEach(function(mn){Dt[++Yt]=mn}),Dt}var ut,et=Array.prototype,me=Object.prototype,Te=Ae["__core-js_shared__"],je=Function.prototype.toString,Ne=me.hasOwnProperty,lt=(ut=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+ut:"",Qe=me.toString,Ct=RegExp("^"+je.call(Ne).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=le?Ae.Buffer:void 0,Gt=Ae.Symbol,ft=Ae.Uint8Array,nn=me.propertyIsEnumerable,rn=et.splice,Mn=Gt?Gt.toStringTag:void 0,On=Object.getOwnPropertySymbols,ji=yt?yt.isBuffer:void 0,Mi=function qe(ut,Yt){return function(Dt){return ut(Yt(Dt))}}(Object.keys,Object),Vo=Oo(Ae,"DataView"),Co=Oo(Ae,"Map"),ti=Oo(Ae,"Promise"),Qn=Oo(Ae,"Set"),ei=Oo(Ae,"WeakMap"),Rt=Oo(Object,"create"),Jt=qi(Vo),Pn=qi(Co),Jn=qi(ti),Ii=qi(Qn),vo=qi(ei),pi=Gt?Gt.prototype:void 0,Wo=pi?pi.valueOf:void 0;function To(ut){var Yt=-1,Dt=null==ut?0:ut.length;for(this.clear();++Yt<Dt;){var mn=ut[Yt];this.set(mn[0],mn[1])}}function qo(ut){var Yt=-1,Dt=null==ut?0:ut.length;for(this.clear();++Yt<Dt;){var mn=ut[Yt];this.set(mn[0],mn[1])}}function Ni(ut){var Yt=-1,Dt=null==ut?0:ut.length;for(this.clear();++Yt<Dt;){var mn=ut[Yt];this.set(mn[0],mn[1])}}function dn(ut){var Yt=-1,Dt=null==ut?0:ut.length;for(this.__data__=new Ni;++Yt<Dt;)this.add(ut[Yt])}function Tn(ut){var Yt=this.__data__=new qo(ut);this.size=Yt.size}function St(ut,Yt){for(var Dt=ut.length;Dt--;)if(So(ut[Dt][0],Yt))return Dt;return-1}function jn(ut){return null==ut?void 0===ut?"[object Undefined]":"[object Null]":Mn&&Mn in Object(ut)?function Fo(ut){var Yt=Ne.call(ut,Mn),Dt=ut[Mn];try{ut[Mn]=void 0;var mn=!0}catch{}var Yn=Qe.call(ut);return mn&&(Yt?ut[Mn]=Dt:delete ut[Mn]),Yn}(ut):function fi(ut){return Qe.call(ut)}(ut)}function ai(ut){return en(ut)&&jn(ut)==x}function $i(ut,Yt,Dt,mn,Yn){return ut===Yt||(null==ut||null==Yt||!en(ut)&&!en(Yt)?ut!=ut&&Yt!=Yt:function zi(ut,Yt,Dt,mn,Yn,xi){var Ki=xs(ut),Ro=xs(Yt),yo=Ki?b:fs(ut),ko=Ro?b:fs(Yt),Ho=(yo=yo==x?J:yo)==J,ms=(ko=ko==x?J:ko)==J,ds=yo==ko;if(ds&&ks(ut)){if(!ks(Yt))return!1;Ki=!0,Ho=!1}if(ds&&!Ho)return xi||(xi=new Tn),Ki||Dn(ut)?xn(ut,Yt,Dt,mn,Yn,xi):function Bn(ut,Yt,Dt,mn,Yn,xi,Ki){switch(Dt){case ce:if(ut.byteLength!=Yt.byteLength||ut.byteOffset!=Yt.byteOffset)return!1;ut=ut.buffer,Yt=Yt.buffer;case be:return!(ut.byteLength!=Yt.byteLength||!xi(new ft(ut),new ft(Yt)));case j:case F:case M:return So(+ut,+Yt);case X:return ut.name==Yt.name&&ut.message==Yt.message;case G:case z:return ut==Yt+"";case A:var Ro=Vt;case Q:if(Ro||(Ro=Nt),ut.size!=Yt.size&&!(1&mn))return!1;var ko=Ki.get(ut);if(ko)return ko==Yt;mn|=2,Ki.set(ut,Yt);var Ho=xn(Ro(ut),Ro(Yt),mn,Yn,xi,Ki);return Ki.delete(ut),Ho;case"[object Symbol]":if(Wo)return Wo.call(ut)==Wo.call(Yt)}return!1}(ut,Yt,yo,Dt,mn,Yn,xi);if(!(1&Dt)){var Bo=Ho&&Ne.call(ut,"__wrapped__"),ws=ms&&Ne.call(Yt,"__wrapped__");if(Bo||ws){var Ys=Bo?ut.value():ut,Us=ws?Yt.value():Yt;return xi||(xi=new Tn),Yn(Ys,Us,Dt,mn,xi)}}return!!ds&&(xi||(xi=new Tn),function Gn(ut,Yt,Dt,mn,Yn,xi){var Ki=1&Dt,Ro=Ri(ut),yo=Ro.length;if(yo!=Ri(Yt).length&&!Ki)return!1;for(var ms=yo;ms--;){var ds=Ro[ms];if(!(Ki?ds in Yt:Ne.call(Yt,ds)))return!1}var Bo=xi.get(ut);if(Bo&&xi.get(Yt))return Bo==Yt;var ws=!0;xi.set(ut,Yt),xi.set(Yt,ut);for(var Ys=Ki;++ms<yo;){var Us=ut[ds=Ro[ms]],Qs=Yt[ds];if(mn)var nr=Ki?mn(Qs,Us,ds,Yt,ut,xi):mn(Us,Qs,ds,ut,Yt,xi);if(!(void 0===nr?Us===Qs||Yn(Us,Qs,Dt,mn,xi):nr)){ws=!1;break}Ys||(Ys="constructor"==ds)}if(ws&&!Ys){var gn=ut.constructor,Xt=Yt.constructor;gn!=Xt&&"constructor"in ut&&"constructor"in Yt&&!("function"==typeof gn&&gn instanceof gn&&"function"==typeof Xt&&Xt instanceof Xt)&&(ws=!1)}return xi.delete(ut),xi.delete(Yt),ws}(ut,Yt,Dt,mn,Yn,xi))}(ut,Yt,Dt,mn,$i,Yn))}function xn(ut,Yt,Dt,mn,Yn,xi){var Ki=1&Dt,Ro=ut.length,yo=Yt.length;if(Ro!=yo&&!(Ki&&yo>Ro))return!1;var ko=xi.get(ut);if(ko&&xi.get(Yt))return ko==Yt;var Ho=-1,ms=!0,ds=2&Dt?new dn:void 0;for(xi.set(ut,Yt),xi.set(Yt,ut);++Ho<Ro;){var Bo=ut[Ho],ws=Yt[Ho];if(mn)var Ys=Ki?mn(ws,Bo,Ho,Yt,ut,xi):mn(Bo,ws,Ho,ut,Yt,xi);if(void 0!==Ys){if(Ys)continue;ms=!1;break}if(ds){if(!We(Yt,function(Us,Qs){if(!tt(ds,Qs)&&(Bo===Us||Yn(Bo,Us,Dt,mn,xi)))return ds.push(Qs)})){ms=!1;break}}else if(Bo!==ws&&!Yn(Bo,ws,Dt,mn,xi)){ms=!1;break}}return xi.delete(ut),xi.delete(Yt),ms}function Ri(ut){return function Qt(ut,Yt,Dt){var mn=Yt(ut);return xs(ut)?mn:function fe(ut,Yt){for(var Dt=-1,mn=Yt.length,Yn=ut.length;++Dt<mn;)ut[Yn+Dt]=Yt[Dt];return ut}(mn,Dt(ut))}(ut,Zn,Vs)}function Xi(ut,Yt){var Dt=ut.__data__;return function zn(ut){var Yt=typeof ut;return"string"==Yt||"number"==Yt||"symbol"==Yt||"boolean"==Yt?"__proto__"!==ut:null===ut}(Yt)?Dt["string"==typeof Yt?"string":"hash"]:Dt.map}function Oo(ut,Yt){var Dt=function at(ut,Yt){return ut?.[Yt]}(ut,Yt);return function _o(ut){return!(!Et(ut)||function pn(ut){return!!lt&&lt in ut}(ut))&&(Bs(ut)?Ct:Me).test(qi(ut))}(Dt)?Dt:void 0}To.prototype.clear=function hs(){this.__data__=Rt?Rt(null):{},this.size=0},To.prototype.delete=function Ps(ut){var Yt=this.has(ut)&&delete this.__data__[ut];return this.size-=Yt?1:0,Yt},To.prototype.get=function ls(ut){var Yt=this.__data__;if(Rt){var Dt=Yt[ut];return Dt===k?void 0:Dt}return Ne.call(Yt,ut)?Yt[ut]:void 0},To.prototype.has=function Hs(ut){var Yt=this.__data__;return Rt?void 0!==Yt[ut]:Ne.call(Yt,ut)},To.prototype.set=function ss(ut,Yt){var Dt=this.__data__;return this.size+=this.has(ut)?0:1,Dt[ut]=Rt&&void 0===Yt?k:Yt,this},qo.prototype.clear=function cs(){this.__data__=[],this.size=0},qo.prototype.delete=function bs(ut){var Yt=this.__data__,Dt=St(Yt,ut);return!(Dt<0||(Dt==Yt.length-1?Yt.pop():rn.call(Yt,Dt,1),--this.size,0))},qo.prototype.get=function Fn(ut){var Yt=this.__data__,Dt=St(Yt,ut);return Dt<0?void 0:Yt[Dt][1]},qo.prototype.has=function li(ut){return St(this.__data__,ut)>-1},qo.prototype.set=function si(ut,Yt){var Dt=this.__data__,mn=St(Dt,ut);return mn<0?(++this.size,Dt.push([ut,Yt])):Dt[mn][1]=Yt,this},Ni.prototype.clear=function Yi(){this.size=0,this.__data__={hash:new To,map:new(Co||qo),string:new To}},Ni.prototype.delete=function Sn(ut){var Yt=Xi(this,ut).delete(ut);return this.size-=Yt?1:0,Yt},Ni.prototype.get=function ri(ut){return Xi(this,ut).get(ut)},Ni.prototype.has=function It(ut){return Xi(this,ut).has(ut)},Ni.prototype.set=function Pt(ut,Yt){var Dt=Xi(this,ut),mn=Dt.size;return Dt.set(ut,Yt),this.size+=Dt.size==mn?0:1,this},dn.prototype.add=dn.prototype.push=function jt(ut){return this.__data__.set(ut,k),this},dn.prototype.has=function Ot(ut){return this.__data__.has(ut)},Tn.prototype.clear=function ni(){this.__data__=new qo,this.size=0},Tn.prototype.delete=function Bi(ut){var Yt=this.__data__,Dt=Yt.delete(ut);return this.size=Yt.size,Dt},Tn.prototype.get=function Zi(ut){return this.__data__.get(ut)},Tn.prototype.has=function ro(ut){return this.__data__.has(ut)},Tn.prototype.set=function mo(ut,Yt){var Dt=this.__data__;if(Dt instanceof qo){var mn=Dt.__data__;if(!Co||mn.length<199)return mn.push([ut,Yt]),this.size=++Dt.size,this;Dt=this.__data__=new Ni(mn)}return Dt.set(ut,Yt),this.size=Dt.size,this};var Vs=On?function(ut){return null==ut?[]:(ut=Object(ut),function Oe(ut,Yt){for(var Dt=-1,mn=null==ut?0:ut.length,Yn=0,xi=[];++Dt<mn;){var Ki=ut[Dt];Yt(Ki,Dt,ut)&&(xi[Yn++]=Ki)}return xi}(On(ut),function(Yt){return nn.call(ut,Yt)}))}:function gi(){return[]},fs=jn;function zt(ut,Yt){return!!(Yt=Yt??v)&&("number"==typeof ut||_e.test(ut))&&ut>-1&&ut%1==0&&ut<Yt}function qi(ut){if(null!=ut){try{return je.call(ut)}catch{}try{return ut+""}catch{}}return""}function So(ut,Yt){return ut===Yt||ut!=ut&&Yt!=Yt}(Vo&&fs(new Vo(new ArrayBuffer(1)))!=ce||Co&&fs(new Co)!=A||ti&&fs(ti.resolve())!=R||Qn&&fs(new Qn)!=Q||ei&&fs(new ei)!=re)&&(fs=function(ut){var Yt=jn(ut),Dt=Yt==J?ut.constructor:void 0,mn=Dt?qi(Dt):"";if(mn)switch(mn){case Jt:return ce;case Pn:return A;case Jn:return R;case Ii:return Q;case vo:return re}return Yt});var Go=ai(function(){return arguments}())?ai:function(ut){return en(ut)&&Ne.call(ut,"callee")&&!nn.call(ut,"callee")},xs=Array.isArray,ks=ji||function mi(){return!1};function Bs(ut){if(!Et(ut))return!1;var Yt=jn(ut);return Yt==U||"[object GeneratorFunction]"==Yt||"[object AsyncFunction]"==Yt||"[object Proxy]"==Yt}function Ss(ut){return"number"==typeof ut&&ut>-1&&ut%1==0&&ut<=v}function Et(ut){var Yt=typeof ut;return null!=ut&&("object"==Yt||"function"==Yt)}function en(ut){return null!=ut&&"object"==typeof ut}var Dn=q?function Ve(ut){return function(Yt){return ut(Yt)}}(q):function $o(ut){return en(ut)&&Ss(ut.length)&&!!ke[jn(ut)]};function Zn(ut){return function Rs(ut){return null!=ut&&Ss(ut.length)&&!Bs(ut)}(ut)?function ho(ut,Yt){var Dt=xs(ut),mn=!Dt&&Go(ut),Yn=!Dt&&!mn&&ks(ut),xi=!Dt&&!mn&&!Yn&&Dn(ut),Ki=Dt||mn||Yn||xi,Ro=Ki?function Ue(ut,Yt){for(var Dt=-1,mn=Array(ut);++Dt<ut;)mn[Dt]=Yt(Dt);return mn}(ut.length,String):[],yo=Ro.length;for(var ko in ut)(Yt||Ne.call(ut,ko))&&(!Ki||!("length"==ko||Yn&&("offset"==ko||"parent"==ko)||xi&&("buffer"==ko||"byteLength"==ko||"byteOffset"==ko)||zt(ko,yo)))&&Ro.push(ko);return Ro}(ut):function gs(ut){if(!function An(ut){var Yt=ut&&ut.constructor;return ut===("function"==typeof Yt&&Yt.prototype||me)}(ut))return Mi(ut);var Yt=[];for(var Dt in Object(ut))Ne.call(ut,Dt)&&"constructor"!=Dt&&Yt.push(Dt);return Yt}(ut)}m.exports=function _s(ut,Yt){return $i(ut,Yt)}},732:(m,T,C)=>{m=C.nmd(m);var k="__lodash_hash_undefined__",v=9007199254740991,x="[object Arguments]",U="[object Function]",J="[object Object]",Ce=/^\[object .+?Constructor\]$/,ye=/^(?:0|[1-9]\d*)$/,Me={};Me["[object Float32Array]"]=Me["[object Float64Array]"]=Me["[object Int8Array]"]=Me["[object Int16Array]"]=Me["[object Int32Array]"]=Me["[object Uint8Array]"]=Me["[object Uint8ClampedArray]"]=Me["[object Uint16Array]"]=Me["[object Uint32Array]"]=!0,Me[x]=Me["[object Array]"]=Me["[object ArrayBuffer]"]=Me["[object Boolean]"]=Me["[object DataView]"]=Me["[object Date]"]=Me["[object Error]"]=Me[U]=Me["[object Map]"]=Me["[object Number]"]=Me[J]=Me["[object RegExp]"]=Me["[object Set]"]=Me["[object String]"]=Me["[object WeakMap]"]=!1;var Dt,_e="object"==typeof C.g&&C.g&&C.g.Object===Object&&C.g,ke="object"==typeof self&&self&&self.Object===Object&&self,Ye=_e||ke||Function("return this")(),de=T&&!T.nodeType&&T,Ae=de&&m&&!m.nodeType&&m,pe=Ae&&Ae.exports===de,Ee=pe&&_e.process,le=function(){try{return Ae&&Ae.require&&Ae.require("util").types||Ee&&Ee.binding&&Ee.binding("util")}catch{}}(),Ke=le&&le.isTypedArray,Ue=Array.prototype,tt=Object.prototype,at=Ye["__core-js_shared__"],Vt=Function.prototype.toString,qe=tt.hasOwnProperty,Nt=(Dt=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||""))?"Symbol(src)_1."+Dt:"",et=tt.toString,ue=Vt.call(Object),me=RegExp("^"+Vt.call(qe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=pe?Ye.Buffer:void 0,je=Ye.Symbol,Ne=Ye.Uint8Array,lt=Te?Te.allocUnsafe:void 0,Qe=function We(Dt,mn){return function(Yn){return Dt(mn(Yn))}}(Object.getPrototypeOf,Object),Ct=Object.create,yt=tt.propertyIsEnumerable,Gt=Ue.splice,ft=je?je.toStringTag:void 0,nn=function(){try{var Dt=$o(Object,"defineProperty");return Dt({},"",{}),Dt}catch{}}(),rn=Te?Te.isBuffer:void 0,Mn=Math.max,On=Date.now,ji=$o(Ye,"Map"),Mi=$o(Object,"create"),Vo=function(){function Dt(){}return function(mn){if(!Bs(mn))return{};if(Ct)return Ct(mn);Dt.prototype=mn;var Yn=new Dt;return Dt.prototype=void 0,Yn}}();function Co(Dt){var mn=-1,Yn=null==Dt?0:Dt.length;for(this.clear();++mn<Yn;){var xi=Dt[mn];this.set(xi[0],xi[1])}}function Pn(Dt){var mn=-1,Yn=null==Dt?0:Dt.length;for(this.clear();++mn<Yn;){var xi=Dt[mn];this.set(xi[0],xi[1])}}function To(Dt){var mn=-1,Yn=null==Dt?0:Dt.length;for(this.clear();++mn<Yn;){var xi=Dt[mn];this.set(xi[0],xi[1])}}function qo(Dt){var mn=this.__data__=new Pn(Dt);this.size=mn.size}function Yi(Dt,mn,Yn){(void 0!==Yn&&!fi(Dt[mn],Yn)||void 0===Yn&&!(mn in Dt))&&It(Dt,mn,Yn)}function Sn(Dt,mn,Yn){var xi=Dt[mn];(!qe.call(Dt,mn)||!fi(xi,Yn)||void 0===Yn&&!(mn in Dt))&&It(Dt,mn,Yn)}function ri(Dt,mn){for(var Yn=Dt.length;Yn--;)if(fi(Dt[Yn][0],mn))return Yn;return-1}function It(Dt,mn,Yn){"__proto__"==mn&&nn?nn(Dt,mn,{configurable:!0,enumerable:!0,value:Yn,writable:!0}):Dt[mn]=Yn}Co.prototype.clear=function ti(){this.__data__=Mi?Mi(null):{},this.size=0},Co.prototype.delete=function Qn(Dt){var mn=this.has(Dt)&&delete this.__data__[Dt];return this.size-=mn?1:0,mn},Co.prototype.get=function ei(Dt){var mn=this.__data__;if(Mi){var Yn=mn[Dt];return Yn===k?void 0:Yn}return qe.call(mn,Dt)?mn[Dt]:void 0},Co.prototype.has=function Rt(Dt){var mn=this.__data__;return Mi?void 0!==mn[Dt]:qe.call(mn,Dt)},Co.prototype.set=function Jt(Dt,mn){var Yn=this.__data__;return this.size+=this.has(Dt)?0:1,Yn[Dt]=Mi&&void 0===mn?k:mn,this},Pn.prototype.clear=function Jn(){this.__data__=[],this.size=0},Pn.prototype.delete=function Ii(Dt){var mn=this.__data__,Yn=ri(mn,Dt);return!(Yn<0||(Yn==mn.length-1?mn.pop():Gt.call(mn,Yn,1),--this.size,0))},Pn.prototype.get=function vo(Dt){var mn=this.__data__,Yn=ri(mn,Dt);return Yn<0?void 0:mn[Yn][1]},Pn.prototype.has=function pi(Dt){return ri(this.__data__,Dt)>-1},Pn.prototype.set=function Wo(Dt,mn){var Yn=this.__data__,xi=ri(Yn,Dt);return xi<0?(++this.size,Yn.push([Dt,mn])):Yn[xi][1]=mn,this},To.prototype.clear=function hs(){this.size=0,this.__data__={hash:new Co,map:new(ji||Pn),string:new Co}},To.prototype.delete=function Ps(Dt){var mn=_o(this,Dt).delete(Dt);return this.size-=mn?1:0,mn},To.prototype.get=function ls(Dt){return _o(this,Dt).get(Dt)},To.prototype.has=function Hs(Dt){return _o(this,Dt).has(Dt)},To.prototype.set=function ss(Dt,mn){var Yn=_o(this,Dt),xi=Yn.size;return Yn.set(Dt,mn),this.size+=Yn.size==xi?0:1,this},qo.prototype.clear=function cs(){this.__data__=new Pn,this.size=0},qo.prototype.delete=function bs(Dt){var mn=this.__data__,Yn=mn.delete(Dt);return this.size=mn.size,Yn},qo.prototype.get=function Fn(Dt){return this.__data__.get(Dt)},qo.prototype.has=function li(Dt){return this.__data__.has(Dt)},qo.prototype.set=function si(Dt,mn){var Yn=this.__data__;if(Yn instanceof Pn){var xi=Yn.__data__;if(!ji||xi.length<199)return xi.push([Dt,mn]),this.size=++Yn.size,this;Yn=this.__data__=new To(xi)}return Yn.set(Dt,mn),this.size=Yn.size,this};var Pt=function zi(Dt){return function(mn,Yn,xi){for(var Ki=-1,Ro=Object(mn),yo=xi(mn),ko=yo.length;ko--;){var Ho=yo[Dt?ko:++Ki];if(!1===Yn(Ro[Ho],Ho,Ro))break}return mn}}();function dn(Dt){return null==Dt?void 0===Dt?"[object Undefined]":"[object Null]":ft&&ft in Object(Dt)?function gs(Dt){var mn=qe.call(Dt,ft),Yn=Dt[ft];try{Dt[ft]=void 0;var xi=!0}catch{}var Ki=et.call(Dt);return xi&&(mn?Dt[ft]=Yn:delete Dt[ft]),Ki}(Dt):function Vs(Dt){return et.call(Dt)}(Dt)}function jt(Dt){return Ss(Dt)&&dn(Dt)==x}function Bi(Dt,mn,Yn,xi,Ki){Dt!==mn&&Pt(mn,function(Ro,yo){if(Ki||(Ki=new qo),Bs(Ro))!function Zi(Dt,mn,Yn,xi,Ki,Ro,yo){var ko=zt(Dt,Yn),Ho=zt(mn,Yn),ms=yo.get(Ho);if(ms)Yi(Dt,Yn,ms);else{var ds=Ro?Ro(ko,Ho,Yn+"",Dt,mn,yo):void 0,Bo=void 0===ds;if(Bo){var ws=So(Ho),Ys=!ws&&Rs(Ho),Us=!ws&&!Ys&&en(Ho);ds=Ho,ws||Ys||Us?So(ko)?ds=ko:function xs(Dt){return Ss(Dt)&&Go(Dt)}(ko)?ds=function jn(Dt,mn){var Yn=-1,xi=Dt.length;for(mn||(mn=Array(xi));++Yn<xi;)mn[Yn]=Dt[Yn];return mn}(ko):Ys?(Bo=!1,ds=function ho(Dt,mn){if(mn)return Dt.slice();var Yn=Dt.length,xi=lt?lt(Yn):new Dt.constructor(Yn);return Dt.copy(xi),xi}(Ho,!0)):Us?(Bo=!1,ds=function Qt(Dt,mn){var Yn=mn?function St(Dt){var mn=new Dt.constructor(Dt.byteLength);return new Ne(mn).set(new Ne(Dt)),mn}(Dt.buffer):Dt.buffer;return new Dt.constructor(Yn,Dt.byteOffset,Dt.length)}(Ho,!0)):ds=[]:function Et(Dt){if(!Ss(Dt)||dn(Dt)!=J)return!1;var mn=Qe(Dt);if(null===mn)return!0;var Yn=qe.call(mn,"constructor")&&mn.constructor;return"function"==typeof Yn&&Yn instanceof Yn&&Vt.call(Yn)==ue}(Ho)||qi(Ho)?(ds=ko,qi(ko)?ds=function Dn(Dt){return function ai(Dt,mn,Yn,xi){var Ki=!Yn;Yn||(Yn={});for(var Ro=-1,yo=mn.length;++Ro<yo;){var ko=mn[Ro],Ho=xi?xi(Yn[ko],Dt[ko],ko,Yn,Dt):void 0;void 0===Ho&&(Ho=Dt[ko]),Ki?It(Yn,ko,Ho):Sn(Yn,ko,Ho)}return Yn}(Dt,Zn(Dt))}(ko):(!Bs(ko)||ks(ko))&&(ds=function xn(Dt){return"function"!=typeof Dt.constructor||Oo(Dt)?{}:Vo(Qe(Dt))}(Ho))):Bo=!1}Bo&&(yo.set(Ho,ds),Ki(ds,Ho,xi,Ro,yo),yo.delete(Ho)),Yi(Dt,Yn,ds)}}(Dt,mn,yo,Yn,Bi,xi,Ki);else{var ko=xi?xi(zt(Dt,yo),Ro,yo+"",Dt,mn,Ki):void 0;void 0===ko&&(ko=Ro),Yi(Dt,yo,ko)}},Zn)}var mo=nn?function(Dt,mn){return nn(Dt,"toString",{configurable:!0,enumerable:!1,value:mi(mn),writable:!0})}:ut;function _o(Dt,mn){var Yn=Dt.__data__;return function Ri(Dt){var mn=typeof Dt;return"string"==mn||"number"==mn||"symbol"==mn||"boolean"==mn?"__proto__"!==Dt:null===Dt}(mn)?Yn["string"==typeof mn?"string":"hash"]:Yn.map}function $o(Dt,mn){var Yn=function fe(Dt,mn){return Dt?.[mn]}(Dt,mn);return function Ot(Dt){return!(!Bs(Dt)||function Xi(Dt){return!!Nt&&Nt in Dt}(Dt))&&(ks(Dt)?me:Ce).test(function An(Dt){if(null!=Dt){try{return Vt.call(Dt)}catch{}try{return Dt+""}catch{}}return""}(Dt))}(Yn)?Yn:void 0}function Bn(Dt,mn){var Yn=typeof Dt;return!!(mn=mn??v)&&("number"==Yn||"symbol"!=Yn&&ye.test(Dt))&&Dt>-1&&Dt%1==0&&Dt<mn}function Oo(Dt){var mn=Dt&&Dt.constructor;return Dt===("function"==typeof mn&&mn.prototype||tt)}function zt(Dt,mn){if(("constructor"!==mn||"function"!=typeof Dt[mn])&&"__proto__"!=mn)return Dt[mn]}var zn=function pn(Dt){var mn=0,Yn=0;return function(){var xi=On(),Ki=16-(xi-Yn);if(Yn=xi,Ki>0){if(++mn>=800)return arguments[0]}else mn=0;return Dt.apply(void 0,arguments)}}(mo);function fi(Dt,mn){return Dt===mn||Dt!=Dt&&mn!=mn}var qi=jt(function(){return arguments}())?jt:function(Dt){return Ss(Dt)&&qe.call(Dt,"callee")&&!yt.call(Dt,"callee")},So=Array.isArray;function Go(Dt){return null!=Dt&&_s(Dt.length)&&!ks(Dt)}var Rs=rn||function Yt(){return!1};function ks(Dt){if(!Bs(Dt))return!1;var mn=dn(Dt);return mn==U||"[object GeneratorFunction]"==mn||"[object AsyncFunction]"==mn||"[object Proxy]"==mn}function _s(Dt){return"number"==typeof Dt&&Dt>-1&&Dt%1==0&&Dt<=v}function Bs(Dt){var mn=typeof Dt;return null!=Dt&&("object"==mn||"function"==mn)}function Ss(Dt){return null!=Dt&&"object"==typeof Dt}var en=Ke?function Oe(Dt){return function(mn){return Dt(mn)}}(Ke):function Tn(Dt){return Ss(Dt)&&_s(Dt.length)&&!!Me[dn(Dt)]};function Zn(Dt){return Go(Dt)?function Ni(Dt,mn){var Yn=So(Dt),xi=!Yn&&qi(Dt),Ki=!Yn&&!xi&&Rs(Dt),Ro=!Yn&&!xi&&!Ki&&en(Dt),yo=Yn||xi||Ki||Ro,ko=yo?function q(Dt,mn){for(var Yn=-1,xi=Array(Dt);++Yn<Dt;)xi[Yn]=mn(Yn);return xi}(Dt.length,String):[],Ho=ko.length;for(var ms in Dt)(mn||qe.call(Dt,ms))&&(!yo||!("length"==ms||Ki&&("offset"==ms||"parent"==ms)||Ro&&("buffer"==ms||"byteLength"==ms||"byteOffset"==ms)||Bn(ms,Ho)))&&ko.push(ms);return ko}(Dt,!0):function ni(Dt){if(!Bs(Dt))return function Fo(Dt){var mn=[];if(null!=Dt)for(var Yn in Object(Dt))mn.push(Yn);return mn}(Dt);var mn=Oo(Dt),Yn=[];for(var xi in Dt)"constructor"==xi&&(mn||!qe.call(Dt,xi))||Yn.push(xi);return Yn}(Dt)}var gi=function $i(Dt){return function ro(Dt,mn){return zn(function fs(Dt,mn,Yn){return mn=Mn(void 0===mn?Dt.length-1:mn,0),function(){for(var xi=arguments,Ki=-1,Ro=Mn(xi.length-mn,0),yo=Array(Ro);++Ki<Ro;)yo[Ki]=xi[mn+Ki];Ki=-1;for(var ko=Array(mn+1);++Ki<mn;)ko[Ki]=xi[Ki];return ko[mn]=Yn(yo),function Be(Dt,mn,Yn){switch(Yn.length){case 0:return Dt.call(mn);case 1:return Dt.call(mn,Yn[0]);case 2:return Dt.call(mn,Yn[0],Yn[1]);case 3:return Dt.call(mn,Yn[0],Yn[1],Yn[2])}return Dt.apply(mn,Yn)}(Dt,this,ko)}}(Dt,mn,ut),Dt+"")}(function(mn,Yn){var xi=-1,Ki=Yn.length,Ro=Ki>1?Yn[Ki-1]:void 0,yo=Ki>2?Yn[2]:void 0;for(Ro=Dt.length>3&&"function"==typeof Ro?(Ki--,Ro):void 0,yo&&function Gn(Dt,mn,Yn){if(!Bs(Yn))return!1;var xi=typeof mn;return!!("number"==xi?Go(Yn)&&Bn(mn,Yn.length):"string"==xi&&mn in Yn)&&fi(Yn[mn],Dt)}(Yn[0],Yn[1],yo)&&(Ro=Ki<3?void 0:Ro,Ki=1),mn=Object(mn);++xi<Ki;){var ko=Yn[xi];ko&&Dt(mn,ko,xi,Ro)}return mn})}(function(Dt,mn,Yn){Bi(Dt,mn,Yn)});function mi(Dt){return function(){return Dt}}function ut(Dt){return Dt}m.exports=gi},5143:(m,T,C)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});const e=C(8805),k=C(2722);var w,P;(P=w||(w={})).compose=function v(j={},F={},X=!1){"object"!=typeof j&&(j={}),"object"!=typeof F&&(F={});let U=e(F);X||(U=Object.keys(U).reduce((Z,A)=>(null!=U[A]&&(Z[A]=U[A]),Z),{}));for(const Z in j)void 0!==j[Z]&&void 0===F[Z]&&(U[Z]=j[Z]);return Object.keys(U).length>0?U:void 0},P.diff=function x(j={},F={}){"object"!=typeof j&&(j={}),"object"!=typeof F&&(F={});const X=Object.keys(j).concat(Object.keys(F)).reduce((U,Z)=>(k(j[Z],F[Z])||(U[Z]=void 0===F[Z]?null:F[Z]),U),{});return Object.keys(X).length>0?X:void 0},P.invert=function b(j={},F={}){j=j||{};const X=Object.keys(F).reduce((U,Z)=>(F[Z]!==j[Z]&&void 0!==j[Z]&&(U[Z]=F[Z]),U),{});return Object.keys(j).reduce((U,Z)=>(j[Z]!==F[Z]&&void 0===F[Z]&&(U[Z]=null),U),X)},P.transform=function B(j,F,X=!1){if("object"!=typeof j)return F;if("object"!=typeof F)return;if(!X)return F;const U=Object.keys(F).reduce((Z,A)=>(void 0===j[A]&&(Z[A]=F[A]),Z),{});return Object.keys(U).length>0?U:void 0},T.default=w},9098:(m,T,C)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AttributeMap=T.OpIterator=T.Op=void 0;const e=C(1456),k=C(8805),w=C(2722),P=C(5143);T.AttributeMap=P.default;const v=C(6237);T.Op=v.default;const x=C(2849);T.OpIterator=x.default;const B=(F,X)=>{if("object"!=typeof F||null===F)throw new Error("cannot retain a "+typeof F);if("object"!=typeof X||null===X)throw new Error("cannot retain a "+typeof X);const U=Object.keys(F)[0];if(!U||U!==Object.keys(X)[0])throw new Error(`embed types not matched: ${U} != ${Object.keys(X)[0]}`);return[U,F[U],X[U]]};class j{constructor(X){this.ops=Array.isArray(X)?X:null!=X&&Array.isArray(X.ops)?X.ops:[]}static registerEmbed(X,U){this.handlers[X]=U}static unregisterEmbed(X){delete this.handlers[X]}static getHandler(X){const U=this.handlers[X];if(!U)throw new Error(`no handlers for embed type "${X}"`);return U}insert(X,U){const Z={};return"string"==typeof X&&0===X.length?this:(Z.insert=X,null!=U&&"object"==typeof U&&Object.keys(U).length>0&&(Z.attributes=U),this.push(Z))}delete(X){return X<=0?this:this.push({delete:X})}retain(X,U){if("number"==typeof X&&X<=0)return this;const Z={retain:X};return null!=U&&"object"==typeof U&&Object.keys(U).length>0&&(Z.attributes=U),this.push(Z)}push(X){let U=this.ops.length,Z=this.ops[U-1];if(X=k(X),"object"==typeof Z){if("number"==typeof X.delete&&"number"==typeof Z.delete)return this.ops[U-1]={delete:Z.delete+X.delete},this;if("number"==typeof Z.delete&&null!=X.insert&&(U-=1,Z=this.ops[U-1],"object"!=typeof Z))return this.ops.unshift(X),this;if(w(X.attributes,Z.attributes)){if("string"==typeof X.insert&&"string"==typeof Z.insert)return this.ops[U-1]={insert:Z.insert+X.insert},"object"==typeof X.attributes&&(this.ops[U-1].attributes=X.attributes),this;if("number"==typeof X.retain&&"number"==typeof Z.retain)return this.ops[U-1]={retain:Z.retain+X.retain},"object"==typeof X.attributes&&(this.ops[U-1].attributes=X.attributes),this}}return U===this.ops.length?this.ops.push(X):this.ops.splice(U,0,X),this}chop(){const X=this.ops[this.ops.length-1];return X&&"number"==typeof X.retain&&!X.attributes&&this.ops.pop(),this}filter(X){return this.ops.filter(X)}forEach(X){this.ops.forEach(X)}map(X){return this.ops.map(X)}partition(X){const U=[],Z=[];return this.forEach(A=>{(X(A)?U:Z).push(A)}),[U,Z]}reduce(X,U){return this.ops.reduce(X,U)}changeLength(){return this.reduce((X,U)=>U.insert?X+v.default.length(U):U.delete?X-U.delete:X,0)}length(){return this.reduce((X,U)=>X+v.default.length(U),0)}slice(X=0,U=1/0){const Z=[],A=new x.default(this.ops);let M=0;for(;M<U&&A.hasNext();){let H;M<X?H=A.next(X-M):(H=A.next(U-M),Z.push(H)),M+=v.default.length(H)}return new j(Z)}compose(X){const U=new x.default(this.ops),Z=new x.default(X.ops),A=[],M=Z.peek();if(null!=M&&"number"==typeof M.retain&&null==M.attributes){let J=M.retain;for(;"insert"===U.peekType()&&U.peekLength()<=J;)J-=U.peekLength(),A.push(U.next());M.retain-J>0&&Z.next(M.retain-J)}const H=new j(A);for(;U.hasNext()||Z.hasNext();)if("insert"===Z.peekType())H.push(Z.next());else if("delete"===U.peekType())H.push(U.next());else{const J=Math.min(U.peekLength(),Z.peekLength()),R=U.next(J),L=Z.next(J);if(L.retain){const G={};if("number"==typeof R.retain)G.retain="number"==typeof L.retain?J:L.retain;else if("number"==typeof L.retain)null==R.retain?G.insert=R.insert:G.retain=R.retain;else{const z=null==R.retain?"insert":"retain",[K,ee,re]=B(R[z],L.retain),be=j.getHandler(K);G[z]={[K]:be.compose(ee,re,"retain"===z)}}const Q=P.default.compose(R.attributes,L.attributes,"number"==typeof R.retain);if(Q&&(G.attributes=Q),H.push(G),!Z.hasNext()&&w(H.ops[H.ops.length-1],G)){const z=new j(U.rest());return H.concat(z).chop()}}else"number"==typeof L.delete&&("number"==typeof R.retain||"object"==typeof R.retain&&null!==R.retain)&&H.push(L)}return H.chop()}concat(X){const U=new j(this.ops.slice());return X.ops.length>0&&(U.push(X.ops[0]),U.ops=U.ops.concat(X.ops.slice(1))),U}diff(X,U){if(this.ops===X.ops)return new j;const Z=[this,X].map(R=>R.map(L=>{if(null!=L.insert)return"string"==typeof L.insert?L.insert:"\0";throw new Error("diff() called "+(R===X?"on":"with")+" non-document")}).join("")),A=new j,M=e(Z[0],Z[1],U),H=new x.default(this.ops),J=new x.default(X.ops);return M.forEach(R=>{let L=R[1].length;for(;L>0;){let G=0;switch(R[0]){case e.INSERT:G=Math.min(J.peekLength(),L),A.push(J.next(G));break;case e.DELETE:G=Math.min(L,H.peekLength()),H.next(G),A.delete(G);break;case e.EQUAL:G=Math.min(H.peekLength(),J.peekLength(),L);const Q=H.next(G),z=J.next(G);w(Q.insert,z.insert)?A.retain(G,P.default.diff(Q.attributes,z.attributes)):A.push(z).delete(G)}L-=G}}),A.chop()}eachLine(X,U="\n"){const Z=new x.default(this.ops);let A=new j,M=0;for(;Z.hasNext();){if("insert"!==Z.peekType())return;const H=Z.peek(),J=v.default.length(H)-Z.peekLength(),R="string"==typeof H.insert?H.insert.indexOf(U,J)-J:-1;if(R<0)A.push(Z.next());else if(R>0)A.push(Z.next(R));else{if(!1===X(A,Z.next(1).attributes||{},M))return;M+=1,A=new j}}A.length()>0&&X(A,{},M)}invert(X){const U=new j;return this.reduce((Z,A)=>{if(A.insert)U.delete(v.default.length(A));else{if("number"==typeof A.retain&&null==A.attributes)return U.retain(A.retain),Z+A.retain;if(A.delete||"number"==typeof A.retain){const M=A.delete||A.retain;return X.slice(Z,Z+M).forEach(J=>{A.delete?U.push(J):A.retain&&A.attributes&&U.retain(v.default.length(J),P.default.invert(A.attributes,J.attributes))}),Z+M}if("object"==typeof A.retain&&null!==A.retain){const M=X.slice(Z,Z+1),H=new x.default(M.ops).next(),[J,R,L]=B(A.retain,H.insert),G=j.getHandler(J);return U.retain({[J]:G.invert(R,L)},P.default.invert(A.attributes,H.attributes)),Z+1}}return Z},0),U.chop()}transform(X,U=!1){if(U=!!U,"number"==typeof X)return this.transformPosition(X,U);const Z=X,A=new x.default(this.ops),M=new x.default(Z.ops),H=new j;for(;A.hasNext()||M.hasNext();)if("insert"!==A.peekType()||!U&&"insert"===M.peekType())if("insert"===M.peekType())H.push(M.next());else{const J=Math.min(A.peekLength(),M.peekLength()),R=A.next(J),L=M.next(J);if(R.delete)continue;if(L.delete)H.push(L);else{const G=R.retain,Q=L.retain;let z="object"==typeof Q&&null!==Q?Q:J;if("object"==typeof G&&null!==G&&"object"==typeof Q&&null!==Q){const K=Object.keys(G)[0];if(K===Object.keys(Q)[0]){const ee=j.getHandler(K);ee&&(z={[K]:ee.transform(G[K],Q[K],U)})}}H.retain(z,P.default.transform(R.attributes,L.attributes,U))}}else H.retain(v.default.length(A.next()));return H.chop()}transformPosition(X,U=!1){U=!!U;const Z=new x.default(this.ops);let A=0;for(;Z.hasNext()&&A<=X;){const M=Z.peekLength(),H=Z.peekType();Z.next(),"delete"!==H?("insert"===H&&(A<X||!U)&&(X+=M),A+=M):X-=Math.min(M,X-A)}return X}}j.Op=v.default,j.OpIterator=x.default,j.AttributeMap=P.default,j.handlers={},T.default=j,m.exports=j,m.exports.default=j},6237:(m,T)=>{"use strict";var C;Object.defineProperty(T,"__esModule",{value:!0}),(C||(C={})).length=function k(w){return"number"==typeof w.delete?w.delete:"number"==typeof w.retain?w.retain:"object"==typeof w.retain&&null!==w.retain?1:"string"==typeof w.insert?w.insert.length:1},T.default=C},2849:(m,T,C)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});const e=C(6237);T.default=class k{constructor(P){this.ops=P,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(P){P||(P=1/0);const v=this.ops[this.index];if(v){const x=this.offset,b=e.default.length(v);if(P>=b-x?(P=b-x,this.index+=1,this.offset=0):this.offset+=P,"number"==typeof v.delete)return{delete:P};{const B={};return v.attributes&&(B.attributes=v.attributes),"number"==typeof v.retain?B.retain=P:"object"==typeof v.retain&&null!==v.retain?B.retain=v.retain:B.insert="string"==typeof v.insert?v.insert.substr(x,P):v.insert,B}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?e.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const P=this.ops[this.index];return P?"number"==typeof P.delete?"delete":"number"==typeof P.retain||"object"==typeof P.retain&&null!==P.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const P=this.offset,v=this.index,x=this.next(),b=this.ops.slice(this.index);return this.offset=P,this.index=v,[x].concat(b)}}return[]}}},1863:(m,T,C)=>{"use strict";var e=C(9731);m.exports=e},6572:(m,T,C)=>{"use strict";var e=C(4401);m.exports=e},2318:(m,T,C)=>{"use strict";var e=C(3661);m.exports=e},576:(m,T,C)=>{"use strict";var e=C(5606);m.exports=e},2327:(m,T,C)=>{"use strict";C(5445);var e=C(6731);m.exports=e("Array","fill")},3274:(m,T,C)=>{"use strict";C(9477),C(6272);var e=C(577);m.exports=e.Array.from},5339:(m,T,C)=>{"use strict";C(2947);var e=C(577);m.exports=e.Object.values},1189:(m,T,C)=>{"use strict";C(538);var e=C(6731);m.exports=e("String","endsWith")},5142:(m,T,C)=>{"use strict";C(297)},1019:(m,T,C)=>{"use strict";C(4660)},1183:(m,T,C)=>{"use strict";C(5275)},2570:(m,T,C)=>{"use strict";C(2839)},297:(m,T,C)=>{"use strict";var e=C(1863);m.exports=e},4660:(m,T,C)=>{"use strict";var e=C(6572);m.exports=e},5275:(m,T,C)=>{"use strict";var e=C(2318);m.exports=e},2839:(m,T,C)=>{"use strict";var e=C(576);m.exports=e},6324:(m,T,C)=>{"use strict";var e=C(2539),k=C(7471),w=TypeError;m.exports=function(P){if(e(P))return P;throw new w(k(P)+" is not a function")}},2162:(m,T,C)=>{"use strict";var e=C(2539),k=String,w=TypeError;m.exports=function(P){if("object"==typeof P||e(P))return P;throw new w("Can't set "+k(P)+" as a prototype")}},2572:(m,T,C)=>{"use strict";var e=C(5485),k=C(3830),w=C(8503).f,P=e("unscopables"),v=Array.prototype;void 0===v[P]&&w(v,P,{configurable:!0,value:k(null)}),m.exports=function(x){v[P][x]=!0}},8874:(m,T,C)=>{"use strict";var e=C(3988),k=String,w=TypeError;m.exports=function(P){if(e(P))return P;throw new w(k(P)+" is not an object")}},9236:(m,T,C)=>{"use strict";var e=C(6015),k=C(7234),w=C(3235);m.exports=function(v){for(var x=e(this),b=w(x),B=arguments.length,j=k(B>1?arguments[1]:void 0,b),F=B>2?arguments[2]:void 0,X=void 0===F?b:k(F,b);X>j;)x[j++]=v;return x}},8459:(m,T,C)=>{"use strict";var e=C(9794),k=C(2977),w=C(6015),P=C(9154),v=C(7024),x=C(6467),b=C(3235),B=C(3003),j=C(2387),F=C(7874),X=Array;m.exports=function(Z){var A=w(Z),M=x(this),H=arguments.length,J=H>1?arguments[1]:void 0,R=void 0!==J;R&&(J=e(J,H>2?arguments[2]:void 0));var Q,z,K,ee,re,be,L=F(A),G=0;if(!L||this===X&&v(L))for(Q=b(A),z=M?new this(Q):X(Q);Q>G;G++)be=R?J(A[G],G):A[G],B(z,G,be);else for(re=(ee=j(A,L)).next,z=M?new this:[];!(K=k(re,ee)).done;G++)be=R?P(ee,J,[K.value,G],!0):K.value,B(z,G,be);return z.length=G,z}},5644:(m,T,C)=>{"use strict";var e=C(7625),k=C(7234),w=C(3235),P=function(v){return function(x,b,B){var U,j=e(x),F=w(j),X=k(B,F);if(v&&b!=b){for(;F>X;)if((U=j[X++])!=U)return!0}else for(;F>X;X++)if((v||X in j)&&j[X]===b)return v||X||0;return!v&&-1}};m.exports={includes:P(!0),indexOf:P(!1)}},9154:(m,T,C)=>{"use strict";var e=C(8874),k=C(8880);m.exports=function(w,P,v,x){try{return x?P(e(v)[0],v[1]):P(v)}catch(b){k(w,"throw",b)}}},3346:(m,T,C)=>{"use strict";var k=C(5485)("iterator"),w=!1;try{var P=0,v={next:function(){return{done:!!P++}},return:function(){w=!0}};v[k]=function(){return this},Array.from(v,function(){throw 2})}catch{}m.exports=function(x,b){try{if(!b&&!w)return!1}catch{return!1}var B=!1;try{var j={};j[k]=function(){return{next:function(){return{done:B=!0}}}},x(j)}catch{}return B}},4545:(m,T,C)=>{"use strict";var e=C(4038),k=e({}.toString),w=e("".slice);m.exports=function(P){return w(k(P),8,-1)}},2702:(m,T,C)=>{"use strict";var e=C(1923),k=C(2539),w=C(4545),v=C(5485)("toStringTag"),x=Object,b="Arguments"===w(function(){return arguments}());m.exports=e?w:function(j){var F,X,U;return void 0===j?"Undefined":null===j?"Null":"string"==typeof(X=function(j,F){try{return j[F]}catch{}}(F=x(j),v))?X:b?w(F):"Object"===(U=w(F))&&k(F.callee)?"Arguments":U}},1358:(m,T,C)=>{"use strict";var e=C(2623),k=C(3054),w=C(3037),P=C(8503);m.exports=function(v,x,b){for(var B=k(x),j=P.f,F=w.f,X=0;X<B.length;X++){var U=B[X];!e(v,U)&&(!b||!e(b,U))&&j(v,U,F(x,U))}}},6775:(m,T,C)=>{"use strict";var k=C(5485)("match");m.exports=function(w){var P=/./;try{"/./"[w](P)}catch{try{return P[k]=!1,"/./"[w](P)}catch{}}return!1}},6141:(m,T,C)=>{"use strict";var e=C(5202);m.exports=!e(function(){function k(){}return k.prototype.constructor=null,Object.getPrototypeOf(new k)!==k.prototype})},3585:m=>{"use strict";m.exports=function(T,C){return{value:T,done:C}}},8868:(m,T,C)=>{"use strict";var e=C(5007),k=C(8503),w=C(4238);m.exports=e?function(P,v,x){return k.f(P,v,w(1,x))}:function(P,v,x){return P[v]=x,P}},4238:m=>{"use strict";m.exports=function(T,C){return{enumerable:!(1&T),configurable:!(2&T),writable:!(4&T),value:C}}},3003:(m,T,C)=>{"use strict";var e=C(3164),k=C(8503),w=C(4238);m.exports=function(P,v,x){var b=e(v);b in P?k.f(P,b,w(0,x)):P[b]=x}},916:(m,T,C)=>{"use strict";var e=C(2539),k=C(8503),w=C(6614),P=C(2136);m.exports=function(v,x,b,B){B||(B={});var j=B.enumerable,F=void 0!==B.name?B.name:x;if(e(b)&&w(b,F,B),B.global)j?v[x]=b:P(x,b);else{try{B.unsafe?v[x]&&(j=!0):delete v[x]}catch{}j?v[x]=b:k.f(v,x,{value:b,enumerable:!1,configurable:!B.nonConfigurable,writable:!B.nonWritable})}return v}},2136:(m,T,C)=>{"use strict";var e=C(730),k=Object.defineProperty;m.exports=function(w,P){try{k(e,w,{value:P,configurable:!0,writable:!0})}catch{e[w]=P}return P}},5007:(m,T,C)=>{"use strict";var e=C(5202);m.exports=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},8629:m=>{"use strict";var T="object"==typeof document&&document.all;m.exports={all:T,IS_HTMLDDA:typeof T>"u"&&void 0!==T}},2215:(m,T,C)=>{"use strict";var e=C(730),k=C(3988),w=e.document,P=k(w)&&k(w.createElement);m.exports=function(v){return P?w.createElement(v):{}}},932:m=>{"use strict";m.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},7626:(m,T,C)=>{"use strict";var b,B,e=C(730),k=C(932),w=e.process,P=e.Deno,v=w&&w.versions||P&&P.version,x=v&&v.v8;x&&(B=(b=x.split("."))[0]>0&&b[0]<4?1:+(b[0]+b[1])),!B&&k&&(!(b=k.match(/Edge\/(\d+)/))||b[1]>=74)&&(b=k.match(/Chrome\/(\d+)/))&&(B=+b[1]),m.exports=B},6731:(m,T,C)=>{"use strict";var e=C(730),k=C(4038);m.exports=function(w,P){return k(e[w].prototype[P])}},8552:m=>{"use strict";m.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2189:(m,T,C)=>{"use strict";var e=C(730),k=C(3037).f,w=C(8868),P=C(916),v=C(2136),x=C(1358),b=C(3455);m.exports=function(B,j){var A,M,H,J,R,F=B.target,X=B.global,U=B.stat;if(A=X?e:U?e[F]||v(F,{}):(e[F]||{}).prototype)for(M in j){if(J=j[M],H=B.dontCallGetSet?(R=k(A,M))&&R.value:A[M],!b(X?M:F+(U?".":"#")+M,B.forced)&&void 0!==H){if(typeof J==typeof H)continue;x(J,H)}(B.sham||H&&H.sham)&&w(J,"sham",!0),P(A,M,J,B)}}},5202:m=>{"use strict";m.exports=function(T){try{return!!T()}catch{return!0}}},9794:(m,T,C)=>{"use strict";var e=C(6192),k=C(6324),w=C(2865),P=e(e.bind);m.exports=function(v,x){return k(v),void 0===x?v:w?P(v,x):function(){return v.apply(x,arguments)}}},2865:(m,T,C)=>{"use strict";var e=C(5202);m.exports=!e(function(){var k=function(){}.bind();return"function"!=typeof k||k.hasOwnProperty("prototype")})},2977:(m,T,C)=>{"use strict";var e=C(2865),k=Function.prototype.call;m.exports=e?k.bind(k):function(){return k.apply(k,arguments)}},9895:(m,T,C)=>{"use strict";var e=C(5007),k=C(2623),w=Function.prototype,P=e&&Object.getOwnPropertyDescriptor,v=k(w,"name"),x=v&&"something"===function(){}.name,b=v&&(!e||e&&P(w,"name").configurable);m.exports={EXISTS:v,PROPER:x,CONFIGURABLE:b}},6589:(m,T,C)=>{"use strict";var e=C(4038),k=C(6324);m.exports=function(w,P,v){try{return e(k(Object.getOwnPropertyDescriptor(w,P)[v]))}catch{}}},6192:(m,T,C)=>{"use strict";var e=C(4545),k=C(4038);m.exports=function(w){if("Function"===e(w))return k(w)}},4038:(m,T,C)=>{"use strict";var e=C(2865),k=Function.prototype,w=k.call,P=e&&k.bind.bind(w,w);m.exports=e?P:function(v){return function(){return w.apply(v,arguments)}}},7300:(m,T,C)=>{"use strict";var e=C(730),k=C(2539);m.exports=function(P,v){return arguments.length<2?function(P){return k(P)?P:void 0}(e[P]):e[P]&&e[P][v]}},7874:(m,T,C)=>{"use strict";var e=C(2702),k=C(3923),w=C(2219),P=C(7817),x=C(5485)("iterator");m.exports=function(b){if(!w(b))return k(b,x)||k(b,"@@iterator")||P[e(b)]}},2387:(m,T,C)=>{"use strict";var e=C(2977),k=C(6324),w=C(8874),P=C(7471),v=C(7874),x=TypeError;m.exports=function(b,B){var j=arguments.length<2?v(b):B;if(k(j))return w(e(j,b));throw new x(P(b)+" is not iterable")}},3923:(m,T,C)=>{"use strict";var e=C(6324),k=C(2219);m.exports=function(w,P){var v=w[P];return k(v)?void 0:e(v)}},730:function(m,T,C){"use strict";var e=function(k){return k&&k.Math===Math&&k};m.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof C.g&&C.g)||e("object"==typeof this&&this)||function(){return this}()||Function("return this")()},2623:(m,T,C)=>{"use strict";var e=C(4038),k=C(6015),w=e({}.hasOwnProperty);m.exports=Object.hasOwn||function(v,x){return w(k(v),x)}},7467:m=>{"use strict";m.exports={}},845:(m,T,C)=>{"use strict";var e=C(7300);m.exports=e("document","documentElement")},2470:(m,T,C)=>{"use strict";var e=C(5007),k=C(5202),w=C(2215);m.exports=!e&&!k(function(){return 7!==Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})},6854:(m,T,C)=>{"use strict";var e=C(4038),k=C(5202),w=C(4545),P=Object,v=e("".split);m.exports=k(function(){return!P("z").propertyIsEnumerable(0)})?function(x){return"String"===w(x)?v(x,""):P(x)}:P},7821:(m,T,C)=>{"use strict";var e=C(4038),k=C(2539),w=C(6838),P=e(Function.toString);k(w.inspectSource)||(w.inspectSource=function(v){return P(v)}),m.exports=w.inspectSource},5378:(m,T,C)=>{"use strict";var U,Z,A,e=C(2543),k=C(730),w=C(3988),P=C(8868),v=C(2623),x=C(6838),b=C(3511),B=C(7467),j="Object already initialized",F=k.TypeError;if(e||x.state){var J=x.state||(x.state=new(0,k.WeakMap));J.get=J.get,J.has=J.has,J.set=J.set,U=function(L,G){if(J.has(L))throw new F(j);return G.facade=L,J.set(L,G),G},Z=function(L){return J.get(L)||{}},A=function(L){return J.has(L)}}else{var R=b("state");B[R]=!0,U=function(L,G){if(v(L,R))throw new F(j);return G.facade=L,P(L,R,G),G},Z=function(L){return v(L,R)?L[R]:{}},A=function(L){return v(L,R)}}m.exports={set:U,get:Z,has:A,enforce:function(L){return A(L)?Z(L):U(L,{})},getterFor:function(L){return function(G){var Q;if(!w(G)||(Q=Z(G)).type!==L)throw new F("Incompatible receiver, "+L+" required");return Q}}}},7024:(m,T,C)=>{"use strict";var e=C(5485),k=C(7817),w=e("iterator"),P=Array.prototype;m.exports=function(v){return void 0!==v&&(k.Array===v||P[w]===v)}},2539:(m,T,C)=>{"use strict";var e=C(8629),k=e.all;m.exports=e.IS_HTMLDDA?function(w){return"function"==typeof w||w===k}:function(w){return"function"==typeof w}},6467:(m,T,C)=>{"use strict";var e=C(4038),k=C(5202),w=C(2539),P=C(2702),v=C(7300),x=C(7821),b=function(){},B=[],j=v("Reflect","construct"),F=/^\s*(?:class|function)\b/,X=e(F.exec),U=!F.test(b),Z=function(H){if(!w(H))return!1;try{return j(b,B,H),!0}catch{return!1}},A=function(H){if(!w(H))return!1;switch(P(H)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return U||!!X(F,x(H))}catch{return!0}};A.sham=!0,m.exports=!j||k(function(){var M;return Z(Z.call)||!Z(Object)||!Z(function(){M=!0})||M})?A:Z},3455:(m,T,C)=>{"use strict";var e=C(5202),k=C(2539),w=/#|\.prototype\./,P=function(j,F){var X=x[v(j)];return X===B||X!==b&&(k(F)?e(F):!!F)},v=P.normalize=function(j){return String(j).replace(w,".").toLowerCase()},x=P.data={},b=P.NATIVE="N",B=P.POLYFILL="P";m.exports=P},2219:m=>{"use strict";m.exports=function(T){return null==T}},3988:(m,T,C)=>{"use strict";var e=C(2539),k=C(8629),w=k.all;m.exports=k.IS_HTMLDDA?function(P){return"object"==typeof P?null!==P:e(P)||P===w}:function(P){return"object"==typeof P?null!==P:e(P)}},4708:m=>{"use strict";m.exports=!1},184:(m,T,C)=>{"use strict";var e=C(3988),k=C(4545),P=C(5485)("match");m.exports=function(v){var x;return e(v)&&(void 0!==(x=v[P])?!!x:"RegExp"===k(v))}},8820:(m,T,C)=>{"use strict";var e=C(7300),k=C(2539),w=C(7676),P=C(3713),v=Object;m.exports=P?function(x){return"symbol"==typeof x}:function(x){var b=e("Symbol");return k(b)&&w(b.prototype,v(x))}},8880:(m,T,C)=>{"use strict";var e=C(2977),k=C(8874),w=C(3923);m.exports=function(P,v,x){var b,B;k(P);try{if(!(b=w(P,"return"))){if("throw"===v)throw x;return x}b=e(b,P)}catch(j){B=!0,b=j}if("throw"===v)throw x;if(B)throw b;return k(b),x}},3450:(m,T,C)=>{"use strict";var e=C(344).IteratorPrototype,k=C(3830),w=C(4238),P=C(3506),v=C(7817),x=function(){return this};m.exports=function(b,B,j,F){var X=B+" Iterator";return b.prototype=k(e,{next:w(+!F,j)}),P(b,X,!1,!0),v[X]=x,b}},3174:(m,T,C)=>{"use strict";var e=C(2189),k=C(2977),w=C(4708),P=C(9895),v=C(2539),x=C(3450),b=C(8059),B=C(5502),j=C(3506),F=C(8868),X=C(916),U=C(5485),Z=C(7817),A=C(344),M=P.PROPER,H=P.CONFIGURABLE,J=A.IteratorPrototype,R=A.BUGGY_SAFARI_ITERATORS,L=U("iterator"),G="keys",Q="values",z="entries",K=function(){return this};m.exports=function(ee,re,be,ce,Re,Se,De){x(be,re,ce);var Me,_e,ke,Pe=function(Ye){if(Ye===Re&&Ce)return Ce;if(!R&&Ye&&Ye in ie)return ie[Ye];switch(Ye){case G:case Q:case z:return function(){return new be(this,Ye)}}return function(){return new be(this)}},Ie=re+" Iterator",W=!1,ie=ee.prototype,he=ie[L]||ie["@@iterator"]||Re&&ie[Re],Ce=!R&&he||Pe(Re),ye="Array"===re&&ie.entries||he;if(ye&&(Me=b(ye.call(new ee)))!==Object.prototype&&Me.next&&(!w&&b(Me)!==J&&(B?B(Me,J):v(Me[L])||X(Me,L,K)),j(Me,Ie,!0,!0),w&&(Z[Ie]=K)),M&&Re===Q&&he&&he.name!==Q&&(!w&&H?F(ie,"name",Q):(W=!0,Ce=function(){return k(he,this)})),Re)if(_e={values:Pe(Q),keys:Se?Ce:Pe(G),entries:Pe(z)},De)for(ke in _e)(R||W||!(ke in ie))&&X(ie,ke,_e[ke]);else e({target:re,proto:!0,forced:R||W},_e);return(!w||De)&&ie[L]!==Ce&&X(ie,L,Ce,{name:Re}),Z[re]=Ce,_e}},344:(m,T,C)=>{"use strict";var X,U,Z,e=C(5202),k=C(2539),w=C(3988),P=C(3830),v=C(8059),x=C(916),b=C(5485),B=C(4708),j=b("iterator"),F=!1;[].keys&&("next"in(Z=[].keys())?(U=v(v(Z)))!==Object.prototype&&(X=U):F=!0),!w(X)||e(function(){var M={};return X[j].call(M)!==M})?X={}:B&&(X=P(X)),k(X[j])||x(X,j,function(){return this}),m.exports={IteratorPrototype:X,BUGGY_SAFARI_ITERATORS:F}},7817:m=>{"use strict";m.exports={}},3235:(m,T,C)=>{"use strict";var e=C(3627);m.exports=function(k){return e(k.length)}},6614:(m,T,C)=>{"use strict";var e=C(4038),k=C(5202),w=C(2539),P=C(2623),v=C(5007),x=C(9895).CONFIGURABLE,b=C(7821),B=C(5378),j=B.enforce,F=B.get,X=String,U=Object.defineProperty,Z=e("".slice),A=e("".replace),M=e([].join),H=v&&!k(function(){return 8!==U(function(){},"length",{value:8}).length}),J=String(String).split("String"),R=m.exports=function(L,G,Q){"Symbol("===Z(X(G),0,7)&&(G="["+A(X(G),/^Symbol\(([^)]*)\)/,"$1")+"]"),Q&&Q.getter&&(G="get "+G),Q&&Q.setter&&(G="set "+G),(!P(L,"name")||x&&L.name!==G)&&(v?U(L,"name",{value:G,configurable:!0}):L.name=G),H&&Q&&P(Q,"arity")&&L.length!==Q.arity&&U(L,"length",{value:Q.arity});try{Q&&P(Q,"constructor")&&Q.constructor?v&&U(L,"prototype",{writable:!1}):L.prototype&&(L.prototype=void 0)}catch{}var z=j(L);return P(z,"source")||(z.source=M(J,"string"==typeof G?G:"")),L};Function.prototype.toString=R(function(){return w(this)&&F(this).source||b(this)},"toString")},3041:m=>{"use strict";var T=Math.ceil,C=Math.floor;m.exports=Math.trunc||function(k){var w=+k;return(w>0?C:T)(w)}},50:(m,T,C)=>{"use strict";var e=C(184),k=TypeError;m.exports=function(w){if(e(w))throw new k("The method doesn't accept regular expressions");return w}},3830:(m,T,C)=>{"use strict";var J,e=C(8874),k=C(3944),w=C(8552),P=C(7467),v=C(845),x=C(2215),b=C(3511),F="prototype",X="script",U=b("IE_PROTO"),Z=function(){},A=function(L){return"<"+X+">"+L+"</"+X+">"},M=function(L){L.write(A("")),L.close();var G=L.parentWindow.Object;return L=null,G},R=function(){try{J=new ActiveXObject("htmlfile")}catch{}R=typeof document<"u"?document.domain&&J?M(J):function(){var Q,L=x("iframe"),G="java"+X+":";return L.style.display="none",v.appendChild(L),L.src=String(G),(Q=L.contentWindow.document).open(),Q.write(A("document.F=Object")),Q.close(),Q.F}():M(J);for(var L=w.length;L--;)delete R[F][w[L]];return R()};P[U]=!0,m.exports=Object.create||function(G,Q){var z;return null!==G?(Z[F]=e(G),z=new Z,Z[F]=null,z[U]=G):z=R(),void 0===Q?z:k.f(z,Q)}},3944:(m,T,C)=>{"use strict";var e=C(5007),k=C(2268),w=C(8503),P=C(8874),v=C(7625),x=C(4254);T.f=e&&!k?Object.defineProperties:function(B,j){P(B);for(var A,F=v(j),X=x(j),U=X.length,Z=0;U>Z;)w.f(B,A=X[Z++],F[A]);return B}},8503:(m,T,C)=>{"use strict";var e=C(5007),k=C(2470),w=C(2268),P=C(8874),v=C(3164),x=TypeError,b=Object.defineProperty,B=Object.getOwnPropertyDescriptor,j="enumerable",F="configurable",X="writable";T.f=e?w?function(Z,A,M){if(P(Z),A=v(A),P(M),"function"==typeof Z&&"prototype"===A&&"value"in M&&X in M&&!M[X]){var H=B(Z,A);H&&H[X]&&(Z[A]=M.value,M={configurable:F in M?M[F]:H[F],enumerable:j in M?M[j]:H[j],writable:!1})}return b(Z,A,M)}:b:function(Z,A,M){if(P(Z),A=v(A),P(M),k)try{return b(Z,A,M)}catch{}if("get"in M||"set"in M)throw new x("Accessors not supported");return"value"in M&&(Z[A]=M.value),Z}},3037:(m,T,C)=>{"use strict";var e=C(5007),k=C(2977),w=C(6251),P=C(4238),v=C(7625),x=C(3164),b=C(2623),B=C(2470),j=Object.getOwnPropertyDescriptor;T.f=e?j:function(X,U){if(X=v(X),U=x(U),B)try{return j(X,U)}catch{}if(b(X,U))return P(!k(w.f,X,U),X[U])}},5974:(m,T,C)=>{"use strict";var e=C(7862),w=C(8552).concat("length","prototype");T.f=Object.getOwnPropertyNames||function(v){return e(v,w)}},1526:(m,T)=>{"use strict";T.f=Object.getOwnPropertySymbols},8059:(m,T,C)=>{"use strict";var e=C(2623),k=C(2539),w=C(6015),P=C(3511),v=C(6141),x=P("IE_PROTO"),b=Object,B=b.prototype;m.exports=v?b.getPrototypeOf:function(j){var F=w(j);if(e(F,x))return F[x];var X=F.constructor;return k(X)&&F instanceof X?X.prototype:F instanceof b?B:null}},7676:(m,T,C)=>{"use strict";var e=C(4038);m.exports=e({}.isPrototypeOf)},7862:(m,T,C)=>{"use strict";var e=C(4038),k=C(2623),w=C(7625),P=C(5644).indexOf,v=C(7467),x=e([].push);m.exports=function(b,B){var U,j=w(b),F=0,X=[];for(U in j)!k(v,U)&&k(j,U)&&x(X,U);for(;B.length>F;)k(j,U=B[F++])&&(~P(X,U)||x(X,U));return X}},4254:(m,T,C)=>{"use strict";var e=C(7862),k=C(8552);m.exports=Object.keys||function(P){return e(P,k)}},6251:(m,T)=>{"use strict";var C={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,k=e&&!C.call({1:2},1);T.f=k?function(P){var v=e(this,P);return!!v&&v.enumerable}:C},5502:(m,T,C)=>{"use strict";var e=C(6589),k=C(8874),w=C(2162);m.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x,P=!1,v={};try{(x=e(Object.prototype,"__proto__","set"))(v,[]),P=v instanceof Array}catch{}return function(B,j){return k(B),w(j),P?x(B,j):B.__proto__=j,B}}():void 0)},7830:(m,T,C)=>{"use strict";var e=C(5007),k=C(5202),w=C(4038),P=C(8059),v=C(4254),x=C(7625),B=w(C(6251).f),j=w([].push),F=e&&k(function(){var U=Object.create(null);return U[2]=2,!B(U,2)}),X=function(U){return function(Z){for(var G,A=x(Z),M=v(A),H=F&&null===P(A),J=M.length,R=0,L=[];J>R;)G=M[R++],(!e||(H?G in A:B(A,G)))&&j(L,U?[G,A[G]]:A[G]);return L}};m.exports={entries:X(!0),values:X(!1)}},532:(m,T,C)=>{"use strict";var e=C(2977),k=C(2539),w=C(3988),P=TypeError;m.exports=function(v,x){var b,B;if("string"===x&&k(b=v.toString)&&!w(B=e(b,v))||k(b=v.valueOf)&&!w(B=e(b,v))||"string"!==x&&k(b=v.toString)&&!w(B=e(b,v)))return B;throw new P("Can't convert object to primitive value")}},3054:(m,T,C)=>{"use strict";var e=C(7300),k=C(4038),w=C(5974),P=C(1526),v=C(8874),x=k([].concat);m.exports=e("Reflect","ownKeys")||function(B){var j=w.f(v(B)),F=P.f;return F?x(j,F(B)):j}},577:(m,T,C)=>{"use strict";var e=C(730);m.exports=e},6373:(m,T,C)=>{"use strict";var e=C(2219),k=TypeError;m.exports=function(w){if(e(w))throw new k("Can't call method on "+w);return w}},3506:(m,T,C)=>{"use strict";var e=C(8503).f,k=C(2623),P=C(5485)("toStringTag");m.exports=function(v,x,b){v&&!b&&(v=v.prototype),v&&!k(v,P)&&e(v,P,{configurable:!0,value:x})}},3511:(m,T,C)=>{"use strict";var e=C(6568),k=C(2858),w=e("keys");m.exports=function(P){return w[P]||(w[P]=k(P))}},6838:(m,T,C)=>{"use strict";var e=C(730),k=C(2136),w="__core-js_shared__",P=e[w]||k(w,{});m.exports=P},6568:(m,T,C)=>{"use strict";var e=C(4708),k=C(6838);(m.exports=function(w,P){return k[w]||(k[w]=void 0!==P?P:{})})("versions",[]).push({version:"3.34.0",mode:e?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6365:(m,T,C)=>{"use strict";var e=C(4038),k=C(3550),w=C(2532),P=C(6373),v=e("".charAt),x=e("".charCodeAt),b=e("".slice),B=function(j){return function(F,X){var M,H,U=w(P(F)),Z=k(X),A=U.length;return Z<0||Z>=A?j?"":void 0:(M=x(U,Z))<55296||M>56319||Z+1===A||(H=x(U,Z+1))<56320||H>57343?j?v(U,Z):M:j?b(U,Z,Z+2):H-56320+(M-55296<<10)+65536}};m.exports={codeAt:B(!1),charAt:B(!0)}},3370:(m,T,C)=>{"use strict";var e=C(7626),k=C(5202),P=C(730).String;m.exports=!!Object.getOwnPropertySymbols&&!k(function(){var v=Symbol("symbol detection");return!P(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&e&&e<41})},7234:(m,T,C)=>{"use strict";var e=C(3550),k=Math.max,w=Math.min;m.exports=function(P,v){var x=e(P);return x<0?k(x+v,0):w(x,v)}},7625:(m,T,C)=>{"use strict";var e=C(6854),k=C(6373);m.exports=function(w){return e(k(w))}},3550:(m,T,C)=>{"use strict";var e=C(3041);m.exports=function(k){var w=+k;return w!=w||0===w?0:e(w)}},3627:(m,T,C)=>{"use strict";var e=C(3550),k=Math.min;m.exports=function(w){return w>0?k(e(w),9007199254740991):0}},6015:(m,T,C)=>{"use strict";var e=C(6373),k=Object;m.exports=function(w){return k(e(w))}},634:(m,T,C)=>{"use strict";var e=C(2977),k=C(3988),w=C(8820),P=C(3923),v=C(532),x=C(5485),b=TypeError,B=x("toPrimitive");m.exports=function(j,F){if(!k(j)||w(j))return j;var U,X=P(j,B);if(X){if(void 0===F&&(F="default"),U=e(X,j,F),!k(U)||w(U))return U;throw new b("Can't convert object to primitive value")}return void 0===F&&(F="number"),v(j,F)}},3164:(m,T,C)=>{"use strict";var e=C(634),k=C(8820);m.exports=function(w){var P=e(w,"string");return k(P)?P:P+""}},1923:(m,T,C)=>{"use strict";var w={};w[C(5485)("toStringTag")]="z",m.exports="[object z]"===String(w)},2532:(m,T,C)=>{"use strict";var e=C(2702),k=String;m.exports=function(w){if("Symbol"===e(w))throw new TypeError("Cannot convert a Symbol value to a string");return k(w)}},7471:m=>{"use strict";var T=String;m.exports=function(C){try{return T(C)}catch{return"Object"}}},2858:(m,T,C)=>{"use strict";var e=C(4038),k=0,w=Math.random(),P=e(1..toString);m.exports=function(v){return"Symbol("+(void 0===v?"":v)+")_"+P(++k+w,36)}},3713:(m,T,C)=>{"use strict";var e=C(3370);m.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},2268:(m,T,C)=>{"use strict";var e=C(5007),k=C(5202);m.exports=e&&k(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2543:(m,T,C)=>{"use strict";var e=C(730),k=C(2539),w=e.WeakMap;m.exports=k(w)&&/native code/.test(String(w))},5485:(m,T,C)=>{"use strict";var e=C(730),k=C(6568),w=C(2623),P=C(2858),v=C(3370),x=C(3713),b=e.Symbol,B=k("wks"),j=x?b.for||b:b&&b.withoutSetter||P;m.exports=function(F){return w(B,F)||(B[F]=v&&w(b,F)?b[F]:j("Symbol."+F)),B[F]}},5445:(m,T,C)=>{"use strict";var e=C(2189),k=C(9236),w=C(2572);e({target:"Array",proto:!0},{fill:k}),w("fill")},6272:(m,T,C)=>{"use strict";var e=C(2189),k=C(8459);e({target:"Array",stat:!0,forced:!C(3346)(function(v){Array.from(v)})},{from:k})},2947:(m,T,C)=>{"use strict";var e=C(2189),k=C(7830).values;e({target:"Object",stat:!0},{values:function(P){return k(P)}})},538:(m,T,C)=>{"use strict";var M,e=C(2189),k=C(6192),w=C(3037).f,P=C(3627),v=C(2532),x=C(50),b=C(6373),B=C(6775),j=C(4708),F=k("".endsWith),X=k("".slice),U=Math.min,Z=B("endsWith");e({target:"String",proto:!0,forced:!(!j&&!Z&&(M=w(String.prototype,"endsWith"),M&&!M.writable)||Z)},{endsWith:function(H){var J=v(b(this));x(H);var R=arguments.length>1?arguments[1]:void 0,L=J.length,G=void 0===R?L:U(P(R),L),Q=v(H);return F?F(J,Q,G):X(J,G-Q.length,G)===Q}})},9477:(m,T,C)=>{"use strict";var e=C(6365).charAt,k=C(2532),w=C(5378),P=C(3174),v=C(3585),x="String Iterator",b=w.set,B=w.getterFor(x);P(String,"String",function(j){b(this,{type:x,string:k(j),index:0})},function(){var Z,F=B(this),X=F.string,U=F.index;return U>=X.length?v(void 0,!0):(Z=e(X,U),F.index+=Z.length,v(Z,!1))})},9731:(m,T,C)=>{"use strict";var e=C(2327);m.exports=e},4401:(m,T,C)=>{"use strict";var e=C(3274);m.exports=e},3661:(m,T,C)=>{"use strict";var e=C(5339);m.exports=e},5606:(m,T,C)=>{"use strict";var e=C(1189);m.exports=e}},p={};function S(m){var T=p[m];if(void 0!==T)return T.exports;var C=p[m]={id:m,loaded:!1,exports:{}};return it[m].call(C.exports,C,C.exports,S),C.loaded=!0,C.exports}S.n=m=>{var T=m&&m.__esModule?()=>m.default:()=>m;return S.d(T,{a:T}),T},S.d=(m,T)=>{for(var C in T)S.o(T,C)&&!S.o(m,C)&&Object.defineProperty(m,C,{enumerable:!0,get:T[C]})},S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch{if("object"==typeof window)return window}}(),S.o=(m,T)=>Object.prototype.hasOwnProperty.call(m,T),S.r=m=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})},S.nmd=m=>(m.paths=[],m.children||(m.children=[]),m);var d={};return(()=>{"use strict";S.d(d,{default:()=>Ks}),S(1019),S(5142),S(1183),S(2570);var k=S(2432),w=S(715),P=S(4048),v=S(1233);function x(ht){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function B(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,F(In.key),In)}}function F(ht){var _t=function X(ht,_t){if("object"!==x(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==x(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===x(_t)?_t:String(_t)}function U(){return U=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(_t,_n,In){var Oi=function Z(ht,_t){for(;!Object.prototype.hasOwnProperty.call(ht,_t)&&null!==(ht=G(ht)););return ht}(_t,_n);if(Oi){var po=Object.getOwnPropertyDescriptor(Oi,_n);return po.get?po.get.call(arguments.length<3?_t:In):po.value}},U.apply(this,arguments)}function M(ht,_t){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function G(ht){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}var Q=function(ht){!function A(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&M(ht,_t)}(_n,ht);var _t=function H(ht){var _t=function L(){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 Oi,In=G(ht);if(_t){var po=G(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function J(ht,_t){if(_t&&("object"===x(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return function R(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}(this,Oi)}}(_n);function _n(){return function b(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}(this,_n),_t.apply(this,arguments)}return function j(ht,_t,_n){_t&&B(ht.prototype,_t),_n&&B(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1})}(_n,[{key:"add",value:function(Oi,po){if("+1"===po||"-1"===po){var Zs=this.value(Oi)||0;po="+1"===po?Zs+1:Zs-1}return 0===po?(this.remove(Oi),!0):U(G(_n.prototype),"add",this).call(this,Oi,po)}},{key:"canAdd",value:function(Oi,po){return U(G(_n.prototype),"canAdd",this).call(this,Oi,po)||U(G(_n.prototype),"canAdd",this).call(this,Oi,parseInt(po,10))}},{key:"value",value:function(Oi){return parseInt(U(G(_n.prototype),"value",this).call(this,Oi),10)||void 0}}]),_n}(v.ClassAttributor);const K=new Q("indent","ql-indent",{scope:v.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});var ee=S(6446);function re(ht){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function be(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,Re(In.key),In)}}function Re(ht){var _t=function Se(ht,_t){if("object"!==re(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==re(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===re(_t)?_t:String(_t)}function Ie(ht,_t){return(Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function ye(ht){return(ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}var Me=function(ht){!function Pe(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&Ie(ht,_t)}(_n,ht);var _t=function W(ht){var _t=function Ce(){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 Oi,In=ye(ht);if(_t){var po=ye(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function ie(ht,_t){if(_t&&("object"===re(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return function he(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}(this,Oi)}}(_n);function _n(){return function De(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}(this,_n),_t.apply(this,arguments)}return function ce(ht,_t,_n){return _t&&be(ht.prototype,_t),_n&&be(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1}),ht}(_n)}(ee.ZP);Me.blotName="blockquote",Me.tagName="blockquote";const _e=Me;function ke(ht){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function de(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,pe(In.key),In)}}function pe(ht){var _t=function Ee(ht,_t){if("object"!==ke(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==ke(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===ke(_t)?_t:String(_t)}function Ke(ht,_t){return(Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function We(ht){return(We=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}var Ue=function(ht){!function le(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&Ke(ht,_t)}(_n,ht);var _t=function Be(ht){var _t=function fe(){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 Oi,In=We(ht);if(_t){var po=We(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function q(ht,_t){if(_t&&("object"===ke(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return function Oe(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}(this,Oi)}}(_n);function _n(){return function Ye(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}(this,_n),_t.apply(this,arguments)}return function Ae(ht,_t,_n){_t&&de(ht.prototype,_t),_n&&de(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1})}(_n,null,[{key:"formats",value:function(Oi){return this.tagName.indexOf(Oi.tagName)+1}}]),_n}(ee.ZP);Ue.blotName="header",Ue.tagName=["H1","H2","H3","H4","H5","H6"];const Ve=Ue;var tt=S(3553),at=S(281);function Vt(ht){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function qe(){return qe=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(_t,_n,In){var Oi=function Nt(ht,_t){for(;!Object.prototype.hasOwnProperty.call(ht,_t)&&null!==(ht=ft(ht)););return ht}(_t,_n);if(Oi){var po=Object.getOwnPropertyDescriptor(Oi,_n);return po.get?po.get.call(arguments.length<3?_t:In):po.value}},qe.apply(this,arguments)}function et(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,me(In.key),In)}}function ue(ht,_t,_n){return _t&&et(ht.prototype,_t),_n&&et(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1}),ht}function me(ht){var _t=function Te(ht,_t){if("object"!==Vt(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==Vt(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===Vt(_t)?_t:String(_t)}function je(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}function Ne(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&lt(ht,_t)}function lt(ht,_t){return(lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function Qe(ht){var _t=function Gt(){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 Oi,In=ft(ht);if(_t){var po=ft(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function Ct(ht,_t){if(_t&&("object"===Vt(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return function yt(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}(this,Oi)}}function ft(ht){return(ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}var nn=function(ht){Ne(_n,ht);var _t=Qe(_n);function _n(){return je(this,_n),_t.apply(this,arguments)}return ue(_n)}(tt.Z);nn.blotName="list-container",nn.tagName="OL";var rn=function(ht){Ne(_n,ht);var _t=Qe(_n);function _n(In,Oi){var po;je(this,_n),po=_t.call(this,In,Oi);var Zs=Oi.ownerDocument.createElement("span"),xa=function(Ea){if(In.isEnabled()){var bl=po.statics.formats(Oi,In);"checked"===bl?(po.format("list","unchecked"),Ea.preventDefault()):"unchecked"===bl&&(po.format("list","checked"),Ea.preventDefault())}};return Zs.addEventListener("mousedown",xa),Zs.addEventListener("touchstart",xa),po.attachUI(Zs),po}return ue(_n,[{key:"format",value:function(Oi,po){Oi===this.statics.blotName&&po?this.domNode.setAttribute("data-list",po):qe(ft(_n.prototype),"format",this).call(this,Oi,po)}}],[{key:"create",value:function(Oi){var po=qe(ft(_n),"create",this).call(this);return po.setAttribute("data-list",Oi),po}},{key:"formats",value:function(Oi){return Oi.getAttribute("data-list")||void 0}},{key:"register",value:function(){at.ZP.register(nn)}}]),_n}(ee.ZP);rn.blotName="list",rn.tagName="LI",nn.allowedChildren=[rn],rn.requiredContainer=nn;var Mn=S(7898),On=S(6039),ji=S(5832),Mi=S(1629),Vo=S(3991);function Co(ht){return(Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function ti(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,ei(In.key),In)}}function ei(ht){var _t=function Rt(ht,_t){if("object"!==Co(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==Co(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===Co(_t)?_t:String(_t)}function Jn(ht,_t){return(Jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function To(ht){return(To=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}var hs=function(ht){!function Pn(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&Jn(ht,_t)}(_n,ht);var _t=function Ii(ht){var _t=function Wo(){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 Oi,In=To(ht);if(_t){var po=To(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function vo(ht,_t){if(_t&&("object"===Co(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return function pi(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}(this,Oi)}}(_n);function _n(){return function Jt(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}(this,_n),_t.apply(this,arguments)}return function Qn(ht,_t,_n){return _t&&ti(ht.prototype,_t),_n&&ti(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1}),ht}(_n)}(Vo.Z);hs.blotName="italic",hs.tagName=["EM","I"];const Ps=hs;var ls=S(7256),Hs=S(6603);function ss(ht){return(ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function cs(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,Fn(In.key),In)}}function Fn(ht){var _t=function li(ht,_t){if("object"!==ss(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==ss(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===ss(_t)?_t:String(_t)}function si(){return si=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(_t,_n,In){var Oi=function Ni(ht,_t){for(;!Object.prototype.hasOwnProperty.call(ht,_t)&&null!==(ht=jt(ht)););return ht}(_t,_n);if(Oi){var po=Object.getOwnPropertyDescriptor(Oi,_n);return po.get?po.get.call(arguments.length<3?_t:In):po.value}},si.apply(this,arguments)}function Sn(ht,_t){return(Sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function jt(ht){return(jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}var Ot=function(ht){!function Yi(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&Sn(ht,_t)}(_n,ht);var _t=function ri(ht){var _t=function dn(){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 Oi,In=jt(ht);if(_t){var po=jt(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function It(ht,_t){if(_t&&("object"===ss(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return function Pt(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}(this,Oi)}}(_n);function _n(){return function qo(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}(this,_n),_t.apply(this,arguments)}return function bs(ht,_t,_n){_t&&cs(ht.prototype,_t),_n&&cs(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1})}(_n,null,[{key:"create",value:function(Oi){return"super"===Oi?document.createElement("sup"):"sub"===Oi?document.createElement("sub"):si(jt(_n),"create",this).call(this,Oi)}},{key:"formats",value:function(Oi){return"SUB"===Oi.tagName?"sub":"SUP"===Oi.tagName?"super":void 0}}]),_n}(Hs.Z);Ot.blotName="script",Ot.tagName=["SUB","SUP"];const Tn=Ot;function ni(ht){return(ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function Bi(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,ro(In.key),In)}}function ro(ht){var _t=function mo(ht,_t){if("object"!==ni(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==ni(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===ni(_t)?_t:String(_t)}function Qt(ht,_t){return(Qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function _o(ht){return(_o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}var $o=function(ht){!function St(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&Qt(ht,_t)}(_n,ht);var _t=function jn(ht){var _t=function zi(){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 Oi,In=_o(ht);if(_t){var po=_o(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function ai(ht,_t){if(_t&&("object"===ni(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return function $i(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}(this,Oi)}}(_n);function _n(){return function ho(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}(this,_n),_t.apply(this,arguments)}return function Zi(ht,_t,_n){return _t&&Bi(ht.prototype,_t),_n&&Bi(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1}),ht}(_n)}(Vo.Z);$o.blotName="strike",$o.tagName=["S","STRIKE"];const gs=$o;function xn(ht){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function Bn(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,Ri(In.key),In)}}function Ri(ht){var _t=function Xi(ht,_t){if("object"!==xn(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==xn(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===xn(_t)?_t:String(_t)}function Vs(ht,_t){return(Vs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function An(ht){return(An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}var fi=function(ht){!function Fo(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&Vs(ht,_t)}(_n,ht);var _t=function fs(ht){var _t=function pn(){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 Oi,In=An(ht);if(_t){var po=An(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function zt(ht,_t){if(_t&&("object"===xn(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return function zn(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}(this,Oi)}}(_n);function _n(){return function Oo(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}(this,_n),_t.apply(this,arguments)}return function Gn(ht,_t,_n){return _t&&Bn(ht.prototype,_t),_n&&Bn(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1}),ht}(_n)}(Hs.Z);fi.blotName="underline",fi.tagName="U";const qi=fi;var So=S(7452),Go=S(8034);function xs(ht){return(xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function ks(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,Bs(In.key),In)}}function Bs(ht){var _t=function Ss(ht,_t){if("object"!==xs(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==xs(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===xs(_t)?_t:String(_t)}function Et(){return Et=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(_t,_n,In){var Oi=function en(ht,_t){for(;!Object.prototype.hasOwnProperty.call(ht,_t)&&null!==(ht=Dt(ht)););return ht}(_t,_n);if(Oi){var po=Object.getOwnPropertyDescriptor(Oi,_n);return po.get?po.get.call(arguments.length<3?_t:In):po.value}},Et.apply(this,arguments)}function Zn(ht,_t){return(Zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function Dt(ht){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}var mn=function(ht){!function Dn(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&Zn(ht,_t)}(_n,ht);var _t=function gi(ht){var _t=function Yt(){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 Oi,In=Dt(ht);if(_t){var po=Dt(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function mi(ht,_t){if(_t&&("object"===xs(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return function ut(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}(this,Oi)}}(_n);function _n(){return function Rs(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}(this,_n),_t.apply(this,arguments)}return function _s(ht,_t,_n){_t&&ks(ht.prototype,_t),_n&&ks(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1})}(_n,[{key:"html",value:function(){var Oi=this.value();return"<span>".concat(Oi.formula,"</span>")}}],[{key:"create",value:function(Oi){var po=null;if((0,Go.Z)()&&(po=window.katex),null==po)throw new Error("Formula module requires KaTeX.");var Zs=Et(Dt(_n),"create",this).call(this,Oi);return"string"==typeof Oi&&(po.render(Oi,Zs,{throwOnError:!1,errorColor:"#f00"}),Zs.setAttribute("data-value",Oi)),Zs}},{key:"value",value:function(Oi){return Oi.getAttribute("data-value")}}]),_n}(So.Z);mn.blotName="formula",mn.className="ql-formula",mn.tagName="SPAN";const Yn=mn;function xi(ht){return(xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function Ro(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,ko(In.key),In)}}function ko(ht){var _t=function Ho(ht,_t){if("object"!==xi(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==xi(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===xi(_t)?_t:String(_t)}function ms(){return ms=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(_t,_n,In){var Oi=function ds(ht,_t){for(;!Object.prototype.hasOwnProperty.call(ht,_t)&&null!==(ht=gn(ht)););return ht}(_t,_n);if(Oi){var po=Object.getOwnPropertyDescriptor(Oi,_n);return po.get?po.get.call(arguments.length<3?_t:In):po.value}},ms.apply(this,arguments)}function ws(ht,_t){return(ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function gn(ht){return(gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}var Xt=["alt","height","width"],hn=function(ht){!function Bo(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&ws(ht,_t)}(_n,ht);var _t=function Ys(ht){var _t=function nr(){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 Oi,In=gn(ht);if(_t){var po=gn(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function Us(ht,_t){if(_t&&("object"===xi(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return function Qs(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}(this,Oi)}}(_n);function _n(){return function Ki(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}(this,_n),_t.apply(this,arguments)}return function yo(ht,_t,_n){_t&&Ro(ht.prototype,_t),_n&&Ro(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1})}(_n,[{key:"format",value:function(Oi,po){Xt.indexOf(Oi)>-1?po?this.domNode.setAttribute(Oi,po):this.domNode.removeAttribute(Oi):ms(gn(_n.prototype),"format",this).call(this,Oi,po)}}],[{key:"create",value:function(Oi){var po=ms(gn(_n),"create",this).call(this,Oi);return"string"==typeof Oi&&po.setAttribute("src",this.sanitize(Oi)),po}},{key:"formats",value:function(Oi){return Xt.reduce(function(po,Zs){return Oi.hasAttribute(Zs)&&(po[Zs]=Oi.getAttribute(Zs)),po},{})}},{key:"match",value:function(Oi){return/\.(jpe?g|gif|png)$/.test(Oi)||/^data:image\/.+;base64/.test(Oi)}},{key:"register",value:function(){(0,Go.Z)()&&/Firefox/i.test(navigator.userAgent)&&setTimeout(function(){document.execCommand("enableObjectResizing",!1,!1)},1)}},{key:"sanitize",value:function(Oi){return(0,ls.N)(Oi,["http","https","data"])?Oi:"//:0"}},{key:"value",value:function(Oi){return Oi.getAttribute("src")}}]),_n}(v.EmbedBlot);hn.blotName="image",hn.tagName="IMG";const Wn=hn;function Fi(ht){return(Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function bo(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,rs(In.key),In)}}function rs(ht){var _t=function is(ht,_t){if("object"!==Fi(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==Fi(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===Fi(_t)?_t:String(_t)}function $s(){return $s=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(_t,_n,In){var Oi=function Es(ht,_t){for(;!Object.prototype.hasOwnProperty.call(ht,_t)&&null!==(ht=ur(ht)););return ht}(_t,_n);if(Oi){var po=Object.getOwnPropertyDescriptor(Oi,_n);return po.get?po.get.call(arguments.length<3?_t:In):po.value}},$s.apply(this,arguments)}function Cr(ht,_t){return(Cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function ur(ht){return(ur=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}var Ar=["height","width"],ea=function(ht){!function ir(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&Cr(ht,_t)}(_n,ht);var _t=function Js(ht){var _t=function Tr(){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 Oi,In=ur(ht);if(_t){var po=ur(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function Or(ht,_t){if(_t&&("object"===Fi(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return function rr(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}(this,Oi)}}(_n);function _n(){return function io(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}(this,_n),_t.apply(this,arguments)}return function Mo(ht,_t,_n){_t&&bo(ht.prototype,_t),_n&&bo(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1})}(_n,[{key:"format",value:function(Oi,po){Ar.indexOf(Oi)>-1?po?this.domNode.setAttribute(Oi,po):this.domNode.removeAttribute(Oi):$s(ur(_n.prototype),"format",this).call(this,Oi,po)}},{key:"html",value:function(){var po=this.value().video;return'<a href="'.concat(po,'">').concat(po,"</a>")}}],[{key:"create",value:function(Oi){var po=$s(ur(_n),"create",this).call(this,Oi);return po.setAttribute("frameborder","0"),po.setAttribute("allowfullscreen",!0),po.setAttribute("src",this.sanitize(Oi)),po}},{key:"formats",value:function(Oi){return Ar.reduce(function(po,Zs){return Oi.hasAttribute(Zs)&&(po[Zs]=Oi.getAttribute(Zs)),po},{})}},{key:"sanitize",value:function(Oi){return ls.Z.sanitize(Oi)}},{key:"value",value:function(Oi){return Oi.getAttribute("src")}}]),_n}(ee.i2);ea.blotName="video",ea.className="ql-video",ea.tagName="IFRAME";const Vr=ea;var Hr=S(7309),jr=S(9072),Ir=S(867),va=S(9098),ca=S.n(va);function oa(ht){return(oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function Bt(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,bn(In.key),In)}}function bn(ht){var _t=function kn(ht,_t){if("object"!==oa(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==oa(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===oa(_t)?_t:String(_t)}function Hi(ht,_t){return(Hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function Wt(ht){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}var xt=function(ht){!function yi(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&Hi(ht,_t)}(_n,ht);var _t=function co(ht){var _t=function Ft(){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 Oi,In=Wt(ht);if(_t){var po=Wt(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function Po(ht,_t){if(_t&&("object"===oa(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return function Ko(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}(this,Oi)}}(_n);function _n(){return function ot(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}(this,_n),_t.apply(this,arguments)}return function qt(ht,_t,_n){_t&&Bt(ht.prototype,_t),_n&&Bt(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1})}(_n,[{key:"length",value:function(){return 1}},{key:"value",value:function(){return"\n"}},{key:"optimize",value:function(){!this.prev&&!this.next&&this.remove()}}],[{key:"value",value:function(){return"\n"}}]),_n}(v.EmbedBlot);xt.blotName="multilineBreak",xt.tagName="BR";const Fe=xt;function wt(ht){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function Ln(ht,_t){for(var _n=0;_n<_t.length;_n++){var In=_t[_n];In.enumerable=In.enumerable||!1,In.configurable=!0,"value"in In&&(In.writable=!0),Object.defineProperty(ht,bi(In.key),In)}}function bi(ht){var _t=function vi(ht,_t){if("object"!==wt(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==wt(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===wt(_t)?_t:String(_t)}function Si(ht,_t){return(Si=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(In,Oi){return In.__proto__=Oi,In})(ht,_t)}function oo(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}function Ht(ht){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_n){return _n.__proto__||Object.getPrototypeOf(_n)})(ht)}function Mt(ht){return ht.nextSibling||ht.previousSibling?(new(ca())).insert({multilineBreak:""}):(new(ca())).insert("\n")}const an=function(ht){!function ki(ht,_t){if("function"!=typeof _t&&null!==_t)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(_t&&_t.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),Object.defineProperty(ht,"prototype",{writable:!1}),_t&&Si(ht,_t)}(_n,ht);var _t=function Wi(ht){var _t=function Do(){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 Oi,In=Ht(ht);if(_t){var po=Ht(this).constructor;Oi=Reflect.construct(In,arguments,po)}else Oi=In.apply(this,arguments);return function Pi(ht,_t){if(_t&&("object"===wt(_t)||"function"==typeof _t))return _t;if(void 0!==_t)throw new TypeError("Derived constructors may only return object or undefined");return oo(ht)}(this,Oi)}}(_n);function _n(In,Oi){var po;return function cn(ht,_t){if(!(ht instanceof _t))throw new TypeError("Cannot call a class as a function")}(this,_n),po=_t.call(this,In,Oi),at.ZP.register(function Ut(ht,_t,_n){return(_t=bi(_t))in ht?Object.defineProperty(ht,_t,{value:_n,enumerable:!0,configurable:!0,writable:!0}):ht[_t]=_n,ht}({},"blots/multilineBreak",Fe),!0),In.keyboard.addBinding({key:"enter",shiftKey:!0},po.enterHandler.bind(oo(po))),In.keyboard.bindings.enter.unshift(In.keyboard.bindings.enter.pop()),In.clipboard.addMatcher("BR",Mt),po}return function $n(ht,_t,_n){_t&&Ln(ht.prototype,_t),_n&&Ln(ht,_n),Object.defineProperty(ht,"prototype",{writable:!1})}(_n,[{key:"enterHandler",value:function(Oi){var po=this.quill.getLeaf(Oi.index)[0],Zs=this.quill.getLeaf(Oi.index+1)[0];this.quill.insertEmbed(Oi.index,"multilineBreak",!0,"user"),(null===Zs||po.parent!==Zs.parent)&&this.quill.insertEmbed(Oi.index,"multilineBreak",!0,"user"),this.quill.setSelection(Oi.index+1,at.ZP.sources.SILENT)}}]),_n}(S(7094).Z);var Un=S(6054),di=S(1342),qn=S(319);function Ti(ht){return(Ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_t){return typeof _t}:function(_t){return _t&&"function"==typeof Symbol&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(ht)}function Qi(ht,_t){var _n=Object.keys(ht);if(Object.getOwnPropertySymbols){var In=Object.getOwnPropertySymbols(ht);_t&&(In=In.filter(function(Oi){return Object.getOwnPropertyDescriptor(ht,Oi).enumerable})),_n.push.apply(_n,In)}return _n}function go(ht){for(var _t=1;_t<arguments.length;_t++){var _n=null!=arguments[_t]?arguments[_t]:{};_t%2?Qi(Object(_n),!0).forEach(function(In){eo(ht,In,_n[In])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ht,Object.getOwnPropertyDescriptors(_n)):Qi(Object(_n)).forEach(function(In){Object.defineProperty(ht,In,Object.getOwnPropertyDescriptor(_n,In))})}return ht}function eo(ht,_t,_n){return _t=function os(ht){var _t=function as(ht,_t){if("object"!==Ti(ht)||null===ht)return ht;var _n=ht[Symbol.toPrimitive];if(void 0!==_n){var In=_n.call(ht,_t||"default");if("object"!==Ti(In))return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_t?String:Number)(ht)}(ht,"string");return"symbol"===Ti(_t)?_t:String(_t)}(_t),_t in ht?Object.defineProperty(ht,_t,{value:_n,enumerable:!0,configurable:!0,writable:!0}):ht[_t]=_n,ht}function Os(ht,_t){return _t.reduce(function(_n,In){return _n["".concat(ht).concat(In.attrName)]=In,_n},{})}k.default.register(go(go(go(go({"attributors/attribute/direction":P.IF},Os("attributors/attribute/",qn.Qu)),Os("attributors/attribute/",di.yA)),{},{"attributors/class/align":w.dk,"attributors/class/background":Mn.Y,"attributors/class/color":On.Hn,"attributors/class/direction":P.hY,"attributors/class/font":ji._,"attributors/class/size":Mi.m,"attributors/style/align":w.HE,"attributors/style/background":Mn.w,"attributors/style/color":On.HQ,"attributors/style/direction":P.H8,"attributors/style/font":ji.H,"attributors/style/size":Mi.Z},Os("attributors/style/",qn.VT)),Os("attributors/style/",di.kk)),!0),k.default.register({"formats/align":w.dk,"formats/direction":P.hY,"formats/indent":K,"formats/background":Mn.w,"formats/color":On.HQ,"formats/font":ji._,"formats/size":Mi.m,"formats/blockquote":_e,"formats/code-block":Hr.ZP,"formats/header":Ve,"formats/list":rn,"formats/bold":Vo.Z,"formats/code":Hr.EK,"formats/italic":Ps,"formats/link":ls.Z,"formats/script":Tn,"formats/strike":gs,"formats/underline":qi,"formats/formula":Yn,"formats/image":Wn,"formats/video":Vr,"tableModules/lite":Un.Z,"tableModules/main":Ir.Z,"modules/syntax":jr.ZP,"modules/multiline":an,"modules/table":Ir.Z},!0);const Ks=k.default})(),d.default})(),En.exports=S()},699:(En,it,p)=>{"use strict";p.d(it,{A:()=>x});var S=p(5973),d=p(6054),m=p(5704),T=p(1830);const{ios:C,mac:e}=S.A.real(),k=C||e,x=function(b,B){let j=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(b=(0,m.A)(b).get(0),!(0,T.O9)(B))return function(b){let B;try{B={start:b.selectionStart,end:b.selectionEnd}}catch{B={start:0,end:0}}return B}(b);!j&&k&&d.A.getActiveElement(b)!==b||function(b,B){const j=d.A.getBody();if(j.contains(b)||j.contains(b.getRootNode().host))try{b.selectionStart=B.start,b.selectionEnd=B.end}catch{}}(b,B)}},749:(En,it,p)=>{"use strict";p.d(it,{M:()=>C});var S=p(3012);const d=10;function C(e,k){const w=k||0;return(w>0?function T(e,k){const w=Math.pow(d,k);return function m(e){return(0,S._S)(e)*Math.round(Math.abs(e))}((0,S.T0)(e,k))/w}(...arguments):e).toFixed(w)}},756:(En,it,p)=>{"use strict";p.d(it,{of:()=>m});var S=p(2363),d=p(8399);function m(...T){const C=(0,S.lI)(T);return(0,d.H)(T,C)}},778:(En,it,p)=>{"use strict";p.d(it,{U:()=>X});var S=p(5704),d=p(4072),m=p(5973),T=p(6054),C=p(1832),k=(p(608),p(9293)),w=p(1110);function P(R){return R&&[R.target,R.delegateTarget,R.relatedTarget,R.currentTarget].filter(L=>!!L)}var b=p(2432),B=p(9209),j=p(1208),F=p(6211);const X="dxclick";let Z=null,A=null;const M=()=>{A=null},H=function(R){const L=R.originalEvent;(!R.which||1===R.which)&&!Z&&!(A===L||L&&L.DXCLICK_FIRED)&&(L&&(L.DXCLICK_FIRED=!0),((R,L)=>{d.A.off(P(R),w.N,L)})(A,M),A=L,((R,L)=>{d.A.one(P(R),w.N,L)})(A,M),(0,k.rC)({type:"dxclick",originalEvent:R}))},J=j.A.inherit({ctor:function(R){this.callBase(R),d.A.on(this.getElement(),"click",H)},start:function(R){Z=null},cancel:function(){Z=!0},dispose:function(){d.A.off(this.getElement(),"click",H)}});(function(){if(!m.A.real().generic){let L=null,G=!1;const Q=function(ce){return(0,S.A)(ce).is("input, textarea, select, button ,:focus, :focus *")},z=function(ce){L=ce.target,G=ce.isDefaultPrevented()},K=function(ce){const Re=(0,b.w)(ce);return(0,S.A)(Re)},ee=function(ce){const Re=K(ce);!G&&L&&!Re.is(L)&&!(0,S.A)(L).is("label")&&Q(Re)&&(0,C.GX)(),L=null,G=!1},re="NATIVE_CLICK_FIXER",be=T.A.getDocument();d.A.subscribeGlobal(be,(0,k.b4)(B.A.down,re),z),d.A.subscribeGlobal(be,(0,k.b4)("click",re),ee)}})(),(0,F.A)({emitter:J,bubble:!0,events:["dxclick"]})},784:(En,it,p)=>{"use strict";p.d(it,{A:()=>d});const d=p(8630).A},807:(En,it,p)=>{"use strict";p.d(it,{FU:()=>H});var S=p(9144),d=p(5737),m=p(5328),T=p(5652),C=p(1848),e=p(1830);const k=["dataSource","selectedRowKeys"],w={integrationOptions:!0};function P(J,R,L){return{path:J,value:R,previousValue:L}}function v(J,R,L,G,Q,z){if(w[G])return;const K=(0,e.NW)(R),ee=(0,e.NW)(L);if(R!==L)if(K!==ee)J.push(P(G,L,R));else if("object"===K)if((0,e.Qd)(L)){const re=b(R,L,Q,z);J.push(...re.map(be=>(0,d.A)({},be,{path:`${G}.${be.path}`})))}else J.push(P(G,L,R));else if("array"===K)if(z.some(be=>Q.includes(be))&&R!==L)J.push(P(G,L,R));else if(R.length!==L.length)J.push(P(G,L,R));else{const be=b(R,L,Q,z);[].push.apply(J,be.map(ce=>(0,d.A)({},ce,{path:`${G}${ce.path}`})))}else J.push(P(G,L,R))}const x=J=>(R,L,G,Q)=>{const z=[],K=Array.isArray(R)?ee=>{v(z,R[ee],L[ee],`[${ee}]`,`${G}.${ee}`,Q)}:ee=>{v(z,R[ee],L[ee],ee,`${G}.${ee}`,Q)};return J(R).forEach(K),Object.keys(L).filter(ee=>!Object.prototype.hasOwnProperty.call(R,ee)&&R[ee]!==L[ee]).forEach(ee=>{z.push({path:ee,value:L[ee],previousValue:R[ee]})}),z},b=x(J=>Object.keys(J)),B={key:!0,ref:!0,children:!0,style:!0},j=x(J=>Object.keys(J).filter(R=>!B[R])),X=["valueChange"],U=["componentProps","componentType","templateNames"],Z=J=>Object.keys(J).reduce((R,L)=>(void 0!==J[L]&&(R[L]=J[L]),R),{}),M={};let H=(()=>{class J extends T.JP{get config(){return this.context[C.Q.id]?this.context[C.Q.id]:C.Q.defaultValue}constructor(L){super(L),this.state={},this.widgetRef=(0,m._3)(),this.getInstance=this.getInstance.bind(this),this.setupWidget=this.setupWidget.bind(this),this.updateWidget=this.updateWidget.bind(this)}createEffects(){return[new T.Lt(this.setupWidget,[]),new T.Lt(this.updateWidget,[this.props.componentProps,this.config,this.props.templateNames])]}updateEffects(){var L;null===(L=this._effects[1])||void 0===L||L.update([this.props.componentProps,this.config,this.props.templateNames])}setupWidget(){const L=new this.props.componentType(this.widgetRef.current,this.properties);return this.instance=L,()=>{L.dispose(),this.instance=null}}updateWidget(){const L=this.getInstance();if(!L)return;const G=function F(J,R){return j(J,R,"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:k)}(this.prevProps||{},this.properties);G.length&&(L.beginUpdate(),G.forEach(Q=>{let{path:z,value:K}=Q;L.option(z,K)}),L.endUpdate()),this.prevProps=this.properties}get properties(){var L;const G=Z(this.props.componentProps),{valueChange:Q}=G,z=(0,S.A)(G,X),K=(0,d.A)({rtlEnabled:!(null===(L=this.config)||void 0===L||!L.rtlEnabled),isRenovated:!0},z);return Q&&(K.onValueChanged=re=>{let{value:be}=re;return Q(be)}),this.props.templateNames.forEach(re=>{(0,T.rJ)(re,K,this)&&(K[re]=(be,ce,Re)=>{(0,T.Xm)(this.props.componentProps[re],{item:be,index:ce,container:Re},this)})}),K}get restAttributes(){return(0,S.A)(this.props,U)}getInstance(){return this.instance}render(){return(J=>{let{props:{componentProps:{className:R}},restAttributes:L,widgetRef:G}=J;return Z((0,m.bF)(1,"div",R,null,1,(0,d.A)({},L),null,G))})({props:(0,d.A)({},this.props),widgetRef:this.widgetRef,config:this.config,properties:this.properties,restAttributes:this.restAttributes})}}return J.defaultProps=M,J})()},827:(En,it,p)=>{"use strict";p.d(it,{i:()=>k,p:()=>w});var S=p(656),d=p(4303),m=p(5169),T=p(3349),C=p(8914);const e=["*"];let k=(()=>{class P extends T.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(x){this._setOption("accessKey",x)}get animation(){return this._getOption("animation")}set animation(x){this._setOption("animation",x)}get closeOnOutsideClick(){return this._getOption("closeOnOutsideClick")}set closeOnOutsideClick(x){this._setOption("closeOnOutsideClick",x)}get container(){return this._getOption("container")}set container(x){this._setOption("container",x)}get contentTemplate(){return this._getOption("contentTemplate")}set contentTemplate(x){this._setOption("contentTemplate",x)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(x){this._setOption("deferRendering",x)}get disabled(){return this._getOption("disabled")}set disabled(x){this._setOption("disabled",x)}get dragAndResizeArea(){return this._getOption("dragAndResizeArea")}set dragAndResizeArea(x){this._setOption("dragAndResizeArea",x)}get dragEnabled(){return this._getOption("dragEnabled")}set dragEnabled(x){this._setOption("dragEnabled",x)}get dragOutsideBoundary(){return this._getOption("dragOutsideBoundary")}set dragOutsideBoundary(x){this._setOption("dragOutsideBoundary",x)}get enableBodyScroll(){return this._getOption("enableBodyScroll")}set enableBodyScroll(x){this._setOption("enableBodyScroll",x)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(x){this._setOption("focusStateEnabled",x)}get fullScreen(){return this._getOption("fullScreen")}set fullScreen(x){this._setOption("fullScreen",x)}get height(){return this._getOption("height")}set height(x){this._setOption("height",x)}get hideOnOutsideClick(){return this._getOption("hideOnOutsideClick")}set hideOnOutsideClick(x){this._setOption("hideOnOutsideClick",x)}get hideOnParentScroll(){return this._getOption("hideOnParentScroll")}set hideOnParentScroll(x){this._setOption("hideOnParentScroll",x)}get hint(){return this._getOption("hint")}set hint(x){this._setOption("hint",x)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(x){this._setOption("hoverStateEnabled",x)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(x){this._setOption("maxHeight",x)}get maxWidth(){return this._getOption("maxWidth")}set maxWidth(x){this._setOption("maxWidth",x)}get minHeight(){return this._getOption("minHeight")}set minHeight(x){this._setOption("minHeight",x)}get minWidth(){return this._getOption("minWidth")}set minWidth(x){this._setOption("minWidth",x)}get position(){return this._getOption("position")}set position(x){this._setOption("position",x)}get resizeEnabled(){return this._getOption("resizeEnabled")}set resizeEnabled(x){this._setOption("resizeEnabled",x)}get restorePosition(){return this._getOption("restorePosition")}set restorePosition(x){this._setOption("restorePosition",x)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(x){this._setOption("rtlEnabled",x)}get shading(){return this._getOption("shading")}set shading(x){this._setOption("shading",x)}get shadingColor(){return this._getOption("shadingColor")}set shadingColor(x){this._setOption("shadingColor",x)}get showCloseButton(){return this._getOption("showCloseButton")}set showCloseButton(x){this._setOption("showCloseButton",x)}get showTitle(){return this._getOption("showTitle")}set showTitle(x){this._setOption("showTitle",x)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(x){this._setOption("tabIndex",x)}get title(){return this._getOption("title")}set title(x){this._setOption("title",x)}get titleTemplate(){return this._getOption("titleTemplate")}set titleTemplate(x){this._setOption("titleTemplate",x)}get toolbarItems(){return this._getOption("toolbarItems")}set toolbarItems(x){this._setOption("toolbarItems",x)}get visible(){return this._getOption("visible")}set visible(x){this._setOption("visible",x)}get width(){return this._getOption("width")}set width(x){this._setOption("width",x)}get wrapperAttr(){return this._getOption("wrapperAttr")}set wrapperAttr(x){this._setOption("wrapperAttr",x)}onContentReady;onDisposing;onHidden;onHiding;onInitialized;onOptionChanged;onResize;onResizeEnd;onResizeStart;onShowing;onShown;onTitleRendered;accessKeyChange;animationChange;closeOnOutsideClickChange;containerChange;contentTemplateChange;deferRenderingChange;disabledChange;dragAndResizeAreaChange;dragEnabledChange;dragOutsideBoundaryChange;enableBodyScrollChange;focusStateEnabledChange;fullScreenChange;heightChange;hideOnOutsideClickChange;hideOnParentScrollChange;hintChange;hoverStateEnabledChange;maxHeightChange;maxWidthChange;minHeightChange;minWidthChange;positionChange;resizeEnabledChange;restorePositionChange;rtlEnabledChange;shadingChange;shadingColorChange;showCloseButtonChange;showTitleChange;tabIndexChange;titleChange;titleTemplateChange;toolbarItemsChange;visibleChange;widthChange;wrapperAttrChange;get toolbarItemsChildren(){return this._getOption("toolbarItems")}set toolbarItemsChildren(x){this.setChildren("toolbarItems",x)}constructor(x,b,B,j,F,X,U,Z){super(x,b,B,j,U,Z),this._watcherHelper=j,this._idh=F,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"hidden",emit:"onHidden"},{subscribe:"hiding",emit:"onHiding"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"resize",emit:"onResize"},{subscribe:"resizeEnd",emit:"onResizeEnd"},{subscribe:"resizeStart",emit:"onResizeStart"},{subscribe:"showing",emit:"onShowing"},{subscribe:"shown",emit:"onShown"},{subscribe:"titleRendered",emit:"onTitleRendered"},{emit:"accessKeyChange"},{emit:"animationChange"},{emit:"closeOnOutsideClickChange"},{emit:"containerChange"},{emit:"contentTemplateChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"dragAndResizeAreaChange"},{emit:"dragEnabledChange"},{emit:"dragOutsideBoundaryChange"},{emit:"enableBodyScrollChange"},{emit:"focusStateEnabledChange"},{emit:"fullScreenChange"},{emit:"heightChange"},{emit:"hideOnOutsideClickChange"},{emit:"hideOnParentScrollChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"maxHeightChange"},{emit:"maxWidthChange"},{emit:"minHeightChange"},{emit:"minWidthChange"},{emit:"positionChange"},{emit:"resizeEnabledChange"},{emit:"restorePositionChange"},{emit:"rtlEnabledChange"},{emit:"shadingChange"},{emit:"shadingColorChange"},{emit:"showCloseButtonChange"},{emit:"showTitleChange"},{emit:"tabIndexChange"},{emit:"titleChange"},{emit:"titleTemplateChange"},{emit:"toolbarItemsChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapperAttrChange"}]),this._idh.setHost(this),X.setHost(this)}_createInstance(x,b){return new m.A(x,b)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(x){super.ngOnChanges(x),this.setupChanges("toolbarItems",x)}setupChanges(x,b){x in this._optionsToUpdate||this._idh.setup(x,b)}ngDoCheck(){this._idh.doCheck("toolbarItems"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(x,b){let B=this._idh.setupSingle(x,b),j=null!==this._idh.getChanges(x,b);(B||j)&&super._setOption(x,b)}static \u0275fac=function(b){return new(b||P)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.$M),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:P,selectors:[["dx-popup"]],contentQueries:function(b,B,j){if(1&b&&d.wni(j,C.JjR,4),2&b){let F;d.mGM(F=d.lsd())&&(B.toolbarItemsChildren=F)}},inputs:{accessKey:"accessKey",animation:"animation",closeOnOutsideClick:"closeOnOutsideClick",container:"container",contentTemplate:"contentTemplate",deferRendering:"deferRendering",disabled:"disabled",dragAndResizeArea:"dragAndResizeArea",dragEnabled:"dragEnabled",dragOutsideBoundary:"dragOutsideBoundary",enableBodyScroll:"enableBodyScroll",focusStateEnabled:"focusStateEnabled",fullScreen:"fullScreen",height:"height",hideOnOutsideClick:"hideOnOutsideClick",hideOnParentScroll:"hideOnParentScroll",hint:"hint",hoverStateEnabled:"hoverStateEnabled",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",position:"position",resizeEnabled:"resizeEnabled",restorePosition:"restorePosition",rtlEnabled:"rtlEnabled",shading:"shading",shadingColor:"shadingColor",showCloseButton:"showCloseButton",showTitle:"showTitle",tabIndex:"tabIndex",title:"title",titleTemplate:"titleTemplate",toolbarItems:"toolbarItems",visible:"visible",width:"width",wrapperAttr:"wrapperAttr"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onHidden:"onHidden",onHiding:"onHiding",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onResize:"onResize",onResizeEnd:"onResizeEnd",onResizeStart:"onResizeStart",onShowing:"onShowing",onShown:"onShown",onTitleRendered:"onTitleRendered",accessKeyChange:"accessKeyChange",animationChange:"animationChange",closeOnOutsideClickChange:"closeOnOutsideClickChange",containerChange:"containerChange",contentTemplateChange:"contentTemplateChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",dragAndResizeAreaChange:"dragAndResizeAreaChange",dragEnabledChange:"dragEnabledChange",dragOutsideBoundaryChange:"dragOutsideBoundaryChange",enableBodyScrollChange:"enableBodyScrollChange",focusStateEnabledChange:"focusStateEnabledChange",fullScreenChange:"fullScreenChange",heightChange:"heightChange",hideOnOutsideClickChange:"hideOnOutsideClickChange",hideOnParentScrollChange:"hideOnParentScrollChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",maxHeightChange:"maxHeightChange",maxWidthChange:"maxWidthChange",minHeightChange:"minHeightChange",minWidthChange:"minWidthChange",positionChange:"positionChange",resizeEnabledChange:"resizeEnabledChange",restorePositionChange:"restorePositionChange",rtlEnabledChange:"rtlEnabledChange",shadingChange:"shadingChange",shadingColorChange:"shadingColorChange",showCloseButtonChange:"showCloseButtonChange",showTitleChange:"showTitleChange",tabIndexChange:"tabIndexChange",titleChange:"titleChange",titleTemplateChange:"titleTemplateChange",toolbarItemsChange:"toolbarItemsChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapperAttrChange:"wrapperAttrChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH,T.$M]),d.Vt3,d.OA$],ngContentSelectors:e,decls:1,vars:0,template:function(b,B){1&b&&(d.NAR(),d.SdG(0))},encapsulation:2})}return P})(),w=(()=>{class P{static \u0275fac=function(b){return new(b||P)};static \u0275mod=d.$C({type:P});static \u0275inj=S.G2t({imports:[C.YLo,C.YaD,C.eNx,C.Bkf,C.nwt,C.hXw,C.YGc,C.gf0,C.rvW,C.Tob,C.$Ql,C.isg,T.p_,T.xZ,C.YLo,C.YaD,C.eNx,C.Bkf,C.nwt,C.hXw,C.YGc,C.gf0,C.rvW,C.Tob,C.$Ql,C.isg,T.xZ]})}return P})()},842:(En,it,p)=>{"use strict";p.d(it,{A:()=>ue});var S=p(65),d=p(7543),m=p(4773),T=p(3008),C=p(5340),e=p(5050),k=p(1023),w=p(3746),P=p(3378),v=p(7829),x=p(6394);class b{constructor(Te,je,Ne,lt,Qe,Ct,yt){this.url=Te,this.data=je,this.createdOn=Ne,this.mimeType=lt,this.tag=Qe,this.width=Ct,this.height=yt}}var j=p(3438);const X=new class F extends j.Ay{constructor(){super("ImageDB"),this.version(2).stores({images:"&url"}),this.images.mapToClass(b)}};function R(me){return X.images.where("url").equals(me).toArray()}var Q=p(656),z=p(6098);let K=(()=>{var me;class Te{constructor(Ne,lt){this.sanitizer=Ne,this.httpClient=lt}getImageSrc(Ne){var lt=this;return(0,x.A)(function*(){return yield lt.getImageURL(Ne)})()}getImageURL(Ne){var lt=this;return(0,x.A)(function*(){let Qe=yield R(Ne);if(0==Qe.length)try{let yt=yield lt.fetchImage(Ne);return null!=yt?(lt.saveImageToDatabase(Ne,yt),{data:Ne,from:"network"}):{data:Ne,from:"network"}}catch{return{data:Ne,from:"network"}}const Ct=lt.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(Qe[0].data));return{data:lt.getSafeImageUrl(Ct),from:"cache"}})()}getSafeImageUrl(Ne){return`${Ne.changingThisBreaksApplicationSecurity}`}fetchImage(Ne){var lt=this;return(0,x.A)(function*(){try{return(yield lt.httpClient.get(Ne,{responseType:"blob"}).toPromise())??null}catch{return Promise.resolve(null)}})()}saveImageToDatabase(Ne,lt){return(0,x.A)(function*(){0==(yield R(Ne)).length&&function H(me){X.images.put(me)}(new b(Ne,lt,new Date,lt.type))})()}static#e=me=()=>(this.\u0275fac=function(lt){return new(lt||Te)(Q.KVO(z.up),Q.KVO(S.Qq))},this.\u0275prov=Q.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"}))}return me(),Te})();var ee=p(5908),re=p(5452),be=p(8747),ce=p(4303);let Re=(()=>{var me;class Te{constructor(){this.videoId="",this.title="Video Play Title"}close(){const Ne=document.getElementById("apicodo-modal");Ne&&Ne.remove()}static#e=me=()=>(this.\u0275fac=function(lt){return new(lt||Te)},this.\u0275cmp=ce.VBU({type:Te,selectors:[["app-media-play-dialog"]],inputs:{videoId:"videoId",title:"title"},decls:8,vars:1,consts:[[1,"modal-backdrop",3,"click"],[1,"modal-content"],[1,"close-button",3,"click"],[1,"modal-title"],[1,"modal-body"],[1,"apicodo-media","apicodo-media-video"]],template:function(lt,Qe){1&lt&&(ce.rj2(0,"div",0),ce.VwU("click",function(){return Qe.close()}),ce.eux(),ce.rj2(1,"div",1)(2,"button",2),ce.VwU("click",function(){return Qe.close()}),ce.EFF(3,"X"),ce.eux(),ce.rj2(4,"h4",3),ce.EFF(5),ce.eux(),ce.rj2(6,"div",4),ce.Hgh(7,"div",5),ce.eux()()),2&lt&&(ce.R7$(5),ce.JRh(Qe.title))},styles:[".modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;z-index:1000}.modal-content[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;padding:20px;z-index:1001;box-shadow:0 2px 10px #0000001a;border-radius:8px}.close-button[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;background:none;border:none;font-size:1.5rem;cursor:pointer}"]}))}return me(),Te})(),Se=(()=>{var me;class Te{constructor(Ne,lt,Qe){this.componentFactoryResolver=Ne,this.appRef=lt,this.injector=Qe}openApicodoVideo(Ne){const lt=this.componentFactoryResolver.resolveComponentFactory(Re).create(this.injector);lt.instance.videoId=Ne,this.appRef.attachView(lt.hostView);const Qe=lt.hostView.rootNodes[0];Qe.id="apicodo-modal",document.body.appendChild(Qe)}static#e=me=()=>(this.\u0275fac=function(lt){return new(lt||Te)(Q.KVO(ce.OM3),Q.KVO(ce.o8S),Q.KVO(Q.zZn))},this.\u0275prov=Q.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"}))}return me(),Te})();var De=p(8832),Pe=p(275),Ie=p(6078),W=p(3341),ie=p(242),he=p(5626),Ce=p(7096),ye=p(6117),Me=p(6449),_e=p(2385),ke=p(1356),Ye=p(3943),de=p(5634),Ae=p(4077),pe=p(2831),Ee=p(756),le=p(9090),Ke=p(8621),Be=p(6104),q=p(4500),Oe=p(9867);function We(me,Te,...je){if(!0===Te)return void me();if(!1===Te)return;const Ne=new q.Ms({next:()=>{Ne.unsubscribe(),me()}});return(0,Ke.Tg)(Te(...je)).subscribe(Ne)}var Ve=p(6347),tt=p(3527),at=p(4526),Vt=p(8823);const qe=new S.rx(()=>!1);let Nt=(()=>{var me;class Te{constructor(Ne,lt){if(this.http=Ne,this.scopeService=lt,this.hasSession=typeof window<"u"&&typeof sessionStorage<"u",this.storageKey="auth.token",this.ctx=(0,Q.vPA)(null),this.tokenSig=(0,Q.vPA)(null),this.refresh$=null,this.miniScope=this.scopeService.getMiniScope(),this.hasSession){const Qe=sessionStorage.getItem(this.storageKey);if(Qe)try{this.tokenSig.set(JSON.parse(Qe))}catch{}}}setContext(Ne){this.ctx.set(Ne)}getValidAccessToken(){const Ne=this.tokenSig();return Ne&&!this.isExpired(Ne)?(0,Ee.of)(Ne.accessToken):this.refreshTokenSafe()}clear(){this.tokenSig.set(null),this.hasSession&&sessionStorage.removeItem(this.storageKey)}refreshTokenSafe(Ne=!1){return Ne&&(this.refresh$=null),this.refresh$||(this.refresh$=this.refreshToken().pipe(function Ue(me,Te,je){let Ne,lt=!1;return me&&"object"==typeof me?({bufferSize:Ne=1/0,windowTime:Te=1/0,refCount:lt=!1,scheduler:je}=me):Ne=me??1/0,function fe(me={}){const{connector:Te=()=>new Be.B,resetOnError:je=!0,resetOnComplete:Ne=!0,resetOnRefCountZero:lt=!0}=me;return Qe=>{let Ct,yt,Gt,ft=0,nn=!1,rn=!1;const Mn=()=>{yt?.unsubscribe(),yt=void 0},On=()=>{Mn(),Ct=Gt=void 0,nn=rn=!1},ji=()=>{const Mi=Ct;On(),Mi?.unsubscribe()};return(0,Oe.N)((Mi,Vo)=>{ft++,!rn&&!nn&&Mn();const Co=Gt=Gt??Te();Vo.add(()=>{ft--,0===ft&&!rn&&!nn&&(yt=We(ji,lt))}),Co.subscribe(Vo),!Ct&&ft>0&&(Ct=new q.Ms({next:ti=>Co.next(ti),error:ti=>{rn=!0,Mn(),yt=We(On,je,ti),Co.error(ti)},complete:()=>{nn=!0,Mn(),yt=We(On,Ne),Co.complete()}}),(0,Ke.Tg)(Mi).subscribe(Ct))})(Qe)}}({connector:()=>new le.m(Ne,Te,je),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:lt})}({bufferSize:1,refCount:!1}),(0,Ve.j)(()=>this.refresh$=null))),this.refresh$}forceRefresh(){return this.refreshTokenSafe(!0)}refreshToken(){return this.http.get(`${this.miniScope.apiEndpoint}Account/MyAccessToken`,{context:(new S._y).set(qe,!0)}).pipe((0,tt.T)(lt=>{if(!lt?.accessToken)throw this.clear(),new Error("AuthService: Got no access token.");const Qe={accessToken:lt.accessToken,tokenType:lt.tokenType??"Bearer",expiresOnUtc:lt.expiresOnUtc,refreshToken:lt.refreshToken};return this.tokenSig.set(Qe),this.hasSession&&sessionStorage.setItem(this.storageKey,JSON.stringify(Qe)),Qe.accessToken}),(0,at.W)(lt=>(this.clear(),(0,Vt.$)(()=>lt))))}isExpired(Ne){const lt=Date.now(),Qe="string"==typeof Ne.expiresOnUtc?Date.parse(Ne.expiresOnUtc):new Date(Ne.expiresOnUtc).getTime();return!!Number.isNaN(Qe)||Qe-lt<=6e4}static#e=me=()=>(this.\u0275fac=function(lt){return new(lt||Te)(Q.KVO(S.Qq),Q.KVO(w.A))},this.\u0275prov=Q.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"}))}return me(),Te})();const et=(me,Te)=>{if(me.context.get(qe))return Te(me);const Ne=(0,Q.WQX)(w.A).getScope().globalSettings.configurations.apiGatewayUrl;return me.url.startsWith(Ne)?(0,Q.WQX)(Nt).getValidAccessToken().pipe((0,pe.n)(Qe=>Te(me.clone({setHeaders:{Authorization:`Bearer ${Qe}`}})))):Te(me)};let ue=(()=>{var me;class Te{static#e=me=()=>(this.\u0275fac=function(lt){return new(lt||Te)},this.\u0275mod=ce.$C({type:Te}),this.\u0275inj=Q.G2t({providers:[(0,S.$R)((0,S.b$)([et])),w.A,e.A,C.A,T.p,d.u,T.p,m.A,P.d,k.A,K,ee.M,re.g,be.j,Me.u,Se,Ie._,Pe.P,W.p,ie.E,he.o,Ce.a,ye.u,_e.O,ke.J,Ye.R,de.q],imports:[v.MD,De.YN,Ae.p]}))}return me(),Te})()},851:(En,it,p)=>{"use strict";p.d(it,{A:()=>Z});const S={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",darkgreen:"006400",darkgrey:"a9a9a9",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",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",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",rebeccapurple:"663399",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",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},d=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(A){return[parseInt(A[1],10),parseInt(A[2],10),parseInt(A[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(A){return[parseInt(A[1],10),parseInt(A[2],10),parseInt(A[3],10),parseFloat(A[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(A){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(A){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16),Number((parseInt(A[4],16)/255).toFixed(2))]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(A){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16),Number((parseInt(A[4]+A[4],16)/255).toFixed(2))]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(A){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(A){const M=parseInt(A[1],10),H=parseInt(A[2],10),J=parseInt(A[3],10),R=P(M,H,J);return[R[0],R[1],R[2],1,[M,H,J]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(A){const M=parseInt(A[1],10),H=parseInt(A[2],10),J=parseInt(A[3],10),R=F(M,H,J);return[R[0],R[1],R[2],1,null,[M,H,J]]}}],m=Math.round;function T(A){let M;this.baseColor=A,A&&(M=String(A).toLowerCase().replace(/ /g,""),M=S[M]?"#"+S[M]:M,M=function C(A){if("transparent"===A)return[0,0,0,0];let M=0;const H=d.length;let J;for(;M<H;++M)if(J=d[M].re.exec(A),J)return d[M].process(J);return null}(M)),M||(this.colorIsInvalid=!0),M=M||{},this.r=e(M[0]),this.g=e(M[1]),this.b=e(M[2]),this.a=e(M[3],1,1),this.hsv=M[4]?{h:M[4][0],s:M[4][1],v:M[4][2]}:function w(A,M,H){const J=Math.max(A,M,H),R=Math.min(A,M,H),L=J-R;let G,Q,z=J;if(Q=0===J?0:1-R/J,J===R)G=0;else switch(J){case A:G=(M-H)/L*60,M<H&&(G+=360);break;case M:G=(H-A)/L*60+120;break;case H:G=(A-M)/L*60+240}return Q*=100,z*=100/255,{h:Math.round(G),s:Math.round(Q),v:Math.round(z)}}(this.r,this.g,this.b),this.hsl=M[5]?{h:M[5][0],s:M[5][1],l:M[5][2]}:function x(A,M,H){A=X(A,255),M=X(M,255),H=X(H,255);const J=Math.max(A,M,H),R=Math.min(A,M,H),L=J+R;let G,Q;const z=L/2;if(J===R)G=Q=0;else{const K=J-R;Q=z>.5?K/(2-L):K/L,G=function v(A,M,H,J){switch(Math.max(A,M,H)){case A:return(M-H)/J+(M<H?6:0);case M:return(H-A)/J+2;case H:return(A-M)/J+4}}(A,M,H,K),G/=6}return{h:m(360*G),s:m(100*Q),l:m(100*z)}}(this.r,this.g,this.b)}function e(A,M,H){return M=M||0,H=H||255,A<0||isNaN(A)?M:A>H?H:A}function P(A,M,H){const R=(100-M)*H/100,L=A%60/60*(H-R),G=R+L,Q=H-L;let z,K,ee;switch(Math.floor(A%360/60)){case 0:z=H,K=G,ee=R;break;case 1:z=Q,K=H,ee=R;break;case 2:z=R,K=H,ee=G;break;case 3:z=R,K=Q,ee=H;break;case 4:z=G,K=R,ee=H;break;case 5:z=H,K=R,ee=Q}return[Math.round(2.55*z),Math.round(2.55*K),Math.round(2.55*ee)]}function b(A,M){let H=M;return"r"===A&&(H=M+1/3),"b"===A&&(H=M-1/3),H}function j(A,M,H){return H=function B(A){return A<0&&(A+=1),A>1&&(A-=1),A}(H),H<1/6?A+6*(M-A)*H:H<.5?M:H<2/3?A+(M-A)*(2/3-H)*6:A}function F(A,M,H){let J,R,L;if(A=X(A,360),M=X(M,100),H=X(H,100),0===M)J=R=L=H;else{const G=H<.5?H*(1+M):H+M-H*M,Q=2*H-G;J=j(Q,G,b("r",A)),R=j(Q,G,b("g",A)),L=j(Q,G,b("b",A))}return[m(255*J),m(255*R),m(255*L)]}function X(A,M){return A=Math.min(M,Math.max(0,parseFloat(A))),Math.abs(A-M)<1e-6?1:A%M/parseFloat(M)}function U(A,M,H){return M=M||0,H=H||255,!(A%1!=0||A<M||A>H||"number"!=typeof A||isNaN(A))}T.prototype={constructor:T,highlight:function(A){return this.alter(A=A||10).toHex()},darken:function(A){return this.alter(-(A=A||10)).toHex()},alter:function(A){const M=new T;return M.r=e(this.r+A),M.g=e(this.g+A),M.b=e(this.b+A),M},blend:function(A,M){const H=A instanceof T?A:new T(A),J=new T;return J.r=e(m(this.r*(1-M)+H.r*M)),J.g=e(m(this.g*(1-M)+H.g*M)),J.b=e(m(this.b*(1-M)+H.b*M)),J},toHex:function(){return function k(A,M,H){return"#"+(16777216|A<<16|M<<8|H).toString(16).slice(1)}(this.r,this.g,this.b)},getPureColor:function(){return new T("rgb("+P(this.hsv.h,100,100).join(",")+")")},isValidHex:function(A){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(A)},isValidRGB:function(A,M,H){return!(!U(A)||!U(M)||!U(H))},isValidAlpha:function(A){return!(isNaN(A)||A<0||A>1||"number"!=typeof A)},colorIsInvalid:!1,fromHSL:function(A){const M=new T,H=F(A.h,A.s,A.l);return M.r=H[0],M.g=H[1],M.b=H[2],M}};const Z=T},862:(En,it,p)=>{"use strict";p.d(it,{Z:()=>P,m:()=>w});var S=p(656),d=p(4303),m=p(8910),T=p(8832),C=p(3349),e=p(8914);const k={provide:T.kq,useExisting:(0,S.Rfq)(()=>w),multi:!0};let w=(()=>{class v extends C.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(b){this._setOption("accessKey",b)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(b){this._setOption("activeStateEnabled",b)}get buttons(){return this._getOption("buttons")}set buttons(b){this._setOption("buttons",b)}get disabled(){return this._getOption("disabled")}set disabled(b){this._setOption("disabled",b)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(b){this._setOption("elementAttr",b)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(b){this._setOption("focusStateEnabled",b)}get height(){return this._getOption("height")}set height(b){this._setOption("height",b)}get hint(){return this._getOption("hint")}set hint(b){this._setOption("hint",b)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(b){this._setOption("hoverStateEnabled",b)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(b){this._setOption("inputAttr",b)}get isDirty(){return this._getOption("isDirty")}set isDirty(b){this._setOption("isDirty",b)}get isValid(){return this._getOption("isValid")}set isValid(b){this._setOption("isValid",b)}get label(){return this._getOption("label")}set label(b){this._setOption("label",b)}get labelMode(){return this._getOption("labelMode")}set labelMode(b){this._setOption("labelMode",b)}get mask(){return this._getOption("mask")}set mask(b){this._setOption("mask",b)}get maskChar(){return this._getOption("maskChar")}set maskChar(b){this._setOption("maskChar",b)}get maskInvalidMessage(){return this._getOption("maskInvalidMessage")}set maskInvalidMessage(b){this._setOption("maskInvalidMessage",b)}get maskRules(){return this._getOption("maskRules")}set maskRules(b){this._setOption("maskRules",b)}get maxLength(){return this._getOption("maxLength")}set maxLength(b){this._setOption("maxLength",b)}get mode(){return this._getOption("mode")}set mode(b){this._setOption("mode",b)}get name(){return this._getOption("name")}set name(b){this._setOption("name",b)}get placeholder(){return this._getOption("placeholder")}set placeholder(b){this._setOption("placeholder",b)}get readOnly(){return this._getOption("readOnly")}set readOnly(b){this._setOption("readOnly",b)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(b){this._setOption("rtlEnabled",b)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(b){this._setOption("showClearButton",b)}get showMaskMode(){return this._getOption("showMaskMode")}set showMaskMode(b){this._setOption("showMaskMode",b)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(b){this._setOption("spellcheck",b)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(b){this._setOption("stylingMode",b)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(b){this._setOption("tabIndex",b)}get text(){return this._getOption("text")}set text(b){this._setOption("text",b)}get useMaskedValue(){return this._getOption("useMaskedValue")}set useMaskedValue(b){this._setOption("useMaskedValue",b)}get validationError(){return this._getOption("validationError")}set validationError(b){this._setOption("validationError",b)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(b){this._setOption("validationErrors",b)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(b){this._setOption("validationMessageMode",b)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(b){this._setOption("validationMessagePosition",b)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(b){this._setOption("validationStatus",b)}get value(){return this._getOption("value")}set value(b){this._setOption("value",b)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(b){this._setOption("valueChangeEvent",b)}get visible(){return this._getOption("visible")}set visible(b){this._setOption("visible",b)}get width(){return this._getOption("width")}set width(b){this._setOption("width",b)}onChange;onContentReady;onCopy;onCut;onDisposing;onEnterKey;onFocusIn;onFocusOut;onInitialized;onInput;onKeyDown;onKeyUp;onOptionChanged;onPaste;onValueChanged;accessKeyChange;activeStateEnabledChange;buttonsChange;disabledChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;inputAttrChange;isDirtyChange;isValidChange;labelChange;labelModeChange;maskChange;maskCharChange;maskInvalidMessageChange;maskRulesChange;maxLengthChange;modeChange;nameChange;placeholderChange;readOnlyChange;rtlEnabledChange;showClearButtonChange;showMaskModeChange;spellcheckChange;stylingModeChange;tabIndexChange;textChange;useMaskedValueChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;valueChangeEventChange;visibleChange;widthChange;onBlur;change(b){}touched=b=>{};get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(b){this.setChildren("buttons",b)}constructor(b,B,j,F,X,U,Z,A){super(b,B,j,F,Z,A),this._watcherHelper=F,this._idh=X,this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maskChange"},{emit:"maskCharChange"},{emit:"maskInvalidMessageChange"},{emit:"maskRulesChange"},{emit:"maxLengthChange"},{emit:"modeChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showMaskModeChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useMaskedValueChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),U.setHost(this)}_createInstance(b,B){return new m.A(b,B)}writeValue(b){this.eventHelper.lockedValueChangeEvent=!0,this.value=b,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(b){this.disabled=b}registerOnChange(b){this.change=b}registerOnTouched(b){this.touched=b}_createWidget(b){super._createWidget(b),this.instance.on("focusOut",B=>{this.eventHelper.fireNgEvent("onBlur",[B])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(b){super.ngOnChanges(b),this.setupChanges("buttons",b),this.setupChanges("validationErrors",b)}setupChanges(b,B){b in this._optionsToUpdate||this._idh.setup(b,B)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(b,B){let j=this._idh.setupSingle(b,B),F=null!==this._idh.getChanges(b,B);(j||F)&&super._setOption(b,B)}static \u0275fac=function(B){return new(B||v)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(C.zF),d.rXU(C.jS),d.rXU(C.$M),d.rXU(C.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:v,selectors:[["dx-text-box"]],contentQueries:function(B,j,F){if(1&B&&d.wni(F,e.BrI,4),2&B){let X;d.mGM(X=d.lsd())&&(j.buttonsChildren=X)}},hostBindings:function(B,j){1&B&&d.bIt("valueChange",function(X){return j.change(X)})("onBlur",function(X){return j.touched(X)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isDirty:"isDirty",isValid:"isValid",label:"label",labelMode:"labelMode",mask:"mask",maskChar:"maskChar",maskInvalidMessage:"maskInvalidMessage",maskRules:"maskRules",maxLength:"maxLength",mode:"mode",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showMaskMode:"showMaskMode",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useMaskedValue:"useMaskedValue",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maskChange:"maskChange",maskCharChange:"maskCharChange",maskInvalidMessageChange:"maskInvalidMessageChange",maskRulesChange:"maskRulesChange",maxLengthChange:"maxLengthChange",modeChange:"modeChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showMaskModeChange:"showMaskModeChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useMaskedValueChange:"useMaskedValueChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[d.Jv_([C.zF,C.jS,k,C.fH,C.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(B,j){},encapsulation:2})}return v})(),P=(()=>{class v{static \u0275fac=function(B){return new(B||v)};static \u0275mod=d.$C({type:v});static \u0275inj=S.G2t({imports:[e.GIV,e.u4t,C.p_,C.xZ,e.GIV,e.u4t,C.xZ]})}return v})()},893:(En,it,p)=>{"use strict";p.d(it,{Z:()=>me});var S=p(7829),d=p(9055),m=p(4925),T=p(4539),C=p(6553),e=p(444),k=p(339),w=p(6523),P=p(6761),v=p(8041),x=p(4303),b=p(656),B=p(1973),j=p(5973),F=p(6054),X=p(9522),U=p(5704),Z=p(4859),A=p(6021),M=p(3090),H=p(2660),J=p(1830),R=p(4072),L=p(9293),G=p(5267),Q=p(402),z=p(3684),K=p(6163);const{getActiveElement:ee}=F.A,ce=j.A.real(),Re=z.A.inherit({_supportedKeys(){return(0,M.X)({},this.callBase(),{tab(Te){if(!this.option("opened"))return;const je=this._getTabbableElements(),Ne=Te.shiftKey?je.last():je.first();Ne&&R.A.trigger(Ne,"focus"),Te.preventDefault()}})},_getTabbableElements(){return this._getElements().filter(Q.Kr)},_getElements(){return(0,U.A)(this.content()).find("*")},_getDefaultOptions(){return(0,M.X)(this.callBase(),{acceptCustomValue:!1,contentTemplate:"content",openOnFieldClick:!0,displayValueFormatter:Te=>Array.isArray(Te)?Te.join(", "):Te,useHiddenSubmitElement:!0})},_getAnonymousTemplateName:()=>"content",_initTemplates(){this.callBase()},_initMarkup(){this._initDataExpressions(),this.$element().addClass("dx-dropdownbox"),this.callBase()},_setSubmitValue(){const Te=this.option("value"),je=this._shouldUseDisplayValue(Te)?this._displayGetter(Te):Te;this._getSubmitElement().val(je)},_shouldUseDisplayValue(Te){return"this"===this.option("valueExpr")&&(0,J.Gv)(Te)},_sortValuesByKeysOrder:(Te,je)=>je.sort((lt,Qe)=>Te.indexOf(lt.itemKey)-Te.indexOf(Qe.itemKey)).map(lt=>lt.itemDisplayValue),_renderInputValue(){this._rejectValueLoading();const Te=[];if(!this._dataSource)return this.callBase(Te),(0,A.cY)().resolve();let Ne=this._getCurrentValue()??[];Ne=Array.isArray(Ne)?Ne:[Ne];const lt=(0,H.Tj)(Ne,Ct=>{const yt=(0,A.cY)();return this._loadItem(Ct).always(Gt=>{const ft=this._displayGetter(Gt);(0,J.O9)(ft)?Te.push({itemKey:Ct,itemDisplayValue:ft}):this.option("acceptCustomValue")&&Te.push({itemKey:Ct,itemDisplayValue:Ct}),yt.resolve()}),yt}),Qe=this.callBase.bind(this);return A.z7.apply(this,lt).always(()=>{const Ct=this._sortValuesByKeysOrder(Ne,Te);this.option("displayValue",Ct),Qe(Te.length&&Ct)})},_loadItem(Te){const je=(0,A.cY)(),Ne=this,lt=(0,Z.VM)(this.option("items")||[],Qe=>this._isValueEquals(this._valueGetter(Qe),Te))[0];return void 0!==lt?je.resolve(lt):this._loadValue(Te).done(Qe=>{je.resolve(Qe)}).fail(Qe=>{null!=Qe&&Qe.shouldSkipCallback||(Ne.option("acceptCustomValue")?je.resolve(Te):je.reject())}),je.promise()},_popupTabHandler(Te){if("tab"!==(0,L.YD)(Te))return;const je=this._getTabbableElements().first().get(0),Ne=this._getTabbableElements().last().get(0),lt=Te.target,Qe=!(lt!==je||!Te.shiftKey);(Qe||lt===Ne&&!Te.shiftKey)&&(this.close(),R.A.trigger(this._input(),"focus"),Qe&&Te.preventDefault())},_renderPopupContent(){if("content"===this.option("contentTemplate"))return;const Te=this._getTemplateByOption("contentTemplate");if(!Te||!this.option("contentTemplate"))return;const je=this._popup.$content(),Ne={value:this._fieldRenderData(),component:this};je.empty(),Te.render({container:(0,X.cc)(je),model:Ne})},_canShowVirtualKeyboard:()=>ce.mac,_isNestedElementActive(){const Te=ee();return Te&&this._popup.$content().get(0).contains(Te)},_shouldHideOnParentScroll(){return"desktop"===ce.deviceType&&this._canShowVirtualKeyboard()&&this._isNestedElementActive()},_popupHiddenHandler(){this.callBase(),this._popupPosition=void 0},_popupPositionedHandler(Te){this.callBase(Te),this._popupPosition=Te.position},_getDefaultPopupPosition(Te){const{my:je,at:Ne}=this.callBase(Te);return{my:je,at:Ne,offset:{v:-1},collision:"flipfit"}},_popupConfig(){const{focusStateEnabled:Te}=this.option();return(0,M.X)(this.callBase(),{tabIndex:-1,dragEnabled:!1,focusStateEnabled:Te,contentTemplate:"content",hideOnParentScroll:this._shouldHideOnParentScroll.bind(this),position:(0,M.X)(this.option("popupPosition"),{of:this.$element()}),_ignoreFunctionValueDeprecation:!0,maxHeight:function(){var je;const Ne=null===(je=this._popupPosition)||void 0===je?void 0:je.v.location;return(0,K.J)(this.$element(),Ne)}.bind(this)})},_popupShownHandler(){this.callBase();const Te=this._getTabbableElements().first();R.A.trigger(Te,"focus")},_setCollectionWidgetOption:Z.lQ,_optionChanged(Te){switch(this._dataExpressionOptionChanged(Te),Te.name){case"dataSource":this._renderInputValue();break;case"displayValue":this.option("text",Te.value);break;case"displayExpr":this._renderValue();break;case"contentTemplate":this._invalidate();break;default:this.callBase(Te)}}}).include(G.A);(0,B.A)("dxDropDownBox",Re);const De=Re;var Pe=p(8832),Ie=p(3349),W=p(8914);const ie=["*"],he={provide:Pe.kq,useExisting:(0,b.Rfq)(()=>Ce),multi:!0};let Ce=(()=>{class Te extends Ie.ic{_watcherHelper;_idh;instance=null;get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(Ne){this._setOption("acceptCustomValue",Ne)}get accessKey(){return this._getOption("accessKey")}set accessKey(Ne){this._setOption("accessKey",Ne)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(Ne){this._setOption("activeStateEnabled",Ne)}get buttons(){return this._getOption("buttons")}set buttons(Ne){this._setOption("buttons",Ne)}get contentTemplate(){return this._getOption("contentTemplate")}set contentTemplate(Ne){this._setOption("contentTemplate",Ne)}get dataSource(){return this._getOption("dataSource")}set dataSource(Ne){this._setOption("dataSource",Ne)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(Ne){this._setOption("deferRendering",Ne)}get disabled(){return this._getOption("disabled")}set disabled(Ne){this._setOption("disabled",Ne)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(Ne){this._setOption("displayExpr",Ne)}get displayValueFormatter(){return this._getOption("displayValueFormatter")}set displayValueFormatter(Ne){this._setOption("displayValueFormatter",Ne)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(Ne){this._setOption("dropDownButtonTemplate",Ne)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(Ne){this._setOption("dropDownOptions",Ne)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(Ne){this._setOption("elementAttr",Ne)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(Ne){this._setOption("fieldTemplate",Ne)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(Ne){this._setOption("focusStateEnabled",Ne)}get height(){return this._getOption("height")}set height(Ne){this._setOption("height",Ne)}get hint(){return this._getOption("hint")}set hint(Ne){this._setOption("hint",Ne)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(Ne){this._setOption("hoverStateEnabled",Ne)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(Ne){this._setOption("inputAttr",Ne)}get isDirty(){return this._getOption("isDirty")}set isDirty(Ne){this._setOption("isDirty",Ne)}get isValid(){return this._getOption("isValid")}set isValid(Ne){this._setOption("isValid",Ne)}get items(){return this._getOption("items")}set items(Ne){this._setOption("items",Ne)}get label(){return this._getOption("label")}set label(Ne){this._setOption("label",Ne)}get labelMode(){return this._getOption("labelMode")}set labelMode(Ne){this._setOption("labelMode",Ne)}get maxLength(){return this._getOption("maxLength")}set maxLength(Ne){this._setOption("maxLength",Ne)}get name(){return this._getOption("name")}set name(Ne){this._setOption("name",Ne)}get opened(){return this._getOption("opened")}set opened(Ne){this._setOption("opened",Ne)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(Ne){this._setOption("openOnFieldClick",Ne)}get placeholder(){return this._getOption("placeholder")}set placeholder(Ne){this._setOption("placeholder",Ne)}get readOnly(){return this._getOption("readOnly")}set readOnly(Ne){this._setOption("readOnly",Ne)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(Ne){this._setOption("rtlEnabled",Ne)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(Ne){this._setOption("showClearButton",Ne)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(Ne){this._setOption("showDropDownButton",Ne)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(Ne){this._setOption("stylingMode",Ne)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(Ne){this._setOption("tabIndex",Ne)}get text(){return this._getOption("text")}set text(Ne){this._setOption("text",Ne)}get validationError(){return this._getOption("validationError")}set validationError(Ne){this._setOption("validationError",Ne)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(Ne){this._setOption("validationErrors",Ne)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(Ne){this._setOption("validationMessageMode",Ne)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(Ne){this._setOption("validationMessagePosition",Ne)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(Ne){this._setOption("validationStatus",Ne)}get value(){return this._getOption("value")}set value(Ne){this._setOption("value",Ne)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(Ne){this._setOption("valueChangeEvent",Ne)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(Ne){this._setOption("valueExpr",Ne)}get visible(){return this._getOption("visible")}set visible(Ne){this._setOption("visible",Ne)}get width(){return this._getOption("width")}set width(Ne){this._setOption("width",Ne)}onChange;onClosed;onCopy;onCut;onDisposing;onEnterKey;onFocusIn;onFocusOut;onInitialized;onInput;onKeyDown;onKeyUp;onOpened;onOptionChanged;onPaste;onValueChanged;acceptCustomValueChange;accessKeyChange;activeStateEnabledChange;buttonsChange;contentTemplateChange;dataSourceChange;deferRenderingChange;disabledChange;displayExprChange;displayValueFormatterChange;dropDownButtonTemplateChange;dropDownOptionsChange;elementAttrChange;fieldTemplateChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;inputAttrChange;isDirtyChange;isValidChange;itemsChange;labelChange;labelModeChange;maxLengthChange;nameChange;openedChange;openOnFieldClickChange;placeholderChange;readOnlyChange;rtlEnabledChange;showClearButtonChange;showDropDownButtonChange;stylingModeChange;tabIndexChange;textChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;valueChangeEventChange;valueExprChange;visibleChange;widthChange;onBlur;change(Ne){}touched=Ne=>{};get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(Ne){this.setChildren("buttons",Ne)}get itemsChildren(){return this._getOption("items")}set itemsChildren(Ne){this.setChildren("items",Ne)}constructor(Ne,lt,Qe,Ct,yt,Gt,ft,nn){super(Ne,lt,Qe,Ct,ft,nn),this._watcherHelper=Ct,this._idh=yt,this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"contentTemplateChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"displayValueFormatterChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxLengthChange"},{emit:"nameChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),Gt.setHost(this)}_createInstance(Ne,lt){return new De(Ne,lt)}writeValue(Ne){this.eventHelper.lockedValueChangeEvent=!0,this.value=Ne,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(Ne){this.disabled=Ne}registerOnChange(Ne){this.change=Ne}registerOnTouched(Ne){this.touched=Ne}_createWidget(Ne){super._createWidget(Ne),this.instance.on("focusOut",lt=>{this.eventHelper.fireNgEvent("onBlur",[lt])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(Ne){super.ngOnChanges(Ne),this.setupChanges("buttons",Ne),this.setupChanges("dataSource",Ne),this.setupChanges("items",Ne),this.setupChanges("validationErrors",Ne)}setupChanges(Ne,lt){Ne in this._optionsToUpdate||this._idh.setup(Ne,lt)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(Ne,lt){let Qe=this._idh.setupSingle(Ne,lt),Ct=null!==this._idh.getChanges(Ne,lt);(Qe||Ct)&&super._setOption(Ne,lt)}static \u0275fac=function(lt){return new(lt||Te)(x.rXU(x.aKT),x.rXU(x.SKi),x.rXU(Ie.zF),x.rXU(Ie.jS),x.rXU(Ie.$M),x.rXU(Ie.fH),x.rXU(x.pJN),x.rXU(x.Agw))};static \u0275cmp=x.VBU({type:Te,selectors:[["dx-drop-down-box"]],contentQueries:function(lt,Qe,Ct){if(1&lt&&(x.wni(Ct,W.BrI,4),x.wni(Ct,W.CVf,4)),2&lt){let yt;x.mGM(yt=x.lsd())&&(Qe.buttonsChildren=yt),x.mGM(yt=x.lsd())&&(Qe.itemsChildren=yt)}},hostBindings:function(lt,Qe){1&lt&&x.bIt("valueChange",function(yt){return Qe.change(yt)})("onBlur",function(yt){return Qe.touched(yt)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",contentTemplate:"contentTemplate",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",displayValueFormatter:"displayValueFormatter",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isDirty:"isDirty",isValid:"isValid",items:"items",label:"label",labelMode:"labelMode",maxLength:"maxLength",name:"name",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width"},outputs:{onChange:"onChange",onClosed:"onClosed",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",contentTemplateChange:"contentTemplateChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",displayValueFormatterChange:"displayValueFormatterChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",itemsChange:"itemsChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxLengthChange:"maxLengthChange",nameChange:"nameChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[x.Jv_([Ie.zF,Ie.jS,he,Ie.fH,Ie.$M]),x.Vt3,x.OA$],ngContentSelectors:ie,decls:1,vars:0,template:function(lt,Qe){1&lt&&(x.NAR(),x.SdG(0))},encapsulation:2})}return Te})(),ye=(()=>{class Te{static \u0275fac=function(lt){return new(lt||Te)};static \u0275mod=x.$C({type:Te});static \u0275inj=b.G2t({imports:[W.GIV,W.u4t,W.df_,W.YLo,W.YaD,W.eNx,W.Bkf,W.nwt,W.hXw,W.YGc,W.gf0,W.rvW,W.Tob,W.$Ql,W.isg,W.POb,Ie.p_,Ie.xZ,W.GIV,W.u4t,W.df_,W.YLo,W.YaD,W.eNx,W.Bkf,W.nwt,W.hXw,W.YGc,W.gf0,W.rvW,W.Tob,W.$Ql,W.isg,W.POb,Ie.xZ]})}return Te})();var Me=p(3486),_e=p(8892),ke=p(3425),Ye=p(7421),de=p(1705),Ae=p(5455),pe=p(1983),Ee=p(2333),le=p(3070),Ke=p(4636),Be=p(827),q=p(2390),Oe=p(1197),fe=p(5463),We=p(7866),Ue=p(5947),Ve=p(2459),tt=p(7248),at=p(239),Vt=p(862),qe=p(3396),Nt=p(471),et=p(1767),ue=p(5102);let me=(()=>{var Te;class je{static#e=Te=()=>(this.\u0275fac=function(Qe){return new(Qe||je)},this.\u0275mod=x.$C({type:je}),this.\u0275inj=b.G2t({imports:[S.MD,d.Q,m.i,T.L,C.A,e.x,k.N,w.W,P.B,v.i,ye,Me.m,_e.b,ke.F,Ye.L,de.D,Ae.R,pe.S,Ee.t,le.I,Ke.p,Be.p,q.P,Oe.z,fe.S,We.t,Ue.d,Ve.B,tt.u,at.b,Vt.Z,Ie.xZ,qe.U,Nt.c,et.L,ue.k]}))}return Te(),je})()},912:(En,it,p)=>{"use strict";p.d(it,{A:()=>e});var S=p(608),d=p(3538),m=p(4859);const{abstract:T}=d.A,e=d.A.inherit({ctor(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start(){this._stopped=!1,this._finished=!1,this._stepCore()},stop(){this._stopped=!0,(0,S.u)(this._stepAnimationFrame)},_stepCore(){if(!this._isStopped())return this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=(0,S.x)(this._proxiedStepCore)));this._stop()},_step:T,_isFinished:m.lQ,_stop:m.lQ,_complete:m.lQ,_isStopped(){return this._stopped},inProgress(){return!(this._stopped||this._finished)}})},943:(En,it,p)=>{"use strict";p.d(it,{G:()=>d});const d=(0,p(4520).L)(m=>function(){m(this),this.name="EmptyError",this.message="no elements in sequence"})},974:(En,it,p)=>{"use strict";p.d(it,{A:()=>d});var S=p(5704);class d{constructor(T,C,e){this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=C,this.name=T,this.options=e||{}}_addPlaceMarker(T){this.$placeMarker=(0,S.A)("<div>").appendTo(T)}_addToContainer(T){const{$placeMarker:C,$container:e}=this;C?C.replaceWith(T):T.appendTo(e)}_attachEvents(T,C){throw"Not implemented"}_create(){throw"Not implemented"}_isRendered(){return!!this.instance}_isVisible(){const{editor:T,options:C}=this;return C.visible||!T.option("readOnly")}_isDisabled(){throw"Not implemented"}_shouldRender(){return this._isVisible()&&!this._isRendered()}dispose(){const{instance:T,$placeMarker:C}=this;T&&(T.dispose?T.dispose():T.remove(),this.instance=null),C&&C.remove()}render(){let T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=T,this._isVisible()){const{instance:C,$element:e}=this._create();this.instance=C,this._attachEvents(C,e)}else this._addPlaceMarker(T)}update(){return this._shouldRender()&&this.render(),!!this.instance}}},1010:(En,it,p)=>{"use strict";p.d(it,{A:()=>be});var S=p(1973),d=p(5973),m=p(2925),T=p(5704),C=p(7591),e=p(4859),k=p(6021),w=p(3090),P=p(2660),v=p(1363),x=p(1830),b=p(6110),B=p(1541),j=p(4072),F=p(9293),X=p(8360),U=p(5267),Z=p(2392),A=p(127),M=p(6409),H=p(3684);const J=(0,b.zk)(),z=["startswith","contains","endwith","notcontains"],K="android"!==d.A.real().platform,ee=H.A.inherit({_supportedKeys(){const ce=this.callBase();return(0,w.X)({},ce,{tab(Re){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(Re);const Se=(0,T.A)(this._list.option("focusedElement"));Se.length&&this._setSelectedElement(Se)}ce.tab.apply(this,arguments)},space:e.lQ,home:e.lQ,end:e.lQ})},_allowSelectItemByTab(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement(ce){const Re=this._valueGetter(this._list._getItemData(ce));this._setValue(Re)},_setValue(ce){this.option("value",ce)},_getDefaultOptions(){return(0,w.X)(this.callBase(),(0,w.X)(U.A._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:X.A.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,onSelectionChanged:null,onItemClick:e.lQ,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},wrapItemText:!1,useItemTextAsTitle:!1}))},_defaultOptionsRules(){return this.callBase().concat([{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference(){this.callBase(),(0,w.X)(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_setListFocusedElementOptionChange(){this._list._updateParentActiveDescendant=this._updateActiveDescendant.bind(this)},_initItems(){const{items:ce}=this.option();ce&&!ce.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({item:new C.M("item")})},_isEditable(){return this.callBase()||this.option("searchEnabled")},_saveFocusOnWidget(){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_fitIntoRange:(ce,Re,Se)=>ce>Se?Re:ce<Re?Se:ce,_items(){const ce=this._getPlainItems(!this._list&&this._dataSource.items());return new B.A(ce).filter("disabled","<>",!0).toArray()},_calcNextItem(ce){const Re=this._items();return Re[this._fitIntoRange(this._getSelectedIndex()+ce,0,Re.length-1)]},_getSelectedIndex(){const ce=this._items(),Re=this.option("selectedItem");let Se=-1;return(0,P.__)(ce,(De,Pe)=>{if(this._isValueEquals(Pe,Re))return Se=De,!1}),Se},_createPopup(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup.$wrapper().addClass(this._popupWrapperClass());const ce=this._popup.$content();j.A.off(ce,"mouseup"),j.A.on(ce,"mouseup",this._saveFocusOnWidget.bind(this))},_updateCustomBoundaryContainer(){const ce=this.option("dropDownOptions.container"),Re=ce&&(0,T.A)(ce);if(Re&&Re.length&&!(0,x.l6)(Re.get(0))){const Se=[].slice.call(Re.parents());Se.unshift(Re.get(0)),(0,P.__)(Se,(De,Pe)=>Pe!==(0,T.A)("body").get(0)&&("hidden"===J.getComputedStyle(Pe).overflowY?(this._$customBoundaryContainer=(0,T.A)(Pe),!1):void 0))}},_popupWrapperClass:()=>"dx-dropdownlist-popup-wrapper",_renderInputValue(){const ce=this._getCurrentValue();return this._rejectValueLoading(),this._loadInputValue(ce,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,ce))},_loadInputValue(ce,Re){return this._loadItem(ce).always(Re)},_getItemFromPlain(ce,Re){let Se,De;return Re&&"object"!=typeof ce&&(Re.itemByValue||(Re.itemByValue={},Se=this._getPlainItems(),Se.forEach(function(Pe){Re.itemByValue[this._valueGetter(Pe)]=Pe},this)),De=Re.itemByValue[ce]),De||(Se=this._getPlainItems(),De=(0,e.VM)(Se,Pe=>this._isValueEquals(this._valueGetter(Pe),ce))[0]),De},_loadItem(ce,Re){const Se=this._getItemFromPlain(ce,Re);return void 0!==Se?(0,k.cY)().resolve(Se).promise():this._loadValue(ce)},_getPlainItems(ce){let Re=[];ce=ce||this.option("items")||this._dataSource.items()||[];for(let Se=0;Se<ce.length;Se++)ce[Se]&&ce[Se].items?Re=Re.concat(ce[Se].items):Re.push(ce[Se]);return Re},_updateActiveDescendant(ce){var Re;const Se=this.option("opened"),De=null===(Re=this._list)||void 0===Re?void 0:Re.getFocusedItemId(),Pe=(0,T.A)(`#${De}`).length>0;this.setAria({activedescendant:Se&&Pe&&De||null},ce)},_setSelectedItem(ce){const Re=this._displayValue(ce);this.option("selectedItem",(0,e.YD)(ce,null)),this.option("displayValue",Re)},_displayValue(ce){return this._displayGetter(ce)},_refreshSelected(){const ce={};this._listItemElements().each((Re,Se)=>{const De=(0,T.A)(Se),Pe=this._valueGetter(De.data("dxListItemData"));this._isSelectedValue(Pe,ce)?this._list.selectItem(De):this._list.unselectItem(De)})},_popupShownHandler(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy(){!this.option("focusStateEnabled")||!this._list||this._list.option("focusedElement",null)},_isSelectedValue(ce){return this._isValueEquals(ce,this.option("value"))},_validateSearchMode(){const ce=this.option("searchMode"),Re=ce.toLowerCase();if(!z.includes(Re))throw A.A.Error("E1019",ce)},_clearSelectedItem(){this.option("selectedItem",null)},_processDataSourceChanging(){this._initDataController(),this._setListOption("_dataController",this._dataController),this._setListDataSource(),this._renderInputValue().fail(()=>{this._isCustomValueAllowed()||this._clearSelectedItem()})},_isCustomValueAllowed(){return this.option("displayCustomValue")},clear(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements(){return this._$list?this._$list.find(".dx-list-item"):(0,T.A)()},_popupConfig(){return(0,w.X)(this.callBase(),{templatesRenderAsynchronously:!1,autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent(){this.callBase(),this._renderList()},_getKeyboardListeners(){const ce=this._canListHaveFocus();return this.callBase().concat([!ce&&this._list])},_renderList(){this._listId=`dx-${(new m.A)._value}`;const ce=(0,T.A)("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._$list=ce,this._list=this._createComponent(ce,Z.A,this._listConfig()),this._refreshList(),this._renderPreventBlurOnListClick(),this._setListFocusedElementOptionChange()},_renderPreventBlurOnListClick(){const ce=(0,F.b4)("mousedown","dxDropDownList");j.A.off(this._$list,ce),j.A.on(this._$list,ce,Re=>Re.preventDefault())},_getControlsAria(){return this._list&&this._listId},_renderOpenedState(){this.callBase(),this._list&&this._updateActiveDescendant(),this.setAria("owns",this._popup&&this._popupContentId)},_getAriaHasPopup:()=>"listbox",_refreshList(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource(){return!!this._list.option("dataSource")!==this._needPassDataSourceToList()},_isDesktopDevice:()=>"desktop"===d.A.real().deviceType,_listConfig(){const ce={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),encodeNoDataText:this.option("encodeNoDataText"),grouped:this.option("grouped"),wrapItemText:this.option("wrapItemText"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_dataController:this._dataController,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return this._canListHaveFocus()||(ce.tabIndex=null),ce},_canListHaveFocus:()=>!1,_getDataSource(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:()=>({paginate:!1}),_getGroupedOption(){return this.option("grouped")},_dataSourceFromUrlLoadMode:()=>"raw",_listContentReadyHandler(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._updatePopupWidth(),this._updateListDimensions(),this._contentReadyAction()},_setListOption(ce,Re){this._setWidgetOption("_list",arguments)},_listItemClickAction(ce){this._listItemClickHandler(ce),this._itemClickAction(ce)},_listItemClickHandler:e.lQ,_setListDataSource(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded(){return this._searchValue().toString().length>=this.option("minSearchLength")},_needClearFilter(){return!this._canKeepDataSource()&&this._needPassDataSourceToList()},_canKeepDataSource(){const ce=this._isMinSearchLengthExceeded();return this._dataController.isLoaded()&&this.option("showDataBeforeSearch")&&this.option("minSearchLength")&&!ce&&!this._isLastMinSearchLengthExceeded},_searchValue(){return this._input().val()||""},_getSearchEvent(){return(0,F.b4)("input",`${this.NAME}Search`)},_getCompositionStartEvent(){return(0,F.b4)("compositionstart",`${this.NAME}CompositionStart`)},_getCompositionEndEvent(){return(0,F.b4)("compositionend",`${this.NAME}CompositionEnd`)},_getSetFocusPolicyEvent(){return(0,F.b4)("input",`${this.NAME}FocusPolicy`)},_renderEvents(){this.callBase(),j.A.on(this._input(),this._getSetFocusPolicyEvent(),()=>{this._setFocusPolicy()}),this._shouldRenderSearchEvent()&&(j.A.on(this._input(),this._getSearchEvent(),ce=>{this._searchHandler(ce)}),K&&(j.A.on(this._input(),this._getCompositionStartEvent(),()=>{this._isTextCompositionInProgress(!0)}),j.A.on(this._input(),this._getCompositionEndEvent(),ce=>{this._isTextCompositionInProgress(void 0),this._searchHandler(ce,this._searchValue())})))},_shouldRenderSearchEvent(){return this.option("searchEnabled")},_refreshEvents(){j.A.off(this._input(),this._getSearchEvent()),j.A.off(this._input(),this._getSetFocusPolicyEvent()),K&&(j.A.off(this._input(),this._getCompositionStartEvent()),j.A.off(this._input(),this._getCompositionEndEvent())),this.callBase()},_isTextCompositionInProgress(ce){if(!arguments.length)return this._isTextComposition;this._isTextComposition=ce},_searchHandler(ce,Re){if(this._isTextCompositionInProgress())return;if(!this._isMinSearchLengthExceeded())return void this._searchCanceled();const Se=this.option("searchTimeout");Se?(this._clearSearchTimer(),this._searchTimer=setTimeout(()=>{this._searchDataSource(Re)},Se)):this._searchDataSource(Re)},_searchCanceled(){this._clearSearchTimer(),this._needClearFilter()&&this._filterDataSource(null),this._refreshList()},_searchDataSource(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._searchValue();this._filterDataSource(ce)},_filterDataSource(ce){this._clearSearchTimer();const Re=this._dataController;Re.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),Re.searchOperation(this.option("searchMode")),Re.searchValue(ce),Re.load().done(this._dataSourceFiltered.bind(this,ce))},_clearFilter(){const ce=this._dataController;ce.searchValue()&&ce.searchValue(null)},_dataSourceFiltered(){this._isLastMinSearchLengthExceeded=this._isMinSearchLengthExceeded(),this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup(){return this._hasItemsToShow()},_refreshPopupVisibility(){if(this.option("readOnly")||!this._searchValue())return;const ce=this._shouldOpenPopup();ce&&!this._isFocused()||(this.option("opened",ce),ce&&(this._updatePopupWidth(),this._updateListDimensions()))},_dataSourceChangedHandler(ce){0===this._dataController.pageIndex()?this.option().items=ce:this.option().items=this.option().items.concat(ce)},_hasItemsToShow(){const Se=(this._dataController.items()||[]).length;return!(!this._needPassDataSourceToList()||!Se)},_clearSearchTimer(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler(){this._updatePopupWidth(),this._updateListDimensions()},_dimensionChanged(){this.callBase(),this._updateListDimensions()},_needPopupRepaint(){const ce=this._dataController,Re=ce.pageIndex(),Se=(0,x.O9)(this._pageIndex)&&Re<=this._pageIndex||ce.isLastPage()&&!this._list._scrollViewIsFull();return this._pageIndex=Re,Se},_updateListDimensions(){this._popup&&(this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions())},_getMaxHeight(){const ce=this.$element(),Re=this._$customBoundaryContainer,Se=ce.offset().top-(Re?Re.offset().top:0),De=(0,v.P$)(J),Pe=Re?Math.min((0,v.P$)(Re),De):De,Ie=Math.max(Se,Pe-Se-(0,v.P$)(ce));return Math.min(.5*Pe,Ie)},_clean(){this._list&&delete this._list,delete this._isLastMinSearchLengthExceeded,this.callBase()},_dispose(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption(){this._setListOption.apply(this,arguments)},_setSubmitValue(){const ce=this.option("value"),Re=this._shouldUseDisplayValue(ce)?this._displayGetter(ce):ce;this._getSubmitElement().val(Re)},_shouldUseDisplayValue(ce){return"this"===this.option("valueExpr")&&(0,x.Gv)(ce)},_optionChanged(ce){switch(this._dataExpressionOptionChanged(ce),ce.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(ce.name,ce.value),this.callBase(ce);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"wrapItemText":case"noDataText":case"encodeNoDataText":case"useItemTextAsTitle":this._setListOption(ce.name);break;case"displayValue":this.option("text",ce.value);break;case"itemTemplate":case"searchTimeout":break;case"selectedItem":ce.previousValue!==ce.value&&this._selectionChangedAction({selectedItem:ce.value});break;default:this.callBase(ce)}}}).include(U.A,M.A);(0,S.A)("dxDropDownList",ee);const be=ee},1013:(En,it,p)=>{"use strict";p.d(it,{SQ:()=>R,rt:()=>U,wu:()=>j});var S=p(4859),d=p(8181);const m={3:"abbreviated",4:"wide",5:"narrow"},T=function(L,G){return L>2?Object.keys(m).map(function(Q){return["format","standalone"].map(function(z){return G.getMonthNames(m[Q],z).join("|")}).join("|")}).join("|"):2===L?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},C={":":function(L,G){const Q=L>1?`{${L}}`:"";let z=(0,S.Nt)(G.getTimeSeparator());return":"!==z&&(z=`${z}|:`),`${z}${Q}`},y:function(L){return 2===L?`[0-9]{${L}}`:"[0-9]+?"},M:T,L:T,Q:function(L,G){return L>2?G.getQuarterNames(m[L],"format").join("|"):"0?[1-4]"},E:function(L,G){return"\\D*"},a:function(L,G){return G.getPeriodNames(m[L<3?3:L],"format").join("|")},d:function(L){return 2===L?"3[01]|[12][0-9]|0?[1-9]":"0??[1-9]|[12][0-9]|3[01]"},H:function(L){return 2===L?"2[0-3]|1[0-9]|0?[0-9]":"0??[0-9]|1[0-9]|2[0-3]"},h:function(L){return 2===L?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},m:function(L){return 2===L?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},s:function(L){return 2===L?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},S:function(L){return`[0-9]{1,${L}}`},w:function(L){return 2===L?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"}},e=Number,k=function(L,G){return L.map(Q=>Q.toLowerCase()).indexOf(G.toLowerCase())},w=function(L,G,Q){return G>2?["format","standalone"].map(function(z){return Object.keys(m).map(function(K){const ee=Q.getMonthNames(m[K],z);return k(ee,L)})}).reduce(function(z,K){return z.concat(K)}).filter(function(z){return z>=0})[0]:e(L)-1},P={y:function(L,G){const Q=e(L);return 2===G?Q<30?2e3+Q:1900+Q:Q},M:w,L:w,Q:function(L,G,Q){return G>2?Q.getQuarterNames(m[G],"format").indexOf(L):e(L)-1},E:function(L,G,Q){const z=Q.getDayNames(m[G<3?3:G],"format");return k(z,L)},a:function(L,G,Q){const z=Q.getPeriodNames(m[G<3?3:G],"format");return k(z,L)},d:e,H:e,h:e,m:e,s:e,S:function(L,G){for(G=Math.max(G,3),L=L.slice(0,3);G<3;)L+="0",G++;return e(L)}},v=["y","M","d","h","m","s","S"],x={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(L,G,Q){let z=L.getHours();const K=Q.h;void 0!==K&&K!==z&&z--,G||12!==z?G&&12!==z&&(z+=12):z=0,L.setHours(z)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},b=function(L,G){const Q=L[G];if(!Q)return 0;let z=0;do{G++,z++}while(L[G]===Q);return z},B=function(L,G){let Q="";for(let z=0;z<G;z++)Q+=L;return Q},j=function(L,G){let K,Q="",z="";const ee=[],re=function(){z&&(ee.push(`'${z}'`),Q+=`${(0,S.Nt)(z)})`,z="")};for(let be=0;be<L.length;be++){const ce=L[be],Se=C[ce];if("'"!==ce||(K=!K,"'"===L[be-1]))if(Se&&!K){const De=b(L,be),Pe=B(ce,De);re(),ee.push(Pe),Q+=`(${Se(De,G)})`,be+=De-1}else z||(Q+="("),z+=ce}return re(),X(ee)||d.v.warn(`The following format may be parsed incorrectly: ${L}.`),{patterns:ee,regexp:new RegExp(`^${Q}$`,"i")}},F=["d","H","h","m","s","w","M","L","Q"],X=function(L){const G=K=>{if(!K)return!1;const ee=K[0];return["y","S"].includes(ee)||F.includes(ee)&&K.length<3};let Q=!0,z=0;return L.every((K,ee,re)=>{return G(K)&&("S"!==(be=K)[0]&&2!==be.length&&(Q=++z<2),G(re[ee+1])||(z=0)),Q;var be})},U=function(){return x},R=function(L,G){const Q=j(L,G);return function(z){const K=Q.regexp.exec(z);if(K){const ee=new Date,re=new Date(ee.getFullYear(),0,1),be=function(L){return L.map(function(G){return"'"===G[0]?"":"H"===G[0]?"h":G[0]})}(Q.patterns),ce=function(L){const G=L.map(function(Q){return v.indexOf(Q)});return Math.max.apply(Math,G)}(be),Re=function(L){const G=L.filter(function(Q){return v.indexOf(Q)<0});return v.concat(G)}(be),Se={};return Re.forEach(function(De,Pe){if(!De||Pe<v.length&&Pe>ce)return;const Ie=be.indexOf(De);Ie>=0?function(L,G,Q,z,K){const ee=G[0],re=x[ee],be=P[ee];if(re&&be){const ce=be(Q,G.length,z);K[G]=ce,L[re]?L[re](ce):re(L,ce,K)}}(re,Q.patterns[Ie],K[Ie+1],G,Se):function(L,G,Q){const z=x[G],ee=Q["g"+z.substr(1)]();L[z](ee)}(re,De,ee)}),re}return null}}},1023:(En,it,p)=>{"use strict";p.d(it,{A:()=>C});var S=p(5804),d=p(3746),m=p(656),T=p(65);let C=(()=>{var e;class k{constructor(P,v){this.http=P,this.scopeService=v,this.scope=v.getScope()}saveSettings(P){return this.http.post(this.scopeService.getScope().apiEndpoint+"globalUserSettings/chapter/chat",P).toPromise()}getSettings(){return(0,S._)(this.http.get(this.scopeService.getScope().apiEndpoint+"globalUserSettings/chapter/chat"))}static#e=e=()=>(this.\u0275fac=function(v){return new(v||k)(m.KVO(T.Qq),m.KVO(d.A))},this.\u0275prov=m.jDH({token:k,factory:k.\u0275fac}))}return e(),k})()},1037:(En,it,p)=>{"use strict";p.d(it,{A:()=>Pe});var S=p(1973),d=p(5973),m=p(8569),T=p(9522),C=p(5704),e=p(36),k=p(4859),w=p(6021),P=p(3090),v=p(1363),x=p(7007),b=p(1830),B=p(6110),j=p(4072),F=p(7940),X=p(9293),U=p(5737),Z=p(6946),A=p(7508),M=p(8813),J=p(2170),R=p(2823),L=p(316);const G="dxScrollable",ce="vertical",Re="horizontal",Se="both",De=m.A.inherit({_getDefaultOptions(){return(0,P.X)(this.callBase(),{disabled:!1,onScroll:null,direction:ce,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,updateManually:!1,_onVisibilityChanged:k.lQ})},_defaultOptionsRules(){return this.callBase().concat((0,J.M)(),[{device:()=>x.nativeScrolling&&"android"===d.A.real().platform&&!e.A.mozilla,options:{useSimulatedScrollbar:!0}}])},_initOptions(Ie){this.callBase(Ie),"useSimulatedScrollbar"in Ie||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged(Ie){Ie?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset,this.option("_onVisibilityChanged")(this)):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup(){const Ie=this.$element().addClass("dx-scrollable"),W=this._$container=(0,C.A)("<div>").addClass("dx-scrollable-container"),ie=this._$wrapper=(0,C.A)("<div>").addClass("dx-scrollable-wrapper");(this._$content=(0,C.A)("<div>").addClass("dx-scrollable-content")).append(Ie.contents()).appendTo(W),W.appendTo(ie),ie.appendTo(Ie)},_dimensionChanged(){this.update(),this._updateRtlPosition()},_initMarkup(){this.callBase(),this._renderDirection()},_render(){this._renderStrategy(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition(!0)},_updateRtlPosition(Ie){this._strategy.updateRtlPosition(Ie)},_getMaxOffset(){const{scrollWidth:Ie,clientWidth:W,scrollHeight:ie,clientHeight:he}=(0,C.A)(this.container()).get(0);return{left:Ie-W,top:ie-he}},_attachEventHandlers(){const Ie=this._strategy,W={getDirection:Ie.getDirection.bind(Ie),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};j.A.off(this._$wrapper,`.${G}`),j.A.on(this._$wrapper,(0,X.b4)(F.A.init,G),W,this._initHandler.bind(this)),j.A.on(this._$wrapper,(0,X.b4)(F.A.start,G),Ie.handleStart.bind(Ie)),j.A.on(this._$wrapper,(0,X.b4)(F.A.move,G),Ie.handleMove.bind(Ie)),j.A.on(this._$wrapper,(0,X.b4)(F.A.end,G),Ie.handleEnd.bind(Ie)),j.A.on(this._$wrapper,(0,X.b4)(F.A.cancel,G),Ie.handleCancel.bind(Ie)),j.A.on(this._$wrapper,(0,X.b4)(F.A.stop,G),Ie.handleStop.bind(Ie)),j.A.off(this._$container,`.${G}`),j.A.on(this._$container,(0,X.b4)("scroll",G),Ie.handleScroll.bind(Ie))},_validate(Ie){return!this._isLocked()&&(this._updateIfNeed(),this._moveIsAllowed(Ie))},_moveIsAllowed(Ie){return this._strategy.validate(Ie)},handleMove(Ie){this._strategy.handleMove(Ie)},_prepareDirections(Ie){this._strategy._prepareDirections(Ie)},_initHandler(){const Ie=this._strategy;Ie.handleInit.apply(Ie,arguments)},_renderDisabledState(){this.$element().toggleClass("dx-scrollable-disabled",this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection(){this.$element().removeClass(`dx-scrollable-${Re}`).removeClass(`dx-scrollable-${ce}`).removeClass(`dx-scrollable-${Se}`).addClass(`dx-scrollable-${this.option("direction")}`)},_renderStrategy(){this._createStrategy(),this._strategy.render(),this.$element().data("dxScrollableStrategy",this._strategy)},_createStrategy(){this._strategy=this.option("useNative")?new R.A(this):new L.G(this)},_createActions(){this._strategy&&this._strategy.createActions()},_clean(){this._strategy&&this._strategy.dispose()},_optionChanged(Ie){switch(Ie.name){case"onStart":case"onEnd":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":case"scrollByContent":case"_onVisibilityChanged":break;case"width":this.callBase(Ie),this._updateRtlPosition();break;default:this.callBase(Ie)}},_resetInactiveDirection(){const Ie=this._getInactiveProp();if(!Ie||!(0,B.Vd)())return;const W=this.scrollOffset();W[Ie]=0,this.scrollTo(W)},_getInactiveProp(){const Ie=this.option("direction");return Ie===ce?"left":Ie===Re?"top":void 0},_location(){return this._strategy.location()},_normalizeLocation(Ie){if((0,b.Qd)(Ie)){const ie=(0,k.YD)(Ie.left,Ie.x),he=(0,k.YD)(Ie.top,Ie.y);return{left:(0,b.O9)(ie)?-ie:void 0,top:(0,b.O9)(he)?-he:void 0}}const W=this.option("direction");return{left:W!==ce?-Ie:void 0,top:W!==Re?-Ie:void 0}},_isLocked(){return this._locked},_lock(){this._locked=!0},_unlock(){this.option("disabled")||(this._locked=!1)},_isDirection(Ie){const W=this.option("direction");return Ie===ce?W!==Re:Ie===Re?W!==ce:W===Ie},_updateAllowedDirection(){const Ie=this._strategy._allowedDirections();this._allowedDirectionValue=this._isDirection(Se)&&Ie.vertical&&Ie.horizontal?Se:this._isDirection(Re)&&Ie.horizontal?Re:this._isDirection(ce)&&Ie.vertical?ce:null},_allowedDirection(){return this._allowedDirectionValue},$content(){return this._$content},content(){return(0,T.cc)(this._$content)},container(){return(0,T.cc)(this._$container)},scrollOffset(){return this._strategy._getScrollOffset()},_isRtlNativeStrategy(){const{useNative:Ie,rtlEnabled:W}=this.option();return Ie&&W},scrollTop(){return this.scrollOffset().top},scrollLeft(){return this.scrollOffset().left},clientHeight(){return(0,v.Oq)(this._$container)},scrollHeight(){return(0,v.P$)(this.$content())},clientWidth(){return(0,v.RG)(this._$container)},scrollWidth(){return(0,v.Ot)(this.$content())},update(){if(this._strategy)return(0,w.z7)(this._strategy.update()).done(()=>{this._updateAllowedDirection()})},scrollBy(Ie){((Ie=this._normalizeLocation(Ie)).top||Ie.left)&&(this._updateIfNeed(),this._strategy.scrollBy(Ie))},scrollTo(Ie){Ie=this._normalizeLocation(Ie),this._updateIfNeed();let W=this._location();this.option("useNative")||(Ie=this._strategy._applyScaleRatio(Ie),W=this._strategy._applyScaleRatio(W)),this._isRtlNativeStrategy()&&(W.left-=this._getMaxOffset().left);const ie=this._normalizeLocation({left:W.left-(0,k.YD)(Ie.left,W.left),top:W.top-(0,k.YD)(Ie.top,W.top)});!ie.top&&!ie.left||this._strategy.scrollBy(ie)},scrollToElement(Ie,W){const ie=(0,C.A)(Ie),he=this.$content().find(Ie).length,Ce=ie.parents(".dx-scrollable").length-ie.parents(".dx-scrollable-content").length===0;if(!he||!Ce)return;const ye={top:0,left:0},Me=this.option("direction");Me!==ce&&(ye.left=this.getScrollElementPosition(ie,Re,W)),Me!==Re&&(ye.top=this.getScrollElementPosition(ie,ce,W)),this.scrollTo(ye)},getScrollElementPosition(Ie,W,ie){const he=this.scrollOffset();return function H(Ie,W,ie,he,Ce){const ye=(0,U.A)({top:0,left:0,right:0,bottom:0},Ce),Me=W===M.lm,_e=Me?"top":"left",ke=Me?"bottom":"right",Ye=Me?"height":"width",de=ie[`offset${(0,Z.Ns)(Ye)}`],Ae=ie[`client${(0,Z.Ns)(Ye)}`],pe=ie.getBoundingClientRect()[Ye],Ee=Ie.getBoundingClientRect()[Ye];let le=1;Math.abs(pe-de)>1&&(le=pe/de);const Ke=(0,A.Y)(M.JU,Ie)[_e]/le,Be=he[_e],q=Be-Ke+ye[_e],Oe=Be-Ke-Ee/le+Ae-ye[ke];return q<=0&&Oe>=0?Be:Be-(Math.abs(q)>Math.abs(Oe)?Oe:q)}(Ie.get(0),W,(0,C.A)(this.container()).get(0),he,ie)},_updateIfNeed(){this.option("updateManually")||this.update()},_useTemplates:()=>!1,isRenovated:()=>!!De.IS_RENOVATED_WIDGET});(0,S.A)(G,De);const Pe=De},1074:(En,it,p)=>{"use strict";p.d(it,{A:()=>Ie});var S=p(5737),d=p(2583),m=p(1973),T=p(5704),C=p(5944),e=p(2660),k=p(4757),w=p(1363),P=p(1830),v=p(9212),x=p(4859),b=p(6021);const X=p(1129).A.inherit({_initMarkup(){this._deferredItems=[],this.callBase()},_renderItemContent(W){const ie=(0,b.cY)(),he=(0,b.cY)();this._deferredItems[W.index]=he;const Ce=this.callBase.call(this,W);return he.done(()=>{ie.resolve(Ce)}),ie.promise()},_onItemTemplateRendered(W,ie){return()=>{this._deferredItems[ie.index].resolve()}},_postProcessRenderItems:x.lQ,_renderItemsAsync(){const W=(0,b.cY)();return b.z7.apply(this,this._deferredItems).done(()=>{this._postProcessRenderItems(),W.resolve()}),W.promise()},_clean(){this.callBase(),this._deferredItems=[]}});p(4972);const A=X;var M=p(6148);class Pe extends A{_getSynchronizableOptionsForCreateComponent(){return super._getSynchronizableOptionsForCreateComponent().filter(ie=>"disabled"!==ie)}_initTemplates(){super._initTemplates();const ie=new C.U((he,Ce,ye)=>{if((0,P.Qd)(Ce)){const{text:Me,html:_e,widget:ke}=Ce;Me&&he.text(Me).wrapInner("<div>"),_e&&he.html(_e),"dxDropDownButton"===ke&&(Ce.options=Ce.options??{},(0,P.O9)(Ce.options.stylingMode)||(Ce.options.stylingMode=this.option("useFlatButtons")?"text":"contained")),"dxButton"===ke&&(this.option("useFlatButtons")&&(Ce.options=Ce.options??{},Ce.options.stylingMode=Ce.options.stylingMode??"text"),this.option("useDefaultButtons")&&(Ce.options=Ce.options??{},Ce.options.type=Ce.options.type??"default"))}else he.text(String(Ce));this._getTemplate("dx-polymorph-widget").render({container:he,model:ye,parent:this})},["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:ie,menuItem:ie})}_getDefaultOptions(){return(0,S.A)({},super._getDefaultOptions(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>(0,v.Nt)(),options:{useFlatButtons:!0}}])}_itemContainer(){return this._$toolbarItemsContainer.find([".dx-toolbar-before",".dx-toolbar-center",".dx-toolbar-after"].join(","))}_itemClass(){return"dx-toolbar-item"}_itemDataKey(){return"dxToolbarItemDataKey"}_dimensionChanged(ie){this._disposed||(this._arrangeItems(),this._applyCompactMode())}_initMarkup(){this._renderToolbar(),this._renderSections(),super._initMarkup()}_render(){super._render(),this._renderItemsAsync(),this._updateDimensionsInMaterial()}_postProcessRenderItems(){this._arrangeItems()}_renderToolbar(){this.$element().addClass(M.l),this._$toolbarItemsContainer=(0,T.A)("<div>").addClass("dx-toolbar-items-container").appendTo(this.$element()),this.setAria("role","toolbar")}_renderSections(){const ie=this._$toolbarItemsContainer;(0,e.__)(["before","center","after"],(he,Ce)=>{const ye=`dx-toolbar-${Ce}`;ie.find(`.${ye}`).length||(this[`_$${Ce}Section`]=(0,T.A)("<div>").addClass(ye).attr("role","presentation").appendTo(ie))})}_arrangeItems(ie){var he,Ce;const ye=ie??(0,w.RG)(this.$element());this._$centerSection.css({margin:"0 auto",float:"none"});const Me=(0,k.N)(null===(he=this._$beforeSection)||void 0===he?void 0:he.get(0)),_e=(0,k.N)(null===(Ce=this._$afterSection)||void 0===Ce?void 0:Ce.get(0));this._alignCenterSection(Me,_e,ye);const ke=this._$toolbarItemsContainer.find(".dx-toolbar-label").eq(0),Ye=ke.parent();if(!ke.length)return;const de=Me.width?Me.width:ke.position().left,Ae=Ye.hasClass("dx-toolbar-before")?0:de,pe=Ye.hasClass("dx-toolbar-after")?0:_e.width;let Ee=0;Ye.children().not(".dx-toolbar-label").each((Be,q)=>{Ee+=(0,w.Ot)(q)});const Ke=Math.max(ye-Ee-Ae-pe,0);if(Ye.hasClass("dx-toolbar-before"))this._alignSection(this._$beforeSection,Ke);else{const Be=(0,w.Ot)(ke)-(0,w.RG)(ke);ke.css("maxWidth",Ke-Be)}}_alignCenterSection(ie,he,Ce){var ye;this._alignSection(this._$centerSection,Ce-ie.width-he.width);const Me=this.option("rtlEnabled"),_e=Me?he:ie,ke=Me?ie:he,Ye=(0,k.N)(null===(ye=this._$centerSection)||void 0===ye?void 0:ye.get(0));(_e.right>Ye.left||Ye.right>ke.left)&&this._$centerSection.css({marginLeft:_e.width,marginRight:ke.width,float:_e.width>ke.width?"none":"right"})}_alignSection(ie,he){let ye=ie.find(".dx-toolbar-label").toArray();he-=this._getCurrentLabelsPaddings(ye);const Me=this._getCurrentLabelsWidth(ye),_e=Math.abs(Me-he);he<Me?(ye=ye.reverse(),this._alignSectionLabels(ye,_e,!1)):this._alignSectionLabels(ye,_e,!0)}_alignSectionLabels(ie,he,Ce){const ye=function(Me){return(0,k.N)(Me).width};for(let Me=0;Me<ie.length;Me++){const _e=(0,T.A)(ie[Me]),ke=Math.ceil(ye(ie[Me]));let Ye;Ce&&_e.css("maxWidth","inherit");const de=Math.ceil(Ce?ye(ie[Me]):ke);if(!(de<he)){Ye=Ce?ke+he:ke-he,_e.css("maxWidth",Ye);break}Ye=Ce?de:0,he-=de,_e.css("maxWidth",Ye)}}_applyCompactMode(){const ie=(0,T.A)(this.element());ie.removeClass("dx-toolbar-compact"),this.option("compactMode")&&this._getSummaryItemsSize("width",this._itemElements(),!0)>(0,w.RG)(ie)&&ie.addClass("dx-toolbar-compact")}_getCurrentLabelsWidth(ie){let he=0;return ie.forEach(Ce=>{he+=(0,w.Ot)(Ce)}),he}_getCurrentLabelsPaddings(ie){let he=0;return ie.forEach(Ce=>{he+=(0,w.Ot)(Ce)-(0,w.RG)(Ce)}),he}_renderItem(ie,he,Ce,ye){const ke=!!(he.text??he.html),Ye=super._renderItem(ie,he,Ce??this[`_$${he.location??"center"}Section`],ye);return Ye.toggleClass("dx-toolbar-button",!ke).toggleClass("dx-toolbar-label",ke).addClass(he.cssClass),Ye}_renderGroupedItems(){(0,e.__)(this.option("items"),(ie,he)=>{const Ce=he.items,ye=(0,T.A)("<div>").addClass("dx-toolbar-group"),Me=he.location??"center";!Ce||!Ce.length||((0,e.__)(Ce,(_e,ke)=>{this._renderItem(_e,ke,ye,null)}),this._$toolbarItemsContainer.find(`.dx-toolbar-${Me}`).append(ye))})}_renderItems(ie){this.option("grouped")&&ie.length&&ie[0].items?this._renderGroupedItems():super._renderItems(ie)}_getToolbarItems(){return this.option("items")??[]}_renderContentImpl(){const ie=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===ie.length),this._renderItems(this._renderedItemsCount?ie.slice(this._renderedItemsCount):ie),this._applyCompactMode()}_renderEmptyMessage(){}_clean(){this._$toolbarItemsContainer.children().empty(),this.$element().empty(),delete this._$beforeSection,delete this._$centerSection,delete this._$afterSection}_visibilityChanged(ie){ie&&this._arrangeItems()}_isVisible(){return(0,w.RG)(this.$element())>0&&(0,w.Oq)(this.$element())>0}_getIndexByItem(ie){return this._getToolbarItems().indexOf(ie)}_itemOptionChanged(ie,he,Ce,ye){super._itemOptionChanged(ie,he,Ce,ye),this._arrangeItems()}_optionChanged(ie){const{name:he}=ie;switch(he){case"width":super._optionChanged(ie),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:super._optionChanged(ie)}}_dispose(){super._dispose(),clearTimeout(this._waitParentAnimationTimeout)}_updateDimensionsInMaterial(){if((0,v.gx)()){const ie=()=>new Promise(Ce=>{const ye=()=>{let _e=!0;return this.$element().parents().each((ke,Ye)=>{if(d.A.isAnimating((0,T.A)(Ye)))return _e=!1,!1}),_e&&Ce(),_e},Me=()=>{clearTimeout(this._waitParentAnimationTimeout),this._waitParentAnimationTimeout=setTimeout(()=>ye()||Me(),15)};Me()}),he=()=>{const Ce=this.$element().find(".dx-toolbar-label"),ye=[];return Ce.each((Me,_e)=>{const ke=(0,T.A)(_e).text(),Ye=(0,T.A)(_e).css("fontWeight");ye.push((0,v.ro)(ke,Ye))}),Promise.all(ye)};Promise.all([ie(),he()]).then(()=>{this._dimensionChanged()})}}}(0,m.A)("dxToolbarBase",Pe);const Ie=Pe},1110:(En,it,p)=>{"use strict";p.d(it,{N:()=>C});var S=p(5704),d=p(5397),m=p(4072),T=p(9961);const C="dxremove",e="dxRemoveEvent";(0,d.z)(function(k){k=[].slice.call(k);for(let w=0;w<k.length;w++){const P=(0,S.A)(k[w]);P.prop(e)&&(P[0][e]=null,m.A.triggerHandler(P,"dxremove"))}}),(0,T.A)("dxremove",{noBubble:!0,setup:function(k){(0,S.A)(k).prop(e,!0)}})},1113:(En,it,p)=>{"use strict";p.d(it,{A:()=>Se});var S=p(6021),d=p(5690),m=p(6110),T=p(1830),C=p(1926),e=p(3090),k=p(6054);const w=(0,m.zk)(),P=function(De){const Pe=k.A.createElement("script");for(const Ie in De)Pe[Ie]=De[Ie];return Pe},v=function(De){return k.A.getHead().appendChild(De)},x=function(De){De.parentNode.removeChild(De)},b=function(De){const Pe=P({text:De});v(Pe),x(Pe)};function j(De){return(De.method||"GET").toUpperCase()}const J=(0,m.zk)(),R="success",L="error",Se=(0,C.A)({sendRequest:function(De){const Pe=d.A.getXhr(),Ie=new S.cY,W=Ie.promise(),ie=!(0,T.O9)(De.async)||De.async,he=De.dataType,Ce=De.timeout||0;let ye;De.crossDomain=function(De){if(!(0,m.Vd)())return!0;let Pe=!1;const Ie=k.A.createElement("a"),W=k.A.createElement("a");Ie.href=w.location.href;try{W.href=De,W.href=W.href,Pe=Ie.protocol+"//"+Ie.host!=W.protocol+"//"+W.host}catch{Pe=!0}return Pe}(De.url);const Me="jsonp"===he||"script"===he;void 0===De.cache&&(De.cache=!Me);const _e=function(De){if("jsonp"===De.dataType){const Pe=Math.random().toString().replace(/\D/g,""),Ie=De.jsonpCallback||"dxCallback"+Date.now()+"_"+Pe,W=De.jsonp||"callback";return De.data=De.data||{},De.data[W]=Ie,Ie}}(De),ke=function(De){const Pe=De.headers||{};return Pe["Content-Type"]=Pe["Content-Type"]||function(De){let Pe;return De.data&&!De.upload&&"GET"!==j(De)&&(Pe="application/x-www-form-urlencoded;charset=utf-8"),De.contentType||Pe}(De),Pe.Accept=Pe.Accept||function(De){const Pe=De.dataType||"*",Ie="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",W={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:Ie,script:Ie};return(0,e.a)(W,De.accepts,!0),W[Pe]?W[Pe]+("*"!==Pe?", */*; q=0.01":""):W["*"]}(De),!De.crossDomain&&!Pe["X-Requested-With"]&&(Pe["X-Requested-With"]="XMLHttpRequest"),Pe}(De),Ye=function(De,Pe){let Ie=De.data;const W="string"==typeof Ie;let ie=De.url||w.location.href;return!W&&!De.cache&&(Ie=Ie||{},Ie._=Date.now()),Ie&&!De.upload&&(W||(Ie=function(De){const Pe=[];for(const Ie in De){let W=De[Ie];void 0!==W&&(null===W&&(W=""),"function"==typeof W&&(W=W()),Pe.push(encodeURIComponent(Ie)+"="+encodeURIComponent(W)))}return Pe.join("&")}(Ie)),"GET"===j(De)?(""!==Ie&&(ie+=(ie.indexOf("?")>-1?"&":"?")+Ie),Ie=null):Pe["Content-Type"]&&Pe["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(Ie=Ie.replace(/%20/g,"+"))),{url:ie,parameters:Ie}}(De,ke),de=Ye.url,Ae=Ye.parameters;if(_e&&(J[_e]=function(pe){Ie.resolve(pe,R,Pe)}),De.crossDomain&&Me){const pe=function(){Ie.reject(Pe,L)},Ee=function(){"jsonp"!==he&&Ie.resolve(null,R,Pe)};return function(De){const Pe=P({src:De});return new Promise(function(Ie,W){const ie={load:Ie,error:W},he=function(Ce){ie[Ce.type](),x(Pe)};for(const Ce in ie)k.A.listen(Pe,Ce,he);v(Pe)})}(de).then(Ee,pe),W}if(De.crossDomain&&!("withCredentials"in Pe))return Ie.reject(Pe,L),W;if(Pe.open(j(De),de,ie,De.username,De.password),ie&&(Pe.timeout=Ce,ye=function(De,Pe){return De&&setTimeout(function(){Pe.customStatus="timeout",Pe.abort()},De)}(Ce,Pe)),Pe.onreadystatechange=function(pe){4===Pe.readyState&&(clearTimeout(ye),function(De){return 200<=De&&De<300}(Pe.status)?function(De){return 204!==De}(Pe.status)?function(De,Pe,Ie){const W=function(De){return De.responseType&&"text"!==De.responseType||"string"!=typeof De.responseText?De.response:De.responseText}(Pe);switch(Ie){case"jsonp":b(W);break;case"script":b(W),De.resolve(W,R,Pe);break;case"json":try{De.resolve(JSON.parse(W),R,Pe)}catch(ie){De.reject(Pe,"parsererror",ie)}break;default:De.resolve(W,R,Pe)}}(Ie,Pe,he):Ie.resolve(null,"nocontent",Pe):Ie.reject(Pe,Pe.customStatus||L))},De.upload&&(Pe.upload.onprogress=De.upload.onprogress,Pe.upload.onloadstart=De.upload.onloadstart,Pe.upload.onabort=De.upload.onabort),De.xhrFields)for(const pe in De.xhrFields)Pe[pe]=De.xhrFields[pe];"arraybuffer"===De.responseType&&(Pe.responseType=De.responseType);for(const pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&(0,T.O9)(ke[pe])&&Pe.setRequestHeader(pe,ke[pe]);return De.beforeSend&&De.beforeSend(Pe),Pe.send(Ae),W.abort=function(){Pe.abort()},W}})},1118:(En,it,p)=>{"use strict";p.d(it,{g:()=>S});var S=function(d){return d.AppImprint="app.imprint",d.AppPrivacyPolicy="app.privacyPolicy",d.AppPrivacyPolicyMerkuristGmbh="app.privacyPolicy-merkurist-gmbh",d.AppAccessibility="app.accessibility",d.AppTos="app.tos",d.AppOptOut="app.optOut",d.App="app",d.AppMainNews="app.main-news",d.AppMainSnips="app.main-snips",d.AppMainLogin="app.main-login",d.AppMainNotifications="app.main-notifications",d.AppMainMenu="app.main-menu",d.AppArticleStatistic="app.articleStatistic",d.AppArticleElasticStatistic="app.articleElasticStatistic",d.AppArticleElasticStatisticAlt="app.articleElasticStatisticAlt",d.AppSnipStatistic="app.snipStatistic",d.AppSnipElasticStatistic="app.snipElasticStatistic",d.AppSnipDetail="app.snipDetail",d.AppArticleEditAlt="app.articleEditAlt",d.AppArticleEdit="app.articleEdit",d.AppArticleDetail="app.articleDetail",d.AppArticleDetailAlt="app.articleDetailAlt",d.AppSponsoredArticleEditAlt="app.sponsoredArticleEditAlt",d.AppSponsoredArticleEdit="app.sponsoredArticleEdit",d.AppSponsoredArticleDetail="app.sponsoredArticleDetail",d.AppSponsoredArticleDetailAlt="app.sponsoredArticleDetailAlt",d.AppAdminSettings="app.adminsettings",d.AppNotificationSettings="app.notificationsettings",d.AppMyProfile="app.my-profile",d.AppPublicProfile="app.public-profile",d.AppLoginSaml2="app.loginSaml2",d.AppRegister="app.register",d.AppRegisterNewsletter="app.registerNewsletter",d.AppRegistrationComplete="app.registrationcomplete",d.AppRequestPassword="app.requestPassword",d.AppPasswordResetComplete="app.passwordResetComplete",d.AppRequestPasswordComplete="app.requestPasswordComplete",d.AppUnsubscribeNewsletter="app.unsubscribeNewsletter",d.AppAccountSettings="app.accountsettings",d.AppSpecial="app.special",d.AppSpecialStatistics="app.specialStatistics",d.AppSurveyDetails="app.surveyDetails",d.AppWorkflow="app.workflow",d.AppVideoplay="app.videoplay",d.AppSpecialElasticStatistic="app.specialElasticStatistic",d.AppSearch="app.search",d.AppCampaignStatistic="app.campaignStatistic",d.AppCampaignDetail="app.campaignDetail",d.AppAuthorDashboard="app.authorDashboard",d.AppSnipApply="app.snipApply",d.AppMarketResearchStatistic="app.marketResearchStatistic",d.AppMarketResearchElasticStatistic="app.marketResearchElasticStatistic",d.AppBrochureStatistic="app.brochureStatistic",d.AppBrochureElasticStatistic="app.brochureElasticStatistic",d.AppBannerCampaignStatistic="app.bannerCampaignStatistic",d.AppBannerCampaignElasticStatistic="app.bannerCampaignElasticStatistic",d.AppSponsoredArticleCampaignStatistic="app.sponsoredArticleCampaignStatistic",d.AppSponsoredArticleCampaignElasticStatistic="app.sponsoredArticleCampaignElasticStatistic",d.AppPremiumStatistic="app.premiumStatistic",d.AppPremiumElasticStatistic="app.premiumElasticStatistic",d.AppSuperStatistic="app.superStatistic",d.AppSuperElasticStatistic="app.superElasticStatistic",d.AppStaticArticles="app.staticArticles",d.AppStaticArticleEditAdmin="app.staticArticleEditAdmin",d.AppCompanyNews="app.companyNews",d.AppRubrics="app.rubrics",d.AppFeedback="app.feedback",d.AppEventCalendar="app.eventCalendar",d.AppEventCalendarDetail="app.eventCalendarDetail",d.AppEventCalendarEdit="app.eventCalendarEdit",d.AppSponsoredArticleList="app.sponsoredArticleList",d.AppCampaigns="app.campaigns",d.AppAdvertiserBillingInfo="app.advertiserBillingInfo",d.AppConsumeAdvertiserToken="app.consumeAdvertiserToken",d.AppAdvertiserConsumtionComplete="app.advertiserConsumtionComplete",d.AppAuthorBillingInfo="app.authorBillingInfo",d.AppClosedChapter="app.closedChapter",d.AppIkUpLanding="app.ikUpLanding",d.AppAuthors="app.authors",d.AppImagelicensing="app.imagelicensing",d.AppAppStore="app.appStore",d.ClickNotification="clickNotification",d.ClickSpecial="clickSpecial",d.ClickPremiumBanner="clickPremiumBanner",d.ClickSuperBanner="clickSuperBanner",d.ClickBanner="clickBanner",d.ClickSurveyBanner="clickSurveyBanner",d.AppUntrackedNotification="app.untrackedNotification",d.AppDocumentDownload="app.documentDownload",d.AppFileDownload="app.fileDownload",d.AppOffline="app.offline",d.AppChat="app.chat",d.Home="home",d}(S||{})},1129:(En,it,p)=>{"use strict";p.d(it,{A:()=>A});var S=p(5704),d=p(4859),m=p(4270),T=p(6021),C=p(3090),e=p(2660),k=p(1830),w=p(1221),P=p(5335),v=p(4072),x=p(127),b=p(9658),B=p(8732),j=p(1694);const U=function(M){return-1!==M},A=B.A.inherit({_setOptionsByReference(){this.callBase(),(0,C.X)(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions(){return(0,C.X)(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:-1,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor(M,H){this._userOptions=H||{},this.callBase(M,H)},_init(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule()},_initKeyGetter(){this._keyGetter=(0,m.Hz)(this.option("keyExpr"))},_getKeysByItems(M){return this._editStrategy.getKeysByItems(M)},_getItemsByKeys(M,H){return this._editStrategy.getItemsByKeys(M,H)},_getKeyByIndex(M){return this._editStrategy.getKeyByIndex(M)},_getIndexByKey(M){return this._editStrategy.getIndexByKey(M)},_getIndexByItemData(M){return this._editStrategy.getIndexByItemData(M)},_isKeySpecified(){return!!this._dataController.key()},_getCombinedFilter(){return this._dataController.filter()},key(){return this.option("keyExpr")?this.option("keyExpr"):this._dataController.key()},keyOf(M){let H=M;return this.option("keyExpr")?H=this._keyGetter(M):this._dataController.store()&&(H=this._dataController.keyOf(M)),H},_nullValueSelectionSupported:()=>!1,_initSelectionModule(){const M=this,{itemsGetter:H}=M._editStrategy;this._selection=new b.A({allowNullValue:this._nullValueSelectionSupported(),mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged(J){(J.addedItemKeys.length||J.removedItemKeys.length)&&(M.option("selectedItems",M._getItemsByKeys(J.selectedItemKeys,J.selectedItems)),M._updateSelectedItems(J))},filter:M._getCombinedFilter.bind(M),totalCount(){const J=M.option("items"),R=M._dataController.totalCount();return R>=0?R:M._getItemsCount(J)},key:M.key.bind(M),keyOf:M.keyOf.bind(M),load(J){var R;const L=M._dataController;return J.customQueryParams=null===(R=L.loadOptions())||void 0===R?void 0:R.customQueryParams,J.userData=L.userData(),L.store()?L.loadFromStore(J).done(G=>{if(M._disposed)return;const Q=(0,P.Xp)(G).data;L.applyMapFunction(Q)}):(0,T.cY)().resolve(this.plainItems())},dataFields:()=>M._dataController.select(),plainItems:H.bind(M._editStrategy)})},_getItemsCount(M){return M.reduce((H,J)=>H+(J.items?this._getItemsCount(J.items):1),0)},_initEditStrategy(){this._editStrategy=new(0,j.A)(this)},_getSelectedItemIndices(M){const H=this,J=[];return M=M||this._selection.getSelectedItemKeys(),H._editStrategy.beginCache(),(0,e.__)(M,(R,L)=>{const G=H._getIndexByKey(L);U(G)&&J.push(G)}),H._editStrategy.endCache(),J},_initMarkup(){this._rendering=!0,this._dataController.isLoading()||this._syncSelectionOptions().done(()=>this._normalizeSelectedItems()),this.callBase()},_render(){this.callBase(),this._rendering=!1},_fireContentReadyAction(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions(M){let H,J,R,L;switch(M=M||this._chooseSelectOption()){case"selectedIndex":H=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,k.O9)(H)?(this._setOptionWithoutOptionChange("selectedItems",[H]),this._setOptionWithoutOptionChange("selectedItem",H),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([H]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(L=this.option("selectedItems")||[],J=L.length?this._editStrategy.getIndexByItemData(L[0]):-1,this.option("selectionRequired")&&!U(J))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",L[0]),this._setOptionWithoutOptionChange("selectedIndex",J),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(L));break;case"selectedItem":if(H=this.option("selectedItem"),J=this._editStrategy.getIndexByItemData(H),this.option("selectionRequired")&&!U(J))return this._syncSelectionOptions("selectedIndex");(0,k.O9)(H)?(this._setOptionWithoutOptionChange("selectedItems",[H]),this._setOptionWithoutOptionChange("selectedIndex",J),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([H]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",-1));break;case"selectedItemKeys":if(R=this.option("selectedItemKeys"),this.option("selectionRequired")){const G=this._getIndexByKey(R[0]);if(!U(G))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(R)}return(0,T.cY)().resolve().promise()},_chooseSelectOption(){let M="selectedIndex";const H=function(J){const R=this.option(J);return(0,k.O9)(R)&&R.length||J in this._userOptions}.bind(this);return H("selectedItems")?M="selectedItems":H("selectedItem")?M="selectedItem":H("selectedItemKeys")&&(M="selectedItemKeys"),M},_compareKeys(M,H){if(M.length!==H.length)return!1;for(let J=0;J<H.length;J++)if(M[J]!==H[J])return!1;return!0},_normalizeSelectedItems(){if("none"===this.option("selectionMode"))this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){const M=this.option("selectedItems");if(M.length>1||!M.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){const H=this._selection.getSelectedItems();let J=void 0===M[0]?H[0]:M[0];return void 0===J&&(J=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&J&&J.items&&(J.items=[J.items[0]]),this._selection.setSelection(this._getKeysByItems([J])),this._setOptionWithoutOptionChange("selectedItems",[J]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(M))}else{const M=this._getKeysByItems(this.option("selectedItems")),H=this._selection.getSelectedItemKeys();this._compareKeys(H,M)||this._selection.setSelection(M)}return(0,T.cY)().resolve().promise()},_itemClickHandler(M){let H=(0,T.cY)().resolve();const{callBase:J}=this;this._createAction(R=>{H=this._itemSelectHandler(R.event)??H},{validatingTargetName:"itemElement"})({itemElement:(0,S.A)(M.currentTarget),event:M}),H.always(()=>{J.apply(this,arguments)})},_itemSelectHandler(M){var H;let J;if(this.option("selectByClick"))return this.isItemSelected(M.currentTarget)?this.unselectItem(M.currentTarget):J=this.selectItem(M.currentTarget),null===(H=J)||void 0===H?void 0:H.promise()},_selectedItemElement(M){return this._itemElements().eq(M)},_postprocessRenderItem(M){if("none"!==this.option("selectionMode")){const H=(0,S.A)(M.itemElement),J=this._editStrategy.getNormalizedIndex(H),R=this._isItemSelected(J);this._processSelectableItem(H,R)}},_processSelectableItem(M,H){M.toggleClass(this._selectedItemClass(),H),this._setAriaSelectionAttribute(M,String(H))},_updateSelectedItems(M){const H=this,{addedItemKeys:J}=M,{removedItemKeys:R}=M;if(H._rendered&&(J.length||R.length)){const L=H._selectionChangePromise;if(!H._rendering){const G=[];let Q;const z=[];H._editStrategy.beginCache();for(let K=0;K<J.length;K++)Q=H._getIndexByKey(J[K]),G.push(Q),H._addSelection(Q);for(let K=0;K<R.length;K++)Q=H._getIndexByKey(R[K]),z.push(Q),H._removeSelection(Q);H._editStrategy.endCache(),H._updateSelection(G,z)}(0,T.z7)(L).done(()=>{H._fireSelectionChangeEvent(M.addedItems,M.removedItems)})}},_fireSelectionChangeEvent(M,H){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:M,removedItems:H})},_updateSelection:d.lQ,_setAriaSelectionAttribute(M,H){this.setAria("selected",H,M)},_removeSelection(M){const H=this._editStrategy.getItemElement(M);U(M)&&(this._processSelectableItem(H,!1),v.A.triggerHandler(H,"stateChanged",!1))},_addSelection(M){const H=this._editStrategy.getItemElement(M);U(M)&&(this._processSelectableItem(H,!0),v.A.triggerHandler(H,"stateChanged",!0))},_isItemSelected(M){const H=this._getKeyByIndex(M);return this._selection.isItemSelected(H,{checkPending:!0})},_optionChanged(M){switch(M.name){case"selectionMode":this._invalidate();break;case"dataSource":(!M.value||Array.isArray(M.value)&&!M.value.length)&&this.option("selectedItemKeys",[]),this.callBase(M);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(M.name).done(()=>this._normalizeSelectedItems());break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(M)}},_clearSelectedItems(){this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare(M){if(M.data("dxItemDeleting"))return(0,T.cY)().resolve().promise();M.data("dxItemDeleting",!0);const H=(0,T.cY)(),J={cancel:!1},R=this._itemEventHandler(M,"onItemDeleting",J,{excludeValidators:["disabled","readOnly"]});return(0,T.z7)(R).always(function(L){const G=!R,Q=!G&&"resolved"===R.state(),K=G||Q&&!arguments.length||Q&&L;(0,T.z7)((0,T.Sx)(J.cancel)).always(()=>{M.data("dxItemDeleting",!1)}).done(ee=>{K&&!ee?H.resolve():H.reject()}).fail(H.reject)}),H.promise()},_deleteItemFromDS(M){const H=this._dataController,J=(0,T.cY)(),R=this.option("disabled"),L=H.store();if(!L)return(0,T.cY)().resolve().promise();if(!L.remove)throw x.A.Error("E1011");return this.option("disabled",!0),L.remove(H.keyOf(this._getItemData(M))).done(G=>{void 0!==G?J.resolve():J.reject()}).fail(()=>{J.reject()}),J.always(()=>{this.option("disabled",R)}),J},_tryRefreshLastPage(){const M=(0,T.cY)();return this._isLastPage()||this.option("grouped")?M.resolve():this._refreshLastPage().done(()=>{M.resolve()}),M.promise()},_refreshLastPage(){return this._expectLastItemLoading(),this._dataController.load()},_updateSelectionAfterDelete(M){const H=this._getKeyByIndex(M);this._selection.deselect([H])},_updateIndicesAfterIndex(M){const H=this._itemElements();for(let J=M+1;J<H.length;J++)(0,S.A)(H[J]).data(this._itemIndexKey(),J-1)},_simulateOptionChange(M){const H=this.option(M);H instanceof w.q||this._optionChangedAction({name:M,fullName:M,value:H})},isItemSelected(M){return this._isItemSelected(this._editStrategy.getNormalizedIndex(M))},selectItem(M){if("none"===this.option("selectionMode"))return;const H=this._editStrategy.getNormalizedIndex(M);if(!U(H))return;const J=this._getKeyByIndex(H);if(this._selection.isItemSelected(J))return;if("single"===this.option("selectionMode"))return this._selection.setSelection([J]);const R=this.option("selectedItemKeys")||[];return this._selection.setSelection([...R,J],[J])},unselectItem(M){const H=this._editStrategy.getNormalizedIndex(M);if(!U(H))return;const J=this._selection.getSelectedItemKeys();if(this.option("selectionRequired")&&J.length<=1)return;const R=this._getKeyByIndex(H);this._selection.isItemSelected(R,{checkPending:!0})&&this._selection.deselect([R])},_deleteItemElementByIndex(M){this._updateSelectionAfterDelete(M),this._updateIndicesAfterIndex(M),this._editStrategy.deleteItemAtIndex(M)},_afterItemElementDeleted(M,H){const J=this._dataController.getDataSource()?"dataSource":"items";this._simulateOptionChange(J),this._itemEventHandler(M,"onItemDeleted",H,{beforeExecute(){M.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem(M){const H=this,J=(0,T.cY)(),R=this._editStrategy.getItemElement(M),L=this._editStrategy.getNormalizedIndex(M),G=this._itemResponseWaitClass();return U(L)?this._waitDeletingPrepare(R).done(()=>{R.addClass(G);const Q=H._extendActionArgs(R);H._deleteItemFromDS(R).done(()=>{H._deleteItemElementByIndex(L),H._afterItemElementDeleted(R,Q),H._tryRefreshLastPage().done(()=>{J.resolveWith(H)})}).fail(()=>{R.removeClass(G),J.rejectWith(H)})}).fail(()=>{J.rejectWith(H)}):J.rejectWith(H),J.promise()},reorderItem(M,H){const J=(0,T.cY)(),R=this,L=this._editStrategy,G=L.getItemElement(M),Q=L.getItemElement(H),z=L.getNormalizedIndex(M),K=L.getNormalizedIndex(H),ee=this._dataController.getDataSource()?"dataSource":"items";return U(z)&&U(K)&&z!==K?J.resolveWith(this):J.rejectWith(this),J.promise().done(function(){Q[L.itemPlacementFunc(z,K)](G),L.moveItemAtIndexToIndex(z,K),this._updateIndicesAfterIndex(z),R.option("selectedItems",R._getItemsByKeys(R._selection.getSelectedItemKeys(),R._selection.getSelectedItems())),"items"===ee&&R._simulateOptionChange(ee),R._itemEventHandler(G,"onItemReordered",{fromIndex:L.getIndex(z),toIndex:L.getIndex(K)},{excludeValidators:["disabled","readOnly"]})})}})},1131:(En,it,p)=>{"use strict";function S(de,Ae){return Object.is(de,Ae)}p.d(it,{Ag:()=>re,Bg:()=>A,EF:()=>ce,H8:()=>S,Ht:()=>k,JC:()=>j,KE:()=>P,KO:()=>Ie,KZ:()=>ee,Ny:()=>be,TO:()=>Z,Wu:()=>M,XR:()=>J,a7:()=>Q,bh:()=>e,j2:()=>ye,mC:()=>Me,mK:()=>b,n5:()=>ie,nR:()=>w,pL:()=>x,s0:()=>ke,si:()=>H});let d=null,m=!1,T=1,C=null;const e=Symbol("SIGNAL");function k(de){const Ae=d;return d=de,Ae}function w(){return d}function P(){return m}const x={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function b(de){if(m)throw new Error("");if(null===d)return;d.consumerOnSignalRead(de);const Ae=d.producersTail;if(void 0!==Ae&&Ae.producer===de)return;let pe;const Ee=d.recomputing;if(Ee&&(pe=void 0!==Ae?Ae.nextProducer:d.producers,void 0!==pe&&pe.producer===de))return d.producersTail=pe,void(pe.lastReadVersion=de.version);const le=de.consumersTail;if(void 0!==le&&le.consumer===d&&(!Ee||function K(de,Ae){const pe=Ae.producersTail;if(void 0!==pe){let Ee=Ae.producers;do{if(Ee===de)return!0;if(Ee===pe)break;Ee=Ee.nextProducer}while(void 0!==Ee)}return!1}(le,d)))return;const Ke=G(d),Be={producer:de,consumer:d,nextProducer:pe,prevConsumer:le,lastReadVersion:de.version,nextConsumer:void 0};d.producersTail=Be,void 0!==Ae?Ae.nextProducer=Be:d.producers=Be,Ke&&R(de,Be)}function j(de){if((!G(de)||de.dirty)&&(de.dirty||de.lastCleanEpoch!==T)){if(!de.producerMustRecompute(de)&&!H(de))return void Z(de);de.producerRecomputeValue(de),Z(de)}}function F(de){if(void 0===de.consumers)return;const Ae=m;m=!0;try{for(let pe=de.consumers;void 0!==pe;pe=pe.nextConsumer){const Ee=pe.consumer;Ee.dirty||U(Ee)}}finally{m=Ae}}function X(){return!1!==d?.consumerAllowSignalWrites}function U(de){de.dirty=!0,F(de),de.consumerMarkedDirty?.(de)}function Z(de){de.dirty=!1,de.lastCleanEpoch=T}function A(de){return de&&(de.producersTail=void 0,de.recomputing=!0),k(de)}function M(de,Ae){if(k(Ae),!de)return;de.recomputing=!1;const pe=de.producersTail;let Ee=void 0!==pe?pe.nextProducer:de.producers;if(void 0!==Ee){if(G(de))do{Ee=L(Ee)}while(void 0!==Ee);void 0!==pe?pe.nextProducer=void 0:de.producers=void 0}}function H(de){for(let Ae=de.producers;void 0!==Ae;Ae=Ae.nextProducer){const pe=Ae.producer,Ee=Ae.lastReadVersion;if(Ee!==pe.version||(j(pe),Ee!==pe.version))return!0}return!1}function J(de){if(G(de)){let Ae=de.producers;for(;void 0!==Ae;)Ae=L(Ae)}de.producers=void 0,de.producersTail=void 0,de.consumers=void 0,de.consumersTail=void 0}function R(de,Ae){const pe=de.consumersTail,Ee=G(de);if(void 0!==pe?(Ae.nextConsumer=pe.nextConsumer,pe.nextConsumer=Ae):(Ae.nextConsumer=void 0,de.consumers=Ae),Ae.prevConsumer=pe,de.consumersTail=Ae,!Ee)for(let le=de.producers;void 0!==le;le=le.nextProducer)R(le.producer,le)}function L(de){const Ae=de.producer,pe=de.nextProducer,Ee=de.nextConsumer,le=de.prevConsumer;if(de.nextConsumer=void 0,de.prevConsumer=void 0,void 0!==Ee?Ee.prevConsumer=le:Ae.consumersTail=le,void 0!==le)le.nextConsumer=Ee;else if(Ae.consumers=Ee,!G(Ae)){let Ke=Ae.producers;for(;void 0!==Ke;)Ke=L(Ke)}return pe}function G(de){return de.consumerIsAlwaysLive||void 0!==de.consumers}function Q(de){C?.(de)}function ee(de,Ae){const pe=Object.create(Re);pe.computation=de,void 0!==Ae&&(pe.equal=Ae);const Ee=()=>{if(j(pe),b(pe),pe.value===ce)throw pe.error;return pe.value};return Ee[e]=pe,Q(pe),Ee}const re=Symbol("UNSET"),be=Symbol("COMPUTING"),ce=Symbol("ERRORED"),Re={...x,value:re,dirty:!0,error:null,equal:S,kind:"computed",producerMustRecompute:de=>de.value===re||de.value===be,producerRecomputeValue(de){if(de.value===be)throw new Error("");const Ae=de.value;de.value=be;const pe=A(de);let Ee,le=!1;try{Ee=de.computation(),k(null),le=Ae!==re&&Ae!==ce&&Ee!==ce&&de.equal(Ae,Ee)}catch(Ke){Ee=ce,de.error=Ke}finally{M(de,pe)}le?de.value=Ae:(de.value=Ee,de.version++)}};let De=function Se(){throw new Error};function Pe(de){De(de)}function Ie(de){De=de}let W=null;function ie(de,Ae){const pe=Object.create(ke);pe.value=de,void 0!==Ae&&(pe.equal=Ae);const Ee=()=>function Ce(de){return b(de),de.value}(pe);return Ee[e]=pe,Q(pe),[Ee,Be=>ye(pe,Be),Be=>Me(pe,Be)]}function ye(de,Ae){X()||Pe(de),de.equal(de.value,Ae)||(de.value=Ae,function Ye(de){de.version++,function B(){T++}(),F(de),W?.(de)}(de))}function Me(de,Ae){X()||Pe(de),ye(de,Ae(de.value))}const ke={...x,equal:S,value:void 0,kind:"signal"}},1134:(En,it,p)=>{"use strict";p.d(it,{_:()=>b,n:()=>P});var S=p(4072),d=p(5397),m=p(3538),T=p(5973),C=p(9961),e=p(9293),k=p(9209);const P="dxhoverstart",v=(0,e.b4)(k.A.enter,"dxHoverStart"),b="dxhoverend",B=(0,e.b4)(k.A.leave,"dxHoverEnd"),j=m.A.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(U){(0,d.p)(U,this._handlerArrayKeyPath,{})},add:function(U,Z){const A=this,M=function(H){A._handler(H)};S.A.on(U,this._originalEventName,Z.selector,M),(0,d.p)(U,this._handlerArrayKeyPath)[Z.guid]=M},_handler:function(U){(0,e.kH)(U)||T.A.isSimulator()||(0,e.rC)({type:this._eventName,originalEvent:U,delegateTarget:U.delegateTarget})},remove:function(U,Z){const A=(0,d.p)(U,this._handlerArrayKeyPath)[Z.guid];S.A.off(U,this._originalEventName,Z.selector,A)},teardown:function(U){(0,d.jf)(U,this._handlerArrayKeyPath)}}),F=j.inherit({ctor:function(){this._eventNamespace="dxHoverStart",this._eventName=P,this._originalEventName=v,this.callBase()},_handler:function(U){(U.pointers||[]).length||this.callBase(U)}}),X=j.inherit({ctor:function(){this._eventNamespace="dxHoverEnd",this._eventName=b,this._originalEventName=B,this.callBase()}});(0,C.A)(P,new F),(0,C.A)(b,new X)},1144:(En,it,p)=>{"use strict";p.d(it,{A:()=>X});var S=p(5737),d=p(1973),m=p(5704),T=p(3090),C=p(4757),e=p(1363),k=p(9495),w=p(3949);const P="dx-invalid-message",j=w.A.inherit({_getDefaultOptions(){return(0,T.X)(this.callBase(),{integrationOptions:{},templatesRenderAsynchronously:!1,shading:!1,width:"auto",height:"auto",hideOnOutsideClick:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1,rtlEnabled:!1,contentTemplate:this._renderInnerHtml,maxWidth:"100%",container:this.$element(),target:void 0,mode:"auto",validationErrors:void 0,preventScrollEvents:!1,positionSide:"top",boundary:void 0,offset:{h:0,v:0},contentId:void 0})},_init(){this.callBase(),this.updateMaxWidth(),this._updatePosition()},_initMarkup(){this.callBase(),this._ensureMessageNotEmpty(),this._updatePositionByTarget(),this._toggleModeClass(),this._updateContentId()},_updatePositionByTarget(){const{target:U}=this.option();this.option("position.of",U)},_ensureMessageNotEmpty(){this._textMarkup=this._getTextMarkup();const U=this.option("visible")&&this._textMarkup;this._toggleVisibilityClasses(U)},_toggleVisibilityClasses(U){U?(this.$element().addClass(P),this.$wrapper().addClass(P)):(this.$element().removeClass(P),this.$wrapper().removeClass(P))},_updateContentId(){const{container:U,contentId:Z}=this.option(),A=Z??(0,m.A)(U).attr("aria-describedby");this.$content().addClass("dx-invalid-message-content").attr("id",A)},_renderInnerHtml(U){const Z=U&&(0,m.A)(U);Z?.html(this._textMarkup)},_getTextMarkup(){const U=this.option("validationErrors")??[];let Z="";return U.forEach(A=>{Z+=(Z?"<br />":"")+(0,k.o4)(A?.message??"")}),Z},_toggleModeClass(){const U=this.option("mode");this.$wrapper().toggleClass("dx-invalid-message-auto","auto"===U).toggleClass("dx-invalid-message-always","always"===U)},updateMaxWidth(){const U=this.option("target"),Z=(0,e.Ot)(U);let A="100%";Z&&(A=Math.max(Z,100)),this.option({maxWidth:A})},_getPositionsArray(U,Z){switch(U){case"top":return[`${Z} bottom`,`${Z} top`];case"left":return["right","left"];case"right":return["left","right"];default:return[`${Z} top`,`${Z} bottom`]}},_updatePosition(){const{positionSide:U,rtlEnabled:Z,offset:A,boundary:M}=this.option(),H=(0,C.n)(Z),J=this._getPositionsArray(U,H),R=(0,S.A)({},A);this.$element().addClass(`dx-invalid-message-${U}`),Z&&"left"!==U&&"right"!==U&&(R.h=-R.h),"top"===U&&(R.v=-R.v),"left"===U&&(R.h=-R.h),this.option("position",{offset:R,boundary:M,my:J[0],at:J[1],collision:"none flip"})},_optionChanged(U){const{name:Z,value:A,previousValue:M}=U;switch(Z){case"target":this._updatePositionByTarget(),this.updateMaxWidth(),this.callBase(U);break;case"boundary":this.option("position.boundary",A);break;case"mode":this._toggleModeClass(A);break;case"rtlEnabled":case"offset":case"positionSide":this.$element().removeClass(`dx-invalid-message-${M}`),this._updatePosition();break;case"container":this._updateContentId(),this.callBase(U);break;case"contentId":this._updateContentId();break;case"validationErrors":this._ensureMessageNotEmpty(),this._renderInnerHtml(this.$content());break;default:this.callBase(U)}}});(0,d.A)("dxValidationMessage",j);const X=j},1197:(En,it,p)=>{"use strict";p.d(it,{s:()=>Se,z:()=>De});var S=p(4303),d=p(656),m=p(1973),T=p(5973),C=p(5704),e=p(6021),k=p(3090),w=p(1830),P=p(5267),v=p(8496),x=p(4859),b=p(4972);const M=class A extends b.A{_focusTarget(){return(0,C.A)(this.element()).parent()}_nullValueSelectionSupported(){return!0}_getDefaultOptions(){const Ie=super._getDefaultOptions();return(0,k.X)(Ie,P.A._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})}_initMarkup(){super._initMarkup(),(0,x.zE)(()=>{this._itemElements().addClass("dx-radiobutton")})}_keyboardEventBindingTarget(){return this._focusTarget()}_postprocessRenderItem(Ie){const{itemData:{html:W},itemElement:ie}=Ie;if(!W){const he=(0,C.A)("<div>").addClass("dx-radiobutton-icon");(0,C.A)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(he);const Ce=(0,C.A)("<div>").append(he).addClass("dx-radio-value-container");(0,C.A)(ie).prepend(Ce)}super._postprocessRenderItem(Ie)}_processSelectableItem(Ie,W){super._processSelectableItem(Ie,W),Ie.toggleClass("dx-radiobutton-checked",W).find(".dx-radiobutton-icon").first().toggleClass("dx-radiobutton-icon-checked",W),this.setAria("checked",W,Ie)}_refreshContent(){this._prepareContent(),this._renderContent()}_supportedKeys(){const Ie=super._supportedKeys();return(0,k.X)({},Ie,{enter(W){return W.preventDefault(),Ie.enter.apply(this,arguments)},space(W){return W.preventDefault(),Ie.space.apply(this,arguments)}})}_itemElements(){return this._itemContainer().children(this._itemSelector())}_setAriaSelectionAttribute(){}};class Q extends v.A{_dataSourceOptions(){return{paginate:!1}}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:()=>"desktop"===T.A.real().deviceType&&!T.A.isSimulator(),options:{focusStateEnabled:!0}}])}_fireContentReadyAction(Ie){Ie&&super._fireContentReadyAction()}_focusTarget(){return this.$element()}_getAriaTarget(){return this.$element()}_getDefaultOptions(){const Ie=super._getDefaultOptions();return(0,k.X)(Ie,(0,k.X)(P.A._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical"}))}_getItemValue(Ie){return this._valueGetter?this._valueGetter(Ie):Ie.text}_getSubmitElement(){return this._$submitElement}_init(){super._init(),this._activeStateUnit=".dx-radiobutton",this._feedbackHideTimeout=100,this._initDataExpressions()}_initMarkup(){(0,C.A)(this.element()).addClass("dx-radiogroup"),this._renderSubmitElement(),this.setAria("role","radiogroup"),this._renderRadios(),this._renderLayout(),super._initMarkup()}_itemClickHandler(Ie){let{itemElement:W,event:ie,itemData:he}=Ie;if(this.itemElements().is(W)){const Ce=this._getItemValue(he);Ce!==this.option("value")&&(this._saveValueChangeEvent(ie),this.option("value",Ce))}}_getSelectedItemKeys(){let Ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("value");return"this"!==this.option("valueExpr")&&null===Ie||(0,w.O9)(Ie)?[Ie]:[]}_setSelection(Ie){const W=this._unwrappedValue(Ie);this._setCollectionWidgetOption("selectedItemKeys",this._getSelectedItemKeys(W))}_renderValidationState(){var Ie;super._renderValidationState(),null===(Ie=this._validationMessage)||void 0===Ie||Ie.$content().attr("role","alert")}_optionChanged(Ie){const{name:W,value:ie}=Ie;switch(this._dataExpressionOptionChanged(Ie),W){case"dataSource":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(W,ie);break;case"disabled":super._optionChanged(Ie),this._setCollectionWidgetOption(W,ie);break;case"valueExpr":this._setCollectionWidgetOption("keyExpr",this._getCollectionKeyExpr());break;case"value":this._setSelection(ie),this._setSubmitValue(ie),super._optionChanged(Ie);break;case"items":this._setSelection(this.option("value"));break;case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:super._optionChanged(Ie)}}_render(){super._render(),this._updateItemsSize()}_renderLayout(){const Ie=this.option("layout"),W=(0,C.A)(this.element());W.toggleClass("dx-radiogroup-vertical","vertical"===Ie),W.toggleClass("dx-radiogroup-horizontal","horizontal"===Ie)}_renderRadios(){this._areRadiosCreated=(0,e.cY)();const Ie=(0,C.A)("<div>").appendTo(this.$element()),{displayExpr:W,accessKey:ie,focusStateEnabled:he,itemTemplate:Ce,tabIndex:ye}=this.option();this._createComponent(Ie,M,{onInitialized:Me=>{let{component:_e}=Me;this._radios=_e},onContentReady:Me=>{this._fireContentReadyAction(!0)},onItemClick:this._itemClickHandler.bind(this),displayExpr:W,accessKey:ie,dataSource:this._dataSource,focusStateEnabled:he,itemTemplate:Ce,keyExpr:this._getCollectionKeyExpr(),noDataText:"",scrollingEnabled:!1,selectByClick:!1,selectionMode:"single",selectedItemKeys:this._getSelectedItemKeys(),tabIndex:ye}),this._areRadiosCreated.resolve()}_renderSubmitElement(){this._$submitElement=(0,C.A)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue()}_setOptionsByReference(){super._setOptionsByReference(),(0,k.X)(this._optionsByReference,{value:!0})}_setSubmitValue(Ie){Ie=Ie??this.option("value");const W="this"===this.option("valueExpr")?this._displayGetter(Ie):Ie;this._$submitElement.val(W)}_setCollectionWidgetOption(Ie,W){this._areRadiosCreated.done(this._setWidgetOption.bind(this,"_radios",arguments))}_updateItemsSize(){if("horizontal"===this.option("layout")){var Ie;null===(Ie=this.itemElements())||void 0===Ie||Ie.css("height","auto")}else{var W;const ie=this.option("items").length;null===(W=this.itemElements())||void 0===W||W.css("height",100/ie+"%")}}focus(){var Ie;null===(Ie=this._radios)||void 0===Ie||Ie.focus()}itemElements(){var Ie;return null===(Ie=this._radios)||void 0===Ie?void 0:Ie._itemElements()}}Q.include(P.A),(0,m.A)("dxRadioGroup",Q);const ee=Q;var re=p(8832),be=p(3349),ce=p(8914);const Re={provide:re.kq,useExisting:(0,d.Rfq)(()=>Se),multi:!0};let Se=(()=>{class Pe extends be.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(W){this._setOption("accessKey",W)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(W){this._setOption("activeStateEnabled",W)}get dataSource(){return this._getOption("dataSource")}set dataSource(W){this._setOption("dataSource",W)}get disabled(){return this._getOption("disabled")}set disabled(W){this._setOption("disabled",W)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(W){this._setOption("displayExpr",W)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(W){this._setOption("elementAttr",W)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(W){this._setOption("focusStateEnabled",W)}get height(){return this._getOption("height")}set height(W){this._setOption("height",W)}get hint(){return this._getOption("hint")}set hint(W){this._setOption("hint",W)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(W){this._setOption("hoverStateEnabled",W)}get isDirty(){return this._getOption("isDirty")}set isDirty(W){this._setOption("isDirty",W)}get isValid(){return this._getOption("isValid")}set isValid(W){this._setOption("isValid",W)}get items(){return this._getOption("items")}set items(W){this._setOption("items",W)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(W){this._setOption("itemTemplate",W)}get layout(){return this._getOption("layout")}set layout(W){this._setOption("layout",W)}get name(){return this._getOption("name")}set name(W){this._setOption("name",W)}get readOnly(){return this._getOption("readOnly")}set readOnly(W){this._setOption("readOnly",W)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(W){this._setOption("rtlEnabled",W)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(W){this._setOption("tabIndex",W)}get validationError(){return this._getOption("validationError")}set validationError(W){this._setOption("validationError",W)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(W){this._setOption("validationErrors",W)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(W){this._setOption("validationMessageMode",W)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(W){this._setOption("validationMessagePosition",W)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(W){this._setOption("validationStatus",W)}get value(){return this._getOption("value")}set value(W){this._setOption("value",W)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(W){this._setOption("valueExpr",W)}get visible(){return this._getOption("visible")}set visible(W){this._setOption("visible",W)}get width(){return this._getOption("width")}set width(W){this._setOption("width",W)}onContentReady;onDisposing;onInitialized;onOptionChanged;onValueChanged;accessKeyChange;activeStateEnabledChange;dataSourceChange;disabledChange;displayExprChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;isDirtyChange;isValidChange;itemsChange;itemTemplateChange;layoutChange;nameChange;readOnlyChange;rtlEnabledChange;tabIndexChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;valueExprChange;visibleChange;widthChange;onBlur;change(W){}touched=W=>{};get itemsChildren(){return this._getOption("items")}set itemsChildren(W){this.setChildren("items",W)}constructor(W,ie,he,Ce,ye,Me,_e,ke){super(W,ie,he,Ce,_e,ke),this._watcherHelper=Ce,this._idh=ye,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"layoutChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),Me.setHost(this)}_createInstance(W,ie){return new ee(W,ie)}writeValue(W){this.eventHelper.lockedValueChangeEvent=!0,this.value=W,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(W){this.disabled=W}registerOnChange(W){this.change=W}registerOnTouched(W){this.touched=W}_createWidget(W){super._createWidget(W),this.instance.on("focusOut",ie=>{this.eventHelper.fireNgEvent("onBlur",[ie])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(W){super.ngOnChanges(W),this.setupChanges("dataSource",W),this.setupChanges("items",W),this.setupChanges("validationErrors",W)}setupChanges(W,ie){W in this._optionsToUpdate||this._idh.setup(W,ie)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(W,ie){let he=this._idh.setupSingle(W,ie),Ce=null!==this._idh.getChanges(W,ie);(he||Ce)&&super._setOption(W,ie)}static \u0275fac=function(ie){return new(ie||Pe)(S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(be.zF),S.rXU(be.jS),S.rXU(be.$M),S.rXU(be.fH),S.rXU(S.pJN),S.rXU(S.Agw))};static \u0275cmp=S.VBU({type:Pe,selectors:[["dx-radio-group"]],contentQueries:function(ie,he,Ce){if(1&ie&&S.wni(Ce,ce.CVf,4),2&ie){let ye;S.mGM(ye=S.lsd())&&(he.itemsChildren=ye)}},hostBindings:function(ie,he){1&ie&&S.bIt("valueChange",function(ye){return he.change(ye)})("onBlur",function(ye){return he.touched(ye)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",dataSource:"dataSource",disabled:"disabled",displayExpr:"displayExpr",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isDirty:"isDirty",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",layout:"layout",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueExpr:"valueExpr",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",layoutChange:"layoutChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",tabIndexChange:"tabIndexChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[S.Jv_([be.zF,be.jS,Re,be.fH,be.$M]),S.Vt3,S.OA$],decls:0,vars:0,template:function(ie,he){},encapsulation:2})}return Pe})(),De=(()=>{class Pe{static \u0275fac=function(ie){return new(ie||Pe)};static \u0275mod=S.$C({type:Pe});static \u0275inj=d.G2t({imports:[ce.POb,be.p_,be.xZ,ce.POb,be.xZ]})}return Pe})()},1208:(En,it,p)=>{"use strict";p.d(it,{A:()=>w});var S=p(5704),d=p(4859),m=p(3538),T=p(8684),C=p(3090),e=p(9293);const w=m.A.inherit({ctor:function(P){this._$element=(0,S.A)(P),this._cancelCallback=(0,T.A)(),this._acceptCallback=(0,T.A)()},getElement:function(){return this._$element},validate:function(P){return!(0,e.X1)(P)},validatePointers:function(P){return 1===(0,e.Ic)(P)},allowInterruptionByMouseWheel:function(){return!0},configure:function(P){(0,C.X)(this,P)},addCancelCallback:function(P){this._cancelCallback.add(P)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(P){this._cancelCallback.fire(this,P)},addAcceptCallback:function(P){this._acceptCallback.add(P)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(P){this._acceptCallback.fire(this,P)},_requestAccept:function(P){this._acceptRequestEvent=P},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:d.lQ,move:d.lQ,end:d.lQ,cancel:d.lQ,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(P,v,x){const b=(0,C.X)({type:P,originalEvent:v,target:this._getEmitterTarget(v),delegateTarget:this.getElement().get(0)},x);return(v=(0,e.rC)(b)).cancel&&this._cancel(v),v},_getEmitterTarget:function(P){return(this.delegateSelector?(0,S.A)(P.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:d.lQ})},1216:(En,it,p)=>{"use strict";p.d(it,{Jh:()=>k,tY:()=>e,xH:()=>m});var S=p(4072);const m=S.A.one,e=S.A.triggerHandler,k=S.A.Event},1220:(En,it,p)=>{"use strict";p.d(it,{A:()=>ce});var S=p(5737),d=p(2123),m=p(1973),T=p(8569),C=p(5704),e=p(4859),k=p(3090),w=p(2660),P=p(3012),v=p(1363),x=p(1830),b=p(6110),B=p(4072),j=p(8664),F=p(9293),X=p(9229);const U="dxResizable",Q=(0,F.b4)(j.ni,U),z=(0,F.b4)(j.Cy,U),K=(0,F.b4)(j._N,U),ee={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},re=T.A.inherit({_getDefaultOptions(){return(0,k.X)(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0,keepAspectRatio:!0})},_init(){this.callBase(),this.$element().addClass("dx-resizable")},_initMarkup(){this.callBase(),this._renderHandles()},_render(){this.callBase(),this._renderActions()},_renderActions(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles(){this._handles=[];const Re=this.option("handles");if("none"===Re||!Re)return;const Se="all"===Re?["top","bottom","left","right"]:Re.split(" "),De={};(0,w.__)(Se,(Pe,Ie)=>{De[Ie]=!0,this._renderHandle(Ie)}),De.bottom&&De.right&&this._renderHandle("corner-bottom-right"),De.bottom&&De.left&&this._renderHandle("corner-bottom-left"),De.top&&De.right&&this._renderHandle("corner-top-right"),De.top&&De.left&&this._renderHandle("corner-top-left"),this._attachEventHandlers()},_renderHandle(Re){const Se=(0,C.A)("<div>").addClass("dx-resizable-handle").addClass(`dx-resizable-handle-${Re}`).appendTo(this.$element());this._handles.push(Se)},_attachEventHandlers(){if(this.option("disabled"))return;const Re={};Re[Q]=this._dragStartHandler.bind(this),Re[z]=this._dragHandler.bind(this),Re[K]=this._dragEndHandler.bind(this),this._handles.forEach(Se=>{B.A.on(Se,Re,{direction:"both",immediate:!0})})},_detachEventHandlers(){this._handles.forEach(Re=>{B.A.off(Re)})},_toggleEventHandlers(Re){Re?this._attachEventHandlers():this._detachEventHandlers()},_getElementSize(){const Re=this.$element();return"border-box"===Re.css("boxSizing")?{width:(0,v.Ot)(Re),height:(0,v.P$)(Re)}:{width:(0,v.RG)(Re),height:(0,v.Oq)(Re)}},_dragStartHandler(Re){const Se=this.$element();Se.is(".dx-state-disabled, .dx-state-disabled *")?Re.cancel=!0:(this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(Re),this._elementLocation=(0,d.x5)(Se),this._elementSize=this._getElementSize(),this._renderDragOffsets(Re),this._resizeStartAction({event:Re,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),Re.targetElements=null)},_toggleResizingClass(Re){this.$element().toggleClass("dx-resizable-resizing",Re)},_renderDragOffsets(Re){const Se=this._getArea();if(!Se)return;const De=(0,C.A)(Re.target).closest(".dx-resizable-handle"),Pe=(0,v.Ot)(De),Ie=(0,v.P$)(De),W=De.offset(),ie=Se.offset,he=this._getAreaScrollOffset();Re.maxLeftOffset=this._leftMaxOffset=W.left-ie.left-he.scrollX,Re.maxRightOffset=this._rightMaxOffset=ie.left+Se.width-W.left-Pe+he.scrollX,Re.maxTopOffset=this._topMaxOffset=W.top-ie.top-he.scrollY,Re.maxBottomOffset=this._bottomMaxOffset=ie.top+Se.height-W.top-Ie+he.scrollY},_getBorderWidth(Re,Se){if((0,x.l6)(Re.get(0)))return 0;const De=Re.css(ee[Se]);return parseInt(De)||0},_proportionate(Re,Se){const De=this._elementSize;return Se*("x"===Re?De.width/De.height:De.height/De.width)},_getProportionalDelta(Re){let{x:Se,y:De}=Re;const Pe=this._proportionate("y",Se);if(Pe>=De)return{x:Se,y:Pe};const Ie=this._proportionate("x",De);return Ie>=Se?{x:Ie,y:De}:{x:0,y:0}},_getDirectionName(Re){const Se=this._movingSides;return"x"===Re?Se.left?"left":"right":Se.top?"top":"bottom"},_fitIntoArea(Re,Se){const De=this._getDirectionName(Re);return Math.min(Se,this[`_${De}MaxOffset`]??1/0)},_fitDeltaProportionally(Re){let Se=(0,S.A)({},Re);const De=this._elementSize,{minWidth:Pe,minHeight:Ie,maxWidth:W,maxHeight:ie}=this.option(),he=()=>De.width+Se.x,Ce=()=>De.height+Se.y,ye=ke=>Se[ke]===this._fitIntoArea(ke,Se[ke]),Me=()=>(0,P.r4)(he(),Pe,W)&&ye("x"),_e=()=>(0,P.r4)(Ce(),Ie,ie)&&ye("y");if(!Me()){const ke=this._fitIntoArea("x",(0,P.df)(he(),Pe,W)-De.width);Se={x:ke,y:this._proportionate("y",ke)}}if(!_e()){const ke=this._fitIntoArea("y",(0,P.df)(Ce(),Ie,ie)-De.height);Se={x:this._proportionate("x",ke),y:ke}}return Me()&&_e()?Se:{x:0,y:0}},_fitDelta(Re){let{x:Se,y:De}=Re;const Pe=this._elementSize,{minWidth:Ie,minHeight:W,maxWidth:ie,maxHeight:he}=this.option();return{x:(0,P.df)(Pe.width+Se,Ie,ie)-Pe.width,y:(0,P.df)(Pe.height+De,W,he)-Pe.height}},_getDeltaByOffset(Re){const Se=this._movingSides,De=this._isCornerHandler(Se)&&this.option("keepAspectRatio");let Pe={x:Re.x*(Se.left?-1:1),y:Re.y*(Se.top?-1:1)};if(De){const Ie=this._getProportionalDelta(Pe);Pe=this._fitDeltaProportionally(Ie)}else{const Ie=this._fitDelta(Pe);Pe=this._roundByStep(Ie)}return Pe},_updatePosition(Re,Se){let{width:De,height:Pe}=Se;const Ie=this._elementLocation,W=this._movingSides,ie=this.$element(),he=this._getElementSize();(0,d.Cy)(ie,{top:Ie.top+(W.top?Re.y*(W.top?-1:1)-((he.height||Pe)-Pe):0),left:Ie.left+(W.left?Re.x*(W.left?-1:1)-((he.width||De)-De):0)})},_dragHandler(Re){const Se=this._getOffset(Re),De=this._getDeltaByOffset(Se),Pe=this._updateDimensions(De);this._updatePosition(De,Pe),this._triggerResizeAction(Re,Pe)},_updateDimensions(Re){const Se=ye=>"px"===ye.substring(ye.length-2),De="strict"===this.option("stepPrecision"),Pe=this._elementSize,Ie=Pe.width+Re.x,W=Pe.height+Re.y,ie=this.$element().get(0).style,he=Re.x||De||Se(ie.width),Ce=Re.y||De||Se(ie.height);return he&&this.option({width:Ie}),Ce&&this.option({height:W}),{width:he?Ie:Pe.width,height:Ce?W:Pe.height}},_triggerResizeAction(Re,Se){let{width:De,height:Pe}=Se;this._resizeAction({event:Re,width:this.option("width")||De,height:this.option("height")||Pe,handles:this._movingSides}),(0,X.ho)(this.$element())},_isCornerHandler:Re=>0===Object.values(Re).reduce((Se,De)=>Se^De,0),_getOffset(Re){const{offset:Se}=Re,De=this._movingSides;return!De.left&&!De.right&&(Se.x=0),!De.top&&!De.bottom&&(Se.y=0),Se},_roundByStep(Re){return"strict"===this.option("stepPrecision")?this._roundStrict(Re):this._roundNotStrict(Re)},_getSteps(){return(0,e.Li)(this.option("step"),!this.option("roundStepValue"))},_roundNotStrict(Re){const Se=this._getSteps();return{x:Re.x-Re.x%Se.h,y:Re.y-Re.y%Se.v}},_roundStrict(Re){const Se=this._movingSides,De={x:Re.x*(Se.left?-1:1),y:Re.y*(Se.top?-1:1)},Pe=this._getSteps(),Ie=this._elementLocation,W=this._elementSize,Ce=((Se.left?Ie.left:Ie.left+W.width)+De.x)%Pe.h,ye=((Se.top?Ie.top:Ie.top+W.height)+De.y)%Pe.v,Me=Math.sign||(Ee=>0===(Ee=+Ee)||isNaN(Ee)?Ee:Ee>0?1:-1),_e=(Ee,le)=>(1+.2*Me(le))%1*Ee,ke=(Ee,le)=>Math.abs(Ee)<.2*le;let Ye=De.x-Ce,de=De.y-ye;Ce>_e(Pe.h,De.x)&&(Ye+=Pe.h),ye>_e(Pe.v,De.y)&&(de+=Pe.v);const Ae=!Se.left&&!Se.right||ke(De.x,Pe.h)?0:Ye,pe=!Se.top&&!Se.bottom||ke(De.y,Pe.v)?0:de;return{x:Ae*(Se.left?-1:1),y:pe*(Se.top?-1:1)}},_getMovingSides(Re){const Se=(0,C.A)(Re.target),De=Se.hasClass("dx-resizable-handle-corner-top-left"),Pe=Se.hasClass("dx-resizable-handle-corner-top-right"),Ie=Se.hasClass("dx-resizable-handle-corner-bottom-left"),W=Se.hasClass("dx-resizable-handle-corner-bottom-right");return{top:Se.hasClass("dx-resizable-handle-top")||De||Pe,left:Se.hasClass("dx-resizable-handle-left")||De||Ie,bottom:Se.hasClass("dx-resizable-handle-bottom")||Ie||W,right:Se.hasClass("dx-resizable-handle-right")||Pe||W}},_getArea(){let Re=this.option("area");return(0,x.Tn)(Re)&&(Re=Re.call(this)),(0,x.Qd)(Re)?this._getAreaFromObject(Re):this._getAreaFromElement(Re)},_getAreaScrollOffset(){const Re=this.option("area"),De={scrollY:0,scrollX:0};if(!(0,x.Tn)(Re)&&!(0,x.Qd)(Re)){const Pe=(0,C.A)(Re)[0];(0,x.l6)(Pe)&&(De.scrollX=Pe.pageXOffset,De.scrollY=Pe.pageYOffset)}return De},_getAreaFromObject(Re){const Se={width:Re.right-Re.left,height:Re.bottom-Re.top,offset:{left:Re.left,top:Re.top}};return this._correctAreaGeometry(Se),Se},_getAreaFromElement(Re){const Se=(0,C.A)(Re);let De;return Se.length&&(De={width:(0,v.hh)(Se),height:(0,v.yV)(Se),offset:(0,k.X)({top:0,left:0},(0,x.l6)(Se[0])?{}:Se.offset())},this._correctAreaGeometry(De,Se)),De},_correctAreaGeometry(Re,Se){const De=Se?this._getBorderWidth(Se,"left"):0,Pe=Se?this._getBorderWidth(Se,"top"):0;Re.offset.left+=De+this._getBorderWidth(this.$element(),"left"),Re.offset.top+=Pe+this._getBorderWidth(this.$element(),"top"),Re.width-=(0,v.Ot)(this.$element())-(0,v.hh)(this.$element()),Re.height-=(0,v.P$)(this.$element())-(0,v.yV)(this.$element())},_dragEndHandler(Re){const Se=this.$element();this._resizeEndAction({event:Re,width:(0,v.Ot)(Se),height:(0,v.P$)(Se),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth(Re){this.option("width",(0,P.df)(Re,this.option("minWidth"),this.option("maxWidth")))},_renderHeight(Re){this.option("height",(0,P.df)(Re,this.option("minHeight"),this.option("maxHeight")))},_optionChanged(Re){switch(Re.name){case"disabled":this._toggleEventHandlers(!Re.value),this.callBase(Re);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":(0,b.Vd)()&&this._renderWidth((0,v.Ot)(this.$element()));break;case"minHeight":case"maxHeight":(0,b.Vd)()&&this._renderHeight((0,v.P$)(this.$element()));break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":case"keepAspectRatio":break;default:this.callBase(Re)}},_clean(){this.$element().find(".dx-resizable-handle").remove()},_useTemplates:()=>!1});(0,m.A)(U,re);const ce=re},1221:(En,it,p)=>{"use strict";p.d(it,{q:()=>Z});var S=p(5737),d=p(3538),m=p(3090),T=p(4859),C=p(2660),e=p(1830),k=p(9916),w=p(2946),P=p(2440),v=p(6101),x=p(2614),b=p(7251),B=p(6021);function j(A){let M=[],H=!1;function J(){for(;M.length;){H=!0;const L=M.shift()();if(void 0!==L){if(L.then)return void(0,B.z7)(L).always(J);throw b.A.Error("E0015")}}H=!1}return{add:function(R,L){A?(M[0]&&L&&L(M[0]),M=[R]):M.push(R),H||J()},busy:function(){return H}}}j();var X=p(5335);class U{constructor(){this._counter=-1,this._deferreds={}}add(M){return this._counter++,this._deferreds[this._counter]=M,this._counter}remove(M){return delete this._deferreds[M]}cancel(M){return M in this._deferreds&&(this._deferreds[M].reject(X.uK),!0)}cancelAll(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--}}const Z=d.A.inherit({ctor(A){if(A=(0,X.ho)(A),this._eventsStrategy=new v.h(this,{syncStrategy:!0}),this._store=A.store,this._changedTime=0,0!==A.pushAggregationTimeout){let J,R;const L=(0,k.oK)(G=>{J.resolve(),(0,B.z7)(...R).done(()=>this._onPush(G)),R=void 0,J=void 0},void 0===A.pushAggregationTimeout?()=>5*this._changedTime:A.pushAggregationTimeout);this._onPushHandler=G=>{this._aggregationTimeoutId=L(G.changes),J||(J=new B.cY),R=G.waitFor,G.waitFor.push(J.promise())},this._store.on("beforePushAggregation",this._onPushHandler)}else this._onPushHandler=H=>this._onPush(H),this._store.on("push",this._onPushHandler);this._storeLoadOptions=this._extractLoadOptions(A),this._mapFunc=A.map,this._postProcessFunc=A.postProcess,this._pageIndex=void 0!==A.pageIndex?A.pageIndex:0,this._pageSize=void 0!==A.pageSize?A.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in A?A.searchValue:null,this._searchOperation=A.searchOperation||"contains",this._searchExpr=A.searchExpr,this._paginate=A.paginate,this._reshapeOnPush=A.reshapeOnPush??!1,(0,C.__)(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],(H,J)=>{J in A&&this.on(J.substr(2,1).toLowerCase()+J.substr(3),A[J])}),this._operationManager=new U,this._init()},_init(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,(0,e.O9)(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose(){var A;this._store.off("beforePushAggregation",this._onPushHandler),this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),null===(A=this._delayedLoadTask)||void 0===A||A.abort(),this._operationManager.cancelAll(),delete this._store,delete this._items,delete this._delayedLoadTask,this._disposed=!0},_extractLoadOptions(A){const M={};let H=["sort","filter","langParams","select","group","requireTotalCount"];const J=this._store._customLoadOptions();return J&&(H=H.concat(J)),(0,C.__)(H,function(){M[this]=A[this]}),M},loadOptions(){return this._storeLoadOptions},items(){return this._items},pageIndex(A){if(!(0,e.kf)(A))return this._pageIndex;this._pageIndex=A,this._isLastPage=!this._paginate},paginate(A){if(!(0,e.Lm)(A))return this._paginate;this._paginate!==A&&(this._paginate=A,this.pageIndex(0))},pageSize(A){if(!(0,e.kf)(A))return this._pageSize;this._pageSize=A},isLastPage(){return this._isLastPage},generateStoreLoadOptionAccessor(A){return M=>{const H=(0,X.Rc)(M);if(void 0===H)return this._storeLoadOptions[A];this._storeLoadOptions[A]=H}},sort(){for(var A=arguments.length,M=new Array(A),H=0;H<A;H++)M[H]=arguments[H];return this.generateStoreLoadOptionAccessor("sort")(M)},filter(){const A=(0,X.Rc)(arguments);if(void 0===A)return this._storeLoadOptions.filter;this._storeLoadOptions.filter=A,this.pageIndex(0)},group(){for(var A=arguments.length,M=new Array(A),H=0;H<A;H++)M[H]=arguments[H];return this.generateStoreLoadOptionAccessor("group")(M)},select(){for(var A=arguments.length,M=new Array(A),H=0;H<A;H++)M[H]=arguments[H];return this.generateStoreLoadOptionAccessor("select")(M)},requireTotalCount(A){if(!(0,e.Lm)(A))return this._storeLoadOptions.requireTotalCount;this._storeLoadOptions.requireTotalCount=A},searchValue(A){if(arguments.length<1)return this._searchValue;this._searchValue=A,this.pageIndex(0)},searchOperation(A){if(!(0,e.Kg)(A))return this._searchOperation;this._searchOperation=A,this.pageIndex(0)},searchExpr(A){const M=arguments.length;if(0===M)return this._searchExpr;M>1&&(A=[].slice.call(arguments)),this._searchExpr=A,this.pageIndex(0)},store(){return this._store},key(){var A;return null===(A=this._store)||void 0===A?void 0:A.key()},totalCount(){return this._totalCount},isLoaded(){return this._isLoaded},isLoading(){return this._loadingCount>0},beginLoading(){this._changeLoadingCount(1)},endLoading(){this._changeLoadingCount(-1)},_createLoadQueue:()=>j(),_changeLoadingCount(A){const M=this.isLoading();this._loadingCount+=A;const H=this.isLoading();M^H&&this._eventsStrategy.fireEvent("loadingChanged",[H])},_scheduleLoadCallbacks(A){this.beginLoading(),A.always(()=>{this.endLoading()})},_scheduleFailCallbacks(A){var M=this;A.fail(function(){for(var H=arguments.length,J=new Array(H),R=0;R<H;R++)J[R]=arguments[R];J[0]!==X.uK&&M._eventsStrategy.fireEvent("loadError",J)})},_fireChanged(A){const M=new Date;this._eventsStrategy.fireEvent("changed",A),this._changedTime=new Date-M},_scheduleChangedCallbacks(A){A.done(()=>this._fireChanged())},loadSingle(A,M){const H=new B.cY,J=this.key(),R=this._store,L=this._createStoreLoadOptions();return this._scheduleFailCallbacks(H),arguments.length<2&&(M=A,A=J),delete L.skip,delete L.group,delete L.refresh,delete L.pageIndex,delete L.searchString,(A===J||R instanceof P.A&&!R._byKeyViaLoad()?R.byKey(M,L):(L.take=1,L.filter=L.filter?[L.filter,[A,M]]:[A,M],R.load(L))).fail(H.reject).done(G=>{const Q=Array.isArray(G)&&!G.length;!(0,e.O9)(G)||Q?H.reject(new x.sO.Error("E4009")):(Array.isArray(G)||(G=[G]),H.resolve(this._applyMapFunction(G)[0]))}),H.promise()},load(){const A=new B.cY,M=()=>{if(!this._disposed&&(0,X.mm)(A))return this._loadFromStore(H,A)};this._scheduleLoadCallbacks(A),this._scheduleFailCallbacks(A),this._scheduleChangedCallbacks(A);const H=this._createLoadOperation(A);return this._eventsStrategy.fireEvent("customizeStoreLoadOptions",[H]),this._loadQueue.add(()=>("number"==typeof H.delay?this._delayedLoadTask=(0,T.uG)(M,H.delay):M(),A.promise())),A.promise({operationId:H.operationId})},_onPush(A){if(this._reshapeOnPush)this.load();else{const M={changes:A};this._eventsStrategy.fireEvent("changing",[M]);const H=this.group(),J=this.items();let R=0,L=this.paginate()||H?A.filter(G=>"update"===G.type):A;H&&(R=Array.isArray(H)?H.length:1),this._mapFunc&&L.forEach(G=>{"insert"===G.type&&(G.data=this._mapFunc(G.data))}),M.postProcessChanges&&(L=M.postProcessChanges(L)),(0,w.VK)({keyInfo:this.store(),data:J,changes:L,groupCount:R,useInsertIndex:!0}),this._fireChanged([{changes:A}])}},_createLoadOperation(A){const M=this._operationManager.add(A),H=this._createStoreLoadOptions();return this._store&&!(0,e.RI)(H?.langParams)&&(this._store._langParams=(0,S.A)({},this._store._langParams,H.langParams)),A.always(()=>this._operationManager.remove(M)),{operationId:M,storeLoadOptions:H}},reload(){return this.store()._clearCache(),this._init(),this.load()},cancel(A){return this._operationManager.cancel(A)},cancelAll(){return this._operationManager.cancelAll()},_addSearchOptions(A){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(A):(A.searchOperation=this._searchOperation,A.searchValue=this._searchValue,A.searchExpr=this._searchExpr))},_createStoreLoadOptions(){const A=(0,m.X)({},this._storeLoadOptions);return this._addSearchOptions(A),this._paginate&&this._pageSize&&(A.skip=this._pageIndex*this._pageSize,A.take=this._pageSize),A.userData=this._userData,A},_addSearchFilter(A){const M=this._searchValue,H=this._searchOperation;let J=this._searchExpr;const R=[];M&&(J||(J="this"),Array.isArray(J)||(J=[J]),(0,C.__)(J,function(L,G){R.length&&R.push("or"),R.push([G,H,M])}),A.filter=A.filter?[R,A.filter]:R)},_loadFromStore(A,M){const H=(J,R)=>{if(this._disposed||!(0,X.mm)(M))return;const L=(0,m.X)((0,X.Xp)(J,R),A);this._eventsStrategy.fireEvent("customizeLoadResult",[L]),(0,B.z7)(L.data).done(G=>{L.data=G,this._processStoreLoadResult(L,M)}).fail(M.reject)};return A.data?(new B.cY).resolve(A.data).done(H):this.store().load(A.storeLoadOptions).done(H).fail(M.reject)},_processStoreLoadResult(A,M){let H=A.data,J=A.extra;const R=A.storeLoadOptions,L=()=>(this._isLoaded=!0,this._totalCount=isFinite(J.totalCount)?J.totalCount:-1,M.resolve(H,J));this._disposed||(H=this._applyPostProcessFunction(this._applyMapFunction(H)),(0,e.Gv)(J)||(J={}),this._items=H,(!H.length||!this._paginate||this._pageSize&&H.length<this._pageSize)&&(this._isLastPage=!0),R.requireTotalCount&&!isFinite(J.totalCount)?(()=>{this.store().totalCount(R).done(function(Q){J.totalCount=Q,L()}).fail(M.reject)})():L())},_applyMapFunction(A){return this._mapFunc?(0,X.Kl)(A,this._mapFunc,this.group()):A},_applyPostProcessFunction(A){return this._postProcessFunc?this._postProcessFunc(A):A},on(A,M){return this._eventsStrategy.on(A,M),this},off(A,M){return this._eventsStrategy.off(A,M),this}})},1257:(En,it,p)=>{"use strict";p.d(it,{KE:()=>H,eH:()=>A});var S=p(9144),d=p(5737),m=p(5328),T=p(5652),C=p(2925),e=p(2673),k=p(9641),w=p(6628),P=p(1144),v=p(807);const x=["accessKey","activeStateEnabled","boundary","className","contentId","disabled","focusStateEnabled","height","hint","hoverStateEnabled","mode","offset","onClick","onKeyDown","positionSide","rtlEnabled","tabIndex","target","validationErrors","visible","visualContainer","width"],B=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(k.s),Object.getOwnPropertyDescriptors({mode:"auto",positionSide:"top",offset:Object.freeze({h:0,v:0}),isReactComponentWrapper:!0})));let j=(()=>{class G extends T.eh{constructor(z){super(z),this.state={}}get componentProps(){return this.props}get restAttributes(){return(0,S.A)(this.props,x)}render(){return(G=>{let{componentProps:Q,restAttributes:z}=G;return(0,m._B)((0,m.sO)(2,v.FU,(0,d.A)({componentType:P.A,componentProps:Q,templateNames:[]},z)))})({props:(0,d.A)({},this.props),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return G.defaultProps=B,G})();p(5170);const X=["accessKey","activeStateEnabled","aria","children","className","classes","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","inputAttr","isDirty","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],A=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(k.s),Object.getOwnPropertyDescriptors({readOnly:!1,name:"",validationError:null,validationErrors:null,validationMessageMode:"auto",validationMessagePosition:"bottom",validationStatus:"valid",isValid:!0,isDirty:!1,inputAttr:Object.freeze({}),defaultValue:null,valueChange:()=>{}}))),M={get readOnly(){return A.readOnly},get name(){return A.name},get validationError(){return A.validationError},get validationErrors(){return A.validationErrors},get validationMessageMode(){return A.validationMessageMode},get validationMessagePosition(){return A.validationMessagePosition},get validationStatus(){return A.validationStatus},get isValid(){return A.isValid},get isDirty(){return A.isDirty},get inputAttr(){return A.inputAttr},get defaultValue(){return A.defaultValue},get valueChange(){return A.valueChange},get className(){return A.className},get activeStateEnabled(){return A.activeStateEnabled},get disabled(){return A.disabled},get focusStateEnabled(){return A.focusStateEnabled},get hoverStateEnabled(){return A.hoverStateEnabled},get tabIndex(){return A.tabIndex},get visible(){return A.visible},get aria(){return e.b7.aria},get classes(){return e.b7.classes}};class H extends T.oe{constructor(Q){super(Q),this.widgetRef=(0,m._3)(),this.rootElementRef=(0,m._3)(),this.__getterCache={},this.state={validationMessageGuid:`dx-${new C.A}`,isValidationMessageVisible:!1,value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.updateValidationMessageVisibility=this.updateValidationMessageVisibility.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onFocusIn=this.onFocusIn.bind(this)}createEffects(){return[new T.Lt(this.updateValidationMessageVisibility,[this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors]),(0,T.h2)()]}updateEffects(){var Q;null===(Q=this._effects[0])||void 0===Q||Q.update([this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors])}updateValidationMessageVisibility(){this.setState(Q=>({isValidationMessageVisible:this.shouldShowValidationMessage}))}onFocusIn(Q){const{onFocusIn:z}=this.props;z?.(Q)}get cssClasses(){return`${(G=>{const{classes:Q,isValid:z,readOnly:K}=G,ee={"dx-state-readonly":!!K,"dx-invalid":!z,[String(Q)]:!!Q};return(0,w.g)(ee)})((0,d.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}))}`}get shouldShowValidationMessage(){const{isValid:Q,validationStatus:z}=this.props;return!(Q&&"invalid"!==z)&&(this.validationErrors??[]).length>0}get aria(){const{isValid:Q,readOnly:z}=this.props,K={readonly:z?"true":"false",invalid:Q?"false":"true"};return this.shouldShowValidationMessage&&(K.describedBy=this.state.validationMessageGuid),(0,d.A)({},K,this.props.aria)}get validationErrors(){return void 0!==this.__getterCache.validationErrors?this.__getterCache.validationErrors:this.__getterCache.validationErrors=(()=>{const{validationError:Q,validationErrors:z}=this.props;let K=z&&[...z];return!K&&Q&&(K=[(0,d.A)({},Q)]),K})()}get validationMessageTarget(){var Q;return null===(Q=this.rootElementRef)||void 0===Q?void 0:Q.current}get restAttributes(){const Q=(0,d.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,S.A)(Q,X)}focus(){this.widgetRef.current.focus()}blur(){this.widgetRef.current.blur()}componentWillUpdate(Q,z,K){super.componentWillUpdate(),(this.props.validationError!==Q.validationError||this.props.validationErrors!==Q.validationErrors)&&(this.__getterCache.validationErrors=void 0)}render(){return(G=>{const{aria:Q,cssClasses:z,isValidationMessageVisible:K,onFocusIn:ee,props:{accessKey:re,activeStateEnabled:be,children:ce,className:Re,disabled:Se,focusStateEnabled:De,height:Pe,hint:Ie,hoverStateEnabled:W,onClick:ie,onKeyDown:he,rtlEnabled:Ce,tabIndex:ye,validationMessageMode:Me,validationMessagePosition:_e,visible:ke,width:Ye},restAttributes:de,rootElementRef:Ae,validationErrors:pe,validationMessageGuid:Ee,validationMessageTarget:le,widgetRef:Ke}=G;return(0,m._B)((0,m.sO)(2,e.x0,(0,d.A)({rootElementRef:Ae,aria:Q,classes:z,activeStateEnabled:be,focusStateEnabled:De,hoverStateEnabled:W,accessKey:re,className:Re,rtlEnabled:Ce,hint:Ie,disabled:Se,height:Pe,width:Ye,onFocusIn:ee,onClick:ie,onKeyDown:he,tabIndex:ye,visible:ke},de,{children:(0,m.nl)([ce,K&&(0,m.sO)(2,j,{validationErrors:pe,mode:Me,positionSide:_e,rtlEnabled:Ce,target:le,boundary:le,visualContainer:le,contentId:Ee})],0)}),null,Ke))})({props:(0,d.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),validationMessageGuid:this.state.validationMessageGuid,isValidationMessageVisible:this.state.isValidationMessageVisible,rootElementRef:this.rootElementRef,widgetRef:this.widgetRef,onFocusIn:this.onFocusIn,cssClasses:this.cssClasses,shouldShowValidationMessage:this.shouldShowValidationMessage,aria:this.aria,validationErrors:this.validationErrors,validationMessageTarget:this.validationMessageTarget,restAttributes:this.restAttributes})}}H.defaultProps=M},1271:(En,it,p)=>{"use strict";p.d(it,{f:()=>Z,g:()=>J});var S=p(3012),d=p(749);const m={thousandsSeparator:",",decimalSeparator:"."},T="'";function P(R){return R.toString().split("").reverse().join("")}function x(R){return R.replace(/'.+'/g,"")}function b(R){if(!R)return 0;const L=x(R);return L.length-L.replace(/[#]/g,"").length}function B(R){if(!R)return 0;const L=x(R);return L.length-L.replace(/[0]/g,"").length}function j(R,L,G){if(!R)return"";for(R.length>G&&(R=R.substr(0,G));R.length>L&&"0"===R.slice(-1);)R=R.substr(0,R.length-1);for(;R.length<L;)R+="0";return R}function X(R,L){return R.split(T).map(function(G,Q){const z=Q%2;return!G&&z?T:z?G:G.replace(/[,#0]+/,L)}).join("")}function Z(R,L){return L=L||m,function(G){if("number"!=typeof G||isNaN(G))return"";const Q=function w(R){const L=R.split(";");return 1===L.length&&L.push("-"+L[0]),L}(R),K=G>0||1/G==1/0,ee=Q[K?0:1],re=function U(R){let L=!1;for(let G=0;G<R.length;G++)if("'"===R[G]&&(L=!L),"."===R[G]&&!L)return G;return R.length}(ee),be=[ee.substr(0,re),ee.substr(re+1)],ce=B(be[1]),Re=ce+b(be[1]);(function v(R){return-1!==R.indexOf("%")&&!R.match(/'[^']*%[^']*'/g)})(ee)&&(G=(0,S.T0)(G,2)),K||(G=-G);const Se=B(be[0]),De=b(be[0])||L.unlimitedIntegerDigits?void 0:Se,Pe=Math.floor(G).toString().length,Ie=(0,S.df)(Re,0,15-Pe),W=function k(R){return R.split(",").slice(1).map(function(L){let G=0;return L.split("").filter(function(Q,z){return G+="'"===Q,!("#"!==Q&&"0"!==Q||G%2)}).length})}(be[0]).reverse(),ie=(0,d.M)(G,Ie<0?0:Ie).split(".");let he=j(P(ie[0]),Se,De);const Ce=j(ie[1],ce,Re);he=function F(R,L,G){if(!L.length)return R;const Q=[];let z=0;for(;R;){const K=L[z];if(!K)break;Q.push(R.slice(0,K)),R=R.slice(K),z<L.length-1&&z++}return Q.join(G)}(he,W,L.thousandsSeparator);const ye=P(X(P(be[0]),he)),Me=Re?X(be[1],Ce):"";return ye+(Me.match(/\d/)?L.decimalSeparator:"")+Me}}function A(R,L,G){const Q=(L?.01:1)*parseFloat(R)||0;return G?-Q:Q}function M(R,L,G,Q){let K,ee,re,z=R;do{re&&(K=ee.length===re.length?"0":"1",R=Q?K+R:R+K),ee=re||L(A(z,G)),z=Q?"1"+z:z+"1",re=L(A(z,G))}while(ee!==re&&(Q?ee.length===re.length:ee.length<=re.length));if(Q&&re.length>ee.length){const be=-1===L(12345).indexOf("12345");do{R="1"+R}while(be&&A(R,G)<1e5)}return R}function H(R,L,G,Q){let z=L(A(R,G,Q));const K=R.split("."),be=L(A(K[0]+".3"+K[1].slice(1),G,Q)).indexOf("3")-1;return z=z.replace(/(\d)\D(\d)/g,"$1,$2"),be>=0&&(z=z.slice(0,be)+"."+z.slice(be+1)),z=z.replace(/1+/,"1").replace(/1/g,"#"),G||(z=z.replace(/%/g,"'%'")),z}function J(R){let L=".";const G=R(1).indexOf("100")>=0;L=M(L,R,G,!0),L=M(L,R,G,!1);const Q=H(L,R,G,!1),z=H(L,R,G,!0);return z==="-"+Q?Q:Q+";"+z}},1281:(En,it,p)=>{"use strict";p.d(it,{B$:()=>j,E$:()=>F,UP:()=>b});var S=p(7995);function b(U){const Z=document.getElementById(U);return Z?function B(U){let A,M,H,Z=U;if(U.match(/^rgb/)){const R=Z.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(!R)return S.K.light;A=+R[1],M=+R[2],H=+R[3]}else{const R=+("0x"+Z.slice(1).replace(Z.length<5?/./g:"","$&$&"));A=R>>16,M=R>>8&255,H=255&R}return Math.sqrt(A*A*.299+M*M*.587+H*H*.114)>127.5?S.K.light:S.K.dark}(window.getComputedStyle(Z).backgroundColor):S.K.light}function j(U){return U?.mimeType?.includes("image")??!1}function F(U){if(void 0===U)return!1;try{return U?.name?.endsWith("pdf")??!1}catch{return!1}}},1294:(En,it,p)=>{"use strict";p.d(it,{PT:()=>w,QJ:()=>X,Rz:()=>x,XC:()=>v,XD:()=>P,XR:()=>k,jM:()=>b,vu:()=>e});var S=p(4072),d=p(7426),m=p(9293);function T(U,Z){return Z?(0,m.b4)(U,Z):U}function C(U,Z){return"function"==typeof U?U(Z):U.execute(Z)}const e={on:(U,Z,A,M)=>{const{selector:H,showTimeout:J,hideTimeout:R,namespace:L}=M;S.A.on(U,T("dxactive",L),H,{timeout:J},G=>C(Z,{event:G,element:G.currentTarget})),S.A.on(U,T("dxinactive",L),H,{timeout:R},G=>C(A,{event:G,element:G.currentTarget}))},off:(U,Z)=>{let{namespace:A,selector:M}=Z;S.A.off(U,T("dxactive",A),M),S.A.off(U,T("dxinactive",A),M)}},k={on:function(U,Z){let{namespace:A}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};S.A.on(U,T("dxresize",A),Z)},off:function(U){let{namespace:Z}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S.A.off(U,T("dxresize",Z))}},w={on:(U,Z,A,M)=>{let{selector:H,namespace:J}=M;S.A.on(U,T("dxhoverend",J),H,R=>A(R)),S.A.on(U,T("dxhoverstart",J),H,R=>C(Z,{element:R.target,event:R}))},off:(U,Z)=>{let{selector:A,namespace:M}=Z;S.A.off(U,T("dxhoverstart",M),A),S.A.off(U,T("dxhoverend",M),A)}},P={on:(U,Z,A,M)=>{let{namespace:H}=M;S.A.on(U,T("dxhiding",H),A),S.A.on(U,T("dxshown",H),Z)},off:(U,Z)=>{let{namespace:A}=Z;S.A.off(U,T("dxhiding",A)),S.A.off(U,T("dxshown",A))}},v={on:(U,Z,A,M)=>{let{namespace:H}=M;S.A.on(U,T("focusin",H),Z),S.A.on(U,T("focusout",H),A)},off:(U,Z)=>{let{namespace:A}=Z;S.A.off(U,T("focusin",A)),S.A.off(U,T("focusout",A))},trigger:U=>S.A.trigger(U,"focus")},x={on:function(U,Z){let{namespace:A}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};S.A.on(U,T("dxclick",A),Z)},off:function(U){let{namespace:Z}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S.A.off(U,T("dxclick",Z))}},b={on:function(U,Z){let{namespace:A}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};S.A.on(U,T("click",A),Z)},off:function(U){let{namespace:Z}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S.A.off(U,T("click",Z))}};let B=0;const j={},X={on:(U,Z,A)=>{const M="keyboardProcessorId"+B++;return j[M]=new d.A({element:U,focusTarget:Z,handler:A}),M},off:U=>{U&&j[U]&&(j[U].dispose(),delete j[U])},_getProcessor:U=>j[U]}},1351:(En,it,p)=>{"use strict";p.d(it,{c:()=>v});var S=p(3746),d=p(656),m=p(4303),T=p(5626),C=p(2385),e=p(4539),k=p(4050);const w=x=>({"aria-label":x});function P(x,b){if(1&x){const B=m.RV6();m.j41(0,"div",8)(1,"div",5),m.EFF(2),m.k0s(),m.j41(3,"dx-button",6),m.bIt("onClick",function(){d.eBV(B);const F=m.XpG();return d.Njj(F.onHowToClicked())}),m.k0s()()}if(2&x){const B=m.XpG();m.R7$(2),m.SpI(" ",B.scope.network.getResourceOrKeyName("web_common_howDoesThisPlatformWork")," "),m.R7$(),m.Y8G("text",B.scope.currentScope.network.getResourceOrKeyName("web_common_help"))}}let v=(()=>{var x;class b{constructor(j,F,X){this.scopeService=j,this.hybridTrackingService=F,this.popupService=X,this.hasHowTo=!1,this.onRegisterButtonClicked=()=>{this.hybridTrackingService.switchState("app.register",{closedToken:new URLSearchParams(window.location.search).get("closedToken")}),this.close()},this.onHowToClicked=()=>{window.location.href=this.scope.currentChapter.path+"/howto",this.close()},this.close=()=>{this.popupService.closeLast()},this.scope=this.scopeService.getScope(),this.hasHowTo=this.scope.staticArticles.filter(function(U){return"/howto"===U.path}).length>0}static#e=x=()=>(this.\u0275fac=function(F){return new(F||b)(m.rXU(S.A),m.rXU(T.o),m.rXU(C.O))},this.\u0275cmp=m.VBU({type:b,selectors:[["app-authentication-dialog"]],standalone:!1,decls:11,vars:7,consts:[[1,"authentication-dialog-base"],[1,"close-button"],["icon","fa-solid fa-xmark","stylingMode","text",3,"onClick","elementAttr"],[1,"dialog-title"],[1,"registration-area"],[1,"info-text"],["stylingMode","text","width","auto",1,"link-button",3,"onClick","text"],[1,"login-form",3,"dismissPopup"],[1,"howto-area"]],template:function(F,X){1&F&&(m.j41(0,"div",0)(1,"div",1)(2,"dx-button",2),m.bIt("onClick",function(){return X.close()}),m.k0s()(),m.j41(3,"h2",3),m.EFF(4),m.k0s(),m.j41(5,"div",4)(6,"div",5),m.EFF(7),m.k0s(),m.j41(8,"dx-button",6),m.bIt("onClick",function(){return X.onRegisterButtonClicked()}),m.k0s()(),m.j41(9,"app-login-dialog",7),m.bIt("dismissPopup",function(){return X.close()}),m.k0s(),m.nVh(10,P,4,2,"div",8),m.k0s()),2&F&&(m.R7$(2),m.Y8G("elementAttr",m.eq3(5,w,X.scope.currentScope.network.getResourceOrKeyName("web_common_close_dialog"))),m.R7$(2),m.SpI(" ",X.scope.network.getResourceOrKeyName("web_authenticationDialog_popup_title")," "),m.R7$(3),m.SpI(" ",X.scope.network.getResourceOrKeyName("web_authenticationDialog_popup_register_info")," "),m.R7$(),m.Y8G("text",X.scope.currentScope.network.getResourceOrKeyName("web_common_register")),m.R7$(2),m.vxM(X.hasHowTo?10:-1))},dependencies:[e.e,k.v],styles:[".authentication-dialog-base[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.authentication-dialog-base[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:end;align-items:end;padding:0 24px}@media (max-width: 768px){.authentication-dialog-base[_ngcontent-%COMP%]{margin-bottom:20vh}}.authentication-dialog-base[_ngcontent-%COMP%]   .dialog-title[_ngcontent-%COMP%]{font-size:1.25rem;margin:16px 0}.authentication-dialog-base[_ngcontent-%COMP%]   .registration-area[_ngcontent-%COMP%]{width:100%;background-color:var(--color1-alpha20);display:flex;align-items:center;justify-content:center;gap:16px}.authentication-dialog-base[_ngcontent-%COMP%]   .howto-area[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center;gap:16px}.authentication-dialog-base[_ngcontent-%COMP%]   .login-form[_ngcontent-%COMP%]{padding:0 24px;margin-bottom:16px;width:100%}.authentication-dialog-base[_ngcontent-%COMP%]   .link-button[_ngcontent-%COMP%]{background:none!important;border:none!important;padding:0!important;cursor:pointer!important;text-decoration:underline!important;color:var(--textColor60)!important}.authentication-dialog-base[_ngcontent-%COMP%]   .link-button[_ngcontent-%COMP%]:hover{text-decoration:underline!important}.authentication-dialog-base[_ngcontent-%COMP%]   .link-button[_ngcontent-%COMP%]   .dx-button-content[_ngcontent-%COMP%]{background:transparent!important;border:none!important}.authentication-dialog-base[_ngcontent-%COMP%]   .info-text[_ngcontent-%COMP%]{color:var(--textColor);font-size:1rem}  .dx-overlay-content .dx-popup-content{padding:16px 0!important}"]}))}return x(),b})()},1356:(En,it,p)=>{"use strict";p.d(it,{J:()=>e});var S=p(3746),d=p(7236),m=p(656),T=p(65),C=p(353);let e=(()=>{var k;class w{constructor(v,x,b){this.http=v,this.scopeService=x,this.logoService=b,this.lastNotificationsRequestTime=0,this.minNotificationsInterval=9e4,this.cachedNotifications=null,this.pendingGetNotificationsRequest=null,this.lastUpdateUnseenCount=null,this.updateUnseenCountPromise=null,this.minUpdateUnseenCountInterval=6e4,this.cachedUnseenCountData=null,this.unClickedMessage=!1,this.unseenCount=0,this.lastUpdate=null,this.updatePromise=null,this.minInterval=6e4,this.cachedData=null,this.scope=this.scopeService.getScope()}updateToken(v){return this.http.post(`${this.scope.apiEndpoint}Notifications/Token`,v).toPromise()}getNotificationGroups(v){return this.http.get(`${this.scope.apiEndpoint}Notifications/Groups/${v}`).toPromise().catch(x=>null)}getUserEmail(v){return this.http.get(`${this.scope.apiEndpoint}Notifications/${v}/email`).toPromise().catch(x=>null)}updateNotificationGroups(v,x){return this.http.post(`${this.scope.apiEndpoint}Notifications/Groups`,{notificationGroups:v,privateUserGuid:x}).toPromise()}click(v){return this.http.get(`${this.scope.apiEndpoint}notifications/${v.id}/Click`).toPromise().then(()=>{this.cachedNotifications&&(this.cachedNotifications=this.cachedNotifications.map(x=>x.id===v.id?{...x,clicked:Date.now()}:x))})}markAllAsClicked(){return this.http.post(`${this.scope.apiEndpoint}notifications/MarkAllAsClicked`,{}).pipe((0,d.M)(()=>{this.cachedNotifications&&(this.cachedNotifications=this.cachedNotifications.map(v=>null===v.clicked?{...v,clicked:Date.now()}:(this.unClickedMessage=!1,v)))}))}getNotifiedUsersCount(){return this.http.get(`${this.scope.apiEndpoint}notifications/NotifiedUserCount`).toPromise().catch(v=>null)}getNotifications(){const x=Date.now()-this.lastNotificationsRequestTime;return null!==this.pendingGetNotificationsRequest?this.pendingGetNotificationsRequest:x<this.minNotificationsInterval?null!==this.cachedNotifications?Promise.resolve(this.cachedNotifications):Promise.reject("Too many requests - throttled"):(this.pendingGetNotificationsRequest=this.http.get(`${this.scope.apiEndpoint}notifications`,{observe:"response"}).toPromise().then(b=>(this.cachedNotifications=b.body,this.cachedNotifications.forEach(B=>{B.uri.includes("events/")&&!B.imageUri.includes("images")&&(B.imageUri=this.logoService.getChapterEventPictureUrl())}),this.lastNotificationsRequestTime=Date.now(),this.cachedNotifications)).catch(b=>null).finally(()=>{this.pendingGetNotificationsRequest=null}),this.pendingGetNotificationsRequest)}updateUnseenCount(){const v=Date.now();if(v-(this.lastUpdateUnseenCount||0)<this.minUpdateUnseenCountInterval){if(null!==this.cachedUnseenCountData)return Promise.resolve(this.cachedUnseenCountData);if(null!==this.updateUnseenCountPromise)return this.updateUnseenCountPromise}return this.updateUnseenCountPromise||(this.updateUnseenCountPromise=this.http.put(`${this.scope.apiEndpoint}notifications/unseenCount`,{}).toPromise().then(b=>(this.unseenCount=0,window.cordova?.plugins?.notification?.badge&&window.cordova.plugins.notification.badge.set(0),this.cachedUnseenCountData=b,this.lastUpdateUnseenCount=v,b)).catch(b=>null).finally(()=>{this.updateUnseenCountPromise=null})),this.updateUnseenCountPromise}update(v){const x=Date.now();if(x-(this.lastUpdateRequestTime||0)<this.minInterval)return null!==this.cachedData?Promise.resolve(this.cachedData):null!==this.updatePromise?this.updatePromise:Promise.reject("Too many update() calls \u2014 throttled");v&&(this.lastUpdate=null,this.unseenCount=0);const B=`${this.scope.apiEndpoint}notifications/unseenCount?date=${this.lastUpdate}`;return this.lastUpdateRequestTime=x,this.updatePromise=this.http.get(B).toPromise().then(j=>(this.unseenCount=j.unseenCount,this.lastUpdate=j.date,window.cordova?.plugins?.notification?.badge&&window.cordova.plugins.notification.badge.set(this.unseenCount),this.cachedData=j,this.unClickedMessage=j.anyUnClickedMessages,j)).catch(j=>null).finally(()=>{this.updatePromise=null}),this.updatePromise}static#e=k=()=>(this.\u0275fac=function(x){return new(x||w)(m.KVO(T.Qq),m.KVO(S.A),m.KVO(C.X))},this.\u0275prov=m.jDH({token:w,factory:w.\u0275fac,providedIn:"root"}))}return k(),w})()},1363:(En,it,p)=>{"use strict";p.d(it,{A3:()=>Ie,GU:()=>k,NG:()=>re,OP:()=>Pe,Oq:()=>G,Ot:()=>z,P$:()=>ee,RG:()=>R,d6:()=>Z,dh:()=>U,gP:()=>M,hP:()=>F,hh:()=>be,iT:()=>K,k$:()=>Q,pD:()=>A,yV:()=>Re,zj:()=>L});var S=p(6110),d=p(6054),m=p(1830);const T=(0,S.zk)(),C=["auto","none","inherit","initial"],e=function(W,ie){let he=0;return ie.forEach(function(Ce){he+=parseFloat(W[Ce])||0}),he},k=function(W,ie){const he="width"===W?"Left":"Top",Ce="width"===W?"Right":"Bottom";return{padding:e(ie,["padding"+he,"padding"+Ce]),border:e(ie,["border"+he+"Width","border"+Ce+"Width"]),margin:e(ie,["margin"+he,"margin"+Ce])}},w=function(W){var ie;const he=(null==W||null===(ie=W.ownerDocument)||void 0===ie?void 0:ie.defaultView)||T;return he.getComputedStyle&&he.getComputedStyle(W)},P=function(W,ie,he,Ce){var ye;return ie?.[he]||(null===(ye=W.style)||void 0===ye?void 0:ye[he])||Ce},v={content:0,padding:1,border:2,margin:3,"content-box":0,"border-box":2},x={width:["left","right"],height:["top","bottom"]};function b(W,ie,he,Ce){const ye=(_e,ke,Ye)=>parseFloat(P(_e,ke,Ye,"0"))||0,Me="border"===he?"-width":"";return ye(W,Ce,`${he}-${x[ie][0]}${Me}`)+ye(W,Ce,`${he}-${x[ie][1]}${Me}`)}const F=function(W,ie,he){return W.indexOf("px")>0?W=parseInt(W.replace("px","")):W.indexOf("%")>0?W=parseInt(W.replace("%",""))*function(W){return(0,m.l6)(W)?W.innerHeight:W.offsetHeight}(ie)/100:isNaN(W)?W.indexOf("vh")>0?W=T.innerHeight/100*parseInt(W.replace("vh","")):he&&W.indexOf("em")>0&&(W=parseFloat(W.replace("em",""))*parseFloat(T.getComputedStyle(he).fontSize)):W=parseInt(W),W},X=function(W,ie,he){return W?C.indexOf(W)>-1?ie?null:W:((0,m.Kg)(W)&&(W=F(W,he)),(0,m.kf)(W)?Math.max(0,W+ie):"calc("+W+(ie<0?" - ":" ")+Math.abs(ie)+"px)"):null},U=function(W,ie,he){const Ce=X(W,ie,he);return null!==Ce?Ce:"none"},Z=function(W,ie,he){const Ce=X(W,ie,he);return null!==Ce?Ce:0},A=function(W,ie){if(!W)return 0;const he=k("height",T.getComputedStyle(W));return he.padding+he.border+(ie?he.margin:0)},M=function(W){if(W){const ie=W.getBoundingClientRect();if(ie.height)return ie.height}return 0};function J(W,ie,he){return 2===arguments.length?De(ie,W):De(ie,W,he)}const R=W=>function(){for(var W=arguments.length,ie=new Array(W),he=0;he<W;he++)ie[he]=arguments[he];return J("width",...ie)}(W),L=(W,ie)=>function(){for(var W=arguments.length,ie=new Array(W),he=0;he<W;he++)ie[he]=arguments[he];return J("width",...ie)}(W,ie),G=W=>function(){for(var W=arguments.length,ie=new Array(W),he=0;he<W;he++)ie[he]=arguments[he];return J("height",...ie)}(W),Q=(W,ie)=>function(){for(var W=arguments.length,ie=new Array(W),he=0;he<W;he++)ie[he]=arguments[he];return J("height",...ie)}(W,ie),z=(W,ie)=>function(){for(var W=arguments.length,ie=new Array(W),he=0;he<W;he++)ie[he]=arguments[he];return J("outerWidth",...ie)}(W,ie||!1),K=(W,ie)=>function(){for(var W=arguments.length,ie=new Array(W),he=0;he<W;he++)ie[he]=arguments[he];return J("outerWidth",...ie)}(W,ie),ee=(W,ie)=>function(){for(var W=arguments.length,ie=new Array(W),he=0;he<W;he++)ie[he]=arguments[he];return J("outerHeight",...ie)}(W,ie||!1),re=(W,ie)=>function(){for(var W=arguments.length,ie=new Array(W),he=0;he<W;he++)ie[he]=arguments[he];return J("outerHeight",...ie)}(W,ie),be=W=>function(){for(var W=arguments.length,ie=new Array(W),he=0;he<W;he++)ie[he]=arguments[he];return J("innerWidth",...ie)}(W),Re=W=>function(){for(var W=arguments.length,ie=new Array(W),he=0;he<W;he++)ie[he]=arguments[he];return J("innerHeight",...ie)}(W),De=function(W,ie,he){const Ce=ie.toLowerCase().indexOf("width")>=0?"Width":"Height",ye=Ce.toLowerCase(),Me=0===ie.indexOf("outer"),_e=0===ie.indexOf("inner"),ke=2===arguments.length||"boolean"==typeof he;if((0,m.Kb)(W)){if(W.length>1&&!ke){for(let Ye=0;Ye<W.length;Ye++)De(W[Ye],ie,he);return}W=W[0]}if(W){if((0,m.l6)(W))return Me?W["inner"+Ce]:d.A.getDocumentElement()["client"+Ce];if(d.A.isDocument(W)){const Ye=d.A.getDocumentElement(),de=d.A.getBody();return Math.max(de["scroll"+Ce],de["offset"+Ce],Ye["scroll"+Ce],Ye["offset"+Ce],Ye["client"+Ce])}if(ke){let Ye="content";return Me&&(Ye=he?"margin":"border"),_e&&(Ye="padding"),function(W,ie,he){const Ce="width"===ie?"offsetWidth":"offsetHeight",ye=w(W);let Me=P(W,ye,ie);(""===Me||"auto"===Me)&&(Me=W[Ce]),Me=parseFloat(Me)||0;const _e=P(W,ye,"boxSizing","content-box");let Ye=v[he||_e],de=v[_e];if(void 0===Ye||void 0===de)throw new Error;if(de===Ye)return Me;const Ae=Math.sign(Ye-de);let pe=!1,Ee=!1,le=!1,Ke=!1;1===Ae&&(Ye+=1,de+=1);for(let Be=de;Be!==Ye;Be+=Ae)switch(Be){case v.content:break;case v.padding:pe=Ae*b(W,ie,"padding",ye);break;case v.border:Ee=Ae*b(W,ie,"border",ye);break;case v.margin:le=Ae*b(W,ie,"margin",ye)}if(pe||Ee){const Be=(!1===pe?Ae*b(W,ie,"padding",ye):pe)+(!1===Ee?Ae*b(W,ie,"border",ye):Ee);Ke=Ae*Math.max(0,Math.floor(W[Ce]-Me-Ae*Be))||0}return Me+le+pe+Ee+Ke}(W,ye,Ye)}if((0,m.kf)(he)){const Ye=w(W),de=k(ye,Ye),Ae="border-box"===Ye.boxSizing;he=Number(he),Me?he-=Ae?0:de.border+de.padding:_e?he+=Ae?de.border:-de.padding:Ae&&(he+=de.border+de.padding)}return he+=(0,m.kf)(he)?"px":"",d.A.setStyle(W,ye,he),null}},Pe=W=>(0,m.l6)(W)?W:W.defaultView,Ie=W=>{if(!W.getClientRects().length)return{top:0,left:0};const ie=W.getBoundingClientRect(),he=Pe(W.ownerDocument),Ce=W.ownerDocument.documentElement;return{top:ie.top+he.pageYOffset-Ce.clientTop,left:ie.left+he.pageXOffset-Ce.clientLeft}}},1395:(En,it,p)=>{"use strict";p.d(it,{U:()=>k});var S=p(3538),d=p(6054),m=p(1832),T=p(778),C=p(4072),e=p(9293);const k="dxdblclick",P=(0,e.b4)(T.U,"dxDblClick"),b=new(S.A.inherit({ctor(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick(){this._firstClickTarget=null,this._lastClickTimeStamp=-300},add(){this._handlerCount<=0&&C.A.on(d.A.getDocument(),P,this._clickHandler.bind(this)),this._handlerCount+=1},_clickHandler(j){const F=j.timeStamp||Date.now(),X=F-this._lastClickTimeStamp;!(X<0)&&X<300?((0,e.rC)({type:"dxdblclick",target:(0,m.tc)(this._firstClickTarget,j.target),originalEvent:j}),this._forgetLastClick()):(this._firstClickTarget=j.target,this._lastClickTimeStamp=F,clearTimeout(this._lastClickClearTimeout),this._lastClickClearTimeout=setTimeout(()=>{this._forgetLastClick()},600))},remove(){this._handlerCount-=1,this._handlerCount<=0&&(this._forgetLastClick(),C.A.off(d.A.getDocument(),P,void 0),clearTimeout(this._lastClickClearTimeout),this._handlerCount=0)}}));(0,p(9961).A)(k,b)},1435:(En,it,p)=>{"use strict";p.d(it,{A:()=>P});var S=p(4859),d=p(3090),m=p(2660),T=p(2735),C=p(9916);function e(v,x){return v=v.groupBy(x[0].selector),x.length>1&&(v=v.select(function(b){return(0,d.X)({},b,{items:e((0,T.A)(b.items),x.slice(1)).toArray()})})),v}function k(v,x){const b=[];return(0,m.__)(v,function(B,j){(0,S.VM)(x,function(X){return j.selector===X.selector}).length<1&&b.push(j)}),b.concat(x)}const P={multiLevelGroup:e,arrangeSortingInfo:k,queryByOptions:function w(v,x,b){var B;const j=(x=x||{}).filter;var F,X;if(null!==(B=x)&&void 0!==B&&B.langParams&&(null===(F=(X=v).setLangParams)||void 0===F||F.call(X,x.langParams)),j&&(v=v.filter(j)),b)return v;let U=x.sort;const Z=x.select;let A=x.group;const M=x.skip,H=x.take;return A&&(A=(0,C.st)(A),A.keepInitialKeyOrder=!!x.group.keepInitialKeyOrder),(U||A)&&(U=(0,C.st)(U||[]),A&&!A.keepInitialKeyOrder&&(U=k(A,U)),(0,m.__)(U,function(J){v=v[J?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),Z&&(v=v.select(Z)),A&&(v=e(v,A)),(H||M)&&(v=v.slice(M||0,H)),v}}},1479:(En,it,p)=>{"use strict";p.d(it,{s:()=>S});const S="function"==typeof Symbol&&Symbol.observable||"@@observable"},1486:(En,it,p)=>{"use strict";p.d(it,{R:()=>X});var S=p(6394),d=p(4303),m=p(3746),T=p(656),C=p(79),e=p(3349),k=p(4539),w=p(827),P=p(1197),v=p(6667);function x(U,Z){if(1&U&&(d.j41(0,"div",4),d.EFF(1),d.k0s()),2&U){const A=d.XpG(2);d.R7$(),d.JRh(A.scope.currentScope.network.getResourceOrKeyName("web_report_user_dialog_error"))}}function b(U,Z){1&U&&d.nrm(0,"i",9)}function B(U,Z){if(1&U&&(d.j41(0,"div"),d.nVh(1,b,1,0,"i",9),d.EFF(2),d.k0s()),2&U){const A=d.XpG(2);d.R7$(),d.vxM(A.working?1:-1),d.R7$(),d.SpI(" ",A.scope.currentScope.network.getResourceOrKeyName("web_report_user_dialog_report_button")," ")}}function j(U,Z){if(1&U){const A=d.RV6();d.j41(0,"div")(1,"p"),d.EFF(2),d.k0s(),d.j41(3,"p"),d.EFF(4),d.k0s(),d.j41(5,"dx-radio-group",2,0),d.mxI("valueChange",function(H){T.eBV(A);const J=d.XpG();return d.DH7(J.reason,H)||(J.reason=H),T.Njj(H)}),d.k0s(),d.j41(7,"p",3),d.EFF(8),d.k0s(),d.nVh(9,x,2,1,"div",4),d.nrm(10,"br"),d.j41(11,"div",5)(12,"dx-button",6),d.bIt("onClick",function(){T.eBV(A);const H=d.XpG();return T.Njj(H.reportUser())}),d.DNE(13,B,3,2,"div",7),d.k0s(),d.j41(14,"dx-button",8),d.bIt("onClick",function(){T.eBV(A);const H=d.XpG();return T.Njj(H.closePopup())}),d.k0s()()()}if(2&U){const A=d.XpG();d.R7$(2),d.JRh(A.scope.currentScope.network.resources.web_report_user_dialog_intro_0),d.R7$(2),d.JRh(A.scope.currentScope.network.resources.web_report_user_dialog_intro_1),d.R7$(),d.Y8G("items",A.reasons),d.R50("value",A.reason),d.Y8G("layout","vertical")("tabIndex",0)("focusStateEnabled",!0)("hoverStateEnabled",!0),d.R7$(3),d.SpI(" ",A.scope.currentScope.network.getResourceOrKeyName("web_report_user_dialog_footer")," "),d.R7$(),d.vxM(A.error?9:-1),d.R7$(3),d.Y8G("disabled",A.working||!A.reason),d.R7$(),d.Y8G("dxTemplateOf","content"),d.R7$(),d.Y8G("text",A.scope.currentScope.network.getResourceOrKeyName("web_common_cancel"))}}function F(U,Z){if(1&U){const A=d.RV6();d.j41(0,"div")(1,"p"),d.EFF(2),d.k0s(),d.j41(3,"div",5)(4,"a",10),d.bIt("click",function(){T.eBV(A);const H=d.XpG();return T.Njj(H.closePopup())}),d.nrm(5,"span",11),d.k0s(),d.j41(6,"button",12),d.bIt("click",function(){T.eBV(A);const H=d.XpG();return T.Njj(H.closePopup())}),d.EFF(7),d.k0s()()()}if(2&U){const A=d.XpG();d.R7$(2),d.JRh(A.scope.currentScope.network.getResourceOrKeyName("web_report_user_dialog_unregistered")),d.R7$(2),d.Y8G("href","login",d.B4B),d.R7$(),d.Y8G("innerHTML",A.scope.currentScope.network.getResourceOrKeyName("web_root_root_signIn"),d.npT),d.R7$(2),d.SpI(" ",A.scope.currentScope.network.getResourceOrKeyName("web_common_close")," ")}}let X=(()=>{var U;class Z{constructor(M,H){this.profileService=M,this.scopeService=H,this.visible=!1,this.visibleChange=new d.bkB,this.reasons=[],this.working=!1,this.error=!1,this.reason="",this.radioName="report-reason-"+Math.random().toString(36).slice(2),this.scope=this.scopeService.getScope()}ngOnChanges(M){!0===M.visible?.currentValue&&(this.working=!1,this.error=!1,this.reason="",this.buildReasons())}buildReasons(){this.reasons=[{value:"domain_user_report_spam",text:this.scope.network.getResourceOrKeyName("domain_user_report_spam")},{value:"domain_user_report_hate_speech",text:this.scope.network.getResourceOrKeyName("domain_user_report_hate_speech")},{value:"domain_user_report_inappropriate",text:this.scope.network.getResourceOrKeyName("domain_user_report_inappropriate")},{value:"domain_user_report_false_identity",text:this.scope.network.getResourceOrKeyName("domain_user_report_false_identity")}]}reportUser(){var M=this;return(0,S.A)(function*(){M.working=!0,M.error=!1;try{yield M.profileService.reportProfile({reportedUserGuid:M.reportedUserGuid,reportingReason:M.reason}),M.closePopup()}catch{M.error=!0,M.working=!1,M.closePopup()}})()}closePopup(){this.visible=!1,this.visibleChange.emit(this.visible)}static#e=U=()=>(this.\u0275fac=function(H){return new(H||Z)(d.rXU(C.p),d.rXU(m.A))},this.\u0275cmp=d.VBU({type:Z,selectors:[["app-profile-report-dialog"]],inputs:{visible:"visible",reportedUserGuid:"reportedUserGuid"},outputs:{visibleChange:"visibleChange"},standalone:!1,features:[d.OA$],decls:3,vars:9,consts:[["reasonGroup",""],[3,"visibleChange","onHiding","visible","showCloseButton","showTitle","title","width","height","dragEnabled"],["displayExpr","text","valueExpr","value",3,"valueChange","items","value","layout","tabIndex","focusStateEnabled","hoverStateEnabled"],[1,"info-text"],[1,"alert","alert-danger"],[1,"action-container"],["stylingMode","contained","type","normal",3,"onClick","disabled"],[4,"dxTemplate","dxTemplateOf"],["stylingMode","contained","type","normal",3,"onClick","text"],[1,"fa","fa-spinner","fa-pulse",2,"margin-right",".5rem"],[1,"btn","btn-green","action-button",3,"click","href"],[3,"innerHTML"],["type","button",1,"btn","btn-black","action-button",3,"click"]],template:function(H,J){1&H&&(d.j41(0,"dx-popup",1),d.mxI("visibleChange",function(L){return d.DH7(J.visible,L)||(J.visible=L),L}),d.bIt("onHiding",function(){return J.closePopup()}),d.nVh(1,j,15,13,"div"),d.nVh(2,F,8,4,"div"),d.k0s()),2&H&&(d.R50("visible",J.visible),d.Y8G("showCloseButton",!0)("showTitle",!0)("title",J.scope.currentScope.network.getResourceOrKeyName("web_report_user_dialog_title"))("width",400)("height","auto")("dragEnabled",!1),d.R7$(),d.vxM(J.scope.profile.isRegistered?1:-1),d.R7$(),d.vxM(J.scope.profile.isRegistered?-1:2))},dependencies:[e.eC,k.e,w.i,P.s,v.B],styles:[".action-container[_ngcontent-%COMP%]{display:flex;gap:15px}"]}))}return U(),Z})()},1520:(En,it,p)=>{"use strict";p.d(it,{A:()=>z});var S=p(1926),d=p(4859),m=p(2660),T=p(1830),C=p(1271),e=p(3686),k=p(7251),w=p(749),P=p(9461),v=p(7280);const b={af:"\xa4#,##0.00;(\xa4#,##0.00)","af-NA":"\xa4#,##0.00;(\xa4#,##0.00)",agq:"#,##0.00\xa4",ak:"\xa4#,##0.00",am:"\xa4#,##0.00;(\xa4#,##0.00)",ar:"\xa4#,##0.00;(\xa4#,##0.00)","ar-AE":"\xa4#,##0.00;(\xa4#,##0.00)","ar-BH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DZ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EG":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-ER":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IL":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IQ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-JO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KW":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LB":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MR":"\xa4#,##0.00;(\xa4#,##0.00)","ar-OM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-PS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-QA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TN":"\xa4#,##0.00;(\xa4#,##0.00)","ar-YE":"\xa4#,##0.00;(\xa4#,##0.00)",as:"\xa4\xa0#,##,##0.00",asa:"#,##0.00\xa0\xa4",ast:"#,##0.00\xa0\xa4",az:"#,##0.00\xa0\xa4","az-Cyrl":"#,##0.00\xa0\xa4","az-Latn":"#,##0.00\xa0\xa4",bas:"#,##0.00\xa0\xa4",be:"#,##0.00\xa0\xa4","be-tarask":"#,##0.00\xa0\xa4",bem:"\xa4#,##0.00;(\xa4#,##0.00)",bez:"#,##0.00\xa4",bg:"0.00\xa0\xa4;(0.00\xa0\xa4)",bm:"\xa4#,##0.00;(\xa4#,##0.00)",bn:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","bn-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",bo:"\xa4\xa0#,##0.00","bo-IN":"\xa4\xa0#,##0.00",br:"#,##0.00\xa0\xa4",brx:"\xa4\xa0#,##,##0.00",bs:"#,##0.00\xa0\xa4","bs-Cyrl":"#,##0.00\xa0\xa4","bs-Latn":"#,##0.00\xa0\xa4",ca:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-AD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-ES-valencia":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-FR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-IT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ccp:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","ccp-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",ce:"#,##0.00\xa0\xa4",ceb:"\xa4#,##0.00;(\xa4#,##0.00)",cgg:"\xa4#,##0.00",chr:"\xa4#,##0.00;(\xa4#,##0.00)",ckb:"\xa4\xa0#,##0.00","ckb-IR":"\xa4\xa0#,##0.00",cs:"#,##0.00\xa0\xa4",cy:"\xa4#,##0.00;(\xa4#,##0.00)",da:"#,##0.00\xa0\xa4","da-GL":"#,##0.00\xa0\xa4",dav:"\xa4#,##0.00;(\xa4#,##0.00)",de:"#,##0.00\xa0\xa4","de-AT":"#,##0.00\xa0\xa4","de-BE":"#,##0.00\xa0\xa4","de-CH":"#,##0.00\xa0\xa4","de-IT":"#,##0.00\xa0\xa4","de-LI":"#,##0.00\xa0\xa4","de-LU":"#,##0.00\xa0\xa4",dje:"#,##0.00\xa4",doi:"\xa4#,##0.00",dsb:"#,##0.00\xa0\xa4",dua:"#,##0.00\xa0\xa4",dyo:"#,##0.00\xa0\xa4",dz:"\xa4#,##,##0.00",ebu:"\xa4#,##0.00;(\xa4#,##0.00)",ee:"\xa4#,##0.00;(\xa4#,##0.00)","ee-TG":"\xa4#,##0.00;(\xa4#,##0.00)",el:"#,##0.00\xa0\xa4","el-CY":"#,##0.00\xa0\xa4",en:"\xa4#,##0.00;(\xa4#,##0.00)","en-001":"\xa4#,##0.00;(\xa4#,##0.00)","en-150":"#,##0.00\xa0\xa4","en-AE":"\xa4#,##0.00;(\xa4#,##0.00)","en-AG":"\xa4#,##0.00;(\xa4#,##0.00)","en-AI":"\xa4#,##0.00;(\xa4#,##0.00)","en-AS":"\xa4#,##0.00;(\xa4#,##0.00)","en-AT":"\xa4\xa0#,##0.00","en-AU":"\xa4#,##0.00;(\xa4#,##0.00)","en-BB":"\xa4#,##0.00;(\xa4#,##0.00)","en-BE":"#,##0.00\xa0\xa4","en-BI":"\xa4#,##0.00;(\xa4#,##0.00)","en-BM":"\xa4#,##0.00;(\xa4#,##0.00)","en-BS":"\xa4#,##0.00;(\xa4#,##0.00)","en-BW":"\xa4#,##0.00;(\xa4#,##0.00)","en-BZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-CA":"\xa4#,##0.00;(\xa4#,##0.00)","en-CC":"\xa4#,##0.00;(\xa4#,##0.00)","en-CH":"\xa4\xa0#,##0.00;\xa4-#,##0.00","en-CK":"\xa4#,##0.00;(\xa4#,##0.00)","en-CM":"\xa4#,##0.00;(\xa4#,##0.00)","en-CX":"\xa4#,##0.00;(\xa4#,##0.00)","en-CY":"\xa4#,##0.00;(\xa4#,##0.00)","en-DE":"#,##0.00\xa0\xa4","en-DG":"\xa4#,##0.00;(\xa4#,##0.00)","en-DK":"#,##0.00\xa0\xa4","en-DM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ER":"\xa4#,##0.00;(\xa4#,##0.00)","en-FI":"#,##0.00\xa0\xa4","en-FJ":"\xa4#,##0.00;(\xa4#,##0.00)","en-FK":"\xa4#,##0.00;(\xa4#,##0.00)","en-FM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GB":"\xa4#,##0.00;(\xa4#,##0.00)","en-GD":"\xa4#,##0.00;(\xa4#,##0.00)","en-GG":"\xa4#,##0.00;(\xa4#,##0.00)","en-GH":"\xa4#,##0.00;(\xa4#,##0.00)","en-GI":"\xa4#,##0.00;(\xa4#,##0.00)","en-GM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GU":"\xa4#,##0.00;(\xa4#,##0.00)","en-GY":"\xa4#,##0.00;(\xa4#,##0.00)","en-HK":"\xa4#,##0.00;(\xa4#,##0.00)","en-IE":"\xa4#,##0.00;(\xa4#,##0.00)","en-IL":"\xa4#,##0.00;(\xa4#,##0.00)","en-IM":"\xa4#,##0.00;(\xa4#,##0.00)","en-IN":"\xa4#,##0.00;(\xa4#,##0.00)","en-IO":"\xa4#,##0.00;(\xa4#,##0.00)","en-JE":"\xa4#,##0.00;(\xa4#,##0.00)","en-JM":"\xa4#,##0.00;(\xa4#,##0.00)","en-KE":"\xa4#,##0.00;(\xa4#,##0.00)","en-KI":"\xa4#,##0.00;(\xa4#,##0.00)","en-KN":"\xa4#,##0.00;(\xa4#,##0.00)","en-KY":"\xa4#,##0.00;(\xa4#,##0.00)","en-LC":"\xa4#,##0.00;(\xa4#,##0.00)","en-LR":"\xa4#,##0.00;(\xa4#,##0.00)","en-LS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MG":"\xa4#,##0.00;(\xa4#,##0.00)","en-MH":"\xa4#,##0.00;(\xa4#,##0.00)","en-MO":"\xa4#,##0.00;(\xa4#,##0.00)","en-MP":"\xa4#,##0.00;(\xa4#,##0.00)","en-MS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MT":"\xa4#,##0.00;(\xa4#,##0.00)","en-MU":"\xa4#,##0.00;(\xa4#,##0.00)","en-MV":"\xa4\xa0#,##0.00","en-MW":"\xa4#,##0.00;(\xa4#,##0.00)","en-MY":"\xa4#,##0.00;(\xa4#,##0.00)","en-NA":"\xa4#,##0.00;(\xa4#,##0.00)","en-NF":"\xa4#,##0.00;(\xa4#,##0.00)","en-NG":"\xa4#,##0.00;(\xa4#,##0.00)","en-NL":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","en-NR":"\xa4#,##0.00;(\xa4#,##0.00)","en-NU":"\xa4#,##0.00;(\xa4#,##0.00)","en-NZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-PG":"\xa4#,##0.00;(\xa4#,##0.00)","en-PH":"\xa4#,##0.00;(\xa4#,##0.00)","en-PK":"\xa4#,##0.00;(\xa4#,##0.00)","en-PN":"\xa4#,##0.00;(\xa4#,##0.00)","en-PR":"\xa4#,##0.00;(\xa4#,##0.00)","en-PW":"\xa4#,##0.00;(\xa4#,##0.00)","en-RW":"\xa4#,##0.00;(\xa4#,##0.00)","en-SB":"\xa4#,##0.00;(\xa4#,##0.00)","en-SC":"\xa4#,##0.00;(\xa4#,##0.00)","en-SD":"\xa4#,##0.00;(\xa4#,##0.00)","en-SE":"#,##0.00\xa0\xa4","en-SG":"\xa4#,##0.00;(\xa4#,##0.00)","en-SH":"\xa4#,##0.00;(\xa4#,##0.00)","en-SI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","en-SL":"\xa4#,##0.00;(\xa4#,##0.00)","en-SS":"\xa4#,##0.00;(\xa4#,##0.00)","en-SX":"\xa4#,##0.00;(\xa4#,##0.00)","en-SZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-TC":"\xa4#,##0.00;(\xa4#,##0.00)","en-TK":"\xa4#,##0.00;(\xa4#,##0.00)","en-TO":"\xa4#,##0.00;(\xa4#,##0.00)","en-TT":"\xa4#,##0.00;(\xa4#,##0.00)","en-TV":"\xa4#,##0.00;(\xa4#,##0.00)","en-TZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-UG":"\xa4#,##0.00;(\xa4#,##0.00)","en-UM":"\xa4#,##0.00;(\xa4#,##0.00)","en-VC":"\xa4#,##0.00;(\xa4#,##0.00)","en-VG":"\xa4#,##0.00;(\xa4#,##0.00)","en-VI":"\xa4#,##0.00;(\xa4#,##0.00)","en-VU":"\xa4#,##0.00;(\xa4#,##0.00)","en-WS":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZA":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZW":"\xa4#,##0.00;(\xa4#,##0.00)",eo:"\xa4\xa0#,##0.00",es:"#,##0.00\xa0\xa4","es-419":"\xa4#,##0.00","es-AR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-BO":"\xa4#,##0.00","es-BR":"\xa4#,##0.00","es-BZ":"\xa4#,##0.00","es-CL":"\xa4#,##0.00","es-CO":"\xa4#,##0.00","es-CR":"\xa4#,##0.00","es-CU":"\xa4#,##0.00","es-DO":"\xa4#,##0.00;(\xa4#,##0.00)","es-EA":"#,##0.00\xa0\xa4","es-EC":"\xa4#,##0.00","es-GQ":"#,##0.00\xa0\xa4","es-GT":"\xa4#,##0.00","es-HN":"\xa4#,##0.00","es-IC":"#,##0.00\xa0\xa4","es-MX":"\xa4#,##0.00","es-NI":"\xa4#,##0.00","es-PA":"\xa4#,##0.00","es-PE":"\xa4#,##0.00","es-PH":"#,##0.00\xa0\xa4","es-PR":"\xa4#,##0.00","es-PY":"\xa4#,##0.00","es-SV":"\xa4#,##0.00","es-US":"\xa4#,##0.00","es-UY":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-VE":"\xa4#,##0.00",et:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",eu:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ewo:"#,##0.00\xa0\xa4",fa:"\u200e\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)","fa-AF":"\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)",ff:"#,##0.00\xa0\xa4","ff-Adlm":"\xa4\xa0#,##0.00","ff-Adlm-BF":"\xa4\xa0#,##0.00","ff-Adlm-CM":"\xa4\xa0#,##0.00","ff-Adlm-GH":"\xa4\xa0#,##0.00","ff-Adlm-GM":"\xa4\xa0#,##0.00","ff-Adlm-GW":"\xa4\xa0#,##0.00","ff-Adlm-LR":"\xa4\xa0#,##0.00","ff-Adlm-MR":"\xa4\xa0#,##0.00","ff-Adlm-NE":"\xa4\xa0#,##0.00","ff-Adlm-NG":"\xa4\xa0#,##0.00","ff-Adlm-SL":"\xa4\xa0#,##0.00","ff-Adlm-SN":"\xa4\xa0#,##0.00","ff-Latn":"#,##0.00\xa0\xa4","ff-Latn-BF":"#,##0.00\xa0\xa4","ff-Latn-CM":"#,##0.00\xa0\xa4","ff-Latn-GH":"#,##0.00\xa0\xa4","ff-Latn-GM":"#,##0.00\xa0\xa4","ff-Latn-GN":"#,##0.00\xa0\xa4","ff-Latn-GW":"#,##0.00\xa0\xa4","ff-Latn-LR":"#,##0.00\xa0\xa4","ff-Latn-MR":"#,##0.00\xa0\xa4","ff-Latn-NE":"#,##0.00\xa0\xa4","ff-Latn-NG":"#,##0.00\xa0\xa4","ff-Latn-SL":"#,##0.00\xa0\xa4",fi:"#,##0.00\xa0\xa4",fil:"\xa4#,##0.00;(\xa4#,##0.00)",fo:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fo-DK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GP":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-HT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-KM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-ML":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SY":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-VU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-WF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-YT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fur:"\xa4\xa0#,##0.00",fy:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",ga:"\xa4#,##0.00;(\xa4#,##0.00)","ga-GB":"\xa4#,##0.00;(\xa4#,##0.00)",gd:"\xa4#,##0.00;(\xa4#,##0.00)",gl:"#,##0.00\xa0\xa4",gsw:"#,##0.00\xa0\xa4","gsw-FR":"#,##0.00\xa0\xa4","gsw-LI":"#,##0.00\xa0\xa4",gu:"\xa4#,##,##0.00;(\xa4#,##,##0.00)",guz:"\xa4#,##0.00;(\xa4#,##0.00)",gv:"\xa4#,##0.00",ha:"\xa4\xa0#,##0.00","ha-GH":"\xa4\xa0#,##0.00","ha-NE":"\xa4\xa0#,##0.00",haw:"\xa4#,##0.00;(\xa4#,##0.00)",he:"#,##0.00\xa0\xa4",hi:"\xa4#,##,##0.00","hi-Latn":"\xa4#,##,##0.00",hr:"#,##0.00\xa0\xa4","hr-BA":"#,##0.00\xa0\xa4",hsb:"#,##0.00\xa0\xa4",hu:"#,##0.00\xa0\xa4",hy:"#,##0.00\xa0\xa4",ia:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",id:"\xa4#,##0.00",ig:"\xa4#,##0.00;(\xa4#,##0.00)",ii:"\xa4\xa0#,##0.00",is:"#,##0.00\xa0\xa4",it:"#,##0.00\xa0\xa4","it-CH":"#,##0.00\xa0\xa4","it-SM":"#,##0.00\xa0\xa4","it-VA":"#,##0.00\xa0\xa4",ja:"\xa4#,##0.00;(\xa4#,##0.00)",jgo:"\xa4\xa0#,##0.00",jmc:"\xa4#,##0.00",jv:"\xa4\xa0#,##0.00",ka:"#,##0.00\xa0\xa4",kab:"#,##0.00\xa4",kam:"\xa4#,##0.00;(\xa4#,##0.00)",kde:"\xa4#,##0.00;(\xa4#,##0.00)",kea:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kgp:"\xa4\xa0#,##0.00",khq:"#,##0.00\xa4",ki:"\xa4#,##0.00;(\xa4#,##0.00)",kk:"#,##0.00\xa0\xa4",kkj:"\xa4\xa0#,##0.00",kl:"\xa4#,##0.00;\xa4-#,##0.00",kln:"\xa4#,##0.00;(\xa4#,##0.00)",km:"#,##0.00\xa4;(#,##0.00\xa4)",kn:"\xa4#,##0.00;(\xa4#,##0.00)",ko:"\xa4#,##0.00;(\xa4#,##0.00)","ko-KP":"\xa4#,##0.00;(\xa4#,##0.00)",kok:"\xa4#,##0.00;(\xa4#,##0.00)",ks:"\xa4#,##0.00","ks-Arab":"\xa4#,##0.00","ks-Deva":"\xa4\xa0#,##0.00",ksb:"#,##0.00\xa4",ksf:"#,##0.00\xa0\xa4",ksh:"#,##0.00\xa0\xa4",ku:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kw:"\xa4#,##0.00",ky:"#,##0.00\xa0\xa4",lag:"\xa4\xa0#,##0.00",lb:"#,##0.00\xa0\xa4",lg:"#,##0.00\xa4",lkt:"\xa4\xa0#,##0.00",ln:"#,##0.00\xa0\xa4","ln-AO":"#,##0.00\xa0\xa4","ln-CF":"#,##0.00\xa0\xa4","ln-CG":"#,##0.00\xa0\xa4",lo:"\xa4#,##0.00;\xa4-#,##0.00",lrc:"\xa4\xa0#,##0.00","lrc-IQ":"\xa4\xa0#,##0.00",lt:"#,##0.00\xa0\xa4",lu:"#,##0.00\xa4",luo:"#,##0.00\xa4",luy:"\xa4#,##0.00;\xa4-\xa0#,##0.00",lv:"#,##0.00\xa0\xa4",mai:"\xa4\xa0#,##0.00",mas:"\xa4#,##0.00;(\xa4#,##0.00)","mas-TZ":"\xa4#,##0.00;(\xa4#,##0.00)",mer:"\xa4#,##0.00;(\xa4#,##0.00)",mfe:"\xa4\xa0#,##0.00",mg:"\xa4#,##0.00",mgh:"\xa4\xa0#,##0.00",mgo:"\xa4\xa0#,##0.00",mi:"\xa4\xa0#,##0.00",mk:"#,##0.00\xa0\xa4",ml:"\xa4#,##0.00;(\xa4#,##0.00)",mn:"\xa4\xa0#,##0.00",mni:"\xa4\xa0#,##0.00","mni-Beng":"\xa4\xa0#,##0.00",mr:"\xa4#,##0.00;(\xa4#,##0.00)",ms:"\xa4#,##0.00;(\xa4#,##0.00)","ms-BN":"\xa4#,##0.00;(\xa4#,##0.00)","ms-ID":"\xa4#,##0.00","ms-SG":"\xa4#,##0.00;(\xa4#,##0.00)",mt:"\xa4#,##0.00",mua:"\xa4#,##0.00;(\xa4#,##0.00)",my:"\xa4\xa0#,##0.00",mzn:"\xa4\xa0#,##0.00",naq:"\xa4#,##0.00",nb:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nb-SJ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nd:"\xa4#,##0.00;(\xa4#,##0.00)",nds:"\xa4\xa0#,##0.00","nds-NL":"\xa4\xa0#,##0.00",ne:"\xa4\xa0#,##,##0.00","ne-IN":"\xa4\xa0#,##,##0.00",nl:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-AW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BE":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BQ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-CW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SX":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nmg:"#,##0.00\xa0\xa4",nn:"#,##0.00\xa0\xa4",nnh:"\xa4\xa0#,##0.00",no:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nus:"\xa4#,##0.00;(\xa4#,##0.00)",nyn:"\xa4#,##0.00",om:"\xa4#,##0.00","om-KE":"\xa4#,##0.00",or:"\xa4#,##0.00;(\xa4#,##0.00)",os:"\xa4\xa0#,##0.00","os-RU":"\xa4\xa0#,##0.00",pa:"\xa4\xa0#,##0.00","pa-Arab":"\xa4\xa0#,##0.00","pa-Guru":"\xa4\xa0#,##0.00",pcm:"\xa4#,##0.00",pl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ps:"\xa4#,##0.00;(\xa4#,##0.00)","ps-PK":"\xa4#,##0.00;(\xa4#,##0.00)",pt:"\xa4\xa0#,##0.00","pt-AO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CV":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-PT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-ST":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-TL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",qu:"\xa4\xa0#,##0.00","qu-BO":"\xa4\xa0#,##0.00","qu-EC":"\xa4\xa0#,##0.00",rm:"#,##0.00\xa0\xa4",rn:"#,##0.00\xa4",ro:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ro-MD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",rof:"\xa4#,##0.00",ru:"#,##0.00\xa0\xa4","ru-BY":"#,##0.00\xa0\xa4","ru-KG":"#,##0.00\xa0\xa4","ru-KZ":"#,##0.00\xa0\xa4","ru-MD":"#,##0.00\xa0\xa4","ru-UA":"#,##0.00\xa0\xa4",rw:"\xa4\xa0#,##0.00",rwk:"#,##0.00\xa4",sa:"\xa4\xa0#,##0.00",sah:"#,##0.00\xa0\xa4",saq:"\xa4#,##0.00;(\xa4#,##0.00)",sat:"\xa4\xa0#,##0.00","sat-Olck":"\xa4\xa0#,##0.00",sbp:"#,##0.00\xa4",sc:"#,##0.00\xa0\xa4",sd:"\xa4\xa0#,##0.00","sd-Arab":"\xa4\xa0#,##0.00","sd-Deva":"\xa4\xa0#,##0.00",se:"#,##0.00\xa0\xa4","se-FI":"#,##0.00\xa0\xa4","se-SE":"#,##0.00\xa0\xa4",seh:"#,##0.00\xa4",ses:"#,##0.00\xa4",sg:"\xa4#,##0.00;\xa4-#,##0.00",shi:"#,##0.00\xa4","shi-Latn":"#,##0.00\xa4","shi-Tfng":"#,##0.00\xa4",si:"\xa4#,##0.00;(\xa4#,##0.00)",sk:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",smn:"#,##0.00\xa0\xa4",sn:"\xa4#,##0.00;(\xa4#,##0.00)",so:"\xa4#,##0.00;(\xa4#,##0.00)","so-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","so-ET":"\xa4#,##0.00;(\xa4#,##0.00)","so-KE":"\xa4#,##0.00;(\xa4#,##0.00)",sq:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-MK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",su:"\xa4#,##0.00","su-Latn":"\xa4#,##0.00",sv:"#,##0.00\xa0\xa4","sv-AX":"#,##0.00\xa0\xa4","sv-FI":"#,##0.00\xa0\xa4",sw:"\xa4\xa0#,##0.00","sw-CD":"\xa4\xa0#,##0.00","sw-KE":"\xa4\xa0#,##0.00","sw-UG":"\xa4\xa0#,##0.00",ta:"\xa4#,##0.00;(\xa4#,##0.00)","ta-LK":"\xa4#,##0.00;(\xa4#,##0.00)","ta-MY":"\xa4#,##0.00;(\xa4#,##0.00)","ta-SG":"\xa4#,##0.00;(\xa4#,##0.00)",te:"\xa4#,##0.00;(\xa4#,##0.00)",teo:"\xa4#,##0.00;(\xa4#,##0.00)","teo-KE":"\xa4#,##0.00;(\xa4#,##0.00)",tg:"#,##0.00\xa0\xa4",th:"\xa4#,##0.00;(\xa4#,##0.00)",ti:"\xa4#,##0.00","ti-ER":"\xa4#,##0.00",tk:"#,##0.00\xa0\xa4",to:"\xa4\xa0#,##0.00",tr:"\xa4#,##0.00;(\xa4#,##0.00)","tr-CY":"\xa4#,##0.00;(\xa4#,##0.00)",tt:"#,##0.00\xa0\xa4",twq:"#,##0.00\xa4",tzm:"#,##0.00\xa0\xa4",ug:"\xa4#,##0.00;(\xa4#,##0.00)",uk:"#,##0.00\xa0\xa4",und:"\xa4\xa0#,##0.00",ur:"\xa4#,##0.00;(\xa4#,##0.00)","ur-IN":"\xa4#,##0.00;(\xa4#,##0.00)",uz:"#,##0.00\xa0\xa4","uz-Arab":"\xa4\xa0#,##0.00","uz-Cyrl":"#,##0.00\xa0\xa4","uz-Latn":"#,##0.00\xa0\xa4",vai:"\xa4#,##0.00;(\xa4#,##0.00)","vai-Latn":"\xa4#,##0.00;(\xa4#,##0.00)","vai-Vaii":"\xa4#,##0.00;(\xa4#,##0.00)",vi:"#,##0.00\xa0\xa4",vun:"\xa4#,##0.00",wae:"\xa4\xa0#,##0.00",wo:"\xa4\xa0#,##0.00",xh:"\xa4#,##0.00",xog:"#,##0.00\xa0\xa4",yav:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",yi:"\xa4\xa0#,##0.00",yo:"\xa4#,##0.00;(\xa4#,##0.00)","yo-BJ":"\xa4#,##0.00;(\xa4#,##0.00)",yrl:"\xa4\xa0#,##0.00","yrl-CO":"\xa4\xa0#,##0.00","yrl-VE":"\xa4\xa0#,##0.00",yue:"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hant":"\xa4#,##0.00;(\xa4#,##0.00)",zgh:"#,##0.00\xa4",zh:"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-MO":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-SG":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-MO":"\xa4#,##0.00;(\xa4#,##0.00)",zu:"\xa4#,##0.00;(\xa4#,##0.00)"},B=["standard","accounting"],F=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,X={},U=K=>{const ee=v.A.locale()+"/"+JSON.stringify(K);return X[ee]||(X[ee]=new Intl.NumberFormat(v.A.locale(),K).format),X[ee]},A={engine:function(){return"intl"},_formatNumberCore:function(K,ee,re){return"exponential"===ee?this.callBase.apply(this,arguments):U(this._normalizeFormatConfig(ee,re,K))(K)},_normalizeFormatConfig:function(K,ee,re){let be;if("decimal"===K){const ce=String(re).split(".")[1];be={minimumIntegerDigits:ee.precision||void 0,useGrouping:!1,maximumFractionDigits:ce&&ce.length,round:re<0?"ceil":"floor"}}else be=this._getPrecisionConfig(ee.precision);if("percent"===K)be.style="percent";else if("currency"===K){const ce=ee.useCurrencyAccountingStyle??(0,e.A)().defaultUseCurrencyAccountingStyle;be.style="currency",be.currency=ee.currency||(0,e.A)().defaultCurrency,be.currencySign=B[+ce]}return be},_getPrecisionConfig:function(K){let ee;return ee=null===K?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:K||0,maximumFractionDigits:K||0},ee},format:function(K,ee){return"number"!=typeof K?K:("default"===(ee=this._normalizeFormat(ee)).currency&&(ee.currency=(0,e.A)().defaultCurrency),ee&&("function"==typeof ee||ee.type||ee.formatter)?this.callBase.apply(this,arguments):U(ee)(K))},_getCurrencySymbolInfo:function(K){const ee=(K=>new Intl.NumberFormat(v.A.locale(),{style:"currency",currency:K}))(K);return this._extractCurrencySymbolInfo(ee.format(0))},_extractCurrencySymbolInfo:function(K){const ee=F.exec(K)||[];return{position:ee[1]?"before":"after",symbol:ee[1]||ee[4]||"",delimiter:ee[2]||ee[3]||""}},getCurrencySymbol:function(K){return K||(K=(0,e.A)().defaultCurrency),{symbol:this._getCurrencySymbolInfo(K).symbol}},getOpenXmlCurrencyFormat:function(K){const ee=K||(0,e.A)().defaultCurrency;return((K,ee)=>{if(!ee)return;let re=K;if("string"==typeof K){re="";for(let Re=0;Re<K.length;Re++)"$"!==K[Re]&&(re+="\\"),re+=K[Re]}const be={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':"&quot;","\\\xa4":re},ce=ee.split(";");for(let Re=0;Re<ce.length;Re++)for(const Se in be)Object.prototype.hasOwnProperty.call(be,Se)&&(ce[Re]=ce[Re].replace(new RegExp(Se,"g"),be[Se]));return 2===ce.length?ce[0]+"_);"+ce[1]:ce[0]})(this._getCurrencySymbolInfo(ee).symbol,v.A.getValueByClosestLocale(ce=>b[ce]))}},M=typeof Intl<"u",R=["currency","fixedpoint","exponential","percent","decimal"],L={1:"K",2:"M",3:"B",4:"T"},G={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},Q=(0,S.A)({engine:function(){return"base"},numericFormats:R,defaultLargeNumberFormatPostfixes:L,_parseNumberFormatString:function(K){const ee={};if(!K||"string"!=typeof K)return;const re=K.toLowerCase().split(" ");return(0,m.__)(re,(be,ce)=>{R.includes(ce)?ee.formatType=ce:ce in G&&(ee.power=G[ce])}),ee.power&&!ee.formatType&&(ee.formatType="fixedpoint"),ee.formatType?ee:void 0},_calculateNumberPower:function(K,ee,re,be){let ce=Math.abs(K),Re=0;if(ce>1)for(;ce&&ce>=ee&&(void 0===be||Re<be);)Re++,ce/=ee;else if(ce>0&&ce<1)for(;ce<1&&(void 0===re||Re>re);)Re--,ce*=ee;return Re},_getNumberByPower:function(K,ee,re){let be=K;for(;ee>0;)be/=re,ee--;for(;ee<0;)be*=re,ee++;return be},_formatNumber:function(K,ee,re){"auto"===ee.power&&(ee.power=this._calculateNumberPower(K,1e3,0,4)),ee.power&&(K=this._getNumberByPower(K,ee.power,1e3));const be=this.defaultLargeNumberFormatPostfixes[ee.power]||"";let ce=this._formatNumberCore(K,ee.formatType,re);return ce=ce.replace(/(\d|.$)(\D*)$/,"$1"+be+"$2"),ce},_formatNumberExponential:function(K,ee){let re=this._calculateNumberPower(K,10),be=this._getNumberByPower(K,re,10);void 0===ee.precision&&(ee.precision=1),be.toFixed(ee.precision||0)>=10&&(re++,be/=10);const ce=(re>=0?"+":"")+re.toString();return this._formatNumberCore(be,"fixedpoint",ee)+"E"+ce},_addZeroes:function(K,ee){const re=Math.pow(10,ee),be=K<0?"-":"";let ce=(K=(Math.abs(K)*re>>>0)/re).toString();for(;ce.length<ee;)ce="0"+ce;return be+ce},_addGroupSeparators:function(K){const ee=K.toString().split(".");return ee[0].replace(/\B(?=(\d{3})+(?!\d))/g,(0,e.A)().thousandsSeparator)+(ee[1]?(0,e.A)().decimalSeparator+ee[1]:"")},_formatNumberCore:function(K,ee,re){return"exponential"===ee?this._formatNumberExponential(K,re):("decimal"!==ee&&null!==re.precision&&(re.precision=re.precision||0),"percent"===ee&&(K*=100),void 0!==re.precision&&(K="decimal"===ee?this._addZeroes(K,re.precision):null===re.precision?K.toPrecision():(0,w.M)(K,re.precision)),K="decimal"!==ee?this._addGroupSeparators(K):K.toString().replace(".",(0,e.A)().decimalSeparator),"percent"===ee&&(K+="%"),K)},_normalizeFormat:function(K){return K?("function"==typeof K||(0,T.Qd)(K)||(K={type:K}),K):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e4,"fixedPoint")[2]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(K,ee){const re=this.format(90,"decimal");if("string"!=typeof K||"0"===re[1])return K;const be=ee?re[1]:"0",ce=ee?"0":re[1],Se=new RegExp("["+be+"-"+(ee?re[0]:"9")+"]","g");return K.replace(Se,De=>String.fromCharCode(De.charCodeAt(0)+(ce.charCodeAt(0)-be.charCodeAt(0))))},getNegativeEtalonRegExp:function(K){const ee=this._getSeparators(),re=new RegExp("[0-9"+(0,d.Nt)(ee.decimalSeparator+ee.thousandsSeparator)+"]+","g");let be=this.format(-1,K).replace(re,"1");return["\\","(",")","[","]","*","+","$","^","?","|","{","}"].forEach(ce=>{be=be.replace(new RegExp(`\\${ce}`,"g"),`\\${ce}`)}),be=be.replace(/ /g,"\\s"),be=be.replace(/1/g,".*"),new RegExp(be,"g")},getSign:function(K,ee){if(!ee)return"-"===K.replace(/[^0-9-]/g,"").charAt(0)?-1:1;const re=this.getNegativeEtalonRegExp(ee);return K.match(re)?-1:1},format:function(K,ee){if("number"!=typeof K||"number"==typeof ee)return K;if("function"==typeof(ee=ee&&ee.formatter||ee))return ee(K);(ee=this._normalizeFormat(ee)).type||(ee.type="decimal");const re=this._parseNumberFormatString(ee.type);if(!re){const be=this._getSeparators();return be.unlimitedIntegerDigits=ee.unlimitedIntegerDigits,this.convertDigits((0,C.f)(ee.type,be)(K))}return this._formatNumber(K,re,ee)},parse:function(K,ee){if(!K)return;if(ee&&ee.parser)return ee.parser(K);K=this.convertDigits(K,!0),ee&&"string"!=typeof ee&&k.A.log("W0011");const re=this.getDecimalSeparator(),be=new RegExp("[^0-9"+(0,d.Nt)(re)+"]","g"),ce=K.replace(be,"").replace(re,".").replace(/\.$/g,"");if("."===ce||""===ce)return null;if(this._calcSignificantDigits(ce)>15)return NaN;let Re=+ce*this.getSign(K,ee);ee=this._normalizeFormat(ee);const Se=this._parseNumberFormatString(ee.type);let De=Se?.power;if(De){if("auto"===De){const Pe=K.match(/\d(K|M|B|T)/);Pe&&(De=Object.keys(L).find(Ie=>L[Ie]===Pe[1]))}Re*=Math.pow(10,3*De)}return"percent"===Se?.formatType&&(Re/=100),Re},_calcSignificantDigits:function(K){const[ee,re]=K.split("."),be=Re=>{let Se=-1;for(let De=0;De<Re.length;De++)if("0"!==Re[De]){Se=De;break}return Se>-1?Re.length-Se:0};let ce=0;return ee&&(ce+=be(ee.split(""))),re&&(ce+=be(re.split("").reverse())),ce}});Q.inject(P.A),M&&Q.inject(A);const z=Q},1522:(En,it,p)=>{"use strict";p.d(it,{o:()=>v});var S=p(656),d=p(3746),m=p(5981),T=p(1118),C=p(242),e=p(79),k=p(5908),w=p(5634),P=p(5626);let v=(()=>{var x;class b{constructor(j,F,X,U,Z,A,M){this.scopeService=j,this.deviceInfoService=F,this.profileService=X,this.translationService=U,this.cordovaService=Z,this.document=A,this.routeTrackingService=M,this.toggleUserMenuState=(0,S.vPA)(!1),this.toggleContainerMenuState=(0,S.vPA)(!1),this.displayedSlots=new m.t([]),this.displayedSlots$=this.displayedSlots.asObservable(),this.mainEntriesStateMap=new Map([["10000000-0000-0000-0000-000000000001",T.g.AppMainNews],["10000000-0000-0000-0000-000000000002",T.g.AppMainSnips],["10000000-0000-0000-0000-000000000003",T.g.AppEventCalendar],["10000000-0000-0000-0000-000000000004",T.g.AppChat],["10000000-0000-0000-0000-000000000005",T.g.AppMainLogin],["10000000-0000-0000-0000-000000000006",T.g.AppRubrics],["10000000-0000-0000-0000-000000000007",T.g.AppFeedback],["10000000-0000-0000-0000-000000000008",T.g.AppAuthors]]),this.toggleUserMenu=()=>{this.toggleUserMenuState.set(!this.toggleUserMenuState())},this.toggleContainerMenu=()=>{this.toggleContainerMenuState.set(!this.toggleContainerMenuState())},this.updateLinkAttr=H=>H.forEach(J=>{"custom"===J.editType&&"_self"===J.linkAttr&&(J.linkAttr="_blank"),J.items&&this.updateLinkAttr(J.items)}),this.userInfo=F.getUserAgentInfo(),this.template=j.getMiniScope().navigationTemplate,this.scope=j.getScope(),this.user=this.profileService.profile,this.profileService.profileChanged$.subscribe(H=>{this.user=H,this.displayedSlots.next(this.getNavigationSlots())}),this.routeTrackingService.getRouteState$().subscribe(H=>{let J=this.displayedSlots.getValue();J.forEach(R=>{R.url&&(R.isSelected=this.resolveIsSelected(R.id,H.angularJsState))}),this.displayedSlots.next(J)}),this.deviceInfoService.getUserAgentInfo().isAndroid?this.setNavigationHeight(65):this.deviceInfoService.getUserAgentInfo().isIos?this.setNavigationHeight(105):this.setNavigationHeight(0),this.setPageHeight()}getNavigationSlots(){let j=JSON.parse(this.template.JsonValue);this.configuration=JSON.parse(this.template.Configuration);let F=this.resolveShowMoreBreakpoint(),X=j.filter(H=>0==H.disabled&&this.resolveFeatureFlagDependency(H.featureFlagDependency)).map(H=>this.resolveAttributes(H));X.sort((H,J)=>H.position-J.position);let U=X.length>F?X.slice(0,F-1):X;U.forEach(H=>{this.userInfo.isApp||(H.template="topMenuItem"),H.beginGroup=!0});let A={id:"3753fa5d-8ace-45f8-a6f1-053c2d014ffd",editType:"showMoreMenu",beginGroup:!0,editable:!1,displayVariantDesktop:"text",displayVariantMobile:"text",displayVariantApp:"icon-text",text:"Mehr",icon:"fa-solid fa-ellipsis",url:"",disabled:!1,linkAttr:"",position:F,translate:!0,overrides:{},featureFlagDependency:"none",items:X.length!=U.length?X.slice(F-1):[],template:this.userInfo.isApp?"":"topMenuItem",isSelected:!1};[A.icon,A.text]=this.resolveDisplayVariant(A),j.forEach(H=>{H.text&&(H.html=`<div class="navigation-item-base">${H.text}</div>`)});let M=A.items.length>0?U.concat(A):U;return this.cordovaService.isCordovaAvailable()&&this.updateLinkAttr(M),this.resolveNestingDepth(M,this.configuration.navigationNestingDepth),M}resolveFeatureFlagDependency(j){switch(j){case"none":default:return!0;case"enableEventCalendar":return eval?.("scope.currentChapter.settings.configurations.enableEventCalendar || scope.currentChapter.settings.configurations.enableEventArticles");case"chatEnabled":return eval?.("scope.currentChapter.settings.configurations?.chatChapterConfiguration?.ChatEnabled");case"isRegistered":return!this.user.isRegistered;case"featureFeedback":return eval?.("scope.currentChapter.settings.featureFeedback")}}resolveAttributes(j){return"category"==j.editType&&(j.items=this.resolveChapterCategories()),"category-group"==j.editType&&(j.items=this.resloveChapterCategoryGroup(j.id)),j.url=this.resolveUrl(j.url),[j.icon,j.text]=this.resolveDisplayVariant(j),j.items.map(this.resolveAttributes.bind(this)),j.url&&(j.isSelected=this.resolveIsSelected(j.id,this.routeTrackingService.getCurrentRouteState().angularJsState)),j.text&&this.translationService.translateByUserLanguageCode([j.text]).then(F=>{j.text=F[0].translation}),j}resolveDisplayVariant(j){let F;switch("main-entry"==j.editType&&!this.template.IsCustomTemplate&&(j.text=this.scope.network.getResourceOrKeyName(j.text)),F=this.userInfo.isApp?j.displayVariantApp:this.userInfo.isMobile||window.innerWidth<768?j.displayVariantMobile:j.displayVariantDesktop,F){case"icon-text":default:return[j.icon,j.text];case"icon":return[j.icon,""];case"text":return["",j.text]}}resolveUrl(j){return j.startsWith("/")?this.scope.currentChapter.path+j:j}resolveShowMoreBreakpoint(){return this.userInfo.isApp?this.configuration.showMoreConfiguration.showMoreBreakpointApp:this.userInfo.isMobile||window.innerWidth<768?1e3:this.configuration.showMoreConfiguration.showMoreBreakpointDesktop}resolveNestingDepth(j,F){0!=F?(F--,j.forEach(X=>{X.items.length>0&&this.resolveNestingDepth(X.items,F)})):j.forEach(X=>{X.items=[]})}resolveChapterCategories(){let j=[];return this.scope.currentChapter.chapterGroups.filter(X=>X.isFrontpageMenuStrip).forEach(X=>{X.chapters&&X.chapters.length>0&&j.push(...X.chapters)}),j.sort((X,U)=>X.order-U.order),j.map(this.mapCategoriesToNavigationSlotModel)}resloveChapterCategoryGroup(j){let F=[],X=this.scope.chapterGroups.find(U=>U.id==j);return X&&X.chapters.forEach(U=>{F.push(U)}),F.sort((U,Z)=>U.order-Z.order),F.map(this.mapCategoriesToNavigationSlotModel)}mapCategoriesToNavigationSlotModel(j){return{editType:"",beginGroup:!1,editable:!1,displayVariantDesktop:"text",displayVariantMobile:"text",displayVariantApp:"text",text:j.name??j.shortName,icon:"",url:j.id?"/rubrics?q="+j.id:"",disabled:!1,linkAttr:"",position:j.order,translate:!0,overrides:{},featureFlagDependency:"",items:j.chapters?j.chapters.map(this.mapCategoriesToNavigationSlotModel):[],template:""}}resolveIsSelected(j,F){return!!j&&this.mainEntriesStateMap.get(j)==F}setNavigationHeight(j){this.document.documentElement.style.setProperty("--appNavigationHeight",`${j}px`)}setPageHeight(){const j=this.document.querySelector(".root-wrapper");j&&(j.style.minHeight=this.deviceInfoService.getUserAgentInfo().isIos||this.deviceInfoService.getUserAgentInfo().isAndroid?"calc(100vh - 60px)":"calc(100vh - 136px)")}static#e=x=()=>(this.\u0275fac=function(F){return new(F||b)(S.KVO(d.A),S.KVO(C.E),S.KVO(e.p),S.KVO(k.M),S.KVO(w.q),S.KVO(S.qQL),S.KVO(P.o))},this.\u0275prov=S.jDH({token:b,factory:b.\u0275fac,providedIn:"root"}))}return x(),b})()},1541:(En,it,p)=>{"use strict";p.d(it,{A:()=>x});var S=p(2735),d=p(3568),m=p(2614),T=p(2660),C=p(1830),e=p(6021);const k=function(b,B,j){j=j||[],B=B||{};const F=function(Z,A){return{name:Z,args:A}},X=function(Z){const A=new e.cY;let M,H,J,R,L;const G=function(z){const K=B.errorHandler;K&&K(z),(0,m.H4)(z),A.reject(z)};function Q(z){switch(z.name){case"sortBy":return L=[z.args],!0;case"thenBy":if(!L)throw m.sO.Error("E4004");return L.push(z.args),!0}return!1}try{M=B.adapter,(0,C.Tn)(M)||(M=d.A[M]),H=M(B),J=[].concat(j).concat(Z);const z=H.optimize;for(z&&z(J);J.length;){if(R=J[0],!Q(R)){if(L){J.unshift(F("multiSort",[L])),L=null;continue}if("enumerate"!==String(R.name)&&(!H[R.name]||!1===H[R.name].apply(H,R.args)))break}J.shift()}(function(){const K=J[0],ee=[];K&&"multiSort"===K.name&&(J.shift(),(0,T.__)(K.args[0],function(){ee.push(F(ee.length?"thenBy":"sortBy",this))})),J=ee.concat(J)})(),H.exec(b).done(function(K,ee){if(J.length){let re=(0,S.A)(K,{errorHandler:B.errorHandler});(0,T.__)(J,function(){re=re[this.name].apply(re,this.args)}),re.done(A.resolve).fail(A.reject)}else A.resolve(K,ee)}).fail(G)}catch(z){G(z)}return A.promise()},U={};return(0,T.__)(["sortBy","thenBy","filter","slice","select","groupBy"],function(){const Z=String(this);U[Z]=function(){return k(b,B,j.concat(F(Z,arguments)))}}),(0,T.__)(["count","min","max","sum","avg","aggregate","enumerate"],function(){const Z=String(this);U[Z]=function(){return X.call(this,F(Z,arguments))}}),U},P={array:S.A,remote:k},x=function(){const b=Array.isArray(arguments[0])?"array":"remote";return P[b].apply(this,arguments)}},1605:(En,it,p)=>{"use strict";p.d(it,{k:()=>m,u:()=>d});var S=p(3090);const d={};function m(T,C,e){const k=d,w={};w[T]=k[T]?k[T]:{},w[T][C]=e,(0,S.X)(k,w)}},1609:(En,it,p)=>{"use strict";p.d(it,{A:()=>m});const m=p(7080).A},1614:(En,it,p)=>{"use strict";p.d(it,{A:()=>k});var S=p(9916),d=p(1541),m=p(2614),T=p(6569),C=p(2946);const k=T.A.inherit({ctor:function(w){w=Array.isArray(w)?{data:w}:w||{},this.callBase(w);const P=w.data;if(P&&!Array.isArray(P))throw m.sO.Error("E4006");this._array=P||[]},createQuery:function(){return(0,d.A)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(w){const P=(0,C.Xb)(this,this._array,w);return-1===P?(0,S.OE)(m.sO.Error("E4009")):(0,S.DO)(this._array[P])},_insertImpl:function(w){return(0,C.Yr)(this,this._array,w)},_pushImpl:function(w){(0,C.VK)({keyInfo:this,data:this._array,changes:w})},_updateImpl:function(w,P){return(0,C.yo)(this,this._array,w,P)},_removeImpl:function(w){return(0,C.TF)(this,this._array,w)},clear:function(){this._eventsStrategy.fireEvent("modifying"),this._array=[],this._eventsStrategy.fireEvent("modified")}},"array")},1677:(En,it,p)=>{"use strict";p.d(it,{m:()=>d});var S=p(4418);function d(m){return m&&(0,S.T)(m.schedule)}},1694:(En,it,p)=>{"use strict";p.d(it,{A:()=>v});var S=p(3538),d=p(6054),m=p(5704),T=p(4859),C=p(1830);const{abstract:e}=S.A,v=S.A.inherit({ctor(x){this._collectionWidget=x},getIndexByItemData:e,getItemDataByIndex:e,getKeysByItems:e,getItemsByKeys:e,itemsGetter:e,getKeyByIndex(x){const b=this._denormalizeItemIndex(x);return this.getKeysByItems([this.getItemDataByIndex(b)])[0]},_equalKeys(x,b){return this._collectionWidget._isKeySpecified()?(0,T.RL)(x,b):x===b},beginCache(){this._cache={}},endCache(){this._cache=null},getIndexByKey:e,getNormalizedIndex(x){return this._isNormalizedItemIndex(x)?x:this._isItemIndex(x)?this._normalizeItemIndex(x):this._isNode(x)?this._getNormalizedItemIndex(x):this._normalizeItemIndex(this.getIndexByItemData(x))},getIndex(x){return this._isNormalizedItemIndex(x)?this._denormalizeItemIndex(x):this._isItemIndex(x)?x:this._isNode(x)?this._denormalizeItemIndex(this._getNormalizedItemIndex(x)):this.getIndexByItemData(x)},getItemElement(x){if(this._isNormalizedItemIndex(x))return this._getItemByNormalizedIndex(x);if(this._isItemIndex(x))return this._getItemByNormalizedIndex(this._normalizeItemIndex(x));if(this._isNode(x))return(0,m.A)(x);const b=this._normalizeItemIndex(this.getIndexByItemData(x));return this._getItemByNormalizedIndex(b)},_isNode:x=>d.A.isNode(x&&(0,C.Kb)(x)?x.get(0):x),deleteItemAtIndex:e,itemPlacementFunc(x,b){return this._itemsFromSameParent(x,b)&&x<b?"after":"before"},moveItemAtIndexToIndex:e,_isNormalizedItemIndex:x=>"number"==typeof x&&Math.round(x)===x,_isItemIndex:e,_getNormalizedItemIndex:e,_normalizeItemIndex:e,_denormalizeItemIndex:e,_getItemByNormalizedIndex:e,_itemsFromSameParent:e}).inherit({_getPlainItems(){return this._collectionWidget.option("items")||[]},getIndexByItemData(x){const b=this._collectionWidget.keyOf.bind(this._collectionWidget);return b?this.getIndexByKey(b(x)):this._getPlainItems().indexOf(x)},getItemDataByIndex(x){return this._getPlainItems()[x]},deleteItemAtIndex(x){this._getPlainItems().splice(x,1)},itemsGetter(){return this._getPlainItems()},getKeysByItems(x){const b=this._collectionWidget.keyOf.bind(this._collectionWidget);let B=x;if(b){B=[];for(let j=0;j<x.length;j++)B.push(b(x[j]))}return B},getIndexByKey(x){const b=this._cache,B=b&&b.keys||this.getKeysByItems(this._getPlainItems());if(b&&!b.keys&&(b.keys=B),"object"!=typeof x)return B.indexOf(x);for(let j=0,{length:F}=B;j<F;j++)if(this._equalKeys(x,B[j]))return j;return-1},getItemsByKeys:(x,b)=>(b||x).slice(),moveItemAtIndexToIndex(x,b){const B=this._getPlainItems(),j=B[x];B.splice(x,1),B.splice(b,0,j)},_isItemIndex:x=>"number"==typeof x&&Math.round(x)===x,_getNormalizedItemIndex(x){return this._collectionWidget._itemElements().index(x)},_normalizeItemIndex:x=>x,_denormalizeItemIndex:x=>x,_getItemByNormalizedIndex(x){return x>-1?this._collectionWidget._itemElements().eq(x):null},_itemsFromSameParent:()=>!0})},1705:(En,it,p)=>{"use strict";p.d(it,{m:()=>oo,D:()=>Do});var S=p(4303),d=p(656),m=p(5737);const e=new class T{constructor(){this._converters={},this._converters={}}addConverter(Mt,bt){this._converters[Mt]=bt}getConverter(Mt){return this._converters[Mt]}};e.addConverter("delta",class k{setQuillInstance(Mt){this.quillInstance=Mt}toHtml(){if(this.quillInstance)return this._isQuillEmpty()?"":this.quillInstance.getSemanticHTML(0,this.quillInstance.getLength()+1)}_isQuillEmpty(){const Mt=this.quillInstance.getContents();return 1===Mt.length()&&this._isDeltaEmpty(Mt)}_isDeltaEmpty(Mt){return Mt.reduce((bt,an)=>{let{insert:Un}=an;return-1!==Un.indexOf("\n")})}});var P=p(1973),v=p(3686),x=p(5973),b=p(9522),B=p(5704),j=p(8412),F=p(8684),X=p(4859),U=p(6021),Z=p(3090),A=p(1830),M=p(4072),H=p(7940),J=p(1216),R=p(9209),L=p(9293),G=p(6620),Q=p(127),z=p(4647),K=p(681),ee=p.n(K);function re(){if(!ee())throw Q.A.Error("E1041","Quill");return ee()}let be={};ee()&&(be=ee().import("attributors/style/align"),be.whitelist.push("left"));const ce=be;let Re={};ee()&&(Re=ee().import("attributors/style/font"),Re.whitelist=null);const Se=Re;let De={};if(ee()){const Ht=ee().import("formats/image");De=class extends Ht{static create(Mt){const an=super.create(Mt&&Mt.src||Mt);if((0,A.Gv)(Mt)){const Un=(di,qn)=>{Mt[di]&&an.setAttribute(di,qn)};Un("alt",Mt.alt),Un("width",Mt.width),Un("height",Mt.height)}return an}static formats(Mt){const bt=super.formats(Mt);return bt.imageSrc=Mt.getAttribute("src"),bt}formats(){const Mt=super.formats(),bt=this.domNode.style.float;return bt&&(Mt.float=bt),Mt}format(Mt,bt){"float"===Mt?this.domNode.style[Mt]=bt:super.format(Mt,bt)}static value(Mt){return{src:Mt.getAttribute("src"),width:Mt.getAttribute("width"),height:Mt.getAttribute("height"),alt:Mt.getAttribute("alt")}}},De.blotName="extendedImage"}const Pe=De;let Ie={};if(ee()){const Ht=ee().import("formats/link");Ie=class o2 extends Ht{static create(bt){const Un=super.create(bt?.href??bt);return(0,A.Gv)(bt)&&(bt.text&&(Un.innerText=bt.text),bt.target||Un.removeAttribute("target")),Un}static formats(bt){return{href:bt.getAttribute("href"),target:bt.getAttribute("target")}}formats(){const bt=super.formats(),{href:an,target:Un}=o2.formats(this.domNode);return bt.link=an,bt.target=Un,bt}format(bt,an){"link"===bt&&(0,A.Gv)(an)?(an.text&&(this.domNode.innerText=an.text),an.target?this.domNode.setAttribute("target","_blank"):this.domNode.removeAttribute("target"),this.domNode.setAttribute("href",an.href)):super.format(bt,an)}static value(bt){return{href:bt.getAttribute("href"),text:bt.innerText,target:!!bt.getAttribute("target")}}}}const W=Ie;let ie={};ee()&&(ie=ee().import("attributors/style/size"),ie.whitelist=null);const he=ie;var Ce=p(36),ye=p(2660),Me=p(6110);let ke=class _e{};if(ee()){const Ht=ee().import("core/module");ke=class extends Ht{constructor(Mt,bt){super(Mt,bt),this.editorInstance=bt.editorInstance}saveValueChangeEvent(Mt){this.editorInstance._saveValueChangeEvent(Mt)}addCleanCallback(Mt){this.editorInstance.addCleanCallback(Mt)}handleOptionChangeValue(Mt){(0,A.Gv)(Mt)?Object.entries(Mt).forEach(bt=>{let[an,Un]=bt;return this.option(an,Un)}):(0,A.O9)(Mt)||null==this||this.clean()}}}const Ye=ke;let de=Ye;ee()&&(de=class extends Ye{constructor(Ht,Mt){super(Ht,Mt);const bt=this.editorInstance.NAME;M.A.on(this.quill.root,(0,L.b4)("drop",bt),this._dropHandler.bind(this)),M.A.on(this.quill.root,(0,L.b4)("paste",bt),this._pasteHandler.bind(this))}_dropHandler(Ht){var Mt;const{dataTransfer:bt}=Ht.originalEvent,an=null==bt||null===(Mt=bt.files)||void 0===Mt?void 0:Mt.length;this.saveValueChangeEvent(Ht),Ht.preventDefault(),an&&this._getImage(bt.files,this._addImage.bind(this))}_pasteHandler(Ht){var Mt;const{clipboardData:bt}=Ht.originalEvent;if(this.saveValueChangeEvent(Ht),!bt)return;const an=null===(Mt=bt.items)||void 0===Mt?void 0:Mt.length;!bt.getData("text/html")&&an&&this._getImage(bt.items,di=>{Ce.A.mozilla||this._addImage(di)})}_isImage(Ht){return!!Ht.type.match(/^image\/(a?png|bmp|gif|p?jpe?g|svg|vnd\.microsoft\.icon|webp)/i)}_getImage(Ht,Mt){const bt=(0,Me.zk)();(0,ye.__)(Ht,(an,Un)=>{if(!this._isImage(Un))return;const di=new bt.FileReader;di.onload=Ti=>{let{target:Qi}=Ti;Mt(Qi.result)};const qn=Un.getAsFile?Un.getAsFile():Un;qn instanceof bt.Blob&&di.readAsDataURL(qn)})}_addImage(Ht){const Mt=this.quill.getSelection(),bt=Mt?Mt.index:this.quill.getLength();this.quill.insertEmbed(bt,"extendedImage",Ht,"user")}});const Ae=de,Ee=(0,L.b4)("dxclick","dxHtmlEditorImageCursor");let le=Ye;ee()&&(le=class extends Ye{constructor(Ht,Mt){super(Ht,Mt),this.addCleanCallback(this.clean.bind(this)),this._attachEvents()}_attachEvents(){M.A.on(this.quill.root,Ee,this._clickHandler.bind(this))}_detachEvents(){M.A.off(this.quill.root,Ee)}_clickHandler(Ht){this._isAllowedTarget(Ht.target)&&this._adjustSelection(Ht)}_isAllowedTarget(Ht){return this._isImage(Ht)}_isImage(Ht){return"IMG"===Ht.tagName.toUpperCase()}_adjustSelection(Ht){const Mt=this.quill.scroll.find(Ht.target);if(Mt){const bt=Mt.offset(this.quill.scroll);this.quill.setSelection(bt+1,0)}else this.quill.setSelection(0,0)}clean(){this._detachEvents()}});const Ke=le;var Be=p(5730),q=p(9144),Oe=p(1363),fe=p(8360),We=p(4308),Ue=p(8910),Ve=p(9212);const tt=["imageSrc","src"],at="phone"===x.A.current().deviceType;class ji{constructor(Mt,bt){this.module=Mt,this.config=bt??{},this.quill=this.module.quill,this.editorInstance=this.module.editorInstance}render(){this.editorInstance._formDialog&&(this.editorInstance._formDialog.beforeAddButtonAction=()=>this.getCurrentTab().upload()),this.tabPanelIndex=0,this.formData=this.getFormData(),this.isUpdating=this.isImageUpdating(),this.tabsModel=this.createTabsModel(this.config.tabs),this.tabs=this.createTabs(this.formData);const Mt=this.getFormConfig();this.updatePopupConfig(),this.updateAddButtonState(),this.editorInstance.showFormDialog(Mt).done((bt,an)=>{this.tabs[this.getActiveTabIndex()].strategy.pasteImage(bt,an)}).always(()=>{this.resetDialogPopupOptions(),this.quill.focus()})}getCurrentTab(){return this.tabs[this.tabPanelIndex]}updateAddButtonState(){const Mt=this.getCurrentTab().isDisableButton();this.setAddButtonDisabled(Mt)}setAddButtonDisabled(Mt){this.editorInstance.formDialogOption({"toolbarItems[0].options.disabled":Mt})}getActiveTabIndex(){return this.isUpdating?0:this.tabPanelIndex}getFormData(){return this.getUpdateDialogFormData(this.quill.getFormat())}getUpdateDialogFormData(Mt){const{imageSrc:bt,src:an}=Mt,Un=(0,q.A)(Mt,tt);return(0,m.A)({src:bt??an},Un)}createUrlTab(Mt){return new Vo(this.module,{config:this.config,formData:Mt,isUpdating:this.isUpdating},()=>this.updateAddButtonState())}createFileTab(){return new Co(this.module,{config:this.config},()=>this.updateAddButtonState())}createTabsModel(){let Mt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0===Mt.length||this.isUpdating?["url"]:Mt.map(bt=>"object"==typeof bt?bt.name:bt)}createTabs(Mt){return this.tabsModel.map(bt=>"url"===bt?this.createUrlTab(Mt):this.createFileTab())}isImageUpdating(){return Object.prototype.hasOwnProperty.call(this.module.quill.getFormat()??{},"imageSrc")}updatePopupConfig(){let Mt="dx-htmleditor-add-image-popup dx-formdialog";this.useTabbedItems()&&(Mt+=" dx-htmleditor-add-image-popup-with-tabs");const an=this.isUpdating?"dxHtmlEditor-dialogImageUpdateButton":"dxHtmlEditor-dialogImageAddButton";this.editorInstance.formDialogOption({title:fe.A.format(this.isUpdating?"dxHtmlEditor-dialogUpdateImageCaption":"dxHtmlEditor-dialogImageCaption"),"toolbarItems[0].options.text":fe.A.format(an),wrapperAttr:{class:Mt}})}resetDialogPopupOptions(){this.editorInstance.formDialogOption({"toolbarItems[0].options.text":fe.A.format("OK"),"toolbarItems[0].options.visible":!0,"toolbarItems[0].options.disabled":!1,wrapperAttr:{class:"dx-formdialog"}})}useTabbedItems(){return this.tabsModel.length>1}getFormWidth(){return at?"100%":493}getFormConfig(){return{formData:this.formData,width:this.getFormWidth(),labelLocation:"top",colCount:this.useTabbedItems()?1:11,items:this.getItemsConfig()}}getItemsConfig(){return this.useTabbedItems()?[{itemType:"tabbed",tabPanelOptions:{onSelectionChanged:bt=>{this.tabPanelIndex=bt.component.option("selectedIndex"),this.updateAddButtonState()}},tabs:(0,ye.Tj)(this.tabs,bt=>({title:bt.getTabName(),colCount:11,items:bt.getItemsConfig()}))}]:this.tabs[0].getItemsConfig()}}class Mi{constructor(Mt,bt,an){let{config:Un,formData:di,isUpdating:qn}=bt;this.module=Mt,this.config=Un,this.formData=di,this.isUpdating=qn,this.onFileSelected=an,this.strategy=this.createStrategy()}getItemsConfig(){return this.strategy.getItemsConfig()}createStrategy(){return this.isUpdating?new ei(this.module,this.config,this.formData):new Qn(this.module,this.config,this.onFileSelected)}isDisableButton(){return!1}upload(){return this.strategy.upload()}}class Vo extends Mi{getTabName(){return fe.A.format("dxHtmlEditor-dialogImageSpecifyUrl")}}class Co extends Mi{getTabName(){return fe.A.format("dxHtmlEditor-dialogImageSelectFile")}createStrategy(){return new Rt(this.module,this.config,this.onFileSelected)}isDisableButton(){return!this.strategy.isValid()}}class ti{constructor(Mt,bt){this.module=Mt,this.config=bt,this.editorInstance=Mt.editorInstance,this.quill=Mt.quill,this.selection=this.getQuillSelection()}getQuillSelection(){return this.quill.getSelection()??{index:this.quill.getLength(),length:0}}pasteImage(Mt,bt){}isValid(){return!0}upload(){}}class Qn extends ti{constructor(Mt,bt,an){super(Mt,bt,an),this.shouldKeepAspectRatio=!0}pasteImage(Mt,bt){this.module.saveValueChangeEvent(bt),Jn(this.quill,this.selection.index,Mt)}keepAspectRatio(Mt,bt){let{dependentEditor:an,e:Un}=bt;const di=parseInt(Un.value),qn=parseInt(Un.previousValue),Ti=parseInt(an.option("value"));Mt.component.updateData(Mt.dataField,di),this.shouldKeepAspectRatio&&Ti&&qn&&!this.preventRecalculating&&(this.preventRecalculating=!0,an.option("value",Math.round(di*Ti/parseInt(qn)).toString())),this.preventRecalculating=!1}createKeepAspectRatioEditor(Mt,bt,an){return this.editorInstance._createComponent(Mt,Ue.A,(0,Z.X)(!0,bt.editorOptions,{value:bt.component.option("formData")[bt.dataField],onEnterKey:bt.component.option("onEditorEnterKey").bind(this.editorInstance._formDialog,bt),onValueChanged:Un=>{this.keepAspectRatio(bt,{dependentEditor:this[`${an}Editor`],e:Un})}}))}upload(){return this.editorInstance._formDialog._form.validate().isValid}getItemsConfig(){const Mt=(0,Ve.Ft)()?"text":"outlined";return[{dataField:"src",colSpan:11,label:{text:fe.A.format("dxHtmlEditor-dialogImageUrlField")},validationRules:[{type:"required"},{type:"stringLength",min:1}]},{dataField:"width",colSpan:6,label:{text:fe.A.format("dxHtmlEditor-dialogImageWidthField")},template:bt=>{const an=(0,B.A)("<div>").addClass("dx-fix-ratio-container"),Un=(0,B.A)("<div>").appendTo(an);this.widthEditor=this.createKeepAspectRatioEditor(Un,bt,"height");const di=(0,B.A)("<div>").appendTo(an);return this.editorInstance._createComponent(di,We.A,{items:[{icon:"imgarlock",value:"keepRatio"}],hint:fe.A.format("dxHtmlEditor-dialogImageKeepAspectRatio"),focusStateEnabled:!1,keyExpr:"value",stylingMode:Mt,selectionMode:"multiple",selectedItemKeys:["keepRatio"],onSelectionChanged:qn=>{this.shouldKeepAspectRatio=!!qn.component.option("selectedItems").length}}),an}},{dataField:"height",colSpan:5,label:{text:fe.A.format("dxHtmlEditor-dialogImageHeightField")},template:bt=>{const an=(0,B.A)("<div>");return this.heightEditor=this.createKeepAspectRatioEditor(an,bt,"width"),an}},{dataField:"alt",colSpan:11,label:{text:fe.A.format("dxHtmlEditor-dialogImageAltField")}}]}}class ei extends Qn{constructor(Mt,bt,an,Un){super(Mt,bt,Un),this.formData=an,this.modifyFormData()}modifyFormData(){const{imageSrc:Mt}=this.quill.getFormat(this.selection.index-1,1);(!Mt||0===this.selection.index)&&(this.selection={index:this.selection.index+1,length:0},this.quill.setSelection(this.selection.index,this.selection.length,"silent"));const bt=this.quill.getLeaf(this.selection.index)[0].domNode;bt&&(this.formData.width=this.formData.width??(0,Oe.RG)((0,B.A)(bt)),this.formData.height=this.formData.height??(0,Oe.Oq)((0,B.A)(bt)))}pasteImage(Mt,bt){this.quill.deleteText(this.embedFormatIndex(),1,"silent"),this.selection.index-=1,super.pasteImage(Mt,bt)}embedFormatIndex(){const Mt=this.selection??this.quill.getSelection();return Mt?Mt.length?Mt.index:Mt.index-1:this.quill.getLength()}}class Rt extends ti{constructor(Mt,bt,an){super(Mt,bt,an),this.useBase64=!(0,A.O9)(this.config.fileUploadMode)||"base64"===this.config.fileUploadMode,this.isValidInternal=!1,this.onFileSelected=an,this.data=null}upload(){return this.useBase64?this.base64Upload(this.data):this.data.value.length&&this.data.component.upload(),!0}isValid(){return this.isValidInternal}onUploaded(Mt){Ii(this.config.uploadDirectory,Mt.file.name,this.quill,this.selection.index)}base64Upload(Mt){this.quill.getModule("uploader").upload(this.selection,Mt.value,!0)}pasteImage(Mt,bt){this.useBase64&&super.pasteImage(Mt,bt)}isBase64Editable(){return"both"===this.config.fileUploadMode}validate(Mt){const bt=Mt.component;this.isValidInternal=!bt._files.some(an=>!an.isValid()),0===bt._files.length&&(this.isValidInternal=!1)}getFileUploaderOptions(){return(0,Z.X)({},{value:[],name:"dx-htmleditor-image",accept:"image/*",uploadMode:"useButtons"},{uploadUrl:this.config.uploadUrl,onValueChanged:bt=>{this.validate(bt),this.data=bt,this.onFileSelected()},onUploaded:bt=>this.onUploaded(bt)},this.config.fileUploaderOptions)}getItemsConfig(){return[{itemType:"simple",dataField:"files",colSpan:11,label:{visible:!1},template:()=>{const Mt=(0,B.A)("<div>");return this.module.editorInstance._createComponent(Mt,Be.A,this.getFileUploaderOptions()),Mt}},{itemType:"simple",colSpan:11,label:{visible:!1},editorType:"dxCheckBox",editorOptions:{value:this.useBase64,visible:this.isBase64Editable(),text:fe.A.format("dxHtmlEditor-dialogImageEncodeToBase64"),onValueChanged:Mt=>{this.isBase64Editable()&&(this.useBase64=Mt.value)}}}]}}function Jn(Ht,Mt,bt){Ht.insertEmbed(Mt,"extendedImage",bt,"user"),Ht.setSelection(Mt+1,0,"user")}function Ii(Ht,Mt,bt,an){if(Ht){const Un=function Jt(Ht){return"/"!==Ht[Ht.length-1]?`${Ht}/`:Ht}(Ht)+Mt;Jn(bt,an,{src:Un})}}const vo="dxHtmlEditorImageUpload";let Wo=Ye;ee()&&(Wo=class extends Ye{constructor(Ht,Mt){super(Ht,Mt),this.options=Mt,this._quillContainer=this.editorInstance._getQuillContainer(),this.addCleanCallback(this.prepareCleanCallback()),this._handleServerUpload()}_handleServerUpload(){(0,A.O9)(this.options.fileUploadMode)&&"base64"!==this.options.fileUploadMode?this._enableDragAndDropUploading():this._disableDragAndDropUploading()}_getUploaderModule(){return this._uploaderModule||(this._uploaderModule=this.quill.getModule("uploader")),this._uploaderModule}_disableDragAndDropUploading(){var Ht;this._getUploaderModule().preventImageUploading(!1),this._detachEvents(),null===(Ht=this._fileUploader)||void 0===Ht||Ht.dispose()}_enableDragAndDropUploading(){this._initFileUploader(),this._getUploaderModule().preventImageUploading(!0),this._attachEvents()}_initFileUploader(){const Ht=(0,B.A)("<div>").addClass("dx-htmleditor-hidden-content").appendTo(this._quillContainer),Mt=(0,Z.X)({},{value:[],name:"dx-htmleditor-image",accept:"image/*",uploadMode:"useButtons"},{uploadUrl:this.options.uploadUrl,onUploaded:this._onUploaded.bind(this)},this.options.fileUploaderOptions);return this._fileUploader=this.editorInstance._createComponent(Ht,Be.A,Mt),Ht}_onUploaded(Ht){const{index:Mt}=this.quill.getSelection()??{index:this.quill.getLength()};Ii(this.options.uploadDirectory,Ht.file.name,this.quill,Mt)}_attachEvents(){M.A.on(this.quill.root,(0,L.b4)("drop",vo),this._dropHandler.bind(this)),M.A.on(this.quill.root,(0,L.b4)("paste",vo),this._pasteHandler.bind(this))}_detachEvents(){M.A.off(this.quill.root,vo)}_dropHandler(Ht){this._handleInsertImages(Ht,"dataTransfer")}_pasteHandler(Ht){this._handleInsertImages(Ht,"clipboardData")}_handleInsertImages(Ht,Mt){this.saveValueChangeEvent(Ht);const an=Array.from(Ht.originalEvent[Mt].files||[]);an.length&&(Ht.preventDefault(),Ht.stopPropagation(),this._fileUploader.option("value",an),this._fileUploader.upload())}clean(){this._disableDragAndDropUploading()}prepareCleanCallback(){return()=>{this.clean()}}option(Ht,Mt){switch(Ht){case"imageUpload":this.handleOptionChangeValue(Mt);break;case"fileUploadMode":this.options.fileUploadMode=Mt,this._handleServerUpload();break;case"fileUploaderOptions":this._fileUploader.option(Mt)}}});const To=Wo;var hs=p(4270);class Ps{constructor(){this._storage={}}set(Mt,bt){let{editorKey:an,marker:Un}=Mt;var di;(di=this._storage)[an]??(di[an]={}),this._storage[an][Un]=bt}get(Mt){var bt,an;let{editorKey:Un,marker:di}=Mt;return(0,A.O9)(Un)?null===(an=this._storage[Un])||void 0===an?void 0:an[di]:null===(bt=Object.values(this._storage).at(-1))||void 0===bt?void 0:bt[di]}delete(Mt){let{editorKey:bt,marker:an}=Mt;this._storage[bt]&&(delete this._storage[bt][an],(0,A.RI)(this._storage[bt])&&delete this._storage[bt])}}let ls={};if(ee()){const Ht=ee().import("blots/embed"),Mt="dx-mention";ls=class gk extends Ht{constructor(an,Un){super(an,Un),this.renderContent(this.contentNode,gk.value(Un))}static create(an){const Un=super.create();return Un.setAttribute("spellcheck",!1),Un.dataset.marker=an.marker,Un.dataset.mentionValue=an.value,Un.dataset.id=an.id,Un}static value(an){return{marker:an.dataset.marker,id:an.dataset.id,value:an.dataset.mentionValue}}renderContent(an,Un){const di=gk._templatesStorage.get({editorKey:Un.keyInTemplateStorage,marker:Un.marker});di?di.render({model:Un,container:an}):this.baseContentRender(an,Un)}baseContentRender(an,Un){const di=(0,B.A)("<span>").text(Un.marker);(0,B.A)(an).append(di).append(Un.value)}static addTemplate(an,Un){this._templatesStorage.set(an,Un)}static removeTemplate(an){this._templatesStorage.delete(an)}},ls.blotName="mention",ls.tagName="span",ls.className=Mt,ls._templatesStorage=new Ps}const Hs=ls;var ss=p(2392),qo=p(5169);let bs=Ye;if(ee()){const Ht="dx-suggestion-list",Mt="dx-suggestion-list-wrapper",bt="dx-dropdowneditor-overlay";bs=class extends Ye{constructor(Un,di){super(Un,di),this.options=(0,Z.X)({},this._getDefaultOptions(),di),this._popup=this.renderPopup(),this._popup.$wrapper().addClass(`${Mt} ${bt}`),this._renderPreventFocusOut()}_getDefaultOptions(){return{dataSource:null}}renderList(Un,di){const qn=(0,B.A)("<div>").addClass(Ht).appendTo(Un);this._list=this.options.editorInstance._createComponent(qn,ss.A,di)}renderPopup(){const{editorInstance:Un}=this.options,di=(0,B.A)("<div>").appendTo(Un.$element()),qn=this._getPopupConfig();return Un._createComponent(di,qo.A,qn)}_getPopupConfig(){return{contentTemplate:Un=>{const di=this._getListConfig(this.options);this.renderList((0,B.A)(Un),di)},deferRendering:!1,onShown:()=>{this._list.focus()},onHidden:()=>{this._list.unselectAll(),this._list.option("focusedElement",null)},showTitle:!1,width:"auto",height:"auto",shading:!1,hideOnParentScroll:!0,hideOnOutsideClick:!0,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},fullScreen:!1,maxHeight:this.maxHeight}}_getListConfig(Un){return{dataSource:Un.dataSource,onSelectionChanged:this.selectionChangedHandler.bind(this),selectionMode:"single",pageLoadMode:"scrollBottom"}}get maxHeight(){const Un=(0,Me.zk)(),di=Un&&(0,Oe.Oq)(Un)||0;return Math.max(100,.5*di)}selectionChangedHandler(Un){this._popup.option("visible")&&(this._popup.hide(),this.insertEmbedContent(Un))}_renderPreventFocusOut(){const Un=(0,L.b4)("mousedown","dxHtmlEditorPopupModule");M.A.on(this._popup.$wrapper(),Un,di=>{di.preventDefault()})}insertEmbedContent(Un){}showPopup(){this._popup&&this._popup.show()}savePosition(Un){this.caretPosition=Un}getPosition(){return this.caretPosition}}}const Fn=bs;let li=Ye;if(ee()){const Ht="user",bt={ARROW_UP:"upArrow",ARROW_DOWN:"downArrow",ARROW_LEFT:"leftArrow",ARROW_RIGHT:"rightArrow",ENTER:"enter",ESCAPE:"escape",SPACE:"space",PAGE_UP:"pageUp",PAGE_DOWN:"pageDown",END:"end",HOME:"home"},an=[bt.ARROW_LEFT,bt.ARROW_RIGHT,bt.PAGE_UP,bt.PAGE_DOWN,bt.END,bt.HOME],Un=[" ","\n"],di="dx-state-disabled";ee().register({"formats/mention":Hs},!0),li=class extends Fn{constructor(qn,Ti){super(qn,Ti),this._mentions={},Ti.mentions.forEach(Qi=>{let{marker:go}=Qi;go||(Qi.marker=go="@");const{template:eo}=Qi;if(eo){const os=this.editorInstance._getTemplate(eo);os&&Hs.addTemplate({marker:go,editorKey:this.editorInstance.getMentionKeyInTemplateStorage()},os)}this._mentions[go]=(0,Z.X)({},this._getDefaultOptions(),Qi)}),this._attachKeyboardHandlers(),this.addCleanCallback(this.clean.bind(this)),this.quill.on("text-change",this.onTextChange.bind(this))}_getDefaultOptions(){const qn=super._getDefaultOptions();return(0,Z.X)(qn,{itemTemplate:"item",valueExpr:"this",displayExpr:"this",template:null,searchExpr:null,searchTimeout:500,minSearchLength:0})}_attachKeyboardHandlers(){this.quill.keyboard.addBinding({key:bt.ARROW_UP},this._moveToItem.bind(this,"prev")),this.quill.keyboard.addBinding({key:bt.ARROW_DOWN},this._moveToItem.bind(this,"next")),this.quill.keyboard.addBinding({key:[bt.ENTER,bt.SPACE]},this._selectItemHandler.bind(this));const qn=this.quill.keyboard.bindings[bt.ENTER];qn.unshift(qn.pop()),this.quill.keyboard.addBinding({key:bt.ESCAPE},this._escapeKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:[bt.ARROW_LEFT,bt.ARROW_RIGHT],shiftKey:!0},this._ignoreKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:an},this._ignoreKeyHandler.bind(this))}_moveToItem(qn){const Ti=this._list.getDataSource();if(this._isMentionActive&&!Ti.isLoading()){const go="next"===qn?"first":"last";let eo=(0,B.A)(this._list.option("focusedElement"))[qn]();eo=eo.length?eo:this._activeListItems[go](),this._list.option("focusedElement",(0,b.cc)(eo)),this._list.scrollToItem(eo)}return!this._isMentionActive}_ignoreKeyHandler(){return!this._isMentionActive}_fitIntoRange(qn,Ti,Qi){return qn>Qi?Ti:qn<Ti?Qi:qn}_selectItemHandler(){return this._isMentionActive&&(this._list.option("items").length?this._list.selectItem(this._list.option("focusedElement")):this._popup.hide()),!this._isMentionActive}_escapeKeyHandler(){return this._isMentionActive&&this._popup.hide(),!this._isMentionActive}renderList(qn,Ti){this.compileGetters(this.options),super.renderList(qn,Ti)}compileGetters(qn){let{displayExpr:Ti,valueExpr:Qi}=qn;this._valueGetter=(0,hs.Hz)(Ti),this._idGetter=(0,hs.Hz)(Qi)}_getListConfig(qn){const Ti=super._getListConfig(qn);return(0,Z.X)(Ti,{itemTemplate:this.options.itemTemplate,onContentReady:()=>{this._hasSearch&&(this._popup.repaint(),this._focusFirstElement(),this._hasSearch=!1)}})}insertEmbedContent(){const qn=this._activeMentionConfig.marker.length,Ti=qn+this._searchValue.length,Qi=this.getPosition(),go=this._list.option("selectedItem"),eo={value:this._valueGetter(go),id:this._idGetter(go),marker:this._activeMentionConfig.marker,keyInTemplateStorage:this.editorInstance.getMentionKeyInTemplateStorage()},os=ee().import("delta"),as=Math.max(0,Qi-qn),Os=this.quill.getFormat(as),Ks=(new os).retain(as).delete(Ti).insert({mention:eo}).insert(" ",Os);this.quill.updateContents(Ks),this.quill.setSelection(as+2)}_getLastInsertOperation(qn){const Ti=qn[qn.length-1];if("insert"in Ti)return Ti;const go="delete"in Ti;if(go&&qn.length>=2){const eo=qn[qn.length-2];if(go&&"insert"in eo)return eo}return null}onTextChange(qn,Ti,Qi){if(Qi===Ht)if(this._isMentionActive&&this._isPopupVisible)this._processSearchValue(qn.ops[qn.ops.length-1])&&this._filterList(this._searchValue);else{const{ops:eo}=qn,os=this._getLastInsertOperation(eo);os&&this.checkMentionRequest(os,eo)}}get _isPopupVisible(){var qn;return null===(qn=this._popup)||void 0===qn?void 0:qn.option("visible")}_processSearchValue(qn){if("insert"in qn)this._searchValue+=qn.insert;else{if(!this._searchValue.length||qn.delete>1)return this._popup.hide(),!1;this._searchValue=this._searchValue.slice(0,-1)}return!0}checkMentionRequest(qn,Ti){let{insert:Qi}=qn;const go=this.quill.getSelection();if(Qi&&(0,A.Kg)(Qi)&&go&&!this._isMarkerPartOfText(Ti[0].retain)&&(this._activeMentionConfig=this._mentions[Qi],this._activeMentionConfig)){this._updateList(this._activeMentionConfig);const eo=go.index&&"\n"===this._getCharByIndex(go.index-1);this.savePosition(go.index+eo),this._popup.option("position",this._popupPosition),this._searchValue="",this._popup.show()}}_isMarkerPartOfText(qn){return!(!qn||Un.includes(this._getCharByIndex(qn-1)))}_getCharByIndex(qn){return this.quill.getContents(qn,1).ops[0].insert}_updateList(qn){let{dataSource:Ti,displayExpr:Qi,valueExpr:go,itemTemplate:eo,searchExpr:os}=qn;this.compileGetters({displayExpr:Qi,valueExpr:go}),this._list.unselectAll(),this._list.option({dataSource:Ti,displayExpr:Qi,itemTemplate:eo,searchExpr:os})}_filterList(qn){if(!this._isMinSearchLengthExceeded(qn))return void this._resetFilter();const{searchTimeout:Ti}=this._activeMentionConfig;Ti?(clearTimeout(this._searchTimer),this._searchTimer=setTimeout(()=>{this._search(qn)},Ti)):this._search(qn)}_isMinSearchLengthExceeded(qn){return qn.length>=this._activeMentionConfig.minSearchLength}_resetFilter(){clearTimeout(this._searchTimer),this._search(null)}_search(qn){this._hasSearch=!0,this._list.option("searchValue",qn)}_focusFirstElement(){if(!this._list)return;const qn=this._activeListItems.first();this._list.option("focusedElement",(0,b.cc)(qn)),this._list.scrollToItem(qn)}_toggleActiveDescendant(qn){if(qn){const Ti=this._list.getFocusedItemId();this.quill.root.setAttribute("aria-activedescendant",Ti)}else this.quill.root.removeAttribute("aria-activedescendant")}get _popupPosition(){const qn=this.getPosition(),{left:Ti,top:Qi,height:go}=this.quill.getBounds(qn&&qn-1),{left:eo,top:os}=(0,B.A)(this.quill.root).offset();return{of:M.A.Event("positionEvent",{pageX:eo+Ti,pageY:os+Qi}),offset:{v:go},my:"top left",at:"top left",collision:{y:"flip",x:"flipfit"}}}_getPopupConfig(){return(0,Z.X)(super._getPopupConfig(),{hideOnParentScroll:!1,onShown:()=>{this._toggleActiveDescendant(!0),this._isMentionActive=!0,this._hasSearch=!1,this._focusFirstElement()},onHidden:()=>{this._toggleActiveDescendant(!1),this._list.unselectAll(),this._list.option("focusedElement",null),this._isMentionActive=!1,this._search(null)},focusStateEnabled:!1})}get _activeListItems(){return this._list.itemElements().filter(`:not(.${di})`)}clean(){Object.keys(this._mentions).forEach(qn=>{this._mentions[qn].template&&Hs.removeTemplate({marker:qn,editorKey:this.editorInstance.getMentionKeyInTemplateStorage()})})}}}const si=li;var Ni=p(2123),Yi=p(4757),Sn=p(778),ri=p(1220);const dn="dxHtmlResizingModule",jt=(0,L.b4)("keydown",dn),Ot=(0,L.b4)("scroll",dn),Tn=(0,L.b4)("mousedown",dn);class Bi extends Ye{constructor(Mt,bt){super(Mt,bt),this.allowedTargets=bt.allowedTargets||["image"],this.enabled=!!bt.enabled,this._hideFrameWithContext=this.hideFrame.bind(this),this._framePositionChangedHandler=this._prepareFramePositionChangedHandler(),this.enabled&&(this._attachEvents(),this._createResizeFrame())}_attachEvents(){M.A.on(this.quill.root,(0,L.b4)(Sn.U,dn),this._clickHandler.bind(this)),M.A.on(this.quill.root,Ot,this._framePositionChangedHandler),this.editorInstance.on("focusOut",this._hideFrameWithContext),this.quill.on("text-change",this._framePositionChangedHandler)}_detachEvents(){M.A.off(this.quill.root,`.${dn}`),this.editorInstance.off("focusOut",this._hideFrameWithContext),this.quill.off("text-change",this._framePositionChangedHandler)}_clickHandler(Mt){if(this._isAllowedTarget(Mt.target)){if(this._$target===Mt.target)return;this._$target=Mt.target;const bt=(0,B.A)(this._$target),an=Math.max((0,Oe.Ot)(bt)-(0,Oe.RG)(bt),this.resizable.option("minWidth")),Un=Math.max((0,Oe.P$)(bt)-(0,Oe.Oq)(bt),this.resizable.option("minHeight"));this.resizable.option({minWidth:an,minHeight:Un}),this.updateFramePosition(),this.showFrame(),this._adjustSelection()}else this._$target&&this.hideFrame()}_prepareFramePositionChangedHandler(){return()=>{this._$target&&this.updateFramePosition()}}_adjustSelection(){this.quill.getSelection()||this.quill.setSelection(0,0)}_isAllowedTarget(Mt){return this._isImage(Mt)}_isImage(Mt){return-1!==this.allowedTargets.indexOf("image")&&"IMG"===Mt.tagName.toUpperCase()}showFrame(){this._$resizeFrame.show(),M.A.on(this.quill.root,jt,this._handleFrameKeyDown.bind(this))}_handleFrameKeyDown(Mt){const bt=(0,L.YD)(Mt);("del"===bt||"backspace"===bt)&&this._deleteImage(),this.hideFrame()}hideFrame(){this._$target=null,this._$resizeFrame.hide(),M.A.off(this.quill.root,jt)}updateFramePosition(){const{height:Mt,width:bt,top:an,left:Un}=(0,Yi.N)(this._$target),{top:di,left:qn}=(0,Yi.N)(this.quill.root),Ti=this._getBorderWidth();this._$resizeFrame.css({height:Mt,width:bt,padding:1,top:an-di-Ti-1,left:Un-qn-Ti-1}),(0,Ni.Cy)(this._$resizeFrame,{left:0,top:0})}_getBorderWidth(){return parseInt(this._$resizeFrame.css("borderTopWidth"))}_createResizeFrame(){if(this._$resizeFrame)return;const{deviceType:Mt}=x.A.current();this._$resizeFrame=(0,B.A)("<div>").addClass("dx-resize-frame").toggleClass("dx-touch-device","desktop"!==Mt).appendTo(this.editorInstance._getQuillContainer()).hide(),M.A.on(this._$resizeFrame,Tn,bt=>{bt.preventDefault()}),this.resizable=this.editorInstance._createComponent(this._$resizeFrame,ri.A,{onResize:bt=>{this._$target&&((0,B.A)(this._$target).attr({height:bt.height,width:bt.width}),this.updateFramePosition())}})}_deleteImage(){var Mt;this._isAllowedTarget(this._$target)&&(null===(Mt=ee().find(this._$target))||void 0===Mt||Mt.deleteAt(0))}option(Mt,bt){if("mediaResizing"!==Mt)if("enabled"===Mt){if(this.enabled===bt)return;this.enabled=bt,bt?(this._attachEvents(),this._createResizeFrame()):this.clean()}else"allowedTargets"===Mt&&Array.isArray(bt)&&(this.allowedTargets=bt);else this.handleOptionChangeValue(bt)}clean(){this._detachEvents(),this._$resizeFrame.remove(),this._$resizeFrame=void 0}}var Zi=p(6946),ro=p(784);const mo=["table","tableHeaderCell"],ho=["insertTable","insertHeaderRow","insertRowAbove","insertRowBelow","insertColumnLeft","insertColumnRight","deleteColumn","deleteRow","deleteTable","cellProperties","tableProperties"];function St(Ht){const Mt=Ht.getModule("table");return null!=Mt&&Mt.tableFormats?Mt.tableFormats():mo}function jn(Ht,Mt){let{tableBlot:bt,quill:an}=Mt;(bt??an.scroll.find(Ht.get(0))).format("tableWidth","initial")}function ai(Ht){let Mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ht.find("tr").eq(Mt).find("th, td")}function $i(Ht){const bt=[],an="horizontal"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"horizontal");return(an?ai(Ht):$o(Ht)).each((di,qn)=>{const Ti=(0,B.A)(qn);""===Ti.get(0).style[an?"width":"height"]&&bt.push(Ti)}),bt}function zi(Ht,Mt){let{elements:bt,property:an,value:Un}=Mt;const di=Ht.quill.getModule("table").tableBlots,qn=`cell${(0,Zi.PT)(an,!0)}`;(0,ye.__)(bt,(Ti,Qi)=>{var go;let eo=Ht.quill.scroll.find(Qi);if(!di.includes(eo.statics.blotName)){const os=eo.descendant(as=>di.includes(as.statics.blotName));eo=os?os[0]:null}null===(go=eo)||void 0===go||go.format(qn,`${Un}px`)})}function _o(Ht,Mt){return"horizontal"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"horizontal")?$o(Ht,Mt):ai(Ht,Mt)}function $o(Ht){let Mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ht.find(`th:nth-child(${1+Mt}), td:nth-child(${1+Mt})`)}function gs(Ht,Mt){for(var bt=arguments.length,an=new Array(bt>2?bt-2:0),Un=2;Un<bt;Un++)an[Un-2]=arguments[Un];return()=>{const di=Ht.getModule("table");if(di)return Ht.focus(),di[Mt](...an)}}var xn=p(2148),Bn=p(5480),Gn=p(9994);const Oo=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"].map(Ht=>({id:Ht,value:fe.A.format(`dxHtmlEditor-borderStyle${(0,Zi.PT)(Ht,!0)}`)})),Fo="user",Rs={insertHeaderRow:"header",clear:"clearformat"};function ks(Ht){return{clear:Mt=>{let{event:bt}=Mt;const an=Ht.quill.getSelection();var Un;an&&(Ht.saveValueChangeEvent(bt),Ht.quill.removeFormat(an),null===(Un=Dt(Ht))||void 0===Un||Un.updateFormatWidgets())},link:Zn(Ht),image:gi(Ht,Ht.editorInstance.option("imageUpload")),color:ut(Ht,"color"),background:ut(Ht,"background"),orderedList:Yt(Ht,"list","ordered"),bulletList:Yt(Ht,"list","bullet"),alignLeft:Yt(Ht,"align","left"),alignCenter:Yt(Ht,"align","center"),alignRight:Yt(Ht,"align","right"),alignJustify:Yt(Ht,"align","justify"),codeBlock:mn(Ht,"code-block"),undo:Mt=>{let{event:bt}=Mt;Ht.saveValueChangeEvent(bt),Ht.quill.history.undo()},redo:Mt=>{let{event:bt}=Mt;Ht.saveValueChangeEvent(bt),Ht.quill.history.redo()},increaseIndent:Mt=>{let{event:bt}=Mt;Ss(Ht,["indent","+1",Fo],bt)},decreaseIndent:Mt=>{let{event:bt}=Mt;Ss(Ht,["indent","-1",Fo],bt)},superscript:Yt(Ht,"script","super"),subscript:Yt(Ht,"script","sub"),insertTable:xi(Ht),insertHeaderRow:gs(Ht.quill,"insertHeaderRow"),insertRowAbove:gs(Ht.quill,"insertRowAbove"),insertRowBelow:gs(Ht.quill,"insertRowBelow"),insertColumnLeft:gs(Ht.quill,"insertColumnLeft"),insertColumnRight:gs(Ht.quill,"insertColumnRight"),deleteColumn:gs(Ht.quill,"deleteColumn"),deleteRow:gs(Ht.quill,"deleteRow"),deleteTable:gs(Ht.quill,"deleteTable"),cellProperties:Bs(Ht,"cell"),tableProperties:Bs(Ht,"table")}}function _s(Ht,Mt){let{contentTemplate:bt,title:an,minHeight:Un,minWidth:di,maxWidth:qn}=Mt;Ht.formDialogOption({contentTemplate:bt,title:an,minHeight:Un??0,minWidth:di??0,maxWidth:qn??"none"})}function Bs(Ht,Mt){return bt=>{var an;null!==(an=bt)&&void 0!==an&&an.length||(bt=(0,B.A)(function Et(Ht,Mt){const bt=Ht.quill.getModule("table").getTable();return"table"===Mt?bt[0].domNode:bt[2].domNode}(Ht,Mt)));const[Un,di]=Ht.quill.getModule("table").getTable()??[],qn=Ht.quill.getFormat(Ht.editorInstance.getSelection(!0)),Ti=function yo(Ht){return"cell"===Ht?Ro:Ki}(Mt)(Ht,{$element:bt,formats:qn,tableBlot:Un,rowBlot:di}),{contentTemplate:Qi,title:go,minHeight:eo,minWidth:os,maxWidth:as}=Ht.editorInstance._formDialog._popup.option(),Os={contentTemplate:Qi,title:go,minHeight:eo,minWidth:os,maxWidth:as};let Ks;Ht.editorInstance.formDialogOption({contentTemplate:_t=>{const _n=(0,B.A)("<div>").appendTo(_t),In=(0,B.A)("<div>").appendTo(_n);return Ht.editorInstance._createComponent(In,Bn.A,Ti.formOptions),Ht.editorInstance._createComponent(_n,Gn.A,{}),Ks=In.dxForm("instance"),_n},title:fe.A.format(`dxHtmlEditor-${Mt}Properties`),minHeight:400,minWidth:Math.min(800,.9*(0,Oe.RG)((0,Me.zk)())-1),maxWidth:.9*(0,Oe.RG)((0,Me.zk)())});const ht=Ht.editorInstance.showFormDialog();ht.done((_t,_n)=>{Ht.saveValueChangeEvent(_n),Ti.applyHandler(Ks),_s(Ht.editorInstance,Os)}),ht.fail(()=>{Ht.quill.focus(),_s(Ht.editorInstance,Os)})}}function Ss(Ht,Mt,bt){Ht.saveValueChangeEvent(bt),Ht.quill.format(...Mt)}function Dn(Ht){return Array.isArray(Ht)?Ht[0]:Ht}function Zn(Ht){return()=>{var Mt;Ht.quill.focus();let bt=Ht.quill.getSelection();const an=bt?Ht.quill.getFormat():{},Un=void 0!==an.link&&0===(null===(Mt=bt)||void 0===Mt?void 0:Mt.length);let di=an.link||"";if(Un){const go=function en(Ht,Mt){const an=re().import("formats/link");let Un,di;return[Un,di]=Ht.quill.scroll.descendant(an,Mt.index),!Un&&0===Mt.length&&([Un,di]=Ht.quill.scroll.descendant(an,Mt.index-1),Un&&(di+=1)),Un?{index:Mt.index-di,length:Un.length()}:null}(Ht,bt);go?bt=go:di=""}const qn=function Qt(Ht,Mt){return!!Mt&&Ht.quill.getText(Mt).length<Mt.length}(Ht,bt),Ti={href:di,text:bt&&!qn?Ht.quill.getText(bt):"",target:!Object.prototype.hasOwnProperty.call(an,"target")||!!an.target};Ht.editorInstance.formDialogOption("title",fe.A.format("dxHtmlEditor-dialogLinkCaption"));const Qi=Ht.editorInstance.showFormDialog({formData:Ti,items:mi(qn)});Qi.done((go,eo)=>{if(bt&&!qn){const os=go.text||go.href,{index:as,length:Os}=bt;go.text=void 0,Ht.saveValueChangeEvent(eo),Os&&Ht.quill.deleteText(as,Os,"silent"),Ht.quill.insertText(as,os,"link",go,Fo),Ht.quill.setSelection(as+os.length,0,Fo)}else go.text=bt||go.text?go.text:go.href,Ss(Ht,["link",go,Fo],eo)}),Qi.fail(()=>{Ht.quill.focus()})}}function gi(Ht,Mt){const bt=new ji(Ht,Mt);return()=>{bt.render()}}function mi(Ht){return[{dataField:"href",label:{text:fe.A.format("dxHtmlEditor-dialogLinkUrlField")}},{dataField:"text",label:{text:fe.A.format("dxHtmlEditor-dialogLinkTextField")},visible:!Ht},{dataField:"target",editorType:"dxCheckBox",editorOptions:{text:fe.A.format("dxHtmlEditor-dialogLinkTargetField")},cssClass:"dx-formdialog-field-target",label:{visible:!1}}]}function ut(Ht,Mt){return()=>{const bt=Ht.quill.getFormat();Ht.editorInstance.formDialogOption("title",fe.A.format("color"===Mt?"dxHtmlEditor-dialogColorCaption":"dxHtmlEditor-dialogBackgroundCaption"));const Un=Ht.editorInstance.showFormDialog({formData:bt,items:[{dataField:Mt,editorType:"dxColorView",editorOptions:{focusStateEnabled:!1},label:{visible:!1}}]});Un.done((di,qn)=>{Ss(Ht,[Mt,di[Mt],Fo],qn)}),Un.fail(()=>{Ht.quill.focus()})}}function Yt(Ht,Mt,bt){return an=>{var Un;let{event:di}=an;const Ti=Ht.quill.getFormat()[Mt]!==bt&&bt;Ss(Ht,[Mt,Ti,Fo],di),null===(Un=Dt(Ht))||void 0===Un||Un.updateFormatWidgets(!0)}}function Dt(Ht){return Ht._updateFormatWidget?Ht:Ht.quill.getModule("toolbar")}function mn(Ht,Mt){return bt=>{var an;let{event:Un}=bt;const di=Ht.quill.getFormat(),qn=di[Mt],Ti=!((0,A.Lm)(qn)?qn:(0,A.O9)(qn));Ss(Ht,[Mt,Ti,Fo],Un),null===(an=Dt(Ht))||void 0===an||an._updateFormatWidget(Mt,Ti,di)}}function xi(Ht){return()=>{const Mt=Ht.quill.getFormat();Ht._tableFormats.some(Un=>Object.prototype.hasOwnProperty.call(Mt,Un))?Ht.quill.focus():(Ht.editorInstance.formDialogOption("title",fe.A.format("dxHtmlEditor-dialogInsertTableCaption")),Ht.editorInstance.showFormDialog({formData:{rows:1,columns:1},items:[{dataField:"columns",editorType:"dxNumberBox",editorOptions:{min:1},label:{text:fe.A.format("dxHtmlEditor-dialogInsertTableRowsField")}},{dataField:"rows",editorType:"dxNumberBox",editorOptions:{min:1},label:{text:fe.A.format("dxHtmlEditor-dialogInsertTableColumnsField")}}]}).done((Un,di)=>{Ht.quill.focus();const qn=Ht.quill.getModule("table");if(qn){Ht.saveValueChangeEvent(di);const{columns:Ti,rows:Qi}=Un;qn.insertTable(Ti,Qi)}}).always(()=>{Ht.quill.focus()}))}}function Ki(Ht,Mt){let{$element:bt,formats:an,tableBlot:Un}=Mt;const di=(0,Me.zk)();let qn,Ti,Qi;const go=bt,{editorInstance:eo}=Ht,os=parseInt(an.tableWidth)||(0,Oe.Ot)(go),as=di.getComputedStyle(go.get(0)),Os="start"===as.textAlign?"left":as.textAlign;return{formOptions:{colCount:2,formData:{width:os,height:(0,A.O9)(an.tableHeight)?parseInt(an.tableHeight):(0,Oe.P$)(go),backgroundColor:an.tableBackgroundColor||as.backgroundColor,borderStyle:an.tableBorderStyle||as.borderTopStyle,borderColor:an.tableBorderColor||as.borderTopColor,borderWidth:parseInt((0,A.O9)(an.tableBorderWidth)?an.tableBorderWidth:as.borderTopWidth),alignment:an.tableAlign||Os},items:[{itemType:"group",caption:fe.A.format("dxHtmlEditor-border"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"borderStyle",label:{text:fe.A.format("dxHtmlEditor-style")},editorType:"dxSelectBox",editorOptions:{items:Oo,valueExpr:"id",displayExpr:"value",placeholder:"Select style"}},{dataField:"borderWidth",label:{text:fe.A.format("dxHtmlEditor-borderWidth")},editorOptions:{placeholder:fe.A.format("dxHtmlEditor-pixels")}},{itemType:"simple",dataField:"borderColor",label:{text:fe.A.format("dxHtmlEditor-borderColor")},colSpan:2,template:ht=>{const _t=(0,B.A)("<div>");return eo._createComponent(_t,xn.A,{editAlphaChannel:!0,value:ht.component.option("formData").borderColor,onInitialized:_n=>{Ti=_n.component}}),_t}}]},{itemType:"group",caption:fe.A.format("dxHtmlEditor-dimensions"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"width",label:{text:fe.A.format("dxHtmlEditor-width")},editorOptions:{min:0,placeholder:fe.A.format("dxHtmlEditor-pixels")}},{dataField:"height",label:{text:fe.A.format("dxHtmlEditor-height")},editorOptions:{min:0,placeholder:fe.A.format("dxHtmlEditor-pixels")}}]},{itemType:"group",caption:fe.A.format("dxHtmlEditor-tableBackground"),items:[{itemType:"simple",dataField:"backgroundColor",label:{text:fe.A.format("dxHtmlEditor-borderColor")},template:ht=>{const _t=(0,B.A)("<div>");return eo._createComponent(_t,xn.A,{editAlphaChannel:!0,value:ht.component.option("formData").backgroundColor,onInitialized:_n=>{Qi=_n.component}}),_t}}]},{itemType:"group",caption:fe.A.format("dxHtmlEditor-alignment"),items:[{itemType:"simple",label:{text:fe.A.format("dxHtmlEditor-horizontal")},template:()=>{const ht=(0,B.A)("<div>");return eo._createComponent(ht,We.A,{items:[{value:"left",icon:"alignleft"},{value:"center",icon:"aligncenter"},{value:"right",icon:"alignright"},{value:"justify",icon:"alignjustify"}],keyExpr:"value",selectedItemKeys:[Os],onInitialized:_t=>{qn=_t.component}}),ht}}]}],showColonAfterLabel:!0,labelLocation:"top",minColWidth:400},applyHandler:ht=>{const _t=ht.option("formData");(function ko(Ht,Mt){let{$table:bt,newHeight:an,newWidth:Un,tableBlot:di}=Mt;if((0,A.O9)(Un))if($i(bt).length>0)Ht.editorInstance.format("tableWidth",`${Un}px`);else{const Qi=ai(bt),go=(0,Oe.Ot)(bt);jn(bt,{tableBlot:di}),(0,ye.__)(Qi,(eo,os)=>{const as=(0,B.A)(os),Os=Un/go*(0,Oe.Ot)(as),Ks=_o(bt,as.index(),"horizontal");zi(Ht,{elements:Ks,property:"width",value:Os})})}const qn=$i(bt,"vertical");if(qn?.length>0)di.format("tableHeight",`${an}px`);else{const Ti=$o(bt),Qi=(0,Oe.P$)(bt);(0,ye.__)(Ti,(go,eo)=>{const os=(0,B.A)(eo),as=an/Qi*(0,Oe.P$)(os),Os=_o(bt,go,"vertical");zi(Ht,{elements:Os,property:"height",value:as})})}})(Ht,{$table:go,newHeight:_t.height,newWidth:_t.width===os?void 0:_t.width,tableBlot:Un}),Ht.editorInstance.format("tableBorderStyle",_t.borderStyle),Ht.editorInstance.format("tableBorderWidth",`${_t.borderWidth}px`),Ht.editorInstance.format("tableBorderColor",Ti.option("value")),Ht.editorInstance.format("tableBackgroundColor",Qi.option("value")),Ht.editorInstance.format("tableTextAlign",qn.option("selectedItemKeys")[0])}}}function Ro(Ht,Mt){let{$element:bt,formats:an,tableBlot:Un,rowBlot:di}=Mt;const qn=(0,Me.zk)();let Ti,Qi,go,eo;const os=bt,as=(0,A.O9)(an.cellWidth)?parseInt(an.cellWidth):(0,Oe.Ot)(os),{editorInstance:Os}=Ht,Ks=qn.getComputedStyle(os.get(0)),ht="start"===Ks.textAlign?"left":Ks.textAlign;return{formOptions:{colCount:2,formData:{width:as,height:(0,A.O9)(an.cellHeight)?parseInt(an.cellHeight):(0,Oe.P$)(os),backgroundColor:Dn(an.cellBackgroundColor)||Ks.backgroundColor,borderStyle:an.cellBorderStyle||Ks.borderTopStyle,borderColor:Dn(an.cellBorderColor)||Ks.borderTopColor,borderWidth:parseInt((0,A.O9)(an.cellBorderWidth)?an.cellBorderWidth:Ks.borderTopWidth),alignment:an.cellTextAlign||ht,verticalAlignment:an.cellVerticalAlign||Ks.verticalAlign,verticalPadding:parseInt((0,A.O9)(an.cellPaddingTop)?an.cellPaddingTop:Ks.paddingTop),horizontalPadding:parseInt((0,A.O9)(an.cellPaddingLeft)?an.cellPaddingLeft:Ks.paddingLeft)},items:[{itemType:"group",caption:fe.A.format("dxHtmlEditor-border"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"borderStyle",label:{text:fe.A.format("dxHtmlEditor-style")},editorType:"dxSelectBox",editorOptions:{items:Oo,valueExpr:"id",displayExpr:"value"}},{dataField:"borderWidth",label:{text:fe.A.format("dxHtmlEditor-borderWidth")},editorOptions:{placeholder:fe.A.format("dxHtmlEditor-pixels")}},{itemType:"simple",dataField:"borderColor",colSpan:2,label:{text:fe.A.format("dxHtmlEditor-borderColor")},template:_n=>{const In=(0,B.A)("<div>");return Os._createComponent(In,xn.A,{editAlphaChannel:!0,value:_n.component.option("formData").borderColor,onInitialized:Oi=>{go=Oi.component}}),In}}]},{itemType:"group",caption:fe.A.format("dxHtmlEditor-dimensions"),colCount:2,colCountByScreen:{xs:2},items:[{dataField:"width",label:{text:fe.A.format("dxHtmlEditor-width")},editorOptions:{min:0,placeholder:fe.A.format("dxHtmlEditor-pixels")}},{dataField:"height",label:{text:fe.A.format("dxHtmlEditor-height")},editorOptions:{min:0,placeholder:fe.A.format("dxHtmlEditor-pixels")}},{dataField:"verticalPadding",label:{text:fe.A.format("dxHtmlEditor-paddingVertical")},editorOptions:{placeholder:fe.A.format("dxHtmlEditor-pixels")}},{label:{text:fe.A.format("dxHtmlEditor-paddingHorizontal")},dataField:"horizontalPadding",editorOptions:{placeholder:fe.A.format("dxHtmlEditor-pixels")}}]},{itemType:"group",caption:fe.A.format("dxHtmlEditor-tableBackground"),items:[{itemType:"simple",dataField:"backgroundColor",label:{text:fe.A.format("dxHtmlEditor-borderColor")},template:_n=>{const In=(0,B.A)("<div>");return Os._createComponent(In,xn.A,{editAlphaChannel:!0,value:_n.component.option("formData").backgroundColor,onInitialized:Oi=>{eo=Oi.component}}),In}}]},{itemType:"group",caption:fe.A.format("dxHtmlEditor-alignment"),colCount:2,items:[{itemType:"simple",label:{text:fe.A.format("dxHtmlEditor-horizontal")},template:()=>{const _n=(0,B.A)("<div>");return Os._createComponent(_n,We.A,{items:[{value:"left",icon:"alignleft"},{value:"center",icon:"aligncenter"},{value:"right",icon:"alignright"},{value:"justify",icon:"alignjustify"}],keyExpr:"value",selectedItemKeys:[ht],onInitialized:In=>{Ti=In.component}}),_n}},{itemType:"simple",label:{text:fe.A.format("dxHtmlEditor-vertical")},template:()=>{const _n=(0,B.A)("<div>");return Os._createComponent(_n,We.A,{items:[{value:"top",icon:"verticalaligntop"},{value:"middle",icon:"verticalaligncenter"},{value:"bottom",icon:"verticalalignbottom"}],keyExpr:"value",selectedItemKeys:[Ks.verticalAlign],onInitialized:In=>{Qi=In.component}}),_n}}]}],showColonAfterLabel:!0,labelLocation:"top",minColWidth:400},applyHandler:_n=>{const In=_n.option("formData"),Oi=In.width===parseInt(as)?void 0:In.width;(function Ho(Ht,Mt){let{$cell:bt,newHeight:an,newWidth:Un,tableBlot:di,rowBlot:qn}=Mt;const Ti=(0,B.A)(bt.closest("table"));if((0,A.O9)(Un)){const go=(0,B.A)(bt).index();let eo=_o(Ti,go);const os=Un-(0,Oe.Ot)(bt);Un>(0,Oe.Ot)(Ti)&&jn(Ti,{tableBlot:di}),zi(Ht,{elements:eo,property:"width",value:Un});const Os=bt.next();if(0===$i(Ti).length)if(jn(Ti,{tableBlot:di}),1===Os.length){eo=_o(Ti,go+1);const ht=(0,Oe.Ot)(eo.eq(0))-os;zi(Ht,{elements:eo,property:"width",value:Math.max(ht,0)})}else if(1===bt.prev().length){eo=_o(Ti,go-1);const _t=(0,Oe.Ot)(eo.eq(0))-os;zi(Ht,{elements:eo,property:"width",value:Math.max(_t,0)})}}qn.children.forEach(go=>{go.format("cellHeight",`${an}px`)}),0===$i(Ti,"vertical").length&&Ti.css("height","auto")})(Ht,{$cell:os,newHeight:In.height,newWidth:Oi,tableBlot:Un,rowBlot:di}),Ht.editorInstance.format("cellBorderWidth",`${In.borderWidth}px`),Ht.editorInstance.format("cellBorderColor",go.option("value")),Ht.editorInstance.format("cellBorderStyle",In.borderStyle),Ht.editorInstance.format("cellBackgroundColor",eo.option("value")),Ht.editorInstance.format("cellTextAlign",Ti.option("selectedItemKeys")[0]),Ht.editorInstance.format("cellVerticalAlign",Qi.option("selectedItemKeys")[0]),Ht.editorInstance.format("cellPaddingLeft",`${In.horizontalPadding}px`),Ht.editorInstance.format("cellPaddingRight",`${In.horizontalPadding}px`),Ht.editorInstance.format("cellPaddingTop",`${In.verticalPadding}px`),Ht.editorInstance.format("cellPaddingBottom",`${In.verticalPadding}px`)}}}const ds=(0,L.b4)("dxcontextmenu","dxHtmlEditorTableContextMenu");let Bo=Ye;const ws=Ht=>fe.A.format(`dxHtmlEditor-${(0,Zi.PT)(Ht)}`);ee()&&(Bo=class extends Ye{constructor(Ht,Mt){super(Ht,Mt),this.enabled=!!Mt.enabled,this._quillContainer=this.editorInstance._getQuillContainer(),this.addCleanCallback(this.prepareCleanCallback()),this._formatHandlers=ks(this),this._tableFormats=St(Ht),this.enabled&&this._enableContextMenu(Mt.items)}_enableContextMenu(Ht){var Mt;null===(Mt=this._contextMenu)||void 0===Mt||Mt.dispose(),this._contextMenu=this._createContextMenu(Ht),this._attachEvents()}_attachEvents(){M.A.on(this.editorInstance._getContent(),ds,this._prepareContextMenuHandler())}_detachEvents(){M.A.off(this.editorInstance._getContent(),ds)}_createContextMenu(Ht){const Mt=(0,B.A)("<div>").appendTo(this.editorInstance.$element()),bt=this._getMenuConfig(Ht);return this.editorInstance._createComponent(Mt,ro.A,bt)}showPropertiesForm(){let Ht=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cell";const Mt=(0,B.A)(this._targetElement).closest("cell"===Ht?"th, td":"table");this._contextMenu.hide(),this._formatHandlers[`${Ht}Properties`](Mt),this._targetElement=null}_isAcceptableItem(Ht,Mt){return!Ht||Ht===Mt}_handleObjectItem(Ht){if(Ht.name&&this._isAcceptableItem(Ht.widget,"dxButton")){const Mt=this._prepareMenuItemConfig(Ht.name);return(0,Z.X)(!0,Mt,Ht)}return Ht.items&&(Ht.items=this._prepareMenuItems(Ht.items)),Ht}_prepareMenuItemConfig(Ht){const Mt=Rs[Ht]??Ht,bt=(0,Zi.Ns)(Ht);return{text:ws(bt),icon:Mt.toLowerCase(),onClick:this._formatHandlers[Ht]??mn(this,Ht)}}_prepareMenuItems(Ht){const Mt=[];return(0,ye.__)(Ht,(bt,an)=>{let Un;(0,A.Gv)(an)?Un=this._handleObjectItem(an):(0,A.Kg)(an)&&(Un=this._prepareMenuItemConfig(an)),Un&&Mt.push(Un)}),Mt}_getMenuConfig(Ht){const Mt=[{text:ws("insert"),items:["insertHeaderRow","insertRowAbove","insertRowBelow",(0,Z.X)(this._prepareMenuItemConfig("insertColumnLeft"),{beginGroup:!0}),"insertColumnRight"]},{text:ws("delete"),items:["deleteColumn","deleteRow","deleteTable"]},(0,Z.X)(this._prepareMenuItemConfig("cellProperties"),{onClick:()=>{this.showPropertiesForm("cell")}}),(0,Z.X)(this._prepareMenuItemConfig("tableProperties"),{onClick:()=>{this.showPropertiesForm("table")}})],bt=this._prepareMenuItems(null!=Ht&&Ht.length?Ht:Mt);return{target:this._quillContainer,showEvent:null,hideOnParentScroll:!1,items:bt}}_prepareContextMenuHandler(){return Ht=>{this._isTableTarget(Ht.target)&&(this._targetElement=Ht.target,this._setContextMenuPosition(Ht),this._contextMenu.show(),Ht.preventDefault())}}_setContextMenuPosition(Ht){const Mt=this._quillContainer.get(0).getBoundingClientRect();this._contextMenu.option({position:{my:"left top",at:"left top",collision:"fit fit",offset:{x:Ht.clientX-Mt.left,y:Ht.clientY-Mt.top}}})}_isTableTarget(Ht){return!!(0,B.A)(Ht).closest(".dx-htmleditor-content td, .dx-htmleditor-content th").length}clean(){this._detachEvents()}option(Ht,Mt){if("tableContextMenu"!==Ht){if("enabled"===Ht)this.enabled=Mt,Mt?this._enableContextMenu():this.clean();else if("items"===Ht){var bt;null===(bt=this._contextMenu)||void 0===bt||bt.dispose(),this._contextMenu=this._createContextMenu(Mt)}}else this.handleOptionChangeValue(Mt)}prepareCleanCallback(){return()=>{this.clean()}}});const Ys=Bo;var Us=p(1773),Qs=p(3312);const gn="dx-htmleditor-column-resizer",Xt="dx-htmleditor-row-resizer",hn={minColumnWidth:40,minRowHeight:24},io="dxHtmlTableResizingModule",bo=(0,L.b4)("dxpointerdown",io),Mo=(0,L.b4)("scroll",io);class rs extends Ye{constructor(Mt,bt){super(Mt,bt),this.enabled=!!bt.enabled,this._tableResizeFrames=[],this._minColumnWidth=this._minSizeLimit("minColumnWidth",bt.minColumnWidth),this._minRowHeight=this._minSizeLimit("minRowHeight",bt.minRowHeight),this._quillContainer=this.editorInstance._getQuillContainer(),this._tableData=[],this.enabled&&this._applyResizing()}_applyResizing(Mt){Mt?this._applyResizingImpl():this.editorInstance.addContentInitializedCallback(this._applyResizingImpl.bind(this)),this.addCleanCallback(this.clean.bind(this)),this._resizeHandlerWithContext=Us.A.add(this._resizeHandler.bind(this))}_minSizeLimit(Mt,bt){return(0,A.O9)(bt)?Math.max(bt,0):hn[Mt]}_applyResizingImpl(){const Mt=this._findTables();Mt.length&&(this._fixTablesWidths(Mt),this._createResizeFrames(Mt),this._updateFramesPositions(),this._updateFramesSeparators()),this._attachEvents()}_attachEvents(){M.A.on(this.editorInstance._getContent(),Mo,this._updateFramesPositions.bind(this)),this.quill.on("text-change",this._getQuillTextChangeHandler())}_detachEvents(){M.A.off(this.editorInstance._getContent(),io),this.quill.off("text-change",this._quillTextChangeHandler)}_getQuillTextChangeHandler(Mt,bt,an){return(Un,di,qn)=>{if(this._isTableChanging()){const Ti=this._findTables();this._removeResizeFrames(),"api"===qn&&this._fixTablesWidths(Ti),this._updateTablesColumnsWidth(Ti),this._createResizeFrames(Ti),this._updateFramesPositions(),this._updateFramesSeparators()}else this._updateFramesPositions(),this._isDragging||this._updateFramesSeparators()}}_getFrameForTable(Mt){var bt;return null===(bt=this._framesForTables)||void 0===bt?void 0:bt.get(Mt.get(0))}_resizeHandler(){this._windowResizeTimeout=setTimeout(()=>{const Mt=this._findTables();(0,ye.__)(Mt,(bt,an)=>{const Un=(0,B.A)(an),di=this._tableResizeFrames[bt],qn=(0,Oe.Ot)(Un),Ti=this._tableLastWidth(di);Math.abs(qn-Ti)>1&&(this._tableLastWidth(di,qn),this._updateColumnsWidth(Un,bt))}),this._updateFramesPositions(),this._updateFramesSeparators()})}_findTables(){return(0,B.A)(this._quillContainer).find("table")}_getWidthStyleValue(Mt){const bt=Mt[0].style.width;return""!==bt?parseInt(bt):void 0}_tableLastWidth(Mt,bt){if(!(0,A.O9)(bt))return Mt?.lastWidth;Mt.lastWidth=bt}_fixTablesWidths(Mt){(0,ye.__)(Mt,(bt,an)=>{const Un=(0,B.A)(an),di=this._getTableDeterminantElements(Un,"horizontal");this._tableResizeFrames[bt]||(this._tableResizeFrames[bt]={lastWidth:void 0});const qn=this._getFrameForTable(Un);if(qn||this._tableResizeFrames.push({$table:Un}),0===$i(Un).length){const{columnsSum:Ti}=this._getColumnElementsSum(di);jn(Un,{quill:this.quill});const Qi=this._tableLastWidth(qn)??(0,Oe.Ot)(Un);qn&&this._tableLastWidth(qn,Math.max(Ti,Qi))}})}_createResizeFrames(Mt){this._framesForTables=new Map,Mt.each((bt,an)=>{var Un;const di=(0,B.A)(an),qn=null===(Un=this._tableResizeFrames[bt])||void 0===Un?void 0:Un.$table,Ti=this._tableResizeFrames[bt].lastWidth;this._tableResizeFrames[bt]={$frame:this._createTableResizeFrame(an),$table:di,index:bt,lastWidth:qn&&an===qn.get(0)?Ti:void 0,columnsCount:this._getTableDeterminantElements(di,"horizontal").length,rowsCount:this._getTableDeterminantElements(di,"vertical").length},this._framesForTables.set(an,this._tableResizeFrames[bt])}),this._tableResizeFrames.length=Mt.length}_isTableChanging(){const Mt=this._findTables();let bt=!1;return Mt.length!==this._tableResizeFrames.length?bt=!0:(0,ye.__)(Mt,(an,Un)=>{const di=(0,B.A)(Un),qn=this._tableResizeFrames[an],Ti=qn?.columnsCount!==this._getTableDeterminantElements(di,"horizontal").length,Qi=qn?.rowsCount!==this._getTableDeterminantElements(di,"vertical").length;if(Ti||Qi)return bt=!0,!1}),bt}_removeResizeFrames(Mt){var bt;(0,ye.__)(this._tableResizeFrames,(an,Un)=>{var di;Un.$frame&&(this._detachSeparatorEvents(null===(di=Un.$frame)||void 0===di?void 0:di.find(`.${gn}, .${Xt}`)),Un.$frame.remove())}),null===(bt=this._framesForTables)||void 0===bt||bt.clear(),Mt&&(this._tableResizeFrames=[])}_detachSeparatorEvents(Mt){Mt.each((bt,an)=>{M.A.off(an,bo)})}_createTableResizeFrame(Mt){return(0,B.A)("<div>").addClass("dx-table-resize-frame").appendTo(this._quillContainer)}_updateFramesPositions(){(0,ye.__)(this._tableResizeFrames,(Mt,bt)=>{this._updateFramePosition(bt.$table,bt.$frame)})}_updateFramePosition(Mt,bt){const{height:an,width:Un,top:di,left:qn}=(0,Yi.N)(Mt.get(0)),{top:Ti,left:Qi}=(0,Yi.N)(this.quill.root);bt.css({height:an,width:Un,top:di-Ti,left:qn-Qi}),(0,Ni.Cy)(bt,{left:0,top:0})}_updateFramesSeparators(Mt){(0,ye.__)(this._tableResizeFrames,(bt,an)=>{Mt?this._updateFrameSeparators(an,Mt):(this._updateFrameSeparators(an,"vertical"),this._updateFrameSeparators(an,"horizontal"))})}_isDraggable(Mt){return Mt.hasClass("dx-draggable")&&Mt.is(":visible")}_removeDraggable(Mt,bt){this._isDraggable(Mt)&&((0,B.A)(Mt).dxDraggable("instance").dispose(),(0,B.A)(Mt).addClass(bt))}_getDirectionInfo(Mt){return"vertical"===Mt?{lineResizerClass:Xt,sizeFunction:bt=>(0,Oe.P$)(bt),positionCoordinate:"top",positionStyleProperty:"height",positionCoordinateName:"y"}:{lineResizerClass:gn,sizeFunction:bt=>(0,Oe.Ot)(bt),positionCoordinate:this.editorInstance.option("rtlEnabled")?"right":"left",positionStyleProperty:"width",positionCoordinateName:"x"}}_getSize(Mt,bt){return bt.sizeFunction(Mt)}_updateFrameSeparators(Mt,bt){const an=this._getTableDeterminantElements(Mt.$table,bt),di=an.length-1,qn=this._getDirectionInfo(bt),Ti=Mt.$frame.find(`.${qn.lineResizerClass}`),Qi={transform:"none"};let go=0;for(let eo=0;eo<=di;eo++){go+=this._getSize(an.eq(eo),qn),(0,A.O9)(Ti[eo])||(Ti[eo]=(0,B.A)("<div>").addClass(qn.lineResizerClass).appendTo(Mt.$frame).get(0));const os=(0,B.A)(Ti[eo]);this._removeDraggable(os,qn.lineResizerClass),Qi[qn.positionCoordinate]=go-2,(0,B.A)(os).css(Qi),this._attachColumnSeparatorEvents({lineSeparator:Ti[eo],index:eo,$determinantElements:an,frame:Mt,direction:bt})}}_getTableDeterminantElements(Mt,bt){return"vertical"===bt?Mt.find("th:first-child, td:first-child"):ai(Mt)}_attachColumnSeparatorEvents(Mt){M.A.on(Mt.lineSeparator,bo,()=>{this._createDraggableElement(Mt)})}_dragStartHandler(Mt){let{$determinantElements:bt,index:an,frame:Un,direction:di,lineSeparator:qn}=Mt;const Ti=this._getDirectionInfo(di);this._isDragging=!0,this._fixColumnsWidth(Un.$table),this._startLineSize=parseInt(this._getSize((0,B.A)(bt[an]),Ti)),this._startTableWidth=(0,Oe.Ot)(Un.$table),this._startLineSeparatorPosition=parseInt((0,B.A)(qn).css(Ti.positionCoordinate)),this._nextLineSize=0,bt[an+1]?this._nextLineSize=parseInt(this._getSize((0,B.A)(bt[an+1]),Ti)):"horizontal"===di&&jn(Un.$table,{quill:this.quill})}_shouldRevertOffset(Mt){return"horizontal"===Mt&&this.editorInstance.option("rtlEnabled")}_isNextColumnWidthEnough(Mt,bt,an){if(!this._nextLineSize)return!0;if(Mt>=this._minColumnWidth){const Un=this._nextColumnOffsetLimit?an<this._nextColumnOffsetLimit:an<0,di=Math.abs(this._getWidthStyleValue(bt)-(0,Oe.Ot)(bt))>3;return Un||!di}return!1}_shouldSetNextColumnWidth(Mt){return this._nextLineSize&&Mt>0}_horizontalDragHandler(Mt){let{currentLineNewSize:bt,directionInfo:an,eventOffset:Un,$determinantElements:di,index:qn,frame:Ti}=Mt,Qi=this._nextLineSize&&this._nextLineSize-Un;const go=bt>=this._minColumnWidth,eo=_o(Ti.$table,qn),os=_o(Ti.$table,qn+1),as=(0,Oe.Ot)(eo.eq(0))-bt;if(go)if(this._isNextColumnWidthEnough(Qi,di.eq(qn+1),Un)){zi(this,{elements:eo,property:an.positionStyleProperty,value:bt}),this._shouldSetNextColumnWidth(Qi)&&zi(this,{elements:os,property:an.positionStyleProperty,value:Qi});const Os=Math.abs(this._startTableWidth-(0,Oe.Ot)(Ti.$table))<3;(Math.abs(as)>3||!this._nextLineSize&&Os)&&(zi(this,{elements:eo,property:an.positionStyleProperty,value:(0,Oe.Ot)(eo.eq(0))}),Qi+=bt-(0,Oe.Ot)(eo.eq(0)),this._shouldSetNextColumnWidth(Qi)&&zi(this,{elements:os,property:an.positionStyleProperty,value:Qi}))}else this._nextColumnOffsetLimit=this._nextColumnOffsetLimit||Un;this._$highlightedElement.css(an.positionCoordinate,`${this._startLineSeparatorPosition+Un+as}px`)}_verticalDragHandler(Mt){let{currentLineNewSize:bt,directionInfo:an,eventOffset:Un,$determinantElements:di,index:qn,frame:Ti}=Mt;const Qi=Math.max(bt,this._minRowHeight);zi(this,{elements:_o(Ti.$table,qn,"vertical"),property:an.positionStyleProperty,value:Qi});const eo=(0,Oe.P$)(di.eq(qn))-bt;this._$highlightedElement.css(an.positionCoordinate,`${this._startLineSeparatorPosition+Un+eo}px`)}_dragMoveHandler(Mt,bt){let{$determinantElements:an,index:Un,frame:di,direction:qn}=bt;const Ti=this._getDirectionInfo(qn);let Qi=Mt.offset[Ti.positionCoordinateName];this.editorInstance._saveValueChangeEvent(Mt),this._shouldRevertOffset(qn)&&(Qi=-Qi);const go=this._startLineSize+Qi;"horizontal"===qn?this._horizontalDragHandler({currentLineNewSize:go,directionInfo:Ti,eventOffset:Qi,$determinantElements:an,index:Un,frame:di}):this._verticalDragHandler({currentLineNewSize:go,directionInfo:Ti,eventOffset:Qi,$determinantElements:an,index:Un,frame:di}),this._updateFramePosition(di.$table,di.$frame)}_dragEndHandler(Mt){var bt;null===(bt=this._$highlightedElement)||void 0===bt||bt.remove(),this._isDragging=void 0,this._nextColumnOffsetLimit=void 0,this._tableLastWidth(Mt.frame,(0,Oe.Ot)(Mt.frame.$table)),this._updateFramesPositions(),this._updateFramesSeparators()}_isLastColumnResizing(Mt){let{$determinantElements:bt,index:an}=Mt;return!(0,A.O9)(bt[an+1])}_getBoundaryConfig(Mt){const bt={};if("vertical"===Mt.direction)bt.boundary=Mt.frame.$table,bt.boundOffset={bottom:(0,Me.Vd)()?-(0,Oe.Oq)((0,Me.zk)()):-(0,Oe.P$)(this._quillContainer),top:0,left:0,right:0};else if(this._isLastColumnResizing(Mt)){const an=this.editorInstance._getContent();bt.boundary=an,bt.boundOffset={bottom:0,top:0,left:an.css("paddingLeft"),right:an.css("paddingRight")}}else bt.boundary=Mt.frame.$table;return bt}_createDraggableElement(Mt){var bt;const an=this._getBoundaryConfig(Mt),Un="vertical"===Mt.direction?"dx-htmleditor-highlighted-row":"dx-htmleditor-highlighted-column";null===(bt=this._$highlightedElement)||void 0===bt||bt.remove(),this._$highlightedElement=(0,B.A)("<div>").addClass(`${Un}`).insertAfter((0,B.A)(Mt.lineSeparator));const di={contentTemplate:null,allowMoveByClick:!1,dragDirection:Mt.direction,onDragMove:qn=>{let{event:Qi}=qn;this._dragMoveHandler(Qi,Mt)},onDragStart:()=>{this._dragStartHandler(Mt)},onDragEnd:()=>{this._dragEndHandler(Mt)}};(0,Z.X)(di,an),this._currentDraggableElement=this.editorInstance._createComponent(Mt.lineSeparator,Qs.A,di)}_fixColumnsWidth(Mt){const bt=this._getTableDeterminantElements(Mt);(0,ye.__)(bt,(an,Un)=>{const di=(0,Oe.Ot)(Un);zi(this,{elements:_o(Mt,an),property:"width",value:Math.max(di,this._minColumnWidth)})})}_getColumnElementsSum(Mt){const bt=[];let an=0;return(0,ye.__)(Mt,(Un,di)=>{const qn=(0,B.A)(di),Ti=this._getWidthStyleValue(qn)||(0,Oe.Ot)(qn);bt[Un]=Math.max(Ti,this._minColumnWidth),an+=bt[Un]}),{columnsWidths:bt,columnsSum:an}}_setColumnsRatioWidth(Mt,bt,an,Un){(0,ye.__)(Mt,di=>{const qn=_o(Un,di);let Ti;Ti=bt>0?this._minColumnWidth+Math.round((an[di]-this._minColumnWidth)*bt):this._minColumnWidth,zi(this,{elements:qn,property:"width",value:Ti})})}_updateColumnsWidth(Mt,bt){const an=this._getTableDeterminantElements(Mt);let Un=this._tableResizeFrames[bt];Un||(this._tableResizeFrames[bt]={}),Un=this._tableResizeFrames[bt];const di=this._tableLastWidth(Un)||(0,Oe.Ot)(Mt);let qn;const{columnsWidths:Ti,columnsSum:Qi}=this._getColumnElementsSum(an),go=an.length*this._minColumnWidth;qn=Qi>go?(di-go)/(Qi-go):-1,this._tableLastWidth(Un,qn>0?di:go),this._setColumnsRatioWidth(an,qn,Ti,Mt)}_updateTablesColumnsWidth(Mt){(0,ye.__)(Mt,(bt,an)=>{this._updateColumnsWidth((0,B.A)(an),bt)})}option(Mt,bt){"tableResizing"!==Mt?"enabled"===Mt?(this.enabled=bt,bt?this._applyResizing(!0):this.clean()):["minColumnWidth","minRowHeight"].includes(Mt)&&(this[`_${Mt}`]=this._minSizeLimit(Mt,bt)):this.handleOptionChangeValue(bt)}clean(){this._removeResizeFrames(!0),this._detachEvents(),Us.A.remove(this._resizeHandlerWithContext),clearTimeout(this._windowResizeTimeout),this._resizeHandlerWithContext=void 0,this._isDragging=void 0,this._startTableWidth=void 0,clearTimeout(this._attachResizerTimeout)}}p(6520),p(9430),p(9810);var ir=p(3651);class Cr{constructor(){this._collection=[]}clear(){this._collection=[]}add(Mt,bt){this._collection.push({name:Mt,instance:bt})}remove(Mt){this._collection=this._collection.filter(bt=>bt.name!==Mt)}getByName(Mt){let bt=null;return(0,ye.__)(this._collection,(an,Un)=>{let{name:di,instance:qn}=Un;if(di===Mt)return bt=qn,!1}),bt}each(Mt){this._collection.forEach(bt=>{let{name:an,instance:Un}=bt;return Un&&Mt(an,Un)})}}let Js=Ye;if(ee()){const Ht="dx-htmleditor-toolbar-wrapper",Mt="dx-htmleditor-toolbar",bt="dx-htmleditor-toolbar-format",an="dx-htmleditor-toolbar-separator",Un="dx-htmleditor-toolbar-menu-separator",di="dx-format-active",qn="dx-state-selected",Ti="dx-icon",Qi="selection-change",go="user",eo="silent",os={66:"bold",73:"italic",85:"underline"},as={b:66,i:73,u:85},Os=ht=>fe.A.format(`dxHtmlEditor-${(0,Zi.PT)(ht)}`),Ks=(ht,_t)=>"header"===_t?(0,A.O9)(ht)&&!1!==ht?`${Os("heading")} ${ht}`:Os("normalText"):Os(ht)||ht;Js=class extends Ye{constructor(ht,_t){var _n;if(super(ht,_t),_n=this,this._toolbarWidgets=new Cr,this._formatHandlers=ks(this),this._tableFormats=St(ht),(0,A.O9)(_t.items)){this._addCallbacks(),this._renderToolbar();const In=this.toolbarInstance._layoutStrategy._menu;if(In){const{_renderPopup:Oi}=In;In._renderPopup=function(){for(var po=arguments.length,Zs=new Array(po),xa=0;xa<po;xa++)Zs[xa]=arguments[xa];Oi.apply(In,...Zs),In._popup.on("showing",()=>{_n._updateToolbar(!0)})}}this.quill.on("editor-change",(Oi,po,Zs,xa)=>{xa===eo&&(0,A.RI)(this.quill.getFormat())||this._updateToolbar(Oi===Qi)})}}_addCallbacks(){this.addCleanCallback(this.clean.bind(this)),this.editorInstance.addContentInitializedCallback(this.updateHistoryWidgets.bind(this))}_updateToolbar(ht){this.updateFormatWidgets(ht),this.updateHistoryWidgets(),this.updateTableWidgets()}_updateFormatWidget(ht,_t,_n){const In=this._toolbarWidgets.getByName(ht);In&&(_t?this._markActiveFormatWidget(ht,In,_n):(this._resetFormatWidget(ht,In),Object.prototype.hasOwnProperty.call(ht)&&delete _n[ht]),this._toggleClearFormatting(_t||!(0,A.RI)(_n)))}_renderToolbar(){const ht=this.options.container||this._getContainer();this._$toolbar=(0,B.A)("<div>").addClass(Mt).appendTo(ht),this._$toolbarContainer=(0,B.A)(ht).addClass(Ht),M.A.on(this._$toolbarContainer,(0,L.b4)("mousedown",this.editorInstance.NAME),_t=>{_t.target.focus(),_t.preventDefault()}),this._subscribeFormatHotKeys(),this.toolbarInstance=this.editorInstance._createComponent(this._$toolbar,ir.A,this.toolbarConfig),this.editorInstance.on("optionChanged",_t=>{let{name:_n}=_t;("readOnly"===_n||"disabled"===_n)&&this.toolbarInstance.option("disabled",this.isInteractionDisabled)})}get toolbarConfig(){return{dataSource:this._prepareToolbarItems(),disabled:this.isInteractionDisabled,menuContainer:this._$toolbarContainer,multiline:this.isMultilineMode()}}get isInteractionDisabled(){return this.editorInstance.option("readOnly")||this.editorInstance.option("disabled")}isMultilineMode(){return this.options.multiline??!0}clean(){this._toolbarWidgets.clear(),this._$toolbarContainer&&this._$toolbarContainer.empty().removeClass(Ht)}repaint(){this.toolbarInstance&&this.toolbarInstance.repaint()}_getContainer(){const ht=(0,B.A)("<div>");return this.editorInstance.$element().prepend(ht),ht}_detectRenamedOptions(ht){(0,A.Gv)(ht)&&(0,ye.__)([{newName:"name",oldName:"formatName"},{newName:"acceptedValues",oldName:"formatValues"}],(_n,In)=>{Object.prototype.hasOwnProperty.call(ht,In.oldName)&&Q.A.log("W1016",In.oldName,In.newName)})}_subscribeFormatHotKeys(){this.quill.keyboard.addBinding({which:as.b,shortKey:!0},this._handleFormatHotKey.bind(this)),this.quill.keyboard.addBinding({which:as.i,shortKey:!0},this._handleFormatHotKey.bind(this)),this.quill.keyboard.addBinding({which:as.u,shortKey:!0},this._handleFormatHotKey.bind(this))}_handleFormatHotKey(ht,_t,_n){let{which:In}=_n;this._updateButtonState(os[In])}_updateButtonState(ht){const _t=this._toolbarWidgets.getByName(ht),_n=this.quill.getFormat();_n[ht]?this._markActiveFormatWidget(ht,_t,_n):this._resetFormatWidget(ht,_t)}_prepareToolbarItems(){const ht=[];return(0,ye.__)(this.options.items,(_t,_n)=>{let In;if(this._detectRenamedOptions(_n),(0,A.Gv)(_n))In=this._handleObjectItem(_n);else if((0,A.Kg)(_n)){const Oi=this._prepareButtonItemConfig(_n);In=this._getToolbarItem(Oi)}In&&ht.push(In)}),ht}_handleObjectItem(ht){if(ht.name&&ht.acceptedValues&&this._isAcceptableItem(ht.widget,"dxSelectBox")){const _t=this._prepareSelectItemConfig(ht);return this._getToolbarItem(_t)}if(ht.name&&this._isAcceptableItem(ht.widget,"dxButton")){const _t=this._prepareButtonItemConfig(ht.name),_n=(0,Z.X)(!0,_t,ht);return this._getToolbarItem(_n)}return this._getToolbarItem(ht)}_isAcceptableItem(ht,_t){return!ht||ht===_t}_prepareButtonItemConfig(ht){const _t=Rs[ht]??ht,_n=(0,Zi.Ns)(ht);return{widget:"dxButton",name:ht,options:{hint:Os(_n),text:Os(_n),icon:_t.toLowerCase(),onClick:this._formatHandlers[ht]||mn(this,ht),stylingMode:"text"},showText:"inMenu"}}_prepareSelectItemConfig(ht){const{name:_t,acceptedValues:_n}=ht;return(0,Z.X)(!0,{widget:"dxSelectBox",name:_t,options:{stylingMode:"filled",dataSource:_n,displayExpr:In=>Ks(In,_t),placeholder:Os(_t),onValueChanged:In=>{this._isReset||(this._hideAdaptiveMenu(),Ss(this,[_t,In.value,go],In.event),this._setValueSilent(In.component,In.value))}}},ht)}_hideAdaptiveMenu(){this.toolbarInstance.option("overflowMenuVisible")&&this.toolbarInstance.option("overflowMenuVisible",!1)}_getToolbarItem(ht){const _t={options:{onInitialized:_n=>{ht.name&&(_n.component.$element().addClass(bt),_n.component.$element().toggleClass(`dx-${ht.name.toLowerCase()}-format`,!!ht.name),this._toolbarWidgets.add(ht.name,_n.component))},onDisposing:()=>{this._toolbarWidgets.remove(ht.name)}}};return(0,Z.X)(!0,{location:"before",locateInMenu:"auto"},this._getDefaultConfig(ht.name),ht,_t)}_getDefaultItemsConfig(){return{clear:{options:{disabled:!0}},undo:{options:{disabled:!0}},redo:{options:{disabled:!0}},insertRowAbove:{options:{disabled:!0}},insertRowBelow:{options:{disabled:!0}},insertHeaderRow:{options:{disabled:!0}},insertColumnLeft:{options:{disabled:!0}},insertColumnRight:{options:{disabled:!0}},deleteRow:{options:{disabled:!0}},deleteColumn:{options:{disabled:!0}},deleteTable:{options:{disabled:!0}},cellProperties:{options:{disabled:!0}},tableProperties:{options:{disabled:!0}},separator:{template:(ht,_t,_n)=>{(0,B.A)(_n).addClass(an)},menuItemTemplate:(ht,_t,_n)=>{(0,B.A)(_n).addClass(Un)}}}}_getDefaultConfig(ht){return this._getDefaultItemsConfig()[ht]}updateHistoryWidgets(){const ht=this.quill.history;if(!ht)return;const{undo:_t,redo:_n}=ht.stack;this._updateManipulationWidget(this._toolbarWidgets.getByName("undo"),!!_t.length),this._updateManipulationWidget(this._toolbarWidgets.getByName("redo"),!!_n.length)}updateTableWidgets(){if(!this.quill.getModule("table"))return;const _t=this.quill.getSelection(),_n=_t&&this.quill.getFormat(_t)||{},In=this._tableFormats.some(Oi=>!!_n[Oi]);ho.forEach(Oi=>{const po="insertTable"===Oi,Zs=this._toolbarWidgets.getByName(Oi);this._updateManipulationWidget(Zs,po?!In:In)})}_updateManipulationWidget(ht,_t){ht&&ht.option("disabled",!_t)}updateFormatWidgets(ht){const _t=this.quill.getSelection();if(!_t)return;const _n=this.quill.getFormat(_t),In=!(0,A.RI)(_n);(!In||ht)&&this._resetFormatWidgets();for(const Oi in _n){const po=this._getFormatWidgetName(Oi,_n),Zs=this._toolbarWidgets.getByName(po)??this._toolbarWidgets.getByName(Oi);Zs&&this._markActiveFormatWidget(Oi,Zs,_n)}this._toggleClearFormatting(In||_t.length>1)}_markActiveFormatWidget(ht,_t,_n){this._isColorFormat(ht)&&this._updateColorWidget(ht,_n[ht]),"value"in _t.option()?this._setValueSilent(_t,_n[ht]):(_t.$element().addClass(di),_t.$element().addClass(qn))}_toggleClearFormatting(ht){const _t=this._toolbarWidgets.getByName("clear");_t&&_t.option("disabled",!ht)}_isColorFormat(ht){return"color"===ht||"background"===ht}_updateColorWidget(ht,_t){const _n=this._toolbarWidgets.getByName(ht);_n&&_n.$element().find(`.${Ti}`).css("borderBottomColor",_t||"transparent")}_getFormatWidgetName(ht,_t){let _n;switch(ht){case"align":_n=ht+(0,Zi.Ns)(_t[ht]);break;case"list":_n=_t[ht]+(0,Zi.Ns)(ht);break;case"code-block":_n="codeBlock";break;case"script":_n=_t[ht]+ht;break;case"imageSrc":_n="image";break;default:_n=ht}return _n}_setValueSilent(ht,_t){this._isReset=!0,ht.option("value",_t),this._isReset=!1}_resetFormatWidgets(){this._toolbarWidgets.each((ht,_t)=>{this._resetFormatWidget(ht,_t)})}_resetFormatWidget(ht,_t){_t.$element().removeClass(di),_t.$element().removeClass(qn),this._isColorFormat(ht)&&this._updateColorWidget(ht),"clear"===ht&&_t.option("disabled",!0),"dxSelectBox"===_t.NAME&&this._setValueSilent(_t,null)}addClickHandler(ht,_t){this._formatHandlers[ht]=_t;const _n=this._toolbarWidgets.getByName(ht);_n&&"dxButton"===_n.NAME&&_n.option("onClick",_t)}}}const Or=Js;let rr={};if(ee()){const Ht=ee().import("blots/embed"),Mt="dx-variable";rr=class extends Ht{static create(bt){const an=super.create();let Un,di;const qn=bt.value;return Array.isArray(bt.escapeChar)?(Un=(0,X.YD)(bt.escapeChar[0],""),di=(0,X.YD)(bt.escapeChar[1],"")):Un=di=bt.escapeChar,an.innerText=Un+qn+di,an.dataset.varStartEscChar=Un,an.dataset.varEndEscChar=di,an.dataset.varValue=bt.value,an}static value(bt){return(0,Z.X)({},{value:bt.dataset.varValue,escapeChar:[bt.dataset.varStartEscChar||"",bt.dataset.varEndEscChar||""]})}},rr.blotName="variable",rr.tagName="span",rr.className=Mt}const Tr=rr;let ur=Ye;if(ee()){const Ht="dx-variable-format",Mt="dx-format-active",bt="dx-state-selected";ee().register({"formats/variable":Tr},!0),ur=class extends Fn{constructor(an,Un){super(an,Un);const di=an.getModule("toolbar");di&&di.addClickHandler("variable",this.showPopup.bind(this)),an.keyboard.addBinding({key:"P",altKey:!0},this.showPopup.bind(this)),this._popup.on("shown",qn=>{const Ti=(0,B.A)(qn.component.option("position").of);Ti.hasClass(Ht)&&(Ti.addClass(Mt),Ti.addClass(bt))})}_getDefaultOptions(){const an=super._getDefaultOptions();return(0,Z.X)(an,{escapeChar:""})}showPopup(an){const Un=this.quill.getSelection(!0),di=Un?Un.index:this.quill.getLength();this.savePosition(di),this._resetPopupPosition(an,di),super.showPopup()}_resetPopupPosition(an,Un){if(an&&an.element)this._popup.option("position",{of:an.element,offset:{h:0,v:0},my:"top center",at:"bottom center",collision:"fit"});else{const di=this.quill.getBounds(Un),qn=(0,Yi.N)(this.quill.root);this._popup.option("position",{of:this.quill.root,offset:{h:di.left,v:di.bottom-qn.height},my:"top center",at:"bottom left",collision:"fit flip"})}}insertEmbedContent(an){const Un=this.getPosition(),di=an.component.option("selectedItem"),qn=(0,Z.X)({},{value:di,escapeChar:this.options.escapeChar});setTimeout(()=>{this.quill.insertEmbed(Un,"variable",qn),this.quill.setSelection(Un+1)})}}}const Ar=ur;let ea;if(ee()){const Ht=ee().import("core/theme");ea=class extends Ht{constructor(Mt,bt){super(Mt,bt),this.quill.root.classList.add("dx-htmleditor-content"),this.quill.root.setAttribute("role","textbox"),this.quill.root.setAttribute("aria-label","Editor content")}}}else ea={};const Vr=ea;class Hr{constructor(){if(this._customModules=[],Hr.initialized)return;const Mt=this.getQuill(),bt=Mt.import("attributors/style/direction");Mt.register({"formats/align":ce,"formats/direction":bt,"formats/font":Se,"formats/size":he,"formats/extendedImage":Pe,"formats/link":W,"modules/toolbar":Or,"modules/dropImage":Ae,"modules/variables":Ar,"modules/resizing":Bi,"modules/tableResizing":rs,"modules/tableContextMenu":Ys,"modules/imageUpload":To,"modules/imageCursor":Ke,"modules/mentions":si,"themes/basic":Vr},!0),this._customModules=[],Hr._initialized=!0}createEditor(Mt,bt){return new(this.getQuill())(Mt,bt)}registerModules(Mt){const bt=RegExp("modules/*"),an=this.getQuill(),Un=di=>!!an.imports[di];for(const di in Mt)bt.test(di)&&!Un(di)&&this._customModules.push(di.slice(8));an.register(Mt,!0)}getRegisteredModuleNames(){return this._customModules}getQuill(){return re()}}const jr=Hr;function Ir(Ht){return Ht[1].match(/\S+\./)?"ordered":"bullet"}const Bt="dx-formdialog",co=class Hi{constructor(Mt,bt){this._editorInstance=Mt,this._popupUserConfig=bt,this._renderPopup(),this._attachOptionChangedHandler()}_renderPopup(){const Mt=this._editorInstance,bt=(0,B.A)("<div>").addClass(Bt).appendTo(Mt.$element()),an=this._getPopupConfig();return Mt._createComponent(bt,qo.A,an)}_attachOptionChangedHandler(){var Mt;null===(Mt=this._popup)||void 0===Mt||Mt.on("optionChanged",bt=>{let{name:an,value:Un}=bt;"title"===an&&this._updateFormLabel(Un)})}_escKeyHandler(){this._popup.hide()}_addEscapeHandler(Mt){Mt.component.registerKeyHandler("escape",this._escKeyHandler.bind(this))}_isSmallScreen(){const Mt=(0,Me.Vd)()?(0,Me.ne)():null;return"phone"===x.A.real().deviceType||"xs"===Mt}_getPopupConfig(){return(0,Z.X)({onInitialized:Mt=>{this._popup=Mt.component,this._popup.on("hiding",()=>this.onHiding()),this._popup.on("shown",()=>{this._form.focus()})},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,fullScreen:this._isSmallScreen(),contentTemplate:Mt=>{const bt=(0,B.A)("<div>").appendTo(Mt);this._renderForm(bt,{onEditorEnterKey:an=>this.callAddButtonAction(an.event),customizeItem:an=>{"simple"===an.itemType&&(an.editorOptions=(0,Z.X)(!0,{},an.editorOptions,{onInitialized:this._addEscapeHandler.bind(this)}))}})},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:(0,m.A)({onInitialized:this._addEscapeHandler.bind(this),text:fe.A.format("OK"),onClick:Mt=>this.callAddButtonAction(Mt.event)},(0,Ve.Ft)()?{stylingMode:"contained",type:"default"}:{})},{toolbar:"bottom",location:"after",widget:"dxButton",options:(0,m.A)({onInitialized:this._addEscapeHandler.bind(this),text:fe.A.format("Cancel"),onClick:()=>{this._popup.hide()}},(0,Ve.Ft)()?{stylingMode:"outlined",type:"normal"}:{})}],_wrapperClassExternal:`${Bt} dx-dropdowneditor-overlay`},this._popupUserConfig)}onHiding(){this.beforeAddButtonAction=void 0,this.deferred.reject()}callAddButtonAction(Mt){this.beforeAddButtonAction&&!this.beforeAddButtonAction()||this.hide(this._form.option("formData"),Mt)}_renderForm(Mt,bt){Mt.addClass("dx-formdialog-form"),this._form=this._editorInstance._createComponent(Mt,Bn.A,bt),this._updateFormLabel()}_updateFormLabel(Mt){var bt;const an=Mt??this.popupOption("title");null===(bt=this._form)||void 0===bt||bt.$element().attr("aria-label",an)}_getDefaultFormOptions(){return{colCount:1,width:"auto",labelLocation:(0,Ve.Nt)()?"top":"left"}}formOption(Mt,bt){return this._form.option.apply(this._form,arguments)}show(Mt){if(this._popup.option("visible"))return;this.deferred=(0,U.cY)();const bt=(0,Z.X)(this._getDefaultFormOptions(),Mt);return this._form.option(bt),this._popup.show(),this.deferred.promise()}hide(Mt,bt){this.deferred.resolve(Mt,bt),this._popup.hide()}popupOption(Mt,bt){return this._popup.option.apply(this._popup,arguments)}},He="htmlContent",wt="ios"===x.A.current().platform;let Ut=0;const cn=G.A.inherit({_getDefaultOptions(){return(0,Z.X)(this.callBase(),{focusStateEnabled:!0,valueType:"html",placeholder:"",toolbar:null,variables:null,mediaResizing:null,tableResizing:null,mentions:null,customizeModules:null,tableContextMenu:null,allowSoftLineBreak:!1,formDialogOptions:null,imageUpload:null,stylingMode:(0,v.A)().editorStylingMode||"outlined"})},_init(){this._mentionKeyInTemplateStorage=Ut++,this.callBase(),this._cleanCallback=(0,F.A)(),this._contentInitializedCallback=(0,F.A)()},_getAnonymousTemplateName:()=>"htmlContent",_initTemplates(){this._templateManager.addDefaultTemplates({[He]:new j.A}),this.callBase()},_focusTarget(){return this._getContent()},_getContent(){return this.$element().find(".dx-htmleditor-content")},_focusInHandler(Ht){let{relatedTarget:Mt}=Ht;this._shouldSkipFocusEvent(Mt)||(this._toggleFocusClass(!0,this.$element()),this.callBase.apply(this,arguments))},_focusOutHandler(Ht){let{relatedTarget:Mt}=Ht;this._shouldSkipFocusEvent(Mt)||(this._toggleFocusClass(!1,this.$element()),this.callBase.apply(this,arguments))},_shouldSkipFocusEvent:Ht=>(0,B.A)(Ht).hasClass("ql-clipboard"),_initMarkup(){this._$htmlContainer=(0,B.A)("<div>").addClass("dx-quill-container"),this.$element().attr("role","application").addClass("dx-htmleditor").wrapInner(this._$htmlContainer),this._renderStylingMode();const Ht=this._getTemplate("htmlContent");this._$templateResult=Ht&&Ht.render({container:(0,b.cc)(this._$htmlContainer),noModel:!0,transclude:!0}),this._renderSubmitElement(),this.callBase(),this._updateContainerMarkup()},_renderValidationState(){1===this._getContent().length&&this.callBase()},_renderSubmitElement(){this._$submitElement=(0,B.A)("<textarea>").addClass("dx-htmleditor-submit-element").attr("hidden",!0).appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue(Ht){this._getSubmitElement().val(Ht)},_getSubmitElement(){return this._$submitElement},_createNoScriptFrame:()=>(0,B.A)("<iframe>").css("display","none").attr({srcdoc:"",id:"xss-frame",sandbox:"allow-same-origin"}),_removeXSSVulnerableHtml(Ht){const Mt=this._createNoScriptFrame().appendTo("body"),di=Mt.get(0).contentWindow.document.body,Ti=re().replaceStyleAttribute(Ht);di.innerHTML=Ti;const Qi=eo=>{if(eo.attributes)for(let os=0;os<eo.attributes.length;os++){const{name:as}=eo.attributes[os];as.startsWith("on")&&eo.removeAttribute(as)}if(eo.childNodes)for(let os=0;os<eo.childNodes.length;os++)Qi(eo.childNodes[os])};Qi(di),di.querySelectorAll("script").forEach(eo=>{eo.remove()});const go=di.innerHTML;return Mt.remove(),go},_updateContainerMarkup(){let Ht=this.option("value");if(this._isMarkdownValue()&&(this._prepareMarkdownConverter(),Ht=this._markdownConverter.toHtml(Ht)),Ht){const Mt=this._removeXSSVulnerableHtml(Ht);this._$htmlContainer.html(Mt)}},_prepareMarkdownConverter(){const Ht=e.getConverter("markdown");if(!Ht)throw Q.A.Error("E1051","markdown");this._markdownConverter=new Ht},_render(){this._prepareConverters(),this.callBase()},_prepareQuillRegistrator(){this._quillRegistrator||(this._quillRegistrator=new jr)},_getRegistrator(){return this._prepareQuillRegistrator(),this._quillRegistrator},_prepareConverters(){if(!this._deltaConverter){const Ht=e.getConverter("delta");Ht&&(this._deltaConverter=new Ht)}"markdown"===this.option("valueType")&&!this._markdownConverter&&this._prepareMarkdownConverter()},_renderContentImpl(){this._contentRenderedDeferred=(0,U.cY)();const Ht=this._contentRenderedDeferred.promise();return this.callBase(),this._renderHtmlEditor(),this._renderFormDialog(),this._addKeyPressHandler(),Ht},_pointerMoveHandler(Ht){wt&&Ht.stopPropagation()},_attachFocusEvents(){(0,X.zE)(this.callBase.bind(this))},_addKeyPressHandler(){const Ht=(0,L.b4)("keydown",`${this.NAME}TextChange`);M.A.on(this._$htmlContainer,Ht,this._keyDownHandler.bind(this))},_keyDownHandler(Ht){this._saveValueChangeEvent(Ht)},_renderHtmlEditor(){const Ht=this.option("customizeModules"),Mt=this._getModulesConfig();(0,A.Tn)(Ht)&&Ht(Mt),this._quillInstance=this._getRegistrator().createEditor(this._$htmlContainer[0],{placeholder:this.option("placeholder"),readOnly:this.option("readOnly")||this.option("disabled"),modules:Mt,theme:"basic"}),this._renderValidationState(),this._deltaConverter.setQuillInstance(this._quillInstance),this._textChangeHandlerWithContext=this._textChangeHandler.bind(this),this._quillInstance.on("text-change",this._textChangeHandlerWithContext),this._renderScrollHandler(),this._hasTranscludedContent()?this._updateContentTask=(0,X.uG)(()=>{this._applyTranscludedContent()}):this._finalizeContentRendering()},_renderScrollHandler(){const Ht=this._getContent(),Mt=(0,z.N)(Ht);M.A.on(Ht,(0,L.b4)(H.A.init,this.NAME),Mt,X.lQ),M.A.on(Ht,(0,L.b4)(R.A.move,this.NAME),this._pointerMoveHandler.bind(this))},_applyTranscludedContent(){const Ht=this.option("value");if(!(0,A.O9)(Ht)){const Mt=this._deltaConverter.toHtml(),bt=this._quillInstance.clipboard.convert({html:Mt});if(bt.ops.length)return void this._quillInstance.setContents(bt)}this._finalizeContentRendering()},_hasTranscludedContent(){return this._$templateResult&&this._$templateResult.length},_getModulesConfig(){const Mt=(Ht=>{const Mt=Ht.import("delta"),bt=Ht.MS_LIST_DATA_KEY;return(an,Un)=>{const di=Un.ops.slice(),qn=di[0];qn.insert=qn.insert.replace(/^\s+/,"");const Ti=qn.insert.match(/^(\S+)\s+/),Qi=Ti&&function va(Ht,Mt){const bt=Ht.getAttribute(Mt);if(bt){const an=bt.replace(/\n+/g,"").match(/level(\d+)/);return an?an[1]-1:0}return!1}(an,bt);return Ti&&!1!==Qi?(qn.insert=qn.insert.substring(Ti[0].length,qn.insert.length),function ca(Ht){const Mt=Ht[Ht.length-1];Mt.insert=Mt.insert.trim()}(di),di.push({insert:"\n",attributes:{list:Ir(Ti),indent:Qi}}),new Mt(di)):Un}})(this._getRegistrator().getQuill());return(0,Z.X)({},{table:!0,toolbar:this._getModuleConfigByOption("toolbar"),variables:this._getModuleConfigByOption("variables"),resizing:this._getModuleConfigByOption("mediaResizing"),tableResizing:this._getModuleConfigByOption("tableResizing"),tableContextMenu:this._getModuleConfigByOption("tableContextMenu"),imageUpload:this._getModuleConfigByOption("imageUpload"),imageCursor:this._getBaseModuleConfig(),mentions:this._getModuleConfigByOption("mentions"),uploader:{onDrop:an=>this._saveValueChangeEvent((0,J.Jh)(an)),imageBlot:"extendedImage"},keyboard:{onKeydown:an=>this._saveValueChangeEvent((0,J.Jh)(an))},clipboard:{onPaste:an=>this._saveValueChangeEvent((0,J.Jh)(an)),onCut:an=>this._saveValueChangeEvent((0,J.Jh)(an)),matchers:[["p.MsoListParagraphCxSpFirst",Mt],["p.MsoListParagraphCxSpMiddle",Mt],["p.MsoListParagraphCxSpLast",Mt]]},multiline:!!this.option("allowSoftLineBreak")},this._getCustomModules())},_getModuleConfigByOption(Ht){const Mt=this.option(Ht);let bt={};if((0,A.O9)(Mt))return Array.isArray(Mt)?bt[Ht]=Mt:bt=Mt,(0,Z.X)(this._getBaseModuleConfig(),bt)},_getBaseModuleConfig(){return{editorInstance:this}},_getCustomModules(){const Ht={};return this._getRegistrator().getRegisteredModuleNames().forEach(bt=>{Ht[bt]=this._getBaseModuleConfig()}),Ht},_textChangeHandler(Ht,Mt,bt){const an=this._deltaConverter.toHtml(),Un=this._isMarkdownValue()?this._updateValueByType("markdown",an):an,di=this.option("value");di!==Un&&!this._isNullValueConverted(di,Un)&&(this._isEditorUpdating=!0,this.option("value",Un)),this._finalizeContentRendering()},_isNullValueConverted:(Ht,Mt)=>null===Ht&&""===Mt,_finalizeContentRendering(){this._contentRenderedDeferred&&(this.clearHistory(),this._contentInitializedCallback.fire(),this._contentRenderedDeferred.resolve(),this._contentRenderedDeferred=void 0)},_updateValueByType(Ht,Mt){const bt=this._markdownConverter;if(!(0,A.O9)(bt))return;const an=(0,X.YD)(Mt,this.option("value"));return"markdown"===Ht?bt.toMarkdown(an):bt.toHtml(an)},_isMarkdownValue(){return"markdown"===this.option("valueType")},_resetEnabledState(){if(this._quillInstance){const Ht=!(this.option("readOnly")||this.option("disabled"));this._quillInstance.enable(Ht)}},_renderFormDialog(){const Ht=(0,Z.X)(!0,{width:"auto",height:"auto",hideOnOutsideClick:!0},this.option("formDialogOptions"));this._formDialog=new co(this,Ht)},_getStylingModePrefix:()=>"dx-htmleditor-",_getQuillContainer(){return this._$htmlContainer},_prepareModuleOptions(Ht){var Mt;const bt=null===(Mt=Ht.fullName)||void 0===Mt?void 0:Mt.split(".");let{value:an}=Ht;const Un=bt.length>=2?bt[1]:Ht.name;return 3===bt.length&&(an={[bt[2]]:an}),[Un,an]},_moduleOptionChanged(Ht,Mt){const bt=this.getModule(Ht);bt?bt.option(...this._prepareModuleOptions(Mt)):this._invalidate()},_optionChanged(Ht){switch(Ht.name){case"value":{if(this._quillInstance)if(this._isEditorUpdating)this._isEditorUpdating=!1;else{const bt=this._isMarkdownValue()?this._updateValueByType("HTML",Ht.value):Ht.value;this._suppressValueChangeAction(),this._updateHtmlContent(bt),this._resumeValueChangeAction()}else this._$htmlContainer.html(Ht.value);const Mt=this.option("value");Mt!==Ht.previousValue&&(this._setSubmitValue(Mt),this.callBase((0,m.A)({},Ht,{value:Mt})));break}case"placeholder":case"variables":case"toolbar":case"mentions":case"customizeModules":case"allowSoftLineBreak":this._invalidate();break;case"tableResizing":this._moduleOptionChanged("tableResizing",Ht);break;case"valueType":{this._prepareConverters();const Mt=this._updateValueByType(Ht.value);"html"===Ht.value&&this._quillInstance?this._updateHtmlContent(Mt):this.option("value",Mt);break}case"stylingMode":this._renderStylingMode();break;case"readOnly":case"disabled":this.callBase(Ht),this._resetEnabledState();break;case"formDialogOptions":this._renderFormDialog();break;case"tableContextMenu":this._moduleOptionChanged("tableContextMenu",Ht);break;case"mediaResizing":this._moduleOptionChanged("resizing",Ht);break;case"width":this.callBase(Ht),this._repaintToolbar();break;case"imageUpload":this._moduleOptionChanged("imageUpload",Ht);break;default:this.callBase(Ht)}},_repaintToolbar(){this._applyToolbarMethod("repaint")},_updateHtmlContent(Ht){const Mt=this._quillInstance.clipboard.convert({html:Ht});this._quillInstance.setContents(Mt)},_clean(){this._quillInstance&&(M.A.off(this._getContent(),`.${this.NAME}`),this._quillInstance.off("text-change",this._textChangeHandlerWithContext),this._cleanCallback.fire()),this._abortUpdateContentTask(),this._cleanCallback.empty(),this._contentInitializedCallback.empty(),this.callBase()},_abortUpdateContentTask(){this._updateContentTask&&(this._updateContentTask.abort(),this._updateContentTask=void 0)},_applyQuillMethod(Ht,Mt){if(this._quillInstance)return this._quillInstance[Ht].apply(this._quillInstance,Mt)},_applyQuillHistoryMethod(Ht){this._quillInstance&&this._quillInstance.history&&this._quillInstance.history[Ht]()},_applyToolbarMethod(Ht){var Mt;null===(Mt=this.getModule("toolbar"))||void 0===Mt||Mt[Ht]()},addCleanCallback(Ht){this._cleanCallback.add(Ht)},addContentInitializedCallback(Ht){this._contentInitializedCallback.add(Ht)},register(Ht){this._getRegistrator().registerModules(Ht),this._quillInstance&&this.repaint()},get(Ht){return this._getRegistrator().getQuill().import(Ht)},getModule(Ht){return this._applyQuillMethod("getModule",arguments)},getQuillInstance(){return this._quillInstance},getSelection(Ht){return this._applyQuillMethod("getSelection",arguments)},setSelection(Ht,Mt){this._applyQuillMethod("setSelection",arguments)},getText(Ht,Mt){return this._applyQuillMethod("getText",arguments)},format(Ht,Mt){this._applyQuillMethod("format",arguments)},formatText(Ht,Mt,bt,an){this._applyQuillMethod("formatText",arguments)},formatLine(Ht,Mt,bt,an){this._applyQuillMethod("formatLine",arguments)},getFormat(Ht,Mt){return this._applyQuillMethod("getFormat",arguments)},removeFormat(Ht,Mt){return this._applyQuillMethod("removeFormat",arguments)},clearHistory(){this._applyQuillHistoryMethod("clear"),this._applyToolbarMethod("updateHistoryWidgets")},undo(){this._applyQuillHistoryMethod("undo")},redo(){this._applyQuillHistoryMethod("redo")},getLength(){return this._applyQuillMethod("getLength")},getBounds(Ht,Mt){return this._applyQuillMethod("getBounds",arguments)},delete(Ht,Mt){this._applyQuillMethod("deleteText",arguments)},insertText(Ht,Mt,bt){this._applyQuillMethod("insertText",arguments)},insertEmbed(Ht,Mt,bt){this._applyQuillMethod("insertEmbed",arguments)},showFormDialog(Ht){return this._formDialog.show(Ht)},formDialogOption(Ht,Mt){return this._formDialog.popupOption.apply(this._formDialog,arguments)},focus(){this.callBase(),this._applyQuillMethod("focus")},blur(){this._applyQuillMethod("blur")},getMentionKeyInTemplateStorage(){return this._mentionKeyInTemplateStorage}});(0,P.A)("dxHtmlEditor",cn);const bi=cn;var vi=p(8832),ki=p(3349),Si=p(8914);const Wi=["*"],Pi={provide:vi.kq,useExisting:(0,d.Rfq)(()=>oo),multi:!0};let oo=(()=>{class Ht extends ki.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(bt){this._setOption("accessKey",bt)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(bt){this._setOption("activeStateEnabled",bt)}get allowSoftLineBreak(){return this._getOption("allowSoftLineBreak")}set allowSoftLineBreak(bt){this._setOption("allowSoftLineBreak",bt)}get customizeModules(){return this._getOption("customizeModules")}set customizeModules(bt){this._setOption("customizeModules",bt)}get disabled(){return this._getOption("disabled")}set disabled(bt){this._setOption("disabled",bt)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(bt){this._setOption("elementAttr",bt)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(bt){this._setOption("focusStateEnabled",bt)}get height(){return this._getOption("height")}set height(bt){this._setOption("height",bt)}get hint(){return this._getOption("hint")}set hint(bt){this._setOption("hint",bt)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(bt){this._setOption("hoverStateEnabled",bt)}get imageUpload(){return this._getOption("imageUpload")}set imageUpload(bt){this._setOption("imageUpload",bt)}get isDirty(){return this._getOption("isDirty")}set isDirty(bt){this._setOption("isDirty",bt)}get isValid(){return this._getOption("isValid")}set isValid(bt){this._setOption("isValid",bt)}get mediaResizing(){return this._getOption("mediaResizing")}set mediaResizing(bt){this._setOption("mediaResizing",bt)}get mentions(){return this._getOption("mentions")}set mentions(bt){this._setOption("mentions",bt)}get name(){return this._getOption("name")}set name(bt){this._setOption("name",bt)}get placeholder(){return this._getOption("placeholder")}set placeholder(bt){this._setOption("placeholder",bt)}get readOnly(){return this._getOption("readOnly")}set readOnly(bt){this._setOption("readOnly",bt)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(bt){this._setOption("rtlEnabled",bt)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(bt){this._setOption("stylingMode",bt)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(bt){this._setOption("tabIndex",bt)}get tableContextMenu(){return this._getOption("tableContextMenu")}set tableContextMenu(bt){this._setOption("tableContextMenu",bt)}get tableResizing(){return this._getOption("tableResizing")}set tableResizing(bt){this._setOption("tableResizing",bt)}get toolbar(){return this._getOption("toolbar")}set toolbar(bt){this._setOption("toolbar",bt)}get validationError(){return this._getOption("validationError")}set validationError(bt){this._setOption("validationError",bt)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(bt){this._setOption("validationErrors",bt)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(bt){this._setOption("validationMessageMode",bt)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(bt){this._setOption("validationMessagePosition",bt)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(bt){this._setOption("validationStatus",bt)}get value(){return this._getOption("value")}set value(bt){this._setOption("value",bt)}get valueType(){return this._getOption("valueType")}set valueType(bt){this._setOption("valueType",bt)}get variables(){return this._getOption("variables")}set variables(bt){this._setOption("variables",bt)}get visible(){return this._getOption("visible")}set visible(bt){this._setOption("visible",bt)}get width(){return this._getOption("width")}set width(bt){this._setOption("width",bt)}onContentReady;onDisposing;onFocusIn;onFocusOut;onInitialized;onOptionChanged;onValueChanged;accessKeyChange;activeStateEnabledChange;allowSoftLineBreakChange;customizeModulesChange;disabledChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;imageUploadChange;isDirtyChange;isValidChange;mediaResizingChange;mentionsChange;nameChange;placeholderChange;readOnlyChange;rtlEnabledChange;stylingModeChange;tabIndexChange;tableContextMenuChange;tableResizingChange;toolbarChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;valueTypeChange;variablesChange;visibleChange;widthChange;onBlur;change(bt){}touched=bt=>{};get mentionsChildren(){return this._getOption("mentions")}set mentionsChildren(bt){this.setChildren("mentions",bt)}constructor(bt,an,Un,di,qn,Ti,Qi,go){super(bt,an,Un,di,Qi,go),this._watcherHelper=di,this._idh=qn,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowSoftLineBreakChange"},{emit:"customizeModulesChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"imageUploadChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"mediaResizingChange"},{emit:"mentionsChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"tableContextMenuChange"},{emit:"tableResizingChange"},{emit:"toolbarChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueTypeChange"},{emit:"variablesChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),Ti.setHost(this)}_createInstance(bt,an){return new bi(bt,an)}writeValue(bt){this.eventHelper.lockedValueChangeEvent=!0,this.value=bt,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(bt){this.disabled=bt}registerOnChange(bt){this.change=bt}registerOnTouched(bt){this.touched=bt}_createWidget(bt){super._createWidget(bt),this.instance.on("focusOut",an=>{this.eventHelper.fireNgEvent("onBlur",[an])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(bt){super.ngOnChanges(bt),this.setupChanges("mentions",bt),this.setupChanges("validationErrors",bt)}setupChanges(bt,an){bt in this._optionsToUpdate||this._idh.setup(bt,an)}ngDoCheck(){this._idh.doCheck("mentions"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(bt,an){let Un=this._idh.setupSingle(bt,an),di=null!==this._idh.getChanges(bt,an);(Un||di)&&super._setOption(bt,an)}static \u0275fac=function(an){return new(an||Ht)(S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(ki.zF),S.rXU(ki.jS),S.rXU(ki.$M),S.rXU(ki.fH),S.rXU(S.pJN),S.rXU(S.Agw))};static \u0275cmp=S.VBU({type:Ht,selectors:[["dx-html-editor"]],contentQueries:function(an,Un,di){if(1&an&&S.wni(di,Si.VY_,4),2&an){let qn;S.mGM(qn=S.lsd())&&(Un.mentionsChildren=qn)}},hostBindings:function(an,Un){1&an&&S.bIt("valueChange",function(qn){return Un.change(qn)})("onBlur",function(qn){return Un.touched(qn)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowSoftLineBreak:"allowSoftLineBreak",customizeModules:"customizeModules",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",imageUpload:"imageUpload",isDirty:"isDirty",isValid:"isValid",mediaResizing:"mediaResizing",mentions:"mentions",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",stylingMode:"stylingMode",tabIndex:"tabIndex",tableContextMenu:"tableContextMenu",tableResizing:"tableResizing",toolbar:"toolbar",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueType:"valueType",variables:"variables",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowSoftLineBreakChange:"allowSoftLineBreakChange",customizeModulesChange:"customizeModulesChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",imageUploadChange:"imageUploadChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",mediaResizingChange:"mediaResizingChange",mentionsChange:"mentionsChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",tableContextMenuChange:"tableContextMenuChange",tableResizingChange:"tableResizingChange",toolbarChange:"toolbarChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueTypeChange:"valueTypeChange",variablesChange:"variablesChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[S.Jv_([ki.zF,ki.jS,Pi,ki.fH,ki.$M]),S.Vt3,S.OA$],ngContentSelectors:Wi,decls:1,vars:0,template:function(an,Un){1&an&&(S.NAR(),S.SdG(0))},encapsulation:2})}return Ht})(),Do=(()=>{class Ht{static \u0275fac=function(an){return new(an||Ht)};static \u0275mod=S.$C({type:Ht});static \u0275inj=d.G2t({imports:[Si.k4A,Si.OWJ,Si.HKo,Si.hAh,Si.m56,Si.GLd,Si.POb,Si.rj$,Si.l4W,Si.TsZ,ki.p_,ki.xZ,Si.k4A,Si.OWJ,Si.HKo,Si.hAh,Si.m56,Si.GLd,Si.POb,Si.rj$,Si.l4W,Si.TsZ,ki.xZ]})}return Ht})()},1714:(En,it,p)=>{"use strict";p.d(it,{D:()=>T});var S=p(656),d=p(1118),m=p(242);let T=(()=>{var C;class e{constructor(w){this.deviceInfoService=w,this.state="",this.backButtonVisible=(0,S.vPA)(!1),this.isInApp=!1,this.statesWithBackButton=[d.g.AppAccessibility,d.g.AppAccountSettings,d.g.AppAdminSettings,d.g.AppAdvertiserBillingInfo,d.g.AppAppStore,d.g.AppArticleDetail,d.g.AppArticleDetailAlt,d.g.AppArticleElasticStatistic,d.g.AppArticleElasticStatisticAlt,d.g.AppArticleStatistic,d.g.AppAuthorBillingInfo,d.g.AppAuthors,d.g.AppEventCalendarDetail,d.g.AppFeedback,d.g.AppImprint,d.g.AppMyProfile,d.g.AppNotificationSettings,d.g.AppOptOut,d.g.AppPrivacyPolicy,d.g.AppPrivacyPolicyMerkuristGmbh,d.g.AppPublicProfile,d.g.AppRegister,d.g.AppRegisterNewsletter,d.g.AppSearch,d.g.AppSnipDetail,d.g.AppSnipElasticStatistic,d.g.AppSnipStatistic,d.g.AppSpecial,d.g.AppSpecialElasticStatistic,d.g.AppSpecialStatistics,d.g.AppSponsoredArticleCampaignElasticStatistic,d.g.AppSponsoredArticleCampaignStatistic,d.g.AppSponsoredArticleDetail,d.g.AppSponsoredArticleDetailAlt,d.g.AppSurveyDetails,d.g.AppTos,d.g.AppUnsubscribeNewsletter,d.g.AppWorkflow,d.g.AppChat,d.g.AppCompanyNews,d.g.AppStaticArticles],this.setState=P=>{P=P.split("_")[0],this.state=P,this.isInApp&&this.checkState(this.state)},this.checkState=P=>{this.statesWithBackButton.includes(P)?this.backButtonVisible.set(!0):this.backButtonVisible.set(!1)},this.isInApp=this.deviceInfoService.getUserAgentInfo().isApp}static#e=C=()=>(this.\u0275fac=function(P){return new(P||e)(S.KVO(m.E))},this.\u0275prov=S.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}))}return C(),e})()},1757:(En,it,p)=>{"use strict";p.d(it,{A:()=>Nt});var S=p(1973),d=p(5704),m=p(3090),T=p(8910),C=p(6853),e=p(2583),k=p(6054),w=p(9522),P=p(4859),v=p(6021),x=p(8535),b=p(2660),B=p(1363),j=p(7007),F=p(1830),X=p(6110),U=p(778),Z=p(4072),A=p(1395),M=p(9209),H=p(9293),J=p(8360),R=p(8813),L=p(7508),G=p(3480),Q=p(7794),z=p(2359),K=p(4602);const ee="dx-treeview",re=`${ee}-node`,be=`${re}-container`,ce=`${re}-loadindicator`,Re=`${re}-container-opened`,Se=`${re}-is-leaf`,De=`${ee}-item`,Pe=`${De}-with-checkbox`,Ie=`${De}-with-custom-expander-icon`,W=`${ee}-custom-expander-icon-item-container`,ie=`${De}-without-checkbox`,he=`${De}-data`,Ce=`${ee}-toggle-item-visibility`,ye=`${ee}-custom-collapse-icon`,Me=`${ee}-custom-expand-icon`,_e=`${ee}-loadindicator`,ke=`${ee}-loadindicator-wrapper`,Ye=`${ee}-toggle-item-visibility-opened`,de=`${ee}-select-all-item`,Ke="data-item-id",fe=`${ee}-root-node`,We=`${ee}-expander-icon-stub`,Ve=Q.A.inherit({_supportedKeys(et){const ue=je=>{const Ne=(0,d.A)(this.option("focusedElement"));Ne.length&&(je.target=Ne,je.currentTarget=Ne,this._itemClickHandler(je,Ne.children(`.${De}`)),this._getEventNameByOption(this.option("expandEvent"))===(0,H.b4)(U.U,"dxTreeView_expand")&&this._expandEventHandler(je))},me=je=>{je.preventDefault();const Ne=(0,d.A)(this.option("focusedElement")),lt=this._getCheckBoxInstance(Ne);if(!lt.option("disabled")){const Qe=lt.option("value");this._updateItemSelection(!Qe,Ne.find(`.${De}`).get(0),!0)}},Te=function(je,Ne){if(!this.option("expandAllEnabled"))return;Ne.preventDefault();const lt=(0,d.A)(this.option("focusedElement"));if(!lt.length)return;const Qe=this._getItemData(lt.find(`.${De}`));this._toggleExpandedNestedItems([Qe],je)};return(0,m.X)(this.callBase(),{enter:this._showCheckboxes()?me:ue,space:this._showCheckboxes()?me:ue,asterisk:Te.bind(this,!0),minus:Te.bind(this,!1)})},_toggleExpandedNestedItems(et,ue){if(et)for(let me=0,Te=et.length;me<Te;me++){const je=et[me],Ne=this._dataAdapter.getNodeByItem(je);this._toggleExpandedState(Ne,ue),this._toggleExpandedNestedItems(je.items,ue)}},_getNodeElement(et,ue){const me=this._encodeString(et.internalFields.key);if(ue)return ue.$nodeByKey||(ue.$nodeByKey={},this.$element().find(`.${re}`).each(function(){const je=(0,d.A)(this),Ne=je.attr(Ke);ue.$nodeByKey[Ne]=je})),ue.$nodeByKey[me]||(0,d.A)();const Te=this.$element().get(0).querySelector(`[${Ke}="${me}"]`);return(0,d.A)(Te)},_activeStateUnit:`.${De}`,_widgetClass:()=>ee,_getDefaultOptions(){const et=(0,m.X)(this.callBase(),{animationEnabled:!0,dataStructure:"tree",deferRendering:!0,expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",expandIcon:null,collapseIcon:null,selectAllText:J.A.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",useNativeScrolling:!0,virtualModeEnabled:!1,rootValue:0,focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1,createChildren:null,onSelectAllValueChanged:null,_supportItemUrl:!1});return(0,m.X)(!0,et,{integrationOptions:{useDeferUpdateForTemplates:!1}})},_defaultOptionsRules(){return this.callBase().concat([{device:()=>!j.nativeScrolling,options:{useNativeScrolling:!1}}])},_initSelectedItems:P.lQ,_syncSelectionOptions:P.TA,_fireSelectionChanged(){(0,v.z7)(this._selectionChangePromise).done(()=>{this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()})},_createSelectAllValueChangedAction(){this._selectAllValueChangedAction=this._createActionByOption("onSelectAllValueChanged",{excludeValidators:["disabled","readOnly"]})},_fireSelectAllValueChanged(et){this._selectAllValueChangedAction({value:et})},_checkBoxModeChange(et,ue){const me=this.option("searchEnabled"),Te=this._selectAllEnabled(ue),je=this._itemContainer(me,Te);if(this._detachClickEvent(je),this._detachExpandEvent(je),"none"===ue||"none"===et)return;const Ne=this._$selectAllItem&&this._$selectAllItem.length;switch(et){case"selectAll":Ne||(this._createSelectAllValueChangedAction(),this._renderSelectAllItem());break;case"normal":Ne&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}},_removeSelection(){const et=this;(0,b.__)(this._dataAdapter.getFullData(),(ue,me)=>{et._hasChildren(me)&&et._dataAdapter.toggleSelection(me.internalFields.key,!1,!0)})},_optionChanged(et){const{name:ue,value:me,previousValue:Te}=et;switch(ue){case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",me);break;case"showCheckBoxesMode":this._checkBoxModeChange(me,Te),this._invalidate();break;case"scrollDirection":this.getScrollable().option("direction",me);break;case"useNativeScrolling":this.getScrollable().option("useNative",me);break;case"items":delete this._$selectAllItem,this.callBase(et);break;case"dataSource":this.callBase(et),this._initDataAdapter(),this._filter={};break;case"hasItemsExpr":this._initAccessors(),this.repaint();break;case"expandEvent":this._attachExpandEvent();break;case"deferRendering":case"dataStructure":case"rootValue":case"createChildren":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":case"_supportItemUrl":break;case"selectionMode":this._initDataAdapter(),this.callBase(et);break;case"onSelectAllValueChanged":this._createSelectAllValueChangedAction();break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",et.value),this.repaint();break;case"expandIcon":case"collapseIcon":this.repaint();break;default:this.callBase(et)}},_initDataSource(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(et=>{et&&et.length&&this.option("items",et)}):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode(){const et=this._filter;et.custom||(et.custom=this._dataSource.filter()),et.internal||(et.internal=[this.option("parentIdExpr"),this.option("rootValue")])},_useCustomChildrenLoader(){return(0,F.Tn)(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader(et){const ue=this.option("createChildren").call(this,et);return Array.isArray(ue)?(0,v.cY)().resolve(ue).promise():ue&&(0,F.Tn)(ue.then)?(0,v.Sx)(ue):(0,v.cY)().resolve([]).promise()},_combineFilter(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler(){this._renderEmptyMessage()},_init(){this._filter={},this.callBase(),this._initStoreChangeHandlers()},_dataSourceChangedHandler(et){const ue=this.option("items");this._initialized&&this._isVirtualMode()&&ue.length||this.option("items",et)},_removeTreeViewLoadIndicator(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator(){return this._treeViewLoadIndicator=(0,d.A)("<div>").addClass(_e),this._createComponent(this._treeViewLoadIndicator,z.A,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler(et){let ue;if(this._isVirtualMode()&&(ue=this._combineFilter(),this._dataSource.filter(ue)),et&&!this._dataSource.isLoaded()){this.option("items",[]);const me=(0,d.A)("<div>").addClass(ke);this._createTreeViewLoadIndicator().appendTo(me),this.itemsContainer().append(me),this._isVirtualMode()&&this._dataSource.filter()!==ue&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers(){"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",et=>{this.option().items=this.option("items").concat(et),this._dataAdapter.addItem(et),this._dataAdapter.isFiltered(et)&&this._updateLevel(this._parentIdGetter(et))}).on("removed",et=>{const ue=this._dataAdapter.getNodeByKey(et);(0,F.O9)(ue)&&(this.option("items")[this._dataAdapter.getIndexByKey(ue.internalFields.key)]=0,this._markChildrenItemsToRemove(ue),this._removeItems(),this._dataAdapter.removeItem(et),this._updateLevel(this._parentIdGetter(ue)))})},_markChildrenItemsToRemove(et){(0,b.__)(et.internalFields.childrenKeys,(me,Te)=>{this.option("items")[this._dataAdapter.getIndexByKey(Te)]=0,this._markChildrenItemsToRemove(this._dataAdapter.getNodeByKey(Te))})},_removeItems(){const et=(0,m.X)(!0,[],this.option("items"));let ue=0;(0,b.__)(et,(me,Te)=>{Te||(this.option("items").splice(me-ue,1),ue++)})},_updateLevel(et){const ue=this._getContainerByParentKey(et);this._renderItems(ue,this._dataAdapter.getChildrenNodes(et))},_getOldContainer(et){if(et.length)return et.children(`.${be}`);const ue=this.getScrollable();return ue?(0,d.A)(ue.content()).children():(0,d.A)()},_getContainerByParentKey(et){const ue=this._dataAdapter.getNodeByKey(et),me=ue?this._getNodeElement(ue):[];this._getOldContainer(me).remove();const Te=this._renderNodeContainer(me);if(this._isRootLevel(et)){const je=this.getScrollable();je||this._renderScrollableContainer(),(0,d.A)(je.content()).append(Te)}return Te},_isRootLevel(et){return et===this.option("rootValue")},_getAccessors(){const et=this.callBase();return et.push("hasItems"),et},_getDataAdapterOptions(){var et,ue;return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort(),langParams:null===(et=this._dataSource)||void 0===et||null===(ue=et.loadOptions)||void 0===ue||null===(ue=ue.call(et))||void 0===ue?void 0:ue.langParams}},_initMarkup(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this._setAriaRole()},_setAriaRole(){const{items:et}=this.option();null!=et&&et.length&&this.setAria({role:"tree"})},_renderContentImpl(){const et=this._renderNodeContainer();(0,d.A)(this.getScrollable().content()).append(et),this.option("items")&&this.option("items").length&&(this._renderItems(et,this._dataAdapter.getRootNodes()),this._attachExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(et)))},_isVirtualMode(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain(){return"plain"===this.option("dataStructure")},_fireContentReadyAction(){const et=this.getDataSource(),ue=et&&!et.isLoaded()||this._skipContentReadyAndItemExpanded,me=this.getScrollable();me&&(0,X.Vd)()&&me.update(),ue||this.callBase(),me&&(0,X.Vd)()&&me.update()},_renderScrollableContainer(){this._scrollable=this._createComponent((0,d.A)("<div>").appendTo(this.$element()),K.A,{useNative:this.option("useNativeScrolling"),direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer(et){const ue=(0,d.A)("<ul>").addClass(be);if(this.setAria("role","group",ue),et&&et.length){const me=this._getItemData(et.children(`.${De}`));this._expandedGetter(me)&&ue.addClass(Re),ue.appendTo(et)}return ue},_createDOMElement(et,ue){var me;const Te=(0,d.A)("<li>").addClass(re).attr(Ke,this._encodeString(ue.internalFields.key)).prependTo(et),je={role:"treeitem",label:this._displayGetter(ue.internalFields.item)||"",level:this._getLevel(et)};return!(null==ue||null===(me=ue.internalFields)||void 0===me||null===(me=me.childrenKeys)||void 0===me||!me.length)&&(je.expanded=ue.internalFields.expanded||!1),this.setAria(je,Te),Te},_getLevel(et){const ue=et.parent();return ue.hasClass("dx-scrollable-content")?1:parseInt(ue.attr("aria-level"))+1},_showCheckboxes(){return"none"!==this.option("showCheckBoxesMode")},_hasCustomExpanderIcons(){return this.option("expandIcon")||this.option("collapseIcon")},_selectAllEnabled(et){return"selectAll"===(et??this.option("showCheckBoxesMode"))&&!this._isSingleSelection()},_renderItems(et,ue){for(let Te=ue.length-1;Te>=0;Te--)this._renderItem(Te,ue[Te],et);this._renderedItemsCount+=ue.length},_renderItem(et,ue,me){const Te=this._createDOMElement(me,ue),je=ue.internalFields,Ne=this._showCheckboxes();Te.addClass(Ne?Pe:ie),Te.toggleClass("dx-state-invisible",!1===je.item.visible),this._hasCustomExpanderIcons()&&(Te.addClass(Ie),me.addClass(W)),this.setAria("selected",je.selected,Te),this._toggleSelectedClass(Te,je.selected),je.disabled&&this.setAria("disabled",je.disabled,Te),this.callBase(this._renderedItemsCount+et,je.item,Te),this._getNode(ue.internalFields.parentKey)||Te.addClass(fe),!1!==je.item.visible&&this._renderChildren(Te,ue)},_setAriaSelectionAttribute:P.lQ,_renderChildren(et,ue){if(!this._hasChildren(ue))return this._addLeafClass(et),void(0,d.A)("<div>").addClass(We).appendTo(this._getItem(et));this._hasCustomExpanderIcons()?this._renderCustomExpanderIcons(et,ue):this._renderDefaultExpanderIcons(et,ue),this._shouldRenderSublevel(ue.internalFields.expanded)&&this._loadSublevel(ue).done(me=>{this._renderSublevel(et,this._getActualNode(ue),me)})},_shouldRenderSublevel(et){return et||!this.option("deferRendering")},_getActualNode(et){return this._dataAdapter.getNodeByKey(et.internalFields.key)},_hasChildren(et){return this._isVirtualMode()||this._useCustomChildrenLoader()?!1!==this._hasItemsGetter(et.internalFields.item):this.callBase(et)},_loadSublevel(et){const ue=(0,v.cY)(),me=this._getChildNodes(et);return me.length?ue.resolve(me):this._loadNestedItems(et).done(Te=>{ue.resolve(this._dataAdapter.getNodesByItems(Te))}),ue.promise()},_getItemExtraPropNames:()=>["url","linkAttr"],_addContent(et,ue){const{html:me,url:Te}=ue;if(this.option("_supportItemUrl")&&Te){et.html(me);const je=this._getLinkContainer(this._getIconContainer(ue),this._getTextContainer(ue),ue);et.append(je)}else this.callBase(et,ue)},_postprocessRenderItem(et){const{itemData:ue,itemElement:me}=et;this._showCheckboxes()&&this._renderCheckBox(me,this._getNode(ue)),this.callBase(et)},_renderSublevel(et,ue,me){const Te=this._renderNodeContainer(et,ue),je=me.filter(Ne=>-1!==ue.internalFields.childrenKeys.indexOf(Ne.internalFields.key));if(this._renderItems(Te,je),je.length&&!ue.internalFields.selected){const Ne=je[0];this._updateParentsState(Ne,this._getNodeElement(Ne))}this._normalizeIconState(et,je.length),ue.internalFields.expanded&&Te.addClass(Re)},_executeItemRenderAction(et,ue,me){const Te=this._getNode(me);this._getItemRenderAction()({itemElement:me,itemIndex:et,itemData:ue,node:this._dataAdapter.getPublicNode(Te)})},_addLeafClass(et){et.addClass(Se)},_expandEventHandler(et){(0,d.A)(et.currentTarget.parentNode).hasClass(Se)||this._toggleExpandedState(et.currentTarget,void 0,et)},_attachExpandEvent(){const et=this._getEventNameByOption(this.option("expandEvent")),ue=this._itemContainer();this._detachExpandEvent(ue),Z.A.on(ue,et,this._itemSelector(),this._expandEventHandler.bind(this))},_detachExpandEvent(et){Z.A.off(et,".dxTreeView_expand",this._itemSelector())},_getEventNameByOption:et=>(0,H.b4)("click"===et?U.U:A.U,"dxTreeView_expand"),_getNode(et){if(!(0,F.O9)(et))return null;if(et.internalFields)return et;if((0,F.sO)(et))return this._dataAdapter.getNodeByKey(et);const ue=(0,d.A)(et).get(0);return ue?k.A.isElementNode(ue)?this._getNodeByElement(ue):this._dataAdapter.getNodeByItem(ue):null},_getNodeByElement(et){const ue=(0,d.A)(et).closest(`.${re}`),me=this._decodeString(ue.attr(Ke));return this._dataAdapter.getNodeByKey(me)},_toggleExpandedState(et,ue,me){const Te=this._getNode(et);if(!Te||Te.internalFields.disabled)return(0,v.cY)().reject().promise();const je=Te.internalFields.expanded;if(je===ue)return(0,v.cY)().resolve().promise();if(this._hasChildren(Te)){const Ne=this._getNodeElement(Te);if(Ne.find(`.${ce}:not(.dx-state-invisible)`).length)return(0,v.cY)().reject().promise();!je&&!this._nodeHasRenderedChildren(Ne)&&this._createLoadIndicator(Ne)}return(0,F.O9)(ue)||(ue=!je),this._dataAdapter.toggleExpansion(Te.internalFields.key,ue),this._updateExpandedItemsUI(Te,ue,me)},_nodeHasRenderedChildren:et=>et.children(`.${be}`).not(":empty").length,_getItem:et=>et.children(`.${De}`).eq(0),_createLoadIndicator(et){const ue=this._getItem(et);this._createComponent((0,d.A)("<div>").addClass(ce),z.A,{}).$element().appendTo(ue),ue.children(`.${Ce},.${Me}`).hide()},_renderExpanderIcon(et,ue,me,Te){me.appendTo(this._getItem(et)),me.addClass(Te),ue.internalFields.disabled&&me.addClass("dx-state-disabled"),this._renderToggleItemVisibilityIconClick(me,ue)},_renderDefaultExpanderIcons(et,ue){const me=this._getItem(et),Te=(0,d.A)("<div>").addClass(Ce).appendTo(me);ue.internalFields.expanded&&(Te.addClass(Ye),et.parent().addClass(Re)),ue.internalFields.disabled&&Te.addClass("dx-state-disabled"),this._renderToggleItemVisibilityIconClick(Te,ue)},_renderCustomExpanderIcons(et,ue){const{expandIcon:me,collapseIcon:Te}=this.option(),je=(0,x.N)(me??Te),Ne=(0,x.N)(Te??me);this._renderExpanderIcon(et,ue,je,Me),this._renderExpanderIcon(et,ue,Ne,ye);const lt=ue.internalFields.expanded;lt&&et.parent().addClass(Re),this._toggleCustomExpanderIcons(je,Ne,lt)},_renderToggleItemVisibilityIconClick(et,ue){const me=(0,H.b4)(U.U,this.NAME);Z.A.off(et,me),Z.A.on(et,me,Te=>(this._toggleExpandedState(ue.internalFields.key,void 0,Te),!1))},_toggleCustomExpanderIcons(et,ue,me){ue.toggle(me),et.toggle(!me)},_updateExpandedItemsUI(et,ue,me){const Te=this._getNodeElement(et),je=!Te.length||ue&&Te.is(":hidden");if(this.option("expandNodesRecursive")&&je){const Ct=this._getNode(et.internalFields.parentKey);Ct&&this._updateExpandedItemsUI(Ct,ue,me)}if(this._hasCustomExpanderIcons()){if(this._nodeHasRenderedChildren(Te)){const Ct=this._getItem(Te),yt=Ct.children(`.${Me}`),Gt=Ct.children(`.${ye}`);this._toggleCustomExpanderIcons(yt,Gt,ue)}}else this._getItem(Te).children(`.${Ce}`).toggleClass(Ye,ue);const Ne=Te.children(`.${be}`),lt=Ne.length>0,Qe=(0,v.cY)();return!ue||lt&&!Ne.is(":empty")?(this._animateNodeContainer(et,ue,me,Qe),Qe.promise()):0===et.internalFields.childrenKeys.length&&(this._isVirtualMode()||this._useCustomChildrenLoader())?(this._loadNestedItemsWithUpdate(et,ue,me,Qe),Qe.promise()):(this._renderSublevel(Te,et,this._getChildNodes(et)),this._fireContentReadyAction(),this._animateNodeContainer(et,ue,me,Qe),Qe.promise())},_loadNestedItemsWithUpdate(et,ue,me,Te){const je=this._getNodeElement(et);this._loadNestedItems(et).done(Ne=>{const lt=this._getActualNode(et);this._renderSublevel(je,lt,this._dataAdapter.getNodesByItems(Ne)),Ne&&Ne.length?(this._fireContentReadyAction(),this._animateNodeContainer(lt,ue,me,Te)):Te.resolve()})},_loadNestedItems(et){if(this._useCustomChildrenLoader()){const ue=this._dataAdapter.getPublicNode(et);return this._loadChildrenByCustomLoader(ue).done(me=>{this._areNodesExists(me)||this._appendItems(me)})}return this._isVirtualMode()?(this._filter.internal=[this.option("parentIdExpr"),et.internalFields.key],this._dataSource.filter(this._combineFilter()),this._dataSource.load().done(ue=>{this._areNodesExists(ue)||this._appendItems(ue)})):(0,v.cY)().resolve([]).promise()},_areNodesExists(et,ue){const me=this.keyOf(et[0]),Te=this._dataAdapter.getFullData();return!!this._dataAdapter.getNodeByKey(me,Te)},_appendItems(et){this.option().items=this.option("items").concat(et),this._initDataAdapter()},_animateNodeContainer(et,ue,me,Te){const je=this._getNodeElement(et),Ne=je.children(`.${be}`);et&&Te&&0===Ne.length&&Te.resolve(),Ne.addClass(Re);const lt=(0,B.Oq)(Ne);e.A.stop(Ne,!0),e.A.animate(Ne,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{maxHeight:ue?0:lt},to:{maxHeight:ue?lt:0},complete:function(){Ne.css("maxHeight","none"),Ne.toggleClass(Re,ue),this.setAria("expanded",ue,je),this.getScrollable().update(),this._fireExpandedStateUpdatedEvent(ue,et,me),Te&&Te.resolve()}.bind(this)})},_fireExpandedStateUpdatedEvent(et,ue,me){if(!this._hasChildren(ue)||this._skipContentReadyAndItemExpanded)return;const Te=et?"onItemExpanded":"onItemCollapsed";if((0,F.O9)(me))this._itemDXEventHandler(me,Te,{node:this._dataAdapter.getPublicNode(ue)});else{const je=this._getNodeElement(ue);this._itemEventHandler(je,Te,{event:me,node:this._dataAdapter.getPublicNode(ue)})}},_normalizeIconState(et,ue){const me=et.find(`.${ce}`);var Te;me.length&&(null===(Te=z.A.getInstance(me))||void 0===Te||Te.option("visible",!1));const Ne=this._getItem(et).children(`.${ye},.${Ce}`);ue?Ne.show():(Ne.removeClass(Ce),et.addClass(Se))},_emptyMessageContainer(){const et=this.getScrollable();return et?(0,d.A)(et.content()):this.callBase()},_renderContent(){const et=this.option("items");et&&et.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem(et){const{selectAllText:ue,focusStateEnabled:me}=this.option();et=et||this.$element().find(`.${be}`).first(),this._$selectAllItem=(0,d.A)("<div>").addClass(de);const Te=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,G.A,{value:Te,elementAttr:{"aria-label":"Select All"},text:ue,focusStateEnabled:me,onValueChanged:this._onSelectAllCheckboxValueChanged.bind(this),onInitialized:je=>{let{component:Ne}=je;Ne.registerKeyHandler("enter",()=>{Ne.option("value",!Ne.option("value"))})}}),this._toggleSelectedClass(this._$selectAllItem,Te),et.before(this._$selectAllItem)},_onSelectAllCheckboxValueChanged(et){this._toggleSelectAll(et),this._fireSelectAllValueChanged(et.value)},_toggleSelectAll(et){this._dataAdapter.toggleSelectAll(et.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox(et,ue){const me=(0,d.A)("<div>").appendTo(et);this._createComponent(me,G.A,{value:ue.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,elementAttr:{"aria-label":"Check State"},disabled:this._disabledGetter(ue)})},_toggleSelectedClass(et,ue){et.toggleClass("dx-state-selected",!!ue)},_toggleNodeDisabledState(et,ue){const me=this._getNodeElement(et),Te=me.find(`.${De}`).eq(0);this._dataAdapter.toggleNodeDisabledState(et.internalFields.key,ue),Te.toggleClass("dx-state-disabled",!!ue),this._showCheckboxes()&&this._getCheckBoxInstance(me).option("disabled",!!ue)},_itemOptionChanged(et,ue,me){const Te=this._dataAdapter.getNodeByItem(et);ue===this.option("disabledExpr")&&this._toggleNodeDisabledState(Te,me)},_changeCheckboxValue(et){const ue=(0,d.A)(et.element).closest(`.${re}`),me=this._getItem(ue),Te=this._getItemData(me),je=this._getNodeByElement(me),{value:Ne}=et;je&&je.internalFields.selected===Ne||this._updateItemSelection(Ne,Te,et.event)},_isSingleSelection(){return"single"===this.option("selectionMode")},_isRecursiveSelection(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_isLastSelectedBranch(et,ue,me){const Te=ue.indexOf(et.key);return Te>=0&&ue.splice(Te,1),me&&(0,b.__)(et.children,(je,Ne)=>{this._isLastSelectedBranch(Ne,ue,!0)}),et.parent&&this._isLastSelectedBranch(et.parent,ue),0===ue.length},_isLastRequired(et){const ue=this.option("selectionRequired"),me=this._isSingleSelection(),Te=this.getSelectedNodeKeys();if(ue)return me?1===Te.length:this._isLastSelectedBranch(et.internalFields.publicNode,Te.slice(),!0)},_updateItemSelection(et,ue,me){const Te=this._getNode(ue);if(!Te||!1===Te.visible)return!1;if(Te.internalFields.selected===et)return!0;if(!et&&this._isLastRequired(Te)){if(this._showCheckboxes()){const lt=this._getNodeElement(Te);this._getCheckBoxInstance(lt).option("value",!0)}return!1}if(et&&this._isSingleSelection()){const lt=this.getSelectedNodeKeys();(0,b.__)(lt,(Qe,Ct)=>{this._dataAdapter.toggleSelection(Ct,!1),this._updateItemsUI(),this._fireItemSelectionChanged(this._getNode(Ct))})}this._dataAdapter.toggleSelection(Te.internalFields.key,et);const je=this._dataAdapter.isAllSelected(),Ne=this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value")!==je;return this._updateItemsUI(),this._fireItemSelectionChanged(Te,me),this._fireSelectionChanged(),Ne&&this._fireSelectAllValueChanged(je),!0},_fireItemSelectionChanged(et,ue){const me=ue||this._findItemElementByItem(et.internalFields.item);(ue?this._itemDXEventHandler:this._itemEventHandler).call(this,me,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(et),itemData:et.internalFields.item})},_getCheckBoxInstance(et){return this._getItem(et).children(".dx-checkbox").dxCheckBox("instance")},_updateItemsUI(){const et={};if((0,b.__)(this._dataAdapter.getData(),(ue,me)=>{const Te=this._getNodeElement(me,et),je=me.internalFields.selected;Te.length&&(this._toggleSelectedClass(Te,je),this.setAria("selected",je,Te),this._showCheckboxes()&&this._getCheckBoxInstance(Te).option("value",je))}),this._selectAllEnabled()){const ue=this._$selectAllItem.dxCheckBox("instance");ue.option("onValueChanged",void 0),ue.option("value",this._dataAdapter.isAllSelected()),ue.option("onValueChanged",this._onSelectAllCheckboxValueChanged.bind(this))}},_updateParentsState(et,ue){if(!ue)return;const me=this._dataAdapter.getNodeByKey(et.internalFields.parentKey),Te=(0,d.A)(ue.parents(`.${re}`)[0]);if(this._showCheckboxes()){const je=me.internalFields.selected;this._getCheckBoxInstance(Te).option("value",je),this._toggleSelectedClass(Te,je)}me.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(me,Te)},_itemEventHandlerImpl(et,ue,me){const Te=(0,d.A)(et).closest(`.${re}`).children(`.${De}`);return ue((0,m.X)(this._extendActionArgs(Te),me))},_itemContextMenuHandler(et){this._createEventHandler("onItemContextMenu",et)},_itemHoldHandler(et){this._createEventHandler("onItemHold",et)},_createEventHandler(et,ue){const me=this._getNodeByElement(ue.currentTarget);this._itemDXEventHandler(ue,et,{node:this._dataAdapter.getPublicNode(me)})},_itemClass:()=>De,_itemDataKey:()=>he,_attachClickEvent(){const et=this._itemContainer();this._detachClickEvent(et);const{clickEventNamespace:ue,itemSelector:me,pointerDownEventNamespace:Te,nodeSelector:je}=this._getItemClickEventData();Z.A.on(et,ue,me,Ne=>{(0,d.A)(Ne.target).hasClass("dx-checkbox-icon")||(0,d.A)(Ne.target).hasClass("dx-checkbox")||this._itemClickHandler(Ne,(0,d.A)(Ne.currentTarget))}),Z.A.on(et,Te,je,Ne=>{this._itemPointerDownHandler(Ne)})},_detachClickEvent(et){const{clickEventNamespace:ue,itemSelector:me,pointerDownEventNamespace:Te,nodeSelector:je}=this._getItemClickEventData();Z.A.off(et,ue,me),Z.A.off(et,Te,je)},_getItemClickEventData(){const et=`.${this._itemClass()}`,ue=`.${re}, .${de}`;return{clickEventNamespace:(0,H.b4)(U.U,this.NAME),itemSelector:et,pointerDownEventNamespace:(0,H.b4)(M.A.down,this.NAME),nodeSelector:ue}},_itemClick(et){const ue=et.args[0],Te=(ue.event.target[0]||ue.event.target).getElementsByClassName("dx-item-url")[0];ue.itemData.url&&Te&&Te.click()},_itemClickHandler(et,ue){const me=this._getItemData(ue),Te=this._getNodeByElement(ue);this._itemDXEventHandler(et,"onItemClick",{node:this._dataAdapter.getPublicNode(Te)},{beforeExecute:this._itemClick}),this.option("selectByClick")&&!et.isDefaultPrevented()&&this._updateItemSelection(!Te.internalFields.selected,me,et)},_updateSelectionToFirstItem(et,ue){let me=ue;for(;me>=0;){const Te=(0,d.A)(et[me]);this._updateItemSelection(!0,Te.find(`.${De}`).get(0)),me--}},_updateSelectionToLastItem(et,ue){const{length:me}=et;let Te=ue;for(;Te<me;){const je=(0,d.A)(et[Te]);this._updateItemSelection(!0,je.find(`.${De}`).get(0)),Te++}},focus(){this._selectAllEnabled()?Z.A.trigger(this._$selectAllItem,"focus"):this.callBase()},_focusInHandler(et){this._updateFocusState(et,!0);const ue=(0,d.A)(et.target).hasClass(de);if(ue||this.option("focusedElement"))return clearTimeout(this._setFocusedItemTimeout),void(this._setFocusedItemTimeout=setTimeout(()=>{const Te=ue?(0,w.cc)(this._$selectAllItem):(0,d.A)(this.option("focusedElement"));this._setFocusedItem(Te)}));const me=this._getActiveItem();this.option("focusedElement",(0,w.cc)(me.closest(`.${re}`)))},_itemPointerDownHandler(et){if(!this.option("focusStateEnabled"))return;const ue=(0,d.A)(et.target).closest(`.${re}, .${de}`);if(!ue.length)return;const me=ue.hasClass("dx-state-disabled")?null:ue;this.option("focusedElement",(0,w.cc)(me))},_findNonDisabledNodes:et=>et.not(function(){return(0,d.A)(this).children(`.${De}`).hasClass("dx-state-disabled")}),_moveFocus(et,ue){const me=this.option("rtlEnabled")?"right":"left",Te=this.option("rtlEnabled")?"left":"right";this.$element().find(`.${be}`).each(function(){e.A.stop(this,!0)});const je=this._nodeElements();if(je&&je.length)switch(et){case"up":{const Ne=this._prevItem(je);this.option("focusedElement",(0,w.cc)(Ne));const lt=this._getNodeItemElement(Ne);this.getScrollable().scrollToElement(lt),ue.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,lt);break}case"down":{const Ne=this._nextItem(je);this.option("focusedElement",(0,w.cc)(Ne));const lt=this._getNodeItemElement(Ne);this.getScrollable().scrollToElement(lt),ue.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,lt);break}case"first":{const Ne=je.first();ue.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(je,je.index(this._prevItem(je))),this.option("focusedElement",(0,w.cc)(Ne)),this.getScrollable().scrollToElement(this._getNodeItemElement(Ne));break}case"last":{const Ne=je.last();ue.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(je,je.index(this._nextItem(je))),this.option("focusedElement",(0,w.cc)(Ne)),this.getScrollable().scrollToElement(this._getNodeItemElement(Ne));break}case Te:this._expandFocusedContainer();break;case me:this._collapseFocusedContainer();break;default:this.callBase.apply(this,arguments)}},_getNodeItemElement:et=>et.find(`.${De}`).get(0),_nodeElements(){return this.$element().find(`.${re}`).not(":hidden")},_expandFocusedContainer(){const et=(0,d.A)(this.option("focusedElement"));if(!et.length||et.hasClass(Se))return;if(et.find(`.${be}`).eq(0).hasClass(Re)){const Te=this._nextItem(this._findNonDisabledNodes(this._nodeElements()));return this.option("focusedElement",(0,w.cc)(Te)),void this.getScrollable().scrollToElement(this._getNodeItemElement(Te))}const me=this._getNodeByElement(this._getItem(et));this._toggleExpandedState(me,!0)},_getClosestNonDisabledNode(et){do{et=et.parent().closest(`.${re}`)}while(et.children(".dx-treeview-item.dx-state-disabled").length);return et},_collapseFocusedContainer(){const et=(0,d.A)(this.option("focusedElement"));if(!et.length)return;const ue=et.find(`.${be}`).eq(0);if(!et.hasClass(Se)&&ue.hasClass(Re)){const me=this._getNodeByElement(this._getItem(et));this._toggleExpandedState(me,!1)}else{const me=this._getClosestNonDisabledNode(et);me.length&&this.option("focusedElement",(0,w.cc)(me)),this.getScrollable().scrollToElement(this._getNodeItemElement(me))}},_encodeString:et=>(0,F.Kg)(et)?encodeURI(et):et,_decodeString:et=>(0,F.Kg)(et)?decodeURI(et):et,getScrollable(){return this._scrollable},updateDimensions(){const et=(0,v.cY)(),ue=this.getScrollable();return ue?ue.update().done(()=>{et.resolveWith(this)}):et.resolveWith(this),et.promise()},selectItem(et){return this._updateItemSelection(!0,et)},unselectItem(et){return this._updateItemSelection(!1,et)},expandItem(et){return this._toggleExpandedState(et,!0)},collapseItem(et){return this._toggleExpandedState(et,!1)},getNodes(){return this._dataAdapter.getTreeNodes()},getSelectedNodes(){return this.getSelectedNodeKeys().map(et=>{const ue=this._dataAdapter.getNodeByKey(et);return this._dataAdapter.getPublicNode(ue)})},getSelectedNodeKeys(){return this._dataAdapter.getSelectedNodesKeys()},selectAll(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!0):this._toggleSelectAll({value:!0})},unselectAll(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!1):this._toggleSelectAll({value:!1})},_allItemsExpandedHandler(){this._skipContentReadyAndItemExpanded=!1,this._fireContentReadyAction()},expandAll(){const et=this._dataAdapter.getData(),ue=[];this._skipContentReadyAndItemExpanded=!0,et.forEach(me=>ue.push(this._toggleExpandedState(me.internalFields.key,!0))),Promise.allSettled(ue).then(()=>{var me;return null===(me=this._allItemsExpandedHandler)||void 0===me?void 0:me.call(this)})},collapseAll(){(0,b.__)(this._dataAdapter.getExpandedNodesKeys(),(et,ue)=>{this._toggleExpandedState(ue,!1)})},scrollToItem(et){const ue=this._getNode(et);if(!ue)return(0,v.cY)().reject().promise();const me=[];let Te=ue.internalFields.publicNode.parent;for(;null!=Te;)Te.expanded||me.push(Te.key),Te=Te.parent;const je=(0,v.cY)();return this._expandNodes(me.reverse()).always(()=>{const Ne=this._getNodeElement(ue);Ne&&Ne.length?(this.scrollToElementTopLeft(Ne.get(0)),je.resolve()):je.reject()}),je.promise()},scrollToElementTopLeft(et){const ue=this.getScrollable(),{scrollDirection:me,rtlEnabled:Te}=this.option(),je={top:0,left:0},Ne=(0,L.Y)(R.JU,et);if(me!==R.lm){const lt=(0,d.A)(ue.container()).get(0);je.left=Te?Ne.left+et.offsetWidth-lt.clientWidth:Ne.left}me!==R.fK&&(je.top=Ne.top),ue.scrollTo(je)},_expandNodes(et){if(!et||0===et.length)return(0,v.cY)().resolve().promise();const ue=(0,v.cY)(),me=et.map(Te=>this.expandItem(Te));return v.z7.apply(d.A,me).done(()=>ue.resolve()).fail(()=>ue.reject()),ue.promise()},_dispose(){this.callBase(),clearTimeout(this._setFocusedItemTimeout),this._allItemsExpandedHandler=null}});C.A.setEditorClass(T.A);const tt="dx-treeview",at=`${tt}-node-container`,Vt=Ve.inherit(C.A).inherit({_addWidgetPrefix:et=>`${tt}-${et}`,_optionChanged(et){switch(et.name){case"searchValue":this._showCheckboxes()&&this._isRecursiveSelection()&&this._removeSelection(),this._initDataAdapter(),this._updateSearch(),this._repaintContainer(),this.option("focusedElement",null);break;case"searchExpr":this._initDataAdapter(),this.repaint();break;case"searchMode":this.option("expandNodesRecursive")?this._updateDataAdapter():this._initDataAdapter(),this.repaint();break;default:this.callBase(et)}},_updateDataAdapter(){this._setOptionWithoutOptionChange("expandNodesRecursive",!1),this._initDataAdapter(),this._setOptionWithoutOptionChange("expandNodesRecursive",!0)},_getDataAdapterOptions(){return(0,m.X)(this.callBase(),{searchValue:this.option("searchValue"),searchMode:this.option("searchMode")||"contains",searchExpr:this.option("searchExpr")})},_getNodeContainer(){return this.$element().find(`.${at}`).first()},_updateSearch(){if(this._searchEditor){const et=this._getSearchEditorOptions();this._searchEditor.option(et)}},_repaintContainer(){const et=this._getNodeContainer();let ue;et.length&&(et.empty(),ue=this._dataAdapter.getRootNodes(),this._renderEmptyMessage(ue),this._renderItems(et,ue),this._fireContentReadyAction())},_focusTarget(){return this._itemContainer(this.option("searchEnabled"))},_cleanItemContainer(){this.$element().empty()},_itemContainer(et,ue){return ue??(ue=this._selectAllEnabled()),ue?this._getNodeContainer():this._scrollable&&et?(0,d.A)(this._scrollable.content()):this.callBase()},_addWidgetClass(){this.$element().addClass(this._widgetClass())},_clean(){this.callBase(),this._removeSearchBox()}});(0,S.A)("dxTreeView",Vt);const Nt=Vt},1767:(En,it,p)=>{"use strict";p.d(it,{L:()=>k,_:()=>e});var S=p(656),d=p(4303),m=p(8025),T=p(3349),C=p(8914);let e=(()=>{class w extends T.PF{_watcherHelper;_idh;instance=null;get adapter(){return this._getOption("adapter")}set adapter(v){this._setOption("adapter",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get name(){return this._getOption("name")}set name(v){this._setOption("name",v)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(v){this._setOption("validationGroup",v)}get validationRules(){return this._getOption("validationRules")}set validationRules(v){this._setOption("validationRules",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}onDisposing;onInitialized;onOptionChanged;onValidated;adapterChange;elementAttrChange;heightChange;nameChange;validationGroupChange;validationRulesChange;widthChange;get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(v){this.setChildren("validationRules",v)}parentElement;constructor(v,x,b,B,j,F,X,U,Z){super(v,x,b,B,U,Z),this._watcherHelper=B,this._idh=j,this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"validated",emit:"onValidated"},{emit:"adapterChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"nameChange"},{emit:"validationGroupChange"},{emit:"validationRulesChange"},{emit:"widthChange"}]),this.parentElement=this.getParentElement(F),this._idh.setHost(this),X.setHost(this)}_createInstance(v,x){return new m.A(this.parentElement?this.parentElement:v,x)}getParentElement(v){if(v)return v.getHost().element.nativeElement}ngOnDestroy(){this._destroyWidget()}ngOnChanges(v){super.ngOnChanges(v),this.setupChanges("validationRules",v)}setupChanges(v,x){v in this._optionsToUpdate||this._idh.setup(v,x)}ngDoCheck(){this._idh.doCheck("validationRules"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(v,x){let b=this._idh.setupSingle(v,x),B=null!==this._idh.getChanges(v,x);(b||B)&&super._setOption(v,x)}static \u0275fac=function(x){return new(x||w)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.$M),d.rXU(T.fH,13),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:w,selectors:[["dx-validator"]],contentQueries:function(x,b,B){if(1&x&&d.wni(B,C.Inh,4),2&x){let j;d.mGM(j=d.lsd())&&(b.validationRulesChildren=j)}},inputs:{adapter:"adapter",elementAttr:"elementAttr",height:"height",name:"name",validationGroup:"validationGroup",validationRules:"validationRules",width:"width"},outputs:{onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValidated:"onValidated",adapterChange:"adapterChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",nameChange:"nameChange",validationGroupChange:"validationGroupChange",validationRulesChange:"validationRulesChange",widthChange:"widthChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH,T.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(x,b){},encapsulation:2})}return w})(),k=(()=>{class w{static \u0275fac=function(x){return new(x||w)};static \u0275mod=d.$C({type:w});static \u0275inj=S.G2t({imports:[C.nz1,C.$lK,T.p_,T.xZ,C.nz1,C.$lK,T.xZ]})}return w})()},1773:(En,it,p)=>{"use strict";p.d(it,{A:()=>k});var S=p(6110),d=p(6054),m=p(8684),T=p(2720),C=p(4356);const k=function(){let w;const P=(0,m.A)(),v=P.add,x=P.remove;if(!(0,S.Vd)())return P;const b=function(){const X=(0,S.zk)();return{width:X.innerWidth,height:X.innerHeight}},B=function(){const X=b();if(X.width===w.width&&X.height===w.height)return;let U;X.width===w.width&&(U="height"),X.height===w.height&&(U="width"),w=X,P.fire(U)},j=(0,C.A)(function(){w=b()});let F;return P.add=function(){const X=v.apply(P,arguments);return j(),T.A.add(function(){!F&&P.has()&&(F=d.A.listen((0,S.zk)(),"resize",B))}),X},P.remove=function(){const X=x.apply(P,arguments);return!P.has()&&F&&(F(),F=void 0),X},P}()},1830:(En,it,p)=>{"use strict";p.d(it,{$P:()=>C,Gv:()=>v,Kb:()=>F,Kg:()=>w,Lm:()=>m,NW:()=>d,O4:()=>T,O9:()=>e,Qd:()=>b,RI:()=>x,Tn:()=>k,kf:()=>P,l6:()=>j,sO:()=>B,uF:()=>U,xH:()=>Z,yL:()=>X});const S={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string"},d=function(A){if(null===A)return"null";const M=Object.prototype.toString.call(A);return"object"==typeof A?S[M]||"object":typeof A},m=function(A){return"boolean"==typeof A},T=function(A){return P(A)&&-1!==A.toString().indexOf("e")},C=function(A){return"date"===d(A)},e=function(A){return null!=A},k=function(A){return"function"==typeof A},w=function(A){return"string"==typeof A},P=function(A){return"number"==typeof A&&isFinite(A)||!isNaN(A-parseFloat(A))},v=function(A){return"object"===d(A)},x=function(A){let M;for(M in A)return!1;return!0},b=function(A){if(!A||"object"!==d(A))return!1;const M=Object.getPrototypeOf(A);if(!M)return!0;const H=Object.hasOwnProperty.call(M,"constructor")&&M.constructor;return"function"==typeof H&&Object.toString.call(H)===Object.toString.call(Object)},B=function(A){return-1===["object","array","function"].indexOf(d(A))},j=function(A){return null!=A&&A===A.window},F=function(A){return!(!A||!A.jquery&&!A.dxRenderer)},X=function(A){return!!A&&k(A.then)},U=function(A){return!!A&&k(A.done)&&k(A.fail)},Z=function(A){return!(!A||!A.preventDefault)}},1832:(En,it,p)=>{"use strict";p.d(it,{A1:()=>Z,D2:()=>F,GX:()=>w,KR:()=>B,bG:()=>U,gR:()=>j,ki:()=>b,tc:()=>v,wr:()=>P});var S=p(6054),d=p(5704),m=p(2660),T=p(1830),C=p(6110);const e=(0,C.zk)(),w=()=>{const A=S.A.getActiveElement();var M;A&&A!==S.A.getBody()&&(null===(M=A.blur)||void 0===M||M.call(A))},P=()=>{const A=e.getSelection();if(A&&"Caret"!==A.type)if(A.empty)A.empty();else if(A.removeAllRanges)try{A.removeAllRanges()}catch{}},v=(A,M)=>{const H=(0,d.A)(A),J=(0,d.A)(M);if(H[0]===J[0])return H[0];const R=H.parents(),L=J.parents();for(let Q=-Math.min(R.length,L.length);Q<0;Q++)if(R.get(Q)===L.get(Q))return R.get(Q)},b=A=>{let M=(0,T.O9)(A)&&(A.nodeType||(0,T.Kb)(A))?(0,d.A)(A):(0,d.A)("<div>").html(A).contents();return 1===M.length&&(M.is("script")?M=b(M.html().trim()):M.is("table")&&(M=M.children("tbody").contents())),M},B=(A,M)=>{const H=A.originalEvent&&A.originalEvent.clipboardData||e.clipboardData;if(!M)return H&&H.getData("Text");H&&H.setData("Text",M)},j=(A,M)=>!!M&&((0,T.l6)(A)?j(A.document,M):A.contains(M)||j(A,(A=>{if(!A.getRootNode)return;const M=A.getRootNode().host;return(0,T.Kg)(M)?void 0:M})(M))),F=(A,M,H)=>{const J=e.getComputedStyle((0,d.A)(A).get(0)),R=H&&H.includePaddings;return(0,d.A)("<div>").text(M).css({fontStyle:J.fontStyle,fontVariant:J.fontVariant,fontWeight:J.fontWeight,fontSize:J.fontSize,fontFamily:J.fontFamily,letterSpacing:J.letterSpacing,border:J.border,paddingTop:R?J.paddingTop:"",paddingRight:R?J.paddingRight:"",paddingBottom:R?J.paddingBottom:"",paddingLeft:R?J.paddingLeft:"",visibility:"hidden",whiteSpace:"pre",position:"absolute",float:"left"})},U=(A,M)=>{if(M&&M[0])return M.is(A)?A:((0,m.__)(M,(H,J)=>{((A,M)=>{M&&S.A.insertElement(A.parentNode,M,A)})(A[0],J)}),A.remove(),M)},Z=A=>{const M=A?.get(0),H=M?.getRootNode().host;return!!(0,d.A)(H||M).closest((0,C.zk)().document).length}},1848:(En,it,p)=>{"use strict";p.d(it,{Q:()=>d});const d=(0,p(5652).q6)(void 0)},1926:(En,it,p)=>{"use strict";p.d(it,{A:()=>C});var S=p(3090),d=p(1830),m=p(2660),T=p(3538);function C(e){const k=T.A.inherit(e);let w=k,P=new w(e);const v={},x=function(b,B){(0,m.__)(b,function(j){(0,d.Tn)(P[j])?(B||!e[j])&&(e[j]=function(){return P[j].apply(e,arguments)}):(B&&(v[j]=e[j]),e[j]=P[j])})};return x(e,!0),e.inject=function(b){w=w.inherit(b),P=new w,x(b)},e.resetInjection=function(){(0,S.X)(e,v),w=k,P=new k},e}},1955:(En,it,p)=>{"use strict";var S=p(5732),d=p(2145),m=p(656),T=p(6610),C=p(7829),e=p(4303),k=p(2978),w=p(2746);class P extends S.qj{supportsDOMEvents=!0;static makeCurrent(){(0,S.ig)(new P)}onAndCancel(t,n,s,r){return t.addEventListener(n,s,r),()=>{t.removeEventListener(n,s,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function x(){return v=v||document.head.querySelector("base"),v?v.getAttribute("href"):null}();return null==n?null:function b(o){return new URL(o,document.baseURI).pathname}(n)}resetBaseElement(){v=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,d.b)(document.cookie,t)}}let v=null,j=(()=>{class o{build(){return new XMLHttpRequest}static \u0275fac=function(s){return new(s||o)};static \u0275prov=m.jDH({token:o,factory:o.\u0275fac})}return o})(),F=(()=>{class o extends w.Hl{constructor(n){super(n)}supports(n){return!0}addEventListener(n,s,r,l){return n.addEventListener(s,r,l),()=>this.removeEventListener(n,s,r,l)}removeEventListener(n,s,r,l){return n.removeEventListener(s,r,l)}static \u0275fac=function(s){return new(s||o)(m.KVO(m.qQL))};static \u0275prov=m.jDH({token:o,factory:o.\u0275fac})}return o})();const X=["alt","control","meta","shift"],U={"\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"},Z={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let A=(()=>{class o extends w.Hl{constructor(n){super(n)}supports(n){return null!=o.parseEventName(n)}addEventListener(n,s,r,l){const E=o.parseEventName(s),N=o.eventCallback(E.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,S.rb)().onAndCancel(n,E.domEventName,N,l))}static parseEventName(n){const s=n.toLowerCase().split("."),r=s.shift();if(0===s.length||"keydown"!==r&&"keyup"!==r)return null;const l=o._normalizeKey(s.pop());let E="",N=s.indexOf("code");if(N>-1&&(s.splice(N,1),E="code."),X.forEach(ze=>{const dt=s.indexOf(ze);dt>-1&&(s.splice(dt,1),E+=ze+".")}),E+=l,0!=s.length||0===l.length)return null;const ae={};return ae.domEventName=r,ae.fullKey=E,ae}static matchEventFullKeyCode(n,s){let r=U[n.key]||n.key,l="";return s.indexOf("code.")>-1&&(r=n.code,l="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),X.forEach(E=>{E!==r&&(0,Z[E])(n)&&(l+=E+".")}),l+=r,l===s)}static eventCallback(n,s,r){return l=>{o.matchEventFullKeyCode(l,n)&&r.runGuarded(()=>s(l))}}static _normalizeKey(n){return"esc"===n?"escape":n}static \u0275fac=function(s){return new(s||o)(m.KVO(m.qQL))};static \u0275prov=m.jDH({token:o,factory:o.\u0275fac})}return o})();const K=(0,k.oH4)(k.fpN,"browser",[{provide:e.Agw,useValue:T.AJ},{provide:e.PLl,useValue:function L(){P.makeCurrent()},multi:!0},{provide:m.qQL,useFactory:function Q(){return(0,e._9u)(document),document}}]),re=[{provide:e.$Ln,useClass:class B{addToWindow(t){m.laP.getAngularTestability=(s,r=!0)=>{const l=t.findTestabilityInTree(s,r);if(null==l)throw new m.buA(5103,!1);return l},m.laP.getAllAngularTestabilities=()=>t.getAllTestabilities(),m.laP.getAllAngularRootElements=()=>t.getAllRootElements(),m.laP.frameworkStabilizers||(m.laP.frameworkStabilizers=[]),m.laP.frameworkStabilizers.push(s=>{const r=m.laP.getAllAngularTestabilities();let l=r.length;const E=function(){l--,0==l&&s()};r.forEach(N=>{N.whenStable(E)})})}findTestabilityInTree(t,n,s){return null==n?null:t.getTestability(n)??(s?(0,S.rb)().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}}},{provide:e.dOL,useClass:e.NYb,deps:[e.SKi,e.giA,e.$Ln]},{provide:e.NYb,useClass:e.NYb,deps:[e.SKi,e.giA,e.$Ln]}],be=[{provide:m.GBX,useValue:"root"},{provide:m.zcH,useFactory:function G(){return new m.zcH}},{provide:w.Q5,useClass:F,multi:!0,deps:[m.qQL]},{provide:w.Q5,useClass:A,multi:!0,deps:[m.qQL]},w.mE,w.CI,w.EU,{provide:e._9s,useExisting:w.mE},{provide:d.N,useClass:j},[]];let ce=(()=>{class o{constructor(){}static \u0275fac=function(s){return new(s||o)};static \u0275mod=e.$C({type:o});static \u0275inj=m.G2t({providers:[...be,...re],imports:[C.MD,k.Hbi]})}return o})();var Re=p(9079),Se=p(3746),De=p(7995),Pe=p(1281);var Ce=p(242);function ye(o,t){if(1&o&&(e.j41(0,"div",10)(1,"a",11),e.EFF(2),e.k0s()()),2&o){const n=e.XpG(2);e.AVh("smart-banner-button-dark",n.isDarkButtonBackground()),e.R7$(),e.Y8G("href",n.installOpenLink,e.B4B),e.R7$(),e.SpI(" ",n.scope.network.getResourceOrKeyName(n.scope.profile.hasPushToken?"web_smart_banner_open":"web_smart_banner_install")," ")}}function Me(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.nrm(4,"i",4),e.j41(5,"div",5),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.toggleSmartBanner())}),e.k0s()(),e.j41(6,"div",6),e.nrm(7,"img",7),e.k0s(),e.j41(8,"div",8)(9,"span"),e.EFF(10),e.k0s()()(),e.nVh(11,ye,3,4,"div",9),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.AVh("redesign-icon-size",n.isRedesign),e.R7$(6),e.Y8G("src",n.getNetworkIconBigUrl(),e.B4B),e.R7$(3),e.JRh(n.scope.currentScope.network.name),e.R7$(),e.vxM(n.installOpenLink.length?11:-1)}}let _e=(()=>{var o;class t{constructor(s,r){this.deviceService=r,this.isMobile=!1,this.isHidden=!1,this.isRedesign=!1,this.getIsMobile=()=>window.innerWidth<De.B,this.isDarkButtonBackground=()=>(0,Pe.UP)("smart-banner-button")===De.K.dark,this.scopeService=s,this.scope=s.getScope(),this.isMobile=this.getIsMobile(),this.userAgentType=this.deviceService.getUserAgentInfo(),this.isHidden=this.isSmartBannerHiddenWithCookie(),this.isRedesign="Redesign2024"==this.scope.network.settings.configurations?.contentRenderEngine;const{appLinkAndroid:l,appLinkITunes:E}=this.scope?.currentScope?.network?.settings??{};this.installOpenLink=(this.userAgentType.isAndroid?l:E)??"",this.updateRootPadding()}onResize(){this.isMobile=this.getIsMobile()}showSmartBanner(){if(!this.scope.currentScope.network.settings.configurations.showAppSmartBanner||!this.isMobile||this.isHidden)return!1;const{isApp:r,isAndroid:l,isIos:E,isSafari:N,isOtherBrowser:ae}=this.userAgentType;return!r&&!!(l||E&&!N||ae)}toggleSmartBanner(){this.isHidden=!0,this.updateRootPadding();const s=new Date;!function W(o,t){const n=new Date;n.setTime(n.getTime()+6048e5),document.cookie=o+"="+t+"; expires="+n.toUTCString()+"; path=/"}("appSmartBannerHiddenUntil",new Date(s.setMonth(s.getMonth()+1)).toISOString())}isSmartBannerHiddenWithCookie(){const s=function ie(o){const n=("; "+document.cookie).split("; "+o+"=");if(2===n.length)return n.pop()?.split(";").shift()}("appSmartBannerHiddenUntil");return!!s&&new Date(s)>new Date}getNetworkIconBigUrl(){const s=this.scope.currentScope.network,r=this.scope.globalSettings;var l=`${r.blobStorageCdnUrl}/${r.blobStorageContainerNameLogo}`;return s&&s.settings.networkIconBigCache?`${l}/${s.slug}/icon/big.png?cache=${s.settings.networkIconBigCache}`:`${l}/default/icon/big.png?cache=${r.defaultLogoCache}`}updateRootPadding(){let s=document.getElementById("app-smart-banner-spacer");s&&(s.style.paddingTop=this.showSmartBanner()?"90px":"0px")}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-smart-banner"]],hostBindings:function(r,l){1&r&&e.bIt("resize",function(N){return l.onResize(N)},e.tSv)},standalone:!1,decls:1,vars:1,consts:[["id","app-smart-banner"],[1,"smart-banner"],[1,"smart-banner-info"],[1,"smart-banner-info-close"],[1,"fas","fa-times"],[1,"smart-banner-info-close-touchpoint",3,"click"],[1,"smart-banner-info-icon"],[3,"src"],[1,"smart-banner-info-name"],["id","smart-banner-button",1,"smart-banner-button",3,"smart-banner-button-dark"],["id","smart-banner-button",1,"smart-banner-button"],[3,"href"]],template:function(r,l){1&r&&e.nVh(0,Me,12,5,"div",0),2&r&&e.vxM(l.showSmartBanner()?0:-1)},styles:["[_nghost-%COMP%]{--app-icon-size: 6rem}[_nghost-%COMP%]   .redesign-icon-size[_ngcontent-%COMP%]{--app-icon-size: 4rem}.smart-banner[_ngcontent-%COMP%]{max-width:940px;margin:0 -15px;display:flex;justify-content:space-between;align-items:center;padding:15px;height:90px;background-color:#1e1e1e;border-bottom:1px solid #ccc;color:#fff}.smart-banner-info[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;width:100%;overflow:hidden}.smart-banner-info-close[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative}.smart-banner-info-close[_ngcontent-%COMP%]   i.fa-times[_ngcontent-%COMP%]{height:12px;width:8px}.smart-banner-info-close-touchpoint[_ngcontent-%COMP%]{position:absolute;height:3rem;width:3rem;top:calc(-50% - 3px);left:calc(-50% - 7px)}.smart-banner-info-icon[_ngcontent-%COMP%]{margin:0 15px;background-color:#fff;border-radius:1rem}.smart-banner-info-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:var(--app-icon-size);height:var(--app-icon-size);border-radius:1rem;border:1px solid rgb(229,229,229)}.smart-banner-info-name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.smart-banner-info-name[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:large}.smart-banner-button[_ngcontent-%COMP%]{all:unset;background-color:var(--colorPrimary);display:flex;align-self:center;align-items:center;border-radius:2rem;height:2rem;padding:.5rem 1.5rem}.smart-banner-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{all:unset;color:#000;white-space:nowrap}.smart-banner-button-dark[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}"]}))}return o(),t})();var ke=p(65);new m.nKC("LANGS_COOKIE_CONSENT_CONFIGURATION");var de=function(o){return o[o.Analytics=0]="Analytics",o[o.ExternalLogin=1]="ExternalLogin",o[o.ExternalMedia=2]="ExternalMedia",o}(de||{});const Oe={bottomRight:"bottom-right",bottomLeft:"bottom-left"},fe_analytics="externalAnalyticsPermissions",fe_externalMedia="externalMediaPermissions",We_analytics_matomo="matomo",We_analytics_googleAnalytics="googleAnalytics",We_externalMedia_twitter="twitter",We_externalMedia_youTube="youTube",We_externalMedia_facebook="facebook",We_externalMedia_vimeo="vimeo",We_externalMedia_giphy="giphy",We_externalLogin_facebook="facebook";function Ue(o,t){1&o&&e.nrm(0,"i",0)}let Ve=(()=>{var o;class t{constructor(s,r){this.type=0,this.isAssetListItem=!1,this.isRedesign=!1,this.http=new ke.Qq(r),this.scopeService=s,this.scope=s.getScope(),this.miniScope=s.getMiniScope(),this.isRedesign="Redesign2024"==this.scope.currentScope.network?.settings?.configurations?.contentRenderEngine}getTypeResource(){return tt[this.type]?.resource??""}accept(){const s=(new Date).toISOString(),r={...this.scope?.profile?.settings?.externalMediaPermissions,[tt[this.type]?.id]:{granted:!0,lastUpdate:s}};this.http.post(`${this.miniScope.apiEndpoint}Profiles/ExternalMediaCookiesConsent`,r).toPromise().then(()=>{window.location.href=window.location.href.split("#")[0]})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(ke.JV))},this.\u0275cmp=e.VBU({type:t,selectors:[["cookie-external-media-info"]],inputs:{type:"type",isAssetListItem:"isAssetListItem"},standalone:!1,decls:14,vars:10,consts:[["aria-hidden","true",1,"fa","fa-exclamation-triangle"],["type","button",1,"btn","btn-green",3,"click"]],template:function(r,l){1&r&&(e.j41(0,"div"),e.nVh(1,Ue,1,0,"i",0),e.j41(2,"p")(3,"span")(4,"strong"),e.EFF(5),e.k0s()(),e.nrm(6,"br")(7,"br"),e.j41(8,"span"),e.EFF(9),e.k0s(),e.nrm(10,"br")(11,"br"),e.j41(12,"button",1),e.bIt("click",function(){return l.accept()}),e.EFF(13),e.k0s()()()),2&r&&(e.AVh("assetListItem",l.isAssetListItem)("cookies-external-media-info-redesign-container",l.isRedesign)("cookies-external-media-info-legacy-container",!l.isRedesign),e.R7$(),e.vxM(l.isAssetListItem?-1:1),e.R7$(4),e.JRh(l.getTypeResource()),e.R7$(4),e.JRh(l.scope.network.getResourceOrKeyName("web_cookie_consent_external_media_info")),e.R7$(4),e.JRh(l.scope.network.getResourceOrKeyName("web_cookie_consent_external_media_info_accept")))},styles:["[_nghost-%COMP%]{--padding: 2.5rem}.cookies-external-media-info-legacy-container[_ngcontent-%COMP%]{background-color:#f0f0f0;border-radius:10px;display:flex;align-items:center;padding:var(--padding)}.cookies-external-media-info-legacy-container[_ngcontent-%COMP%]   i.fa[_ngcontent-%COMP%]{margin-right:var(--padding);font-size:x-large}.cookies-external-media-info-legacy-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-right:.5rem}.cookies-external-media-info-legacy-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{all:unset;cursor:pointer}.cookies-external-media-info-legacy-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.cookies-external-media-info-redesign-container[_ngcontent-%COMP%]{background-color:var(--color1-alpha20);border-radius:10px;display:flex;align-items:center;padding:var(--padding)}.cookies-external-media-info-redesign-container[_ngcontent-%COMP%]   i.fa[_ngcontent-%COMP%]{margin-right:var(--padding);font-size:x-large}.cookies-external-media-info-redesign-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-right:.5rem}.cookies-external-media-info-redesign-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{all:unset;cursor:pointer}.cookies-external-media-info-redesign-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.assetListItem[_ngcontent-%COMP%]{height:300px;overflow:hidden;line-break:normal}@media (max-width: 768px){.assetListItem[_ngcontent-%COMP%]{height:360px}}"]}))}return o(),t})();const tt={4:{resource:"Twitter",id:We_externalMedia_twitter},5:{resource:"YouTube",id:We_externalMedia_youTube},6:{resource:"Facebook",id:We_externalMedia_facebook},7:{resource:"Vimeo",id:We_externalMedia_vimeo},10:{resource:"Giphy",id:We_externalMedia_giphy}};var at=p(2928),Vt=p(4882),qe=p(3008),Nt=p(8030);const et=o=>({"root-navigation-btn-active":o});function ue(o,t){if(1&o&&(e.j41(0,"span",2),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Lme("",n.badge,"",n.connected?"":" \u26a0")}}let me=(()=>{var o;class t{constructor(s,r,l,E,N,ae){this.router=r,this.chatRelayService=l,this.badgeService=E,this.cdr=N,this.ngZone=ae,this.routeActive=!1,this.badge=null,this.currentLocation=null,this.sourceTimes=(0,at.Y)(500),this.connected=!1,this.subscriptions=[],this.scope=s.getScope(),this.currentLocation=window.location.href,this.subs=this.sourceTimes.subscribe(ze=>{this.routeActive=!!window.location.href.includes("/chat"),this.badge=this.badgeService.badge}),this.subscriptions.push(this.badgeService.badgeUpdates$.subscribe(ze=>{this.badge=ze.totalCount}),this.chatRelayService.isConnected$.subscribe(ze=>{this.connected=ze}))}ngOnInit(){this.badge=this.badgeService.badge}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}openChat(){this.router.navigate(["/chat",""]),this.routeActive=!0}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Vt.Ix),e.rXU(qe.p),e.rXU(Nt.L),e.rXU(k.gRc),e.rXU(e.SKi))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-chat-bubble"]],standalone:!1,decls:3,vars:5,consts:[[1,"root-navigation-btn","visible-isRegistered",3,"click","ngClass"],[3,"innerHtml"],[1,"badge","root-navigation-btn-notificationBadge"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.bIt("click",function(){return l.openChat()}),e.nrm(1,"span",1),e.nVh(2,ue,2,2,"span",2),e.k0s()),2&r&&(e.Y8G("ngClass",e.eq3(3,et,l.routeActive)),e.R7$(),e.Y8G("innerHtml",l.scope.network.getResourceOrKeyName("web_root_root_chat"),e.npT),e.R7$(),e.vxM(0!=l.badge?2:-1))},dependencies:[C.YU],encapsulation:2}))}return o(),t})();var Te=p(2923),je=p(6104),Ne=p(3176),lt=p(4312),Qe=p(7543),Ct=p(3696);let yt=(()=>{var o;class t{constructor(s,r,l,E,N){this.chatRoomCache=s,this.scopeService=r,this.authenticationService=l,this.messageCache=E,this.badgeService=N,this.authReceived=!1,this.cacheRebuiltSource=new je.B,this.cacheRebuilt$=this.cacheRebuiltSource.asObservable(),this.storeSynchedSource=new je.B,this.storeSynced$=this.storeSynchedSource.asObservable(),this.errorsOnUpdate=!1,this.roomCounts={},this.scope=this.scopeService.getScope(),this.database=new Ne.h(this.scope.currentScope.chapter.id,this.scope.network.id),this.roomCounts=this.badgeService.roomBadges,this.badgeService.badgeUpdates$.subscribe(ae=>{t.cacheRebuilding||(this.roomCounts=ae.badges)}),this.authenticationService.isAuthenticated$.subscribe(ae=>{this.authReceived||(this.authReceived=!0,this.updateOrInitCache())})}isInitialized(){return t.cacheInitialized}rebuildCache(){this.chatRoomCache.rebuildCacheAndGetArrayStore(this).then(s=>{s.load().then(r=>{let l=1;var E=new Gt;E.completed=!1,E.current=l,E.total=r.length,E.message="Start",this.cacheRebuiltSource.next(E),r.orderByDescending(N=>N.lastMessage?.createdOn).toArray().forEach(N=>{this.messageCache.rebuildCacheAndGetStore(N.id).then(ae=>{var ze=new Gt;ze.completed=!1,ze.current=l,ze.total=r.length,ze.message=N.name,l==r.length&&(t.cacheRebuilding=!1,ze.completed=!0,t.cacheInitialized=!0,this.cacheRebuiltSource.next(ze)),this.cacheRebuiltSource.next(ze),l++},ae=>{this.errorsOnUpdate=!0})})})})}updateOrInitCache(){if(t.cacheRebuilding)return t.cacheRebuilding;t.cacheRebuilding=!0;var s=new Date;return this.database.synchTable.get(t.syncEntryKey).then(r=>{if(r){var l=new Gt;l.completed=!1,l.current=1,l.total=1,l.message="Local cache initialized",this.cacheRebuiltSource.next(l),this.badgeService.loadBadges().then(E=>{this.roomCounts=E.badges,this.updateStores(r.synchStartedOn).then(N=>{this.database.synchTable.update(t.syncEntryKey,{id:t.syncEntryKey,value:"",synchStartedOn:s,syncCompletedOn:new Date,jsonValue:""}).then(ae=>{})})})}else{let E=new Date("1.1.1970");this.database.synchTable.add({id:t.syncEntryKey,value:"",synchStartedOn:E,jsonValue:""}).then(N=>{var ae=new Gt;ae.completed=!1,ae.current=1,ae.total=1,ae.message="Local cache initialized",this.cacheRebuiltSource.next(ae),this.badgeService.loadBadges().then(ze=>{this.roomCounts=ze.badges,this.updateStores(E).then(dt=>{this.database.synchTable.update(t.syncEntryKey,{id:t.syncEntryKey,value:"",synchStartedOn:E,syncCompletedOn:new Date,jsonValue:""}).then(Kt=>{})})})})}}),t.cacheRebuilding}updateOrInitCacheOld(){if(t.cacheRebuilding)return t.cacheRebuilding;t.cacheRebuilding=!0;var s=new Date;return this.database.synchTable.get(t.syncEntryKey).then(r=>{if(r){var l=new Gt;l.completed=!0,l.current=1,l.total=1,l.message="Local cache initialized",this.cacheRebuiltSource.next(l),this.badgeService.loadBadges().then(E=>{this.roomCounts=E.badges,this.updateStores(r.synchStartedOn).then(N=>{this.database.synchTable.update(t.syncEntryKey,{id:t.syncEntryKey,value:"",synchStartedOn:s,syncCompletedOn:new Date,jsonValue:""}).then(ae=>{})})})}else this.database.synchTable.add({id:t.syncEntryKey,value:"",synchStartedOn:s,jsonValue:""}).then(E=>{this.rebuildCache()})}),t.cacheRebuilding}updateStores(s){return this.chatRoomCache.rebuildCacheAndGetArrayStore(this).then(r=>{r.load().then(l=>{let E=1;var N=new Gt;N.completed=!1,N.current=E,N.total=l.length,N.message="Start",this.storeSynchedSource.next(N),this.cacheRebuiltSource.next(N),l.orderByDescending(ae=>ae.lastMessage?.createdOn).toArray().forEach(ae=>{let ze=0;try{ze=this.badgeService.roomBadges[ae.id.toString()].allMessagesCount}catch{}this.messageCache.updateStore(ae.id,s,ze).then(dt=>{var Kt=new Gt;Kt.completed=!1,Kt.current=E,Kt.total=l.length,Kt.message="Room messages resynched for room: ("+E+"/"+l.length+") "+ae.name,E==l.length&&(t.cacheRebuilding=!1,Kt.completed=!0,t.cacheInitialized=!0,this.storeSynchedSource.next(Kt),this.cacheRebuiltSource.next(Kt)),E++})})})})}static#e=o=()=>(this.cacheRebuilding=!1,this.cacheInitialized=!1,this.syncEntryKey="ChatCacheLastUpdateKey",this.\u0275fac=function(r){return new(r||t)(m.KVO(lt.D),m.KVO(Se.A),m.KVO(Qe.u),m.KVO(Ct.Z),m.KVO(Nt.L))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();class Gt{constructor(t,n,s,r){this.total=0,this.completed=!1,this.current=0,this.message="",this.completed=n??!1,this.current=r??0,this.message=t??"",this.total=s??0}}var ft=p(5452);let nn=(()=>{var o;class t{constructor(s,r,l,E,N){this.scopeService=s,this.router=r,this.chatRelay=l,this.cacheManager=E,this.chatRouteGuard=N,this.subscriptions=[],this.cacheRebuilt=!1,this.roomCount=0,this.current=0,this.message="Initializing chat system",this.windowWidth=720,this.isMobile=!0,this.isRedesign=!1,this.chatRouteGuard.canUseChat(),this.cacheRebuilt=this.cacheManager.isInitialized(),this.chapter=this.scopeService.getScope().currentChapter.name,this.scope=this.scopeService.getScope(),this.isRedesign="Redesign2024"==this.scope.network.settings.configurations?.contentRenderEngine,this.message=this.scope.network.getResourceOrKeyName("web_chat_cache_initializing_will_start"),this.subscriptions.push(this.cacheManager.cacheRebuilt$.subscribe(dt=>{dt.completed!=this.cacheRebuilt&&(this.cacheRebuilt=dt.completed,this.cacheRebuilt&&(t.initialized=!0)),this.message=dt.message,dt.total!=this.roomCount&&(this.roomCount=dt.total),dt.current!=this.current&&(this.current=dt.current)}));const ae=window.location.href.indexOf("/chat")+1;let ze;(0,Te.Hg)(s.getScope().currentScope.network.settings.languageCode),ze=0===ae?["chat"]:window.location.href.substring(ae).split("/"),r.navigate(ze)}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}onResize(){this.windowWidth=window.innerWidth,this.isMobile=this.windowWidth<De.B}static#e=o=()=>(this.initialized=!1,this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Vt.Ix),e.rXU(qe.p),e.rXU(yt),e.rXU(ft.g))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-chat-home"]],hostBindings:function(r,l){1&r&&e.bIt("resize",function(N){return l.onResize(N)},e.tSv)},standalone:!1,decls:3,vars:1,consts:[[3,"ngClass"]],template:function(r,l){1&r&&(e.nrm(0,"div",0),e.j41(1,"div"),e.nrm(2,"router-outlet"),e.k0s()),2&r&&e.Y8G("ngClass",l.isRedesign?"":"navbar-spacer")},dependencies:[C.YU,Vt.n3],styles:[".navbar-spacer[_ngcontent-%COMP%]{height:140px}.chatRouterContainerLoadPane[_ngcontent-%COMP%]{text-align:center;vertical-align:middle;padding:20%}[_nghost-%COMP%]     .dx-list{font-family:var(--fontChat)}@media (max-width: 991px){.navbar-spacer[_ngcontent-%COMP%]{height:0}}"]}))}return o(),t})(),rn=(()=>{var o;class t{constructor(s,r,l,E,N){this.scopeService=s,this.router=r,this.chatRelay=l,this.cacheManager=E,this.chatRouteGuard=N,this.subscriptions=[],this.cacheRebuilt=!1,this.roomCount=0,this.current=0,this.message="Initializing chat system",this.windowWidth=720,this.isMobile=!0,this.isRedesign=!1,this.chatRouteGuard.canUseChat(),this.cacheRebuilt=this.cacheManager.isInitialized(),this.chapter=this.scopeService.getScope().currentChapter.name,this.scope=this.scopeService.getScope(),this.isRedesign="Redesign2024"==this.scope.network.settings.configurations?.contentRenderEngine,this.message=this.scope.network.getResourceOrKeyName("web_chat_cache_initializing_will_start"),this.subscriptions.push(this.cacheManager.cacheRebuilt$.subscribe(dt=>{dt.completed!=this.cacheRebuilt&&(this.cacheRebuilt=dt.completed,this.cacheRebuilt&&(t.initialized=!0)),this.message=dt.message,dt.total!=this.roomCount&&(this.roomCount=dt.total),dt.current!=this.current&&(this.current=dt.current)}));const ae=window.location.href.indexOf("/chat")+1;let ze;(0,Te.Hg)(s.getScope().currentScope.network.settings.languageCode),ze=0===ae?["chat"]:window.location.href.substring(ae).split("/"),r.navigate(ze)}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}onResize(){this.windowWidth=window.innerWidth,this.isMobile=this.windowWidth<De.B}static#e=o=()=>(this.initialized=!1,this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Vt.Ix),e.rXU(qe.p),e.rXU(yt),e.rXU(ft.g))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-chat-home-legacy"]],hostBindings:function(r,l){1&r&&e.bIt("resize",function(N){return l.onResize(N)},e.tSv)},standalone:!1,decls:3,vars:1,consts:[[3,"ngClass"]],template:function(r,l){1&r&&(e.nrm(0,"div",0),e.j41(1,"div"),e.nrm(2,"router-outlet"),e.k0s()),2&r&&e.Y8G("ngClass",l.isRedesign?"":"navbar-spacer")},dependencies:[C.YU,Vt.n3],styles:[".navbar-spacer[_ngcontent-%COMP%]{height:101px}.chatRouterContainerLoadPane[_ngcontent-%COMP%]{text-align:center;vertical-align:middle;padding:20%}[_nghost-%COMP%]     .dx-list{font-family:var(--fontChat)}@media (max-width: 991px){.navbar-spacer[_ngcontent-%COMP%]{height:0}}"]}))}return o(),t})();var Mn=p(8375);let On=(()=>{var o;class t{constructor(s){this.keepAlive=s,this.connected=!1,this.subscriptions=[],this.subscriptions.push(this.keepAlive.isConnected$.subscribe(r=>{this.connected=r}))}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}ngOnInit(){}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Mn.S))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-user-vitals"]],standalone:!1,decls:0,vars:0,template:function(r,l){},encapsulation:2}))}return o(),t})();var ji=p(281),Mi=function(o){return o[o.None=0]="None",o[o.BuiltIn=1]="BuiltIn",o[o.CookieBot=2]="CookieBot",o[o.Usercentrics=3]="Usercentrics",o[o.Simple=4]="Simple",o}(Mi||{}),Vo=p(3110),Co=p.n(Vo);const ti={position:Oe.bottomRight,fallsbackLang:"en",header:"web_cookie_consent_title",text:"web_cookie_consent_text",animationDuration:800,buttons:{accept:"web_cookie_consent_accept_all",acceptSome:"web_cookie_consent_accept_some",reject:"web_cookie_consent_reject_all",saveAndClose:"web_cookie_consent_save_and_close",back:"web_cookie_consent_back"},links:[{caption:"web_cookie_consent_caption_pp",navigate:"pp"},{caption:"web_cookie_consent_caption_imprint",navigate:"imprint"}],settings:{caption:"web_cookie_consent_settings_caption",header:"web_cookie_consent_settings_title",text:"web_cookie_consent_settings_text",tabs:[{id:fe_externalMedia,header:"web_cookie_consent_settings_tabs_external_media_title",caption:"web_cookie_consent_settings_tabs_external_media_caption",text:"web_cookie_consent_settings_tabs_external_media_text",providersHeader:"web_cookie_consent_settings_providers_title",apiTarget:"ExternalMediaCookiesConsent",isChecked:!1,providers:[{caption:"Youtube",id:We_externalMedia_youTube,type:de.ExternalMedia,isChecked:!1,tabId:fe_externalMedia},{caption:"Facebook",id:We_externalMedia_facebook,type:de.ExternalMedia,isChecked:!1,tabId:fe_externalMedia},{caption:"Vimeo",id:We_externalMedia_vimeo,type:de.ExternalMedia,isChecked:!1,tabId:fe_externalMedia},{caption:"Giphy",id:We_externalMedia_giphy,type:de.ExternalMedia,isChecked:!1,tabId:fe_externalMedia}]},{id:fe_analytics,header:"web_cookie_consent_settings_tabs_analytics_title",caption:"web_cookie_consent_settings_tabs_analytics_caption",text:"web_cookie_consent_settings_tabs_analytics_text",providersHeader:"web_cookie_consent_settings_providers_title",apiTarget:"AnalyticsCookiesConsent",isChecked:!1,providers:[{caption:"Matomo",id:We_analytics_matomo,type:de.Analytics,isChecked:!1,tabId:fe_analytics},{caption:"Google Analytics",id:We_analytics_googleAnalytics,type:de.Analytics,isChecked:!1,tabId:fe_analytics}]},{id:"externalLoginPermissions",header:"web_cookie_consent_settings_tabs_external_login_title",caption:"web_cookie_consent_settings_tabs_external_login_caption",text:"web_cookie_consent_settings_tabs_external_login_text",providersHeader:"web_cookie_consent_settings_providers_title",apiTarget:"ExternalLoginCookiesConsent",isChecked:!1,providers:[{caption:"Facebook",id:We_externalLogin_facebook,type:de.ExternalLogin,isChecked:!1,tabId:"externalLoginPermissions"}]}]}};let Qn=(()=>{var o;class t{constructor(){this.configuration=ti,this.animationDuration=this.configuration.animationDuration,this.aosAnimateClass="aos-animate"}hide(s){return new Promise((r,l)=>{try{this.toHtmlElement(s).classList.remove(this.aosAnimateClass),window.setTimeout(()=>r(),this.animationDuration)}catch{l()}})}toHtmlElement(s){return s?.nativeElement}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac}))}return o(),t})();var ei=p(6394),Rt=p(9090);const{bottomLeft:Jt,bottomRight:Pn}=Oe;let Jn=(()=>{var o;class t{constructor(s,r,l){this.platformId=s,this.configuration=ti,this.position=this.configuration.position,this.isBrowser=(0,T.UE)(this.platformId),this.currentPosition={isLeft:Jt===this.position,isRight:Pn===this.position},this.tabs=[],this.isInitializedSource=new Rt.m,this.isInitialized$=this.isInitializedSource.asObservable(),this.http=new ke.Qq(r),this.scopeService=l,this.miniScope=l.getMiniScope(),l.observer.subscribe(E=>{this.scope=E,this.initState()})}initState(){var s=this;return(0,ei.A)(function*(){yield s.loadProfile();const r=s.configureTabs(s.configuration?.settings?.tabs);s.tabs=s.getInitialTabsState(r),s.isInitializedSource.next(!0),s.isInitializedSource.complete()})()}loadProfile(){var s=this;return(0,ei.A)(function*(){var r=yield s.http.get(`${s.miniScope.apiEndpoint}Profiles/permissionsettings`).toPromise();s.permitionSettings=r?.settings})()}getTabs(){return this.tabs}getProviders(){return this.tabs.map(s=>s.providers).reduce((s,r)=>[...s,...r])}configureTabs(s){return s?.length?s.reduce((l,E)=>{const N=E.providers.reduce((ae,ze)=>{const{id:dt}=ze,{currentChapter:Kt,currentScope:Vn}=this.scope??{};switch(E.id){case fe_analytics:switch(dt){case We_analytics_googleAnalytics:if(!Kt?.settings?.gaTrackingId)return ae;break;case We_analytics_matomo:if(!Kt?.settings?.piwikBaseUrl)return ae}break;case"externalLoginPermissions":if(dt===We_externalLogin_facebook&&!Vn?.network?.settings.availableFacebookLogin)return ae}return[...ae,ze]},[]);return N?.length?[...l,{...E,providers:N}]:l},[]):[]}getInitialTabsState(s){return s.map(r=>(r.isChecked=this.isSwitcherEnabled(r),r.providers.forEach(l=>l.isChecked=this.isCookieEnabled(l)),r))}isSwitcherEnabled(s){return"Redesign2024"==this.scope?.network.settings.configurations?.contentRenderEngine?s.providers.some(({id:r,tabId:l})=>this.isPermissionGranted(l,r)):s.providers.every(({id:r,tabId:l})=>this.isPermissionGranted(l,r))}isCookieEnabled(s){return this.isPermissionGranted(s.tabId,s.id)}save(){this.tabs.forEach(s=>{const r=(new Date).toISOString(),E={...s.providers.map(ae=>({[ae.id]:{granted:ae.isChecked,lastUpdate:r}})).reduce((ae,ze)=>({...ae,...ze}),{})};this.http.post(`${this.miniScope.apiEndpoint}Profiles/${s.apiTarget}`,E).toPromise()})}isPermissionGranted(s,r){const l=this.permitionSettings;return!!l&&(l[s][r]?.granted??!1)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(e.Agw),m.KVO(ke.JV),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac}))}return o(),t})();var Ii=p(8832);const vo=["container"],pi=()=>({standalone:!0});function Wo(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",10),e.bIt("click",function(){const r=m.eBV(n).$index,l=e.XpG(2);return m.Njj(l.tabIndex=r)}),e.j41(1,"div",11)(2,"span"),e.EFF(3),e.k0s()()()}if(2&o){const n=t.$implicit,s=t.$index,r=e.XpG(2);e.R7$(),e.AVh("cc-caption-active",r.tabIndex===s),e.R7$(2),e.SpI(" ",r.scope.network.getResourceOrKeyName(n.caption)," ")}}function To(o,t){if(1&o&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2).$implicit,s=e.XpG(2);e.R7$(),e.SpI(" ",s.scope.network.getResourceOrKeyName(n.providersHeader)," ")}}function hs(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",18)(1,"div",19)(2,"div",20),e.EFF(3),e.k0s(),e.j41(4,"div",21)(5,"label",22)(6,"input",23),e.mxI("ngModelChange",function(r){const l=m.eBV(n).$implicit;return e.DH7(l.isChecked,r)||(l.isChecked=r),m.Njj(r)}),e.k0s(),e.nrm(7,"span",24),e.k0s()()()()}if(2&o){const n=t.$implicit;e.R7$(3),e.SpI(" ",n.caption," "),e.R7$(3),e.R50("ngModel",n.isChecked),e.Y8G("ngModelOptions",e.lJ4(5,pi)),e.R7$(),e.AVh("cc-round-disabled",!n.isChecked)}}function Ps(o,t){if(1&o&&(e.j41(0,"div",12)(1,"div",13),e.EFF(2),e.k0s(),e.j41(3,"div",14),e.EFF(4),e.k0s(),e.nrm(5,"div",15),e.j41(6,"div",16),e.nVh(7,To,2,1,"div",17),e.Z7z(8,hs,8,6,"div",18,e.fX1),e.k0s()()),2&o){const n=e.XpG().$implicit,s=e.XpG(2);e.R7$(2),e.JRh(s.scope.network.getResourceOrKeyName(n.caption)),e.R7$(2),e.JRh(s.scope.network.getResourceOrKeyName(n.text)),e.R7$(3),e.vxM(n.providersHeader?7:-1),e.R7$(),e.Dyx(n.providers)}}function ls(o,t){if(1&o&&e.nVh(0,Ps,10,3,"div",12),2&o){const n=t.$index,s=e.XpG(2);e.vxM(s.tabIndex===n?0:-1)}}function Hs(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",2,0)(2,"div",3)(3,"div",4),e.Z7z(4,Wo,4,3,"div",5,e.fX1),e.k0s(),e.j41(6,"div",6),e.Z7z(7,ls,1,1,null,null,e.fX1),e.k0s(),e.j41(9,"div",7)(10,"a",8),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.back())}),e.EFF(11),e.k0s(),e.j41(12,"a",9),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.confirm())}),e.EFF(13),e.k0s()()()()}if(2&o){const n=e.XpG();e.AVh("cc-left",n.currentPosition.isLeft)("cc-right",n.currentPosition.isRight)("app",n.userClientInfo.isApp),e.BMQ("data-aos-duration",n.animationDuration),e.R7$(4),e.Dyx(n.tabs),e.R7$(3),e.Dyx(n.tabs),e.R7$(4),e.SpI(" ",n.scope.network.getResourceOrKeyName(n.backCaption)," "),e.R7$(2),e.SpI(" ",n.scope.network.getResourceOrKeyName(n.saveCaption)," ")}}let ss=(()=>{var o;class t{constructor(s,r,l){this.animationService=s,this.cookieStatusService=r,this.configuration=ti,this.currentPosition=this.cookieStatusService.currentPosition,this.isHidden=!1,this.fallsbackLang=this.configuration.fallsbackLang,this.header=this.configuration.settings?.header,this.text=this.configuration.settings?.text,this.saveCaption=this.configuration.buttons.saveAndClose,this.backCaption=this.configuration.buttons.back,this.animationDuration=this.configuration.animationDuration,this.tabs=[],this.isCookieSettingsOpened=!0,this.isCookieSettingsOpenedChange=new e.bkB,this.accept=new e.bkB,this.tabIndex=0,this.scopeService=l,this.scope=l.getScope(),this.userClientInfo=l.getUserClientInfo(),this.tabs=this.cookieStatusService.getTabs()}confirm(){this.back().finally(()=>this.accept.emit())}back(){return this.animationService.hide(this.containerRef).finally(()=>this.isHidden=!0).finally(()=>this.isCookieSettingsOpenedChange.emit(!1))}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Qn),e.rXU(Jn),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["settings"]],viewQuery:function(r,l){if(1&r&&e.GBs(vo,5,e.aKT),2&r){let E;e.mGM(E=e.lsd())&&(l.containerRef=E.first)}},inputs:{isCookieSettingsOpened:"isCookieSettingsOpened"},outputs:{isCookieSettingsOpenedChange:"isCookieSettingsOpenedChange",accept:"accept"},standalone:!1,decls:1,vars:1,consts:[["container",""],["role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","data-aos","slide-up","data-aos-easing","ease-in-out",1,"cc-mobile-view","cc-settings-container","cc-shadow","cc-window","cc-floating","cc-bottom",3,"cc-left","cc-right","app"],["role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","data-aos","slide-up","data-aos-easing","ease-in-out",1,"cc-mobile-view","cc-settings-container","cc-shadow","cc-window","cc-floating","cc-bottom"],[1,"cc-window","cc-floating","cc-settings-panel"],[1,"cc-tabs-captions"],[1,"cc-tab-caption"],[1,"cc-tab-items"],[1,"cc-compliance"],["aria-label","dismiss cookie message","role","button","tabindex","0",1,"cc-button","cc-button-reject",3,"click"],["aria-label","back message","role","button","tabindex","0",1,"cc-button","cc-button-accept",3,"click"],[1,"cc-tab-caption",3,"click"],[1,"cc-caption"],[1,"cc-tab-item"],[1,"cc-tab-header"],[1,"cc-tab-text"],[1,"cc-separator"],[1,"cc-tab-content"],[1,"cc-tab-provider-caption"],[1,"cc-tab-providers"],[1,"cc-tab-provider"],[1,"cc-provider-caption"],[1,"cc-provider-silder"],[1,"cc-slider-label"],["type","checkbox",3,"ngModelChange","ngModel","ngModelOptions"],[1,"cc-slider","cc-round"]],template:function(r,l){1&r&&e.nVh(0,Hs,14,9,"div",1),2&r&&e.vxM(l.isHidden?-1:0)},dependencies:[Ii.Zm,Ii.BC,Ii.vS],styles:['.overflow-text-3[_ngcontent-%COMP%]{word-break:break-all}.cc-right[_ngcontent-%COMP%]{right:24px}.cc-bottom[_ngcontent-%COMP%]{bottom:24px}.cc-settings-container[_ngcontent-%COMP%]{background-color:#fff;display:flex;flex-direction:row;width:480px;justify-content:space-between}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-bottom:2rem;justify-content:space-around}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]{cursor:pointer;text-align:center;display:flex}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]:not(:first-child){margin-left:2rem}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption[_ngcontent-%COMP%]{font-size:15px;text-align:center;display:flex;justify-content:center;align-items:flex-end;overflow:hidden;border-bottom:2px solid #f0f0f0}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption-active[_ngcontent-%COMP%]{border-color:var(--color1)}.cc-settings-container[_ngcontent-%COMP%]   .cc-window[_ngcontent-%COMP%]{position:relative;width:100%}.cc-settings-container[_ngcontent-%COMP%]   .cc-window[_ngcontent-%COMP%]   .cc-separator[_ngcontent-%COMP%]{margin:5px 0;border-bottom:1px solid #f0f0f0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating.cc-settings-panel[_ngcontent-%COMP%]{padding:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-header[_ngcontent-%COMP%]{text-align:left;font-weight:600;line-height:30px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-message[_ngcontent-%COMP%]{padding:0 30px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-header[_ngcontent-%COMP%]{font-weight:700}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]{margin-top:20px;max-height:180px;overflow:auto}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-provider-caption[_ngcontent-%COMP%]{font-weight:700}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]:not(:first-child):not(:nth-child(2)){border-top:1px solid #f0f0f0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1rem 0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]{position:relative;width:54px;height:24px;margin:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0 20px 0 -20px;background-color:#f0f0f0;transition:.4s}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider.cc-round[_ngcontent-%COMP%]{border-radius:24px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider.cc-round[_ngcontent-%COMP%]:before{background-color:var(--color1);border-radius:50%}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider.cc-round-disabled[_ngcontent-%COMP%]{border-radius:24px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider.cc-round-disabled[_ngcontent-%COMP%]:before{background-color:#d0d0d0;border-radius:50%}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:2px;background-color:#d0d0d0;transition:.4s}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .cc-slider[_ngcontent-%COMP%]{background-color:#f0f0f0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .cc-slider[_ngcontent-%COMP%]:before{background-color:var(--color1);left:-20px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus + .cc-slider[_ngcontent-%COMP%]{box-shadow:0 0 1px var(--color1)}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .cc-slider[_ngcontent-%COMP%]:before{transform:translate(52px)}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]{text-align:center;display:flex}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button[_ngcontent-%COMP%]{text-decoration:none;font-size:15px;text-align:center;margin:0 10px;width:100%;border-radius:1rem;overflow:visible;line-height:45px;padding:0 30px;background-color:var(--color1-alpha70);color:#000}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button[_ngcontent-%COMP%]:hover{background-color:var(--color1-alpha80)}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button-reject[_ngcontent-%COMP%]{background-color:#f0f0f0;color:#000}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button-reject[_ngcontent-%COMP%]:hover{background-color:#d9d9d9}@media (max-width: 991px){.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]{height:20px;margin:5px 15px;overflow:hidden;display:inline-block}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption[_ngcontent-%COMP%]{font-weight:400;padding:0;width:auto;text-decoration:underline;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:288px}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption-right-border-round[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption-selected[_ngcontent-%COMP%]{text-decoration:underline}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption-arrow[_ngcontent-%COMP%]{display:none;border:none}.cc-settings-container[_ngcontent-%COMP%]   .cc-window[_ngcontent-%COMP%]{padding-bottom:12px;position:initial}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]{left:24px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]{flex-direction:column}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button[_ngcontent-%COMP%]{width:unset;margin:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button[_ngcontent-%COMP%]:first-child{margin-bottom:1rem}}@media (prefers-color-scheme: dark){.app[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption[_ngcontent-%COMP%]{border-color:#212121}.app[_ngcontent-%COMP%]   .cc-window[_ngcontent-%COMP%]{background-color:#000!important}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%], .app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-top-panel[_ngcontent-%COMP%]   .cc-close-button[_ngcontent-%COMP%]{background-color:#000}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-switchers[_ngcontent-%COMP%]   .cc-switcher-item[_ngcontent-%COMP%]:not(:first-child){border-color:#212121}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-separator[_ngcontent-%COMP%]{border-color:#212121!important}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]{border-color:#212121}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]:not(:first-child):not(:nth-child(2)){border-top:1px solid #212121}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider[_ngcontent-%COMP%]{background-color:#212121!important}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .cc-slider[_ngcontent-%COMP%]{background-color:#212121!important}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button-reject[_ngcontent-%COMP%]{color:#fff;background-color:#212121}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button-reject[_ngcontent-%COMP%]:hover{background-color:#3b3b3b}}']}))}return o(),t})();const qo=["container"],cs=()=>({standalone:!0}),bs=o=>({"cc-configurations-hide-redesign":o});function Fn(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",14)(1,"label",15),e.EFF(2),e.k0s(),e.j41(3,"label",16)(4,"input",17),e.mxI("ngModelChange",function(r){const l=m.eBV(n).$implicit;return e.DH7(l.isChecked,r)||(l.isChecked=r),m.Njj(r)}),e.bIt("change",function(){const r=m.eBV(n).$implicit,l=e.XpG(4);return m.Njj(l.switch(r))}),e.k0s(),e.nrm(5,"span",18),e.k0s()()}if(2&o){const n=t.$implicit,s=e.XpG(4);e.R7$(2),e.JRh(s.scope.network.getResourceOrKeyName((null==n?null:n.caption)??"")),e.R7$(2),e.R50("ngModel",n.isChecked),e.Y8G("ngModelOptions",e.lJ4(5,cs)),e.R7$(),e.AVh("cc-round-disabled",!n.isChecked)}}function li(o,t){if(1&o&&(e.j41(0,"div",12),e.DNE(1,Fn,6,6,"div",13),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("ngForOf",n.tabs)}}function si(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",23)(1,"a",24),e.bIt("click",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.openCookieSettings())}),e.EFF(2),e.k0s()()}if(2&o){const n=e.XpG(4);e.R7$(2),e.SpI(" ",n.scope.network.getResourceOrKeyName(n.settings.caption)," ")}}function Ni(o,t){1&o&&e.nrm(0,"div",25)}function Yi(o,t){1&o&&e.nrm(0,"div",25)}function Sn(o,t){if(1&o&&(e.qex(0),e.j41(1,"div",23)(2,"a",26),e.EFF(3),e.k0s()(),e.DNE(4,Yi,1,0,"div",21),e.bVm()),2&o){const n=t.$implicit,s=t.index,r=e.XpG(4);e.R7$(2),e.Y8G("href",e.mNQ(n.navigate),e.B4B),e.R7$(),e.JRh(r.scope.network.getResourceOrKeyName(n.caption)),e.R7$(),e.Y8G("ngIf",s!=((null==r.links?null:r.links.length)??1)-1)}}function ri(o,t){if(1&o&&(e.j41(0,"div",19),e.DNE(1,si,3,1,"div",20)(2,Ni,1,0,"div",21)(3,Sn,5,4,"ng-container",22),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("ngIf",n.settings),e.R7$(),e.Y8G("ngIf",(null==n.links?null:n.links.length)&&n.settings),e.R7$(),e.Y8G("ngForOf",n.links)}}function It(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",4,0)(2,"button",5),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())}),e.EFF(3,"X"),e.k0s(),e.j41(4,"h3"),e.EFF(5),e.k0s(),e.j41(6,"span",6),e.EFF(7),e.k0s(),e.DNE(8,li,2,1,"div",7),e.j41(9,"div",8)(10,"a",9),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.reject())}),e.EFF(11),e.k0s(),e.j41(12,"a",10),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.accept())}),e.EFF(13),e.k0s()(),e.DNE(14,ri,4,3,"div",11),e.k0s()}if(2&o){const n=e.XpG(2);e.AVh("cc-left",null==n.currentPosition?null:n.currentPosition.isLeft)("cc-right",null==n.currentPosition?null:n.currentPosition.isRight)("app",n.userClientInfo.isApp),e.BMQ("data-aos-duration",n.animationDuration),e.R7$(5),e.JRh(n.scope.network.getResourceOrKeyName(n.header??"")),e.R7$(2),e.SpI(" ",n.scope.network.getResourceOrKeyName(n.text??"")," "),e.R7$(),e.Y8G("ngIf",null==n.tabs?null:n.tabs.length),e.R7$(2),e.AVh("darkColor",n.isDarkBackground("cc-button-reject")),e.R7$(),e.SpI(" ",n.scope.network.getResourceOrKeyName((null==n.buttons?null:n.buttons.reject)??"")," "),e.R7$(),e.AVh("darkColor",n.isDarkBackground("cc-button-accept")),e.R7$(),e.SpI(" ",n.scope.network.getResourceOrKeyName(n.acceptButtonText??"")," "),e.R7$(),e.Y8G("ngIf",(null==n.links?null:n.links.length)||n.settings)}}function Pt(o,t){if(1&o){const n=e.RV6();e.j41(0,"settings",27),e.mxI("isCookieSettingsOpenedChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.isCookieSettingsOpened,r)||(l.isCookieSettingsOpened=r),m.Njj(r)}),e.bIt("accept",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.accept())}),e.k0s()}if(2&o){const n=e.XpG(2);e.R50("isCookieSettingsOpened",n.isCookieSettingsOpened)}}function dn(o,t){if(1&o&&(e.j41(0,"div"),e.DNE(1,It,15,17,"div",2)(2,Pt,1,1,"settings",3),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("ngIf",!n.isCookieSettingsOpened&&!n.isHidden||n.isAnchorTagPresent()),e.R7$(),e.Y8G("ngIf",n.isCookieSettingsOpened)}}function jt(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",55)(1,"div",29)(2,"div",56)(3,"input",47),e.mxI("ngModelChange",function(r){const l=m.eBV(n).$implicit;return e.DH7(l.isChecked,r)||(l.isChecked=r),m.Njj(r)}),e.bIt("change",function(r){const l=m.eBV(n).$implicit,E=e.XpG(2).$implicit,N=e.XpG(3);return m.Njj(N.switchProviderRedesign(r,E,l))}),e.k0s()(),e.j41(4,"div",57)(5,"label",58),e.EFF(6),e.k0s()()()()}if(2&o){const n=t.$implicit,s=t.index,r=e.XpG(2).index;e.R7$(3),e.Y8G("id",e.mNQ(n.id)),e.R50("ngModel",n.isChecked),e.Y8G("tabindex",r+s+13+1),e.R7$(2),e.Y8G("for",e.mNQ(n.id)),e.R7$(),e.SpI(" ",n.caption," ")}}function Ot(o,t){if(1&o&&(e.j41(0,"div",53)(1,"div",54)(2,"div",29),e.DNE(3,jt,7,7,"div",41),e.k0s()()()),2&o){const n=e.XpG().$implicit;e.R7$(3),e.Y8G("ngForOf",n.providers)}}function Tn(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",45)(1,"div",46)(2,"input",47),e.mxI("ngModelChange",function(r){const l=m.eBV(n).$implicit;return e.DH7(l.isChecked,r)||(l.isChecked=r),m.Njj(r)}),e.bIt("change",function(r){const l=m.eBV(n).$implicit,E=e.XpG(3);return m.Njj(E.switchTab(r,l,l.providers))}),e.k0s()(),e.j41(3,"div",48)(4,"div",29)(5,"div",49)(6,"label",50),e.EFF(7),e.k0s()(),e.j41(8,"div",29)(9,"div",51),e.EFF(10),e.k0s()(),e.DNE(11,Ot,4,1,"div",52),e.k0s()()()}if(2&o){const n=t.$implicit,s=t.index,r=e.XpG(3);e.R7$(2),e.Y8G("id",n.id),e.R50("ngModel",n.isChecked),e.Y8G("tabindex",s+13+1),e.R7$(5),e.SpI(" ",r.scope.network.getResourceOrKeyName(n.caption)," "),e.R7$(3),e.SpI(" ",r.scope.network.getResourceOrKeyName(n.text)," "),e.R7$(),e.Y8G("ngIf",n.providers.length>0)}}function ni(o,t){if(1&o&&(e.j41(0,"div",42)(1,"div",29)(2,"div",43),e.DNE(3,Tn,12,6,"div",44),e.k0s()()()),2&o){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(2,bs,!n.showConfigurations)),e.R7$(3),e.Y8G("ngForOf",n.tabs)}}function Bi(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"button",60),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.setConfigurationsVisibility())}),e.EFF(2),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(2),e.JRh(n.scope.network.getResourceOrKeyName("web_cookie_consent_configuration"))}}function Zi(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"button",61),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.accept())}),e.EFF(2),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(2),e.JRh(n.scope.network.getResourceOrKeyName("web_cookie_consent_accept_some"))}}function ro(o,t){if(1&o&&(e.j41(0,"div",59),e.DNE(1,Bi,3,1,"div",1)(2,Zi,3,1,"div",1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",!n.showConfigurations),e.R7$(),e.Y8G("ngIf",n.showConfigurations)}}function mo(o,t){if(1&o&&(e.j41(0,"div",55)(1,"a",62),e.EFF(2),e.k0s()()),2&o){const n=t.$implicit,s=e.XpG(2);e.R7$(),e.Y8G("href",n.navigate,e.B4B),e.R7$(),e.JRh(s.scope.network.getResourceOrKeyName(n.caption))}}function ho(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",28,0)(3,"div",29)(4,"div",30)(5,"h3"),e.EFF(6),e.k0s()()(),e.j41(7,"div",29)(8,"div",31),e.EFF(9),e.k0s()(),e.DNE(10,ni,4,4,"div",32),e.j41(11,"div",33)(12,"div",34)(13,"button",35),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.acceptAll())}),e.EFF(14),e.k0s()(),e.j41(15,"div",36)(16,"button",37),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.reject())}),e.EFF(17),e.k0s()(),e.DNE(18,ro,3,2,"div",38),e.k0s(),e.j41(19,"div",29)(20,"div",39)(21,"div",40),e.DNE(22,mo,3,2,"div",41),e.k0s()()()()()}if(2&o){const n=e.XpG();e.R7$(6),e.JRh(n.scope.network.getResourceOrKeyName("web_cookie_consent_title")),e.R7$(3),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_cookie_consent_text")," "),e.R7$(),e.Y8G("ngIf",n.tabs&&n.tabs.length>0),e.R7$(4),e.JRh(n.scope.network.getResourceOrKeyName(n.showConfigurations?"web_cookie_consent_accept_all":"web_cookie_consent_accept")),e.R7$(3),e.JRh(n.scope.network.getResourceOrKeyName("web_common_decline")),e.R7$(),e.Y8G("ngIf",n.tabs),e.R7$(4),e.Y8G("ngForOf",n.links)}}let St=(()=>{var o;class t{constructor(s,r,l){this.animationService=s,this.cookieStatusService=r,this.configuration=ti,this.acceptButtonText=this.buttons?.accept,this.isHidden=!0,this.isCookieSettingsOpened=!1,this.isBuildInConsentManager=!1,this.isRedesign=!1,this.showConfigurations=!1,this.isDarkBackground=E=>(0,Pe.UP)(E)===De.K.dark,this.isAnchorTagPresent=()=>window.location.href.includes("#cookie-consent"),this.scopeService=l,this.scope=l.getScope(),this.userClientInfo=l.getUserClientInfo(),this.cookieStatusService.isInitialized$.subscribe(()=>{this.currentPosition=this.cookieStatusService.currentPosition,this.fallsbackLang=this.configuration.fallsbackLang,this.header=this.configuration.header,this.text=this.configuration.text,this.buttons=this.configuration.buttons,this.acceptButtonText=this.buttons?.accept,this.links=this.configuration.links,this.animationDuration=this.configuration.animationDuration,this.settings=this.configuration.settings,this.tabs=this.cookieStatusService.getTabs(),this.hideOnInitIfStatusAllowed(),this.setAcceptButtonText()})}ngOnInit(){this.cookieStatusService.isBrowser&&Co().init({duration:this.animationDuration}),this.isRedesign="Redesign2024"==this.scope.currentScope.network.settings.configurations.contentRenderEngine}isAnySwitcherUnChecked(){return this.tabs?.find(s=>!s.isChecked)}hideOnInitIfStatusAllowed(){this.isHidden=!(this.scope.profile.settings?.showConsent??1)}setAcceptButtonText(){const{accept:s,acceptSome:r=s}=this.buttons;this.acceptButtonText=this.isAnySwitcherUnChecked()?r:s}accept(){this.hide(),this.cookieStatusService.save()}reject(){this.hide(),this.tabs&&(this.tabs.forEach(s=>{s.isChecked=!1,s.providers.forEach(r=>{r.isChecked=!1})}),this.cookieStatusService.save())}hide(){this.animationService.hide(this.containerRef).finally(()=>{this.isHidden=!0,window.location.href=window.location.href.split("#")[0]})}close(){this.isHidden=!0,window.location.href=window.location.href.split("#")[0]+"#cc-close"}show(){this.isHidden=!1}switch(s){s.providers.forEach(r=>r.isChecked=s.isChecked),this.setAcceptButtonText()}openCookieSettings(){this.animationService.hide(this.containerRef).finally(()=>this.isCookieSettingsOpened=!this.isCookieSettingsOpened)}setConfigurationsVisibility(){this.showConfigurations=!0}switchTab(s,r,l){l.forEach(E=>{E.isChecked=r.isChecked})}switchProvider(s,r,l){l.isChecked||(r.isChecked=!1)}switchProviderRedesign(s,r,l){r.isChecked=r.providers.some(E=>1==E.isChecked)}acceptAll(){this.hide(),this.tabs&&(this.tabs.forEach(s=>{s.isChecked=!0,s.providers.forEach(r=>{r.isChecked=!0})}),this.cookieStatusService.save())}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Qn),e.rXU(Jn),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["cookie-consent-builtIn"]],viewQuery:function(r,l){if(1&r&&e.GBs(qo,5,e.aKT),2&r){let E;e.mGM(E=e.lsd())&&(l.containerRef=E.first)}},standalone:!1,decls:2,vars:2,consts:[["container",""],[4,"ngIf"],["role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","class","cc-mobile-view cc-window cc-floating cc-bottom cc-shadow","data-aos","slide-up","data-aos-easing","ease-in-out",3,"cc-left","cc-right","app",4,"ngIf"],[3,"isCookieSettingsOpened","isCookieSettingsOpenedChange","accept",4,"ngIf"],["role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","data-aos","slide-up","data-aos-easing","ease-in-out",1,"cc-mobile-view","cc-window","cc-floating","cc-bottom","cc-shadow"],["type","button",1,"cc-close-button",3,"click"],[1,"cc-message"],["class","cc-switchers",4,"ngIf"],[1,"cc-compliance"],["aria-label","dismiss cookie message","role","button","tabindex","0","id","cc-button-reject",1,"cc-button","cc-button-reject",3,"click"],["aria-label","dismiss cookie message","role","button","tabindex","0","id","cc-button-accept",1,"cc-button","cc-button-accept",3,"click"],["class","cc-links",4,"ngIf"],[1,"cc-switchers"],["class","cc-switcher-item",4,"ngFor","ngForOf"],[1,"cc-switcher-item"],[1,"cc-switcher-caption"],[1,"cc-slider-label"],["type","checkbox",3,"ngModelChange","change","ngModel","ngModelOptions"],[1,"cc-slider","cc-round"],[1,"cc-links"],["class","cc-link-item",4,"ngIf"],["class","cc-link-item-splitter",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"cc-link-item"],[3,"click"],[1,"cc-link-item-splitter"],[3,"href"],[3,"isCookieSettingsOpenedChange","accept","isCookieSettingsOpened"],["aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","tabindex","8",1,"container","cc-wrapper-redesign","aos-animate"],[1,"row"],[1,"col-12","cc-heading-redesign"],[1,"col-12","cc-text-redesign"],[3,"ngClass",4,"ngIf"],[1,"row","mb-1","cc-buttons-wrapper-redesign"],[1,"col-4","cc-response-buttons-redesign"],["tabindex","9",1,"btn","btn-outline-primary",3,"click"],[1,"col-3","cc-response-buttons-redesign"],["tabindex","10",1,"btn","btn-outline-primary",3,"click"],["class","col-5 cc-configurations-buttons-redesign",4,"ngIf"],[1,"col-12","cc-links-wrapper-redesign"],[1,"col-md-5","col-9","cc-links-redesign"],["class","col-6",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"cc-configurations-redesign"],["class","row mb-1 mb-md-4",4,"ngFor","ngForOf"],[1,"row","mb-1","mb-md-4"],[1,"col-2","form-check","form-switch","cc-configurations-switches-redesign"],["type","checkbox",1,"form-check-input",3,"ngModelChange","change","id","ngModel","tabindex"],[1,"col-10"],[1,"col-12","cc-configurations-labels-redesign"],["for","tab.id",1,""],[1,"col-12","cc-configurations-descriptions-redesign"],["class","row cc-configurations-providers-switches-wrapper-redesign",4,"ngIf"],[1,"row","cc-configurations-providers-switches-wrapper-redesign"],[1,"col-12"],[1,"col-6"],[1,"col-md-2","col-3","form-check","form-switch","cc-configurations-providers-switches-redesign"],[1,"col-md-10","col-9","cc-configurations-providers-labels-redesign"],[3,"for"],[1,"col-5","cc-configurations-buttons-redesign"],["tabindex","11",1,"cookie-config-focus",3,"click"],["tabindex","12",1,"cookie-config-focus",3,"click"],["tabindex","13",3,"href"]],template:function(r,l){1&r&&e.DNE(0,dn,3,2,"div",1)(1,ho,23,7,"div",1),2&r&&(e.Y8G("ngIf",!l.isRedesign),e.R7$(),e.Y8G("ngIf",l.isRedesign&&(!l.isHidden||l.isAnchorTagPresent())))},dependencies:[C.YU,C.Sq,C.bT,Ii.Zm,Ii.BC,Ii.vS,ss],styles:['.cc-close-button{width:20px;text-align:center;right:20px;position:absolute;border:solid 1px;height:20px;font-weight:700}.cookie-config-focus:focus-visible{outline:2px solid var(--textColor);outline-offset:2px;border-radius:3px}@media (max-width: 525px){.cc-mobile-view{transform:translate(-50%,-50%);top:50%;left:50%!important;height:fit-content;width:90%!important}}.cc-bottom{bottom:24px}.cc-right{right:24px}.cc-left{left:24px}.cc-window{border-radius:1rem;background-color:#fff;position:fixed;overflow:hidden;display:flex;flex-wrap:nowrap;z-index:9999}.cc-window.cc-floating{padding:2rem;width:480px;flex-direction:column}.cc-window.cc-floating .cc-top-panel{display:flex;justify-content:flex-end}.cc-window.cc-floating .cc-top-panel .cc-close-button{border:none;cursor:pointer;font-size:18px;background-color:#fff}.cc-window.cc-floating .cc-message{margin-bottom:12px}.cc-window.cc-floating .cc-compliance{text-align:center;display:flex}.cc-window.cc-floating .cc-compliance .cc-button{text-decoration:none;font-size:15px;text-align:center;margin:0 10px;width:100%;border-radius:1rem;overflow:visible;line-height:45px;padding:0 30px;background-color:var(--color1-alpha70);color:#000}.cc-window.cc-floating .cc-compliance .cc-button:hover{background-color:var(--color1-alpha80)}.cc-window.cc-floating .cc-compliance .cc-button-reject{background-color:#f0f0f0;color:#000}.cc-window.cc-floating .cc-compliance .cc-button-reject:hover{background-color:#d9d9d9}.cc-window.cc-floating .cc-link{display:inline-block;padding:2.4px}.cc-window.cc-floating .cc-link:hover{text-decoration:underline}.cc-window.cc-floating .cc-switchers{padding:24px 0;display:flex;justify-content:center;flex-direction:column}.cc-window.cc-floating .cc-switchers .cc-switcher-item{display:flex;justify-content:space-between;align-items:center;padding:1rem 0}.cc-window.cc-floating .cc-switchers .cc-switcher-item:not(:first-child){border-top:1px solid #f0f0f0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-switcher-caption{margin:0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label{position:relative;width:54px;height:24px;margin:0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider{position:absolute;cursor:pointer;inset:0 20px 0 -20px;background-color:#f0f0f0;transition:.4s}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider.cc-round{border-radius:24px}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider.cc-round:before{background-color:var(--color1);border-radius:50%}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider.cc-round-disabled{border-radius:24px}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider.cc-round-disabled:before{background-color:#d0d0d0;border-radius:50%}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:2px;background-color:#d0d0d0;transition:.4s}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input{opacity:0;width:0;height:0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input:checked+.cc-slider{background-color:#f0f0f0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input:checked+.cc-slider:before{background-color:var(--color1);left:-20px}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input:focus+.cc-slider{box-shadow:0 0 1px var(--color1)}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input:checked+.cc-slider:before{transform:translate(52px)}.cc-window.cc-floating .cc-links{padding:12px;display:flex;justify-content:center;flex-wrap:wrap}.cc-window.cc-floating .cc-links .cc-link-item a{text-decoration:underline;cursor:pointer;margin:10px;color:#000}.cc-window.cc-floating .cc-links .cc-link-item a:hover,.cc-window.cc-floating .cc-links .cc-link-item a:visited,.cc-window.cc-floating .cc-links .cc-link-item a:focus{color:#000}.cc-window.cc-floating .cc-links .cc-link-item-splitter:before{content:"|";margin:0 10px}.cc-window.cc-floating .cc-revoke{cursor:pointer;padding:1rem;text-decoration:underline;background-color:var(--color1-alpha30)}.cc-window.cc-floating .cc-revoke.cc-bottom{bottom:6px;border-radius:1rem}.cc-window.cc-floating .cc-revoke.cc-right{right:36px}.cc-window.cc-floating .cc-revoke.cc-left{left:36px}.cc-window.cc-floating .cc-revoke.cc-animate{transform:translateY(2em);transition:transform 1s ease}.cc-window.cc-floating .cc-revoke:hover{transform:translateY(0)}.darkColor{color:#fff}@media (max-width: 991px){.cc-window.cc-floating{left:24px}.cc-window.cc-floating .cc-compliance{flex-direction:column}.cc-window.cc-floating .cc-compliance .cc-button{width:unset;margin:0}.cc-window.cc-floating .cc-compliance .cc-button:last-child{margin-bottom:1rem}}.cc-shadow{box-shadow:5px 1px 5px 2px #0000001f,0 1px 5px 2px #0000001f,0 1px 5px 2px #0000001f}@media (prefers-color-scheme: dark){.app .cc-window{background-color:#000!important}.app .cc-window.cc-floating .cc-top-panel .cc-close-button{background-color:#000}.app .cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-switcher-caption{color:#fff}.app .cc-window.cc-floating .cc-switchers .cc-switcher-item:not(:first-child){border-color:#212121}.app .cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider{background-color:#212121}.app .cc-window.cc-floating .cc-compliance .cc-button-reject{color:#fff;background-color:#212121}.app .cc-window.cc-floating .cc-compliance .cc-button-reject:hover{background-color:#3b3b3b}.app .cc-window.cc-floating .cc-links .cc-link-item a{color:#fff}.app .cc-window.cc-floating .cc-links .cc-link-item a:hover,.app .cc-window.cc-floating .cc-links .cc-link-item a:visited,.app .cc-window.cc-floating .cc-links .cc-link-item a:focus{color:#fff}}.cc-wrapper-redesign{border:.063rem solid;border-radius:1rem;padding:1.25rem;z-index:9999;position:fixed;bottom:.625rem;right:.625rem;background-color:var(--backgroundColor);width:50%;max-width:36.25rem}.cc-heading-redesign{display:flex;justify-content:center;opacity:60%;margin-bottom:1rem}.cc-heading-redesign h3{font-size:1.125rem;font-weight:600}.cc-text-redesign{font-size:.875rem;margin-bottom:2rem}.cc-links-wrapper-redesign{display:flex;justify-content:end}.cc-links-redesign{display:flex;justify-content:center;font-size:.625rem;transform:translate(16%)}.cc-response-buttons-redesign{display:flex;justify-content:center}.cc-response-buttons-redesign button{font-size:.875rem;font-weight:400;text-transform:uppercase}.cc-configurations-buttons-redesign{display:flex;justify-content:center;margin:auto}.cc-configurations-buttons-redesign button{font-size:.875rem;font-weight:600;text-transform:uppercase;background-color:var(--backgroundColor);border:1px solid transparent;padding:.375rem .75rem}.cc-configurations-redesign{padding:0 2rem 2rem}.cc-configurations-labels-redesign{margin-bottom:.5rem}.cc-configurations-labels-redesign label{color:var(--textColor);font-size:.875rem;font-weight:700}.cc-configurations-providers-labels-redesign label{font-size:.875rem;color:var(--textColor)}.cc-configurations-descriptions-redesign{font-size:.625rem;font-weight:600;margin-bottom:1rem}.cc-configurations-switches-redesign{display:flex;justify-content:right}.cc-configurations-switches-redesign input{display:unset;margin-left:0!important}.cc-configurations-providers-switches-redesign{padding-left:0}.cc-configurations-providers-switches-redesign input{display:unset;margin-left:0!important}.cc-configurations-providers-switches-wrapper-redesign{margin-left:0!important}.cc-configurations-hide-redesign{display:none}@media (max-width: 768px){.cc-wrapper-redesign{width:70%}.cc-heading-redesign{margin-bottom:.5rem}.cc-heading-redesign h3{font-size:1rem}.cc-text-redesign{font-size:.75rem;margin-bottom:.5rem}.cc-response-buttons-redesign button{padding:.25rem;font-size:.75rem}.cc-configurations-buttons-redesign button{font-size:.75rem;padding:.25rem}.cc-configurations-redesign{padding:.5rem 1rem 1rem}.cc-configurations-labels-redesign{margin-bottom:.25rem}.cc-configurations-labels-redesign label{font-size:.75rem}.cc-configurations-descriptions-redesign{margin-bottom:.25rem}.cc-configurations-providers-labels-redesign label{font-size:.75rem}}@media (max-width: 525px){.cc-wrapper-redesign{transform:translate(-50%,-50%);top:50%;left:50%;height:fit-content;width:95%;overflow:scroll;scrollbar-width:none}}\n'],encapsulation:2}))}return o(),t})();function Qt(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"p"),e.EFF(3),e.k0s(),e.j41(4,"p")(5,"a",3),e.EFF(6),e.k0s()()(),e.j41(7,"div",4),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.consentCookies())}),e.EFF(8,"OK"),e.k0s()()}if(2&o){const n=e.XpG();e.AVh("closed",n.isClosed),e.R7$(3),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_root_cookiesConsent_text")," "),e.R7$(3),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_root_cookiesConsent_privacyPolicy"))}}let jn=(()=>{var o;class t{constructor(s,r){this.show=!0,this.isClosed=!1,this.http=new ke.Qq(r),this.scopeService=s,this.scope=s.getScope(),this.miniScope=s.getMiniScope(),this.show=this.getShow()}getShow(){return!this.scope.profile.hasCookiesConsented&&!this.scope.profile.isRegistered}consentCookies(){this.isClosed=!0,this.http.post(`${this.miniScope.apiEndpoint}profiles/cookiesConsent`,null).toPromise().then(()=>{this.scope.profile.hasCookiesConsented=(new Date).toISOString(),this.show=!1},function(){console.error("Could not obtain Cookies Consent.")})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(ke.JV))},this.\u0275cmp=e.VBU({type:t,selectors:[["cookie-consent-simple"]],standalone:!1,decls:1,vars:1,consts:[[1,"cookiesConsent",3,"closed"],[1,"cookiesConsent"],[1,"cookiesConsent-text"],["ui-sref","app.privacyPolicy"],[1,"btn","btn-green","btn-block","btn-lg","cookiesConsent-button",3,"click"]],template:function(r,l){1&r&&e.nVh(0,Qt,9,4,"div",0),2&r&&e.vxM(l.show?0:-1)},styles:[".cookiesConsent[_ngcontent-%COMP%]{position:fixed;bottom:15px;right:15px;width:300px;box-shadow:0 0 10px var(--black-10);border-radius:6px;animation-name:_ngcontent-%COMP%_slideInUp;animation-duration:1s;animation-fill-mode:both;animation-delay:2s;z-index:1000}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]{padding:.5em 2em 1em;background-color:#e6e6e6;border-top-left-radius:4px;border-top-right-radius:4px}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--dark-gray)}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--medium-gray)}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-button[_ngcontent-%COMP%]{margin:0;border-top-left-radius:0;border-top-right-radius:0}.cookiesConsent.closed[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_slideOutDown;animation-delay:0s}@media all and (max-width: 500px){.cookiesConsent[_ngcontent-%COMP%]{bottom:10px;left:10px;right:10px;width:auto}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]{padding:1em 1.5em}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:inline;font-size:1em}}@keyframes _ngcontent-%COMP%_slideInUp{0%{transform:translate3d(0,120%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes _ngcontent-%COMP%_slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,120%,0)}}@media (prefers-color-scheme: dark){.app[_ngcontent-%COMP%]   .cookiesConsent[_ngcontent-%COMP%]{box-shadow:0 0 10px var(--white-40)}.app[_ngcontent-%COMP%]   .cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]{background-color:#333}.app[_ngcontent-%COMP%]   .cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--white-90)!important}.app[_ngcontent-%COMP%]   .cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--white-60)}}"]}))}return o(),t})();function ai(o,t){1&o&&(e.j41(0,"div"),e.nrm(1,"cookie-consent-builtIn"),e.k0s())}function $i(o,t){1&o&&(e.j41(0,"div"),e.nrm(1,"cookie-consent-simple"),e.k0s())}function zi(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,ai,2,0,"div"),e.nVh(2,$i,2,0,"div"),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.isBuildInConsentManager()?1:-1),e.R7$(),e.vxM(n.isSimpleConsentManager()?2:-1)}}let _o=(()=>{var o;class t{constructor(s,r){this.deviceInfoService=r,this.isInApp=!1,this.scopeService=s,this.scope=s.getScope(),this.manager=this.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration?.Manager??Mi.None,this.isConsentManagerEnabled=this.scope.globalSettings.configurations.global_module_configuration.ConsentManagementModuleEnabled,this.isInApp=this.deviceInfoService.getUserAgentInfo().isApp,this.isInApp&&(this.manager=Mi.None,this.isConsentManagerEnabled=!1)}isBuildInConsentManager(){return this.manager===Mi.BuiltIn}isSimpleConsentManager(){return this.manager===Mi.Simple}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["cookie-consent-component-manager"]],standalone:!1,decls:1,vars:1,template:function(r,l){1&r&&e.nVh(0,zi,3,2,"div"),2&r&&e.vxM(l.isConsentManagerEnabled?0:-1)},dependencies:[St,jn],encapsulation:2}))}return o(),t})();var $o=p(5530),gs=p(5804);let xn=(()=>{var o;class t{constructor(s,r){this.http=s,this.scopeService=r,this.apiEndpoint="",this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint}getWorkflowTemplate(s,r,l,E){var N=this;return(0,ei.A)(function*(){const ae=r?"?preview=true":"";let ze=ae;return ae?(l&&(ze+=`&articleId=${l}`),E&&(ze+=`&revisionId=${E}`)):l&&(ze=`?articleId=${l}`),N.http.get(`${N.apiEndpoint}workflow/template/${s}${ze}`).toPromise()})()}saveWorkflowData(s){var r=this;return(0,ei.A)(function*(){return r.http.post(`${r.apiEndpoint}workflow/submission`,s).toPromise()})()}getWorkflowUploadBaseUrl(){return`${this.apiEndpoint}workflow/attachment/`}deleteSubmittedFile(s){var r=this;return(0,ei.A)(function*(){return yield(0,gs._)(r.http.delete(`${r.getWorkflowUploadBaseUrl()}${s}`))})()}getEmbeddableWorkflowList(){var s=this;return(0,ei.A)(function*(){return s.http.get(`${s.apiEndpoint}workflow/list/`).toPromise()})()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac}))}return o(),t})();var Bn=p(5908),Gn=p(4539),Ri=p(8892),Xi=p(3425),Oo=p(6098);let Fo=(()=>{var o;class t{constructor(s,r){this.sanitizer=s,this.translationService=r}transform(s){var r=this;return(0,ei.A)(function*(){if(!s)return"";const l=[s];try{const ae=`<span>${(yield r.translationService.translateByUserLanguageCode(l))[0].translation}</span>`;return r.sanitizer.bypassSecurityTrustHtml(ae)}catch(E){return console.error(E),s}})()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Oo.up,16),e.rXU(Bn.M,16))},this.\u0275pipe=e.EJ8({name:"apicodoTranslateText",type:t,pure:!0,standalone:!1}))}return o(),t})();const Vs=["workflowForm"],fs=["workflowFileUploader"],zt=()=>({class:"pull-right"});function zn(o,t){if(1&o&&(e.j41(0,"div")(1,"p"),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.network.getResourceOrKeyName("web_common_workflow_preview_title"))}}function pn(o,t){if(1&o&&(e.nrm(0,"h1",3),e.nI1(1,"apicodoTranslateText"),e.nI1(2,"async")),2&o){const n=e.XpG(2);e.Y8G("innerHTML",e.bMT(2,3,e.bMT(1,1,n.workflowName)),e.npT)}}function An(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"div",5),e.nI1(2,"apicodoTranslateText"),e.nI1(3,"async"),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("innerHTML",e.bMT(3,3,e.bMT(2,1,n.instructions)),e.npT)}}function fi(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",7)(1,"div",9)(2,"span",10),e.EFF(3),e.k0s()(),e.j41(4,"dx-file-uploader",11,1),e.bIt("onFilesUploaded",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.onFilesUploaded(r))})("onUploaded",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.onUploaded(r))})("onValueChanged",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.onValueChanged(r))}),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(3),e.JRh(n.scope.network.getResourceOrKeyName("web_workflows_uploaded_files_on_server")),e.R7$(),e.Y8G("labelText",n.isMobile?"":n.scope.network.getResourceOrKeyName("web_workflow_or_drop_file_here"))("readyToUploadMessage",n.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"))("selectButtonText",n.scope.network.getResourceOrKeyName("web_workflow_select_file_text"))("uploadedMessage",n.scope.network.getResourceOrKeyName("web_workflow_uploaded_message"))("uploadFailedMessage",n.scope.network.getResourceOrKeyName("web_workflow_upload_failed_message"))("multiple",n.fileUploaderOptions.multiple)("accept",n.fileUploaderOptions.accept)("allowedFileExtensions",n.fileUploaderOptions.allowedFileExtensions)("maxFileSize",n.scope.globalSettings.uploadMaxFileSizeInBytes)("uploadUrl",n.fileUploaderOptions.uploadUrl)("visible",n.templateDefinition.withAttachments)}}function qi(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",8)(1,"dx-button",12),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.sendForm())}),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_common_workflow_submit"))("elementAttr",e.lJ4(3,zt))("disabled",n.preview||n.isSaving)}}function So(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"dx-form",null,0),e.j41(3,"div",6),e.nVh(4,fi,6,12,"div",7),e.nVh(5,qi,2,4,"div",8),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(4),e.vxM(n.templateDefinition.withAttachments?4:-1),e.R7$(),e.vxM(!n.preview&&n.templateDefinition.formDefinitionJSON?5:-1)}}function Go(o,t){if(1&o&&(e.j41(0,"div")(1,"h2"),e.EFF(2),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(2),e.JRh(n.scope.network.getResourceOrKeyName("web_common_workflow_completed"))}}function xs(o,t){if(1&o&&(e.j41(0,"div")(1,"h2"),e.EFF(2),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(2),e.JRh(n.scope.network.getResourceOrKeyName("domain_workflow_article_read_receipt_completed"))}}function Rs(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,pn,3,5,"h1",3),e.nVh(2,An,4,5,"div"),e.j41(3,"div",4),e.nVh(4,So,6,2,"div"),e.nVh(5,Go,3,1,"div"),e.nVh(6,xs,3,1,"div"),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.workflowName?1:-1),e.R7$(),e.vxM(n.templateDefinition.multipleUse||!n.isOneTimeCompleted?2:-1),e.R7$(2),e.vxM(n.templateDefinition.multipleUse||!n.isOneTimeCompleted||n.preview?4:-1),e.R7$(),e.vxM(n.isOneTimeCompleted&&"WorkflowTemplateArticleRelated"!==n.workflowType?5:-1),e.R7$(),e.vxM(n.isOneTimeCompleted&&"WorkflowTemplateArticleRelated"==n.workflowType?6:-1)}}function ks(o,t){if(1&o&&e.nrm(0,"h2",2),2&o){const n=e.XpG();e.Y8G("innerHTML",n.error,e.npT)}}let _s=(()=>{var o;class t{constructor(s,r,l,E,N,ae){this.workflowService=s,this.translationService=r,this.scopeService=l,this.el=E,this.renderer=N,this.deviceInfoService=ae,this.uploaderVisible=!1,this.ispreview=!1,this.isOneTimeCompleted=!1,this.isBrokenAndroidCordovaApp=!1,this.brokenCordovaAppHint="",this.instructions="",this.version="",this.workflowName="",this.workflowType="",this.attachmentData=[],this.templateDefinition={},this.reloadComplete=!1,this.uploaderStore={},this.readOnly=!1,this.preview=!1,this.isSaving=!1,this.hasError=!1,this.error="",this.uploadedFiles=new Map,this.isMobile=!1,this.Oculus=window.Oculus,this.scope=this.scopeService.getScope(),(0,Te.Hg)(this.scope.network.settings.languageCode),this.uploaderVisible=!0;var ze="*",dt=[],Kt=!0;this.isBrokenAndroidCordovaApp=this.scopeService.getUserClientInfo().androidVersion>=13,this.brokenCordovaAppHint=this.scope.network.getResourceOrKeyName("web_broken_android_13_app_upload_hint"),this.isBrokenAndroidCordovaApp&&(ze="image/jpg, image/jpeg, image/gif, image/png",dt=[".jpg",".jpeg",".gif",".png"],Kt=!0),this.fileUploaderOptions={labelText:this.scope.network.getResourceOrKeyName("web_workflow_or_drop_file_here"),readyToUploadMessage:this.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"),selectButtonText:this.scope.network.getResourceOrKeyName("web_workflow_select_file_text"),uploadedMessage:this.scope.network.getResourceOrKeyName("web_workflow_uploaded_message"),uploadFailedMessage:this.scope.network.getResourceOrKeyName("web_workflow_upload_failed_message"),multiple:Kt,accept:ze,allowedFileExtensions:dt,value:[],maxFileSize:this.scope.globalSettings.uploadMaxFileSizeInBytes,uploadMode:"useButtons",uploadUrl:this.workflowService.getWorkflowUploadBaseUrl(),onValueChanged:function(Vn){Vn.element.find(".dx-fileuploader-upload-button").hide(),Vn.value.forEach(ci=>{Vn.component.option("isValid",!0),ci.size>this.scope.globalSettings.uploadMaxFileSizeInBytes&&Vn.component.option("isValid",!1)})},onFilesUploaded:function(Vn){this.saveWorkflowData()},onUploaded:function(Vn){var ci=JSON.parse(Vn.request.responseText);this.uploadedFiles.set(ci,Vn.file)}},this.isMobile=ae.getUserAgentInfo().isMobile}ngOnInit(){this.loadWorkflowData(),this.element=this.el.nativeElement}ngAfterViewInit(){this.formInstance=this.formComponent.instance}initializeForm(s){this.formComponent.instance.resetValues(),this.loadWorkflowData()}sendForm(){this.formInstance.validate().isValid&&(!this.templateDefinition.withAttachments||this.fileUploader.isValid)&&(this.templateDefinition.submissionDataJSON=JSON.stringify(this.formInstance.option("formData")),"{}"!==this.templateDefinition.submissionDataJSON&&this.templateDefinition.submissionDataJSON&&(this.ispreview||(this.isSaving=!0,this.reloadComplete=!1,this.templateDefinition.withAttachments&&this.fileUploader.value.length?this.fileUploader.instance.upload():this.saveWorkflowData())))}saveWorkflowData(){var s=this;return(0,ei.A)(function*(){s.isSaving=!0,s.templateDefinition.oculusGuid=s.OculusTracker?s.OculusTracker.guid:null,s.templateDefinition.attachments=[],s.uploadedFiles.forEach((r,l)=>{s.templateDefinition.attachments.push({id:l,fileName:r.name})});try{if(yield s.workflowService.saveWorkflowData(s.templateDefinition),s.OculusTracker)try{s.OculusTracker.click()}catch(r){console.log("OCULUS CLICK FAILED",r)}s.fileUploader&&(s.fileUploader.instance.reset(),s.uploadedFiles.clear()),s.loadWorkflowData(),(0,$o.A)({message:s.scope.currentScope.network.getResourceOrKeyName("web_workflows_final_submission_success"),position:{my:"center center",at:"center center"},onShown:()=>{s.initializeForm({component:s.formInstance}),s.isSaving=!1},maxWidth:"540px"},"success",3e3)}catch(r){s.uploadedFiles.size&&(s.fileUploader.instance.reset(),s.fileUploader.instance.option("value",Array.from(s.uploadedFiles.values())),s.uploadedFiles.forEach((l,E)=>{s.workflowService.deleteSubmittedFile(E)}),s.uploadedFiles.clear()),(0,$o.A)({message:s.scope.currentScope.network.getResourceOrKeyName("web_workflows_final_submission_error"),position:{my:"center center",at:"center center"},onShown:()=>{s.isSaving=!1},maxWidth:"540px"},"error",3e3),console.log(r)}})()}loadWorkflowData(){var s=this;return(0,ei.A)(function*(){yield s.workflowService.getWorkflowTemplate(s.workflowid,s.ispreview,s.articleid,s.revisionid).then(r=>{r?s.processTemplateData(r):(s.hasError=!0,s.error="Workflow does not exist")},r=>{console.error("Error loading workflow",r)})})()}processTemplateData(s){this.workflowType=s.workflowType,this.templateDefinition=s,this.templateDefinition.articleid=this.articleid,this.isOneTimeCompleted=s.isOneTimeCompleted,this.version=s.version,this.instructions=s.fillInstructions,this.preview=this.ispreview||s.isDraft,this.workflowName=s.name;let r=document.querySelector(".page-title");r instanceof HTMLElement&&this.workflowName&&(r.style.display="none");const l=JSON.parse(this.templateDefinition.formDefinitionJSON);if(l){l.labelLocation=l.items.some(es=>es.label.text.length>20)?"top":"left",l.labelMode="floating";var E=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==E){var N=this.scope.profile,ae=this.scope.network.settings.languagePack.split("-")[0];if(null!=N.activeUserLanguage?.vendorLanguageCode&&ae!=N.activeUserLanguage?.vendorLanguageCode){var ze=[],dt=[],Kt=[],Vn=[],ci=[];l.items.forEach(es=>{"dxTextArea"===es.editorType&&(es.editorOptions.minHeight=25,es.editorOptions.maxHeight=500,es.editorOptions.autoResizeEnabled=!0),ze.push(es.helpText),dt.push(es.label.text),Kt.push(es.editorOptions.placeholder),Vn.push(es.editorOptions.switchedOffText),ci.push(es.editorOptions.switchedOnText)});var Vi=ze.concat(dt).concat(Kt).concat(Vn).concat(ci);this.translationService.translateByUserLanguageCode(Vi).then(es=>{for(var Qo=ze.length,Ts=0;Ts<Qo;Ts++)l.items[Ts].helpText=es[Ts].translation,l.items[Ts].label.text=es[Ts+Qo].translation,l.items[Ts].editorOptions.placeholder=es[Ts+2*Qo].translation,l.items[Ts].editorOptions.switchedOffText=es[Ts+3*Qo].translation,l.items[Ts].editorOptions.switchedOnText=es[Ts+4*Qo].translation;l.items.forEach(wa=>{"dxCheckBox"===wa.editorType&&(wa.editorOptions.text=wa.helpText,wa.helpText=null)}),this.formInstance.option(l);var _a=JSON.parse(this.templateDefinition.submissionDataJSON);this.formInstance.option("formData",_a),this.preview&&this.formInstance.validate()})}else{l.items.forEach(es=>{"dxTextArea"===es.editorType?(es.editorOptions.minHeight=25,es.editorOptions.maxHeight=500,es.editorOptions.autoResizeEnabled=!0):"dxTagBox"===es.editorType?es.editorOptions.value=null:"dxCheckBox"===es.editorType&&(es.editorOptions.text=es.helpText,es.helpText=null)}),l.labelMode="floating",this.formInstance.option(l);var Di=JSON.parse(this.templateDefinition.submissionDataJSON);this.formInstance.option("formData",Di),this.preview&&this.formInstance.validate()}}else l.items.forEach(Qo=>{"dxTextArea"===Qo.editorType?(Qo.editorOptions.minHeight=25,Qo.editorOptions.maxHeight=500,Qo.editorOptions.autoResizeEnabled=!0):"dxTagBox"===Qo.editorType?Qo.editorOptions.value=null:"dxCheckBox"===Qo.editorType&&(Qo.editorOptions.text=Qo.helpText,Qo.helpText=null)}),this.formInstance.option(l),Di=JSON.parse(this.templateDefinition.submissionDataJSON),this.formInstance.option("formData",Di),this.preview&&this.formInstance.validate()}if(this.reloadComplete=!0,!this.preview&&(this.templateDefinition.multipleUse||!s.isOneTimeCompleted)&&(this.OculusTracker=this.Oculus.trackWorkflowImpression(this.element,{c:this.scope.currentChapter.slug,n:this.scope.network.slug,iw:s.id,iwt:s.workflowTemplateId})),this.templateDefinition.withAttachments){this.uploaderVisible=!0;var Eo="*",uo=[],Jo=!0;this.isBrokenAndroidCordovaApp=!1,this.brokenCordovaAppHint=this.scope.network.getResourceOrKeyName("web_broken_android_13_app_upload_hint"),this.isBrokenAndroidCordovaApp&&(Eo="image/jpg, image/jpeg, image/gif, image/png",uo=[".jpg",".jpeg",".gif",".png"],Jo=!0),this.fileUploaderOptions={labelText:this.scope.network.getResourceOrKeyName("web_workflow_or_drop_file_here"),readyToUploadMessage:this.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"),selectButtonText:this.scope.network.getResourceOrKeyName("web_workflow_select_file_text"),uploadedMessage:this.scope.network.getResourceOrKeyName("web_workflow_uploaded_message"),uploadFailedMessage:this.scope.network.getResourceOrKeyName("web_workflow_upload_failed_message"),multiple:Jo,accept:Eo,allowedFileExtensions:uo,value:[],maxFileSize:this.scope.globalSettings.uploadMaxFileSizeInBytes,uploadMode:"useButtons",uploadUrl:this.workflowService.getWorkflowUploadBaseUrl(),onValueChanged:function(es){es.element.find(".dx-fileuploader-upload-button").hide(),es.value.forEach(Qo=>{es.component.option("isValid",!0),Qo.size>this.scope.globalSettings.uploadMaxFileSizeInBytes&&es.component.option("isValid",!1)})},onFilesUploaded:function(es){this.saveWorkflowData()},onUploaded:function(es){var Qo=JSON.parse(es.request.responseText);this.uploadedFiles.set(Qo,es.file)}}}}onUploaded(s){const r=JSON.parse(s.request.responseText);this.uploadedFiles.set(r,s.file)}onFilesUploaded(s){this.saveWorkflowData()}onValueChanged(s){s.element.querySelectorAll(".dx-fileuploader-upload-button").forEach(l=>{this.renderer.setStyle(l,"display","none")}),s.component.option("isValid",!0),s.value.forEach(l=>{l.size>this.scope.globalSettings.uploadMaxFileSizeInBytes&&s.component.option("isValid",!1)})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(xn),e.rXU(Bn.M),e.rXU(Se.A),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-workflow-renderer"]],viewQuery:function(r,l){if(1&r&&(e.GBs(Vs,5),e.GBs(fs,5)),2&r){let E;e.mGM(E=e.lsd())&&(l.formComponent=E.first),e.mGM(E=e.lsd())&&(l.fileUploader=E.first)}},inputs:{workflowid:"workflowid",ispreview:"ispreview",articleid:"articleid",revisionid:"revisionid"},standalone:!1,decls:3,vars:3,consts:[["workflowForm",""],["workflowFileUploader",""],[3,"innerHTML"],[1,"workflow-heading",3,"innerHTML"],[1,"dx-viewport"],[1,"text",3,"innerHTML"],[1,"d-flex","mb-5","mt-4"],[1,"workflow-file-upload-wrapper"],[1,"workflow-save-button-wrapper"],[1,"pt-1"],[1,"workflow-file-upload-heading"],["uploadMode","useButtons","name","file",3,"onFilesUploaded","onUploaded","onValueChanged","labelText","readyToUploadMessage","selectButtonText","uploadedMessage","uploadFailedMessage","multiple","accept","allowedFileExtensions","maxFileSize","uploadUrl","visible"],["type","default",3,"onClick","text","elementAttr","disabled"]],template:function(r,l){1&r&&(e.nVh(0,zn,3,1,"div"),e.nVh(1,Rs,7,5,"div"),e.nVh(2,ks,1,1,"h2",2)),2&r&&(e.vxM(l.preview?0:-1),e.R7$(),e.vxM(l.hasError||l.readOnly?-1:1),e.R7$(),e.vxM(l.hasError?2:-1))},dependencies:[Gn.e,Ri.m,Xi.o,C.Jj,Fo],styles:[".workflow-heading[_ngcontent-%COMP%]{font-family:var(--fontSecondary);font-weight:700;font-size:2.6em!important;line-height:1.2em;color:var(--textColor90)}@media (max-width: 768px){.workflow-heading[_ngcontent-%COMP%]{font-size:1.6em;padding:0}}.text[_ngcontent-%COMP%]{line-height:2rem}.workflow-file-upload-wrapper[_ngcontent-%COMP%]{background-color:var(--textColor10);border:1px transparent solid;border-radius:3px;width:50%;padding-left:10px}.workflow-file-upload-wrapper[_ngcontent-%COMP%]     .dx-fileuploader .dx-fileuploader-wrapper{padding-left:0}.workflow-file-upload-wrapper[_ngcontent-%COMP%]     .dx-fileuploader .dx-button-text{font-weight:700}@media (max-width: 576px){.workflow-file-upload-wrapper[_ngcontent-%COMP%]     .dx-fileuploader .dx-button-text{font-size:.8rem}}.workflow-file-upload-heading[_ngcontent-%COMP%]{font-size:1rem}.workflow-save-button-wrapper[_ngcontent-%COMP%]{margin:auto 0 auto auto}.workflow-save-button-wrapper[_ngcontent-%COMP%]     .dx-button{height:2.5rem;font-size:1rem}@media (max-width: 576px){.workflow-save-button-wrapper[_ngcontent-%COMP%]     .dx-button{height:2rem;font-size:.9rem}}  .dx-form .dx-field-item-label{font-weight:700;font-size:1.2rem}@media (max-width: 576px){  .dx-form .dx-field-item-label{font-size:1rem}}  .dx-form .dx-tagbox.dx-editor-filled .dx-tag-container,   .dx-form .dx-tagbox.dx-editor-outlined .dx-tag-container{padding-inline-start:5px}  .dx-form .dx-field-item-help-text{padding-left:10px;padding-top:5px}  .dx-form .dx-texteditor-label{color:var(--textColor)}  .dx-form .dx-checkbox-text{color:var(--adx-form-item-help-text-color)}"]}))}return o(),t})();var Bs=p(2925);let Ss=(()=>{var o;class t{constructor(s,r){this.http=s,this.scopeService=r,this.apiEndpoint="",this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint}search(s,r,l,E){var N=this;return(0,ei.A)(function*(){return r||(r=1),l||(l=20),N.http.post(N.apiEndpoint+"pixabay/search",{query:s,language:E,page:r,perPage:l}).toPromise()})()}create(s){var r=this;return(0,ei.A)(function*(){return r.http.post(r.apiEndpoint+"pixabay/create",s).toPromise()})()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac}))}return o(),t})();var Et=p(3349),en=p(827),Dn=p(7866),Zn=p(5947),gi=p(862),mi=p(239);function ut(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",11)(1,"div",13)(2,"dx-button",14),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.submitRequest())}),e.k0s(),e.j41(3,"dx-button",15),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.submitAndClose())}),e.k0s(),e.j41(4,"dx-button",16),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.togglePopup())}),e.k0s()()()}if(2&o){const n=e.XpG(3);e.R7$(2),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_add_more")),e.R7$(),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_use_image")),e.R7$(),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_common_cancel"))}}function Yt(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",12)(1,"div",17)(2,"dx-button",18),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.togglePopup())}),e.k0s()(),e.j41(3,"div",19)(4,"dx-button",20),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.submitRequest())}),e.k0s(),e.j41(5,"dx-button",21),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.submitAndClose())}),e.k0s()()()}if(2&o){const n=e.XpG(3);e.R7$(2),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_common_cancel")),e.R7$(2),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_add_more")),e.R7$(),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_use_image"))}}function Dt(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",5),e.nrm(2,"img",6),e.k0s(),e.nrm(3,"br"),e.j41(4,"p"),e.EFF(5),e.j41(6,"dx-text-area",7),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.imageData.tags,r)||(l.imageData.tags=r),m.Njj(r)}),e.k0s()(),e.j41(7,"p"),e.EFF(8),e.j41(9,"span"),e.EFF(10),e.k0s()(),e.j41(11,"p"),e.EFF(12),e.j41(13,"span"),e.EFF(14),e.k0s()(),e.j41(15,"div",8),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggle_description_switch())}),e.nrm(16,"dx-switch",9),e.j41(17,"label",10),e.EFF(18),e.k0s(),e.nrm(19,"br"),e.k0s(),e.nrm(20,"br"),e.nVh(21,ut,5,3,"div",11)(22,Yt,6,3,"div",12),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(2),e.Y8G("src",null==n.imageData?null:n.imageData.largeImageURL,e.B4B),e.R7$(3),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_tags"),": "),e.R7$(),e.R50("value",n.imageData.tags),e.Y8G("height",100),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_source"),": "),e.R7$(2),e.JRh(n.imageData.pageURL),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_author"),": "),e.R7$(2),e.JRh(n.imageData.user),e.R7$(2),e.Y8G("value",n.alwaysShowImageDescription),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_show_description_checkbox")," "),e.R7$(3),e.vxM(n.isMobile?21:22)}}function mn(o,t){if(1&o&&(e.j41(0,"dx-popup",2),e.DNE(1,Dt,23,11,"div",4),e.k0s()),2&o){const n=e.XpG();e.Y8G("showTitle",!0)("fullScreen",n.isMobile)("dragEnabled",!1)("closeOnOutsideClick",!1)("showCloseButton",!1)("visible",n.visiblePopup)("title",n.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_add_image_title")),e.R7$(),e.Y8G("dxTemplateOf","info")}}function Yn(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"img",28),e.bIt("click",function(){const r=m.eBV(n).$implicit,l=e.XpG(2);return m.Njj(l.selectImage(r))}),e.k0s()()}if(2&o){const n=t.$implicit;e.R7$(),e.Y8G("src",n.largeImageURL,e.B4B)}}function xi(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"img",28),e.bIt("click",function(){const r=m.eBV(n).$implicit,l=e.XpG(2);return m.Njj(l.selectImage(r))}),e.k0s()()}if(2&o){const n=t.$implicit;e.R7$(),e.Y8G("src",n.largeImageURL,e.B4B)}}function Ki(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"img",28),e.bIt("click",function(){const r=m.eBV(n).$implicit,l=e.XpG(2);return m.Njj(l.selectImage(r))}),e.k0s()()}if(2&o){const n=t.$implicit;e.R7$(),e.Y8G("src",n.largeImageURL,e.B4B)}}function Ro(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"img",28),e.bIt("click",function(){const r=m.eBV(n).$implicit,l=e.XpG(2);return m.Njj(l.selectImage(r))}),e.k0s()()}if(2&o){const n=t.$implicit;e.R7$(),e.Y8G("src",n.largeImageURL,e.B4B)}}function yo(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-scroll-view",22)(1,"div",23)(2,"div",24),e.Z7z(3,Yn,2,1,"div",null,e.fX1),e.k0s(),e.j41(5,"div",24),e.Z7z(6,xi,2,1,"div",null,e.fX1),e.k0s(),e.j41(8,"div",24),e.Z7z(9,Ki,2,1,"div",null,e.fX1),e.k0s(),e.j41(11,"div",24),e.Z7z(12,Ro,2,1,"div",null,e.fX1),e.k0s()()(),e.j41(14,"div",25)(15,"dx-button",26),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.goPrev())}),e.k0s(),e.EFF(16),e.j41(17,"dx-button",27),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.goNext())}),e.k0s()()}if(2&o){const n=e.XpG();e.Y8G("height","50vh"),e.R7$(3),e.Dyx(n.chunks[0]),e.R7$(3),e.Dyx(n.chunks[1]),e.R7$(3),e.Dyx(n.chunks[2]),e.R7$(3),e.Dyx(n.chunks[3]),e.R7$(4),e.Lme(" ",n.currentPage,"/",n.totalPages," ")}}function ko(o,t){if(1&o&&(e.j41(0,"div",3),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_key_not_set")," ")}}let Ho=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.pixabayService=r,this.deviceInfoService=l,this.chunks=[],this.error=!1,this.working=!1,this.isMobile=!1,this.isRedesign=!1,this.submitBtnOptions={icon:"add",text:"Bild verwenden und weitere hinzuf\xfcgen",onClick:()=>{this.submitRequest()}},this.submitAndCloseBtnOptions={icon:"fa fa-check",text:"Bild verwenden",onClick:()=>{this.submitAndClose()}},this.cancelBtnOptions={icon:"back",text:"Abbrechen",onClick:()=>{this.visiblePopup=!1}},this.togglePopup=()=>{this.visiblePopup=!this.visiblePopup},this.toggle_description_switch=()=>{this.alwaysShowImageDescription=!this.alwaysShowImageDescription},this.scope=this.scopeService.getScope(),this.imageData=null,this.searchTerm="",this.data={},this.delay=500,this.pageSize=12,this.totalPages=1,this.currentPage=1,this.visiblePopup=!1,this.alwaysShowImageDescription=this.scope.currentScope.network.settings.configurations.alwaysShowImageDescriptionDefaultValue,this.language=this.scope.currentScope.network.settings.languageCode,this.isMobile=this.deviceInfoService.getUserAgentInfo().isMobile||this.deviceInfoService.getUserAgentInfo().isApp,this.isRedesign="Redesign2024"==this.scope.network.settings.configurations?.contentRenderEngine,this.timerId=null,this.searchBox={valueChangeEvent:"input",placeholder:this.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_search_placeholder"),onValueChanged:E=>{this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(()=>{this.searchTerm!=E.value&&(this.currentPage=1),this.searchTerm=E.value,this.search(this.searchTerm)},this.delay)}},this.search=E=>{this.pixabayService.search(E,this.currentPage,this.pageSize,this.language).then(N=>{if(this.data=N,null!=this.data){this.totalPages=N.total/this.pageSize,this.data=JSON.parse(JSON.stringify(N));var ae=Math.ceil(this.pageSize/4);N.hits.length<this.pageSize&&(ae=Math.ceil(N.hits.length/4)),this.chunks=this.spliceIntoChunks(N.hits,ae),this.totalPages=Math.ceil(this.totalPages)}})},this.selectImage=E=>{E.tags="",this.imageData=E,this.visiblePopup=!0},this.submitAndClose=()=>{this.submitRequest(),this.dismiss&&this.dismiss()},this.goNext=()=>{this.currentPage<this.totalPages&&(this.currentPage++,this.search(this.searchTerm))},this.goPrev=()=>{1!=this.currentPage&&(this.currentPage--,this.search(this.searchTerm))},this.popupOptions={width:"100%",height:"95vh",container:".modal-content",contentTemplate:"info",showTitle:!1,title:"Information",dragEnabled:!1,closeOnOutsideClick:!0,showCloseButton:!1,position:{at:"center",my:"center"},bindingOptions:{visible:"$ctrl.visiblePopup","position.of":"positionOf"},toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"before",options:{icon:"add",text:"",onClick:()=>{this.submitRequest()}}},{widget:"dxButton",toolbar:"bottom",location:"before",options:{icon:"fa fa-check",text:"",onClick:()=>{this.submitAndClose()}}},{widget:"dxButton",toolbar:"bottom",location:"after",options:{icon:"back",text:"",onClick:()=>{this.visiblePopup=!1,this.imageData=null}}}]}}ngOnInit(){this.search(this.searchTerm)}submitRequest(){this.visiblePopup=!1;var s=1280,r={articleId:this.callerdata.articleId,blobId:new Bs.A,staticArticleId:this.callerdata.staticArticleId,snipId:this.callerdata.snipId,sponsoredArticleId:this.callerdata.sponsoredArticleId,networkId:0,chapterId:0,eventId:this.callerdata.eventId,author:this.imageData.user,source:this.isRedesign&&this.imageData.user?`${this.imageData.user}/${this.scope.network.getResourceOrKeyName("web_common_pixabay")}`:this.imageData.pageURL,sourceUrl:this.imageData.largeImageURL,text:this.imageData?.tags,title:this.imageData?.tags?.slice(0,240),width:this.imageData.imageWidth>this.imageData.imageHeight?s:Math.ceil(s/this.imageData.imageHeight*this.imageData.imageWidth),height:this.imageData.imageHeight>this.imageData.imageWidth?s:Math.ceil(s/this.imageData.imageWidth*this.imageData.imageHeight),alwaysShowImageDescription:!!this.alwaysShowImageDescription,hideInComments:this.callerdata.hideInComments};this.pixabayService.create(r).then(l=>{var E=this.imageData.tags?this.imageData.tags:this.scope.network.getResourceOrKeyName("web_asset_pixabay_image_submit_success");(0,$o.A)({message:E,position:{my:"center top",at:"center top"}},"success",3e3),this.callback&&(this.callback(l),this.visiblePopup=!1,this.imageData=null)},()=>{this.error=!0,this.working=!1})}spliceIntoChunks(s,r){for(var l=[];s.length>0;){var E=s.splice(0,r);l.push(E)}return l}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ss),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-pixabay-searcher"]],inputs:{callback:"callback",callerdata:"callerdata",dismiss:"dismiss"},standalone:!1,decls:6,vars:4,consts:[[1,"dx-viewport"],["valueChangeEvent","input",3,"onValueChanged","placeholder","showClearButton"],["id","pixabayPopup","width","800","height","82vh","contentTemplate","info",3,"showTitle","fullScreen","dragEnabled","closeOnOutsideClick","showCloseButton","visible","title"],[1,"pixabay-missing-key"],[4,"dxTemplate","dxTemplateOf"],[1,"pixa-view"],[3,"src"],[3,"valueChange","value","height"],[1,"d-flex","align-items-center","gap-2","mb-2",3,"click"],["id","web_assetDialog_createImage_show_description_checkbox","name","web_assetDialog_createImage_show_description_checkbox",3,"value"],["for","web_assetDialog_createImage_show_description_checkbox"],[1,"pixabay-actions-container","d-flex","justify-content-center"],[1,"pixabay-actions-container","d-flex","mb-2"],[1,"d-block"],["width","100%","icon","add",1,"mb-3",3,"onClick","text"],["width","100%","icon","fa fa-check",1,"mb-3",3,"onClick","text"],["width","100%","icon","",1,"mb-3",3,"onClick","text"],[1,""],["icon","",3,"onClick","text"],[1,"pixabay-actions"],["icon","add",3,"onClick","text"],["icon","fa fa-check",3,"onClick","text"],[3,"height"],[1,"pixrow"],[1,"pixcolumn"],[1,"page-navigator"],["stylingMode","contained","icon","chevronprev","type","normal","width","auto",3,"onClick"],["stylingMode","contained","icon","chevronnext","type","normal","width","auto",3,"onClick"],[3,"click","src"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div")(2,"dx-text-box",1),e.bIt("onValueChanged",function(N){return l.searchBox.onValueChanged(N)}),e.k0s()(),e.nVh(3,mn,2,8,"dx-popup",2),e.nVh(4,yo,18,3)(5,ko,2,1,"div",3),e.k0s()),2&r&&(e.R7$(2),e.Y8G("placeholder",l.searchBox.placeholder)("showClearButton",!0),e.R7$(),e.vxM(l.imageData?3:-1),e.R7$(),e.vxM(l.data?4:5))},dependencies:[Et.eC,Gn.e,en.i,Dn.e,Zn.Y,gi.m,mi._],styles:[".pixrow[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:0 4px}.pixcolumn[_ngcontent-%COMP%]{flex:25%;max-width:25%;padding:0 4px}.pixcolumn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-top:8px;vertical-align:middle;width:100%}.pixa-view[_ngcontent-%COMP%]{width:100%;max-height:67vh}.pixa-view[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:80%;max-height:28vh}.pixabay-actions[_ngcontent-%COMP%]{display:flex;gap:15px;margin-left:auto}@media screen and (max-width: 800px){.pixcolumn[_ngcontent-%COMP%]{flex:50%;max-width:50%}}@media screen and (max-width: 600px){.pixcolumn[_ngcontent-%COMP%]{flex:100%;max-width:100%}}.page-navigator[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;gap:1rem;align-items:center;margin-top:10px;margin-bottom:10px}.pixabay-missing-key[_ngcontent-%COMP%]{margin:10px}"]}))}return o(),t})();var ms=p(3341),ds=p(339),Bo=p(8914);const ws=["mediaGrid"],Ys=()=>[5,10,25,50,100];function Us(o,t){1&o&&e.nrm(0,"i",6)}function Qs(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div")(2,"button",18),e.bIt("click",function(){const r=m.eBV(n).$implicit,l=e.XpG();return m.Njj(l.executeClickCallback(r))}),e.nrm(3,"img",19),e.k0s()()()}if(2&o){const n=t.$implicit,s=e.XpG();e.R7$(3),e.Y8G("src",s.apicodoBaseUrl+"/api/Asset/"+n.data.id+"/Thumbnail000001.jpg",e.B4B)}}let nr=(()=>{var o;class t{constructor(s,r){this.mediaService=s,this.scopeService=r,this.uploading=!1,this.isInitialized=!1,this.scope=this.scopeService.getScope(),this.apicodoBaseUrl=this.mediaService.mediaApiBaseUrl,this.odataBaseUrl=this.apicodoBaseUrl+"/api/odata/",this.apiBaseUrl=this.apicodoBaseUrl+"/api/"}ngAfterViewInit(){this.gridInstance=this.dataGrid.instance,this.isInitialized=!0}ngOnInit(){this.mediaService.getConnectionData().then(s=>{this.uploadHeaders={Authorization:"Bearer "+s.token,withCredentials:!1},this.dataSource={store:{type:"odata",url:this.getGridUrl(),key:"id",keyType:"Guid",version:4,withCredetntials:!0,beforeSend:r=>{r.headers={Authorization:"Bearer "+s.token,withCredentials:!1}}}}})}getFileUploaderUrl(){return this.apiBaseUrl+"Upload"}getGridUrl(){return this.odataBaseUrl+"MediaFiles"}refreshGrid(){this.gridInstance.refresh()}uploaderValueChanged(s){var r=s.value;r.length>0&&r.each(r,(l,E)=>{var N=new Bs.A;E.guid=N.valueOf()})}uploadStarted(s){this.uploading=!0}uploadAborted(s){this.uploading=!1}uploadError(s){this.uploading=!1}uploaded(s){this.refreshGrid(),this.uploading=!1}executeClickCallback(s){this.callback&&this.callback({text:this.apicodoBaseUrl+"/play/"+s.data.id+"?guiMode=iframe",title:s.data.title,attachment:s.data.id,thumbnailUrl:this.apicodoBaseUrl+"/api/Asset/"+s.data.id+"/Thumbnail000001.jpg"})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(ms.p),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-apicodo-media-management"]],viewQuery:function(r,l){if(1&r&&e.GBs(ws,5),2&r){let E;e.mGM(E=e.lsd())&&(l.dataGrid=E.first)}},inputs:{callback:"callback"},standalone:!1,decls:20,vars:28,consts:[["mediaFileUploader",""],["mediaGrid",""],[1,"modal-title"],[1,"dx-viewport"],["accept","video/*","uploadMode","instantly","name","file",3,"onValueChanged","onUploadStarted","onUploadAborted","onUploadError","onUploaded","labelText","readyToUploadMessage","selectButtonText","uploadedMessage","uploadFailedMessage","multiple","chunkSize","uploadUrl","uploadHeaders"],["id","mediaFileUploader"],[1,"fa","fa-spinner","fa-pulse"],[1,"clearfix"],["id","mediaGridContainer"],["height","100%","width","100%","noDataText","",3,"dataSource","remoteOperations","showRowLines","showColumnHeaders","wordWrapEnabled"],[3,"pageSize"],[3,"showPageSizeSelector","allowedPageSizes"],[3,"visible","highlightCaseSensitive"],["dataField","id","cellTemplate","idTemplate",3,"width","allowFiltering"],["dataField","title","caption","Name",3,"visible"],["dataField","description","caption","Description",3,"visible"],["dataField","createdOn","sortIndex","0","sortOrder","desc","caption","Created",3,"visible"],[4,"dxTemplate","dxTemplateOf"],[1,"btn","btn-green","action-button",3,"click"],["height","20",3,"src"]],template:function(r,l){if(1&r){const E=e.RV6();e.j41(0,"p",2),e.EFF(1),e.k0s(),e.j41(2,"div",3)(3,"dx-file-uploader",4,0),e.bIt("onValueChanged",function(ae){return m.eBV(E),m.Njj(l.uploaderValueChanged(ae))})("onUploadStarted",function(ae){return m.eBV(E),m.Njj(l.uploadStarted(ae))})("onUploadAborted",function(ae){return m.eBV(E),m.Njj(l.uploadAborted(ae))})("onUploadError",function(ae){return m.eBV(E),m.Njj(l.uploadError(ae))})("onUploaded",function(ae){return m.eBV(E),m.Njj(l.uploaded(ae))}),e.k0s(),e.j41(5,"div",5),e.nVh(6,Us,1,0,"i",6),e.k0s(),e.nrm(7,"div",7),e.j41(8,"div",8)(9,"dx-data-grid",9,1),e.nrm(11,"dxo-paging",10)(12,"dxo-pager",11)(13,"dxo-search-panel",12)(14,"dxi-column",13)(15,"dxi-column",14)(16,"dxi-column",15)(17,"dxi-column",16),e.DNE(18,Qs,4,1,"div",17),e.k0s()(),e.nrm(19,"div",7),e.k0s()}2&r&&(e.R7$(),e.JRh(l.scope.network.getResourceOrKeyName("web_asset_media_upload_instructions")),e.R7$(2),e.Y8G("labelText",l.scope.network.getResourceOrKeyName("web_upload_drag_drop_here"))("readyToUploadMessage",l.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"))("selectButtonText",l.scope.network.getResourceOrKeyName("web_upload_video_button"))("uploadedMessage",l.scope.network.getResourceOrKeyName("web_upload_uploaded_message"))("uploadFailedMessage",l.scope.network.getResourceOrKeyName("web_upload_upload_failed_message"))("multiple",!1)("chunkSize",5e5)("uploadUrl",l.getFileUploaderUrl())("uploadHeaders",l.uploadHeaders),e.R7$(3),e.vxM(l.uploading?6:-1),e.R7$(3),e.Y8G("dataSource",l.dataSource)("remoteOperations",!0)("showRowLines",!1)("showColumnHeaders",!1)("wordWrapEnabled",!0),e.R7$(2),e.Y8G("pageSize",5),e.R7$(),e.Y8G("showPageSizeSelector",!0)("allowedPageSizes",e.lJ4(27,Ys)),e.R7$(),e.Y8G("visible",!0)("highlightCaseSensitive",!0),e.R7$(),e.Y8G("width",75)("allowFiltering",!1),e.R7$(),e.Y8G("visible",!0),e.R7$(),e.Y8G("visible",!1),e.R7$(),e.Y8G("visible",!1),e.R7$(),e.Y8G("dxTemplateOf","idTemplate"))},dependencies:[Et.eC,ds.s,Bo.nj_,Bo.sVQ,Bo.PVd,Bo.hXY,Ri.m],encapsulation:2}))}return o(),t})();var gn=p(7248);const Xt=["tagBoxHandle"];let hn=(()=>{var o;class t{ngAfterViewInit(){this.instance=this.tagBox.instance,this.instance.option(this.options)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-dx-tag-box-wrapper"]],viewQuery:function(r,l){if(1&r&&e.GBs(Xt,5),2&r){let E;e.mGM(E=e.lsd())&&(l.tagBox=E.first)}},inputs:{options:"options"},standalone:!1,decls:2,vars:0,consts:[["tagBoxHandle",""]],template:function(r,l){1&r&&e.nrm(0,"dx-tag-box",null,0)},dependencies:[gn.T],encapsulation:2}))}return o(),t})();var Wn=p(1983);const Fi=["wrappedIndicator"];let io=(()=>{var o;class t{ngAfterViewInit(){this.instance=this.wrapped.instance,this.options&&this.instance.option(this.options)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-dx-load-indicator-wrapper"]],viewQuery:function(r,l){if(1&r&&e.GBs(Fi,5),2&r){let E;e.mGM(E=e.lsd())&&(l.wrapped=E.first)}},inputs:{options:"options"},standalone:!1,decls:2,vars:0,consts:[["wrappedIndicator",""]],template:function(r,l){1&r&&e.nrm(0,"dx-load-indicator",null,0)},dependencies:[Wn.B],encapsulation:2}))}return o(),t})();var bo=p(2333);const Mo=["wrappedHandle"];let rs=(()=>{var o;class t{ngAfterViewInit(){this.instance=this.wrapped.instance,this.instance.option(this.options)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-dx-lookup-wrapper"]],viewQuery:function(r,l){if(1&r&&e.GBs(Mo,5),2&r){let E;e.mGM(E=e.lsd())&&(l.wrapped=E.first)}},inputs:{options:"options"},standalone:!1,decls:2,vars:0,consts:[["wrappedHandle",""]],template:function(r,l){1&r&&e.nrm(0,"dx-lookup",null,0)},dependencies:[bo.W],encapsulation:2}))}return o(),t})();var is=p(5463);const $s=["wrappedHandle"];let Es=(()=>{var o;class t{ngAfterViewInit(){this.instance=this.wrapped.instance,this.instance.option(this.options)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-dx-select-box-wrapper"]],viewQuery:function(r,l){if(1&r&&e.GBs($s,5),2&r){let E;e.mGM(E=e.lsd())&&(l.wrapped=E.first)}},inputs:{options:"options"},standalone:!1,decls:2,vars:0,consts:[["wrappedHandle",""]],template:function(r,l){1&r&&e.nrm(0,"dx-select-box",null,0)},dependencies:[is.l],encapsulation:2}))}return o(),t})();var ir=p(6523);const Cr=["wrappedHandle"];let Js=(()=>{var o;class t{ngAfterViewInit(){this.instance=this.wrapped.instance,this.instance.option(this.options)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-dx-date-box-wrapper"]],viewQuery:function(r,l){if(1&r&&e.GBs(Cr,5),2&r){let E;e.mGM(E=e.lsd())&&(l.wrapped=E.first)}},inputs:{options:"options"},standalone:!1,decls:2,vars:0,consts:[["wrappedHandle",""]],template:function(r,l){1&r&&e.nrm(0,"dx-date-box",null,0)},dependencies:[ir.z],encapsulation:2}))}return o(),t})();const Or=["wrappedHandle"],rr=["*"];let Tr=(()=>{var o;class t{ngAfterViewInit(){this.instance=this.wrapped.instance,this.instance.option(this.options)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-dx-scroll-view-wrapper"]],viewQuery:function(r,l){if(1&r&&e.GBs(Or,5),2&r){let E;e.mGM(E=e.lsd())&&(l.wrapped=E.first)}},inputs:{options:"options"},standalone:!1,ngContentSelectors:rr,decls:3,vars:1,consts:[["wrappedHandle",""],[3,"showScrollbar"]],template:function(r,l){1&r&&(e.NAR(),e.j41(0,"dx-scroll-view",1,0),e.SdG(2),e.k0s()),2&r&&e.Y8G("showScrollbar","never")},dependencies:[Dn.e],encapsulation:2}))}return o(),t})();const ur=["wrappedHandle"],Ar=["*"];let ea=(()=>{var o;class t{constructor(){this.onClick=new e.bkB}ngAfterViewInit(){this.instance=this.wrapped.instance,this.instance.option(this.options)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-dx-button-wrapper"]],viewQuery:function(r,l){if(1&r&&e.GBs(ur,5),2&r){let E;e.mGM(E=e.lsd())&&(l.wrapped=E.first)}},inputs:{options:"options"},outputs:{onClick:"onClick"},standalone:!1,ngContentSelectors:Ar,decls:3,vars:0,consts:[["wrappedHandle",""]],template:function(r,l){1&r&&(e.NAR(),e.j41(0,"dx-button",null,0),e.SdG(2),e.k0s())},dependencies:[Gn.e],encapsulation:2}))}return o(),t})();const Vr=["wrappedHandle"];let Hr=(()=>{var o;class t{ngAfterViewInit(){this.instance=this.wrapped.instance,this.instance.option(this.options)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-dx-switch-wrapper"]],viewQuery:function(r,l){if(1&r&&e.GBs(Vr,5),2&r){let E;e.mGM(E=e.lsd())&&(l.wrapped=E.first)}},inputs:{options:"options"},standalone:!1,decls:2,vars:0,consts:[["wrappedHandle",""]],template:function(r,l){1&r&&e.nrm(0,"dx-switch",null,0)},dependencies:[Zn.Y],encapsulation:2}))}return o(),t})();const jr=["wrappedHandle"],Ir=["*"];let va=(()=>{var o;class t{ngAfterViewInit(){this.instance=this.wrapped.instance,this.instance.option(this.options)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-dx-textbox-wrapper"]],viewQuery:function(r,l){if(1&r&&e.GBs(jr,5),2&r){let E;e.mGM(E=e.lsd())&&(l.wrapped=E.first)}},inputs:{options:"options"},standalone:!1,ngContentSelectors:Ir,decls:3,vars:0,consts:[["wrappedHandle",""]],template:function(r,l){1&r&&(e.NAR(),e.j41(0,"dx-text-box",null,0),e.SdG(2),e.k0s())},dependencies:[gi.m],encapsulation:2}))}return o(),t})();const ca=["wrappedHandle"],oa=["*"];let ot=(()=>{var o;class t{constructor(){this.onChange=()=>{},this.onTouched=()=>{}}writeValue(s){this.value=s,this.instance&&this.instance.option("value",s)}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.instance&&this.instance.option("disabled",s)}ngAfterViewInit(){this.instance=this.wrapped.instance;const s={...this.options,value:this.value,onValueChanged:r=>{this.value=r.value,this.onChange(r.value),this.options&&"function"==typeof this.options.onValueChanged&&this.options.onValueChanged(r)}};this.instance.option(s)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-dx-text-area-wrapper"]],viewQuery:function(r,l){if(1&r&&e.GBs(ca,5),2&r){let E;e.mGM(E=e.lsd())&&(l.wrapped=E.first)}},inputs:{options:"options",value:"value"},standalone:!1,features:[e.Jv_([{provide:Ii.kq,useExisting:(0,m.Rfq)(()=>t),multi:!0}])],ngContentSelectors:oa,decls:3,vars:0,consts:[["wrappedHandle",""]],template:function(r,l){1&r&&(e.NAR(),e.j41(0,"dx-text-area",null,0),e.SdG(2),e.k0s())},dependencies:[mi._],encapsulation:2}))}return o(),t})(),Bt=(()=>{var o;class t{constructor(){this.isLoading=!0,this.loadingMessage=""}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-apicodo-loading-spinner"]],inputs:{isLoading:"isLoading",loadingMessage:"loadingMessage"},standalone:!1,decls:14,vars:2,consts:[[3,"hidden"],["role","status","aria-live","polite",1,"load-spinner"],[1,"load-wrapper"],[1,"load-message"],[1,"load-spinner"],[1,"load-spinner-animation"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"p"),e.EFF(5),e.k0s()(),e.j41(6,"div",4)(7,"p",5)(8,"span"),e.EFF(9,"\u2022"),e.k0s(),e.j41(10,"span"),e.EFF(11,"\u2022"),e.k0s(),e.j41(12,"span"),e.EFF(13,"\u2022"),e.k0s()()()()()()),2&r&&(e.Y8G("hidden",!l.isLoading),e.R7$(5),e.JRh(l.loadingMessage))},styles:[".load-spinner[_ngcontent-%COMP%]   .load-wrapper[_ngcontent-%COMP%]{width:66%;min-width:320px;max-width:360px;margin:auto;font-family:sans-serif;font-size:12px;padding:0}.load-spinner[_ngcontent-%COMP%]   .load-head[_ngcontent-%COMP%]{margin-top:20px}.load-spinner[_ngcontent-%COMP%]   .load-head[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{display:block;float:left;font-size:24px;font-weight:700;line-height:32px;margin:0 0 0 15px;padding:0}.load-spinner[_ngcontent-%COMP%]   .load-message[_ngcontent-%COMP%]{clear:both;margin-top:15px}.load-spinner[_ngcontent-%COMP%]   .load-message[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:18px}@keyframes _ngcontent-%COMP%_blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}.load-spinner[_ngcontent-%COMP%]   .load-spinner-animation[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_blink;animation-duration:1.4s;animation-iteration-count:infinite;animation-fill-mode:both;font-size:32px;line-height:.5}.load-spinner[_ngcontent-%COMP%]   .load-spinner-animation[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.load-spinner[_ngcontent-%COMP%]   .load-spinner-animation[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}"]}))}return o(),t})();var qt=p(5981),bn=function(o){return o[o.SingleCommend=0]="SingleCommend",o[o.Image=1]="Image",o[o.File=2]="File",o[o.Video=3]="Video",o[o.Youtube=5]="Youtube",o[o.Facebook=6]="Facebook",o[o.Vimeo=7]="Vimeo",o[o.Gif=10]="Gif",o[o.ApicodoMedia=13]="ApicodoMedia",o}(bn||{}),kn=p(3527);let yi=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.http=r,this.insertAssetImageToArticle=(l,E)=>this.http.post(`${this.apiEndpoint}assets/image/article/${E}`,l).pipe((0,kn.T)(N=>this.processAssetReference(N))),this.insertAssetImageToSnip=(l,E)=>this.http.post(`${this.apiEndpoint}assets/image/snip/${E}`,l).pipe((0,kn.T)(N=>this.processAssetReference(N))),this.insertAssetImageToEvent=(l,E)=>this.http.post(`${this.apiEndpoint}assets/image/event/${E}`,l).pipe((0,kn.T)(N=>this.processAssetReference(N))),this.insertAssetTextToArticle=(l,E)=>this.http.post(`${this.apiEndpoint}assets/text/article/${E}`,l).pipe((0,kn.T)(N=>this.processAssetReference(N))),this.insertAssetTextToSnip=(l,E)=>this.http.post(`${this.apiEndpoint}assets/text/snip/${E}`,l).pipe((0,kn.T)(N=>this.processAssetReference(N))),this.insertAssetTextToEvent=(l,E)=>this.http.post(`${this.apiEndpoint}assets/text/event/${E}`,l).pipe((0,kn.T)(N=>this.processAssetReference(N))),this.apiEndpoint=this.scopeService.getScope().apiEndpoint}getChildren(s,r){return this.http.get(`${this.apiEndpoint}assets/${s}/children${r?`?start=${r}`:""}`)}getAssetImageProcessing(s){return this.http.get(`${this.apiEndpoint}assets/${s}/imageprocessing`)}insertAssetImageToSnipLegacy(s,r){return this.http.post(`${this.apiEndpoint}assets/image/snip/${r}`,s).pipe((0,kn.T)(l=>this.processAssetReference(l))).toPromise()}insertAssetImageToSponsoredArticle(s,r){return this.http.post(`${this.apiEndpoint}assets/image/sponsoredArticle/${r}`,s).pipe((0,kn.T)(l=>this.processAssetReference(l)))}insertAssetImageToStaticArticle(s,r){return this.http.post(`${this.apiEndpoint}assets/image/staticArticle/${r}`,s).pipe((0,kn.T)(l=>this.processAssetReference(l)))}insertAssetTextToSponsoredArticle(s,r){return this.http.post(`${this.apiEndpoint}assets/text/sponsoredArticle/${r}`,s).pipe((0,kn.T)(l=>this.processAssetReference(l)))}insertAssetTextToStaticArticle(s,r){return this.http.post(`${this.apiEndpoint}assets/text/staticArticle/${r}`,s).pipe((0,kn.T)(l=>this.processAssetReference(l)))}insertAssetFileToArticle(s,r){return this.http.post(`${this.apiEndpoint}assets/file/article/${r}`,s).pipe((0,kn.T)(l=>this.processAssetReference(l)))}insertAssetFileToStaticArticle(s,r){return this.http.post(`${this.apiEndpoint}assets/file/staticArticle/${r}`,s).pipe((0,kn.T)(l=>this.processAssetReference(l)))}insertAssetFileToSponsoredArticle(s,r){return this.http.post(`${this.apiEndpoint}assets/file/sponsoredArticle/${r}`,s).pipe((0,kn.T)(l=>this.processAssetReference(l)))}insertAssetFileToEvent(s,r){return this.http.post(`${this.apiEndpoint}assets/file/event/${r}`,s).pipe((0,kn.T)(l=>this.processAssetReference(l)))}insertChild(s,r){return this.http.post(`${this.apiEndpoint}assets/${s}/children`,r).pipe((0,kn.T)(l=>this.processAssetReference(l)))}insertChildImage(s,r){return this.http.post(`${this.apiEndpoint}assets/${s}/children/image`,r).pipe((0,kn.T)(l=>this.processAssetReference(l)))}insertReference(s){return this.http.post(`${this.apiEndpoint}assets/reference`,s).pipe((0,kn.T)(r=>this.processAssetReference(r)))}report(s,r){return this.http.put(`${this.apiEndpoint}assets/${s.guid}/report/${r}`,{}).pipe((0,kn.T)(l=>l.data))}like(s){return this.http.put(`${this.apiEndpoint}assets/${s}/like`,{}).pipe((0,kn.T)(r=>r.data))}updateAssetImageProcessingFocuspoint(s,r){return this.http.put(`${this.apiEndpoint}assets/${s}/imageprocessing/focuspoint`,r)}updateImageText(s){return this.http.put(`${this.apiEndpoint}assets/image/${s.assetImage.guid}`,s.assetImage).pipe((0,kn.T)(r=>r.data))}remove(s){return this.http.delete(`${this.apiEndpoint}assets/${s}`).pipe((0,kn.T)(r=>r&&r.data?r.data:null))}removeReference(s){return this.http.delete(`${this.apiEndpoint}assets/reference/${s.guid}`).pipe((0,kn.T)(r=>r.data))}processAssetReference(s){let r=s;return r.myAsset=!0,new Date(r.created)>new Date&&(r.created=(new Date).toISOString()),r}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Se.A),m.KVO(ke.Qq))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),Hi=(()=>{var o;class t{constructor(s,r,l){this.http=s,this.scopeService=r,this.assetService=l,this.apiBaseUrl="",this.comments=new qt.t([]),this.comments$=this.comments.asObservable(),this.addingComment=!1,this.scope=r.getScope(),this.apiBaseUrl=`${this.scope.apiEndpoint}userComments/`}getComments(s){const l=s.assetReferences.filter(E=>!(E.hideInComments||E.assetFile||E.assetArticle||E.assetStaticArticle)).sort((E,N)=>new Date(N.created).getTime()-new Date(E.created).getTime());l.forEach(E=>{E.childAssets&&E.childAssets.length>0&&E.childAssets.sort((N,ae)=>new Date(N.created).getTime()-new Date(ae.created).getTime())}),this.comments.next(l)}mapToModel(s){return{guid:s.guid,user:s.user,text:s.assetText.text,created:s.assetText.created,released:s.assetText.released,parentGuid:s.parentGuid,replies:s.childAssets?.map(this.mapToModel)}}addComment(s,r,l,E,N,ae){let dt;this.addingComment=!0,r==bn.SingleCommend?E?dt=this.assetService.insertAssetTextToArticle:N?dt=this.assetService.insertAssetTextToSnip:ae&&(dt=this.assetService.insertAssetTextToEvent):r==bn.Image&&(E?dt=this.assetService.insertAssetImageToArticle:N?dt=this.assetService.insertAssetImageToSnip:ae&&(dt=this.assetService.insertAssetImageToEvent)),dt(s,E??N??ae).subscribe({next:Kt=>{let Vn=this.comments.getValue();Vn.unshift(Kt),r==bn.Image&&null!=l&&null!=l?this.setFocusPoint(Kt,l,Vn):(this.comments.next([...Vn]),this.addingComment=!1)},error:Kt=>{(0,$o.A)({message:r==bn.SingleCommend?"Can't add comment":"Upload fehlgeschlagen: "+Kt,position:{my:"top right",at:"top right"},maxWidth:"540px"},"error",3e3),this.addingComment=!1}})}addReplyComment(s,r,l){this.addingComment=!0,r==bn.SingleCommend&&s.parentGuid?this.assetService.insertChild(s.parentGuid,s).subscribe({next:E=>{E.pending=!0,E.parentGuid=s.parentGuid;let N=this.comments.getValue(),ae=N.first(ze=>ze.guid==s.parentGuid);ae.childAssets||(ae.childAssets=[]),ae.childAssets.push(E),this.comments.next([...N]),this.addingComment=!1},error:E=>{(0,$o.A)({message:"Cant add reply"+E,position:{my:"top right",at:"top right"},maxWidth:"540px"},"error",3e3),this.addingComment=!1}}):r==bn.Image&&this.assetService.insertChildImage(s.parentGuid,s).subscribe({next:E=>{E.pending=!0,E.parentGuid=s.parentGuid;let N=this.comments.getValue(),ae=N.first(ze=>ze.guid==s.parentGuid);ae.childAssets||(ae.childAssets=[]),ae.childAssets.push(E),null!=l&&null!=l?this.setFocusPoint(E,l,N):(this.comments.next([...N]),this.addingComment=!1)},error:E=>{(0,$o.A)({message:"Upload fehlgeschlagen: "+E,position:{my:"top right",at:"top right"},maxWidth:"540px"},"error",3e3),this.addingComment=!1}})}deleteComment(s){this.assetService.remove(s).subscribe(()=>{let r=this.comments.getValue(),l=!1;r.forEach(E=>{if(E.childAssets){const N=E.childAssets.findIndex(ae=>ae.guid===s);-1!==N&&(E.childAssets.splice(N,1),l=!0)}}),l||(r=r.filter(E=>E.guid!==s)),this.comments.next([...r])},r=>{(0,$o.A)({message:"Cant delete comment"+r,position:{my:"top right",at:"top right"},maxWidth:"540px"},"error",3e3)})}likeComment(s){let r=this.comments.getValue(),l=r.where(E=>E.guid==s).firstOrDefault();this.http.put(`${this.scope.apiEndpoint}assets/${s}/like`,null).subscribe(E=>{l&&(l.likes=E.likes,this.comments.next(r))})}setFocusPoint(s,r,l){this.assetService.updateAssetImageProcessingFocuspoint(s.assetImage.guid,r).subscribe({next:()=>{this.comments.next([...l]),this.addingComment=!1},error:E=>{(0,$o.A)({message:"Upload fehlgeschlagen: "+E,position:{my:"top right",at:"top right"},maxWidth:"540px"},"error",3e3),this.addingComment=!1}})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(Se.A),m.KVO(yi))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();var co=function(o){return o[o.None=0]="None",o[o.Journalist=2]="Journalist",o[o.MerkuristJournalist=3]="MerkuristJournalist",o[o.HeadJournalist=4]="HeadJournalist",o[o.Sales=5]="Sales",o[o.HeadSales=6]="HeadSales",o[o.NewsroomAdmin=7]="NewsroomAdmin",o}(co||{}),Po=p(3486),Ko=p(5626),Ft=p(6667),Wt=p(5634),xt=p(6078);let Fe=(()=>{var o;class t{constructor(s,r,l,E,N,ae,ze){this.el=s,this.sanitizer=r,this.router=l,this.document=E,this.scopeService=N,this.cordovaService=ae,this.clickService=ze,this.scope=this.scopeService.getScope(),this.cordovaService.isCordovaAvailable()&&(this.cordova=this.cordovaService.cordova)}ngOnChanges(s){if(!s.rawHtml)return;let r="";r=null==this.rawHtml?"":"string"==typeof this.rawHtml?this.rawHtml:this.sanitizer.sanitize(e.WPN.HTML,this.rawHtml)||"";const E=r.replace(/(\b(https?:\/\/|www\.)[^\s<]+)/gi,N=>`<a href="${N.match(/^https?:\/\//)?N:`http://${N}`}" target="_blank" rel="noopener">${N}</a>`);this.el.nativeElement.innerHTML=E}handleClick(s){const r=s.target;if("A"!==r.tagName||"_blank"!==r.getAttribute("target"))return;const l=r.getAttribute("href");if(!l)return;let E=!1;if(l.match(new RegExp(`https?:\\/\\/(.*\\/)?${location.hostname}.*`)))E=!0;else try{new URL(l),E=!1}catch{l.match("^(?:https?:)?\\/\\/.*")||(E=!0)}if(!E){const N=this.scope.currentScope.network.getResourceOrKeyName("web_comments_external_link_warning");if(!confirm(N))return void s.preventDefault()}if(s.preventDefault(),s.stopPropagation(),E)if(l.startsWith("/click/"))this.router.navigateByUrl(l);else if(l.includes("/document/")||l.includes("/pdf/")||l.includes("/file/")){const N=/[^/]*$/.exec(l)?.[0];N&&this.clickService.downloadFile(N)}else{const N=this.scope.currentScope.network.path,ae=this.scope.currentChapter.path;if(ae.length>1&&l.startsWith(N+ae)){const ze=l.replace(N,"");window.history.pushState({},"",ze),window.dispatchEvent(new PopStateEvent("popstate",{state:{}}))}else window.location.href=l}else if(this.cordova){const N=this.scope.currentScope.network.settings.configurations.inAppBrowserOnly;let ae="location=no,toolbarposition=top,toolbartranslucent=no";"android"===this.cordova.platformId&&(ae="location=yes,hideurlbar=yes,zoom=no,closebuttoncaption="+this.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"));let ze="_blank";(!N||l.match(/^mailto:/)||l.match(/^tel:/))&&(ze="_system"),this.cordova.InAppBrowser.open(l,ze,ae)}else window.open(l,"_blank")}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(Oo.up),e.rXU(Vt.Ix),e.rXU(m.qQL),e.rXU(Se.A),e.rXU(Wt.q),e.rXU(xt._))},this.\u0275dir=e.FsC({type:t,selectors:[["","linkify",""]],hostBindings:function(r,l){1&r&&e.bIt("click",function(N){return l.handleClick(N)})},inputs:{rawHtml:[0,"linkify","rawHtml"]},standalone:!1,features:[e.OA$]}))}return o(),t})();var He=p(2198);let wt=(()=>{var o;class t{constructor(s,r,l){this.elementRef=s,this.upgrade=r,this.http=l}ngOnInit(){this.isTemplateCached(this.templateUrl)?this.bootstrapAngularJsComponent():console.error(`Template not found in $templateCache: ${this.templateUrl}`)}isTemplateCached(s){return!!this.upgrade.$injector.get("$templateCache").get(s)}bootstrapAngularJsComponent(){const s=this.elementRef.nativeElement,r=this.upgrade.$injector.get("$rootScope").$new(),l={$scope:r};Object.keys(this.bindings).forEach(Kt=>{l[Kt]=this.bindings[Kt]}),Object.keys(this.bindings).forEach(Kt=>{r[Kt]=this.bindings[Kt]});const E=this.upgrade.$injector.get("$compile"),ae=this.upgrade.$injector.get("$controller")(this.controllerName,l);r.ctrl=ae;const dt=E(`\n        <div ng-include="'${this.templateUrl}'"></div>\n    `);if(dt){const Kt=dt(r);s.appendChild(Kt[0]),r.$applyAsync()}else console.error("Error compiling AngularJS template")}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(He.be),e.rXU(ke.Qq))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-angularjs-wrapper"]],inputs:{templateUrl:"templateUrl",controllerName:"controllerName",bindings:"bindings"},standalone:!1,decls:2,vars:0,consts:[["angularJsContainer",""]],template:function(r,l){1&r&&e.nrm(0,"div",null,0)},encapsulation:2}))}return o(),t})();var Ut=p(8129),cn=p(1351),Ln=p(2385),$n=p(79);let bi=(()=>{var o;class t{constructor(s,r,l,E,N,ae){this.el=s,this.injector=r,this.upgrade=l,this.popupService=E,this.profileService=N,this.deviceInfoService=ae,this.authorizedClickSource="",this.isMobile=!1,this.$analytics=this.upgrade.$injector.get("$analytics"),this.isMobile=this.deviceInfoService.getUserAgentInfo().isMobile||this.deviceInfoService.getUserAgentInfo().isApp}ngAfterViewInit(){(0,Ut.R)(this.el.nativeElement,"click",{capture:!0}).subscribe(s=>{this.profileService.profile.isRegistered?this.profileService.profile.hasPartnerAccessAllowed||(s.preventDefault(),s.stopImmediatePropagation(),this.showPartnerAccessDialog(s)):(s.preventDefault(),s.stopImmediatePropagation(),this.showAuthenticationDialog(s))})}showAuthenticationDialog(s){const E={title:"Login",component:cn.c,width:this.isMobile?"100vw":"auto",height:"auto",onClose:()=>{},animation:this.isMobile?{show:{type:"slide",duration:600,from:{position:{my:"top",at:"bottom",of:window},opacity:0},to:{position:{my:"bottom",at:"bottom",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"bottom",at:"bottom",of:window},opacity:1},to:{position:{my:"top",at:"bottom",of:window},opacity:0}}}:void 0,position:this.isMobile?{my:"bottom center",at:"bottom center"}:void 0,hideOnOutsideClick:!0,enableBodyScroll:!0,data:{templateUrl:"/ClientApp/src/app/cms-presentation/authentication/authentication-dialog/authentication-dialog.component.html"}};this.popupService.openPopup(E),this.$analytics.eventTrack("ShowAuthenticationRequiredDialog",{category:"Conversion",label:this.authorizedClickSource})}showPartnerAccessDialog(s){this.popupService.openPopup({title:"Login",component:wt,width:"auto",height:"auto",onClose:()=>{},data:{templateUrl:"/ClientApp/src/legacy-app/authentication/allowPartnerAccessDialog.html",controllerName:"AllowPartnerAccessDialog",bindings:{authenticationCallback:()=>{setTimeout(()=>{this.profileService.profile.hasPartnerAccessAllowed&&this.el.nativeElement.click()},1200,!1)}}}})}triggerOriginalClickHandler(s){this.el.nativeElement.dispatchEvent(s)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(m.zZn),e.rXU(He.be),e.rXU(Ln.O),e.rXU($n.p),e.rXU(Ce.E))},this.\u0275dir=e.FsC({type:t,selectors:[["","appAuthorizedClick",""]],inputs:{authorizedClickSource:"authorizedClickSource"}}))}return o(),t})();var vi=p(2029),ki=p(7096),Si=p(6117);let Wi=(()=>{var o;class t{constructor(){}getItem(s){const r=localStorage.getItem(s);if(r)try{return JSON.parse(r)}catch(l){return console.error(`Error parsing localStorage key "${s}":`,l),null}return null}setItem(s,r){try{localStorage.setItem(s,JSON.stringify(r))}catch(l){console.error(`Error setting localStorage key "${s}":`,l)}}removeItem(s){localStorage.removeItem(s)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),Pi=(()=>{var o;class t{constructor(s,r,l){this.http=s,this.deviceInfoService=r,this.scopeService=l,this.globalSettingsUrl="/api/global-settings",this.tenantSettingsUrl="/api/tenant-settings",this.initialFontSize=16,this.isRedesign=!1,this.miniScope=this.scopeService.getMiniScope(),this.isRedesign="Redesign2024"==this.miniScope.data.RootCssClass}getDefaultSettings(){return this.isRedesign?{theme:"2",resolvedTheme:null,rootFontSize:"auto",fonts:{heading:"Arial",body:"Roboto"},colorScheme:{primary:"#ffffff",secondary:"#000000",tertiary:"#ff0000"},colorFilter:0,bluelightFilter:!1,imageFilter:!1,ttsActive:!0,icons:"default",schema:""}:{theme:"0",resolvedTheme:null,rootFontSize:"10",fonts:{heading:"Arial",body:"Roboto"},colorScheme:{primary:"#ffffff",secondary:"#000000",tertiary:"#ff0000"},colorFilter:0,bluelightFilter:!1,imageFilter:!1,ttsActive:!1,icons:"default",schema:"Legacy"}}getGlobalSettings(){return this.http.get(this.globalSettingsUrl)}updateGlobalSettings(s){return this.http.put(this.globalSettingsUrl,s)}getTenantSettings(s){return this.http.get(`${this.tenantSettingsUrl}/${s}`)}updateTenantSettings(s,r){return this.http.put(`${this.tenantSettingsUrl}/${s}`,r)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(Ce.E),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),oo=(()=>{var o;class t{constructor(s,r,l,E){this.rendererFactory=s,this.localStorageService=r,this.themingSettingsManagementService=l,this.scopeService=E,this.initState=!1,this.defaultFontSize=Math.min(Math.max(parseFloat(getComputedStyle(document.documentElement).fontSize),12),32),this.themingChanged=new Rt.m,this.themingChanged$=this.themingChanged.asObservable(),this.setColorFilterStatus=ze=>{this.currentSettings.colorFilter=ze,this.saveSettings()},this.setBlueLightFilterStatus=ze=>{this.currentSettings.bluelightFilter=ze,this.saveSettings()},this.setImageFilterStatus=ze=>{this.currentSettings.imageFilter=ze,this.saveSettings()},this.getColorFilterStatus=()=>this.currentSettings?.colorFilter??0,this.getBlueLightFilterStatus=()=>this.currentSettings?.bluelightFilter??!1,this.getImageFilterStatus=()=>this.currentSettings?.imageFilter??!1,this.applyFilters=()=>{switch(document.body.classList.remove("filter-red","filter-blue","filter-green","filter-gray","filter-off","filter-contrast","filter-saturate"),this.getColorFilterStatus()){case 1:document.body.classList.add("filter-red");break;case 2:document.body.classList.add("filter-blue");break;case 3:document.body.classList.add("filter-green");break;case 4:document.body.classList.add("filter-gray");break;case 5:document.body.classList.add("filter-contrast");break;case 6:document.body.classList.add("filter-saturate");break;default:document.body.classList.add("filter-off")}this.getBlueLightFilterStatus()&&document.body.classList.add("blue-light-on"),this.getImageFilterStatus()&&document.body.classList.add("image-filter"),this.themingChanged.next(this.currentSettings)},this.miniScope=this.scopeService.getMiniScope(),this.renderer=this.rendererFactory.createRenderer(null,null),this.loadSettings();const N=window.matchMedia("(prefers-color-scheme: dark)"),ae=ze=>{this.applyTheme()};N.addEventListener?N.addEventListener("change",ae):N.addListener&&N.addListener(ae)}loadSettings(){const s="Redesign2024"==this.miniScope.data.RootCssClass,r=this.localStorageService.getItem("userVisualSettings");"Redesign2024"==r?.schema&&s&&(this.currentSettings=r,this.applySettings()),"Legacy"==r?.schema&&!s&&(this.currentSettings=r,"auto"==this.currentSettings.rootFontSize&&(this.currentSettings=this.themingSettingsManagementService.getDefaultSettings(),this.saveSettings())),"Redesign2024"!=r?.schema&&s&&(this.currentSettings=this.themingSettingsManagementService.getDefaultSettings(),this.currentSettings.schema="Redesign2024",this.initState=!0,this.saveSettings(),this.applySettings()),"Redesign2024"==r?.schema&&!s&&(this.currentSettings=this.themingSettingsManagementService.getDefaultSettings(),this.currentSettings.schema="Legacy",this.initState=!0,this.saveSettings()),"Redesign2024"!=r?.schema&&!s&&(this.currentSettings=this.themingSettingsManagementService.getDefaultSettings(),this.currentSettings.schema="Legacy",this.initState=!0,this.saveSettings())}setFontSize(s){this.initState=!1,s==this.defaultFontSize?this.currentSettings.rootFontSize="auto":(s<10&&(s=10),this.currentSettings.rootFontSize=s.toString()),this.saveSettings(),this.applySettings()}applyFontSize(){"auto"==this.currentSettings.rootFontSize&&(document.documentElement.style.fontSize=`${this.defaultFontSize}px`),this.initState||"auto"==this.currentSettings.rootFontSize||parseFloat(getComputedStyle(document.documentElement).fontSize)==parseInt(this.currentSettings.rootFontSize)||(document.documentElement.style.fontSize=`${this.currentSettings.rootFontSize}px`),this.themingChanged.next(this.currentSettings)}saveSettings(){this.localStorageService.setItem("userVisualSettings",this.currentSettings)}applySettings(){this.applyFontSize(),this.applyTheme(),this.applyFilters()}applyTheme(){const s=2===parseInt(this.currentSettings.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":1===parseInt(this.currentSettings.theme)?"dark":"light";"light"!=s?document.documentElement.setAttribute("data-theme",s):document.documentElement.removeAttribute("data-theme"),this.currentSettings.resolvedTheme=s,this.themingChanged.next(this.currentSettings)}getSelectedTheme(){return parseInt(this.currentSettings.theme)}setSelectedTheme(s){this.currentSettings.theme=s.toString(),this.saveSettings(),this.applyTheme()}resetToDefault(){this.currentSettings.rootFontSize="auto",this.currentSettings.theme="2",this.currentSettings.colorFilter=0,this.currentSettings.bluelightFilter=!1,this.currentSettings.imageFilter=!1,this.saveSettings(),this.applySettings()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(e._9s),m.KVO(Wi),m.KVO(Pi),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();var Do=p(6340),Ht=p(6715),Mt=p(2489);const bt=["wrapper"],an=["sourceImage"];function Un(o,t){if(1&o){const n=e.RV6();e.j41(0,"img",5,0),e.bIt("load",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.imageLoadedInView())})("mousedown",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.startMove(r,l.moveTypes.Drag))})("touchstart",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.startMove(r,l.moveTypes.Drag))})("error",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.loadImageError(r))}),e.k0s()}if(2&o){const n=t.ngIf,s=e.XpG();e.xc7("visibility",s.imageVisible?"visible":"hidden")("transform",s.safeTransformStyle()),e.AVh("ngx-ic-draggable",!s.disabled&&s.allowMoveImage),e.Y8G("src",n,e.B4B),e.BMQ("alt",s.imageAltText)}}function di(o,t){if(1&o){const n=e.RV6();e.qex(0),e.j41(1,"span",9),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"topleft"))})("touchstart",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"topleft"))}),e.nrm(2,"span",10),e.k0s(),e.j41(3,"span",11),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"topright"))})("touchstart",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"topright"))}),e.nrm(4,"span",10),e.k0s(),e.j41(5,"span",12),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"bottomright"))})("touchstart",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"bottomright"))}),e.nrm(6,"span",10),e.k0s(),e.j41(7,"span",13),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"bottomleft"))})("touchstart",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"bottomleft"))}),e.nrm(8,"span",10),e.k0s(),e.j41(9,"span",14),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"top"))})("touchstart",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"top"))}),e.k0s(),e.j41(10,"span",15),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"top"))})("touchstart",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"top"))}),e.nrm(11,"span",10),e.k0s(),e.j41(12,"span",16),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"right"))})("touchstart",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"right"))}),e.k0s(),e.j41(13,"span",17),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"right"))})("touchstart",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"right"))}),e.nrm(14,"span",10),e.k0s(),e.j41(15,"span",18),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"bottom"))})("touchstart",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"bottom"))}),e.k0s(),e.j41(16,"span",19),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"bottom"))})("touchstart",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"bottom"))}),e.nrm(17,"span",10),e.k0s(),e.j41(18,"span",20),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"left"))})("touchstart",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"left"))}),e.k0s(),e.j41(19,"span",21),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"left"))})("touchstart",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.startMove(r,l.moveTypes.Resize,"left"))}),e.nrm(20,"span",10),e.k0s(),e.bVm()}}function qn(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",6),e.bIt("keydown",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.keyboardAccess(r))}),e.j41(1,"div",7),e.bIt("mousedown",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.startMove(r,l.moveTypes.Move))})("touchstart",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.startMove(r,l.moveTypes.Move))}),e.k0s(),e.DNE(2,di,21,0,"ng-container",8),e.k0s()}if(2&o){const n=e.XpG();e.xc7("top",n.state.cropper().y1,"px")("left",n.state.cropper().x1,"px")("width",n.state.cropper().x2-n.state.cropper().x1,"px")("height",n.state.cropper().y2-n.state.cropper().y1,"px")("margin-left","center"===n.state.options.alignImage?n.marginLeft:null)("visibility",n.imageVisible?"visible":"hidden"),e.AVh("ngx-ic-round",n.state.options.roundCropper),e.BMQ("aria-label",n.state.options.cropperFrameAriaLabel),e.R7$(2),e.Y8G("ngIf",!(n.state.options.hideResizeSquares||n.state.options.cropperStaticWidth&&n.state.options.cropperStaticHeight))}}function Ti(o,t,n){return o=function Qi(o,t){let n=o.x2-o.x1,s=o.y2-o.y1;const r=o.x1+n/2,l=o.y1+s/2;t.options.cropperStaticHeight&&t.options.cropperStaticWidth?(n=t.maxSize().width>t.options.cropperStaticWidth?t.options.cropperStaticWidth:t.maxSize().width,s=t.maxSize().height>t.options.cropperStaticHeight?t.options.cropperStaticHeight:t.maxSize().height):(n=Math.max(t.cropperScaledMinWidth,Math.min(n,t.cropperScaledMaxWidth,t.maxSize().width)),s=Math.max(t.cropperScaledMinHeight,Math.min(s,t.cropperScaledMaxHeight,t.maxSize().height)),t.options.maintainAspectRatio&&(t.maxSize().width/t.options.aspectRatio<t.maxSize().height?s=n/t.options.aspectRatio:n=s*t.options.aspectRatio));const E=r-n/2,ae=l-s/2;return{x1:E,x2:E+n,y1:ae,y2:ae+s}}(o,t),go(o,t,n)}function go(o,t,n=!1){return o.x1<0&&(o={...o,x1:0,x2:o.x2-(n?o.x1:0)}),o.y1<0&&(o={...o,y2:o.y2-(n?o.y1:0),y1:0}),o.x2>t.maxSize().width&&(o={...o,x1:o.x1-(n?o.x2-t.maxSize().width:0),x2:t.maxSize().width}),o.y2>t.maxSize().height&&(o={...o,y1:o.y1-(n?o.y2-t.maxSize().height:0),y2:t.maxSize().height}),o}function os(o,t,n){const s={...n.cropper()},r=Os(o)-t.clientX,l=Ks(o)-t.clientY;switch(t.position){case"left":s.x1=Math.min(Math.max(t.cropper.x1+r,s.x2-n.cropperScaledMaxWidth),s.x2-n.cropperScaledMinWidth);break;case"topleft":s.x1=Math.min(Math.max(t.cropper.x1+r,s.x2-n.cropperScaledMaxWidth),s.x2-n.cropperScaledMinWidth),s.y1=Math.min(Math.max(t.cropper.y1+l,s.y2-n.cropperScaledMaxHeight),s.y2-n.cropperScaledMinHeight);break;case"top":s.y1=Math.min(Math.max(t.cropper.y1+l,s.y2-n.cropperScaledMaxHeight),s.y2-n.cropperScaledMinHeight);break;case"topright":s.x2=Math.max(Math.min(t.cropper.x2+r,s.x1+n.cropperScaledMaxWidth),s.x1+n.cropperScaledMinWidth),s.y1=Math.min(Math.max(t.cropper.y1+l,s.y2-n.cropperScaledMaxHeight),s.y2-n.cropperScaledMinHeight);break;case"right":s.x2=Math.max(Math.min(t.cropper.x2+r,s.x1+n.cropperScaledMaxWidth),s.x1+n.cropperScaledMinWidth);break;case"bottomright":s.x2=Math.max(Math.min(t.cropper.x2+r,s.x1+n.cropperScaledMaxWidth),s.x1+n.cropperScaledMinWidth),s.y2=Math.max(Math.min(t.cropper.y2+l,s.y1+n.cropperScaledMaxHeight),s.y1+n.cropperScaledMinHeight);break;case"bottom":s.y2=Math.max(Math.min(t.cropper.y2+l,s.y1+n.cropperScaledMaxHeight),s.y1+n.cropperScaledMinHeight);break;case"bottomleft":s.x1=Math.min(Math.max(t.cropper.x1+r,s.x2-n.cropperScaledMaxWidth),s.x2-n.cropperScaledMinWidth),s.y2=Math.max(Math.min(t.cropper.y2+l,s.y1+n.cropperScaledMaxHeight),s.y1+n.cropperScaledMinHeight);break;case"center":const E="scale"in o?o.scale:1,N=Math.min(Math.max(n.cropperScaledMinWidth,Math.abs(t.cropper.x2-t.cropper.x1)*E),n.cropperScaledMaxWidth),ae=Math.min(Math.max(n.cropperScaledMinHeight,Math.abs(t.cropper.y2-t.cropper.y1)*E),n.cropperScaledMaxHeight);s.x1=t.clientX-N/2,s.x2=t.clientX+N/2,s.y1=t.clientY-ae/2,s.y2=t.clientY+ae/2,s.x1<0?(s.x2-=s.x1,s.x1=0):s.x2>n.maxSize().width&&(s.x1-=s.x2-n.maxSize().width,s.x2=n.maxSize().width),s.y1<0?(s.y2-=s.y1,s.y1=0):s.y2>n.maxSize().height&&(s.y1-=s.y2-n.maxSize().height,s.y2=n.maxSize().height)}return n.options.maintainAspectRatio?function as(o,t,n){t={...t};let s=0,r=0;switch(o){case"top":t.x2=t.x1+(t.y2-t.y1)*n.options.aspectRatio,s=Math.max(t.x2-n.maxSize().width,0),r=Math.max(0-t.y1,0),(s>0||r>0)&&(t.x2-=r*n.options.aspectRatio>s?r*n.options.aspectRatio:s,t.y1+=r*n.options.aspectRatio>s?r:s/n.options.aspectRatio);break;case"bottom":t.x2=t.x1+(t.y2-t.y1)*n.options.aspectRatio,s=Math.max(t.x2-n.maxSize().width,0),r=Math.max(t.y2-n.maxSize().height,0),(s>0||r>0)&&(t.x2-=r*n.options.aspectRatio>s?r*n.options.aspectRatio:s,t.y2-=r*n.options.aspectRatio>s?r:s/n.options.aspectRatio);break;case"topleft":t.y1=t.y2-(t.x2-t.x1)/n.options.aspectRatio,s=Math.max(0-t.x1,0),r=Math.max(0-t.y1,0),(s>0||r>0)&&(t.x1+=r*n.options.aspectRatio>s?r*n.options.aspectRatio:s,t.y1+=r*n.options.aspectRatio>s?r:s/n.options.aspectRatio);break;case"topright":t.y1=t.y2-(t.x2-t.x1)/n.options.aspectRatio,s=Math.max(t.x2-n.maxSize().width,0),r=Math.max(0-t.y1,0),(s>0||r>0)&&(t.x2-=r*n.options.aspectRatio>s?r*n.options.aspectRatio:s,t.y1+=r*n.options.aspectRatio>s?r:s/n.options.aspectRatio);break;case"right":case"bottomright":t.y2=t.y1+(t.x2-t.x1)/n.options.aspectRatio,s=Math.max(t.x2-n.maxSize().width,0),r=Math.max(t.y2-n.maxSize().height,0),(s>0||r>0)&&(t.x2-=r*n.options.aspectRatio>s?r*n.options.aspectRatio:s,t.y2-=r*n.options.aspectRatio>s?r:s/n.options.aspectRatio);break;case"left":case"bottomleft":t.y2=t.y1+(t.x2-t.x1)/n.options.aspectRatio,s=Math.max(0-t.x1,0),r=Math.max(t.y2-n.maxSize().height,0),(s>0||r>0)&&(t.x1+=r*n.options.aspectRatio>s?r*n.options.aspectRatio:s,t.y2-=r*n.options.aspectRatio>s?r:s/n.options.aspectRatio);break;case"center":t.x2=t.x1+(t.y2-t.y1)*n.options.aspectRatio,t.y2=t.y1+(t.x2-t.x1)/n.options.aspectRatio;const l=Math.max(0-t.x1,0),E=Math.max(t.x2-n.maxSize().width,0),N=Math.max(t.y2-n.maxSize().height,0),ae=Math.max(0-t.y1,0);(l>0||E>0||N>0||ae>0)&&(t.x1+=N*n.options.aspectRatio>l?N*n.options.aspectRatio:l,t.x2-=ae*n.options.aspectRatio>E?ae*n.options.aspectRatio:E,t.y1+=ae*n.options.aspectRatio>E?ae:E/n.options.aspectRatio,t.y2-=N*n.options.aspectRatio>l?N:l/n.options.aspectRatio)}return t}(t.position,s,n):s}function Os(o){return"touches"in o&&o.touches[0]?o.touches[0].clientX:"clientX"in o?o.clientX:0}function Ks(o){return"touches"in o&&o.touches[0]?o.touches[0].clientY:"clientX"in o?o.clientY:0}class ht{constructor(){this.cropper=(0,m.vPA)({x1:0,x2:0,y1:0,y2:0}),this.maxSize=(0,m.vPA)({width:0,height:0}),this.transform={},this.options={format:"png",output:"blob",autoCrop:!0,maintainAspectRatio:!0,aspectRatio:1,resetCropOnAspectRatioChange:!0,resizeToWidth:0,resizeToHeight:0,cropperMinWidth:0,cropperMinHeight:0,cropperMaxHeight:0,cropperMaxWidth:0,cropperStaticWidth:0,cropperStaticHeight:0,canvasRotation:0,roundCropper:!1,onlyScaleDown:!1,imageQuality:92,backgroundColor:void 0,containWithinAspectRatio:!1,hideResizeSquares:!1,alignImage:"center",cropperFrameAriaLabel:void 0,checkImageType:!0},this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=3}setOptionsFromChanges(t){t.options?.currentValue&&this.setOptions(t.options.currentValue);const n=Object.entries(t).filter(([s])=>s in this.options).reduce((s,[r,l])=>({...s,[r]:l.currentValue}),{});Object.keys(n).length>0&&this.setOptions(n)}setOptions(t){if(this.options={...this.options,...t||{}},this.validateOptions(),!this.loadedImage?.transformed.image.complete||!this.maxSize)return;let n=!1;this.options.maintainAspectRatio&&t.aspectRatio||"maintainAspectRatio"in t?(this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.options.maintainAspectRatio&&(this.options.resetCropOnAspectRatioChange||!this.aspectRatioIsCorrect())&&(this.cropper.set(this.maxSizeCropperPosition()),n=!0)):((t.cropperMinWidth||t.cropperMinHeight)&&(this.setCropperScaledMinSize(),n=!0),(t.cropperMaxWidth||t.cropperMaxHeight)&&(this.setCropperScaledMaxSize(),n=!0),(t.cropperStaticWidth||t.cropperStaticHeight)&&(n=!0)),n&&this.cropper.update(s=>Ti(s,this,!1))}validateOptions(){if(this.options.maintainAspectRatio&&!this.options.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}setMaxSize(t,n){this.maxSize.set({width:t,height:n}),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize()}setCropperScaledMinSize(){this.loadedImage?.transformed.size?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.cropperScaledMinWidth=this.options.cropperMinWidth>0?Math.max(20,this.options.cropperMinWidth/this.loadedImage.transformed.size.width*this.maxSize().width):20}setCropperScaledMinHeight(){this.cropperScaledMinHeight=this.options.maintainAspectRatio?Math.max(20,this.cropperScaledMinWidth/this.options.aspectRatio):this.options.cropperMinHeight>0?Math.max(20,this.options.cropperMinHeight/this.loadedImage.transformed.size.height*this.maxSize().height):20}setCropperScaledMaxSize(){if(this.loadedImage?.transformed.size){const t=this.loadedImage.transformed.size.width/this.maxSize().width;this.cropperScaledMaxWidth=this.options.cropperMaxWidth>20?this.options.cropperMaxWidth/t:this.maxSize().width,this.cropperScaledMaxHeight=this.options.cropperMaxHeight>20?this.options.cropperMaxHeight/t:this.maxSize().height,this.options.maintainAspectRatio&&(this.cropperScaledMaxWidth>this.cropperScaledMaxHeight*this.options.aspectRatio?this.cropperScaledMaxWidth=this.cropperScaledMaxHeight*this.options.aspectRatio:this.cropperScaledMaxWidth<this.cropperScaledMaxHeight*this.options.aspectRatio&&(this.cropperScaledMaxHeight=this.cropperScaledMaxWidth/this.options.aspectRatio))}else this.cropperScaledMaxWidth=this.maxSize().width,this.cropperScaledMaxHeight=this.maxSize().height}equalsCropperPosition(t){const n=this.cropper();return null==n&&null==t||null!=n&&null!=t&&n.x1.toFixed(3)===t.x1.toFixed(3)&&n.y1.toFixed(3)===t.y1.toFixed(3)&&n.x2.toFixed(3)===t.x2.toFixed(3)&&n.y2.toFixed(3)===t.y2.toFixed(3)}equalsTransformTranslate(t){return(this.transform.translateH??0)===(t.translateH??0)&&(this.transform.translateV??0)===(t.translateV??0)}equalsTransform(t){return this.equalsTransformTranslate(t)&&(this.transform.scale??1)===(t.scale??1)&&(this.transform.rotate??0)===(t.rotate??0)&&(this.transform.flipH??!1)===(t.flipH??!1)&&(this.transform.flipV??!1)===(t.flipV??!1)}aspectRatioIsCorrect(){const t=this.cropper();return(t.x2-t.x1)/(t.y2-t.y1)===this.options.aspectRatio}resizeCropperPosition(t){(t.width!==this.maxSize().width||t.height!==this.maxSize().height)&&this.cropper.update(n=>({x1:n.x1*this.maxSize().width/t.width,x2:n.x2*this.maxSize().width/t.width,y1:n.y1*this.maxSize().height/t.height,y2:n.y2*this.maxSize().height/t.height}))}maxSizeCropperPosition(){return{x1:0,y1:0,x2:this.maxSize().width,y2:this.maxSize().height}}toCropInput(){return{cropper:this.cropper(),maxSize:this.maxSize(),transform:this.transform,loadedImage:this.loadedImage,options:{...this.options}}}}var _t=function(o){return o.Drag="drag",o.Move="move",o.Resize="resize",o.Pinch="pinch",o}(_t||{});function In(o,t){return o/100*t}class Oi{crop(t,n){const s=this.getImagePosition(t),r=s.x2-s.x1,l=s.y2-s.y1,E=document.createElement("canvas");E.width=r,E.height=l;const N=E.getContext("2d");if(!N)return null;null!=t.options?.backgroundColor&&(N.fillStyle=t.options.backgroundColor,N.fillRect(0,0,r,l));const ae=(t.transform?.scale||1)*(t.transform?.flipH?-1:1),ze=(t.transform?.scale||1)*(t.transform?.flipV?-1:1),{translateH:dt,translateV:Kt}=this.getCanvasTranslate(t),Vn=t.loadedImage.transformed;N.setTransform(ae,0,0,ze,Vn.size.width/2+dt,Vn.size.height/2+Kt),N.translate(-s.x1/ae,-s.y1/ze),N.rotate((t.transform?.rotate||0)*Math.PI/180),N.drawImage(Vn.image,-Vn.size.width/2,-Vn.size.height/2);const ci={width:r,height:l,imagePosition:s,cropperPosition:{...t.cropper}};t.options?.containWithinAspectRatio&&(ci.offsetImagePosition=this.getOffsetImagePosition(t));const Vi=this.getResizeRatio(r,l,t.options);return 1!==Vi&&(ci.width=Math.round(r*Vi),ci.height=t.options?.maintainAspectRatio?Math.round(ci.width/(t.options?.aspectRatio??1)):Math.round(l*Vi),function _n(o,t,n){const s=o.width,r=o.height,l=s/(t=Math.round(t)),E=r/(n=Math.round(n)),N=Math.ceil(l/2),ae=Math.ceil(E/2),ze=o.getContext("2d");if(ze){const dt=ze.getImageData(0,0,s,r),Kt=ze.createImageData(t,n),Vn=dt.data,ci=Kt.data;for(let Vi=0;Vi<n;Vi++)for(let Di=0;Di<t;Di++){const Eo=4*(Di+Vi*t),uo=Vi*E;let Jo=0,es=0,Qo=0,Ts=0,_a=0,wa=0,ll=0;const Sm=Math.floor(Di*l),mf=Math.floor(Vi*E);let Q0=Math.ceil((Di+1)*l),Z0=Math.ceil((Vi+1)*E);Q0=Math.min(Q0,s),Z0=Math.min(Z0,r);for(let cv=mf;cv<Z0;cv++){const r1=Math.abs(uo-cv)/ae,pk=Di*l,RK=r1*r1;for(let a1=Sm;a1<Q0;a1++){const i2=Math.abs(pk-a1)/N,J0=Math.sqrt(RK+i2*i2);if(J0>=1)continue;Jo=2*J0*J0*J0-3*J0*J0+1;const q0=4*(a1+cv*s);ll+=Jo*Vn[q0+3],Qo+=Jo,Vn[q0+3]<255&&(Jo=Jo*Vn[q0+3]/250),Ts+=Jo*Vn[q0],_a+=Jo*Vn[q0+1],wa+=Jo*Vn[q0+2],es+=Jo}}ci[Eo]=Ts/es,ci[Eo+1]=_a/es,ci[Eo+2]=wa/es,ci[Eo+3]=ll/Qo}o.width=t,o.height=n,ze.putImageData(Kt,0,0)}}(E,ci.width,ci.height)),"blob"===n?this.cropToBlob(ci,E,t):(ci.base64=E.toDataURL("image/"+(t.options?.format??"png"),this.getQuality(t.options)),ci)}cropToBlob(t,n,s){var r=this;return(0,ei.A)(function*(){return t.blob=yield new Promise(l=>n.toBlob(l,"image/"+(s.options?.format??"png"),r.getQuality(s.options))),t.blob&&(t.objectUrl=URL.createObjectURL(t.blob)),t})()}getCanvasTranslate(t){if("px"===t.transform?.translateUnit){const n=this.getRatio(t);return{translateH:(t.transform?.translateH||0)*n,translateV:(t.transform?.translateV||0)*n}}return{translateH:t.transform?.translateH?In(t.transform.translateH,t.loadedImage.transformed.size.width):0,translateV:t.transform?.translateV?In(t.transform.translateV,t.loadedImage.transformed.size.height):0}}getRatio(t){return t.loadedImage.transformed.size.width/t.maxSize.width}getImagePosition(t){const n=this.getRatio(t),s={x1:Math.round(t.cropper.x1*n),y1:Math.round(t.cropper.y1*n),x2:Math.round(t.cropper.x2*n),y2:Math.round(t.cropper.y2*n)};return t.options?.containWithinAspectRatio||(s.x1=Math.max(s.x1,0),s.y1=Math.max(s.y1,0),s.x2=Math.min(s.x2,t.loadedImage.transformed.size.width),s.y2=Math.min(s.y2,t.loadedImage.transformed.size.height)),s}getOffsetImagePosition(t){const n=(t.options?.canvasRotation??0)+t.loadedImage.exifTransform.rotate,s=this.getRatio(t);let r,l;n%2?(r=(t.loadedImage.transformed.size.width-t.loadedImage.original.size.height)/2,l=(t.loadedImage.transformed.size.height-t.loadedImage.original.size.width)/2):(r=(t.loadedImage.transformed.size.width-t.loadedImage.original.size.width)/2,l=(t.loadedImage.transformed.size.height-t.loadedImage.original.size.height)/2);const E=t.cropper,N={x1:Math.round(E.x1*s)-r,y1:Math.round(E.y1*s)-l,x2:Math.round(E.x2*s)-r,y2:Math.round(E.y2*s)-l};return t.options?.containWithinAspectRatio||(N.x1=Math.max(N.x1,0),N.y1=Math.max(N.y1,0),N.x2=Math.min(N.x2,t.loadedImage.transformed.size.width),N.y2=Math.min(N.y2,t.loadedImage.transformed.size.height)),N}getResizeRatio(t,n,s){const r=new Array;s?.resizeToWidth&&s.resizeToWidth>0&&r.push(s.resizeToWidth/t),s?.resizeToHeight&&s.resizeToHeight>0&&r.push(s.resizeToHeight/n);const l=0===r.length?1:Math.min(...r);return l>1&&!s?.onlyScaleDown?l:Math.min(l,1)}getQuality(t){return Math.min(1,Math.max(0,(t?.imageQuality??92)/100))}}const po=[new Uint8Array([255,216,255,225,0,34,69,120,105,102,0,0,77,77,0,42,0,0,0,8,0,1,1,18,0,3,0,0,0,1,0,6,0,0,0,0,0,0,255,219,0,132,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,255,192,0,17,8,0,1,0,2,3,1,17,0,2,17,1,3,17,1,255,196,0,74,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,16,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,218,0,12,3,1,0,2,17,3,17,0,63,0,63,240,127,255,217])],Zs=URL.createObjectURL(new Blob(po,{type:"image/jpeg"}));class bl{constructor(){this.autoRotateSupported=function xa(){return new Promise(o=>{const t=new Image;t.onload=()=>{o(1===t.width&&2===t.height)},t.src=Zs})}()}loadImageFile(t,n){var s=this;return(0,ei.A)(function*(){const r=yield t.arrayBuffer();return n.checkImageType?yield s.checkImageTypeAndLoadImageFromArrayBuffer(r,t.type,n):yield s.loadImageFromArrayBuffer(r,n)})()}checkImageTypeAndLoadImageFromArrayBuffer(t,n,s){return this.isValidImageType(n)?this.loadImageFromArrayBuffer(t,s,n):Promise.reject(new Error("Invalid image type"))}isValidImageType(t){return/image\/(png|jpg|jpeg|heic|bmp|gif|tiff|svg|webp|x-icon|vnd.microsoft.icon)/.test(t)}loadImageFromURL(t,n){var s=this;return(0,ei.A)(function*(){const l=yield(yield fetch(t)).blob(),E=yield l.arrayBuffer();return yield s.loadImageFromArrayBuffer(E,n,l.type)})()}loadBase64Image(t,n){const s=this.base64ToArrayBuffer(t);return this.loadImageFromArrayBuffer(s,n)}base64ToArrayBuffer(t){t=t.replace(/^data:([^;]+);base64,/gim,"");const n=atob(t),s=n.length,r=new Uint8Array(s);for(let l=0;l<s;l++)r[l]=n.charCodeAt(l);return r.buffer}loadImageFromArrayBuffer(t,n,s){var r=this;return(0,ei.A)(function*(){const l=yield new Promise(function(){var E=(0,ei.A)(function*(N,ae){try{const ze=new Blob([t],s?{type:s}:void 0),dt=URL.createObjectURL(ze),Kt=new Image,ci="image/svg+xml"===s?yield r.getSvgImageSize(ze):void 0;Kt.onload=()=>N({originalImage:Kt,originalImageSize:ci,originalObjectUrl:dt,originalArrayBuffer:t}),Kt.onerror=ae,Kt.src=dt}catch(ze){ae(ze)}});return function(N,ae){return E.apply(this,arguments)}}());return yield r.transformImageFromArrayBuffer(l,n,null!=l.originalImageSize)})()}getSvgImageSize(t){return(0,ei.A)(function*(){const r=(new DOMParser).parseFromString(yield t.text(),"image/svg+xml").querySelector("svg");if(!r)throw Error("Failed to parse SVG image");const l=r.getAttribute("width"),E=r.getAttribute("height");if(l&&E)return null;const N=r.getAttribute("viewBox")||r.getAttribute("viewbox");if(N){const ae=N.split(" ");return{width:+ae[2],height:+ae[3]}}throw Error("Failed to load SVG image. SVG must have width + height or viewBox definition.")})()}transformImageFromArrayBuffer(t,n){var s=this;return(0,ei.A)(function*(r,l,E=!1){const ae=function yl(o){switch("object"==typeof o&&(o=function Ea(o){const t=new DataView(o);if(65496!==t.getUint16(0,!1))return-2;const n=t.byteLength;let s=2;for(;s<n;){if(t.getUint16(s+2,!1)<=8)return-1;const r=t.getUint16(s,!1);if(s+=2,65505==r){if(1165519206!==t.getUint32(s+=2,!1))return-1;const l=18761==t.getUint16(s+=6,!1);s+=t.getUint32(s+4,l);const E=t.getUint16(s,l);s+=2;for(let N=0;N<E;N++)if(274==t.getUint16(s+12*N,l))return t.getUint16(s+12*N+8,l)}else{if(65280&~r)break;s+=t.getUint16(s,!1)}}return-1}(o)),o){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}((yield s.autoRotateSupported)?-1:r.originalArrayBuffer);return r.originalImage&&r.originalImage.complete?s.transformLoadedImage({original:{objectUrl:r.originalObjectUrl,image:r.originalImage,size:r.originalImageSize??{width:r.originalImage.naturalWidth,height:r.originalImage.naturalHeight}},exifTransform:ae},l,E):Promise.reject(new Error("No image loaded"))}).apply(this,arguments)}transformLoadedImage(t,n){var s=this;return(0,ei.A)(function*(r,l,E=!1){const N=(l.canvasRotation??0)+r.exifTransform.rotate,ae=r.original.size;if(!E&&0===N&&!r.exifTransform.flip&&!l.containWithinAspectRatio)return{original:{objectUrl:r.original.objectUrl,image:r.original.image,size:{...ae}},transformed:{objectUrl:r.original.objectUrl,image:r.original.image,size:{...ae}},exifTransform:r.exifTransform};const ze=s.getTransformedSize(ae,r.exifTransform,l),dt=document.createElement("canvas");dt.width=ze.width,dt.height=ze.height;const Kt=dt.getContext("2d");Kt?.setTransform(r.exifTransform.flip?-1:1,0,0,1,dt.width/2,dt.height/2),Kt?.rotate(Math.PI*(N/2)),Kt?.drawImage(r.original.image,-ae.width/2,-ae.height/2);const Vn=yield new Promise(Di=>dt.toBlob(Di,"image/"+(l.format??"png")));if(!Vn)throw new Error("Failed to get Blob for transformed image.");const ci=URL.createObjectURL(Vn),Vi=yield s.loadImageFromObjectUrl(ci);return{original:{objectUrl:r.original.objectUrl,image:r.original.image,size:{...ae}},transformed:{objectUrl:ci,image:Vi,size:{width:Vi.width,height:Vi.height}},exifTransform:r.exifTransform}}).apply(this,arguments)}loadImageFromObjectUrl(t){return new Promise((n,s)=>{const r=new Image;r.onload=()=>n(r),r.onerror=s,r.src=t})}getTransformedSize(t,n,s){const r=(s.canvasRotation??0)+n.rotate;if(s.containWithinAspectRatio){if(r%2){const E=t.height/(s.aspectRatio??1);return{width:Math.max(t.height,t.width*(s.aspectRatio??1)),height:Math.max(t.width,E)}}{const E=t.width/(s.aspectRatio??1);return{width:Math.max(t.width,t.height*(s.aspectRatio??1)),height:Math.max(t.height,E)}}}return r%2?{height:t.width,width:t.height}:{width:t.width,height:t.height}}}let js=(()=>{var o;class t{get alignImageStyle(){return this.state.options.alignImage}constructor(s){this.sanitizer=s,this.pinchStart$=new je.B,this.cropService=new Oi,this.loadImageService=new bl,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.moveTypes=_t,this.state=new ht,this.safeImgDataUrl=(0,m.vPA)(void 0),this.safeTransformStyle=(0,m.vPA)(void 0),this.marginLeft="0px",this.imageVisible=!1,this.allowMoveImage=!1,this.checkImageType=!0,this.disabled=!1,this.hidden=!1,this.imageCropped=(0,k.CGW)(),this.startCropImage=(0,k.CGW)(),this.imageLoaded=(0,k.CGW)(),this.cropperReady=(0,k.CGW)(),this.loadImageFailed=(0,k.CGW)(),this.transformChange=(0,k.CGW)(),this.cropperChange=(0,k.CGW)(),this.reset()}ngOnInit(){this.state.stepSize=this.initialStepSize||this.state.stepSize}ngOnChanges(s){const r=this.state.cropper(),l=this.state.transform,E=this.state.options.backgroundColor;if(this.state.setOptionsFromChanges(s),this.onChangesInputImage(s),s.transform&&this.transform&&(this.state.transform=this.transform,this.setCssTransform()),!this.state.loadedImage?.transformed.image.complete||!this.state.maxSize)return;if(this.containWithinAspectRatio&&s.aspectRatio||s.containWithinAspectRatio||s.canvasRotation)return void this.loadImageService.transformLoadedImage(this.state.loadedImage,this.state.options).then(ae=>this.setLoadedImage(ae)).catch(ae=>this.loadImageError(ae));s.cropper&&this.cropper&&this.state.cropper.set(Ti(this.cropper,this.state,!0));const N=!this.state.equalsCropperPosition(r);N&&(!this.cropper||!this.state.equalsCropperPosition(this.cropper))&&this.cropperChange.emit(this.state.cropper()),(N||!this.state.equalsTransform(l)||this.state.options.backgroundColor!==E)&&this.doAutoCrop(),s.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=!1})}onChangesInputImage(s){(s.imageChangedEvent||s.imageURL||s.imageBase64||s.imageFile)&&this.reset(),s.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),s.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),s.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),s.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){const s=this.imageChangedEvent?.target?.files;return s instanceof FileList&&s.length>0}reset(){this.state.loadedImage=void 0,this.state.maxSize.set({width:0,height:0}),this.imageVisible=!1}loadImageFile(s){this.loadImageService.loadImageFile(s,this.state.options).then(r=>this.setLoadedImage(r)).catch(r=>this.loadImageError(r))}loadBase64Image(s){this.loadImageService.loadBase64Image(s,this.state.options).then(r=>this.setLoadedImage(r)).catch(r=>this.loadImageError(r))}loadImageFromURL(s){this.loadImageService.loadImageFromURL(s,this.state.options).then(r=>this.setLoadedImage(r)).catch(r=>this.loadImageError(r))}setLoadedImage(s){this.state.loadedImage=s,this.safeImgDataUrl.set(this.sanitizer.bypassSecurityTrustResourceUrl(s.transformed.objectUrl))}loadImageError(s){console.error(s),this.loadImageFailed.emit()}setCssTransform(){const s=this.state.transform?.translateUnit||"%";this.safeTransformStyle.set(this.sanitizer.bypassSecurityTrustStyle(`translate(${this.state.transform.translateH||0}${s}, ${this.state.transform.translateV||0}${s}) scaleX(`+(this.state.transform.scale||1)*(this.state.transform.flipH?-1:1)+") scaleY("+(this.state.transform.scale||1)*(this.state.transform.flipV?-1:1)+") rotate("+(this.state.transform.rotate||0)+"deg)"))}imageLoadedInView(){null!=this.state.loadedImage&&(this.imageLoaded.emit(this.state.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),!this.cropper||this.maintainAspectRatio&&!this.state.aspectRatioIsCorrect()?(this.state.cropper.set(Ti(this.state.maxSizeCropperPosition(),this.state,!0)),this.cropperChange.emit(this.state.cropper())):(this.state.cropper.set(Ti(this.cropper,this.state,!0)),this.emitCropperPositionChange(this.cropper)),this.imageVisible=!0,this.cropperReady.emit(this.state.maxSize()),this.doAutoCrop()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>1}onResize(){if(this.state.loadedImage)if(this.hidden)this.resizedWhileHidden=!0;else{const s=this.state.maxSize();this.setMaxSize(),this.state.resizeCropperPosition(s)}}keyboardAccess(s){this.changeKeyboardStepSize(s),this.keyboardMoveCropper(s)}changeKeyboardStepSize(s){const r=+s.key;r>=1&&r<=9&&(this.state.stepSize=r)}keyboardMoveCropper(s){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(s.key))return;const l=s.shiftKey?_t.Resize:_t.Move,E=s.altKey?function ic(o){switch(o){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";default:return"right"}}(s.key):function xl(o){switch(o){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";default:return"left"}}(s.key),N=function oc(o,t){switch(o){case"ArrowUp":return{clientX:0,clientY:-1*t};case"ArrowRight":return{clientX:t,clientY:0};case"ArrowDown":return{clientX:0,clientY:t};default:return{clientX:-1*t,clientY:0}}}(s.key,this.state.stepSize);s.preventDefault(),s.stopPropagation(),this.moveStart={type:l,position:E,clientX:0,clientY:0,transform:this.state.transform,cropper:this.state.cropper()},this.handleMouseMove(N),this.handleMouseUp()}startMove(s,r,l=null){this.disabled||this.moveStart&&this.moveStart.type===_t.Pinch||r===_t.Drag&&!this.allowMoveImage||("preventDefault"in s&&s.preventDefault(),this.moveStart={type:r,position:l,clientX:Os(s),clientY:Ks(s),transform:this.state.transform,cropper:this.state.cropper()},this.initMouseMove())}initMouseMove(){(0,Mt.h)((0,Ut.R)(document,"mousemove"),(0,Ut.R)(document,"touchmove")).pipe((0,Do.Q)((0,Mt.h)((0,Ut.R)(document,"mouseup"),(0,Ut.R)(document,"touchend"),this.pinchStart$).pipe((0,Ht.$)()))).subscribe({next:s=>this.handleMouseMove(s),complete:()=>this.handleMouseUp()})}handleMouseMove(s){if(this.moveStart)if("stopPropagation"in s&&s.stopPropagation(),"preventDefault"in s&&s.preventDefault(),this.moveStart.type===_t.Move)this.state.cropper.set(go(function eo(o,t){const n=Os(o)-t.clientX,s=Ks(o)-t.clientY;return{x1:t.cropper.x1+n,y1:t.cropper.y1+s,x2:t.cropper.x2+n,y2:t.cropper.y2+s}}(s,this.moveStart),this.state,!0));else if(this.moveStart.type===_t.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.state.cropper.set(go(os(s,this.moveStart,this.state),this.state,!1));else if(this.moveStart.type===_t.Drag){const r=Os(s)-this.moveStart.clientX,l=Ks(s)-this.moveStart.clientY;this.state.transform={...this.state.transform,translateH:(this.moveStart.transform?.translateH||0)+r,translateV:(this.moveStart.transform?.translateV||0)+l},this.setCssTransform()}}handleMouseUp(){!this.moveStart||this.moveStart.type===_t.Pinch||((!this.state.equalsCropperPosition(this.moveStart.cropper)||this.moveStart.transform&&!this.state.equalsTransform(this.moveStart.transform))&&(this.moveStart.type===_t.Drag?this.transformChange.emit(this.state.transform):this.cropperChange.emit(this.state.cropper()),this.doAutoCrop()),this.moveStart=void 0)}startPinch(s){if(this.disabled||!this.sourceImageLoaded()||s.touches.length<2)return;"preventDefault"in s&&s.preventDefault();const r=this.state.cropper();this.moveStart={type:_t.Pinch,position:"center",clientX:r.x1+(r.x2-r.x1)/2,clientY:r.y1+(r.y2-r.y1)/2,cropper:r},this.initPinch()}initPinch(){this.pinchStart$.next(),(0,Ut.R)(document,"touchmove").pipe((0,Do.Q)((0,Ut.R)(document,"touchend"))).subscribe({next:s=>this.handlePinchMove(s),complete:()=>this.handlePinchStop()})}handlePinchMove(s){this.moveStart&&(s.preventDefault&&s.preventDefault(),this.moveStart.type===_t.Pinch&&!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.state.cropper.set(go(os(s,this.moveStart,this.state),this.state,!1)))}handlePinchStop(){this.moveStart&&(this.state.equalsCropperPosition(this.moveStart.cropper)||(this.emitCropperPositionChange(this.moveStart.cropper),this.doAutoCrop()),this.moveStart=void 0)}setMaxSize(){if(this.sourceImage){const s=getComputedStyle(this.sourceImage.nativeElement);this.state.setMaxSize(parseFloat(s.width),parseFloat(s.height)),this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.state.maxSize().width/2+"px)")}}emitCropperPositionChange(s){this.state.equalsCropperPosition(s)||this.cropperChange.emit(this.state.cropper())}doAutoCrop(){this.state.options.autoCrop&&this.crop()}crop(s=this.state.options.output){if(null!=this.state.loadedImage?.transformed?.image){if(this.startCropImage.emit(),"blob"===s)return this.cropToBlob();if("base64"===s)return this.cropToBase64()}return null}cropToBlob(){var s=this;return new Promise(function(){var r=(0,ei.A)(function*(l,E){const N=yield s.cropService.crop(s.state.toCropInput(),"blob");N?(s.imageCropped.emit(N),l(N)):E("Crop image failed")});return function(l,E){return r.apply(this,arguments)}}())}cropToBase64(){const s=this.cropService.crop(this.state.toCropInput(),"base64");return s?(this.imageCropped.emit(s),s):null}resetCropperPosition(){this.state.cropper.set(Ti(this.state.maxSizeCropperPosition(),this.state,!0)),this.cropperChange.emit(this.state.cropper())}ngOnDestroy(){this.pinchStart$.complete()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Oo.up))},this.\u0275cmp=e.VBU({type:t,selectors:[["image-cropper"]],viewQuery:function(r,l){if(1&r&&(e.GBs(bt,7),e.GBs(an,5)),2&r){let E;e.mGM(E=e.lsd())&&(l.wrapper=E.first),e.mGM(E=e.lsd())&&(l.sourceImage=E.first)}},hostVars:6,hostBindings:function(r,l){1&r&&e.bIt("resize",function(){return l.onResize()},e.tSv),2&r&&(e.xc7("text-align",l.alignImageStyle),e.AVh("disabled",l.disabled)("ngx-ic-hidden",l.hidden))},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",options:"options",cropperFrameAriaLabel:"cropperFrameAriaLabel",output:"output",format:"format",autoCrop:"autoCrop",cropper:"cropper",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resetCropOnAspectRatioChange:"resetCropOnAspectRatioChange",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",checkImageType:"checkImageType",alignImage:"alignImage",disabled:"disabled",hidden:"hidden"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange",cropperChange:"cropperChange"},features:[e.OA$],decls:4,vars:10,consts:[["sourceImage",""],[3,"touchstart"],["class","ngx-ic-source-image","role","presentation",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart","error",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],["role","presentation",1,"ngx-ic-source-image",3,"load","mousedown","touchstart","error","src"],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],["role","presentation",1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-top",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left",3,"mousedown","touchstart"]],template:function(r,l){1&r&&(e.j41(0,"div",1),e.bIt("touchstart",function(N){return l.startPinch(N)}),e.DNE(1,Un,2,8,"img",2),e.nrm(2,"div",3),e.DNE(3,qn,3,16,"div",4),e.k0s()),2&r&&(e.xc7("background",l.imageVisible&&l.state.options.backgroundColor),e.R7$(),e.Y8G("ngIf",l.safeImgDataUrl()),e.R7$(),e.xc7("width",l.state.maxSize().width||0,"px")("height",l.state.maxSize().height||0,"px")("margin-left","center"===l.state.options.alignImage?l.marginLeft:null),e.R7$(),e.Y8G("ngIf",l.imageVisible))},dependencies:[C.bT],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   img.ngx-ic-source-image[_ngcontent-%COMP%]{display:inline;max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%]   .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:var(--cropper-color, #53535C);background:transparent;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";inset:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:var(--cropper-border, 1px solid rgba(255, 255, 255, .5))}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]:hover   .ngx-ic-move[_ngcontent-%COMP%]{border:var(--cropper-hover-border, var(--cropper-border, 1px solid rgba(255, 255, 255, .5)))}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]:focus   .ngx-ic-move[_ngcontent-%COMP%]{border:var(--cropper-focus-border, 2px solid dodgerblue)}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]:focus   .ngx-ic-resize[_ngcontent-%COMP%]   .ngx-ic-square[_ngcontent-%COMP%]{background:var(--cropper-resize-square-focus-bg, var(--cropper-resize-square-bg, #53535C));border:var(--cropper-resize-square-focus-border, var(--cropper-resize-square-border, 1px solid rgba(255, 255, 255, .5)))}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize[_ngcontent-%COMP%]   .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;width:6px;height:6px;box-sizing:content-box;background:var(--cropper-resize-square-bg, #53535C);border:var(--cropper-resize-square-border, 1px solid rgba(255, 255, 255, .5))}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize[_ngcontent-%COMP%]:hover   .ngx-ic-square[_ngcontent-%COMP%]{background:var(--cropper-resize-square-hover-bg, var(--cropper-resize-square-bg, #53535C));border:var(--cropper-resize-square-hover-border, var(--cropper-resize-square-border, 1px solid rgba(255, 255, 255, .5)))}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%]   .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%]   .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%]   .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%]   .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]   .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-move[_ngcontent-%COMP%]{display:none}.ngx-ic-hidden[_nghost-%COMP%]{display:none}'],changeDetection:0}))}return o(),t})();const Sc=["modalRoot"],sc=o=>({show:o}),hd=o=>({display:o}),Sh=o=>({"aria-label":o}),Xd=()=>[2,3,4,5,7],pd=()=>[8,9,10,11,12,14,15],rc=()=>[11,12,14,15],Nl=()=>[9,10,11,12,14];function Ll(o,t){if(1&o&&(e.j41(0,"div")(1,"div",20),e.nrm(2,"div",21),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(2),e.xc7("width",n.uploadProgress,"%")}}function gd(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",17)(2,"label",18),e.EFF(3),e.k0s(),e.j41(4,"input",19),e.bIt("change",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onImageUpload(r))}),e.k0s()(),e.nVh(5,Ll,3,2,"div"),e.k0s()}if(2&o){const n=e.XpG();e.R7$(3),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_comments_upload_image")),e.R7$(2),e.vxM(n.uploadInProgress?5:-1)}}function Yd(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-button",26),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.deleteButton())}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("elementAttr",e.eq3(1,Sh,n.scope.currentScope.network.getResourceOrKeyName("web_comments_delete_image")))}}function Mu(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",22)(2,"image-cropper",23),e.mxI("cropperChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.hiddenCropperPosition,r)||(l.hiddenCropperPosition=r),m.Njj(r)}),e.bIt("imageCropped",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.previewCrop(r))}),e.k0s()(),e.j41(3,"div",24)(4,"image-cropper",25),e.bIt("imageCropped",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.imageCropped(r))})("imageLoaded",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.imageLoaded(r))})("cropperReady",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.cropperReady())})("loadImageFailed",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.loadImageFailed())}),e.k0s()(),e.nVh(5,Yd,2,3,"div"),e.k0s()}if(2&o){const n=e.XpG();e.R7$(2),e.Y8G("hidden",!1)("imageChangedEvent",n.imageChangedEvent)("aspectRatio",4/3)("autoCrop",!0),e.R50("cropper",n.hiddenCropperPosition),e.R7$(2),e.Y8G("imageChangedEvent",n.imageChangedEvent)("hideResizeSquares",!0)("autoCrop",!0)("maintainAspectRatio",!1)("aspectRatio",4/3)("cropper",n.cropperPosition),e.R7$(),e.vxM(n.imagePreview?5:-1)}}function fd(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",30),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return r.checkAuthor=!r.checkAuthor,m.Njj(r.onAuthorChange())})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return r.checkAuthor=!r.checkAuthor,m.Njj(r.onAuthorChange())}),e.j41(2,"input",31),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.checkAuthor,r)||(l.checkAuthor=r),m.Njj(r)}),e.bIt("ngModelChange",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.onAuthorChange())}),e.k0s(),e.j41(3,"label",32),e.EFF(4),e.k0s()(),e.j41(5,"div",30),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.assetImage.canBeUsedElsewhere=!r.assetImage.canBeUsedElsewhere)})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.assetImage.canBeUsedElsewhere=!r.assetImage.canBeUsedElsewhere)}),e.j41(6,"input",33),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.canBeUsedElsewhere,r)||(l.assetImage.canBeUsedElsewhere=r),m.Njj(r)}),e.k0s(),e.j41(7,"label",34),e.EFF(8),e.k0s()()()}if(2&o){const n=e.XpG(2);e.R7$(),e.BMQ("aria-checked",n.checkAuthor)("aria-labelledby","checkAuthorLabel")("aria-required",!0),e.R7$(),e.R50("ngModel",n.checkAuthor),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_amIAuthor_1_redesign")," "),e.R7$(),e.BMQ("aria-checked",n.assetImage.canBeUsedElsewhere)("aria-labelledby","canBeUsedElsewhereLabel"),e.R7$(),e.R50("ngModel",n.assetImage.canBeUsedElsewhere),e.R7$(2),e.SpI(" ",n.canBeUsedElsewhereText," ")}}function Sa(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"input",35),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.author,r)||(l.assetImage.author=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourceType7_creatorPlaceholder"))),e.R50("ngModel",n.assetImage.author),e.Y8G("required",2!==n.assetImage.sourceType)}}function Qd(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"input",36),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.author,r)||(l.assetImage.author=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourcePlaceholder"))),e.R50("ngModel",n.assetImage.author)}}function Dc(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",30),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return r.checkInternal=!r.checkInternal,m.Njj(r.onInternalChange())})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return r.checkInternal=!r.checkInternal,m.Njj(r.onInternalChange())}),e.j41(1,"input",37),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.checkInternal,r)||(l.checkInternal=r),m.Njj(r)}),e.bIt("ngModelChange",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.onInternalChange())}),e.k0s(),e.j41(2,"label",38),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(2);e.BMQ("aria-checked",n.checkInternal)("aria-labelledby","checkInternalLabel"),e.R7$(),e.R50("ngModel",n.checkInternal),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_internal")," ")}}function Tc(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"input",39),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.permissionGivenBy,r)||(l.assetImage.permissionGivenBy=r),m.Njj(r)}),e.k0s(),e.j41(2,"strong"),e.EFF(3),e.k0s(),e.j41(4,"input",40),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.dateOfPermission,r)||(l.assetImage.dateOfPermission=r),m.Njj(r)}),e.bIt("ngModelChange",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.generateImageSource())}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_permissionGivenByPlaceholder"))),e.R50("ngModel",n.assetImage.permissionGivenBy),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_dateOfPermissionDescription")),e.R7$(),e.R50("ngModel",n.assetImage.dateOfPermission)}}function md(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"label",45),e.EFF(2),e.k0s(),e.j41(3,"input",46),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.assetImage.expirationDays,r)||(l.assetImage.expirationDays=r),m.Njj(r)}),e.k0s(),e.j41(4,"label",45),e.EFF(5),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourceType5_expirationDaysDescription_0")),e.R7$(),e.R50("ngModel",n.assetImage.expirationDays),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourceType5_expirationDaysDescription_1"))}}function Gc(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"input",41),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.descriptionOfPermission,r)||(l.assetImage.descriptionOfPermission=r),m.Njj(r)}),e.k0s(),e.j41(2,"input",42),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.pressServiceUrl,r)||(l.assetImage.pressServiceUrl=r),m.Njj(r)}),e.k0s(),e.j41(3,"div",30),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.hasExpiration=!r.hasExpiration)})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.hasExpiration=!r.hasExpiration)}),e.j41(4,"input",43),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.hasExpiration,r)||(l.hasExpiration=r),m.Njj(r)}),e.k0s(),e.j41(5,"label",44),e.EFF(6),e.k0s()(),e.nVh(7,md,6,3,"div"),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourceType5_permissionPlaceholder"))),e.R50("ngModel",n.assetImage.descriptionOfPermission),e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourceType5_pressServiceUrlPlaceholder"))),e.R50("ngModel",n.assetImage.pressServiceUrl),e.R7$(),e.BMQ("aria-checked",n.hasExpiration)("aria-labelledby","hasExpirationLabel"),e.R7$(),e.R50("ngModel",n.hasExpiration),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_enterExpirationDays")," "),e.R7$(),e.vxM(n.hasExpiration?7:-1)}}function Ac(o,t){if(1&o&&(e.j41(0,"div",48),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_invalidLicense"))}}function Ic(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"input",49),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.assetImage.title,r)||(l.assetImage.title=r),m.Njj(r)}),e.k0s(),e.j41(2,"input",50),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.assetImage.sourceUrl,r)||(l.assetImage.sourceUrl=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourceType7_titlePlaceholder"))),e.R50("ngModel",n.assetImage.title),e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_linkPlaceholder"))),e.R50("ngModel",n.assetImage.sourceUrl)}}function rt(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-select-box",47),e.nI1(2,"keyvalue"),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.ccLicense,r)||(l.ccLicense=r),m.Njj(r)}),e.k0s(),e.nVh(3,Ac,2,1,"div",48),e.nVh(4,Ic,3,6,"div"),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourceType7_select"))),e.R50("value",n.ccLicense),e.Y8G("dataSource",e.bMT(2,6,n.creativeCommonsLicenses)),e.R7$(2),e.vxM(n.ccLicenseError?3:-1),e.R7$(),e.vxM(n.ccLicenseError?4:-1)}}function At(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-select-box",51),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.sourceUrl,r)||(l.assetImage.sourceUrl=r),m.Njj(r)}),e.k0s(),e.j41(2,"input",52),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.imageId,r)||(l.assetImage.imageId=r),m.Njj(r)}),e.k0s(),e.j41(3,"div",30),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.checkPurchasedByInternal=!r.checkPurchasedByInternal)})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.checkPurchasedByInternal=!r.checkPurchasedByInternal)}),e.j41(4,"input",53),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.checkPurchasedByInternal,r)||(l.checkPurchasedByInternal=r),m.Njj(r)}),e.k0s(),e.j41(5,"label",54),e.EFF(6),e.k0s()(),e.j41(7,"div",30),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.assetImage.canBeUsedEditorial=!r.assetImage.canBeUsedEditorial)})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.assetImage.canBeUsedEditorial=!r.assetImage.canBeUsedEditorial)}),e.j41(8,"input",55),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.canBeUsedEditorial,r)||(l.assetImage.canBeUsedEditorial=r),m.Njj(r)}),e.k0s(),e.j41(9,"label",56),e.EFF(10),e.k0s()(),e.j41(11,"div",30),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.assetImage.canBeUsedAdvertising=!r.assetImage.canBeUsedAdvertising)})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.assetImage.canBeUsedAdvertising=!r.assetImage.canBeUsedAdvertising)}),e.j41(12,"input",57),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.canBeUsedAdvertising,r)||(l.assetImage.canBeUsedAdvertising=r),m.Njj(r)}),e.k0s(),e.j41(13,"label",58),e.EFF(14),e.k0s()()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourceType8_select"))),e.R50("value",n.assetImage.sourceUrl),e.Y8G("items",n.agencies),e.R7$(),e.R50("ngModel",n.assetImage.imageId),e.R7$(),e.BMQ("aria-checked",n.checkPurchasedByInternal)("aria-labelledby","checkPurchasedByInternalLabel")("aria-required",!0),e.R7$(),e.R50("ngModel",n.checkPurchasedByInternal),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_purchasedByInternal")," "),e.R7$(),e.BMQ("aria-checked",n.assetImage.canBeUsedEditorial)("aria-labelledby","checkImageCanBeUsedEditorialLabel")("aria-required",!0),e.R7$(),e.R50("ngModel",n.assetImage.canBeUsedEditorial),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_canBeUsedEditorial")," "),e.R7$(),e.BMQ("aria-checked",n.assetImage.canBeUsedAdvertising)("aria-labelledby","checkImageCanBeUsedAdvertisingLabel"),e.R7$(),e.R50("ngModel",n.assetImage.canBeUsedAdvertising),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_canBeUsedAdvertising")," ")}}function vt(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",59)(2,"dx-select-box",60),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.selectSocialMediaProfileType,r)||(l.selectSocialMediaProfileType=r),m.Njj(r)}),e.k0s()()()}if(2&o){const n=e.XpG(2);e.R7$(2),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourceType9_select")))("items",n.socialMediaProfileTypes),e.R50("value",n.selectSocialMediaProfileType)}}function kt(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"input",50),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.sourceUrl,r)||(l.assetImage.sourceUrl=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_linkPlaceholder"))),e.R50("ngModel",n.assetImage.sourceUrl)}}function ln(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"strong"),e.EFF(2),e.k0s(),e.j41(3,"input",61),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.dateOfScreenshot,r)||(l.assetImage.dateOfScreenshot=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourceType14_dateOfScreenshotDescription")),e.R7$(),e.R50("ngModel",n.assetImage.dateOfScreenshot)}}function Rn(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",30),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.checkPermission=!r.checkPermission)})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.checkPermission=!r.checkPermission)}),e.j41(2,"input",62),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.checkPermission,r)||(l.checkPermission=r),m.Njj(r)}),e.k0s(),e.j41(3,"label",63),e.EFF(4),e.k0s()()()}if(2&o){const n=e.XpG(2);e.R7$(),e.BMQ("aria-checked",n.checkPermission)("aria-labelledby","checkPermissionLabel")("aria-required",!0),e.R7$(),e.R50("ngModel",n.checkPermission),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_permission")," ")}}function ii(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",27)(2,"dx-select-box",28),e.nI1(3,"keyvalue"),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.assetImage.sourceType,r)||(l.assetImage.sourceType=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onSourceTypeChange(r))}),e.k0s()(),e.nVh(4,fd,9,9,"div"),e.nVh(5,Sa,2,4,"div"),e.nVh(6,Qd,2,3,"div"),e.nVh(7,Dc,4,4,"div",29),e.nVh(8,Tc,5,5,"div"),e.nVh(9,Gc,8,11,"div"),e.nVh(10,rt,5,8,"div"),e.nVh(11,At,15,19,"div"),e.nVh(12,vt,3,4,"div"),e.nVh(13,kt,2,3,"div"),e.nVh(14,ln,4,2,"div"),e.nVh(15,Rn,5,5,"div"),e.k0s()}if(2&o){const n=e.XpG();e.R7$(2),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourceType0"))),e.R50("value",n.assetImage.sourceType),e.Y8G("dataSource",e.bMT(3,17,n.defaultSourceTypes))("focusStateEnabled",!0),e.R7$(2),e.vxM(1===n.assetImage.sourceType?4:-1),e.R7$(),e.vxM(e.lJ4(19,Xd).includes(n.assetImage.sourceType)?5:-1),e.R7$(),e.vxM(e.lJ4(20,pd).includes(n.assetImage.sourceType)?6:-1),e.R7$(),e.vxM(2===n.assetImage.sourceType?7:-1),e.R7$(),e.vxM(3===n.assetImage.sourceType||4===n.assetImage.sourceType?8:-1),e.R7$(),e.vxM(5===n.assetImage.sourceType?9:-1),e.R7$(),e.vxM(7===n.assetImage.sourceType?10:-1),e.R7$(),e.vxM(8===n.assetImage.sourceType?11:-1),e.R7$(),e.vxM(9===n.assetImage.sourceType?12:-1),e.R7$(),e.vxM(e.lJ4(21,rc).includes(n.assetImage.sourceType)?13:-1),e.R7$(),e.vxM(14===n.assetImage.sourceType?14:-1),e.R7$(),e.vxM(e.lJ4(22,Nl).includes(n.assetImage.sourceType)?15:-1)}}function Gi(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",30),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.assetImage.canBeUsedElsewhere=!r.assetImage.canBeUsedElsewhere)})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.assetImage.canBeUsedElsewhere=!r.assetImage.canBeUsedElsewhere)}),e.j41(1,"input",33),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.canBeUsedElsewhere,r)||(l.assetImage.canBeUsedElsewhere=r),m.Njj(r)}),e.k0s(),e.j41(2,"label",34),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(2);e.BMQ("aria-checked",n.assetImage.canBeUsedElsewhere)("aria-labelledby","canBeUsedElsewhereLabel"),e.R7$(),e.R50("ngModel",n.assetImage.canBeUsedElsewhere),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_canBeUsedElsewhere")," ")}}function lo(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"input",36),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.assetImage.author,r)||(l.assetImage.author=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourceType7_creatorPlaceholder"))),e.R50("ngModel",n.assetImage.author)}}function Cs(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",64),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.setAuthorChoice(1))})("keydown.space",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.setAuthorChoice(1))}),e.j41(2,"input",65),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.checkAuthorChoice,r)||(l.checkAuthorChoice=r),m.Njj(r)}),e.k0s(),e.j41(3,"label",66),e.EFF(4),e.k0s()(),e.j41(5,"div",64),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.setAuthorChoice(4))})("keydown.space",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.setAuthorChoice(4))}),e.j41(6,"input",67),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.checkAuthorChoice,r)||(l.checkAuthorChoice=r),m.Njj(r)}),e.k0s(),e.j41(7,"label",68),e.EFF(8),e.k0s()(),e.nVh(9,Gi,4,4,"div",29),e.nVh(10,lo,2,3,"div"),e.k0s()}if(2&o){const n=e.XpG();e.R7$(),e.BMQ("aria-checked",1===n.checkAuthorChoice)("aria-labelledby","radioAmIAuthor1Label"),e.R7$(),e.R50("ngModel",n.checkAuthorChoice),e.Y8G("value",1),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_amIAuthor_1_redesign")," "),e.R7$(),e.BMQ("aria-checked",4===n.checkAuthorChoice)("aria-labelledby","radioAmIAuthor2Label"),e.R7$(),e.R50("ngModel",n.checkAuthorChoice),e.Y8G("value",4),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_amIAuthor_2")," "),e.R7$(),e.vxM(1===n.assetImage.sourceType?9:-1),e.R7$(),e.vxM(4===n.assetImage.sourceType?10:-1)}}function lr(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"input",69),e.mxI("ngModelChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.assetImage.author,r)||(l.assetImage.author=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_sourcePlaceholder"))),e.R50("ngModel",n.assetImage.author)}}let Xr=(()=>{var o;class t{constructor(s,r,l,E,N){this.imageUploadService=s,this.scopeService=r,this.assetLicensingService=l,this.themingService=E,this.deviceInfoService=N,this.onClose=new e.bkB,this.onSave=new e.bkB,this.checkAuthorChoice=1,this.imagePreview=null,this.isModalOpen=!1,this.uploadInProgress=!1,this.uploadCompleted=!1,this.uploadProgress=0,this.isMobile=this.deviceInfoService.getUserAgentInfo().isMobile,this.imageDescription="",this.alwaysShowImageDescription=!1,this.selectedFile=null,this.imageGuid=null,this.commentType=bn.Image,this.CommentType=bn,this.simpleImageSource=0,this.checkInternal=!1,this.checkAuthor=!1,this.checkPermission=!1,this.hasExpiration=!1,this.checkPurchasedByInternal=!1,this.isDarkModeEnabled=!1,this.imageChangedEvent=null,this.focusPoint=null,this.cropperPosition={x1:0,x2:0,y1:0,y2:0},this.originalImageSize=null,this.sizeHeightRatio=0,this.sizeWidthRatio=0,this.agencies=[],this.socialMediaProfileTypes=[],this.scope=this.scopeService.getScope(),this.defaultSourceTypes=this.assetLicensingService.getDefaultSourceTypes(),this.creativeCommonsLicenses=this.assetLicensingService.getCreativeCommonsLicenses(),this.agencies=this.assetLicensingService.getAgencys(),this.socialMediaProfileTypes=this.assetLicensingService.getsocialMediaProfileTypes(),this.user=this.scope.profile,this.generateDefaultAssetImage(),this.scope.currentScope.network.settings.simpleImageSource&&(this.simpleImageSource=16),this.isDarkModeEnabled=1===E.getSelectedTheme()}ngOnInit(){this.checkAuthorChoice=this.checkAuthor?1:4,this.scope.profile.isRegistered&&this.scope.profile.chapterRoles.includes(co.MerkuristJournalist)&&delete this.defaultSourceTypes[2],this.canBeUsedElsewhereText=this.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_canBeUsedElsewhere").replace("{{networkName}}",this.scope.network.name)}setAuthorChoice(s){this.checkAuthorChoice=s,this.checkAuthor=1===s,this.onAuthorChange?.()}generateDefaultAssetImage(){this.assetImage={type:2,text:"",attachment:"",imageSource:"",uploadGuid:"",pdfUploadGuid:"",uploadError:"",source:"",expirationDate:"",expirationDays:0,canBeUsedElsewhere:this.scope.currentScope.network.settings.simpleImageSource||!(this.scope.profile.chapterRoles?.includes(co.Journalist)||this.scope.profile.chapterRoles?.includes(co.MerkuristJournalist)),sourceType:1,author:"",title:"",dateOfPermission:"",descriptionOfPermission:"",permissionGivenBy:"",pressServiceUrl:"",sourceUrl:"",agency:"",creativeCommonsLicense:"",dateOfScreenshot:"",canBeUsedEditorial:!0,canBeUsedAdvertising:!1,imageId:"",mimeType:null,alwaysShowImageDescription:!!this.scope.currentScope.network.settings.configurations.alwaysShowImageDescriptionDefaultValue}}open(){this.isModalOpen=!0,setTimeout(()=>{this.modalRoot.nativeElement.focus()}),setTimeout(()=>{this.modalRoot.nativeElement.querySelector("input, button, select, textarea")?.focus()},0)}close(){this.isModalOpen=!1,this.onClose.emit()}onImageUpload(s){const r=s.target.files[0];r&&(this.selectedFile=r,this.imageChangedEvent=s,this.uploadInProgress=!0,this.imageUploadService.uploadAsset(r).subscribe({next:l=>{"number"==typeof l?this.uploadProgress=l:(this.uploadCompleted=!0,this.uploadInProgress=!1,this.assetImage.uploadGuid=l,this.assetImage.mimeType=this.selectedFile?.type)},error:l=>{(0,$o.A)("Upload Error: "+l,{position:"center",direction:"up-push"}),this.uploadInProgress=!1}}))}previewImage(s){const r=new FileReader;r.onload=l=>{this.imagePreview=l.target?.result??null},r.readAsDataURL(s)}onFormSubmit(s){s.valid&&(this.generateImageSource(),this.onSave.emit({imagePreview:this.imagePreview,assetImage:this.assetImage,focusPoint:this.focusPoint}),this.close(),this.resetModalValues(),this.uploadInProgress=!1,this.uploadCompleted=!1,this.uploadProgress=0,this.selectedFile=null,this.imageGuid=null)}generateImageSource(){var s=this.assetImage.author,r=this.assetImage.author;switch(this.assetImage.sourceType){case 2:this.assetImage.author||(s=r=this.scope.currentScope.network.name);break;case 5:this.assetImage.pressServiceUrl&&(s+=", [source]("+this.assetImage.pressServiceUrl+")");break;case 7:this.ccLicense&&!this.ccLicense.validity?s=this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicenseError:this.ccLicense&&s&&(this.assetImage.title&&(s+=", ["+this.assetImage.title+"]",r=r+", "+this.assetImage.title),this.assetImage.sourceUrl&&(s+="("+this.assetImage.sourceUrl+")"),this.assetImage.creativeCommonsLicense&&(s+=", "+this.ccLicense.value,r+=", "+this.ccLicense.name));break;case 8:this.assetImage.agency&&(s=r="\xa9 "+s+" / "+this.assetImage.agency)}this.assetImage.source=s}creativeCommonsLicenseSelected(){this.ccLicense?(this.ccLicenseError=this.ccLicense.validity?null:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicensePlatformError_0+" "+this.ccLicense.name+" "+this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicensePlatformError_1,this.assetImage.creativeCommonsLicense=this.ccLicense.name):this.ccLicenseError=this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectLicenseError}onInternalChange(){this.checkInternal=!this.checkInternal}onAuthorChange(){this.checkAuthor?this.assetImage.author=`${this.user?.firstName} ${this.user?.lastName}`:this.generateDefaultAssetImage()}onSourceTypeChange(s){this.resetModalValues(),this.assetImage.sourceType=s.value}resetModalValues(){this.assetImage.sourceType=1,this.checkAuthor=!1,this.ccLicense=null,this.ccLicenseError=null,this.checkInternal=!1,this.selectSocialMediaProfileType="",this.hasExpiration=!1,this.checkPermission=!1,this.selectSocialMediaProfileType=""}deleteButton(){this.uploadCompleted=!1,this.imagePreview=null,this.resetModalValues()}imageCropped(s){let r=s.cropperPosition;this.focusPoint={x1:Math.round(r.x1*this.sizeWidthRatio),x2:Math.round(r.x2*this.sizeWidthRatio),y1:Math.round(r.y1*this.sizeHeightRatio),y2:Math.round(r.y2*this.sizeHeightRatio)};let l=document.querySelector(".hidden-image-cropper .ngx-ic-source-image").getBoundingClientRect(),E=document.querySelector(".ngx-image-cropper .ngx-ic-source-image").getBoundingClientRect(),N=l.width/E.width,ae=l.height/E.height;this.hiddenCropperPosition={x1:Math.round(r.x1*N),x2:Math.round(r.x2*N),y1:Math.round(r.y1*ae),y2:Math.round(r.y2*ae)}}imageLoaded(s){this.originalImageSize=s.original.size}cropperReady(){this.cropperPosition=this.getInitialCropWindow()}loadImageFailed(){}getInitialCropWindow(){let s=1.3333333333333333,l=document.querySelector(".ngx-image-cropper .ngx-ic-source-image").getBoundingClientRect();var E=this.originalImageSize.width,N=this.originalImageSize.height,ae=l.width,ze=l.height;let dt,Kt,Vn,ci,Vi,Di;return this.sizeHeightRatio=N/ze,this.sizeWidthRatio=E/ae,E/N==s?{x1:0,x2:ae,y1:0,y2:ze}:E<N||E==N?(dt=E/s/this.sizeHeightRatio,ci=ze/2-dt/2,Di=ci+dt,{x1:0,x2:ae,y1:ci,y2:Di}):E>N?(Kt=N*s/this.sizeWidthRatio,Vn=ae/2-Kt/2,Vi=Vn+Kt,{y1:0,y2:ze,x1:Vn,x2:Vi}):{x1:0,x2:0,y1:0,y2:0}}previewCrop(s){this.imagePreview=s.objectUrl}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(ki.a),e.rXU(Se.A),e.rXU(Si.u),e.rXU(oo),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-upload-dialog"]],viewQuery:function(r,l){if(1&r&&e.GBs(Sc,5),2&r){let E;e.mGM(E=e.lsd())&&(l.modalRoot=E.first)}},outputs:{onClose:"onClose",onSave:"onSave"},standalone:!1,decls:25,vars:17,consts:[["modalRoot",""],["uploadForm","ngForm"],["tabindex","-1","role","dialog","aria-modal","true",1,"modal",3,"ngClass","ngStyle"],[1,"modal-dialog","modal-lg"],[1,"modal-content"],[1,"modal-header"],["id","uploadModalLabel",1,"modal-title"],["role","button","tabindex","0",1,"dx-icon-remove","close-icon",3,"click","keydown.enter","keydown.space"],[1,"modal-body"],[1,"mt-3"],[3,"ngSubmit"],[1,"row"],[1,"col-md-5"],[1,"col-md-7"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"mb-3"],["for","imageInput",1,"form-label"],["type","file","id","imageInput",1,"form-control",3,"change"],[1,"progress"],["role","progressbar",1,"progress-bar"],[1,"image-preview","hidden-image-cropper-wrapper"],["output","blob","tabindex","-1","aria-hidden","true",1,"img-thumbnail","position-relative","img-fluid","w-100","hidden-image-cropper",3,"cropperChange","imageCropped","hidden","imageChangedEvent","aspectRatio","autoCrop","cropper"],[1,"image-preview"],["format","jpeg","output","blob",1,"img-thumbnail","position-relative","img-fluid","w-100","ngx-image-cropper",3,"imageCropped","imageLoaded","cropperReady","loadImageFailed","imageChangedEvent","hideResizeSquares","autoCrop","maintainAspectRatio","aspectRatio","cropper"],["icon","fa-regular fa-trash-can",1,"delete-button",3,"onClick","elementAttr"],[1,"source-type-select","mb-2"],["displayExpr","value.name","valueExpr","value.sourceType",3,"valueChange","onValueChanged","value","dataSource","focusStateEnabled","placeholder"],["tabindex","0","role","checkbox"],["tabindex","0","role","checkbox",3,"keydown.enter","keydown.space"],["type","checkbox","id","checkAuthor","name","checkAuthor","required","","tabindex","-1",1,"btn","checkbox",3,"ngModelChange","ngModel"],["id","checkAuthorLabel","for","checkAuthor"],["type","checkbox","id","canBeUsedElsewhere","name","canBeUsedElsewhere","tabindex","-1",1,"btn","checkbox",3,"ngModelChange","ngModel"],["id","canBeUsedElsewhereLabel","for","canBeUsedElsewhere"],["type","text","name","author",1,"mk-textbox",3,"ngModelChange","placeholder","ngModel","required"],["type","text","name","author","required","",1,"mk-textbox",3,"ngModelChange","placeholder","ngModel"],["type","checkbox","id","checkInternal","name","checkInternal","tabindex","-1",1,"btn","checkbox",3,"ngModelChange","ngModel"],["id","checkInternalLabel","for","checkInternal"],["type","text","name","permissionGivenBy","required","",1,"mk-textbox",3,"ngModelChange","placeholder","ngModel"],["type","text","name","dateOfPermission","placeholder","DD.MM.YYYY","required","",1,"mk-textbox",3,"ngModelChange","ngModel"],["type","text","name","descriptionOfPermission","required","",1,"mk-textbox",3,"ngModelChange","placeholder","ngModel"],["type","text","name","pressServiceUrl","required","",1,"mk-textbox",3,"ngModelChange","placeholder","ngModel"],["type","checkbox","id","hasExpiration","name","hasExpiration","tabindex","-1",1,"btn","checkbox",3,"ngModelChange","ngModel"],["id","hasExpirationLabel","for","hasExpiration"],[1,"mk-label"],["type","number","name","expirationDays","min","1","max","365","required","",1,"mk-textbox",3,"ngModelChange","ngModel"],["displayExpr","value.name","valueExpr","value.value",3,"valueChange","value","dataSource","placeholder"],[1,"alert","alert-danger"],["type","text","name","title","required","",1,"mk-textbox",3,"ngModelChange","placeholder","ngModel"],["type","text","name","sourceUrl","required","",1,"mk-textbox",3,"ngModelChange","placeholder","ngModel"],["displayExpr","name","valueExpr","url",3,"valueChange","value","items","placeholder"],["type","text","name","imageId","placeholder","ID","required","",1,"mk-textbox",3,"ngModelChange","ngModel"],["type","checkbox","id","checkPurchasedByInternal","name","checkPurchasedByInternal","required","","tabindex","-1",1,"btn","checkbox",3,"ngModelChange","ngModel"],["id","checkPurchasedByInternalLabel","for","checkPurchasedByInternal"],["type","checkbox","id","checkImageCanBeUsedEditorial","name","checkImageCanBeUsedEditorial","required","","tabindex","-1",1,"btn","checkbox",3,"ngModelChange","ngModel"],["id","checkImageCanBeUsedEditorialLabel","for","checkImageCanBeUsedEditorial"],["type","checkbox","id","checkImageCanBeUsedAdvertising","name","checkImageCanBeUsedAdvertising","tabindex","-1",1,"btn","checkbox",3,"ngModelChange","ngModel"],["id","checkImageCanBeUsedAdvertisingLabel","for","checkImageCanBeUsedAdvertising"],[1,"social-media-select","mb-3"],["displayExpr","display","valueExpr","name","required","",3,"valueChange","items","value","placeholder"],["type","text","name","dateOfScreenshot","placeholder","DD.MM.YYYY","required","",1,"mk-textbox",3,"ngModelChange","ngModel"],["type","checkbox","id","checkPermission","name","checkPermission","required","","tabindex","-1",1,"btn","checkbox",3,"ngModelChange","ngModel"],["id","checkPermissionLabel","for","checkPermission"],["tabindex","0","role","radio",3,"keydown.enter","keydown.space"],["type","radio","id","radioAmIAuthor1","name","radioAmIAuthor","required","","tabindex","-1",1,"btn","radio-inline",3,"ngModelChange","ngModel","value"],["id","radioAmIAuthor1Label","for","radioAmIAuthor1"],["type","radio","id","radioAmIAuthor2","name","radioAmIAuthor","required","","tabindex","-1",1,"btn","radio-inline",3,"ngModelChange","ngModel","value"],["id","radioAmIAuthor2Label","for","radioAmIAuthor2"],["type","text","name","author",1,"mk-textbox",3,"ngModelChange","placeholder","ngModel"]],template:function(r,l){if(1&r){const E=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4,0)(4,"div",5)(5,"h2",6),e.EFF(6),e.k0s(),e.j41(7,"i",7),e.bIt("click",function(){return m.eBV(E),m.Njj(l.close())})("keydown.enter",function(){return m.eBV(E),m.Njj(l.close())})("keydown.space",function(){return m.eBV(E),m.Njj(l.close())}),e.k0s()(),e.j41(8,"div",8)(9,"div",9)(10,"form",10,1),e.bIt("ngSubmit",function(){m.eBV(E);const ae=e.sdS(11);return m.Njj(l.onFormSubmit(ae))}),e.j41(12,"div",11)(13,"div",12),e.nVh(14,gd,6,2,"div"),e.nVh(15,Mu,6,12,"div"),e.k0s(),e.j41(16,"div",13),e.nVh(17,ii,16,23,"div"),e.nVh(18,Cs,11,12,"div"),e.nVh(19,lr,2,3,"div"),e.k0s()(),e.j41(20,"div",14)(21,"button",15),e.bIt("click",function(){return m.eBV(E),m.Njj(l.close())}),e.EFF(22),e.k0s(),e.j41(23,"button",16),e.EFF(24),e.k0s()()()()()()()()}if(2&r){const E=e.sdS(11);e.Y8G("ngClass",e.eq3(13,sc,l.isModalOpen))("ngStyle",e.eq3(15,hd,l.isModalOpen?"block":"none")),e.R7$(6),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_comments_upload")),e.R7$(),e.BMQ("aria-label",l.scope.currentScope.network.getResourceOrKeyName("web_common_close_dialog"))("title",l.scope.currentScope.network.getResourceOrKeyName("web_common_close_dialog")),e.R7$(7),e.vxM(l.uploadCompleted?-1:14),e.R7$(),e.vxM(l.uploadCompleted?15:-1),e.R7$(2),e.vxM(l.uploadCompleted&&l.scope.profile.isJournalist&&!l.scope.currentScope.network.settings.simpleImageSource?17:-1),e.R7$(),e.vxM(!l.uploadCompleted||l.scope.profile.isJournalist||l.scope.currentScope.network.settings.simpleImageSource?-1:18),e.R7$(),e.vxM(l.uploadCompleted&&l.scope.currentScope.network.settings.simpleImageSource?19:-1),e.R7$(3),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_common_close")),e.R7$(),e.Y8G("disabled",!E.valid||!l.uploadCompleted),e.R7$(),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_common_save"))}},dependencies:[C.YU,C.B3,Ii.qT,Ii.me,Ii.Q0,Ii.Zm,Ii.Fm,Ii.BC,Ii.cb,Ii.YS,Ii.xq,Ii.VZ,Ii.zX,Ii.vS,Ii.cV,Gn.e,is.l,js,C.lG],styles:[".image-preview[_ngcontent-%COMP%]{display:flex;justify-content:center;max-width:25rem;overflow:hidden;margin-bottom:20px}.image-preview[_ngcontent-%COMP%]   .comment-img-thumbnail[_ngcontent-%COMP%]{max-width:20rem;aspect-ratio:4/3;overflow:hidden;object-fit:cover;object-position:center}.delete-icon[_ngcontent-%COMP%]{top:5px;right:5px;cursor:pointer;font-size:2.5rem}.modal-title[_ngcontent-%COMP%]{font-size:1.9rem;font-weight:500;color:var(--textColor);font-family:var(--fontPrimary)}.delete-button[_ngcontent-%COMP%]{position:absolute;top:40px;left:17rem}@media (max-width: 768px){.delete-button[_ngcontent-%COMP%]{top:90px;left:20.5rem}}.hidden-image-cropper-wrapper[_ngcontent-%COMP%]{z-index:-1;position:absolute}  .ngx-image-cropper .ngx-ic-source-image{width:100%;height:100%}  .ngx-image-cropper .ngx-ic-overlay{width:100%!important;height:100%!important}  .ngx-image-cropper .ngx-ic-cropper{outline:rgba(255,255,255,.7) solid 100vw!important}  .ngx-image-cropper .ngx-ic-cropper:after{border:1px solid white!important}  .hidden-image-cropper .ngx-ic-source-image{visibility:hidden!important}  .hidden-image-cropper .ngx-ic-overlay{visibility:hidden!important}  .hidden-image-cropper .ngx-ic-cropper{visibility:hidden!important}.close-icon[_ngcontent-%COMP%]{font-size:24px;font-weight:600}.close-icon[_ngcontent-%COMP%]:hover{outline:2px solid var(--textColor);border-radius:3px}@media (max-width: 768px){.modal-header[_ngcontent-%COMP%]{width:100%}.modal-header[_ngcontent-%COMP%]   .btn-close[_ngcontent-%COMP%]{margin-right:15px}}.source-type-select[_ngcontent-%COMP%]     .dx-texteditor.dx-editor-outlined.dx-state-focused{outline-offset:3px;outline:solid 2px var(--textColor)}"]}))}return o(),t})();var ta=p(6358);const Ga=["commentUploadDialog"],Ca=["fileInput"],Ol=o=>({"aria-label":o}),Wa=o=>({class:"comment-image-icon","aria-label":o}),ac=(o,t,n)=>({stylingMode:"text",icon:"fa-regular fa-image",onClick:o,hint:t,elementAttr:n}),wl=o=>({location:"after",name:"commentImageUploadButton",options:o}),Ma=o=>[o];function Wc(o,t){if(1&o&&e.nrm(0,"img",14),2&o){const n=e.XpG();e.Y8G("src",n.avatarUrl,e.B4B)("alt","")}}function Zd(o,t){if(1&o&&(e.j41(0,"div",15),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.initials," ")}}function lc(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,Wc,1,2,"img",14),e.nVh(2,Zd,2,1,"div",15),e.k0s()),2&o){const n=t;e.R7$(),e.vxM(n.avatarUrl?1:-1),e.R7$(),e.vxM(n.useInitials?2:-1)}}function Pu(o,t){if(1&o&&(e.j41(0,"div")(1,"span",16),e.EFF(2),e.k0s(),e.nrm(3,"dx-load-indicator",17),e.k0s()),2&o){const n=e.XpG(2);e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_comments_send")),e.R7$(),e.Y8G("visible",n.commentService.addingComment)}}function _d(o,t){if(1&o&&(e.j41(0,"div",13),e.nrm(1,"img",18),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("src",n.imagePreview,e.B4B)}}function Jd(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",2)(1,"div",5),e.nVh(2,lc,3,2,"div"),e.nI1(3,"createAvatar"),e.k0s(),e.j41(4,"div",6)(5,"div",7)(6,"dx-text-box",8),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.text,r)||(l.text=r),m.Njj(r)})("textChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.text,r)||(l.text=r),m.Njj(r)}),e.k0s()()(),e.j41(7,"div",9)(8,"dx-button",10),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.clearInput())}),e.k0s(),e.j41(9,"dx-button",11),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.addComment())})("keydown.enter",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.addComment())})("keydown.space",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.addComment())}),e.DNE(10,Pu,4,2,"div",12),e.k0s()(),e.nVh(11,_d,2,1,"div",13),e.k0s()}if(2&o){let n;const s=e.XpG();e.R7$(2),e.vxM((n=e.bMT(3,15,s.user))?2:-1,n),e.R7$(4),e.Y8G("label",s.scope.currentScope.network.getResourceOrKeyName("web_comments_add_comment")),e.R50("value",s.text)("text",s.text),e.Y8G("showClearButton",!0)("elementAttr",e.eq3(17,Ol,s.scope.currentScope.network.getResourceOrKeyName("web_comments_add_comment")))("buttons",e.eq3(27,Ma,e.eq3(25,wl,e.sMw(21,ac,s.openDialog,s.scope.currentScope.network.getResourceOrKeyName("web_comments_add_image_aria"),e.eq3(19,Wa,s.scope.currentScope.network.getResourceOrKeyName("web_comments_add_image_aria")))))),e.R7$(2),e.Y8G("text",s.scope.currentScope.network.getResourceOrKeyName("web_common_cancel"))("tabIndex",0)("focusStateEnabled",!0),e.R7$(),e.Y8G("disabled",!s.text&&!s.imagePreview)("tabIndex",0)("focusStateEnabled",!0),e.R7$(),e.Y8G("dxTemplateOf","content"),e.R7$(),e.vxM(s.imagePreview?11:-1)}}function Ru(o,t){if(1&o&&(e.j41(0,"div",3)(1,"div",19)(2,"h2",20),e.EFF(3),e.k0s()(),e.j41(4,"div",21)(5,"dx-button",22),e.EFF(6),e.k0s()()()),2&o){const n=e.XpG();e.R7$(3),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_commen_comment_authorization")),e.R7$(2),e.Y8G("authorizedClickSource","NewComment")("elementAttr",e.eq3(4,Ol,n.scope.currentScope.network.getResourceOrKeyName("admin_common_signIn"))),e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("admin_common_signIn")," ")}}let Mc=(()=>{var o;class t{constructor(s,r,l,E){this.commentService=s,this.scopeService=r,this.assetService=l,this.profileService=E,this.templateKey="UserCommentFormComponent",this.replyAdded=new e.bkB,this.cancelClicked=new e.bkB,this.imagePreview=null,this.text="",this.commentType=bn.SingleCommend,this.profileServiceSubscription=new vi.yU,this.loadIndicatorVisible=!1,this.openDialog=()=>{this.commentUploadDialog.open()},this.scope=r.getScope(),this.user=this.scope.profile,this.profileServiceSubscription=this.profileService.profileChanged$.subscribe(N=>this.user==N)}ngOnDestroy(){this.profileServiceSubscription.unsubscribe()}ngOnInit(){}addComment(){var s=this;return(0,ei.A)(function*(){if(s.loadIndicatorVisible=!0,s.commentType==bn.SingleCommend&&s.text&&(s.articleId||s.snipId||s.eventId)){let l=(new Date).toUTCString();var r={guid:"",text:s.text,parentGuid:s.parentGuid,released:l,created:l,user:s.user};null==r.parentGuid?s.commentService.addComment(r,s.commentType,s.focusPoint,s.articleId,s.snipId,s.eventId):(s.commentService.addReplyComment(r,s.commentType,s.focusPoint),s.replyAdded.emit()),s.resetValues()}if(s.commentType==bn.Image&&(s.articleId||s.snipId||s.eventId)){const l={text:s.text,source:s.assetImage.source||"",uploadGuid:s.assetImage.uploadGuid||null,parentGuid:s.parentGuid,expirationDate:s.assetImage.expirationDate?new Date(s.assetImage.expirationDate):null,expirationDays:s.assetImage.expirationDays||0,sourceType:s.assetImage.sourceType||0,author:s.assetImage.author||"",title:s.assetImage.title||"",dateOfPermission:s.assetImage.dateOfPermission?new Date(s.assetImage.dateOfPermission):null,descriptionOfPermission:s.assetImage.descriptionOfPermission||"",permissionGivenBy:s.assetImage.permissionGivenBy||"",pressServiceUrl:s.assetImage.pressServiceUrl||"",sourceUrl:s.assetImage.sourceUrl||"",agency:s.assetImage.agency||"",creativeCommonsLicense:s.assetImage.creativeCommonsLicense||"",dateOfScreenshot:s.assetImage.dateOfScreenshot?new Date(s.assetImage.dateOfScreenshot):null,canBeUsedEditorial:s.assetImage.canBeUsedEditorial||null,canBeUsedAdvertising:s.assetImage.canBeUsedAdvertising||null,canBeUsedElsewhere:s.assetImage.canBeUsedElsewhere||!1,imageId:s.assetImage.uploadGuid||null,mimeType:s.assetImage.mimeType||null,alwaysShowImageDescription:s.assetImage.alwaysShowImageDescription||!1,attachment:s.assetImage.attachment||""};null==s.parentGuid?s.commentService.addComment(l,s.commentType,s.focusPoint,s.articleId,s.snipId,s.eventId):s.commentService.addReplyComment(l,s.commentType,s.focusPoint),s.resetValues()}})()}onModalClose(){}onModalSave(s){this.imagePreview=s.imagePreview,this.assetImage=s.assetImage,this.focusPoint=s.focusPoint,this.assetImage.uploadGuid&&(this.commentType=bn.Image)}clearInput(){this.resetValues(),this.cancelClicked.emit()}resetValues(){this.text="",this.imagePreview=null,this.assetImage=null,this.focusPoint=null,this.commentType=bn.SingleCommend}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Hi),e.rXU(Se.A),e.rXU(yi),e.rXU($n.p))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-user-comment-form"]],viewQuery:function(r,l){if(1&r&&(e.GBs(Ga,5),e.GBs(Ca,5)),2&r){let E;e.mGM(E=e.lsd())&&(l.commentUploadDialog=E.first),e.mGM(E=e.lsd())&&(l.fileInput=E.first)}},inputs:{parentGuid:"parentGuid",articleId:"articleId",snipId:"snipId",eventId:"eventId"},outputs:{replyAdded:"replyAdded",cancelClicked:"cancelClicked"},standalone:!1,decls:5,vars:2,consts:[["commentUploadDialog",""],[1,"comment-container"],[1,"row","comment-box-wrapper"],[1,"d-flex","flex-column","align-items-center"],[3,"onSave","onClose"],[1,"comment-box","col-2","col-md-1","d-flex"],[1,"col-10","col-md-11","comment-form"],[1,"input-group"],["stylingMode","outlined","labelMode","floating",1,"form-control","comment-input",3,"valueChange","textChange","label","value","text","showClearButton","elementAttr","buttons"],[1,"button-group"],["stylingMode","text",1,"btn","focus-class",3,"onClick","text","tabIndex","focusStateEnabled"],["stylingMode","text",1,"btn","focus-class",3,"onClick","keydown.enter","keydown.space","disabled","tabIndex","focusStateEnabled"],[4,"dxTemplate","dxTemplateOf"],[1,"image-preview"],[1,"avatar",3,"src","alt"],[1,"avatar-initials"],[1,"dx-button-text"],["height","20","width","20","aria-hidden","true",1,"button-indicator",3,"visible"],["alt","",1,"comment-img-thumbnail","img-fluid",3,"src"],[1,"comment-unRegistered-text"],[1,"text-center"],[1,"comment-unRegistered-button"],["appAuthorizedClick","",3,"authorizedClickSource","elementAttr"]],template:function(r,l){if(1&r){const E=e.RV6();e.j41(0,"div",1),e.nVh(1,Jd,12,29,"div",2),e.nVh(2,Ru,7,6,"div",3),e.k0s(),e.j41(3,"app-upload-dialog",4,0),e.bIt("onSave",function(ae){return m.eBV(E),m.Njj(l.onModalSave(ae))})("onClose",function(){return m.eBV(E),m.Njj(l.onModalClose())}),e.k0s()}2&r&&(e.R7$(),e.vxM(l.user.isRegistered?1:-1),e.R7$(),e.vxM(l.user.isRegistered?-1:2))},dependencies:[Et.eC,Gn.e,Wn.B,gi.m,bi,Xr,ta._],styles:[".comment-container[_ngcontent-%COMP%]   .comment-box-wrapper[_ngcontent-%COMP%]{padding-left:0rem;align-items:center}.comment-container[_ngcontent-%COMP%]   .button-indicator[_ngcontent-%COMP%]{margin-left:5px}.comment-container[_ngcontent-%COMP%]     .dx-texteditor-buttons-container   .dx-state-focused{outline-offset:2px}.comment-container[_ngcontent-%COMP%]   .comment-box[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-direction:unset}.comment-container[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:4rem;height:4rem;border-radius:50%;display:block}.comment-container[_ngcontent-%COMP%]   .avatar-initials[_ngcontent-%COMP%]{width:4rem;height:4rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;background-color:#ccc;color:var(--textColor);font-size:1.5rem}.comment-container[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]{flex-grow:1;position:relative;border-bottom:1px solid var(--light-gray);display:flex;flex-direction:column;background-color:transparent}.comment-container[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{border:none;border-radius:0;width:100%;font-size:1.5rem}.comment-container[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none;border-bottom:1px solid var(--textColor)}.comment-container[_ngcontent-%COMP%]   .fa-image[_ngcontent-%COMP%]{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:2rem;cursor:pointer;color:var(--textColor);pointer-events:auto;z-index:10}.comment-container[_ngcontent-%COMP%]   .button-group[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:.5rem;margin-right:1rem}.comment-container[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:0;border:none;background:none;color:var(--textColor);font-size:1.2rem;margin-left:1rem}.comment-container[_ngcontent-%COMP%]   .btn-cancel[_ngcontent-%COMP%]{color:var(--textColor)}.comment-container[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:disabled{color:var(--light-gray);cursor:not-allowed;border:none}.comment-container[_ngcontent-%COMP%]   .comment-input[_ngcontent-%COMP%]{font-family:var(--fontPrimary);color:var(--textColor);font-size:1.2rem}.comment-container[_ngcontent-%COMP%]   .comment-input[_ngcontent-%COMP%]     .dx-texteditor-input, .comment-container[_ngcontent-%COMP%]   .comment-input[_ngcontent-%COMP%]     .dx-placeholder{font-size:1.2rem}.comment-container[_ngcontent-%COMP%]   .comment-input[_ngcontent-%COMP%]     .dx-icon{font-size:2rem}.comment-container[_ngcontent-%COMP%]   .image-preview[_ngcontent-%COMP%]{display:flex;justify-content:center}.comment-container[_ngcontent-%COMP%]   .image-preview[_ngcontent-%COMP%]   .comment-img-thumbnail[_ngcontent-%COMP%]{max-width:20rem;aspect-ratio:4/3;overflow:hidden;object-fit:cover;object-position:center}.comment-container[_ngcontent-%COMP%]   .comment-unRegistered-text[_ngcontent-%COMP%]{margin:0 15px 8px}  .comment-image-icon.dx-state-hover{outline:2px solid var(--textColor)!important;outline-offset:2px}  .focus-class:focus-visible{outline:2px solid var(--textColor)}@media (max-width: 992px){.comment-box-wrapper[_ngcontent-%COMP%]{padding-left:15px;padding-right:15px}}@media (max-width: 768px){.comment-container[_ngcontent-%COMP%]{margin-bottom:2rem}.comment-container[_ngcontent-%COMP%]   .comment-form[_ngcontent-%COMP%]{padding-left:0}.comment-container[_ngcontent-%COMP%]   .comment-box[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.comment-container[_ngcontent-%COMP%]   .comment-box-wrapper[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:.5rem}.comment-container[_ngcontent-%COMP%]   .col-sm-1[_ngcontent-%COMP%]{max-width:50px;flex:0 0 50px}.comment-container[_ngcontent-%COMP%]   .col-sm-11[_ngcontent-%COMP%]{flex:1;padding-left:0}.comment-container[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%], .comment-container[_ngcontent-%COMP%]   .avatar-initials[_ngcontent-%COMP%]{width:3.5rem;height:3.5rem;border-radius:50%;margin-right:.9rem}.comment-container[_ngcontent-%COMP%]   .button-group[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:0rem;margin-right:0rem}.comment-container[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{font-size:1rem;margin-left:0rem}.comment-container[_ngcontent-%COMP%]   .comment-input[_ngcontent-%COMP%]{font-family:var(--fontPrimary);color:var(--textColor);font-size:.8rem}.comment-container[_ngcontent-%COMP%]   .comment-input[_ngcontent-%COMP%]     .dx-texteditor-input, .comment-container[_ngcontent-%COMP%]   .comment-input[_ngcontent-%COMP%]     .dx-placeholder{font-size:1rem}.comment-container[_ngcontent-%COMP%]   .comment-input[_ngcontent-%COMP%]     .dx-icon{font-size:1rem}}"]}))}return o(),t})();var vd=p(9026);const cl=["popupWrapper"],ku=["slideContainer"],qd=["touchArea"],fp=()=>({class:"gallery-cover-viewer-popup-wrapper"});function pg(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",7),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.prevImage())})("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.prevImage())})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.prevImage())}),e.nrm(1,"i",8),e.k0s()}}function za(o,t){if(1&o&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.SpI(" ",n.images[n.currentIndex].text," ")}}function Vl(o,t){if(1&o&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.Lme(" ",n.scope.network.getResourceOrKeyName("web_asset_imageSourceInfo")," ",n.images[n.currentIndex].source," ")}}function zc(o,t){if(1&o&&(e.j41(0,"figcaption",14),e.nVh(1,za,2,1,"span"),e.nVh(2,Vl,2,2,"span"),e.k0s()),2&o){const n=e.XpG(3);e.Y8G("id",e.VkB("image-description-",n.currentIndex)),e.R7$(),e.vxM(n.images[n.currentIndex].text?1:-1),e.R7$(),e.vxM(n.images[n.currentIndex].source?2:-1)}}function Dh(o,t){if(1&o&&(e.j41(0,"figure",5)(1,"div",9)(2,"div",10)(3,"div",11),e.nrm(4,"dx-load-indicator",12),e.k0s(),e.nrm(5,"img",13),e.k0s(),e.nVh(6,zc,3,4,"figcaption",14),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(5),e.Y8G("src",(null==n.images[n.currentIndex]?null:n.images[n.currentIndex].assetImageUrl)+"?preset=image-viewer",e.B4B),e.BMQ("aria-describedby",n.images[n.currentIndex].text?"image-description-"+n.currentIndex:null),e.R7$(),e.vxM(n.images[n.currentIndex].text||n.images[n.currentIndex].source?6:-1)}}function eu(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",15),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.nextImage())})("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.nextImage())})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.nextImage())}),e.nrm(1,"i",16),e.k0s()}}function Bu(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-popup",2),e.mxI("visibleChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.imageViewerOpen,r)||(l.imageViewerOpen=r),m.Njj(r)}),e.bIt("onShown",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.onPopupShown())})("onHiding",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.closeViewer())}),e.j41(1,"div",3,0),e.bIt("keydown",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onKeyDown(r))}),e.nVh(4,pg,2,0,"div",4),e.nVh(5,Dh,7,3,"figure",5),e.nVh(6,eu,2,0,"div",6),e.k0s()()}if(2&o){const n=e.XpG();e.R50("visible",n.imageViewerOpen),e.Y8G("fullScreen",!0)("showTitle",!1)("showCloseButton",!1)("toolbarItems",n.toolbarItems)("enableBodyScroll",!1)("dragEnabled",!1)("wrapperAttr",e.lJ4(11,fp)),e.R7$(4),e.vxM(n.images.length>1?4:-1),e.R7$(),e.vxM(n.images[n.currentIndex]?5:-1),e.R7$(),e.vxM(n.images.length>1?6:-1)}}let Sl=(()=>{var o;class t{set imageViewerOpen(s){s&&(this.currentIndex=this.startIndex),this._open=s}get imageViewerOpen(){return this._open}constructor(s){this.scopeService=s,this.images=[],this._open=!1,this.startIndex=0,this.justOpened=!1,this.currentIndex=0,this.imageViewerOpenChange=new e.bkB,this.touchStartX=0,this.touchStartY=0,this.isSwiping=!1,this.isMultiTouch=!1,this.onTouchStartBound=r=>this.onTouchStart(r),this.onTouchMoveBound=r=>this.onTouchMove(r),this.onTouchEndBound=r=>this.onTouchEnd(r),this.onTouchCancelBound=r=>this.onTouchCancel(r),this.shouldHandleSwipe=!1,this.scope=this.scopeService.getScope(),this.toolbarItems=[{widget:"dxButton",location:"after",options:{hint:this.scope.network.getResourceOrKeyName("web_common_close_dialog"),icon:"close",elementAttr:{title:this.scope.network.getResourceOrKeyName("web_common_close_dialog"),class:"cover-viewer-close-button"},onClick:()=>this.closeViewer()}}]}ngAfterViewInit(){const s=this.touchArea.nativeElement;s.addEventListener("touchstart",this.onTouchStartBound,{passive:!0}),s.addEventListener("touchmove",this.onTouchMoveBound,{passive:!1}),s.addEventListener("touchend",this.onTouchEndBound,{passive:!0}),s.addEventListener("touchcancel",this.onTouchCancelBound,{passive:!0})}openAt(s){this.currentIndex=s,this.imageViewerOpen=!0}onPopupShown(){this.popupWrapper&&this.popupWrapper.nativeElement&&setTimeout(()=>this.popupWrapper.nativeElement.focus(),0)}closeViewer(){this.imageViewerOpenChange.emit(!1),this._open=!1}nextImage(){0===this.images.length||this.isMultiTouch||(this.currentIndex=(this.currentIndex+1)%this.images.length)}prevImage(){0===this.images.length||this.isMultiTouch||(this.currentIndex=(this.currentIndex-1+this.images.length)%this.images.length)}ngOnChanges(s){s.startIndex&&this.imageViewerOpen&&(this.currentIndex=this.startIndex)}onKeyDown(s){"ArrowRight"===s.key&&(this.nextImage(),s.preventDefault()),"ArrowLeft"===s.key&&(this.prevImage(),s.preventDefault()),"Escape"===s.key&&(this._open=!1)}onTouchStart(s){!this._open||s.touches.length>1?this.isMultiTouch=!0:(this.isMultiTouch=!1,this.touchStartX=s.touches[0].clientX,this.touchStartY=s.touches[0].clientY,this.shouldHandleSwipe=!1)}onTouchMove(s){if(!this._open||this.isMultiTouch||s.touches.length>1)return;const r=Math.abs(s.touches[0].clientX-this.touchStartX);r>Math.abs(s.touches[0].clientY-this.touchStartY)&&r>30&&(this.shouldHandleSwipe=!0,s.preventDefault())}onTouchEnd(s){if(!this._open||this.isMultiTouch||!this.shouldHandleSwipe)return;const r=s.changedTouches[0].clientX-this.touchStartX;Math.abs(r)>30&&(r>0?this.prevImage():this.nextImage()),this.shouldHandleSwipe=!1}onTouchCancel(s){this.shouldHandleSwipe=!1,this.isMultiTouch=!1}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-image-viewer"]],viewQuery:function(r,l){if(1&r&&(e.GBs(cl,5),e.GBs(ku,7),e.GBs(qd,5)),2&r){let E;e.mGM(E=e.lsd())&&(l.popupWrapper=E.first),e.mGM(E=e.lsd())&&(l.slideContainer=E.first),e.mGM(E=e.lsd())&&(l.touchArea=E.first)}},inputs:{images:"images",startIndex:"startIndex",imageViewerOpen:"imageViewerOpen"},outputs:{imageViewerOpenChange:"imageViewerOpenChange"},standalone:!1,features:[e.OA$],decls:1,vars:1,consts:[["popupWrapper","","touchArea",""],[3,"visible","fullScreen","showTitle","showCloseButton","toolbarItems","enableBodyScroll","dragEnabled","wrapperAttr"],[3,"visibleChange","onShown","onHiding","visible","fullScreen","showTitle","showCloseButton","toolbarItems","enableBodyScroll","dragEnabled","wrapperAttr"],["tabindex","0",1,"gallery-cover-viewer-popup",3,"keydown"],["role","button","alt","Previous image","title","Previous image","tabindex","0",1,"icon-container","prev"],[1,"gallery-cover-viewer"],["role","button","alt","Next image","title","Next image","tabindex","0",1,"icon-container","next"],["role","button","alt","Previous image","title","Previous image","tabindex","0",1,"icon-container","prev",3,"click","keydown.enter","keydown.space"],[1,"dx-icon","dx-icon-chevronprev"],[1,"image-container-base"],[1,"image-container"],[1,"load-indicator"],["id","medium-indicator","height","40","width","40","aria-hidden","true"],["alt","",1,"img-fluid",3,"src"],[1,"image-info",3,"id"],["role","button","alt","Next image","title","Next image","tabindex","0",1,"icon-container","next",3,"click","keydown.enter","keydown.space"],[1,"dx-icon","dx-icon-chevronright"]],template:function(r,l){1&r&&e.nVh(0,Bu,7,12,"dx-popup",1),2&r&&e.vxM(l.images.length>0?0:-1)},dependencies:[Wn.B,en.i],styles:[".dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .dx-popup-content .gallery-cover-viewer-popup{display:flex;align-items:center;justify-content:center;max-height:85vh;width:100%;position:relative;touch-action:pinch-zoom pan-y}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .dx-popup-content .gallery-cover-viewer-popup:focus-visible{outline:2px solid white}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .dx-popup-content .gallery-cover-viewer-popup .gallery-cover-viewer{display:flex;flex-direction:column;justify-content:center}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .dx-popup-content .gallery-cover-viewer-popup .gallery-cover-viewer img{max-height:80vh;width:auto;object-fit:cover;z-index:1;position:relative;touch-action:pinch-zoom pan-x pan-y}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .dx-popup-content .gallery-cover-viewer-popup .gallery-cover-viewer .image-info{display:flex;flex-direction:column;color:#fff;max-width:60vw}@media (max-width: 769px){.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .dx-popup-content .gallery-cover-viewer-popup .gallery-cover-viewer .image-info{max-width:100vw}}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .dx-popup-content .gallery-cover-viewer-popup .gallery-cover-viewer .image-container{align-items:center;display:flex;justify-content:center}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .dx-popup-content{display:flex}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .dx-popup-fullscreen{background-color:#000}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .cover-viewer-close-button.dx-state-hover .dx-icon,.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .cover-viewer-close-button.dx-state-focused .dx-icon{color:#000}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .cover-viewer-close-button .dx-icon{font-size:24px;font-weight:900;color:#fff}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .dx-popup-title{border-bottom:none}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .icon-container{position:absolute;top:50%;transform:translateY(-50%);border-radius:50%;background-color:gray;color:var(--backgroundColor);z-index:100}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .icon-container.prev{left:32px}@media (max-width: 768px){.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .icon-container.prev{left:8px}}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .icon-container.next{right:32px}@media (max-width: 768px){.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .icon-container.next{right:8px}}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .icon-container i{font-size:60px}@media (max-width: 768px){.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .icon-container i{font-size:40px}}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .icon-container:hover{background-color:color-mix(in srgb,var(--colorPrimary) 50%,transparent 50%);outline:1px solid white;border-radius:50%}.dx-overlay-wrapper.gallery-cover-viewer-popup-wrapper .icon-container:focus-visible{outline:3px solid white;outline-offset:5px}.gallery-cover-viewer .load-indicator{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);z-index:0}\n"],encapsulation:2}))}return o(),t})();const Cd=o=>{clearTimeout(o.countUpTimeout),o._countUpOrigInnerHTML&&(o.innerHTML=o._countUpOrigInnerHTML,o._countUpOrigInnerHTML=void 0),o.style.visibility=""};let Kc=(()=>{var o;class t{constructor(s,r){this.http=s,this.scopeService=r,this.scope=r.getScope(),this.apiEndpoint=this.scope.apiEndpoint}like(s,r,l,E){let N="";if(r)N="articles";else if(l)N="snips";else{if(!E)return;N="assets"}return this.http.put(`${this.apiEndpoint}${N}/${s}/like`,null).toPromise().then(ae=>ae).catch(this.handleError)}handleError(s){return console.error("An error occurred",s),Promise.reject(s.message||s)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const Nu=["ohaComponent"],Xc=(o,t,n,s)=>({"oha-community":o,"oha-bordeaux":t,"oha-disabled":n,"oha-readOnly":s}),Yc=(o,t)=>({"stroke-dashoffset":o,display:t}),dl=o=>({"oha-score-hidden":o}),Dl=(o,t,n)=>({transform:o,rotate:t,display:n});function yd(o,t){if(1&o&&(m.qSk(),e.j41(0,"g",7),e.nrm(1,"circle",15),e.k0s()),2&o){const n=e.XpG(2);e.Y8G("ngStyle",e.sMw(1,Dl,"rotateZ("+n.getRotateDegrees(n.getReferenceScore())+"deg)",n.getRotateDegrees(n.getReferenceScore()),n.getReferenceScore()>1?"none":null))}}function Lu(o,t){1&o&&e.nrm(0,"div",14)}function bd(o,t){if(1&o){const n=e.RV6();e.j41(0,"button",2,0),e.bIt("click",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.oha(r))}),m.qSk(),e.j41(2,"svg",3)(3,"g",4),e.nrm(4,"circle",5)(5,"circle",6),e.nVh(6,yd,2,5,":svg:g",7),e.k0s(),e.j41(7,"g",8)(8,"g"),e.nrm(9,"text",9),e.k0s(),e.j41(10,"g",10)(11,"text",11),e.nrm(12,"tspan",12),e.EFF(13),e.k0s()()()(),m.joV(),e.j41(14,"span",13),e.EFF(15),e.k0s(),e.nVh(16,Lu,1,0,"div",14),e.k0s()}if(2&o){const n=e.XpG();e.HbH(e.a5S("oha oha-",n.size," ",n.iLike()?"oha-selected":""," ",n.isAnimated?"oha-animated":""," ",n.isTransitioned?"oha-transitioned":"")),e.Y8G("authorizedClickSource","Oha")("ngClass",e.ziG(21,Xc,n.isSnip,n.isAssetReference,n.isDisabled,n.profileIsReadOnlyMode)),e.BMQ("aria-label",n.getAriaLabel())("aria-pressed",n.iLike()),e.R7$(5),e.Y8G("ngStyle",e.l_i(26,Yc,n.getStrokeDashoffset(n.getReferenceScore()),n.isAssetReference||n.showLikes?"none":null)),e.R7$(),e.vxM(n.isAssetReference||n.showLikes?-1:6),e.R7$(),e.Y8G("ngClass",e.eq3(29,dl,!n.showScore)),e.R7$(),e.HbH(e.VkB("oha-name ",n.ohaAdditionalClass)),e.R7$(),e.Y8G("innerHTML",n.ohaName,e.npT),e.R7$(3),e.Y8G("textContent",n.getScore()),e.R7$(),e.SpI(" ",n.isAssetReference||n.isDisabled||n.showLikes?"":" %"," "),e.R7$(2),e.JRh(n.liveRegionText),e.R7$(),e.vxM(n.isSnip&&n.getReferenceScore()<1?16:-1)}}let Hl=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.ohaService=r,this.preview=!1,this.isLinkArticle=!1,this.isArticle=!1,this.isSnip=!1,this.isAssetReference=!1,this.profileIsReadOnlyMode=!0,this.isLoading=!1,this.isAnimated=!1,this.isTransitioned=!1,this.isDisabled=!1,this.isPreview=!1,this.showLikes=!1,this.showScore=!0,this.showComponent=!0,this.ohaAdditionalClass="",this.liveRegionText="",this.disabledScore="...",this.scope=this.scopeService.getScope(),this.profileIsReadOnlyMode=this.scope.profile.readOnlyMode,this.ohaName=this.scope.currentScope.network.getResourceOrKeyName("web_common_oha"),this.ohaName&&this.ohaName.startsWith("<span ")&&this.ohaName.endsWith("</span>")&&(this.ohaName=this.ohaName.replace("</span>","</tspan>"),this.ohaName=this.ohaName.replace("<span ","<tspan "))}ngOnInit(){this.article?(this.isArticle=!0,this.showLikes=this.scope.currentScope.chapter.settings.enableOhaLikes,this.showScore=!this.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig||this.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig<1,this.showComponent=(!this.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig||this.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig<2)&&!this.isLinkArticle,this.reference=this.article):this.snip?(this.isSnip=!0,this.showLikes=this.scope.currentScope.chapter.settings.enableOhaLikes,this.showScore=!this.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig||this.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig<1,this.showComponent=!this.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig||this.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig<2,this.reference=this.snip):this.assetReference&&(this.isAssetReference=!0,this.reference=this.assetReference,this.showScore=!this.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig||this.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig<1,this.showComponent=!this.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig||this.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig<2),this.scope.network.settings.configurations.ohaConfigurationModel&&this.scope.network.settings.configurations.ohaConfigurationModel.useIcon&&(this.ohaAdditionalClass=this.scope.network.settings.configurations.ohaConfigurationModel.additionalClass,this.ohaName=String.fromCharCode(this.scope.network.settings.configurations.ohaConfigurationModel.charCode)),this.isAnimated=!this.isAssetReference&&!this.showLikes&&"ArticleDisplayable"!==this.source&&"xs"!==this.size,this.isTransitioned=!this.isAssetReference&&"ArticleDisplayable"!==this.source,this.isDisabled=!this.isAssetReference&&(this.reference?.archived||this.reference?.deleted)||this.preview,this.isPreview=this.isArticle&&this.reference.isPreview,this.size=this.size?this.size:"md"}getAriaLabel(){const s=this.scope.network.getResourceOrKeyName("web_common_likes_counter");if(this.isDisabled||!this.reference)return this.disabledScore;if(this.showLikes)return`${s} : ${Number(this.reference.likes)||0}.`;{const r=this.reference?.score??0;return`${s} : ${Math.min(100,Math.round(10*(r<1?100*r:100))/10)}% `}}announceChange(){this.liveRegionText="";const s=this.iLike();setTimeout(()=>{this.liveRegionText=s?`${this.scope.network.getResourceOrKeyName("web_common_liked")}.`:`${this.scope.network.getResourceOrKeyName("web_common_disliked")}.`})}ngAfterViewInit(){this.showComponent&&(this.ohaButton=this.element?.nativeElement,this.ohaText=this.ohaButton.querySelector(".oha-text"),this.ohaScoreTspan=this.ohaButton.querySelector(".oha-score-tspan"))}getReferenceScore(){return this.reference?this.isAssetReference||this.showLikes?this.reference.likes:this.reference.score<1?this.reference.score:1:0}getScore(){if(this.isDisabled||!this.reference||typeof this.reference.likes>"u")return this.disabledScore;if(!this.isAssetReference&&!this.showLikes){var s=this.reference.score;return(s<1?100*s:100).toFixed(s<1?1:0).replace(/\./g,",")}return this.reference.likes.toString()}iLike(){return this.reference?this.reference.iLike:null}oha(s){if(s.preventDefault(),!(this.isDisabled||this.profileIsReadOnlyMode||this.isPreview||this.isLoading)&&this.reference)if(this.isTransitioned||(this.isTransitioned=!0),this.isLoading=!0,this.ohaText.classList.add("oha-loading"),this.ohaText.classList.remove("oha-liked"),this.reference.iLike=!this.reference.iLike,this.isAssetReference)this.ohaService.like(this.reference.guid,this.isArticle,this.isSnip,this.isAssetReference).then(E=>{this.animateOhaButton(E.likes)},()=>{this.reference.iLike=!this.reference.iLike,this.animateOhaButton(this.reference.score)});else{var r=this.reference.score,l=this.reference.likes;this.reference.iLike&&setTimeout(()=>{this.animateOhaPlanet(0)}),this.ohaService.like(this.reference.id,this.isArticle,this.isSnip,this.isAssetReference).then(E=>{var N=E.score,ae=E.likes;this.showLikes?((this.reference.iLike&&l>ae||!this.reference.iLike&&l<ae)&&(ae=l),this.animateOhaButton(ae)):((this.reference.iLike&&r>N||!this.reference.iLike&&r<N)&&(N=r),this.animateOhaButton(N<1?N:1))},()=>{this.reference.iLike=!this.reference.iLike,this.animateOhaButton(this.showLikes?l:r)})}}animateOhaButton(s){if(this.reference){var r=!this.isAssetReference&&this.reference.iLike?750:0,l=!this.isAssetReference&&this.reference.iLike?500:0;setTimeout(()=>{this.showLikes?this.reference.likes=s:this.reference.score=s,r?(this.ohaScoreTspan.textContent=this.showLikes?s:(100*s).toFixed(s<1?1:0).replace(/\./g,","),this.ohaText.classList.add("oha-liked"),((o,t={})=>{const{action:n="start",duration:s=1e3,delay:r=16}=t;if("stop"===n)return void Cd(o);if(Cd(o),!/[0-9]/.test(o.innerHTML))return;const l=((o,t={})=>{const{duration:n=1e3,delay:s=16}=t,r=n/s,l=o.toString().split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/),E=[];for(let N=0;N<r;N++)E.push("");for(let N=0;N<l.length;N++)if(/([0-9.][,.0-9]*[0-9]*)/.test(l[N])&&!/<[^>]+>/.test(l[N])){let ae=l[N];const ze=[...ae.matchAll(/[.,]/g)].map(Kt=>({char:Kt[0],i:ae.length-Kt.index-1})).sort((Kt,Vn)=>Kt.i-Vn.i);ae=ae.replace(/[.,]/g,"");let dt=E.length-1;for(let Kt=r;Kt>=1;Kt--){let Vn=parseInt(ae/r*Kt,10);Vn=ze.reduce((ci,{char:Vi,i:Di})=>ci.length<=Di?ci:ci.slice(0,-Di)+Vi+ci.slice(-Di),Vn.toString()),E[dt--]+=Vn}}else for(let ae=0;ae<r;ae++)E[ae]+=l[N];return E[E.length]=o.toString(),E})(o.innerHTML,{duration:s||o.getAttribute("data-duration"),delay:r||o.getAttribute("data-delay")});o._countUpOrigInnerHTML=o.innerHTML,o.innerHTML=l[0]||"&nbsp;",o.style.visibility="visible";const E=function(){o.innerHTML=l.shift()||"&nbsp;",l.length?(clearTimeout(o.countUpTimeout),o.countUpTimeout=setTimeout(E,r)):o._countUpOrigInnerHTML=void 0};o.countUpTimeout=setTimeout(E,r)})(this.ohaScoreTspan,{delay:25,time:l,callback:this.animationCallback()})):(this.isAssetReference||this.showLikes?this.reference.likes=s:this.reference.score=s,this.isLoading=!1),this.announceChange(),this.ohaText.classList.remove("oha-loading")},r)}}animationCallback(){this.isLoading=!1,setTimeout(()=>{this.ohaText.classList.remove("oha-liked")},1e3)}getStrokeDashoffset(s){return 102.1-+(102.1*s).toFixed(0)}getRotateDegrees(s){return 360*s}animateOhaPlanet(s){if(this.reference){this.ohaButton.querySelector(".oha-outer").style.strokeDashoffset=this.getStrokeDashoffset(s);var l=this.ohaButton.querySelector(".oha-rotate");l&&(l.style.rotateZ=this.getRotateDegrees(s)+"deg",l.style.rotate=this.getRotateDegrees(s)),setTimeout(()=>{this.reference.score=s})}}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Kc))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-oha"]],viewQuery:function(r,l){if(1&r&&e.GBs(Nu,5),2&r){let E;e.mGM(E=e.lsd())&&(l.element=E.first)}},inputs:{article:"article",snip:"snip",assetReference:"assetReference",size:"size",source:"source",preview:"preview",isLinkArticle:"isLinkArticle"},standalone:!1,decls:1,vars:1,consts:[["ohaComponent",""],["appAuthorizedClick","","tabindex","0",3,"class","authorizedClickSource","ngClass"],["appAuthorizedClick","","tabindex","0",3,"click","authorizedClickSource","ngClass"],["viewBox","0 0 40 40","aria-hidden","true","focusable","false"],["transform","translate(20,20) rotate(-90)"],["r","15.75","cx","0","cy","0",1,"oha-inner"],["r","16.25","cx","0","cy","0",1,"oha-outer",3,"ngStyle"],[1,"oha-rotate",3,"ngStyle"],["transform","translate(20,20)",1,"oha-text",3,"ngClass"],["x","0","y","2",3,"innerHTML"],[1,"oha-score"],["x","0","y","8"],[1,"oha-score-tspan",3,"textContent"],["aria-live","polite",1,"visually-hidden"],[1,"oha-pulse"],["r","4","cx","15.5","cy","0",1,"oha-planet"]],template:function(r,l){1&r&&e.nVh(0,bd,17,31,"button",1),2&r&&e.vxM(l.showComponent?0:-1)},dependencies:[C.YU,C.B3,bi],styles:[".oha[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--textColor);outline-offset:-2px}.visually-hidden[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}"]}))}return o(),t})(),_p=(()=>{var o;class t{constructor(s){this.scopeService=s,this.isPopupVisible=!1,this.deleteConfirmed=new e.bkB,this.cancelConfirmed=new e.bkB,this.scope=this.scopeService.getScope()}openPopup(){this.isPopupVisible=!0}closePopup(){this.cancelConfirmed.emit(),this.isPopupVisible=!1}deleteComment(){this.deleteConfirmed.emit(),this.closePopup()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-delete-dialog"]],inputs:{isPopupVisible:"isPopupVisible"},outputs:{deleteConfirmed:"deleteConfirmed",cancelConfirmed:"cancelConfirmed"},standalone:!1,decls:7,vars:10,consts:[[3,"visibleChange","visible","width","height","showTitle","dragEnabled","title","closeOnOutsideClick"],[1,"delete-popup-base"],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-around","mt-5"],[3,"onClick","text"]],template:function(r,l){1&r&&(e.j41(0,"dx-popup",0),e.mxI("visibleChange",function(N){return e.DH7(l.isPopupVisible,N)||(l.isPopupVisible=N),N}),e.j41(1,"div",1)(2,"div",2),e.EFF(3),e.k0s(),e.j41(4,"div",3)(5,"dx-button",4),e.bIt("onClick",function(){return l.closePopup()}),e.k0s(),e.j41(6,"dx-button",4),e.bIt("onClick",function(){return l.deleteComment()}),e.k0s()()()()),2&r&&(e.R50("visible",l.isPopupVisible),e.Y8G("width",400)("height",200)("showTitle",!0)("dragEnabled",!0)("title",l.scope.currentScope.network.getResourceOrKeyName("web_comments_delete_dialog_title"))("closeOnOutsideClick",!0),e.R7$(3),e.SpI(" ",l.scope.currentScope.network.getResourceOrKeyName("web_comments_delete_dialog_body")," "),e.R7$(2),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_common_cancel")),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_common_delete")))},dependencies:[Gn.e,en.i],encapsulation:2}))}return o(),t})();var Da=p(6449);let Tl=(()=>{var o;class t{constructor(s,r){this.sanitizer=s,this.authService=r}transform(s){return this.sanitizer.bypassSecurityTrustResourceUrl(`${this.authService.mediaApiBase.url}/api/Asset/${s}/Thumbnail000001.jpg`)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Oo.up,16),e.rXU(Da.u,16))},this.\u0275pipe=e.EJ8({name:"apicodoMediaServiceImage",type:t,pure:!0,standalone:!1}))}return o(),t})(),$l=(()=>{var o;class t{constructor(s){this.sanitizer=s}transform(s){return`https://youtu.be/${s}`}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Oo.up,16))},this.\u0275pipe=e.EJ8({name:"youtubeWatch",type:t,pure:!0,standalone:!1}))}return o(),t})(),vp=(()=>{var o;class t{constructor(s){this.sanitizer=s}transform(s){const r=`https://img.youtube.com/vi/${s.split("||")[0]}/0.jpg`;return this.sanitizer.bypassSecurityTrustResourceUrl(r)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Oo.up,16))},this.\u0275pipe=e.EJ8({name:"youtubeImage",type:t,pure:!0,standalone:!1}))}return o(),t})(),Yr=(()=>{var o;class t{transform(s){if(!s)return"";const r=s.split("||");return r.length>1?r[1]:`{{${s} | youtubeWatch}}`}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275pipe=e.EJ8({name:"youtubeTitle",type:t,pure:!0,standalone:!1}))}return o(),t})(),Pc=(()=>{var o;class t{constructor(s){this.sanitizer=s}transform(s){const r=`//graph.facebook.com/${s.split("/")[2]}/picture`;return this.sanitizer.bypassSecurityTrustUrl(r)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Oo.up,16))},this.\u0275pipe=e.EJ8({name:"facebookImage",type:t,pure:!0,standalone:!1}))}return o(),t})(),Vu=(()=>{var o;class t{constructor(s){this.sanitizer=s}transform(s){return this.sanitizer.bypassSecurityTrustResourceUrl(`//www.facebook.com/${s}/`)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Oo.up,16))},this.\u0275pipe=e.EJ8({name:"facebookWatch",type:t,pure:!0,standalone:!1}))}return o(),t})(),nu=(()=>{var o;class t{constructor(s){this.sanitizer=s}transform(s){let r=s.split("|")[1];return r||(r="/Content/images/vimeo_logo.jpg"),this.sanitizer.bypassSecurityTrustUrl(r)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Oo.up,16))},this.\u0275pipe=e.EJ8({name:"vimeoImage",type:t,pure:!0,standalone:!1}))}return o(),t})(),xd=(()=>{var o;class t{constructor(s){this.sanitizer=s}transform(s){const l=`//vimeo.com/${s.split("|")[0]}`;return this.sanitizer.bypassSecurityTrustResourceUrl(l)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Oo.up,16))},this.\u0275pipe=e.EJ8({name:"vimeoWatch",type:t,pure:!0,standalone:!1}))}return o(),t})(),Ul=(()=>{var o;class t{constructor(s){this.scopeService=s,this.scope=s.getScope()}transform(s){const r=new Date(s),E=(new Date).getTime()-r.getTime(),N=Math.floor(E/6e4);if(N<2)return this.scope.currentScope.network.resources.web_common_relative_date_now;if(N<60)return this.replaceRessource(this.scope.currentScope.network.resources.web_common_relative_date_minutes_ago,N);const ae=Math.floor(N/60);if(ae<24)return 1===ae?this.scope.currentScope.network.resources.web_common_relative_date_hour_ago:this.replaceRessource(this.scope.currentScope.network.resources.web_common_relative_date_hours_ago,ae);const ze=Math.floor(ae/24);if(1===ze)return this.scope.currentScope.network.resources.web_common_relative_date_day_ago;if(ze<=7)return this.replaceRessource(this.scope.currentScope.network.resources.web_common_relative_date_days_ago,ze);if(ze<=13)return this.scope.currentScope.network.resources.web_common_relative_date_week_ago;if(ze<=20)return this.scope.currentScope.network.resources.web_common_relative_date_two_weeks_ago;if(ze<=27)return this.scope.currentScope.network.resources.web_common_relative_date_three_weeks_ago;if(ze<=30)return this.scope.currentScope.network.resources.web_common_relative_date_month_ago;const dt=Math.floor(ze/30);if(1===dt)return this.scope.currentScope.network.resources.web_common_relative_date_month_ago;if(dt<12)return this.replaceRessource(this.scope.currentScope.network.resources.web_common_relative_date_months_ago,dt);const Kt=Math.floor(ze/365);return Kt>1?this.replaceRessource(this.scope.currentScope.network.resources.web_common_relative_date_years_ago,Kt):this.scope.currentScope.network.resources.web_common_relative_date_year_ago}replaceRessource(s,r){return s.replace("{n}",r.toString())}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A,16))},this.\u0275pipe=e.EJ8({name:"relativeDate",type:t,pure:!0,standalone:!1}))}return o(),t})();const iu=(o,t)=>({"comment-unreleased":o,"comment-troll":t}),Hu=o=>[o],Ed=()=>({width:150}),$u=o=>({"aria-label":o}),Uu=o=>({"pending-reply":o});function ou(o,t){if(1&o&&e.nrm(0,"img",25),2&o){const n=e.XpG();e.Y8G("src",n.avatarUrl,e.B4B)("alt","")}}function Rc(o,t){if(1&o&&(e.j41(0,"div",26),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.initials," ")}}function gt(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",6)(1,"div",24),e.bIt("click",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.openProfile(r,l.comment.user.guid))}),e.nVh(2,ou,1,2,"img",25),e.nVh(3,Rc,2,1,"div",26),e.k0s()()}if(2&o){const n=t;e.R7$(2),e.vxM(n.avatarUrl?2:-1),e.R7$(),e.vxM(n.useInitials?3:-1)}}function un(o,t){1&o&&e.nrm(0,"i",11)}function Xn(o,t){if(1&o&&(e.nrm(0,"div",27,0),e.nI1(2,"apicodoTranslateText"),e.nI1(3,"async")),2&o){const n=e.XpG(3);e.Y8G("linkify",e.bMT(3,3,e.bMT(2,1,n.comment.assetImage.text)))}}function to(o,t){if(1&o){const n=e.RV6();e.j41(0,"div"),e.nVh(1,Xn,4,5,"div",27),e.j41(2,"img",28),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.openImageViewer(r.comment.assetImage.assetImageUrl))}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.vxM(n.comment.assetImage.text?1:-1),e.R7$(),e.Y8G("src",n.comment.assetImage.assetImageUrl+"?preset=gallery-image"+(n.isMobile?"-mobile":"")+"&cache="+n.comment.assetImage.cache,e.B4B)}}function wo(o,t){if(1&o&&(e.nrm(0,"div",27,0),e.nI1(2,"apicodoTranslateText"),e.nI1(3,"async")),2&o){const n=e.XpG(3);e.Y8G("linkify",e.bMT(3,3,e.bMT(2,1,n.comment.assetText.text)))}}function Ds(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,wo,4,5,"div",27),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.vxM(n.comment.assetText.text?1:-1)}}function kr(o,t){if(1&o&&(e.j41(0,"div",29),e.EFF(1),e.nI1(2,"youtubeTitle"),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,1,n.comment.assetText.text))}}function Qr(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,kr,3,3,"div",29),e.j41(2,"a",30),e.nI1(3,"youtubeWatch"),e.nrm(4,"img",31),e.nI1(5,"youtubeImage"),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(),e.vxM(n.comment.assetText.text?1:-1),e.R7$(),e.Y8G("href",e.bMT(3,3,n.comment.assetText.text),e.B4B),e.R7$(2),e.Y8G("lazy-img",e.bMT(5,5,n.comment.assetText.text))}}function sa(o,t){if(1&o&&(e.j41(0,"div",29),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.comment.assetText.text)}}function Zr(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,sa,2,1,"div",29),e.nrm(2,"img",32),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.vxM(n.comment.assetText.text?1:-1),e.R7$(),e.Y8G("src",n.comment.assetText.text,e.B4B)}}function cc(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"img",33),e.nI1(2,"apicodoMediaServiceImage"),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("src",e.bMT(2,1,n.comment.assetText.text),e.B4B)}}function Cp(o,t){if(1&o&&(e.j41(0,"div")(1,"a",34),e.nI1(2,"vimeoWatch"),e.nrm(3,"img",31),e.nI1(4,"vimeoImage"),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("href",e.bMT(2,2,n.comment.assetText.text),e.B4B),e.R7$(2),e.Y8G("lazy-img",e.bMT(4,4,n.comment.assetText.text))}}function yp(o,t){if(1&o&&(e.j41(0,"div")(1,"a",30),e.nI1(2,"facebookWatch"),e.nrm(3,"img",31),e.nI1(4,"facebookImage"),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("href",e.bMT(2,2,n.comment.assetText.text),e.B4B),e.R7$(2),e.Y8G("lazy-img",e.bMT(4,4,n.comment.assetText.text))}}function Dm(o,t){if(1&o){const n=e.RV6();e.j41(0,"button",35),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleRepliesCommentForm(r.comment.guid))}),e.EFF(1),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_comments_write_answer"))}}function Tm(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"app-user-comment-form",36),e.bIt("replyAdded",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.onReplyAdded(r.comment.guid))})("cancelClicked",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleRepliesCommentForm(r.comment.guid))}),e.EFF(2,">"),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("parentGuid",n.comment.guid)("articleId",n.dataId)}}function ju(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",22)(1,"button",37),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleReplies(r.comment))}),e.nrm(2,"i",38),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("authorizedClickSource","NewComment"),e.BMQ("aria-expanded",n.showReplies),e.R7$(),e.Y8G("ngClass",n.showReplies?"icon-caret-up":"icon-caret-down"),e.R7$(),e.Lme(" (",(null==n.comment.childAssets?null:n.comment.childAssets.length)||0,") ",n.scope.currentScope.network.getResourceOrKeyName("web_comments_answers")," ")}}function _f(o,t){if(1&o){const n=e.RV6();e.j41(0,"li",38)(1,"app-comment",40),e.bIt("reportComment",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.reportComment.emit(r))}),e.k0s()()}if(2&o){const n=t.$implicit;e.Y8G("ngClass",e.eq3(3,Uu,n.pending)),e.R7$(),e.Y8G("comment",n)("dataId",n.articleId)}}function gg(o,t){if(1&o&&(e.j41(0,"div",23)(1,"ul",39),e.Z7z(2,_f,2,5,"li",38,e.fX1),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(2),e.Dyx(n.comment.childAssets)}}function fg(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",2)(1,"div",5),e.nVh(2,gt,4,2,"div",6),e.nI1(3,"createAvatar"),e.k0s(),e.j41(4,"div",7)(5,"div",8)(6,"div",9),e.bIt("click",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.openProfile(r,l.comment.user.guid))})("keydown.enter",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.openProfile(r,l.comment.user.guid))})("keydown.space",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.openProfile(r,l.comment.user.guid))}),e.j41(7,"div",10),e.EFF(8),e.k0s(),e.nVh(9,un,1,0,"i",11),e.k0s(),e.nrm(10,"div",12),e.nI1(11,"relativeDate"),e.k0s(),e.nVh(12,to,3,2,"div"),e.nVh(13,Ds,2,1,"div"),e.nVh(14,Qr,6,7,"div"),e.nVh(15,Zr,3,2,"div"),e.nVh(16,cc,3,3,"div"),e.nVh(17,Cp,5,6,"div"),e.nVh(18,yp,5,6,"div"),e.j41(19,"div",13)(20,"ul",14)(21,"li",15),e.nrm(22,"app-oha",16),e.k0s(),e.j41(23,"li",17),e.nVh(24,Dm,2,1,"button",18),e.k0s(),e.j41(25,"li",19)(26,"div",20)(27,"dx-drop-down-button",21),e.bIt("onItemClick",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.commentMenuItemClick(r.itemData.iconType))})("onContentReady",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.fixAriaLabel(r))}),e.k0s()()()(),e.nVh(28,Tm,3,2,"div"),e.nVh(29,ju,4,5,"div",22),e.k0s(),e.nVh(30,gg,4,0,"div",23),e.k0s()()}if(2&o){let n;const s=e.XpG();e.R7$(2),e.vxM((n=e.bMT(3,24,s.comment.user))?2:-1,n),e.R7$(6),e.Lme("",s.comment.user.firstName," ",s.comment.user.lastName),e.R7$(),e.vxM(s.scope.currentChapter.settings.configurations.enableVerifiedUsers&&(null!=s.comment.assetImage&&s.comment.assetImage.user.isVerifiedUser||null!=s.comment.assetText&&s.comment.assetText.user.isVerifiedUser)?9:-1),e.R7$(),e.Y8G("innerHTML",e.bMT(11,26,s.comment.created),e.npT),e.R7$(2),e.vxM(s.comment.assetImage?12:-1),e.R7$(),e.vxM(s.comment.assetText&&0===s.comment.assetText.type?13:-1),e.R7$(),e.vxM(s.comment.assetText&&5===s.comment.assetText.type?14:-1),e.R7$(),e.vxM(s.comment.assetText&&10===s.comment.assetText.type?15:-1),e.R7$(),e.vxM(s.comment.assetText&&13===s.comment.assetText.type?16:-1),e.R7$(),e.vxM(s.comment.assetText&&7===s.comment.assetText.type?17:-1),e.R7$(),e.vxM(s.comment.assetText&&6===s.comment.assetText.type?18:-1),e.R7$(4),e.Y8G("assetReference",s.comment)("size","sm"),e.R7$(2),e.vxM(s.comment.parentGuid?-1:24),e.R7$(3),e.Y8G("dropDownOptions",e.lJ4(28,Ed))("items",s.commentMenu)("showArrowIcon",!1)("useItemTextAsTitle",!1)("hint",s.scope.currentScope.network.getResourceOrKeyName("web_comment_options"))("elementAttr",e.eq3(29,$u,s.scope.currentScope.network.getResourceOrKeyName("web_comment_options"))),e.R7$(),e.vxM(s.showCommentForm[s.comment.guid]?28:-1),e.R7$(),e.vxM(!s.comment.parentGuid&&(null==s.comment.childAssets?null:s.comment.childAssets.length)>0?29:-1),e.R7$(),e.vxM(s.showReplies?30:-1)}}let mg=(()=>{var o;class t{constructor(s,r,l,E){this.commentService=s,this.scopeService=r,this.hybridRouteTrackingService=l,this.deviceInfoService=E,this.reportComment=new e.bkB,this.showCommentForm={},this.showReplies=!1,this.parentGuid=null,this.imageViewerOpen=!1,this.isTroll=!1,this.isMerkuristJournalist=!1,this.inactive=!1,this.canDelete=!1,this.showDeleteDialog=!1,this.isMobile=!1,this.commentMenu=[],this.scope=this.scopeService.getScope(),this.profile=this.scope.profile,this.isMobile=this.deviceInfoService.getUserAgentInfo().isMobile}ngOnInit(){this.comment.assetText&&(this.commentType=bn.SingleCommend),this.comment.assetImage&&(this.commentType=bn.Image,this.currentImage=this.comment.assetImage),null!==this.comment.parentGuid&&(this.parentGuid=this.comment.parentGuid),this.isTroll=!!this.comment.user.troll,this.isMerkuristJournalist=this.profile.chapterRoles?.includes(co.MerkuristJournalist),this.inactive=this.isTroll&&!this.isMerkuristJournalist,this.canDelete=this.profile.guid==this.comment.user.guid||this.isMerkuristJournalist,this.commentMenu.push({icon:"fa-regular fa-flag",text:this.scope.currentScope.network.resources.web_chat_message_report,iconType:Gu.Report}),this.canDelete&&this.commentMenu.push({icon:"fa-regular fa-trash-can",text:this.scope.currentScope.network.resources.web_common_delete,iconType:Gu.Delete})}fixAriaLabel(s){const r=s.element;let l=r.querySelector(".dx-dropdownbutton-action.dx-button");l||(l=r.querySelector('.dx-buttongroup [role="button"]')),l&&l.setAttribute("aria-label",this.scope.currentScope.network.getResourceOrKeyName("web_comment_options"))}toggleRepliesCommentForm(s){void 0!==s&&(this.showCommentForm[s]=!this.showCommentForm[s])}deleteComment(){void 0!==this.comment.guid&&null==this.parentGuid&&this.commentService.deleteComment(this.comment.guid)}toggleReplies(s){this.showReplies=!this.showReplies}likeComment(s){void 0!==s&&this.commentService.likeComment(s)}commentMenuItemClick(s){switch(s){case Gu.Report:this.reportComment.emit(this.comment);break;case Gu.Delete:this.showDeleteDialog=!0}}onDeleteConfirmed(){this.deleteComment(),this.showDeleteDialog=!1}onCancelDelete(){this.showDeleteDialog=!1}openImageViewer(s){this.imageViewerOpen=!0}closeImageViewer(){this.imageViewerOpen=!1}openProfile(s,r){this.hybridRouteTrackingService.switchState("app.public-profile",{id:r})}onReplyAdded(s){this.showReplies=!0,this.toggleRepliesCommentForm(s)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Hi),e.rXU(Se.A),e.rXU(Ko.o),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-comment"]],viewQuery:function(r,l){if(1&r&&e.GBs(Po.h,5),2&r){let E;e.mGM(E=e.lsd())&&(l.dropDownButton=E.first)}},inputs:{comment:"comment",dataId:"dataId"},outputs:{reportComment:"reportComment"},standalone:!1,decls:4,vars:10,consts:[["contentContainer",""],[1,"comment",3,"ngClass"],[1,"row","user-comments-row-wrapper"],[3,"imageViewerOpenChange","imageViewerOpen","images"],[3,"deleteConfirmed","cancelConfirmed","isPopupVisible"],[1,"col-2","col-md-1","d-flex","flex-column","user-comments-avatar-wrapper"],[1,"user-commments-avatar-content"],[1,"col-sm-11"],[1,"comment-header"],["tabindex","0",1,"text-decoration-none","d-flex",3,"click","keydown.enter","keydown.space"],[1,"comment-author"],[1,"fas","fa-check-square","verified-icon"],[1,"comment-timestamp",3,"innerHTML"],[1,"comment-actions"],[1,"row","mb-3","comment-actions-list"],[1,"col-2","col-md-2","col-lg-2"],[3,"assetReference","size"],[1,"col-8","col-md-8","col-lg-8","comment-write-answer"],["tabindex","0",1,"focus-class"],[1,"col-2","col-md-2","col-lg-2","d-flex","align-items-center","justify-content-end"],[1,"float-end"],["text","","icon","overflow","stylingMode","text","type","normal",3,"onItemClick","onContentReady","dropDownOptions","items","showArrowIcon","useItemTextAsTitle","hint","elementAttr"],[1,"comment-show-answers"],[1,"replies"],[1,"text-decoration-none",3,"click"],[1,"avatar",3,"src","alt"],[1,"avatar-initials"],[1,"comment-content",3,"linkify"],["alt","","loading","lazy",1,"comment-image","img-fluid",3,"click","src"],[1,"comment-content"],["target","_blank",3,"href"],[1,"img-fluid",3,"lazy-img"],["alt","",1,"",3,"src"],[3,"src"],["target","_blank",1,"media-gallery-item-video",3,"href"],["tabindex","0",1,"focus-class",3,"click"],[3,"replyAdded","cancelClicked","parentGuid","articleId"],["tabindex","0","appAuthorizedClick","",1,"focus-class",3,"click","authorizedClickSource"],[3,"ngClass"],[1,"user-comment-replies-list-wrapper"],[3,"reportComment","comment","dataId"]],template:function(r,l){1&r&&(e.j41(0,"div",1),e.nVh(1,fg,31,31,"div",2),e.k0s(),e.j41(2,"app-image-viewer",3),e.mxI("imageViewerOpenChange",function(N){return e.DH7(l.imageViewerOpen,N)||(l.imageViewerOpen=N),N}),e.k0s(),e.j41(3,"app-delete-dialog",4),e.bIt("deleteConfirmed",function(){return l.onDeleteConfirmed()})("cancelConfirmed",function(){return l.onCancelDelete()}),e.k0s()),2&r&&(e.Y8G("ngClass",e.l_i(5,iu,l.comment.assetImage&&!l.comment.assetImage.released||l.comment.assetText&&!l.comment.assetText.released,l.isTroll&&l.profile.isMerkuristJournalist)),e.R7$(),e.vxM(l.comment?1:-1),e.R7$(),e.R50("imageViewerOpen",l.imageViewerOpen),e.Y8G("images",e.eq3(8,Hu,l.currentImage)),e.R7$(),e.Y8G("isPopupVisible",l.showDeleteDialog))},dependencies:[C.YU,Po.h,Ft.B,Fe,bi,Mc,t,vd.L,Sl,Hl,_p,C.Jj,Fo,Tl,$l,vp,Yr,Pc,Vu,nu,xd,Ul,ta._],styles:[".comment[_ngcontent-%COMP%]{margin-top:2rem}.comment[_ngcontent-%COMP%]   .user-comments-row-wrapper[_ngcontent-%COMP%]{padding-left:0rem}.comment[_ngcontent-%COMP%]   .user-comments-avatar-wrapper[_ngcontent-%COMP%]{align-items:unset}.comment[_ngcontent-%COMP%]   .user-commments-avatar-content[_ngcontent-%COMP%]{cursor:pointer}.comment[_ngcontent-%COMP%]   .focus-class[_ngcontent-%COMP%]:focus{outline:2px solid var(--textColor)}.comment[_ngcontent-%COMP%]   .comment-image[_ngcontent-%COMP%]{width:70%;aspect-ratio:4/3;object-fit:cover}.comment[_ngcontent-%COMP%]   .comment-header[_ngcontent-%COMP%]{display:flex;align-items:baseline;margin-bottom:5px}.comment[_ngcontent-%COMP%]   .comment-author[_ngcontent-%COMP%]{font-weight:700;font-size:1.4rem;word-break:break-word;cursor:pointer}.comment[_ngcontent-%COMP%]   .comment-author[_ngcontent-%COMP%]:hover{text-decoration:underline}.comment[_ngcontent-%COMP%]   .comment-timestamp[_ngcontent-%COMP%]{font-size:1.1rem;color:#666;white-space:normal;margin-left:.8rem}.comment[_ngcontent-%COMP%]   .comment-content[_ngcontent-%COMP%]{margin-bottom:.8rem;flex:1;font-size:1.5rem;font-family:var(--fontPrimary);color:var(--textColor);word-break:break-word}.comment[_ngcontent-%COMP%]   .comment-actions[_ngcontent-%COMP%]{margin-top:1rem}.comment[_ngcontent-%COMP%]   .comment-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background:none;border:none;color:var(--textColor);font-weight:700;cursor:pointer;padding:0;margin-right:1rem}.comment[_ngcontent-%COMP%]   .comment-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{text-decoration:underline}.comment[_ngcontent-%COMP%]   .comment-actions-list[_ngcontent-%COMP%]{list-style:none;padding-left:0}.comment[_ngcontent-%COMP%]   .replies[_ngcontent-%COMP%]{margin-top:.8rem}.comment[_ngcontent-%COMP%]   .user-comment-replies-list-wrapper[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}.comment[_ngcontent-%COMP%]   .pending-reply[_ngcontent-%COMP%]{background-color:var(--textColor10);border-radius:7px;padding-top:10px;padding-left:10px;margin-bottom:10px}.comment[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:4rem;height:4rem;border-radius:50%;display:block}.comment[_ngcontent-%COMP%]   .avatar-initials[_ngcontent-%COMP%]{width:4rem;height:4rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;background-color:#ccc;color:var(--textColor);font-size:1.5rem}.comment[_ngcontent-%COMP%]   .comment-like-button[_ngcontent-%COMP%]{background:none;border:none;color:#007bff;cursor:pointer;padding:0;margin-top:.3rem}.comment[_ngcontent-%COMP%]   .comment-oha[_ngcontent-%COMP%]{width:2rem;height:2rem}.comment[_ngcontent-%COMP%]   .verified-icon[_ngcontent-%COMP%]{margin-left:.3rem}.comment[_ngcontent-%COMP%]   .comment-show-answers[_ngcontent-%COMP%]{margin-top:.5rem;margin-left:2rem}@media (max-width: 768px){.comment[_ngcontent-%COMP%]   .comment-show-answers[_ngcontent-%COMP%]{margin-bottom:1rem}}.comment[_ngcontent-%COMP%]   .comment-write-answer[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.comment-unreleased[_ngcontent-%COMP%]{opacity:.25}.comment-troll[_ngcontent-%COMP%]{color:red}.comment-troll[_ngcontent-%COMP%]   .comment-content[_ngcontent-%COMP%], .comment-troll[_ngcontent-%COMP%]   .comment-image[_ngcontent-%COMP%]{opacity:.25}@media (max-width: 992px){.comment[_ngcontent-%COMP%]   .user-comments-row-wrapper[_ngcontent-%COMP%]{padding-left:15px;padding-right:15px}}@media (max-width: 768px){.comment-actions-list[_ngcontent-%COMP%]{list-style:none;padding-left:0;align-items:center}.comment[_ngcontent-%COMP%]{margin-top:0rem}.comment[_ngcontent-%COMP%]   .comment-content[_ngcontent-%COMP%]{font-size:1.2rem}.comment[_ngcontent-%COMP%]   .user-comments-row-wrapper[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:.5rem}.comment[_ngcontent-%COMP%]   .comment-author[_ngcontent-%COMP%]{font-weight:700;font-size:1rem}.comment[_ngcontent-%COMP%]   .comment-timestamp[_ngcontent-%COMP%]{font-size:.8rem;color:var(--textColor60);margin-left:.5rem}.comment[_ngcontent-%COMP%]   .col-sm-1[_ngcontent-%COMP%]{max-width:50px;flex:0 0 50px}.comment[_ngcontent-%COMP%]   .col-sm-11[_ngcontent-%COMP%]{flex:1;padding-left:0;min-width:10%}.comment[_ngcontent-%COMP%]   .comment-image[_ngcontent-%COMP%]{max-width:80%}.comment[_ngcontent-%COMP%]   .user-comments-avatar-wrapper[_ngcontent-%COMP%]{align-items:center}.comment[_ngcontent-%COMP%]   .comment-show-answers[_ngcontent-%COMP%]{margin-top:.5rem;margin-left:1rem}.comment[_ngcontent-%COMP%]   .comment-show-answers[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:1rem;height:1.75rem}.comment[_ngcontent-%COMP%]   .replies[_ngcontent-%COMP%]     .avatar{width:2.5rem;height:2.5rem}.comment[_ngcontent-%COMP%]   .pending-reply[_ngcontent-%COMP%]{background-color:var(--textColor10);border-radius:7px;padding-top:10px;margin-bottom:10px}.comment[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:3.2rem;height:3.2rem;border-radius:50%;display:block;margin-right:.5rem}.comment[_ngcontent-%COMP%]   .avatar-initials[_ngcontent-%COMP%]{width:3.2rem;height:3.2rem;border-radius:50%;display:flex;margin-right:.5rem}.comment[_ngcontent-%COMP%]   .verified-icon[_ngcontent-%COMP%]{font-size:.8rem}.comment-content[_ngcontent-%COMP%]{margin-bottom:10px;flex:1}.comment-actions[_ngcontent-%COMP%]{flex-direction:row;justify-content:flex-start}.comment-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:.8rem;margin-left:.5rem}}"]}))}return o(),t})();var Gu=function(o){return o[o.Report=0]="Report",o[o.Edit=1]="Edit",o[o.Delete=2]="Delete",o}(Gu||{}),Al=p(1197);function Wu(o,t){if(1&o&&(e.j41(0,"div",3),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_report_error")," ")}}function su(o,t){1&o&&e.nrm(0,"i",6)}let _g=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.assetService=r,this.close=new e.bkB,this.isMobile=!1,this.working=!1,this.error=!1,this.isModalOpen=!0,this.reportType=null,this.reportReasons=[],this.scope=this.scopeService.getScope()}ngOnInit(){this.reportReasons=[{text:this.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_report_copyright"),value:0},{text:this.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_report_spam"),value:1},{text:this.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_report_inappropriate"),value:2}]}reportAsset(){this.working=!0,this.assetService.report(this.comment,this.reportType.value.toString()).subscribe({next:()=>{this.working=!1,this.closeDialog()},error:s=>{this.working=!1,this.error=!0,console.error("Error reporting asset",s)}})}open(){this.resetModal(),this.isModalOpen=!0}closeDialog(){this.resetModal(),this.close.emit()}resetModal(){this.working=!1,this.error=!1,this.reportType=null}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(yi))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-report-dialog"]],inputs:{comment:"comment"},outputs:{close:"close"},standalone:!1,decls:16,vars:17,consts:[[3,"visibleChange","onHidden","visible","width","height","showCloseButton","title","focusStateEnabled"],["layout","vertical",3,"valueChange","value","items"],[1,"info-text"],[1,"alert","alert-danger"],[1,"action-container"],["type","default","stylingMode","contained",3,"onClick","disabled"],[1,"fa","fa-spinner","fa-pulse"],["type","normal","stylingMode","outlined",3,"onClick"]],template:function(r,l){1&r&&(e.j41(0,"dx-popup",0),e.mxI("visibleChange",function(N){return e.DH7(l.isModalOpen,N)||(l.isModalOpen=N),N}),e.bIt("onHidden",function(){return l.closeDialog()}),e.j41(1,"div")(2,"p"),e.EFF(3),e.k0s(),e.j41(4,"p"),e.EFF(5),e.k0s(),e.j41(6,"dx-radio-group",1),e.mxI("valueChange",function(N){return e.DH7(l.reportType,N)||(l.reportType=N),N}),e.k0s(),e.j41(7,"p",2),e.EFF(8),e.k0s(),e.nVh(9,Wu,2,1,"div",3),e.j41(10,"div",4)(11,"dx-button",5),e.bIt("onClick",function(){return l.reportAsset()}),e.nVh(12,su,1,0,"i",6),e.EFF(13),e.k0s(),e.j41(14,"dx-button",7),e.bIt("onClick",function(){return l.closeDialog()}),e.EFF(15),e.k0s()()()()),2&r&&(e.Y8G("title",e.mNQ(l.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_report_title"))),e.R50("visible",l.isModalOpen),e.Y8G("width","auto")("height","auto")("showCloseButton",!0)("focusStateEnabled",!0),e.R7$(3),e.JRh(l.scope.currentScope.network.resources.web_assetDialog_report_intro_0),e.R7$(2),e.JRh(l.scope.currentScope.network.resources.web_assetDialog_report_intro_1),e.R7$(),e.R50("value",l.reportType),e.Y8G("items",l.reportReasons),e.R7$(2),e.SpI(" ",l.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_report_footer")," "),e.R7$(),e.vxM(l.error?9:-1),e.R7$(2),e.Y8G("disabled",l.working||-1==l.reportType),e.R7$(),e.vxM(l.working?12:-1),e.R7$(),e.SpI(" ",l.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_report")," "),e.R7$(2),e.SpI(" ",l.scope.currentScope.network.getResourceOrKeyName("web_common_cancel")," "))},dependencies:[Gn.e,en.i,Al.s],styles:[".action-container[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:1rem}@media (max-width: 768px){.modal-header[_ngcontent-%COMP%]{width:94.6%}}  .dx-radiogroup{font-size:18px;line-height:1.5}  .dx-radiogroup .dx-item-content{padding:10px 5px}  .dx-radiogroup .dx-radiobutton-icon{width:24px;height:24px;margin-right:8px}  .dx-radiogroup .dx-radiobutton-icon:before{font-size:24px}"]}))}return o(),t})();function bp(o,t){if(1&o){const n=e.RV6();e.j41(0,"li")(1,"app-comment",5),e.bIt("reportComment",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.openReportDialog(r))}),e.k0s()()}if(2&o){const n=t.$implicit,s=e.XpG();e.R7$(),e.Y8G("comment",n)("dataId",s.data.id.toString())}}function xp(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",6),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.loadMoreComments())}),e.EFF(1),e.k0s()}if(2&o){const n=e.XpG();e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_comments_load_more_comments"))}}function ru(o,t){if(1&o){const n=e.RV6();e.j41(0,"app-report-dialog",7),e.bIt("close",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.closeReportDialog())}),e.k0s()}if(2&o){const n=e.XpG();e.Y8G("comment",n.selectedCommentForReport)}}let zu=(()=>{var o;class t{constructor(s,r){this.commentService=s,this.scopeService=r,this.displayCount=5,this.expandedCommentCount=0,this.subscriptions=[],this.selectedCommentForReport=null,this.showReportDialog=!1,this.scope=this.scopeService.getScope()}ngOnInit(){this.loadComments()}loadComments(){this.subscriptions.push(this.commentService.comments$.subscribe(s=>{this.comments=s,this.displayedComments=this.comments.slice(0,this.displayCount+this.expandedCommentCount)})),this.commentService.getComments(this.data)}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}loadMoreComments(){const s=this.comments.slice(this.displayedComments.length,this.displayedComments.length+this.displayCount);this.displayedComments.push(...s),this.expandedCommentCount+=s.length}openReportDialog(s){this.selectedCommentForReport=s,this.showReportDialog=!0}closeReportDialog(){this.selectedCommentForReport=null,this.showReportDialog=!1}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Hi),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-user-comments-list"]],inputs:{data:"data"},standalone:!1,decls:8,vars:2,consts:[["templateContainer",""],[1,"user-comments-list-wrapper"],[1,"d-flex","justify-content-center","show-more-button"],[1,""],[3,"comment"],[3,"reportComment","comment","dataId"],[1,"",3,"click"],[3,"close","comment"]],template:function(r,l){1&r&&(e.j41(0,"div",null,0)(2,"ul",1),e.Z7z(3,bp,2,2,"li",null,e.fX1),e.k0s(),e.j41(5,"div",2),e.nVh(6,xp,2,1,"dx-button",3),e.k0s(),e.nVh(7,ru,1,1,"app-report-dialog",4),e.k0s()),2&r&&(e.R7$(3),e.Dyx(l.displayedComments),e.R7$(3),e.vxM(l.displayedComments.length<l.comments.length?6:-1),e.R7$(),e.vxM(l.showReportDialog?7:-1))},dependencies:[Gn.e,mg,_g],styles:[".user-comments-list-wrapper[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}.show-more-comments-button[_ngcontent-%COMP%]{align-content:center;display:block;margin:auto auto 60px;padding-top:30px;clear:both;color:var(--textColor);font-weight:600;font-size:1.8rem}"]}))}return o(),t})(),Ku=(()=>{var o;class t{constructor(){this.assetReferences=new qt.t([]),this.assetReferences$=this.assetReferences.asObservable()}getMediaGalleryItems(s){const r=s.filter(l=>null===l.assetArticle&&(null===l.assetText||0!==l.assetText.type&&8!==l.assetText.type&&9!==l.assetText.type&&11!==l.assetText.type&&14!==l.assetText.type&&15!==l.assetText.type));this.assetReferences.next(r)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();var au=function(o){return o[o.Text=0]="Text",o[o.Image=2]="Image",o[o.Twitter=4]="Twitter",o[o.YouTube=5]="YouTube",o[o.Facebook=6]="Facebook",o[o.Vimeo=7]="Vimeo",o[o.Fact=8]="Fact",o[o.Question=9]="Question",o[o.Gif=10]="Gif",o[o.Article=11]="Article",o[o.File=12]="File",o[o.ApicodoMediaServices=13]="ApicodoMediaServices",o[o.Workflow=14]="Workflow",o[o.StaticArticle=15]="StaticArticle",o}(au||{}),vf=p(275);function Th(o,t){if(1&o&&e.nrm(0,"img",9),2&o){const n=e.XpG(),s=e.XpG();e.Y8G("src",n.avatarUrl,e.B4B)("alt","")("ngClass",s.inSnipView?"avatar-img-small me-2":"avatar-img me-2")}}function jl(o,t){if(1&o&&(e.j41(0,"div",10),e.EFF(1),e.k0s()),2&o){const n=e.XpG(),s=e.XpG();e.Y8G("ngClass",s.inSnipView?"avatar-initials-small me-2":"avatar-initials me-2"),e.R7$(),e.JRh(n.initials)}}function Xu(o,t){if(1&o&&(e.j41(0,"div",3),e.nVh(1,Th,1,3,"img",9),e.nVh(2,jl,2,2,"div",10),e.k0s()),2&o){const n=t;e.R7$(),e.vxM(n.avatarUrl?1:-1),e.R7$(),e.vxM(n.useInitials?2:-1)}}function lu(o,t){if(1&o&&(e.j41(0,"span",5),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_userBadge_origin_1"))}}function Ta(o,t){1&o&&e.nrm(0,"i",8)}let cu=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.hybridRouteTrackingService=r,this.profileService=l,this.inSnipView=!1,this.avatarImageUrl="",this.useInitials=!1,this.currentUser=null,this.closeDrawerEvent=new e.bkB,this.scope=s.getScope(),this.currentUser=this.scope.profile,this.profilServiceSubscription=this.profileService.profileChanged$.subscribe(E=>{this.currentUser=E})}ngOnInit(){this.user?.userGuid&&(this.user.guid=this.user.userGuid),this.showVerifiedUser=this.user?.isVerifiedUser}openProfile(s){s.preventDefault(),this.user?.guid==this.currentUser?.guid?this.hybridRouteTrackingService.switchState("app.my-profile",null):this.hybridRouteTrackingService.switchState("app.public-profile",{id:this.user?.guid}),this.closeDrawerEvent.emit()}openPrivateProfile(s){s.preventDefault()}getUserInitials(){return`${this.user?.firstName[0]||""}${this.user?.lastName[0]||""}`.toUpperCase()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ko.o),e.rXU($n.p))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-user-badge-simple"]],inputs:{data:"data",user:"user",author:"author",inSnipView:"inSnipView"},outputs:{closeDrawerEvent:"closeDrawerEvent"},standalone:!1,decls:11,vars:9,consts:[["appAuthorizedClick","",1,"align-items-center","avatar-container"],[1,"custom-link",3,"click","href"],[1,"d-flex","align-items-center"],[1,"user-badge-avatar-wrapper-snips"],[1,"user-badge-username-wrapper"],[1,"avatar-text","mr-1"],[1,"avatar-text"],[1,"user-badge-verified-icon-wrapper"],["aria-hidden","true",1,"fas","fa-check-square","verified-icon"],[3,"src","alt","ngClass"],[3,"ngClass"]],template:function(r,l){if(1&r&&(e.j41(0,"div",0)(1,"a",1),e.bIt("click",function(N){return l.openProfile(N)}),e.j41(2,"div",2),e.nVh(3,Xu,3,2,"div",3),e.nI1(4,"createAvatar"),e.j41(5,"div",4),e.nVh(6,lu,2,1,"span",5),e.j41(7,"span",6),e.EFF(8),e.k0s()(),e.j41(9,"div",7),e.nVh(10,Ta,1,0,"i",8),e.k0s()()()()),2&r){let E;e.R7$(),e.Y8G("href",e.VkB("/profile/",l.user.guid),e.B4B),e.R7$(2),e.vxM((E=e.bMT(4,7,l.user))?3:-1,E),e.R7$(3),e.vxM(l.author?6:-1),e.R7$(2),e.Lme("",l.user.firstName," ",l.user.lastName),e.R7$(2),e.vxM(l.scope.currentChapter.settings.configurations.enableVerifiedUsers&&l.showVerifiedUser?10:-1)}},dependencies:[C.YU,Ft.B,ta._],styles:[".avatar-container[_ngcontent-%COMP%]{align-items:center;margin-left:0rem}.avatar-container[_ngcontent-%COMP%]:hover   .avatar-text[_ngcontent-%COMP%]{text-decoration:underline}.avatar-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--textColor)}.avatar-container[_ngcontent-%COMP%]   .avatar-img[_ngcontent-%COMP%], .avatar-container[_ngcontent-%COMP%]   .avatar-initials[_ngcontent-%COMP%]{width:4rem;height:4rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700}.avatar-container[_ngcontent-%COMP%]   .avatar-img-small[_ngcontent-%COMP%], .avatar-container[_ngcontent-%COMP%]   .avatar-initials-small[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700}.avatar-container[_ngcontent-%COMP%]   .avatar-img[_ngcontent-%COMP%], .avatar-container[_ngcontent-%COMP%]   .avatar-img-small[_ngcontent-%COMP%]{background-size:cover;background-position:center}.avatar-container[_ngcontent-%COMP%]   .avatar-initials[_ngcontent-%COMP%]{background-color:#ccc;color:var(--textColor);font-size:1.5rem}.avatar-container[_ngcontent-%COMP%]   .avatar-initials-small[_ngcontent-%COMP%]{background-color:#ccc;color:var(--textColor);font-size:1rem}.avatar-container[_ngcontent-%COMP%]   .user-badge-avatar-wrapper[_ngcontent-%COMP%]{min-width:50px;max-width:50px;margin-right:.5rem}.avatar-container[_ngcontent-%COMP%]   .user-badge-username-wrapper[_ngcontent-%COMP%]{padding:0;min-width:10%;line-height:0}.avatar-container[_ngcontent-%COMP%]   .user-badge-verified-icon-wrapper[_ngcontent-%COMP%]{min-width:15px;max-width:15px}.avatar-container[_ngcontent-%COMP%]   .verified-icon[_ngcontent-%COMP%]{transform:translateY(-25%);margin-left:.5rem;font-size:.8rem}.avatar-container[_ngcontent-%COMP%]   .custom-link[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;font-weight:600;display:block;color:var(--textColor)!important}.avatar-container[_ngcontent-%COMP%]   .custom-link[_ngcontent-%COMP%]:hover, .avatar-container[_ngcontent-%COMP%]   .custom-link[_ngcontent-%COMP%]:focus{text-decoration:underline}.avatar-container[_ngcontent-%COMP%]   .align-text-middle[_ngcontent-%COMP%]{transform:translateY(20%)}.avatar-container[_ngcontent-%COMP%]   .avatar-text[_ngcontent-%COMP%]{display:-webkit-inline-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;line-height:1.5;max-height:3rem;-webkit-line-clamp:1;max-width:100%;word-break:break-all}"]}))}return o(),t})();function Pa(o,t){if(1&o&&(e.j41(0,"div",3)(1,"span"),e.EFF(2),e.nI1(3,"youtubeTitle"),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,1,n.assetReference.text))}}function Yu(o,t){if(1&o&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"youtubeWatch"),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.assetReference.text?e.bMT(2,1,n.assetReference.text):""," ")}}function Ah(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,Pa,4,3,"div",3)(2,Yu,3,3,"span"),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.assetReference.text&&n.assetReference.text.includes("||")?1:2)}}function vg(o,t){if(1&o&&(e.j41(0,"div",3),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.assetReference.text," ")}}let Qu=(()=>{var o;class t{ngOnInit(){}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-media-gallery-item-detail"]],inputs:{assetReference:"assetReference"},standalone:!1,decls:9,vars:3,consts:[[1,"simple-user-badge"],[3,"user"],[1,"media-gallery-item-details-container"],[1,"media-gallery-item-details-description"],[1,"text-center","media-gallery-item-details-show-more"],[1,"btn","btn-link","p-0","fw-bold","text-decoration-none","text-uppercase"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nrm(1,"app-user-badge-simple",1),e.j41(2,"div",2)(3,"div",3),e.nVh(4,Ah,3,1,"div"),e.k0s(),e.nVh(5,vg,2,1,"div",3),e.j41(6,"div",4)(7,"button",5),e.EFF(8," Mehr Lesen "),e.k0s()()()()),2&r&&(e.R7$(),e.Y8G("user",l.assetReference.user),e.R7$(3),e.vxM(5===l.assetReference.type?4:-1),e.R7$(),e.vxM(5!==l.assetReference.type?5:-1))},dependencies:[cu,$l,Yr],styles:[".simple-user-badge[_ngcontent-%COMP%]{margin-left:1rem;margin-top:.8rem}.simple-user-badge[_ngcontent-%COMP%]   .media-gallery-item-details-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;height:6rem}.simple-user-badge[_ngcontent-%COMP%]   .media-gallery-item-details-container[_ngcontent-%COMP%]   .media-gallery-item-details-description[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.simple-user-badge[_ngcontent-%COMP%]   .media-gallery-item-details-container[_ngcontent-%COMP%]   .media-gallery-item-details-show-more[_ngcontent-%COMP%]{margin-top:auto;padding-top:.5rem}"]}))}return o(),t})(),Ih=(()=>{var o;class t{constructor(s,r,l){this.sanitizer=s,this.apicodoMediaService=r,this.authService=l,this.isVerticalVideo=!0}ngOnInit(){this.videoId=this.assetReference.text,this.loadVideo()}loadVideo(){this.videoId?this.apicodoMediaService.getConnectionData(this.originNetworkSlug).then(s=>{this.videoUrl=this.getVideoUrl(this.videoId,s.token),this.apicodoMediaService.getVideoData(this.videoId,this.originNetworkSlug).then(r=>{try{const l=r.metaData.assetMetadata.assetFile[0].videoTracks[0],E=l.height,N=l.width,ae=l.metadata.some(ze=>"rotate"===ze.key);this.isVerticalVideo=ae||E>N,console.log(`${E}x${N}`,ae?"rotation":"no rotation")}catch{console.error("ERROR META ROTATION",r)}}).catch(r=>{console.error("Error loading video data:",r)})}).catch(s=>{console.error("Error loading video connection data:",s)}):console.error("No video id found")}getVideoUrl(s,r){return this.sanitizer.bypassSecurityTrustResourceUrl(`${this.authService.mediaApiBase.url}/play/${s}?guiMode=iframe&token=${r}&platform=external`)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Oo.up),e.rXU(vf.P),e.rXU(Da.u))},this.\u0275cmp=e.VBU({type:t,selectors:[["apicodo-media-play"]],inputs:{videoId:"videoId",originNetworkSlug:"originNetworkSlug",assetReference:"assetReference"},standalone:!1,decls:12,vars:2,consts:[["id","mediaModal","tabindex","-1","aria-labelledby","apicodoMediaPlayModalLabel","aria-hidden","true",1,"modal","fade","apicodo-media-play-modal"],[1,"modal-dialog","modal-dialog-centered","modal-fullscreen","modal-lg"],[1,"modal-content"],[1,"modal-header"],["id","apicodoMediaPlayModalLabel",1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close"],[1,"modal-body"],[1,"modal-conatainer"],["frameborder","0","allowfullscreen","",1,"apicodo-media-play-iframe",3,"src"],[1,"apicodo-media-play-detail"],[3,"assetReference"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),e.EFF(5,"Media Player"),e.k0s(),e.nrm(6,"button",5),e.k0s(),e.j41(7,"div",6)(8,"div",7),e.nrm(9,"iframe",8),e.j41(10,"div",9),e.nrm(11,"app-media-gallery-item-detail",10),e.k0s()()()()()()),2&r&&(e.R7$(9),e.Y8G("src",l.videoUrl,e.f$h),e.R7$(2),e.Y8G("assetReference",l.assetReference))},dependencies:[Qu],styles:[".apicodo-media-play-modal[_ngcontent-%COMP%]   .modal-content[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;overflow:hidden;width:100%;max-width:100%}.apicodo-media-play-modal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]{padding:0;background-color:#fff;display:flex;justify-content:center;align-items:center;width:100%;height:80%}.apicodo-media-play-iframe[_ngcontent-%COMP%]{width:60vw;height:60vh;border:none}.modal-dialog-centered[_ngcontent-%COMP%]{display:flex;align-items:center}.modal-lg[_ngcontent-%COMP%]{max-width:98%;max-height:88%}.modal-conatainer[_ngcontent-%COMP%]{display:block;justify-content:center}.apicodo-media-play-detail[_ngcontent-%COMP%]{display:flex;justify-content:center}"]}))}return o(),t})();const kc=["mediaModal"],Aa=(o,t,n)=>({"media-item-active":o,"media-item-unreleased":t,"media-item-troll":n});function Ep(o,t){if(1&o&&(e.qex(0),e.j41(1,"div",4)(2,"div",5)(3,"a",6),e.nrm(4,"i",7),e.k0s()()(),e.j41(5,"div",8),e.nrm(6,"app-media-gallery-item-detail",9),e.k0s(),e.bVm()),2&o){const n=e.XpG();e.R7$(3),e.Y8G("href",n.scope.currentChapter.path+"/file/"+n.mediaGalleryItem.assetFile.guid,e.B4B),e.R7$(3),e.Y8G("assetReference",n.mediaGalleryItem.assetFile)}}function Od(o,t){if(1&o&&(e.qex(0),e.j41(1,"div",10),e.nrm(2,"img",11),e.k0s(),e.j41(3,"div",8),e.nrm(4,"app-media-gallery-item-detail",9),e.k0s(),e.bVm()),2&o){const n=e.XpG();e.R7$(2),e.Y8G("lazy-img",n.mediaGalleryItem.assetImage.assetImageUrl+"?preset=asset-image-large&cache="+n.mediaGalleryItem.assetImage.cache),e.R7$(2),e.Y8G("assetReference",n.mediaGalleryItem.assetImage)}}function Gl(o,t){1&o&&e.eu8(0)}function Op(o,t){if(1&o&&(e.qex(0),e.j41(1,"div",10)(2,"a",6),e.nI1(3,"youtubeWatch"),e.nrm(4,"img",14),e.nI1(5,"youtubeImage"),e.j41(6,"div",15),e.nrm(7,"i",16),e.k0s()()(),e.j41(8,"div",8),e.nrm(9,"app-media-gallery-item-detail",9),e.k0s(),e.bVm()),2&o){const n=e.XpG().ngIf,s=e.XpG();e.R7$(2),e.Y8G("href",e.bMT(3,3,n.text),e.B4B),e.R7$(2),e.Y8G("lazy-img",e.bMT(5,5,n.text)),e.R7$(5),e.Y8G("assetReference",null==s.mediaGalleryItem?null:s.mediaGalleryItem.assetText)}}function Mh(o,t){if(1&o&&(e.qex(0),e.j41(1,"div",10)(2,"a",6),e.nI1(3,"facebookWatch"),e.nrm(4,"img",14),e.nI1(5,"facebookImage"),e.j41(6,"div",15),e.nrm(7,"i",16),e.k0s()()(),e.j41(8,"div",8),e.nrm(9,"app-media-gallery-item-detail",9),e.k0s(),e.bVm()),2&o){const n=e.XpG().ngIf,s=e.XpG();e.R7$(2),e.Y8G("href",e.bMT(3,3,n.text),e.B4B),e.R7$(2),e.Y8G("lazy-img",e.bMT(5,5,n.text)),e.R7$(5),e.Y8G("assetReference",null==s.mediaGalleryItem?null:s.mediaGalleryItem.assetText)}}function Cg(o,t){if(1&o&&(e.qex(0),e.j41(1,"div",10)(2,"a",17),e.nI1(3,"vimeoWatch"),e.nrm(4,"img",14),e.nI1(5,"vimeoImage"),e.j41(6,"div",15),e.nrm(7,"i",16),e.k0s()()(),e.j41(8,"div",8),e.nrm(9,"app-media-gallery-item-detail",9),e.k0s(),e.bVm()),2&o){const n=e.XpG().ngIf,s=e.XpG();e.R7$(2),e.Y8G("href",e.bMT(3,3,n.text),e.B4B),e.R7$(2),e.Y8G("lazy-img",e.bMT(5,5,n.text)),e.R7$(5),e.Y8G("assetReference",null==s.mediaGalleryItem?null:s.mediaGalleryItem.assetText)}}function Am(o,t){if(1&o&&(e.qex(0),e.j41(1,"div",10),e.nrm(2,"img",18),e.k0s(),e.j41(3,"div",8),e.nrm(4,"app-media-gallery-item-detail",9),e.k0s(),e.bVm()),2&o){const n=e.XpG().ngIf,s=e.XpG();e.R7$(2),e.Y8G("src",n.text,e.B4B),e.R7$(2),e.Y8G("assetReference",null==s.mediaGalleryItem?null:s.mediaGalleryItem.assetText)}}function Zu(o,t){if(1&o){const n=e.RV6();e.qex(0),e.j41(1,"div",19),e.bIt("click",function(){m.eBV(n);const r=e.XpG().ngIf,l=e.XpG();return m.Njj(l.openApicodoVideo(r.text))}),e.nrm(2,"img",20),e.nI1(3,"apicodoMediaServiceImage"),e.j41(4,"div",15),e.nrm(5,"i",16),e.k0s()(),e.j41(6,"div",8),e.nrm(7,"app-media-gallery-item-detail",9),e.k0s(),e.nrm(8,"apicodo-media-play",9,0),e.bVm()}if(2&o){const n=e.XpG().ngIf,s=e.XpG();e.R7$(2),e.Y8G("src",e.bMT(3,3,n.text),e.B4B),e.R7$(5),e.Y8G("assetReference",null==s.mediaGalleryItem?null:s.mediaGalleryItem.assetText),e.R7$(),e.Y8G("assetReference",null==s.mediaGalleryItem?null:s.mediaGalleryItem.assetText)}}function wp(o,t){if(1&o&&(e.qex(0,12),e.DNE(1,Gl,1,0,"ng-container",2)(2,Op,10,7,"ng-container",13)(3,Mh,10,7,"ng-container",13)(4,Cg,10,7,"ng-container",13)(5,Am,5,2,"ng-container",13)(6,Zu,10,5,"ng-container",13),e.bVm()),2&o){const n=t.ngIf,s=e.XpG();e.Y8G("ngSwitch",n.type),e.R7$(),e.Y8G("ngIf",s.showCookieInfo(s.mediaGalleryItem)),e.R7$(),e.Y8G("ngSwitchCase",5),e.R7$(),e.Y8G("ngSwitchCase",6),e.R7$(),e.Y8G("ngSwitchCase",7),e.R7$(),e.Y8G("ngSwitchCase",10),e.R7$(),e.Y8G("ngSwitchCase",13)}}let Sp=(()=>{var o;class t{constructor(){this.cookieManager=0,this.isBuiltInCookieManager=!1,this.isTroll=!1,this.isMerkuristJournalist=!1}ngOnInit(){this.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&(this.cookieManager=this.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),this.profile=this.scope.profile,this.isBuiltInCookieManager=1===this.cookieManager,this.isTroll=this.mediaGalleryItem.user.troll,this.isMerkuristJournalist=this.profile.chapterRoles.includes(co.MerkuristJournalist)}openApicodoVideo(s){this.mediaModal?(this.mediaModal.originNetworkSlug=this.originNetworkSlug??"",this.mediaModal.loadVideo(),new bootstrap.Modal(document.getElementById("mediaModal")).show()):console.error("Modal is not defined!")}showCookieInfo(s){if(this.isBuiltInCookieManager)return!1;const{twitter:r,youTube:l,facebook:E,vimeo:N,giphy:ae}=this.scope?.profile?.settings?.externalMediaPermissions;switch(s.assetText.type){case au.Twitter:return!r?.granted;case au.YouTube:return!l?.granted;case au.Facebook:return!E?.granted;case au.Vimeo:return!N?.granted;case au.Gif:return!ae?.granted;default:return!1}}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-media-gallery-item"]],viewQuery:function(r,l){if(1&r&&e.GBs(kc,5),2&r){let E;e.mGM(E=e.lsd())&&(l.mediaModal=E.first)}},inputs:{mediaGalleryItem:"mediaGalleryItem",scope:"scope",originNetworkSlug:"originNetworkSlug"},standalone:!1,decls:4,vars:8,consts:[["mediaModal",""],[1,"media-gallery-item",3,"ngClass"],[4,"ngIf"],[3,"ngSwitch",4,"ngIf"],[1,"media-gallery-file-container"],[1,"file"],["target","_blank",3,"href"],[1,"fa-regular","fa-file-lines","media-gallery-file-icon"],[1,"media-item-details"],[3,"assetReference"],[1,"media-gallery-item-wrapper"],["alt","",1,"img-fluid",3,"lazy-img"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"media-gallery-item-video-image","img-fluid",3,"lazy-img"],[1,"media-gallery-item-playbutton"],[1,"fa","fa-play-circle","fa-4x"],["target","_blank",1,"media-gallery-item-video",3,"href"],[1,"img-fluid",3,"src"],[1,"media-gallery-item-wrapper",3,"click"],[1,"media-gallery-item-video-image","img-fluid",3,"src"]],template:function(r,l){1&r&&(e.j41(0,"div",1),e.DNE(1,Ep,7,2,"ng-container",2)(2,Od,5,2,"ng-container",2)(3,wp,7,7,"ng-container",3),e.k0s()),2&r&&(e.Y8G("ngClass",e.sMw(4,Aa,l.mediaGalleryItem.inviewInfo,l.mediaGalleryItem.assetImage&&!l.mediaGalleryItem.assetImage.released||l.mediaGalleryItem.assetText&&!l.mediaGalleryItem.assetText.released||l.mediaGalleryItem.assetFile&&!l.mediaGalleryItem.assetFile.released,l.isTroll&&l.profile.isMerkuristJournalist)),e.R7$(),e.Y8G("ngIf",l.mediaGalleryItem.assetFile),e.R7$(),e.Y8G("ngIf",l.mediaGalleryItem.assetImage&&2===l.mediaGalleryItem.assetImage.type),e.R7$(),e.Y8G("ngIf",null==l.mediaGalleryItem?null:l.mediaGalleryItem.assetText))},dependencies:[C.YU,C.bT,C.ux,C.e1,Ih,Qu,Ft.B,vd.L,Tl,$l,vp,Pc,Vu,nu,xd],styles:['@charset "UTF-8";.media-gallery-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;position:relative;padding:.7rem}@media (min-width: 768px){.gallery-item-container[_ngcontent-%COMP%]{max-width:33.3333%}}@media (min-width: 576px) and (max-width: 767.98px){.gallery-item-container[_ngcontent-%COMP%]{max-width:50%}}@media (max-width: 575.98px){.gallery-item-container[_ngcontent-%COMP%]{max-width:100%}}.media-gallery-file-container[_ngcontent-%COMP%]{aspect-ratio:4/3;padding:.7rem}.media-gallery-file-container[_ngcontent-%COMP%]   .file[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:10px;border:1px solid black;aspect-ratio:4/3}.media-gallery-file-container[_ngcontent-%COMP%]   .media-gallery-file-icon[_ngcontent-%COMP%]{font-size:13rem;color:#000}.media-gallery-item-wrapper[_ngcontent-%COMP%]{position:relative;cursor:pointer;transition:transform .3s ease,background-color .3s ease;overflow:hidden}.media-gallery-item-wrapper[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{transform:scale(1.1);background-color:#ffffffb3}.media-gallery-item-playbutton[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#000;background-color:#ffffff80;padding:.5rem;border-radius:50%;z-index:10;pointer-events:none;display:flex;justify-content:center;align-items:center;transition:transform .3s ease,background-color .3s ease}.media-gallery-item-playbutton[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:4rem;color:inherit}.media-gallery-item-wrapper[_ngcontent-%COMP%]:hover   .media-gallery-item-playbutton[_ngcontent-%COMP%]{transform:translate(-50%,-50%) scale(1.1);background-color:#ffffffb3}.media-gallery-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;position:relative}.responsive-avatar[_ngcontent-%COMP%]{width:100%;max-width:5rem}.responsive-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:auto}.media-item-troll[_ngcontent-%COMP%]   .media-gallery-item-wrapper[_ngcontent-%COMP%]{opacity:.25}.media-item-troll[_ngcontent-%COMP%]   .media-item-details[_ngcontent-%COMP%]{color:red}.media-item-unreleased[_ngcontent-%COMP%]{opacity:.5}']}))}return o(),t})();function du(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",4)(1,"app-media-gallery-item",23),e.bIt("click",function(){const r=m.eBV(n).$index,l=e.XpG();return m.Njj(l.openImageViewer(r))}),e.k0s()()}if(2&o){const n=t.$implicit,s=e.XpG();e.R7$(),e.Y8G("mediaGalleryItem",n)("scope",s.scope)("originNetworkSlug",s.article.originNetworkSlug)}}function Qc(o,t){if(1&o){const n=e.RV6();e.j41(0,"button",24),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.onShowMore())}),e.nrm(1,"i",25),e.EFF(2," Mehr Dateien Laden "),e.k0s()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("ngClass",n.showMore?"icon-caret-down":"icon-caret-up")}}let Ph=(()=>{var o;class t{constructor(s,r){this.mediaGalleryService=s,this.scopeService=r,this.mediaGalleryItems=[],this.visibleItems=[],this.showMore=!0,this.images=[],this.isImageViewerVisible=!1,this.currentImageIndex=0,this.scope=this.scopeService.getScope()}ngOnInit(){this.mediaGalleryService.getMediaGalleryItems(this.article.assetReferences),this.mediaItemssubscription=this.mediaGalleryService.assetReferences$.subscribe(s=>{this.mediaGalleryItems=s,this.visibleItems=this.mediaGalleryItems.slice(0,6),this.updateImagesList()})}updateImagesList(){this.images=this.mediaGalleryItems.filter(s=>null!=s.assetImage)}onShowMore(){this.visibleItems=this.mediaGalleryItems,this.showMore=!1,this.updateImagesList()}openImageViewer(s){const l=this.mediaGalleryItems.filter(E=>null!=E.assetImage).findIndex(E=>E===this.visibleItems[s]);-1!==l&&(this.currentImageIndex=l,this.isImageViewerVisible=!0)}closeImageViewer(){this.isImageViewerVisible=!1}closeModal(){const s=document.getElementById("gallery-uploadmodal");null!=s&&(s.style.display="None")}ngOnDestroy(){this.mediaItemssubscription&&this.mediaItemssubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Ku),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-media-gallery"]],inputs:{article:"article"},standalone:!1,decls:33,vars:2,consts:[[1,"media-gallery"],[1,"media-gallery-title","fw-bold","text-center"],[1,"container","gallery-container"],[1,"row"],[1,"gallery-item-container","col-12","col-sm-6","col-md-4","mb-4"],[1,"media-gallery-show-more-container","text-center"],[1,"btn","btn-link","p-0","fw-bold","media-gallery-show-more-button","text-decoration-none","text-uppercase"],[1,"media-gallery-upload-container","text-center"],["data-bs-toggle","modal","data-bs-target","#gallery-uploadmodal",1,"btn","btn-link","p-0","media-gallery-upload-button","text-decoration-none","text-uppercase"],[1,"fa-solid","fa-paperclip","upload-icon"],["id","gallery-uploadmodal","tabindex","-1","aria-labelledby","gallery-uploadmodal-label","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],["id","gallery-uploadmodal-label",1,"modal-title"],[1,"modal-body","text-center"],[1,"button-container","d-grid","gap-3"],[1,"btn","btn-default"],[1,"fa-regular","fa-image"],[1,"fa-regular","fa-images"],[1,"fa-regular","fa-circle-play"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-warning"],[3,"click","mediaGalleryItem","scope","originNetworkSlug"],[1,"btn","btn-link","p-0","fw-bold","media-gallery-show-more-button","text-decoration-none","text-uppercase",3,"click"],[3,"ngClass"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1),e.EFF(2),e.k0s(),e.j41(3,"div",2)(4,"div",3),e.Z7z(5,du,2,3,"div",4,e.fX1),e.k0s()(),e.j41(7,"div",5),e.nVh(8,Qc,3,1,"button",6),e.k0s(),e.j41(9,"div",7)(10,"button",8),e.nrm(11,"i",9),e.EFF(12," Eigene Dateien Hochladen "),e.k0s()()(),e.j41(13,"div",10)(14,"div",11)(15,"div",12)(16,"div",13)(17,"h3",14),e.EFF(18,"Material hinzuf\xfcgen"),e.k0s()(),e.j41(19,"div",15)(20,"div",16)(21,"button",17),e.nrm(22,"i",18),e.EFF(23," Image hochladen"),e.k0s(),e.j41(24,"button",17),e.nrm(25,"i",19),e.EFF(26," Gif hochladen"),e.k0s(),e.j41(27,"button",17),e.nrm(28,"i",20),e.EFF(29," Video hochladen"),e.k0s()()(),e.j41(30,"div",21)(31,"button",22),e.EFF(32,"Close"),e.k0s()()()()()),2&r&&(e.R7$(2),e.SpI(" ",l.mediaGalleryItems.length," Dateien "),e.R7$(3),e.Dyx(l.visibleItems),e.R7$(3),e.vxM(l.showMore&&l.mediaGalleryItems.length>6?8:-1))},dependencies:[C.YU,Sp],styles:[".media-gallery[_ngcontent-%COMP%]   .media-gallery-title[_ngcontent-%COMP%]{font-size:3rem;margin-bottom:2rem}.media-gallery[_ngcontent-%COMP%]   .media-gallery-show-more-button[_ngcontent-%COMP%]{font-size:1.8rem;color:#000;margin-top:3rem}.media-gallery[_ngcontent-%COMP%]   .media-gallery-upload-container[_ngcontent-%COMP%]   .media-gallery-upload-button[_ngcontent-%COMP%]{font-size:2.5rem;margin-top:4rem;color:#000}.media-gallery[_ngcontent-%COMP%]   .media-gallery-upload-container[_ngcontent-%COMP%]   .media-gallery-upload-button[_ngcontent-%COMP%]   .upload-icon[_ngcontent-%COMP%]{font-size:3rem;margin-right:1rem;transform:rotate(45deg)}.gallery-upload-modal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]{position:relative;padding:15px;overflow-y:auto;height:auto}"]}))}return o(),t})(),Ka=(()=>{var o;class t{constructor(s){this.http=s,this.apiEndpoint=window.scope.apiEndpoint}getAuthors(){return this.http.get(`${this.apiEndpoint}authors`).toPromise().then(s=>s).catch(this.handleError)}getMyArticles(){return this.http.get(`${this.apiEndpoint}authors/MyArticles`).toPromise().then(s=>s).catch(this.handleError)}checkApply(s){return this.http.get(`${this.apiEndpoint}snips/${s}/checkApply`).toPromise().then(r=>r).catch(this.handleError)}applySnip(s){return this.http.get(`${this.apiEndpoint}snips/${s}/apply`).toPromise().then(r=>r).catch(this.handleError)}noApplySnip(s){return this.http.get(`${this.apiEndpoint}snips/${s.snipId}/noapply/${s.id}`).toPromise().then(r=>r).catch(this.handleError)}allocateSnip(s){return this.http.get(`${this.apiEndpoint}snips/${s.snipId}/allocate/${s.id}`).toPromise().then(r=>r).catch(this.handleError)}rejectSnip(s){return this.http.get(`${this.apiEndpoint}snips/${s.snipId}/reject/${s.id}`).toPromise().then(r=>r).catch(this.handleError)}getAuthor(s){return this.http.get(`${this.apiEndpoint}authors/${s}`).toPromise().then(r=>r).catch(this.handleError)}getAuthorImprint(s){return this.http.get(`${this.apiEndpoint}authors/${s}/imprint`).toPromise().then(r=>r).catch(this.handleError)}updateAuthorBillingInfo(s){return this.http.put(`${this.apiEndpoint}authors/updateauthorbillinginfo`,s).toPromise().then(r=>r).catch(this.handleError)}handleError(s){return console.error("An error occurred",s),Promise.reject(s.message||s)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();function Rh(o,t){1&o&&e.nrm(0,"i",9)}function Ju(o,t){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_common_freelanceAuthorMale")," ")}}function Dp(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG(4);e.SpI(" ",n.scope.network.getResourceOrKeyName("web_common_freelanceAuthorFemale")," ")}}function tl(o,t){if(1&o&&(e.j41(0,"div",10),e.nVh(1,Ju,2,1,"div")(2,Dp,1,1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.vxM(1===n.user.gender?1:2)}}function Tp(o,t){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_common_authorMale")," ")}}function nl(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG(4);e.SpI(" ",n.scope.network.getResourceOrKeyName("web_common_authorFemale")," ")}}function kh(o,t){if(1&o&&(e.j41(0,"div",10),e.nVh(1,Tp,2,1,"div")(2,nl,1,1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.vxM(1===n.user.gender?1:2)}}function Ap(o,t){if(1&o&&(e.j41(0,"div")(1,"a",5),e.nrm(2,"img",6),e.j41(3,"div",7),e.EFF(4),e.nrm(5,"br"),e.j41(6,"span",8),e.EFF(7),e.k0s(),e.nVh(8,Rh,1,0,"i",9),e.nVh(9,tl,3,1,"div",10),e.nVh(10,kh,3,1,"div",10),e.k0s()()()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("href",n.userProfileUrl,e.B4B),e.R7$(),e.Y8G("src",n.user.avatarImageUrl+"?preset=article-detail-badge",e.B4B),e.R7$(2),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_common_from")),e.R7$(3),e.Lme("",n.user.firstName," ",n.user.lastName),e.R7$(),e.vxM(n.scope.currentChapter.settings.configurations.enableVerifiedUsers&&n.showVerifiedUser?8:-1),e.R7$(),e.vxM(n.user.freelance?9:-1),e.R7$(),e.vxM(n.user.freelance||n.snip||"---"===n.user.levelName?-1:10)}}function qu(o,t){1&o&&e.nrm(0,"i",9)}function Bh(o,t){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_common_freelanceAuthorMale")," ")}}function Fh(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG(4);e.SpI(" ",n.scope.network.getResourceOrKeyName("web_common_freelanceAuthorFemale")," ")}}function Zc(o,t){if(1&o&&(e.j41(0,"div",10),e.nVh(1,Bh,2,1,"div")(2,Fh,1,1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.vxM(1===n.user.gender?1:2)}}function yg(o,t){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_common_authorMale")," ")}}function bg(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG(4);e.SpI(" ",n.scope.network.getResourceOrKeyName("web_common_authorFemale")," ")}}function br(o,t){if(1&o&&(e.j41(0,"div",10),e.nVh(1,yg,2,1,"div")(2,bg,1,1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.vxM(1===n.user.gender?1:2)}}function eh(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"img",6),e.j41(2,"div",7),e.EFF(3),e.nrm(4,"br"),e.j41(5,"span",8),e.EFF(6),e.k0s(),e.nVh(7,qu,1,0,"i",9),e.nVh(8,Zc,3,1,"div",10),e.nVh(9,br,3,1,"div",10),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("src",n.user.avatarImageUrl+"?preset=article-detail-badge",e.B4B),e.R7$(2),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_common_from")),e.R7$(3),e.Lme("",n.user.firstName," ",n.user.lastName),e.R7$(),e.vxM(n.scope.currentChapter.settings.configurations.enableVerifiedUsers&&n.showVerifiedUser?7:-1),e.R7$(),e.vxM(n.user.freelance?8:-1),e.R7$(),e.vxM(n.user.freelance||n.snip||"---"===n.user.levelName?-1:9)}}function Ip(o,t){if(1&o&&(e.j41(0,"div",2),e.EFF(1),e.j41(2,"a",11),e.EFF(3),e.j41(4,"span",12),e.nrm(5,"img",13),e.EFF(6),e.k0s()()()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.scope.network.resources.web_userBadge_origin_0," "),e.R7$(),e.Y8G("href",n.originArticlePath,e.B4B),e.R7$(),e.SpI(" ",n.scope.network.resources.web_userBadge_origin_1," "),e.R7$(2),e.Y8G("src",n.article.originArticle.user.avatarImageUrl+"?preset=article-detail-badge",e.B4B),e.R7$(),e.Lme(" ",n.article.originArticle.user.firstName," ",n.article.originArticle.user.lastName," ")}}function Nh(o,t){if(1&o&&(e.j41(0,"div",2),e.EFF(1),e.j41(2,"span",12),e.nrm(3,"img",13),e.EFF(4),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.scope.network.resources.web_userBadge_origin_1," "),e.R7$(2),e.Y8G("src",n.article.originArticle.user.avatarImageUrl+"?preset=article-detail-badge",e.B4B),e.R7$(),e.Lme(" ",n.article.originArticle.user.firstName," ",n.article.originArticle.user.lastName," ")}}function wd(o,t){if(1&o&&(e.j41(0,"div",3),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Lme(" ",n.scope.network.getResourceOrKeyName("web_userBadge_publishedAt")," ",e.i5U(2,2,n.article.published,"short")," ")}}function Bc(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",4),e.EFF(1),e.j41(2,"a",14),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.openUserBadgeImprintDialog())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_userBadge_imprint")," "),e.R7$(2),e.SpI(" ",n.user.freelance?n.user.firstName+" "+n.user.lastName:n.crossNetworkInfo," ")}}function Sd(o,t){if(1&o&&(e.j41(0,"div",0)(1,"div",1),e.nVh(2,Ap,11,8,"div"),e.nVh(3,eh,10,7,"div"),e.nVh(4,Ip,7,6,"div",2),e.nVh(5,Nh,5,4,"div",2),e.nVh(6,wd,3,5,"div",3),e.nVh(7,Bc,4,2,"div",4),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.vxM(n.article.originNetworkSlug!==(null==n.scope||null==n.scope.network?null:n.scope.network.slug)&&(n.article.originNetworkSlug===n.scope.network.slug||null!=n.scope.network.settings.configurations&&n.scope.network.settings.configurations.disableCCSourceLinks)?-1:2),e.R7$(),e.vxM(n.article.originNetworkSlug!==(null==n.scope||null==n.scope.network?null:n.scope.network.slug)&&null!=n.scope&&null!=n.scope.network&&null!=n.scope.network.settings&&null!=n.scope.network.settings.configurations&&n.scope.network.settings.configurations.disableCCSourceLinks?3:-1),e.R7$(),e.vxM(n.article.originArticle&&!n.scope.network.settings.configurations.disableCCSourceLinks?4:-1),e.R7$(),e.vxM(n.article.originArticle&&n.scope.network.settings.configurations.disableCCSourceLinks?5:-1),e.R7$(),e.vxM(n.article.published?6:-1),e.R7$(),e.vxM(n.article?7:-1)}}let uu=(()=>{var o;class t{constructor(s,r,l,E,N){this.scopeService=s,this.sanitizer=r,this.authorService=l,this.auth=E,this.clickService=N,this.userProfileUrl="",this.originArticlePath="",this.showVerifiedUser=!1,this.scope=s.getScope()}ngOnInit(){this.article?(this.initializeUserProfileUrl(),this.initializeOriginArticlePath(),this.showVerifiedUser=this.user.isVerifiedUser):console.warn("article is not defined.")}initializeUserProfileUrl(){this.isArticleModel(this.article)?this.article.originChapterSlug&&this.article.originNetworkSlug&&(this.crossNetworkInfo=this.scope.currentScope.chapter?.partner?.companyName,this.userProfileUrl=`${this.scope.currentScope.network.path}${"/"===this.scope.currentScope.chapter.path?"/profile/"+this.user.guid:this.scope.currentScope.chapter.path+"/profile/"+this.user.guid}`):this.scope&&this.scope.currentScope?this.userProfileUrl=`${this.scope.currentScope.chapter.path}/profile/${this.user.guid}`:console.warn("Scope or current scope is not defined.")}initializeOriginArticlePath(){if(this.isArticleModel(this.article)&&this.article.originArticle){const s=this.scope.currentChapter;s?this.originArticlePath=`${this.scope.currentScope.network.path}${s.path}${this.article.originArticle.path}`:console.error("Chapter not found:",this.article.originChapterSlug)}else console.warn("article or origin article is not defined.")}openUserBadgeImprintDialog(){this.authorService.getAuthorImprint(this.user.guid).then(s=>{this.impressum=s.html,this.showModal()}).catch(s=>{console.error("Error fetching author imprint:",s)})}showModal(){const s=document.getElementById("userBadgeImprintModal");s&&new bootstrap.Modal(s).show()}isArticleModel(s){return"originNetworkSlug"in s&&"originArticle"in s}clickServiceTest(){this.clickService.clickAssetReference("ee91c402-ad29-4e56-ab05-556e632412da","Itz")}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Oo.up),e.rXU(Ka),e.rXU(Da.u),e.rXU(xt._))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-user-badge-new"]],inputs:{user:"user",article:"article",snip:"snip"},standalone:!1,decls:1,vars:1,consts:[["appAuthorizedClick",""],[1,"userBadge"],[1,"userBadge-new-origin"],[1,"userBadge-new-time"],[1,"userBadge-new-imprint",2,"display","none"],[1,"userBadge-new-link","nolinkstyle",3,"href"],[1,"userBadge-new-avatar",3,"src"],[1,"userBadge-new-text"],[1,"userBadge-new-name"],[1,"fas","fa-check-square","verified-icon"],[1,"userBadge-new-level"],["target","_blank",3,"href"],[1,"userBadge-new-origin-user"],[1,"userBadge-new-origin-user-avatar",3,"src"],[1,"pointer",3,"click"]],template:function(r,l){1&r&&e.nVh(0,Sd,8,6,"div",0),2&r&&e.vxM(l.article?0:-1)},dependencies:[Ft.B,bi,C.vh],styles:[".userBadge[_ngcontent-%COMP%]{font-size:1.16em;line-height:1.2em;margin:15px 0}.userBadge[_ngcontent-%COMP%]   .userBadge-new-avatar[_ngcontent-%COMP%]{height:60px;width:60px;border-radius:50%;border:var(--colorSecondary) solid 2px}.userBadge[_ngcontent-%COMP%]   .userBadge-new-origin[_ngcontent-%COMP%]{margin:10px 0;color:gray}.userBadge[_ngcontent-%COMP%]   .userBadge-new-origin-user[_ngcontent-%COMP%]{white-space:nowrap}.userBadge[_ngcontent-%COMP%]   .userBadge-new-origin-user-avatar[_ngcontent-%COMP%]{height:14px;width:14px;margin-top:-2px;border-radius:50%;border:var(--colorSecondary) solid 2px}.userBadge[_ngcontent-%COMP%]   .userBadge-new-sitePath[_ngcontent-%COMP%]   .userBadge-new-avatar[_ngcontent-%COMP%]{border-color:transparent}.userBadge[_ngcontent-%COMP%]   .userBadge-new-sitePath[_ngcontent-%COMP%]   .userBadge-new-link[_ngcontent-%COMP%]{pointer-events:none}.userBadge[_ngcontent-%COMP%]   .userBadge-new-text[_ngcontent-%COMP%]{margin-left:15px;vertical-align:middle;display:inline-block}.userBadge[_ngcontent-%COMP%]   .userBadge-new-level[_ngcontent-%COMP%]{max-width:176px;word-wrap:break-word}.userBadge[_ngcontent-%COMP%]   .userBadge-new-name[_ngcontent-%COMP%]{font-weight:700}.userBadge[_ngcontent-%COMP%]   .userBadge-new-time[_ngcontent-%COMP%]{margin:10px 0;padding-top:5px;border-top:1px solid lightgray}.userBadge[_ngcontent-%COMP%]   .userBadge-new-time[_ngcontent-%COMP%], .userBadge[_ngcontent-%COMP%]   .userBadge-new-imprint[_ngcontent-%COMP%]{color:var(--gray)}.userBadge[_ngcontent-%COMP%]   .verified-icon[_ngcontent-%COMP%]{color:#00acee;font-size:.8em}.modal-background[_ngcontent-%COMP%]{background:#fff}"]}))}return o(),t})(),Fc=(()=>{var o;class t{constructor(s,r){this.http=s,this.scopeService=r,this.scope=r.getScope()}getRecommendedArticles(s,r){return this.http.get(`${this.scope.apiEndpoint}recommendations/getRecommendedArticles/${s}/${r}`)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),ga=(()=>{var o;class t{constructor(s){this.clickService=s,this.oculusJs=window.Oculus}trackArticleImpression(s,r){return this.oculusJs.trackArticleImpression(s,r)}clickArticle(s,r){this.clickService.clickArticle(s,r)}trackArticleReading(s,r){return this.oculusJs.trackArticleReading(s,r)}addScrollContainer(s){return this.oculusJs.addScrollContainer(s)}trackSnipImpression(s,r){return this.oculusJs.trackSnipImpression(s,r)}clickSnip(s,r){this.clickService.clickSnip(s,r)}trackSnipReading(s,r){return this.oculusJs.trackSnipReading(s,r)}trackSponsoredArticleImpression(s,r){return this.oculusJs.trackSponsoredArticleImpression(s,r)}clickSponsoredArticle(s,r){this.clickService.clickSponsoredArticle(s,r)}trackSponsoredArticleReading(s,r){return this.oculusJs.trackSponsoredArticleReading(s,r)}trackPremiumBanner(s,r){return this.oculusJs.trackPremiumBanner(s,r)}trackSuperBanner(s,r){return this.oculusJs.trackSuperBanner(s,r)}trackSurveyImpression(s,r){return this.oculusJs.trackSurveyImpression(s,r)}trackSurveyBannerImpression(s,r){return this.oculusJs.trackSurveyBannerImpression(s,r)}trackMarketResearch(s,r){return this.oculusJs.trackMarketResearch(s,r)}push(s,r){this.oculusJs.push(s,r)}navigate(s){this.oculusJs.navigate(s)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(xt._))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const Mp=["*"];let Nc=(()=>{var o;class t{constructor(s,r,l,E){this.el=s,this.trackingService=r,this.scopeService=l,this.routeTracker=E,this.networkSlug=this.scopeService.getScope().network.slug,this.chapterSlug=this.scopeService.getScope().currentChapter.slug}ngOnInit(){const s=this.el.nativeElement;this.impressionTracker=this.trackingService.trackArticleImpression(s,{ia:this.article.id,iar:this.article.revisionId,iav:this.article.variantId,c:this.chapterSlug,n:this.networkSlug});const r=this.routeTracker.getCurrentRouteState();this.impressionTracker.persistent="app.main-news"==r.angularJsState&&r.fromAngularJs,s.addEventListener("click",()=>{this.impressionTracker.click(),this.trackingService.clickArticle(this.impressionTracker.guid,this.article.id)})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(ga),e.rXU(Se.A),e.rXU(Ko.o))},this.\u0275cmp=e.VBU({type:t,selectors:[["ngx-oculus-article-impression"],["","ngxOculusArticleImpressionComponent",""]],inputs:{article:[0,"ngxArticleData","article"]},standalone:!1,ngContentSelectors:Mp,decls:1,vars:0,template:function(r,l){1&r&&(e.NAR(),e.SdG(0))},encapsulation:2}))}return o(),t})();const hu=["*"];let Jc=(()=>{var o;class t{constructor(s,r){this.el=s,this.trackingService=r}ngAfterViewInit(){this.trackingService.addScrollContainer(this.el.nativeElement)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(ga))},this.\u0275cmp=e.VBU({type:t,selectors:[["ngx-oculus-container"],["","ngxOculusContainerComponent",""]],standalone:!1,ngContentSelectors:hu,decls:1,vars:0,template:function(r,l){1&r&&(e.NAR(),e.SdG(0))},encapsulation:2}))}return o(),t})();const qc=["*"];let Dd=(()=>{var o;class t{constructor(s,r,l,E){this.el=s,this.trackingService=r,this.scopeService=l,this.routeTracker=E,this.networkSlug=this.scopeService.getScope().network.slug,this.chapterSlug=this.scopeService.getScope().currentChapter.slug}ngOnInit(){const s=this.el.nativeElement;this.impressionTracker=this.trackingService.trackSponsoredArticleImpression(s,{isac:this.sparticle.sponsoredArticleCampaignId,isa:this.sparticle.id,isar:this.sparticle.revisionId,isav:this.sparticle.variantId,c:this.chapterSlug,n:this.networkSlug,seg:null,iar:this.article?this.article.revisionId:null,iav:this.article?this.article.variantId:null});const r=this.routeTracker.getCurrentRouteState();this.impressionTracker.persistent="app.main-news"==r.angularJsState&&r.fromAngularJs,s.addEventListener("click",()=>{this.impressionTracker.click(),this.trackingService.clickSponsoredArticle(this.impressionTracker.guid,this.sparticle.id)})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(ga),e.rXU(Se.A),e.rXU(Ko.o))},this.\u0275cmp=e.VBU({type:t,selectors:[["ngx-oculus-sparticle-impression"],["","ngxOculusSparticleImpression",""]],inputs:{sparticle:[0,"ngxSparticleData","sparticle"],article:[0,"ngxArticleData","article"]},standalone:!1,ngContentSelectors:qc,decls:1,vars:0,template:function(r,l){1&r&&(e.NAR(),e.SdG(0))},encapsulation:2}))}return o(),t})();var Il=p(353);let ul=(()=>{var o;class t{constructor(s,r){this.logoService=s,this.scopeService=r,this.hasChapterLogo=!1,this.hasChapterLogoDark=!1,this.networkLogoUrl="",this.networkLogoDarkUrl="",this.chapterLogoUrl="",this.chapterLogoDarkUrl="",this.colors=["var(--color1-alpha50)","var(--color2-alpha50)","var(--color3-alpha50)"],this.logoUrl="",this.getLogoUrl=()=>this.logoUrl?this.logoUrl:this.hasChapterLogo?this.chapterLogoUrl:this.networkLogoUrl,this.getRandomNetworkColor=()=>{const l=Math.floor(Math.random()*this.colors.length);return this.colors[l]},this.scope=this.scopeService.getScope(),this.hasChapterLogo=this.logoService.hasChapterLogo(this.scope.currentScope.chapter),this.hasChapterLogoDark=this.logoService.hasChapterLogoDark(this.scope.currentScope.chapter),this.networkLogoUrl=this.logoService.getNetworkLogoUrl(),this.networkLogoDarkUrl=this.logoService.getNetworkLogoDarkUrl(),this.chapterLogoUrl=this.logoService.getChapterLogoUrl(),this.chapterLogoDarkUrl=this.logoService.getChapterLogoDarkUrl()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Il.X),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const th=o=>({"background-color":o});function nh(o,t){if(1&o&&(e.j41(0,"div",0)(1,"a",1)(2,"div",2)(3,"div",3),e.nrm(4,"img",4),e.k0s()(),e.j41(5,"div",5),e.nrm(6,"h3",6),e.nI1(7,"apicodoTranslateText"),e.nI1(8,"async"),e.nrm(9,"p",7),e.nI1(10,"apicodoTranslateText"),e.nI1(11,"async"),e.k0s()()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("href",n.recommendationPath,e.B4B)("target",n.linkTarget),e.R7$(2),e.Y8G("ngStyle",e.eq3(15,th,n.fallbackColor)),e.R7$(),e.Y8G("ngClass",n.isFallback?"fallback-image":"cover-image")("src",n.imagePath,e.B4B),e.R7$(2),e.Y8G("innerHTML",e.bMT(8,9,e.bMT(7,7,n.recommendation.text)),e.npT),e.R7$(3),e.Y8G("innerHTML",e.bMT(11,13,e.bMT(10,11,n.recommendation.summary)),e.npT)}}let ih=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.deviceService=r,this.displayableFallbackCoverService=l,this.recommendationPath="",this.linkTarget="",this.isFallback=!1,this.fallbackColor="",this.scope=s.getScope(),this.isMobile=this.deviceService.getUserAgentInfo().isMobile,this.enableHighQualityImage=this.scope.network.settings.configurations.enableHighQualityImage}ngOnInit(){if(this.displayable){let s=this.deviceService.getUserAgentInfo().isMobile?"-mobile":"";if(1==this.displayable.articleListDisplayableType||2==this.displayable.articleListDisplayableType)this.recommendation=this.displayable,this.recommendation.coverImageGuid?this.imagePath=`${this.scope.globalSettings.blobStorageCdnUrl+"/images/"}${this.recommendation?.coverImageGuid}?preset=recommended-article-cover${s}&cache=${this.recommendation?.imageCache}`:(this.isFallback=!0,this.fallbackColor=this.displayableFallbackCoverService.getRandomNetworkColor(),this.imagePath=this.displayableFallbackCoverService.getLogoUrl()),this.recommendation.articleExternalLink?(this.recommendationPath=this.recommendation.articleExternalLink,this.linkTarget="_blank"):(this.recommendationPath=`${this.scope.currentScope.chapter.path}${this.recommendation.path}`+(this.recommendation.variantId?"/"+this.recommendation.variantId:""),this.linkTarget="");else if(3==this.displayable.articleListDisplayableType){let r=this.displayable;this.recommendation={id:r.id,coverImageGuid:r.listValues.coverAsset,path:r.path,summary:r.listValues.heading,text:r.listValues.title,heading:r.listValues.heading,articleListDisplayableType:3},this.recommendation.coverImageGuid?this.imagePath=`${this.scope.globalSettings.blobStorageCdnUrl+"/"+this.scope.globalSettings.blobStorageContainerNameSpecial+"/"}${this.recommendation?.coverImageGuid}?preset=recommended-article-cover${s}`:(this.isFallback=!0,this.fallbackColor=this.displayableFallbackCoverService.getRandomNetworkColor(),this.imagePath=this.displayableFallbackCoverService.getLogoUrl()),this.recommendationPath=`${this.scope.currentScope.chapter.path}${this.recommendation.path}`+(this.recommendation.variantId?"/"+this.recommendation.variantId:""),this.linkTarget=""}}}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E),e.rXU(ul))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-displayable-article-variant-one"]],inputs:{displayable:"displayable"},standalone:!1,decls:1,vars:1,consts:[[1,"card","mb-3","displayable-wrapper"],[1,"row",3,"href","target"],[1,"col-3","text-center","padding-top"],[1,"displayable-image",3,"ngStyle"],["alt","",3,"ngClass","src"],[1,"col-9"],[1,"card-title","display-5","displayable-title","p-0",3,"innerHTML"],[1,"card-text","displayable-text",3,"innerHTML"]],template:function(r,l){1&r&&e.nVh(0,nh,12,17,"div",0),2&r&&e.vxM(l.recommendation?0:-1)},dependencies:[C.YU,C.B3,Ft.B,C.Jj,Fo],styles:["a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor90)!important}.displayable-wrapper[_ngcontent-%COMP%]{border:none;background-color:inherit;padding-left:10px}.displayable-title[_ngcontent-%COMP%]{color:var(--textColor90);text-decoration:none;font-size:2rem;font-weight:700;font-family:var(--fontPrimary)}@media (max-width: 768px){.displayable-title[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;padding-right:5px}}.displayable-title[_ngcontent-%COMP%]:hover{text-decoration:underline}.displayable-text[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor90)}@media (max-width: 768px){.displayable-text[_ngcontent-%COMP%]{padding-right:5px}}.displayable-image[_ngcontent-%COMP%]{display:flex;justify-content:center;aspect-ratio:4/3;overflow:hidden;width:100%}.fallback-image[_ngcontent-%COMP%]{object-fit:contain;width:inherit}.cover-image[_ngcontent-%COMP%]{object-fit:cover;width:100%}.padding-top[_ngcontent-%COMP%]{padding-top:5px}"]}))}return o(),t})();function xg(o,t){if(1&o&&(e.j41(0,"ngx-oculus-article-impression",3),e.nrm(1,"app-displayable-article-variant-one",5),e.k0s()),2&o){const n=e.XpG().$implicit;e.Y8G("ngxArticleData",n),e.R7$(),e.Y8G("displayable",n)}}function Eg(o,t){if(1&o&&(e.j41(0,"ngx-oculus-sparticle-impression",4),e.nrm(1,"app-displayable-article-variant-one",5),e.k0s()),2&o){const n=e.XpG().$implicit;e.Y8G("ngxArticleData",n)("ngxSparticleData",n),e.R7$(),e.Y8G("displayable",n)}}function Lh(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"app-displayable-article-variant-one",5),e.k0s()),2&o){const n=e.XpG().$implicit;e.R7$(),e.Y8G("displayable",n)}}function pu(o,t){if(1&o&&(e.j41(0,"li",2),e.nVh(1,xg,2,2,"ngx-oculus-article-impression",3),e.nVh(2,Eg,2,3,"ngx-oculus-sparticle-impression",4),e.nVh(3,Lh,2,1,"div"),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.vxM(1==n.articleListDisplayableType?1:-1),e.R7$(),e.vxM(2==n.articleListDisplayableType?2:-1),e.R7$(),e.vxM(3==n.articleListDisplayableType?3:-1)}}let Td=(()=>{var o;class t{constructor(s,r){this.recommendationsService=s,this.scopeService=r,this.sponsored=!1,this.scope=this.scopeService.getScope()}ngOnInit(){this.recommendationsService.getRecommendedArticles(this.dataId,this.sponsored).subscribe(s=>{this.displayables=s;let r=s.filter(l=>null==l.articleExternalLink);this.displayables=r})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Fc),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-recommended-articles"]],inputs:{dataId:"dataId",sponsored:"sponsored"},standalone:!1,decls:7,vars:1,consts:[[1,"p-0","recommendations-header","articleDetail-recommendations-articles-header"],[1,"list-unstyled"],[1,"recommendations-displayables-wrapper"],[3,"ngxArticleData"],[3,"ngxArticleData","ngxSparticleData"],[3,"displayable"]],template:function(r,l){1&r&&(e.j41(0,"div")(1,"h2",0),e.EFF(2),e.k0s(),e.j41(3,"ngx-oculus-container")(4,"ul",1),e.Z7z(5,pu,4,3,"li",2,e.fX1),e.k0s()()()),2&r&&(e.R7$(2),e.SpI(" ",l.scope.currentScope.network.getResourceOrKeyName("web_common_read_more")," "),e.R7$(3),e.Dyx(l.displayables))},dependencies:[Nc,Jc,Dd,ih],styles:[".recommendations-displayables-wrapper[_ngcontent-%COMP%]{margin-bottom:40px}.recommendations-header[_ngcontent-%COMP%]{text-align:center;margin-bottom:40px;font-family:var(--fontPrimary)}"]}))}return o(),t})(),Vh=(()=>{var o;class t{constructor(s){this.themingSettingsService=s,this.ttsEnabled=(0,m.vPA)(!1)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(oo))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const Wl=o=>({"shifted-text":o});function Hh(o,t){if(1&o&&(e.j41(0,"div",8)(1,"div",14),e.nrm(2,"app-oha",15),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.Y8G("article",n.data)("source","ArticleDetail")}}function Ad(o,t){if(1&o&&(e.j41(0,"div",8)(1,"div",14),e.nrm(2,"app-oha",15),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.Y8G("article",n.data)("source","ArticleDetail")}}let zl=(()=>{var o;class t{constructor(){this.isEdit=!1,this.removeOha=!1,this.text="",this.heading="",this.updateProperties=()=>{this.data.isEvent?(this.text=this.data.summary,this.heading=this.data.category):(this.text=this.data.text??this.data.title,this.heading=this.data.heading)}}ngOnInit(){this.updateProperties()}ngOnChanges(s){s.data&&this.updateProperties()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-title"]],inputs:{data:"data",isEdit:"isEdit",removeOha:"removeOha"},standalone:!1,features:[e.OA$],decls:31,vars:32,consts:[["titleComponent",""],[1,"details-title-base"],[1,"desktop-only"],[1,"container","p-0","m-0","title-wrapper"],[1,"row-no-gutters"],["id","carouselTitle",1,"carousel","slide","col-auto"],[1,"carousel-inner"],[1,"carousel-item","active"],[1,"row"],[1,"row","pb-0","mb-0"],[1,"h2","col-11","shifted-text",3,"innerHTML"],[1,"h1","mb-4","text-wrapper",3,"innerHTML","ngClass"],[1,"mobile-only"],[1,"row","mb-0"],[1,"d-flex","justify-content-end"],[1,"float-end",3,"article","source"]],template:function(r,l){1&r&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3,0)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7),e.nVh(8,Hh,3,2,"div",8),e.j41(9,"h1",9),e.nrm(10,"span",10),e.nI1(11,"apicodoTranslateText"),e.nI1(12,"async"),e.nrm(13,"span",11),e.nI1(14,"apicodoTranslateText"),e.nI1(15,"async"),e.k0s()()()()()()(),e.j41(16,"div",12)(17,"div",3,0)(19,"div",4)(20,"div",5)(21,"div",6)(22,"div",7),e.nVh(23,Ad,3,2,"div",8),e.j41(24,"h1",13),e.nrm(25,"span",10),e.nI1(26,"apicodoTranslateText"),e.nI1(27,"async"),e.nrm(28,"span",11),e.nI1(29,"apicodoTranslateText"),e.nI1(30,"async"),e.k0s()()()()()()()()),2&r&&(e.R7$(8),e.vxM(l.removeOha?-1:8),e.R7$(),e.AVh("shift-up",!l.removeOha),e.R7$(),e.Y8G("innerHTML",e.bMT(12,14,e.bMT(11,12,l.heading)),e.npT),e.R7$(3),e.Y8G("innerHTML",e.bMT(15,18,e.bMT(14,16,l.text)),e.npT)("ngClass",e.eq3(28,Wl,!l.heading)),e.R7$(10),e.vxM(l.removeOha?-1:23),e.R7$(),e.AVh("shift-up",!l.removeOha),e.R7$(),e.Y8G("innerHTML",e.bMT(27,22,e.bMT(26,20,l.heading)),e.npT),e.R7$(3),e.Y8G("innerHTML",e.bMT(30,26,e.bMT(29,24,l.text)),e.npT)("ngClass",e.eq3(30,Wl,!l.heading)))},dependencies:[C.YU,Hl,C.Jj,Fo],styles:[".details-title-base[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .details-title-base[_ngcontent-%COMP%]   .h2[_ngcontent-%COMP%]{font-family:var(--fontPrimary);font-size:1.2rem;font-weight:400}@media (max-width: 768px){.details-title-base[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .details-title-base[_ngcontent-%COMP%]   .h2[_ngcontent-%COMP%]{font-size:1rem}}.details-title-base[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .details-title-base[_ngcontent-%COMP%]   .h1[_ngcontent-%COMP%]{font-family:var(--fontSecondary);font-size:3rem;font-weight:700}@media (max-width: 768px){.details-title-base[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .details-title-base[_ngcontent-%COMP%]   .h1[_ngcontent-%COMP%]{font-size:2rem}}.details-title-base[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{background-color:#fff;color:var(--textColor)}.details-title-base[_ngcontent-%COMP%]   .carousel[_ngcontent-%COMP%]{cursor:auto}.details-title-base[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:transparent;border:none}.details-title-base[_ngcontent-%COMP%]   .desktop-only[_ngcontent-%COMP%]{display:block}.details-title-base[_ngcontent-%COMP%]   .desktop-only[_ngcontent-%COMP%]   .shift-up[_ngcontent-%COMP%]{margin-top:-30px}.details-title-base[_ngcontent-%COMP%]   .desktop-only[_ngcontent-%COMP%]   .shift-up[_ngcontent-%COMP%]   .shifted-text[_ngcontent-%COMP%]{width:90%}.details-title-base[_ngcontent-%COMP%]   .mobile-only[_ngcontent-%COMP%]{display:none}.details-title-base[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]{max-width:100%}.details-title-base[_ngcontent-%COMP%]   .head-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}.details-title-base[_ngcontent-%COMP%]   .text-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;font-size:3rem;font-family:var(--fontSecondary);font-weight:700;line-height:1.2em}@media (max-width: 768px){.details-title-base[_ngcontent-%COMP%]   .heading-wrapper[_ngcontent-%COMP%]{display:flex;align-items:end}}@media (max-width: 768px){.details-title-base[_ngcontent-%COMP%]   .desktop-only[_ngcontent-%COMP%]{display:none}.details-title-base[_ngcontent-%COMP%]   .mobile-only[_ngcontent-%COMP%]{display:block}.details-title-base[_ngcontent-%COMP%]   .mobile-only[_ngcontent-%COMP%]   .text-wrapper[_ngcontent-%COMP%]{font-size:2rem;font-family:var(--fontSecondary);font-weight:700;line-height:1.2}.details-title-base[_ngcontent-%COMP%]   .mobile-only[_ngcontent-%COMP%]   .shift-up[_ngcontent-%COMP%]{margin-top:0}.details-title-base[_ngcontent-%COMP%]   .mobile-only[_ngcontent-%COMP%]   .shift-up[_ngcontent-%COMP%]   .shifted-text[_ngcontent-%COMP%]{width:80%}}"]}))}return o(),t})();const Og=()=>({class:"cover-viewer-popup-wrapper"});function Pp(o,t){if(1&o&&(e.j41(0,"span",17),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.coverImage.text)}}function $h(o,t){if(1&o&&(e.j41(0,"span",18),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Lme("",n.scope.network.getResourceOrKeyName("web_asset_imageSourceInfo")," ",n.coverImage.source)}}function Rp(o,t){if(1&o&&(e.j41(0,"div",8)(1,"div",16),e.nVh(2,Pp,2,1,"span",17),e.nVh(3,$h,2,2,"span",18),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.vxM(n.coverImage.text?2:-1),e.R7$(),e.vxM(n.coverImage.source?3:-1)}}function oh(o,t){if(1&o&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.coverImage.text)}}function sh(o,t){if(1&o&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Lme(" ",n.scope.network.getResourceOrKeyName("web_asset_imageSourceInfo")," ",n.coverImage.source," ")}}function Cf(o,t){if(1&o&&(e.j41(0,"figcaption",15),e.nVh(1,oh,2,1,"span"),e.nVh(2,sh,2,2,"span"),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.coverImage.text?1:-1),e.R7$(),e.vxM(n.coverImage.source?2:-1)}}let kp=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.deviceService=r,this.viewerImage="",this.imageViewerOpen=!1,this.openImageViewer=()=>{this.imageViewerOpen=!0},this.scope=s.getScope(),this.toolbarItems=[{widget:"dxButton",location:"after",options:{hint:this.scope.network.getResourceOrKeyName("web_common_close_dialog"),icon:"close",elementAttr:{title:this.scope.network.getResourceOrKeyName("web_common_close_dialog"),class:"cover-viewer-close-button"},onClick:()=>this.closeImageViewer()}}]}ngOnInit(){null!=this.coverImage&&this.updateCover()}ngOnChanges(s){null!=this.coverImage&&this.updateCover()}updateCover(){if(!this.coverImage)return;const s=this.scope.network.settings.configurations.enableHighQualityImage?"-hq":"",r=this.deviceService.getUserAgentInfo().isMobile?"-sm":"",l=new URL(this.coverImage.assetImageUrl),E=new URL(this.coverImage.assetImageUrl);E.searchParams.set("preset","image-viewer"),l.searchParams.set("preset",`cover${s}${r}-4x3`),l.searchParams.set("cache",(null!=this.coverImage.cache?this.coverImage.cache:0).toString()),this.viewerImage=E.toString(),this.coverImage={...this.coverImage,assetImageUrl:l.toString()}}closeImageViewer(){this.imageViewerOpen=!1}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-cover"]],inputs:{coverImage:"coverImage"},standalone:!1,features:[e.OA$],decls:16,vars:16,consts:[["coverComponent",""],["popupWrapper",""],[1,"container","p-0","m-0","cover-wrapper"],[1,"row"],["id","carouselCover",1,"carousel","slide"],[1,"carousel-inner"],[1,"carousel-item","active"],["alt","",1,"img-fluid",3,"click","src"],[1,"row","mb-2","mb-md-4","cover-metadata-wrapper"],[1,"cover-viewer-popup-base"],[3,"visibleChange","onHiding","visible","showCloseButton","showTitle","dragEnabled","title","fullScreen","enableBodyScroll","toolbarItems","wrapperAttr"],["tabindex","0",1,"cover-viewer-popup"],[1,"cover-viewer"],["id","medium-indicator","height","40","width","40","aria-hidden","true"],["alt","",1,"img-fluid",3,"src"],["id","cover-image-description",1,"cover-image-info-container"],[1,"col-auto"],[1,"cover-metadata-description"],[1,"cover-metadata-source"]],template:function(r,l){if(1&r){const E=e.RV6();e.j41(0,"div",2,0)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"img",7),e.bIt("click",function(){return m.eBV(E),m.Njj(l.openImageViewer())}),e.k0s()()()()(),e.nVh(7,Rp,4,2,"div",8),e.k0s(),e.j41(8,"div",9)(9,"dx-popup",10),e.mxI("visibleChange",function(ae){return m.eBV(E),e.DH7(l.imageViewerOpen,ae)||(l.imageViewerOpen=ae),m.Njj(ae)}),e.bIt("onHiding",function(){return m.eBV(E),m.Njj(l.closeImageViewer())}),e.j41(10,"div",11,1)(12,"figure",12),e.nrm(13,"dx-load-indicator",13)(14,"img",14),e.nVh(15,Cf,3,2,"figcaption",15),e.k0s()()()()}2&r&&(e.R7$(6),e.Y8G("src",e.mNQ(l.coverImage.assetImageUrl),e.B4B),e.R7$(),e.vxM(l.coverImage&&l.coverImage.alwaysShowImageDescription?7:-1),e.R7$(2),e.R50("visible",l.imageViewerOpen),e.Y8G("showCloseButton",!0)("showTitle",!1)("dragEnabled",!1)("title","Snip erstellen")("fullScreen",!0)("enableBodyScroll",!1)("toolbarItems",l.toolbarItems)("wrapperAttr",e.lJ4(15,Og)),e.R7$(5),e.Y8G("src",l.viewerImage,e.B4B),e.BMQ("aria-describedby",l.coverImage.text||l.coverImage.source?"cover-image-description":null),e.R7$(),e.vxM(l.coverImage.text||l.coverImage.source?15:-1))},dependencies:[Wn.B,en.i],styles:[".cover-wrapper[_ngcontent-%COMP%]{max-width:100%}img[_ngcontent-%COMP%]{width:100%;aspect-ratio:4/3;object-fit:cover;overflow:hidden}.carousel[_ngcontent-%COMP%]{cursor:auto}.cover-metadata-description[_ngcontent-%COMP%]{font-size:1rem}.cover-metadata-source[_ngcontent-%COMP%]{font-size:.8rem;font-weight:400;color:var(--textColor60)}  .cover-viewer-popup-wrapper .dx-popup-content{display:flex;justify-content:center}@media (max-width: 768px){  .cover-viewer-popup-wrapper .dx-popup-content{overflow:clip}}  .cover-viewer-popup-wrapper .dx-popup-fullscreen{background-color:#000}  .cover-viewer-popup-wrapper .cover-viewer-close-button.dx-state-hover .dx-icon,   .cover-viewer-popup-wrapper .cover-viewer-close-button.dx-state-focused .dx-icon{color:#000}  .cover-viewer-popup-wrapper .cover-viewer-close-button .dx-icon{font-size:24px;font-weight:900;color:#fff}  .cover-viewer-popup-wrapper .dx-popup-title{border-bottom:none}  .cover-viewer-popup{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:85vh}  .cover-viewer-popup .cover-viewer{display:inline-block;position:relative;text-align:left}  .cover-viewer-popup .cover-viewer img{width:unset;aspect-ratio:unset;display:block;max-height:600px;max-width:800px;z-index:1;position:relative}@media (max-width: 768px){  .cover-viewer-popup .cover-viewer img{max-width:98vw}}  .cover-viewer-popup .cover-image-info-container{position:absolute;top:100%;left:0;width:100%;margin-top:10px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;color:#fff;min-width:400px}@media (max-width: 768px){  .cover-viewer-popup .cover-image-info-container{max-width:98vw}}  .cover-viewer-popup:focus-visible{outline:2px solid white;outline-offset:3px;border-radius:3px}  .cover-viewer dx-load-indicator{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);transform:translate(-50%,-50%);z-index:0}"]}))}return o(),t})();var dc=p(3038),Ra=function(o){return o[o.Article=1]="Article",o[o.SponsoredArticle=2]="SponsoredArticle",o[o.Special=3]="Special",o[o.Snip=4]="Snip",o[o.StaticArticle=5]="StaticArticle",o}(Ra||{});let gu=(()=>{var o;class t{constructor(){this.translateSignal=(0,m.vPA)(!1),this.translationLoading=(0,m.vPA)(!1),this.translationLanguage=(0,m.vPA)("")}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),Lc=(()=>{var o;class t{constructor(s){if("string"==typeof s){this.stringId=s;let r=0;for(let l=this.stringId.length-1;l>=0;l--)r*=t.Alphabet.length,r+=t.Alphabet.indexOf(this.stringId[l]);this.id=r}else{this.id=s;let r="",l=s;for(;l>0;)r+=t.Alphabet[l%t.Alphabet.length],l=Math.floor(l/t.Alphabet.length);""===r&&(r=t.Alphabet[0]),this.stringId=r}}toNumber(){return this.id}toString(){return this.stringId}equals(s){return null!==s&&(this===s||this.id===s.id)}static equals(s,r){return null===s?null===r:s.equals(r)}static notEquals(s,r){return!t.equals(s,r)}getHashCode(){return this.id}static#e=o=()=>this.Alphabet="YUIc7v16l4FXg2BHow9yqkNWerQibPsudVJtnSRaDxhKmjf3TZ50pOCM8EGzLA"}return o(),t})();var Va=p(6347);let Id=(()=>{var o;class t{constructor(s,r,l){this.http=r,this.scopeService=l,this.iosvcApi="",this.isIcalDownloading=!1,this.copySubscribeLink=E=>navigator.clipboard?.writeText?navigator.clipboard.writeText(E):new Promise((N,ae)=>{const ze=this.renderer.createElement("textarea");this.renderer.setStyle(ze,"position","fixed"),this.renderer.setStyle(ze,"opacity","0"),ze.value=E,this.renderer.appendChild(document.body,ze),ze.focus(),ze.select();try{const dt=document.execCommand("copy");this.renderer.removeChild(document.body,ze),dt?N():ae(new Error("execCommand failed"))}catch(dt){this.renderer.removeChild(document.body,ze),ae(dt)}}),this.getSubscribeLink=()=>{let E=new Lc(this.scope.currentChapter.id).toNumber();return`${this.iosvcApi}/calendarexport/subscribeCalendar/${E}`},this.subscribeCalendarFiltered=E=>`${this.iosvcApi}/calendarexport/subscribeCalendarFiltered/${E}`,this.getSingleEventIcal=E=>{const N=`${this.iosvcApi}/calendarexport/exportEvent/${E}`,ae=this.renderer.createElement("a");this.renderer.setAttribute(ae,"href",N),this.renderer.setAttribute(ae,"download",`event_${E}.ics`),this.renderer.setStyle(ae,"display","none"),this.renderer.appendChild(document.body,ae),ae.click(),this.renderer.removeChild(document.body,ae)},this.renderer=s.createRenderer(null,null),this.scope=this.scopeService.getScope(),this.iosvcApi=`${this.scope.globalSettings.configurations.apiGatewayUrl}${this.scope.globalSettings.configurations.iosvcPath}`}downloadIcal(s){this.isIcalDownloading=!0;const r=new Lc(this.scope.currentChapter.id).toNumber();this.http.get(null!=s?`${this.iosvcApi}/calendarexport/exportCalendarFiltered/${s}`:`${this.iosvcApi}/calendarexport/exportCalendar/${r}`,{responseType:"blob"}).pipe((0,Va.j)(()=>{this.isIcalDownloading=!1})).subscribe({next:E=>{const N=URL.createObjectURL(E),ae=document.createElement("a");ae.href=N,ae.download=`eventCalendar_${r}.ics`,ae.style.display="none",document.body.appendChild(ae),ae.click(),document.body.removeChild(ae),setTimeout(()=>URL.revokeObjectURL(N),0)},error:E=>{console.error("Error iCal-Download ",E)}})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(e._9s),m.KVO(ke.Qq),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();function fu(o,t){if(1&o&&(e.j41(0,"div")(1,"div",1)(2,"div"),e.nrm(3,"i",2),e.j41(4,"span"),e.EFF(5),e.k0s()()()()),2&o){const n=e.XpG();e.R7$(2),e.HbH(n.isSnipDisplayable?"associatedMaterial-displayable-snip-icons":"associatedMaterial-content"),e.R7$(),e.BMQ("aria-label",n.isSnipDisplayable||n.isArticleDisplayable?n.scope.currentScope.network.getResourceOrKeyName("web_comment_comments_aria"):null),e.R7$(),e.HbH(e.VkB("",n.isSnipDisplayable?"associatedMaterial-displayable-snip-text":""," associatedMaterial-text")),e.R7$(),e.Lme("",n.numberOfComments," ",n.text)}}let Kl=(()=>{var o;class t{constructor(s,r,l){this.commentService=s,this.scopeService=r,this.deviceInfoService=l,this.assetReferences=[],this.isArticle=!1,this.isEvent=!1,this.isSnipDisplayable=!1,this.isArticleDisplayable=!1,this.commentCount=null,this.numberOfComments=0,this.numberOfFiles=0,this.text="",this.scope=this.scopeService.getScope()}ngOnInit(){null==this.commentCount?null!=this.assetReferences&&this.assetReferences.length>0&&this.assetReferences.forEach(s=>{this.countComments(s)}):this.numberOfComments=this.commentCount,(this.isArticle||this.isEvent)&&(this.text=this.scope.currentScope.network.getResourceOrKeyName("web_common_comments"))}countComments(s){!s.hideInComments&&!s.assetFile&&!s.assetArticle&&!s.assetStaticArticle&&this.numberOfComments++,s.childAssets&&s.childAssets.length>0&&s.childAssets.forEach(r=>{this.countComments(r)})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Hi),e.rXU(Se.A),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-associated-material"]],inputs:{assetReferences:"assetReferences",isArticle:"isArticle",isEvent:"isEvent",isSnipDisplayable:"isSnipDisplayable",isArticleDisplayable:"isArticleDisplayable",commentCount:"commentCount"},standalone:!1,decls:2,vars:1,consts:[[1,""],[1,"associatedMaterial"],["role","img",1,"fa-regular","fa-message","associatedMaterial-icons"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,fu,6,8,"div"),e.k0s()),2&r&&(e.R7$(),e.vxM(l.numberOfComments>0&&(void 0===l.scope.currentScope.chapter.settings.configurations.enableAssetComment||l.scope.currentScope.chapter.settings.configurations.enableAssetComment)?1:-1))},styles:[".associatedMaterial-text[_ngcontent-%COMP%]{padding-right:0}.associatedMaterial[_ngcontent-%COMP%]{font-size:.75rem;display:flex}.associatedMaterial[_ngcontent-%COMP%]   .associatedMaterial-content[_ngcontent-%COMP%]{display:flex;flex-direction:row}.associatedMaterial[_ngcontent-%COMP%]   .associatedMaterial-icons[_ngcontent-%COMP%]{font-size:.75rem;line-height:1.5}.associatedMaterial-displayable-snip-text[_ngcontent-%COMP%]{transform:translate(-25%)}@media (max-width: 768px){.associatedMaterial-displayable-snip-text[_ngcontent-%COMP%]{padding:0;transform:translate(-90%,90%)}}"]}))}return o(),t})();const Zt=o=>({"aria-label":o}),Ze=o=>({width:200,height:80,showTitle:!0,title:"",onShown:o,focusStateEnabled:!0});function Lt(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"button",8),e.bIt("click",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.scrollToComments(r))}),e.nrm(2,"app-associated-material",9),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_miscellaneousUserInteractions_associatedMaterial_button_ariaLabel")),e.R7$(),e.Y8G("assetReferences",n.data.assetReferences)("isArticle",n.isArticle)("isEvent",n.isEvent)}}function Hn(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",13),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.shareArticle())})("onContentReady",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.onShareButtonReady(r))}),e.k0s()}if(2&o){const n=e.XpG(3);e.Y8G("text",n.shareText)("elementAttr",e.eq3(2,Zt,n.shareText))}}function Ci(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",4)(1,"div",16),e.EFF(2),e.k0s(),e.j41(3,"ul",17)(4,"li")(5,"dx-button",18),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.share("facebookShareButton"))}),e.k0s()(),e.j41(6,"li")(7,"dx-button",19),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.share("twitterShareButton"))}),e.k0s()(),e.j41(8,"li")(9,"dx-button",20),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.share("pinterestShareButton"))}),e.k0s()()()()}if(2&o){const n=e.XpG(4);e.R7$(2),e.SpI(" ",n.shareText," "),e.R7$(3),e.Y8G("hint",n.scope.currentScope.network.getResourceOrKeyName("web_facebook_share_button_tooltip"))("elementAttr",e.eq3(7,Zt,n.scope.currentScope.network.getResourceOrKeyName("web_facebook_share_button_tooltip"))),e.R7$(2),e.Y8G("hint",n.scope.currentScope.network.getResourceOrKeyName("web_twitter_share_button_tooltip"))("elementAttr",e.eq3(9,Zt,n.scope.currentScope.network.getResourceOrKeyName("web_twitter_share_button_tooltip"))),e.R7$(2),e.Y8G("hint",n.scope.currentScope.network.getResourceOrKeyName("web_pinterest_share_button_tooltip"))("elementAttr",e.eq3(11,Zt,n.scope.currentScope.network.getResourceOrKeyName("web_pinterest_share_button_tooltip")))}}function Ji(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-drop-down-button",14),e.bIt("onContentReady",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.onShareButtonReady(r))}),e.DNE(1,Ci,10,13,"div",15),e.k0s()}if(2&o){const n=e.XpG(3);e.Y8G("text",n.shareText)("dropDownOptions",e.eq3(5,Ze,n.onShareMenuShown))("showArrowIcon",!1)("elementAttr",e.eq3(7,Zt,n.shareText)),e.R7$(),e.Y8G("dxTemplateOf","title")}}function so(o,t){if(1&o&&(e.j41(0,"div")(1,"div",10),e.nVh(2,Hn,1,4,"dx-button",11)(3,Ji,2,9,"dx-drop-down-button",12),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(2),e.vxM(n.isApp?2:3)}}function Ao(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",2)(1,"div",21),e.nrm(2,"i",22),e.k0s(),e.j41(3,"div",4)(4,"dx-select-box",23),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.translateData(r))}),e.k0s()(),e.j41(5,"div",24),e.nrm(6,"dx-load-indicator",25),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(4),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_article_translation_languageSelectBox_placeholder")))("items",n.availableTargetLanguages),e.R7$(2),e.Y8G("visible",n.translationLoading)}}function Xo(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-button",26),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.exportSingleEventIcal())}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("text",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_detail_ical_export")))("hint",n.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_detail_ical_export"))}}function As(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",6)(1,"button",8),e.bIt("click",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.scrollToComments(r))}),e.nrm(2,"app-associated-material",9),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_miscellaneousUserInteractions_associatedMaterial_button_ariaLabel")),e.R7$(),e.Y8G("assetReferences",n.data.assetReferences)("isArticle",n.isArticle)("isEvent",n.isEvent)}}function Zo(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",13),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.shareArticle())})("onContentReady",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.onShareButtonReady(r))}),e.k0s()}if(2&o){const n=e.XpG(3);e.Y8G("text",n.shareText)("elementAttr",e.eq3(2,Zt,n.shareText))}}function qs(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",4)(1,"div",16),e.EFF(2),e.k0s(),e.j41(3,"ul",17)(4,"li")(5,"dx-button",18),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.share("facebookShareButton"))}),e.k0s()(),e.j41(6,"li")(7,"dx-button",19),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.share("twitterShareButton"))}),e.k0s()(),e.j41(8,"li")(9,"dx-button",20),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.share("pinterestShareButton"))}),e.k0s()(),e.j41(10,"li")(11,"dx-button",29),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.share("whatsappShareButton"))}),e.k0s()()()()}if(2&o){const n=e.XpG(4);e.R7$(2),e.SpI(" ",n.shareText," "),e.R7$(3),e.Y8G("hint",n.scope.currentScope.network.getResourceOrKeyName("web_facebook_share_button_tooltip"))("elementAttr",e.eq3(9,Zt,n.scope.currentScope.network.getResourceOrKeyName("web_facebook_share_button_tooltip"))),e.R7$(2),e.Y8G("hint",n.scope.currentScope.network.getResourceOrKeyName("web_twitter_share_button_tooltip"))("elementAttr",e.eq3(11,Zt,n.scope.currentScope.network.getResourceOrKeyName("web_twitter_share_button_tooltip"))),e.R7$(2),e.Y8G("hint",n.scope.currentScope.network.getResourceOrKeyName("web_pinterest_share_button_tooltip"))("elementAttr",e.eq3(13,Zt,n.scope.currentScope.network.getResourceOrKeyName("web_pinterest_share_button_tooltip"))),e.R7$(2),e.Y8G("hint",n.scope.currentScope.network.getResourceOrKeyName("web_whatsapp_share_button_tooltip"))("elementAttr",e.eq3(15,Zt,n.scope.currentScope.network.getResourceOrKeyName("web_whatsapp_share_button_tooltip")))}}function fr(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-drop-down-button",28),e.bIt("onContentReady",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.onShareButtonReady(r))}),e.DNE(1,qs,12,17,"div",15),e.k0s()}if(2&o){const n=e.XpG(3);e.Y8G("text",n.shareText)("dropDownOptions",e.eq3(6,Ze,n.onShareMenuShown))("showArrowIcon",!1)("useItemTextAsTitle",!1)("elementAttr",e.eq3(8,Zt,n.shareText)),e.R7$(),e.Y8G("dxTemplateOf","title")}}function or(o,t){if(1&o&&(e.j41(0,"div",7),e.nVh(1,Zo,1,4,"dx-button",11)(2,fr,2,10,"dx-drop-down-button",27),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.vxM(n.isApp?1:2)}}function Lr(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",2)(1,"div",21),e.nrm(2,"i",22),e.k0s(),e.j41(3,"div",4)(4,"dx-select-box",23),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.translateData(r))}),e.k0s()(),e.j41(5,"div",24),e.nrm(6,"dx-load-indicator",25),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(4),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_article_translation_languageSelectBox_placeholder")))("items",n.availableTargetLanguages),e.R7$(2),e.Y8G("visible",n.translationLoading)}}function pr(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-button",26),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.exportSingleEventIcal())}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("text",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_detail_ical_export")))("hint",n.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_detail_ical_export"))}}function Pr(o,t){if(1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"div"),e.nVh(3,Lt,3,4,"div"),e.nVh(4,so,4,1,"div"),e.nVh(5,Ao,7,4,"div",2),e.nVh(6,Xo,2,3,"div"),e.k0s()()(),e.j41(7,"div",3)(8,"div",1)(9,"div",4)(10,"div",5),e.nVh(11,As,3,4,"div",6),e.nVh(12,or,3,1,"div",7),e.nVh(13,Lr,7,4,"div",2),e.nVh(14,pr,2,3,"div"),e.k0s()()()()),2&o){const n=e.XpG();e.R7$(3),e.vxM(!(n.numberOfComments>0)||n.hideUserInteraction||void 0!==n.scope.currentScope.chapter.settings.configurations.enableAssetComment&&!n.scope.currentScope.chapter.settings.configurations.enableAssetComment||n.data.archived||n.scope.profile.readOnlyMode||!n.data.enableInteraction||n.data.originNetworkSlug!=n.scope.network.slug&&null!=n.data.originNetworkSlug?-1:3),e.R7$(),e.vxM(n.scope.currentScope.network.settings.socialMediaShareEnable?4:-1),e.R7$(),e.vxM(0!==n.scope.currentScope.chapter.settings.featureTranslationProvider&&n.availableTargetLanguages.length>0?5:-1),e.R7$(),e.vxM(!n.isArticle&&n.calendarExportEnabled?6:-1),e.R7$(5),e.vxM(!(n.numberOfComments>0)||n.hideUserInteraction||void 0!==n.scope.currentScope.chapter.settings.configurations.enableAssetComment&&!n.scope.currentScope.chapter.settings.configurations.enableAssetComment||n.data.archived||n.scope.profile.readOnlyMode||!n.data.enableInteraction||n.data.originNetworkSlug!=n.scope.network.slug&&null!=n.data.originNetworkSlug?-1:11),e.R7$(),e.vxM(n.scope.currentScope.network.settings.socialMediaShareEnable?12:-1),e.R7$(),e.vxM(0!==n.scope.currentScope.chapter.settings.featureTranslationProvider&&n.availableTargetLanguages.length>0?13:-1),e.R7$(),e.vxM(!n.isArticle&&n.calendarExportEnabled?14:-1)}}let Gr=(()=>{var o;class t{constructor(s,r,l,E,N,ae,ze,dt,Kt,Vn){this.scopeService=s,this.translationService=r,this.injector=l,this.upgrade=E,this.commentService=N,this.angularLocation=ae,this.eventSignalService=ze,this.deviceInfoService=dt,this.cordovaService=Kt,this.eventExportService=Vn,this.dataChange=new e.bkB,this.isApp=!1,this.numberOfComments=0,this.availableTargetLanguages=[],this.text="",this.imageUrl="",this.isArticle=!1,this.isEvent=!1,this.translationLoading=!1,this.hideUserInteraction=!1,this.shareText="",this.showMiscellaneousUserInteractionsComponent=!1,this.calendarExportEnabled=!0,this.facebookShareUrl="https://www.facebook.com/sharer/sharer.php?u=",this.twitterShareUrl="https://twitter.com/intent/tweet",this.pinterestShareUrl="https://www.pinterest.com/pin/create/link/",this.whatsappShareUrl="whatsapp://send",this.exportSingleEventIcal=()=>{this.eventExportService.getSingleEventIcal(this.data.id)},this.scrollToComments=ci=>{let Vi=document.getElementById("comments");if(!Vi)return;let Eo=Vi.getBoundingClientRect().top+window.scrollY-200;window.scrollTo({top:Eo,behavior:"smooth"});let uo=Vi.querySelectorAll("dx-button, button, input, [tabindex]:not([tabindex='- 1']), [href]")[0];uo?.focus(),uo?.blur()},this.isApp=this.deviceInfoService.getUserAgentInfo().isApp,this.scope=s.getScope(),this.calendarExportEnabled=this.scope.currentChapter.settings.configurations.enableCalendarExport,r.getAvailableTargetLanguages().then(ci=>{ci&&Object.entries(ci).forEach(([Vi,Di])=>{this.availableTargetLanguages.push({languageCode:Vi,nativeName:Di})}),this.showMiscellaneousUserInteractionsComponent=this.numberOfComments>0||this.scope.currentScope.network.settings.socialMediaShareEnable||0!==this.scope.currentScope.chapter.settings.featureTranslationProvider&&this.availableTargetLanguages.length>0}),this.commentService.comments$.subscribe(ci=>{this.numberOfComments=ci.length}),(0,dc.QZ)(()=>{this.translationLoading=this.eventSignalService.translationLoading()},{allowSignalWrites:!0})}ngOnInit(){this.imageUrl=this.data.coverAssetReference?.assetImage.assetImageUrl,this.text=this.data.text,this.isArticle=this.data.articleListDisplayableType==Ra.Article||this.data.articleListDisplayableType==Ra.Snip||this.data.articleListDisplayableType==Ra.Special||this.data.articleListDisplayableType==Ra.SponsoredArticle||this.data.articleListDisplayableType==Ra.StaticArticle,this.isEvent=this.data.isEvent,this.shareText=this.scope.currentScope.network.getResourceOrKeyName(this.isArticle?"web_article_share":"web_event_share"),this.hideUserInteraction=1==this.scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==this.scope.profile.isRegistered&&!this.deviceInfoService.getUserAgentInfo().isApp;const s=this.upgrade.$injector;this.profileService=s.get("profileService"),this.parserService=s.get("parserService")}onShareButtonReady(s){s.component.element().querySelector(".dx-button-content").classList.add("miscellaneousUserInteractions-shareButton")}onShareMenuShown(s){s.component.content().querySelector(".dx-list-items").classList.add("row"),s.component.content().querySelectorAll(".dx-list-item").forEach(E=>{E.title="",E.classList.add("miscellaneousUserInteractions-shareButton-listItem")})}share(s){switch(s){case"facebookShareButton":this.shareFacebook();break;case"twitterShareButton":this.shareTwitter();break;case"pinterestShareButton":this.sharePinterest();break;case"whatsappShareButton":this.shareWhatsapp()}}getUrl(s=!0){const r=new URL(`${location.origin}${location.pathname}`),l=this.angularLocation.path().substring(1).split("/")[0],E=r.pathname.replace(r.pathname.substring(r.pathname.indexOf(l)),l),ae=`${r.origin}${E}${this.isArticle?"":`/${this.data.id}`}`;return s?encodeURIComponent(ae):ae}getImageUrl(){return encodeURIComponent(this.imageUrl)}shareFacebook(){window.open(this.facebookShareUrl+this.getUrl()+"&t="+encodeURIComponent(this.text),"_blank","width=600,height=460")}shareTwitter(){var s=this.twitterShareUrl+"?url="+this.getUrl()+"&text="+this.text;this.scope.currentScope.chapter.settings.seoTwitterSite&&(s=s+"&via="+this.scope.currentScope.chapter.settings.seoTwitterSite.substring(1)),window.open(s,"_blank","width=600,height=460")}sharePinterest(){window.open(this.pinterestShareUrl+"?url="+this.getUrl()+"?media="+this.getImageUrl()+"?description="+encodeURIComponent(this.text),"_blank","width=600,height=460")}shareWhatsapp(){window.open(this.whatsappShareUrl+"?text="+this.getUrl(),"_blank")}translateData(s){this.eventSignalService.translationLoading.set(!0);let r=s.value;this.isArticle?this.translationService.getTranslatedArticleDetails(this.data.id,r,this.data.variantId).then(l=>{this.data=l,this.data.language=r,this.parserService.postProcessHtml(this.data),this.profileService.updateFavoriteLanguage(r),this.eventSignalService.translationLoading.set(!1),this.dataChange.emit(this.data)}):this.translationService.getTranslatedEventDetails(this.data.id,r).then(l=>{this.data=l,this.data.language=r,this.parserService.postProcessHtml(this.data),this.profileService.updateFavoriteLanguage(r),this.eventSignalService.translationLoading.set(!1),this.dataChange.emit(this.data)})}shareArticle(){if(!this.cordovaService.isCordovaAvailable()||!window.plugins||!window.plugins.socialsharing)return;window._paq&&window._paq.push(["trackEvent","Conversion","StartShareArticle","ArticleDetail"]);let s=(this.data.heading?this.data.heading+": ":"")+this.data.text+" "+this.getUrl(!1);window.plugins.socialsharing.shareWithOptions({message:s},function(){window._paq&&window._paq.push(["trackEvent","Conversion","SuccessShareArticle","ArticleDetail"])})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Bn.M),e.rXU(m.zZn),e.rXU(He.be),e.rXU(Hi),e.rXU(S.aZ),e.rXU(gu),e.rXU(Ce.E),e.rXU(Wt.q),e.rXU(Id))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-miscellaneous-user-interactions"]],inputs:{data:"data"},outputs:{dataChange:"dataChange"},standalone:!1,decls:1,vars:1,consts:[[1,"desktop-only"],[1,"container","p-0","m-0","miscellaneousUserInteractions-wrapper"],[1,"d-flex"],[1,"mobile-only"],[1,""],[1,"share-button-wrapper"],[1,"associated-material-wrapper"],[1,"d-flex","align-items-center","justify-content-center"],["tabindex","0",1,"miscellaneousUserInteractions-associatedMaterial-button",3,"click"],[3,"assetReferences","isArticle","isEvent"],[1,"d-flex",2,"margin-left","-2px"],["stylingMode","text","type","normal","icon","fa-regular fa-share-from-square",1,"custom-icon-size","miscellaneousUserInteractions-social-media-share-button-app",3,"text","elementAttr"],["icon","fa-regular fa-share-from-square","stylingMode","text","type","normal","noDataText","",1,"custom-icon-size",3,"text","dropDownOptions","showArrowIcon","elementAttr"],["stylingMode","text","type","normal","icon","fa-regular fa-share-from-square",1,"custom-icon-size","miscellaneousUserInteractions-social-media-share-button-app",3,"onClick","onContentReady","text","elementAttr"],["icon","fa-regular fa-share-from-square","stylingMode","text","type","normal","noDataText","",1,"custom-icon-size",3,"onContentReady","text","dropDownOptions","showArrowIcon","elementAttr"],["class","",4,"dxTemplate","dxTemplateOf"],[1,"text-center","fw-bold","miscellaneousUserInteractions-social-media-share-button-menu-title"],[1,"share-icons"],["icon","fa-brands fa-facebook-f","stylingMode","text",3,"onClick","hint","elementAttr"],["icon","fa-brands fa-x-twitter","stylingMode","text",3,"onClick","hint","elementAttr"],["icon","fa-brands fa-pinterest-p","stylingMode","text",3,"onClick","hint","elementAttr"],[1,"miscellaneousUserInteractions-translation-icon"],[1,"fa-solid","fa-globe","miscellaneousUserInteractions-icons"],["displayExpr","nativeName","valueExpr","languageCode","stylingMode","underlined",1,"miscellaneousUserInteractions-translation-languageSelectBox",3,"onValueChanged","placeholder","items"],[1,"d-flex","align-items-center"],["id","small-indicator","height","20","width","20","aria-hidden","true",3,"visible"],["stylingMode","text","icon","fa-regular fa-calendar-plus",1,"event-export-button",3,"click","text","hint"],["icon","fa-regular fa-share-from-square","stylingMode","text","type","normal","noDataText","",1,"custom-icon-size",3,"text","dropDownOptions","showArrowIcon","useItemTextAsTitle","elementAttr"],["icon","fa-regular fa-share-from-square","stylingMode","text","type","normal","noDataText","",1,"custom-icon-size",3,"onContentReady","text","dropDownOptions","showArrowIcon","useItemTextAsTitle","elementAttr"],["icon","fa-brands fa-whatsapp","stylingMode","text",3,"onClick","hint","elementAttr"]],template:function(r,l){1&r&&e.nVh(0,Pr,15,8),2&r&&e.vxM(l.showMiscellaneousUserInteractionsComponent?0:-1)},dependencies:[Et.eC,Gn.e,Po.h,Wn.B,is.l,Kl],styles:[".miscellaneousUserInteractions-wrapper{font-size:1.2rem}  .miscellaneousUserInteractions-wrapper .miscellaneousUserInteractions-associatedMaterial-button{background-color:var(--backgroundColor);border:none;padding:5px 0;margin:0;transition:unset;display:block}  .miscellaneousUserInteractions-wrapper .miscellaneousUserInteractions-associatedMaterial-button:hover{outline:1px solid var(--textColor);outline-offset:3px;border-radius:2px;background-color:var(--adx-button-normal-text-hover-bg)}  .miscellaneousUserInteractions-wrapper .miscellaneousUserInteractions-associatedMaterial-button:focus-visible{outline:2px solid var(--textColor);outline-offset:3px;border-radius:2px;background-color:var(--adx-button-normal-text-hover-bg)}  .miscellaneousUserInteractions-wrapper .miscellaneousUserInteractions-social-media-share-button-app:focus-visible{outline-offset:3px}  .miscellaneousUserInteractions-wrapper .miscellaneousUserInteractions-translation-languageSelectBox{font-size:1.2rem;line-height:130%;padding-left:5px}  .miscellaneousUserInteractions-wrapper .miscellaneousUserInteractions-translation-languageSelectBox .dx-texteditor-input,   .miscellaneousUserInteractions-wrapper .miscellaneousUserInteractions-translation-languageSelectBox .dx-placeholder{font-size:.75rem}  .miscellaneousUserInteractions-wrapper .miscellaneousUserInteractions-shareButton{font-size:.75rem;padding-inline-start:0!important}  .miscellaneousUserInteractions-wrapper .miscellaneousUserInteractions-translation-icon{display:flex;align-items:center}  .miscellaneousUserInteractions-wrapper .event-export-button .dx-button-content{font-size:.8rem;margin-inline-end:3px;padding-inline-start:0!important;margin-left:-3px}  .miscellaneousUserInteractions-wrapper .event-export-button .dx-button-content i{font-size:.8rem!important;margin-inline-end:3px!important}  .miscellaneousUserInteractions-wrapper .custom-icon-size .dx-icon{font-size:.8rem;margin-inline-end:2px}  .miscellaneousUserInteractions-wrapper .miscellaneousUserInteractions-icons{font-size:.8rem}  .miscellaneousUserInteractions-wrapper .separator{width:1px;height:2rem;background-color:var(--textColor);padding:0}  .text-center.fw-bold.miscellaneousUserInteractions-social-media-share-button-menu-title{border-bottom:1px solid var(--textColor)}  .share-icons{padding:10px;font-size:.8rem;display:flex;justify-content:center;gap:16px;list-style:none}  .miscellaneousUserInteractions-shareButton-listItem{display:flex;width:33%}.desktop-only[_ngcontent-%COMP%]{display:block}.mobile-only[_ngcontent-%COMP%]{display:none}@media (max-width: 768px){  .miscellaneousUserInteractions-wrapper{font-size:1rem}.miscellaneousUserInteractions-translation-languageSelectBox[_ngcontent-%COMP%]{font-size:1rem}.desktop-only[_ngcontent-%COMP%]{display:none}.mobile-only[_ngcontent-%COMP%]{display:block;margin-top:8px}.associated-material-wrapper[_ngcontent-%COMP%]{display:grid;justify-content:center;align-content:center;margin-right:-1px}.share-button-wrapper[_ngcontent-%COMP%]{display:flex;margin-bottom:10px;flex-direction:row;column-gap:8px;flex-wrap:wrap}}"]}))}return o(),t})();var Wr=p(4925);const na=o=>[o];function mr(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-button-group",0),e.bIt("onItemClick",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onTtsButtonsChange(r))}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("items",n.ttsButtons)("selectedItemKeys",e.eq3(2,na,n.currentMode))}}let Fr=(()=>{var o;class t{constructor(s,r){if(this.deviceInfoService=s,this.scopeService=r,this.text="",this.currentMode=2,this.ttsButtons=[],this.languageCode="de",this.appIsTtsReady=!0,this.showTtsButtons=!1,this.featureAccessibilityEnabled=!1,this.onTtsButtonsChange=l=>{const E=l.itemData.mode;this.currentMode=E,this.isApp?this.handleAppTTS(E):this.handleWebTTS(E)},this.scope=this.scopeService.getScope(),this.isApp=this.deviceInfoService.getUserAgentInfo().isApp,this.languageCode=this.scope.network.settings?.languageCode,this.initializeButtons(),this.deviceInfoService.getUserAgentInfo().isApp){let l=Number(s.getUserAgentInfo().appVersion);this.appIsTtsReady=l>8}this.featureAccessibilityEnabled=this.scope.currentScope.network.settings.configurations.accessibility,this.showTtsButtons=this.isApp&&this.appIsTtsReady&&this.featureAccessibilityEnabled||!this.isApp&&this.featureAccessibilityEnabled}initializeButtons(){this.ttsButtons=this.isApp?[{text:"",icon:"fa-solid fa-circle-play",hint:"Play",mode:0},{text:"",icon:"fa-solid fa-circle-stop",hint:"Stop",mode:2}]:[{text:"",icon:"fa-solid fa-circle-play",hint:"Play",mode:0},{text:"",icon:"fa-solid fa-circle-pause",hint:"Pause",mode:1},{text:"",icon:"fa-solid fa-circle-stop",hint:"Stop",mode:2}]}handleAppTTS(s){switch(s){case 0:this.appSpeak();break;case 2:this.appStop()}}appSpeak(){if(this.text&&this.text.trim().length>0){let s=.4;this.deviceInfoService.getUserAgentInfo().isAndroid&&(s=1.5),window.TTS.speak({text:this.text,locale:this.setLocale(this.languageCode),rate:s},()=>{console.log("TTS success")},r=>{console.error("TTS error:",r)})}}appStop(){window.TTS.stop(()=>{console.log("TTS stopped")},s=>{console.error("TTS stop error:",s)})}handleWebTTS(s){switch(s){case 0:this.webSpeak();break;case 1:this.webPause();break;case 2:this.webStop()}}webSpeak(){if(speechSynthesis.paused&&speechSynthesis.speaking)speechSynthesis.resume();else if(speechSynthesis.cancel(),this.text&&this.text.trim().length>0){const s=new SpeechSynthesisUtterance(this.text);s.rate=.8,s.lang=this.setLocale(this.languageCode),speechSynthesis.speak(s)}}webPause(){speechSynthesis.speaking&&speechSynthesis.pause()}webStop(){speechSynthesis.cancel()}setLocale(s){switch(s){case"de":default:return"de-DE";case"en":return"en-US";case"fr":return"fr-FR"}}ngOnDestroy(){this.isApp?this.appStop():this.webStop()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Ce.E),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-text-to-speech"]],inputs:{text:"text"},standalone:!1,decls:1,vars:1,consts:[[1,"mt-1","custom-tts-button-group",3,"onItemClick","items","selectedItemKeys"]],template:function(r,l){1&r&&e.nVh(0,mr,2,4,"div"),2&r&&e.vxM(l.showTtsButtons?0:-1)},dependencies:[Wr.D],styles:[".custom-tts-button-group[_ngcontent-%COMP%]     .dx-button{width:2.4rem;height:2.4rem;padding:0}@media (max-width: 768px){.custom-tts-button-group[_ngcontent-%COMP%]     .dx-button{width:1.8rem;height:1.8rem}}.custom-tts-button-group[_ngcontent-%COMP%]     .dx-button .dx-icon{font-size:1.2rem}"]}))}return o(),t})();const $r=o=>({"tts-fixed-position":o}),da=(o,t)=>({"tts-fixed-position-mobile":o,"tts-fixed-position-in-app":t});function ka(o,t){if(1&o&&(e.j41(0,"div",7),e.nrm(1,"app-cover",13),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("coverImage",n.image?n.image:null==n.data||null==n.data.revisions[0]?null:n.data.revisions[0].coverAssetImages[0])}}function Oa(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",8)(1,"app-miscellaneous-user-interactions",16),e.bIt("dataChange",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onDataChanged(r))}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("data",n.data)}}function ua(o,t){if(1&o&&(e.j41(0,"div",9),e.nrm(1,"app-text-to-speech",17),e.k0s()),2&o){const n=e.XpG();e.Y8G("ngClass",e.eq3(2,$r,n.swapTtsButtonPosition)),e.R7$(),e.Y8G("text",n.data.readOnlyText)}}function Ha(o,t){if(1&o&&e.nrm(0,"app-cover",13),2&o){const n=e.XpG();e.Y8G("coverImage",n.image?n.image:null==n.data||null==n.data.revisions[0]?null:n.data.revisions[0].coverAssetImages[0])}}function il(o,t){if(1&o){const n=e.RV6();e.j41(0,"app-miscellaneous-user-interactions",16),e.bIt("dataChange",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onDataChanged(r))}),e.k0s()}if(2&o){const n=e.XpG();e.Y8G("data",n.data)}}function Xa(o,t){if(1&o&&(e.j41(0,"div",15),e.nrm(1,"app-text-to-speech",17),e.k0s()),2&o){const n=e.XpG();e.Y8G("ngClass",e.l_i(2,da,n.swapTtsButtonPosition&&!n.isInApp,n.swapTtsButtonPosition&&n.isInApp)),e.R7$(),e.Y8G("text",n.data.readOnlyText)}}let Xl=(()=>{var o;class t{set data(s){this._data=s,this.updateDerivedProperties()}get data(){return this._data}constructor(s,r,l){this.cd=s,this.accessibilitySignalService=r,this.deviceInfoService=l,this.titleVariants=[],this.isEdit=!1,this.removeOha=!1,this.isPreview=!1,this.dataChange=new e.bkB,this.image="",this.summary="",this.hasImage=!1,this.accessibilityEnabled=!1,this.swapTtsButtonPosition=!1,this.isInApp=!1,this.ttsEnabled=!1,this.isInApp=this.deviceInfoService.getUserAgentInfo().isApp}ngOnInit(){this.updateDerivedProperties(),this.data.readOnlyText=this.data?.heading+"\n"+(this.data?.text?this.data.text:this.data?.title)+"\n"+this.data?.summary+"\n"+this.data.readOnlyText,window}ngOnChanges(s){s.data&&this.updateDerivedProperties()}updateDerivedProperties(){this.data&&(this.data.isEvent?(this.summary=this.data.occurrenceString,this.data.coverImage?.assetImageUrl&&(this.image=this.data.coverImage)):this.isPreview?(this.summary=this.data?.revisions[0]?.summary,this.data.text=this.data?.revisions[0]?.texts?this.data?.revisions[0]?.texts[0]?.text:this.data?.revisions[0]?.title,this.data.heading=this.data?.revisions[0]?.texts?this.data?.revisions[0]?.texts[0]?.heading:this.data?.revisions[0]?.heading,this.image=this.data?.revisions[0]?.coverAssetImages[0]):(this.summary=this.data?.summary,this.data.coverAssetReference?.assetImage&&(this.image=this.data.coverAssetReference.assetImage)),this.hasImage=!!this.image)}onDataChanged(s){this.data=s,this.dataChange.emit(s)}updateText(s){}updateHeading(s){}onWindowScroll(){const s=window.scrollY;s>550&&!this.swapTtsButtonPosition?this.swapTtsButtonPosition=!0:s<=550&&this.swapTtsButtonPosition&&(this.swapTtsButtonPosition=!1)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(k.gRc),e.rXU(Vh),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-header"]],hostBindings:function(r,l){1&r&&e.bIt("scroll",function(){return l.onWindowScroll()},e.tSv)},inputs:{titleVariants:"titleVariants",data:"data",isEdit:"isEdit",removeOha:"removeOha",isPreview:"isPreview"},outputs:{dataChange:"dataChange"},standalone:!1,features:[e.OA$],decls:23,vars:20,consts:[[1,"desktop-only"],[1,"container","p-0","header-wrapper","m-0"],[1,"row"],[1,"col-12","title-component-wrapper"],[1,"title",3,"data","removeOha"],[1,"col"],[1,"h3","summary-wrapper","mb-3",3,"innerHTML"],[1,"col-10"],[1,"col-2"],[3,"ngClass"],[1,"mobile-only"],[1,"container","header-wrapper"],[1,"",3,"data","removeOha"],[1,"",3,"coverImage"],[3,"data"],[1,"tts-container",3,"ngClass"],[3,"dataChange","data"],[3,"text"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.nrm(4,"app-title",4),e.k0s()(),e.j41(5,"div",2)(6,"div",5),e.nrm(7,"div",6),e.nI1(8,"apicodoTranslateText"),e.nI1(9,"async"),e.k0s()(),e.j41(10,"div",2),e.nVh(11,ka,2,1,"div",7),e.nVh(12,Oa,2,1,"div",8),e.k0s(),e.nVh(13,ua,2,4,"div",9),e.k0s()(),e.j41(14,"div",10)(15,"div",11),e.nrm(16,"app-title",12)(17,"h3",6),e.nI1(18,"apicodoTranslateText"),e.nI1(19,"async"),e.nVh(20,Ha,1,1,"app-cover",13),e.nVh(21,il,1,1,"app-miscellaneous-user-interactions",14),e.k0s(),e.nVh(22,Xa,2,5,"div",15),e.k0s()),2&r&&(e.R7$(4),e.Y8G("data",l.data)("removeOha",l.removeOha),e.R7$(3),e.Y8G("innerHTML",e.bMT(9,14,e.bMT(8,12,l.summary)),e.npT),e.R7$(4),e.vxM(l.hasImage?11:-1),e.R7$(),e.vxM(3!=l.data.articleDetailDisplayableType?12:-1),e.R7$(),e.vxM(1==l.data.articleListDisplayableType||6==l.data.articleDetailDisplayableType?13:-1),e.R7$(3),e.Y8G("data",l.data)("removeOha",l.removeOha),e.R7$(),e.Y8G("innerHTML",e.bMT(19,18,e.bMT(18,16,l.summary)),e.npT),e.R7$(3),e.vxM(l.hasImage?20:-1),e.R7$(),e.vxM(3!=l.data.articleDetailDisplayableType?21:-1),e.R7$(),e.vxM(1==l.data.articleListDisplayableType||6==l.data.articleDetailDisplayableType?22:-1))},dependencies:[C.YU,zl,kp,Gr,Fr,C.Jj,Fo],styles:["h3[_ngcontent-%COMP%], .h3[_ngcontent-%COMP%]{font-family:var(--fontTertiary);font-size:1.5rem}.summary-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 auto}@media (max-width: 992px){.header-wrapper[_ngcontent-%COMP%]{padding-left:15px!important;max-width:100%;margin-top:8px}}@media (max-width: 768px){.header-wrapper[_ngcontent-%COMP%]{padding-left:0 15px 0 15px}}.desktop-only[_ngcontent-%COMP%]{display:block}.mobile-only[_ngcontent-%COMP%]{display:none}.title-component-wrapper[_ngcontent-%COMP%]{display:flex;align-items:end}.title-component-wrapper[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{width:100%}.tts-fixed-position[_ngcontent-%COMP%]{position:fixed;bottom:45px;z-index:500}@media (max-width: 768px){.desktop-only[_ngcontent-%COMP%]{display:none}.mobile-only[_ngcontent-%COMP%]{display:block}.tts-fixed-position-mobile[_ngcontent-%COMP%]{position:fixed;bottom:45px;right:15px;z-index:500}.tts-container[_ngcontent-%COMP%]{padding-left:15px}.tts-fixed-position-in-app[_ngcontent-%COMP%]{position:fixed;bottom:115px;right:15px;z-index:500}}"]}))}return o(),t})();const Ml=()=>["imprint"],ol=()=>["pp"],Ya=()=>["tos"],Md=()=>["accessibility"];function Yl(o,t){if(1&o&&(e.j41(0,"span")(1,"a",3),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("href",e.lJ4(2,ol),e.B4B),e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_privacyPolicy"))}}function rh(o,t){if(1&o&&(e.j41(0,"span")(1,"a",4),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("href",n.dataPrivacy,e.B4B),e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_privacyPolicy"))}}function ed(o,t){if(1&o&&(e.j41(0,"span")(1,"a",3),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("href",e.lJ4(2,Ya),e.B4B),e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_termsOfUse"))}}function Pd(o,t){if(1&o&&(e.j41(0,"span")(1,"a",3),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("href",e.lJ4(2,Md),e.B4B),e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_accessibility"))}}function td(o,t){if(1&o&&(e.j41(0,"span")(1,"a",5),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_cookie_consent"))}}let Ql=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.deviceInfoService=r,this.cookieManager=0,this.isApp=!1,this.scope=this.scopeService.getScope(),this.year=this.scope.year,this.dataPrivacy=this.scope.currentChapter.partner.settings.dataPrivacyUrl,this.tos=this.scope.currentScope.network.settings.configurations.enableTOS,this.accessibility=this.scope.currentScope.network.settings.configurations.accessibility,this.isApp=this.deviceInfoService.getUserAgentInfo().isApp}ngOnInit(){this.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&!navigator.userAgent.includes("Merkurist_IAB")&&!navigator.userAgent.includes("Apicodo_IAB")&&(this.cookieManager=this.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-footer"]],standalone:!1,decls:11,vars:10,consts:[[1,"footer-container"],[1,"footer-wrapper"],[1,"footer","d-flex","justify-content-around","text-uppercase"],["tabindex","0",1,"footer-font",3,"href"],["tabindex","0","target","_blank",1,"footer-font",3,"href"],["tabindex","0","href","#cookie-consent",1,"footer-font"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.nVh(3,Yl,3,3,"span"),e.nVh(4,rh,3,2,"span"),e.nVh(5,ed,3,3,"span"),e.nVh(6,Pd,3,3,"span"),e.j41(7,"span")(8,"a",3),e.EFF(9),e.k0s()(),e.nVh(10,td,3,1,"span"),e.k0s()()()),2&r&&(e.R7$(2),e.HbH(l.isApp?"footer-app-margin":""),e.R7$(),e.vxM(l.dataPrivacy?-1:3),e.R7$(),e.vxM(l.dataPrivacy?4:-1),e.R7$(),e.vxM(l.tos?5:-1),e.R7$(),e.vxM(l.accessibility?6:-1),e.R7$(2),e.Y8G("href",e.lJ4(9,Ml),e.B4B),e.R7$(),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_common_imprint")),e.R7$(),e.vxM(l.isApp||1!==l.cookieManager?-1:10))},dependencies:[Ft.B],styles:[".footer-container[_ngcontent-%COMP%]{display:flex;justify-content:center;border-top:1px solid var(--textColor)}@media (max-width: 768px){.footer-container[_ngcontent-%COMP%]{display:block}}.footer-container[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{border:1px solid var(--textColor);opacity:1}.footer-wrapper[_ngcontent-%COMP%]{width:var(--designContentWidth);display:flex;justify-content:center}@media (max-width: 768px){.footer-wrapper[_ngcontent-%COMP%]{width:100vw}}.footer-wrapper[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{margin:2rem 0;width:100%;overflow:hidden;flex-wrap:wrap}.footer-wrapper[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .footer-font[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;font-size:.9rem;font-family:var(--fontPrimary)}@media (max-width: 768px){.footer-wrapper[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .footer-font[_ngcontent-%COMP%]{white-space:break-spaces}}.footer-wrapper[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   a.footer-font[_ngcontent-%COMP%]{color:var(--colorPrimary);text-decoration:none}.footer-wrapper[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   a.footer-font[_ngcontent-%COMP%]:focus{outline-offset:0}.footer-wrapper[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   a.footer-font[_ngcontent-%COMP%]:visited{color:var(--colorPrimary)}.footer-wrapper[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   a.footer-font[_ngcontent-%COMP%]:hover{color:var(--colorPrimary);text-decoration:underline}.footer-wrapper[_ngcontent-%COMP%]   .footer-app-margin[_ngcontent-%COMP%]{margin:2rem 0 5rem}@media all and (max-width: 786px){.footer-wrapper[_ngcontent-%COMP%]{width:100%;padding:0 15px}.footer[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;flex-direction:column;text-align:center;padding:15px 0;overflow:visible}.footer-app-margin[_ngcontent-%COMP%]{margin-bottom:4rem}.footer-font[_ngcontent-%COMP%]{white-space:normal}}"]}))}return o(),t})();const fa=["*"];let Pl=(()=>{var o;class t{constructor(s,r,l){this.el=s,this.trackingService=r,this.scopeService=l,this.networkSlug=this.scopeService.getScope().network.slug,this.chapterSlug=this.scopeService.getScope().currentChapter.slug}ngAfterViewInit(){const s=this.findAllowFloatElementsOrFallback(this.el.nativeElement);this.readingTracker=this.trackingService.trackArticleReading(s,{ia:this.article.id,iar:this.article.revisionId,iav:this.article.variantId,c:this.chapterSlug,n:this.networkSlug})}findAllowFloatElementsOrFallback(s){const r=[],l=E=>{E.classList.contains("allow-float")?r.push(E):Array.from(E.children).forEach(N=>{N instanceof HTMLElement&&l(N)})};return l(s),0===r.length&&s.children.length>0?[s.children[0]]:r}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(ga),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["ngx-oculus-article-reading"],["","ngxOculusArticleReading",""]],inputs:{article:[0,"ngxArticleData","article"]},standalone:!1,ngContentSelectors:fa,decls:1,vars:0,template:function(r,l){1&r&&(e.NAR(),e.SdG(0))},encapsulation:2}))}return o(),t})();function Rd(o,t){if(1&o&&(e.j41(0,"a",3),e.nrm(1,"span",6),e.nI1(2,"apicodoTranslateText"),e.nI1(3,"async"),e.k0s()),2&o){const n=e.XpG().$implicit,s=e.XpG(2);e.Y8G("href",s.scope.currentChapter.path+n.categoryPath,e.B4B),e.R7$(),e.Y8G("innerHTML",e.bMT(3,4,e.bMT(2,2,n.shortName)),e.npT)}}function uc(o,t){if(1&o&&(e.j41(0,"a",3),e.nrm(1,"span",6),e.nI1(2,"apicodoTranslateText"),e.nI1(3,"async"),e.k0s()),2&o){const n=e.XpG().$implicit,s=e.XpG(2);e.Y8G("href",s.scope.currentChapter.path+n.categoryPath,e.B4B),e.R7$(),e.Y8G("innerHTML",e.bMT(3,4,e.bMT(2,2,n.shortName)),e.npT)}}function Ia(o,t){if(1&o&&(e.nrm(0,"span",4),e.nI1(1,"apicodoTranslateText"),e.nI1(2,"async")),2&o){const n=e.XpG().$implicit;e.Y8G("innerHTML",e.bMT(2,3,e.bMT(1,1,n.shortName)),e.npT)}}function hc(o,t){1&o&&(e.j41(0,"span",5),e.EFF(1," | "),e.k0s())}function Ba(o,t){if(1&o&&(e.j41(0,"li",2),e.nVh(1,Rd,4,6,"a",3),e.nVh(2,uc,4,6,"a",3),e.nVh(3,Ia,3,5,"span",4),e.nVh(4,hc,2,0,"span",5),e.k0s()),2&o){const n=t.$implicit,s=t.$index,r=t.$count,l=e.XpG(2);e.R7$(),e.vxM(n.slug===l.scope.currentChapter.slug||1!=n.displayableType&&2!=n.displayableType?-1:1),e.R7$(),e.vxM(n.slug===l.scope.currentChapter.slug||l.article.originNetworkSlug===l.scope.currentScope.network.slug||1!=n.displayableType&&2!=n.displayableType||null!=l.crossNetworkInfo?-1:2),e.R7$(),e.vxM(3==n.displayableType?3:-1),e.R7$(),e.vxM(s!==r-1?4:-1)}}function ah(o,t){if(1&o&&(e.j41(0,"ul",1),e.Z7z(1,Ba,5,4,"li",2,e.fX1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Dyx(n.categories)}}function sl(o,t){if(1&o&&(e.j41(0,"a",7),e.nrm(1,"span",6),e.nI1(2,"apicodoTranslateText"),e.nI1(3,"async"),e.j41(4,"span"),e.EFF(5),e.k0s()()),2&o){const n=e.XpG(2);e.Y8G("href",n.crossNetworkInfo.networkPath+n.crossNetworkInfo.chapterPath,e.B4B),e.R7$(),e.Y8G("innerHTML",e.bMT(3,5,e.bMT(2,3,n.scope.currentScope.network.getResourceOrKeyName("web_article_crossNetworkArticle"))),e.npT),e.R7$(4),e.JRh(n.crossNetworkInfo.partnerCompanyName)}}function kd(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,sl,6,7,"a",7),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.article.originNetworkSlug===n.scope.currentScope.network.slug||n.scope.currentScope.network.settings.configurations.disableCCSourceLinks||null==n.crossNetworkInfo?-1:1)}}let Vc=(()=>{var o;class t{constructor(s){this.scopeService=s,this.inDetailView=!1,this.categories=[],this.scope=s.getScope()}ngOnInit(){if(this.article.crossNetworkInfo&&(this.crossNetworkInfo=this.article.crossNetworkInfo),1==this.article.articleListDisplayableType){const s=this.scope.currentChapter.chapterGroups.flatMap(r=>r.chapters);this.categories=s.filter(r=>this.article?.chapterSlugs.includes(r.slug)).map(r=>({...r,categoryPath:`/rubrics?q=${r.id}`,displayableType:1}))}2==this.article.articleListDisplayableType&&this.categories.push({shortName:this.scope.network.getResourceOrKeyName("web_common_sponsored"),categoryPath:"/sparticles",displayableType:2}),3==this.article.articleListDisplayableType&&this.categories.push({shortName:this.scope.network.getResourceOrKeyName("web_common_sponsored"),categoryPath:"",displayableType:3})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-article-categories"]],inputs:{article:"article",inDetailView:"inDetailView"},standalone:!1,decls:3,vars:6,consts:[[1,"article-categories","text-uppercase"],[1,"categories-list"],[1,"category-item"],[1,"article-categories-button",3,"href"],[1,"no-pointer","fw-bold",3,"innerHTML"],["aria-hidden","true",1,"article-categories-divider"],[3,"innerHTML"],["target","_blank",1,"article-categories-button",3,"href"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,ah,3,0,"ul",1),e.nVh(2,kd,2,1,"div"),e.k0s()),2&r&&(e.AVh("article-categories-detail-margin",l.inDetailView&&l.categories.length>0)("article-categories-detail-margin-top",l.inDetailView&&0==l.categories.length),e.R7$(),e.vxM(l.categories.length>0?1:-1),e.R7$(),e.vxM(0===l.categories.length?2:-1))},dependencies:[Ft.B,C.Jj,Fo],styles:[".article-categories[_ngcontent-%COMP%]{font-family:var(--fontPrimary);text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box}.article-categories[_ngcontent-%COMP%]   .article-categories-divider[_ngcontent-%COMP%]{margin:0 5px}.article-categories-detail-margin-top[_ngcontent-%COMP%]{margin-top:20px}@media (max-width: 768px){.article-categories-detail-margin-top[_ngcontent-%COMP%]{margin-top:0}}.article-categories-detail-margin[_ngcontent-%COMP%]{margin-bottom:24px;margin-top:12px}@media (max-width: 768px){.article-categories-detail-margin[_ngcontent-%COMP%]{margin:0}}.article-categories-button[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor)!important;display:block;font-weight:501}@media (max-width: 768px){.article-categories-button[_ngcontent-%COMP%]{font-size:.8rem}}.article-categories-button[_ngcontent-%COMP%]:hover{text-decoration:underline}.categories-list[_ngcontent-%COMP%]{padding:0;margin:0;list-style-type:none;display:inline-flex;align-items:center;flex-wrap:wrap}.category-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center}@media (max-width: 768px){.article-categories[_ngcontent-%COMP%]{margin-bottom:.5rem;display:block;-webkit-line-clamp:none;text-overflow:initial;white-space:normal}.article-categories[_ngcontent-%COMP%]   .article-categories-divider[_ngcontent-%COMP%]{font-size:.9rem;transform:translateY(0)}}.no-pointer[_ngcontent-%COMP%]{cursor:default}"]}))}return o(),t})();const Uh=["*"];let lh=(()=>{var o;class t{constructor(s,r,l,E){this.el=s,this.trackingService=r,this.scopeService=l,this.routeTracker=E,this.networkSlug=this.scopeService.getScope().network.slug,this.chapterSlug=this.scopeService.getScope().currentChapter.slug}ngOnInit(){const s=this.el.nativeElement;this.impressionTracker=this.trackingService.trackSnipImpression(s,{is:this.snip.id,isr:this.snip.revisionId,c:this.chapterSlug,n:this.networkSlug});const r=this.routeTracker.getCurrentRouteState();this.impressionTracker.persistent="app.main-news"==r.angularJsState&&r.fromAngularJs,s.addEventListener("click",()=>{this.impressionTracker.click(),this.trackingService.clickSnip(this.impressionTracker.guid,this.snip.id)})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(ga),e.rXU(Se.A),e.rXU(Ko.o))},this.\u0275cmp=e.VBU({type:t,selectors:[["ngx-oculus-snip-impression"],["","ngxOculusSnipImpression",""]],inputs:{snip:[0,"ngxSnipData","snip"]},standalone:!1,ngContentSelectors:Uh,decls:1,vars:0,template:function(r,l){1&r&&(e.NAR(),e.SdG(0))},encapsulation:2}))}return o(),t})();const jh=["*"];let mu=(()=>{var o;class t{constructor(s,r,l){this.el=s,this.trackingService=r,this.scopeService=l,this.networkSlug=this.scopeService.getScope().network.slug,this.chapterSlug=this.scopeService.getScope().currentChapter.slug}ngAfterViewInit(){const s=this.findAllowFloatElementsOrFallback(this.el.nativeElement);this.readingTracker=this.trackingService.trackSnipReading(s,{is:this.snip.id,isr:this.snip.revisionId,c:this.chapterSlug,n:this.networkSlug})}findAllowFloatElementsOrFallback(s){const r=[],l=E=>{E.classList.contains("allow-float")?r.push(E):Array.from(E.children).forEach(N=>{N instanceof HTMLElement&&l(N)})};return l(s),0===r.length&&s.children.length>0?[s.children[0]]:r}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(ga),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-ngx-oculus-snip-reading"],["","ngxOculusSnipReading",""]],inputs:{snip:[0,"ngxSnipData","snip"]},standalone:!1,ngContentSelectors:jh,decls:1,vars:0,template:function(r,l){1&r&&(e.NAR(),e.SdG(0))},encapsulation:2}))}return o(),t})();const nd=["*"];let Bd=(()=>{var o;class t{constructor(s,r,l,E){this.el=s,this.trackingService=r,this.scopeService=l,this.routeTracker=E,this.networkSlug=this.scopeService.getScope().network.slug,this.chapterSlug=this.scopeService.getScope().currentChapter.slug}ngAfterViewInit(){const s=this.findAllowFloatElementsOrFallback(this.el.nativeElement);this.readingTracker=this.trackingService.trackSponsoredArticleReading(s,{isa:this.sponsoredArticle.id,isac:this.sponsoredArticle.sponsoredArticleCampaignId,isar:this.sponsoredArticle.revisionId,isav:this.sponsoredArticle.variantId,c:this.chapterSlug,n:this.networkSlug})}findAllowFloatElementsOrFallback(s){const r=[],l=E=>{E.classList.contains("allow-float")?r.push(E):Array.from(E.children).forEach(N=>{N instanceof HTMLElement&&l(N)})};return l(s),0===r.length&&s.children.length>0?[s.children[0]]:r}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(ga),e.rXU(Se.A),e.rXU(Ko.o))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-ngx-oculus-sparticle-reading"],["","ngxOculusSparticleReading",""]],inputs:{sponsoredArticle:[0,"ngxSparticleData","sponsoredArticle"]},standalone:!1,ngContentSelectors:nd,decls:1,vars:0,template:function(r,l){1&r&&(e.NAR(),e.SdG(0))},encapsulation:2}))}return o(),t})(),Xe=(()=>{var o;class t{constructor(s,r,l,E,N,ae){this.http=s,this.upgrade=r,this.scopeService=l,this.deviceInfoService=E,this.document=N,this.shipmentsCache={},this.deferredCache={},this.resolve=(dt,Kt,Vn)=>new Promise((ci,Vi)=>{this.deferredCache[Kt]&&this.deferredCache[Kt].length>dt&&(dt=this.deferredCache[Kt].length),this.http.get(`${this.scope.apiEndpoint}shipment/${dt}/${Kt}`+(Vn?"?targetLanguage="+Vn:"")).toPromise().then(Eo=>{this.shipmentsCache[Kt]=Eo,this.deferredCache[Kt]&&this.deferredCache[Kt].forEach(uo=>{this.shipmentsCache[Kt].length>0?uo.resolve(this.shipmentsCache[Kt].splice(0,1)[0]):uo.reject()}),this.deferredCache[Kt]=[],ci(Eo)}).catch(()=>Vi())}),this.getShipment=dt=>new Promise((Kt,Vn)=>{this.shipmentsCache[dt]&&this.shipmentsCache[dt].length>0?Kt(this.shipmentsCache[dt].splice(0,1)[0]):(this.deferredCache[dt]||(this.deferredCache[dt]=[]),this.deferredCache[dt].push({resolve:Kt,reject:Vn}))}),this.shipmentPremiumCached=null,this.shipmentPremiumNoWaitCached=null,this.getShipmentPremium=()=>{if(this.shipmentPremiumCached)return this.shipmentPremiumCached;const dt=(this.deviceInfoService.getUserAgentInfo().isMobile||this.deviceInfoService.getUserAgentInfo().isApp)&&window.innerWidth<=768;return this.shipmentPremiumCached=this.withDocumentReadyTimeout(()=>this.http.get(`${this.scope.apiEndpoint}shipment/premium/${dt}`).toPromise().then(Kt=>(Kt&&(Kt.mobile=dt),this.shipmentPremiumCached=null,Kt)).catch(Kt=>Promise.reject(Kt))),this.shipmentPremiumCached},this.getShipmentPremiumNoWait=()=>{if(this.shipmentPremiumNoWaitCached)return this.shipmentPremiumNoWaitCached;if("Redesign2024"!=this.scope.network.settings.configurations.contentRenderEngine)return this.getShipmentPremium();const dt=(this.deviceInfoService.getUserAgentInfo().isMobile||this.deviceInfoService.getUserAgentInfo().isApp)&&window.innerWidth<=768;return this.shipmentPremiumNoWaitCached=this.http.get(`${this.scope.apiEndpoint}shipment/premium/${dt}`).toPromise().then(Kt=>(Kt&&(Kt.mobile=dt),this.shipmentPremiumNoWaitCached=null,Kt)).catch(Kt=>Promise.reject(Kt)),this.shipmentPremiumNoWaitCached},this.shipmentSuperNoWaitCached=null,this.getShipmentSuper=()=>this.getShipmentSuperNoWait(),this.getShipmentSuperNoWait=()=>{if(null!=this.shipmentSuperNoWaitCached)return this.shipmentSuperNoWaitCached;const dt=(this.deviceInfoService.getUserAgentInfo().isMobile||this.deviceInfoService.getUserAgentInfo().isApp)&&window.innerWidth<=768;return this.shipmentSuperNoWaitCached=this.http.get(`${this.scope.apiEndpoint}shipment/superCampaigns/${dt}`).toPromise().then(Kt=>(Kt&&Kt.forEach(Vn=>{Vn&&(Vn.mobile=dt)}),this.shipmentSuperNoWaitCached=null,Kt)).catch(Kt=>Promise.reject(Kt)),this.shipmentSuperNoWaitCached},this.getSurveyForDeeplink=(dt,Kt)=>this.http.get(`${this.scope.apiEndpoint}shipment/survey/${dt}${Kt?"/true":"/false"}`).toPromise().then(Vn=>Vn).catch(Vn=>Promise.reject(Vn)),this.getTranslatedSurveyForDeeplink=(dt,Kt,Vn)=>this.http.get(`${this.scope.apiEndpoint}shipment/survey/translate/${dt}${Kt?"/true/":"/false/"}${Vn}`).toPromise().then(ci=>ci).catch(ci=>Promise.reject(ci)),this.clickSurvey=dt=>this.http.post(`${this.scope.apiEndpoint}shipment/survey/${dt}/click`,{}).toPromise().then(Kt=>Kt).catch(Kt=>Promise.reject(Kt));const ze=this.upgrade.$injector.get("$rootScope");this.renderer=ae.createRenderer(null,null),ze.$on("$locationChangeSuccess",()=>{this.shipmentsCache={},this.deferredCache={}}),this.scope=this.scopeService.getScope()}withDocumentReady(s){return new Promise((r,l)=>{"complete"!==this.document.readyState?this.renderer.listen(this.document,"DOMContentLoaded",()=>{s().then(r).catch(l)}):s().then(r).catch(l)})}withDocumentReadyTimeout(s,r=1500){return new Promise((l,E)=>{const N=()=>{clearTimeout(ae),s().then(l).catch(E)},ae=setTimeout(()=>{console.warn("DOMContentLoaded did not fire. Proceeding with fallback."),N()},r);if("complete"!==this.document.readyState){const ze=this.renderer.listen(this.document,"DOMContentLoaded",()=>{ze(),N()})}else N()})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(He.be),m.KVO(Se.A),m.KVO(Ce.E),m.KVO(m.qQL),m.KVO(e._9s))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const vn=o=>({"background-color":o}),h=o=>({color:o});function we(o,t){if(1&o){const n=e.RV6();e.j41(0,"a",6),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.clickBanner())}),e.j41(1,"img",7),e.bIt("load",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.onImageLoad())}),e.k0s()()}if(2&o){const n=e.XpG(2);e.Y8G("href",n.premiumShipment.uri,e.B4B),e.R7$(),e.AVh("loaded",n.imageLoaded),e.Y8G("src",n.imageUrl,e.B4B)("alt","")}}function Cn(o,t){if(1&o){const n=e.RV6();e.j41(0,"a",8),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.clickBanner())}),e.j41(1,"img",7),e.bIt("load",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.onImageLoad())}),e.k0s()()}if(2&o){const n=e.XpG(2);e.Y8G("href",n.premiumShipment.uri,e.B4B),e.R7$(),e.AVh("loaded",n.imageLoaded),e.Y8G("src",n.imageUrl,e.B4B)("alt","")}}function Ns(o,t){if(1&o){const n=e.RV6();e.j41(0,"a",8),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.clickBanner())}),e.j41(1,"img",7),e.bIt("load",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.onImageLoad())}),e.k0s()()}if(2&o){const n=e.XpG(2);e.Y8G("href",n.premiumShipment.uri,e.B4B),e.R7$(),e.AVh("loaded",n.imageLoaded),e.Y8G("src",n.imageUrl,e.B4B)("alt","")}}function vs(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.clickBanner())}),e.j41(1,"img",7),e.bIt("load",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.onImageLoad())}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.AVh("loaded",n.imageLoaded),e.Y8G("src",n.imageUrl,e.B4B)("alt","")}}function _u(o,t){if(1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.EFF(3),e.k0s(),e.j41(4,"div",3),e.nVh(5,we,2,5,"a",4)(6,Cn,2,5,"a",5)(7,Ns,2,5,"a",5)(8,vs,2,4,"div"),e.k0s()()()),2&o){let n;const s=e.XpG();e.Y8G("ngStyle",e.eq3(4,vn,null==s.premiumShipment?null:s.premiumShipment.backgroundColor)),e.R7$(2),e.Y8G("ngStyle",e.eq3(6,h,null==s.premiumShipment?null:s.premiumShipment.fontColor)),e.R7$(),e.SpI(" ",s.webShipmentPremiumTitle," "),e.R7$(2),e.vxM((n=!0)===((null==s.premiumShipment?null:s.premiumShipment.uri)&&!s.uriIsDocument&&s.inSameChapter)?5:n===((null==s.premiumShipment?null:s.premiumShipment.uri)&&!s.uriIsDocument&&!s.inSameChapter)?6:n===s.uriIsDocument?7:8)}}let yf=(()=>{var o;class t{constructor(s,r,l,E,N,ae){this.injector=s,this.trackingService=r,this.scopeService=l,this.clickService=E,this.shipmentService=N,this.elementRef=ae,this.webShipmentPremiumTitle="",this.imageUrl="",this.inSameChapter=!1,this.uriIsDocument=!1,this.shouldRenderBanner=!1,this.imageLoaded=!1;const ze=this.injector.get(He.be).$injector;this.redirectService=ze.get("redirectService"),this.oculusTrackingService=r,this.$state=ze.get("$state"),this.scope=this.scopeService.getScope(),this.miniScope=this.scopeService.getMiniScope(),this.shouldRenderBanner=this.miniScope.data.SystemSettings.hasPremiumBanner}ngAfterViewInit(){setTimeout(()=>{if(this.shouldRenderBanner){const s=this.elementRef.nativeElement.querySelector(".shipmentPremium-wrapper");s&&s.classList.add("rendered")}})}onImageLoad(){this.imageLoaded=!0}ngOnInit(){this.premiumShipment||(this.shipmentService.getShipmentPremiumNoWait().then(s=>{this.premiumShipment=s,s&&s.pin&&(this.shouldRenderBanner=!0,this.initializeShipmentData())}),this.webShipmentPremiumTitle=this.interpolateTitle())}initializeShipmentData(){this.premiumShipment&&(this.imageUrl=this.getImageUrl(),this.premiumShipment.uri&&(this.inSameChapter=this.redirectService.isSameChapterUrl(this.premiumShipment.uri),this.uriIsDocument=this.checkIfUriIsDocument(this.premiumShipment.uri)),this.initializeOculusTracking())}getImageUrl(){const s=this.scopeService.getScope().globalSettings.blobStorageCdnUrl,r=this.scopeService.getScope().globalSettings.blobStorageContainerNameShipment;return this.premiumShipment.pin?`${s}/${r}/${this.premiumShipment.pin}`+(this.premiumShipment.mobile?"?preset=premium-shipment-xs":"?preset=premium-shipment"):""}interpolateTitle(){return this.scope.network.resources.web_shipment_premium_title.replace("{chapterName}",this.scope.currentChapter.name)}checkIfUriIsDocument(s){return s.includes("/pdf/")||s.includes("/document/")||s.includes("/file/")}initializeOculusTracking(){this.premiumShipment.oculus=this.oculusTrackingService.trackPremiumBanner(this.elementRef.nativeElement,{c:this.scope.currentChapter.slug,n:this.scope.network.slug,ip:this.premiumShipment.premiumId,ipb:this.premiumShipment.premiumBannerId}),this.premiumShipment.oculus.persistent=this.$state.includes("app.main-news")}clickBanner(){this.premiumShipment.oculus.click(),this.clickService.clickPremiumPost(this.premiumShipment.oculus.guid,this.premiumShipment.pin)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(m.zZn),e.rXU(ga),e.rXU(Se.A),e.rXU(xt._),e.rXU(Xe),e.rXU(e.aKT))},this.\u0275cmp=e.VBU({type:t,selectors:[["ngx-shipment-premium"]],standalone:!1,decls:1,vars:1,consts:[[1,"shipmentPremium-wrapper",3,"ngStyle"],[1,"shipmentPremium"],[1,"shipmentPremium-attribution",3,"ngStyle"],[1,"shipmentPremium-image-wrapper"],[3,"href"],["target","_blank",3,"href"],[3,"click","href"],[1,"shipmentPremium-image",3,"load","src","alt"],["target","_blank",3,"click","href"],[3,"click"]],template:function(r,l){1&r&&e.nVh(0,_u,9,8,"div",0),2&r&&e.vxM(l.shouldRenderBanner?0:-1)},dependencies:[C.B3,Ft.B],styles:[".shipmentPremium-wrapper[_ngcontent-%COMP%]{width:100%;margin-top:15px;margin-bottom:20px}.shipmentPremium-image-wrapper[_ngcontent-%COMP%]{width:100%;position:relative;aspect-ratio:47/8;background-color:var(--backgroundColor);overflow:hidden}.shipmentPremium-image-wrapper[_ngcontent-%COMP%]:focus-within{outline:2px solid var(--textColor);outline-offset:3px;border-radius:3px}@media (max-width: 768px){.shipmentPremium-image-wrapper[_ngcontent-%COMP%]{aspect-ratio:293/80}}.shipmentPremium-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.shipmentPremium[_ngcontent-%COMP%]{position:relative;max-width:var(--designContentWidth);margin:auto;padding-bottom:0}@media all and (max-width: 767px){.shipmentPremium[_ngcontent-%COMP%]{width:100%}}.shipmentPremium-attribution[_ngcontent-%COMP%]{width:100%;text-align:right}.shipmentPremium-image[_ngcontent-%COMP%]{width:100%}@media all and (max-width: 969px){.shipmentPremium-attribution[_ngcontent-%COMP%]{padding-right:15px}}.shipmentPremium-image[_ngcontent-%COMP%]{opacity:0;transition:opacity .3s ease}.shipmentPremium-image.loaded[_ngcontent-%COMP%]{opacity:1}"]}))}return o(),t})(),wg=(()=>{var o;class t{constructor(s,r){this.http=s,this.scopeService=r,this.scope=this.scopeService.getScope()}getAdvertiserByToken(s){return this.http.get(`${this.scope.apiEndpoint}advertis0rs/${s}`).toPromise().then(r=>r).catch(r=>Promise.reject(r))}getAdvertisersByUser(){return this.http.get(`${this.scope.apiEndpoint}advertis0rs/getbyuser`).toPromise().then(s=>s).catch(s=>Promise.reject(s))}updateBillingInfo(s){return this.http.put(`${this.scope.apiEndpoint}advertis0rs/billingInfo`,s).toPromise().then(r=>r).catch(r=>Promise.reject(r))}consumeAdvertiserToken(s){return this.http.put(`${this.scope.apiEndpoint}advertis0rs/${s}`,{}).toPromise().then(r=>r).catch(r=>Promise.reject(r))}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),id=(()=>{var o;class t{constructor(s,r,l){var E=this;this.http=s,this.profileService=r,this.scopeService=l,this.articleCache={},this.listCache={swapCache:[]},this.getExtractedVariantData=N=>N&&this.articleCache[N]?{revisionTestId:this.articleCache[N].revisionTestId,heading:this.articleCache[N].heading,text:this.articleCache[N].text,coverAsset:{...this.articleCache[N].coverAsset}}:{},this.cache=N=>{if(!N.articleListDisplayableType||1!==N.articleListDisplayableType)return N;if(N.coverAssetReference?N.coverImageGuid=N.coverAssetReference.assetImage.guid:N.coverAssetReference=N.coverImageGuid?{assetImage:{assetImageUrl:`${this.scope.globalSettings.blobStorageCdnUrl}/${this.scope.globalSettings.blobStorageContainerNameImage}/${N.coverImageGuid}`,source:this.scope.currentScope.network.name,text:"Loading",cache:N.coverImageCache}}:"Redesign2024"==this.scope.network.settings.configurations.contentRenderEngine?null:{assetImage:{assetImageUrl:`${this.scope.globalSettings.blobStorageCdnUrl}/${this.scope.globalSettings.blobStorageContainerNameImage}/dummy.jpg`,source:this.scope.currentScope.network.name,text:"Symbolbild",cache:0}},this.articleCache[N.id]){const ae=this.articleCache[N.id],ze=this.getExtractedVariantData(ae.id);return Object.assign(ae,N),Object.assign(ae,ze),N.assets&&N.coverAsset&&N.coverAsset.guid&&N.assets.forEach(dt=>dt.guid!==N.coverAsset.guid||(ae.coverAsset=dt,!1)),ae}return this.articleCache[N.id]=N,N},this.getMultiLanguageTranslationSystemEnabled=()=>this.scope.network.settings.configurations?.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled??!1,this.getTranslationProviderEnabled=()=>0!==this.scope.currentChapter.settings.featureTranslationProvider,this.createArticle=()=>this.http.post(`${this.apiEndpoint}articles`,{}).toPromise(),this.getTranslatedArticles=N=>N?this.listCache["articles-"+N]?(this.listCache.swapCache=this.listCache["articles-"+N],Promise.resolve(this.listCache.swapCache)):this.http.get(`${this.apiEndpoint}articles/translate/${N}`).toPromise().then(ae=>(this.listCache["articles-"+N]=ae,this.listCache.swapCache=ae,this.listCache.swapCache)):this.getMainArticles(),this.getArticles=()=>{const N=this.getMultiLanguageTranslationSystemEnabled(),ae=this.profileService.profile,ze=this.scope.network.settings.languagePack.split("-")[0];return N&&ae.activeUserLanguage?.vendorLanguageCode&&ze!==ae.activeUserLanguage.vendorLanguageCode?this.listCache["articles-"+ae.activeUserLanguage.vendorLanguageCode]?(this.listCache.swapCache=this.listCache["articles-"+ae.activeUserLanguage.vendorLanguageCode],Promise.resolve(this.listCache.swapCache)):this.getTranslatedArticles(ae.activeUserLanguage.vendorLanguageCode).then(dt=>(this.articleCache.articles=dt,this.listCache["articles-"+ae.activeUserLanguage.vendorLanguageCode]=dt,dt.forEach(Kt=>this.cache(Kt)),this.listCache.swapCache=this.listCache["articles-"+ae.activeUserLanguage.vendorLanguageCode],this.listCache.swapCache)):this.articleCache.articles?Promise.resolve(this.articleCache.articles):this.http.get(`${this.apiEndpoint}articles`).toPromise().then(dt=>{const Kt=dt;return Kt.forEach(Vn=>this.cache(Vn)),this.articleCache.articles=Kt,this.listCache.swapCache=Kt,this.listCache.swapCache})},this.getMainArticles=(0,ei.A)(function*(){const N=E.scope.profile,ae=E.getMultiLanguageTranslationSystemEnabled(),ze=E.scope.network.settings.languagePack.split("-")[0];return ae&&N.activeUserLanguage?.vendorLanguageCode&&ze!==N.activeUserLanguage.vendorLanguageCode?E.listCache["main-articles-"+N.activeUserLanguage.vendorLanguageCode]?(E.listCache.swapCache=E.listCache["main-articles-"+N.activeUserLanguage.vendorLanguageCode],Promise.resolve(E.listCache.swapCache)):E.getTranslatedArticles(N.activeUserLanguage.vendorLanguageCode).then(dt=>(E.articleCache.articles=dt,E.listCache["main-articles-"+N.activeUserLanguage.vendorLanguageCode]=dt,dt.forEach(Kt=>E.cache(Kt)),E.listCache.swapCache=E.listCache["main-articles-"+N.activeUserLanguage.vendorLanguageCode],E.listCache.swapCache)):E.articleCache.articles?Promise.resolve(E.articleCache.articles):E.http.get(`${E.apiEndpoint}articles/mainpagearticles`).toPromise().then(dt=>{const Kt=dt;return Kt.forEach(Vn=>E.cache(Vn)),E.articleCache.articles=Kt,E.listCache.swapCache=Kt,E.listCache.swapCache})}),this.getContentConnectNetworks=()=>new Promise((N,ae)=>{this.http.get(`${this.apiEndpoint}ccNetworks`).toPromise().then(ze=>{N(ze)}).catch(()=>{ae()})}),this.getEventContentConnectNetworks=()=>new Promise((N,ae)=>{this.http.get(`${this.apiEndpoint}eventCcNetworks`).toPromise().then(ze=>{N(ze)}).catch(()=>{ae()})}),this.cachedArticlesForEventCalendar=[],this.getArticlesForEventCalendar=()=>new Promise((N,ae)=>{0===this.cachedArticlesForEventCalendar.length?this.http.get(`${this.apiEndpoint}articles/events`).toPromise().then(ze=>{let dt=ze;dt.forEach((Kt,Vn)=>{dt[Vn]=this.cache(Kt)}),this.cachedArticlesForEventCalendar=dt,N(this.cachedArticlesForEventCalendar)}).catch(()=>{ae()}):N(this.cachedArticlesForEventCalendar)}),this.getArticleIds=()=>this.http.get(`${this.apiEndpoint}articles/ids`).toPromise().then(N=>N??[]),this.getArticlesByAuthor=N=>this.http.get(`${this.apiEndpoint}articles/author/${N}`).toPromise().then(ae=>(ae&&ae.forEach((ze,dt)=>{ae[dt]=this.cache(ze)}),ae??[])),this.getArticleFromCache=N=>this.articleCache[N]||null,this.getArticlesByIds=N=>this.http.post(`${this.apiEndpoint}articles/loadMore`,N).toPromise().then(ae=>(ae&&ae.forEach((ze,dt)=>{ae[dt]=this.cache(ze)}),ae??[])),this.getArticleDetails=(N,ae)=>{let ze=`${this.apiEndpoint}articles/${N}`;return ae&&(ze+=`?v=${ae}`),this.http.get(ze).toPromise().then(dt=>(dt.detailsLoaded=!0,this.cache(dt)))},this.getTranslatedArticleDetails=(N,ae,ze)=>{let dt=`${this.apiEndpoint}articles/${N}/translate/${ae}`;return ze&&(dt+=`?v=${ze}`),this.http.post(dt,{}).toPromise().then(Kt=>(Kt.detailsLoaded=!0,Kt))},this.deleteArticle=N=>this.http.delete(`${this.apiEndpoint}articles/${N}`).toPromise(),this.publishArticle=N=>this.http.put(`${this.apiEndpoint}articles/${N.id}/publish`,N).toPromise(),this.saveArticleDetails=(N,ae)=>this.http.put(`${this.apiEndpoint}articles/${N}`,ae).toPromise(),this.getArticleRevisions=N=>this.http.get(`${this.apiEndpoint}articles/${N}/revisions`).toPromise(),this.getArticleRevisionDetails=(N,ae)=>this.http.get(`${this.apiEndpoint}articles/${N}/revisions/${ae}`).toPromise(),this.getRecommendedArticles=N=>this.http.get(`${this.apiEndpoint}articles/${N}/recommendedarticles`).toPromise().then(ae=>{const ze=ae;return ze.forEach((dt,Kt)=>{ze[Kt]=this.cache(dt)}),ze}),this.getSearch=N=>this.http.get(`${this.apiEndpoint}articles/search?searchText=${N}`).toPromise().then(ae=>{const ze=ae;return ze.forEach((dt,Kt)=>{ze[Kt]=this.cache(dt)}),ze}),this.getExitRates=N=>this.http.get(`${this.apiEndpoint}articles/${N}/exitrates`).toPromise().then(ae=>ae),this.getReport=N=>this.http.get(`${this.apiEndpoint}articles/${N}/report`).toPromise().then(ae=>ae),this.getLatestReport=N=>this.http.get(`${this.apiEndpoint}articles/${N}/report/latest`,{params:{},headers:{},ignoreLoadingBar:!0}).toPromise().then(ze=>ze),this.getElasticReport=N=>this.http.get(`${this.apiEndpoint}articles/${N}/elastic`).toPromise().then(ae=>ae),this.getChapterReport=(N,ae,ze,dt)=>{const Kt=`${this.apiEndpoint}articles/chapterreport?chapterId=${N}&articleId=${ae.id}&start=${new Date(ze).getTime()}&end=${new Date(dt).getTime()}`;return this.http.get(Kt).toPromise().then(Vn=>Vn)},this.getArticleEdit=N=>this.http.get(`${this.apiEndpoint}articles/${N}/edit`).toPromise().then(ae=>ae),this.updateArticle=N=>this.http.put(`${this.apiEndpoint}articles`,N).toPromise().then(ae=>ae),this.publishArticleRequest=N=>this.http.put(`${this.apiEndpoint}articles/${N.id}/publishRequest`,{}).toPromise().then(ae=>ae),this.like=N=>this.http.put(`${this.apiEndpoint}articles/${N}/like`,{}).toPromise().then(ae=>ae),this.checkNotification=N=>this.http.get(`${this.apiEndpoint}articles/${N}/checknotification`).toPromise().then(ae=>ae??[]),this.deleteScheduledPublish=N=>this.http.delete(`${this.apiEndpoint}articles/ScheduledPublish/${N}`).toPromise().then(()=>{console.log(`Scheduled publish for article ${N} deleted.`)}),this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint}getPublicMethods(){return{createArticle:this.createArticle,getArticles:this.getArticles,getMainArticles:this.getMainArticles,getTranslatedArticles:this.getTranslatedArticles,getArticlesForEventCalendar:this.getArticlesForEventCalendar,getArticleIds:this.getArticleIds,getArticlesByAuthor:this.getArticlesByAuthor,getArticleDetails:this.getArticleDetails,getTranslatedArticleDetails:this.getTranslatedArticleDetails,getArticleFromCache:this.getArticleFromCache,getArticleEdit:this.getArticleEdit,updateArticle:this.updateArticle,publishArticle:this.publishArticle,publishArticleRequest:this.publishArticleRequest,like:this.like,getRecommendedArticles:this.getRecommendedArticles,getSearch:this.getSearch,getExitRates:this.getExitRates,getReport:this.getReport,getLatestReport:this.getLatestReport,deleteArticle:this.deleteArticle,checkNotification:this.checkNotification,getArticlesByIds:this.getArticlesByIds,getChapterReport:this.getChapterReport,getElasticReport:this.getElasticReport,deleteScheduledPublish:this.deleteScheduledPublish,getContentConnectNetworks:this.getContentConnectNetworks,getEventContentConnectNetworks:this.getEventContentConnectNetworks}}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO($n.p),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),Gh=(()=>{var o;class t{constructor(s,r,l){this.http=s,this.scopeService=r,this.profileService=l,this.snipCache={},this.listCache={swapCache:[]},this.snipsSubject=new qt.t([]),this.snips$=this.snipsSubject.asObservable(),this.snipProject=E=>(E.id&&(E.assetsMedia=[],E.assetsFacts=[],E.assetsQuestions=[],E.assetsComments=[],E.assetReferences.forEach(N=>{if(null!==N.assetImage||null!==N.assetText&&[5,6,7,10,13].includes(N.assetText.type))E.assetsMedia.push(N);else if(null!==N.assetText)switch(N.assetText.type){case 8:E.assetsFacts.push(N);break;case 9:E.assetsQuestions.push(N);break;case 0:E.assetsComments.push(N)}})),E),this.cache=(E,N)=>{if(!E.id)return E;E.assetsMedia=[],E.assetsFacts=[],E.assetsQuestions=[],E.assetsComments=[],E.assetReferences.forEach(ze=>{if(null!==ze.assetImage||null!==ze.assetText&&[5,6,7,10,13].includes(ze.assetText.type))E.assetsMedia.push(ze);else if(null!==ze.assetText)switch(ze.assetText.type){case 8:E.assetsFacts.push(ze);break;case 9:E.assetsQuestions.push(ze);break;case 0:E.assetsComments.push(ze)}});const ae=E.id+(N||"");return this.snipCache[ae]?(Object.assign(this.snipCache[ae],E),this.snipCache[ae]):(this.snipCache[ae]=E,E)},this.getFrontpageSnips=()=>{const E=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,N=this.scope.profile,ae=this.scope.network.settings.languagePack.split("-")[0];return E&&N.activeUserLanguage?.vendorLanguageCode&&ae!==N.activeUserLanguage.vendorLanguageCode?this.getTranslatedSnipList(N.activeUserLanguage.vendorLanguageCode):this.http.get(`${this.scope.apiEndpoint}snips/frontpage`).toPromise()},this.getSnips=()=>{const E=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,N=this.scope.profile,ae=this.scope.network.settings.languagePack.split("-")[0];return E&&N.activeUserLanguage?.vendorLanguageCode&&ae!==N.activeUserLanguage.vendorLanguageCode?this.listCache["snips-"+N.activeUserLanguage.vendorLanguageCode]?(this.listCache.swapCache=this.listCache["snips-"+N.activeUserLanguage.vendorLanguageCode],Promise.resolve(this.listCache.swapCache)):this.getTranslatedSnipList(N.activeUserLanguage.vendorLanguageCode).then(ze=>(this.snipCache.snips=ze,this.listCache["snips-"+N.activeUserLanguage.vendorLanguageCode]=ze,ze.forEach(dt=>this.cache(dt)),this.listCache.swapCache=this.listCache["snips-"+N.activeUserLanguage.vendorLanguageCode],this.listCache.swapCache)):this.snipCache.snips?Promise.resolve(this.listCache.swapCache):this.http.get(`${this.scope.apiEndpoint}snips`).toPromise().then(ze=>{const dt=ze;return this.snipCache.snips=dt,this.listCache.swapCache=JSON.parse(JSON.stringify(dt)),this.listCache.swapCache.forEach(Kt=>{this.snipProject(Kt)}),dt.forEach((Kt,Vn)=>{dt[Vn]=this.cache(Kt)}),this.listCache.swapCache})},this.getTranslatedSnipList=E=>E?new Promise((N,ae)=>{if(this.listCache["snips-"+E])return this.listCache.swapCache=this.listCache["snips-"+E],this.snipsSubject.next(this.listCache.swapCache),void N(this.listCache.swapCache);this.http.post(`${this.scope.apiEndpoint}snips/translate/${E}`,{}).toPromise().then(ze=>{this.listCache["snips-"+E]=JSON.parse(JSON.stringify(ze)),this.listCache.swapCache=this.listCache["snips-"+E],this.listCache.swapCache.forEach(dt=>{this.snipProject(dt)}),this.snipCache.snips=ze,this.snipsSubject.next(this.listCache.swapCache),N(this.listCache.swapCache)}).catch(ze=>{ae(ze)})}):this.getSnips(),this.getTranslatedSnipDetails=(E,N)=>new Promise((ae,ze)=>{this.http.post(`${this.scope.apiEndpoint}snips/${E}/translate/${N}`,{}).toPromise().then(dt=>{ae(dt)}).catch(()=>{ze()})}),this.getSnipDetailsFromCache=E=>new Promise((N,ae)=>{this.snipCache[E]?N(this.snipCache[E]):ae()}),this.cachedSnipsForEventCalendar=[],this.getSnipsForEventCalendar=()=>new Promise((E,N)=>{0===this.cachedSnipsForEventCalendar.length?this.http.get(`${this.scope.apiEndpoint}snips/events`).toPromise().then(ae=>{this.cachedSnipsForEventCalendar=ae,E(this.cachedSnipsForEventCalendar)}).catch(()=>N()):E(this.cachedSnipsForEventCalendar)}),this.getSnipDetails=E=>new Promise((N,ae)=>{this.http.get(`${this.scope.apiEndpoint}snips/${E}`).toPromise().then(ze=>{N(this.cache(ze))}).catch(()=>ae())}),this.createSnip=E=>new Promise((N,ae)=>{this.http.post(`${this.scope.apiEndpoint}snips`,E).toPromise().then(ze=>{this.profileService.getProfile().then(dt=>{ze.user=dt;const Kt=this.cache(ze);if(-1===this.snipsSubject.value.findIndex(ci=>ci.id===Kt.id)){const ci=[Kt,...this.snipsSubject.value];this.snipsSubject.next(ci)}N(Kt)})}).catch(()=>ae())}),this.like=E=>new Promise((N,ae)=>{this.http.put(`${this.scope.apiEndpoint}snips/${E}/like`,{}).toPromise().then(ze=>{N(ze)}).catch(()=>ae())}),this.deleteSnip=E=>new Promise((N,ae)=>{this.http.delete(`${this.scope.apiEndpoint}snips/${E}`).toPromise().then(ze=>{let dt=this.snipsSubject.getValue();dt.filter(Vn=>Vn.id==E)[0].deleted=new Date,this.snipsSubject.next(dt),N(ze)}).catch(()=>ae())}),this.getSnipReport=E=>new Promise((N,ae)=>{this.http.post(`${this.scope.apiEndpoint}snips/report`,E).toPromise().then(ze=>{N(ze)}).catch(()=>ae())}),this.getRecommendedSnips=E=>new Promise((N,ae)=>{this.http.get(`${this.scope.apiEndpoint}snips/${E}/recommended`).toPromise().then(ze=>{let dt=ze;if(this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled){const Vn=this.scope.profile,ci=this.scope.network.settings.languagePack.split("-")[0];if(Vn.activeUserLanguage?.vendorLanguageCode&&ci!==Vn.activeUserLanguage.vendorLanguageCode){const Vi=dt.map(Di=>this.snipCache[Di.id+Vn.activeUserLanguage.vendorLanguageCode]||Di);return void N(Vi)}}dt.forEach((Vn,ci)=>{dt[ci]=this.cache(Vn)}),N(dt)}).catch(()=>ae())}),this.getReport=E=>new Promise((N,ae)=>{this.http.get(`${this.scope.apiEndpoint}snips/${E}/report`).toPromise().then(ze=>{N(ze.data)}).catch(()=>ae())}),this.getLatestReport=E=>new Promise((N,ae)=>{const ze={params:{},headers:{},ignoreLoadingBar:!0};this.http.get(`${this.scope.apiEndpoint}snips/${E}/report/latest`,ze).toPromise(),this.http.get(`${this.scope.apiEndpoint}snips/${E}/report/latest`,ze).toPromise().then(dt=>{N(dt.data)}).catch(()=>ae())}),this.deleteSnipAssets=E=>{},this.deleteSnipAsyncFromDatabase=E=>new Promise((N,ae)=>{this.http.get(`${this.scope.apiEndpoint}snips/${E}/deleteSnipAsyncFromDatabase`).toPromise().then(ze=>{N(ze.data)}).catch(()=>ae())}),this.scope=this.scopeService.getScope(),this.loadSnips()}loadSnips(){this.getSnips().then(s=>{this.snipsSubject.next(s)})}updateSnipText(s,r){var l=this;return(0,ei.A)(function*(){const E=encodeURIComponent(r),N=`${l.scope.apiEndpoint}snips/${s}/updateSnipText?text=${E}`;try{const ae=yield l.http.get(N).toPromise();if(ae){const ze=l.cache(ae),dt=l.snipsSubject.value,Kt=dt.findIndex(Vn=>Vn.id===s);if(-1!==Kt){const Vn=[...dt];Vn[Kt]=ze,l.snipsSubject.next(Vn)}else l.snipsSubject.next([ze,...dt]);return ze}throw new Error("updateSnipText: Keine Daten vom Server erhalten")}catch(ae){throw console.error("updateSnipText: Fehler beim Aktualisieren des Snip-Texts:",ae),ae}})()}setThumbnail(s,r){var l=this;return(0,ei.A)(function*(){const E=encodeURIComponent(r),N=`${l.scope.apiEndpoint}snips/${s}/updateThumbnail?assetImageGuid=${E}`;yield l.http.get(N).toPromise()})()}getPublicMethods(){return{getSnips:this.getSnips,getTranslatedSnipList:this.getTranslatedSnipList,getSnipReport:this.getSnipReport,getSnipsForEventCalendar:this.getSnipsForEventCalendar,getSnipDetails:this.getSnipDetails,getTranslatedSnipDetails:this.getTranslatedSnipDetails,getSnipDetailsFromCache:this.getSnipDetailsFromCache,createSnip:this.createSnip,like:this.like,deleteSnip:this.deleteSnip,getRecommendedSnips:this.getRecommendedSnips,getReport:this.getReport,getLatestReport:this.getLatestReport}}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(Se.A),m.KVO($n.p))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();var Wh=p(3943),Fd=p(1356);function Sg(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"img",4)(2,"img",5),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("alt",n.logoAltText)("src",n.networkLogoUrl+"&preset=web-header-logo",e.B4B),e.R7$(),e.Y8G("alt",n.logoAltText)("src",n.networkLogoDarkUrl+"&preset=web-header-logo",e.B4B)}}function zh(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"img",4)(2,"img",5),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("alt",n.logoAltText)("src",n.chapterLogoUrl+"&preset=web-header-logo",e.B4B),e.R7$(),e.Y8G("alt",n.logoAltText)("src",n.chapterLogoDarkUrl+"&preset=web-header-logo",e.B4B)}}function bf(o,t){if(1&o&&(e.j41(0,"a",2),e.nVh(1,Sg,3,4,"div"),e.nVh(2,zh,3,4,"div"),e.k0s()),2&o){const n=e.XpG();e.Y8G("href","",e.B4B),e.BMQ("aria-label",n.ariaLabel),e.R7$(),e.vxM(n.hasChapterLogo?-1:1),e.R7$(),e.vxM(n.hasChapterLogo?2:-1)}}function Bp(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"img",6)(2,"img",7),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("alt","")("src",n.networkLogoUrl+"&preset=web-header-logo",e.B4B),e.R7$(),e.Y8G("alt","")("src",n.networkLogoDarkUrl+"&preset=web-header-logo",e.B4B)}}function Im(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"img",6)(2,"img",7),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("alt","")("src",n.chapterLogoUrl+"&preset=web-header-logo",e.B4B),e.R7$(),e.Y8G("alt","")("src",n.chapterLogoDarkUrl+"&preset=web-header-logo",e.B4B)}}function Rl(o,t){if(1&o&&(e.j41(0,"div",3),e.nVh(1,Bp,3,4,"div"),e.nVh(2,Im,3,4,"div"),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.hasChapterLogo?-1:1),e.R7$(),e.vxM(n.hasChapterLogo?2:-1)}}let pc=(()=>{var o;class t{constructor(s,r){this.logoService=s,this.scopeService=r,this.isDisplayable=!1,this.hasChapterLogo=!1,this.hasChapterLogoDark=!1,this.networkLogoUrl="",this.networkLogoDarkUrl="",this.chapterLogoUrl="",this.chapterLogoDarkUrl="",this.logoAltText="",this.ariaLabel="",this.scope=this.scopeService.getScope(),this.miniScope=this.scopeService.getMiniScope()}ngOnInit(){this.hasChapterLogo=this.logoService.hasChapterLogo(this.scope.currentScope.chapter),this.hasChapterLogoDark=this.logoService.hasChapterLogoDark(this.scope.currentScope.chapter),this.networkLogoUrl=this.logoService.getNetworkLogoUrl(),this.networkLogoDarkUrl=this.logoService.getNetworkLogoDarkUrl(),this.chapterLogoUrl=this.logoService.getChapterLogoUrl(),this.chapterLogoDarkUrl=this.logoService.getChapterLogoDarkUrl(),this.logoAltText=this.scope.network.getResourceOrKeyName("web_navigation_header_logo_alt_text",{chapterName:this.scope.currentChapter.name}),this.ariaLabel=this.scope.network.getResourceOrKeyName("web_navigation_header_logo_aria-label",{chapterName:this.scope.currentChapter.name})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Il.X),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-navigation-header-logo"]],inputs:{isDisplayable:"isDisplayable"},standalone:!1,decls:5,vars:2,consts:[[1,"chapterLogo-base"],[1,"hidden-header"],["tabindex","3",1,"chapterLogo-chapterLink",3,"href"],[1,"chapterLogo-chapterLink"],[1,"chapterLogo-image","img-fluid",3,"alt","src"],[1,"chapterLogo-image-dark","img-fluid",3,"alt","src"],[1,"chapterLogo-image-displayable","img-fluid",3,"alt","src"],[1,"chapterLogo-image-dark-displayable","img-fluid",3,"alt","src"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"h1",1),e.EFF(2),e.k0s(),e.nVh(3,bf,3,4,"a",2)(4,Rl,3,2,"div",3),e.k0s()),2&r&&(e.R7$(2),e.JRh(l.miniScope.data.Title),e.R7$(),e.vxM(l.isDisplayable?4:3))},dependencies:[Ft.B],styles:[".chapterLogo-base[_ngcontent-%COMP%]{height:auto;vertical-align:top;width:auto}.chapterLogo-base[_ngcontent-%COMP%]   .chapterLogo-image[_ngcontent-%COMP%], .chapterLogo-base[_ngcontent-%COMP%]   .chapterLogo-image-dark[_ngcontent-%COMP%]{height:auto;vertical-align:top;width:auto;max-height:65px;margin-bottom:5px}.chapterLogo-base[_ngcontent-%COMP%]   .chapterLogo-image-displayable[_ngcontent-%COMP%], .chapterLogo-base[_ngcontent-%COMP%]   .chapterLogo-image-dark-displayable[_ngcontent-%COMP%]{height:auto;vertical-align:top;width:auto;margin-bottom:5px}@media (max-width: 768px){.chapterLogo-base[_ngcontent-%COMP%]   .chapterLogo-image[_ngcontent-%COMP%], .chapterLogo-base[_ngcontent-%COMP%]   .chapterLogo-image-dark[_ngcontent-%COMP%]{max-height:50px}}[data-theme=dark][_nghost-%COMP%]   .chapterLogo-image[_ngcontent-%COMP%], [data-theme=dark]   [_nghost-%COMP%]   .chapterLogo-image[_ngcontent-%COMP%], [data-theme=dark][_nghost-%COMP%]   .chapterLogo-image-displayable[_ngcontent-%COMP%], [data-theme=dark]   [_nghost-%COMP%]   .chapterLogo-image-displayable[_ngcontent-%COMP%]{display:none;visibility:hidden}[data-theme=dark][_nghost-%COMP%]   .chapterLogo-image-dark[_ngcontent-%COMP%], [data-theme=dark]   [_nghost-%COMP%]   .chapterLogo-image-dark[_ngcontent-%COMP%], [data-theme=dark][_nghost-%COMP%]   .chapterLogo-image-dark-displayable[_ngcontent-%COMP%], [data-theme=dark]   [_nghost-%COMP%]   .chapterLogo-image-dark-displayable[_ngcontent-%COMP%]{display:block;visibility:visible}"]}))}return o(),t})();const Ay=o=>({"background-color":o});function dv(o,t){if(1&o&&(e.j41(0,"span",17),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.data.heading," ")}}function ge(o,t){if(1&o&&(e.j41(0,"span",18)(1,"span",19)(2,"span",20),e.EFF(3),e.k0s()()()),2&o){const n=e.XpG(2);e.R7$(3),e.JRh(n.data.text)}}function oe(o,t){if(1&o&&(e.j41(0,"li",4)(1,"h2",16),e.nVh(2,dv,2,1,"span",17),e.nVh(3,ge,4,1,"span",18),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("id","heading-"+(null==n.data?null:n.data.id)),e.R7$(),e.vxM(n.data.heading?2:-1),e.R7$(),e.vxM(n.data.text?3:-1)}}function te(o,t){if(1&o&&(e.j41(0,"div",8),e.nrm(1,"img",21),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("src",n.imagePath,e.B4B)}}function ne(o,t){if(1&o&&(e.j41(0,"div",9)(1,"div",22),e.nrm(2,"app-navigation-header-logo",23),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ay,n.fallbackColor)),e.R7$(),e.Y8G("isDisplayable",!0)}}function ve(o,t){if(1&o&&(e.j41(0,"li",13),e.nrm(1,"app-associated-material",24),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("assetReferences",n.data.assetReferences)("commentCount",n.data.commentCount)("isArticleDisplayable",!0)}}let Ge=(()=>{var o;class t{constructor(s,r,l,E){this.deviceService=s,this.scopeService=r,this.displayableFallbackCoverService=l,this.themingService=E,this.imagePath="",this.isFallback=!1,this.fallbackColor="",this.hideUserInteraction=!1,this.isLinkArticle=!1,this.imageAltText="",this.hasCorporateBackgroundColor=!1,this.scope=this.scopeService.getScope(),this.themingServiceSubscription=this.themingService.themingChanged$.subscribe(N=>{this.hasCorporateBackgroundColor="dark"==N.resolvedTheme&&this.scope.network.settings.colorPrimaryBackgroundDark||"light"==N.resolvedTheme&&this.scope.network.settings.colorPrimaryBackground})}ngOnInit(){let s=this.deviceService.getUserAgentInfo();this.data.coverImageGuid&&"dummy.jpg"!=this.data.coverImageGuid?this.imagePath=`${this.data.coverAssetReference.assetImage.assetImageUrl}?preset=mainpage-article-cover${s.isMobile?"-mobile":""}${this.scope.network.settings.configurations.enableHighQualityImage?"-hq":""}&cache=${this.data.coverAssetReference.assetImage.cache}`:(this.isFallback=!0,this.fallbackColor=this.displayableFallbackCoverService.getRandomNetworkColor()),this.data.articleExternalLink?(this.articlePath=this.data.articleExternalLink,this.linkTarget="_blank",this.isLinkArticle=!0):(this.articlePath=`${this.scope.currentScope.chapter.path}${this.data.path}/${this.data.variantId}`,this.linkTarget=""),this.imageAltText=this.data?.coverImageText,this.hideUserInteraction=1==this.scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==this.scope.profile.isRegistered&&!s.isApp}ngOnDestroy(){this.themingServiceSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Ce.E),e.rXU(Se.A),e.rXU(ul),e.rXU(oo))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-displayable-lead-article-mobile"]],inputs:{data:"data"},standalone:!1,decls:21,vars:18,consts:[[1,"displayable-anchor-text","d-block",3,"href","target"],[1,"list-unstyled","m-0","p-0","displayable-wrapper",2,"min-width","100%","height","100%"],[1,"displayable-flexible-text-row","row"],["role","presentation",1,"list-unstyled"],["role","none"],[1,"oha-wrapper"],[1,"float-end",3,"article","source","isLinkArticle"],[1,"image-container"],[1,"displayable-image-wrapper"],[1,"displayable-image-fallback-wrapper"],[1,"mt-1"],[1,"displayable-summary-wrapper","mb-2",3,"id","innerHTML"],[1,"mt-1","d-flex","gap-2","align-items-baseline"],["role","none",1,"associated-material-container"],["role","none",1,"article-categories-wrapper"],[3,"article"],[1,"header-wrapper",3,"id"],[1,"displayable-heading-wrapper","mb-1"],[1,"displayable-flexible-text-row"],[1,"displayable-text-wrapper","mb-1","col-12"],[1,"displayable-text","mb-0"],["loading","lazy","decoding","async",3,"src","alt"],["role","img",1,"displayable-image-fallback",3,"ngStyle"],["aria-hidden","true",3,"isDisplayable"],[3,"assetReferences","commentCount","isArticleDisplayable"]],template:function(r,l){1&r&&(e.j41(0,"a",0)(1,"ul",1)(2,"li",2)(3,"ul",3)(4,"li",4)(5,"div")(6,"div",5),e.nrm(7,"app-oha",6),e.k0s()()(),e.nVh(8,oe,4,3,"li",4),e.k0s()(),e.j41(9,"li",7),e.nVh(10,te,2,1,"div",8)(11,ne,3,4,"div",9),e.k0s(),e.j41(12,"li",10),e.nrm(13,"div",11),e.nI1(14,"apicodoTranslateText"),e.nI1(15,"async"),e.k0s(),e.j41(16,"li",12)(17,"ul",3),e.nVh(18,ve,2,3,"li",13),e.j41(19,"li",14),e.nrm(20,"app-article-categories",15),e.k0s()()()()()),2&r&&(e.Y8G("href",l.articlePath,e.B4B)("target",l.linkTarget),e.BMQ("rel","_blank"===l.linkTarget?"noopener noreferrer":null)("aria-labelledby","heading-"+(null==l.data?null:l.data.id))("aria-describedby","teaser-"+(null==l.data?null:l.data.id)),e.R7$(7),e.Y8G("article",l.data)("source","ArticleDisplayable")("isLinkArticle",l.isLinkArticle),e.R7$(),e.vxM(l.data.heading||l.data.text?8:-1),e.R7$(2),e.vxM(l.isFallback?11:10),e.R7$(3),e.Y8G("id","teaser-"+(null==l.data?null:l.data.id))("innerHTML",e.bMT(15,16,e.bMT(14,14,l.data.teaser)),e.npT),e.R7$(5),e.vxM(l.data.commentCount>0&&!l.hideUserInteraction&&(void 0===l.scope.currentScope.chapter.settings.configurations.enableAssetComment||l.scope.currentScope.chapter.settings.configurations.enableAssetComment)&&!l.data.archived&&!l.scope.profile.readOnlyMode&&l.data.enableInteraction&&l.data.originNetworkSlug==l.scope.network.slug?18:-1),e.R7$(2),e.Y8G("article",l.data))},dependencies:[C.B3,Ft.B,Hl,Vc,Kl,pc,C.Jj,Fo],styles:[".displayable-flexible-text-column[_ngcontent-%COMP%]{display:contents}.article-categories-wrapper[_ngcontent-%COMP%]{font-size:.75rem;display:flex;justify-content:end;margin-left:auto}.displayable-flexible-text-row[_ngcontent-%COMP%]{margin-bottom:-6px}.displayable-flexible-text-row[_ngcontent-%COMP%]   .header-wrapper[_ngcontent-%COMP%]{transform:translateY(-20px);flex-direction:column}.drop-cap-heading[_ngcontent-%COMP%]{position:relative;overflow:hidden}.drop-cap-heading[_ngcontent-%COMP%]:first-letter{float:left;font-size:6rem;line-height:1;margin-right:.1rem;margin-top:-.5rem}.mobile-only[_ngcontent-%COMP%]{display:none}.align-text-image-containers[_ngcontent-%COMP%]{position:relative}.align-bottom[_ngcontent-%COMP%]{position:absolute;bottom:0}.displayable-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor)}.displayable-content-wrapper[_ngcontent-%COMP%]{display:contents}.displayable-heading-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 auto;word-wrap:unset;font-family:var(--fontPrimary);display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:1rem;font-weight:400;line-height:1.2em;min-height:1rem}.image-container[_ngcontent-%COMP%]{flex:0 0 auto;width:50%}@media (max-width: 768px){.image-container[_ngcontent-%COMP%]{width:100%}}.displayable-text-wrapper[_ngcontent-%COMP%]   .displayable-text[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;word-wrap:unset;font-family:var(--fontSecondary);font-size:2rem;margin-top:0;font-weight:700;color:var(--textColor60);margin-bottom:.4em;display:block;box-sizing:border-box;line-height:1.1em}.displayable-text-wrapper[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:var(--fontSecondary);font-size:1.75rem;margin-top:0;font-weight:700}.displayable-fallback-text-wrapper[_ngcontent-%COMP%]:first-letter{font-size:6.875rem;font-weight:900;float:left}.displayable-fallback-text-wrapper[_ngcontent-%COMP%]{display:-webkit-box;text-overflow:ellipsis;overflow:hidden;height:100%;-webkit-line-clamp:none;-webkit-box-orient:unset}.displayable-fallback-text-wrapper[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:var(--fontSecondary);font-size:2.188rem;margin-top:0;font-weight:700}.displayable-summary-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 auto;word-wrap:unset;font-family:var(--fontPrimary);overflow:hidden;line-height:1.2;font-size:1rem;margin-bottom:0rem}.displayable-image-wrapper[_ngcontent-%COMP%]{width:100%;height:100%}.displayable-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{aspect-ratio:4/3;overflow:hidden;object-fit:cover;width:100%}.oha-wrapper[_ngcontent-%COMP%]{height:1.813rem;margin-left:2rem}.fallback-oha-wrapper[_ngcontent-%COMP%]{transform:translateY(-60%);height:2.813rem}[_nghost-%COMP%]     .lead-article button.oha{position:relative;z-index:1;width:65px;height:65px}.article-categories-wrapper[_ngcontent-%COMP%]{font-size:.75rem;line-height:1.5}.card[_ngcontent-%COMP%]{border:none}.displayable-anchor-text[_ngcontent-%COMP%]{color:var(--textColor)!important;text-decoration:none;display:block}.displayable-image-fallback[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;aspect-ratio:4/3}.displayable-image-fallback[_ngcontent-%COMP%]   .fallback-image[_ngcontent-%COMP%]{max-width:80%;max-height:50%}.associated-material-container[_ngcontent-%COMP%]{padding-top:3px}.displayable-flexible-text-column[_ngcontent-%COMP%]{width:50%;flex:0 0 auto;display:unset}.displayable-flexible-text-row[_ngcontent-%COMP%]{width:unset}.mobile-only[_ngcontent-%COMP%]{display:block;padding-left:16px;padding-right:16px}.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset;display:unset;text-overflow:unset;overflow:unset;margin-bottom:0rem}"]}))}return o(),t})();const Je=o=>({"background-color":o});function pt(o,t){if(1&o&&(e.j41(0,"li",7)(1,"div",23),e.nrm(2,"img",24),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.Y8G("src",e.mNQ(n.imagePath),e.B4B)("alt",n.imageAltText)}}function Tt(o,t){if(1&o&&(e.j41(0,"li",7)(1,"div",25)(2,"div",26),e.nrm(3,"app-navigation-header-logo",27),e.k0s()()()),2&o){const n=e.XpG();e.R7$(2),e.Y8G("ngStyle",e.eq3(2,Je,n.fallbackColor)),e.R7$(),e.Y8G("isDisplayable",!0)}}function $t(o,t){if(1&o&&(e.j41(0,"span",29),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.data.heading," ")}}function yn(o,t){if(1&o&&(e.j41(0,"span",30)(1,"span",31)(2,"span",32),e.EFF(3),e.k0s()()()),2&o){const n=e.XpG(2);e.R7$(3),e.JRh(n.data.text)}}function hi(o,t){if(1&o&&(e.j41(0,"li",15)(1,"h2",28),e.nVh(2,$t,2,1,"span",29),e.nVh(3,yn,4,1,"span",30),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("id","heading-"+(null==n.data?null:n.data.id)),e.R7$(),e.vxM(n.data.heading?2:-1),e.R7$(),e.vxM(n.data.text?3:-1)}}function wi(o,t){if(1&o&&(e.j41(0,"div",20),e.nrm(1,"app-associated-material",33),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("assetReferences",n.data.assetReferences)("commentCount",n.data.commentCount)("isArticleDisplayable",!0)}}let Ui=(()=>{var o;class t{constructor(s,r,l,E){this.deviceService=s,this.scopeService=r,this.displayableFallbackCoverService=l,this.themingService=E,this.imagePath="",this.isFallback=!1,this.fallbackColor="",this.hideUserInteraction=!1,this.isLinkArticle=!1,this.imageAltText="",this.hasCorporateBackgroundColor=!1,this.scope=this.scopeService.getScope(),this.themingServiceSubscription=this.themingService.themingChanged$.subscribe(N=>{this.hasCorporateBackgroundColor="dark"==N.resolvedTheme&&this.scope.network.settings.colorPrimaryBackgroundDark||"light"==N.resolvedTheme&&this.scope.network.settings.colorPrimaryBackground})}ngOnInit(){let s=this.deviceService.getUserAgentInfo();this.data.coverImageGuid&&"dummy.jpg"!=this.data.coverImageGuid?this.imagePath=`${this.data.coverAssetReference.assetImage.assetImageUrl}?preset=mainpage-article-cover${s.isMobile?"-mobile":""}${this.scope.network.settings.configurations.enableHighQualityImage?"-hq":""}&cache=${this.data.coverAssetReference.assetImage.cache}`:(this.isFallback=!0,this.fallbackColor=this.displayableFallbackCoverService.getRandomNetworkColor()),this.data.articleExternalLink?(this.articlePath=this.data.articleExternalLink,this.linkTarget="_blank",this.isLinkArticle=!0):(this.articlePath=`${this.scope.currentScope.chapter.path}${this.data.path}/${this.data.variantId}`,this.linkTarget=""),this.imageAltText=this.data?.coverImageText,this.hideUserInteraction=1==this.scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==this.scope.profile.isRegistered&&!s.isApp}ngOnDestroy(){this.themingServiceSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Ce.E),e.rXU(Se.A),e.rXU(ul),e.rXU(oo))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-displayable-lead-article-image-left"]],inputs:{data:"data"},standalone:!1,decls:28,vars:17,consts:[["ngxOculusArticleImpressionComponent","",1,"lead-article",3,"ngClass","ngxArticleData"],[1,"lead-article-mobile"],[3,"data"],[1,"lead-article-desktop"],[1,"displayable-anchor-text",3,"href","target"],[1,"container","p-0","displayable-wrapper",2,"min-width","100%","height","100%"],[1,"row","g-0","list-unstyled"],[1,"image-container"],[1,"col-12","col-md-6","align-text-image-containers"],[1,"displayable-flexible-text-column"],[1,"card-body","displayable-content-wrapper"],["role","presentation",1,"list-unstyled","headding"],["role","none"],[1,"oha-wrapper"],[1,"float-end",3,"article","source","isLinkArticle"],["role","none",1,""],[1,"row","displayable-flexible-text-row"],[1,"col-12"],[1,"displayable-summary-wrapper",3,"innerHTML"],[1,"displayable-flexible-text-row","d-flex","gap-2","align-bottom","align-items-baseline"],[1,""],[1,"article-categories-wrapper"],[3,"article"],[1,"displayable-image-wrapper"],["loading","lazy",3,"src","alt"],[1,"displayable-image-fallback-wrapper"],[1,"displayable-image-fallback",3,"ngStyle"],[3,"isDisplayable"],[1,"header-wrapper",3,"id"],[1,"displayable-heading-wrapper","mb-1"],[1,"displayable-flexible-text-row"],[1,"displayable-text-wrapper","mb-1"],[1,"displayable-text","mb-0"],[3,"assetReferences","commentCount","isArticleDisplayable"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"app-displayable-lead-article-mobile",2),e.k0s(),e.j41(3,"div",3)(4,"a",4)(5,"div",5)(6,"ul",6),e.nVh(7,pt,3,3,"li",7)(8,Tt,4,4,"li",7),e.j41(9,"li",8)(10,"div",9)(11,"div",10)(12,"div")(13,"ul",11)(14,"li",12)(15,"div")(16,"div",13),e.nrm(17,"app-oha",14),e.k0s()()(),e.nVh(18,hi,4,3,"li",15),e.k0s(),e.j41(19,"div",16)(20,"div",17),e.nrm(21,"div",18),e.nI1(22,"apicodoTranslateText"),e.nI1(23,"async"),e.k0s()(),e.j41(24,"div",19),e.nVh(25,wi,2,3,"div",20),e.j41(26,"div",21),e.nrm(27,"app-article-categories",22),e.k0s()()()()()()()()()()()),2&r&&(e.Y8G("ngClass",l.hasCorporateBackgroundColor?"lead-article-background-color":"lead-article-background-color-fallback")("ngxArticleData",l.data),e.R7$(2),e.Y8G("data",l.data),e.R7$(2),e.Y8G("href",l.articlePath,e.B4B)("target",l.linkTarget),e.R7$(3),e.vxM(l.isFallback?8:7),e.R7$(10),e.Y8G("article",l.data)("source","ArticleDisplayable")("isLinkArticle",l.isLinkArticle),e.R7$(),e.vxM(l.data.heading||l.data.text?18:-1),e.R7$(3),e.Y8G("innerHTML",e.bMT(23,15,e.bMT(22,13,l.data.teaser)),e.npT),e.R7$(4),e.vxM(l.data.commentCount>0&&!l.hideUserInteraction&&(void 0===l.scope.currentScope.chapter.settings.configurations.enableAssetComment||l.scope.currentScope.chapter.settings.configurations.enableAssetComment)&&!l.data.archived&&!l.scope.profile.readOnlyMode&&l.data.enableInteraction&&l.data.originNetworkSlug==l.scope.network.slug?25:-1),e.R7$(2),e.Y8G("article",l.data))},dependencies:[C.YU,C.B3,Ft.B,Nc,Hl,Vc,Kl,pc,Ge,C.Jj,Fo],styles:[".displayable-flexible-text-column[_ngcontent-%COMP%]{display:contents}.article-categories-wrapper[_ngcontent-%COMP%]{font-size:.75rem}@media (max-width: 768px){.article-categories-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:end;margin-left:auto}}.displayable-flexible-text-row[_ngcontent-%COMP%]{width:100%;margin-bottom:-6px}.displayable-flexible-text-row[_ngcontent-%COMP%]   .header-wrapper[_ngcontent-%COMP%]{transform:translateY(-20px);flex-direction:column}.drop-cap-heading[_ngcontent-%COMP%]{position:relative;overflow:hidden}.drop-cap-heading[_ngcontent-%COMP%]:first-letter{float:left;font-size:6rem;line-height:1;margin-right:.1rem;margin-top:-.5rem}.align-text-image-containers[_ngcontent-%COMP%]{position:relative;padding-left:10px}.align-bottom[_ngcontent-%COMP%]{position:absolute;bottom:0}.displayable-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor)}.displayable-content-wrapper[_ngcontent-%COMP%]{display:contents}.displayable-heading-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 auto;word-wrap:unset;font-family:var(--fontPrimary);display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:1rem;font-weight:400;line-height:1.2em;min-height:1rem}.image-container[_ngcontent-%COMP%]{flex:0 0 auto;width:50%}@media (max-width: 768px){.image-container[_ngcontent-%COMP%]{width:100%}}.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;margin-bottom:1rem}@media (max-width: 768px){.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-text-wrapper[_ngcontent-%COMP%]   .displayable-text[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;word-wrap:unset;font-family:var(--fontSecondary);font-size:2rem;margin-top:0;font-weight:700;color:var(--textColor60);margin-bottom:.4em;display:block;box-sizing:border-box;line-height:1.2em}.displayable-text-wrapper[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:var(--fontSecondary);font-size:1.75rem;margin-top:0;font-weight:700}.displayable-fallback-text-wrapper[_ngcontent-%COMP%]:first-letter{font-size:6.875rem;font-weight:900;float:left}.displayable-fallback-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;height:100%}@media (max-width: 768px){.displayable-fallback-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-fallback-text-wrapper[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:var(--fontSecondary);font-size:2.188rem;margin-top:0;font-weight:700}.displayable-summary-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 auto;word-wrap:unset;font-family:var(--fontTertiary);-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;line-height:1.3;font-size:1.3rem;margin-bottom:3.5rem}@media (max-width: 768px){.displayable-summary-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-image-wrapper[_ngcontent-%COMP%]{width:100%;height:100%}.displayable-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{aspect-ratio:4/3;overflow:hidden;object-fit:cover;width:100%}.fallback-oha-wrapper[_ngcontent-%COMP%]{transform:translateY(-60%);height:2.813rem}[_nghost-%COMP%]     .lead-article button.oha{width:4.2rem;height:4.2rem;position:relative;z-index:1}@media (max-width: 768px){[_nghost-%COMP%]     .lead-article button.oha{width:65px;height:65px}}.article-categories-wrapper[_ngcontent-%COMP%]{font-size:.75rem;line-height:1.5}.card[_ngcontent-%COMP%]{border:none}.displayable-anchor-text[_ngcontent-%COMP%]{color:var(--textColor)!important;text-decoration:none;display:block}.displayable-image-fallback[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;aspect-ratio:4/3}.displayable-image-fallback[_ngcontent-%COMP%]   .fallback-image[_ngcontent-%COMP%]{max-width:80%;max-height:50%}.lead-article-mobile[_ngcontent-%COMP%]{display:none}.lead-article-desktop[_ngcontent-%COMP%]{display:unset}.headding[_ngcontent-%COMP%]{transform:translateY(5px)}@media (max-width: 768px){.lead-article-mobile[_ngcontent-%COMP%]{display:block;padding:24px}.lead-article-desktop[_ngcontent-%COMP%]{display:none}}"]}))}return o(),t})();const fo=o=>({"background-color":o});function Io(o,t){if(1&o&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.data.heading," ")}}function ts(o,t){if(1&o&&(e.j41(0,"span",26)(1,"span",27)(2,"span",28),e.EFF(3),e.k0s()()()),2&o){const n=e.XpG(2);e.R7$(3),e.JRh(n.data.text)}}function Ms(o,t){if(1&o&&(e.j41(0,"li",15)(1,"h2",24),e.nVh(2,Io,2,1,"span",25),e.nVh(3,ts,4,1,"span",26),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("id","heading-"+(null==n.data?null:n.data.id)),e.R7$(),e.vxM(n.data.heading?2:-1),e.R7$(),e.vxM(n.data.text?3:-1)}}function Ws(o,t){if(1&o&&(e.j41(0,"div",20),e.nrm(1,"app-associated-material",29),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("assetReferences",n.data.assetReferences)("commentCount",n.data.commentCount)("isArticleDisplayable",!0)}}function sr(o,t){if(1&o&&(e.j41(0,"li",23)(1,"div",30),e.nrm(2,"img",31),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.Y8G("src",e.mNQ(n.imagePath),e.B4B)("alt",e.mNQ(n.imageAltText))}}function Qa(o,t){if(1&o&&(e.j41(0,"li",23)(1,"div",32)(2,"div",33),e.nrm(3,"app-navigation-header-logo",34),e.k0s()()()),2&o){const n=e.XpG();e.R7$(2),e.Y8G("ngStyle",e.eq3(2,fo,n.fallbackColor)),e.R7$(),e.Y8G("isDisplayable",!0)}}let gc=(()=>{var o;class t{constructor(s,r,l,E){this.deviceService=s,this.scopeService=r,this.displayableFallbackCoverService=l,this.themingService=E,this.imagePath="",this.isFallback=!1,this.fallbackColor="",this.hideUserInteraction=!1,this.isLinkArticle=!1,this.imageAltText="",this.hasCorporateBackgroundColor=!1,this.scope=this.scopeService.getScope(),this.themingServiceSubscription=this.themingService.themingChanged$.subscribe(N=>{this.hasCorporateBackgroundColor="dark"==N.resolvedTheme&&this.scope.network.settings.colorPrimaryBackgroundDark||"light"==N.resolvedTheme&&this.scope.network.settings.colorPrimaryBackground})}ngOnInit(){let s=this.deviceService.getUserAgentInfo();this.imageAltText=this.data?.coverImageText,this.data.coverImageGuid&&"dummy.jpg"!=this.data.coverImageGuid?this.imagePath=`${this.data.coverAssetReference.assetImage.assetImageUrl}?preset=mainpage-article-cover${s.isMobile?"-mobile":""}${this.scope.network.settings.configurations.enableHighQualityImage?"-hq":""}&cache=${this.data.coverAssetReference.assetImage.cache}`:(this.isFallback=!0,this.fallbackColor=this.displayableFallbackCoverService.getRandomNetworkColor()),this.data.articleExternalLink?(this.articlePath=this.data.articleExternalLink,this.linkTarget="_blank",this.isLinkArticle=!0):(this.articlePath=`${this.scope.currentScope.chapter.path}${this.data.path}/${this.data.variantId}`,this.linkTarget=""),this.hideUserInteraction=1==this.scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==this.scope.profile.isRegistered&&!s.isApp}ngOnDestroy(){this.themingServiceSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Ce.E),e.rXU(Se.A),e.rXU(ul),e.rXU(oo))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-displayable-lead-article-image-right"]],inputs:{data:"data"},standalone:!1,decls:28,vars:17,consts:[["ngxOculusArticleImpressionComponent","",1,"lead-article",3,"ngClass","ngxArticleData"],[1,"lead-article-mobile"],[3,"data"],[1,"lead-article-desktop"],[1,"displayable-anchor-text",3,"href","target"],[1,"container","p-0","displayable-wrapper",2,"min-width","100%","height","100%"],[1,"list-unstyled","row","g-0"],[1,"col-12","text-container","align-text-image-containers"],[1,"displayable-flexible-text-column"],[1,"card-body","displayable-content-wrapper"],[1,"desktop-only"],["role","presentation",1,"list-unstyled"],["role","none"],[1,"oha-wrapper"],[1,"float-end",3,"article","source","isLinkArticle"],["role","none",1,"headding"],[1,"row","displayable-flexible-text-row"],[1,"col-12"],[1,"displayable-summary-wrapper",3,"innerHTML"],[1,"displayable-flexible-text-row","d-flex","gap-2","align-bottom","align-items-baseline"],[1,""],[1,"article-categories-wrapper"],[3,"article"],[1,"image-container"],[1,"header-wrapper",3,"id"],[1,"displayable-heading-wrapper","mb-1"],[1,"displayable-flexible-text-row"],[1,"displayable-text-wrapper","mb-1"],[1,"displayable-text","mb-0"],[3,"assetReferences","commentCount","isArticleDisplayable"],[1,"displayable-image-wrapper"],["loading","lazy",3,"src","alt"],[1,"displayable-image-fallback-wrapper"],[1,"displayable-image-fallback",3,"ngStyle"],[3,"isDisplayable"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"app-displayable-lead-article-mobile",2),e.k0s(),e.j41(3,"div",3)(4,"a",4)(5,"div",5)(6,"ul",6)(7,"li",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"ul",11)(12,"li",12)(13,"div")(14,"div",13),e.nrm(15,"app-oha",14),e.k0s()()(),e.nVh(16,Ms,4,3,"li",15),e.k0s(),e.j41(17,"div",16)(18,"div",17),e.nrm(19,"div",18),e.nI1(20,"apicodoTranslateText"),e.nI1(21,"async"),e.k0s()(),e.j41(22,"div",19),e.nVh(23,Ws,2,3,"div",20),e.j41(24,"div",21),e.nrm(25,"app-article-categories",22),e.k0s()()()()()(),e.nVh(26,sr,3,4,"li",23)(27,Qa,4,4,"li",23),e.k0s()()()()()),2&r&&(e.Y8G("ngClass",l.hasCorporateBackgroundColor?"lead-article-background-color":"lead-article-background-color-fallback")("ngxArticleData",l.data),e.R7$(2),e.Y8G("data",l.data),e.R7$(2),e.Y8G("href",l.articlePath,e.B4B)("target",l.linkTarget),e.R7$(11),e.Y8G("article",l.data)("source","ArticleDisplayable")("isLinkArticle",l.isLinkArticle),e.R7$(),e.vxM(l.data.heading||l.data.text?16:-1),e.R7$(3),e.Y8G("innerHTML",e.bMT(21,15,e.bMT(20,13,l.data.teaser)),e.npT),e.R7$(4),e.vxM(l.data.commentCount>0&&!l.hideUserInteraction&&(void 0===l.scope.currentScope.chapter.settings.configurations.enableAssetComment||l.scope.currentScope.chapter.settings.configurations.enableAssetComment)&&!l.data.archived&&!l.scope.profile.readOnlyMode&&l.data.enableInteraction&&l.data.originNetworkSlug==l.scope.network.slug?23:-1),e.R7$(2),e.Y8G("article",l.data),e.R7$(),e.vxM(l.isFallback?27:26))},dependencies:[C.YU,C.B3,Ft.B,Nc,Hl,Vc,Kl,pc,Ge,C.Jj,Fo],styles:[".displayable-flexible-text-column[_ngcontent-%COMP%]{display:contents}.displayable-flexible-text-row[_ngcontent-%COMP%]{width:100%;margin-bottom:-6px}.displayable-flexible-text-row[_ngcontent-%COMP%]   .header-wrapper[_ngcontent-%COMP%]{transform:translateY(-10px);padding-right:5px}.article-categories-wrapper[_ngcontent-%COMP%]{font-size:.75rem;padding-right:20px}@media (max-width: 768px){.article-categories-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:end;margin-left:auto}}.drop-cap-heading[_ngcontent-%COMP%]{position:relative;overflow:hidden}.drop-cap-heading[_ngcontent-%COMP%]:first-letter{float:left;font-size:6rem;line-height:1;margin-right:.1rem;margin-top:-.5rem}.align-text-image-containers[_ngcontent-%COMP%]{position:relative}.align-bottom[_ngcontent-%COMP%]{position:absolute;bottom:0}[_nghost-%COMP%]     .lead-article button.oha{width:4.2rem;height:4.2rem;position:relative;z-index:1}@media (max-width: 768px){[_nghost-%COMP%]     .lead-article button.oha{width:65px;height:65px}}.mobile-only[_ngcontent-%COMP%]{display:none}.displayable-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor)}.displayable-content-wrapper[_ngcontent-%COMP%]{display:contents}.displayable-heading-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 auto;word-wrap:unset;font-family:var(--fontPrimary);display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:1rem;font-weight:400;line-height:1.2em;min-height:1rem;width:auto}.image-container[_ngcontent-%COMP%]{flex:0 0 auto;width:50%}@media (max-width: 768px){.image-container[_ngcontent-%COMP%]{width:100%}}.text-container[_ngcontent-%COMP%]{flex:0 0 auto;width:50%}@media (max-width: 768px){.text-container[_ngcontent-%COMP%]{width:100%}}.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;margin-bottom:1rem}@media (max-width: 768px){.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-text-wrapper[_ngcontent-%COMP%]   .displayable-text[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;word-wrap:unset;font-family:var(--fontSecondary);font-size:2rem;margin-top:0;font-weight:700;color:var(--textColor60);margin-bottom:.4em;display:block;box-sizing:border-box;line-height:1.2em}.displayable-text-wrapper[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:var(--fontSecondary);font-size:1.75rem;margin-top:0;font-weight:700}.displayable-fallback-text-wrapper[_ngcontent-%COMP%]:first-letter{font-size:6.875rem;font-weight:900;float:left}.displayable-fallback-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;height:100%}@media (max-width: 768px){.displayable-fallback-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-fallback-text-wrapper[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-family:var(--fontSecondary);font-size:2.188rem;margin-top:0;font-weight:700}.displayable-summary-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 auto;word-wrap:unset;font-family:var(--fontTertiary);-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:1.2rem;line-height:1.3;margin-bottom:3.5rem}@media (max-width: 768px){.displayable-summary-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-image-wrapper[_ngcontent-%COMP%]{width:100%;height:100%}.displayable-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{aspect-ratio:4/3;overflow:hidden;object-fit:cover;width:100%}.fallback-oha-wrapper[_ngcontent-%COMP%]{transform:translateY(-100%);height:2.813rem}.article-categories-wrapper[_ngcontent-%COMP%]{font-size:.75rem;line-height:1.5}.card[_ngcontent-%COMP%]{border:none}.displayable-anchor-text[_ngcontent-%COMP%]{color:var(--textColor)!important;text-decoration:none;display:block}.displayable-image-fallback[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;aspect-ratio:4/3}.displayable-image-fallback[_ngcontent-%COMP%]   .fallback-image[_ngcontent-%COMP%]{max-width:80%;max-height:50%}.lead-article-mobile[_ngcontent-%COMP%]{display:none}.lead-article-desktop[_ngcontent-%COMP%]{display:unset}.desktop-only[_ngcontent-%COMP%]{padding-right:10px}@media (max-width: 768px){.lead-article-mobile[_ngcontent-%COMP%]{display:block;padding:24px}.lead-article-desktop[_ngcontent-%COMP%]{display:none}}.headding[_ngcontent-%COMP%]{transform:translateY(5px)}"]}))}return o(),t})();const Mm=o=>({"background-color":o});function Pm(o,t){if(1&o&&(e.j41(0,"span",6)(1,"span",19),e.nrm(2,"span",20),e.nI1(3,"apicodoTranslateText"),e.nI1(4,"async"),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(2),e.Y8G("innerHtml",e.bMT(4,3,e.bMT(3,1,n.data.text)),e.npT)}}function eE(o,t){if(1&o&&e.nrm(0,"app-associated-material",16),2&o){const n=e.XpG(2);e.Y8G("assetReferences",n.data.assetReferences)("commentCount",n.data.commentCount)("isArticleDisplayable",!0)}}function Dg(o,t){if(1&o&&(e.j41(0,"div",1)(1,"a",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",7),e.nrm(7,"img",8),e.k0s()(),e.j41(8,"div",9)(9,"div",10)(10,"h2",11)(11,"span",6),e.nrm(12,"span",12),e.nI1(13,"apicodoTranslateText"),e.nI1(14,"async"),e.k0s(),e.nVh(15,Pm,5,5,"span",6),e.k0s(),e.j41(16,"div",13),e.nrm(17,"app-oha",14),e.k0s()(),e.j41(18,"div",15),e.nVh(19,eE,1,3,"app-associated-material",16),e.j41(20,"div",17),e.nrm(21,"app-article-categories",18),e.k0s()()()()()()()()),2&o){const n=e.XpG();e.Y8G("ngxArticleData",n.data),e.R7$(),e.Y8G("href",n.articlePath,e.B4B)("target",n.linkTarget),e.R7$(6),e.Y8G("alt",e.mNQ(n.imageAltText))("src",n.imagePath,e.B4B),e.R7$(5),e.Y8G("innerHtml",e.bMT(14,15,e.bMT(13,13,n.data.heading)),e.npT),e.R7$(3),e.vxM(n.data.text?15:-1),e.R7$(2),e.Y8G("article",n.data)("source","ArticleDisplayable")("isLinkArticle",n.isLinkArticle),e.R7$(2),e.vxM(n.data.commentCount>0&&!n.hideUserInteraction&&(void 0===n.scope.currentScope.chapter.settings.configurations.enableAssetComment||n.scope.currentScope.chapter.settings.configurations.enableAssetComment)&&!n.data.archived&&!n.scope.profile.readOnlyMode&&n.data.enableInteraction&&n.data.originNetworkSlug==n.scope.network.slug?19:-1),e.R7$(2),e.Y8G("article",n.data)}}function Kh(o,t){if(1&o&&(e.j41(0,"span",6)(1,"span",19),e.nrm(2,"span",20),e.nI1(3,"apicodoTranslateText"),e.nI1(4,"async"),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(2),e.Y8G("innerHtml",e.bMT(4,3,e.bMT(3,1,n.data.text)),e.npT)}}function Rm(o,t){if(1&o&&e.nrm(0,"app-associated-material",16),2&o){const n=e.XpG(2);e.Y8G("assetReferences",n.data.assetReferences)("commentCount",n.data.commentCount)("isArticleDisplayable",!0)}}function tE(o,t){if(1&o&&(e.j41(0,"div",1)(1,"a",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",21)(7,"div",22),e.nrm(8,"app-navigation-header-logo",23),e.k0s()()(),e.j41(9,"div",9)(10,"div",10)(11,"h2",11)(12,"span",6),e.nrm(13,"span",12),e.nI1(14,"apicodoTranslateText"),e.nI1(15,"async"),e.k0s(),e.nVh(16,Kh,5,5,"span",6),e.k0s(),e.j41(17,"div",13),e.nrm(18,"app-oha",14),e.k0s()(),e.j41(19,"div",15),e.nVh(20,Rm,1,3,"app-associated-material",16),e.j41(21,"div",17),e.nrm(22,"app-article-categories",18),e.k0s()()()()()()()()),2&o){const n=e.XpG();e.Y8G("ngxArticleData",n.data),e.R7$(),e.Y8G("href",n.articlePath,e.B4B)("target",n.linkTarget),e.R7$(6),e.Y8G("ngStyle",e.eq3(16,Mm,n.fallbackColor)),e.R7$(),e.Y8G("isDisplayable",!0),e.R7$(5),e.Y8G("innerHtml",e.bMT(15,14,e.bMT(14,12,n.data.heading)),e.npT),e.R7$(3),e.vxM(n.data.text?16:-1),e.R7$(2),e.Y8G("article",n.data)("source","ArticleDisplayable")("isLinkArticle",n.isLinkArticle),e.R7$(2),e.vxM(n.data.commentCount>0&&!n.hideUserInteraction&&(void 0===n.scope.currentScope.chapter.settings.configurations.enableAssetComment||n.scope.currentScope.chapter.settings.configurations.enableAssetComment)&&!n.data.archived&&!n.scope.profile.readOnlyMode&&n.data.enableInteraction&&n.data.originNetworkSlug==n.scope.network.slug?20:-1),e.R7$(2),e.Y8G("article",n.data)}}let uv=(()=>{var o;class t{constructor(s,r,l){this.deviceService=s,this.scopeService=r,this.displayableFallbackCoverService=l,this.imagePath="",this.isFallback=!1,this.fallbackColor="",this.hideUserInteraction=!1,this.isLinkArticle=!1,this.imageAltText="",this.scope=this.scopeService.getScope()}ngOnInit(){let s=this.deviceService.getUserAgentInfo();if(this.imageAltText=this.data?.coverImageText,this.data.coverImageGuid&&"dummy.jpg"!=this.data.coverImageGuid){let r=this.scope.network.settings.configurations.enableHighQualityImage?"-hq":"",l=s.isMobile?"-mobile":"";this.data.coverImageGuid&&(this.imagePath=this.data.coverAssetReference?`${this.data.coverAssetReference.assetImage.assetImageUrl}?preset=mainpage-article-cover${l}${r}&cache=${this.data.coverAssetReference.assetImage.cache}`:this.scope.globalSettings.blobStorageCdnUrl+"/images/"+this.data.coverImageGuid+`?preset=mainpage-article-cover${l}${r}&cache=${this.data.coverImageCache}`)}else this.isFallback=!0,this.fallbackColor=this.displayableFallbackCoverService.getRandomNetworkColor();this.data.articleExternalLink?(this.articlePath=this.data.articleExternalLink,this.linkTarget="_blank",this.isLinkArticle=!0):(this.articlePath=`${this.scope.currentScope.chapter.path}${this.data.path}/${this.data.variantId}`,this.linkTarget=""),this.hideUserInteraction=1==this.scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==this.scope.profile.isRegistered&&!s.isApp}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Ce.E),e.rXU(Se.A),e.rXU(ul))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-displayable-article-with-image"]],inputs:{data:"data"},standalone:!1,decls:3,vars:2,consts:[[1,"article-with-image"],["ngxOculusArticleImpressionComponent","",3,"ngxArticleData"],[1,"displayable-anchor-text",3,"href","target"],[1,"container","p-0","displayable-wrapper"],[1,"mb-3"],[1,"g-0"],[1,"row"],[1,"displayable-image-wrapper","col-12"],["loading","lazy",3,"src","alt"],[1,"card-body","displayable-content-wrapper","p-0"],[1,"d-flex"],[1,"displayable-text-container","p-0"],[1,"displayable-heading-wrapper",3,"innerHtml"],[1,"oha-wrapper"],[1,"",3,"article","source","isLinkArticle"],[1,"d-flex","align-items-baseline"],[1,"associated-material",3,"assetReferences","commentCount","isArticleDisplayable"],[1,"article-categories-wrapper"],[3,"article"],[1,"displayable-text-wrapper"],[1,"displayable-text",3,"innerHtml"],[1,"displayable-image-fallback-wrapper","col-12"],[1,"displayable-image-fallback",3,"ngStyle"],[3,"isDisplayable"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,Dg,22,17,"div",1),e.nVh(2,tE,23,18,"div",1),e.k0s()),2&r&&(e.R7$(),e.vxM(l.isFallback?-1:1),e.R7$(),e.vxM(l.isFallback?2:-1))},dependencies:[C.B3,Ft.B,Nc,Hl,Vc,Kl,pc,C.Jj,Fo],styles:[".article-with-image[_ngcontent-%COMP%]   .oha-wrapper[_ngcontent-%COMP%]{margin-left:auto;margin-top:-5px}.article-with-image[_ngcontent-%COMP%]   .displayable-text-container[_ngcontent-%COMP%]{width:90%;font-size:inherit}@media (max-width: 768px){.article-with-image[_ngcontent-%COMP%]     .article-categories{margin-bottom:0rem}}.article-categories-wrapper[_ngcontent-%COMP%]{font-size:.75rem}@media (max-width: 768px){.article-categories-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:end;margin-left:auto}}.associated-material[_ngcontent-%COMP%]{margin-right:10px}.displayable-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor)}.displayable-content-wrapper[_ngcontent-%COMP%]{position:relative}.displayable-heading-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;font-family:var(--fontPrimary);-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;margin-bottom:.5rem;color:var(--textColor);font-weight:400}@media (max-width: 768px){.displayable-heading-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;margin-bottom:0rem}@media (max-width: 768px){.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-text-wrapper[_ngcontent-%COMP%]   .displayable-text[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;font-size:1.35rem;margin-top:0;font-family:var(--fontSecondary);font-weight:700;line-height:1.3em;margin-bottom:.4em;color:var(--textColor60)}.displayable-summary-wrapper[_ngcontent-%COMP%]{font-family:var(--fontPrimary);-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:1.2rem;line-height:1.3;margin-bottom:1rem}@media (max-width: 768px){.displayable-summary-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{aspect-ratio:4/3;overflow:hidden;object-fit:cover;width:100%;margin-bottom:.5rem}[_nghost-%COMP%]     .article-with-image button.oha{width:4.2rem;height:4.2rem}@media (max-width: 768px){[_nghost-%COMP%]     .article-with-image button.oha{width:65px;height:65px}}.article-categories-wrapper[_ngcontent-%COMP%]{font-size:.75rem;line-height:1.5}.card[_ngcontent-%COMP%]{border:none}.displayable-anchor-text[_ngcontent-%COMP%]{color:var(--textColor);text-decoration:none;display:block}.displayable-image-fallback[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;aspect-ratio:4/3;margin-bottom:.5rem}.displayable-image-fallback[_ngcontent-%COMP%]   .fallback-image[_ngcontent-%COMP%]{max-width:80%;max-height:50%}"]}))}return o(),t})();function Iy(o,t){if(1&o&&(e.j41(0,"span",8)(1,"span",16),e.nrm(2,"span",17),e.nI1(3,"apicodoTranslateText"),e.nI1(4,"async"),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.Y8G("innerHtml",e.bMT(4,3,e.bMT(3,1,n.data.text)),e.npT)}}function Fp(o,t){if(1&o&&e.nrm(0,"app-associated-material",13),2&o){const n=e.XpG();e.Y8G("assetReferences",n.data.assetReferences)("commentCount",n.data.commentCount)("isArticleDisplayable",!0)}}let hv=(()=>{var o;class t{constructor(s,r){this.deviceService=s,this.scopeService=r,this.hideUserInteraction=!1,this.isLinkArticle=!1,this.scope=r.getScope()}ngOnInit(){this.data.articleExternalLink?(this.articlePath=this.data.articleExternalLink,this.linkTarget="_blank",this.isLinkArticle=!0):(this.articlePath=`${this.scope.currentScope.chapter.path}${this.data.path}/${this.data.variantId}`,this.linkTarget=""),this.data.modifiedText="&"==this.data.text.slice(0,1)?"<span>"+this.data.text.slice(0,this.data.text.indexOf(";")+1)+"</span>"+this.data.text.slice(this.data.text.indexOf(";")+1,this.data.text.length):"<span>"+this.data.text.slice(0,1)+"</span>"+this.data.text.slice(1,this.data.text.length),this.hideUserInteraction=1==this.scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==this.scope.profile.isRegistered&&!this.deviceService.getUserAgentInfo().isApp}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Ce.E),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-displayable-article-without-image"]],inputs:{data:"data"},standalone:!1,decls:19,vars:14,consts:[[1,"article-without-image"],[1,"displayable-anchor-text",3,"href","target"],["ngxOculusArticleImpressionComponent","",1,"container","p-0","displayable-wrapper",3,"ngxArticleData"],[1,"mb-3"],[1,"g-0"],[1,"card-body","displayable-content-wrapper","p-0"],[1,"d-flex"],[1,"displayable-text-container","p-0"],[1,"row"],[1,"displayable-heading-wrapper",3,"innerHtml"],[1,"oha-wrapper"],[1,"",3,"article","source","isLinkArticle"],[1,"d-flex","align-items-baseline"],[1,"associated-material",3,"assetReferences","commentCount","isArticleDisplayable"],[1,"article-categories-wrapper"],[3,"article"],[1,"displayable-text-wrapper"],[1,"displayable-text",3,"innerHtml"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"a",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h2",7)(8,"span",8),e.nrm(9,"span",9),e.nI1(10,"apicodoTranslateText"),e.nI1(11,"async"),e.k0s(),e.nVh(12,Iy,5,5,"span",8),e.k0s(),e.j41(13,"div",10),e.nrm(14,"app-oha",11),e.k0s()(),e.j41(15,"div",12),e.nVh(16,Fp,1,3,"app-associated-material",13),e.j41(17,"div",14),e.nrm(18,"app-article-categories",15),e.k0s()()()()()()()()),2&r&&(e.R7$(),e.Y8G("href",l.articlePath,e.B4B)("target",l.linkTarget),e.R7$(),e.Y8G("ngxArticleData",l.data),e.R7$(7),e.Y8G("innerHtml",e.bMT(11,12,e.bMT(10,10,l.data.heading)),e.npT),e.R7$(3),e.vxM(l.data.text?12:-1),e.R7$(2),e.Y8G("article",l.data)("source","ArticleDisplayable")("isLinkArticle",l.isLinkArticle),e.R7$(2),e.vxM(l.data.commentCount>0&&!l.hideUserInteraction&&(void 0===l.scope.currentScope.chapter.settings.configurations.enableAssetComment||l.scope.currentScope.chapter.settings.configurations.enableAssetComment)&&!l.data.archived&&!l.scope.profile.readOnlyMode&&l.data.enableInteraction&&l.data.originNetworkSlug==l.scope.network.slug?16:-1),e.R7$(2),e.Y8G("article",l.data))},dependencies:[Ft.B,Nc,Hl,Vc,Kl,C.Jj,Fo],styles:[".displayable-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor)}.article-without-image[_ngcontent-%COMP%]   .oha-wrapper[_ngcontent-%COMP%]{margin-left:auto;margin-top:-5px}.article-without-image[_ngcontent-%COMP%]   .displayable-text-container[_ngcontent-%COMP%]{width:90%;font-size:inherit}@media (max-width: 768px){.article-without-image[_ngcontent-%COMP%]     .article-categories{margin-bottom:0rem}}.displayable-content-wrapper[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%]     .drop-cap-heading{position:relative;overflow:hidden}[_nghost-%COMP%]     .drop-cap-heading span{display:block;float:left;font-size:6.5rem;line-height:1;margin-right:.8rem;margin-top:-2rem;padding-top:1rem}.displayable-heading-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;font-family:var(--fontPrimary);-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;margin-bottom:.5rem;font-weight:400;color:var(--textColor)}@media (max-width: 768px){.displayable-heading-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;margin-bottom:0rem;height:100%}@media (max-width: 768px){.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-text-wrapper[_ngcontent-%COMP%]   .displayable-text[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;font-size:1.85rem;margin-top:0;font-weight:700;font-family:var(--fontSecondary);line-height:1.3em;margin-bottom:.4em;color:var(--textColor60)}.displayable-summary-wrapper[_ngcontent-%COMP%]{font-family:var(--fontPrimary);-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:1.2rem;line-height:1.3;margin-bottom:.5rem}@media (max-width: 768px){.displayable-summary-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.oha-wrapper[_ngcontent-%COMP%]{height:2.813rem}[_nghost-%COMP%]     .article-without-image button.oha{width:4.2rem;height:4.2rem}@media (max-width: 768px){[_nghost-%COMP%]     .article-without-image button.oha{width:67.2px;height:67.2px}}.article-categories-wrapper[_ngcontent-%COMP%]{font-size:.75rem}@media (max-width: 768px){.article-categories-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:end;margin-left:auto}}.associated-material[_ngcontent-%COMP%]{margin-right:10px}.card[_ngcontent-%COMP%]{border:none}.displayable-anchor-text[_ngcontent-%COMP%]{color:var(--textColor);text-decoration:none;display:block}"]}))}return o(),t})();function nE(o,t){if(1&o&&(e.j41(0,"div",2)(1,"span",6),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.superBannerTitle)}}function iE(o,t){if(1&o){const n=e.RV6();e.j41(0,"a",7),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.clickBanner())}),e.nrm(1,"img",8),e.k0s()}if(2&o){const n=e.XpG();e.Y8G("href",n.data.uri,e.B4B),e.R7$(),e.Y8G("src",n.imageUrl,e.B4B)("alt","")}}function Tg(o,t){if(1&o){const n=e.RV6();e.j41(0,"a",9),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.clickBanner())}),e.nrm(1,"img",8),e.k0s()}if(2&o){const n=e.XpG();e.Y8G("href",n.data.uri,e.B4B),e.R7$(),e.Y8G("src",n.imageUrl,e.B4B)("alt","")}}function oE(o,t){if(1&o){const n=e.RV6();e.j41(0,"a",9),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.clickBanner())}),e.nrm(1,"img",8),e.k0s()}if(2&o){const n=e.XpG();e.Y8G("href",n.data.uri,e.B4B),e.R7$(),e.Y8G("src",n.imageUrl,e.B4B)("alt","")}}function My(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",10),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.clickBanner())}),e.nrm(1,"img",8),e.k0s()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("src",n.imageUrl,e.B4B)("alt","")}}let sE=(()=>{var o;class t{constructor(s,r,l,E,N,ae){this.elementRef=s,this.clickService=r,this.injector=l,this.upgrade=E,this.scopeService=N,this.trackingService=ae,this.imageUrl="",this.inSameChapter=!1,this.uriIsDocument=!1,this.superBannerTitle="",this.scope=this.scopeService.getScope(),this.oculusTrackingService=ae;const ze=this.upgrade.$injector;this.redirectService=ze.get("redirectService"),this.$state=ze.get("$state")}ngOnInit(){this.data&&(this.data.pin&&(this.imageUrl=this.scope.globalSettings.blobStorageCdnUrl+"/"+this.scope.globalSettings.blobStorageContainerNameShipment+"/"+this.data.pin+(this.data.mobile?"?preset=premium-shipment-xs":"?preset=premium-shipment")),this.data.uri&&(this.inSameChapter=this.redirectService.isSameChapterUrl(this.data.uri),this.uriIsDocument=-1!==this.data.uri.indexOf("/pdf/")||-1!==this.data.uri.indexOf("/document/")||-1!==this.data.uri.indexOf("/file/")),this.data.oculus=this.oculusTrackingService.trackSuperBanner(this.elementRef.nativeElement,{c:this.scope.currentScope.chapter.slug,n:this.scope.currentScope.network.slug,isu:this.data.superCampaignId,isub:this.data.superBannerId}),this.data.oculus.persistent=this.$state.includes("app.main-news"),this.superBannerTitle=this.scope.network.getResourceOrKeyName("web_shipment_super_title"))}clickBanner(){this.data.oculus.click(),this.clickService.clickSuperPost(this.data.oculus.guid,this.data.pin)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(xt._),e.rXU(m.zZn),e.rXU(He.be),e.rXU(Se.A),e.rXU(ga))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-displayable-superbanner"]],inputs:{data:"data"},standalone:!1,decls:8,vars:5,consts:[[1,"shipmentSuper-wrapper"],[1,"shipmentSuper"],[1,"shipmentSuper-container"],[1,"shipmentSuper-image-wrapper"],[1,"d-block",3,"href"],["target","_blank",1,"d-block",3,"href"],[1,"shipmentSuper-title"],[1,"d-block",3,"click","href"],[1,"shipmentSuper-image",3,"src","alt"],["target","_blank",1,"d-block",3,"click","href"],[3,"click"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1),e.nVh(2,nE,3,1,"div",2),e.j41(3,"div",3),e.nVh(4,iE,2,3,"a",4),e.nVh(5,Tg,2,3,"a",5),e.nVh(6,oE,2,3,"a",5),e.nVh(7,My,2,2,"div"),e.k0s()()()),2&r&&(e.R7$(2),e.vxM(l.superBannerTitle?2:-1),e.R7$(2),e.vxM(l.inSameChapter&&l.data.uri&&!l.uriIsDocument?4:-1),e.R7$(),e.vxM(l.inSameChapter||!l.data.uri||l.uriIsDocument?-1:5),e.R7$(),e.vxM(l.uriIsDocument?6:-1),e.R7$(),e.vxM(l.data.uri?-1:7))},dependencies:[Ft.B],styles:[".shipmentSuper-wrapper[_ngcontent-%COMP%]{width:100%}.shipmentSuper-image-wrapper[_ngcontent-%COMP%]{padding-bottom:7px;position:relative}.shipmentSuper-image[_ngcontent-%COMP%]{width:100%}.shipmentSuper[_ngcontent-%COMP%]{position:relative;max-width:var(--designContentWidth);margin:auto}.shipmentSuper-container[_ngcontent-%COMP%]{width:100%;border-bottom:2px solid var(--light-gray);margin-bottom:3px;text-align:right}.shipmentSuper-title[_ngcontent-%COMP%]{display:inline-block;vertical-align:bottom;font-family:var(--fontPrimary);font-size:.8em;padding:0 8px;background-color:var(--light-gray)}@media all and (max-width: 767px){.shipmentSuper-image[_ngcontent-%COMP%]{margin-left:0}}"]}))}return o(),t})();const pv=o=>({"background-color":o});function km(o,t){if(1&o&&(e.j41(0,"div",1)(1,"a",2)(2,"div")(3,"div",3)(4,"div",4)(5,"div",5),e.nrm(6,"img",6),e.k0s()(),e.j41(7,"h2",7)(8,"span",4)(9,"span",8),e.EFF(10),e.k0s()(),e.j41(11,"span",4)(12,"span",9)(13,"span",10)(14,"span",11),e.EFF(15),e.k0s()()()()(),e.j41(16,"div",12),e.nrm(17,"app-article-categories",13),e.k0s()()()()()),2&o){const n=e.XpG();e.Y8G("ngxSparticleData",n.data),e.R7$(),e.Y8G("href",n.referral,e.B4B),e.R7$(5),e.Y8G("src",e.mNQ(n.imagePath),e.B4B)("alt",n.imageAltText),e.R7$(4),e.SpI(" ",n.heading," "),e.R7$(5),e.JRh(n.text),e.R7$(2),e.Y8G("article",n.data)}}function Py(o,t){if(1&o&&(e.j41(0,"div",1)(1,"a",2)(2,"div")(3,"div",3)(4,"div",4)(5,"div",14),e.nrm(6,"img",15),e.k0s()(),e.j41(7,"h2",16)(8,"span",4)(9,"span",8),e.EFF(10),e.k0s()(),e.j41(11,"span",4)(12,"span",9)(13,"span",10)(14,"span",11),e.EFF(15),e.k0s()()()()(),e.j41(16,"div",12),e.nrm(17,"app-article-categories",13),e.k0s()()()()()),2&o){const n=e.XpG();e.Y8G("ngxSparticleData",n.data),e.R7$(),e.Y8G("href",n.referral,e.B4B),e.R7$(4),e.Y8G("ngStyle",e.eq3(8,pv,n.fallbackColor)),e.R7$(),e.Y8G("src",n.imagePath,e.B4B)("alt",n.imageAltText),e.R7$(4),e.SpI(" ",n.heading," "),e.R7$(5),e.JRh(n.text),e.R7$(2),e.Y8G("article",n.data)}}let gv=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.deviceInfoService=r,this.displayableFallbackCoverService=l,this.imagePath="",this.heading="",this.text="",this.referral="",this.isFallback=!1,this.fallbackColor="",this.imageAltText="",this.scope=this.scopeService.getScope()}ngOnInit(){if(!this.data)return;let s=this.scope.network.settings.configurations.enableHighQualityImage?"-hq":"",r=this.deviceInfoService.getUserAgentInfo().isMobile?"-mobile":"";this.data.articleListDisplayableType==Ra.SponsoredArticle?(this.heading=this.data.heading,this.text=this.data.text,this.data.coverAssetReference?this.imagePath=`${this.data.coverAssetReference.assetImage.assetImageUrl}?preset=mainpage-article-cover${r}${s}&cache=${this.data.coverAssetReference.assetImage.cache}`:(this.isFallback=!0,this.fallbackColor=this.displayableFallbackCoverService.getRandomNetworkColor(),this.imagePath=this.displayableFallbackCoverService.getLogoUrl()),this.referral=`${this.scope.currentScope.chapter.path}${this.data.path}/${this.data.variantId}`):this.data.articleListDisplayableType==Ra.Special?(this.imagePath=`${this.scope.globalSettings.blobStorageCdnUrl}/${this.scope.globalSettings.blobStorageContainerNameSpecial}/${this.data.listValues.coverAsset}?preset=mainpage-article-cover${r}`,this.heading=this.data.listValues.heading,this.text=this.data.listValues.title,this.referral=this.scope.currentChapter.path+this.data.path):(this.isFallback=!0,this.fallbackColor=this.displayableFallbackCoverService.getRandomNetworkColor(),this.imagePath=this.displayableFallbackCoverService.getLogoUrl()),this.imageAltText=this.data?.coverImageText??""}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E),e.rXU(ul))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-displayable-shipment-with-image"]],inputs:{data:"data"},standalone:!1,decls:3,vars:2,consts:[[1,"container","p-0","displayable-wrapper"],["ngxOculusSparticleImpression","",3,"ngxSparticleData"],[3,"href"],[1,"g-0"],[1,"row"],[1,"displayable-image-wrapper","col-12"],["loading","lazy",3,"src","alt"],[1,"displayable-text-container","p-0","mb-0"],[1,"displayable-heading-wrapper","col-12"],[1,"col-10"],[1,"displayable-text-wrapper"],[1,"displayable-text"],[1,"article-categories-wrapper"],[3,"article"],[1,"displayable-image-fallback",3,"ngStyle"],["loading","lazy",1,"fallback-image",3,"src","alt"],[1,"displayable-text-container","p-0"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,km,18,8,"div",1),e.nVh(2,Py,18,10,"div",1),e.k0s()),2&r&&(e.R7$(),e.vxM(l.isFallback?-1:1),e.R7$(),e.vxM(l.isFallback?2:-1))},dependencies:[C.B3,Ft.B,Dd,Vc],styles:[".displayable-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor);display:block}.displayable-wrapper[_ngcontent-%COMP%]   .displayable-text-container[_ngcontent-%COMP%]{font-size:inherit}.displayable-content-wrapper[_ngcontent-%COMP%]{font-family:var(--fontPrimary);font-size:.75rem;color:var(--textColor);font-weight:600}.displayable-heading-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;font-family:var(--fontPrimary);-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;margin-bottom:.5rem;color:var(--textColor);font-weight:400;line-height:normal}@media (max-width: 768px){.displayable-heading-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;margin-bottom:0rem;color:var(--textColor);max-height:3rem;margin-bottom:.4em}@media (max-width: 768px){.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-text-wrapper[_ngcontent-%COMP%]   .displayable-text[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;word-wrap:unset;font-size:1.35rem;margin-top:0;font-family:var(--fontSecondary);font-weight:700;text-decoration:none;color:var(--textColor60);line-height:1.3em}.displayable-summary-wrapper[_ngcontent-%COMP%]{font-family:var(--fontPrimary);-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:1.2rem;line-height:1.3;margin-bottom:1rem;color:var(--textColor)}@media (max-width: 768px){.displayable-summary-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{aspect-ratio:4/3;overflow:hidden;object-fit:cover;width:100%;margin-bottom:.5rem}.card[_ngcontent-%COMP%]{border:none}.displayable-anchor-text[_ngcontent-%COMP%]{color:var(--textColor);text-decoration:none}.displayable-image-fallback[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;aspect-ratio:4/3}.displayable-image-fallback[_ngcontent-%COMP%]   .fallback-image[_ngcontent-%COMP%]{max-width:80%;max-height:50%}.article-categories-wrapper[_ngcontent-%COMP%]{font-size:.75rem}@media (max-width: 768px){.article-categories-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:end;margin-left:auto}}"]}))}return o(),t})(),wD=(()=>{var o;class t{constructor(s,r){this.el=s,this.zone=r,this.delta=0,this.scrollableChange=new e.bkB}check(){const s=this.el.nativeElement,r=Math.ceil(s.scrollHeight)>Math.ceil(s.clientHeight)+this.delta;r!==this.last&&(this.last=r,this.zone.run(()=>this.scrollableChange.emit(r)))}ngAfterViewInit(){const s=this.el.nativeElement;this.zone.runOutsideAngular(()=>{this.resizeObs=new ResizeObserver(()=>this.check()),this.resizeObs.observe(s),this.mutationObs=new MutationObserver(()=>this.check()),this.mutationObs.observe(s,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),requestAnimationFrame(()=>this.check()),document.fonts?.ready?.then?.(()=>this.check())})}ngOnDestroy(){this.resizeObs?.disconnect(),this.mutationObs?.disconnect()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(e.SKi))},this.\u0275dir=e.FsC({type:t,selectors:[["","observeScrollable",""]],inputs:{delta:"delta"},outputs:{scrollableChange:"scrollableChange"},standalone:!1}))}return o(),t})();const rE=["dxSV"];function fv(o,t){if(1&o&&(e.j41(0,"div",9)(1,"div",22),e.nrm(2,"app-user-badge-simple",23),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(2),e.Y8G("user",n.user)("author",!1)("inSnipView",!0)}}function xf(o,t){if(1&o&&(e.j41(0,"div",10)(1,"div",24)(2,"div",25),e.nrm(3,"i",26),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()()),2&o){const n=e.XpG(2);e.R7$(5),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_snip_displayable_preview_text"))}}function SD(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-scroll-view",27,0),e.bIt("onInitialized",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.onDxInit(r))})("onContentReady",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.checkScrollableDx())})("onUpdated",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.checkScrollableDx())}),e.nrm(2,"div",28,1),e.k0s()}if(2&o){const n=e.XpG(2);e.Y8G("height","4.3rem"),e.R7$(2),e.Y8G("innerHtml",n.data.text,e.npT)}}function DD(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",29),e.bIt("scrollableChange",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.isScrollable=r)}),e.nrm(1,"div",28),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("innerHtml",n.data.text,e.npT)}}function TD(o,t){if(1&o&&(e.j41(0,"div",32),e.nrm(1,"app-associated-material",33),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("assetReferences",n.data.assetReferences)("isSnipDisplayable",!0)}}function aE(o,t){if(1&o&&(e.j41(0,"div",18)(1,"div",30),e.nrm(2,"app-oha",31),e.k0s(),e.nVh(3,TD,2,2,"div",32),e.k0s()),2&o){const n=e.XpG(2);e.R7$(2),e.Y8G("snip",n.data)("source","ArticleDisplayable")("size","sm")("preview",n.preview),e.R7$(),e.vxM(n.preview?-1:3)}}function AD(o,t){1&o&&(e.j41(0,"div",19),e.nrm(1,"i",34),e.k0s())}function ID(o,t){if(1&o&&(e.j41(0,"div")(1,"div",8)(2,"div",36),e.nrm(3,"i",37),e.k0s(),e.j41(4,"div",38),e.EFF(5),e.k0s()()()),2&o){const n=e.XpG(3);e.R7$(5),e.SpI(" ",n.snipStatusText," ")}}function Ry(o,t){if(1&o&&(e.j41(0,"div",20)(1,"div",35),e.nVh(2,ID,6,1,"div"),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(2),e.vxM(n.snipStatusText?2:-1)}}function lE(o,t){if(1&o&&(e.j41(0,"div",21),e.EFF(1),e.nI1(2,"relativeDate"),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,1,n.data.published)," ")}}function Bm(o,t){if(1&o&&(e.j41(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8),e.nVh(5,fv,3,3,"div",9),e.nVh(6,xf,6,1,"div",10),e.k0s(),e.j41(7,"div",11)(8,"div",8)(9,"div",12),e.nrm(10,"img",13),e.k0s()(),e.j41(11,"div",14)(12,"div",15),e.nVh(13,SD,4,2,"dx-scroll-view",16)(14,DD,2,1,"div",17),e.k0s(),e.nVh(15,aE,4,5,"div",18),e.k0s(),e.nVh(16,AD,2,0,"div",19),e.k0s(),e.j41(17,"div",8),e.nVh(18,Ry,3,1,"div",20),e.nVh(19,lE,3,3,"div",21),e.k0s()()()()()),2&o){const n=e.XpG();e.Y8G("ngxSnipData",n.data),e.R7$(5),e.vxM(n.preview?-1:5),e.R7$(),e.vxM(n.preview?6:-1),e.R7$(4),e.Y8G("src",e.mNQ(n.imagePath),e.B4B)("alt",n.imageAltText),e.R7$(3),e.vxM(n.isMobile?14:13),e.R7$(2),e.vxM(2!=n.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig?15:-1),e.R7$(),e.vxM(n.isScrollable?16:-1),e.R7$(2),e.vxM(n.preview?-1:18),e.R7$(),e.vxM(n.preview||null==n.data.published?-1:19)}}function Fm(o,t){if(1&o&&(e.j41(0,"div",39)(1,"div",48)(2,"div",22),e.nrm(3,"app-user-badge-simple",23),e.k0s()()()),2&o){const n=e.XpG(2);e.R7$(3),e.Y8G("user",n.user)("author",!1)("inSnipView",!0)}}function Ef(o,t){if(1&o&&(e.j41(0,"div",10)(1,"div",24)(2,"div",25),e.nrm(3,"i",26),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()()),2&o){const n=e.XpG(2);e.R7$(5),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_snip_displayable_preview_text"))}}function Of(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-scroll-view",27,0),e.bIt("onInitialized",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.onDxInit(r))})("onContentReady",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.checkScrollableDx())})("onUpdated",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.checkScrollableDx())}),e.nrm(2,"div",28,1),e.k0s()}if(2&o){const n=e.XpG(2);e.Y8G("height","11.06rem"),e.R7$(2),e.Y8G("innerHtml",n.data.text,e.npT)}}function wf(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",49),e.bIt("scrollableChange",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.isScrollable=r)}),e.nrm(1,"div",28),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("innerHtml",n.data.text,e.npT)}}function l1(o,t){if(1&o&&(e.j41(0,"div",53),e.nrm(1,"app-associated-material",33),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("assetReferences",n.data.assetReferences)("isSnipDisplayable",!0)}}function MD(o,t){if(1&o&&(e.j41(0,"div")(1,"div",50)(2,"div",51),e.nrm(3,"app-oha",52),e.nVh(4,l1,2,2,"div",53),e.k0s()()()),2&o){const n=e.XpG(2);e.R7$(3),e.Y8G("snip",n.data)("source","ArticleDisplayable")("size","sm")("preview",n.preview),e.R7$(),e.vxM(n.preview?-1:4)}}function cE(o,t){1&o&&(e.j41(0,"div",47),e.nrm(1,"i",34),e.k0s())}function ky(o,t){if(1&o&&(e.j41(0,"div")(1,"div",8)(2,"div",36),e.nrm(3,"i",37),e.k0s(),e.j41(4,"div",38),e.EFF(5),e.k0s()()()),2&o){const n=e.XpG(3);e.R7$(5),e.SpI(" ",n.snipStatusText," ")}}function PD(o,t){if(1&o&&(e.j41(0,"div",21),e.EFF(1),e.nI1(2,"relativeDate"),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.SpI(" ",e.bMT(2,1,n.data.published)," ")}}function dE(o,t){if(1&o&&(e.j41(0,"div",8)(1,"div",20),e.nVh(2,ky,6,1,"div"),e.k0s(),e.nVh(3,PD,3,3,"div",21),e.k0s()),2&o){const n=e.XpG(2);e.R7$(2),e.vxM(n.snipStatusText?2:-1),e.R7$(),e.vxM(n.data.published?3:-1)}}function c1(o,t){if(1&o&&(e.j41(0,"div")(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8),e.nVh(5,Fm,4,3,"div",39),e.nVh(6,Ef,6,1,"div",10),e.k0s(),e.j41(7,"div",40)(8,"div",41)(9,"div",42)(10,"div",43)(11,"div",44),e.nVh(12,Of,4,2,"dx-scroll-view",16)(13,wf,2,1,"div",45),e.k0s()()()(),e.j41(14,"div",46),e.nVh(15,MD,5,5,"div"),e.k0s(),e.nVh(16,cE,2,0,"div",47),e.k0s(),e.nVh(17,dE,4,2,"div",8),e.k0s()()()()),2&o){const n=e.XpG();e.R7$(5),e.vxM(n.preview?-1:5),e.R7$(),e.vxM(n.preview?6:-1),e.R7$(6),e.vxM(n.isMobile?13:12),e.R7$(3),e.vxM(2!=n.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig?15:-1),e.R7$(),e.vxM(n.isScrollable?16:-1),e.R7$(),e.vxM(n.preview?-1:17)}}let By=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.deviceInfoService=r,this.preview=!1,this.imagePath="",this.snipStatusText="",this.imageAltText="",this.isScrollable=!1,this.isMobile=!1,this.delta=5,this.showArrow=!1,this.scope=s.getScope(),this.isMobile=this.deviceInfoService.getUserAgentInfo().isMobile}ngAfterViewInit(){this.checkScrollableDx()}onNativeScroll(s){const r=s.target;this.showArrow=!(r.scrollTop+r.clientHeight>=r.scrollHeight-1)&&this.isScrollable}onDxInit(s){const r=s.element,l=r.querySelector(".dx-scrollable-container"),E=r.querySelector(".dx-scrollable-content");this.dxResizeObs=new ResizeObserver(()=>this.checkScrollableDx()),this.dxResizeObs.observe(l),this.dxResizeObs.observe(E),requestAnimationFrame(()=>this.checkScrollableDx()),document.fonts?.ready?.then?.(()=>this.checkScrollableDx())}checkScrollableDx(){if(!this.dxSV?.instance)return;const s=this.dxSV.instance.scrollHeight(),r=this.dxSV.instance.clientHeight();this.isScrollable=s-r>=this.delta}ngOnDestroy(){}ngOnChanges(s){s.data&&this.processData()}ngOnInit(){this.processData()}processData(){let s=this.data.assetReferences.filter(ae=>null!=ae.assetImage&&null==ae.assetImage.deleted);if(s.length>0&&null!=this.data.extendedConfigurations){let ae=JSON.parse(this.data.extendedConfigurations);ae.thumbnailGuid&&(this.thumbnail=s.find(ze=>ze.guid==ae.thumbnailGuid))}this.thumbnail&&(this.imagePath=this.scope.globalSettings.blobStorageCdnUrl+"/images/"+`${this.thumbnail.assetImage.guid}?preset=snip-displayable-thumbnail`,this.imageAltText=this.thumbnail.assetImage?.text?.trim()),this.user=this.preview?this.scope.profile:this.data.user;let r=new Date,l=new Date(this.data.published);const E=108e5;if(this.data.modifiedText="&"==this.data.formattedText.slice(0,1)?"<span>"+this.data.formattedText.slice(0,this.data.formattedText.indexOf(";")+1)+"</span>"+this.data.formattedText.slice(this.data.formattedText.indexOf(";")+1,this.data.formattedText.length):"<span>"+this.data.formattedText.slice(0,1)+"</span>"+this.data.formattedText.slice(1,this.data.formattedText.length),this.data.published||this.preview){if(this.data.archived)this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_archived");else if(this.data.assignedUser&&this.data.score>this.scope.globalSettings.snipShowAuthorEditStatusScoreThreshold)this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_processing");else if(r.getTime()-l.getTime()<E)this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_newSnip");else if(!this.scope.currentChapter.settings.enableOhaLikes&&this.data.score>=1)this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_lookingForAuthor").replace("{{web_common_author}}",this.scope.network.getResourceOrKeyName("web_common_author"));else if(this.data.assetReferences.length){var N=this.data.assetReferences.reduce(function(ze,dt){return new Date(ze.published)<new Date(dt.published)?ze:dt});let ae=new Date(N.created);if(r.getTime()-ae.getTime()<E)switch(N.type){case 2:case 5:case 6:case 7:this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_newMedia");break;case 0:case 1:case 10:this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_newOpinions")}}}else this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_notReleased")}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-displayable-snip"]],viewQuery:function(r,l){if(1&r&&e.GBs(rE,5),2&r){let E;e.mGM(E=e.lsd())&&(l.dxSV=E.first)}},inputs:{data:"data",preview:"preview"},standalone:!1,features:[e.OA$],decls:4,vars:3,consts:[["dxSV",""],["scrollContainer",""],[1,"snip-displayable"],[1,"displayable-anchor-text","d-block"],["ngxOculusSnipImpression","",3,"ngxSnipData"],[1,"container","p-0","displayable-wrapper"],[1,"mb-4"],[1,"g-0"],[1,"row"],[1,"col-12","mb-1","d-flex"],[1,"col-12","mb-3","d-flex","justify-content-center"],[1,"card-body","displayable-content-wrapper","mb-1"],[1,"displayable-image-wrapper","col-12"],["loading","lazy",3,"src","alt"],[1,"extendet-row","snip-item-container"],[1,"displayable-text-wrapper"],["showScrollbar","onScroll",3,"height"],["observeScrollable","","tabindex","0",1,"mobile-snip-scroll-container-image"],[1,"oha-wrapper"],[1,"bottom-arrow-wrapper-image"],[1,"displayable-snipStatus-text","col-10"],[1,"displayable-date-wrapper","col-2"],[1,"col-12"],[3,"user","author","inSnipView"],[1,"preview-icon"],[1,"circle-icon"],[1,"fa-solid","fa-exclamation"],["showScrollbar","onScroll",3,"onInitialized","onContentReady","onUpdated","height"],[1,"drop-cap-heading",3,"innerHtml"],["observeScrollable","","tabindex","0",1,"mobile-snip-scroll-container-image",3,"scrollableChange"],[1,"snip-oha"],[1,"",3,"snip","source","size","preview"],[1,"d-flex","justify-content-center","snip-associated-material"],[3,"assetReferences","isSnipDisplayable"],["aria-hidden","true",1,"fas","fa-chevron-down"],[1,"col-9"],[1,"col-1","displayable-snipStatus-icon"],[1,"fa-solid","fa-circle"],[1,"col-10"],[1,"col-12","mb-1"],[1,"card-body","displayable-fallback-content-wrapper","mb-1"],[1,"fallback-content"],[1,"row","mb-3","text-container"],[1,"col-12","displayable-fallback-text-container"],[1,"displayable-fallback-text-wrapper","position-relative"],["observeScrollable","","tabindex","0",1,"mobile-snip-scroll-container"],[1,"oha-materials"],[1,"bottom-arrow-wrapper"],[1,"d-flex"],["observeScrollable","","tabindex","0",1,"mobile-snip-scroll-container",3,"scrollableChange"],[1,"row","mb-2"],[1,"col-12","oha-wrapper-fallback"],[1,"float-end","ml-2",3,"snip","source","size","preview"],[1,"snip-displayable-associated-material"]],template:function(r,l){1&r&&(e.j41(0,"div",2)(1,"a",3),e.nVh(2,Bm,20,11,"div",4),e.nVh(3,c1,18,6,"div"),e.k0s()()),2&r&&(e.R7$(),e.BMQ("href",l.preview?null:l.scope.currentScope.chapter.path+l.data.path,e.B4B),e.R7$(),e.vxM(l.imagePath?2:-1),e.R7$(),e.vxM(l.imagePath?-1:3))},dependencies:[Dn.e,cu,Ft.B,wD,lh,Hl,Kl,Ul],styles:[".snip-displayable[_ngcontent-%COMP%]   .displayable-anchor-text[_ngcontent-%COMP%]{color:var(--textColor);text-decoration:none}.displayable-snipStatus-text[_ngcontent-%COMP%]{font-size:.8rem;transform:unset}.displayable-snipStatus-icon[_ngcontent-%COMP%]{font-size:.8rem;color:var(--colorSecondary);transform:unset}.displayable-wrapper[_ngcontent-%COMP%]{align-items:center}.displayable-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor);-webkit-box-orient:vertical}.displayable-userBadge-wrapper[_ngcontent-%COMP%]{padding-left:16px}.displayable-content-wrapper[_ngcontent-%COMP%]{padding:16px;position:relative;background-color:var(--backgroundColor);border-bottom:.125rem solid var(--black-60);height:20rem;overflow:hidden}.displayable-fallback-content-wrapper[_ngcontent-%COMP%]{padding:16px;position:relative;background-color:var(--backgroundColor);border-bottom:.125rem solid var(--black-60);height:20rem}.mobile-snip-scroll-container-image[_ngcontent-%COMP%]{height:4.1rem}.mobile-snip-scroll-container[_ngcontent-%COMP%]{height:10.85rem}.mobile-snip-scroll-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.mobile-snip-scroll-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#0000004d;border-radius:4px}.bottom-arrow-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;-webkit-line-clamp:none;position:absolute;left:48%;bottom:27%}.bottom-arrow-wrapper[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:var(--textColor60)}.bottom-arrow-wrapper-image[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;-webkit-line-clamp:none;position:absolute;left:35%;bottom:8px}.bottom-arrow-wrapper-image[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:var(--textColor60)}@media (max-width: 768px){.text-container[_ngcontent-%COMP%]{height:10.3rem}}.displayable-fallback-text-container[_ngcontent-%COMP%]{padding-top:10px}@media (max-width: 768px){.displayable-fallback-text-container[_ngcontent-%COMP%]{padding-top:0;height:12.25rem;overflow:auto;-webkit-overflow-scrolling:touch}}.displayable-fallback-text-wrapper[_ngcontent-%COMP%]{margin:0;text-decoration:none;position:relative;padding-top:5px}.displayable-fallback-text-wrapper[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-family:var(--fontSecondary);font-size:1.5rem;font-style:italic;line-height:1.2em;color:var(--textColor60);font-weight:500;margin:0 5px}@media (max-width: 768px){.displayable-fallback-text-wrapper[_ngcontent-%COMP%]{height:11.4rem;overflow:auto;-webkit-overflow-scrolling:touch}}.displayable-text-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:80%;position:relative}.displayable-text-wrapper[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-size:1.15rem;font-family:var(--fontSecondary);font-style:italic;line-height:1.2em;color:var(--textColor60);font-weight:500;word-break:break-word;margin:0 5px}@media (max-width: 768px){.displayable-text-wrapper[_ngcontent-%COMP%]{height:4.3rem;overflow:auto;-webkit-overflow-scrolling:touch}}.displayable-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{aspect-ratio:4/3;overflow:hidden;object-fit:cover;width:100%;margin-bottom:.5rem}@media (max-width: 768px){.displayable-image-wrapper[_ngcontent-%COMP%]{min-height:12rem}}.displayable-date-wrapper[_ngcontent-%COMP%]{font-size:.8rem;display:flex;justify-content:end;align-items:center;height:100%;white-space:nowrap}.snip-associated-material[_ngcontent-%COMP%]{margin-left:10px}.oha-wrapper[_ngcontent-%COMP%]   .snip-oha[_ngcontent-%COMP%]{justify-content:flex-end;display:flex}.oha-wrapper-fallback[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.associated-material-text-wrapper[_ngcontent-%COMP%]{text-align:end}.snip-displayable-associated-material[_ngcontent-%COMP%]{margin-right:.65rem}.material-fallback-wrapper[_ngcontent-%COMP%]{transform:translateY(25%)}.fallback-content[_ngcontent-%COMP%]{display:flex;aspect-ratio:4/3;align-items:center;overflow:hidden;margin-bottom:.5rem;word-break:break-word}@media (max-width: 768px){.fallback-content[_ngcontent-%COMP%]{aspect-ratio:unset;min-height:12rem}}.preview-icon[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:8px}.preview-icon[_ngcontent-%COMP%]   .circle-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;border:1px solid var(--textColor);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-right:8px}.preview-icon[_ngcontent-%COMP%]   .circle-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:var(--textColor);font-size:1rem}  .dx-scrollable-container:focus-visible{outline:1px solid var(--textColor);outline-offset:-1px}@media (max-width: 768px){.displayable-content-wrapper[_ngcontent-%COMP%], .displayable-fallback-content-wrapper[_ngcontent-%COMP%]{min-height:20rem;height:unset}.displayable-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}}.color-red[_ngcontent-%COMP%]{border:1px solid red!important}.snip-item-container[_ngcontent-%COMP%]{display:flex}"]}))}return o(),t})();function RD(o,t){if(1&o&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2),e.EFF(4),e.k0s()()()()),2&o){const n=e.XpG();e.R7$(4),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleList_snipGroupTitle")," ")}}let uE=(()=>{var o;class t{constructor(s){this.scopeService=s,this.scope=s.getScope()}ngOnInit(){}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-displayable-snip-group-title"]],inputs:{data:"data"},standalone:!1,decls:1,vars:1,consts:[[1,"container","p-0"],[1,"row"],[1,"col-12"]],template:function(r,l){1&r&&e.nVh(0,RD,5,1,"div"),2&r&&e.vxM(l.scope.currentChapter.settings.configurations.hideSnipsInArticleFeed?-1:0)},encapsulation:2}))}return o(),t})(),Fy=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.deviceInfoService=r,this.imagePath="",this.heading="",this.text="",this.referral="",this.scope=s.getScope()}ngOnInit(){this.data&&(this.data.articleListDisplayableType==Ra.SponsoredArticle?(this.text=this.data.text,this.heading=this.data.heading,this.referral=`${this.scope.currentScope.chapter.path}${this.data.path}/${this.data.variantId}`):this.data.articleListDisplayableType==Ra.Special&&(this.heading=this.data.listValues.heading,this.text=this.data.listValues.title,this.referral=this.scope.currentChapter.path+this.data.path))}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-displayable-shipment-without-image"]],inputs:{data:"data"},standalone:!1,decls:16,vars:5,consts:[["ngxOculusSparticleImpression","",1,"container","p-0","displayable-wrapper",3,"ngxSparticleData"],[3,"href"],[1,"card","mb-3"],[1,"g-0"],[1,"card-body","displayable-content-wrapper","p-0"],[1,"p-0","custom-header"],[1,"row"],[1,"displayable-heading-wrapper","col-12"],[1,""],[1,"displayable-text-wrapper"],[1,"displayable-text"],[1,"article-categories-wrapper"],[3,"article"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"a",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h2",5)(6,"span",6)(7,"span",7),e.EFF(8),e.k0s()(),e.j41(9,"span",6)(10,"span",8)(11,"span",9)(12,"span",10),e.EFF(13),e.k0s()()()()(),e.j41(14,"div",11),e.nrm(15,"app-article-categories",12),e.k0s()()()()()()),2&r&&(e.Y8G("ngxSparticleData",l.data),e.R7$(),e.Y8G("href",l.referral,e.B4B),e.R7$(7),e.SpI(" ",l.heading," "),e.R7$(5),e.JRh(l.text),e.R7$(2),e.Y8G("article",l.data))},dependencies:[Ft.B,Dd,Vc],styles:[".displayable-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor);display:block}.displayable-wrapper[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{background-color:var(--backgroundColor)}.displayable-content-wrapper[_ngcontent-%COMP%]{position:relative}.displayable-content-wrapper[_ngcontent-%COMP%]   .custom-header[_ngcontent-%COMP%]{font-size:initial}.displayable-heading-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;font-family:var(--fontPrimary);-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;margin-bottom:.5rem;color:var(--textColor);font-weight:400}@media (max-width: 768px){.displayable-heading-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:4;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;margin-bottom:0rem;height:100%;margin-bottom:.4em}@media (max-width: 768px){.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:none;-webkit-box-orient:unset}}.displayable-text-wrapper[_ngcontent-%COMP%]   .displayable-text[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;word-wrap:unset;font-size:1.85rem;margin-top:0;font-weight:700;font-family:var(--fontSecondary);color:var(--textColor60);line-height:1.3em}.card[_ngcontent-%COMP%]{border:none}.article-categories-wrapper[_ngcontent-%COMP%]{font-size:.75rem}@media (max-width: 768px){.article-categories-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:end;margin-left:auto}}"]}))}return o(),t})(),kD=(()=>{var o;class t{constructor(){this.componentMap={DisplayableArticleWithImageComponent:uv,DisplayableArticleWithoutImageComponent:hv,DisplayableLeadArticleImageLeftComponent:Ui,DisplayableLeadArticleImageRightComponent:gc,DisplayableShipmentWithImageComponent:gv,DisplayableShipmentWithoutImageComponent:Fy,DisplayableSnipComponent:By,DisplayableSnipGroupTitleComponent:uE,DisplayableSuperbannerComponent:sE},this.dataTypeMap={DisplayableArticleWithImageComponent:"article",DisplayableArticleWithoutImageComponent:"article",DisplayableLeadArticleImageLeftComponent:"article",DisplayableLeadArticleImageRightComponent:"article",DisplayableShipmentWithImageComponent:"sponsored",DisplayableShipmentWithoutImageComponent:"sponsored",DisplayableSnipComponent:"snip",DisplayableSnipGroupTitleComponent:"snip",DisplayableSuperbannerComponent:"shipment"},this.groupTypeMap={SuperBanner:"shipments",LeadArticleImageRight:"articles",LeadArticleImageLeft:"articles",TwoArticleWithImage:"articles",TwoArticleWithoutImage:"articles",TwoArticleWithoutImageShipmentLeft:"articles",TwoArticleWithoutImageShipmentRight:"articles",TwoArticleWithoutImageShipmentBoth:"articles",TwoArticleWithImageShipmentBoth:"articles",TwoArticleWithImageShipmentLeft:"articles",TwoArticleWithImageShipmentRight:"articles",Snips:"snips"}}resolveComponent(s){let r=this.componentMap[s]||null;return null==r&&console.error("Non matched component type ",s),r}resolveSlotDataType(s){return this.dataTypeMap[s]||null}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),Sf=(()=>{var o;class t{constructor(s,r,l,E,N,ae){this.http=s,this.composableCardsResolverService=r,this.articleService=l,this.snipService=E,this.shipmentService=N,this.scopeService=ae,this.groups=[],this.articles=[],this.sponsored=[],this.snips=[],this.shipments=[],this.slotedArticles=[],this.slotedSponsored=[],this.slotedSnips=[],this.slotedShipments=[],this.loadableArticleIds=[],this.slotedArticleIds=[],this.slotedSponsoredIds=[],this.loadMorePageSize=12,this.filledGroups=[],this.isLoadingMore=!1,this.scrollPosition=0,this.isLoading=!1,this.loadingCompletedSubject=new je.B,this.loadingCompleted=this.loadingCompletedSubject.asObservable(),this.preloadDataPromiseCached=null,this.softFailureSubject=new je.B,this.hardFailureSubject=new je.B,this.hasSoftFailure=!1,this.hasHardFailure=!1,this.softFailure$=this.softFailureSubject.asObservable(),this.hardFailure$=this.hardFailureSubject.asObservable(),this.scope=this.scopeService.getScope(),this.preloadData().then(()=>{})}withTimeout(s,r,l){return navigator.onLine?new Promise((E,N)=>{const ae=setTimeout(()=>{N(new Error(`${l} loading timed out after ${r} ms`))},r);s.then(ze=>{clearTimeout(ae),E(ze)}).catch(ze=>{clearTimeout(ae),N(new Error(`${l} failed: ${ze.message||ze}`))})}):Promise.reject(new Error(`${l} failed: Network is offline.`))}wrapWithRejection(s,r){return new Promise((l,E)=>{s.then(l).catch(N=>{console.error(`Task "${r}" failed with error:`,N),E(new Error(`${r} failed: ${N.message||N}`))})})}preloadData(){if(this.preloadDataPromiseCached)return this.preloadDataPromiseCached;const s=6e4;this.isLoading=!0;const r=[{name:"Articles",promise:this.wrapWithRejection(this.withTimeout(this.loadArticles(),s,"Articles"),"Articles")},{name:"Snips",promise:this.wrapWithRejection(this.withTimeout(this.loadSnips(),s,"Snips"),"Snips")},{name:"Shipments",promise:this.wrapWithRejection(this.withTimeout(this.loadShipments(),s,"Shipments"),"Shipments")},{name:"Groups",promise:this.wrapWithRejection(this.withTimeout(this.loadGroupsJson(),s,"Groups"),"Groups")}];return this.preloadDataPromiseCached=Promise.allSettled(r.map(l=>l.promise)).then(l=>{const E=l.filter(ae=>"rejected"===ae.status).map(ae=>ae.reason),N=l.filter(ae=>"fulfilled"===ae.status);E.length===r.length?(console.error("Hard failure: All preloadData calls failed."),this.hasHardFailure=!0,this.hasSoftFailure=!1,this.hardFailureSubject.next(),E.forEach(ae=>{console.error("Hard failure reason:",ae)})):E.length>0?(console.warn("Soft failure: Some preloadData calls failed."),this.hasSoftFailure=!0,this.hasHardFailure=!1,this.softFailureSubject.next(),E.forEach(ae=>{console.error("Soft failure reason:",ae)})):(this.hasSoftFailure=!1,this.hasHardFailure=!1),N.length>0&&this.fillGroupSlots(),this.isLoading=!1,this.preloadDataPromiseCached=null,this.loadingCompletedSubject.next()}).finally(()=>{this.isLoading=!1}),this.preloadDataPromiseCached}loadGroupsJson(){return this.http.get(`${this.scope.apiEndpoint}designlayout`).toPromise().then(s=>{if(!s)throw console.error("Error: No data received from design layout endpoint."),new Error("No data received from design layout endpoint.");try{return this.groups=JSON.parse(s),this.filledGroups=JSON.parse(s),this.groups}catch(r){throw console.error("JSON parse error:",r),r}}).catch(s=>(console.error("Error getting design layout:",s),Promise.reject(s)))}loadLoadableArticleIds(){return this.articleService.getArticleIds().then(s=>{this.loadableArticleIds=s})}loadArticles(){return this.articles.length>0?Promise.resolve():this.articleService.getArticleIds().then(s=>{this.loadableArticleIds=s}).then(s=>this.articleService.getMainArticles().then(r=>{r.forEach(E=>{1==E.articleListDisplayableType?this.articles.push(E):this.sponsored.push(E)})}))}loadSnips(){return this.snips.length>0?Promise.resolve():this.snipService.getFrontpageSnips().then(s=>{let r=s.filter(l=>null==l.deleted&&null==l.archived&&null!=l.published);this.snips=[...r]})}loadShipments(){return this.shipments.length>0?Promise.resolve():this.shipmentService.getShipmentSuperNoWait().then(s=>{s.forEach(l=>{null!==l&&this.shipments.push(l)})})}fillGroupSlots(){const s=this.composableCardsResolverService;this.filledGroups=this.groups.map(r=>{const E=r.slots.map(N=>{let ae,ze;const dt=s.resolveSlotDataType(N.contentType);if("article"===dt&&this.articles.length>0){ae=this.articles.shift(),ze=s.resolveComponent(N.contentType),this.slotedArticles.push(ae);let Kt=this.slotedArticleIds.indexOf(ae.id);Kt>-1&&this.slotedArticleIds.splice(Kt,1),ae&&this.slotedArticleIds.push(ae.id)}else if("sponsored"===dt){if(this.sponsored.length>0)ae=this.sponsored.shift(),ze=s.resolveComponent(N.contentType);else if(this.articles.length>0){ae=this.articles.shift(),ze=s.resolveComponent("DisplayableShipmentWithImageComponent"==N.contentType?"DisplayableArticleWithImageComponent":"DisplayableArticleWithoutImageComponent"),this.slotedArticles.push(ae);let Kt=this.slotedArticleIds.indexOf(ae.id);Kt>-1&&this.slotedArticleIds.splice(Kt,1),ae&&this.slotedArticleIds.push(ae.id)}}else"snip"===dt&&this.snips.length>0?(ae=this.snips.shift(),ze=s.resolveComponent(N.contentType)):"shipment"===dt&&this.shipments.length>0?(ae=this.shipments.shift(),ze=s.resolveComponent(N.contentType)):console.warn("No data found for slot type:",N.contentType);return ae&&ze?{...N,data:ae,renderComponent:ze}:null}).filter(N=>null!==N);return E.length>0?{...r,slots:E}:null}).filter(r=>null!==r)}canLoadMore(){return this.slotedArticleIds.length<this.loadableArticleIds.length}loadMore(){this.isLoadingMore=!0;const s=this.composableCardsResolverService,l=this.loadableArticleIds.filter(E=>!this.slotedArticleIds.includes(E)).slice(0,this.loadMorePageSize);return this.articleService.getArticlesByIds(l).then(E=>{const N=[];for(let ae=0;ae<E.length;ae+=2){const ze={groupType:"TwoArticleWithImage",slots:[{data:E[ae],renderComponent:s.resolveComponent("DisplayableArticleWithImageComponent"),contentType:"article",shouldDisplayImage:!0},{data:E[ae+1],renderComponent:s.resolveComponent("DisplayableArticleWithImageComponent"),contentType:"article",shouldDisplayImage:!0}].filter(dt=>void 0!==dt.data)};N.push(ze)}this.filledGroups=[...this.filledGroups,...N],E.forEach(ae=>{this.articles.push(ae),this.slotedArticleIds.push(ae.id)}),this.isLoadingMore=!1}).catch(E=>{console.error("Error loading more articles:",E),this.isLoadingMore=!1})}reloadAllData(){return(this.hasHardFailure||this.hasSoftFailure)&&(this.preloadDataPromiseCached=null),this.preloadDataPromiseCached?this.preloadDataPromiseCached:(this.articles=[],this.sponsored=[],this.snips=[],this.shipments=[],this.slotedArticles=[],this.slotedSponsored=[],this.slotedSnips=[],this.slotedShipments=[],this.loadableArticleIds=[],this.slotedArticleIds=[],this.slotedSponsoredIds=[],this.filledGroups=[],this.groups=[],this.preloadData().then(()=>{}).catch(s=>{console.error("Error reloading all data:",s)}))}saveScrollPosition(s){this.scrollPosition=s}getScrollPosition(){return this.scrollPosition}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(kD),m.KVO(id),m.KVO(Gh),m.KVO(Xe),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),ch=(()=>{var o;class t{constructor(s){this.deviceInfoService=s,this.width=this.deviceInfoService.getUserAgentInfo().isMobile?"auto":450}popErrorToast(s){(0,$o.A)({message:s,width:this.width},"error",2e3)}popSuccessToast(s,r="bottom center"){(0,$o.A)({message:s,width:this.width,position:r},"success",2e3)}popInfoToast(s,r){(0,$o.A)({message:s,width:this.width},"info",r??2e3)}popWarningToast(s){(0,$o.A)({message:s,width:this.width},"warning",2e3)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Ce.E))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),hE=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.toaster=r,this.networkSpeedSubject=new qt.t(5e5),this.networkStatusSubject=new qt.t(navigator.onLine),this.networkConditionSubject=new qt.t("slow"),this.currentNetworkSpeed=5e5,this.isOnline=!0,this.scope=this.scopeService.getScope(),this.detectNetworkSpeed(),window.addEventListener("online",this.updateNetworkStatus.bind(this)),window.addEventListener("offline",this.updateNetworkStatus.bind(this))}getNetworkSpeed(){return this.detectNetworkSpeed(),this.networkSpeedSubject.asObservable()}detectNetworkSpeed(){var s=this;return(0,ei.A)(function*(){let r;const l=navigator.connection;if(l){switch(l.type||l.effectiveType){case"wifi":case"ethernet":case"4g":r=5000004;break;case"cellular":case"3g":r=1000003;break;default:r=500002}s.currentNetworkSpeed=r}else r=yield s.estimateNetworkSpeed(),s.currentNetworkSpeed=r;return s.networkSpeedSubject.next(r),r})()}estimateNetworkSpeed(){return(0,ei.A)(function*(){const l=performance.now();try{const E=yield fetch("/content/fonts/alegreya/alegreya400.woff2",{cache:"no-cache"}),ae=(performance.now()-l)/1e3,ze=E.headers.get("Content-Length");console.log("Content-Length",ze);let Kt=8*(ze?parseInt(ze,10):36356)/ae;return console.log("SPEED",Kt),Kt}catch(E){return console.error("Error estimating network speed:",E),290848}})()}updateNetworkStatus(){this.isOnline=navigator.onLine,this.networkStatusSubject.next(this.isOnline);let s=this.scope.network.getResourceOrKeyName(this.isOnline?"web_connection_changed_to_online":"web_connection_changed_to_offline");this.isOnline?this.toaster.popSuccessToast(s):this.toaster.popErrorToast(s)}ngOnDestroy(){window.removeEventListener("online",this.updateNetworkStatus.bind(this)),window.removeEventListener("offline",this.updateNetworkStatus.bind(this))}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Se.A),m.KVO(ch))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const d1=(o,t)=>({"Snips-background-color":o,"Snips-background-color-fallback":t}),mv=o=>({data:o});function Ag(o,t){1&o&&e.eu8(0)}function u1(o,t){if(1&o&&(e.j41(0,"div",6),e.DNE(1,Ag,1,0,"ng-container",7),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.Y8G("ngComponentOutlet",n.renderComponent)("ngComponentOutletInputs",e.eq3(2,mv,n.data))}}function Ny(o,t){if(1&o&&(e.qex(0,1),e.j41(1,"li",5),e.Z7z(2,u1,2,4,"div",6,e.fX1),e.k0s(),e.bVm()),2&o){const n=t.$implicit,s=e.XpG(2);e.R7$(),e.HbH(e.VkB("slot-group ",n.groupType)),e.Y8G("ngClass",e.l_i(4,d1,s.hasCommunityBackgroundColor&&"Snips"==n.groupType,!s.hasCommunityBackgroundColor&&"Snips"==n.groupType)),e.R7$(),e.Dyx(n.slots)}}function Ly(o,t){if(1&o&&(e.j41(0,"div",8)(1,"span",9),e.EFF(2),e.k0s(),e.nrm(3,"dx-load-indicator",10),e.k0s()),2&o){const n=e.XpG(2);e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_showMore")),e.R7$(),e.Y8G("visible",n.frontPageService.isLoadingMore)}}function BD(o,t){if(1&o){const n=e.RV6();e.j41(0,"ul",0),e.Z7z(1,Ny,4,7,"ng-container",1,e.fX1),e.k0s(),e.j41(3,"div",2)(4,"dx-button",3),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.frontPageService.loadMore())})("keydown.enter",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.frontPageService.loadMore())}),e.DNE(5,Ly,4,2,"div",4),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Dyx(n.groups),e.R7$(3),e.Y8G("visible",n.frontPageService.canLoadMore()),e.R7$(),e.Y8G("dxTemplateOf","content")}}function fc(o,t){1&o&&e.nrm(0,"app-apicodo-loading-spinner")}new m.nKC("slotData");let Nm=(()=>{var o;class t{constructor(s,r,l,E){this.injector=s,this.frontPageService=r,this.scopeService=l,this.themingService=E,this.groups=[],this.hasCommunityBackgroundColor=!1,this.scope=this.scopeService.getScope(),this.themingServiceSubscription=this.themingService.themingChanged$.subscribe(N=>{this.hasCommunityBackgroundColor="dark"==N.resolvedTheme&&this.scope.network.settings.colorSecondaryBackgroundDark||"light"==N.resolvedTheme&&this.scope.network.settings.colorSecondaryBackground})}ngOnChanges(s){}ngAfterViewInit(){}ngOnDestroy(){window,this.themingServiceSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(m.zZn),e.rXU(Sf),e.rXU(Se.A),e.rXU(oo))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-frontpage-designer-list"]],inputs:{groups:"groups"},standalone:!1,features:[e.OA$],decls:2,vars:1,consts:[[1,"front-page-designer-list-base-wrapper"],[1,"front-page-designer-list-base"],[1,"d-flex","justify-content-center","show-more-button"],[1,"load-more-button",3,"onClick","keydown.enter","visible"],["tabindex","0",4,"dxTemplate","dxTemplateOf"],[3,"ngClass"],[1,"slot-wrapper"],[4,"ngComponentOutlet","ngComponentOutletInputs"],["tabindex","0"],[1,"dx-button-text"],["aria-live","polite","aria-label","Loading\u2026","height","20","width","20","aria-hidden","true",1,"button-indicator",3,"visible"]],template:function(r,l){1&r&&e.nVh(0,BD,6,2)(1,fc,1,0,"app-apicodo-loading-spinner"),2&r&&e.vxM(l.frontPageService.isLoading?1:0)},dependencies:[C.YU,C.OI,Et.eC,Gn.e,Wn.B,Bt],styles:[".front-page-designer-list-base-wrapper[_ngcontent-%COMP%]{padding:0;margin:0;list-style-type:none}@media (orientation: portrait) and (min-width: 768px){.front-page-designer-list-base-wrapper[_ngcontent-%COMP%]{padding:0 16px}}.slot-wrapper[_ngcontent-%COMP%]{width:100%;min-height:200px;position:relative}.layout-skeleton[_ngcontent-%COMP%]{min-height:350px;aspect-ratio:4/3;position:relative;overflow:hidden}.button-indicator[_ngcontent-%COMP%]{margin-left:5px}.slot-group[_ngcontent-%COMP%]{clear:both;margin-top:20px}.slot-group[_ngcontent-%COMP%]     .lead-article{padding:24px;background-color:#f3f3f3}@media (max-width: 768px){.slot-group[_ngcontent-%COMP%]     .lead-article{padding:0}}.slot-group   [data-theme=dark][_nghost-%COMP%]     .lead-article, [data-theme=dark]   [_nghost-%COMP%]     .lead-article{padding:24px;background-color:var(--textColor10)}@media (max-width: 768px){.slot-group   [data-theme=dark][_nghost-%COMP%]     .lead-article, [data-theme=dark]   [_nghost-%COMP%]     .lead-article{padding:0}}@media (max-width: 768px){.slot-group[_ngcontent-%COMP%]{margin-top:2rem;padding:0}}.TwoArticleWithImage.slot-group[_ngcontent-%COMP%]{display:flex;gap:2rem}.TwoArticleWithImage.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(50% - 1rem)}@media (max-width: 768px){.TwoArticleWithImage.slot-group[_ngcontent-%COMP%]{display:block;padding:0 32px}.TwoArticleWithImage.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-bottom:32px}.TwoArticleWithImage.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}}.TwoArticleWithoutImage.slot-group[_ngcontent-%COMP%]{display:flex;gap:2rem}.TwoArticleWithoutImage.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(50% - 1rem)}@media (max-width: 768px){.TwoArticleWithoutImage.slot-group[_ngcontent-%COMP%]{display:block;padding:0 32px}.TwoArticleWithoutImage.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-bottom:32px}.TwoArticleWithoutImage.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}}.TwoArticleWithImageShipmentRight.slot-group[_ngcontent-%COMP%]{display:flex;gap:2rem}.TwoArticleWithImageShipmentRight.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(50% - 1rem)}@media (max-width: 768px){.TwoArticleWithImageShipmentRight.slot-group[_ngcontent-%COMP%]{display:block;padding:0 32px}.TwoArticleWithImageShipmentRight.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-bottom:32px}.TwoArticleWithImageShipmentRight.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}}.TwoArticleWithImageShipmentLeft.slot-group[_ngcontent-%COMP%]{display:flex;gap:2rem}.TwoArticleWithImageShipmentLeft.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(50% - 1rem)}@media (max-width: 768px){.TwoArticleWithImageShipmentLeft.slot-group[_ngcontent-%COMP%]{display:block;padding:0 32px}.TwoArticleWithImageShipmentLeft.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-bottom:32px}.TwoArticleWithImageShipmentLeft.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}}.TwoArticleWithImageShipmentBoth.slot-group[_ngcontent-%COMP%]{display:flex;gap:2rem}.TwoArticleWithImageShipmentBoth.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(50% - 1rem)}@media (max-width: 768px){.TwoArticleWithImageShipmentBoth.slot-group[_ngcontent-%COMP%]{display:block;padding:0 32px}.TwoArticleWithImageShipmentBoth.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-bottom:32px}.TwoArticleWithImageShipmentBoth.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}}.TwoArticleWithoutImageShipmentBoth.slot-group[_ngcontent-%COMP%]{display:flex;gap:2rem}.TwoArticleWithoutImageShipmentBoth.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(50% - 1rem)}@media (max-width: 768px){.TwoArticleWithoutImageShipmentBoth.slot-group[_ngcontent-%COMP%]{display:block;padding:0 32px}.TwoArticleWithoutImageShipmentBoth.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-bottom:32px}.TwoArticleWithoutImageShipmentBoth.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}}.TwoArticleWithoutImageShipmentLeft.slot-group[_ngcontent-%COMP%]{display:flex;gap:2rem}.TwoArticleWithoutImageShipmentLeft.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(50% - 1rem)}@media (max-width: 768px){.TwoArticleWithoutImageShipmentLeft.slot-group[_ngcontent-%COMP%]{display:block;padding:0 32px}.TwoArticleWithoutImageShipmentLeft.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-bottom:32px}.TwoArticleWithoutImageShipmentLeft.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}}.TwoArticleWithoutImageShipmentRight.slot-group[_ngcontent-%COMP%]{display:flex;gap:2rem}.TwoArticleWithoutImageShipmentRight.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(50% - 1rem)}@media (max-width: 768px){.TwoArticleWithoutImageShipmentRight.slot-group[_ngcontent-%COMP%]{display:block;padding:0 32px}.TwoArticleWithoutImageShipmentRight.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-bottom:32px}.TwoArticleWithoutImageShipmentRight.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}}.slot-group[_ngcontent-%COMP%]     app-displayable-article-with-image{display:block}.slot-group[_ngcontent-%COMP%]     app-displayable-article-without-image{display:block}.SuperBanner.slot-group[_ngcontent-%COMP%]{margin-bottom:10px}.Snips.slot-group[_ngcontent-%COMP%]{padding:32px 100% 60px;display:flex;flex-wrap:wrap;gap:48px;justify-content:center;margin-bottom:80px;margin-left:-100%;margin-right:-100%}.Snips.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:18.46rem;flex:0 1 18.46rem;height:20rem;margin-bottom:2rem}@media (max-width: 768px){.Snips.slot-group[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:95%;margin-bottom:3.5rem}}.Snips-background-color[_ngcontent-%COMP%]{background-color:var(--colorSecondaryBackground)}.Snips-background-color-fallback[_ngcontent-%COMP%]{background-color:var(--color2-alpha20)}.load-more[_ngcontent-%COMP%]{color:var(--textColor);font-weight:600;font-size:1.8rem;height:2.5rem;margin-bottom:2rem}@media (max-width: 768px){.load-more[_ngcontent-%COMP%]{font-size:1rem;height:2rem}}  app-frontpage-designer-list>ul>li:first-child.LeadArticleImageRight.slot-group .lead-article-background-color{background-color:var(--colorPrimaryBackground)}  app-frontpage-designer-list>ul>li:first-child.LeadArticleImageRight.slot-group .lead-article-background-color-fallback{background-color:var(--color1-alpha20)}  app-frontpage-designer-list>ul>li:first-child.LeadArticleImageLeft.slot-group .lead-article-background-color{background-color:var(--colorPrimaryBackground)}  app-frontpage-designer-list>ul>li:first-child.LeadArticleImageLeft.slot-group .lead-article-background-color-fallback{background-color:var(--color1-alpha20)}"]}))}return o(),t})(),_v=(()=>{var o;class t{constructor(s,r,l){this.articleService=s,this.snipService=r,this.frontPageService=l}translateContent(s){var r=this;return(0,ei.A)(function*(){const[l,E]=yield Promise.all([r.articleService.getTranslatedArticles(s),r.snipService.getTranslatedSnipList(s)]),N=r.mapItemsById(l),ae=r.mapItemsById(E);r.frontPageService.filledGroups.forEach(ze=>{const dt=ze.groupType.toLowerCase();dt.includes("article")?r.updateGroupSlots(ze,N):dt.includes("snips")&&r.updateGroupSlots(ze,ae)})})()}mapItemsById(s){return s.reduce((r,l)=>(r[l.id]=l,r),{})}updateGroupSlots(s,r){s.slots.forEach(l=>{const E=l.data.id;r[E]&&(l.data=r[E])})}translateSnip(s,r){var l=this;return(0,ei.A)(function*(){return yield l.snipService.getTranslatedSnipDetails(s,r)})()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(id),m.KVO(Gh),m.KVO(Sf))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();function Np(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",0),e.nrm(1,"i",1),e.j41(2,"dx-select-box",2),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.translate(r))}),e.k0s(),e.nrm(3,"dx-load-indicator",3),e.k0s()}if(2&o){const n=e.XpG();e.R7$(2),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_article_translation_languageSelectBox_placeholder")))("items",n.availableTargetLanguages),e.R7$(),e.Y8G("visible",n.showLoadIndicator)}}let Tf=(()=>{var o;class t{constructor(s,r,l){this.legacyTranslationService=s,this.translationService=r,this.scopeService=l,this.translationType="content",this.availableTargetLanguages=[],this.showLoadIndicator=!1,this.onValueChanged=new e.bkB,this.scope=this.scopeService.getScope()}ngOnInit(){this.loadAvailableTargetLanguages()}loadAvailableTargetLanguages(){var s=this;return(0,ei.A)(function*(){try{const r=yield s.translationService.getAvailableTargetLanguages();r&&(s.availableTargetLanguages=Object.entries(r).map(([l,E])=>({languageCode:l,nativeName:E})))}catch(r){console.error("Error by getting languages",r)}})()}translate(s){var r=this;return(0,ei.A)(function*(){r.showLoadIndicator=!0;try{"content"===r.translationType?yield r.legacyTranslationService.translateContent(s.value):("snip"===r.translationType&&r.snipId||"survey"===r.translationType&&r.surveyId)&&r.onValueChanged.emit(s)}catch(l){console.error("Error on legacy translation",l)}finally{r.showLoadIndicator=!1}})()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(_v),e.rXU(Bn.M),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-legacy-translation"]],inputs:{translationType:"translationType",snipId:"snipId",surveyId:"surveyId"},outputs:{onValueChanged:"onValueChanged"},standalone:!1,decls:1,vars:1,consts:[[1,"legacy-translation-base"],[1,"fa-solid","fa-language","languag-icon"],["displayExpr","nativeName","valueExpr","languageCode","stylingMode","underlined",1,"",3,"onValueChanged","placeholder","items"],["id","small-indicator","height","20","width","20","aria-hidden","true",3,"visible"]],template:function(r,l){1&r&&e.nVh(0,Np,4,4,"div",0),2&r&&e.vxM(l.availableTargetLanguages.length>0?0:-1)},dependencies:[Wn.B,is.l],styles:[".legacy-translation-base[_ngcontent-%COMP%]{display:flex;justify-content:end;max-width:var(--designContentWidth);align-items:center;margin:0 auto;padding:1rem 1rem 0rem}.legacy-translation-base[_ngcontent-%COMP%]   .languag-icon[_ngcontent-%COMP%]{margin-right:5px}"]}))}return o(),t})();function Ig(o,t){if(1&o&&(e.j41(0,"div",2),e.nrm(1,"i",6),e.j41(2,"h3"),e.EFF(3),e.k0s()()),2&o){const n=e.XpG();e.R7$(3),e.JRh(n.offlineMessage)}}function Vy(o,t){1&o&&(e.j41(0,"div",3),e.nrm(1,"app-legacy-translation"),e.k0s())}function pE(o,t){if(1&o){const n=e.RV6();e.j41(0,"p"),e.EFF(1),e.k0s(),e.j41(2,"dx-button",7),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.frontPageService.reloadAllData())}),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.hardLoadingErrorText),e.R7$(),e.Y8G("text",n.reloadButtonText)}}function FD(o,t){if(1&o){const n=e.RV6();e.j41(0,"p"),e.EFF(1),e.k0s(),e.j41(2,"dx-button",7),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.frontPageService.reloadAllData())}),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.softLoadingErrorText),e.R7$(),e.Y8G("text",n.reloadButtonText)}}function ND(o,t){if(1&o&&(e.nVh(0,pE,3,2),e.nVh(1,FD,3,2)),2&o){const n=e.XpG();e.vxM(n.frontPageService.hasHardFailure&&!n.frontPageService.isLoading?0:-1),e.R7$(),e.vxM(n.frontPageService.hasSoftFailure&&!n.frontPageService.isLoading?1:-1)}}let LD=(()=>{var o;class t{constructor(s,r,l){this.frontPageService=s,this.scopeService=r,this.connectivityService=l,this.loadingTimeout=!1,this.timeoutMessage="Timeout occured. You can try reloading or wait longer.",this.softLoadingErrorText="Frontpage data loaded, but not completely.",this.hardLoadingErrorText="Frontpage data load failed.",this.reloadButtonText="Reload",this.offlineMessage="Application offline",this.legacyTranslationActivated=!1,this.firstReloadAttempt=!0,this.scope=r.getScope(),this.timeoutMessage=this.scope.network.getResourceOrKeyName("web_frontpage_loading_timeout"),this.reloadButtonText=this.scope.network.getResourceOrKeyName("web_frontpage_reload_button_txt"),this.softLoadingErrorText=this.scope.network.getResourceOrKeyName("web_frontpage_load_incomplete"),this.hardLoadingErrorText=this.scope.network.getResourceOrKeyName("web_frontpage_load_failure"),this.offlineMessage=this.scope.network.getResourceOrKeyName("web_network_connection_offline"),this.loadSubscription=this.frontPageService.loadingCompleted.subscribe(()=>{this.clearLoadingTimeout()}),this.legacyTranslationActivated=0!==this.scope.currentScope.chapter.settings?.featureTranslationProvider}ngOnDestroy(){this.clearLoadingTimeout(),this.networkSpeedSubscription&&this.networkSpeedSubscription.unsubscribe(),this.loadSubscription&&this.loadSubscription.unsubscribe()}ngOnInit(){var s=this;return(0,ei.A)(function*(){try{const r=s.connectivityService.currentNetworkSpeed;let l;if(l=r>=5e6?3e3:r>=1e6?5e3:8e3,!s.frontPageService.isLoading)return;s.startLoadingTimeout(l)}catch(r){console.error("Error detecting network speed:",r),s.startLoadingTimeout(8e3)}})()}loadMore(){this.frontPageService.loadMore()}clearLoadingTimeout(){this.loadingTimeout=!1,this.timeoutId&&clearTimeout(this.timeoutId)}retryLoading(){this.clearLoadingTimeout(),this.frontPageService.reloadAllData().then(()=>{this.ngOnInit()}).catch(s=>{console.error("Error reloading data:",s)})}startLoadingTimeout(s){if(!this.frontPageService.isLoading)return this.clearLoadingTimeout(),void(this.loadingTimeout=!1);this.clearLoadingTimeout(),this.timeoutId=setTimeout(()=>{this.frontPageService.isLoading?(this.loadingTimeout=!0,this.firstReloadAttempt&&(this.retryLoading(),this.firstReloadAttempt=!1)):(this.clearLoadingTimeout(),this.loadingTimeout=!1)},s)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Sf),e.rXU(Se.A),e.rXU(hE))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-main-news"]],standalone:!1,decls:9,vars:5,consts:[[1,"root-slides-wrapper"],[1,"hidden-header"],[1,"app-offline"],[1,"main-news-legacyTranslation"],[1,"frontpage-designer-wrapper"],[3,"groups"],[1,"fas","fa-cloud"],["width","100%","icon","refresh",3,"onClick","text"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"h1",1),e.EFF(2),e.k0s(),e.nVh(3,Ig,4,1,"div",2),e.nrm(4,"ngx-shipment-premium"),e.nVh(5,Vy,2,0,"div",3),e.j41(6,"div",4),e.nrm(7,"app-frontpage-designer-list",5),e.k0s(),e.nVh(8,ND,2,2),e.k0s()),2&r&&(e.R7$(2),e.JRh(l.scope.network.getResourceOrKeyName("web_common_page_description_home")+l.scope.currentChapter.name+l.scope.network.getResourceOrKeyName("web_common_news_title")),e.R7$(),e.vxM(l.connectivityService.isOnline?-1:3),e.R7$(2),e.vxM(l.frontPageService.filledGroups.length>0&&l.legacyTranslationActivated?5:-1),e.R7$(2),e.Y8G("groups",l.frontPageService.filledGroups),e.R7$(),e.vxM(l.connectivityService.isOnline?8:-1))},dependencies:[Gn.e,yf,Nm,Tf],styles:["app-frontpage-designer-list[_ngcontent-%COMP%]{max-width:var(--designContentWidth);margin:0 auto;display:block}.frontpage-designer-wrapper[_ngcontent-%COMP%]{min-height:90vh}.app-offline[_ngcontent-%COMP%]{background-color:var(--colorErrorDark-light);color:#fff;text-align:center;padding:20px;border-radius:8px;box-shadow:0 4px 6px #0000001a;display:flex;align-items:center;justify-content:center;gap:10px;animation:_ngcontent-%COMP%_fade-in .5s ease-in-out}.app-offline[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:24px}.app-offline[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0;font-size:18px;font-weight:700}@keyframes _ngcontent-%COMP%_fade-in{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}"]}))}return o(),t})();var VD=p(1023);let Af=(()=>{var o;class t{timeout(s,r){setTimeout(s,r)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();function vv(o,t){if(1&o&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.scope.currentScope.network.resources.web_notificationSettings_description_1," ")}}function Cv(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",6)(1,"div",7)(2,"input",8),e.bIt("change",function(){m.eBV(n);const r=e.XpG().$implicit,l=e.XpG();return m.Njj(l.toggleNotificationGroup(r))}),e.k0s(),e.j41(3,"label",9),e.EFF(4),e.k0s()()()}if(2&o){const n=e.XpG().$implicit,s=e.XpG();e.R7$(2),e.Y8G("id",e.VkB("ng",n.id))("value",n.id)("checked",n.enabled),e.R7$(),e.Y8G("for",e.VkB("ng",n.id)),e.R7$(),e.SpI(" ",s.scope.currentScope.network.resources[n.name]||"!RES["+n.name+"]"," ")}}function Lp(o,t){if(1&o&&e.nVh(0,Cv,5,7,"div",6),2&o){const n=t.$implicit,s=e.XpG();e.vxM(s.scope.currentScope.chapter.settings.featureBreakingNewsToAll&&6===n.order?-1:0)}}function Mg(o,t){if(1&o&&(e.j41(0,"div",3),e.nrm(1,"i",10),e.EFF(2),e.k0s()),2&o){const n=e.XpG();e.R7$(2),e.SpI(" ",n.scope.currentScope.network.resources.web_notificationSettings_saveProcessing,". ")}}function Lm(o,t){if(1&o&&(e.j41(0,"div",4),e.nrm(1,"i",11),e.EFF(2),e.k0s()),2&o){const n=e.XpG();e.R7$(2),e.SpI(" ",n.scope.currentScope.network.resources.web_notificationSettings_saveSuccessful,". ")}}function Hy(o,t){if(1&o&&(e.j41(0,"div",5),e.nrm(1,"i",12),e.EFF(2),e.k0s()),2&o){const n=e.XpG();e.R7$(2),e.SpI(" ",n.scope.currentScope.network.resources.web_notificationSettings_saveError,". ")}}let gE=(()=>{var o;class t{constructor(s,r,l,E,N){this.notificationService=s,this.route=r,this.scopeService=l,this.timeoutService=E,this.globalUserSettingsService=N,this.working=!1,this.success=!1,this.error=!1,this.notificationGroups=[],this.userEmail=null,this.privateUserGuid=null,this.scope=this.scopeService.getScope()}ngOnInit(){this.privateUserGuid=null;let s=!0;this.scope.profile.isAdmin||this.scope.profile.isNetworkAdmin||(s=!1,this.scope.profile.chapterRoles&&this.scope.profile.chapterRoles.forEach(E=>{E>2&&(s=!0)}));let r=this.scope.currentScope.network.settings.configurations.enableCalendar,l=this.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration&&this.scope.profile.chapterRoles?.any(E=>E>=this.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration.MinEventCreationRole);this.notificationService.getNotificationGroups(this.privateUserGuid).then(E=>{if(s||(E=E.filter(N=>1001!==N.order&&"domain_notification_articlePushedToMyChapter"!=N.name&&"domain_workflow_submit_for_admin"!=N.name&&"web_content_connect_event_publish_notification_request"!=N.name&&"web_notificationSettings_notificationGroups_3"!=N.name&&"web_notificationSettings_notificationGroups_4"!=N.name)),this.scope.profile.isRegistered||(E=E.filter(N=>"web_chat_new_open_group_notification"!=N.name&&"web_notificationSettings_notificationGroups_1"!=N.name&&"web_notificationSettings_notificationGroups_0"!=N.name)),r?l||(E=E.filter(N=>"domain_event_comment_release_for_admin"!=N.name)):E=E.filter(N=>"web_notificationSettings_notificationGroups_birthday_calendar"!=N.name&&"domain_event_comment_release_for_admin"!=N.name),this.notificationGroups=E,window.location.href.includes("optOutAll")&&(this.notificationGroups.forEach(N=>{6===N.order&&this.scope.currentScope.chapter.settings.featureBreakingNewsToAll||(N.enabled=!1)}),this.working=!0,this.notificationService.updateNotificationGroups(this.notificationGroups,this.privateUserGuid).then(()=>{this.timeoutService.timeout(()=>{this.working=!1,this.success=!0},2e3)}).catch(()=>{this.error=!0})),this.scope.currentChapter.settings.configurations.chatChapterConfiguration?.ChatEnabled){let N=!1;this.globalUserSettingsService.getSettings().then(ae=>{ae&&(N=!!ae&&ae.notificationsDisabled,this.notificationGroups.push({id:"chat",order:999,enabled:!N,name:"web_notificationSettings_notificationGroups_chat",readStatusDisabled:ae.readStatusDisabled}))})}}).catch(()=>{this.error=!0}),this.notificationService.getUserEmail(this.privateUserGuid).then(E=>{this.userEmail=E}).catch(()=>{this.error=!0})}toggleNotificationGroup(s){s.enabled=!s.enabled,this.success=!1,this.working=!0,"chat"==s.id?this.globalUserSettingsService.saveSettings({notificationsDisabled:!s.enabled,readStatusDisabled:s.readStatusDisabled}).then(()=>{this.timeoutService.timeout(()=>{this.working=!1,this.success=!0},2e3)}).catch(()=>{this.error=!0,s.enabled=!s.enabled}):this.notificationService.updateNotificationGroups(this.notificationGroups,this.privateUserGuid).then(()=>{this.timeoutService.timeout(()=>{this.working=!1,this.success=!0},2e3)}).catch(()=>{this.error=!0,s.enabled=!s.enabled})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Fd.J),e.rXU(Vt.nX),e.rXU(Se.A),e.rXU(Af),e.rXU(VD.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-notifications-settings"]],standalone:!1,decls:17,vars:8,consts:[[1,"notification-settings","page"],[1,"notification-settings-title","p-0"],[1,"notificationsettings"],[1,"col-xs-12","alert","alert-info"],[1,"col-xs-12","alert","alert-success"],[1,"col-xs-12","alert","alert-danger"],[2,"padding-bottom","15px"],[1,"form-check","form-switch"],["type","checkbox",1,"form-check-input",3,"change","id","value","checked"],[1,"form-check-label",3,"for"],[1,"fa","fa-spinner","fa-pulse"],[1,"fa","fa-check"],[1,"fa","fa-warning"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"h1",1),e.EFF(2),e.k0s(),e.nrm(3,"br"),e.j41(4,"p"),e.EFF(5),e.nVh(6,vv,2,1,"span"),e.EFF(7),e.j41(8,"b"),e.EFF(9),e.k0s(),e.EFF(10,". "),e.k0s(),e.j41(11,"div",2),e.Z7z(12,Lp,1,1,null,null,e.fX1),e.k0s(),e.nVh(14,Mg,3,1,"div",3),e.nVh(15,Lm,3,1,"div",4),e.nVh(16,Hy,3,1,"div",5),e.k0s()),2&r&&(e.R7$(2),e.SpI(" ",l.scope.currentScope.network.resources.web_notificationSettings_redesign_pageTitle," "),e.R7$(3),e.SpI(" ",l.scope.currentScope.network.resources.web_notificationSettings_description_0," "),e.R7$(),e.vxM(l.scope.currentScope.network.settings.appLinkAndroid||l.scope.currentScope.network.settings.appLinkITunes?6:-1),e.R7$(),e.SpI(" ",l.scope.currentScope.network.resources.web_notificationSettings_description_2," "),e.R7$(2),e.JRh(l.userEmail),e.R7$(3),e.Dyx(l.notificationGroups),e.R7$(2),e.vxM(l.working?14:-1),e.R7$(),e.vxM(l.success?15:-1),e.R7$(),e.vxM(l.error?16:-1))},styles:['.notification-settings[_ngcontent-%COMP%]{padding-top:50px!important}.notification-settings[_ngcontent-%COMP%]   .notification-settings-title[_ngcontent-%COMP%]{font-size:2rem;color:var(--textColor);font-weight:600;line-height:130%;font-family:var(--fontSecondary);margin-bottom:1rem}.notification-settings[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + label[_ngcontent-%COMP%], .notification-settings[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]{display:flex;margin-bottom:5px;line-height:130%;font-weight:600}.notification-settings[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]:before{content:""}.notification-settings[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%], .notification-settings[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{display:unset}.notification-settings[_ngcontent-%COMP%]   .form-check-input[_ngcontent-%COMP%]:checked{background-color:var(--colorPrimary);border-color:var(--colorPrimary)}@media (max-width: 768px){.notification-settings[_ngcontent-%COMP%]   .notification-settings-title[_ngcontent-%COMP%]{font-size:1.5rem;color:var(--textColor);font-weight:600;line-height:130%;font-family:var(--fontSecondary)}}']}))}return o(),t})(),Vp=(()=>{var o;class t{constructor(s,r,l,E){this.scopeService=s,this.cordovaService=r,this.clickService=l,this.router=E,this.scope=this.scopeService.getScope(),this.isCordovaAvailable=this.cordovaService.isCordovaAvailable(),this.isCordovaAvailable&&(this.cordova=this.cordovaService.cordova)}redirect(s,r=""){let l=!1;if(s.match(new RegExp("https?:\\/\\/(.*\\/)?"+location.hostname+".*")))l=!0;else try{new URL(s),l=!1}catch{s.match("^(?:https?:)?\\/\\/.*")||(l=!0)}if(this.isCordovaAvailable)if(console.info("Cordova redirect"),"_blank"===r){if(!s)return;if(l)if(console.info("Cordova redirect internal (target: _blank)"),s.startsWith("/click/"))setTimeout(()=>{this.router.navigateByUrl(s)});else if(-1!==s.indexOf("/document/")||-1!==s.indexOf("/pdf/")){const ae=/[^/]*$/.exec(s)?.[0];ae&&this.clickService.downloadFile(ae)}else if(-1!==s.indexOf("/file/")){console.info("File");const ae=/[^/]*$/.exec(s)?.[0];ae&&this.clickService.downloadFile(ae)}else this.scope.currentChapter.path.length>1?s.startsWith(this.scope.currentScope.network.path+this.scope.currentChapter.path)?setTimeout(()=>{const ae=s.replace(this.scope.currentScope.network.path,"");window.history.pushState({},"",ae),window.dispatchEvent(new PopStateEvent("popstate",{state:{}}))}):window.location.href=s:(this.scope.chapters.filter(ae=>2===ae.managementState&&ae.path!=this.scope.currentChapter.path).forEach(ae=>{s.startsWith(this.scope.currentScope.network.path+ae.path)&&(window.location.href=s)}),setTimeout(()=>{const ae=s.replace("https://"+location.hostname,"");window.history.pushState({},"",ae),window.dispatchEvent(new PopStateEvent("popstate",{state:{}}))}));else if(console.info("Cordova redirect external (target: _blank)"),this.cordova){const ae=this.scope.currentScope.network.settings.configurations.inAppBrowserOnly;let ze="location=no,toolbarposition=top,toolbartranslucent=no";"android"===this.cordova.platformId&&(ze="location=yes,hideurlbar=yes,zoom=no,closebuttoncaption="+this.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"));var N="_blank";(!ae||s.match("mailto:.*")||s.match("tel:.*"))&&(N="_system"),this.cordova.InAppBrowser.open(s,N,ze)}else console.log("external link: error while calling in app browser"),window.open(s,"_blank")}else{if(!s)return;if(l)if(console.info("Cordova redirect internal (target: _self or nothing)"),s.startsWith("/click/"))setTimeout(()=>{this.router.navigateByUrl(s)});else if(-1!==s.indexOf("/document/")||-1!==s.indexOf("/pdf/")){const ae=/[^/]*$/.exec(s)?.[0];ae&&this.clickService.downloadFile(ae)}else if(-1!==s.indexOf("/file/")){console.info("File");const ae=/[^/]*$/.exec(s)?.[0];ae&&this.clickService.downloadFile(ae)}else this.pushStateOrOpen(s,r);else if(this.cordova){console.info("Cordova redirect external (target: _self or nothing)");const ae=this.scope.currentScope.network.settings.configurations.inAppBrowserOnly;let ze="location=no,toolbarposition=top,toolbartranslucent=no";"android"===this.cordova.platformId&&(ze="location=yes,hideurlbar=yes,zoom=no,closebuttoncaption="+this.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")),N="_blank",(!ae||s.match("mailto:.*")||s.match("tel:.*"))&&(N="_system"),this.cordova.InAppBrowser.open(s,N,ze)}else console.log("external link: error while calling in app browser"),window.open(s,"_blank")}else this.pushStateOrOpen(s,r)}pushStateOrOpen(s,r){const l="_blank"===r?"_blank":"_self";if(/^(mailto:|tel:|sms:|geo:|ftp:)/i.test(s))window.open(s,l);else{if(this.isHttpLink(s)){const ae=this.isInternalLink(s);return"_blank"===l?void window.open(s,"_blank"):void(ae?this.replaceUrlInHistory(s):window.open(s,"_self"))}if(this.isChapterLink(s)){let ae=s.substring(s.lastIndexOf("/"));if(this.scope.currentScope.networkPath.length>1&&(ae=this.scope.currentScope.networkPath+ae),this.isCordovaAvailable){if("android"===this.cordova.platformId){var N=history.length-1;history.go(-N),history.replaceState(null,"",ae),window.location.href=ae}return void(window.location.href=ae)}return void("_blank"===l?window.open(ae,"_blank"):window.location.href=ae)}"_blank"===l?window.open(s,"_blank"):window.history.pushState("","",s)}}isHttpLink(s){return s.startsWith("http")}isInternalLink(s){try{return new URL(s,document.baseURI).hostname===window.location.hostname||s.includes(this.scope.currentScope.network.domain)}catch{return!0}}isChapterLink(s){let r=s.substring(s.lastIndexOf("/"));return this.scope.chapters.any(l=>l.path==r&&2==l.managementState)}replaceUrlInHistory(s){const r="localhost"===window.location.hostname,l=this.scope.currentChapter.path,E=this.scope.currentScope.network.path;if(l.length>1&&!r){const N=s.replace(E,"");window.history.pushState("","",N)}else if(l.length>1&&r){const N=s.replace("https:/","");window.history.pushState("","",N)}else{const N=s.replace(E,"");window.history.pushState("","",N)}}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Se.A),m.KVO(Wt.q),m.KVO(xt._),m.KVO(Vt.Ix))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const $y=()=>({width:300}),HD=(o,t)=>({"aria-label":o,"aria-keyshortcuts":t});function Uy(o,t){if(1&o&&(e.j41(0,"p",6),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.scope.currentScope.network.resources.web_root_notification_noNotifications," ")}}function If(o,t){1&o&&e.nrm(0,"div",19)}function $D(o,t){if(1&o){const n=e.RV6();e.j41(0,"li",8)(1,"div",10),e.bIt("click",function(){const r=m.eBV(n).$implicit,l=e.XpG();return m.Njj(l.clickNotification(r))})("keydown.enter",function(){const r=m.eBV(n).$implicit,l=e.XpG();return m.Njj(l.clickNotification(r))})("keydown.space",function(){const r=m.eBV(n).$implicit,l=e.XpG();return m.Njj(l.clickNotification(r))}),e.j41(2,"div",11)(3,"div",12)(4,"div",13),e.nrm(5,"img",14),e.k0s(),e.j41(6,"div",15)(7,"div",16),e.nrm(8,"div",17),e.nI1(9,"apicodoTranslateText"),e.nI1(10,"async"),e.j41(11,"div",18),e.EFF(12),e.nI1(13,"relativeDate"),e.k0s()(),e.nVh(14,If,1,0,"div",19),e.k0s()()()()()}if(2&o){const n=t.$implicit;e.R7$(5),e.AVh("notification-image",!n.imageRound)("notification-image-round",n.imageRound),e.Y8G("lazy-img",n.imageUri+(n.imageUri.includes("?")?"&preset=article-assets":"?preset=article-assets")),e.R7$(),e.Y8G("ngClass",n.imageRound?"notification-text-container-center":""),e.R7$(2),e.Y8G("innerHTML",e.bMT(10,11,e.bMT(9,9,n.html)),e.npT),e.R7$(4),e.SpI(" ",e.bMT(13,13,n.created)," "),e.R7$(2),e.vxM(n.clicked?-1:14)}}let fE=(()=>{var o;class t{trackById(s,r){return r.id}constructor(s,r,l,E,N,ae){this.metaService=s,this.notificationService=r,this.redirectService=l,this.routerTracker=E,this.scopeService=N,this.deviceInfoService=ae,this.message="Notifications message works!",this.notifications=[],this.notificationsLoading=!0,this.notificationMenu=[],this.isIos=!1,this.openNotificationsSettings=()=>{this.routerTracker.switchState("app.notificationsettings",null)},this.scope=this.scopeService.getScope(),this.isIos=this.deviceInfoService.getUserAgentInfo().isIos||this.deviceInfoService.getUserAgentInfo().isSafari}ngOnInit(){this.notificationMenu.push({icon:"fa-regular fa-bell",text:this.scope.currentScope.network.resources.web_notifications_mark_as_readed,iconType:Xh.MarkAllAsClicked}),this.notificationMenu.push({icon:"fa-solid fa-gear",text:this.scope.currentScope.network.resources.web_common_settings,iconType:Xh.Settings}),this.loadNotifications(),this.notificationUpdateInterval=(0,at.Y)(3e4).subscribe(()=>{this.routerTracker.getCurrentRouteState().angularJsState.includes("app.main-notifications")&&this.loadNotifications()}),this.notificationService.updateUnseenCount()}ngOnDestroy(){this.notificationUpdateInterval&&this.notificationUpdateInterval.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}clickNotification(s){this.notificationService.click(s),s.openSeparate?this.redirectService.redirect(s.uri,"_blank"):this.redirectService.redirect(s.uri)}notificationMenueItemClick(s){switch(s){case Xh.MarkAllAsClicked:this.notificationService.markAllAsClicked().subscribe(r=>{this.notifications=this.notifications.map(l=>null===l.clicked?{...l,clicked:Date.now()}:l),this.loadNotifications()},r=>{console.log(r)});break;case Xh.Settings:this.openNotificationsSettings()}}fixAriaLabel(s){const r=s.element;let l=r.querySelector(".dx-dropdownbutton-action.dx-button");l||(l=r.querySelector('.dx-buttongroup [role="button"]')),l&&l.setAttribute("aria-label",this.scope.currentScope.network.getResourceOrKeyName("web_common_further_options"))}loadNotifications(){this.notificationsLoading=!0,this.notificationService.getNotifications().then(s=>{this.notifications=[...s],this.notificationsLoading=!1}).catch(()=>{this.notificationsLoading=!1})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Wh.R),e.rXU(Fd.J),e.rXU(Vp),e.rXU(Ko.o),e.rXU(Se.A),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-root-notifications"]],inputs:{inputParam:"inputParam"},standalone:!1,decls:12,vars:14,consts:[["role","region",1,"root-notification"],[1,"root-notification-base"],[1,"d-flex","align-items-center"],[1,"root-notification-title"],[1,"ms-auto","settings_button"],["text","","icon","overflow","stylingMode","text","type","normal",3,"onItemClick","onContentReady","dropDownOptions","items","showArrowIcon","useItemTextAsTitle","hint","elementAttr"],[1,"notification-placeholder"],["aria-label","Notifications",1,"notification-list"],[1,"notification-item"],[3,"isLoading","loadingMessage"],["role","button","tabindex","0",3,"click","keydown.enter","keydown.space"],[1,"row"],[1,"notification-item-test"],[1,"notification-avatar-wrapper"],["alt","",1,"notification-image",3,"lazy-img"],[1,"notification-text-container",3,"ngClass"],[1,"notification-text"],[3,"innerHTML"],[1,"notification-time"],["aria-hidden","true",1,"status-dot"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),e.EFF(4),e.k0s(),e.j41(5,"div",4)(6,"dx-drop-down-button",5),e.bIt("onItemClick",function(N){return l.notificationMenueItemClick(N.itemData.iconType)})("onContentReady",function(N){return l.fixAriaLabel(N)}),e.k0s()()(),e.nVh(7,Uy,2,1,"p",6),e.j41(8,"ul",7),e.Z7z(9,$D,15,15,"li",8,l.trackById,!0),e.k0s()(),e.nrm(11,"app-apicodo-loading-spinner",9),e.k0s()),2&r&&(e.R7$(4),e.SpI(" ",l.scope.currentScope.network.resources.web_root_notification_title," "),e.R7$(2),e.Y8G("dropDownOptions",e.lJ4(10,$y))("items",l.notificationMenu)("showArrowIcon",!1)("useItemTextAsTitle",!1)("hint",l.scope.currentScope.network.getResourceOrKeyName("web_common_further_options"))("elementAttr",e.l_i(11,HD,l.scope.currentScope.network.getResourceOrKeyName("web_common_further_options"),l.isIos?"Shift+ArrowUp Shift+ArrowDown":"")),e.R7$(),e.vxM(l.notifications&&0===l.notifications.length?7:-1),e.R7$(2),e.Dyx(l.notifications),e.R7$(2),e.Y8G("isLoading",l.notificationsLoading)("loadingMessage",l.scope.currentScope.network.resources.web_notifications_are_loading_message))},dependencies:[C.YU,Po.h,Bt,vd.L,C.Jj,Fo,Ul],styles:[".root-notification[_ngcontent-%COMP%]{min-height:60vh}.root-notification[_ngcontent-%COMP%]   .root-notification-base[_ngcontent-%COMP%]     .dx-dropdownbutton:not(.dx-dropdownbutton-has-arrow) .dx-button-has-icon:not(.dx-button-has-text) .dx-icon{font-size:2rem;height:2.5rem}.root-notification[_ngcontent-%COMP%]   .root-notification-base[_ngcontent-%COMP%]     .dx-dropdownbutton.dx-state-hover{outline:0}@media (max-width: 768px){.root-notification[_ngcontent-%COMP%]   .root-notification-base[_ngcontent-%COMP%]   .settings_button[_ngcontent-%COMP%]{padding-right:10px}}.root-notification[_ngcontent-%COMP%]   .root-notification-title[_ngcontent-%COMP%]{font-size:2rem;color:var(--textColor);font-weight:600;line-height:130%;font-family:var(--fontSecondary);margin-bottom:1rem;padding-top:0;padding-bottom:0}.root-notification[_ngcontent-%COMP%]   .notification-list[_ngcontent-%COMP%]{list-style:none;padding-left:0}.root-notification[_ngcontent-%COMP%]   .notification-item[_ngcontent-%COMP%]{cursor:pointer;border-bottom:none;vertical-align:middle;font-size:1.3em;line-height:1.5em;margin-top:-1px;padding:15px;overflow-x:hidden}.root-notification[_ngcontent-%COMP%]   .notification-text[_ngcontent-%COMP%]{width:calc(100% - 65px);float:left}.root-notification[_ngcontent-%COMP%]   .notification-image-round[_ngcontent-%COMP%]{border-radius:50%;width:10rem;min-width:10rem;object-fit:cover;padding:1.5rem;aspect-ratio:1}.root-notification[_ngcontent-%COMP%]   .notification-text-container[_ngcontent-%COMP%]{border-bottom:1px solid var(--textColor);margin-left:2rem;transform:translateY(5%);width:100%;color:var(--textColor60);word-break:break-all}.root-notification[_ngcontent-%COMP%]   .notification-text-container-center[_ngcontent-%COMP%]{display:flex;align-items:center}.root-notification[_ngcontent-%COMP%]   .notification-item-test[_ngcontent-%COMP%]{display:flex}.root-notification[_ngcontent-%COMP%]   .notification-image[_ngcontent-%COMP%]{aspect-ratio:4/3;width:10rem;object-fit:cover}.root-notification[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{border:none}.root-notification[_ngcontent-%COMP%]   .status-dot[_ngcontent-%COMP%]{width:.625rem;height:.625rem;background-color:var(--colorPrimary);border-radius:50%;position:absolute;top:10%;right:0;transform:translateY(-50%)}@media (max-width: 768px){.root-notification[_ngcontent-%COMP%]   .root-notification-title[_ngcontent-%COMP%]{font-size:1.5rem;color:var(--textColor);font-weight:600;line-height:130%;font-family:var(--fontSecondary);padding-left:2rem}.root-notification[_ngcontent-%COMP%]   .notification-image[_ngcontent-%COMP%]{aspect-ratio:4/3;width:5rem;object-fit:unset}.root-notification[_ngcontent-%COMP%]   .notification-item[_ngcontent-%COMP%]{cursor:pointer;border-bottom:none;vertical-align:middle;font-size:.8rem;line-height:1.5em;margin-top:-1px;padding:15px;overflow-x:hidden}.root-notification[_ngcontent-%COMP%]   .notification-text[_ngcontent-%COMP%]{width:calc(100% - 20px);float:left}.root-notification[_ngcontent-%COMP%]   .notification-image-round[_ngcontent-%COMP%]{border-radius:50%;width:5rem;min-width:5rem;max-width:5rem;height:5rem;object-fit:cover;padding:.5rem}.root-notification[_ngcontent-%COMP%]   .notification-text-container[_ngcontent-%COMP%]{border-bottom:1px solid var(--textColor);margin-left:1rem;transform:translateY(5%);width:100%}}.root-notification[_ngcontent-%COMP%]     .dx-button-mode-text .dx-icon{color:var(--textColor);font-size:1.5rem}"]}))}return o(),t})();var Xh=function(o){return o[o.MarkAllAsClicked=0]="MarkAllAsClicked",o[o.Settings=1]="Settings",o}(Xh||{});function yv(o,t){if(1&o&&(e.j41(0,"div",5)(1,"a",7)(2,"div",8),e.nrm(3,"i",9),e.k0s(),e.j41(4,"div",10)(5,"span"),e.EFF(6),e.k0s()()()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("href",n.appLinkAndroid,e.B4B),e.R7$(5),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_appStore_android_button_text"))}}function jy(o,t){if(1&o&&(e.j41(0,"div",6)(1,"a",7)(2,"div",8),e.nrm(3,"i",11),e.k0s(),e.j41(4,"div",10)(5,"span"),e.EFF(6),e.k0s()()()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("href",n.appLinkITunes,e.B4B),e.R7$(5),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_appStore_ios_button_text"))}}let Gy=(()=>{var o;class t{constructor(s,r){this.deviceInfoService=s,this.scopeService=r,this.showIos=!1,this.showAndroid=!1,this.appLinkITunes="",this.appLinkAndroid="",this.scope=r.getScope()}ngOnInit(){this.scope.currentScope.network.settings.appLinkAndroid&&(this.appLinkAndroid=this.scope.currentScope.network.settings.appLinkAndroid),this.scope.currentScope.network.settings.appLinkITunes&&(this.appLinkITunes=this.scope.currentScope.network.settings.appLinkITunes);let s=this.deviceInfoService.getUserAgentInfo();this.showIos=this.appLinkITunes.length>0&&(s.isIos||s.isOtherDevice),this.showAndroid=this.appLinkAndroid.length>0&&(s.isAndroid||s.isOtherDevice)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Ce.E),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-app-store"]],standalone:!1,decls:9,vars:3,consts:[[1,"container"],[1,"row"],[1,"col-12","d-flex","justify-content-center","mb-4"],[1,"app-store-heading"],[1,"row","app-store-button-wrapper"],[1,"col-6","d-flex","justify-content-end"],[1,"col-6","d-flex","justify-content-start","app-store-button-ios-wrapper"],[1,"btn","btn-outline-primary","d-flex",3,"href"],[1,"app-store-button-icon"],[1,"fa-brands","fa-android"],[1,"app-store-button-text"],[1,"fa-brands","fa-apple"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1"),e.EFF(5),e.k0s()()()(),e.j41(6,"div",4),e.nVh(7,yv,7,2,"div",5),e.nVh(8,jy,7,2,"div",6),e.k0s()()),2&r&&(e.R7$(5),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_appStore_pageTitle")),e.R7$(2),e.vxM(l.showAndroid?7:-1),e.R7$(),e.vxM(l.showIos?8:-1))},dependencies:[Ft.B],styles:[".app-store-heading[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:3.75rem;font-weight:400;font-family:var(--fontPrimary)}.app-store-button-wrapper[_ngcontent-%COMP%]{padding-left:5%}.app-store-button-icon[_ngcontent-%COMP%]{padding-right:.313rem;font-size:1.563rem}.app-store-button-ios-wrapper[_ngcontent-%COMP%]{padding-left:5%}.app-store-button-text[_ngcontent-%COMP%]{font-size:1.563rem;font-weight:700;text-transform:uppercase}@media (max-width: 768px){.app-store-heading[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.75rem}.app-store-button-icon[_ngcontent-%COMP%], .app-store-button-text[_ngcontent-%COMP%]{font-size:1rem}}@media (max-width: 504px){.app-store-heading[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.75rem}.app-store-button-text[_ngcontent-%COMP%], .app-store-button-icon[_ngcontent-%COMP%]{font-size:.875rem}}"]}))}return o(),t})();var Vm=p(8041);function UD(o,t){1&o&&(e.j41(0,"div",1),e.nrm(1,"app-legacy-translation"),e.k0s())}function Hm(o,t){if(1&o&&(e.j41(0,"li",3),e.nrm(1,"app-displayable-snip",4),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.Y8G("data",n)}}let Wy=(()=>{var o;class t{constructor(s,r){this.snipService=s,this.scopeService=r,this.snips=null,this.legacyTranslationActivated=!1,this.scope=r.getScope(),this.legacyTranslationActivated=0!==this.scope.currentScope.chapter.settings?.featureTranslationProvider}ngOnInit(){this.snipService.snips$.subscribe(s=>{this.snips=s.filter(r=>this.showSnip(r)).sort((r,l)=>new Date(l.published).getTime()-new Date(r.published).getTime())})}showSnip(s){if(null==s.deleted&&null==s.archived){if(null!=s.published)return!0;if(null==s.published&&s.user.guid==this.scope.profile.guid)return!0}return!1}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Gh),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-snip-list"]],standalone:!1,decls:5,vars:1,consts:[[1,"snip-list-base"],[1,"snip-list-legacyTranslation"],[1,"snip-list"],[1,"snip"],[3,"data"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,UD,2,0,"div",1),e.j41(2,"ul",2),e.Z7z(3,Hm,2,1,"li",3,e.fX1),e.k0s()()),2&r&&(e.R7$(),e.vxM(l.snips&&l.legacyTranslationActivated?1:-1),e.R7$(2),e.Dyx(l.snips))},dependencies:[By,Tf],styles:[".snip-list-base[_ngcontent-%COMP%]   .snip-list-legacyTranslation[_ngcontent-%COMP%]{padding-bottom:2rem}.snip-list-base[_ngcontent-%COMP%]   .snip-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:48px;justify-content:center;width:100%;margin:0;padding:0 0 30px;list-style-type:none}.snip-list-base[_ngcontent-%COMP%]   .snip-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{flex:0 1 18.46rem;box-sizing:border-box;width:18.46rem;height:20rem;margin-bottom:2.5rem}@media (max-width: 768px){.snip-list-base[_ngcontent-%COMP%]   .snip-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{max-width:95vw;box-sizing:border-box;width:18.46rem;height:20rem;margin-bottom:3.5rem}}"]}))}return o(),t})();const bv=o=>({"aria-label":o}),jD=()=>({width:"auto"});function GD(o,t){if(1&o&&e.nrm(0,"img",23),2&o){const n=e.XpG();e.Y8G("src",n.avatarUrl,e.B4B)("alt","")}}function xv(o,t){if(1&o&&(e.j41(0,"div",24),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.initials," ")}}function Pg(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,GD,1,2,"img",23),e.nVh(2,xv,2,1,"div",24),e.k0s()),2&o){const n=t;e.R7$(),e.vxM(n.avatarUrl?1:-1),e.R7$(),e.vxM(n.useInitials?2:-1)}}function Ev(o,t){if(1&o&&(e.j41(0,"div",4),e.nVh(1,Pg,3,2,"div"),e.nI1(2,"createAvatar"),e.k0s()),2&o){let n;const s=e.XpG();e.R7$(),e.vxM((n=e.bMT(2,1,s.user))?1:-1,n)}}function mE(o,t){if(1&o&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.E5c(" ",n.scope.currentScope.network.resources.web_common_requiredCharacters_0," ",n.scope.currentScope.chapter.settings.snipMinLength-n.previewData.text.length," ",n.scope.currentScope.network.resources.web_common_requiredCharacters_1," ")}}function er(o,t){if(1&o&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.E5c(" ",n.scope.currentScope.network.resources.web_common_remainingCharacters_0," ",n.scope.currentScope.chapter.settings.snipMaxLength-n.previewData.text.length," ",n.scope.currentScope.network.resources.web_common_remainingCharacters_1," ")}}function WD(o,t){if(1&o&&(e.j41(0,"div",9),e.nVh(1,mE,2,3,"span",25),e.nVh(2,er,2,3,"span",25),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.previewData.text.length<=n.scope.currentScope.chapter.settings.snipMinLength-1?1:-1),e.R7$(),e.vxM(n.previewData.text.length>n.scope.currentScope.chapter.settings.snipMinLength-1?2:-1)}}function _E(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",13)(1,"dx-button",26),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.addSnip())}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("text",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_common_publish")))("disabled",n.previewData.text.length<n.scope.currentScope.chapter.settings.snipMinLength)}}function kl(o,t){if(1&o&&(e.j41(0,"div",31),e.nrm(1,"img",34),e.k0s()),2&o){const n=e.XpG().$implicit,s=e.XpG(2);e.R7$(),e.AVh("thumbnail-selected",s.thumbnailGuid===n.guid),e.Y8G("src",s.blob+s.blobFolder+n.assetImage.guid,e.B4B)}}function hl(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",30),e.nVh(1,kl,2,3,"div",31),e.j41(2,"div",32)(3,"dx-drop-down-button",33),e.bIt("onItemClick",function(r){const l=m.eBV(n).$implicit,E=e.XpG(2);return m.Njj(E.imageMenuItemClick(r.itemData.type,l.guid))}),e.k0s()()()}if(2&o){const n=t.$implicit,s=e.XpG(2);e.R7$(),e.vxM(n.assetImage?1:-1),e.R7$(2),e.Y8G("dropDownOptions",e.lJ4(8,jD))("hoverStateEnabled",!0)("focusStateEnabled",!0)("items",s.imageMenu)("showArrowIcon",!1)("hint",s.scope.currentScope.network.getResourceOrKeyName("web_snip_apply_thump_options_aria"))("elementAttr",e.eq3(9,bv,s.scope.currentScope.network.getResourceOrKeyName("web_snip_apply_thump_options_aria")))}}function Zl(o,t){if(1&o&&(e.j41(0,"div",14)(1,"div",27)(2,"div",28)(3,"div",29),e.Z7z(4,hl,4,11,"div",30,e.fX1),e.k0s()()()()),2&o){const n=e.XpG();e.R7$(4),e.Dyx(null==n.snip?null:n.snip.assetReferences)}}function Mf(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",13)(1,"dx-button",26),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.addSnip())}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("text",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_common_publish")))("disabled",n.previewData.text.length<n.scope.currentScope.chapter.settings.snipMinLength)}}let dh=(()=>{var o;class t{constructor(s,r,l,E,N,ae){this.scopeService=s,this.assetService=r,this.snipService=l,this.popupService=E,this.deviceInfoService=N,this.profileService=ae,this.snip=null,this.previewData=null,this.snipRequestModel=null,this.blobFolder="/images/",this.thumbnailGuid=null,this.minTextLength=null,this.isMobile=!1,this.closeDrawer=new e.bkB,this.assetCreateResultCallback=ze=>{this.snip&&(this.snip.assetReferences.unshift(ze),this.thumbnailGuid||(this.thumbnailGuid=ze.guid,this.snipService.setThumbnail(this.snip.id,ze.guid),this.previewData.extendedConfigurations=`{"thumbnailGuid":"${ze.guid}"}`),this.previewData={...this.previewData,assetReferences:[...this.snip.assetReferences]})},this.openImageDialog=(ze,dt)=>{this.popupService.openPopup({title:"CreateImageDialog",component:wt,width:"auto",height:"auto",onClose:()=>{},data:{templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controllerName:"AssetCreateImageDialog",bindings:{resultCallback:this.assetCreateResultCallback,files:ze,createAssetAsync:Vn=>this.assetService.insertAssetImageToSnipLegacy(Vn,dt.id.toString())}}})},this.prepairPreview=()=>{this.previewData={originChapterSlug:"",chapterSlug:"",text:"",formattedText:"",published:null,archived:null,deleted:null,created:(new Date).toISOString(),calendarDate:null,score:0,likes:0,iLike:!1,assetReferences:[],chapterSlugs:[],path:"",articleListDisplayableType:"",moddifiedText:"",extendedConfigurations:null},this.thumbnailGuid=null},this.initImageMenu=()=>{this.imageMenu=[{icon:"fa-solid fa-trash-can",text:this.scope.currentScope.network.resources.web_snip_apply_image_menu_delete,type:"delete"},{icon:"fa-regular fa-image",text:this.scope.currentScope.network.resources.web_snip_apply_image_menu_set_thumbnail,type:"thumbnail"}]},this.scope=this.scopeService.getScope(),this.user=this.scope.profile,this.profileServiceSubscription=this.profileService.profileChanged$.subscribe(ze=>this.user=ze)}ngAfterViewInit(){setTimeout(()=>this.textArea.instance.focus(),0)}ngOnInit(){this.prepairPreview(),this.blob=this.scope.globalSettings.blobStorageCdnUrl,this.initImageMenu(),this.scope.currentScope.chapter.settings.snipMinLength&&(this.minTextLength=this.scope.currentScope.chapter.settings.snipMinLength),this.isMobile=window.innerWidth<=830}beforeUnloadHandler(s){this.snip?.id&&(s.preventDefault(),s.returnValue=!1)}resize(s){this.isMobile=s.target.innerWidth<=830}ngOnDestroy(){this.clearInput(),this.profileServiceSubscription.unsubscribe()}onFilesSelected(s){var r=this;return(0,ei.A)(function*(){const l=s.target;if(l.files&&l.files.length>0){const E=Array.from(l.files);null==r.snip&&(r.snipRequestModel={text:r.previewData.text,chapters:[],chapterSlugs:[],deleted:new Date},r.snip=yield r.snipService.createSnip(r.snipRequestModel)),r.snip?.id&&r.openImageDialog(E,r.snip)}})()}clearInput(){this.previewData.text="",this.snip?.id&&(this.snipService.deleteSnipAsyncFromDatabase(this.snip.id),this.snip=null),this.prepairPreview(),this.previewData={...this.previewData},this.closeDrawer.emit()}addSnip(){if(this.previewData.text&&!this.snip?.id)this.snipService.createSnip({text:this.previewData.text,chapters:[],chapterSlugs:[]});else{if(!this.previewData.text||!this.snip?.id)return void alert("Bitte einen Text eingeben");this.snipService.updateSnipText(this.snip.id,this.previewData.text)}this.snip=null,this.clearInput()}generateModifiedText(s){this.previewData.modifiedText="&"==s.slice(0,1)?"<span>"+s.slice(0,s.indexOf(";")+1)+"</span>"+s.slice(s.indexOf(";")+1):"<span>"+s.slice(0,1)+"</span>"+s.slice(1)}focusTextArea(){this.textArea.instance.focus()}imageMenuItemClick(s,r){var l=this;return(0,ei.A)(function*(){switch(s){case"delete":l.snip&&l.snip.assetReferences&&(l.snip.assetReferences=l.snip.assetReferences.filter(E=>E.guid!==r)),l.assetService.remove(r).subscribe(()=>{},E=>{console.error(l.scope.currentScope.network.resources.web_snip_apply_image_delete_error,E)});break;case"thumbnail":null!=l.snip&&(l.snipService.setThumbnail(l.snip?.id,r),l.thumbnailGuid=r,l.previewData.extendedConfigurations=`{"thumbnailGuid":"${r}"}`,l.previewData={...l.previewData})}})()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(yi),e.rXU(Gh),e.rXU(Ln.O),e.rXU(Ce.E),e.rXU($n.p))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-snip-apply"]],viewQuery:function(r,l){if(1&r&&e.GBs(mi._,5),2&r){let E;e.mGM(E=e.lsd())&&(l.textArea=E.first)}},hostBindings:function(r,l){1&r&&e.bIt("beforeunload",function(N){return l.beforeUnloadHandler(N)},e.tSv)("resize",function(N){return l.resize(N)},e.tSv)},outputs:{previewData:"previewData",closeDrawer:"closeDrawer"},standalone:!1,decls:28,vars:22,consts:[["fileInput",""],[1,"snip-apply-container","row"],[1,"snip-apply"],[1,"d-flex"],[1,"snip-apply-avatar-container"],[1,"input-group","row"],[1,"col-12","col-md-6"],["labelMode","floating","valueChangeEvent","input",3,"valueChange","onValueChanged","value","label","maxLength","autoResizeEnabled","elementAttr"],[1,"row"],["aria-live","polite",1,"col-12","snip-counter","text-end"],["role","button","tabindex","0",1,"col-12","mb-3","snip-add-image",3,"click","keydown.enter","keydown.space","ngClass"],[1,"fa-regular","fa-image"],["type","file","accept","image/*","multiple","",2,"display","none",3,"change"],[1,"d-flex","justify-content-center","mb-3"],[1,"row","align-items-start"],[1,"snip-preview-container","col-12","col-md-2"],["role","button","tabindex","0",1,"cancle-icon",3,"click","keydown.enter","keydown.space","title"],[1,"circle-icon"],[1,"fa-solid","fa-x"],[1,"preview-wrapper"],[1,"preview"],[3,"data","preview"],[1,"col-12","col-md-12","d-flex","justify-content-center"],[1,"avatar",3,"src","alt"],[1,"avatar-initials","me-2"],[1,"snip-infotext"],["stylingMode","contained",1,"custom-publish-button",3,"onClick","disabled","text"],[1,"col-12","col-md-12","snip-preview-container"],[1,"mt-1"],[1,"row","ml-3","image-preview-scrollview"],[1,"col-4","col-sm-3","col-md-2","mb-5","position-relative","snip-thumpnails"],[1,"image-container"],[1,"snip-previe-menu-button"],["text","","icon","fa-solid fa-gear","stylingMode","text","type","normal","displayExpr","text",3,"onItemClick","dropDownOptions","hoverStateEnabled","focusStateEnabled","items","showArrowIcon","hint","elementAttr"],["alt","","aria-hidden","true",1,"img-fluid","snip-thumbnail-image",3,"src"]],template:function(r,l){if(1&r){const E=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"form")(3,"div",3),e.nVh(4,Ev,3,3,"div",4),e.j41(5,"div",5)(6,"div",6)(7,"dx-text-area",7),e.mxI("valueChange",function(ae){return m.eBV(E),e.DH7(l.previewData.text,ae)||(l.previewData.text=ae),m.Njj(ae)}),e.bIt("onValueChanged",function(ae){return m.eBV(E),m.Njj(l.generateModifiedText(ae.value))}),e.k0s(),e.j41(8,"div",8),e.nVh(9,WD,3,2,"div",9),e.j41(10,"div",10),e.bIt("click",function(){m.eBV(E);const ae=e.sdS(13);return m.Njj(ae.click())})("keydown.enter",function(){m.eBV(E);const ae=e.sdS(13);return m.Njj(ae.click())})("keydown.space",function(){m.eBV(E);const ae=e.sdS(13);return m.Njj(ae.click())}),e.nrm(11,"i",11),e.j41(12,"input",12,0),e.bIt("change",function(ae){return m.eBV(E),m.Njj(l.onFilesSelected(ae))}),e.k0s(),e.j41(14,"div"),e.EFF(15),e.k0s()()(),e.nVh(16,_E,2,3,"div",13),e.nVh(17,Zl,6,0,"div",14),e.k0s(),e.j41(18,"div",15)(19,"div")(20,"div",16),e.bIt("click",function(){return m.eBV(E),m.Njj(l.clearInput())})("keydown.enter",function(){return m.eBV(E),m.Njj(l.clearInput())})("keydown.space",function(){return m.eBV(E),m.Njj(l.clearInput())}),e.j41(21,"div",17),e.nrm(22,"i",18),e.k0s()(),e.j41(23,"div",19)(24,"div",20),e.nrm(25,"app-displayable-snip",21)(26,"div",22),e.k0s()()()()()(),e.nVh(27,Mf,2,3,"div",13),e.k0s()()()}2&r&&(e.R7$(4),e.vxM(l.isMobile?-1:4),e.R7$(3),e.R50("value",l.previewData.text),e.Y8G("label",l.scope.currentScope.network.getResourceOrKeyName("web_snipList_createTextPlaceholder"))("maxLength",l.scope.currentScope.chapter.settings.snipMaxLength)("autoResizeEnabled",!0)("elementAttr",e.eq3(20,bv,l.scope.currentScope.network.getResourceOrKeyName("web_snipList_createTextPlaceholder"))),e.BMQ("aria-required",!0)("aria-live","polite"),e.R7$(2),e.vxM(l.previewData.text.length>0&&l.minTextLength?9:-1),e.R7$(),e.Y8G("ngClass",l.previewData.text?"mt-0":"mt-3"),e.BMQ("aria-label",l.scope.currentScope.network.resources.web_snip_apply_add_image),e.R7$(5),e.SpI(" ",l.scope.currentScope.network.resources.web_snip_apply_add_image," "),e.R7$(),e.vxM(l.isMobile?16:-1),e.R7$(),e.vxM(null!=l.snip&&l.snip.assetReferences?17:-1),e.R7$(3),e.Y8G("title",e.mNQ(l.scope.currentScope.network.getResourceOrKeyName("web_common_close_dialog"))),e.BMQ("aria-label",l.scope.currentScope.network.getResourceOrKeyName("web_common_close_dialog")),e.R7$(5),e.Y8G("data",l.previewData)("preview",!0),e.R7$(2),e.vxM(l.isMobile?-1:27))},dependencies:[C.YU,Ii.qT,Ii.cb,Ii.cV,Gn.e,Po.h,mi._,By,ta._],styles:[".snip-apply-container[_ngcontent-%COMP%]     .dx-textarea{background-color:transparent!important;font-size:1.5rem!important}.snip-apply-container[_ngcontent-%COMP%]     .dx-text-area .dx-texteditor-label .dx-label{font-size:1.5rem!important}.snip-apply-container[_ngcontent-%COMP%]     .dx-text-area .dx-texteditor-label .dx-label span{line-height:.8;font-size:inherit;color:var(--textColor)!important}.snip-apply-container[_ngcontent-%COMP%]     .dx-texteditor-label{color:var(--textColor)!important}.snip-apply-container[_ngcontent-%COMP%]     .dx-texteditor-input{font-size:1.5rem;line-height:1.4}@media (max-width: 768px){.snip-apply-container[_ngcontent-%COMP%]     .dx-texteditor-input{font-size:1.2rem}}.snip-apply-container[_ngcontent-%COMP%]   .snip-apply-avatar-container[_ngcontent-%COMP%]{margin-right:15px}.snip-apply-container[_ngcontent-%COMP%]   .snip-counter[_ngcontent-%COMP%]{margin-top:5px}.snip-apply-container[_ngcontent-%COMP%]   .snip-info[_ngcontent-%COMP%]{margin-left:5px}@media (max-width: 768px){.snip-apply-container[_ngcontent-%COMP%]   .snip-info[_ngcontent-%COMP%]{margin-left:0}}.snip-apply-container[_ngcontent-%COMP%]   .snip-input[_ngcontent-%COMP%]{resize:none;overflow:hidden;min-height:1em}.snip-apply-container[_ngcontent-%COMP%]   .snip-add-image[_ngcontent-%COMP%]{display:flex;font-size:1.2rem;cursor:pointer}.snip-apply-container[_ngcontent-%COMP%]   .snip-add-image[_ngcontent-%COMP%]:hover{text-decoration:underline}.snip-apply-container[_ngcontent-%COMP%]   .snip-add-image[_ngcontent-%COMP%]:focus-visible{outline:1px solid var(--textColor)}.snip-apply-container[_ngcontent-%COMP%]   .snip-add-image[_ngcontent-%COMP%]   .fa-image[_ngcontent-%COMP%]{font-size:1.8rem;margin-right:1rem}.snip-apply-container[_ngcontent-%COMP%]   .snip-list-gallery[_ngcontent-%COMP%]{transform:translateY(-18%)}.snip-apply-container[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:4rem;height:4rem;border-radius:50%;display:block}.snip-apply-container[_ngcontent-%COMP%]   .avatar-initials[_ngcontent-%COMP%]{width:4rem;height:4rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;background-color:#ccc;color:var(--textColor);font-size:1.5rem}.snip-apply-container[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{border:none;border-radius:0;width:100%;font-size:1.5rem;padding-right:2.5rem;background-color:transparent;border-bottom:1px solid var(--light-gray)}.snip-apply-container[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none;border-bottom:1px solid var(--textColor)}.snip-apply-container[_ngcontent-%COMP%]   .button-group[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.snip-apply-container[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:0;border:none;background:none;color:var(--textColor);font-size:1.2rem;margin-left:1rem}.snip-apply-container[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover{color:var(--light-gray)}.snip-apply-container[_ngcontent-%COMP%]   .btn-cancel[_ngcontent-%COMP%]{color:var(--textColor)}.snip-apply-container[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:disabled{color:var(--light-gray);cursor:not-allowed;border:none}.snip-apply-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{position:relative;width:100%;padding-top:75%;overflow:hidden;background-color:var(--textColor)}.snip-apply-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.snip-apply-container[_ngcontent-%COMP%]   .snip-previe-menu-button[_ngcontent-%COMP%]{position:absolute;bottom:-20px;left:38%;background:#fff;border-radius:50%;border:1px solid var(--textColor60);width:30px;height:30px;padding:0;display:flex;align-items:center;z-index:1;justify-content:center}.snip-apply-container[_ngcontent-%COMP%]   .snip-previe-menu-button[_ngcontent-%COMP%]     .dx-icon{color:var(--textColor)}.snip-apply-container[_ngcontent-%COMP%]   .snip-thumbnail-image[_ngcontent-%COMP%]{border:3px solid white}.snip-apply-container[_ngcontent-%COMP%]   .snip-thumbnail-image.thumbnail-selected[_ngcontent-%COMP%]{border:3px solid var(--colorPrimary)}.snip-apply-container[_ngcontent-%COMP%]   .snip-thumbnail-text[_ngcontent-%COMP%]{font-size:1.2rem;font-family:var(--fontPrimary)}.snip-apply-container[_ngcontent-%COMP%]   .preview[_ngcontent-%COMP%]{width:calc(var(--designContentWidth) * .33 - 2rem);transform:translateY(-9%);margin-left:2rem}.snip-apply-container[_ngcontent-%COMP%]   .cancle-icon[_ngcontent-%COMP%]{position:absolute;top:-4.5rem;right:-.7rem;cursor:pointer}.snip-apply-container[_ngcontent-%COMP%]   .cancle-icon[_ngcontent-%COMP%]   .circle-icon[_ngcontent-%COMP%]{width:1.7rem;height:1.7rem;border:1px solid var(--textColor);border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--backgroundColor)}.snip-apply-container[_ngcontent-%COMP%]   .cancle-icon[_ngcontent-%COMP%]   .circle-icon[_ngcontent-%COMP%]:hover{outline:2px solid var(--textColor);outline-offset:5px}.snip-apply-container[_ngcontent-%COMP%]   .cancle-icon[_ngcontent-%COMP%]   .circle-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:var(--textColor);font-size:.8rem}.snip-apply-container[_ngcontent-%COMP%]   .snip-infotext[_ngcontent-%COMP%]{font-size:.7rem}.snip-apply-container[_ngcontent-%COMP%]   .custom-publish-button[_ngcontent-%COMP%]{border-radius:.5rem;color:var(--textColor);cursor:pointer}.snip-apply-container[_ngcontent-%COMP%]   .image-preview-scrollview[_ngcontent-%COMP%]{max-height:15rem;overflow:auto}.visually-hidden[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media (max-width: 768px){.snip-apply-container[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:3rem;height:3rem;border-radius:50%;margin-right:10px}.snip-apply-container[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:0;border:none;background:none;color:var(--textColor);font-size:1rem;margin-left:1rem}.snip-apply-container[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]{flex-grow:1;position:relative;display:flex;flex-direction:column;background-color:transparent}.snip-apply-container[_ngcontent-%COMP%]   .button-group[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.snip-apply-container[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{border:none;border-radius:0;width:100%;font-size:1rem;padding-right:2.5rem;background-color:transparent}.snip-apply-container[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none;border-bottom:1px solid var(--textColor)}.snip-apply-container[_ngcontent-%COMP%]   .snip-add-image[_ngcontent-%COMP%]{display:flex;font-size:.8rem;cursor:pointer;justify-content:center}.snip-apply-container[_ngcontent-%COMP%]   .snip-add-image[_ngcontent-%COMP%]   .fa-image[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.6rem}.snip-apply-container[_ngcontent-%COMP%]   .preview-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.snip-apply-container[_ngcontent-%COMP%]   .preview[_ngcontent-%COMP%]{width:calc(var(--designContentWidth) * .33 - 2rem);transform:translateY(0);margin-left:0rem;transform:scale(.8)}.snip-apply-container[_ngcontent-%COMP%]   .snip-counter[_ngcontent-%COMP%]{margin-bottom:1.5rem;margin-top:3px}.snip-apply-container[_ngcontent-%COMP%]   .cancle-icon[_ngcontent-%COMP%]{position:absolute;top:-3.5rem;right:-.5rem;cursor:pointer}.snip-apply-container[_ngcontent-%COMP%]   .snip-input[_ngcontent-%COMP%]{resize:none;overflow:hidden;min-height:4rem}}"]}))}return o(),t})();const $m=o=>({class:o}),uh=()=>({my:"top",at:"top"});function pl(o,t){if(1&o&&(e.j41(0,"div",5)(1,"h2",11),e.EFF(2),e.k0s(),e.j41(3,"p",12),e.EFF(4),e.k0s(),e.j41(5,"dx-button",13),e.EFF(6),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.resources.web_snipList_createTitle),e.R7$(2),e.JRh(n.scope.currentScope.network.resources.web_snipList_createTextPlaceholder),e.R7$(),e.Y8G("authorizedClickSource","NewSnip"),e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("admin_common_signIn")," ")}}function Ov(o,t){if(1&o&&e.nrm(0,"img",15),2&o){const n=e.XpG();e.Y8G("src",n.avatarUrl,e.B4B)("alt","")}}function vE(o,t){if(1&o&&(e.j41(0,"div",16),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.initials," ")}}function zD(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,Ov,1,2,"img",15),e.nVh(2,vE,2,1,"div",16),e.k0s()),2&o){const n=t;e.R7$(),e.vxM(n.avatarUrl?1:-1),e.R7$(),e.vxM(n.useInitials?2:-1)}}function KD(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",6),e.nVh(1,zD,3,2,"div"),e.nI1(2,"createAvatar"),e.j41(3,"dx-button",14),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.showDrawer())}),e.k0s()()}if(2&o){let n;const s=e.XpG();e.R7$(),e.vxM((n=e.bMT(2,3,s.user))?1:-1,n),e.R7$(2),e.Y8G("text",e.mNQ(s.scope.currentScope.network.getResourceOrKeyName("web_snip_create")))}}let XD=(()=>{var o;class t{constructor(s,r,l,E){this.scopeService=s,this.profileService=r,this.deviceInfoService=l,this.themingService=E,this.drawerOpen=!1,this.isMobile=!1,this.hasCommunityBackgroundColor=!1,this.showDrawer=()=>{this.drawerOpen=!0,document.body.classList.add("popup-open")},this.scope=s.getScope(),this.user=this.scope.profile,this.isMobile=this.deviceInfoService.getUserAgentInfo().isMobile,this.profileServiceSubscription=this.profileService.profileChanged$.subscribe(N=>this.user=N),this.themingServiceSubscription=this.themingService.themingChanged$.subscribe(N=>{this.hasCommunityBackgroundColor="dark"==N.resolvedTheme&&this.scope.network.settings.colorSecondaryBackgroundDark||"light"==N.resolvedTheme&&this.scope.network.settings.colorSecondaryBackground})}ngOnDestroy(){this.profileServiceSubscription.unsubscribe(),this.themingServiceSubscription.unsubscribe()}ngOnInit(){this.animation={show:{type:"slide",duration:600,from:{position:{my:"bottom",at:"top",of:window},opacity:0},to:{position:{my:"center",at:"center",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"center",at:"center",of:window},opacity:1},to:{position:{my:"bottom",at:"top",of:window},opacity:0}}}}closeDrawerHandler(){this.drawerOpen=!1,document.body.classList.remove("popup-open")}labelPopup(s){const r=s.component.content().parentElement;r.setAttribute("aria-modal","true"),r.setAttribute("aria-labelledby","snip-create-title")}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU($n.p),e.rXU(Ce.E),e.rXU(oo))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-snips"]],viewQuery:function(r,l){if(1&r&&e.GBs(Vm.b,7),2&r){let E;e.mGM(E=e.lsd())&&(l.drawer=E.first)}},standalone:!1,decls:17,vars:20,consts:[[1,"snips-component",3,"ngClass"],["id","page-title",1,"hidden-header"],[1,"snip-list-component-wrapper"],[1,"snip-list-component"],[1,"root-newSnip"],[1,"d-flex","flex-column","align-items-center","snips-unregistered-info-wrapper"],[1,"snip-apply-component"],[3,"visibleChange","onShowing","visible","showCloseButton","showTitle","wrapperAttr","title","height","width","dragEnabled","enableBodyScroll","position","animation"],[1,"snip-input-container"],["id","snip-create-title",1,"visually-hidden"],[3,"closeDrawer"],[1,"instruction","text-center"],[1,"text-center"],["appAuthorizedClick","",3,"authorizedClickSource"],["stylingMode","contained",1,"custom-create-snip-button",3,"onClick","text"],[1,"avatar",3,"src","alt"],[1,"avatar-initials","me-2"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"h1",1),e.EFF(2),e.k0s(),e.j41(3,"div",2)(4,"div",3)(5,"div",4),e.nVh(6,pl,7,4,"div",5),e.k0s(),e.nVh(7,KD,4,5,"div",6),e.nrm(8,"div")(9,"br"),e.j41(10,"div"),e.nrm(11,"app-snip-list"),e.k0s()()()(),e.j41(12,"dx-popup",7),e.mxI("visibleChange",function(N){return e.DH7(l.drawerOpen,N)||(l.drawerOpen=N),N}),e.bIt("onShowing",function(N){return l.labelPopup(N)}),e.j41(13,"div",8)(14,"h2",9),e.EFF(15),e.k0s(),e.j41(16,"app-snip-apply",10),e.bIt("closeDrawer",function(){return l.closeDrawerHandler()}),e.k0s()()()),2&r&&(e.Y8G("ngClass",l.hasCommunityBackgroundColor?"snips-component-background-color":"snips-component-background-color-fallback"),e.R7$(2),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_common_page_title_snips")),e.R7$(4),e.vxM(l.user.isRegistered||l.user.hasPartnerAccessAllowed?-1:6),e.R7$(),e.vxM(l.user.isRegistered||l.user.hasPartnerAccessAllowed?7:-1),e.R7$(5),e.R50("visible",l.drawerOpen),e.Y8G("showCloseButton",!0)("showTitle",!1)("wrapperAttr",e.eq3(16,$m,"snip-apply-popup"+(l.hasCommunityBackgroundColor?" snip-apply-popup-background-color":" snip-apply-popup-background-color-fallback")))("title","Snip erstellen")("height",l.isMobile?"100vh":"600px")("width","100%")("dragEnabled",!1)("enableBodyScroll",!1)("position",e.lJ4(l.isMobile?18:19,uh))("animation",l.animation),e.R7$(3),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_snip_create")))},dependencies:[C.YU,Gn.e,en.i,bi,Wy,dh,ta._],styles:[".snips-component[_ngcontent-%COMP%]{margin-bottom:0;padding-top:.7rem;overflow-x:hidden}.snips-component[_ngcontent-%COMP%]   .snip-apply-component[_ngcontent-%COMP%]{padding-top:5rem;margin-bottom:1rem;display:flex;justify-content:center;align-items:center}.snips-component[_ngcontent-%COMP%]   .snip-list-component-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;min-height:100vh}.snips-component[_ngcontent-%COMP%]   .snip-list-component-wrapper[_ngcontent-%COMP%]   .snip-list-component[_ngcontent-%COMP%]{width:var(--designContentWidth)}.snips-component[_ngcontent-%COMP%]   .custom-create-snip-button[_ngcontent-%COMP%]{border-radius:.5rem;color:var(--textColor);cursor:pointer}.snips-component[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:3.5rem;height:3.5rem;border-radius:50%;display:block;margin-right:1.2rem}.snips-component[_ngcontent-%COMP%]   .avatar-initials[_ngcontent-%COMP%]{width:3.5rem;height:3.5rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;background-color:#ccc;color:var(--textColor);font-size:1.2rem;margin-right:1.2rem}.snips-component[_ngcontent-%COMP%]   .snips-unregistered-info-wrapper[_ngcontent-%COMP%]{margin:48px 15px 0}.snip-input-container[_ngcontent-%COMP%]{width:var(--designContentWidth);margin-top:70px}@media (max-width: 768px){.snip-input-container[_ngcontent-%COMP%]{width:99%;margin-top:55px}}.snips-component-background-color[_ngcontent-%COMP%]{background-color:var(--colorSecondaryBackground)}.snips-component-background-color-fallback[_ngcontent-%COMP%]{background-color:var(--color2-alpha50)}  .snip-apply-popup-background-color .dx-overlay-content{background-color:var(--colorSecondaryBackground)!important}  .snip-apply-popup-background-color-fallback .dx-overlay-content{background-color:color-mix(in srgb,var(--colorSecondary) 70%,var(--backgroundColor))!important}  .snip-apply-popup .dx-overlay-content{z-index:1501;left:0;top:0;transform:translate(0);transition:none;padding-top:16px;padding-left:32px;padding-right:32px;border-radius:0;box-shadow:0 5px 6px 0 var(--color2-alpha50)}  .snip-apply-popup .dx-popup-content{display:flex;justify-content:center}@media (max-width: 768px){  .snip-apply-popup .dx-popup-content{overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}}  .snip-apply-popup .dx-popup-content::-webkit-scrollbar{display:none}@media (max-width: 768px){.snips-component[_ngcontent-%COMP%]{padding-top:0rem}.snips-component[_ngcontent-%COMP%]     .dx-overlay-wrapper{height:100vh!important;background-color:var(--colorSecondary);overflow:auto}.snips-component[_ngcontent-%COMP%]     .dx-drawer-panel-content.dx-overlay.dx-widget.dx-visibility-change-handler{transform:translate(0)!important}.snips-component[_ngcontent-%COMP%]   .snip-apply-component[_ngcontent-%COMP%]{padding-top:4rem;display:flex;justify-content:center}}"]}))}return o(),t})();var Rg=p(1522),zy=p(3070);function wv(o,t){1&o&&e.nrm(0,"i",14)}function Um(o,t){if(1&o&&(e.j41(0,"a",10),e.nrm(1,"i",12)(2,"span",13),e.nVh(3,wv,1,0,"i",14),e.k0s()),2&o){const n=e.XpG().$implicit,s=e.XpG(2);e.Y8G("href",n.url,e.B4B)("target",s.checkTarget(n)),e.R7$(),e.HbH(e.VkB("",n.icon," navigation-bar-browser-submenu-item-icon")),e.R7$(),e.Y8G("innerHTML",n.text,e.npT),e.R7$(),e.vxM(n.items.length>0?3:-1)}}function Ky(o,t){1&o&&e.nrm(0,"i",14)}function YD(o,t){if(1&o&&(e.j41(0,"div",11),e.nrm(1,"i",12)(2,"span",13),e.nVh(3,Ky,1,0,"i",14),e.k0s()),2&o){const n=e.XpG().$implicit;e.R7$(),e.HbH(e.VkB("",n.icon," navigation-bar-browser-submenu-item-icon")),e.R7$(),e.Y8G("innerHTML",n.text,e.npT),e.R7$(),e.vxM(n.items.length>0?3:-1)}}function QD(o,t){if(1&o&&(e.j41(0,"div",9),e.nVh(1,Um,4,7,"a",10),e.nVh(2,YD,4,5,"div",11),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.vxM(n.url?1:-1),e.R7$(),e.vxM(n.url?-1:2)}}function ZD(o,t){if(1&o&&(e.j41(0,"div")(1,"a",17)(2,"div",18),e.nrm(3,"i",12),e.k0s(),e.j41(4,"div",19),e.nrm(5,"span",20),e.k0s()()()),2&o){const n=e.XpG().$implicit,s=e.XpG(2);e.R7$(),e.HbH(s.hasUnreadChatMessages&&s.isPlatformPathUrl(n.url,"/chat")||s.notificationService.unClickedMessage&&s.isPlatformPathUrl(n.url,"/notifications")?"notification-status-dot":""),e.Y8G("href",n.url,e.B4B)("target",s.checkTarget(n))("ngClass",n.isSelected?"navigation-bar-browser-menu-item-content-wrapper-selected":"navigation-bar-browser-menu-item-content-wrapper"),e.BMQ("aria-current",n.isSelected?"page":null),e.R7$(2),e.HbH(n.icon),e.R7$(),e.AVh("margin-between",n.icon&&n.text),e.R7$(),e.Y8G("innerHTML",n.text,e.npT)}}function JD(o,t){1&o&&(e.j41(0,"div",18),e.nrm(1,"i",14),e.k0s())}function h1(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",21),e.bIt("keydown.enter",function(r){m.eBV(n);const l=e.XpG().$implicit,E=e.sdS(1),N=e.XpG(2);return m.Njj(N.itemClick(r,l,E))})("keydown.space",function(r){m.eBV(n);const l=e.XpG().$implicit,E=e.sdS(1),N=e.XpG(2);return m.Njj(N.itemClick(r,l,E))}),e.j41(1,"div",18),e.nrm(2,"i",12),e.k0s(),e.j41(3,"div",19),e.nrm(4,"span",22),e.k0s(),e.nVh(5,JD,2,0,"div",18),e.k0s()}if(2&o){const n=e.XpG().$implicit;e.R7$(2),e.HbH(n.icon),e.R7$(),e.AVh("margin-between",n.icon&&n.text),e.R7$(),e.Y8G("innerHTML",n.text,e.npT),e.R7$(),e.vxM(0!=n.items.length?5:-1)}}function Xy(o,t){if(1&o&&(e.j41(0,"div",15,1),e.nVh(2,ZD,6,11,"div"),e.nVh(3,h1,6,6,"div",16),e.k0s()),2&o){const n=t.$implicit;e.R7$(2),e.vxM(n.url?2:-1),e.R7$(),e.vxM(n.url?-1:3)}}function Yy(o,t){if(1&o){const n=e.RV6();e.j41(0,"nav")(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"dx-menu",6,0),e.bIt("onItemRendered",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onMenuItemRendered(r))})("onSubmenuHiding",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onSubmenuHiding(r))}),e.DNE(7,QD,3,2,"div",7)(8,Xy,4,2,"div",8),e.k0s()()()()()()}if(2&o){const n=e.XpG();e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_common_main_nav_aria")),e.R7$(5),e.Y8G("dataSource",n.displayedSlots)("focusStateEnabled",!1)("hoverStateEnabled",!n.isMobile)("tabIndex",0)("hideSubmenuOnMouseLeave",!0),e.R7$(2),e.Y8G("dxTemplateOf","subMenuItem"),e.R7$(),e.Y8G("dxTemplateOf","topMenuItem")}}let CE=(()=>{var o;class t{constructor(s,r,l,E,N,ae){this.navigationService=s,this.profileService=r,this.scopeService=l,this.navigationRedirectService=E,this.chatBadgeService=ae,this.displayedSlots=[],this.lastScreenWidth=window.innerWidth,this.isMobile=!1,this.mobileBreakpoint=768,this.lastOpenedSubmenuIndex=null,this.navigationBarVisible=!1,this.subscriptions=[],this.hasUnreadChatMessages=!1,this.closeOpenSubmenu=()=>{setTimeout(()=>{const ze=new MouseEvent("mousedown",{bubbles:!0});document.body.dispatchEvent(ze),document.querySelectorAll(".dx-menu-item-expanded").forEach(Kt=>{Kt.classList.remove("dx-menu-item-expanded"),Kt.setAttribute("aria-expanded","false")}),this.returnFocusToMainMenu()},150)},this.checkTarget=ze=>{var dt=this.navigationRedirectService.isInternalLink(ze.url);return ze.url.startsWith("https")&&dt&&"_blank"==ze.linkAttr||dt&&(ze.url.includes("file/")||ze.url.includes("document/")||ze.url.includes("pdf/"))||"_blank"==ze.linkAttr?ze.linkAttr:""},this.isMobile=this.lastScreenWidth<this.mobileBreakpoint,this.scope=this.scopeService.getScope(),this.notificationService=N,this.subscriptions.push(this.navigationService.displayedSlots$.subscribe(ze=>{this.displayedSlots=ze}),this.profileService.profileChanged$.subscribe(ze=>{this.user=ze,this.navigationBarVisible=!this.scopeService.getScope().currentChapter.closed||((this.user?.isRegistered&&this.user?.hasChapterAccess)??!1)}),this.chatBadgeService.badgeUpdates$.subscribe(ze=>{this.hasUnreadChatMessages=ze.totalCount>0}))}resize(s){s.target.innerWidth!=this.lastScreenWidth&&(this.lastScreenWidth=s.target.innerWidth,this.isMobile&&this.lastScreenWidth>=this.mobileBreakpoint?(this.isMobile=!1,this.displayedSlots=this.navigationService.getNavigationSlots()):!this.isMobile&&this.lastScreenWidth<this.mobileBreakpoint&&(this.isMobile=!0,this.displayedSlots=this.navigationService.getNavigationSlots()))}ngOnInit(){}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}isPlatformPathUrl(s,r){return!!s.includes(r)&&(s==this.scope.currentChapter.path+r||s==r||s==this.scope.currentScope.network.path+this.scope.currentScope.chapter.path+r||s==this.scope.currentScope.network.path+r)}itemClick(s,r,l){if(!r||(this.displayedSlots.forEach(ae=>{ae.isSelected=!1}),r.isSelected=!0,!l))return;this.lastOpenedSubmenuIndex=r.id||l.getAttribute("data-item-index");const E=new MouseEvent("mouseenter",{bubbles:!0,view:window});l.dispatchEvent(E);const N=new MouseEvent("click",{bubbles:!0,view:window});l.dispatchEvent(N),setTimeout(()=>{const ae=document.querySelector(".navigation-bar-browser-submenu-item-wrapper");if(ae){const ze=ae.querySelector('a, button, [tabindex]:not([tabindex="-1"])');ze&&ze.focus()}},100)}onDocumentKeydown(s){"Escape"===s.key&&document.querySelectorAll(".dx-menu-item-expanded ").length>0&&(s.preventDefault(),s.stopPropagation(),this.closeOpenSubmenu())}returnFocusToMainMenu(){const s=document.activeElement;if(s&&s.closest(".dx-submenu, .navigation-bar-browser-submenu-item-wrapper")){const r=document.querySelector('.navigation-bar-browser-menu .dx-menu-item [tabindex="0"]');r&&r.focus()}}onSubmenuHiding(s){let r=s.itemData;r&&this.lastOpenedSubmenuIndex==r.id&&(this.lastOpenedSubmenuIndex=null)}onMenuItemRendered(s){const r=s.itemElement;r.removeAttribute("tabindex"),r.setAttribute("role","presentation"),r.setAttribute("data-no-tab","true"),r._focusPatched||(r._focusPatched=!0,r.addEventListener("focusin",l=>{if(document.activeElement===r){const E=r.querySelector('a[href], [role="button"][tabindex]');E&&requestAnimationFrame(()=>E.focus())}},!0))}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Rg.o),e.rXU($n.p),e.rXU(Se.A),e.rXU(Vp),e.rXU(Fd.J),e.rXU(Nt.L))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-navigation-bar-browser"]],hostBindings:function(r,l){1&r&&e.bIt("resize",function(N){return l.resize(N)},e.tSv)("keydown",function(N){return l.onDocumentKeydown(N)},e.EBC)},standalone:!1,decls:1,vars:1,consts:[["menu",""],["menuItem",""],[1,"navigation-bar-base"],[1,"navigation-bar-alignment-wrapper"],[1,"navigation-bar-browser-wrapper"],[1,""],["displayExpr","text","itemTemplate","subMenuItem","width","100%","height","50px",1,"navigation-bar-browser-menu",3,"onItemRendered","onSubmenuHiding","dataSource","focusStateEnabled","hoverStateEnabled","tabIndex","hideSubmenuOnMouseLeave"],["class","navigation-bar-browser-submenu-item-wrapper",4,"dxTemplate","dxTemplateOf"],["class","navigation-bar-browser-menu-item-wrapper",4,"dxTemplate","dxTemplateOf"],[1,"navigation-bar-browser-submenu-item-wrapper"],["tabindex","0",1,"sub-menu-anchor",3,"href","target"],["role","button",1,"sub-menu-anchor"],["aria-hidden","true"],[1,"navigation-bar-browser-submenu-item-text",3,"innerHTML"],["aria-hidden","true",1,"fa-solid","fa-angle-down"],[1,"navigation-bar-browser-menu-item-wrapper"],["tabindex","0",1,"navigation-bar-browser-menu-item-content-wrapper"],["tabindex","0",3,"href","target","ngClass"],[1,"navigation-bar-browser-menu-item-icon-wrapper"],[1,"navigation-bar-browser-menu-item-text-wrapper"],[3,"innerHTML"],["tabindex","0",1,"navigation-bar-browser-menu-item-content-wrapper",3,"keydown.enter","keydown.space"],["aria-hidden","true",3,"innerHTML"]],template:function(r,l){1&r&&e.nVh(0,Yy,9,8,"nav"),2&r&&e.vxM(l.navigationBarVisible?0:-1)},dependencies:[C.YU,Et.eC,zy.b,Ft.B],styles:['.dx-submenu{max-height:15.625rem!important;padding-left:5px;padding-right:5px}  .dx-submenu .sub-menu-anchor{text-decoration:none;color:var(--textColor);display:flex;width:100%}  .dx-submenu   .dx-state-hover{border-radius:7px}.navigation-bar-base[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width: 768px){.navigation-bar-base[_ngcontent-%COMP%]{justify-content:space-around;overflow:scroll}}.navigation-bar-base[_ngcontent-%COMP%]     .dx-menu-horizontal{overflow:hidden}.navigation-bar-base[_ngcontent-%COMP%]     .dx-menu-horizontal .dx-menu-items-container .dx-menu-separator{width:1px;background-color:var(--textColor);padding-right:0;margin:16px 0}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-alignment-wrapper[_ngcontent-%COMP%]{width:calc(var(--designContentWidth) + 32px)}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu[_ngcontent-%COMP%]{width:100%}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu[_ngcontent-%COMP%]     ul{display:flex;align-items:stretch;justify-content:space-between}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu[_ngcontent-%COMP%]     ul li{overflow:hidden;padding:.25rem 0}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu-item-wrapper[_ngcontent-%COMP%]{align-items:center;justify-content:center;padding:0}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-submenu-item-wrapper[_ngcontent-%COMP%], .navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-submenu-item-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--textColor)}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-submenu-item-wrapper[_ngcontent-%COMP%] > div[role=button][_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;text-decoration:none}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu-item-content-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--textColor);padding:6px 12px;min-height:42px}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu-item-content-wrapper[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--textColor);border-radius:3px;outline-offset:-2px;transition:ease-in}.navigation-bar-base[_ngcontent-%COMP%]   .notification-status-dot[_ngcontent-%COMP%]:after{content:"";width:8px;background-color:var(--colorPrimary);border-radius:50%;position:relative;display:inline-block;top:-14.4px;left:0;aspect-ratio:1/1;box-shadow:0 0 2px #0003}.navigation-bar-base[_ngcontent-%COMP%]   .margin-between[_ngcontent-%COMP%]{margin-left:.313rem}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu-item-content-wrapper-selected[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--colorPrimary);padding:6px 12px;min-height:42px}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu-item-content-wrapper-selected[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--textColor);border-radius:3px;outline-offset:-2px;transition:ease-in}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu-item-icon-wrapper[_ngcontent-%COMP%]{display:inline-block;font-size:1.19rem;overflow:hidden}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu-item-text-wrapper[_ngcontent-%COMP%]{display:inline-block;font-weight:600;font-size:1.19rem;white-space:nowrap}.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu-item-text-wrapper[_ngcontent-%COMP%]     div{text-overflow:ellipsis;overflow:hidden;width:100%}@media (max-width: 768px){.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu-item-icon-wrapper[_ngcontent-%COMP%], .navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu-item-text-wrapper[_ngcontent-%COMP%]{font-size:1.125rem}.navigation-bar-base[_ngcontent-%COMP%]     .dx-menu-horizontal .dx-menu-items-container .dx-menu-separator{height:18px}}@media (max-width: 576px){.navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu-item-icon-wrapper[_ngcontent-%COMP%], .navigation-bar-base[_ngcontent-%COMP%]   .navigation-bar-browser-menu-item-text-wrapper[_ngcontent-%COMP%]{font-size:.9rem}}']}))}return o(),t})();var Sv=p(2459),yE=p(4660),Pf=p(5455);const Qy=o=>({"navigation-bar-app-submenu-list-separator":o});function qD(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",2)(1,"dx-button",3),e.bIt("onClick",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.back(r.event))}),e.nrm(2,"i",4),e.k0s()()}}function hh(o,t){if(1&o&&(e.j41(0,"div")(1,"a",5)(2,"div",6),e.nrm(3,"i"),e.k0s(),e.j41(4,"div",7),e.nrm(5,"span",8),e.k0s()()()),2&o){const n=e.XpG(),s=n.$implicit,r=n.index;e.R7$(),e.Y8G("ngClass",e.eq3(6,Qy,s.beginGroup&&0!=r))("href",s.url,e.B4B)("target",s.linkAttr),e.R7$(2),e.HbH(s.icon),e.R7$(2),e.Y8G("innerHTML",s.text,e.npT)}}function jm(o,t){1&o&&(e.j41(0,"div",6),e.nrm(1,"i",10),e.k0s())}function ya(o,t){if(1&o&&(e.j41(0,"div")(1,"div",9)(2,"div",6),e.nrm(3,"i"),e.k0s(),e.j41(4,"div",7),e.nrm(5,"span",8),e.k0s(),e.nVh(6,jm,2,0,"div",6),e.k0s()()),2&o){const n=e.XpG(),s=n.$implicit,r=n.index;e.R7$(),e.Y8G("ngClass",e.eq3(5,Qy,s.beginGroup&&0!=r)),e.R7$(2),e.HbH(s.icon),e.R7$(2),e.Y8G("innerHTML",s.text,e.npT),e.R7$(),e.vxM(s.items.length>0?6:-1)}}function kg(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,qD,3,0,"div",2),e.nVh(2,hh,6,8,"div"),e.nVh(3,ya,7,7,"div"),e.k0s()),2&o){const n=t.$implicit,s=t.index,r=e.XpG();e.R7$(),e.vxM(0==s&&0!=r.previousDisplayedSlots.length?1:-1),e.R7$(),e.vxM(n.url?2:-1),e.R7$(),e.vxM(n.url?-1:3)}}let Yh=(()=>{var o;class t{constructor(s){this.renderer=s,this.items=[],this.itemsChange=new e.bkB,this.currentDisplayedSlots=[],this.previousDisplayedSlots=[]}ngOnInit(){this.currentDisplayedSlots=this.items}ngOnChanges(){this.currentDisplayedSlots=this.items,this.previousDisplayedSlots=[]}itemClick(s){let r=s.itemData;r.url?(this.renderer.removeClass(document.body,"no-scroll"),this.currentDisplayedSlots=[],this.previousDisplayedSlots=[],this.items=[],this.itemsChange.emit(this.items),r.url.startsWith("http")?window.open(r.url,r.linkAttr):window.history.pushState("","",r.url)):r.items&&r.items.length>0&&(this.previousDisplayedSlots.unshift(this.currentDisplayedSlots),this.currentDisplayedSlots=r.items)}ngOnDestroy(){this.renderer.removeClass(document.body,"no-scroll")}back(s){s.stopPropagation(),this.currentDisplayedSlots=this.previousDisplayedSlots[0],this.previousDisplayedSlots.splice(0,1)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.sFG))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-navigation-bar-app-sub-menu"]],inputs:{items:"items"},outputs:{itemsChange:"itemsChange"},standalone:!1,features:[e.OA$],decls:4,vars:2,consts:[[1,"navigation-bar-app-submenu-list",3,"onItemClick","dataSource"],[4,"dxTemplate","dxTemplateOf"],[1,"navigation-bar-app-submenu-list-back-button"],[3,"onClick"],[1,"fa","fa-angle-left"],[1,"navigation-bar-app-submenu-list-content-wrapper",3,"ngClass","href","target"],[1,"navigation-bar-app-submenu-list-icon-wrapper"],[1,"navigation-bar-app-submenu-list-text-wrapper"],[3,"innerHTML"],[1,"navigation-bar-app-submenu-list-content-wrapper",3,"ngClass"],[1,"fa-solid","fa-angle-right"]],template:function(r,l){1&r&&(e.j41(0,"div")(1,"div")(2,"dx-list",0),e.bIt("onItemClick",function(N){return l.itemClick(N)}),e.DNE(3,kg,4,3,"div",1),e.k0s()()()),2&r&&(e.R7$(2),e.Y8G("dataSource",l.currentDisplayedSlots),e.R7$(),e.Y8G("dxTemplateOf","item"))},dependencies:[C.YU,Et.eC,Gn.e,Pf.a,Ft.B],styles:[".dx-state-hover{background-color:transparent!important}.navigation-bar-app-submenu-list[_ngcontent-%COMP%]{bottom:4.125rem;width:100%;max-height:70%;height:auto;display:flex;justify-content:center;z-index:1030;background-color:var(--backgroundColor);padding:1rem;color:var(--textColor);overflow:scroll}.navigation-bar-app-submenu-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor)}.navigation-bar-app-submenu-list-separator[_ngcontent-%COMP%]{border-top:.125rem var(--textColor60) solid}.navigation-bar-app-submenu-list-content-wrapper[_ngcontent-%COMP%]{display:flex;font-size:1.125rem;color:var(--textColor)}.navigation-bar-app-submenu-list-text-wrapper[_ngcontent-%COMP%]{padding-top:1rem}.navigation-bar-app-submenu-list-icon-wrapper[_ngcontent-%COMP%]{padding:1rem .313rem 0}.navigation-bar-app-submenu-list-back-button[_ngcontent-%COMP%]{padding-bottom:5%}.navigation-bar-app-submenu-background[_ngcontent-%COMP%]{position:absolute;z-index:999;height:100vh;width:100%;background-color:var(--textColor60)}"]}))}return o(),t})();const od=o=>({"aria-keyshortcuts":o}),Rf=()=>({id:"subMenuPopup",class:"app-navigation-submenu-popup"}),Hp=()=>({my:"bottom",at:"bottom",offset:"0 -65"}),Gm=()=>({my:"bottom",at:"bottom",offset:"0 -90"});function Dv(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"app-navigation-bar-app-sub-menu",6),e.mxI("itemsChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.subMenuItems,r)||(l.subMenuItems=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.R50("items",n.subMenuItems)}}function Wm(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",7),e.bIt("click",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.closeSubMenuPopup(r))}),e.k0s()}}function vu(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",1,0)(2,"dx-tabs",2),e.bIt("onItemClick",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.itemClick(r))})("onItemRendered",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onItemRendered(r))}),e.k0s()(),e.j41(3,"dx-popup",3),e.DNE(4,Dv,2,1,"div",4),e.k0s(),e.nVh(5,Wm,1,0,"div",5)}if(2&o){const n=e.XpG();e.Y8G("ngClass",n.isIosApp?"app-navigation-base":"app-navigation-base-android"),e.R7$(2),e.Y8G("dataSource",n.displayedSlots)("ngClass",n.isIosApp?"navigation-bar-app-tabs":"navigation-bar-app-tabs-android")("selectedItem",n.selected)("focusStateEnabled",!0)("elementAttr",e.eq3(23,od,n.isIosApp?"Shift+ArrowUp Shift+ArrowDown":"")),e.R7$(),e.Y8G("shading",!1)("width","400px")("height","auto")("maxWidth","100vw")("maxHeight","70%")("showTitle",!1)("title","")("showCloseButton",!0)("hideOnOutsideClick",!1)("dragEnabled",!1)("wrapperAttr",e.lJ4(25,Rf))("fullScreen",!1)("visible",n.subMenuItems.length>0)("animation",n.animation)("position",n.isIosApp?e.lJ4(27,Gm):e.lJ4(26,Hp)),e.R7$(),e.Y8G("dxTemplateOf","popupContent"),e.R7$(),e.vxM(n.subMenuItems.length>0?5:-1)}}let bE=(()=>{var o;class t{constructor(s,r,l,E,N,ae,ze,dt,Kt){this.navigationService=s,this.location=r,this.navigationRedirectService=l,this.chatBadgeService=E,this.scopeService=N,this.renderer=ae,this.profileService=ze,this.deviceInfoService=dt,this.navigationSignalService=Kt,this.displayedSlots=[],this.subMenuItems=[],this.inAppView=!1,this.isIosApp=!0,this.selected=null,this.subscriptions=[],this.navigationBarVisible=!1,this.chatIconElement=null,this.animation={show:void 0,hide:void 0},this.inAppView=this.deviceInfoService.getUserAgentInfo().isApp,this.scope=this.scopeService.getScope(),this.subscriptions.push(this.navigationService.displayedSlots$.subscribe(Vn=>{Vn.forEach(ci=>{ci.isSelected&&(this.selected=ci)}),this.displayedSlots=Vn}),this.profileService.profileChanged$.subscribe(Vn=>{this.navigationBarVisible=!this.scopeService.getScope().currentChapter.closed||((Vn?.isRegistered&&Vn?.hasChapterAccess)??!1)})),this.scope.currentChapter.settings.configurations?.chatChapterConfiguration?.ChatEnabled&&this.subscriptions.push(this.chatBadgeService.badgeUpdates$.subscribe(Vn=>{this.chatIconElement&&(Vn.totalCount>0?this.chatIconElement.classList.add("mobile-chat-notification-status-dot"):this.chatIconElement.classList.remove("mobile-chat-notification-status-dot"))}))}ngOnInit(){this.displayedSlots.forEach(s=>{s.isSelected&&(this.selected=s)}),this.isIosApp=this.deviceInfoService.getUserAgentInfo().isIos}onItemRendered(s){if("10000000-0000-0000-0000-000000000004"===s.itemData.id){const r=s.itemElement.querySelector(".dx-icon");r&&(this.chatIconElement=r)}}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}itemClick(s){let r=s.itemData;r.url?(this.subMenuItems=[],this.renderer.removeClass(document.body,"no-scroll"),this.navigationRedirectService.redirect(r.url,r.linkAttr)):r.items&&r.items.length>0&&(this.subMenuItems!=r.items?(this.subMenuItems=r.items,this.renderer.addClass(document.body,"no-scroll")):(this.subMenuItems=[],this.renderer.removeClass(document.body,"no-scroll")))}closeSubMenuPopup(s){this.subMenuItems=[],this.renderer.removeClass(document.body,"no-scroll")}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Rg.o),e.rXU(S.aZ),e.rXU(Vp),e.rXU(Nt.L),e.rXU(Se.A),e.rXU(e.sFG),e.rXU($n.p),e.rXU(Ce.E),e.rXU(yE.G))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-navigation-bar-app"]],viewQuery:function(r,l){if(1&r&&e.GBs(Sv.s,5),2&r){let E;e.mGM(E=e.lsd())&&(l.dxTabs=E.first)}},standalone:!1,decls:1,vars:1,consts:[["appNavigation",""],[3,"ngClass"],[3,"onItemClick","onItemRendered","dataSource","ngClass","selectedItem","focusStateEnabled","elementAttr"],["contentTemplate","popupContent",3,"shading","width","height","maxWidth","maxHeight","showTitle","title","showCloseButton","hideOnOutsideClick","dragEnabled","wrapperAttr","fullScreen","visible","animation","position"],[4,"dxTemplate","dxTemplateOf"],[1,"navigation-bar-app-submenu-background"],[3,"itemsChange","items"],[1,"navigation-bar-app-submenu-background",3,"click"]],template:function(r,l){1&r&&e.nVh(0,vu,6,28),2&r&&e.vxM(l.navigationBarVisible&&l.navigationSignalService.navVisible()?0:-1)},dependencies:[C.YU,Et.eC,en.i,Sv.s,Yh],styles:['.app-navigation-base[_ngcontent-%COMP%]   .navigation-bar-app-tabs[_ngcontent-%COMP%]{width:100%;bottom:0;position:fixed;z-index:1030;height:90px;background-color:var(--backgroundColor100);border-top:3px solid var(--textColor);padding:0 18px 15px;font-size:13px}.app-navigation-base[_ngcontent-%COMP%]     .dx-tabs-styling-mode-secondary.dx-tab-indicator-position-bottom .dx-tab .dx-tab-content:after{bottom:2px;border-radius:4px;height:.1875em}.app-navigation-base[_ngcontent-%COMP%]     .dx-tab .dx-icon{font-size:20px}.app-navigation-base-android[_ngcontent-%COMP%]   .navigation-bar-app-tabs-android[_ngcontent-%COMP%]{width:100%;bottom:0;position:fixed;z-index:1030;height:65px;background-color:var(--backgroundColor100);border-top:3px solid var(--textColor);font-size:13px}.app-navigation-base-android[_ngcontent-%COMP%]     .dx-tabs-styling-mode-secondary.dx-tab-indicator-position-bottom .dx-tab .dx-tab-content:after{bottom:-4px;border-radius:4px;height:.1875em}.app-navigation-base-android[_ngcontent-%COMP%]     .dx-tab .dx-icon{font-size:20px}.navigation-bar-app-submenu-background[_ngcontent-%COMP%]{position:absolute;z-index:700;height:100vh;width:100%;background-color:var(--textColor60)}  .app-navigation-submenu-popup>.dx-overlay-content{box-shadow:unset!important;border-radius:unset!important}[_nghost-%COMP%]     .mobile-chat-notification-status-dot:after{content:".";display:block;position:relative;top:-1.2em;left:1em;background-color:var(--colorPrimary);color:transparent;border-radius:50%;height:10px;aspect-ratio:1/1}.nav-freeze[_nghost-%COMP%]   .app-navigation-base[_ngcontent-%COMP%]   .navigation-bar-app-tabs[_ngcontent-%COMP%], .nav-freeze   [_nghost-%COMP%]   .app-navigation-base[_ngcontent-%COMP%]   .navigation-bar-app-tabs[_ngcontent-%COMP%]{display:none}']}))}return o(),t})();var $p=p(1118),eT=p(7421);const Qh=o=>({container:o}),xE=o=>({"single-image-gallery":o}),EE=(o,t,n)=>({"resized-image":o,"resized-single-image":t,"resized-single-image-inline":n});function OE(o,t){if(1&o&&(e.j41(0,"div")(1,"div",6),e.nrm(2,"img",7),e.k0s()()),2&o){const n=t.$implicit,s=e.XpG();e.R7$(2),e.Y8G("title",e.mNQ(null!=n&&n.text?n.text:""))("alt",e.mNQ(null!=n&&n.text?n.text:""))("src",n.assetImageUrl+"?preset=gallery-image"+(s.mobile?"-mobile":"")+(n.cache?"&cache="+n.cache:""),e.B4B)("ngClass",e.sMw(6,EE,s.wrapAround,!s.wrapAround&&!s.inline,!s.wrapAround&&s.inline))}}function tT(o,t){if(1&o&&(e.j41(0,"div",8),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.E5c(" ",n.selectedItem.text," ",n.scope.network.getResourceOrKeyName("web_asset_imageSourceInfo")," ",n.selectedItem.source," ")}}function nT(o,t){if(1&o&&(e.j41(0,"div",2),e.nVh(1,tT,2,3,"div",8),e.k0s()),2&o){const n=e.XpG();e.Y8G("ngClass",n.wrapAround?"image-description-wrapper":"image-description-wrapper-inline"),e.R7$(),e.vxM(n.selectedItem.alwaysShowImageDescription?1:-1)}}let iT=(()=>{var o;class t{constructor(s,r){this.deviceInfoService=s,this.scopeService=r,this.hideDescription=!1,this.inline=!1,this.imageInformation={},this.wrapAround=!1,this.imageViewerOpen=!1,this.mobile=!1,this.selectedIndex=0,this.onImageClick=l=>{this.selectedIndex=l.itemIndex,this.imageViewerOpen=!0},this.scope=this.scopeService.getScope(),this.mobile=this.deviceInfoService.getUserAgentInfo().isMobile||this.deviceInfoService.getUserAgentInfo().isApp,this.toolbarItems=[{widget:"dxButton",location:"after",options:{hint:this.scope.network.getResourceOrKeyName("web_common_close_dialog"),icon:"close",elementAttr:{title:this.scope.network.getResourceOrKeyName("web_common_close_dialog"),class:"cover-viewer-close-button"},onClick:()=>this.closeImageViewer()}}]}ngOnInit(){if(this.images.length>1&&(this.wrapAround=!0),"string"==typeof this.images[0]){var s=[];for(let l=0;l<this.images.length;l++){var r=this.images[l].replace(/\\?'/g,'"').replace(/[\r\n]+/g,"\\n").replace(/:"(.*?)",/gm,(E,N)=>`:"${N.replace(new RegExp('(?<!\\\\)"',"g"),'\\"')}",`);s.push(JSON.parse(r))}this.images=s}}closeImageViewer(){this.imageViewerOpen=!1}onContentReady(s){s.element.removeAttribute("aria-label"),s.element.querySelectorAll(".dx-gallery-item").forEach(l=>{l.removeAttribute("aria-label")})}onItemRendered(s){(s.itemElement instanceof HTMLElement?s.itemElement:s.itemElement[0]).setAttribute("role","status")}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Ce.E),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-image-gallery"]],inputs:{images:"images",hideDescription:"hideDescription",inline:"inline"},standalone:!1,decls:7,vars:22,consts:[["gallery",""],[1,"image-gallery-container"],[3,"ngClass"],["id","gallery",3,"selectedItemChange","onItemClick","onContentReady","onItemRendered","dataSource","slideshowDelay","height","width","loop","showNavButtons","showIndicator","wrapAround","selectedItem","ngClass"],[4,"dxTemplate","dxTemplateOf"],[3,"imageViewerOpenChange","imageViewerOpen","images","startIndex"],[1,"gallery-image"],[3,"src","title","alt","ngClass"],[1,"image-description-text"]],template:function(r,l){if(1&r){const E=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"dx-gallery",3,0),e.mxI("selectedItemChange",function(ae){return m.eBV(E),e.DH7(l.selectedItem,ae)||(l.selectedItem=ae),m.Njj(ae)}),e.bIt("onItemClick",function(ae){return m.eBV(E),m.Njj(l.onImageClick(ae))})("onContentReady",function(ae){return m.eBV(E),m.Njj(l.onContentReady(ae))})("onItemRendered",function(ae){return m.eBV(E),m.Njj(l.onItemRendered(ae))}),e.DNE(4,OE,3,10,"div",4),e.k0s(),e.nVh(5,nT,2,2,"div",2),e.k0s()(),e.j41(6,"app-image-viewer",5),e.mxI("imageViewerOpenChange",function(ae){return m.eBV(E),e.DH7(l.imageViewerOpen,ae)||(l.imageViewerOpen=ae),m.Njj(ae)}),e.k0s()}2&r&&(e.R7$(),e.Y8G("ngClass",e.eq3(18,Qh,l.wrapAround||!l.inline)),e.BMQ("aria-label",l.wrapAround?"Carousel":null)("role","region"),e.R7$(),e.Y8G("dataSource",l.images)("slideshowDelay",0)("height","auto")("width","auto")("loop",!0)("showNavButtons",l.wrapAround)("showIndicator",l.wrapAround)("wrapAround",l.wrapAround),e.R50("selectedItem",l.selectedItem),e.Y8G("ngClass",e.eq3(20,xE,!l.wrapAround&&l.inline)),e.R7$(2),e.Y8G("dxTemplateOf","item"),e.R7$(),e.vxM(l.selectedItem&&!l.hideDescription?5:-1),e.R7$(),e.R50("imageViewerOpen",l.imageViewerOpen),e.Y8G("images",l.images)("startIndex",l.selectedIndex))},dependencies:[C.YU,Et.eC,eT.O,Sl],styles:[".image-gallery-container[_ngcontent-%COMP%]   .gallery-image[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;cursor:pointer}.image-gallery-container[_ngcontent-%COMP%]   .resized-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}.image-gallery-container[_ngcontent-%COMP%]   .resized-single-image[_ngcontent-%COMP%]{width:50%;height:100%;object-fit:cover;aspect-ratio:4/3}.image-gallery-container[_ngcontent-%COMP%]   .resized-single-image-inline[_ngcontent-%COMP%]{width:100%;object-fit:cover;aspect-ratio:4/3}.image-gallery-container[_ngcontent-%COMP%]     .dx-gallery-item{transform:scale(.8)}.image-gallery-container[_ngcontent-%COMP%]     .dx-gallery-item-selected{transform:scale(1.2)}.image-gallery-container[_ngcontent-%COMP%]     .dx-gallery-wrapper{overflow:unset}.image-gallery-container[_ngcontent-%COMP%]   .image-description-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:left;max-width:100%;margin-top:24px;word-break:break-word;min-height:36px;margin-left:20%}.image-gallery-container[_ngcontent-%COMP%]   .image-description-wrapper-inline[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:left;max-width:100%;word-break:break-word;min-height:20px}.image-gallery-container[_ngcontent-%COMP%]   .image-description-text[_ngcontent-%COMP%]{font-size:12px;max-width:50%;text-wrap:auto}.image-gallery-container[_ngcontent-%COMP%]   .single-image-gallery[_ngcontent-%COMP%]     .dx-gallery-item, .image-gallery-container[_ngcontent-%COMP%]   .single-image-gallery[_ngcontent-%COMP%]     .dx-gallery-item-selected{transform:scale(1)!important}"]}))}return o(),t})();const Zy=()=>({width:150}),oT=o=>({"aria-label":o});function sT(o,t){if(1&o&&e.nrm(0,"img",27),2&o){const n=e.XpG();e.Y8G("src",n.avatarUrl,e.B4B)("alt","")}}function wE(o,t){if(1&o&&(e.j41(0,"div",28),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.initials," ")}}function rT(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,sT,1,2,"img",27),e.nVh(2,wE,2,1,"div",28),e.k0s()),2&o){const n=t;e.R7$(),e.vxM(n.avatarUrl?1:-1),e.R7$(),e.vxM(n.useInitials?2:-1)}}function aT(o,t){if(1&o&&(e.j41(0,"div",10)(1,"div",29),e.nrm(2,"app-oha",30),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(2),e.Y8G("snip",n.snip)("source","ArticleDisplayable")("size","md")}}function lT(o,t){if(1&o&&(e.j41(0,"div",14),e.nrm(1,"app-associated-material",31),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("assetReferences",n.snip.assetReferences)("isSnipDisplayable",!0)}}function Jy(o,t){if(1&o&&(e.j41(0,"div",15)(1,"div",32),e.nrm(2,"i",33),e.k0s(),e.j41(3,"div",22),e.EFF(4),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(4),e.SpI(" ",n.snipStatusText," ")}}function kf(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",17)(1,"dx-drop-down-button",34),e.bIt("onItemClick",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.openDeleteSnipDialog())})("onContentReady",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.fixAriaLabel(r))}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("dropDownOptions",e.lJ4(6,Zy))("showArrowIcon",!1)("useItemTextAsTitle",!1)("items",n.optionsDropDownItems)("elementAttr",e.eq3(7,oT,n.scope.currentScope.network.getResourceOrKeyName("web_common_further_options")))("hint",n.scope.currentScope.network.getResourceOrKeyName("web_common_further_options"))}}function qy(o,t){if(1&o&&(e.j41(0,"div",19),e.nrm(1,"app-image-gallery",35),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("images",n.images)("hideDescription",!0)}}function SE(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e.nVh(5,rT,3,2,"div"),e.nI1(6,"createAvatar"),e.k0s(),e.j41(7,"div",5)(8,"div",6)(9,"a",7),e.EFF(10),e.k0s(),e.nrm(11,"div",8),e.nI1(12,"relativeDate"),e.k0s(),e.j41(13,"div",9),e.EFF(14),e.k0s()(),e.nVh(15,aT,3,3,"div",10),e.k0s(),e.j41(16,"div",3)(17,"div",11),e.nrm(18,"div",12),e.j41(19,"div",13),e.nVh(20,lT,2,2,"div",14),e.nVh(21,Jy,5,1,"div",15),e.k0s(),e.j41(22,"div",16),e.nVh(23,kf,2,9,"div",17),e.k0s()()(),e.j41(24,"div",18),e.nVh(25,qy,2,2,"div",19),e.k0s(),e.nrm(26,"div",20),e.nI1(27,"relativeDate"),e.k0s()(),e.j41(28,"dx-popup",21),e.mxI("visibleChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.showDeleteSnipDialog,r)||(l.showDeleteSnipDialog=r),m.Njj(r)}),e.j41(29,"div")(30,"p",22),e.EFF(31),e.k0s()(),e.j41(32,"div")(33,"div",23)(34,"dx-button",24),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.closeDeleteSnipDialogPopup())}),e.EFF(35),e.k0s(),e.j41(36,"dx-button",25),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.deleteSnip())}),e.EFF(37),e.k0s()()(),e.nrm(38,"div",26),e.k0s()()}if(2&o){let n;const s=e.XpG();e.R7$(5),e.vxM((n=e.bMT(6,20,s.snip.user))?5:-1,n),e.R7$(4),e.Y8G("href",s.profilePath,e.B4B),e.R7$(),e.Lme("",s.snip.user.firstName," ",s.snip.user.lastName),e.R7$(),e.Y8G("innerHTML",e.bMT(12,22,s.snip.created),e.npT),e.R7$(3),e.JRh(s.snip.text),e.R7$(),e.vxM(2!=s.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig?15:-1),e.R7$(5),e.vxM(s.hasComments?20:-1),e.R7$(),e.vxM(s.snipStatusText?21:-1),e.R7$(2),e.vxM(s.optionsDropDownItems.length>0?23:-1),e.R7$(2),e.vxM(s.images.length>0?25:-1),e.R7$(),e.Y8G("innerHTML",e.bMT(27,24,s.snip.created),e.npT),e.R7$(2),e.R50("visible",s.showDeleteSnipDialog),e.Y8G("title",s.scope.currentScope.network.getResourceOrKeyName("web_snipDialog_delete_title"))("height","auto")("dragEnabled",!1)("animation",s.animation),e.R7$(3),e.JRh(s.scope.currentScope.network.getResourceOrKeyName("web_snip_displayable_delete_popup_text")),e.R7$(4),e.JRh(s.scope.currentScope.network.getResourceOrKeyName("web_common_cancel")),e.R7$(2),e.JRh(s.scope.currentScope.network.getResourceOrKeyName("web_common_delete"))}}let eb=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.snipService=r,this.hybridTrackingService=l,this.images=[],this.profilePath="",this.optionsDropDownItems=[],this.showDeleteSnipDialog=!1,this.snipStatusText="",this.hasComments=!1,this.animation={show:{type:"slide",duration:600,from:{position:{my:"bottom",at:"top",of:window},opacity:0},to:{position:{my:"top",at:"top",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"top",at:"top",of:window},opacity:1},to:{position:{my:"bottom",at:"top",of:window},opacity:0}}},this.createImageUrl=(E,N)=>E+"/images/"+N,this.scope=this.scopeService.getScope(),this.blob=this.scope.globalSettings.blobStorageCdnUrl}ngOnInit(){this.snip?.assetReferences.filter(l=>1==l.hideInComments&&null!=l.assetImage&&(null!=l.assetImage.guid||null!=l.assetImage.assetImageUrl))?.forEach(l=>{const E=l.assetImage;E.assetImageUrl||(E.assetImageUrl=this.createImageUrl(this.blob,E.guid)),this.images.push(E)}),this.profilePath=this.scope.currentChapter.path+"/profile/"+this.snip?.user.guid,(this.snip?.user.guid==this.scope.profile.guid||this.scope.profile.chapterRoles?.includes(co.MerkuristJournalist))&&this.optionsDropDownItems.push({icon:"fa-regular fa-trash-can",text:this.scope.currentScope.network.resources.web_common_delete}),this.getSnipStatusText(),this.hasComments=this.snip?.assetReferences.some(l=>!l.hideInComments)}getSnipStatusText(){if(!this.snip)return;let s=new Date,r=this.snip.published?new Date(this.snip.published):null;const l=108e5;if(this.snip.modifiedText="&"==this.snip.formattedText.slice(0,1)?"<span>"+this.snip.formattedText.slice(0,this.snip.formattedText.indexOf(";")+1)+"</span>"+this.snip.formattedText.slice(this.snip.formattedText.indexOf(";")+1,this.snip.formattedText.length):"<span>"+this.snip.formattedText.slice(0,1)+"</span>"+this.snip.formattedText.slice(1,this.snip.formattedText.length),this.snip.published){if(this.snip.archived)this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_archived");else if(this.snip.assignedUser&&this.snip.score>this.scope.globalSettings.snipShowAuthorEditStatusScoreThreshold)this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_processing");else if(s.getTime()-r.getTime()<l)this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_newSnip");else if(!this.scope.currentChapter.settings.enableOhaLikes&&this.snip.score>=1)this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_lookingForAuthor").replace("{{web_common_author}}",this.scope.network.getResourceOrKeyName("web_common_author"));else if(this.snip.assetReferences.length){var E=this.snip.assetReferences.reduce(function(ae,ze){return new Date(ae.published)<new Date(ze.published)?ae:ze});let N=new Date(E.created);if(s.getTime()-N.getTime()<l)switch(E.type){case 2:case 5:case 6:case 7:this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_newMedia");break;case 0:case 1:case 10:this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_newOpinions")}}}else this.snipStatusText=this.scope.currentScope.network.getResourceOrKeyName("web_snipStatus_notReleased")}fixAriaLabel(s){const r=s.element;let l=r.querySelector(".dx-dropdownbutton-action.dx-button");l||(l=r.querySelector('.dx-buttongroup [role="button"]')),l&&l.setAttribute("aria-label",this.scope.currentScope.network.getResourceOrKeyName("web_common_further_options"))}openDeleteSnipDialog(){this.showDeleteSnipDialog=!0}closeDeleteSnipDialogPopup(){this.showDeleteSnipDialog=!1}deleteSnip(){this.snipService.deleteSnip(this.snip.id).then(s=>{this.showDeleteSnipDialog=!1,this.hybridTrackingService.switchState($p.g.AppMainSnips,{})})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Gh),e.rXU(Ko.o))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-snip-head"]],inputs:{snip:"snip"},standalone:!1,decls:1,vars:1,consts:[[1,"snip-head"],[1,"snip"],[1,"header"],[1,"row"],[1,"col-2","col-md-1","d-flex","flex-column","align-items-center"],[1,"col-8","col-md-9"],[1,"snip-info","d-flex"],[1,"snip-user",3,"href"],[1,"snip-timestamp","ml-2",3,"innerHTML"],[1,"snip-text"],[1,"col-2","p-0","snip-head-options-wrapper"],[1,"d-flex","snip-text-underline-wrapper"],[1,"col-2","col-md-1"],[1,"col-8","col-md-9",2,"display","flex"],[1,"snip-associated-material"],[1,"snip-head-snipStatus-wrapper"],[1,"col-2"],[1,"snip-head-options-dropdown-wrapper"],[1,"snip-gallery-container"],[1,"snip-gallery"],[1,"snip-timestamp-mobile","ml-2",3,"innerHTML"],["position","top",3,"visibleChange","visible","title","height","dragEnabled","animation"],[1,""],[1,"popup-footer","d-flex","gap-3"],["stylingMode","text",3,"onClick"],[3,"onClick"],[1,"clearfix"],[1,"avatar",3,"src","alt"],[1,"avatar-initials"],[1,"oha-wrapper"],[1,"float-end",3,"snip","source","size"],[3,"assetReferences","isSnipDisplayable"],[1,"snip-head-snipStatus-icon"],[1,"fa-solid","fa-circle"],["text","","icon","overflow","stylingMode","text","type","normal",3,"onItemClick","onContentReady","dropDownOptions","showArrowIcon","useItemTextAsTitle","items","elementAttr","hint"],[3,"images","hideDescription"]],template:function(r,l){1&r&&e.nVh(0,SE,39,26,"div",0),2&r&&e.vxM(l.snip?0:-1)},dependencies:[Gn.e,Po.h,en.i,Ft.B,Hl,Kl,iT,Ul,ta._],styles:[".snip-head[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:16px}.snip-head[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor)}.snip-head[_ngcontent-%COMP%]   .snip[_ngcontent-%COMP%]{max-width:var(--designContentWidth)}@media (max-width: 768px){.snip-head[_ngcontent-%COMP%]   .snip[_ngcontent-%COMP%]{padding:0 16px}}.snip-head[_ngcontent-%COMP%]   .snip[_ngcontent-%COMP%]   .snip-text[_ngcontent-%COMP%]{font-family:var(--fontSecondary);font-style:italic;font-size:2rem;line-height:1.2em;color:var(--textColor);width:99%;word-wrap:break-word}.snip-head[_ngcontent-%COMP%]   .snip[_ngcontent-%COMP%]   .snip-text-underline-wrapper[_ngcontent-%COMP%]{padding-right:0}.snip-head[_ngcontent-%COMP%]   .snip[_ngcontent-%COMP%]   .snip-head-snipStatus-wrapper[_ngcontent-%COMP%]{display:flex;margin-top:.6rem;font-size:1.2rem}@media (max-width: 768px){.snip-head[_ngcontent-%COMP%]   .snip[_ngcontent-%COMP%]   .snip-head-snipStatus-wrapper[_ngcontent-%COMP%]{font-size:.9rem}}.snip-head[_ngcontent-%COMP%]   .snip[_ngcontent-%COMP%]   .snip-head-snipStatus-icon[_ngcontent-%COMP%]{margin-right:10px;color:var(--colorSecondary)}.snip-head[_ngcontent-%COMP%]   .snip[_ngcontent-%COMP%]   .snip-gallery[_ngcontent-%COMP%]{padding:4% 0;overflow:hidden}@media (max-width: 768px){.snip-head[_ngcontent-%COMP%]   .snip[_ngcontent-%COMP%]   .snip-text[_ngcontent-%COMP%]{font-family:var(--fontSecondary);font-style:italic;font-size:1.2rem;line-height:1.2em;color:var(--textColor);margin-top:5px;word-break:break-word;max-width:90%}}.snip-head[_ngcontent-%COMP%]   .snip-user[_ngcontent-%COMP%]{font-family:var(--fontPrimary);font-weight:700}.snip-head[_ngcontent-%COMP%]   .snip-user[_ngcontent-%COMP%]:hover{text-decoration:underline}.snip-head[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:50%;display:block;margin-right:10px}.snip-head[_ngcontent-%COMP%]   .avatar-initials[_ngcontent-%COMP%]{width:4rem;height:4rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;background-color:#ccc;color:var(--textColor);font-size:1.5rem}.snip-head[_ngcontent-%COMP%]   .snip-gallery-container[_ngcontent-%COMP%]{margin-top:30px}.snip-head[_ngcontent-%COMP%]   .gallery-image[_ngcontent-%COMP%]{width:100%;height:300px;overflow:hidden}.snip-head[_ngcontent-%COMP%]   .resized-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.snip-head[_ngcontent-%COMP%]   .snip-head-options-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}.snip-head[_ngcontent-%COMP%]   .oha-wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:end;height:fit-content;margin-top:-10px}.snip-head[_ngcontent-%COMP%]   .snip-head-options-dropdown-wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:end;height:100%;padding-top:5px}.snip-head[_ngcontent-%COMP%]   .snip-associated-material[_ngcontent-%COMP%]{margin-top:.6rem;margin-right:4%}.snip-head[_ngcontent-%COMP%]   .snip-associated-material[_ngcontent-%COMP%]     .associatedMaterial-icons{font-size:1.2rem}@media (max-width: 768px){.snip-head[_ngcontent-%COMP%]   .snip-associated-material[_ngcontent-%COMP%]     .associatedMaterial-icons{font-size:.9rem}}.snip-head[_ngcontent-%COMP%]   .snip-associated-material[_ngcontent-%COMP%]     .associatedMaterial{font-size:1.2rem}@media (max-width: 768px){.snip-head[_ngcontent-%COMP%]   .snip-associated-material[_ngcontent-%COMP%]     .associatedMaterial{font-size:.9rem}}.app-desktop   [_nghost-%COMP%]     .snip-timestamp-mobile{display:none}@media (max-width: 768px){.snip-timestamp[_ngcontent-%COMP%]{display:none}.snip-timestamp-mobile[_ngcontent-%COMP%]{display:flex;justify-content:end;font-size:.9rem}}"]}))}return o(),t})();function zm(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"app-legacy-translation",9),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.translateSnip(r))}),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.Y8G("translationType","snip")("snipId",n.snip.id)}}function tb(o,t){if(1&o&&(e.j41(0,"div")(1,"div",7),e.nVh(2,zm,2,2,"div"),e.nrm(3,"app-snip-head",8),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("ngClass",n.hasCommunityBackgroundColor?"snip-header-background-color":"snip-header-background-color-fallback"),e.R7$(),e.vxM(n.legacyTranslationActivated?2:-1),e.R7$(),e.Y8G("snip",n.snip)}}function Km(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG(2);e.Lme(" ",n.commentCounter," ",n.scope.currentScope.network.getResourceOrKeyName("web_common_comment")," ")}}function nb(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG(2);e.Lme(" ",n.commentCounter," ",n.scope.currentScope.network.getResourceOrKeyName("web_common_comments")," ")}}function DE(o,t){if(1&o&&(e.j41(0,"div",2)(1,"h2"),e.nVh(2,Km,1,2)(3,nb,1,2),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.vxM(1==n.commentCounter?2:3)}}function ib(o,t){if(1&o&&(e.j41(0,"div",6),e.nrm(1,"app-user-comments-list",10),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("data",n.snip)}}let ob=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.legacyTranslationService=r,this.themingService=l,this.commentCounter=0,this.reloadComments=!0,this.legacyTranslationActivated=!1,this.hasCommunityBackgroundColor=!1,this.scope=this.scopeService.getScope(),this.profile=this.scope.profile,this.legacyTranslationActivated=0!==this.scope.currentScope.chapter.settings?.featureTranslationProvider,this.themingServiceSubscription=this.themingService.themingChanged$.subscribe(E=>{this.hasCommunityBackgroundColor="dark"==E.resolvedTheme&&this.scope.network.settings.colorSecondaryBackgroundDark||"light"==E.resolvedTheme&&this.scope.network.settings.colorSecondaryBackground})}ngOnInit(){this.snip?.assetReferences?.forEach(s=>{this.countComments(s)})}ngOnDestroy(){this.themingServiceSubscription.unsubscribe()}translateSnip(s){var r=this;return(0,ei.A)(function*(){if(r.snip)try{const l=yield r.legacyTranslationService.translateSnip(r.snip.id.toString(),s.value);r.snip={...r.snip,...l},r.reloadComments=!1,setTimeout(()=>r.reloadComments=!0,0)}catch(l){console.error("Error while translating Snip:",l)}})()}countComments(s){!s.hideInComments&&!s.assetFile&&!s.assetArticle&&!s.assetStaticArticle&&this.commentCounter++,s.childAssets&&s.childAssets.length>0&&s.childAssets.forEach(r=>{this.countComments(r)})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(_v),e.rXU(oo))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-snip"]],inputs:{snip:"snip"},standalone:!1,decls:8,vars:4,consts:[[1,"snip-component"],[1,"row","snip-comment-section"],[1,"snip-comment-counter"],[1,"comments"],[1,"snip-comment-input"],[3,"snipId"],[1,"snip-comment-list"],[1,"snip-header",3,"ngClass"],[3,"snip"],[3,"onValueChanged","translationType","snipId"],[3,"data"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,tb,4,3,"div"),e.j41(2,"div",1),e.nVh(3,DE,4,1,"div",2),e.j41(4,"div",3)(5,"div",4),e.nrm(6,"app-user-comment-form",5),e.k0s(),e.nVh(7,ib,2,1,"div",6),e.k0s()()()),2&r&&(e.R7$(),e.vxM(l.snip?1:-1),e.R7$(2),e.vxM(l.commentCounter>0?3:-1),e.R7$(3),e.Y8G("snipId",null==l.snip||null==l.snip.id?null:l.snip.id.toString()),e.R7$(),e.vxM(l.reloadComments?7:-1))},dependencies:[C.YU,zu,Mc,eb,Tf],styles:[".snip-component[_ngcontent-%COMP%]   .snip-header[_ngcontent-%COMP%]{margin:0 -100%;padding:0 100%}.snip-component[_ngcontent-%COMP%]   .snip-header-background-color[_ngcontent-%COMP%]{background-color:var(--colorSecondaryBackground)}.snip-component[_ngcontent-%COMP%]   .snip-header-background-color-fallback[_ngcontent-%COMP%]{background-color:var(--color2-alpha50)}.snip-component[_ngcontent-%COMP%]   .snip-comment-section[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:3.5rem}.snip-component[_ngcontent-%COMP%]   .snip-comment-section[_ngcontent-%COMP%]   .comments[_ngcontent-%COMP%]{width:940px}.snip-component[_ngcontent-%COMP%]   .snip-comment-counter[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-bottom:2.5rem;color:var(--textColor)}@media (max-width: 768px){.snip-component[_ngcontent-%COMP%]   .snip-header[_ngcontent-%COMP%]{background-color:var(--color2-alpha50);margin:0;padding:0}}"]}))}return o(),t})(),Tv=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.http=r,this.rubricArticles=[],this.loadableRubricArticlesCount=[],this.scope=s.getScope()}getRubrics(){let s=[];return this.scope.currentChapter.chapterGroups.forEach(l=>{l.chapters&&l.chapters.length>0&&s.push(...l.chapters)}),s}getRubricArticlesCount(s){let r=this.loadableRubricArticlesCount.filter(l=>l.id==s).firstOrDefault()?.count;return r?Promise.resolve(r):this.http.get(`${this.scope.apiEndpoint}rubrics/getRubricArticlesCount/${s}`).toPromise().then(l=>(this.loadableRubricArticlesCount.push({id:s,count:l??0}),l))}getRubricArticles(s,r,l){let E=this.rubricArticles.filter(N=>N.id===s&&N.page==r).firstOrDefault()?.articles;return E?Promise.resolve(E):this.http.get(`${this.scope.apiEndpoint}rubrics/getRubricArticles/${s}/${r}/${l}`).toPromise().then(N=>(this.rubricArticles.push({id:s,page:r,articles:N??[]}),N))}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Se.A),m.KVO(ke.Qq))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const sb=()=>({maxHeight:"40vh",minWidth:"20vw"});function TE(o,t){if(1&o&&(e.j41(0,"div",4)(1,"div"),e.nrm(2,"app-displayable-article-with-image",7),e.k0s()()),2&o){const n=t.$implicit;e.R7$(2),e.Y8G("data",n)}}let AE=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.rubricsService=r,this.loadableRubricArticlesCount=0,this.page=0,this.rubrics=[],this.selectedRubric="",this.displayedArticles=[],this.articlesListInitialCount=24,this.scope=this.scopeService.getScope()}ngOnInit(){if(this.rubrics=this.rubricsService.getRubrics(),this.rubrics.length>0){let s=location.search.substring(3);this.rubrics.some(r=>r.id==s)?this.selectedRubric=s:(this.selectedRubric=this.rubrics[0].id,window.history.pushState("","","rubrics?q="+this.selectedRubric)),this.getRubricArticles(this.selectedRubric,this.page,this.articlesListInitialCount),this.getRubricArticlesCount(this.selectedRubric)}}getRubricArticlesCount(s){this.rubricsService.getRubricArticlesCount(s).then(r=>{this.loadableRubricArticlesCount=r??0})}getRubricArticles(s,r,l){this.rubricsService.getRubricArticles(s,r,l).then(E=>{this.displayedArticles=this.displayedArticles.concat(E)})}onChange(s){this.displayedArticles=[],this.page=0,this.selectedRubric=s.item.id,window.history.pushState("","","rubrics?q="+this.selectedRubric)}canLoadMore(){return this.loadableRubricArticlesCount>this.displayedArticles.length}loadMore(){this.page++,this.getRubricArticles(this.selectedRubric,this.page,this.articlesListInitialCount)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Tv))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-rubrics"]],standalone:!1,decls:9,vars:10,consts:[[1,"rubrics-wrapper","container"],[1,"row","rubrics-drop-down-button-wrapper"],["icon","","stylingMode","text","type","normal","displayExpr","shortName","keyExpr","id",1,"rubrics-drop-down-button",3,"onSelectionChanged","dropDownOptions","showArrowIcon","items","useSelectMode","text","selectedItemKey"],[1,"row","rubrics-article-displayables-container"],[1,"rubrics-article-displayables-wrapper"],[1,"d-flex","justify-content-center","show-more-button","mb-4"],["icon","chevrondown",1,"",3,"onClick","visible"],[3,"data"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"dx-drop-down-button",2),e.bIt("onSelectionChanged",function(N){return l.onChange(N)}),e.k0s()(),e.j41(3,"div",3),e.Z7z(4,TE,3,1,"div",4,e.fX1),e.k0s(),e.j41(6,"div",5)(7,"dx-button",6),e.bIt("onClick",function(){return l.loadMore()}),e.EFF(8),e.k0s()()()),2&r&&(e.R7$(2),e.Y8G("text",e.mNQ(l.scope.network.getResourceOrKeyName("web_rubrics_text")))("dropDownOptions",e.lJ4(9,sb))("showArrowIcon",!0)("items",l.rubrics)("useSelectMode",!0)("selectedItemKey",l.selectedRubric),e.R7$(2),e.Dyx(l.displayedArticles),e.R7$(3),e.Y8G("visible",l.canLoadMore()),e.R7$(),e.SpI(" ",l.scope.currentScope.network.resources.web_common_showMore," "))},dependencies:[Gn.e,Po.h,uv],styles:['.rubrics-wrapper[_ngcontent-%COMP%]{color:var(--textColor);max-width:var(--designContentWidth);width:100%;padding:0}@media (max-width: 768px){.rubrics-wrapper[_ngcontent-%COMP%]{padding:0 16px}}.rubrics-wrapper[_ngcontent-%COMP%]     .dx-button-text, .rubrics-wrapper[_ngcontent-%COMP%]     .dx-icon{color:var(--textColor);text-transform:uppercase;font-size:2rem}@media (max-width: 768px){.rubrics-wrapper[_ngcontent-%COMP%]     .dx-button-text, .rubrics-wrapper[_ngcontent-%COMP%]     .dx-icon{font-size:1.1rem}}.rubrics-wrapper[_ngcontent-%COMP%]     .dx-button-text{font-family:var(--fontTertiary)}.rubrics-drop-down-button-wrapper[_ngcontent-%COMP%]{justify-content:center;padding:2rem 0}@media (max-width: 768px){.rubrics-drop-down-button-wrapper[_ngcontent-%COMP%]{padding:16px 10px}}.rubrics-drop-down-button[_ngcontent-%COMP%]{margin-bottom:15px;height:70px;width:auto;outline:0!important}@media (max-width: 768px){.rubrics-drop-down-button[_ngcontent-%COMP%]{height:50px}}.rubrics-drop-down-button[_ngcontent-%COMP%]:after{content:"";background:var(--textColor);height:1px;margin:auto;display:block;width:calc(100% - 10px);position:relative;top:-15px}@media (max-width: 768px){.rubrics-drop-down-button[_ngcontent-%COMP%]:after{top:-10px}}.rubrics-drop-down-button[_ngcontent-%COMP%]     .dx-button-mode-text{height:auto}.rubrics-drop-down-button[_ngcontent-%COMP%]     .dx-state-focused, .rubrics-drop-down-button[_ngcontent-%COMP%]     .dx-state-hover{background-color:var(--textColor5)}.rubrics-drop-down-button[_ngcontent-%COMP%]     .dx-state-focused [data-theme=dark]-shadowcsshost-no-combinator, [data-theme=dark]   [_nghost-%COMP%], .rubrics-drop-down-button[_ngcontent-%COMP%]     .dx-state-hover [data-theme=dark]-shadowcsshost-no-combinator, [data-theme=dark]   [_nghost-%COMP%]{background-color:var(--textColor20)}@media (min-width: 768px) and (max-width: 992px){.rubrics-article-displayables-container[_ngcontent-%COMP%]{padding:0 15px}}.rubrics-article-displayables-wrapper[_ngcontent-%COMP%]{width:50%;margin-bottom:32px}@media (max-width: 768px){.rubrics-article-displayables-wrapper[_ngcontent-%COMP%]{width:100%}}.load-more[_ngcontent-%COMP%]{color:var(--textColor);font-weight:600;font-size:1.8rem;height:2.5rem}@media (max-width: 768px){.load-more[_ngcontent-%COMP%]{font-size:1rem;height:2rem}}']}))}return o(),t})();var Xm=p(3970);function rb(o,t){if(1&o&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.scope.currentChapter.shortName)}}function Bf(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",8),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.openSwitch())})("keydown.space",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.openSwitch())}),e.j41(1,"dx-button",9),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.openSwitch())}),e.nrm(2,"i",10),e.nVh(3,rb,2,1,"span"),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("ngClass",n.upperCase?"chapterSwitch-chapterName-upperCase":"")("focusStateEnabled",!1),e.R7$(2),e.vxM(n.hideChapterSwitchName?-1:3)}}function IE(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",11)(1,"dx-button",12),e.bIt("click",function(r){const l=m.eBV(n).$implicit,E=e.XpG();return m.Njj(E.switchChapter(r,l.slug))}),e.j41(2,"span"),e.EFF(3),e.k0s(),e.nrm(4,"dx-load-indicator",13),e.k0s()()}if(2&o){const n=t.$implicit,s=e.XpG();e.R7$(),e.Y8G("ngClass",s.upperCase?"chapterSwitch-chapterName-upperCase":""),e.R7$(2),e.JRh(n.shortName),e.R7$(),e.Y8G("visible",s.activeLoadingSlug===n.slug)}}let ME=(()=>{var o;class t{constructor(s,r,l,E){this.el=s,this.scopeService=r,this.profileService=l,this.cordovaService=E,this.chapterSwitchOffCanvas=null,this.chapterList=[],this.showChapterSwitch=!0,this.upperCase=!0,this.hideChapterSwitchName=!1,this.profile=null,this.activeLoadingSlug=null,this.switchChapter=(N,ae)=>{let ze;this.scope.chapters.some(function(dt){return dt.slug===ae&&(ze=dt,!0)}),ze&&(this.activeLoadingSlug=ae,this.profileService.updateFavoriteChapter(ze.slug).then(()=>{var dt=ze.path;if(this.scope.currentScope.networkPath.length>1&&(dt=this.scope.currentScope.networkPath+ze.path),this.cordovaService.isCordovaAvailable()){if("android"===this.cordovaService.cordova.platformId){var Kt=history.length-1;history.go(-Kt),history.replaceState(null,"",dt),window.location.href=dt}window.location.href=dt}else window.location.href=dt}).catch(()=>{this.activeLoadingSlug=null}))},this.scope=this.scopeService.getScope(),this.hideChapterSwitchName=this.scope.currentScope.network.settings.configurations.chapterSwitchHideName,this.upperCase=this.scope.currentScope.network.settings.configurations.chapterSwitchNameUppercase,this.profile=this.scope.profile,this.profileServiceSubscription=this.profileService.profileChanged$.subscribe(N=>{this.profile=N,this.initializeChapterList()})}ngOnDestroy(){this.profileServiceSubscription.unsubscribe()}ngOnInit(){const s=this.scope.currentScope.network.chapters.filter(r=>2===r.managementState&&!r.hidden);this.showChapterSwitch=s.length>1}ngAfterViewInit(){const s=this.el.nativeElement.querySelector("#chapterSwitchoffcanvasTop");s&&(this.chapterSwitchOffCanvas=new Xm.Offcanvas(s))}initializeChapterList(){const s=this.scope.network.chapters.filter(r=>2===r.managementState&&!r.hidden&&r.slug!=this.scope.currentChapter.slug);this.chapterList=this.scope.network.settings.configurations.chapterSwitchGrantedChaptersOnly&&null!=this.profile?s.filter(r=>this.profile?.closedChapterSlugs?.includes(r.slug)||!r.closed):s,this.chapterList.sort((r,l)=>r.shortName.localeCompare(l.shortName))}openSwitch(){this.chapterSwitchOffCanvas&&this.chapterSwitchOffCanvas.show()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(Se.A),e.rXU($n.p),e.rXU(Wt.q))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-navigation-header-switch"]],standalone:!1,decls:9,vars:8,consts:[["tabindex","4",1,"chapter-switch-button-base"],["tabindex","4","id","chapterSwitchoffcanvasTop","aria-labelledby","chapterSwitchoffcanvasTopLabel",1,"offcanvas","offcanvas-top","offcanvas-custom"],[1,"offcanvas-header"],["id","offcanvasTopLabel"],["type","button","data-bs-dismiss","offcanvas","aria-label","Close",1,"btn-close","text-reset"],[1,"offcanvas-body"],[1,"panel-list",3,"dataSource","hoverStateEnabled","activeStateEnabled","focusStateEnabled","height"],["class","chapterSwitch-item-template",4,"dxTemplate","dxTemplateOf"],["tabindex","4",1,"chapter-switch-button-base",3,"keydown.enter","keydown.space"],["stylingMode","text","aria-label","Chapter Switch",1,"chapter-switch-button",3,"click","ngClass","focusStateEnabled"],[1,"fa-solid","fa-chevron-down","custom-chapter-switch-icon"],[1,"chapterSwitch-item-template"],["stylingMode","text",1,"chapterSwitch-item",3,"click","ngClass"],["height","20","width","20","aria-hidden","true",1,"button-indicator",3,"visible"]],template:function(r,l){1&r&&(e.nVh(0,Bf,4,3,"div",0),e.j41(1,"div",1)(2,"div",2)(3,"div",3),e.EFF(4),e.k0s(),e.nrm(5,"button",4),e.k0s(),e.j41(6,"div",5)(7,"dx-list",6),e.DNE(8,IE,5,3,"div",7),e.k0s()()()),2&r&&(e.vxM(l.showChapterSwitch?0:-1),e.R7$(4),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_chapterSwitch_chooseYourCity")),e.R7$(3),e.Y8G("dataSource",l.chapterList)("hoverStateEnabled",!0)("activeStateEnabled",!1)("focusStateEnabled",!1)("height","auto"),e.R7$(),e.Y8G("dxTemplateOf","item"))},dependencies:[C.YU,Et.eC,Gn.e,Pf.a,Wn.B],styles:[".offcanvas-custom[_ngcontent-%COMP%]{max-width:calc(var(--designContentWidth) * .75);margin:0 auto;border:0 solid var(--textColor60);border-left:1px solid aliceblue;border-right:1px solid aliceblue;border-bottom:1px solid aliceblue;border-radius:0 0 10px 10px;box-shadow:0 4px 10px #000;z-index:1045;height:fit-content;max-height:50vh;background:var(--backgroundColor)}.offcanvas-custom[_ngcontent-%COMP%]     .dx-button.dx-state-hover{outline:0}.chapterSwitch-item[_ngcontent-%COMP%]{font-size:1rem;font-family:var(--fontPrimary);font-weight:600;color:var(--textColor60);width:100%}.chapterSwitch-item[_ngcontent-%COMP%]     .dx-button-content{justify-content:start}.chapter-switch-button[_ngcontent-%COMP%]{font-size:1rem;color:var(--textColor60);font-weight:700;font-family:var(--fontPrimary)}.custom-chapter-switch-icon[_ngcontent-%COMP%]{font-size:1rem;margin-right:5px;color:var(--textColor60)}.chapterSwitch-chapterName-initial[_ngcontent-%COMP%]{text-transform:initial}.chapterSwitch-chapterName-upperCase[_ngcontent-%COMP%]{text-transform:uppercase}.chapterSwitch-chapterName-lowerCase[_ngcontent-%COMP%]{text-transform:lowercase}.offcanvas-header[_ngcontent-%COMP%]{color:var(--textColor)}@media (max-width: 768px){.chapter-switch-button[_ngcontent-%COMP%]{font-size:.7rem;color:var(--textColor60);font-weight:700;font-family:var(--fontPrimary)}.custom-chapter-switch-icon[_ngcontent-%COMP%]{font-size:.7rem;margin-right:5px;color:var(--textColor60)}  .dx-button-content{white-space:normal;word-wrap:break-word;line-height:1}}.button-indicator[_ngcontent-%COMP%]{margin-left:5px}"]}))}return o(),t})(),cT=(()=>{var o;class t{static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-navigation-header-chapter-switch"]],standalone:!1,decls:5,vars:0,consts:[[1,"navigation-header-chapter-switch-base"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div"),e.nrm(2,"app-navigation-header-logo"),e.k0s(),e.j41(3,"div"),e.nrm(4,"app-navigation-header-switch"),e.k0s()())},dependencies:[pc,ME],styles:[".navigation-header-chapter-switch-base[_ngcontent-%COMP%]{display:flex}.offcanvas-header[_ngcontent-%COMP%]{color:var(--textColor)}"]}))}return o(),t})();var Ym=p(1714);const Av=o=>({"navigation-header-search-is-selected":o});function Iv(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",0)(1,"div",2),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.toggleContainerMenu())})("keydown.enter",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.toggleContainerMenu())})("keydown.space",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.toggleContainerMenu())}),e.nrm(2,"i",3),e.k0s(),e.nrm(3,"span",4),e.j41(4,"div",5),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.openSearch())})("keydown.enter",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.openSearch())})("keydown.space",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.openSearch())}),e.nrm(5,"i",6),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.BMQ("aria-label",n.scope.network.getResourceOrKeyName("web_navigation_header_container_menu_aria"))("title",n.scope.network.getResourceOrKeyName("web_navigation_header_container_menu_aria"))("aria-expanded",n.navigationService.toggleContainerMenuState()),e.R7$(3),e.Y8G("ngClass",e.eq3(6,Av,n.isSearchSelected)),e.BMQ("aria-label",n.scope.network.getResourceOrKeyName("web_navigation_header_search_aria"))("title",n.scope.network.getResourceOrKeyName("web_navigation_header_search_aria"))}}function Mv(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",7),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.goBack())})("keydown.space",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.goBack())})("keydown.enter",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.goBack())}),e.nrm(1,"i",8),e.k0s()}if(2&o){const n=e.XpG();e.BMQ("aria-label",n.scope.network.getResourceOrKeyName("web_navigation_header_back_aria"))("title",n.scope.network.getResourceOrKeyName("web_navigation_header_back_aria"))}}let Pv=(()=>{var o;class t{constructor(s,r,l,E,N){this.navigationService=s,this.hybridRoutingService=r,this.scopeService=l,this.profileService=E,this.backButtonService=N,this.leftMenuVisible=!1,this.backButtonVisible=!1,this.isSearchSelected=!1,this.leftMenuExpanded=!1,this.toggleContainerMenu=()=>{this.navigationService.toggleContainerMenu(),this.leftMenuExpanded=!this.leftMenuExpanded},this.openSearch=()=>{this.hybridRoutingService.switchState("app.search",null)},this.goBack=()=>{null==window.history.state&&this.hybridRoutingService.switchState("app.main-news",null),window.history.back()},this.scope=l.getScope(),this.profileServiceSubscription=this.profileService.profileChanged$.subscribe(ae=>{this.user=ae,this.leftMenuVisible=!this.scopeService.getScope().currentChapter.closed||((this.user?.isRegistered&&this.user?.hasChapterAccess)??!1)}),this.hybridRoutingServiceSubscription=this.hybridRoutingService.getRouteState$().subscribe(ae=>{this.isSearchSelected=ae.angularJsState==$p.g.AppSearch})}ngOnDestroy(){this.profileServiceSubscription.unsubscribe(),this.hybridRoutingServiceSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Rg.o),e.rXU(Ko.o),e.rXU(Se.A),e.rXU($n.p),e.rXU(Ym.D))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-navigation-header-menu"]],standalone:!1,decls:2,vars:2,consts:[[1,"heade-left-side-menu-base"],["role","button","tabindex","0",1,"heade-left-side-menu-base","back-button-container","d-flex","justify-content-center"],["role","button","tabindex","1",1,"navigation-header-container-menu",3,"click","keydown.enter","keydown.space"],[1,"fa-solid","fa-bars"],[1,"separator"],["role","button","tabindex","2",1,"navigation-header-search",3,"click","keydown.enter","keydown.space","ngClass"],[1,"fa-solid","fa-magnifying-glass"],["role","button","tabindex","0",1,"heade-left-side-menu-base","back-button-container","d-flex","justify-content-center",3,"click","keydown.space","keydown.enter"],["aria-hidden","true",1,"back-button","fa-solid","fa-chevron-left"]],template:function(r,l){1&r&&(e.nVh(0,Iv,6,8,"div",0),e.nVh(1,Mv,2,2,"div",1)),2&r&&(e.vxM(l.leftMenuVisible&&!l.backButtonService.backButtonVisible()?0:-1),e.R7$(),e.vxM(l.backButtonService.backButtonVisible()?1:-1))},dependencies:[C.YU],styles:[".heade-left-side-menu-base[_ngcontent-%COMP%]{display:flex;align-items:center}.heade-left-side-menu-base[_ngcontent-%COMP%]   .navigation-header-search-is-selected[_ngcontent-%COMP%]{color:var(--colorPrimary)}.heade-left-side-menu-base[_ngcontent-%COMP%]   .dx-icon-custom-style[_ngcontent-%COMP%]{font-size:24px}.heade-left-side-menu-base[_ngcontent-%COMP%]   .fa-magnifying-glass[_ngcontent-%COMP%], .heade-left-side-menu-base[_ngcontent-%COMP%]   .fa-bars[_ngcontent-%COMP%]{font-size:20px;cursor:pointer;transition:color .3s ease,transform .3s ease}.heade-left-side-menu-base[_ngcontent-%COMP%]   .fa-magnifying-glass[_ngcontent-%COMP%]:hover, .heade-left-side-menu-base[_ngcontent-%COMP%]   .fa-bars[_ngcontent-%COMP%]:hover{color:var(--colorPrimary);transform:scale(1.2);outline:2px solid var(--textColor40);border-radius:3px;outline-offset:3px}.heade-left-side-menu-base[_ngcontent-%COMP%]   .separator[_ngcontent-%COMP%]{width:1px;height:32px;background-color:var(--textColor);margin-right:10px;margin-left:10px}@media (max-width: 768px){.heade-left-side-menu-base[_ngcontent-%COMP%]   .separator[_ngcontent-%COMP%]{margin-right:5px;margin-left:5px}}.heade-left-side-menu-base[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]{font-size:24px}.back-button-container[_ngcontent-%COMP%]{width:40px;height:50px}"]}))}return o(),t})();var ab=p(1973),Qm=p(5973),Ff=p(5704),Zh=p(4859),Zm=p(6021),Jh=p(3090),Bg=p(3012),Jm=p(1363),lb=p(778),cb=p(4451),qh=p(4072),PE=p(6790),dT=p(9209),ep=p(9293),Rv=p(1520),Nf=p(9212),Fg=p(9524),tp=p(612),RE=p(7080),db=p(273),kE=p(6870),BE=p(2123),Up=p(1830),Nd=p(5742);const FE={top:{my:"bottom center",at:"top center",collision:"fit none"},bottom:{my:"top center",at:"bottom center",collision:"fit none"}},uT={h:2,v:1};class kv extends Nd.B{_normalizePosition(t){const n=this._props.target,s=n?.closest(".dx-slider"),r={of:n,boundaryOffset:uT,boundary:s?.get(0)},l=(0,Jh.X)(!0,{},r,this._positionToObject(t));return this._positionSide=this._getDisplaySide(l),l}_renderContentInitialPosition(){super._renderContentInitialPosition(),this._fitIntoSlider()}_fitIntoSlider(){const{collisionSide:t,oversize:n}=kE.A.calculate(this._$content,this._position).h,{left:s}=this._visualPosition;(0,BE.Cy)(this._$content,{left:s+("left"===t?1:-1)*n}),this._updateVisualPositionValue()}_positionToObject(t){return(0,Up.Kg)(t)?(0,Jh.X)({},FE[t]):t}}const NE=db.A.inherit({_getDefaultOptions(){return(0,Jh.X)(this.callBase(),{visible:!1,position:"top",hideOnOutsideClick:!1,hideTopOverlayHandler:null,hideOnParentScroll:!1,animation:null,arrowPosition:null,templatesRenderAsynchronously:!1,_fixWrapperPosition:!1,useResizeObserver:!1,showMode:"onHover",format:o=>o,value:0})},_initMarkup(){this.callBase(),this._attachToMarkup(this.option("visible")),this._toggleShowModeClass()},_renderContent(){this.callBase(),this._renderContentText()},_toggleAriaAttributes(){},_renderContentText(){const{value:o,format:t}=this.option(),n=Rv.A.format(o??0,t);this.$content().text(n),this._renderPosition()},_toggleShowModeClass(){const o="onHover"===this.option("showMode");this.option("target").toggleClass("dx-slider-tooltip-visible-on-hover",o)},_initPositionController(){this._positionController=new kv(this._getPositionControllerConfig())},_attachToMarkup(o){const t=this.option("target");o?this.$element().appendTo(t):this.$element().detach()},_optionChanged(o){const{name:t,value:n}=o;switch(t){case"visible":this._attachToMarkup(n),this.callBase(o);break;case"showMode":this._toggleShowModeClass();break;case"format":case"value":this._renderContentText();break;default:this.callBase(o)}},updatePosition(){this._renderPosition()}}),ip=RE.A.inherit({_getDefaultOptions(){return(0,Jh.X)(this.callBase(),{hoverStateEnabled:!1,value:0,tooltip:{enabled:!1,format:o=>o,position:"top",showMode:"onHover"}})},_initMarkup(){this.callBase(),this.$element().addClass("dx-slider-handle"),this.setAria({role:"slider",valuenow:this.option("value"),label:"Slider"})},_render(){this.callBase(),this._renderTooltip()},_renderTooltip(){const{tooltip:o,value:t}=this.option(),{position:n,format:s,enabled:r,showMode:l}=o,E=(0,Ff.A)("<div>");this._sliderTooltip=this._createComponent(E,NE,{target:this.$element(),container:E,position:n,visible:r,showMode:l,format:s,value:t})},_clean(){this.callBase(),this._sliderTooltip=null},_updateTooltipOptions(o){var t;const n=RE.A.getOptionsFromContainer(o);this._setWidgetOption("_sliderTooltip",[n]),null===(t=this._sliderTooltip)||void 0===t||t.option("visible",n.enabled)},_optionChanged(o){const{name:t,value:n}=o;switch(t){case"value":var s;null===(s=this._sliderTooltip)||void 0===s||s.option("value",n),this.setAria("valuenow",n);break;case"tooltip":this._updateTooltipOptions(o);break;default:this.callBase(o)}},updateTooltipPosition(){var o;null===(o=this._sliderTooltip)||void 0===o||o.updatePosition()},repaint(){var o;null===(o=this._sliderTooltip)||void 0===o||o.repaint()}}),Lg=tp.A.inherit({_activeStateUnit:".dx-slider-handle",_supportedKeys(){const o=this.option("rtlEnabled"),t=(r,l)=>{r=this._valueStep(r);const E=this.option("step"),N=this.option("value"),ae=N-this.option("min"),ze=(0,Bg.oz)(ae,E,this._getValueExponentLength());let dt=l?N-r+(ze?E-ze:0):N+r-ze;const Kt=this.option("min"),Vn=this.option("max");return dt<Kt?dt=Kt:dt>Vn&&(dt=Vn),this._roundToExponentLength(dt)},n=r=>{this.option("value",t(r,o))},s=r=>{this.option("value",t(r,!o))};return(0,Jh.X)(this.callBase(),{leftArrow(r){this._processKeyboardEvent(r),s(this.option("step"))},rightArrow(r){this._processKeyboardEvent(r),n(this.option("step"))},pageUp(r){this._processKeyboardEvent(r),n(this.option("step")*this.option("keyStep"))},pageDown(r){this._processKeyboardEvent(r),s(this.option("step")*this.option("keyStep"))},home(r){this._processKeyboardEvent(r);const l=this.option("min");this.option("value",l)},end(r){this._processKeyboardEvent(r);const l=this.option("max");this.option("value",l)}})},_processKeyboardEvent(o){o.preventDefault(),o.stopPropagation(),this._saveValueChangeEvent(o)},_getDefaultOptions(){return(0,Jh.X)(this.callBase(),{value:50,hoverStateEnabled:!0,activeStateEnabled:!0,step:1,showRange:!0,tooltip:{enabled:!1,format:o=>o,position:"top",showMode:"onHover"},label:{visible:!1,position:"bottom",format:o=>o},keyStep:1,useInkRipple:!1,validationMessageOffset:(0,Nf.gx)()?{h:18,v:0}:{h:7,v:4},focusStateEnabled:!0,valueChangeMode:"onHandleMove"})},_toggleValidationMessage(o){this.option("isValid")||this.$element().toggleClass("dx-invalid-message-visible",o)},_defaultOptionsRules(){return this.callBase().concat([{device:()=>"desktop"===Qm.A.real().deviceType&&!Qm.A.isSimulator(),options:{focusStateEnabled:!0}},{device(){const o=(0,Nf.ss)();return(0,Nf.gx)(o)},options:{useInkRipple:!0}}])},_initMarkup(){this.$element().addClass("dx-slider"),this._renderSubmitElement(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._renderLabels(),this._renderStartHandler(),this._renderAriaMinAndMax()},_attachFocusEvents(){this.callBase();const o=this.NAME+"Validation",t=(0,ep.b4)("focusin",o),n=(0,ep.b4)("focusout",o),s=this._focusTarget();qh.A.on(s,t,this._toggleValidationMessage.bind(this,!0)),qh.A.on(s,n,this._toggleValidationMessage.bind(this,!1))},_detachFocusEvents(){this.callBase();const o=this._focusTarget();this._toggleValidationMessage(!1),qh.A.off(o,this.NAME+"Validation")},_render(){this.callBase(),this._repaintHandle()},_renderSubmitElement(){this._$submitElement=(0,Ff.A)("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement(){return this._$submitElement},_renderInkRipple(){this._inkRipple=(0,Fg.XX)({waveSizeCoefficient:.7,isCentered:!0,wavesNumber:2,useHoldAnimation:!1})},_renderInkWave(o,t,n,s){if(!this._inkRipple)return;const r={element:o,event:t,wave:s};n?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)},_visibilityChanged(){this.repaint()},_renderWrapper(){this.callBase(),this._$wrapper.addClass("dx-slider-wrapper"),this._createComponent(this._$wrapper,PE.A,{rtlEnabled:!1,elastic:!1,immediate:!0,immediateTimeout:0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._itemWidthFunc.bind(this)})},_renderContainer(){this.callBase(),this._$bar.addClass("dx-slider-bar")},_renderRange(){this.callBase(),this._$range.addClass("dx-slider-range"),this._renderHandle(),this._renderRangeVisibility()},_renderRangeVisibility(){this._$range.toggleClass("dx-slider-range-visible",!!this.option("showRange"))},_renderHandle(){this._$handle=this._renderHandleImpl(this.option("value"),this._$handle)},_renderHandleImpl(o,t){const n=t||(0,Ff.A)("<div>").appendTo(this._$range),s=this.option("tooltip");return this.$element().toggleClass("dx-slider-tooltip-position-bottom",s.enabled&&"bottom"===s.position).toggleClass("dx-slider-tooltip-position-top",s.enabled&&"top"===s.position),this._createComponent(n,ip,{value:o,tooltip:s}),n},_renderAriaMinAndMax(){this.setAria({valuemin:this.option("min"),valuemax:this.option("max")},this._$handle)},_toggleActiveState(o,t){this.callBase(o,t),this._renderInkWave(o,null,!!t,1)},_toggleFocusClass(o,t){if(this.callBase(o,t),this._disposed)return;const n=(0,Ff.A)(t||this._focusTarget());this._renderInkWave(n,null,o,0)},_renderLabels(){if(this.$element().removeClass("dx-slider-label-position-bottom").removeClass("dx-slider-label-position-top"),this.option("label.visible")){const o=this.option("min"),t=this.option("max"),n=this.option("label.position"),s=this.option("label.format");this._$minLabel||(this._$minLabel=(0,Ff.A)("<div>").addClass("dx-slider-label").appendTo(this._$wrapper)),this._$minLabel.text(Rv.A.format(o,s)),this._$maxLabel||(this._$maxLabel=(0,Ff.A)("<div>").addClass("dx-slider-label").appendTo(this._$wrapper)),this._$maxLabel.text(Rv.A.format(t,s)),this.$element().addClass("dx-slider-label-position-"+n)}else this._$minLabel&&(this._$minLabel.remove(),delete this._$minLabel),this._$maxLabel&&(this._$maxLabel.remove(),delete this._$maxLabel)},_renderStartHandler(){const o=(0,ep.b4)(dT.A.down,this.NAME),t=(0,ep.b4)(lb.U,this.NAME),n=this._createAction(this._startHandler.bind(this)),s=this.$element();qh.A.off(s,o),qh.A.on(s,o,r=>{(0,ep.Er)(r)&&n({event:r})}),qh.A.off(s,t),qh.A.on(s,t,r=>{const l=this._activeHandle();l&&(qh.A.trigger(l,"focusin"),qh.A.trigger(l,"focus")),n({event:r}),"onHandleRelease"===this.option("valueChangeMode")&&(this.option("value",this._getActualValue()),this._actualValue=void 0)})},_itemWidthFunc(){return this._itemWidthRatio},_swipeStartHandler(o){const t=this.option("rtlEnabled");(0,ep.kH)(o.event)&&this._createAction(this._startHandler.bind(this))({event:o.event}),this._feedbackDeferred=(0,Zm.cY)(),(0,cb.s2)(this._feedbackDeferred),this._toggleActiveState(this._activeHandle(),this.option("activeStateEnabled")),this._startOffset=this._currentRatio;const n=this._startOffset*this._swipePixelRatio(),s=(1-this._startOffset)*this._swipePixelRatio();o.event.maxLeftOffset=t?s:n,o.event.maxRightOffset=t?n:s,this._itemWidthRatio=(0,Jm.RG)(this.$element())/this._swipePixelRatio(),this._needPreventAnimation=!0},_swipeEndHandler(o){if(this._isSingleValuePossible())return;this._feedbackDeferred.resolve(),this._toggleActiveState(this._activeHandle(),!1);const t=this.option("rtlEnabled")?-1:1,n=this._startOffset+t*o.event.targetOffset/this._swipePixelRatio();delete this._needPreventAnimation,this._saveValueChangeEvent(o.event),this._changeValueOnSwipe(n),"onHandleRelease"===this.option("valueChangeMode")&&this.option("value",this._getActualValue()),this._actualValue=void 0,delete this._startOffset,this._renderValue()},_activeHandle(){return this._$handle},_swipeUpdateHandler(o){this._isSingleValuePossible()||(this._saveValueChangeEvent(o.event),this._updateHandlePosition(o))},_updateHandlePosition(o){const t=this.option("rtlEnabled")?-1:1,n=Math.min(this._startOffset+t*o.event.offset/this._swipePixelRatio(),1);(0,Jm.zj)(this._$range,100*n+"%"),ip.getInstance(this._activeHandle()),this._changeValueOnSwipe(n)},_swipePixelRatio(){const o=this.option("min");return(this.option("max")-o)/this._valueStep(this.option("step"))},_valueStep:o=>((!o||isNaN(o))&&(o=1),o),_getValueExponentLength(){const{step:o,min:t}=this.option();return Math.max((0,Bg.UN)(o),(0,Bg.UN)(t))},_roundToExponentLength(o){const t=this._getValueExponentLength();return(0,Bg.ar)(o,t)},_changeValueOnSwipe(o){const t=this.option("min"),n=this.option("max"),s=this._valueStep(this.option("step"));let l=t+o*(n-t);if(!(s<0))if(l===n||l===t)this._setValueOnSwipe(l);else{const E=Math.round((l-t)/s);l=this._roundToExponentLength(E*s+t),this._setValueOnSwipe(Math.max(Math.min(l,n),t))}},_setValueOnSwipe(o){this._actualValue=o,"onHandleRelease"===this.option("valueChangeMode")?ip.getInstance(this._activeHandle()).option("value",o):(this.option("value",o),this._saveValueChangeEvent(void 0))},_getActualValue(){return this._actualValue??this.option("value")},_isSingleValuePossible(){const{min:o,max:t}=this.option();return o===t},_startHandler(o){if(this._isSingleValuePossible())return;const t=o.event;this._currentRatio=((0,ep.rw)(t).x-this._$bar.offset().left)/(0,Jm.RG)(this._$bar),this.option("rtlEnabled")&&(this._currentRatio=1-this._currentRatio),this._saveValueChangeEvent(t),this._changeValueOnSwipe(this._currentRatio)},_renderValue(){this.callBase();const o=this._getActualValue();this._getSubmitElement().val((0,Zh.EG)(o)),ip.getInstance(this._activeHandle()).option("value",o)},_setRangeStyles(o){o&&this._$range.css(o)},_callHandlerMethod(o,t){ip.getInstance(this._$handle)[o](t)},_repaintHandle(){this._callHandlerMethod("repaint")},_fitTooltip(){this._callHandlerMethod("updateTooltipPosition")},_optionChanged(o){switch(o.name){case"visible":this.callBase(o),this._renderHandle(),this._repaintHandle();break;case"min":case"max":this._renderValue(),this.callBase(o),this._renderLabels(),this._renderAriaMinAndMax(),this._fitTooltip();break;case"step":this._renderValue();break;case"keyStep":case"valueChangeMode":break;case"showRange":this._renderRangeVisibility();break;case"tooltip":this._renderHandle();break;case"label":this._renderLabels();break;case"useInkRipple":this._invalidate();break;default:this.callBase(o)}},_refresh(){this._toggleRTLDirection(this.option("rtlEnabled")),this._renderDimensions(),this._renderValue(),this._renderHandle(),this._repaintHandle()},_clean(){delete this._inkRipple,delete this._actualValue,this.callBase()}});(0,ab.A)("dxSlider",Lg);const Fv=Lg,HE={provide:Ii.kq,useExisting:(0,m.Rfq)(()=>Lf),multi:!0};let Lf=(()=>{class o extends Et.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(n){this._setOption("accessKey",n)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(n){this._setOption("activeStateEnabled",n)}get disabled(){return this._getOption("disabled")}set disabled(n){this._setOption("disabled",n)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(n){this._setOption("elementAttr",n)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(n){this._setOption("focusStateEnabled",n)}get height(){return this._getOption("height")}set height(n){this._setOption("height",n)}get hint(){return this._getOption("hint")}set hint(n){this._setOption("hint",n)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(n){this._setOption("hoverStateEnabled",n)}get isDirty(){return this._getOption("isDirty")}set isDirty(n){this._setOption("isDirty",n)}get isValid(){return this._getOption("isValid")}set isValid(n){this._setOption("isValid",n)}get keyStep(){return this._getOption("keyStep")}set keyStep(n){this._setOption("keyStep",n)}get label(){return this._getOption("label")}set label(n){this._setOption("label",n)}get max(){return this._getOption("max")}set max(n){this._setOption("max",n)}get min(){return this._getOption("min")}set min(n){this._setOption("min",n)}get name(){return this._getOption("name")}set name(n){this._setOption("name",n)}get readOnly(){return this._getOption("readOnly")}set readOnly(n){this._setOption("readOnly",n)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(n){this._setOption("rtlEnabled",n)}get showRange(){return this._getOption("showRange")}set showRange(n){this._setOption("showRange",n)}get step(){return this._getOption("step")}set step(n){this._setOption("step",n)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(n){this._setOption("tabIndex",n)}get tooltip(){return this._getOption("tooltip")}set tooltip(n){this._setOption("tooltip",n)}get validationError(){return this._getOption("validationError")}set validationError(n){this._setOption("validationError",n)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(n){this._setOption("validationErrors",n)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(n){this._setOption("validationMessageMode",n)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(n){this._setOption("validationMessagePosition",n)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(n){this._setOption("validationStatus",n)}get value(){return this._getOption("value")}set value(n){this._setOption("value",n)}get valueChangeMode(){return this._getOption("valueChangeMode")}set valueChangeMode(n){this._setOption("valueChangeMode",n)}get visible(){return this._getOption("visible")}set visible(n){this._setOption("visible",n)}get width(){return this._getOption("width")}set width(n){this._setOption("width",n)}onContentReady;onDisposing;onInitialized;onOptionChanged;onValueChanged;accessKeyChange;activeStateEnabledChange;disabledChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;isDirtyChange;isValidChange;keyStepChange;labelChange;maxChange;minChange;nameChange;readOnlyChange;rtlEnabledChange;showRangeChange;stepChange;tabIndexChange;tooltipChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;valueChangeModeChange;visibleChange;widthChange;onBlur;change(n){}touched=n=>{};constructor(n,s,r,l,E,N,ae,ze){super(n,s,r,l,ae,ze),this._watcherHelper=l,this._idh=E,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"keyStepChange"},{emit:"labelChange"},{emit:"maxChange"},{emit:"minChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showRangeChange"},{emit:"stepChange"},{emit:"tabIndexChange"},{emit:"tooltipChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeModeChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),N.setHost(this)}_createInstance(n,s){return new Fv(n,s)}writeValue(n){this.eventHelper.lockedValueChangeEvent=!0,this.value=n,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(n){this.disabled=n}registerOnChange(n){this.change=n}registerOnTouched(n){this.touched=n}_createWidget(n){super._createWidget(n),this.instance.on("focusOut",s=>{this.eventHelper.fireNgEvent("onBlur",[s])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(n){super.ngOnChanges(n),this.setupChanges("validationErrors",n)}setupChanges(n,s){n in this._optionsToUpdate||this._idh.setup(n,s)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(n,s){let r=this._idh.setupSingle(n,s),l=null!==this._idh.getChanges(n,s);(r||l)&&super._setOption(n,s)}static \u0275fac=function(s){return new(s||o)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(Et.zF),e.rXU(Et.jS),e.rXU(Et.$M),e.rXU(Et.fH),e.rXU(e.pJN),e.rXU(e.Agw))};static \u0275cmp=e.VBU({type:o,selectors:[["dx-slider"]],hostBindings:function(s,r){1&s&&e.bIt("valueChange",function(E){return r.change(E)})("onBlur",function(E){return r.touched(E)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isDirty:"isDirty",isValid:"isValid",keyStep:"keyStep",label:"label",max:"max",min:"min",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showRange:"showRange",step:"step",tabIndex:"tabIndex",tooltip:"tooltip",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeMode:"valueChangeMode",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",keyStepChange:"keyStepChange",labelChange:"labelChange",maxChange:"maxChange",minChange:"minChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showRangeChange:"showRangeChange",stepChange:"stepChange",tabIndexChange:"tabIndexChange",tooltipChange:"tooltipChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeModeChange:"valueChangeModeChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[e.Jv_([Et.zF,Et.jS,HE,Et.fH,Et.$M]),e.Vt3,e.OA$],decls:0,vars:0,template:function(s,r){},encapsulation:2})}return o})(),Vg=(()=>{class o{static \u0275fac=function(s){return new(s||o)};static \u0275mod=e.$C({type:o});static \u0275inj=m.G2t({imports:[Bo.uE7,Bo.Pxf,Bo.Vku,Et.p_,Et.xZ,Bo.uE7,Bo.Pxf,Bo.Vku,Et.xZ]})}return o})(),Hg=(()=>{var o;class t{constructor(s){this.themingService=s,this.sizeValues=[12,16,20,23,26,29,32],this.currentModifier=100,this.step=20,this.format=r=>`${r}%`,this.themingChangedSubscription=this.themingService.themingChanged$.subscribe(r=>{this.fontSize="auto"==r.rootFontSize?Math.min(Math.max(parseFloat(getComputedStyle(document.documentElement).fontSize),12),32):parseInt(r.rootFontSize);let l=this.findClosestIndex();this.fontSize=this.sizeValues[l],this.currentModifier=l*this.step+80})}ngOnDestroy(){this.themingChangedSubscription.unsubscribe()}fontSizeChange(s){this.fontSize=this.sizeValues[(s.value-80)/20],this.themingService.setFontSize(this.fontSize)}findClosestIndex(){for(let s=0;s<this.sizeValues.length;s++)if(this.sizeValues[s]>=this.fontSize)return s;return this.sizeValues.length-1}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(oo))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-font-size-selector"]],standalone:!1,decls:4,vars:8,consts:[[1,"row","font-size-selector"],[3,"valueChange","onValueChanged","min","max","value","step"],["position","bottom",3,"visible","format"],["showMode","always","position","top",3,"enabled","format"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"dx-slider",1),e.mxI("valueChange",function(N){return e.DH7(l.currentModifier,N)||(l.currentModifier=N),N}),e.bIt("onValueChanged",function(N){return l.fontSizeChange(N)}),e.nrm(2,"dxo-label",2)(3,"dxo-tooltip",3),e.k0s()()),2&r&&(e.R7$(),e.Y8G("min",80)("max",200),e.R50("value",l.currentModifier),e.Y8G("step",l.step),e.R7$(),e.Y8G("visible",!0)("format",l.format),e.R7$(),e.Y8G("enabled",!0)("format",l.format))},dependencies:[Bo.rkl,Lf,Bo.Qx],styles:[".font-size-selector[_ngcontent-%COMP%]{padding:0 20px}"]}),this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const Nv=o=>[o];let Lv=(()=>{var o;class t{constructor(s,r){this.themingService=s,this.scopeService=r,this.themeToggleModes=[{text:"Light",icon:"sun",mode:0},{text:"Auto",mode:2},{text:"Dark",icon:"moon",mode:1}],this.currentTheme="",this.scope=this.scopeService.getScope(),this.themingChangedSubscription=this.themingService.themingChanged$.subscribe(l=>{switch(parseInt(l.theme)){case 0:this.currentTheme="Light";break;case 1:this.currentTheme="Dark";break;case 2:this.currentTheme="Auto"}})}ngOnDestroy(){this.themingChangedSubscription.unsubscribe()}onThemeChange(s){this.themingService.setSelectedTheme(s.addedItems[0].mode)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(oo),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-dark-mode-toggle"]],standalone:!1,decls:2,vars:4,consts:[[1,"row","dark-mode-button-wrapper"],[3,"onSelectionChanged","items","selectedItemKeys"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"dx-button-group",1),e.bIt("onSelectionChanged",function(N){return l.onThemeChange(N)}),e.k0s()()),2&r&&(e.R7$(),e.Y8G("items",l.themeToggleModes)("selectedItemKeys",e.eq3(2,Nv,l.currentTheme)))},dependencies:[Wr.D],styles:["[_nghost-%COMP%]  .dx-button-has-icon.dx-button-has-text .dx-button-content{padding-inline-start:6px;padding-inline-end:0}[_nghost-%COMP%]  .dx-button-has-icon.dx-button-has-text .dx-button-content span{display:none}.dark-mode-button-wrapper[_ngcontent-%COMP%]{padding-left:20px}.buttongroups-container[_ngcontent-%COMP%]{display:flex;justify-content:center}.dx-buttongroup[_ngcontent-%COMP%]{width:auto;padding:1px}.multiple-selection-styling-mode[_ngcontent-%COMP%]{border-left-width:1px;border-left-style:solid}"]}),this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();function $E(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",9)(1,"dx-switch",2),e.bIt("onValueChanged",function(r){const l=m.eBV(n).$implicit,E=e.XpG(2);return m.Njj(E.onColorFilterSwitch(l,r))}),e.k0s(),e.j41(2,"span",3),e.bIt("click",function(){const r=m.eBV(n).$implicit,l=e.XpG(2);return m.Njj(l.onColorFilterSwitch(r,{value:l.selectedColorFilter!==r.mode}))}),e.EFF(3),e.k0s()()}if(2&o){const n=t.$implicit,s=e.XpG(2);e.R7$(),e.Y8G("value",s.selectedColorFilter===n.mode),e.R7$(2),e.SpI(" ",n.text," ")}}function Vv(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",7)(1,"div",8)(2,"dx-switch",2),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onBlueLightFilter(r))}),e.k0s(),e.j41(3,"span",3),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.onBlueLightFilter({value:!r.selectedBlueLightFilter}))}),e.EFF(4),e.k0s()(),e.Z7z(5,$E,4,2,"div",9,e.fX1),e.k0s()}if(2&o){const n=e.XpG();e.R7$(2),e.Y8G("value",n.selectedBlueLightFilter),e.R7$(2),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_accessibility_menu_blue_light_filter")," "),e.R7$(),e.Dyx(n.colorFilters)}}let Hv=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.themingService=r,this.showFilter=!1,this.colorFilters=[],this.selectedBlueLightFilter=!1,this.selectedImageFilter=!1,this.selectedColorFilter=0,this.toggleShowFilters=()=>{this.showFilter=!this.showFilter},this.scope=this.scopeService.getScope(),this.colorFilters=[{text:this.scope.network.getResourceOrKeyName("web_accessibility_menu_filters_red"),mode:1},{text:this.scope.network.getResourceOrKeyName("web_accessibility_menu_filters_blue"),mode:2},{text:this.scope.network.getResourceOrKeyName("web_accessibility_menu_filters_green"),mode:3},{text:this.scope.network.getResourceOrKeyName("web_accessibility_menu_filters_gray"),mode:4},{text:this.scope.network.getResourceOrKeyName("web_accessibility_menu_filters_contrast"),mode:5},{text:this.scope.network.getResourceOrKeyName("web_accessibility_menu_filters_saturate"),mode:6}]}ngOnInit(){this.syncWithService(),this.themingSub=this.themingService.themingChanged$.subscribe(()=>this.syncWithService())}ngOnDestroy(){this.themingSub.unsubscribe()}syncWithService(){this.selectedBlueLightFilter=this.themingService.getBlueLightFilterStatus(),this.selectedColorFilter=this.themingService.getColorFilterStatus(),this.selectedImageFilter=this.themingService.getImageFilterStatus()}onColorFilterSwitch(s,r){r.value?this.selectedColorFilter=s.mode:this.selectedColorFilter===s.mode&&(this.selectedColorFilter=0),this.updateColorFilter()}updateColorFilter(){switch(document.body.classList.remove("filter-red","filter-blue","filter-green","filter-gray","filter-off","filter-contrast","filter-saturate"),this.selectedColorFilter){case 1:document.body.classList.add("filter-red");break;case 2:document.body.classList.add("filter-blue");break;case 3:document.body.classList.add("filter-green");break;case 4:document.body.classList.add("filter-gray");break;case 5:document.body.classList.add("filter-contrast");break;case 6:document.body.classList.add("filter-saturate");break;default:document.body.classList.add("filter-off"),this.selectedColorFilter=0}this.themingService.setColorFilterStatus(this.selectedColorFilter)}onBlueLightFilter(s){this.selectedBlueLightFilter=s.value,document.body.classList.remove("blue-light-on"),this.selectedBlueLightFilter&&document.body.classList.add("blue-light-on"),this.themingService.setBlueLightFilterStatus(this.selectedBlueLightFilter)}onImageFilterChange(s){document.body.classList.remove("image-filter"),this.selectedImageFilter=s.value,this.selectedImageFilter&&document.body.classList.add("image-filter"),this.themingService.setImageFilterStatus(this.selectedImageFilter)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(oo))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-filters"]],standalone:!1,decls:10,vars:4,consts:[[1,"filter-mode-button-wrapper"],[1,"mb-3","d-flex","align-items-center","gap-2","toggle-padding"],[3,"onValueChanged","value"],[3,"click"],[1,"mb-3"],["role","Button","tabindex","0","aria-label","toggle color filters",3,"click","keydown.enter","keydown.space"],[1,"fa-solid","fa-chevron-down"],[1,"mb-3","mt-3","toggle-padding"],[1,"mb-2","d-flex","align-items-center","gap-2"],[1,"d-flex","align-items-center","gap-2","mb-2"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"dx-switch",2),e.bIt("onValueChanged",function(N){return l.onImageFilterChange(N)}),e.k0s(),e.j41(3,"span",3),e.bIt("click",function(){return l.onImageFilterChange({value:!l.selectedImageFilter})}),e.EFF(4),e.k0s()(),e.j41(5,"div",4)(6,"span",5),e.bIt("click",function(){return l.toggleShowFilters()})("keydown.enter",function(){return l.toggleShowFilters()})("keydown.space",function(){return l.toggleShowFilters()}),e.EFF(7),e.nrm(8,"i",6),e.k0s(),e.nVh(9,Vv,7,2,"div",7),e.k0s()()),2&r&&(e.R7$(2),e.Y8G("value",l.selectedImageFilter),e.R7$(2),e.SpI(" ",l.scope.network.getResourceOrKeyName("web_accessibility_menu_hide_images")," "),e.R7$(3),e.SpI(" ",l.scope.network.getResourceOrKeyName("web_accessibility_menu_color_filters")," "),e.R7$(2),e.vxM(l.showFilter?9:-1))},dependencies:[Zn.Y],styles:[".filter-blue{filter:url(#tritanomalie)}.filter-red{filter:url(#protanomaly)}.filter-green{filter:url(#deuteranomalie)}.image-filter img{visibility:hidden!important}.filter-contrast{filter:contrast(1.5)}.filter-saturate{filter:saturate(2)}.blue-light-on{background:#ff932966;z-index:2147483646;margin:0;border-radius:0;padding:0;inset:-10%;width:auto;height:auto;mix-blend-mode:multiply;display:block!important}.filter-mode-button-wrapper span{cursor:pointer}.toggle-padding{padding-left:10px}\n"],encapsulation:2}))}return o(),t})(),$v=(()=>{var o;class t{constructor(s,r){this.themingService=s,this.scopeService=r,this.scope=r.getScope()}resetGlobalSettings(){this.themingService.resetToDefault()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(oo),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-user-visual-settings"]],standalone:!1,decls:12,vars:5,consts:[[3,"showColonAfterLabel"],[3,"text"],[2,"display","flex","justify-content","center"],[3,"onClick","rtlEnabled","text"]],template:function(r,l){1&r&&(e.j41(0,"dx-form",0)(1,"dxi-item"),e.nrm(2,"app-dark-mode-toggle")(3,"dxo-label",1),e.k0s(),e.j41(4,"dxi-item"),e.nrm(5,"app-font-size-selector")(6,"dxo-label",1),e.k0s(),e.j41(7,"dxi-item"),e.nrm(8,"app-filters"),e.k0s(),e.j41(9,"dxi-item")(10,"div",2)(11,"dx-button",3),e.bIt("onClick",function(){return l.resetGlobalSettings()}),e.k0s()()()()),2&r&&(e.Y8G("showColonAfterLabel",!1),e.R7$(3),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_visuals_dark_mode_toggle_description")),e.R7$(3),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_visuals_font_size_description")),e.R7$(5),e.Y8G("rtlEnabled",!0)("text",l.scope.network.getResourceOrKeyName("web_common_reset")))},dependencies:[Xi.o,Bo.CVf,Bo.rkl,Gn.e,Hg,Lv,Hv],styles:[".dx-separator[_ngcontent-%COMP%]{height:1px;background-color:var(--colorPrimary);margin:1px 0}.narrator-toggle-flex-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.dx-slider[_ngcontent-%COMP%]{flex:1}"]}))}return o(),t})();const Uv=["visualsButton"];function jv(o,t){1&o&&(e.j41(0,"div"),e.nrm(1,"app-user-visual-settings"),e.k0s())}let Vf=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.themingService=r,this.areSettingsVisible=!1,this.popupOptions={},this.animation={show:{type:"slide",duration:600,from:{position:{my:"bottom",at:"top",of:window},opacity:0},to:{position:{my:"top",at:"top",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"top",at:"top",of:window},opacity:1},to:{position:{my:"bottom",at:"top",of:window},opacity:0}}},this.scope=s.getScope(),this.closeButtonOptions={icon:"fa fa-close",text:this.scope.network.getResourceOrKeyName("web_common_close"),stylingMode:"outlined",type:"normal",onClick:()=>{this.areSettingsVisible=!1}},this.initializePopupOptions()}toggleVisualSettings(){this.areSettingsVisible=!this.areSettingsVisible}get hintText(){return this.scope.network.getResourceOrKeyName(this.areSettingsVisible?"web_common_close":"web_visuals_title")}get visualsText(){return this.scope.network.getResourceOrKeyName("web_visuals_title")}ngAfterViewInit(){this.visualsButton&&(this.buttonElement=this.visualsButton.nativeElement)}adjustPopupSize(){const s=document.querySelector(".dx-popup-content");s&&(s.style.minWidth="250px")}initializePopupOptions(){}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(oo))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-user-accessibility-button"]],viewQuery:function(r,l){if(1&r&&e.GBs(Uv,5,e.aKT),2&r){let E;e.mGM(E=e.lsd())&&(l.visualsButton=E.first)}},standalone:!1,decls:6,vars:15,consts:[[1,"visual-button-boundary-base",3,"id"],["role","button","aria-label","Open accessibility menu","tabindex","5",1,"",3,"click","keydown.enter","keydown.space"],[1,"fa-solid","fa-child-reaching"],["position","top","contentTemplate","popupContent",3,"visibleChange","onShown","visible","shading","width","height","maxWidth","maxHeight","showTitle","title","showCloseButton","animation","hideOnOutsideClick","dragEnabled"],["at","bottom","my","top",3,"of"],[4,"dxTemplate","dxTemplateOf"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1),e.bIt("click",function(){return l.toggleVisualSettings()})("keydown.enter",function(){return l.toggleVisualSettings()})("keydown.space",function(){return l.toggleVisualSettings()}),e.nrm(2,"i",2),e.k0s()(),e.j41(3,"dx-popup",3),e.mxI("visibleChange",function(N){return e.DH7(l.areSettingsVisible,N)||(l.areSettingsVisible=N),N}),e.bIt("onShown",function(){return l.adjustPopupSize()}),e.nrm(4,"dxo-position",4),e.DNE(5,jv,2,0,"div",5),e.k0s()),2&r&&(e.Y8G("id","visualButtonBoundary"),e.R7$(3),e.R50("visible",l.areSettingsVisible),e.Y8G("shading",!1)("width","400px")("height","auto")("maxWidth","100vw")("maxHeight","100vh")("showTitle",!0)("title",l.visualsText)("showCloseButton",!0)("animation",l.animation)("hideOnOutsideClick",!0)("dragEnabled",!1),e.R7$(),e.Y8G("of",l.buttonElement),e.R7$(),e.Y8G("dxTemplateOf","popupContent"))},dependencies:[Et.eC,en.i,Bo.I1b,$v],styles:[".visual-button-boundary-base[_ngcontent-%COMP%]   .fa-child-reaching[_ngcontent-%COMP%]{font-size:20px;padding-top:3.2px;cursor:pointer;transition:color .3s ease,transform .3s ease}.visual-button-boundary-base[_ngcontent-%COMP%]   .fa-child-reaching[_ngcontent-%COMP%]:hover{color:var(--colorPrimary);transform:scale(1.2);outline:2px solid var(--textColor40);border-radius:3px;outline-offset:3px}"]}))}return o(),t})();const Gv=(o,t)=>({width:o,height:t}),_b=o=>({"font-size":o,"font-weight":600});function Wv(o,t){if(1&o&&e.nrm(0,"img",1),2&o){const n=e.XpG();e.Y8G("src",n.avatarUrl,e.B4B)}}function Hf(o,t){if(1&o&&(e.j41(0,"div",2),e.EFF(1),e.k0s()),2&o){const n=e.XpG(),s=e.XpG();e.Y8G("ngStyle",e.eq3(2,_b,s.fontSize+"px")),e.R7$(),e.SpI(" ",n.initials," ")}}function vb(o,t){if(1&o&&(e.j41(0,"div",0),e.nVh(1,Wv,1,1,"img",1),e.nVh(2,Hf,2,4,"div",2),e.k0s()),2&o){const n=t,s=e.XpG();e.Y8G("ngStyle",e.l_i(3,Gv,s.avatarSize+"px",s.avatarSize+"px")),e.R7$(),e.vxM(n.avatarUrl?1:-1),e.R7$(),e.vxM(n.useInitials?2:-1)}}let UE=(()=>{var o;class t{constructor(s){this.scopeService=s,this.size=1,this.fontSize=16,this.avatarSize=24,this.scope=this.scopeService.getScope()}ngOnInit(){this.fontSize=16*this.size/2,this.avatarSize=16*this.size}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-user-avatar"]],inputs:{user:"user",size:"size"},standalone:!1,decls:2,vars:3,consts:[[1,"shared-avatar",3,"ngStyle"],["alt","",1,"shared-avatar-img",3,"src"],[1,"shared-avatar-initials",3,"ngStyle"]],template:function(r,l){if(1&r&&(e.nVh(0,vb,3,6,"div",0),e.nI1(1,"createAvatar")),2&r){let E;e.vxM((E=e.bMT(1,1,l.user))?0:-1,E)}},dependencies:[C.B3,ta._],styles:[".shared-avatar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;flex-wrap:nowrap;background-color:#ccc}.shared-avatar[_ngcontent-%COMP%]   .shared-avatar-img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.shared-avatar[_ngcontent-%COMP%]   .shared-avatar-initials[_ngcontent-%COMP%]{background-color:#ccc;color:var(--textColor)}"]}))}return o(),t})();function zv(o,t){1&o&&(e.j41(0,"span"),e.nrm(1,"app-user-accessibility-button"),e.k0s(),e.nrm(2,"span",4))}function $f(o,t){1&o&&e.nrm(0,"div",2)}function Kv(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"app-user-avatar",5),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("size",1.5)("user",n.user)}}function Cb(o,t){1&o&&(e.j41(0,"div")(1,"span",6),e.nrm(2,"i",7),e.k0s()())}let yb=(()=>{var o;class t{constructor(s,r,l,E){this.scopeService=s,this.navigation=r,this.notificationService=l,this.profileService=E,this.featureAccessibilityEnabled=!1,this.rightMenuExpanded=!1,this.scope=this.scopeService.getScope(),this.user=this.scope.profile,this.profilServiceSubscription=this.profileService.profileChanged$.subscribe(N=>{this.user=N}),this.featureAccessibilityEnabled=this.scope.currentScope.network.settings.configurations.accessibility}ngOnDestroy(){this.profilServiceSubscription.unsubscribe()}toggleMenu(){this.navigation.toggleUserMenu(),this.rightMenuExpanded=!this.rightMenuExpanded}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Rg.o),e.rXU(Fd.J),e.rXU($n.p))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-navigation-header-user-options"]],standalone:!1,decls:7,vars:7,consts:[[1,"header-user-options"],[1,"header-avatar-container"],[1,"notification-status-dot"],["role","button","tabindex","6",1,"head-user-options-avatar",3,"click","keydown.enter","keydown.space"],[1,"separator"],[3,"size","user"],[1,"icon-circle"],["role","img","aria-hidden","true",1,"fa-regular","fa-user"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,zv,3,0),e.j41(2,"div",1),e.nVh(3,$f,1,0,"div",2),e.j41(4,"div",3),e.bIt("click",function(){return l.toggleMenu()})("keydown.enter",function(){return l.toggleMenu()})("keydown.space",function(){return l.toggleMenu()}),e.nVh(5,Kv,2,2,"div"),e.nVh(6,Cb,3,0,"div"),e.k0s()()()),2&r&&(e.R7$(),e.vxM(l.featureAccessibilityEnabled?1:-1),e.R7$(2),e.vxM(l.notificationService.unClickedMessage?3:-1),e.R7$(),e.BMQ("aria-label",l.scope.network.getResourceOrKeyName("web_navigation_header_user_menu_aria"))("title",l.scope.network.getResourceOrKeyName("web_navigation_header_user_menu_aria"))("aria-expanded",l.navigation.toggleUserMenuState()),e.R7$(),e.vxM(l.user.isRegistered?5:-1),e.R7$(),e.vxM(l.user.isRegistered?-1:6))},dependencies:[Vf,UE],styles:[".header-user-options[_ngcontent-%COMP%]{display:flex;align-items:center}.header-user-options[_ngcontent-%COMP%]   .separator[_ngcontent-%COMP%]{width:1px;height:32px;background-color:var(--textColor);margin-right:10px;margin-left:10px}.header-user-options[_ngcontent-%COMP%]   .head-user-options-avatar[_ngcontent-%COMP%]{cursor:pointer}.header-user-options[_ngcontent-%COMP%]   .head-user-options-avatar[_ngcontent-%COMP%]:hover{transform:scale(1.2);outline:2px solid var(--textColor40);border-radius:3px;outline-offset:3px}.header-user-options[_ngcontent-%COMP%]   .header-avatar-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.header-user-options[_ngcontent-%COMP%]   .notification-status-dot[_ngcontent-%COMP%]{background-color:var(--colorPrimary);border-radius:50%;position:absolute;width:8px;top:-3.25px;right:-2.24px;aspect-ratio:1/1;box-shadow:0 0 2px #0003}.header-user-options[_ngcontent-%COMP%]   .icon-circle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background-color:var(--backgroundColor);border:2px solid var(--textColor60);color:var(--textColor)}.header-user-options[_ngcontent-%COMP%]   .icon-circle[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:16px}"]}))}return o(),t})(),jE=(()=>{var o;class t{static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-navigation-header"]],standalone:!1,decls:9,vars:0,consts:[[1,"navigation-header"],[1,"navigation-header-content"],[1,"row"],[1,"col-2","col-md-1","navigation-header-menu"],[1,"col-8","col-md-10","navigation-header-chapter-switch"],[1,"col-2","col-md-1","navigation-header-user-options"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.nrm(4,"app-navigation-header-menu"),e.k0s(),e.j41(5,"div",4),e.nrm(6,"app-navigation-header-chapter-switch"),e.k0s(),e.j41(7,"div",5),e.nrm(8,"app-navigation-header-user-options"),e.k0s()()()())},dependencies:[cT,Pv,yb],styles:[".navigation-header[_ngcontent-%COMP%]{display:flex;justify-content:center;padding-top:14.4px;background-color:var(--backgroundColor)}.navigation-header[_ngcontent-%COMP%]   .navigation-header-content[_ngcontent-%COMP%]{width:var(--designContentWidth)}.navigation-header[_ngcontent-%COMP%]   .navigation-header-content[_ngcontent-%COMP%]   .navigation-header-menu[_ngcontent-%COMP%]{align-items:center;display:flex}.navigation-header[_ngcontent-%COMP%]   .navigation-header-content[_ngcontent-%COMP%]   .navigation-header-chapter-switch[_ngcontent-%COMP%]{display:flex;justify-content:center}.navigation-header[_ngcontent-%COMP%]   .navigation-header-content[_ngcontent-%COMP%]   .navigation-header-user-options[_ngcontent-%COMP%]{display:flex;justify-content:end;align-items:center}@media (max-width: 768px){.navigation-header[_ngcontent-%COMP%]{height:var(--appHeaderHeight);padding-top:3.2px}}"]}))}return o(),t})();var mc=function(o){return o[o.None=0]="None",o[o.Journalist=2]="Journalist",o[o.MerkuristJournalist=3]="MerkuristJournalist",o[o.HeadJournalist=4]="HeadJournalist",o[o.Sales=5]="Sales",o[o.HeadSales=6]="HeadSales",o[o.NewsroomAdmin=7]="NewsroomAdmin",o}(mc||{});let e_=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.profileService=r,this.mainMenu=new Rt.m,this.mainMenu$=this.mainMenu.asObservable(),this.prepareUnauthorizedMenu=()=>{this.mainMenu.next({userMenu:[{type:"logout",text:this.scope.network.getResourceOrKeyName("admin_common_logout"),icon:"",path:""}],shipmentMenu:[],authorMenu:[]})},this.prepaireMenu=()=>{this.mainMenu.next({userMenu:this.generateUserMenu(),shipmentMenu:this.generateShipmentMenu(),authorMenu:this.generateAuthorMenu()})},this.generateUserMenu=()=>{let l=[];return l.push({type:"notifications",text:this.scope.network.getResourceOrKeyName("web_root_notification_title"),icon:"fa-regular fa-bell",path:"notifications"}),(this.scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&this.user.chapterRoles.includes(mc.MerkuristJournalist||mc.Sales)||this.user.isAdmin&&this.scope.currentScope.network.settings.languagePack.endsWith("-business")||this.user.isAdmin&&this.scope.currentScope.network.settings.languagePack.endsWith("-location"))&&l.push({type:"administration",text:this.scope.network.getResourceOrKeyName("web_common_administration"),icon:"",path:"adminsettings"}),l.push({type:"accountSettings",text:this.scope.network.getResourceOrKeyName("web_root_authentication_accountSettings"),icon:"",path:"settings"}),l.push({type:"logout",text:this.scope.network.getResourceOrKeyName("admin_common_logout"),icon:"",path:""}),l},this.generateShipmentMenu=()=>{let l=[];return this.user.isAdvertiser&&this.scope.currentScope.chapter.settings.featureSales&&(l.push({type:"campaigns",text:this.scope.network.getResourceOrKeyName("web_root_advertiser_myCampaigns"),icon:"",path:"campaigns"}),l.push({type:"advertiserBilling",text:this.scope.network.getResourceOrKeyName("web_advertiserBilling_pageTitle"),icon:"",path:"advertisers/billinginfo"}),l.push({type:"sponsoredArticles",text:this.scope.network.getResourceOrKeyName("web_sponsoredArticle_sponsoredArticles"),icon:"",path:"sparticles"})),l},this.generateAuthorMenu=()=>{let l=[],E=this.user.chapterRoles.includes(mc.NewsroomAdmin)||!this.calendarSettings&&this.user.chapterRoles.includes(mc.MerkuristJournalist)||this.calendarSettings&&this.user.chapterRoles.includes(this.calendarSettings.MinEventCreationRole);return this.user.chapterRoles.includes(mc.Journalist)&&(l.push({type:"dashboard",text:this.scope.network.getResourceOrKeyName("web_root_journalist_dashboard"),icon:"",path:"dashboard"}),(1==this.scope.currentScope.chapter.settings.featureCreateArticleWithoutSnip&&this.user.chapterRoles.includes(mc.MerkuristJournalist)||2==this.scope.currentScope.chapter.settings.featureCreateArticleWithoutSnip)&&l.push({type:"newArticle",text:this.scope.network.getResourceOrKeyName("web_authorDashboard_newArticle"),icon:"",path:""}),this.scope.currentChapter.settings.configurations.enableEventCalendar&&E&&l.push({type:"newEvent",text:this.scope.network.getResourceOrKeyName("web_authorDashboard_newEvent"),icon:"",path:""}),this.scope.currentScope.chapter.settings.featureAuthorBilling&&l.push({type:"authorBilling",text:this.scope.network.getResourceOrKeyName("web_authorBilling_pageTitle"),icon:"",path:"author/billinginfo"})),l},this.generateContactMenu=()=>{let l=[];return this.scope.currentChapter.settings.featureFeedback&&l.push({type:"feedback",text:this.scope.network.getResourceOrKeyName("web_root_root_feedback"),icon:"",path:"feedback"}),l.push({type:"imprint",text:this.scope.network.getResourceOrKeyName("web_common_imprint"),icon:"",path:"imprint"}),l},this.scope=this.scopeService.getScope(),this.calendarSettings=this.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration,this.user=this.scope.profile,this.profilServiceSubscription=this.profileService.profileChanged$.subscribe(l=>{this.user=l,this.user.isRegistered&&this.user.hasChapterAccess?this.prepaireMenu():this.user.isRegistered&&!this.user.hasChapterAccess&&this.prepareUnauthorizedMenu()})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Se.A),m.KVO($n.p))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),Xv=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.http=r,this.calendarArticles=null,this.calendarSponsoredArticles=null,this.calendarEvents=null,this.calendarSnips=null,this.scope=s.getScope()}getEventCalendarArticles(){return this.calendarArticles?Promise.resolve(this.calendarArticles):this.http.get(`${this.scope.apiEndpoint}articles/events`).toPromise().then(s=>(this.calendarArticles=s,s))}updateEventCalendarEvents(s){this.calendarEvents.first(r=>r.id===s).hasCongratulated=!0}getEventCalendarEvents(){return this.calendarEvents?Promise.resolve(this.calendarEvents):this.http.get(`${this.scope.apiEndpoint}eventcalendar/eventList`).toPromise().then(s=>(this.calendarEvents=s,s))}getEventCalendarSponsoredArticles(){return this.calendarSponsoredArticles?Promise.resolve(this.calendarSponsoredArticles):this.http.get(`${this.scope.apiEndpoint}sponsoredArticles/events`).toPromise().then(s=>(this.calendarSponsoredArticles=s,s))}getEventCalendarSnips(){return this.calendarSnips?Promise.resolve(this.calendarSnips):this.http.get(`${this.scope.apiEndpoint}snips/events`).toPromise().then(s=>(this.calendarSnips=s,s))}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Se.A),m.KVO(ke.Qq))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),Ld=(()=>{var o;class t{constructor(s,r,l){this.http=s,this.scopeService=r,this.calendarService=l,this.eventCalendarEventData=[],this.scope=this.scopeService.getScope()}getEventCalendarEventData(){return 0===this.eventCalendarEventData.length?this.http.get(`${this.scope.apiEndpoint}eventcalendar/eventList`).toPromise().then(s=>(this.eventCalendarEventData=s??[],this.eventCalendarEventData)):Promise.resolve(this.eventCalendarEventData)}createEvent(){return this.http.post(`${this.scope.apiEndpoint}eventcalendar`,{}).toPromise()}updateEvent(s,r){return this.http.put(`${this.scope.apiEndpoint}eventcalendar/${s}`,r).toPromise()}deleteEvent(s){return this.http.delete(`${this.scope.apiEndpoint}eventcalendar/${s}`).toPromise()}publishEvent(s,r){return this.http.post(`${this.scope.apiEndpoint}eventcalendar/${s}/publish?breaking=${r?"true":"false"}`,{}).toPromise()}publishContentConnectEvent(s,r,l,E){return this.http.post(`${this.scope.apiEndpoint}eventCalenderContentConnect/${s}/publishContentConnect`,{ownerBreakingEvent:r,chapterNetworks:l,ccBreakingEvent:E}).toPromise()}requestEventPublish(s){return this.http.post(`${this.scope.apiEndpoint}eventcalendar/${s}/requestPublish`,{}).toPromise()}getEvent(s){return this.http.get(`${this.scope.apiEndpoint}eventcalendar/${s}?forEdit=false`).toPromise()}getEventForEdit(s){return this.http.get(`${this.scope.apiEndpoint}eventcalendar/${s}?forEdit=true`).toPromise()}acceptJoinEvent(s){return this.http.post(`${this.scope.apiEndpoint}eventcalendar/${s}/join/accept`,{}).toPromise()}declineJoinEvent(s){return this.http.post(`${this.scope.apiEndpoint}eventcalendar/${s}/join/decline`,{}).toPromise()}queueJoinEvent(s){return this.http.post(`${this.scope.apiEndpoint}eventcalendar/${s}/join/queue`,{}).toPromise()}translateEventDetail(s,r){return this.http.get(`${this.scope.apiEndpoint}eventcalendar/${s}/translate/${r}`).toPromise()}getEventsForAuthorDashboard(){return this.http.get(`${this.scope.apiEndpoint}eventcalendar/authorDasboardList`).toPromise().then(s=>s??[])}congratulateToBirthday(s,r){const l=JSON.stringify(r).slice(1,-1);return this.http.post(`${this.scope.apiEndpoint}eventcalendar/${s}/congratulateForBirthday?occurance=${l}`,{}).toPromise().then(()=>{if(this.eventCalendarEventData.length>0){const E=this.eventCalendarEventData?.first(N=>N.id===s);E&&(E.hasCongratulated=!0)}this.calendarService.updateEventCalendarEvents(s)})}getParticipants(s,r,l){let E=`${this.scope.apiEndpoint}eventcalendar/${s}/participants?page=${r}`;return l&&l>0&&(E+=`&elementsPerPage=${l}`),this.http.get(E).toPromise()}invalidateEvents(){return(0,gs._)(this.http.post(`${this.scope.apiEndpoint}/eventcalendar/invalidate`,{}))}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(Se.A),m.KVO(Xv))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const bb=["listHost"];function Yv(o,t){1&o&&e.nrm(0,"div",7)}function GE(o,t){if(1&o&&(e.j41(0,"div",8)(1,"div",9),e.EFF(2),e.k0s(),e.nrm(3,"i",10),e.k0s()),2&o){const n=e.XpG().$implicit;e.R7$(2),e.JRh(n.title)}}function gT(o,t){if(1&o&&(e.j41(0,"div",9),e.EFF(1),e.k0s()),2&o){const n=e.XpG().$implicit;e.R7$(),e.JRh(n.title)}}function ph(o,t){if(1&o&&(e.j41(0,"div",9),e.EFF(1),e.k0s()),2&o){const n=e.XpG().$implicit;e.R7$(),e.JRh(n.title)}}function xb(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,Yv,1,0,"div",7)(2,GE,4,1,"div",8)(3,gT,2,1,"div",9)(4,ph,2,1,"div",9),e.k0s()),2&o){let n;const s=t.$implicit;e.R7$(),e.vxM("user"===(n=s.key)?1:"lang"===n?2:"shipment"===n?3:"author"===n?4:-1)}}function t_(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",12)(1,"dx-select-box",13),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.selectedLanguage,r)||(l.selectedLanguage=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.setLanguage(r))}),e.k0s(),e.j41(2,"dx-button",14),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.switchLanguage())}),e.k0s(),e.j41(3,"span",15),e.nrm(4,"dx-load-indicator",16),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_article_translation_languageSelectBox_placeholder")))("items",n.multiLanguageSystemLanguages)("focusStateEnabled",!0),e.R50("value",n.selectedLanguage),e.R7$(),e.Y8G("visible",!n.swapLanguage),e.R7$(2),e.Y8G("visible",n.swapLanguage)}}function Eb(o,t){if(1&o&&(e.j41(0,"span"),e.nrm(1,"i",21),e.k0s()),2&o){const n=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngClass",n.icon)}}function Gp(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",20),e.bIt("click",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.clickLogout())})("keydown.enter",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.clickLogout())})("keydown.space",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.clickLogout())}),e.j41(1,"span"),e.EFF(2),e.k0s(),e.nVh(3,Eb,2,1,"span"),e.k0s()}if(2&o){const n=e.XpG(2).$implicit;e.R7$(2),e.JRh(n.text),e.R7$(),e.vxM(n.icon?3:-1)}}function n_(o,t){if(1&o&&(e.j41(0,"span"),e.nrm(1,"i",21),e.k0s()),2&o){const n=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngClass",n.icon)}}function Qv(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",22),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.createArticle())})("keydown.space",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.createArticle())}),e.j41(1,"span"),e.EFF(2),e.k0s(),e.nVh(3,n_,2,1,"span"),e.k0s()}if(2&o){const n=e.XpG(2).$implicit;e.R7$(2),e.JRh(n.text),e.R7$(),e.vxM(n.icon?3:-1)}}function Zv(o,t){if(1&o&&(e.j41(0,"span"),e.nrm(1,"i",21),e.k0s()),2&o){const n=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngClass",n.icon)}}function Jv(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",22),e.bIt("keydown.enter",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.createEvent())})("keydown.space",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.createEvent())}),e.j41(1,"span"),e.EFF(2),e.k0s(),e.nVh(3,Zv,2,1,"span"),e.k0s()}if(2&o){const n=e.XpG(2).$implicit;e.R7$(2),e.JRh(n.text),e.R7$(),e.vxM(n.icon?3:-1)}}function WE(o,t){if(1&o&&(e.j41(0,"span"),e.nrm(1,"i",24),e.k0s()),2&o){const n=e.XpG(3).$implicit,s=e.XpG(2);e.R7$(),e.HbH(e.VkB("ml-1 ","notifications"==n.type&&s.notificationService.unClickedMessage?"notification-status-dot":"")),e.Y8G("ngClass",n.icon)}}function p1(o,t){if(1&o){const n=e.RV6();e.j41(0,"a",23),e.bIt("click",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.onItemClick())}),e.j41(1,"span"),e.EFF(2),e.k0s(),e.nVh(3,WE,2,4,"span"),e.k0s()}if(2&o){const n=e.XpG(2).$implicit;e.Y8G("href",n.path,e.B4B),e.R7$(2),e.JRh(n.text),e.R7$(),e.vxM(n.icon?3:-1)}}function $a(o,t){if(1&o&&e.nVh(0,Gp,4,2,"div",17)(1,Qv,4,2,"div",18)(2,Jv,4,2,"div",18)(3,p1,4,3,"a",19),2&o){let n;const s=e.XpG().$implicit;e.vxM("logout"===(n=s.type)?0:"newArticle"===n?1:"newEvent"===n?2:3)}}function i_(o,t){if(1&o&&(e.j41(0,"div",11),e.nVh(1,t_,5,7,"div",12)(2,$a,4,1),e.k0s()),2&o){const n=t.$implicit;e.BMQ("data-type",n.type||"")("data-path",n.path||""),e.R7$(),e.vxM("langControls"===n.type?1:2)}}function Ob(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",3,0),e.bIt("keydown.enter",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onListActivateFromKeyboard(r))})("keydown.space",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onListActivateFromKeyboard(r))}),e.j41(2,"dx-list",4),e.bIt("onItemClick",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onDxItemClick(r))}),e.DNE(3,xb,5,1,"div",5)(4,i_,3,3,"div",6),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(2),e.Y8G("dataSource",n.superList)("grouped",!0)("focusStateEnabled",!0)("activeStateEnabled",!0)("hoverStateEnabled",!0)("collapsibleGroups",!1),e.R7$(),e.Y8G("dxTemplateOf","group"),e.R7$(),e.Y8G("dxTemplateOf","item")}}let ra=(()=>{var o;class t{constructor(s,r,l,E,N,ae,ze,dt,Kt,Vn,ci,Vi){this.scopeService=s,this.navigationUserMenuService=r,this.authService=l,this.deviceService=E,this.oculus=N,this.hybridRoutingService=ae,this.localStorageService=ze,this.articleService=dt,this.eventCalendarService=Kt,this.translationService=Vn,this.profileService=ci,this.notificationService=Vi,this.scope=this.scopeService.getScope(),this.legacyLanguageSystemEnabled=!1,this.legacyLanguageSystemLanguages=[],this.multiLanguageSystemEnabled=!1,this.multiLanguageSystemLanguages=[],this.swapLanguage=!1,this.selectedLanguage="",this.isApp=!1,this.superList=[],this.closeDrawerEvent=new e.bkB,this.clickLogout=()=>{this.authService.logout().then(()=>{this.logout()})},this.createArticle=()=>{this.articleService.createArticle().then(Di=>{window.location.href=this.scope.currentChapter.path+`${Di.path}/edit`})},this.createEvent=()=>{this.eventCalendarService.createEvent().then(Di=>{window.location.href=this.scope.currentChapter.path+"/events/"+Di+"/edit"})},this.setLanguage=Di=>{this.selectedLanguage=Di.value},this.switchLanguage=()=>{const Di=this.selectedLanguage;if(this.multiLanguageSystemEnabled){this.swapLanguage=!0;const Eo=this.multiLanguageSystemLanguages.find(uo=>uo.vendorLanguageCode==Di);this.user.activeUserLanguage=Eo,this.profileService.updateProfile(this.user).then(()=>window.location.reload())}},this.privateLogOut=()=>{const Di=this.scope.currentChapter.closed;this.oculus.navigate(""),Di?window.location.href="/"!==this.scope.currentChapter.path?this.scope.currentChapter.path+"/login":"/login":(null!==this.scope.currentScope.network.settings.sharedAppLogoutUrl&&(window.location.href=this.scope.currentScope.network.settings.sharedAppLogoutUrl),this.isApp?window.location.href="/":this.hybridRoutingService.switchState("app.main-login",null))},this.logout=()=>{this.localStorageService.getItem("oculusOptOut")?this.privateLogOut():this.oculus.push(!1,this.privateLogOut)},this.onListActivateFromKeyboard=Di=>{const Eo=Di.target;if(Eo&&(Eo.closest("a[href]")||Eo.closest('button, [role="button"]')||Eo.closest('input, textarea, select, [contenteditable="true"]')||Eo.closest(".dx-selectbox")||Eo.closest(".dx-button")))return;Di.preventDefault();const Jo=this.listHost?.nativeElement;if(!Jo)return;const Qo=Jo.querySelector(".dx-state-focused")?.closest(".dx-list-item")??null;if(!Qo)return;const Ts=Qo.querySelector(".user-menu-item");if(!Ts)return;const _a=(Ts.getAttribute("data-type")||"").toString(),wa=(Ts.getAttribute("data-path")||"").toString();if("langControls"===_a)return;if("logout"===_a)return this.clickLogout();if("newArticle"===_a)return this.createArticle();if("newEvent"===_a)return this.createEvent();const ll=Ts.querySelector("a[href]");if(ll)return this.onItemClick(),void ll.click();wa&&(this.onItemClick(),window.location.href=wa)},this.user=this.scope.profile,this.profileServiceSubscription=this.profileService.profileChanged$.subscribe(Di=>{this.user=Di,this.rebuildSuperList()}),this.navigationUserMenuServiceSubscription=this.navigationUserMenuService.mainMenu$.subscribe(Di=>{this.mainMenu=Di,this.rebuildSuperList()})}ngOnInit(){if(this.isApp=this.deviceService.getUserAgentInfo().isApp,this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled){this.multiLanguageSystemEnabled=!0;const s=this.scope.network.settings.languagePack.split("-")[0],r=this.scope.network.getResourceOrKeyName("web_translation_use_original");this.multiLanguageSystemLanguages.push({vendorLanguageCode:s,nativeName:r}),this.translationService.getAvailableTargetLanguages().then(l=>{Object.entries(l).forEach(([E,N])=>{this.multiLanguageSystemLanguages.push({vendorLanguageCode:E,nativeName:N})}),this.selectedLanguage=this.user?.activeUserLanguage?.vendorLanguageCode??this.multiLanguageSystemLanguages[0]?.vendorLanguageCode??"",this.rebuildSuperList()})}else this.rebuildSuperList()}ngAfterViewInit(){this.applyEmptyTargetToAnchors(),this.observeAnchorTargets()}ngOnDestroy(){this.profileServiceSubscription.unsubscribe(),this.navigationUserMenuServiceSubscription.unsubscribe(),this.anchorObserver?.disconnect()}onItemClick(){this.closeDrawerEvent.emit()}onDxItemClick(s){const r=s?.itemData,l=s?.event?.target;if(!l||!l.closest(".dx-selectbox, .dx-button")){if(l){const E=l.closest("a");if(E)return E.setAttribute("target",""),void this.onItemClick()}if(s?.itemElement){const ae=s.itemElement.querySelector(".user-menu-item")?.querySelector("a[href]");if(ae)return this.onItemClick(),void ae.click()}if("langControls"!==r?.type)switch(r?.type){case"logout":return this.clickLogout();case"newArticle":return this.createArticle();case"newEvent":return this.createEvent();default:r?.path&&(this.onItemClick(),window.location.href=r.path)}}}rebuildSuperList(){const s=[];if(this.mainMenu?.userMenu?.length&&s.push({key:"user",title:"",items:this.mainMenu.userMenu}),(this.legacyLanguageSystemEnabled||this.multiLanguageSystemEnabled)&&this.user?.hasChapterAccess){const r=[];this.multiLanguageSystemEnabled&&this.multiLanguageSystemLanguages.length>0&&r.push({type:"langControls"}),r.length&&s.push({key:"lang",title:this.scope.network.getResourceOrKeyName("web_root_language"),items:r})}this.mainMenu?.shipmentMenu?.length>0&&s.push({key:"shipment",title:this.scope.network.getResourceOrKeyName("web_root_user_menu_shipment_dashboard"),items:this.mainMenu.shipmentMenu}),this.mainMenu?.authorMenu?.length>0&&s.push({key:"author",title:this.scope.network.getResourceOrKeyName("web_common_authors"),items:this.mainMenu.authorMenu}),this.superList=s,queueMicrotask(()=>this.applyEmptyTargetToAnchors())}applyEmptyTargetToAnchors(){this.listHost?.nativeElement&&this.listHost.nativeElement.querySelectorAll("a").forEach(r=>{r.setAttribute("target","")})}observeAnchorTargets(){this.listHost?.nativeElement&&(this.anchorObserver=new MutationObserver(()=>this.applyEmptyTargetToAnchors()),this.anchorObserver.observe(this.listHost.nativeElement,{childList:!0,subtree:!0}))}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(e_),e.rXU(Da.u),e.rXU(Ce.E),e.rXU(ga),e.rXU(Ko.o),e.rXU(Wi),e.rXU(id),e.rXU(Ld),e.rXU(Bn.M),e.rXU($n.p),e.rXU(Fd.J))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-user-menu-content"]],viewQuery:function(r,l){if(1&r&&e.GBs(bb,7),2&r){let E;e.mGM(E=e.lsd())&&(l.listHost=E.first)}},outputs:{closeDrawerEvent:"closeDrawerEvent"},standalone:!1,decls:3,vars:2,consts:[["listHost",""],[1,"user-menu-content-base"],["role","region",1,"user-menu-content-menu"],[3,"keydown.enter","keydown.space"],[1,"panel-list",3,"onItemClick","dataSource","grouped","focusStateEnabled","activeStateEnabled","hoverStateEnabled","collapsibleGroups"],[4,"dxTemplate","dxTemplateOf"],["class","user-menu-item",4,"dxTemplate","dxTemplateOf"],["aria-hidden","true",1,"sr-only"],[1,"headlines-container"],["role","presentation",1,"headlines"],["aria-hidden","true",1,"fa-solid","fa-language"],[1,"user-menu-item"],[1,"multiLanguageSystem-container"],["displayExpr","nativeName","valueExpr","vendorLanguageCode","stylingMode","underlined","width","80%",1,"ml-1",3,"valueChange","onValueChanged","placeholder","items","focusStateEnabled","value"],["icon","login","stylingMode","text",3,"onClick","visible"],[1,"mt-2"],["id","small-indicator","height","20","width","20","aria-hidden","true",3,"visible"],["role","button","tabindex","0"],["role","button","tabindex","0",1,"focus-class"],[1,"",3,"href"],["role","button","tabindex","0",3,"click","keydown.enter","keydown.space"],["aria-hidden","true",1,"ml-1",3,"ngClass"],["role","button","tabindex","0",1,"focus-class",3,"keydown.enter","keydown.space"],[1,"",3,"click","href"],["aria-hidden","true",3,"ngClass"]],template:function(r,l){1&r&&(e.j41(0,"div",1)(1,"div",2),e.nVh(2,Ob,5,8,"div"),e.k0s()()),2&r&&(e.R7$(),e.BMQ("aria-label",l.scope.network.getResourceOrKeyName("web_navigation_user_menu_aria")),e.R7$(),e.vxM(l.mainMenu?2:-1))},dependencies:[C.YU,Et.eC,Gn.e,Pf.a,Wn.B,is.l,Ft.B],styles:['.user-menu-content-base[_ngcontent-%COMP%]   .user-menu-item[_ngcontent-%COMP%]{font-size:1rem;color:var(--textColor);font-family:var(--fontPrimary)}.user-menu-content-base[_ngcontent-%COMP%]   .user-menu-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;font-size:inherit;color:inherit;font-family:inherit}.user-menu-content-base[_ngcontent-%COMP%]   .user-menu-item[_ngcontent-%COMP%]   .notification-status-dot[_ngcontent-%COMP%]:after{content:"";width:8px;background-color:var(--colorPrimary);border-radius:50%;position:relative;display:inline-block;top:-.5rem;left:-.5rem;aspect-ratio:1/1;box-shadow:0 0 2px #0003}.user-menu-content-base[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px}.user-menu-content-base[_ngcontent-%COMP%]   .multiLanguageSystem-container[_ngcontent-%COMP%]{display:flex}.user-menu-content-base[_ngcontent-%COMP%]   .headlines-container[_ngcontent-%COMP%]{display:flex;align-items:center}.user-menu-content-base[_ngcontent-%COMP%]   .headlines-container[_ngcontent-%COMP%]   .fa-language[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1rem;color:var(--textColor)}.user-menu-content-base[_ngcontent-%COMP%]   .focus-class[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--textColor);outline-offset:3px;border-radius:3px}.user-menu-content-base[_ngcontent-%COMP%]     .dx-list-item.dx-state-hover{outline-offset:-1px}.user-menu-content-base[_ngcontent-%COMP%]     .dx-list-item.dx-state-focused{outline-offset:-1px}.user-menu-content-base[_ngcontent-%COMP%]     .dx-list-group-body{padding-left:14px}  .dx-list-group:not(.dx-list-group-collapsed):not(:last-child){border-bottom:.0625rem solid var(--light-gray);padding-bottom:6px;padding-top:2px}.user-menu-content-base[_ngcontent-%COMP%]   .headlines[_ngcontent-%COMP%]{font-size:1rem;color:var(--textColor)}']}))}return o(),t})(),Uf=(()=>{var o;class t{constructor(s){this.scopeService=s,this.scope=this.scopeService.getScope()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-user-menu-unregistered-content"]],standalone:!1,decls:4,vars:1,consts:[[1,"user-menu-unregistered-content-base"],[1,"user-menu-unregistered-content-text"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nrm(1,"hr"),e.j41(2,"div",1),e.EFF(3),e.k0s()()),2&r&&(e.R7$(3),e.SpI(" ",l.scope.network.getResourceOrKeyName("web_user_side_menu_unregistered_text")," "))},styles:[".user-menu-unregistered-content-base[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px}.user-menu-unregistered-content-base[_ngcontent-%COMP%]   .user-menu-unregistered-content-text[_ngcontent-%COMP%]{margin-top:2rem;font-size:1rem;color:var(--textColor);margin-left:1rem}"]}))}return o(),t})();var jf=p(7236);let $g=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.profileService=r,this.translationService=l,this.containersSubject=new Rt.m,this.containersSubject$=this.containersSubject.asObservable(),this.createTarget=E=>{let N=this.checkForInternalLink(E.url);return E.url.match(/^https?:\/\//)&&!E.url.startsWith("/")&&!N||-1!==E.url.indexOf("/pdf/")||-1!==E.url.indexOf("/document/")||-1!==E.url.indexOf("/file/")?"_blank":N&&this.isNetworkChapterLink(E.url)?"_self":""},this.scope=this.scopeService.getScope(),this.user=this.profileService.profile,this.profileService.profileChanged$.subscribe(E=>{this.user=E,this.containersSubject.next(this.prepairMenu(this.scope.currentChapter.containers).concat(this.prepairMenu(this.scope.network.containers)))})}prepairMenu(s){const r=[];return s.forEach(l=>{if(null!=l.roleId&&this.user.chapterRoles?.includes(l.roleId)||null==l.roleId){const E={id:l.id,text:l.name,position:l.position,mainItem:l.mainItem,items:[]};E.text&&this.translationService.translateByUserLanguageCode([E.text]).then(N=>{E.text=N[0].translation}),l.items.forEach(N=>{const ae=this.mapItem(N);ae&&E.items.push(ae)}),E.items?.sort((N,ae)=>N.position-ae.position),r.push(E)}}),r.sort((l,E)=>l.position-E.position),r}checkForInternalLink(s){try{return new URL(s,document.baseURI).hostname===window.location.hostname||s.includes(this.scope.currentScope.network.domain)}catch{return!1}}isNetworkChapterLink(s){let r=this.scope.currentChapter.path,l=this.scope.network.domain;if(!s.startsWith("https://"+l)&&!s.startsWith("https://localhost:44308/"+l))return!1;let N="/"+s.substring(s.indexOf(l)).split("/")[1],ae=this.scope.network.chapters.find(dt=>dt.path==N||dt.path==`/${l}${N}`),ze="";return ae&&(ze=ae.path),r!=ze&&r!=`/${l}${ze}`}replaceInternalAbsolutLink(s){if(this.isNetworkChapterLink(s))return s;const E=s.replace(new RegExp(`^(?:https?:)?//(?:www\\.)?${this.scope.network.domain}(?::\\d+)?`,"i"),"");return E===s?s:E?E.startsWith("/")?E:"/"+E:"/"}mapItem(s){const r={id:s.id,text:s.name,url:this.replaceInternalAbsolutLink(s.url),position:s.position,staticArticlePath:s.staticArticlePath,mainItem:s.mainItem,items:[],target:this.createTarget(s)};return r.text&&this.translationService.translateByUserLanguageCode([r.text]).then(l=>{r.text=l[0].translation}),s.items&&s.items.length>0&&s.items.forEach(l=>{const E=this.mapItem(l);E&&r.items.push(E)}),r.items.sort((l,E)=>l.position-E.position),r}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Se.A),m.KVO($n.p),m.KVO(Bn.M))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();var o_=p(471);const qv=o=>({"aria-keyshortcuts":o});function fT(o,t){if(1&o){const n=e.RV6();e.j41(0,"a",7),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.onItemClick())}),e.nrm(1,"span",8),e.k0s()}if(2&o){const n=e.XpG().$implicit;e.Y8G("href",n.url,e.B4B)("target",n.target),e.BMQ("aria-label",n.accessibleName),e.R7$(),e.Y8G("innerHTML",n.text,e.npT)}}function wb(o,t){if(1&o){const n=e.RV6();e.j41(0,"a",9),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.onItemClick())}),e.nrm(1,"span",8),e.k0s()}if(2&o){const n=e.XpG().$implicit,s=e.XpG();e.Y8G("href",s.scope.currentScope.chapter.path+n.staticArticlePath,e.B4B)("target",n.target),e.BMQ("aria-label",n.accessibleName),e.R7$(),e.Y8G("innerHTML",n.text,e.npT)}}function Ug(o,t){if(1&o&&(e.j41(0,"div",6),e.nrm(1,"span",8),e.k0s()),2&o){const n=e.XpG().$implicit;e.BMQ("aria-label",n.accessibleName),e.R7$(),e.Y8G("innerHTML",n.text,e.npT)}}function mT(o,t){if(1&o&&(e.j41(0,"div",6),e.nrm(1,"span",8),e.k0s()),2&o){const n=e.XpG().$implicit;e.BMQ("aria-label",n.accessibleName),e.R7$(),e.Y8G("innerHTML",n.text,e.npT)}}function Gf(o,t){if(1&o&&(e.j41(0,"div",3),e.nVh(1,fT,2,4,"a",4),e.nVh(2,wb,2,4,"a",5),e.nVh(3,Ug,2,2,"div",6),e.nVh(4,mT,2,2,"div",6),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.vxM(n.url&&!n.mainItem?1:-1),e.R7$(),e.vxM(n.staticArticlePath?2:-1),e.R7$(),e.vxM(n.mainItem?3:-1),e.R7$(),e.vxM(n.url||n.staticArticlePath?-1:4)}}let _T=(()=>{var o;class t{constructor(s,r,l,E){this.scopeService=s,this.navigationContainerService=r,this.hybridRoutingService=l,this.deviceInfoService=E,this.containers=[],this.isIos=!1,this.closeDrawerEvent=new e.bkB,this.onItemClick=()=>{this.closeDrawerEvent.emit()},this.scope=this.scopeService.getScope(),this.isIos=this.deviceInfoService.getUserAgentInfo().isIos||this.deviceInfoService.getUserAgentInfo().isSafari,this.navigationContainerServiceSubscription=this.navigationContainerService.containersSubject$.pipe((0,jf.M)(N=>this.addAccessibleNames(N))).subscribe(N=>this.containers=N)}ngOnDestroy(){this.navigationContainerServiceSubscription.unsubscribe()}openUrl(s){if(s.url)switch(s.url){case"/"+this.scope.currentChapter.regEx+"/feedback":this.onItemClick(),this.hybridRoutingService.switchState("app.feedback",null);break;case"/"+this.scope.currentChapter.regEx+"/authors":this.onItemClick(),this.hybridRoutingService.switchState("app.authors",null);break;case"/"+this.scope.currentChapter.regEx+"/events":this.onItemClick(),this.hybridRoutingService.switchState("app.eventCalendar",null);break;default:window.location.href=s.url}else if(s.staticArticlePath){let r=this.scope.staticArticles.find(l=>l.path==s.staticArticlePath)?.id;r?(this.onItemClick(),this.hybridRoutingService.switchState("app.staticArticles_"+r,null)):window.location.href=this.scope.currentChapter.path+s.staticArticlePath}}addAccessibleNames(s,r=[]){s.forEach(l=>{l.accessibleName=[...r,l.text].join(" \u203a "),l.items&&l.items.length&&this.addAccessibleNames(l.items,[...r,l.text])})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU($g),e.rXU(Ko.o),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-navigation-menu-content"]],outputs:{closeDrawerEvent:"closeDrawerEvent"},standalone:!1,decls:4,vars:9,consts:[["role","region",1,"container-menu-content-base"],["displayExpr","text","keyExpr","id","expandEvent","click",3,"items","dataStructure","expandAllEnabled","tabindex","elementAttr"],["class","container-menu-item",4,"dxTemplate","dxTemplateOf"],[1,"container-menu-item"],[1,"anchor-click",3,"href","target"],[3,"href","target"],[1,"container-main-menu-item"],[1,"anchor-click",3,"click","href","target"],[3,"innerHTML"],[3,"click","href","target"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"dx-tree-view",1),e.EFF(2,"> "),e.DNE(3,Gf,5,4,"div",2),e.k0s()()),2&r&&(e.BMQ("aria-label",l.scope.network.getResourceOrKeyName("web_navigation_container_sidebar_aria")),e.R7$(),e.Y8G("items",l.containers)("dataStructure","tree")("expandAllEnabled",!0)("tabindex",0)("elementAttr",e.eq3(7,qv,l.isIos?"Shift+ArrowUp Shift+ArrowDown":"")),e.R7$(2),e.Y8G("dxTemplateOf","item"))},dependencies:[Et.eC,o_.t,Ft.B],styles:[".container-menu-content-base[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor)}.container-menu-content-base[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline;outline:none;border:none}.container-menu-content-base[_ngcontent-%COMP%]   .anchor-click[_ngcontent-%COMP%]{margin:-12px;display:block;text-wrap:nowrap;padding:12px 12px 12px 41px}.container-menu-content-base[_ngcontent-%COMP%]   .anchor-click[_ngcontent-%COMP%]:hover{text-decoration:underline;outline:none;border:none}.container-menu-content-base[_ngcontent-%COMP%]   .anchor-click[_ngcontent-%COMP%]:focus-visible{outline:1px solid var(--textColor);outline-offset:-2px}.container-menu-content-base[_ngcontent-%COMP%]   .container-menu-item[_ngcontent-%COMP%]{font-size:1rem;color:var(--textColor);font-family:var(--fontPrimary)}.container-menu-content-base[_ngcontent-%COMP%]   .container-menu-item[_ngcontent-%COMP%]:hover{text-decoration:underline}.container-menu-content-base[_ngcontent-%COMP%]   .container-main-menu-item[_ngcontent-%COMP%]{font-weight:700}  .dx-treeview-item:has(.anchor-click)>.dx-treeview-expander-icon-stub{display:none}  .dx-treeview-item.dx-state-hover{outline:none!important;background-color:transparent!important}  ul.dx-treeview-node-container.dx-treeview-node-container-opened{background-color:var(--textColor10)}  ul.dx-treeview-node-container.dx-treeview-node-container-opened ul.dx-treeview-node-container.dx-treeview-node-container-opened{background-color:transparent}  .dx-treeview-node:has(>ul.dx-treeview-node-container.dx-treeview-node-container-opened)>.dx-treeview-item{background-color:var(--textColor10)!important;margin:0}  ul.dx-treeview-node-container.dx-treeview-node-container-opened .dx-treeview-node:has(>ul.dx-treeview-node-container.dx-treeview-node-container-opened)>.dx-treeview-item{background-color:transparent!important}  .dx-treeview-node.dx-state-focused{outline:2px solid var(--textColor)!important;outline-offset:-3px!important;border-radius:3px!important}  .dx-treeview.dx-state-focused{outline:none}  .dx-treeview-item-without-checkbox.dx-state-focused>.dx-treeview-item{background-color:transparent}"]}))}return o(),t})();function zE(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",7)(1,"app-user-badge-simple",18),e.bIt("closeDrawerEvent",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.closeDrawer())}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("user",n.user)("author",!1)}}function s_(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",8)(1,"span",19),e.nrm(2,"i",20),e.k0s(),e.j41(3,"dx-button",21),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.unregisteredLogin())}),e.k0s()()}if(2&o){const n=e.XpG();e.BMQ("aria-label","Profile area"),e.R7$(3),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_common_signIn"))}}function eC(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"app-user-menu-content",17),e.bIt("closeDrawerEvent",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.closeDrawer())}),e.k0s()()}}function KE(o,t){1&o&&(e.j41(0,"div"),e.nrm(1,"app-user-menu-unregistered-content"),e.k0s())}let XE=(()=>{var o;class t{constructor(s,r,l,E,N){this.navigationService=s,this.el=r,this.scopeService=l,this.profileService=E,this.hypridRoutingService=N,this.offcanvasRight=null,this.offcanvasLeft=null,this.closeDrawer=()=>{this.offcanvasRight.hide(),this.navigationService.toggleUserMenuState.set(!1)},this.closeLeftDrawer=()=>{this.offcanvasLeft.hide()},this.unregisteredLogin=()=>{this.offcanvasRight.hide(),this.navigationService.toggleUserMenuState.set(!1),this.hypridRoutingService.switchState("app.main-login",null)},(0,dc.QZ)(()=>{const ae=this.el.nativeElement.querySelector("#offcanvasRight");ae&&this.navigationService.toggleUserMenuState()?(this.offcanvasRight||(this.offcanvasRight=new Xm.Offcanvas(ae),ae.addEventListener("hidden.bs.offcanvas",()=>{this.navigationService.toggleUserMenuState.set(!1)})),this.offcanvasRight.show()):this.offcanvasRight&&this.offcanvasRight.hide();const ze=this.el.nativeElement.querySelector("#offcanvasLeft");ze&&this.navigationService.toggleContainerMenuState()?(this.offcanvasLeft||(this.offcanvasLeft=new Xm.Offcanvas(ze),ze.addEventListener("hidden.bs.offcanvas",()=>{this.navigationService.toggleContainerMenuState.set(!1)})),this.offcanvasLeft.show()):this.offcanvasLeft&&this.offcanvasLeft.hide()}),this.scope=this.scopeService.getScope(),this.user=this.scope.profile,this.profileServiceSubscription=this.profileService.profileChanged$.subscribe(ae=>this.user=ae)}ngOnDestroy(){this.profileServiceSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Rg.o),e.rXU(e.aKT),e.rXU(Se.A),e.rXU($n.p),e.rXU(Ko.o))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-user-menu"]],standalone:!1,decls:25,vars:10,consts:[[1,"user-menu-drawer-wrapper"],["tabindex","-1","id","offcanvasRight","aria-labelledby","offcanvasRightLabel",1,"offcanvas","offcanvas-end"],[1,"offcanvas-header","row","pr-0"],[1,""],[1,"user-menu-close-icon"],["role","button","tabindex","0",1,"dx-icon-remove","close-icon",3,"click","keydown.enter","keydown.space"],[1,"row"],[1,"user-menu-content-avatar"],["role","group",1,"user-menu--unregistered-content-avatar"],[1,"offcanvas-body"],[1,"container-menu-drawer-wrapper"],["tabindex","-1","id","offcanvasLeft","aria-labelledby","offcanvasLeftLabel",1,"offcanvas","offcanvas-start"],[1,"offcanvas-header","d-flex","flex-column","align-items-start"],[1,"user-menu-close-icon-container"],["id","offcanvasLeftLabel",1,"offcanvas-home"],[1,"offcanvas-home-link",3,"click","href"],[1,"fa-regular","fa-newspaper"],[3,"closeDrawerEvent"],[3,"closeDrawerEvent","user","author"],["aria-hidden","true",1,"icon-circle"],["aria-hidden","true",1,"fa-regular","fa-user"],[1,"user-menu-login-button",3,"onClick","text"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"i",5),e.bIt("click",function(){return l.closeDrawer()})("keydown.enter",function(){return l.closeDrawer()})("keydown.space",function(){return l.closeDrawer()}),e.k0s()()(),e.j41(6,"div",6),e.nVh(7,zE,2,2,"div",7),e.nVh(8,s_,4,2,"div",8),e.k0s()(),e.j41(9,"div",9),e.nVh(10,eC,2,0,"div"),e.nVh(11,KE,2,0,"div"),e.k0s()()(),e.j41(12,"div",10)(13,"div",11)(14,"div",12)(15,"div",13)(16,"div",4)(17,"i",5),e.bIt("click",function(){return l.closeLeftDrawer()})("keydown.enter",function(){return l.closeLeftDrawer()})("keydown.space",function(){return l.closeLeftDrawer()}),e.k0s()()(),e.j41(18,"div",14)(19,"a",15),e.bIt("click",function(){return l.closeLeftDrawer()}),e.nrm(20,"i",16),e.EFF(21),e.k0s()()(),e.j41(22,"div",9)(23,"div")(24,"app-navigation-menu-content",17),e.bIt("closeDrawerEvent",function(){return l.closeLeftDrawer()}),e.k0s()()()()()),2&r&&(e.R7$(5),e.BMQ("aria-label",l.scope.network.getResourceOrKeyName("web_navigation_header_close_user_menu_aria"))("title",l.scope.network.getResourceOrKeyName("web_navigation_header_close_user_menu_aria")),e.R7$(2),e.vxM(l.user.isRegistered?7:-1),e.R7$(),e.vxM(l.user.isRegistered?-1:8),e.R7$(2),e.vxM(l.user.isRegistered?10:-1),e.R7$(),e.vxM(l.user.isRegistered?-1:11),e.R7$(6),e.BMQ("aria-label",l.scope.network.getResourceOrKeyName("web_navigation_header_close_user_menu_aria"))("title",l.scope.network.getResourceOrKeyName("web_navigation_header_close_user_menu_aria")),e.R7$(2),e.Y8G("href",l.scope.currentChapter.path,e.B4B),e.R7$(2),e.SpI(" ",l.scope.currentScope.network.getResourceOrKeyName("web_common_home")," "))},dependencies:[Gn.e,cu,Ft.B,ra,Uf,_T],styles:[".user-menu-drawer-wrapper[_ngcontent-%COMP%]   #offcanvasRight[_ngcontent-%COMP%]{border-left:solid 6px var(--colorPrimary);width:auto;background-color:var(--backgroundColor);z-index:1045;max-width:25vw}.user-menu-close-icon[_ngcontent-%COMP%]{display:flex;justify-content:end;align-items:center}.user-menu-close-icon[_ngcontent-%COMP%]   .dx-icon-remove[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700;color:var(--textColor)}.user-menu-close-icon[_ngcontent-%COMP%]   .dx-icon-remove[_ngcontent-%COMP%]:hover, .user-menu-close-icon[_ngcontent-%COMP%]   .dx-icon-remove[_ngcontent-%COMP%]   focus-visible[_ngcontent-%COMP%]{outline:2px solid var(--textColor);border-radius:3px}.container-menu-drawer-wrapper[_ngcontent-%COMP%]   #offcanvasLeft[_ngcontent-%COMP%]{border-right:solid 6px var(--colorPrimary);width:auto;background-color:var(--backgroundColor);z-index:1045}.container-menu-drawer-wrapper[_ngcontent-%COMP%]   .offcanvas-home-link[_ngcontent-%COMP%]{font-size:1.1rem;text-decoration:none;color:var(--textColor);font-weight:700}.container-menu-drawer-wrapper[_ngcontent-%COMP%]   .offcanvas-header[_ngcontent-%COMP%]{padding-bottom:0}.container-menu-drawer-wrapper[_ngcontent-%COMP%]   .offcanvas-body[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.container-menu-drawer-wrapper[_ngcontent-%COMP%]   .user-menu-close-icon-container[_ngcontent-%COMP%]{margin-bottom:16px}.user-menu--unregistered-content-avatar[_ngcontent-%COMP%]{align-items:center;display:flex;margin-top:15%;gap:2rem}.user-menu--unregistered-content-avatar[_ngcontent-%COMP%]   .icon-circle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:3rem;height:3rem;border-radius:50%;background-color:var(--backgroundColor);border:2px solid var(--textColor60);color:var(--textColor)}.user-menu--unregistered-content-avatar[_ngcontent-%COMP%]   .icon-circle[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:2rem}.user-menu--unregistered-content-avatar[_ngcontent-%COMP%]   .user-menu-login-button[_ngcontent-%COMP%]{scale:1.5;color:var(--textColor);margin-left:.5rem}@media (max-width: 768px){.user-menu-drawer-wrapper[_ngcontent-%COMP%]   #offcanvasRight[_ngcontent-%COMP%]{max-width:80vw}}"]}))}return o(),t})(),Sb=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.http=r,this.sponsoredArticles=null,this.scope=s.getScope()}getSponsoredArticles(){return this.sponsoredArticles?Promise.resolve(this.sponsoredArticles):this.http.get(this.scope.apiEndpoint+"sponsoredArticles").toPromise().then(s=>(this.sponsoredArticles=s,s))}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Se.A),m.KVO(ke.Qq))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();function r_(o,t){if(1&o&&(e.j41(0,"div",4)(1,"div"),e.nrm(2,"app-displayable-shipment-with-image",5),e.k0s()()),2&o){const n=t.$implicit;e.R7$(2),e.Y8G("data",n)}}let Wf=(()=>{var o;class t{constructor(s,r){this.sponsoredArticleListService=s,this.scopeService=r,this.displayedArticles=[],this.scope=this.scopeService.getScope()}ngOnInit(){this.sponsoredArticleListService.getSponsoredArticles().then(s=>{this.displayedArticles=s})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Sb),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-sponsored-article-list"]],standalone:!1,decls:7,vars:1,consts:[[1,"container","sponsored-article-list-wrapper"],[1,"row","sponsored-article-list-title-wrapper"],[1,"sponsored-article-list-title"],[1,"row","sponsored-article-displayables-container"],[1,"sponsored-article-displayables-wrapper"],[3,"data"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.EFF(3),e.k0s()(),e.j41(4,"div",3),e.Z7z(5,r_,3,1,"div",4,e.fX1),e.k0s()()),2&r&&(e.R7$(3),e.SpI(" ",l.scope.network.getResourceOrKeyName("web_sponsoredArticleMeta_title")," "),e.R7$(2),e.Dyx(l.displayedArticles))},dependencies:[gv],styles:[".sponsored-article-list-wrapper[_ngcontent-%COMP%]{max-width:var(--designContentWidth);width:100%}.sponsored-article-list-title-wrapper[_ngcontent-%COMP%]{justify-content:center;padding:2rem 0}.sponsored-article-list-title[_ngcontent-%COMP%]{color:var(--textColor);text-transform:uppercase;font-size:2rem;font-family:var(--fontTertiary);height:auto;width:auto;border-bottom:1px solid var(--textColor)}@media (min-width: 768px) and (max-width: 992px){.sponsored-article-displayables-container[_ngcontent-%COMP%]{padding:0 15px}}.sponsored-article-displayables-wrapper[_ngcontent-%COMP%]{width:50%;margin-bottom:2rem}@media (max-width: 768px){.sponsored-article-displayables-wrapper[_ngcontent-%COMP%]{width:100%}}"]}))}return o(),t})();function vT(o,t){if(1&o&&(e.j41(0,"div")(1,"span",27),e.EFF(2),e.k0s(),e.nrm(3,"dx-load-indicator",28),e.k0s()),2&o){const n=e.XpG(2);e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_save")),e.R7$(),e.Y8G("visible",n.loadIndicatorVisible)}}function Cu(o,t){if(1&o){const n=e.RV6();e.j41(0,"dxi-item")(1,"dx-button",26),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.signUp())}),e.DNE(2,vT,4,2,"div",25),e.k0s()()}2&o&&(e.R7$(2),e.Y8G("dxTemplateOf","content"))}function YE(o,t){1&o&&e.nrm(0,"dxi-item",24)}function QE(o,t){if(1&o&&(e.j41(0,"p",29),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_authorBilling_basedataDescription")," ")}}function g1(o,t){if(1&o&&(e.j41(0,"p",29),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_authorBilling_basedataInvalid")," ")}}function Db(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,QE,2,1,"p",29),e.nVh(2,g1,2,1,"p",29),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.success?-1:1),e.R7$(),e.vxM(n.success?-1:2)}}function a_(o,t){if(1&o&&(e.j41(0,"div")(1,"p",29),e.EFF(2),e.nrm(3,"br"),e.EFF(4),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.SpI("",n.scope.currentScope.network.resources.web_authorBilling_sendSuccessfulDescription_0," "),e.R7$(2),e.JRh(n.scope.currentScope.network.resources.web_authorBilling_sendSuccessfulDescription_1)}}let Tb=(()=>{var o;class t{constructor(s,r,l){this.profileService=r,this.authorService=l,this.success=!1,this.loadIndicatorVisible=!1,this.scope=s.getScope()}ngOnInit(){this.profileService.getProfile().then(s=>{s.isRegistered||window.location.replace("/"),this.authorService.getAuthor(s.guid).then(r=>{r.billingFirstName&&(this.author.billingfirstname=r.billingFirstName),r.taxNumber&&(this.author.taxnumber=r.taxNumber),r.taxIdNumber&&(this.author.taxidnumber=r.taxIdNumber),r.accountHolder&&(this.author.accountholder=r.accountHolder),r.bic&&(this.author.bic=r.bic),r.tax&&(this.author.tax=r.tax),r.billingLastName&&(this.author.billinglastname=r.billingLastName),r.billingCompanyName&&(this.author.billingcompanyname=r.billingCompanyName),r.address&&(this.author.address=r.address),r.city&&(this.author.city=r.city),r.postalCode&&(this.author.postalcode=r.postalCode),r.imprint&&(this.author.imprint=r.imprint),r.iban&&(this.author.iban=r.iban),r.iban&&(this.author.ibanshow=r.iban.substr(0,7)+r.iban.substr(7).replace(/.(?=.{4,}$)/g,"*")),this.author=r})},s=>{window.location.replace("/")})}validateIBAN(s){const r=s.value;if(!r)return!1;const l=r.replace(/[\s-]/g,"");if(!/^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$/.test(l))return!1;const ae=(l.slice(4)+l.slice(0,4)).split("").map(dt=>dt.match(/[A-Z]/)?(dt.charCodeAt(0)-55).toString():dt).join("");let ze=0;for(let dt=0;dt<ae.length;dt+=9){const Kt=ae.slice(dt,dt+9);ze=Number((BigInt(ze+Kt)%97n).toString())}return 1===ze}signUp(){this.form.instance.validate().isValid&&(this.loadIndicatorVisible=!0,this.authorService.updateAuthorBillingInfo(this.author).then(s=>{this.success=!0,this.loadIndicatorVisible=!1},()=>{this.success=!1,this.loadIndicatorVisible=!1}))}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU($n.p),e.rXU(Ka))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-author-billing-editor"]],viewQuery:function(r,l){if(1&r&&e.GBs(Xi.o,5),2&r){let E;e.mGM(E=e.lsd())&&(l.form=E.first)}},standalone:!1,decls:47,vars:37,consts:[["id","form-container",1,"author-billing-editor-base"],["id","form","labelMode","floating",3,"formDataChange","formData"],["template","instruction"],["itemType","group",3,"colCount","caption"],[3,"text"],["dataField","billingFirstName","editorType","dxTextBox",3,"colSpan"],["type","required",3,"message"],["dataField","billingLastName","editorType","dxTextBox",3,"colSpan"],["dataField","address","editorType","dxTextBox",3,"colSpan"],["dataField","postalCode","editorType","dxTextBox",3,"colSpan"],["dataField","city","editorType","dxTextBox",3,"colSpan"],["dataField","billingCompanyName","editorType","dxTextBox",3,"colSpan"],["itemType","group",3,"caption"],["dataField","taxNumber","editorType","dxTextBox"],["dataField","taxIdNumber","editorType","dxTextBox"],["dataField","tax","editorType","dxSwitch"],["dataField","accountHolder","editorType","dxTextBox"],["dataField","iban","editorType","dxTextBox"],["text","IBAN"],["type","custom",3,"validationCallback","message"],["dataField","bic","editorType","dxTextBox"],["text","BIC"],["type","pattern","pattern","^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$",3,"message"],["dataField","imprint.value","editorType","dxTextArea"],["template","success"],[4,"dxTemplate","dxTemplateOf"],[3,"onClick"],[1,"dx-button-text"],["height","20","width","20","aria-hidden","true",1,"button-indicator",3,"visible"],[1,"instruction"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"dx-form",1),e.mxI("formDataChange",function(N){return e.DH7(l.author,N)||(l.author=N),N}),e.nrm(2,"dxi-item",2),e.j41(3,"dxi-item",3),e.nrm(4,"dxo-label",4),e.j41(5,"dxi-item",5),e.nrm(6,"dxo-label",4)(7,"dxi-validation-rule",6),e.k0s(),e.j41(8,"dxi-item",7),e.nrm(9,"dxo-label",4)(10,"dxi-validation-rule",6),e.k0s(),e.j41(11,"dxi-item",8),e.nrm(12,"dxo-label",4)(13,"dxi-validation-rule",6),e.k0s(),e.j41(14,"dxi-item",9),e.nrm(15,"dxo-label",4)(16,"dxi-validation-rule",6),e.k0s(),e.j41(17,"dxi-item",10),e.nrm(18,"dxo-label",4)(19,"dxi-validation-rule",6),e.k0s(),e.j41(20,"dxi-item",11),e.nrm(21,"dxo-label",4),e.k0s()(),e.j41(22,"dxi-item",12)(23,"dxi-item",13),e.nrm(24,"dxo-label",4),e.k0s(),e.j41(25,"dxi-item",14),e.nrm(26,"dxo-label",4),e.k0s(),e.j41(27,"dxi-item",15),e.nrm(28,"dxo-label",4),e.k0s()(),e.j41(29,"dxi-item",12)(30,"dxi-item",16),e.nrm(31,"dxo-label",4),e.k0s(),e.j41(32,"dxi-item",17),e.nrm(33,"dxo-label",18)(34,"dxi-validation-rule",6)(35,"dxi-validation-rule",19),e.k0s(),e.j41(36,"dxi-item",20),e.nrm(37,"dxo-label",21)(38,"dxi-validation-rule",6)(39,"dxi-validation-rule",22),e.k0s()(),e.j41(40,"dxi-item",12)(41,"dxi-item",23),e.nrm(42,"dxo-label",4),e.k0s()(),e.nVh(43,Cu,3,1,"dxi-item")(44,YE,1,0,"dxi-item",24),e.DNE(45,Db,3,2,"div",25)(46,a_,5,2,"div",25),e.k0s()()),2&r&&(e.R7$(),e.R50("formData",l.author),e.R7$(2),e.Y8G("colCount",4)("caption",l.scope.network.getResourceOrKeyName("web_authorBilling_adressTitle")),e.R7$(),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_authorBilling_adressTitle")),e.R7$(),e.Y8G("colSpan",4),e.R7$(),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_user_firstname")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_user_firstnameError")),e.R7$(),e.Y8G("colSpan",4),e.R7$(),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_user_lastname")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_user_lastnameError")),e.R7$(),e.Y8G("colSpan",4),e.R7$(),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_authorRegister_streetHousenumberPlaceholder")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_authorBilling_adressError")),e.R7$(),e.Y8G("colSpan",1),e.R7$(),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_authorRegister_postalcodePlaceholder")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_authorBilling_postalcodeError")),e.R7$(),e.Y8G("colSpan",3),e.R7$(),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_authorBilling_cityPlaceholder")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_authorBilling_cityError")),e.R7$(),e.Y8G("colSpan",4),e.R7$(),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_authorBilling_companyPlaceholder")),e.R7$(),e.Y8G("caption",l.scope.network.getResourceOrKeyName("web_authorBilling_taxTitle")),e.R7$(2),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_authorBilling_taxNumberPlaceholder")),e.R7$(2),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_authorBilling_taxIdNumberPlaceholder")),e.R7$(2),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_authorBilling_salesTax")),e.R7$(),e.Y8G("caption",l.scope.network.getResourceOrKeyName("web_authorBilling_bankAccountTitle")),e.R7$(2),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_authorBilling_bankAccountholderPlaceholder")),e.R7$(3),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_authorBilling_ibanError")),e.R7$(),e.Y8G("validationCallback",l.validateIBAN)("message",l.scope.network.getResourceOrKeyName("web_authorBilling_ibanError")),e.R7$(3),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_authorBilling_bicError")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_authorBilling_bicError")),e.R7$(),e.Y8G("caption",l.scope.network.getResourceOrKeyName("web_common_imprint")),e.R7$(2),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_common_imprint")),e.R7$(),e.vxM(l.success?44:43),e.R7$(2),e.Y8G("dxTemplateOf","instruction"),e.R7$(),e.Y8G("dxTemplateOf","success"))},dependencies:[Bo.CVf,Et.eC,Gn.e,Bo.rkl,Bo.Inh,Xi.o,Wn.B],styles:[".author-billing-editor-base[_ngcontent-%COMP%]{width:50%}@media (max-width: 768px){.author-billing-editor-base[_ngcontent-%COMP%]{width:100%}}.author-billing-editor-base[_ngcontent-%COMP%]   .instruction[_ngcontent-%COMP%]{color:var(--textColor90)}.author-billing-editor-base[_ngcontent-%COMP%]   .button-indicator[_ngcontent-%COMP%]{margin-left:5px}"]}))}return o(),t})();function aa(o,t){if(1&o&&(e.j41(0,"div",6)(1,"b"),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.network.getResourceOrKeyName(1==n.author.gender?"web_common_freelanceAuthorMale":"web_common_freelanceAuthorFemale"))}}function Ab(o,t){if(1&o&&(e.j41(0,"div",6)(1,"b"),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName(1==n.author.gender?"web_common_authorMale":"web_common_authorFemale"))}}let tC=(()=>{var o;class t{constructor(s){this.scope=s.getScope()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-author-list-item"]],inputs:{author:[0,"authorData","author"]},standalone:!1,decls:13,vars:11,consts:[[1,"col-12"],[1,"d-flex","align-items-center"],[1,"flex-shrink-0"],[3,"href"],["alt","","width","100","height","100",1,"media-object","authorListItem-avatar",2,"margin-bottom","20px",3,"src"],[1,"flex-grow-1","ms-3","mb-4"],["ng-switch","","on","author.gender",1,"info-text","author-list-item-description"],[1,"clearfix"],[1,"media-heading",3,"href"],[1,"media-heading","author-list-item-name"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div")(4,"a",3),e.nrm(5,"img",4),e.k0s()()(),e.j41(6,"div",5),e.nVh(7,aa,3,1,"div",6)(8,Ab,3,1,"div",6),e.nrm(9,"div",7),e.j41(10,"a",8)(11,"h2",9),e.EFF(12),e.k0s()()()()()),2&r&&(e.R7$(4),e.Y8G("href",e.ai1("",l.scope.currentChapter.path,"/profile/",l.author.guid),e.B4B),e.R7$(),e.Y8G("src",e.VkB("",l.author.avatarImageUrl,"?w=100&h=100&mode=crop"),e.B4B),e.R7$(2),e.vxM(l.author.freelance?7:8),e.R7$(3),e.Y8G("href",e.ai1("",l.scope.currentChapter.path,"/profile/",l.author.guid),e.B4B),e.R7$(2),e.Lme("",l.author.firstName," ",l.author.lastName))},dependencies:[Ft.B],styles:[".author-list-item-description[_ngcontent-%COMP%]{color:var(--textColor60)}.author-list-item-name[_ngcontent-%COMP%]{color:var(--textColor)}"]}))}return o(),t})();const ZE=(o,t)=>t.guid;function JE(o,t){if(1&o&&e.nrm(0,"app-author-list-item",3),2&o){const n=e.XpG().$implicit;e.Y8G("authorData",n)}}function nC(o,t){if(1&o&&e.nVh(0,JE,1,1,"app-author-list-item",3),2&o){const n=t.$implicit,s=e.XpG().$implicit;e.vxM(n.levelName==s?0:-1)}}function Ib(o,t){if(1&o&&(e.j41(0,"h4",1),e.EFF(1),e.k0s(),e.j41(2,"div",2),e.Z7z(3,nC,1,1,null,null,ZE),e.k0s()),2&o){const n=t.$implicit,s=e.XpG();e.R7$(),e.JRh(n),e.R7$(2),e.Dyx(s.authors)}}let qE=(()=>{var o;class t{constructor(s,r){this.authorService=s,this.scopeService=r,this._currentLevel="",this.pageTitle="",this.levels=[],this.scope=this.scopeService.getScope(),this.pageTitle=this.scope.network.getResourceOrKeyName("web_common_page_title_authors",{chapterName:this.scope.currentChapter.name})}ngOnInit(){this.authorService.getAuthors().then(s=>{this.authors=s,this.sortDesc(),this.getLevels()})}sortDesc(){this.authors&&(this.authors=this.authors.sort((s,r)=>s.levelId>r.levelId?-1:1))}isCurrentLevel(s){return this._currentLevel==s||(this._currentLevel=s,!1)}getLevels(){this.levels=[...new Set(this.authors.map(s=>s.levelName))]}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Ka),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-author-list"]],standalone:!1,decls:4,vars:1,consts:[["id","page-title",1,"hidden-header","p-0"],[1,"author-list-level-heading"],[1,"row","p-3"],[1,"col-12","col-sm-6","col-md-6","col-lg-4","d-block",3,"authorData"]],template:function(r,l){1&r&&(e.j41(0,"h1",0),e.EFF(1),e.k0s(),e.Z7z(2,Ib,5,1,null,null,e.fX1)),2&r&&(e.R7$(),e.JRh(l.pageTitle),e.R7$(),e.Dyx(l.levels))},dependencies:[tC],styles:[".author-list-level-heading[_ngcontent-%COMP%]{color:var(--textColor);margin-top:30px}"]}))}return o(),t})(),iC=(()=>{var o;class t{constructor(s,r){this.el=s,this.renderer=r,this.appExternalLink=""}ngAfterViewInit(){this.isExternalUrl(this.appExternalLink)&&(this.renderer.setAttribute(this.el.nativeElement,"target","_blank"),this.renderer.setAttribute(this.el.nativeElement,"rel","noopener noreferrer"))}isExternalUrl(s){if(!s||s.startsWith("/")||!s.includes("://"))return!1;try{return new URL(s).origin!==window.location.origin}catch{return!1}}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(e.sFG))},this.\u0275dir=e.FsC({type:t,selectors:[["","appExternalLink",""]],inputs:{appExternalLink:"appExternalLink"},standalone:!1}))}return o(),t})();const CT=o=>({"event-calendar-displayable-wrapper-is-today":o});function yT(o,t){if(1&o&&(e.nrm(0,"div",9),e.nI1(1,"apicodoTranslateText"),e.nI1(2,"async")),2&o){const n=e.XpG();e.Y8G("ngClass",n.overline?"event-calendar-displayable-description":"")("innerHtml",e.bMT(2,4,e.bMT(1,2,n.overline)),e.npT)}}function eO(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",17),e.bIt("click",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.congratulate(r))}),e.j41(1,"div"),e.nrm(2,"i",18),e.EFF(3),e.k0s(),e.nrm(4,"dx-load-indicator",19),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(3),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_congratulate")),e.R7$(),e.Y8G("visible",n.loadIndicatorVisible)}}function bT(o,t){if(1&o&&(e.j41(0,"div",12),e.nVh(1,eO,5,2,"div",16),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.hasCongratulated?-1:1)}}function Mb(o,t){if(1&o&&(e.nrm(0,"div",13),e.nI1(1,"apicodoTranslateText"),e.nI1(2,"async")),2&o){const n=e.XpG();e.Y8G("innerHtml",e.bMT(2,3,e.bMT(1,1,n.formattedCalendarDate)),e.npT)}}function tO(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",17),e.bIt("click",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.congratulate(r))}),e.nrm(1,"i",18),e.EFF(2),e.nrm(3,"dx-load-indicator",19),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_congratulate")," "),e.R7$(),e.Y8G("visible",n.loadIndicatorVisible)}}function nO(o,t){if(1&o&&(e.j41(0,"div",12),e.nVh(1,tO,4,2,"div",16),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.hasCongratulated?-1:1)}}function iO(o,t){if(1&o&&(e.j41(0,"div",14),e.nrm(1,"img",20),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("src",e.mNQ(n.imagePath),e.B4B)("alt","")}}function xT(o,t){1&o&&(e.j41(0,"div",15),e.nrm(1,"i",21),e.k0s())}function oO(o,t){if(1&o&&e.nrm(0,"img",22),2&o){const n=e.XpG();e.Y8G("src",n.avatarUrl,e.B4B)("alt","")}}function ET(o,t){if(1&o&&(e.j41(0,"div",23),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.JRh(n.initials)}}function oC(o,t){if(1&o&&(e.j41(0,"div",14),e.nVh(1,oO,1,2,"img",22),e.nVh(2,ET,2,1,"div",23),e.k0s()),2&o){const n=t;e.R7$(),e.vxM(n.avatarUrl?1:-1),e.R7$(),e.vxM(n.useInitials?2:-1)}}function sO(o,t){if(1&o&&(e.nVh(0,oC,3,2,"div",14),e.nI1(1,"createAvatar")),2&o){let n;const s=e.XpG();e.vxM((n=e.bMT(1,1,s.data))?0:-1,n)}}let l_=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.deviceService=r,this.eventCalendarService=l,this.enableHighQualityImage="",this.mobile="",this.blobStorage="",this.isMobile=!1,this.formattedCalendarDate="",this.overline="",this.title="",this.isToday=!1,this.referralLink="",this.imagePath="",this.showSnipDefaultIcon=!1,this.hasCongratulated=!1,this.congratulatable=!1,this.isBirthday=!1,this.loadIndicatorVisible=!1,this.scope=s.getScope()}ngOnInit(){this.isMobile=this.deviceService.getUserAgentInfo().isMobile,this.mobile=this.deviceService.getUserAgentInfo().isMobile?"-mobile":"",this.blobStorage=this.scope.globalSettings.blobStorageCdnUrl,this.isToday=this.data.isToday,1==this.data.articleListDisplayableType?this.processArticleData():2==this.data.articleListDisplayableType?this.processSponsoredArticleData():4==this.data.articleListDisplayableType?this.processSnipData():this.processEventData()}processArticleData(){let s=new Date(this.data.calendarDate).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"});this.imagePath=this.data.coverAssetReference?.assetImage?.guid?`${this.blobStorage}/images/${this.data.coverAssetReference.assetImage.guid}?preset=eventlist-cover${this.mobile}`:`${this.scope.globalSettings.blobStorageCdnUrl}/${this.scope.globalSettings.blobStorageContainerNameImage}/dummy.jpg`,this.formattedCalendarDate=this.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:s}),this.overline=this.data.heading,this.title=this.data.text,this.referralLink=this.scope.currentScope.chapter.path+this.data.path}processSponsoredArticleData(){let s=this.scope.network.settings.languageCode,r=new Date(this.data.calendarDate);this.formattedCalendarDate=r.toLocaleDateString(s,{weekday:"long"})+",  der "+r.getDate()+". "+r.toLocaleDateString(s,{month:"long"}),this.overline=this.data.heading,this.title=this.data.text,this.referralLink=this.scope.currentScope.chapter.path+this.data.path,this.data.coverAssetReference?.assetImage?.guid&&(this.imagePath=`${this.blobStorage}/images/${this.data.coverAssetReference.assetImage.guid}?preset=eventlist-cover${this.mobile}`)}processSnipData(){let s=new Date(this.data.calendarDate).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"});this.formattedCalendarDate=this.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:s}),this.title=this.data.text,this.referralLink=this.scope.currentScope.chapter.path+this.data.path;let r,l=this.data.assetReferences.filter(E=>null!=E.assetImage&&null==E.assetImage.deleted);if(l.length>0)if(null!=this.data.extendedConfigurations){let E=JSON.parse(this.data.extendedConfigurations);r=E.thumbnailGuid?l.find(N=>N.guid==E.thumbnailGuid):l?.reduce(function(N,ae){return new Date(N.published)<new Date(ae.published)?N:ae})}else r=l?.reduce(function(E,N){return new Date(E.published)<new Date(N.published)?E:N});r&&(this.imagePath=this.blobStorage+"/images/"+`${r.assetImage.guid}?preset=eventlist-cover${this.mobile}`),this.imagePath||(this.showSnipDefaultIcon=!0)}processEventData(){let s=new Date(this.data.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"}),r=new Date(this.data.end).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"});this.formattedCalendarDate=s!==r?this.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_dateRange",{start:s,end:r}):this.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:s}),this.overline=this.data.overline,this.title=this.data.title,this.referralLink=this.data.targetUri,1===this.data.type?(this.isBirthday=!0,this.imagePath=this.data.imageUri):this.imagePath=this.data.imageUri.includes("?cache")?`${this.data.imageUri}&preset=eventlist-cover${this.mobile}`:`${this.data.imageUri}?preset=eventlist-cover${this.mobile}`,this.congratulatable=this.data.isToday||new Date>new Date(this.data.start),this.data.hasCongratulated?this.hasCongratulated=!0:this.data.ownReactions?.forEach(l=>{1===l.type&&l.occurance==this.data.start&&(this.hasCongratulated=!0)}),this.isToday&&(this.data.day=(new Date).getDate())}congratulate(s){s.preventDefault(),this.loadIndicatorVisible=!0,this.eventCalendarService.congratulateToBirthday(this.data.id,this.data.start).then(()=>{this.hasCongratulated=!0,this.loadIndicatorVisible=!1},r=>{this.loadIndicatorVisible=!1})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E),e.rXU(Ld))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-event-calendar-displayable"]],inputs:{data:"data"},standalone:!1,decls:22,vars:18,consts:[[1,"event-calendar-displayable-wrapper","container",3,"ngClass"],[1,"d-block",3,"href","appExternalLink"],[1,"mb-3"],[1,"event-calendar-displayable-content-wrapper"],[1,"row"],[1,"col-2","col-md-2","event-calendar-displayable-short-date-wrapper"],[1,"event-calendar-displayable-day"],[1,"event-calendar-displayable-month"],[1,"col-7","col-md-7","event-calendar-displayable-text-wrapper"],[3,"ngClass","innerHtml"],[1,"d-flex"],[1,"event-calendar-displayable-title","m-0",3,"innerHtml"],[1,"event-calendar-displayable-full-date"],[1,"event-calendar-displayable-full-date",3,"innerHtml"],[1,"col-3","col-md-3","event-calendar-displayable-image"],[1,"col-3","col-md-3","event-calendar-displayable-snip-icon"],[1,"btn","btn-default","event-calendar-displayable-congratulate-button"],[1,"btn","btn-default","event-calendar-displayable-congratulate-button",3,"click"],[1,"fas","fa-gifts"],["height","20","width","20","aria-hidden","true",1,"button-indicator",3,"visible"],[1,"img-fluid",3,"src","alt"],[1,"icon-snippet-start","green"],[1,"event-calendar-displayable-user-icon",3,"src","alt"],[1,"avatar-initials","event-calendar-displayable-user-icon"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"a",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6),e.EFF(7),e.k0s(),e.j41(8,"div",7),e.EFF(9),e.k0s()(),e.j41(10,"div",8),e.nVh(11,yT,3,6,"div",9),e.j41(12,"div",10),e.nrm(13,"h3",11),e.nI1(14,"apicodoTranslateText"),e.nI1(15,"async"),e.nVh(16,bT,2,1,"div",12),e.k0s(),e.nVh(17,Mb,3,5,"div",13),e.nVh(18,nO,2,1,"div",12),e.k0s(),e.nVh(19,iO,2,3,"div",14)(20,xT,2,0,"div",15)(21,sO,2,3),e.k0s()()()()()),2&r&&(e.Y8G("ngClass",e.eq3(16,CT,l.isToday)),e.R7$(),e.Y8G("appExternalLink",e.mNQ(l.referralLink))("href",l.referralLink,e.B4B),e.R7$(6),e.JRh(l.data.day),e.R7$(2),e.JRh(l.data.month),e.R7$(2),e.vxM(l.overline?11:-1),e.R7$(2),e.Y8G("innerHtml",l.isBirthday?l.title:e.bMT(15,14,e.bMT(14,12,l.title)),e.npT),e.R7$(3),e.vxM(!l.isMobile&&1==l.data.type&&l.congratulatable?16:-1),e.R7$(),e.vxM(1!=l.data.type?17:-1),e.R7$(),e.vxM(l.isMobile&&1==l.data.type&&l.congratulatable?18:-1),e.R7$(),e.vxM(l.showSnipDefaultIcon||l.isBirthday?l.showSnipDefaultIcon&&!l.isBirthday?20:!l.showSnipDefaultIcon&&l.isBirthday?21:-1:19))},dependencies:[C.YU,Wn.B,iC,Ft.B,C.Jj,Fo,ta._],styles:[".event-calendar-displayable-wrapper[_ngcontent-%COMP%]{margin-bottom:20px;max-width:100%;padding:0 30px 14px 2%;color:var(--textColor)}.event-calendar-displayable-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor)}.event-calendar-displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 auto;display:flex;flex-direction:column;justify-content:center}.event-calendar-displayable-short-date-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column}.event-calendar-displayable-day[_ngcontent-%COMP%]{font-size:4rem;margin-bottom:-25px}.event-calendar-displayable-month[_ngcontent-%COMP%]{font-size:1.7rem}.event-calendar-displayable-title[_ngcontent-%COMP%]{font-size:2rem;line-height:2.6rem;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--textColor);text-transform:none}.event-calendar-displayable-description-missing-overline[_ngcontent-%COMP%]{font-size:2rem;line-height:2.1rem;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:2rem}.event-calendar-displayable-full-date[_ngcontent-%COMP%]{font-size:1.3rem;font-family:var(--fontTertiary)}.event-calendar-displayable-description[_ngcontent-%COMP%]{font-size:1.3rem;font-family:var(--fontTertiary);overflow:hidden;text-overflow:ellipsis}.event-calendar-displayable-congratulate-button[_ngcontent-%COMP%]{background-color:var(--backgroundColor);color:var(--textColor);margin-left:50px}.event-calendar-displayable-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.event-calendar-displayable-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{aspect-ratio:4/3;overflow:hidden;object-fit:cover;width:100%}.avatar-initials[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;font-weight:700;background-color:#ccc;color:var(--textColor);font-size:3rem}.event-calendar-displayable-user-icon[_ngcontent-%COMP%]{border-radius:50%;width:100%;aspect-ratio:1!important}.event-calendar-displayable-snip-icon[_ngcontent-%COMP%]{font-size:4.688rem;text-align:center}@media (max-width: 768px){.event-calendar-displayable-wrapper[_ngcontent-%COMP%]{margin-bottom:1rem;padding:.5rem}.event-calendar-displayable-congratulate-button[_ngcontent-%COMP%]{margin-top:5px;margin-left:0;font-size:14px}.event-calendar-displayable-wrapper-is-today-text[_ngcontent-%COMP%]{font-size:1.3rem;margin-bottom:.3rem}.event-calendar-displayable-day[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:-10px}.event-calendar-displayable-month[_ngcontent-%COMP%]{font-size:1.1rem}.event-calendar-displayable-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.6rem;-webkit-line-clamp:5}.event-calendar-displayable-full-date[_ngcontent-%COMP%]{font-size:.85rem}.event-calendar-displayable-description[_ngcontent-%COMP%]{font-size:.8rem}.event-calendar-displayable-description-missing-overline[_ngcontent-%COMP%]{margin-top:1.7rem}.event-calendar-displayable-snip-icon[_ngcontent-%COMP%]{font-size:3.5rem}.event-calendar-displayable-short-date-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column}.event-calendar-displayable-text-wrapper[_ngcontent-%COMP%], .event-calendar-displayable-image[_ngcontent-%COMP%], .event-calendar-displayable-snip-icon[_ngcontent-%COMP%]{padding-left:5px}}"]}))}return o(),t})();var Hc=p(5102);const OT=["popover"];function fl(o,t){1&o&&(e.j41(0,"div"),e.nrm(1,"i",9),e.k0s())}function rO(o,t){if(1&o){const n=e.RV6();e.j41(0,"i",10),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.closeAboDetail())}),e.k0s()}}function aO(o,t){1&o&&e.nrm(0,"i",13)}function cr(o,t){1&o&&e.nrm(0,"dx-load-indicator",14),2&o&&e.Y8G("visible",!0)}function ha(o,t){if(1&o&&(e.j41(0,"span",17),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_ical_export_info")," ")}}function sC(o,t){if(1&o&&(e.j41(0,"span",17),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_please_wait")," ")}}function lO(o,t){if(1&o&&(e.j41(0,"div")(1,"div",12),e.nVh(2,aO,1,0,"i",13)(3,cr,1,1,"dx-load-indicator",14),e.j41(4,"div",15)(5,"span",16),e.EFF(6),e.k0s(),e.nVh(7,ha,2,1,"span",17),e.nVh(8,sC,2,1,"span",17),e.k0s()()()),2&o){const n=e.XpG(2);e.R7$(2),e.vxM(n.eventExportService.isIcalDownloading?3:2),e.R7$(4),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_ical_export")," "),e.R7$(),e.vxM(n.eventExportService.isIcalDownloading?-1:7),e.R7$(),e.vxM(n.eventExportService.isIcalDownloading?8:-1)}}function wT(o,t){if(1&o&&(e.j41(0,"div")(1,"div",12),e.nrm(2,"i",19),e.j41(3,"div",15)(4,"span",16),e.EFF(5),e.k0s(),e.j41(6,"span",17),e.EFF(7),e.k0s()()()()),2&o){const n=e.XpG(3);e.R7$(5),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_ical_abo")),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_ical_abo_info"))}}function yu(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",18),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.openEventsSubscribeDetail())}),e.DNE(1,wT,8,2,"div",2),e.k0s()}2&o&&(e.R7$(),e.Y8G("dxTemplateOf","content"))}function ST(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",7)(1,"dx-button",11),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.getEventsIcalDownload())}),e.DNE(2,lO,9,4,"div",2),e.k0s(),e.nVh(3,yu,2,1,"dx-button"),e.k0s()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("disabled",n.eventExportService.isIcalDownloading),e.BMQ("aria-busy",n.eventExportService.isIcalDownloading),e.R7$(),e.Y8G("dxTemplateOf","content"),e.R7$(),e.vxM(n.isClosedChapter?-1:3)}}function rC(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",8)(1,"span",20),e.EFF(2),e.k0s(),e.j41(3,"span",21),e.EFF(4),e.k0s(),e.j41(5,"p",22),e.EFF(6),e.k0s(),e.j41(7,"dx-button",23),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.copySubscribeLink())}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_ical_abo")),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_ical_abo_details_info")),e.R7$(2),e.JRh(n.getEventsSubscribeLink()),e.R7$(),e.Y8G("text",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_common_copy_url")))}}let c_=(()=>{var o;class t{constructor(s,r,l){this.eventExportService=s,this.scopeService=r,this.toastService=l,this.filterId=null,this.popoverVisible=!1,this.detailView=!1,this.calendarAboLink="",this.isClosedChapter=!1,this.openEventsSubscribeDetail=()=>{this.detailView=!0},this.closeAboDetail=()=>{this.detailView=!1},this.closePopOver=()=>{this.detailView=!1,this.popover.instance.hide()},this.copySubscribeLink=()=>{this.eventExportService.copySubscribeLink(this.calendarAboLink).then(()=>{this.toastService.popSuccessToast(this.scope.network.getResourceOrKeyName("web_event_calendar_ical_export_link_copy"))}).catch(E=>{this.toastService.popSuccessToast(this.scope.network.getResourceOrKeyName("web_common_went_wrong")),console.error(E)})},this.getEventsSubscribeLink=()=>this.filterId?this.eventExportService.subscribeCalendarFiltered(this.filterId):this.eventExportService.getSubscribeLink(),this.getEventsIcalDownload=()=>{this.toastService.popInfoToast(this.scope.network.getResourceOrKeyName("web_event_calendar_ical_export_download_start"),3500),this.eventExportService.downloadIcal(this.filterId)},this.scope=this.scopeService.getScope(),this.isClosedChapter=this.scope.currentChapter.closed}ngOnInit(){this.calendarAboLink=this.getEventsSubscribeLink()}ngOnChanges(s){s.filterId&&!s.filterId.isFirstChange()&&(this.calendarAboLink=this.getEventsSubscribeLink())}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Id),e.rXU(Se.A),e.rXU(ch))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-event-export-drop-down"]],viewQuery:function(r,l){if(1&r&&e.GBs(OT,5),2&r){let E;e.mGM(E=e.lsd())&&(l.popover=E.first)}},inputs:{filterId:"filterId"},standalone:!1,features:[e.OA$],decls:11,vars:5,consts:[["popover",""],["id","eventExportButton",3,"template"],[4,"dxTemplate","dxTemplateOf"],["target","#eventExportButton","showEvent","click","position","left","width","250"],[1,"d-flex","justify-content-between","p-1"],[1,"fa-solid","fa-angle-left"],[1,"fa-solid","fa-xmark",3,"click"],[1,"d-flex","flex-column","gap-2","p-2"],[1,"d-flex","flex-column","justify-content-center","align-items-center","text-center"],[1,"fa-solid","fa-download"],[1,"fa-solid","fa-angle-left",3,"click"],[3,"onClick","disabled"],[1,"d-flex","align-items-center","gap-2"],["aria-hidden","true",1,"fa-solid","fa-download","button-icon"],["height","18","width","18","aria-hidden","true",3,"visible"],[1,"d-flex","flex-column"],[1,"button-text"],[1,"button-info"],[3,"onClick"],[1,"fa-regular","fa-calendar-plus","button-icon"],[1,"event-abo-head"],[1,"event-abo-info"],[1,"fw-bold","event-abo-link"],["icon","copy",3,"onClick","text"]],template:function(r,l){if(1&r){const E=e.RV6();e.j41(0,"dx-button",1),e.DNE(1,fl,2,0,"div",2),e.k0s(),e.j41(2,"dx-popover",3,0)(4,"div",4)(5,"div"),e.nVh(6,rO,1,0,"i",5),e.k0s(),e.j41(7,"div")(8,"i",6),e.bIt("click",function(){return m.eBV(E),m.Njj(l.closePopOver())}),e.k0s()()(),e.nVh(9,ST,4,4,"div",7),e.nVh(10,rC,8,5,"div",8),e.k0s()}2&r&&(e.Y8G("template","buttonTemplate"),e.R7$(),e.Y8G("dxTemplateOf","buttonTemplate"),e.R7$(5),e.vxM(l.detailView?6:-1),e.R7$(3),e.vxM(l.detailView?-1:9),e.R7$(),e.vxM(l.detailView?10:-1))},dependencies:[Et.eC,Gn.e,Wn.B,Hc.b],styles:[".button-info[_ngcontent-%COMP%]{font-size:8px;margin-top:14px}@media (max-width: 768px){.button-info[_ngcontent-%COMP%]{margin-top:0}}.button-text[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.button-icon[_ngcontent-%COMP%]{font-size:24px}  .dx-popup-content{padding:0 6px 12px}.event-abo-info[_ngcontent-%COMP%]{font-size:8px;margin-bottom:15px}.event-abo-head[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.event-abo-link[_ngcontent-%COMP%]{padding-left:3px;padding-right:3px;word-break:break-all;overflow-wrap:anywhere;max-width:100%}"]}))}return o(),t})();function cO(o,t){if(1&o&&(e.j41(0,"div",6),e.nrm(1,"app-event-export-drop-down",8),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("filterId",n.filterId)}}function dO(o,t){if(1&o&&(e.j41(0,"li"),e.nrm(1,"app-event-calendar-displayable",11),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.Y8G("data",n)}}function jg(o,t){if(1&o&&(e.j41(0,"div")(1,"div")(2,"h2",9),e.EFF(3),e.k0s(),e.j41(4,"ul",10),e.Z7z(5,dO,2,1,"li",null,e.fX1),e.k0s()()()),2&o){const n=e.XpG();e.R7$(),e.AVh("event-calendar-month-today-container",n.hasCommunityBackgroundColor)("event-calendar-month-today-container-fallback",!n.hasCommunityBackgroundColor),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_displayable_is_today_text")," "),e.R7$(2),e.Dyx(n.getAllTodayItems())}}function d_(o,t){if(1&o&&(e.j41(0,"li"),e.nrm(1,"app-event-calendar-displayable",11),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.Y8G("data",n)}}function uO(o,t){if(1&o&&(e.j41(0,"ul",10),e.Z7z(1,d_,2,1,"li",null,e.fX1),e.k0s()),2&o){const n=t.$implicit,s=e.XpG(2);e.R7$(),e.Dyx(s.getNotTodayItems(n))}}function hO(o,t){if(1&o&&(e.j41(0,"div",7)(1,"h2",12),e.EFF(2),e.k0s(),e.Z7z(3,uO,3,0,"ul",10,e.fX1),e.k0s()),2&o){const n=t.$implicit;e.R7$(2),e.SpI(" ",n.Month," "),e.R7$(),e.Dyx(n.Dates)}}let pO=(()=>{var o;class t{constructor(s,r,l,E){this.scopeService=s,this.eventCalendarService=r,this.titleService=l,this.themingService=E,this.cachedEventData=[],this.calendar=[],this.eventsLoading=!0,this.languageCode="",this.hasCommunityBackgroundColor=!1,this.filteredCalendar=[],this.isFiltered=!1,this.filterGroupsReady=!1,this.eventCategories=[],this.eventGroups=[],this.eventTypes=[],this.noSelectionStyle={"background-color":"cadetblue"},this.containsArticle=!1,this.containsEvent=!1,this.containsSnip=!1,this.containsSponsored=!1,this.containsBirthday=!1,this.hideFilterUi=!1,this.filterItems=[],this.selection=null,this.filterId=null,this.calendarExpoertEnabled=!0,this.scope=this.scopeService.getScope(),this.disableFilter=this.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration.EventFilterDisabled,this.calendarExpoertEnabled=this.scope.currentChapter.settings.configurations.enableCalendarExport,this.themingServiceSubscription=this.themingService.themingChanged$.subscribe(N=>{this.hasCommunityBackgroundColor="dark"==N.resolvedTheme&&this.scope.network.settings.colorSecondaryBackgroundDark||"light"==N.resolvedTheme&&this.scope.network.settings.colorSecondaryBackground})}ngOnInit(){this.languageCode=this.scope.currentScope.network.settings.languageCode;var s=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==s){var r=this.scope.profile,l=this.scope.network.settings.languagePack.split("-")[0];this.languageCode=l,null!=r.activeUserLanguage?.vendorLanguageCode&&l!=r.activeUserLanguage?.vendorLanguageCode&&(this.languageCode=r.activeUserLanguage.vendorLanguageCode)}this.fetchData()}ngOnDestroy(){this.themingServiceSubscription.unsubscribe()}fetchData(){var s=[],r=[],l=[],E=[];this.hideFilterUi="hidden"==new URLSearchParams(location.search).get("filterUi");var N=Number(new URLSearchParams(location.search).get("type")),ae=new URLSearchParams(location.search).get("category"),ze=null!=N&&null!=ae;Promise.allSettled([this.eventCalendarService.getEventCalendarArticles(),this.eventCalendarService.getEventCalendarSnips(),this.eventCalendarService.getEventCalendarSponsoredArticles(),this.eventCalendarService.getEventCalendarEvents()]).then(Vi=>{Vi.forEach((Di,Eo)=>{"rejected"===Di.status&&console.error(`Service call ${Eo+1} failed:`,Di.reason)}),"fulfilled"===Vi[0].status&&dt(Vi[0].value),"fulfilled"===Vi[1].status&&Kt(Vi[1].value),"fulfilled"===Vi[2].status&&Vn(Vi[2].value),"fulfilled"===Vi[3].status&&ci(Vi[3].value),this.calendar=r.sort(function(Di,Eo){return Di.Dates[0].CalendarDate-Eo.Dates[0].CalendarDate}),this.cachedEventData=JSON.parse(JSON.stringify(this.calendar)),this.filteredCalendar=JSON.parse(JSON.stringify(this.cachedEventData)),this.eventsLoading=!1,this.initializeFilterGroups(),this.initializeEventTypes(),this.filterItems=this.eventTypes.length>1?this.eventCategories.concat(this.eventTypes):this.eventCategories,this.filterItems.length>0&&this.filterItems.push({id:-1,shortName:this.scope.currentScope.network.getResourceOrKeyName("web_event_eventCalendar_page_title")}),ze&&(1==N?this.selection=ae:2==N&&(this.selection="Event"===ae?2:1))});let dt=Vi=>{Vi.forEach((Di,Eo)=>{if(null!==Di.calendarDate){this.containsArticle=!0;var uo=new Date(Di.calendarDate),Jo=uo.getMonth(),es=uo.getDate(),Qo=uo.getFullYear(),Ts=new Intl.DateTimeFormat(this.languageCode).format(uo);Di.isToday=Ts===new Intl.DateTimeFormat(this.languageCode).format(new Date),Di.day=es,Di.month=uo.toLocaleDateString(this.languageCode,{month:"short"});let wa=uo.toLocaleDateString(this.languageCode,{weekday:"long"}),ll=uo.toLocaleDateString(this.languageCode,{month:"long"});if(typeof s[+(Jo+""+Qo)]>"u"){l[Ts]={Day:wa+", der "+es+". "+ll,Articles:[Di],Snips:[],SponsoredArticles:[],Birthdays:[],Events:[],ExternalEvents:[],CalendarDate:uo},E[+(Jo+""+Qo)]=[l[Ts]];var _a={Month:ll+" "+Qo,Dates:E[+(Jo+""+Qo)]};s[+(Jo+""+Qo)]=_a,r.push(_a)}else typeof l[Ts]>"u"?(l[Ts]={Day:wa+", der "+es+". "+ll,Articles:[Di],Snips:[],SponsoredArticles:[],Birthdays:[],Events:[],ExternalEvents:[],CalendarDate:uo},E[+(Jo+""+Qo)].push(l[Ts]),E[+(Jo+""+Qo)].sort((Sm,mf)=>Sm.CalendarDate.getTime()-mf.CalendarDate.getTime())):l[Ts].Articles.push(Di)}})},Kt=Vi=>{Vi.forEach((Di,Eo)=>{if(null!==Di.calendarDate){this.containsSnip=!0;var uo=new Date(Di.calendarDate),Jo=uo.getMonth(),es=uo.getDate(),Qo=uo.getFullYear(),Ts=new Intl.DateTimeFormat(this.languageCode).format(uo);Di.isToday=Ts===new Intl.DateTimeFormat(this.languageCode).format(new Date),Di.day=es,Di.month=uo.toLocaleDateString(this.languageCode,{month:"short"});let wa=uo.toLocaleDateString(this.languageCode,{weekday:"long"}),ll=uo.toLocaleDateString(this.languageCode,{month:"long"});if(typeof s[+(Jo+""+Qo)]>"u"){l[Ts]={Day:wa+", der "+es+". "+ll,Snips:[Di],Articles:[],SponsoredArticles:[],Birthdays:[],Events:[],ExternalEvents:[],CalendarDate:uo},E[+(Jo+""+Qo)]=[l[Ts]];var _a={Month:ll+" "+Qo,Dates:E[+(Jo+""+Qo)]};s[+(Jo+""+Qo)]=_a,r.push(_a)}else typeof l[Ts]>"u"?(l[Ts]={Day:wa+", der "+es+". "+ll,Snips:[Di],Articles:[],SponsoredArticles:[],Birthdays:[],Events:[],ExternalEvents:[],CalendarDate:uo},E[+(Jo+""+Qo)].push(l[Ts]),E[+(Jo+""+Qo)].sort((Sm,mf)=>Sm.CalendarDate.getTime()-mf.CalendarDate.getTime())):l[Ts].Snips.push(Di)}})},Vn=Vi=>{Vi.forEach((Di,Eo)=>{if(null!==Di.calendarDate){this.containsSponsored=!0;var uo=new Date(Di.calendarDate),Jo=uo.getMonth(),es=uo.getDate(),Qo=uo.getFullYear(),Ts=new Intl.DateTimeFormat(this.languageCode).format(uo);Di.isToday=Ts===new Intl.DateTimeFormat(this.languageCode).format(new Date),Di.day=es,Di.month=uo.toLocaleDateString(this.languageCode,{month:"short"});let wa=uo.toLocaleDateString(this.languageCode,{weekday:"long"}),ll=uo.toLocaleDateString(this.languageCode,{month:"long"});if(typeof s[+(Jo+""+Qo)]>"u"){l[Ts]={Day:wa+", der "+es+". "+ll,Snips:[],Articles:[],SponsoredArticles:[Di],Birthdays:[],Events:[],ExternalEvents:[],CalendarDate:uo},E[+(Jo+""+Qo)]=[l[Ts]];var _a={Month:ll+" "+Qo,Dates:E[+(Jo+""+Qo)]};s[+(Jo+""+Qo)]=_a,r.push(_a)}else typeof l[Ts]>"u"?(l[Ts]={Day:wa+", der "+es+". "+ll,Snips:[],Articles:[],SponsoredArticles:[Di],Birthdays:[],Events:[],ExternalEvents:[],CalendarDate:uo},E[+(Jo+""+Qo)].push(l[Ts]),E[+(Jo+""+Qo)].sort((Sm,mf)=>Sm.CalendarDate.getTime()-mf.CalendarDate.getTime())):l[Ts].SponsoredArticles.push(Di)}})},ci=Vi=>{Vi.sort((Di,Eo)=>new Date(Di.start).getTime()-new Date(Eo.start).getTime()),Vi.forEach((Di,Eo)=>{if(null!==Di.start){1===Di.type&&(this.containsBirthday=!0),this.containsEvent=!0;var uo=new Date(Di.start),Jo=uo.getMonth(),es=uo.getDate(),Qo=uo.getFullYear(),Ts=new Intl.DateTimeFormat(this.languageCode).format(uo);const wa=new Date,ll=new Date(Di.start),Sm=new Date(Di.end),mf=new Intl.DateTimeFormat(this.languageCode).format(ll),Q0=new Intl.DateTimeFormat(this.languageCode).format(wa);Di.isToday=Di.end&&wa>=ll&&wa<=Sm||mf===Q0,Di.day=es,Di.month=uo.toLocaleDateString(this.languageCode,{month:"short"});let Z0=uo.toLocaleDateString(this.languageCode,{weekday:"long"}),cv=uo.toLocaleDateString(this.languageCode,{month:"long"});if(typeof s[+(Jo+""+Qo)]>"u"){l[Ts]={Day:Z0+", der "+es+". "+cv,Snips:[],Articles:[],SponsoredArticles:[],Birthdays:1===Di.type?[Di]:[],Events:2===Di.type?[Di]:[],ExternalEvents:3===Di.type?[Di]:[],CalendarDate:uo},E[+(Jo+""+Qo)]=[l[Ts]];var _a={Month:cv+" "+Qo,Dates:E[+(Jo+""+Qo)]};s[+(Jo+""+Qo)]=_a,r.push(_a)}else if(typeof l[Ts]>"u")l[Ts]={Day:Z0+", der "+es+". "+cv,Snips:[],Articles:[],SponsoredArticles:[],Birthdays:1===Di.type?[Di]:[],Events:2===Di.type?[Di]:[],ExternalEvents:3===Di.type?[Di]:[],CalendarDate:uo},E[+(Jo+""+Qo)].push(l[Ts]),E[+(Jo+""+Qo)].sort((r1,pk)=>r1.CalendarDate.getTime()-pk.CalendarDate.getTime());else switch(Di.type){case 1:l[Ts].Birthdays.push(Di);break;case 3:l[Ts].ExternalEvents.push(Di);break;default:l[Ts].Events.push(Di)}}})}}initializeFilterGroups(){this.eventGroups=this.scope.currentScope.chapter.chapterGroups.filter(s=>!0===s.isEventCategory),this.eventGroups.forEach(s=>{s.chapters&&(this.eventCategories=this.eventCategories.concat(s.chapters))}),this.filterGroupsReady=!0}initializeEventTypes(){this.eventTypes=[],this.containsBirthday&&this.eventTypes.push({id:1,shortName:this.scope.currentScope.network.getResourceOrKeyName("web_event_filter_type_birthday")}),this.containsEvent&&this.eventTypes.push({id:2,shortName:this.scope.currentScope.network.getResourceOrKeyName("web_event_filter_type_events")}),this.containsSnip&&this.eventTypes.push({id:3,shortName:this.scope.currentScope.network.getResourceOrKeyName("web_event_filter_type_snips")}),this.containsSponsored&&this.eventTypes.push({id:4,shortName:this.scope.currentScope.network.getResourceOrKeyName("web_event_filter_type_spons")}),this.containsArticle&&this.eventTypes.push({id:5,shortName:this.scope.currentScope.network.getResourceOrKeyName("web_event_filter_type_article")})}changeFilter(s){if(this.filterId=new Lc(s).toNumber(),!s)return;let r,l=s,E=this.hideFilterUi?"&filterUi=hidden":"";if(this.filteredCalendar=JSON.parse(JSON.stringify(this.cachedEventData)),"string"==typeof s)r=1,this.filteredCalendar=this.filteredCalendar.filter(N=>(N.Dates=N.Dates.filter(ae=>(ae.ExternalEvents=[],ae.Events=ae.Events.filter(ze=>ze.chapters.some(dt=>dt.id===s)),ae.Events.length>0)),N.Dates.length>0));else if("number"==typeof s)switch(r=2,s){case-1:return void this.resetFilter();case 1:this.filteredCalendar=this.filteredCalendar.filter(N=>(N.Dates=N.Dates.filter(ae=>(ae.Birthdays=ae.Birthdays.filter(ze=>!0),ae.Events=ae.Events.filter(ze=>2!==ze.type&&3!==ze.type),ae.ExternalEvents=[],ae.Articles=[],ae.Snips=[],ae.SponsoredArticles=[],ae.Birthdays.length>0)),N.Dates.length>0)),l="Birthday";break;case 2:this.filteredCalendar=this.filteredCalendar.filter(N=>(N.Dates=N.Dates.filter(ae=>(ae.Events=ae.Events.filter(ze=>2===ze.type||3===ze.type),ae.Articles=[],ae.Birthdays=[],ae.Snips=[],ae.SponsoredArticles=[],ae.Events.length>0)),N.Dates.length>0)),l="Event";break;case 3:this.filteredCalendar=this.filteredCalendar.filter(N=>(N.Dates=N.Dates.filter(ae=>(ae.Snips=ae.Snips.filter(ze=>!0),ae.Events=[],ae.ExternalEvents=[],ae.Birthdays=[],ae.Articles=[],ae.SponsoredArticles=[],ae.Snips.length>0)),N.Dates.length>0)),l="Snip";break;case 4:this.filteredCalendar=this.filteredCalendar.filter(N=>(N.Dates=N.Dates.filter(ae=>(ae.SponsoredArticles=ae.SponsoredArticles.filter(ze=>!0),ae.Events=[],ae.ExternalEvents=[],ae.Birthdays=[],ae.Snips=[],ae.Articles=[],ae.SponsoredArticles.length>0)),N.Dates.length>0)),l="SponsoredArticle";break;case 5:this.filteredCalendar=this.filteredCalendar.filter(N=>(N.Dates=N.Dates.filter(ae=>(ae.Articles=ae.Articles.filter(ze=>!0),ae.Events=[],ae.ExternalEvents=[],ae.Birthdays=[],ae.Snips=[],ae.SponsoredArticles=[],ae.Articles.length>0)),N.Dates.length>0)),l="Article";break;default:alert("Etwas ist schief gelaufen!")}window.history.pushState("","",`events?type=${r}&category=${l}${E}`),this.isFiltered=!0,this.hideFilterUi&&(this.disableFilter=!0)}resetFilter(){window.history.pushState("","","events"),this.isFiltered=!1,this.filteredCalendar=this.cachedEventData,this.filterId=null}getTodayItems(s){return[...s.Articles||[],...s.SponsoredArticles||[],...s.Snips||[],...s.Birthdays||[],...s.Events||[],...s.ExternalEvents||[]].filter(r=>r.isToday)}getNotTodayItems(s){return[...s.Articles||[],...s.SponsoredArticles||[],...s.Snips||[],...s.Birthdays||[],...s.Events||[],...s.ExternalEvents||[]].filter(r=>!r.isToday)}getAllTodayItems(){let s=[];return(this.isFiltered?this.filteredCalendar:this.cachedEventData).forEach(l=>{l.Dates.forEach(E=>{s=s.concat(this.getTodayItems(E))})}),s}getNonEmptyMonths(){return(this.isFiltered?this.filteredCalendar:this.cachedEventData).filter(r=>r.Dates.some(l=>this.getNotTodayItems(l).length>0))}resetAll(){this.isFiltered=!1,this.eventTypes=[],this.eventCategories=[],this.selection=null,this.filteredCalendar=[],this.containsArticle=!1,this.containsEvent=!1,this.containsSnip=!1,this.containsSponsored=!1,this.containsBirthday=!1,this.calendar=[],this.cachedEventData=[],this.hideFilterUi=!1,this.eventsLoading=!0,this.filterId=null}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Xv),e.rXU(Oo.hE),e.rXU(oo))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-event-calendar"]],standalone:!1,decls:11,vars:12,consts:[[1,"event-calendar-wrapper"],["id","page-title",1,"hidden-header"],[1,"row","event-calendar-drop-down-button-wrapper"],["displayExpr","shortName","keyExpr","id","stylingMode","text","type","normal",1,"event-calendar-drop-down-button",3,"onSelectionChanged","items","useSelectMode","text","selectedItemKey","showArrowIcon","disabled"],[3,"isLoading","loadingMessage"],[1,"displayables-wrapper"],[1,"d-flex","justify-content-end","mb-3"],[1,"row"],[3,"filterId"],[1,"event-calendar-month-today"],[1,"list-unstyled"],[3,"data"],[1,"event-calendar-month"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"h1",1),e.EFF(2),e.k0s(),e.j41(3,"div",2)(4,"dx-drop-down-button",3),e.bIt("onSelectionChanged",function(N){return l.changeFilter(N.item.id)}),e.k0s()(),e.nrm(5,"app-apicodo-loading-spinner",4),e.j41(6,"div",5),e.nVh(7,cO,2,1,"div",6),e.nVh(8,jg,7,5,"div"),e.Z7z(9,hO,5,1,"div",7,e.fX1),e.k0s()()),2&r&&(e.R7$(2),e.SpI("",l.scope.network.getResourceOrKeyName("web_common_page_title_eventCalendar")," "),e.R7$(2),e.Y8G("text",e.mNQ(l.scope.currentScope.network.getResourceOrKeyName("web_event_eventCalendar_page_title")))("items",l.filterItems)("useSelectMode",!0)("selectedItemKey",l.selection)("showArrowIcon",l.filterItems.length>0&&!l.disableFilter)("disabled",0==l.filterItems.length||l.disableFilter),e.R7$(),e.Y8G("isLoading",l.eventsLoading)("loadingMessage",l.scope.currentScope.network.getResourceOrKeyName("web_events_are_loading_message")),e.R7$(2),e.vxM(l.calendarExpoertEnabled?7:-1),e.R7$(),e.vxM(l.getAllTodayItems().length>0?8:-1),e.R7$(),e.Dyx(l.getNonEmptyMonths()))},dependencies:[Po.h,Bt,l_,c_],styles:[".event-calendar-wrapper[_ngcontent-%COMP%]     .dx-button-text, .event-calendar-wrapper[_ngcontent-%COMP%]     .dx-icon{color:var(--textColor);text-transform:uppercase;font-size:2rem}.event-calendar-title[_ngcontent-%COMP%]{font-size:3rem;font-weight:700}.event-calendar-month-today-container[_ngcontent-%COMP%]{background-color:var(--colorSecondaryBackground)}.event-calendar-month-today-container-fallback[_ngcontent-%COMP%]{background-color:var(--color2-alpha50)}.event-calendar-month[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1rem;padding:20px 0 0 6%;font-family:var(--fontSecondary);font-weight:700}.event-calendar-month-today[_ngcontent-%COMP%]{font-size:2.5rem;padding:20px 0 0 6%;font-family:var(--fontSecondary);font-weight:700}.event-calendar-drop-down-button-wrapper[_ngcontent-%COMP%]{padding:2rem 0;justify-content:center}.event-calendar-drop-down-button[_ngcontent-%COMP%]{height:auto;width:auto;border-bottom:1px solid var(--textColor);font-family:var(--fontTertiary);color:var(--textColor)}.event-calendar-drop-down-button[_ngcontent-%COMP%]     .dx-button-mode-text{height:auto}@media (max-width: 768px){.displayables-wrapper[_ngcontent-%COMP%]{padding:0 7px}.event-calendar-month[_ngcontent-%COMP%]{font-size:1.7rem}.event-calendar-month-today[_ngcontent-%COMP%]{font-size:1.9rem}.event-calendar-drop-down-button[_ngcontent-%COMP%]{margin-bottom:15px}.event-calendar-wrapper[_ngcontent-%COMP%]     .dx-button-text, .event-calendar-wrapper[_ngcontent-%COMP%]     .dx-icon{font-size:1.5rem}}"]}))}return o(),t})();var Gg=p(8025);const aC=["tosValidator"],u_=()=>({validationMessageMode:"always"}),Za=o=>({validationMessageMode:"always",dataSource:o,displayExpr:"name",valueExpr:"value"}),DT=()=>({"aria-labelledby":"register-label-newsletter"}),gO=()=>({"aria-labelledby":"register-label-tos"});function lC(o,t){if(1&o){const n=e.RV6();e.nrm(0,"p",4)(1,"p",4),e.j41(2,"dx-button",5),e.bIt("onClick",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onProfileButtonClick(r))}),e.k0s()}if(2&o){const n=e.XpG();e.Y8G("innerHTML",n.newsletterIsSubscribedDescription,e.npT),e.R7$(),e.Y8G("innerHTML",n.scope.currentScope.network.getResourceOrKeyName("web_register_newsletterIsSubscribedDescription_1"),e.npT),e.R7$(),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_register_myProfile"))}}function TT(o,t){if(1&o){const n=e.RV6();e.nrm(0,"p",4)(1,"p",4),e.j41(2,"dx-button",5),e.bIt("onClick",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onProfileButtonClick(r))}),e.k0s()}if(2&o){const n=e.XpG();e.Y8G("innerHTML",n.newsletterIsNotSubscribedDescription,e.npT),e.R7$(),e.Y8G("innerHTML",n.scope.currentScope.network.getResourceOrKeyName("web_register_newsletterIsNotSubscribedDescription_1"),e.npT),e.R7$(),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_register_myProfile"))}}function op(o,t){if(1&o&&(e.j41(0,"dxi-item",19),e.nrm(1,"dxo-label",8)(2,"dxi-validation-rule",9),e.k0s()),2&o){const n=e.XpG(2);e.Y8G("editorOptions",e.lJ4(3,u_)),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_staffNumber")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_staffNumberError"))}}function fO(o,t){if(1&o&&(e.j41(0,"dxi-item",23),e.nrm(1,"dxo-label",8)(2,"dxi-validation-rule",9),e.k0s(),e.j41(3,"dxi-item",24),e.nrm(4,"dxo-label",25)(5,"dxi-validation-rule",9),e.k0s()),2&o){const n=e.XpG(2);e.Y8G("editorOptions",n.yearOfBirthEditorOptions),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_yearOfBirth")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_yearOfBirthError")),e.R7$(),e.Y8G("editorOptions",e.eq3(6,Za,n.genderData)),e.R7$(),e.Y8G("visible",!1),e.R7$(),e.Y8G("message",n.scope.currentScope.network.getResourceOrKeyName("web_register_genderError"))}}function Pb(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",27)(2,"div",28)(3,"dx-switch",29),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.signUpData.isNewsletterSubscribe,r)||(l.signUpData.isNewsletterSubscribe=r),m.Njj(r)}),e.k0s()(),e.j41(4,"div",30),e.EFF(5),e.nrm(6,"br"),e.EFF(7),e.k0s()()()}if(2&o){const n=e.XpG(3);e.R7$(3),e.R50("value",n.signUpData.isNewsletterSubscribe),e.Y8G("elementAttr",e.lJ4(4,DT)),e.R7$(2),e.SpI(" ",n.newsletterText," "),e.R7$(2),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_register_newsletterCheckboxDescription_1")," ")}}function zf(o,t){1&o&&(e.nrm(0,"dxi-item",26),e.DNE(1,Pb,8,5,"div",21)),2&o&&(e.R7$(),e.Y8G("dxTemplateOf","newsletterSwitchWithLabelTemplate"))}function Rb(o,t){if(1&o&&(e.j41(0,"a",33),e.EFF(1),e.k0s(),e.EFF(2)),2&o){const n=e.XpG(3);e.Y8G("href",e.VkB("",n.scope.currentChapter.path,"/tos"),e.B4B),e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_termsOfUse")),e.R7$(),e.SpI(" ",n.scope.currentScope.network.resources.web_partnerAccessDialog_termsOfUseCheckboxDescription_1," ")}}function kb(o,t){if(1&o&&(e.j41(0,"div",34),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_user_termsOfServiceError")," ")}}function Wg(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",27)(2,"dx-switch",31),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.isTosAccepted,r)||(l.isTosAccepted=r),m.Njj(r)}),e.bIt("onValueChanged",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.validateTos())}),e.k0s(),e.j41(3,"div",32),e.EFF(4),e.nVh(5,Rb,3,4),e.j41(6,"a",33),e.EFF(7),e.k0s(),e.EFF(8),e.k0s()(),e.nVh(9,kb,2,1,"div",34),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(2),e.R50("value",n.isTosAccepted),e.Y8G("elementAttr",e.lJ4(9,gO)),e.R7$(2),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_register_termsOfUsecheckboxDescription_0")," "),e.R7$(),e.vxM(n.scope.currentScope.network.settings.configurations.enableTOS?5:-1),e.R7$(),e.Y8G("href",e.VkB("",n.scope.currentChapter.path,"/pp"),e.B4B),e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_privacyPolicy")),e.R7$(),e.SpI(" ",n.scope.currentScope.network.resources.web_register_termsOfUsecheckboxDescription_2," "),e.R7$(),e.vxM(n.tosError?9:-1)}}function Kf(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"dx-load-indicator",36),e.j41(2,"span",37),e.EFF(3),e.k0s()()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("visible",n.loadIndicatorVisible),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_register"))}}function cC(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-button",35),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.onRegisterButtonClicked())}),e.DNE(2,Kf,4,2,"div",21),e.k0s()()}2&o&&(e.R7$(2),e.Y8G("dxTemplateOf","content"))}function mO(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-form",6),e.mxI("formDataChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.signUpData,r)||(l.signUpData=r),m.Njj(r)}),e.j41(1,"dxi-item",7),e.nrm(2,"dxo-label",8)(3,"dxi-validation-rule",9)(4,"dxi-validation-rule",10),e.k0s(),e.j41(5,"dxi-item",11,0),e.nrm(7,"dxo-label",8)(8,"dxi-validation-rule",12)(9,"dxi-validation-rule",13),e.k0s(),e.j41(10,"dxi-item",14),e.nrm(11,"dxo-label",8)(12,"dxi-validation-rule",15)(13,"dxi-validation-rule",16),e.k0s(),e.j41(14,"dxi-item",17),e.nrm(15,"dxo-label",8)(16,"dxi-validation-rule",9),e.k0s(),e.j41(17,"dxi-item",18),e.nrm(18,"dxo-label",8)(19,"dxi-validation-rule",9),e.k0s(),e.nVh(20,op,3,4,"dxi-item",19),e.nVh(21,fO,6,8),e.nVh(22,zf,2,1),e.nrm(23,"dxi-item",20),e.DNE(24,Wg,10,10,"div",21),e.nrm(25,"dxi-item",22),e.DNE(26,cC,3,1,"div",21),e.k0s()}if(2&o){const n=e.XpG();e.R50("formData",n.signUpData),e.R7$(),e.Y8G("editorOptions",e.lJ4(24,u_)),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_email")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_emailError")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_emailError"))("pattern",n.emailValidationPattern),e.R7$(),e.Y8G("editorOptions",n.passwordEditorOptions),e.R7$(2),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_password")),e.R7$(2),e.Y8G("validationCallback",n.validatePassword)("message",n.passwordErrorMessage),e.R7$(),e.Y8G("editorOptions",n.confirmPasswordEditorOptions),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_repeatPassword")),e.R7$(2),e.Y8G("comparisonTarget",n.passwordComparison),e.R7$(),e.Y8G("editorOptions",e.lJ4(25,u_)),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_firstname")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_firstnameError")),e.R7$(),e.Y8G("editorOptions",e.lJ4(26,u_)),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_lastname")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_lastnameError")),e.R7$(),e.vxM(n.scope.currentScope.chapter.settings.enableUserStaffNumber?20:-1),e.R7$(),e.vxM(n.scope.currentScope.chapter.settings.featureRegistrationAgeGender?-1:21),e.R7$(),e.vxM(!n.scope.currentScope.chapter.settings.featureNewsletterForced&&n.scope.currentScope.chapter.settings.featureNewsletter?22:-1),e.R7$(2),e.Y8G("dxTemplateOf","termsOfUseSwitchWithLabelTemplate"),e.R7$(2),e.Y8G("dxTemplateOf","registerButton")}}function h_(o,t){if(1&o&&e.nrm(0,"div",3),2&o){const n=e.XpG();e.Y8G("innerHTML",n.signupError,e.npT)}}let AT=(()=>{var o;class t{validateTos(){this.tosError=!this.isTosAccepted}constructor(s,r,l,E){this.profileService=l,this.routeTrackingService=E,this.isTosAccepted=!1,this.newsletterText="",this.passwordVisible=!1,this.signupError="",this.loadIndicatorVisible=!1,this.registerForNewsletter=!1,this.isRegistered=!1,this.newsletterSubscribed=!1,this.newsletterIsSubscribedDescription="",this.newsletterIsNotSubscribedDescription="",this.emailValidationPattern=/^\s*[\w.-]+@[\w.-]+\.\w{2,}\s*$/,this.changePasswordMode=N=>{const ae=this.form.instance.getEditor(N);if(!ae)return;const dt=!("text"===ae.option("mode"));ae.option("mode",dt?"text":"password");const Kt=ae.getButton&&ae.getButton("PasswordIcon"),Vn=this.scope.network.getResourceOrKeyName(dt?"web_common_hide_password":"web_common_show_password");Kt?.option({icon:dt?"fa-solid fa-eye-slash":"fa-solid fa-eye"});const ci=Kt?.element?.();ci&&(ci.setAttribute("aria-label",Vn),ci.setAttribute("aria-pressed",String(dt)))},this.tosError=!1,this.confirmPasswordEditorOptions={mode:"password",valueChangeEvent:"input",validationMessageMode:"always"},this.yearOfBirthEditorOptions={max:new Date((new Date).getFullYear(),11,31),min:new Date((new Date).getFullYear()-100,0,1),displayFormat:"yyyy",pickerType:"list",useMaskBehavior:!0,dateSerializationFormat:"yyyy",calendarOptions:{maxZoomLevel:"decade",minZoomLevel:"decade"},adaptivityEnabled:!0,validationMessageMode:"always"},this.onRegisterButtonClicked=()=>{this.validateTos();var N=new URLSearchParams(window.location.search).get("closedToken");N&&(this.signUpData.closedChapterToken=N),this.isTosAccepted&&this.form.instance.validate().isValid&&(this.signUpData.email=this.signUpData.email.trim(),this.loadIndicatorVisible=!0,this.authService.register(this.signUpData).then(()=>{window.location.href=this.scope.currentChapter.path+"/account/registration-complete"},ae=>{this.loadIndicatorVisible=!1,this.handleRegistrationErrorResponse(ae)}))},this.handleRegistrationErrorResponse=N=>{if(this.signupError="",N.modelState){var ae=[];for(var ze in N.modelState)if(N.modelState.hasOwnProperty(ze))for(var dt=0;dt<N.modelState[ze].length;dt++){var Kt=N.modelState[ze][dt];-1===ae.indexOf(Kt)&&ae.push(Kt)}this.signupError="Fehler bei der Registrierung: "+ae.join(" ")}else this.signupError=N.error?N.error:"An unknown error occurred"},this.passwordErrorMessage="",this.validatePassword=N=>{const ae=N.value;if(!ae)return!1;const ze=this.scope.currentScope.network.settings.passwordMinLength,dt=this.scope.currentScope.network.settings.passwordMinCapitals,Kt=this.scope.currentScope.network.settings.passwordMinNumbers,Vn=this.scope.currentScope.network.settings.passwordMinSpecialCharacters;return ae.length<ze?(this.passwordErrorMessage=this.scope.currentScope.network.getResourceOrKeyName("web_user_password_minLength").replace("{num}",ze),!1):(ae.match(/[A-Z]/g)||[]).length<dt?(this.passwordErrorMessage=this.scope.currentScope.network.getResourceOrKeyName("web_user_password_minCapitals").replace("{num}",dt),!1):(ae.match(/[0-9]/g)||[]).length<Kt?(this.passwordErrorMessage=this.scope.currentScope.network.getResourceOrKeyName("web_user_password_minNumbers").replace("{num}",Kt),!1):!((ae.match(/[^A-Za-z0-9]/g)||[]).length<Vn&&(this.passwordErrorMessage=this.scope.currentScope.network.getResourceOrKeyName("web_user_password_minSpecialCharacters").replace("{num}",Vn),1))},this.passwordComparison=()=>this.signUpData.password,this.scope=s.getScope(),this.authService=r,this.passwordEditorOptions={mode:this.passwordVisible?"text":"password",valueChangeEvent:"input",validationMessageMode:"always",onValueChanged:()=>{let N=this.form.instance.getEditor("ConfirmPassword");N&&N.option("value")&&Gg.A.getInstance(N.element()).validate()},buttons:[{name:"PasswordIcon",location:"after",options:{stylingMode:"text",icon:"fa-solid fa-eye",onClick:()=>{this.changePasswordMode("Password")},elementAttr:{"aria-label":this.scope.network.getResourceOrKeyName("web_common_show_password")}}}]},this.subscription=this.profileService.profileChanged$.subscribe(N=>{this.isRegistered=N.isRegistered,this.newsletterSubscribed=!N.unsubscribe})}ngOnInit(){this.registerForNewsletter="app.registerNewsletter"==this.routeTrackingService.getCurrentRouteState().angularJsState,this.genderData=[{name:this.scope.currentScope.network.getResourceOrKeyName("web_user_female"),value:0},{name:this.scope.currentScope.network.getResourceOrKeyName("web_user_male"),value:1},{name:this.scope.currentScope.network.getResourceOrKeyName("web_user_diverse"),value:.5}],this.newsletterText=this.scope.network.getResourceOrKeyName("web_register_newsletterCheckboxDescription_0").replace("{{chapterName}}",this.scope.currentChapter.shortName),this.newsletterIsSubscribedDescription=this.scope.currentScope.network.getResourceOrKeyName("web_register_newsletterIsSubscribedDescription_0",{chapterName:this.scope.currentScope.chapter.name}),this.newsletterIsNotSubscribedDescription=this.scope.currentScope.network.getResourceOrKeyName("web_register_newsletterIsNotSubscribedDescription_0",{chapterName:this.scope.currentScope.chapter.name})}ngOnDestroy(){this.subscription?.unsubscribe()}validateSwitch(s){return!0===s.value}onProfileButtonClick(s){this.routeTrackingService.switchState("app.my-profile",null)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Da.u),e.rXU($n.p),e.rXU(Ko.o))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-register"]],viewQuery:function(r,l){if(1&r&&(e.GBs(Xi.o,5),e.GBs(aC,5)),2&r){let E;e.mGM(E=e.lsd())&&(l.form=E.first),e.mGM(E=e.lsd())&&(l.tosValidator=E.first)}},inputs:{signUpData:"signUpData"},standalone:!1,decls:5,vars:4,consts:[["passwordTextBox",""],["id","form-container",1,"register-component-base"],["id","form","labelMode","floating",3,"formData"],["role","alert","aria-live","assertive","aria-atomic","true","tabindex","-1",1,"form-group","alert","alert-danger",3,"innerHTML"],[3,"innerHTML"],[3,"onClick","text"],["id","form","labelMode","floating",3,"formDataChange","formData"],["dataField","email","editorType","dxTextBox",3,"editorOptions"],[3,"text"],["id","signUpError","type","required",3,"message"],["id","signUpError","type","pattern",3,"message","pattern"],["name","Password","dataField","password",3,"editorOptions"],["id","signUpError","type","required","message","Password is required"],["type","custom","id","signUpError",3,"validationCallback","message"],["name","ConfirmPassword","editorType","dxTextBox","dataField","confirmPassword",3,"editorOptions"],["id","signUpError","type","required","message","Confirm Password is required"],["type","compare","id","signUpError","message","Password and Confirm Password do not match",3,"comparisonTarget"],["dataField","firstName","editorType","dxTextBox",3,"editorOptions"],["dataField","lastName","editorType","dxTextBox",3,"editorOptions"],["dataField","staffNumber","editorType","dxTextBox",3,"editorOptions"],["template","termsOfUseSwitchWithLabelTemplate"],[4,"dxTemplate","dxTemplateOf"],["template","registerButton"],["dataField","yearOfBirth","editorType","dxDateBox",3,"editorOptions"],["dataField","gender","editorType","dxRadioGroup",3,"editorOptions"],[3,"visible"],["template","newsletterSwitchWithLabelTemplate"],[1,"register-switch"],[1,""],[3,"valueChange","value","elementAttr"],["id","register-label-newsletter",1,"register-label"],[3,"valueChange","onValueChanged","value","elementAttr"],["id","register-label-tos",1,"register-label"],["target","_blank",3,"href"],["role","alert","aria-live","assertive","aria-atomic","true","tabindex","-1",1,"invalid-message"],["useSubmitBehaviour","true",3,"onClick"],["height","20","width","20","aria-hidden","true",1,"button-indicator",3,"visible"],[1,"dx-button-text"]],template:function(r,l){1&r&&(e.j41(0,"div",1),e.nVh(1,lC,3,3),e.nVh(2,TT,3,3),e.nVh(3,mO,27,27,"dx-form",2),e.k0s(),e.nVh(4,h_,1,1,"div",3)),2&r&&(e.R7$(),e.vxM(l.isRegistered&&l.registerForNewsletter&&l.newsletterSubscribed?1:-1),e.R7$(),e.vxM(l.isRegistered&&l.registerForNewsletter&&!l.newsletterSubscribed?2:-1),e.R7$(),e.vxM(l.isRegistered?-1:3),e.R7$(),e.vxM(l.signupError?4:-1))},dependencies:[Bo.CVf,Et.eC,Gn.e,Bo.rkl,Bo.Inh,Xi.o,Wn.B,Zn.Y,Ft.B],styles:['@charset "UTF-8";.register-component-base[_ngcontent-%COMP%]{width:50%;padding-left:1rem}@media (max-width: 768px){.register-component-base[_ngcontent-%COMP%]{padding-left:0rem;padding-top:2rem}}.register-component-base[_ngcontent-%COMP%]   .register-label[_ngcontent-%COMP%]{font-size:1rem;font-family:var(--textPrimary);color:var(--textColor60)}.register-component-base[_ngcontent-%COMP%]   .register-switch[_ngcontent-%COMP%]{display:flex;gap:10px}.register-component-base[_ngcontent-%COMP%]   .button-indicator[_ngcontent-%COMP%]{margin-right:5px}.register-component-base[_ngcontent-%COMP%]   .invalid-message[_ngcontent-%COMP%]{color:var(--adx-validation-message-color);font-size:.75rem;font-family:Arial,sans-serif;margin-top:4px;background-color:var(--adx-validation-message-background-color);padding:4px 8px;border-radius:.25rem;line-height:1rem;display:inline-block;font-family:var(--adx-base-font-family)}@media (max-width: 768px){.register-component-base[_ngcontent-%COMP%]{width:100%}}']}))}return o(),t})();const IT=o=>({onValueChanged:o});function _O(o,t){if(1&o&&(e.j41(0,"dxi-item",4),e.nrm(1,"dxo-label",17)(2,"dxi-validation-rule",18),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_emailOrUsername")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_emailError"))}}function Bb(o,t){if(1&o&&(e.j41(0,"dxi-item",5),e.nrm(1,"dxo-label",17)(2,"dxi-validation-rule",18),e.k0s()),2&o){const n=e.XpG();e.Y8G("editorOptions",e.eq3(3,IT,n.onUsernameChanged)),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_email")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_emailError"))}}function vO(o,t){1&o&&e.nrm(0,"dxi-item",12)}function zg(o,t){1&o&&e.nrm(0,"dxi-item",13)}function Xf(o,t){1&o&&e.nrm(0,"dxi-item",14)}function p_(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"dx-load-indicator",21),e.j41(2,"span",22),e.EFF(3),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("visible",n.loadIndicatorVisible),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_login"))}}function CO(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-button",20),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.onLoginButtonClicked())}),e.DNE(2,p_,4,2,"div",16),e.k0s()()}2&o&&(e.R7$(2),e.Y8G("dxTemplateOf","content"))}function yO(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationDialog_description_above_loginTitle"))}}function bO(o,t){if(1&o&&e.nrm(0,"div",24),2&o){const n=e.XpG(2);e.Y8G("innerHTML",n.loginErrorMessage,e.npT)}}function Fb(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,yO,2,1,"p"),e.j41(2,"h2",23),e.EFF(3),e.k0s(),e.j41(4,"p"),e.EFF(5),e.k0s(),e.nVh(6,bO,1,1,"div",24),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.scope.currentScope.network.resources.web_authenticationDialog_description_above_loginTitle&&""!=n.scope.currentScope.network.resources.web_authenticationDialog_description_above_loginTitle?1:-1),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_loginTitle")),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationDialog_description")),e.R7$(),e.vxM(n.loginErrorMessage?6:-1)}}function bu(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"h2",23),e.EFF(2),e.k0s(),e.j41(3,"p"),e.EFF(4),e.k0s(),e.j41(5,"p"),e.EFF(6),e.k0s(),e.j41(7,"dx-button",25),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.onRegisterButtonClicked())}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_register")),e.R7$(2),e.JRh(n.scope.currentScope.network.resources.web_register_description_0),e.R7$(2),e.JRh(n.scope.currentScope.network.resources.web_register_description_1),e.R7$(),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_common_register"))}}function xO(o,t){if(1&o&&(e.j41(0,"div")(1,"h2",23),e.EFF(2),e.k0s(),e.j41(3,"p")(4,"span",26),e.EFF(5),e.k0s(),e.j41(6,"a",27),e.nrm(7,"img",28),e.k0s(),e.j41(8,"a",27),e.nrm(9,"img",28),e.k0s()()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_login_downloadApp")),e.R7$(3),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_login_downloadAppDescription")," "),e.R7$(),e.Y8G("href",e.mNQ(n.scope.currentScope.network.settings.appLinkITunes),e.B4B),e.R7$(),e.Y8G("src",e.VFN("",n.scope.globalSettings.blobStorageCdnUrl,"/",n.scope.globalSettings.blobStorageContainerNameImage,"/",n.scope.currentScope.network.settings.languagePack,"/app-store-badge.png"),e.B4B),e.R7$(),e.Y8G("href",e.mNQ(n.scope.currentScope.network.settings.appLinkAndroid),e.B4B),e.R7$(),e.Y8G("src",e.VFN("",n.scope.globalSettings.blobStorageCdnUrl,"/",n.scope.globalSettings.blobStorageContainerNameImage,"/",n.scope.currentScope.network.settings.languagePack,"/google-play-badge.png"),e.B4B)}}function EO(o,t){if(1&o&&(e.j41(0,"h2",23),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authentication_loginSSOTitle"))}}function Nb(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authentication_loginSSODescription"))}}function OO(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",30),e.bIt("onClick",function(){const r=m.eBV(n).$implicit,l=e.XpG(2);return m.Njj(l.saml2Login(r))}),e.k0s()}if(2&o){const n=t.$implicit,s=e.XpG(2);e.Y8G("text",s.scope.currentScope.network.getResourceOrKeyName("web_authentication_loginSSO_"+n))}}function MT(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,EO,2,1,"h2",23),e.nVh(2,Nb,2,1,"p"),e.Z7z(3,OO,1,1,"dx-button",29,e.fX1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.scope.currentScope.network.getResourceOrKeyName("web_authentication_loginSSOTitle")?1:-1),e.R7$(),e.vxM(n.scope.currentScope.network.getResourceOrKeyName("web_authentication_loginSSODescription")?2:-1),e.R7$(),e.Dyx(n.saml2ModulePaths)}}function Lb(o,t){if(1&o&&(e.j41(0,"div")(1,"div"),e.EFF(2,"{{scope.currentScope.network.getResourceOrKeyName('web_login_helpDescription')\"}}"),e.k0s()(),e.j41(3,"a",27),e.EFF(4),e.k0s()),2&o){const n=e.XpG(2);e.R7$(3),e.Y8G("href",e.VkB("mailto:",n.scope.currentScope.network.getResourceOrKeyName("web_login_helpEMail")),e.B4B),e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_login_helpEMail"))}}function Yf(o,t){if(1&o&&(e.j41(0,"div")(1,"h2",23),e.EFF(2),e.k0s(),e.j41(3,"p"),e.nVh(4,Lb,5,3),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_login_help")),e.R7$(2),e.vxM(n.scope.currentScope.network.getResourceOrKeyName("web_login_helpDescription")?4:-1)}}let Vb=(()=>{var o;class t{onUsernameChanged(s){this.signInData.userName=s.value}constructor(s,r,l,E,N,ae){this.hybridTrackingService=l,this.authService=E,this.popupService=N,this.cordovaService=ae,this.signInData={userName:"",password:""},this.saml2ModulePaths=[],this.loginErrorMessage="",this.loadIndicatorVisible=!1,this.pageTitle="",this.onLoginButtonClicked=()=>{this.loginErrorMessage="",this.loadIndicatorVisible=!0,this.authService.login(this.signInData).then(()=>{var ze=new URLSearchParams(window.location.search).get("closedToken");ze&&this.scope.currentChapter.closed?this.hybridTrackingService.switchState("app.closedChapter",{action:"Get",token:ze}):this.hybridTrackingService.switchState("app.main-news",{})},ze=>{this.loadIndicatorVisible=!1,this.loginErrorMessage=ze.error?ze.error:"An unknown error occurred"})},this.onRegisterButtonClicked=()=>{this.hybridTrackingService.switchState("app.register",{closedToken:new URLSearchParams(window.location.search).get("closedToken")})},this.saml2Login=ze=>{if(this.saml2ModulePaths.indexOf(ze)>=0){var dt="/authentication/saml2?authenticationType="+ze+"&referrerUri="+encodeURIComponent(window.location.origin+this.scope.currentScope.appRoute+"login/saml2");if(this.deviceInfoService.getUserAgentInfo().isApp&&this.cordovaService.isCordovaAvailable()){var Kt="location=no,toolbarposition=top,toolbartranslucent=no,hidenavigationbuttons=yes";"android"===this.cordovaService.cordova.platformId&&(Kt="location=yes,hideurlbar=yes,zoom=no,hidenavigationbuttons=yes,closebuttoncaption="+this.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"));var Vn=this.cordovaService.cordova.InAppBrowser.open(dt,"_blank",Kt);Vn.addEventListener("loadstart",ci=>{ci.url.endsWith("login/saml2")&&(Vn.close(),this.hybridTrackingService.switchState("app.loginSaml2",null))})}else window.location.href=dt}},this.cb=()=>{this.hybridTrackingService.switchState("app.main-news",null),document.location.reload()},this.changePasswordMode=ze=>{const dt=this.form.instance.getEditor(ze);if(!dt)return;const Vn=!("text"===dt.option("mode"));dt.option("mode",Vn?"text":"password");const ci=dt.getButton&&dt.getButton("password"),Vi=this.scope.network.getResourceOrKeyName(Vn?"web_common_hide_password":"web_common_show_password");ci?.option({icon:Vn?"fa-solid fa-eye-slash":"fa-solid fa-eye"});const Di=ci?.element?.();Di&&(Di.setAttribute("aria-label",Vi),Di.setAttribute("aria-pressed",String(Vn)))},this.scope=s.getScope(),this.pageTitle=this.scope.network.getResourceOrKeyName("web_common_page_title_login",{chapterName:this.scope.currentChapter.name}),this.deviceInfoService=r,this.passwordEditorOptions={mode:"password",valueChangeEvent:"input",onValueChanged:()=>{let ze=this.form.instance.getEditor("ConfirmPassword");ze&&ze.option("value")&&Gg.A.getInstance(ze.element()).validate()},onKeyDown:ze=>{"Enter"==ze.event.key&&this.onLoginButtonClicked()},buttons:[{name:"password",location:"after",options:{stylingMode:"text",icon:"fa-solid fa-eye",onClick:()=>this.changePasswordMode("Password"),elementAttr:{"aria-label":this.scope.network.getResourceOrKeyName("web_common_show_password")}}}]}}ngOnInit(){if(this.saml2ModulePaths=this.scope.network.settings.saml2ModulePath?.split(","),this.saml2ModulePaths?.length>0){const s=this.saml2ModulePaths.map(r=>r.trim());this.saml2ModulePaths=s}}validateInput(s){let r=this.form.instance.getEditor(s);return r?Gg.A.getInstance(r.element()).validate().isValid:void 0}login(){this.validateInput("userName")&&this.validateInput("password")&&this.onLoginButtonClicked()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E),e.rXU(Ko.o),e.rXU(Da.u),e.rXU(Ln.O),e.rXU(Wt.q))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-login"]],viewQuery:function(r,l){if(1&r&&e.GBs(Xi.o,5),2&r){let E;e.mGM(E=e.lsd())&&(l.form=E.first)}},standalone:!1,decls:24,vars:17,consts:[["id","form-container",1,"login-component-base",3,"keyup.enter"],["id","page-title",1,"hidden-header"],["id","form","labelMode","floating",3,"formDataChange","formData"],["template","loginHeader"],["dataField","userName","editorType","dxTextBox"],["dataField","userName","editorType","dxTextBox",3,"editorOptions"],["name","Password","dataField","password",3,"editorOptions"],[3,"text"],["id","signUpError","type","required","message","Password is required"],[1,"pull-right",3,"href"],["template","loginButton"],["template","registerArea"],["template","appDownloadArea"],["template","samlArea"],["template","loginHelp"],["style","display: flex; justify-content: flex-end;",4,"dxTemplate","dxTemplateOf"],[4,"dxTemplate","dxTemplateOf"],[1,"login-label",3,"text"],["id","signUpError","type","required",3,"message"],[2,"display","flex","justify-content","flex-end"],["useSubmitBehaviour","true",3,"onClick"],["height","20","width","20","aria-hidden","true",1,"button-indicator",3,"visible"],[1,"dx-button-text"],[1,"instruction"],["role","alert","aria-live","assertive","aria-atomic","true","tabindex","-1",1,"form-group","alert","alert-danger",3,"innerHTML"],[3,"onClick","text"],[1,"root-login-downloadDescription"],[3,"href"],["alt","",1,"root-login-downloadImage",3,"src"],[1,"btn-saml2",3,"text"],[1,"btn-saml2",3,"onClick","text"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.bIt("keyup.enter",function(){return l.login()}),e.j41(1,"h1",1),e.EFF(2),e.k0s(),e.j41(3,"dx-form",2),e.mxI("formDataChange",function(N){return e.DH7(l.signInData,N)||(l.signInData=N),N}),e.nrm(4,"dxi-item",3),e.nVh(5,_O,3,2,"dxi-item",4)(6,Bb,3,5,"dxi-item",5),e.j41(7,"dxi-item",6),e.nrm(8,"dxo-label",7)(9,"dxi-validation-rule",8),e.k0s(),e.j41(10,"dxi-item")(11,"a",9),e.EFF(12),e.k0s()(),e.nrm(13,"dxi-item",10)(14,"dxi-item",11),e.nVh(15,vO,1,0,"dxi-item",12),e.nVh(16,zg,1,0,"dxi-item",13),e.nVh(17,Xf,1,0,"dxi-item",14),e.DNE(18,CO,3,1,"div",15)(19,Fb,7,4,"div",16)(20,bu,8,4,"div",16)(21,xO,10,14,"div",16)(22,MT,5,2,"div",16)(23,Yf,5,2,"div",16),e.k0s()()),2&r&&(e.R7$(2),e.JRh(l.pageTitle),e.R7$(),e.R50("formData",l.signInData),e.R7$(2),e.vxM(l.scope.currentScope.network.settings.enableUserName?5:6),e.R7$(2),e.Y8G("editorOptions",l.passwordEditorOptions),e.R7$(),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_user_password")),e.R7$(3),e.Y8G("href",e.VkB("",l.scope.currentScope.chapter.path,"/account/request-password"),e.B4B),e.R7$(),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_authentication_passwordForgot")),e.R7$(3),e.vxM(!l.deviceInfoService.getUserAgentInfo().isApp&&l.scope.currentScope.network.getResourceOrKeyName("web_login_downloadApp")&&l.scope.currentScope.network.settings.featureApp?15:-1),e.R7$(),e.vxM(l.scope.currentScope.network.settings.saml2ModulePath?16:-1),e.R7$(),e.vxM(l.scope.currentScope.network.getResourceOrKeyName("web_login_help")&&""!=l.scope.currentScope.network.getResourceOrKeyName("web_login_help")?17:-1),e.R7$(),e.Y8G("dxTemplateOf","loginButton"),e.R7$(),e.Y8G("dxTemplateOf","loginHeader"),e.R7$(),e.Y8G("dxTemplateOf","registerArea"),e.R7$(),e.Y8G("dxTemplateOf","appDownloadArea"),e.R7$(),e.Y8G("dxTemplateOf","samlArea"),e.R7$(),e.Y8G("dxTemplateOf","loginHelp"))},dependencies:[Bo.CVf,Et.eC,Gn.e,Bo.rkl,Bo.Inh,Xi.o,Wn.B,Ft.B],styles:[".login-component-base[_ngcontent-%COMP%]{width:50%;padding-top:50px}@media (max-width: 768px){.login-component-base[_ngcontent-%COMP%]{width:100%}}.login-component-base[_ngcontent-%COMP%]   .dx-button.dx-state-focused[_ngcontent-%COMP%]{background-color:var(--blueFb)}.login-component-base[_ngcontent-%COMP%]   .button-indicator[_ngcontent-%COMP%]{margin-right:5px}.login-component-base[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}"]}))}return o(),t})();const Hb=o=>({"background-color":o});function wO(o,t){if(1&o&&(e.qex(0),e.j41(1,"a",1)(2,"div",2)(3,"div",3),e.nrm(4,"img",4),e.k0s(),e.j41(5,"div",5)(6,"div",6),e.EFF(7),e.k0s(),e.j41(8,"div",7),e.EFF(9),e.k0s()()()(),e.bVm()),2&o){const n=e.XpG();e.R7$(),e.Y8G("href",n.referralLink,e.B4B)("target",n.linkTarget),e.R7$(3),e.Y8G("src",n.imagePath+"?preset=article-assets"+(n.isMobile?"-mobile":"")+"&cache="+n.imageCache,e.B4B),e.R7$(3),e.SpI(" ",n.article.text," "),e.R7$(2),e.SpI(" ",n.article.teaser," ")}}function $b(o,t){if(1&o&&(e.j41(0,"div")(1,"a",1)(2,"div",2)(3,"div",8),e.nrm(4,"app-navigation-header-logo",9),e.k0s(),e.j41(5,"div",5)(6,"div",6),e.EFF(7),e.k0s(),e.j41(8,"div",7),e.EFF(9),e.k0s()()()()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("href",n.referralLink,e.B4B)("target",n.linkTarget),e.R7$(2),e.Y8G("ngStyle",e.eq3(6,Hb,n.fallbackColor)),e.R7$(),e.Y8G("isDisplayable",!0),e.R7$(3),e.SpI(" ",n.article.text," "),e.R7$(2),e.SpI(" ",n.article.teaser," ")}}let dC=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.displayableFallbackCoverService=r,this.deviceInfoService=l,this.imagePath="",this.formatedArticleText="",this.firstLetter="",this.referralLink="",this.linkTarget="",this.imageCache=0,this.fallbackColor="",this.isFallback=!1,this.isMobile=!1,this.scope=this.scopeService.getScope(),this.isMobile=this.deviceInfoService.getUserAgentInfo().isMobile}ngOnInit(){(null!=this.article.coverAssetGuid||null!=this.article.coverAssetImageUrl)&&this.article.coverAssetImageCache&&(this.imageCache=this.article.coverAssetImageCache),null==this.article.coverAssetImageUrl&&null!=this.article.coverAssetGuid&&"00000000-0000-0000-0000-000000000000"!=this.article.coverAssetGuid?this.imagePath=this.scope.globalSettings.blobStorageCdnUrl+"/images/"+this.article.coverAssetGuid:null==this.article.coverAssetImageUrl||this.article.coverAssetImageUrl.includes("00000000-0000-0000-0000-000000000000")?null!=this.article.coverAssetImageGuid&&"00000000-0000-0000-0000-000000000000"!=this.article.coverAssetImageGuid?this.imagePath=this.scope.globalSettings.blobStorageCdnUrl+"/images/"+this.article.coverAssetImageGuid:(this.isFallback=!0,this.fallbackColor=this.displayableFallbackCoverService.getRandomNetworkColor()):this.imagePath=this.article.coverAssetImageUrl,this.article.articleExternalLink?(this.referralLink=this.article.articleExternalLink,this.linkTarget="_blank"):this.referralLink=this.scope.currentChapter.path+this.article.path}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(ul),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-public-profile-article-list-displayable"]],inputs:{article:"article"},standalone:!1,decls:3,vars:1,consts:[[1,"public-profile-article-list-displayable-base"],[1,"user-article-displayable",3,"href","target"],[1,"d-flex","gap-2","m-2"],[1,"public-profile-article-list-displayable-image"],["alt","",3,"src"],[1,"public-profile-article-list-displayable-text-container"],[1,"public-profile-article-list-displayable-text"],[1,"public-profile-article-list-displayable-teaser"],[1,"public-profile-article-list-displayable-image-fallback",3,"ngStyle"],[3,"isDisplayable"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,wO,10,5,"ng-container")(2,$b,10,8,"div"),e.k0s()),2&r&&(e.R7$(),e.vxM(l.isFallback?2:1))},dependencies:[C.B3,Ft.B,pc],styles:[".public-profile-article-list-displayable-base[_ngcontent-%COMP%]{overflow:hidden}@media (max-width: 768px){.public-profile-article-list-displayable-base[_ngcontent-%COMP%]{height:5rem}}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;font-family:var(--fontPrimary);color:var(--textColor)}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{aspect-ratio:4/3;height:95px;object-fit:cover}@media (max-width: 768px){.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:60px}}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-image-fallback[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:95px;aspect-ratio:4/3}@media (max-width: 768px){.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-image-fallback[_ngcontent-%COMP%]{height:60px}}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-image-fallback[_ngcontent-%COMP%]   .fallback-image[_ngcontent-%COMP%]{max-width:80%;max-height:50%}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-image-fallback[_ngcontent-%COMP%]     .chapterLogo-base{display:flex}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-image-fallback[_ngcontent-%COMP%]     .chapterLogo-base .chapterLogo-image-dark-displayable{max-height:60px;margin-bottom:0}@media (max-width: 768px){.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-image-fallback[_ngcontent-%COMP%]     .chapterLogo-base .chapterLogo-image-dark-displayable{max-height:40px;margin-bottom:0}}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-image-fallback[_ngcontent-%COMP%]     .chapterLogo-base .chapterLogo-image-displayable{max-height:60px;margin-bottom:0}@media (max-width: 768px){.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-image-fallback[_ngcontent-%COMP%]     .chapterLogo-base .chapterLogo-image-displayable{max-height:40px;margin-bottom:0}}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-text-container[_ngcontent-%COMP%]{height:95px;box-sizing:border-box}@media (max-width: 768px){.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-text-container[_ngcontent-%COMP%]{height:60px;-webkit-line-clamp:2}}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-text-container[_ngcontent-%COMP%]   .public-profile-article-list-displayable-text[_ngcontent-%COMP%], .public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-text-container[_ngcontent-%COMP%]   .public-profile-article-list-displayable-teaser[_ngcontent-%COMP%]{margin:0;text-overflow:ellipsis;text-decoration:none;display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-text[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700}@media (max-width: 768px){.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-text[_ngcontent-%COMP%]{font-size:1rem}}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-teaser[_ngcontent-%COMP%]{font-size:1rem;font-family:var(--fontPrimary)}@media (max-width: 768px){.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-teaser[_ngcontent-%COMP%]{font-size:.8rem}}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-initial-letter-container[_ngcontent-%COMP%]{height:95px;display:flex;align-items:center;width:80px;justify-content:center}@media (max-width: 768px){.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-initial-letter-container[_ngcontent-%COMP%]{height:60px;width:45px;-webkit-line-clamp:2}}.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-initial-letter-container[_ngcontent-%COMP%]   .public-profile-article-list-displayable-initial-letter[_ngcontent-%COMP%]{font-size:95px;font-family:var(--fontPrimary)}@media (max-width: 768px){.public-profile-article-list-displayable-base[_ngcontent-%COMP%]   .public-profile-article-list-displayable-initial-letter-container[_ngcontent-%COMP%]   .public-profile-article-list-displayable-initial-letter[_ngcontent-%COMP%]{font-size:60px}}.user-article-displayable[_ngcontent-%COMP%]{display:block}.user-article-displayable[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--textColor);outline-offset:-2px}"]}))}return o(),t})();function Kg(o,t){if(1&o&&(e.j41(0,"div",3),e.nrm(1,"app-public-profile-article-list-displayable",5),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.Y8G("article",n)}}function g_(o,t){if(1&o){const n=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.loadMoreArticles())}),e.nrm(1,"i",7),e.EFF(2),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(2),e.ZXR(" ",n.scope.network.getResourceOrKeyName("web_profileAuthor_showMore_0")," ",n.articleIncrement," ",n.scope.network.getResourceOrKeyName("web_profileAuthor_showMore_1")," (",n.articleLimit," ",n.scope.network.getResourceOrKeyName("web_profileAuthor_showMore_2")," ",n.articles.length,") ")}}function SO(o,t){if(1&o&&(e.j41(0,"div")(1,"h3",1),e.nrm(2,"i",2),e.EFF(3),e.k0s(),e.Z7z(4,Kg,2,1,"div",3,e.fX1),e.nI1(6,"slice"),e.k0s(),e.nVh(7,g_,3,6,"button",4)),2&o){const n=e.XpG();e.R7$(3),e.LHq(" ",n.articles.length," ",n.scope.network.getResourceOrKeyName("web_profileAuthor_articleFrom")," ",n.targetUserProfile.firstName," ",n.targetUserProfile.lastName," "),e.R7$(),e.Dyx(e.brH(6,5,n.articles,0,n.articleLimit)),e.R7$(3),e.vxM(n.articles.length>n.articleLimit?7:-1)}}let PT=(()=>{var o;class t{constructor(s){this.scopeService=s,this.articleLimit=8,this.articleIncrement=12,this.loadMoreArticles=()=>{this.articleLimit+=this.articleIncrement},this.scope=this.scopeService.getScope()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-article-list"]],inputs:{articles:"articles",targetUserProfile:"targetUserProfile"},standalone:!1,decls:2,vars:1,consts:[[1,"public-profile-article-list-base"],[1,"mt-0","header"],[1,"fa-regular","fa-newspaper"],[1,""],["tabindex","0",1,"load-more-button"],[3,"article"],["tabindex","0",1,"load-more-button",3,"click"],[1,"icon-caret-down"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,SO,8,9),e.k0s()),2&r&&(e.R7$(),e.vxM(l.targetUserProfile.isJournalist&&l.articles.length>0?1:-1))},dependencies:[dC,C.P9],styles:[".public-profile-article-list-base[_ngcontent-%COMP%]{width:70%;padding-bottom:4rem}.public-profile-article-list-base[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{font-family:var(--fontPrimary);font-size:1.3em;line-height:1.2em;color:var(--textColor60);text-transform:uppercase;margin-bottom:.4em}.public-profile-article-list-base[_ngcontent-%COMP%]   .load-more-button[_ngcontent-%COMP%]{color:var(--black);border:none;background-color:transparent;font-size:1.2rem;padding:0;text-transform:uppercase;font-weight:600}.public-profile-article-list-base[_ngcontent-%COMP%]   .load-more-button[_ngcontent-%COMP%]:hover{text-decoration:underline}.public-profile-article-list-base[_ngcontent-%COMP%]   .load-more-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--textColor);border-radius:3px}@media (max-width: 768px){.public-profile-article-list-base[_ngcontent-%COMP%]{width:100%;padding:2rem;margin-bottom:5rem}}"]}))}return o(),t})();function DO(o,t){if(1&o&&(e.j41(0,"div",3),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&o){const n=e.XpG(2).$implicit;e.R7$(),e.SpI("",e.i5U(2,1,n.data,"dd.MM.yyyy")," ")}}function Jl(o,t){if(1&o&&e.nrm(0,"dx-switch",4),2&o){const n=e.XpG(3).$implicit;e.Y8G("value",n.data)("disabled",!0)}}function TO(o,t){if(1&o&&(e.j41(0,"a",5),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4).$implicit;e.Y8G("href","tel:"+n.data,e.B4B),e.R7$(),e.SpI(" ",n.data," ")}}function AO(o,t){if(1&o&&(e.j41(0,"a",5),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4).$implicit;e.Y8G("href","mailto:"+n.data,e.B4B),e.R7$(),e.SpI(" ",n.data," ")}}function RT(o,t){if(1&o&&(e.j41(0,"div",3),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4).$implicit;e.R7$(),e.JRh(n.data)}}function Ub(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,TO,2,2,"a",5)(2,AO,2,2,"a",5)(3,RT,2,1,"div",3),e.k0s()),2&o){let n;const s=e.XpG(3).$implicit;e.R7$(),e.vxM("phonecall"===(n=s.uiType)?1:"emailsend"===n?2:3)}}function jb(o,t){if(1&o&&e.nVh(0,Jl,1,2,"dx-switch",4)(1,Ub,4,1,"div"),2&o){const n=e.XpG(2).$implicit;e.vxM(3==n.type?0:1)}}function uC(o,t){if(1&o&&(e.j41(0,"div",1)(1,"div",2),e.EFF(2),e.k0s(),e.nVh(3,DO,3,4,"div",3)(4,jb,2,1),e.k0s()),2&o){const n=e.XpG().$implicit;e.R7$(2),e.SpI("",n.label,":"),e.R7$(),e.vxM(2==n.type?3:4)}}function kT(o,t){1&o&&e.nVh(0,uC,5,2,"div",1),2&o&&e.vxM(null!==t.$implicit.label?0:-1)}function BT(o,t){if(1&o&&(e.j41(0,"div",0),e.Z7z(1,kT,1,1,null,null,e.fX1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Dyx(n.staffDirectoryData)}}let FT=(()=>{var o;class t{constructor(s){this.profileService=s,this.staffDirectoryData=[],this.convertDate=r=>{const l=new Date(r),E=60*l.getTimezoneOffset()*1e3,N=l.getTime()-E;return new Date(N)}}ngOnInit(){this.profileService.getStaffDirectoryPublic(this.targetUserProfile.guid).then(s=>{this.staffDirectoryData=this.mapStaffDirectoryData(s)})}mapStaffDirectoryData(s){return Object.keys(s.metaData).map(r=>{const l=s.metaData[r].metaDataSource;let E=s.data[r]||"";return 2===l.dataType&&E&&(E=this.convertDate(E)),"options"==l.uiType&&(E=l.templateResourceValues?.find(N=>N.id==E)?.value),"tagAutocomplete"==l.uiType&&""!=E&&(E=E?.map(N=>{let ae=l.templateResourceValues?.find(ze=>ze.id==N)?.value;return ae??N}).join(", ")),{label:l.displayLabel,data:E,type:l.dataType,uiType:l.uiType}})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU($n.p))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-staff-directory"]],inputs:{targetUserProfile:"targetUserProfile"},standalone:!1,decls:1,vars:1,consts:[[1,"public-profile-staff-directory-base"],[1,"public-profile-staff-directory-item"],[1,"public-profile-staff-directory-item-label"],[1,"public-profile-staff-directory-item-data"],[1,"public-profile-staff-directory-switch",3,"value","disabled"],[1,"public-profile-staff-directory-item-data",3,"href"]],template:function(r,l){1&r&&e.nVh(0,BT,3,0,"div",0),2&r&&e.vxM(l.staffDirectoryData.length>0?0:-1)},dependencies:[Zn.Y,Ft.B,C.vh],styles:[".public-profile-staff-directory-base[_ngcontent-%COMP%]{color:var(--textColor);font-family:var(--fontPrimary);font-size:1.2rem;padding-bottom:60px}@media (max-width: 768px){.public-profile-staff-directory-base[_ngcontent-%COMP%]{padding:2rem}}.public-profile-staff-directory-base[_ngcontent-%COMP%]   .public-profile-staff-directory-item[_ngcontent-%COMP%]{display:flex;margin-bottom:5px}.public-profile-staff-directory-base[_ngcontent-%COMP%]   .public-profile-staff-directory-item[_ngcontent-%COMP%]   .public-profile-staff-directory-switch[_ngcontent-%COMP%]{line-height:2}.public-profile-staff-directory-base[_ngcontent-%COMP%]   .public-profile-staff-directory-item[_ngcontent-%COMP%]   .public-profile-staff-directory-item-label[_ngcontent-%COMP%]{color:var(--textColor60);margin-right:5px}.public-profile-staff-directory-base[_ngcontent-%COMP%]   .public-profile-staff-directory-item[_ngcontent-%COMP%]   .public-profile-staff-directory-item-data[_ngcontent-%COMP%]{color:var(--textColor);word-wrap:anywhere}"]}))}return o(),t})();var IO=p(6016);function MO(o,t){if(1&o&&e.nrm(0,"app-staff-directory",3),2&o){const n=e.XpG(2);e.Y8G("targetUserProfile",n.targetUserProfile)}}function PO(o,t){if(1&o&&e.nrm(0,"app-article-list",4),2&o){const n=e.XpG(2);e.Y8G("articles",n.articles)("targetUserProfile",n.targetUserProfile)}}function Gb(o,t){if(1&o&&(e.j41(0,"div",0)(1,"h1",1),e.EFF(2),e.k0s(),e.j41(3,"div",2),e.nrm(4,"app-user-info",3),e.nVh(5,MO,1,1,"app-staff-directory",3),e.nVh(6,PO,1,2,"app-article-list",4),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.pageTitle),e.R7$(2),e.Y8G("targetUserProfile",n.targetUserProfile),e.R7$(),e.vxM(n.staffDirectoryEnabled?5:-1),e.R7$(),e.vxM(n.targetUserProfile.isJournalist&&n.articles.length>0?6:-1)}}let Wb=(()=>{var o;class t{constructor(s,r,l){this.profileService=s,this.articleService=r,this.scopeService=l,this.guid="",this.articles=[],this.pageTitle="",this.staffDirectoryEnabled=!1,this.scope=this.scopeService.getScope(),this.staffDirectoryEnabled=this.scope.network.settings.isStaffDirectoryEnabled,this.pageTitle=this.scope.network.getResourceOrKeyName("web_common_page_title_publicProfile",{chapterName:this.scope.currentChapter.name})}ngAfterViewInit(){}ngOnInit(){this.guid&&this.loadProfile(this.guid)}loadProfile(s){this.profileService.getPublicProfile(s).then(r=>{this.targetUserProfile=r,this.targetUserProfile.isJournalist&&this.articleService.getArticlesByAuthor(s).then(l=>{this.articles=l})}).catch(r=>{console.error("Error by fetching profile",r)})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU($n.p),e.rXU(id),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-public-profile"]],inputs:{guid:"guid"},standalone:!1,decls:1,vars:1,consts:[[1,"public-profile-base"],["id","page-title",1,"hidden-header"],[1,"public-profile-content"],[3,"targetUserProfile"],[3,"articles","targetUserProfile"]],template:function(r,l){1&r&&e.nVh(0,Gb,7,4,"div",0),2&r&&e.vxM(l.targetUserProfile?0:-1)},dependencies:[PT,FT,IO.v],styles:[".public-profile-base[_ngcontent-%COMP%]{display:flex;justify-content:center}.public-profile-base[_ngcontent-%COMP%]   .public-profile-content[_ngcontent-%COMP%]{width:var(--designContentWidth)}"]}))}return o(),t})();var NT=p(199);let gh=(()=>{var o;class t{constructor(s,r,l){this.authorService=s,this.eventCalenderService=r,this.scopeService=l,this.publishedArticlesSubject=new qt.t([]),this.publishedEventsSubject=new qt.t([]),this.applicationsSubject=new qt.t([]),this.originalPublishedArticles=[],this.originalPublishedEvents=[],this.originalApplications=[],this.isInitialized=!1,this.currentFilter="all",this.publishedArticles$=this.publishedArticlesSubject.asObservable(),this.publishedEvents$=this.publishedEventsSubject.asObservable(),this.applications$=this.applicationsSubject.asObservable(),this.publishedList$=(0,NT.z)([this.publishedArticles$,this.publishedEvents$]).pipe((0,kn.T)(([E,N])=>this.combineAndSortLists(E,N))),this.scope=this.scopeService.getScope()}initData(){this.isInitialized||(this.isInitialized=!0,this.applicationsSubject.next([]),this.authorService.getMyArticles().then(s=>{const r=s.applications.map(l=>({...l,type:"article"}));this.originalApplications=[...this.originalApplications,...r],this.applicationsSubject.next(this.originalApplications),this.originalPublishedArticles=s.publishedArticles.map(l=>({...l,type:"article"})),this.publishedArticlesSubject.next(this.originalPublishedArticles)}),!1!==this.scope.currentScope.network.settings.configurations.enableCalendar&&this.scope.currentScope.chapter.settings.configurations.enableEventCalendar&&this.eventCalenderService.getEventsForAuthorDashboard().then(s=>{const r=s.map(N=>({...N,type:"event"})),l=r.filter(N=>null!=N.published);this.originalPublishedEvents=l,this.publishedEventsSubject.next(this.originalPublishedEvents);const E=r.filter(N=>null==N.published).map(N=>({...N,accepted:N.created,assigned:N.created}));this.originalApplications=[...this.originalApplications,...E],this.applicationsSubject.next(this.originalApplications)}))}setFilter(s){this.currentFilter=s,this.applyFilter()}applyFilter(){const s=this.filterList(this.originalPublishedArticles,this.currentFilter),r=this.filterList(this.originalPublishedEvents,this.currentFilter),l=this.filterList(this.originalApplications,this.currentFilter);this.publishedArticlesSubject.next(s),this.publishedEventsSubject.next(r),this.applicationsSubject.next(l)}filterList(s,r){return"all"===r?s:s.filter(l=>l.type===r)}setPublishedArticles(s){const r=s.map(l=>({...l,type:"article"}));this.originalPublishedArticles=r,this.applyFilter()}setPublishedEvents(s){this.originalPublishedEvents=s,this.applyFilter()}deleteArticleById(s){this.originalPublishedArticles=this.originalPublishedArticles.filter(r=>r.id!==s),this.originalApplications=this.originalApplications.filter(r=>r.articleId!==s),this.applyFilter()}deleteEventById(s){this.originalPublishedEvents=this.originalPublishedEvents.filter(r=>r.id!==s),this.originalApplications=this.originalApplications.filter(r=>r.id!==s),this.applyFilter()}updateApplication(s){this.originalApplications=this.originalApplications.map(r=>r.id===s.id?s:r),this.applyFilter()}insertDuplicatedApplication(s){this.originalApplications.unshift(s),this.applicationsSubject.next(this.originalApplications)}combineAndSortLists(s,r){return[...s,...r].sort((E,N)=>{const ae=new Date(E.published).getTime();return new Date(N.published).getTime()-ae})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Ka),m.KVO(Ld),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),RO=(()=>{var o;class t{constructor(s,r){this.http=s,this.scopeService=r,this.iosvcApi="",this.scope=this.scopeService.getScope(),this.iosvcApi=`${this.scope.globalSettings.configurations.apiGatewayUrl}${this.scope.globalSettings.configurations.iosvcPath}`}duplicateArticle(s){let l=JSON.stringify({articleId:s,chapterId:this.scope.currentChapter.id,networkId:this.scope.network.id,userGuid:this.scope.profile.guid});return this.http.post(`${this.iosvcApi}/ArticleDuplicate`,l,{headers:{"Content-Type":"application/json"}})}duplicateEvent(s){let l=JSON.stringify({eventGuid:s,chapterId:this.scope.currentChapter.id,networkId:this.scope.network.id,userGuid:this.scope.profile.guid});return this.http.post(`${this.iosvcApi}/EventDuplicate`,l,{headers:{"Content-Type":"application/json"}})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),LT=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.articleService=r,this.authorDataService=l,this.visible=!1,this.articleId="",this.visibleChange=new e.bkB,this.onDelete=()=>{this.articleId&&this.articleService.deleteArticle(this.articleId).then(()=>{this.authorDataService.deleteArticleById(this.articleId),this.visible=!1,this.visibleChange.emit(this.visible)})},this.scope=this.scopeService.getScope()}closePopup(){this.visible=!1,this.visibleChange.emit(this.visible)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(id),e.rXU(gh))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-article-delete-dialog"]],inputs:{visible:"visible",articleId:"articleId"},outputs:{visibleChange:"visibleChange"},standalone:!1,decls:5,vars:9,consts:[[3,"visibleChange","onHiding","visible","showCloseButton","showTitle","title","width","height"],[3,"onClick","text"]],template:function(r,l){1&r&&(e.j41(0,"dx-popup",0),e.mxI("visibleChange",function(N){return e.DH7(l.visible,N)||(l.visible=N),N}),e.bIt("onHiding",function(){return l.closePopup()}),e.j41(1,"p"),e.EFF(2),e.k0s(),e.j41(3,"dx-button",1),e.bIt("onClick",function(){return l.onDelete()}),e.k0s(),e.j41(4,"dx-button",1),e.bIt("onClick",function(){return l.closePopup()}),e.k0s()()),2&r&&(e.R50("visible",l.visible),e.Y8G("showCloseButton",!0)("showTitle",!0)("title",l.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_deleteTitle"))("width",400)("height","auto"),e.R7$(2),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_deleteDescription")),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_common_delete")),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_common_cancel")))},dependencies:[Gn.e,en.i],encapsulation:2}))}return o(),t})(),kO=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.eventService=r,this.authorDataService=l,this.visible=!1,this.eventId="",this.visibleChange=new e.bkB,this.onDelete=()=>{this.eventId&&this.eventService.deleteEvent(this.eventId).then(()=>{this.authorDataService.deleteEventById(this.eventId),this.visible=!1,this.visibleChange.emit(this.visible)})},this.scope=this.scopeService.getScope()}closePopup(){this.visible=!1,this.visibleChange.emit(this.visible)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ld),e.rXU(gh))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-event-delete-dialog"]],inputs:{visible:"visible",eventId:"eventId"},outputs:{visibleChange:"visibleChange"},standalone:!1,decls:5,vars:9,consts:[[3,"visibleChange","onHiding","visible","showCloseButton","showTitle","title","width","height"],[3,"onClick","text"]],template:function(r,l){1&r&&(e.j41(0,"dx-popup",0),e.mxI("visibleChange",function(N){return e.DH7(l.visible,N)||(l.visible=N),N}),e.bIt("onHiding",function(){return l.closePopup()}),e.j41(1,"p"),e.EFF(2),e.k0s(),e.j41(3,"dx-button",1),e.bIt("onClick",function(){return l.onDelete()}),e.k0s(),e.j41(4,"dx-button",1),e.bIt("onClick",function(){return l.closePopup()}),e.k0s()()),2&r&&(e.R50("visible",l.visible),e.Y8G("showCloseButton",!0)("showTitle",!0)("title",l.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_deleteEventDescription"))("width",400)("height","auto"),e.R7$(2),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_deleteDescription")),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_common_delete")),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_common_cancel")))},dependencies:[Gn.e,en.i],encapsulation:2}))}return o(),t})();var zb=p(8761),$c=function(o){return o[o.general=0]="general",o[o.report=1]="report",o[o.announcement=2]="announcement",o}($c||{});let Wp=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.http=r,this.systemRole="",this.aiApiEndpoint="",this.aiApiAuthToken="",this.scope=this.scopeService.getScope();const l=this.scope.currentChapter.name,E=this.scope.network.getResourceOrKeyName("web_editor_ai_system_role_network");this.systemRole=E.replace("{name}",l),this.aiApiEndpoint=this.scope.globalSettings.configurations.aiServiceApiUrl+"/api/AiPrompt/v1",this.aiApiAuthToken=this.scope.globalSettings.configurations.aiServiceApiKey,this.headers=(new ke.Lr).set("X-ApiKey",this.aiApiAuthToken)}isAiEnabled(){return!!this.scope.currentChapter.settings.configurations.aiFeaturesEnabled||(this.openSupportPopup(),!1)}isAiVisible(){return this.scope.network.settings.configurations.aiFeaturesEnabled&&"Redesign2024"==this.scope.network.settings.configurations?.contentRenderEngine}completeArticleHeaders(s){var r=this;return(0,ei.A)(function*(l,E="",N=""){let ae={messages:[{role:"system",content:r.systemRole},{role:"user",content:r.scope.network.getResourceOrKeyName("web_editor_ai_headers_create_prompt")},{role:"assistant",content:l}],responseFormat:{type:"json_schema",json_schema:{name:"completeArticleHeaders",strict:!0,schema:{type:"object",properties:{title:{type:"string"},summary:{type:"string"},keyword:{type:"string"}},required:["title","summary","keyword"],additionalProperties:!1}}},serviceMethod:"completeArticleHeaders",callerMetadata:{type:E,id:N}},ze=yield r.getAiResponse(ae,r.scope.network.slug,r.scope.currentChapter.slug,r.scope.profile.guid);if(console.log("completeArticleHeaders",ze),null!=typeof ze)return ze}).apply(this,arguments)}completeTextSelection(){var s=this;return(0,ei.A)(function*(r="",l="",E="",N=""){let ae="";const ze=yield s.analyzeText(r,E,N);if(0==ze.length||1==ze.offensive||1==ze.lowQuality)return(0,$o.A)(s.scope.network.getResourceOrKeyName("web_editor_ai_text_rejected"),"error",2e3),"";ae="keywords"==ze.textType?s.scope.network.getResourceOrKeyName("web_editor_ai_article_create_prompt").replace("{selection}",r).replace("{fulltext}",l):s.scope.network.getResourceOrKeyName("web_editor_ai_article_improve_prompt").replace("{selection}",r).replace("{fulltext}",l);let dt={messages:[{role:"system",content:s.systemRole},{role:"user",content:ae}],responseFormat:{type:"json_schema",json_schema:{name:"completeArticleHeaders",strict:!0,schema:{type:"object",properties:{text:{type:"string"}},required:["text"],additionalProperties:!1}}},serviceMethod:"completeTextSelection",callerMetadata:{type:E,id:N}},Kt=yield s.getAiResponse(dt,s.scope.network.slug,s.scope.currentChapter.slug,s.scope.profile.guid);return console.log("completeTextSelection",Kt),Kt?Kt.text:""}).apply(this,arguments)}analyzeText(){var s=this;return(0,ei.A)(function*(r="",l="",E=""){let ae={messages:[{role:"user",content:s.scope.network.getResourceOrKeyName("web_editor_ai_analyze_text_prompt").replace("{text}",r)}],responseFormat:{type:"json_schema",json_schema:{name:"completeArticleHeaders",strict:!0,schema:{type:"object",properties:{wordCount:{type:"number"},textType:{type:"string"},lowQuality:{type:"boolean"},offensive:{type:"boolean"}},required:["wordCount","textType","lowQuality","offensive"],additionalProperties:!1}}},serviceMethod:"analyzeText",callerMetadata:{type:l,id:E}},ze=yield s.getAiResponse(ae,s.scope.network.slug,s.scope.currentChapter.slug,s.scope.profile.guid);return console.log("analyzeText",ze),ze||null}).apply(this,arguments)}getQuestions(s,r){var l=this;return(0,ei.A)(function*(E,N,ae="",ze=""){let Kt="";switch(E){case $c.announcement:Kt=l.scope.network.getResourceOrKeyName("web_editor_ai_questions_prompt_announcement");break;case $c.report:Kt=l.scope.network.getResourceOrKeyName("web_editor_ai_questions_prompt_report");break;default:Kt=l.scope.network.getResourceOrKeyName("web_editor_ai_questions_prompt_general")}Kt=Kt.replace("{about}",N).replace("{amount}","3");let Vn={messages:[{role:"system",content:l.systemRole},{role:"user",content:Kt}],responseFormat:{type:"json_schema",json_schema:{name:"getQuestions",strict:!0,schema:{type:"object",properties:{questions:{type:"array",items:{type:"string"}}},required:["questions"],additionalProperties:!1}}},serviceMethod:"getQuestions",callerMetadata:{type:ae,id:ze}},ci=yield l.getAiResponse(Vn,l.scope.network.slug,l.scope.currentChapter.slug,l.scope.profile.guid);return console.log("getQuestions",ci),ci||[]}).apply(this,arguments)}createArticleFromQuestions(s,r,l,E,N){var ae=this;return(0,ei.A)(function*(ze,dt,Kt,Vn,ci,Vi="",Di=""){let Eo="";switch(ze){case $c.announcement:Eo=ae.scope.network.getResourceOrKeyName("web_editor_ai_article_prompt_announcement");break;case $c.report:Eo=ae.scope.network.getResourceOrKeyName("web_editor_ai_article_prompt_report");break;default:Eo=ae.scope.network.getResourceOrKeyName("web_editor_ai_article_prompt_general")}Eo=Eo.replace("{about}",dt).replace("{questions}",Kt).replace("{mood}",ci).replace("{wordcount}",Vn.toString());let uo={messages:[{role:"system",content:ae.systemRole},{role:"user",content:Eo}],responseFormat:{type:"json_schema",json_schema:{name:"completeArticleHeaders",strict:!0,schema:{type:"object",properties:{text:{type:"string"}},required:["text"],additionalProperties:!1}}},serviceMethod:"createArticleFromQuestions",callerMetadata:{type:Vi,id:Di}},Jo=yield ae.getAiResponse(uo,ae.scope.network.slug,ae.scope.currentChapter.slug,ae.scope.profile.guid);return console.log("createArticleFromQuestions",Jo),Jo?Jo.text:""}).apply(this,arguments)}getImageCaption(){var s=this;return(0,ei.A)(function*(r="",l="",E=""){let N={messages:[{role:"user",content:[{type:"text",text:s.scope.network.getResourceOrKeyName("web_editor_ai_caption_prompt")},{type:"image_url",image_url:{url:r}}]}],serviceMethod:"getImageCaption",callerMetadata:{type:l,id:E}},ae=yield s.getAiResponse(N,s.scope.network.slug,s.scope.currentChapter.slug,s.scope.profile.guid);return console.log("getImageCaption",ae),ae?ae.text:""}).apply(this,arguments)}getImage(){var s=this;return(0,ei.A)(function*(r="",l="",E=""){const ae={imageDescription:"Erstelle ein Bild was zu dem folgenden Text passt: \n\n"+r,serviceMethod:"getImage",callerMetadata:{type:l,id:E}};let ze=yield s.getAiImage(ae);return console.log("getImage",ze),ze||""}).apply(this,arguments)}getAiResponse(s,r,l,E){var N=this;return(0,ei.A)(function*(){const ae=yield N.getMetaInformation(),ze=`${N.aiApiEndpoint}/fetchAiResponse`,dt=N.headers,Kt={networkSlug:r,chapterSlug:l,userId:E,aiPrompt:s,metainformation:ae},Vn=yield(0,gs._)(N.http.post(ze,Kt,{headers:dt}));return console.log("ai response:",Vn),Vn})()}getMetaInformation(){var s=this;return(0,ei.A)(function*(){const r=`${s.scope.apiEndpoint}ai/fetchMetaInformation`,l=yield(0,gs._)(s.http.get(r));return console.log("metainformation",l),l})()}getAiImage(s){var r=this;return(0,ei.A)(function*(){const l=r.headers,E=`${r.aiApiEndpoint}/fetchAiImage`,N=yield(0,gs._)(r.http.post(E,s,{headers:l}));return console.log("ai image response:",N),N??""})()}openSupportPopup(){(0,zb.Ie)({title:this.scope.network.getResourceOrKeyName("web_editor_ai_activate_title"),messageHtml:`<div style="max-width:600px"><h2>${this.scope.network.getResourceOrKeyName("web_editor_ai_activate_text")}</h2><p>${this.scope.network.getResourceOrKeyName("web_editor_ai_activate_subtext")}</p></div>`,buttons:[{text:this.scope.network.getResourceOrKeyName("web_editor_ai_activate_decline"),type:"danger",icon:"close",onClick:r=>!1},{text:this.scope.network.getResourceOrKeyName("web_editor_ai_activate_accept"),type:"success",icon:"favorites",stylingMode:"contained",onClick:r=>!0}],dragEnabled:!1}).show().then(r=>{if(r){const l="Orts.Assistent",E=this.scope.network.getResourceOrKeyName("web_editor_ai_activate_contact_address"),N=this.scope.network.getResourceOrKeyName("web_editor_ai_activate_contact_subject").replace("{modulename}",l),ae=this.scope.network.getResourceOrKeyName("web_editor_ai_activate_contact_text").replace("{modulename}",l).replace("{network}",this.scope.network.name).replace("{username}",this.scope.profile.firstName+" "+this.scope.profile.lastName),ze="mailto:"+E+"?subject="+N+"&body="+encodeURIComponent(ae);let dt=window.open(ze,"_blank");dt?dt.focus():document.location=ze}})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Se.A),m.KVO(ke.Qq))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const Kb=()=>({id:"aiAssistantPopup"});function _c(o,t){if(1&o&&(e.j41(0,"h2"),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Lme("",n.articleTypeDescription," : ",n.title)}}function VT(o,t){if(1&o&&e.nrm(0,"dxi-button",20),2&o){const n=e.XpG(2);e.Y8G("hidden",n.reloadQuestionsVisible)("options",n.customQuestionsButton)}}function HT(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-text-box",19),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.about,r)||(l.about=r),m.Njj(r)}),e.bIt("onKeyUp",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onAboutChanged(r))}),e.nVh(1,VT,1,2,"dxi-button",20),e.nrm(2,"div"),e.k0s()}if(2&o){const n=e.XpG();e.R50("value",n.about),e.Y8G("placeholder",n.scope.network.getResourceOrKeyName("web_editor_ai_article_select_topic")),e.R7$(),e.vxM(n.reloadQuestionsVisible?1:-1)}}function Xb(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",22)(1,"div",31),e.EFF(2),e.k0s(),e.nrm(3,"div",32),e.j41(4,"dx-text-area",33),e.mxI("valueChange",function(r){const l=m.eBV(n).$index,E=e.XpG(2);return e.DH7(E.answers[l],r)||(E.answers[l]=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){const l=m.eBV(n).$index,E=e.XpG(2);return m.Njj(E.onAnswerChanged(r,l))}),e.k0s()()}if(2&o){const n=t.$index,s=e.XpG(2);e.Y8G("id","question_"+n),e.R7$(),e.xc7("background-color",s.labelColors[n]),e.R7$(),e.SpI(" ",s.questions[n]," "),e.R7$(),e.xc7("border-top-color",s.labelColors[n]),e.R7$(),e.Y8G("placeholder",s.scope.network.getResourceOrKeyName("web_editor_ai_assistant_answers_hint")),e.R50("value",s.answers[n]),e.Y8G("maxLength",500)("autoResizeEnabled",!0)}}function Yb(o,t){if(1&o){const n=e.RV6();e.j41(0,"h5"),e.EFF(1),e.k0s(),e.j41(2,"div",21),e.Z7z(3,Xb,5,10,"div",22,e.fX1),e.k0s(),e.j41(5,"details",23)(6,"summary"),e.EFF(7),e.k0s(),e.j41(8,"div",24)(9,"div",25)(10,"div",26),e.EFF(11),e.k0s(),e.j41(12,"div",27)(13,"dx-button-group",28),e.mxI("selectedItemKeysChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.selectedLength,r)||(l.selectedLength=r),m.Njj(r)}),e.bIt("onSelectionChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.articleLengthChanged(r))}),e.k0s()()(),e.j41(14,"div",25)(15,"div",26),e.EFF(16),e.k0s(),e.j41(17,"div")(18,"div",27)(19,"dx-button-group",28),e.mxI("selectedItemKeysChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.selectedStyle,r)||(l.selectedStyle=r),m.Njj(r)}),e.bIt("onSelectionChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.articleStyleChanged(r))}),e.k0s()()()(),e.j41(20,"div",25)(21,"dx-switch",29),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.generateHeaders,r)||(l.generateHeaders=r),m.Njj(r)}),e.k0s(),e.j41(22,"div",26),e.EFF(23),e.k0s()()()(),e.j41(24,"dx-button",30),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.createArticle())}),e.EFF(25),e.k0s()}if(2&o){const n=e.XpG();e.R7$(),e.JRh(n.scope.network.getResourceOrKeyName("web_editor_ai_answer_questions")),e.R7$(2),e.Dyx(n.questions),e.R7$(4),e.JRh(n.scope.network.getResourceOrKeyName("web_editor_ai_assistant_settings")),e.R7$(4),e.JRh(n.scope.network.getResourceOrKeyName("web_editor_ai_set_article_length")),e.R7$(2),e.Y8G("items",n.articleLengths),e.R50("selectedItemKeys",n.selectedLength),e.R7$(3),e.JRh(n.scope.network.getResourceOrKeyName("web_editor_ai_set_article_mood")),e.R7$(3),e.Y8G("items",n.articleStyles),e.R50("selectedItemKeys",n.selectedStyle),e.R7$(2),e.R50("value",n.generateHeaders),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_editor_ai_generate_headers")),e.R7$(),e.Y8G("hidden",n.isLoading)("disabled",!n.about||n.answers.includes("")),e.R7$(),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_editor_ai_continue")," ")}}function BO(o,t){if(1&o&&(e.j41(0,"div",18),e.EFF(1),e.k0s()),2&o){const n=t.$index,s=e.XpG();e.Y8G("hidden",n!=s.loadingTextIndex),e.R7$(),e.SpI(" ",s.loadingTexts[n]," ")}}let Ja=(()=>{var o;class t{constructor(s,r){this.aiService=s,this.scopeService=r,this.popupVisible=!1,this.articleType=$c.general,this.title="",this.about="",this.callerId="",this.callerType="",this.generateHeaders=!0,this.generateImage=!0,this.onPopupClosed=new e.bkB,this.onDataGenerated=new e.bkB,this.isLoading=!1,this.articleTypeDescription="",this.aboutVisible=!0,this.reloadQuestionsVisible=!1,this.customInputButton={icon:"arrowright",stylingMode:"text",disabled:this.isLoading,onClick:()=>{this.getQuestions()}},this.customQuestionsButton={icon:"refresh",stylingMode:"text",disabled:this.isLoading,onClick:()=>{this.getQuestions()}},this.questions=[],this.answers=[],this.labelColors=[],this.labelColorInit="#0000001a",this.labelColorShort="#9ed3d0af",this.labelColorLong="#31bd4cff",this.articleLengths=[],this.selectedLength=[],this.articleStyles=[],this.selectedStyle=[],this.loadingTexts=[],this.loadingTextIndex=0,this.animation={show:{type:"slide",duration:600,from:{position:{my:"bottom",at:"top",of:window},opacity:0},to:{position:{my:"center",at:"center",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"center",at:"center",of:window},opacity:1},to:{position:{my:"bottom",at:"top",of:window},opacity:0}}},this.scope=this.scopeService.getScope(),this.articleLengths=[{text:this.scope.network.getResourceOrKeyName("web_editor_ai_article_length_short"),value:100,hint:this.scope.network.getResourceOrKeyName("web_editor_ai_article_length_short")},{text:this.scope.network.getResourceOrKeyName("web_editor_ai_article_length_medium"),value:200,hint:this.scope.network.getResourceOrKeyName("web_editor_ai_article_length_medium")},{text:this.scope.network.getResourceOrKeyName("web_editor_ai_article_length_long"),value:300,hint:this.scope.network.getResourceOrKeyName("web_editor_ai_article_length_long")}],this.selectedLength=[this.articleLengths[1].value],this.articleStyles=[{text:this.scope.network.getResourceOrKeyName("web_editor_ai_article_mood_serious"),value:this.scope.network.getResourceOrKeyName("web_editor_ai_article_mood_serious"),hint:this.scope.network.getResourceOrKeyName("web_editor_ai_article_mood_serious")},{text:this.scope.network.getResourceOrKeyName("web_editor_ai_article_mood_normal"),value:this.scope.network.getResourceOrKeyName("web_editor_ai_article_mood_normal"),hint:this.scope.network.getResourceOrKeyName("web_editor_ai_article_mood_normal")},{text:this.scope.network.getResourceOrKeyName("web_editor_ai_article_mood_funny"),value:this.scope.network.getResourceOrKeyName("web_editor_ai_article_mood_funny"),hint:this.scope.network.getResourceOrKeyName("web_editor_ai_article_mood_funny")}],this.selectedStyle=[this.articleStyles[1].value]}showPopup(){switch(this.articleType){case $c.announcement:this.aboutVisible=!1,this.articleTypeDescription=this.scope.network.getResourceOrKeyName("web_editor_ai_event_announce"),this.getQuestions();break;case $c.report:this.aboutVisible=!1,this.articleTypeDescription=this.scope.network.getResourceOrKeyName("web_editor_ai_event_report"),this.getQuestions()}}closePopup(){this.onPopupClosed.emit()}onAboutChanged(s){this.reloadQuestionsVisible=!0}onAnswerChanged(s,r){if(this.labelColors[r]=0==this.answers[r].length?this.labelColorInit:this.getLabelColor(this.labelColorShort,this.labelColorLong,this.answers[r].length/10*100),document){let l=document.getElementById("question_"+r);l&&l.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}articleLengthChanged(s){this.selectedLength=[s.addedItems[0].value]}articleStyleChanged(s){this.selectedStyle=[s.addedItems[0].value]}getQuestions(){var s=this;return(0,ei.A)(function*(){if(s.about){s.isLoading=!0,s.reloadQuestionsVisible=!1,s.questions=[],s.answers=[];const[r,l]=yield Promise.all([s.aiService.getQuestions(s.articleType,s.about,s.callerType,s.callerId),s.showWaitAnimation([s.scope.network.getResourceOrKeyName("web_editor_ai_action_analyze_text"),s.scope.network.getResourceOrKeyName("web_editor_ai_action_generate_questions")])]);r.questions.length>=1&&(s.questions=r.questions,s.answers=new Array(r.questions.length).fill(""),s.labelColors=new Array(r.questions.length).fill(s.labelColorInit),s.aboutVisible=!1),s.isLoading=!1}})()}createArticle(){var s=this;return(0,ei.A)(function*(){if(!s.about||s.answers.length<s.questions.length)return;s.isLoading=!0;let r={text:"",keyword:"",title:"",summary:"",image:""},l="";for(var E=0;E<s.questions.length;E++)l+=s.questions[E],l+="\n"+s.answers[E]+"\n";const[N,ae]=yield Promise.all([s.aiService.createArticleFromQuestions(s.articleType,s.about,l,s.selectedLength[0],s.selectedStyle[0],s.callerType,s.callerId),s.showWaitAnimation([s.scope.network.getResourceOrKeyName("web_editor_ai_action_analyze_text"),s.scope.network.getResourceOrKeyName("web_editor_ai_action_generate_text")])]);if(r.text=N,s.generateHeaders){const[ze,dt]=yield Promise.all([s.aiService.completeArticleHeaders(r.text,s.callerType,s.callerId),s.showWaitAnimation([s.scope.network.getResourceOrKeyName("web_editor_ai_action_analyze_text"),s.scope.network.getResourceOrKeyName("web_editor_ai_action_generate_headers")])]);ze.hasOwnProperty("title")&&ze.hasOwnProperty("keyword")&&ze.hasOwnProperty("summary")&&(r.keyword=ze.keyword,r.title=ze.title,r.summary=ze.summary)}s.isLoading=!1,s.closePopup(),s.onDataGenerated.emit(r)})()}showWaitAnimation(s){var r=this;return(0,ei.A)(function*(){return r.loadingTexts=s,r.loadingTextIndex=0,new Promise(l=>{const E=setInterval(()=>{r.loadingTextIndex+=1,r.loadingTextIndex>=r.loadingTexts.length&&(clearInterval(E),l(!0))},1200)})})()}getLabelColor(s,r,l){const E=Math.max(0,Math.min(1,l/100)),N=s.slice(1),ae=r.slice(1),ze=parseInt(N.slice(0,2),16),dt=parseInt(N.slice(2,4),16),Kt=parseInt(N.slice(4,6),16),Vn=8===N.length?parseInt(N.slice(6,8),16)/255:1,ci=parseInt(ae.slice(0,2),16),Vi=parseInt(ae.slice(2,4),16),Di=parseInt(ae.slice(4,6),16),Eo=8===ae.length?parseInt(ae.slice(6,8),16)/255:1,uo=Math.round(ze+(ci-ze)*E),Jo=Math.round(dt+(Vi-dt)*E),es=Math.round(Kt+(Di-Kt)*E),Qo=Vn+(Eo-Vn)*E;return`#${uo.toString(16).padStart(2,"0")}${Jo.toString(16).padStart(2,"0")}${es.toString(16).padStart(2,"0")}${Math.round(255*Qo).toString(16).padStart(2,"0")}`}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Wp),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-ai-assistant"]],inputs:{popupVisible:"popupVisible",articleType:"articleType",title:"title",about:"about",callerId:"callerId",callerType:"callerType",generateHeaders:"generateHeaders",generateImage:"generateImage"},outputs:{onPopupClosed:"onPopupClosed",onDataGenerated:"onDataGenerated"},standalone:!1,decls:26,vars:19,consts:[["position","top",3,"visibleChange","onHiding","onShowing","visible","showCloseButton","showTitle","title","wrapperAttr","height","width","animation"],[1,"input-container",3,"hidden"],["width","60","height","60","viewBox","0 0 40 40","version","1.1","id","svg2","xmlns","http://www.w3.org/2000/svg",0,"xmlns","svg","http://www.w3.org/2000/svg"],["cx","20","cy","20","r","15","fill","#9ed3d0","opacity","0.3","id","circle1"],["attributeName","r","values","14;20;0","dur","3s","repeatCount","indefinite","calcMode","linear"],["attributeName","opacity","values","0;0.4;0","dur","3s","repeatCount","indefinite","calcMode","linear"],["id","g2","transform","translate(1.505,1.505)"],["attributeName","transform","type","scale","values","1;1.08;1","keyTimes","0;0.5;1","dur","1.5s","repeatCount","indefinite","calcMode","spline","keySplines","0.4 0 0.2 1"],["d","m 21.55,37 h -6.11 c 0,-8.53 -6.92,-15.45 -15.45,-15.45 v -6.11 c 8.53,0 15.45,-6.92 15.45,-15.45 h 6.11 c 0,8.53 6.92,15.45 15.45,15.45 v 6.11 c -8.53,0 -15.45,6.92 -15.45,15.45 z","stroke","#9ed3d0","stroke-width","2","fill","transparent","id","path2"],["stylingMode","underlined","height","40px","width","60%",3,"valueChange","onEnterKey","value","placeholder","disabled"],["name","question","location","after",3,"options"],[1,"form-container",3,"hidden"],["stylingMode","underlined","width","100%","id","about-header",3,"value","placeholder"],[1,"loading-container",3,"hidden"],["width","40","height","40","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","rx","1","width","10","height","10","fill","var(--colorPrimary)",1,"spinner_9y7u"],["x","1","y","1","rx","1","width","10","height","10","fill","var(--textColor)",1,"spinner_9y7u","spinner_DF2s"],["x","1","y","1","rx","1","width","10","height","10","fill","var(--colorSecondary)",1,"spinner_9y7u","spinner_q27e"],[1,"loading-hints",3,"hidden"],["stylingMode","underlined","width","100%","id","about-header",3,"valueChange","onKeyUp","value","placeholder"],["name","question","location","after",3,"hidden","options"],[1,"questions-container"],[1,"question-container","fly-in",3,"id"],[1,"settings-details"],[1,"settings-container"],[1,"settings-item"],[1,"settings-label"],[1,"button-group-container"],["keyExpr","value","stylingMode","outlined",3,"selectedItemKeysChange","onSelectionChanged","items","selectedItemKeys"],[3,"valueChange","value"],["type","success","stylingMode","outlined","height","50px","width","300px",1,"create-button",3,"onClick","hidden","disabled"],[1,"question-label"],[1,"bottom-arrow"],["stylingMode","underlined","valueChangeEvent","keyup blur",3,"valueChange","onValueChanged","placeholder","value","maxLength","autoResizeEnabled"]],template:function(r,l){1&r&&(e.j41(0,"dx-popup",0),e.mxI("visibleChange",function(N){return e.DH7(l.popupVisible,N)||(l.popupVisible=N),N}),e.bIt("onHiding",function(){return l.closePopup()})("onShowing",function(){return l.showPopup()}),e.j41(1,"div",1),m.qSk(),e.j41(2,"svg",2)(3,"circle",3),e.nrm(4,"animate",4)(5,"animate",5),e.k0s(),e.j41(6,"g",6),e.nrm(7,"animateTransform",7)(8,"path",8),e.k0s()(),m.joV(),e.j41(9,"h1"),e.EFF(10),e.k0s(),e.j41(11,"dx-text-box",9),e.mxI("valueChange",function(N){return e.DH7(l.about,N)||(l.about=N),N}),e.bIt("onEnterKey",function(){return l.getQuestions()}),e.nrm(12,"dxi-button",10),e.k0s()(),e.j41(13,"div",11),e.nVh(14,_c,2,2,"h2")(15,HT,3,3,"dx-text-box",12),e.nVh(16,Yb,26,13),e.k0s(),e.j41(17,"div",13),m.qSk(),e.j41(18,"svg",14)(19,"style"),e.EFF(20," .spinner_9y7u { animation: spinner_fUkk 2.4s linear infinite; animation-delay: -2.4s } .spinner_DF2s { animation-delay: -1.6s } .spinner_q27e { animation-delay: -.8s } @keyframes spinner_fUkk { 8.33% { x: 13px; y: 1px } 25% { x: 13px; y: 1px } 33.3% { x: 13px; y: 13px\n} 50% {\nx: 13px;\ny: 13px\n} 58.33% {\nx: 1px;\ny: 13px\n} 75% {\nx: 1px;\ny: 13px\n} 83.33% {\nx: 1px;\ny: 1px\n}\n}\n"),e.k0s(),e.nrm(21,"rect",15)(22,"rect",16)(23,"rect",17),e.k0s(),e.Z7z(24,BO,2,2,"div",18,e.fX1),e.k0s()()),2&r&&(e.R50("visible",l.popupVisible),e.Y8G("showCloseButton",!0)("showTitle",!0)("title",l.scope.network.getResourceOrKeyName("web_editor_ai_article_assistant"))("wrapperAttr",e.lJ4(18,Kb))("height","98vh")("width","98%")("animation",l.animation),e.R7$(),e.Y8G("hidden",!l.aboutVisible),e.R7$(9),e.JRh(l.scope.network.getResourceOrKeyName("web_editor_ai_article_select_topic")),e.R7$(),e.R50("value",l.about),e.Y8G("placeholder",l.scope.network.getResourceOrKeyName("web_editor_ai_assistant_input_hint"))("disabled",l.isLoading),e.R7$(),e.Y8G("options",l.customInputButton),e.R7$(),e.Y8G("hidden",l.aboutVisible),e.R7$(),e.vxM(l.articleTypeDescription&&l.title?14:15),e.R7$(2),e.vxM(l.questions.length>0?16:-1),e.R7$(),e.Y8G("hidden",!l.isLoading),e.R7$(7),e.Dyx(l.loadingTexts))},dependencies:[Wr.D,Gn.e,Bo.BrI,en.i,Zn.Y,mi._,gi.m],styles:['#aiAssistantPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:var(--designContentWidth);max-width:var(--designContentWidth)}@media (max-width: 768px){  #aiAssistantPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:100%;max-width:100%}}.dx-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{padding-right:8px}.input-container[_ngcontent-%COMP%]{width:100%;height:60%;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:40px}.dx-button-success[_ngcontent-%COMP%]{font-size:x-large}.form-container[_ngcontent-%COMP%]{width:100%;padding-inline:20%;padding-block:28px;display:flex;flex-direction:column;align-items:center;gap:40px}@media (max-width: 768px){.form-container[_ngcontent-%COMP%]{padding-inline:4%}}.form-container[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{width:100%}#about-header[_ngcontent-%COMP%]     .dx-texteditor-input{text-align:center;font-weight:700;font-size:1.25rem}.questions-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px}.question-container[_ngcontent-%COMP%]{width:500px}@media (max-width: 768px){.question-container[_ngcontent-%COMP%]{width:auto}}.question-label[_ngcontent-%COMP%]{position:relative;min-height:80px;margin-bottom:30px;padding:10px;border-radius:4px;align-content:center}.bottom-arrow[_ngcontent-%COMP%]{content:"";position:relative;left:50%;top:-30px;margin-left:-50px;width:0;height:0;border-top:25px solid;border-top-color:var(--black-10);border-left:40px solid transparent;border-right:40px solid transparent}.settings-details[_ngcontent-%COMP%]{width:100%;font-size:large}.settings-details[_ngcontent-%COMP%]   .settings-container[_ngcontent-%COMP%]{padding-block:20px;display:flex;flex-direction:column;gap:28px}.settings-details[_ngcontent-%COMP%]   .settings-container[_ngcontent-%COMP%]   .settings-item[_ngcontent-%COMP%]{display:inline-flex;gap:20px}.settings-details[_ngcontent-%COMP%]   .settings-container[_ngcontent-%COMP%]   .settings-item[_ngcontent-%COMP%]   .settings-label[_ngcontent-%COMP%]{font-size:1rem;color:var(--textColor60);align-content:center}.settings-details[_ngcontent-%COMP%]   .settings-container[_ngcontent-%COMP%]   .settings-item[_ngcontent-%COMP%]   .settings-label[_ngcontent-%COMP%]   .button-group-container[_ngcontent-%COMP%]{display:inline-flex;height:fit-content}.create-button[_ngcontent-%COMP%]{width:200px;font-weight:700}.loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:10px;justify-content:center;align-items:center;margin-block:40px}.fly-in[_ngcontent-%COMP%]{opacity:0;transform:translate(100%);animation:_ngcontent-%COMP%_flyIn 1s ease forwards}.fly-in[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.fly-in[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}@keyframes _ngcontent-%COMP%_flyIn{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}.loading-hints[_ngcontent-%COMP%]{width:200px;font-family:monospace;animation:_ngcontent-%COMP%_loadIng .7s ease forwards}@keyframes _ngcontent-%COMP%_loadIng{0%{opacity:0;transform:translate(100px)}to{opacity:1;transform:translate(0)}}']}))}return o(),t})();function Qb(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG(2);e.SpI(" ",n.scope.network.getResourceOrKeyName("web_editor_ai_event_announce")," ")}}function FO(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG(2);e.SpI(" ",n.scope.network.getResourceOrKeyName("web_editor_ai_event_report")," ")}}function Zb(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",0)(1,"dx-button",1),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.startAssistant())}),e.j41(2,"div"),m.qSk(),e.j41(3,"svg",2),e.nrm(4,"path",3),e.k0s()(),m.joV(),e.j41(5,"span",4),e.nVh(6,Qb,1,1)(7,FO,1,1),e.k0s()(),e.j41(8,"app-ai-assistant",5),e.bIt("onPopupClosed",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.onAssistantClosed())})("onDataGenerated",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onTextGenerated(r))}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("hint",n.scope.network.getResourceOrKeyName(n.isComingUp?"web_editor_ai_event_announce_hint":"web_editor_ai_event_report_hint"))("disabled",n.assistantVisible),e.R7$(5),e.vxM(n.isComingUp?6:7),e.R7$(2),e.Y8G("popupVisible",n.assistantVisible)("articleType",n.articleType)("title",n.data.text)("about",n.articleAbout)("callerId",n.data.id)}}let UT=(()=>{var o;class t{constructor(s,r,l,E){this.articleService=s,this.eventCalendarService=r,this.aiService=l,this.scopeService=E,this.isVisible=!1,this.isComingUp=!1,this.assistantVisible=!1,this.articleType=$c.report,this.articleAbout="",this.scope=this.scopeService.getScope()}ngOnInit(){if("event"===this.data.type&&this.data.published&&this.aiService.isAiVisible()){const s=Date.now(),r=Date.parse(this.data.start),l=(r-s)/864e5;r>s&&Math.abs(l)<=21?(this.isVisible=!0,this.isComingUp=!0,this.articleType=$c.announcement):r<s&&Math.abs(l)<=7&&(this.isVisible=!0,this.isComingUp=!1,this.articleType=$c.report)}}startAssistant(){var s=this;return(0,ei.A)(function*(){if(!s.aiService.isAiEnabled())return;const r=yield s.eventCalendarService.getEvent(s.data.id);s.articleAbout=r.summary+"\n"+s.scope.network.getResourceOrKeyName("admin_common_date")+r.start+"\n"+r.htmlDescription,s.assistantVisible=!0})()}onAssistantClosed(){this.assistantVisible=!1}onTextGenerated(s){this.assistantVisible=!1,this.createArticle(s.text,s.title,s.summary,s.keyword)}createArticle(s,r,l,E){var N=this;return(0,ei.A)(function*(){const ae=yield N.articleService.createArticle(),dt={id:ae.id,summary:l,texts:[{heading:E,text:r}],markdown:"",coverAssetImages:[],chapterSlugs:[],googleNewsCheck:0,jsonDocument:JSON.stringify({doc:{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:s}]}]},comments:[],metadata:[]}),HtmlDocument:"",articleExternalLinkUrl:""};yield N.articleService.updateArticle(dt),window.location.href=N.scope.currentChapter.path+`${ae.path}/edit`})()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(id),e.rXU(Ld),e.rXU(Wp),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-ai-generate-event-article"]],inputs:{data:"data"},standalone:!1,decls:1,vars:1,consts:[[1,"author-dashboard-lists-item-ai"],["stylingMode","outlined",3,"onClick","hint","disabled"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 37 37"],["d","M21.55,37h-6.11c0-8.53-6.92-15.45-15.45-15.45v-6.11c8.53,0,15.45-6.92,15.45-15.45h6.11c0,8.53,6.92,15.45,15.45,15.45v6.11c-8.53,0-15.45,6.92-15.45,15.45Z","fill","#9ed3d0",1,"cls-1"],[1,"dx-button-text"],["callerType","event",3,"onPopupClosed","onDataGenerated","popupVisible","articleType","title","about","callerId"]],template:function(r,l){1&r&&e.nVh(0,Zb,9,8,"div",0),2&r&&e.vxM(l.isVisible?0:-1)},dependencies:[Gn.e,Ja],styles:[".author-dashboard-lists-item-ai[_ngcontent-%COMP%]{margin-block:8px}.dx-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-left:8px}"]}))}return o(),t})();const Jb=()=>({width:150});function qb(o,t){1&o&&e.nrm(0,"i",3)}function ex(o,t){1&o&&e.nrm(0,"i",4)}function jT(o,t){1&o&&e.nrm(0,"i",5)}let zp=(()=>{var o;class t{constructor(s,r,l,E,N,ae){this.scopeService=s,this.authorService=r,this.auhtorDataService=l,this.duplicationService=E,this.toasterService=N,this.eventCalendarService=ae,this.showArticleDeleteDialog=!1,this.showEventDeleteDialog=!1,this.pendingShowNoApplyButton=!1,this.showApplyButtons=!1,this.snipIcon=!1,this.dropDownButtonVisible=!0,this.articleIdToDelete="",this.dropDownButtonMenuItemClick=ze=>{switch(ze){case"edit":"article"==this.data.type?window.location.href=this.scope.currentScope.chapter.path+this.data.path+"/edit":"event"==this.data.type&&(window.location.href=this.scope.currentScope.chapter.path+"/events/"+this.data.id+"/edit");break;case"delete":"article"==this.data.type?(this.articleIdToDelete=this.data?.published?this.data.id:this.data.articleId,this.showArticleDeleteDialog=!0):"event"==this.data.type&&(this.showEventDeleteDialog=!0);break;case"duplicate":"article"==this.data.type?this.duplicateArticle(this.data.published?this.data.id:this.data.articleId):"event"==this.data.type&&this.duplicateEvent(this.data.id);break;case"statistics":window.location.href=this.scope.currentScope.chapter.path+this.data.path+"/report"}},this.reject=()=>{this.authorService.rejectSnip(this.data).then(ze=>{ze.type=this.data.type,this.auhtorDataService.updateApplication(ze)})},this.allocate=()=>{this.authorService.allocateSnip(this.data).then(ze=>{ze.type=this.data.type,this.auhtorDataService.updateApplication(ze)})},this.noApply=()=>{this.authorService.noApplySnip(this.data).then(ze=>{ze.type=this.data.type,this.auhtorDataService.updateApplication(ze)})},this.scope=this.scopeService.getScope(),this.dropDownButtonOptions=[{icon:"fa-solid fa-pencil",text:this.scope.currentScope.network.resources.web_author_dashboard_edit,iconType:"edit"},{icon:"fa-solid fa-trash-can",text:this.scope.currentScope.network.resources.web_common_delete,iconType:"delete"},{icon:"fa-regular fa-copy",text:this.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_articleDuplicate_buttonText"),iconType:"duplicate"}]}ngOnInit(){null!=this.data.published&&"article"==this.data.type&&this.dropDownButtonOptions.push({icon:"fa-solid fa-chart-line",text:this.scope.currentScope.network.getResourceOrKeyName("web_report_statistics"),iconType:"statistics"}),this.showApplyButtons=!!this.data.assigned&&!this.data.accepted&&!this.data.userCanceled,this.pendingShowNoApplyButton=!(this.data.assigned||this.data.accepted||this.data.userCanceled||this.data.published),this.dropDownButtonVisible=!this.showApplyButtons&&!this.pendingShowNoApplyButton}duplicateArticle(s){this.duplicationService.duplicateArticle(s).subscribe({next:r=>{let l=this.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_articleDuplicate_success");this.toasterService.popSuccessToast(l),r.chapterSlug=this.scope.currentChapter.slug,r.type="article",this.auhtorDataService.insertDuplicatedApplication(r)},error:r=>{let l=this.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_articleDuplicate_error")+": "+r.message;this.toasterService.popErrorToast(l)}})}duplicateEvent(s){this.duplicationService.duplicateEvent(s).subscribe({next:r=>{this.eventCalendarService.invalidateEvents();let l=this.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_eventDuplicate_success");this.toasterService.popSuccessToast(l),r.type="event",this.auhtorDataService.insertDuplicatedApplication(r)},error:r=>{let l=this.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_eventDuplicate_error")+": "+r.message;this.toasterService.popErrorToast(l)}})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ka),e.rXU(gh),e.rXU(RO),e.rXU(ch),e.rXU(Ld))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-author-dashboard-lists-item"]],inputs:{data:"data"},standalone:!1,decls:21,vars:23,consts:[[1,"author-dashboard-lists-item-base"],[1,"d-flex"],[1,"author-dashboard-lists-item-icon"],[1,"fa-regular","fa-file-lines"],[1,"fa-solid","fa-calendar-days"],[1,"icon-snippet-start","size-60","green"],[1,"author-dashboard-lists-item-data"],[1,"author-dashboard-lists-item-text"],[1,"author-dashboard-lists-item-date"],[3,"data"],[1,"author-dashboard-lists-item-button-container"],["text","","icon","overflow","stylingMode","text","type","normal",1,"author-dashboard-lists-item-button",3,"onItemClick","dropDownOptions","items","showArrowIcon","visible","useItemTextAsTitle"],[1,"author-dashboard-lists-item-apply-button-container"],[3,"onClick","text","visible"],["text","scope.network.getResourceOrKeyName('web_common_decline')",3,"onClick","visible"],[3,"visibleChange","visible","articleId"],[3,"visibleChange","visible","eventId"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.nVh(3,qb,1,0,"i",3)(4,ex,1,0,"i",4)(5,jT,1,0,"i",5),e.k0s(),e.j41(6,"div",6)(7,"div",7),e.EFF(8),e.k0s(),e.j41(9,"div",8),e.EFF(10),e.nI1(11,"date"),e.k0s(),e.nrm(12,"app-ai-generate-event-article",9),e.k0s(),e.j41(13,"div",10)(14,"dx-drop-down-button",11),e.bIt("onItemClick",function(N){return l.dropDownButtonMenuItemClick(N.itemData.iconType)}),e.k0s(),e.j41(15,"div",12)(16,"dx-button",13),e.bIt("onClick",function(){return l.allocate()}),e.k0s(),e.j41(17,"dx-button",13),e.bIt("onClick",function(){return l.reject()}),e.k0s(),e.j41(18,"dx-button",14),e.bIt("onClick",function(){return l.noApply()}),e.k0s()()()()(),e.j41(19,"app-article-delete-dialog",15),e.mxI("visibleChange",function(N){return e.DH7(l.showArticleDeleteDialog,N)||(l.showArticleDeleteDialog=N),N}),e.k0s(),e.j41(20,"app-event-delete-dialog",16),e.mxI("visibleChange",function(N){return e.DH7(l.showEventDeleteDialog,N)||(l.showEventDeleteDialog=N),N}),e.k0s()),2&r&&(e.R7$(3),e.vxM(l.showApplyButtons||"article"!=l.data.type?l.showApplyButtons||"event"!=l.data.type?"article"==l.data.type&&(l.showApplyButtons||l.pendingShowNoApplyButton)?5:-1:4:3),e.R7$(5),e.SpI(" ",l.data.text??l.scope.network.getResourceOrKeyName("web_author_dashboard_no_title")," "),e.R7$(2),e.Lme(" ",l.scope.network.getResourceOrKeyName("web_author_dashborad_item_date")," ",e.i5U(11,19,l.data.published??l.data.created,"dd.MM.yyyy HH:mm")," "),e.R7$(2),e.Y8G("data",l.data),e.R7$(2),e.Y8G("dropDownOptions",e.lJ4(22,Jb))("items",l.dropDownButtonOptions)("showArrowIcon",!1)("visible",l.dropDownButtonVisible)("useItemTextAsTitle",!1),e.R7$(2),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_common_accept"))("visible",l.showApplyButtons),e.R7$(),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_common_decline"))("visible",l.showApplyButtons),e.R7$(),e.Y8G("visible",l.pendingShowNoApplyButton),e.R7$(),e.R50("visible",l.showArticleDeleteDialog),e.Y8G("articleId",l.articleIdToDelete),e.R7$(),e.R50("visible",l.showEventDeleteDialog),e.Y8G("eventId",l.data.id))},dependencies:[Gn.e,Po.h,LT,kO,UT,C.vh],styles:[".author-dashboard-lists-item-base[_ngcontent-%COMP%]{margin-left:32px;margin-bottom:12px;min-height:75px}@media (max-width: 768px){.author-dashboard-lists-item-base[_ngcontent-%COMP%]{margin-left:8px}}.author-dashboard-lists-item-base[_ngcontent-%COMP%]   .author-dashboard-lists-item-icon[_ngcontent-%COMP%]{width:60px;height:60px;aspect-ratio:1/1;background-color:#bbbbbbb3;display:flex;justify-content:center;align-items:center;border-radius:50%;margin-right:16px}.author-dashboard-lists-item-base[_ngcontent-%COMP%]   .author-dashboard-lists-item-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:32px;color:#fff}.author-dashboard-lists-item-base[_ngcontent-%COMP%]   .author-dashboard-lists-item-text[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;font-family:var(--fontPrimary);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.author-dashboard-lists-item-base[_ngcontent-%COMP%]   .author-dashboard-lists-item-text[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;font-family:var(--fontPrimary)}@media (max-width: 768px){.author-dashboard-lists-item-base[_ngcontent-%COMP%]   .author-dashboard-lists-item-text[_ngcontent-%COMP%]{font-size:1rem}}.author-dashboard-lists-item-base[_ngcontent-%COMP%]   .author-dashboard-lists-item-button-container[_ngcontent-%COMP%]{margin-left:auto;align-content:center}.author-dashboard-lists-item-base[_ngcontent-%COMP%]   .author-dashboard-lists-item-button-container[_ngcontent-%COMP%]   .author-dashboard-lists-item-apply-button-container[_ngcontent-%COMP%]{display:flex;gap:1.5rem}@media (max-width: 768px){.author-dashboard-lists-item-base[_ngcontent-%COMP%]   .author-dashboard-lists-item-button-container[_ngcontent-%COMP%]   .author-dashboard-lists-item-apply-button-container[_ngcontent-%COMP%]{gap:.7rem;flex-direction:column}}"]}))}return o(),t})();function LO(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"app-author-dashboard-lists-item",8),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.Y8G("data",n)}}let hC=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.authorDataService=r,this.displayedListLimit=20,this.displayedListIncrement=10,this.filteredData=[],this.publishedListLength=0,this.fullData=[],this.scope=this.scopeService.getScope()}ngOnInit(){this.publishedListSubscription=this.authorDataService.publishedList$.subscribe(s=>{this.fullData=s,this.publishedListLength=s.length,this.filteredData=s.slice(0,this.displayedListLimit)})}ngOnChanges(){}loadMore(){this.displayedListLimit+=this.displayedListIncrement,this.filteredData=this.fullData.slice(0,this.displayedListLimit)}ngOnDestroy(){this.publishedListSubscription&&this.publishedListSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(gh))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-author-published-list"]],standalone:!1,features:[e.OA$],decls:14,vars:9,consts:[[1,"author-published-article-list-base"],[1,"head"],[1,"title"],[1,"dashboard-counter"],[1,"d-flex","justify-content-center","mt-3"],[1,"",3,"click","visible"],[1,"showMoreButton"],[1,"icon-caret-down"],[3,"data"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"span",2),e.EFF(3),e.k0s(),e.j41(4,"div",3)(5,"span"),e.EFF(6),e.k0s()()(),e.Z7z(7,LO,2,1,"div",null,e.fX1),e.j41(9,"div",4)(10,"dx-button",5),e.bIt("click",function(){return l.loadMore()}),e.j41(11,"div",6),e.nrm(12,"i",7),e.EFF(13),e.k0s()()()()),2&r&&(e.R7$(3),e.JRh(l.scope.network.getResourceOrKeyName("admin_article_index_publishedDescription")),e.R7$(3),e.JRh(l.publishedListLength),e.R7$(),e.Dyx(l.filteredData),e.R7$(3),e.Y8G("visible",l.publishedListLength>l.displayedListLimit),e.R7$(3),e.ZXR(" ",l.scope.network.getResourceOrKeyName("web_profileAuthor_showMore_0")," ",l.displayedListIncrement," ",l.scope.network.getResourceOrKeyName("web_profileAuthor_showMore_1")," (",l.displayedListLimit," ",l.scope.network.getResourceOrKeyName("web_profileAuthor_showMore_2")," ",l.publishedListLength,") "))},dependencies:[Gn.e,zp],styles:[".author-published-article-list-base[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{display:flex;margin-bottom:1rem}.author-published-article-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#00000080;margin-left:1rem;width:2rem;height:2rem}.author-published-article-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff;font-size:1.3rem}@media (max-width: 768px){.author-published-article-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:1.15rem}}.author-published-article-list-base[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-transform:uppercase;font-size:1.3rem;font-family:var(--fontPrimary);color:var(--textColor90);font-weight:700}@media (max-width: 768px){.author-published-article-list-base[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1.15rem}}"]}))}return o(),t})();function tx(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"app-author-dashboard-lists-item",4),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.Y8G("data",n)}}let nx=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.authorDataService=r,this.scope=this.scopeService.getScope()}ngOnInit(){this.applicationListSubscription=this.authorDataService.applications$.subscribe(s=>{const r=s.filter(l=>!!l.assigned&&!!l.accepted&&!l.scheduledPublish);this.applications=r.sort((l,E)=>{const N=new Date(l.accepted).getTime();return new Date(E.accepted).getTime()-N})})}ngOnDestroy(){this.applicationListSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(gh))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-in-progress-list"]],standalone:!1,decls:9,vars:2,consts:[[1,"author-progress-list-base"],[1,"head"],[1,"title"],[1,"dashboard-counter"],[3,"data"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"span",2),e.EFF(3),e.k0s(),e.j41(4,"div",3)(5,"span"),e.EFF(6),e.k0s()()(),e.Z7z(7,tx,2,1,"div",null,e.fX1),e.k0s()),2&r&&(e.R7$(3),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_isProcessing")),e.R7$(3),e.JRh(l.applications.length),e.R7$(),e.Dyx(l.applications))},dependencies:[zp],styles:[".author-progress-list-base[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{display:flex;margin-bottom:1rem}.author-progress-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#00000080;margin-left:1rem;width:2rem;height:2rem}.author-progress-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff;font-size:1.3rem}@media (max-width: 768px){.author-progress-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:1.15rem}}.author-progress-list-base[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-transform:uppercase;font-size:1.3rem;font-family:var(--fontPrimary);color:var(--textColor90);font-weight:700}@media (max-width: 768px){.author-progress-list-base[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1.15rem}}"]}))}return o(),t})();function ix(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"app-author-dashboard-lists-item",4),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.Y8G("data",n)}}let VO=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.authorDataService=r,this.scope=this.scopeService.getScope()}ngOnInit(){this.applicationListSubscription=this.authorDataService.applications$.subscribe(s=>{const r=s.filter(l=>!!l.publishRequested);this.applications=r.sort((l,E)=>{const N=new Date(l.publishRequested).getTime();return new Date(E.publishRequested).getTime()-N})})}ngOnDestroy(){this.applicationListSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(gh))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-in-release-list"]],standalone:!1,decls:9,vars:2,consts:[[1,"author-in-release-list-base"],[1,"head"],[1,"title"],[1,"dashboard-counter"],[3,"data"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"span",2),e.EFF(3),e.k0s(),e.j41(4,"div",3)(5,"span"),e.EFF(6),e.k0s()()(),e.Z7z(7,ix,2,1,"div",null,e.fX1),e.k0s()),2&r&&(e.R7$(3),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_isRelease")),e.R7$(3),e.JRh(l.applications.length),e.R7$(),e.Dyx(l.applications))},dependencies:[zp],styles:[".author-in-release-list-base[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{display:flex;margin-bottom:1rem}.author-in-release-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#00000080;margin-left:1rem;width:2rem;height:2rem}.author-in-release-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff;font-size:1.3rem}@media (max-width: 768px){.author-in-release-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:1.15rem}}.author-in-release-list-base[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-transform:uppercase;font-size:1.3rem;font-family:var(--fontPrimary);color:var(--textColor90);font-weight:700}@media (max-width: 768px){.author-in-release-list-base[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1.15rem}}"]}))}return o(),t})();function ox(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"app-author-dashboard-lists-item",4),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.Y8G("data",n)}}let sx=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.authorDataService=r,this.scope=this.scopeService.getScope()}ngOnInit(){this.applicationListSubscription=this.authorDataService.applications$.subscribe(s=>{const r=s.filter(l=>!!l.assigned&&!l.accepted&&!l.userCanceled);this.applications=r.sort((l,E)=>{const N=new Date(l.assigned).getTime();return new Date(E.assigned).getTime()-N})})}ngOnDestroy(){this.applicationListSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(gh))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-job-request-list"]],standalone:!1,decls:9,vars:2,consts:[[1,"author-job-request-list-base"],[1,"head"],[1,"title"],[1,"dashboard-counter"],[3,"data"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"span",2),e.EFF(3),e.k0s(),e.j41(4,"div",3)(5,"span"),e.EFF(6),e.k0s()()(),e.Z7z(7,ox,2,1,"div",null,e.fX1),e.k0s()),2&r&&(e.R7$(3),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_jobRequests")),e.R7$(3),e.JRh(l.applications.length),e.R7$(),e.Dyx(l.applications))},dependencies:[zp],styles:[".author-job-request-list-base[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{display:flex;margin-bottom:1rem}.author-job-request-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#00000080;margin-left:1rem;width:2rem;height:2rem}.author-job-request-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff;font-size:1.3rem}@media (max-width: 768px){.author-job-request-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:1.15rem}}.author-job-request-list-base[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-transform:uppercase;font-size:1.3rem;font-family:var(--fontPrimary);color:var(--textColor90);font-weight:700}@media (max-width: 768px){.author-job-request-list-base[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1.15rem}}"]}))}return o(),t})();function HO(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"app-author-dashboard-lists-item",4),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.Y8G("data",n)}}let $O=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.authorDataService=r,this.scope=this.scopeService.getScope()}ngOnInit(){this.applicationListSubscription=this.authorDataService.applications$.subscribe(s=>{const r=s.filter(l=>!l.assigned&&!l.accepted&&!l.userCanceled);this.applications=r.sort((l,E)=>{const N=new Date(l.accepted).getTime();return new Date(E.accepted).getTime()-N})})}ngOnDestroy(){this.applicationListSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(gh))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-ongoing-applications-list"]],standalone:!1,decls:9,vars:2,consts:[[1,"author-ongoing-applications-list-base"],[1,"head"],[1,"title"],[1,"dashboard-counter"],[3,"data"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"span",2),e.EFF(3),e.k0s(),e.j41(4,"div",3)(5,"span"),e.EFF(6),e.k0s()()(),e.Z7z(7,HO,2,1,"div",null,e.fX1),e.k0s()),2&r&&(e.R7$(3),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_pendingApplications")),e.R7$(3),e.JRh(l.applications.length),e.R7$(),e.Dyx(l.applications))},dependencies:[zp],styles:[".author-ongoing-applications-list-base[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{display:flex;margin-bottom:1rem}.author-ongoing-applications-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#00000080;margin-left:1rem;width:2rem;height:2rem}.author-ongoing-applications-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff;font-size:1.3rem}@media (max-width: 768px){.author-ongoing-applications-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:1.15rem}}.author-ongoing-applications-list-base[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-transform:uppercase;font-size:1.3rem;font-family:var(--fontPrimary);color:var(--textColor90);font-weight:700}@media (max-width: 768px){.author-ongoing-applications-list-base[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1.15rem}}"]}))}return o(),t})();function UO(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"app-author-dashboard-lists-item",4),e.k0s()),2&o){const n=t.$implicit;e.R7$(),e.Y8G("data",n)}}let GT=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.authorDataService=r,this.scope=this.scopeService.getScope()}ngOnInit(){this.applicationListSubscription=this.authorDataService.applications$.subscribe(s=>{const r=s.filter(l=>!!l.assigned&&!!l.accepted&&!!l.scheduledPublish);this.applications=r.sort((l,E)=>{const N=new Date(l.created).getTime();return new Date(E.created).getTime()-N})})}ngOnDestroy(){this.applicationListSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(gh))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-schedule-list"]],standalone:!1,decls:9,vars:2,consts:[[1,"author-schedule-list-base"],[1,"head"],[1,"title"],[1,"dashboard-counter"],[3,"data"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"span",2),e.EFF(3),e.k0s(),e.j41(4,"div",3)(5,"span"),e.EFF(6),e.k0s()()(),e.Z7z(7,UO,2,1,"div",null,e.fX1),e.k0s()),2&r&&(e.R7$(3),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_is_planned")),e.R7$(3),e.JRh(l.applications.length),e.R7$(),e.Dyx(l.applications))},dependencies:[zp],styles:[".author-schedule-list-base[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{display:flex;margin-bottom:1rem}.author-schedule-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#00000080;margin-left:1rem;width:2rem;height:2rem}.author-schedule-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff;font-size:1.3rem}@media (max-width: 768px){.author-schedule-list-base[_ngcontent-%COMP%]   .dashboard-counter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:1.15rem}}.author-schedule-list-base[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-transform:uppercase;font-size:1.3rem;font-family:var(--fontPrimary);color:var(--textColor90);font-weight:700}@media (max-width: 768px){.author-schedule-list-base[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1.15rem}}"]}))}return o(),t})();function jO(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",4)(1,"dx-select-box",11),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.filterLists(r))}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("dataSource",n.filterData)("placeholder",n.scope.network.getResourceOrKeyName("web_common_filter"))}}function rx(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"i",14),e.j41(2,"span",15),e.EFF(3),e.k0s(),e.nrm(4,"dx-load-indicator",16),e.k0s()),2&o){const n=e.XpG(2);e.R7$(3),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_newArticle")),e.R7$(),e.Y8G("visible",n.loadIndicatorArticleVisible)}}function f_(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",12),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.createArticle())}),e.DNE(1,rx,5,2,"div",13),e.k0s()}2&o&&(e.R7$(),e.Y8G("dxTemplateOf","content"))}function GO(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"i",18),e.j41(2,"span",15),e.EFF(3),e.k0s(),e.nrm(4,"dx-load-indicator",16),e.k0s()),2&o){const n=e.XpG(2);e.R7$(3),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_newEvent")),e.R7$(),e.Y8G("visible",n.loadIndicatorEventVisible)}}function m_(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",17),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.createEvent())}),e.DNE(1,GO,5,2,"div",13),e.k0s()}2&o&&(e.R7$(),e.Y8G("dxTemplateOf","content"))}function WO(o,t){if(1&o&&(e.j41(0,"div")(1,"span",15),e.EFF(2),e.k0s(),e.nrm(3,"dx-load-indicator",16),e.k0s()),2&o){const n=e.XpG(2);e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_newArticle")),e.R7$(),e.Y8G("visible",n.loadIndicatorArticleVisible)}}function zO(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",12),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.createArticle())}),e.DNE(1,WO,4,2,"div",13),e.k0s()}2&o&&(e.R7$(),e.Y8G("dxTemplateOf","content"))}function pC(o,t){if(1&o&&(e.j41(0,"div")(1,"span",15),e.EFF(2),e.k0s(),e.nrm(3,"dx-load-indicator",16),e.k0s()),2&o){const n=e.XpG(2);e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authorDashboard_newEvent")),e.R7$(),e.Y8G("visible",n.loadIndicatorEventVisible)}}function Qf(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",17),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.createEvent())}),e.DNE(1,pC,4,2,"div",13),e.k0s()}2&o&&(e.R7$(),e.Y8G("dxTemplateOf","content"))}function gC(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",4)(1,"dx-select-box",19),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.filterLists(r))}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("dataSource",n.filterData)("placeholder",n.scope.network.getResourceOrKeyName("web_common_filter"))}}function fC(o,t){1&o&&(e.j41(0,"div",10),e.nrm(1,"app-job-request-list"),e.k0s(),e.j41(2,"div",10),e.nrm(3,"app-ongoing-applications-list"),e.k0s())}let sd=(()=>{var o;class t{constructor(s,r,l,E,N){this.scopeService=s,this.profileService=r,this.authorDataService=l,this.articleService=E,this.eventCalendarService=N,this.canCreateEvents=!1,this.publishedListSubscription=null,this.createEventButtonEnabled=!1,this.createArticleButtonEnabled=!1,this.filterData=[],this.disableAuthorApplications=!1,this.loadIndicatorArticleVisible=!1,this.loadIndicatorEventVisible=!1,this.createArticle=()=>{this.loadIndicatorArticleVisible=!0,this.articleService.createArticle().then(ae=>{window.location.href=this.scope.currentChapter.path+`${ae.path}/edit`})},this.createEvent=()=>{this.loadIndicatorEventVisible=!0,this.eventCalendarService.createEvent().then(ae=>{window.location.href=this.scope.currentChapter.path+"/events/"+ae+"/edit"})},this.filterLists=ae=>{switch(ae.value){case"article":this.authorDataService.setFilter("article");break;case"event":this.authorDataService.setFilter("event");break;case"all":this.authorDataService.setFilter("all")}},this.scope=this.scopeService.getScope(),this.calendarSettings=this.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration,this.user=this.scope.profile,this.profilServiceSubscription=this.profileService.profileChanged$.subscribe(ae=>{this.user=ae}),this.canCreateEvents=this.user.chapterRoles.includes(mc.NewsroomAdmin)||!this.calendarSettings&&this.user.chapterRoles.includes(mc.MerkuristJournalist)||this.calendarSettings&&this.user.chapterRoles.includes(this.calendarSettings.MinEventCreationRole),this.createEventButtonEnabled=this.scope.currentScope.network.settings.configurations.enableCalendar&&this.scope.currentScope.chapter.settings.configurations.enableEventCalendar&&this.canCreateEvents,this.createArticleButtonEnabled=1==this.scope.currentScope.chapter.settings.featureCreateArticleWithoutSnip&&this.user.chapterRoles.includes(mc.MerkuristJournalist)||2==this.scope.currentScope.chapter.settings.featureCreateArticleWithoutSnip,this.authorDataService.initData(),this.publishedList$=this.authorDataService.publishedList$}ngOnInit(){this.publishedListSubscription=this.publishedList$.subscribe(s=>{this.publishedList=s}),this.disableAuthorApplications=this.scope.currentScope.chapter.settings.configurations.disableAuthorApplications,this.createEventButtonEnabled&&this.createArticleButtonEnabled&&this.filterData.push({id:"all",text:this.scope.currentScope.network.getResourceOrKeyName("admin_common_all")}),this.createArticleButtonEnabled&&this.filterData.push({id:"article",text:this.scope.currentScope.network.getResourceOrKeyName("web_common_article")}),this.createEventButtonEnabled&&this.filterData.push({id:"event",text:this.scope.currentScope.network.getResourceOrKeyName("web_event_filter_type_events")})}ngOnDestroy(){this.profilServiceSubscription&&this.profilServiceSubscription.unsubscribe(),this.publishedListSubscription&&this.publishedListSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU($n.p),e.rXU(gh),e.rXU(id),e.rXU(Ld))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-author-dashboard"]],standalone:!1,decls:28,vars:9,consts:[[1,"author-dashboard-base"],[1,"author-dashboard-wrapper"],[1,"author-dashboard-desktop-only"],[1,"author-dashboard-title"],[1,"author-dashboard-filter"],[1,"auhor-dashboard-create-buttons"],["stylingMode","outlined",1,"create-article"],["stylingMode","outlined",1,"create-event"],[1,"author-dashboard-mobile-only"],[1,"author-dasboard-buttons-group"],[1,"author-list"],["width","150","valueExpr","id","displayExpr","text",3,"onValueChanged","dataSource","placeholder"],["stylingMode","outlined",1,"create-article",3,"onClick"],[4,"dxTemplate","dxTemplateOf"],[1,"fa-regular","fa-newspaper","button-image"],[1,"dx-button-text"],["height","20","width","20","aria-hidden","true",1,"button-indicator",3,"visible"],["stylingMode","outlined",1,"create-event",3,"onClick"],[1,"fa-regular","fa-calendar-days","button-image"],["valueExpr","id","displayExpr","text",3,"onValueChanged","dataSource","placeholder"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span"),e.EFF(5),e.k0s(),e.nVh(6,jO,2,2,"div",4),e.k0s(),e.j41(7,"div",5),e.nVh(8,f_,2,1,"dx-button",6),e.nVh(9,m_,2,1,"dx-button",7),e.k0s()(),e.j41(10,"div",8)(11,"div",3)(12,"span"),e.EFF(13),e.k0s()(),e.j41(14,"div",5)(15,"div",9),e.nVh(16,zO,2,1,"dx-button",6),e.nVh(17,Qf,2,1,"dx-button",7),e.k0s(),e.nVh(18,gC,2,2,"div",4),e.k0s()(),e.j41(19,"div",10),e.nrm(20,"app-in-progress-list"),e.k0s(),e.j41(21,"div",10),e.nrm(22,"app-schedule-list"),e.k0s(),e.j41(23,"div",10),e.nrm(24,"app-in-release-list"),e.k0s(),e.nVh(25,fC,4,0),e.j41(26,"div",10),e.nrm(27,"app-author-published-list"),e.k0s()()()),2&r&&(e.R7$(5),e.JRh(l.scope.network.getResourceOrKeyName("web_author_dashboard")),e.R7$(),e.vxM(l.filterData.length>1?6:-1),e.R7$(2),e.vxM(l.createArticleButtonEnabled?8:-1),e.R7$(),e.vxM(l.createEventButtonEnabled?9:-1),e.R7$(4),e.JRh(l.scope.network.getResourceOrKeyName("web_author_dashboard")),e.R7$(3),e.vxM(l.createArticleButtonEnabled?16:-1),e.R7$(),e.vxM(l.createEventButtonEnabled?17:-1),e.R7$(),e.vxM(l.filterData.length>1?18:-1),e.R7$(7),e.vxM(l.disableAuthorApplications?-1:25))},dependencies:[Et.eC,Gn.e,Wn.B,is.l,hC,nx,VO,sx,$O,GT],styles:[".author-dashboard-base[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width: 768px){.author-dashboard-base[_ngcontent-%COMP%]{padding:.5rem}}.author-dashboard-base[_ngcontent-%COMP%]   .button-indicator[_ngcontent-%COMP%]{margin-left:5px}.author-dashboard-base[_ngcontent-%COMP%]   .button-image[_ngcontent-%COMP%]{margin-right:5px}.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]{width:var(--designContentWidth);max-width:100%}@media (min-width: 768px) and (max-width: 992px){.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]{padding:0 15px}}.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .author-dashboard-desktop-only[_ngcontent-%COMP%]{display:block}@media (max-width: 768px){.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .author-dashboard-desktop-only[_ngcontent-%COMP%]{display:none}}.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .author-dashboard-mobile-only[_ngcontent-%COMP%]{display:none}@media (max-width: 768px){.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .author-dashboard-mobile-only[_ngcontent-%COMP%]{display:block}}.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .author-dashboard-title[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:32px;font-size:2rem;display:flex;flex-wrap:wrap}@media (max-width: 768px){.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .author-dashboard-title[_ngcontent-%COMP%]{font-size:1.7rem}}.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .author-dashboard-filter[_ngcontent-%COMP%]{margin-left:auto}@media (max-width: 768px){.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .author-dashboard-filter[_ngcontent-%COMP%]{display:flex;justify-content:right;margin-left:0;width:25%}.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .author-dashboard-filter[_ngcontent-%COMP%]     .dx-texteditor-input{padding:0!important}}@media (max-width: 340px){.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .author-dashboard-filter[_ngcontent-%COMP%]{justify-content:left;width:70%}}.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .auhor-dashboard-create-buttons[_ngcontent-%COMP%]{margin-top:1rem;display:flex;flex-wrap:wrap;gap:16px 32px}@media (max-width: 768px){.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .auhor-dashboard-create-buttons[_ngcontent-%COMP%]{justify-content:left}}@media (max-width: 768px){.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .author-dasboard-buttons-group[_ngcontent-%COMP%]{width:65%}}@media (max-width: 340px){.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .author-dasboard-buttons-group[_ngcontent-%COMP%]{width:70%;display:flex;justify-content:space-between}}.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .create-article[_ngcontent-%COMP%]{transform:scale(1.2);transform-box:stroke-box}@media (max-width: 768px){.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .create-article[_ngcontent-%COMP%]{transform:scale(1);margin-right:7%}}@media (max-width: 340px){.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .create-article[_ngcontent-%COMP%]{margin-right:0}}.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .create-event[_ngcontent-%COMP%]{transform:scale(1.2);transform-box:stroke-box}@media (max-width: 768px){.author-dashboard-base[_ngcontent-%COMP%]   .author-dashboard-wrapper[_ngcontent-%COMP%]   .create-event[_ngcontent-%COMP%]{transform:scale(1)}}.author-dashboard-base[_ngcontent-%COMP%]   .author-list[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:32px}"]}))}return o(),t})();function Kp(o,t){if(1&o){const n=e.RV6();e.j41(0,"h4"),e.EFF(1),e.k0s(),e.j41(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.k0s()(),e.j41(6,"div",2),e.nrm(7,"i",4),e.k0s(),e.j41(8,"div",2),e.nrm(9,"i",5),e.k0s(),e.j41(10,"div",2),e.nrm(11,"i",6),e.k0s(),e.j41(12,"div",2)(13,"h2",3),e.EFF(14),e.k0s()()(),e.j41(15,"p"),e.EFF(16),e.k0s(),e.j41(17,"div",7)(18,"dx-button",8),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.apply())}),e.EFF(19),e.k0s(),e.j41(20,"dx-button",9),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.back())}),e.EFF(21),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_snipApply_notAppliedTitle")),e.R7$(4),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_snip")),e.R7$(9),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_article")),e.R7$(2),e.SpI(" ",n.web_snipApply_notAppliedDescription," "),e.R7$(3),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_snipApply_notAppliedApply")),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_snipApply_backToSnip"))}}function ax(o,t){if(1&o){const n=e.RV6();e.j41(0,"p"),e.EFF(1),e.k0s(),e.j41(2,"div",7)(3,"dx-button",10),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.goToDashboard())}),e.EFF(4),e.k0s(),e.j41(5,"dx-button",11),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.back())}),e.EFF(6),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_snipApply_appliedDescription")),e.R7$(3),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_snipApply_backToDashboard")),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_snipApply_backToSnip"))}}let mC=(()=>{var o;class t{constructor(s,r,l,E,N){this.snipService=s,this.authorService=r,this.profileService=l,this.hybridTrackingService=E,this.scopeService=N,this.hasApplied=!1,this.scope=this.scopeService.getScope(),this.web_snipApply_notAppliedDescription=this.scope.currentScope.network.resources.web_snipApply_notAppliedDescription.replace("{{web_common_author}}",this.scope.currentScope.network.getResourceOrKeyName("web_common_author_custom"))}ngOnInit(){this.profileService.getProfile().then(s=>{s.isJournalist&&(this.snipService.getSnipDetails(this.snipId).then(r=>{this.snip=r}),this.authorService.checkApply(this.snipId).then(r=>{this.hasApplied=r}))},s=>{this.hybridTrackingService.switchState("app.register",{})})}apply(){this.authorService.applySnip(this.snipId).then(s=>{this.hybridTrackingService.switchState("app.authorDashboard",{})})}back(){window.history.back()}goToDashboard(){this.hybridTrackingService.switchState("app.authorDashboard",{})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Gh),e.rXU(Ka),e.rXU($n.p),e.rXU(Ko.o),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-snip-author-application"]],inputs:{snipId:"snipId"},standalone:!1,decls:3,vars:1,consts:[[1,"snip-author-application-base"],[1,"aligner"],[1,"aligner-item"],[1,"gray"],[1,"icon-size","icon-snippet-start","green"],[1,"icon-size","fa","fa-long-arrow-right","gray","articleApply-schemeArrow"],[1,"icon-size","fa","fa-edit","gray"],[1,"author-application-action-container"],[1,"author-application-button",3,"onClick"],["stylingMode","text",1,"author-application-button",3,"onClick"],[3,"onClick"],["stylingMode","text",3,"onClick"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,Kp,22,6)(2,ax,7,3),e.k0s()),2&r&&(e.R7$(),e.vxM(l.hasApplied?2:1))},dependencies:[Gn.e],styles:[".snip-author-application-base[_ngcontent-%COMP%]   .author-application-action-container[_ngcontent-%COMP%]{display:flex;gap:1rem}@media (max-width: 768px){.snip-author-application-base[_ngcontent-%COMP%]   .author-application-action-container[_ngcontent-%COMP%]{justify-content:center}}.snip-author-application-base[_ngcontent-%COMP%]   .author-application-action-container[_ngcontent-%COMP%]   .author-application-button[_ngcontent-%COMP%]{font-size:1.2rem;padding:.25rem}.snip-author-application-base[_ngcontent-%COMP%]   .aligner[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.snip-author-application-base[_ngcontent-%COMP%]   .aligner[_ngcontent-%COMP%]   .icon-size[_ngcontent-%COMP%]{font-size:4rem}@media (max-width: 768px){.snip-author-application-base[_ngcontent-%COMP%]   .aligner[_ngcontent-%COMP%]{padding:5px}.snip-author-application-base[_ngcontent-%COMP%]   .aligner[_ngcontent-%COMP%]   .icon-size[_ngcontent-%COMP%]{font-size:2.5rem}}.snip-author-application-base[_ngcontent-%COMP%]   .aligner[_ngcontent-%COMP%]{padding:20px}"]}))}return o(),t})(),_C=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.http=r,this.scope=s.getScope()}buildFilter(s,r,l){var E={};return s&&(E.query=s),r&&(E.page=r),l&&(E.chapterIds=l),E}search(s,r){return this.http.post(`${this.scope.apiEndpoint}search`,this.buildFilter(s,0,r)).toPromise().then(l=>l)}getStaffDirectoryAttributes(){return this.http.get(`${this.scope.apiEndpoint}staffDirectory/attributes`).toPromise().then(s=>s)}getStaffDirectoryUsers(s,r,l,E,N){return this.http.post(`${this.scope.apiEndpoint}search/staffDirectory`,{query:s,optionIds:r,booleanIds:l,attributeDateTimeRanges:E,filterState:N}).toPromise().then(ae=>ae)}getArticles(s,r,l){return this.http.post(`${this.scope.apiEndpoint}search/articles`,this.buildFilter(s,r,l)).toPromise().then(E=>E)}getAssetArticles(s,r){return this.http.post(`${this.scope.apiEndpoint}search/assets/articles`,this.buildFilter(s,0,null)).toPromise().then(l=>l)}getAssetSponsoredArticles(s,r){return this.http.post(`${this.scope.apiEndpoint}search/assets/articles/sponsored?q=`,this.buildFilter(s,0,null)).toPromise().then(l=>l)}getAssetImages(s,r){return this.getAssets(s,r,"search/assets/images")}getSponsoredAssetImages(s,r){return this.getAssets(s,r,"search/assets/images/sponsored")}getAssetFiles(s,r){return this.getAssets(s,r,"search/assets/files")}getSponsoredAssetFiles(s,r){return this.getAssets(s,r,"search/assets/files/sponsored")}getAssets(s,r,l){return this.http.post(`${this.scope.apiEndpoint}${l}`,this.buildFilter(s,0,null)).toPromise().then(E=>E)}getEvents(s,r,l){return this.http.post(`${this.scope.apiEndpoint}search/events`,this.buildFilter(s,r,l)).toPromise().then(E=>E)}getDocuments(s,r){return this.http.post(`${this.scope.apiEndpoint}search/documents`,this.buildFilter(s,r,null)).toPromise().then(l=>l)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Se.A),m.KVO(ke.Qq))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();var WT=p(6761);function zT(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",2),e.nrm(1,"span",9),e.j41(2,"dx-button",10),e.bIt("onClick",function(){const r=m.eBV(n).$implicit,l=e.XpG();return m.Njj(l.removeSelectedRubricFilter(r.id))}),e.k0s()()}if(2&o){const n=t.$implicit;e.R7$(),e.Y8G("innerHtml",n.shortName,e.npT),e.R7$(),e.BMQ("aria-label","Remove filter")}}function KO(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",2),e.nrm(1,"span",9),e.j41(2,"dx-button",10),e.bIt("onClick",function(){const r=m.eBV(n).$implicit,l=e.XpG();return m.Njj(l.removeSelectedStaffDirectoryFilter(r))}),e.k0s()()}if(2&o){const n=t.$implicit;e.R7$(),e.Y8G("innerHtml",n.displayLabel??n.value,e.npT)}}function KT(o,t){1&o&&e.nrm(0,"div",12)}function XT(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-drop-down-button",13),e.mxI("selectedItemKeyChange",function(r){const l=m.eBV(n).$index,E=e.XpG(3);return e.DH7(E.chapterGroupSelections[l],r)||(E.chapterGroupSelections[l]=r),m.Njj(r)}),e.bIt("onSelectionChanged",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.updateQuery())})("onInitialized",function(r){const l=m.eBV(n).$index,E=e.XpG(3);return m.Njj(E.getFilterInstances(r,l))}),e.k0s(),e.nVh(1,KT,1,0,"div",12)}if(2&o){const n=t.$implicit,s=t.$index,r=t.$index,l=t.$count,E=e.XpG(3);e.Y8G("id",e.mNQ(n.id))("items",n.chapters)("useSelectMode",!0),e.R50("selectedItemKey",E.chapterGroupSelections[s]),e.Y8G("text",n.name),e.R7$(),e.vxM(r!==l-1?1:-1)}}function YT(o,t){if(1&o&&(e.nrm(0,"div",12),e.Z7z(1,XT,2,7,null,null,e.fX1)),2&o){const n=e.XpG(2);e.R7$(),e.Dyx(n.chapterGroupNames)}}function lx(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",7)(1,"dx-drop-down-button",11),e.mxI("selectedItemKeyChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.rangeSelection,r)||(l.rangeSelection=r),m.Njj(r)}),e.bIt("onSelectionChanged",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.changeFilter())}),e.k0s(),e.nVh(2,YT,3,0),e.k0s()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("text",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_staff_search_select_filter_mode")))("items",n.filterTypes)("useSelectMode",!0),e.R50("selectedItemKey",n.rangeSelection),e.R7$(),e.vxM(n.filterGroupsReady&&n.filterRubricsReady&&"staffs"!==n.searchFilter?2:-1)}}function QT(o,t){1&o&&e.nrm(0,"div",12)}function Br(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",18)(1,"dx-drop-down-button",23),e.mxI("selectedItemKeyChange",function(r){const l=m.eBV(n).$index,E=e.XpG(3);return e.DH7(E.staffDirFilter.optionSelections[l],r)||(E.staffDirFilter.optionSelections[l]=r),m.Njj(r)}),e.bIt("onSelectionChanged",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.updateQuery())})("onInitialized",function(r){const l=m.eBV(n).$index,E=e.XpG(3);return m.Njj(E.getFilterInstances(r,l))}),e.k0s(),e.nVh(2,QT,1,0,"div",12),e.k0s()}if(2&o){const n=t.$implicit,s=t.$index,r=t.$index,l=t.$count,E=e.XpG(3);e.R7$(),e.Y8G("text",e.mNQ(n.displayLabel))("id",e.mNQ(n.id))("useSelectMode",!0)("items",n.templateResourceValues),e.R50("selectedItemKey",E.staffDirFilter.optionSelections[s]),e.R7$(),e.vxM(r!==l-1?2:-1)}}function ZT(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",20)(1,"dx-switch",24),e.mxI("valueChange",function(r){const l=m.eBV(n).$index,E=e.XpG(3);return e.DH7(E.staffDirFilter.booleanSelections[l],r)||(E.staffDirFilter.booleanSelections[l]=r),m.Njj(r)}),e.bIt("onValueChanged",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.updateQuery())})("onInitialized",function(r){const l=m.eBV(n).$index,E=e.XpG(3);return m.Njj(E.getFilterInstances(r,l))}),e.k0s(),e.j41(2,"div"),e.EFF(3),e.k0s()()}if(2&o){const n=t.$implicit,s=t.$index,r=e.XpG(3);e.R7$(),e.Y8G("id",e.mNQ(n.id)),e.R50("value",r.staffDirFilter.booleanSelections[s]),e.R7$(2),e.JRh(n.displayLabel)}}function XO(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",22)(1,"div",25)(2,"span",26),e.EFF(3),e.k0s(),e.j41(4,"dx-date-range-box",27),e.mxI("startDateChange",function(r){const l=m.eBV(n).$implicit,E=e.XpG(3);return e.DH7(E.datePickersFrom[l.id],r)||(E.datePickersFrom[l.id]=r),m.Njj(r)})("endDateChange",function(r){const l=m.eBV(n).$implicit,E=e.XpG(3);return e.DH7(E.datePickersUntil[l.id],r)||(E.datePickersUntil[l.id]=r),m.Njj(r)}),e.bIt("onValueChanged",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.updateQuery())})("onInitialized",function(r){const l=m.eBV(n).$index,E=e.XpG(3);return m.Njj(E.getFilterInstances(r,l))}),e.k0s()(),e.j41(5,"div",28)(6,"dx-switch",29),e.mxI("valueChange",function(r){const l=m.eBV(n).$implicit,E=e.XpG(3);return e.DH7(E.datePickersIgnoreYear[l.id],r)||(E.datePickersIgnoreYear[l.id]=r),m.Njj(r)}),e.bIt("onValueChanged",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.updateQuery())})("onInitialized",function(r){const l=m.eBV(n).$index,E=e.XpG(3);return m.Njj(E.getFilterInstances(r,l))}),e.k0s(),e.j41(7,"div",30),e.nrm(8,"i",31),e.k0s()()()}if(2&o){const n=t.$implicit,s=e.XpG(3);e.R7$(3),e.JRh(n.displayLabel),e.R7$(),e.Y8G("id",e.mNQ(n.id))("openOnFieldClick",!1)("showClearButton",!0),e.R50("startDate",s.datePickersFrom[n.id])("endDate",s.datePickersUntil[n.id]),e.R7$(2),e.R50("value",s.datePickersIgnoreYear[n.id]),e.Y8G("hint",s.scope.currentScope.network.getResourceOrKeyName("web_staff_dir_date_filter_ignore_year_help")),e.R7$(),e.Y8G("title",s.scope.currentScope.network.getResourceOrKeyName("web_staff_dir_date_filter_ignore_year_help"))}}function Xp(o,t){if(1&o&&(e.j41(0,"div",15)(1,"div",16)(2,"div",17),e.Z7z(3,Br,3,8,"div",18,e.fX1),e.k0s()(),e.j41(5,"div",19),e.Z7z(6,ZT,4,4,"div",20,e.fX1),e.k0s(),e.j41(8,"div",21),e.Z7z(9,XO,9,10,"div",22,e.fX1),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(3),e.Dyx(n.attributes.options),e.R7$(3),e.Dyx(n.attributes.booleans),e.R7$(3),e.Dyx(n.attributes.datePickers)}}function __(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",8)(1,"div",4)(2,"div",14),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.toggleShowStaffDirectoryFilters())}),e.EFF(3),e.k0s(),e.j41(4,"dx-button",6),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.toggleShowStaffDirectoryFilters())}),e.k0s()(),e.nVh(5,Xp,11,0,"div",15),e.k0s()}if(2&o){const n=e.XpG();e.R7$(3),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("admin_shared_staff_directory_template")," "),e.R7$(),e.Y8G("icon",e.mNQ(n.showStaffDirectoryFilters?"fa-solid fa-angle-up":"fa-solid fa-angle-down")),e.BMQ("aria-expanded",n.showStaffDirectoryFilters)("aria-label","Filter"),e.R7$(),e.vxM(n.showStaffDirectoryFilters?5:-1)}}let cx=(()=>{var o;class t{constructor(s,r,l,E){this.scopeService=s,this.deviceInfoService=r,this.searchService=l,this.translationService=E,this.staffDirEnabled=!1,this.calendarEnabled=!1,this.filtered=!1,this.filterGroupsReady=!1,this.filterRubricsReady=!1,this.isMobileView=!1,this.filterInitialized=!1,this.chapterGroupNames=[],this.chapterGroups=[],this.filterTypes=[],this.searchFilter="",this.noSelectionStyle={"background-color":"cadetblue"},this.rangeSelection=null,this.staffDirFilter={},this.datePickersFrom={},this.datePickersUntil={},this.datePickersIgnoreYear={},this.showTypeRubricsFilters=!1,this.showStaffDirectoryFilters=!1,this.selectedStaffDirectoryFilters=[],this.selectedRubricFilters=[],this.filterInstances=[],this.searchParameters=null,this.query=null,this.scope=s.getScope(),this.staffDirFilter={optionSelections:{},booleanIds:{},datePickers:{id:{from:{},until:{},ignoreYear:{}}},optionIds:{},booleanSelections:{},attributeRanges:{}}}ngOnInit(){this.staffDirEnabled=this.scope.currentScope.network.settings.isStaffDirectoryEnabled,this.calendarEnabled=this.scope.currentScope.network.settings.configurations.enableCalendar;let s=-1!=this.scope.currentScope.chapter.settings.configurations.showSnipsForUserRoleId;this.isMobileView=this.deviceInfoService.getUserAgentInfo().isMobile,this.filterTypes=[{id:0,display:this.scope.currentScope.network.resources.web_filter_mode_both||"!RES[web_filter_mode_both]"},{id:1,display:this.scope.currentScope.network.resources.web_filter_mode_articles||"!RES[web_filter_mode_articles]"},{id:4,display:this.scope.currentScope.network.resources.web_filter_mode_documents||"!RES[web_filter_mode_documents]"}],this.staffDirEnabled&&this.filterTypes.push({id:-1,display:this.scope.currentScope.network.resources.web_filter_mode_staff_dir||"!RES[web_filter_mode_staff_dir]"}),this.calendarEnabled&&this.filterTypes.push({id:2,display:this.scope.currentScope.network.resources.web_filter_mode_events||"!RES[web_filter_mode_events]"}),s&&this.filterTypes.push({id:3,display:this.scope.currentScope.network.resources.web_filter_mode_snips||"!RES[web_filter_mode_snips]"}),this.searchFilter=new URLSearchParams(location.search).get("searchFilter")||"all",this.searchService.getStaffDirectoryAttributes().then(ae=>{this.attributes=ae,this.attributes?.options?.forEach(ze=>{ze.templateResourceValues=ze.templateResourceValues.sort((dt,Kt)=>dt.sortOrder-Kt.sortOrder).filter(dt=>!dt.isObsolete)}),this.updateSelectedStaffDirectoryFilters()}),this.staffDirEnabled||(this.showTypeRubricsFilters=!0);var r=new URLSearchParams(location.search).get("searchFilter");if(r){switch(r){case"staffs":this.rangeSelection=-1;break;case"all":default:this.rangeSelection=0;break;case"articles":this.rangeSelection=1;break;case"events":this.rangeSelection=2;break;case"snips":this.rangeSelection=3;break;case"documents":this.rangeSelection=4}this.filtered=!0}if(new URLSearchParams(location.search).has("staffDirFilter")){var l=JSON.parse(decodeURIComponent(new URLSearchParams(location.search).get("staffDirFilter")));l&&(l.datePickers&&(Object.entries(l.datePickers).forEach(ae=>{if(ae[1].from){var ze=new Date(ae[1].from);ae[1].from=ze,this.datePickersFrom[ae[0]]=ze}if(ae[1].until){var dt=new Date(ae[1].until);ae[1].until=dt,this.datePickersUntil[ae[0]]=dt}this.datePickersIgnoreYear[ae[0]]=ae[1].ignoreYear}),l.attributeRanges=this.extractRanges(l.datePickers)),this.staffDirFilter=l,this.filtered=!0)}if(this.filterInitialized=!0,this.translate(),new URLSearchParams(location.search).has("chapterIds")){var E=[],N=new URLSearchParams(location.search).getAll("chapterIds");Array.isArray(N)?E=N:E.push(N),E.forEach(ae=>{this.chapterGroups.forEach((ze,dt)=>{ze.chapters.filter(function(Kt){return Kt.id===ae}).length>0&&(this.chapterGroupSelections[dt]=ae,this.filtered=!0)})}),this.updateSelectedRubricFilters(E)}}translate(){var s=this.scope.currentScope.chapter.chapterGroups,r=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(0==r){if(s){this.chapterGroups=s;var l=s.map(function(ae){return ae.name});this.translationService.translateByUserLanguageCode(l).then(ae=>{ae.forEach((ze,dt)=>{s[dt].name=ze.translation}),this.chapterGroupNames=s,this.filterGroupsReady=this.chapterGroupNames.length>0});var N=s.map(function(ae){return ae.chapters}).map((ae,ze)=>{var dt=ae.map(function(Kt){return Kt.shortName});return this.translationService.translateByUserLanguageCode(dt).then(Kt=>{Kt.forEach((Vn,ci)=>{s[ze].chapters[ci].shortName=Vn.translation})})});Promise.all(N).then(()=>{this.filterRubricsReady=!0})}}else s&&(this.chapterGroupNames=s,this.chapterGroups=s),this.filterGroupsReady=!0,this.filterRubricsReady=!0;this.chapterGroupSelections={}}changeFilter(){let s=this.rangeSelection;-1==s&&(this.searchFilter="staffs"),0==s&&(this.searchFilter="all"),1==s&&(this.searchFilter="articles"),2==s&&(this.searchFilter="events"),3==s&&(this.searchFilter="snips"),4==s&&(this.searchFilter="documents"),this.updateQuery()}extractIds(s){return Object.keys(s).map(function(r){return s[r]})}extractRanges(s){return Object.keys(s).map(function(r){return{attribute_Id:r,from:s[r].from,until:s[r].until,ignoreYear:s[r].ignoreYear}})}updateQuery(){if(this.query=null,this.searchFilter&&this.updateSearchParameters("searchFilter",this.searchFilter),this.chapterGroupSelections){var s=this.extractIds(this.chapterGroupSelections);this.updateSelectedRubricFilters(s),s.forEach(N=>{N&&this.updateSearchParameters("chapterIds",N)})}if(this.staffDirFilter.optionSelections){Object.keys(this.staffDirFilter.optionSelections).forEach(([N,ae])=>{null===this.staffDirFilter.optionSelections[N]&&delete this.staffDirFilter.optionSelections[N]});var r=this.extractIds(this.staffDirFilter.optionSelections);this.staffDirFilter.optionIds=r}if(this.datePickersFrom&&this.datePickersUntil&&(this.resolveDatePickerSelections(),this.staffDirFilter.attributeRanges=this.extractRanges(this.staffDirFilter.datePickers)),this.staffDirFilter.booleanSelections){var l=this.extractIds(this.staffDirFilter.booleanSelections);l=l.filter(function(N){return void 0!==N}),this.staffDirFilter.booleanIds=l}if(this.updateSelectedStaffDirectoryFilters(),this.staffDirFilter.optionSelections||this.chapterGroupSelections||this.booleanSelections||this.datePickers){var E=encodeURIComponent(JSON.stringify(this.staffDirFilter));this.updateSearchParameters("staffDirFilter",E),window.history.pushState("","",this.query),this.filtered=!0,this.searchCallback(this.searchFilter,this.staffDirFilter)}}resetFilter(){this.chapterGroupSelections={},this.staffDirFilter={},this.filtered=!1,this.searchCallback(this.searchFilter,this.staffDirFilter)}updateSearchParameters(s,r){this.query?this.query+="&"+s+"="+r:this.query="search?"+s+"="+r}resolveDatePickerSelections(){let s={};this.attributes.datePickers.forEach(r=>{let l=r.id,E={from:this.datePickersFrom[l],until:this.datePickersUntil[l],ignoreYear:this.datePickersIgnoreYear[l]};E.from&&E.until&&(s[l]=E)}),this.staffDirFilter.datePickers=s}toggleShowTypeRubricsFilters(){this.showTypeRubricsFilters=!this.showTypeRubricsFilters}toggleShowStaffDirectoryFilters(){this.showStaffDirectoryFilters=!this.showStaffDirectoryFilters}updateSelectedRubricFilters(s){this.selectedRubricFilters=[],this.chapterGroups.forEach(r=>{r.chapters&&r.chapters.length>0&&r.chapters.forEach(l=>{s.contains(l.id)&&this.selectedRubricFilters.push(l)})})}updateSelectedStaffDirectoryFilters(){this.selectedStaffDirectoryFilters=[],this.staffDirFilter.booleanSelections&&0!==Object.keys(this.staffDirFilter.booleanSelections).length&&this.attributes.booleans.forEach((s,r)=>{this.staffDirFilter.booleanSelections[r]&&this.selectedStaffDirectoryFilters.push(s)}),this.staffDirFilter.optionSelections&&0!==Object.keys(this.staffDirFilter.optionSelections).length&&this.attributes.options.forEach((s,r)=>{this.staffDirFilter.optionSelections[r]&&this.attributes.options[r].templateResourceValues.forEach(l=>{l.id==this.staffDirFilter.optionSelections[r]&&this.selectedStaffDirectoryFilters.push(l)})}),this.staffDirFilter.datePickers&&0!==Object.keys(this.staffDirFilter.datePickers).length&&this.attributes.datePickers.forEach((s,r)=>{this.staffDirFilter.datePickers[s.id]&&this.selectedStaffDirectoryFilters.push(s)})}removeSelectedRubricFilter(s){let r,l;this.chapterGroups.forEach(E=>{E.chapters.some(N=>N.id===s)&&this.filterInstances.forEach(N=>{N.id==E.id&&(r=N,l=E.name)})}),this.selectedRubricFilters=this.selectedRubricFilters.filter(E=>E.id!=s),r.component.resetOption("selectedItemKey"),r.component.option("selectedItemKey",this.chapterGroupSelections[r.index]),r.component.option("text",l)}removeSelectedStaffDirectoryFilter(s){let r;s.attributeTemplate_Id?Object.entries(this.attributes).forEach(([l,E])=>{E.forEach(ae=>{ae.id==s.attributeTemplate_Id&&this.filterInstances.forEach(ze=>{ze.id==ae.id&&(r=ze,s.displayLabel=ae.displayLabel)})})}):this.filterInstances.forEach(l=>{l.id==s.id&&(r=l)}),this.selectedStaffDirectoryFilters=this.selectedStaffDirectoryFilters.filter(l=>l.id!=s.id),"dxDropDownButton"==r.component.NAME?(r.component.resetOption("selectedItemKey"),r.component.option("selectedItemKey",this.staffDirFilter.optionSelections[r.index]),r.component.option("text",s.displayLabel)):r.component.reset()}getFilterInstances(s,r){this.filterInstances.push({id:s.element.id,component:s.component,index:r})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E),e.rXU(_C),e.rXU(Bn.M))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-search-filter"]],inputs:{searchCallback:"searchCallback",filterStateCallback:"filterStateCallback"},standalone:!1,decls:13,vars:9,consts:[[1,"container","mw-100"],["role","list",1,"col-7","d-flex","flex-wrap","search-filter-selected-filters-wrapper"],[1,"search-filter-selected-filters"],[1,"row","search-filter-wrapper"],[2,"display","flex","padding","0"],[1,"search-filter-text","pointer",3,"click","keydown.enter","keydown.space"],["stylingMode","text",3,"onClick","icon"],[1,"search-filter-selections-wrapper"],[1,"row"],[1,"search-selected-filters-text",3,"innerHtml"],["stylingMode","text","icon","fa-solid fa-xmark",3,"onClick"],["icon","","stylingMode","text","type","normal","displayExpr","display","keyExpr","id",1,"search-filter-type-selection",3,"selectedItemKeyChange","onSelectionChanged","items","useSelectMode","selectedItemKey","text"],[1,"search-filter-selections-divider"],["icon","","stylingMode","text","type","normal","displayExpr","shortName","keyExpr","id",1,"search-filter-rubric-selection",3,"selectedItemKeyChange","onSelectionChanged","onInitialized","id","items","useSelectMode","selectedItemKey","text"],[1,"search-filter-text","pointer",3,"click"],[1,""],[1,"row","search-filter-staff-directory-selection-container"],[1,"search-filter-staff-directory-options-wrapper"],[1,"d-flex"],[1,"row","search-filter-staff-directory-selection-container","search-filter-staff-directory-booleans-wrapper"],[1,"search-filter-staff-directory-booleans"],[1,"row","search-filter-staff-directory-selection-container","search-filter-staff-directory-date-picker-wrapper"],[1,"search-filter-staff-directory-date-picker"],["type","normal","stylingMode","text","displayExpr","value","min-width","300","keyExpr","id",1,"search-filter-staff-directory-options",3,"selectedItemKeyChange","onSelectionChanged","onInitialized","text","id","useSelectMode","items","selectedItemKey"],[3,"valueChange","onValueChanged","onInitialized","id","value"],[2,"width","70%"],[1,"search-filter-staff-directory-selection-date-picker-label"],["applyValueMode","useButtons","height","50","stylingMode","underlined",1,"search-filter-staff-directory-date-picker",3,"startDateChange","endDateChange","onValueChanged","onInitialized","id","openOnFieldClick","showClearButton","startDate","endDate"],[1,"date-picker-switch-tooltip"],[1,"search-filter-staff-directory-date-picker-ignore-year",3,"valueChange","onValueChanged","onInitialized","value","hint"],[3,"title"],[1,"fa","fa-question-circle"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1),e.Z7z(2,zT,3,2,"div",2,e.fX1),e.Z7z(4,KO,3,1,"div",2,e.fX1),e.k0s(),e.j41(6,"div",3)(7,"div",4)(8,"div",5),e.bIt("click",function(){return l.toggleShowTypeRubricsFilters()})("keydown.enter",function(){return l.toggleShowTypeRubricsFilters()})("keydown.space",function(){return l.toggleShowTypeRubricsFilters()}),e.EFF(9),e.k0s(),e.j41(10,"dx-button",6),e.bIt("onClick",function(){return l.toggleShowTypeRubricsFilters()}),e.k0s()(),e.nVh(11,lx,3,6,"div",7),e.k0s(),e.nVh(12,__,6,6,"div",8),e.k0s()),2&r&&(e.R7$(2),e.Dyx(l.selectedRubricFilters),e.R7$(2),e.Dyx(l.selectedStaffDirectoryFilters),e.R7$(4),e.BMQ("aria-expanded",l.showTypeRubricsFilters)("aria-label",l.showTypeRubricsFilters?"Hide filter":"Show filter"),e.R7$(),e.SpI(" ",l.scope.currentScope.network.getResourceOrKeyName("web_search_filter")," "),e.R7$(),e.Y8G("icon",e.mNQ(l.showTypeRubricsFilters?"fa-solid fa-angle-up":"fa-solid fa-angle-down")),e.BMQ("aria-expanded",l.showTypeRubricsFilters)("aria-label","Filter"),e.R7$(),e.vxM(l.showTypeRubricsFilters?11:-1),e.R7$(),e.vxM(((null==l.attributes||null==l.attributes.options?null:l.attributes.options.length)>0||(null==l.attributes||null==l.attributes.booleans?null:l.attributes.booleans.length)>0||(null==l.attributes||null==l.attributes.datePickers?null:l.attributes.datePickers.length)>0)&&l.staffDirEnabled&&1!=l.rangeSelection&&("all"===l.searchFilter||"staffs"===l.searchFilter)?12:-1))},dependencies:[Gn.e,WT.e,Po.h,Zn.Y],styles:[".search-filter-selected-filters-wrapper[_ngcontent-%COMP%]{margin-bottom:48px}.search-filter-selected-filters[_ngcontent-%COMP%]{margin-top:10px;width:fit-content;margin-right:20px}.search-selected-filters-text[_ngcontent-%COMP%]{padding-left:0;text-transform:uppercase;position:relative;top:1px}.search-filter-text[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;display:block;margin-bottom:20px;padding-left:0}.search-filter-selections-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-bottom:32px}.search-filter-selections-wrapper[_ngcontent-%COMP%]     .dx-button-text{font-size:1.2rem;text-transform:uppercase}.search-filter-selections-divider[_ngcontent-%COMP%]{height:1.2rem;background-color:var(--textColor);width:.063rem;transform:translateY(45%)}.search-filter-staff-directory-selection-container[_ngcontent-%COMP%]{margin-bottom:1.5rem}.search-filter-staff-directory-options-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.search-filter-staff-directory-options-wrapper[_ngcontent-%COMP%]     .dx-button-text{font-size:1.2rem;text-transform:uppercase}.search-filter-staff-directory-booleans-wrapper[_ngcontent-%COMP%]{padding-left:2%}.search-filter-staff-directory-booleans-wrapper[_ngcontent-%COMP%]   .search-filter-staff-directory-booleans[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.search-filter-staff-directory-booleans-wrapper[_ngcontent-%COMP%]    {font-size:1.2rem}.search-filter-staff-directory-date-picker-wrapper[_ngcontent-%COMP%]{padding-left:2%}.search-filter-staff-directory-date-picker-wrapper[_ngcontent-%COMP%]   .search-filter-staff-directory-date-picker[_ngcontent-%COMP%]{display:flex;gap:8px}.search-filter-staff-directory-date-picker-wrapper[_ngcontent-%COMP%]   .search-filter-staff-directory-date-picker[_ngcontent-%COMP%]   .date-picker-switch-tooltip[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:end;padding-bottom:15px;gap:8px}  .dx-button-content{justify-content:flex-start!important;text-align:left}  .dx-dropdownbutton-popup .dx-list-item-content{text-align:left}.search-filter-staff-directory-selection-date-picker-label[_ngcontent-%COMP%]{margin-bottom:.5rem;font-size:1.2rem}@media (max-width: 768px){.search-filter-text[_ngcontent-%COMP%]{font-size:1.15rem}.search-filter-selections-wrapper[_ngcontent-%COMP%]     .dx-button-text{font-size:.9rem}.search-filter-selections-divider[_ngcontent-%COMP%]{height:1.1rem;transform:translateY(50%)}.search-filter-staff-directory-selection-container[_ngcontent-%COMP%]{margin-bottom:1.2rem}.search-filter-staff-directory-options-wrapper[_ngcontent-%COMP%]     .dx-button-text{font-size:1.1rem}.search-filter-staff-directory-booleans-wrapper[_ngcontent-%COMP%]     .dx-checkbox-text{font-size:1.1rem}.search-filter-staff-directory-selection-date-picker-label[_ngcontent-%COMP%]{font-size:1.1rem}}"]}))}return o(),t})();const YO=o=>({"background-color":o});function dx(o,t){if(1&o&&(e.nrm(0,"div",8),e.nI1(1,"apicodoTranslateText"),e.nI1(2,"async")),2&o){const n=e.XpG();e.Y8G("innerHTML",e.bMT(2,3,e.bMT(1,1,"..."+n.highlight+"...")),e.npT)}}let QO=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.deviceInfoService=r,this.displayableFallbackCoverService=l,this.title="",this.highlight="",this.text="",this.imagePath="",this.referralLink="",this.linkTarget="",this.isFallback=!1,this.fallbackColor="",this.scope=s.getScope()}ngOnInit(){let s=this.deviceInfoService.getUserAgentInfo().isMobile?"-mobile":"",r=this.scope.globalSettings.blobStorageCdnUrl;this.data.article&&(this.date=this.data.article.published,this.data.article.coverAssetReference?.assetImage?.guid?this.imagePath=`${r}/images/${this.data.article.coverAssetReference.assetImage.guid}?preset=article-assets${s}`:(this.isFallback=!0,this.fallbackColor=this.displayableFallbackCoverService.getRandomNetworkColor(),this.imagePath=this.displayableFallbackCoverService.getLogoUrl()),this.title=this.data.article.heading,this.highlight=this.data.highlight,this.text=this.data.article.text??this.data.article.title,this.data.article.articleExternalLink?(this.referralLink=this.data.article.articleExternalLink,this.linkTarget="_blank"):this.referralLink=this.scope.currentChapter.path+this.data.article.path)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E),e.rXU(ul))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-search-displayable-article"]],inputs:{data:"data"},standalone:!1,decls:13,vars:18,consts:[[1,"search-displayable-article-wrapper","container"],[1,"d-block",3,"href","target"],[1,"row","search-displayable-article-content-wrapper"],[1,"col-md-2","col-4"],[3,"ngStyle"],[1,"img-fluid",3,"src"],[1,"col-md-10","col-8"],[1,"search-displayable-article-text",3,"innerHTML"],[1,"search-displayable-article-highlight",3,"innerHTML"],[1,"search-displayable-article-date",3,"innerHTML"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"a",1)(2,"div",2)(3,"div",3)(4,"div",4),e.nrm(5,"img",5),e.k0s()(),e.j41(6,"div",6),e.nrm(7,"h5",7),e.nI1(8,"apicodoTranslateText"),e.nI1(9,"async"),e.nVh(10,dx,3,5,"div",8),e.nrm(11,"div",9),e.nI1(12,"relativeDate"),e.k0s()()()()),2&r&&(e.R7$(),e.Y8G("href",l.referralLink,e.B4B)("target",l.linkTarget),e.R7$(3),e.HbH(l.isFallback?"search-displayable-article-fallback-image-wrapper":"search-displayable-article-image-wrapper"),e.Y8G("ngStyle",e.eq3(16,YO,l.fallbackColor)),e.R7$(),e.Y8G("src",e.mNQ(l.imagePath),e.B4B),e.R7$(2),e.Y8G("innerHTML",e.bMT(9,12,e.bMT(8,10,l.text)),e.npT),e.R7$(3),e.vxM(l.highlight?10:-1),e.R7$(),e.Y8G("innerHTML",e.bMT(12,14,l.date),e.npT))},dependencies:[C.B3,Ft.B,C.Jj,Fo,Ul],styles:[".search-displayable-article-wrapper[_ngcontent-%COMP%]{margin-bottom:3.5rem;max-width:100%}@media (max-width: 768px){.search-displayable-article-wrapper[_ngcontent-%COMP%]{margin-bottom:1.5rem}}.search-displayable-article-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--textColor);text-decoration:none}.search-displayable-article-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--textColor)}.search-displayable-article-content-wrapper[_ngcontent-%COMP%]{display:flex}.search-displayable-article-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{aspect-ratio:4/3;overflow:hidden;object-fit:cover;width:100%}.search-displayable-article-fallback-image-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;aspect-ratio:4/3;overflow:hidden;width:100%}.search-displayable-article-fallback-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:80%;max-height:50%}.search-displayable-article-text[_ngcontent-%COMP%]{font-weight:600;margin:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:2rem;font-family:var(--fontSecondary)}@media (max-width: 768px){.search-displayable-article-text[_ngcontent-%COMP%]{font-size:1rem;-webkit-line-clamp:5}}.search-displayable-article-highlight[_ngcontent-%COMP%]{font-size:1.2rem}.search-displayable-article-date[_ngcontent-%COMP%], .search-displayable-article-date-fallback[_ngcontent-%COMP%]{font-size:1rem}@media (max-width: 768px){.search-displayable-article-highlight[_ngcontent-%COMP%]{font-size:.8rem}.search-displayable-article-date[_ngcontent-%COMP%], .search-displayable-article-date-fallback[_ngcontent-%COMP%]{font-size:.7rem}.search-displayable-article-text-fallback[_ngcontent-%COMP%]{font-size:2rem;font-family:var(--fontSecondary)}}@media (max-width: 768px) and (max-width: 768px){.search-displayable-article-text-fallback[_ngcontent-%COMP%]{font-size:1rem}}.search-displayable-article-text-fallback-container[_ngcontent-%COMP%]{height:95px;box-sizing:border-box;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}@media (max-width: 768px){.search-displayable-article-text-fallback-container[_ngcontent-%COMP%]{height:60px;-webkit-line-clamp:2}}.search-displayable-article-text-fallback-container[_ngcontent-%COMP%]   .search-displayable-article-text-fallback[_ngcontent-%COMP%], .search-displayable-article-text-fallback-container[_ngcontent-%COMP%]   .search-displayable-article-highlight-fallback[_ngcontent-%COMP%]{margin:0;text-overflow:ellipsis;text-decoration:none}.search-displayable-article-initial-letter-container[_ngcontent-%COMP%]{height:95px;display:flex;align-items:center;width:80px;justify-content:center}@media (max-width: 768px){.search-displayable-article-initial-letter-container[_ngcontent-%COMP%]{height:60px;width:45px;-webkit-line-clamp:2}}.search-displayable-article-initial-letter-container[_ngcontent-%COMP%]   .search-displayable-article-initial-letter[_ngcontent-%COMP%]{font-size:95px;font-family:var(--fontPrimary)}@media (max-width: 768px){.search-displayable-article-initial-letter-container[_ngcontent-%COMP%]   .search-displayable-article-initial-letter[_ngcontent-%COMP%]{font-size:60px}}.search-displayable-article-highlight-fallback[_ngcontent-%COMP%]{font-size:1.2rem;font-family:var(--fontPrimary)}@media (max-width: 768px){.search-displayable-article-highlight-fallback[_ngcontent-%COMP%]{font-size:1rem}}.search-displayable-article-text-fallback[_ngcontent-%COMP%]{font-weight:600}"]}))}return o(),t})(),ux=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.deviceInfoService=r,this.imagePath="",this.referralLink="",this.scope=s.getScope()}ngOnInit(){let s=this.deviceInfoService.getUserAgentInfo().isMobile?"-mobile":"";this.imagePath=`${this.data.imageUri}?preset=article-assets${s}`,this.referralLink=this.scope.currentChapter.path+"/events/"+this.data.id}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-search-displayable-event"]],inputs:{data:"data"},standalone:!1,decls:11,vars:9,consts:[[1,"search-displayable-event-wrapper","container"],[1,"d-block",3,"href"],[1,"row","search-displayable-event-content-wrapper"],[1,"col-md-2","col-4","search-displayable-event-image-wrapper"],[1,"img-fluid",3,"src"],[1,"col-md-10","col-8"],[1,"search-displayable-event-date",3,"innerHTML"],[1,"search-displayable-event-title",3,"innerHTML"],[1,"search-displayable-event-overline",3,"innerHTML"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"a",1)(2,"div",2)(3,"div",3),e.nrm(4,"img",4),e.k0s(),e.j41(5,"div",5),e.nrm(6,"div",6)(7,"h5",7),e.nI1(8,"apicodoTranslateText"),e.nI1(9,"async"),e.nrm(10,"div",8),e.k0s()()()()),2&r&&(e.R7$(),e.Y8G("href",l.referralLink,e.B4B),e.R7$(3),e.Y8G("src",l.imagePath,e.B4B),e.R7$(2),e.Y8G("innerHTML",l.data.date,e.npT),e.R7$(),e.Y8G("innerHTML",e.bMT(9,7,e.bMT(8,5,l.data.title)),e.npT),e.R7$(3),e.Y8G("innerHTML",l.data.overline,e.npT))},dependencies:[Ft.B,C.Jj,Fo],styles:[".search-displayable-event-wrapper[_ngcontent-%COMP%]{margin-bottom:3.5rem;max-width:100%}@media (max-width: 768px){.search-displayable-event-wrapper[_ngcontent-%COMP%]{margin-bottom:1.5rem}}.search-displayable-event-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--textColor)}.search-displayable-event-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--textColor);text-decoration:none}.search-displayable-event-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{aspect-ratio:4/3;overflow:hidden;object-fit:cover;width:100%}.search-displayable-event-date[_ngcontent-%COMP%]{font-size:1rem}.search-displayable-event-title[_ngcontent-%COMP%]{font-weight:600;font-size:2rem;font-family:var(--fontSecondary)}@media (max-width: 768px){.search-displayable-event-title[_ngcontent-%COMP%]{font-size:1rem}}.search-displayable-event-overline[_ngcontent-%COMP%]{font-size:1.2rem}@media (max-width: 768px){.search-displayable-event-date[_ngcontent-%COMP%]{font-size:.7rem}.search-displayable-event-overline[_ngcontent-%COMP%]{font-size:.8rem}}"]}))}return o(),t})(),JT=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.deviceInfoService=r,this.imagePath="",this.referralLink="",this.scope=s.getScope()}ngOnInit(){let s=this.scope.globalSettings.blobStorageCdnUrl;this.deviceInfoService.getUserAgentInfo(),this.data.avatarGuid?this.imagePath=`${s}/avatar/${this.data.avatarGuid}?preset=cover-1x1`:this.data.avatarImageUrl&&(this.imagePath=`${this.data.avatarImageUrl}?preset=cover-1x1`),this.referralLink=this.scope.currentChapter.path+"/profile/"+this.data.guid}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-search-displayable-staffer"]],inputs:{data:"data"},standalone:!1,decls:11,vars:12,consts:[[1,"search-displayable-staffer-wrapper","container"],[1,"row","search-displayable-staffer-content-wrapper",3,"href"],[1,"col-md-2","col-4","search-displayable-staffer-image-wrapper"],[1,"img-fluid",3,"src"],[1,"col-md-10","col-8"],[1,"search-displayable-staffer-name",3,"innerHTML"],[1,"search-displayable-staffer-about",3,"innerHTML"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"a",1)(2,"div",2),e.nrm(3,"img",3),e.k0s(),e.j41(4,"div",4),e.nrm(5,"h5",5),e.nI1(6,"apicodoTranslateText"),e.nI1(7,"async"),e.nrm(8,"div",6),e.nI1(9,"apicodoTranslateText"),e.nI1(10,"async"),e.k0s()()()),2&r&&(e.R7$(),e.Y8G("href",l.referralLink,e.B4B),e.R7$(2),e.Y8G("src",l.imagePath,e.B4B),e.R7$(2),e.Y8G("innerHTML",e.bMT(7,6,e.bMT(6,4,l.data.firstName+" "+l.data.lastName)),e.npT),e.R7$(3),e.Y8G("innerHTML",e.bMT(10,10,e.bMT(9,8,l.data.about)),e.npT))},dependencies:[Ft.B,C.Jj,Fo],styles:[".search-displayable-staffer-wrapper[_ngcontent-%COMP%]{margin-bottom:3.5rem;max-width:100%}@media (max-width: 768px){.search-displayable-staffer-wrapper[_ngcontent-%COMP%]{margin-bottom:1.5rem}}.search-displayable-staffer-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--textColor);text-decoration:none}.search-displayable-staffer-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--textColor)}.search-displayable-staffer-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:50%;overflow:hidden;object-fit:cover;width:100%;aspect-ratio:1}.search-displayable-staffer-name[_ngcontent-%COMP%]{font-weight:600;font-size:2rem;font-family:var(--fontSecondary)}@media (max-width: 768px){.search-displayable-staffer-name[_ngcontent-%COMP%]{font-size:1rem}}.search-displayable-staffer-about[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-family:var(--fontSecondary)}@media (max-width: 768px){.search-displayable-staffer-about[_ngcontent-%COMP%]{font-size:.8rem}}"]}))}return o(),t})();const vC=o=>({"background-color":o});function ZO(o,t){if(1&o&&(e.j41(0,"div",3),e.nrm(1,"img",10),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("src",n.imagePath,e.B4B)}}function JO(o,t){if(1&o&&(e.j41(0,"div",4),e.nrm(1,"app-navigation-header-logo",11),e.k0s()),2&o){const n=e.XpG();e.Y8G("ngStyle",e.eq3(2,vC,n.fallbackColor)),e.R7$(),e.Y8G("isDisplayable",!0)}}let qO=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.deviceInfoService=r,this.displayableFallbackCoverService=l,this.imagePath="",this.referralLink="",this.isFallback=!1,this.fallbackColor="",this.scope=s.getScope()}ngOnInit(){let s=this.deviceInfoService.getUserAgentInfo().isMobile?"-mobile":"",r=this.scope.globalSettings.blobStorageCdnUrl,l=this.data.assetReferences.filter(E=>null!=E.assetImage&&null==E.assetImage.deleted);if(l.length>0)if(null!=this.data.extendedConfigurations){let E=JSON.parse(this.data.extendedConfigurations);this.thumbnail=E.thumbnailGuid?l.find(N=>N.guid==E.thumbnailGuid):l?.reduce(function(N,ae){return new Date(N.published)<new Date(ae.published)?N:ae})}else this.thumbnail=l?.reduce(function(E,N){return new Date(E.published)<new Date(N.published)?E:N});this.thumbnail?this.imagePath=`${r}/images/${this.thumbnail.assetImage.guid}?preset=article-assets${s}`:(this.isFallback=!0,this.fallbackColor=this.displayableFallbackCoverService.getRandomNetworkColor()),this.referralLink=this.scope.currentChapter.path+this.data.path}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ce.E),e.rXU(ul))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-search-displayable-snip"]],inputs:{data:"data"},standalone:!1,decls:13,vars:13,consts:[[1,"search-displayable-snip-wrapper","container"],[1,"row","search-displayable-snip-content-wrapper",3,"href"],[1,"col-md-2","col-4"],[1,"search-displayable-snip-image-wrapper"],[1,"search-displayable-snip-image-fallback-wrapper",3,"ngStyle"],[1,"col-md-10","col-8"],[1,"search-displayable-snip-user-badge"],[3,"user","author","inSnipView"],[1,"search-displayable-snip-text",3,"innerHTML"],[1,"search-displayable-snip-date",3,"innerHTML"],[1,"img-fluid",3,"src"],[3,"isDisplayable"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"a",1)(2,"div",2),e.nVh(3,ZO,2,1,"div",3)(4,JO,2,4,"div",4),e.k0s(),e.j41(5,"div",5)(6,"div",6),e.nrm(7,"app-user-badge-simple",7),e.k0s(),e.nrm(8,"h5",8),e.nI1(9,"apicodoTranslateText"),e.nI1(10,"async"),e.nrm(11,"div",9),e.nI1(12,"relativeDate"),e.k0s()()()),2&r&&(e.R7$(),e.Y8G("href",l.referralLink,e.B4B),e.R7$(2),e.vxM(l.isFallback?4:3),e.R7$(4),e.Y8G("user",l.data.user)("author",!1)("inSnipView",!0),e.R7$(),e.Y8G("innerHTML",e.bMT(10,9,e.bMT(9,7,l.data.text)),e.npT),e.R7$(3),e.Y8G("innerHTML",e.bMT(12,11,l.data.published),e.npT))},dependencies:[C.B3,cu,Ft.B,pc,C.Jj,Fo,Ul],styles:[".search-displayable-snip-wrapper[_ngcontent-%COMP%]{margin-bottom:3.5rem;max-width:100%}@media (max-width: 768px){.search-displayable-snip-wrapper[_ngcontent-%COMP%]{margin-bottom:1.5rem}}.search-displayable-snip-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--textColor);text-decoration:none}.search-displayable-snip-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--textColor)}.search-displayable-snip-content-wrapper[_ngcontent-%COMP%]     .chapterLogo-base{display:flex}.search-displayable-snip-content-wrapper[_ngcontent-%COMP%]     .chapterLogo-base .chapterLogo-image-dark-displayable{max-height:60px;margin-bottom:0}@media (max-width: 768px){.search-displayable-snip-content-wrapper[_ngcontent-%COMP%]     .chapterLogo-base .chapterLogo-image-dark-displayable{max-height:40px;margin-bottom:0}}.search-displayable-snip-content-wrapper[_ngcontent-%COMP%]     .chapterLogo-base .chapterLogo-image-displayable{max-height:60px;margin-bottom:0}@media (max-width: 768px){.search-displayable-snip-content-wrapper[_ngcontent-%COMP%]     .chapterLogo-base .chapterLogo-image-displayable{max-height:40px;margin-bottom:0}}.search-displayable-snip-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{aspect-ratio:4/3;overflow:hidden;object-fit:cover;width:100%}.search-displayable-snip-image-fallback-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;aspect-ratio:4/3}.search-displayable-snip-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-weight:600;font-size:2rem;font-family:var(--fontSecondary)}@media (max-width: 768px){.search-displayable-snip-text[_ngcontent-%COMP%]{font-size:1rem;-webkit-line-clamp:5}}.search-displayable-snip-date[_ngcontent-%COMP%]{font-size:1rem}.search-displayable-snip-user-badge-fallback[_ngcontent-%COMP%]{padding-left:20%;margin-bottom:.5rem}.search-displayable-snip-text-fallback[_ngcontent-%COMP%]{font-size:2.3rem;font-style:italic;font-weight:600}.search-displayable-snip-text-fallback[_ngcontent-%COMP%]:first-letter{float:left;font-size:6.5rem;margin-right:.8rem;margin-top:-.35em}@-moz-document url-prefix(){.search-displayable-snip-text-fallback:first-letter{margin-top:0!important}}.search-displayable-snip-date-fallback[_ngcontent-%COMP%]{padding-left:20%;margin-top:1rem;font-size:1.2rem}@media (max-width: 768px){.search-displayable-snip-date[_ngcontent-%COMP%], .search-displayable-snip-date-fallback[_ngcontent-%COMP%]{font-size:.7rem}.search-displayable-snip-text-fallback[_ngcontent-%COMP%]{font-size:1rem}.search-displayable-snip-text-fallback[_ngcontent-%COMP%]:first-letter{font-size:4.2rem}}"]}))}return o(),t})(),qT=(()=>{var o;class t{constructor(){}ngOnInit(){}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275cmp=e.VBU({type:t,selectors:[["app-search-displayable-document"]],inputs:{data:"data"},standalone:!1,decls:10,vars:8,consts:[["tabindex","0",1,"search-displayable-document-wrapper","d-block",3,"target","href"],[1,"row","search-displayable-document-content-wrapper"],[1,"col-md-2","col-4","search-displayable-document-icon-wrapper"],[1,"fa-regular","fa-file-lines","fa-4x"],[1,"col-md-10","col-8"],[1,"search-displayable-document-text",3,"innerHTML"],[1,"search-displayable-document-file-name",3,"innerHTML"]],template:function(r,l){1&r&&(e.j41(0,"a",0)(1,"div",1)(2,"div",2),e.nrm(3,"i",3),e.k0s(),e.j41(4,"div",4)(5,"div"),e.nrm(6,"h5",5),e.nI1(7,"apicodoTranslateText"),e.nI1(8,"async"),e.nrm(9,"div",6),e.k0s()()()()),2&r&&(e.Y8G("target","_blank")("href","./file/"+l.data.guid,e.B4B),e.R7$(6),e.Y8G("innerHTML",e.bMT(8,6,e.bMT(7,4,l.data.text)),e.npT),e.R7$(3),e.Y8G("innerHTML",l.data.fileName,e.npT))},dependencies:[Ft.B,C.Jj,Fo],styles:[".search-displayable-document-wrapper[_ngcontent-%COMP%]{margin-bottom:3.5rem;max-width:100%;color:var(--textColor);text-decoration:none;display:block}@media (max-width: 768px){.search-displayable-document-wrapper[_ngcontent-%COMP%]{margin-bottom:1.5rem}}.search-displayable-document-wrapper[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--textColor)}.search-displayable-document-icon-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.search-displayable-document-text[_ngcontent-%COMP%]{font-weight:600;font-size:2rem;font-family:var(--fontSecondary)}@media (max-width: 768px){.search-displayable-document-text[_ngcontent-%COMP%]{font-size:1rem}}.search-displayable-document-file-name[_ngcontent-%COMP%]{font-size:1.2rem}@media (max-width: 768px){.search-displayable-document-file-name[_ngcontent-%COMP%]{font-size:.8rem}}"]}))}return o(),t})();const eA=()=>({type:"search",enterkeyhint:"search"});function Yp(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG();e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_search_noHits")," ")}}function ew(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG();e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_search_noQueryPlaceholder")," ")}}function tw(o,t){if(1&o&&e.nrm(0,"app-search-displayable-snip",12),2&o){const n=e.XpG().$implicit;e.Y8G("data",n.article)}}function nw(o,t){if(1&o&&e.nrm(0,"app-search-displayable-article",12),2&o){const n=e.XpG().$implicit;e.Y8G("data",n)}}function iw(o,t){1&o&&e.nVh(0,tw,1,1,"app-search-displayable-snip",12)(1,nw,1,1,"app-search-displayable-article",12),2&o&&e.vxM(4==t.$implicit.article.articleListDisplayableType?0:1)}function ow(o,t){1&o&&e.nrm(0,"app-search-displayable-event",12),2&o&&e.Y8G("data",t.$implicit)}function sw(o,t){1&o&&e.nrm(0,"app-search-displayable-document",12),2&o&&e.Y8G("data",t.$implicit)}function tA(o,t){1&o&&e.nrm(0,"app-search-displayable-staffer",12),2&o&&e.Y8G("data",t.$implicit)}let CC=(()=>{var o;class t{constructor(s,r,l,E,N){this.translationService=s,this.searchService=r,this.scopeService=l,this.deviceInfoService=E,this.navigationSignalService=N,this.model={},this.searching=!1,this.isMobileView=!1,this.hasChapterGroups=!1,this.isStaffDirectoryEnabled=!1,this.isCalendarEnabled=!1,this.hasChapterIds=!1,this.hasQuery=!1,this.filtered=!1,this.searchValue="",this.buttonsWithClear=[],this.buttonsWithoutClear=[],this.buttonsSearchingWithClear=[],this.buttonsSearchingWithoutClear=[],this.clearValue=()=>{this.model.query=""},this.hasValue=()=>!!(this.model.query&&this.model.query.length>0),this.search=(Kt,Vn)=>{this.searchTextBox.instance&&(this.userAgentInfo.isApp||this.userAgentInfo.isMobile)&&this.searchTextBox.instance.blur();var ci=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,Vi=this.scope.profile.activeUserLanguage,Di=this.scope.network.settings.languagePack.split("-")[0];Vi||(Vi={vendorLanguageCode:Di,nativeName:this.scope.network.getResourceOrKeyName("web_translation_use_original")}),1==ci&&Vi.vendorLanguageCode!=Di?this.translateSearchQuery(this.model.query).then(()=>{this.performSearch(Kt,Vn)}):(this.translatedValue=this.model.query,this.performSearch(Kt,Vn))},this.scope=l.getScope(),this.userAgentInfo=E.getUserAgentInfo(),this.isMobileView=this.userAgentInfo.isMobile;let ae={location:"after",name:"clearTextBox",options:{stylingMode:"text",icon:"fa-solid fa-xmark",onClick:()=>this.clearValue(),elementAttr:{class:"clear-button","aria-label":this.scope.currentScope.network.getResourceOrKeyName("web_common_clear_button_description")||"Clear Button",tabindex:"0"}}},ze={name:"searchButton",location:"before",options:{icon:"fa-solid fa-magnifying-glass",stylingMode:"text",onClick:()=>{this.search(null,null)},elementAttr:{class:"search-text-box-icon","aria-label":this.scope.currentScope.network.getResourceOrKeyName("web_searchMeta_textPlaceholder")||"Search Button"}}},dt={name:"loadingButton",location:"before",options:{icon:"fa-solid fa-spinner fa-spin-pulse",stylingMode:"text",elementAttr:{class:"search-text-box-icon","aria-label":this.scope.currentScope.network.getResourceOrKeyName("web_searchMeta_textPlaceholder")||"Search Button"}}};this.buttonsWithoutClear.push(ze),this.buttonsWithClear.push(ze),this.buttonsWithClear.push(ae),this.buttonsSearchingWithoutClear.push(dt),this.buttonsSearchingWithClear.push(dt),this.buttonsSearchingWithClear.push(ae)}ngOnInit(){this.hasChapterGroups=this.scope.currentScope.chapter.chapterGroups.length>0,this.isStaffDirectoryEnabled=this.scope.currentScope.network.settings.isStaffDirectoryEnabled,this.isCalendarEnabled=this.scope.currentScope.network.settings.configurations.enableCalendar,this.state=new URLSearchParams(location.search).get("searchFilter")||"all",location.href.split("/").last().startsWith("search")&&(this.model.query=new URLSearchParams(location.search).get("q"),this.search(null,null))}ngAfterViewInit(){this.searchTextBox.instance.focus()}normaliseChapterIds(s){if(Array.isArray(s))return s;var r=[];return s&&r.push(s),r}extractRanges(s){return Object.keys(s).map(function(r){return{attribute_Id:r,from:s[r].from,until:s[r].until,ignoreYear:s[r].ignoreYear}})}performSearch(s,r){this.hits=null,this.state=s||new URLSearchParams(location.search).get("searchFilter");let l=new URLSearchParams(location.search).getAll("chapterIds"),E=new URLSearchParams(location.search).get("showAll");if(l=this.normaliseChapterIds(l),this.hasChapterIds=l.length>0,this.hasQuery=!1,this.model.query&&(this.hasQuery=this.model.query.length>0),!r&&(r={},new URLSearchParams(location.search).has("staffDirFilter"))){var N=JSON.parse(decodeURIComponent(new URLSearchParams(location.search).get("staffDirFilter")));N&&(N.datePickers&&(Object.entries(N.datePickers).forEach(ae=>{if(ae[1].from){var ze=new Date(ae[1].from);ae[1].from=ze}if(ae[1].until){var dt=new Date(ae[1].until);ae[1].until=dt}}),N.attributeRanges=this.extractRanges(N.datePickers)),r=N)}if(this.filtered=l.length>0,!0===this.isStaffDirectoryEnabled||!0===this.isCalendarEnabled)switch(this.state){case"all":default:this.hits=null,this.staffDirectoryUserHits=null,this.eventHits=null,this.documentHits=null,(l.length>0||this.translatedValue||E)&&(this.searching=!0,this.searchService.search(this.translatedValue,l).then(ae=>{this.hits=ae,this.searching=!1})),0==l.length&&(this.translatedValue||E)&&this.searchService.getDocuments(this.translatedValue,0).then(ae=>{this.documentHits=ae}),this.isStaffDirectoryEnabled&&this.searchService.getStaffDirectoryUsers(this.translatedValue,r.optionIds,r.booleanIds,r.attributeRanges,this.state).then(ae=>{this.staffDirectoryUserHits=ae}),this.isCalendarEnabled&&(l.length>0||this.translatedValue||E)&&this.searchService.getEvents(this.translatedValue,0,l).then(ae=>{ae&&(ae.sort((ze,dt)=>new Date(ze.start).getTime()-new Date(dt.start).getTime()),ae.forEach(ze=>{ze.start=new Date(ze.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"}),ze.end=new Date(ze.end).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"}),ze.date=ze.start!==ze.end?`${ze.start} - ${ze.end}`:ze.start})),this.eventHits=ae});break;case"staffs":this.hits=null,this.eventHits=null,this.documentHits=null,this.searching=!0,this.searchService.getStaffDirectoryUsers(this.translatedValue,r.optionIds,r.booleanIds,r.attributeRanges,this.state).then(ae=>{this.staffDirectoryUserHits=ae,this.searching=!1});break;case"articles":(l.length>0||this.translatedValue||E)&&(this.searching=!0,this.searchService.search(this.translatedValue,l).then(ae=>{let ze=ae.articles.filter(dt=>dt.article.articleListDisplayableType==Ra.Article);ae.total-=ae.articles.length-ze.length,ae.articles=ze,this.hits=ae,ae||(this.hits=[]),this.searching=!1})),this.staffDirectoryUserHits=null,this.eventHits=null,this.documentHits=null;break;case"events":this.hits=null,this.staffDirectoryUserHits=null,this.documentHits=null,(l.length>0||this.translatedValue||E)&&(this.searching=!0,this.searchService.getEvents(this.translatedValue,0,l).then(ae=>{ae&&(ae.sort((ze,dt)=>new Date(ze.start).getTime()-new Date(dt.start).getTime()),ae.forEach(ze=>{ze.start=new Date(ze.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"}),ze.end=new Date(ze.end).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"numeric"}),ze.date=ze.start!==ze.end?`${ze.start} - ${ze.end}`:ze.start})),this.eventHits=ae,this.searching=!1}));break;case"snips":(l.length>0||this.translatedValue||E)&&(this.searching=!0,this.searchService.search(this.translatedValue,l).then(ae=>{let ze=ae.articles.filter(dt=>dt.article.articleListDisplayableType==Ra.Snip);ae.total-=ae.articles.length-ze.length,ae.articles=ze,this.hits=ae,ae||(this.hits=[]),this.searching=!1})),this.staffDirectoryUserHits=null,this.eventHits=null,this.documentHits=null;break;case"documents":0==l.length&&(this.translatedValue||E)&&(this.searching=!0,this.searchService.getDocuments(this.translatedValue,0).then(ae=>{this.searching=!1,this.documentHits=ae})),this.staffDirectoryUserHits=null,this.eventHits=null,this.hits=null}else this.staffDirectoryUserHits=[],this.eventHits=[],this.hits=[],this.documentHits=[],l.length>0||this.translatedValue||E?(this.searching=!0,0==l.length&&(this.translatedValue||E)&&this.searchService.getDocuments(this.translatedValue,0).then(ae=>{this.documentHits=ae}),this.searchService.search(this.translatedValue,l).then(ae=>{if("snips"==this.state){let ze=ae.articles.filter(dt=>dt.article.articleListDisplayableType==Ra.Snip);ae.total-=ae.articles.length-ze.length,ae.articles=ze}else if("articles"==this.state){let ze=ae.articles.filter(dt=>dt.article.articleListDisplayableType==Ra.Article);ae.total-=ae.articles.length-ze.length,ae.articles=ze}this.hits=ae,this.searching=!1})):(this.hits=null,this.staffDirectoryUserHits=null,this.eventHits=null,this.documentHits=null);if(this.model.query)if(location.search){let ae=new URLSearchParams(location.search).get("q");if(ae){let ze=decodeURIComponent(location.search).replace("q="+ae,"q="+this.model.query);window.history.pushState("","",`search${ze}`)}else window.history.pushState("","",`search${location.search}&q=${this.model.query}`)}else window.history.pushState("","",`search?q=${this.model.query}`)}filtering(s){this.state=s.state,1==s.shouldResetSearch&&(this.translatedValue=null)}loadArticles(){let s=new URLSearchParams(location.search).getAll("chapterIds");s&&(s=this.normaliseChapterIds(s),this.hasChapterIds=s.length>0,this.searchService.getArticles(this.translatedValue,this.hits.articles.length/10,s).then(r=>{this.hits.articles=this.hits.articles.concat(r)}))}translateSearchQuery(s){return new Promise((r,l)=>{this.translationService.translateToOrigin([s]).then(N=>{this.translatedValue=N[0].translation,r()})})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Bn.M),e.rXU(_C),e.rXU(Se.A),e.rXU(Ce.E),e.rXU(yE.G))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-search"]],viewQuery:function(r,l){if(1&r&&e.GBs(gi.m,7),2&r){let E;e.mGM(E=e.lsd())&&(l.searchTextBox=E.first)}},standalone:!1,decls:24,vars:11,consts:[[1,"container","search-component-wrapper"],[1,"search-title","p-0"],[1,"search-title-description"],[1,"search-text-box-wrapper"],[1,"search-input-wrapper"],["stylingMode","outlined","labelMode","floating","valueChangeEvent","input",1,"search-text-box",3,"valueChange","onEnterKey","onFocusIn","onFocusOut","label","value","inputAttr","buttons"],[1,"row","search-filter-wrapper"],[3,"searchCallback"],["aria-atomic","true","role","status",1,"search-results-wrapper"],[1,"row"],[1,"d-flex","justify-content-center"],["width","'auto'","icon","chevrondown",1,"load-more",3,"onClick","visible"],[3,"data"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"h1",1),e.EFF(2),e.k0s(),e.j41(3,"div",2),e.nVh(4,Yp,1,1)(5,ew,1,1),e.k0s(),e.j41(6,"div",3)(7,"div",4)(8,"dx-text-box",5),e.mxI("valueChange",function(N){return e.DH7(l.model.query,N)||(l.model.query=N),N}),e.bIt("onEnterKey",function(){return l.search(null,null)})("onFocusIn",function(){return l.navigationSignalService.hide()})("onFocusOut",function(){return l.navigationSignalService.show()}),e.k0s()()(),e.j41(9,"div",6),e.nrm(10,"app-search-filter",7),e.k0s(),e.j41(11,"div",8)(12,"div",9),e.Z7z(13,iw,2,1,null,null,e.fX1),e.j41(15,"div",10)(16,"dx-button",11),e.bIt("onClick",function(){return l.loadArticles()}),e.EFF(17),e.k0s()(),e.Z7z(18,ow,1,1,"app-search-displayable-event",12,e.fX1),e.Z7z(20,sw,1,1,"app-search-displayable-document",12,e.fX1),e.Z7z(22,tA,1,1,"app-search-displayable-staffer",12,e.fX1),e.k0s()()()),2&r&&(e.R7$(2),e.SpI(" ",l.scope.currentScope.network.getResourceOrKeyName("web_searchMeta_textPlaceholder")," "),e.R7$(2),e.vxM(l.hits&&0!=l.hits.total||l.staffDirectoryUserHits&&0!=(null==l.staffDirectoryUserHits?null:l.staffDirectoryUserHits.length)||l.eventHits&&0!=(null==l.eventHits?null:l.eventHits.length)||l.documentHits&&0!=(null==l.documentHits?null:l.documentHits.length)||!l.hasQuery&&!l.hasChapterIds||l.searching?5:4),e.R7$(4),e.Y8G("label",e.mNQ(l.scope.currentScope.network.getResourceOrKeyName("web_searchMeta_textPlaceholder"))),e.R50("value",l.model.query),e.Y8G("inputAttr",e.lJ4(10,eA))("buttons",l.hasValue()&&!l.searching?l.buttonsWithClear:l.hasValue()||l.searching?l.hasValue()&&l.searching?l.buttonsSearchingWithClear:l.buttonsSearchingWithoutClear:l.buttonsWithoutClear),e.R7$(2),e.Y8G("searchCallback",l.search),e.R7$(3),e.Dyx(null==l.hits?null:l.hits.articles),e.R7$(3),e.Y8G("visible",(null==l.hits||null==l.hits.articles?null:l.hits.articles.length)<(null==l.hits?null:l.hits.total)),e.R7$(),e.SpI(" ",l.scope.currentScope.network.resources.web_common_showMore," "),e.R7$(),e.Dyx(l.eventHits),e.R7$(2),e.Dyx(l.documentHits),e.R7$(2),e.Dyx(l.staffDirectoryUserHits))},dependencies:[Gn.e,gi.m,cx,QO,ux,JT,qO,qT],styles:[".search-component-wrapper[_ngcontent-%COMP%]{max-width:var(--designContentWidth);width:100%;padding:0 20px}.search-component-wrapper[_ngcontent-%COMP%]   .search-title-description[_ngcontent-%COMP%]{margin-bottom:15px}.search-title[_ngcontent-%COMP%]{font-size:3rem;font-weight:700;margin:20px 0 0;font-family:var(--fontPrimary)}.search-text-box-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:row;flex-wrap:nowrap;gap:5px}.search-text-box-wrapper[_ngcontent-%COMP%]   .search-input-wrapper[_ngcontent-%COMP%]{width:60%}.search-text-box-wrapper[_ngcontent-%COMP%]     .dx-texteditor-container:focus-within{outline-offset:12px}.search-text-box-wrapper[_ngcontent-%COMP%]     .dx-editor-outlined.dx-texteditor-with-floating-label.dx-texteditor-empty .dx-label span{font-size:1.5rem;line-height:.7}.search-text-box-wrapper[_ngcontent-%COMP%]     .dx-editor-outlined.dx-texteditor-with-floating-label.dx-texteditor-empty.dx-state-focused .dx-label span{font-size:.75rem;line-height:normal}.search-text-box-wrapper[_ngcontent-%COMP%]     .search-text-box .dx-texteditor-input, .search-text-box-wrapper[_ngcontent-%COMP%]     .search-text-box .dx-placeholder{font-size:1.5rem;transform:translateY(-2px)}.search-text-box-icon-wrapper[_ngcontent-%COMP%]{display:flex;padding-left:0}.search-text-box-divider[_ngcontent-%COMP%]{height:100%;width:.063rem;background-color:var(--textColor)}  .search-text-box-icon{margin-right:20px!important}  .search-text-box-icon i{font-size:1.5rem!important}.search-filter-wrapper[_ngcontent-%COMP%]{margin-bottom:3rem}.search-results-wrapper[_ngcontent-%COMP%]{padding-bottom:15px}.search-results[_ngcontent-%COMP%]{margin-left:0}@media (max-width: 768px){.search-title[_ngcontent-%COMP%]{font-size:2rem;margin-top:2.5rem}.search-text-box-wrapper[_ngcontent-%COMP%]   .search-input-wrapper[_ngcontent-%COMP%]{width:80%}.search-text-box-wrapper[_ngcontent-%COMP%]     .dx-editor-outlined.dx-texteditor-with-floating-label.dx-texteditor-empty .dx-label span{font-size:1.25rem;line-height:.75}.search-text-box-wrapper[_ngcontent-%COMP%]     .dx-editor-outlined.dx-texteditor-with-floating-label.dx-texteditor-empty.dx-state-focused .dx-label span{font-size:.75rem;line-height:normal}.search-text-box-wrapper[_ngcontent-%COMP%]     .search-text-box .dx-texteditor-input, .search-text-box-wrapper[_ngcontent-%COMP%]     .search-text-box .dx-placeholder{font-size:1.25rem;transform:translateY(-1px)}  .search-text-box-icon i{font-size:1.25rem!important}.search-filter-wrapper[_ngcontent-%COMP%]{margin-bottom:2rem}}@media (max-width: 576px){.search-text-box-wrapper[_ngcontent-%COMP%]   .search-input-wrapper[_ngcontent-%COMP%]{width:100%}}.load-more[_ngcontent-%COMP%]{color:var(--textColor);font-weight:600;font-size:1.3rem;height:2.5rem;margin-bottom:40px}@media (max-width: 768px){.load-more[_ngcontent-%COMP%]{font-size:1rem;height:2rem}}"]}))}return o(),t})();function rw(o,t){if(1&o&&(e.j41(0,"dxi-item",5),e.nrm(1,"dxo-label",7)(2,"dxi-validation-rule",10)(3,"dxi-validation-rule",11),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_feedback_emailPlaceholder")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_emailError")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_emailError"))}}function aw(o,t){if(1&o){const n=e.RV6();e.nVh(0,rw,4,3,"dxi-item",5),e.j41(1,"dxi-item",6),e.nrm(2,"dxo-label",7)(3,"dxi-validation-rule",8),e.k0s(),e.j41(4,"dxi-item")(5,"dx-button",9),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.submit())}),e.EFF(6),e.k0s()()}if(2&o){const n=e.XpG();e.vxM(n.showEmail?0:-1),e.R7$(2),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_feedback_textPlaceholder")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_feedback_textError")),e.R7$(3),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_feedback_send"))}}function lw(o,t){1&o&&e.nrm(0,"dxi-item",3)}function cw(o,t){if(1&o&&(e.j41(0,"div")(1,"p",12),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_feedback_sendSuccess"))}}function hx(o,t){if(1&o&&(e.j41(0,"div")(1,"p",13),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.SpI(" ",n.scope.currentScope.network.resources.web_feedback_description_0," ")}}let yC=(()=>{var o;class t{constructor(s,r){this.profileService=s,this.scopeService=r,this.feedback={description:"",email:""},this.showEmail=!1,this.success=!1,this.scope=this.scopeService.getScope()}ngOnInit(){this.profileService.getProfile().then(s=>{s.isRegistered||(this.showEmail=!0)})}submit(){this.form.instance.validate().isValid&&this.feedback.description.length>0&&this.profileService.insertFeedback(this.feedback).then(s=>{this.success=!0})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU($n.p),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-feedback"]],viewQuery:function(r,l){if(1&r&&e.GBs(Xi.o,5),2&r){let E;e.mGM(E=e.lsd())&&(l.form=E.first)}},standalone:!1,decls:7,vars:4,consts:[[1,"feedback-base"],["id","form","labelMode","floating",3,"formDataChange","formData"],["template","feedbackDescription"],["template","feedbackSuccess"],[4,"dxTemplate","dxTemplateOf"],["dataField","email","editorType","dxTextBox"],["dataField","description","editorType","dxTextArea"],[1,"text",3,"text"],["id","signUpError","type","required",3,"message"],[3,"onClick"],["type","email",3,"message"],["type","required",3,"message"],[1,"alert","alert-success","text"],[1,"text"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"dx-form",1),e.mxI("formDataChange",function(N){return e.DH7(l.feedback,N)||(l.feedback=N),N}),e.nrm(2,"dxi-item",2),e.nVh(3,aw,7,4)(4,lw,1,0,"dxi-item",3),e.DNE(5,cw,3,1,"div",4)(6,hx,3,1,"div",4),e.k0s()()),2&r&&(e.R7$(),e.R50("formData",l.feedback),e.R7$(2),e.vxM(l.success?4:3),e.R7$(2),e.Y8G("dxTemplateOf","feedbackSuccess"),e.R7$(),e.Y8G("dxTemplateOf","feedbackDescription"))},dependencies:[Bo.CVf,Et.eC,Gn.e,Bo.rkl,Bo.Inh,Xi.o],styles:[".feedback-base[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:1rem}"]}))}return o(),t})(),bC=(()=>{var o;class t{constructor(){}wrapHtml(s){const r=document.createElement("div");return r.innerHTML=s,r}countWords(s){if(!s)return 0;const r=this.wrapHtml(s);return Array.from(r.querySelectorAll("p:not(:empty)")).map(E=>E.textContent||"").join(" ").split(/\s+/).filter(E=>E.trim().length>0).length}countParagraphs(s){return s?this.wrapHtml(s).querySelectorAll("p:not(:empty)").length:0}countSentences(s){if(!s)return 0;const r=this.wrapHtml(s);return Array.from(r.querySelectorAll("p:not(:empty)")).map(E=>E.textContent||"").join(" ").split(/[!.?]/g).filter(E=>E.trim().length>0).length}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),dw=(()=>{var o;class t{constructor(s){this.spellingService=s,this.minSentences=8,this.minWords=150,this.maxWords=750,this.minParagraphs=4}checkWords(s){if(!s)return!1;const r=this.spellingService.countWords(s);return r>=this.minWords&&r<=this.maxWords}checkSentences(s){return!!s&&this.spellingService.countSentences(s)>=this.minSentences}checkParagraphs(s){return!!s&&this.spellingService.countParagraphs(s)>=this.minParagraphs}getProcentualWords(s){if(!s)return 0;const r=this.spellingService.countWords(s);return r>=this.minWords&&r<=this.maxWords?1:r<this.minWords?r/this.minWords:this.maxWords/r}getProcentualSentences(s){if(!s)return 0;const r=this.spellingService.countSentences(s);return r>=this.minSentences?1:r/this.minSentences}getProcentualParagraphs(s){if(!s)return 0;const r=this.spellingService.countParagraphs(s);return r>=this.minParagraphs?1:r/this.minParagraphs}checkGoogleNewsRecommendation(s){return(this.getProcentualParagraphs(s)+this.getProcentualSentences(s)+this.getProcentualWords(s))/3}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(bC))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();var xC=p(3396);const uw=()=>({id:"firstPublishPopup"}),Vd=()=>({"aria-label":"Date And Time"});function EC(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"dx-load-indicator",13),e.j41(2,"span",14),e.EFF(3),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("visible",n.working),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName(n.allowPublish?"web_common_publish":"web_common_submit")," ")}}function px(o,t){if(1&o&&(e.j41(0,"p"),e.nrm(1,"i",16),e.EFF(2),e.k0s()),2&o){const n=e.XpG(4);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_wordsError"))}}function hw(o,t){if(1&o&&(e.j41(0,"p"),e.nrm(1,"i",16),e.EFF(2),e.k0s()),2&o){const n=e.XpG(4);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_sentencesError"))}}function gx(o,t){if(1&o&&(e.j41(0,"p"),e.nrm(1,"i",16),e.EFF(2),e.k0s()),2&o){const n=e.XpG(4);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_paragraphsError"))}}function fx(o,t){if(1&o&&(e.j41(0,"p"),e.nrm(1,"i",17),e.EFF(2),e.k0s()),2&o){const n=e.XpG(4);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_wordsError"))}}function OC(o,t){if(1&o&&(e.j41(0,"p"),e.nrm(1,"i",17),e.EFF(2),e.k0s()),2&o){const n=e.XpG(4);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_sentencesError"))}}function Xg(o,t){if(1&o&&(e.j41(0,"p"),e.nrm(1,"i",17),e.EFF(2),e.k0s()),2&o){const n=e.XpG(4);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_paragraphsError"))}}function Zf(o,t){if(1&o&&(e.j41(0,"div",15),e.nVh(1,px,3,1,"p"),e.nVh(2,hw,3,1,"p"),e.nVh(3,gx,3,1,"p"),e.nVh(4,fx,3,1,"p"),e.nVh(5,OC,3,1,"p"),e.nVh(6,Xg,3,1,"p"),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.vxM(n.words?-1:1),e.R7$(),e.vxM(n.sentences?-1:2),e.R7$(),e.vxM(n.paragraphs?-1:3),e.R7$(),e.vxM(n.words?4:-1),e.R7$(),e.vxM(n.sentences?5:-1),e.R7$(),e.vxM(n.paragraphs?6:-1)}}function pw(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.JRh(n.scope.currentScope.network.resources.web_articleDialog_createPublish_isNotOptimized_0)}}function v_(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.JRh(n.scope.currentScope.network.resources.web_articleDialog_createPublish_isNotOptimized_1)}}function mx(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.JRh(n.scope.currentScope.network.resources.web_articleDialog_createPublish_isNotOptimized_2)}}function wC(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.JRh(n.scope.currentScope.network.resources.web_articleDialog_createPublish_isOptimized_0)}}function _x(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.JRh(n.scope.currentScope.network.resources.web_articleDialog_createPublish_isOptimized_1)}}function SC(o,t){if(1&o&&(e.j41(0,"div",15),e.nVh(1,pw,2,1,"p"),e.nVh(2,v_,2,1,"p"),e.nVh(3,mx,2,1,"p"),e.nVh(4,wC,2,1,"p"),e.nVh(5,_x,2,1,"p"),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.vxM(n.words&&n.paragraphs&&n.sentences?-1:1),e.R7$(),e.vxM(n.words&&n.paragraphs&&n.sentences?-1:2),e.R7$(),e.vxM(n.words&&n.paragraphs&&n.sentences?-1:3),e.R7$(),e.vxM(n.words&&n.paragraphs&&n.sentences?4:-1),e.R7$(),e.vxM(n.words&&n.paragraphs&&n.sentences?5:-1)}}function C_(o,t){1&o&&(e.nVh(0,Zf,7,6,"div",15),e.nVh(1,SC,6,5,"div",15)),2&o&&(e.vxM(0),e.R7$(),e.vxM(1))}function gw(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",5)(1,"div",9)(2,"div",10),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.changeQuickTipDropDown())}),e.EFF(3),e.k0s(),e.j41(4,"dx-button",11),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.changeQuickTipDropDown())}),e.k0s(),e.j41(5,"dx-button",12),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.changeQuickTipDropDown())}),e.k0s()(),e.nVh(6,C_,2,2),e.k0s()}if(2&o){const n=e.XpG();e.R7$(3),e.SpI(" ","Quick Tips"," "),e.R7$(),e.Y8G("visible",!n.quickTipDropDown),e.R7$(),e.Y8G("visible",n.quickTipDropDown),e.R7$(),e.vxM(n.quickTipDropDown?6:-1)}}function sp(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",25),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.userInterAction,r)||(l.userInterAction=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleUserInterAction())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.R50("value",n.userInterAction),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_user_interaction")," ")}}function y_(o,t){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.Lme(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_user_notify_counter")," ",n.numberOfNotifiedUsers," ")}}function vx(o,t){if(1&o&&(e.j41(0,"div",27),e.nrm(1,"dx-load-indicator",28),e.nVh(2,y_,2,2,"div"),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("visible",null==n.numberOfNotifiedUsers),e.R7$(),e.vxM(n.numberOfNotifiedUsers?2:-1)}}function b_(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",23)(1,"div",19)(2,"div",26)(3,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.isBreakingNews,r)||(l.isBreakingNews=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleBreakingNews(r))}),e.k0s(),e.j41(4,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleIsBreakingNews())}),e.EFF(5),e.k0s()()(),e.nVh(6,vx,3,2,"div",27),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(3),e.R50("value",n.isBreakingNews),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_breaking_notification")," "),e.R7$(),e.vxM(n.isBreakingNews?6:-1)}}function DC(o,t){if(1&o&&(e.j41(0,"div",39),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_archive_article_info")," ")}}function xu(o,t){if(1&o&&(e.j41(0,"div",39),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_event_article_entry_info")," ")}}function fh(o,t){if(1&o&&(e.j41(0,"div",39),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_critical_content_info")," ")}}function Jf(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",36)(1,"div",19)(2,"dx-switch",25),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.criticalContent,r)||(l.criticalContent=r),m.Njj(r)}),e.k0s(),e.j41(3,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.toggleCriticalContent())}),e.EFF(4),e.k0s(),e.nrm(5,"i",40),e.j41(6,"dx-tooltip",41),e.DNE(7,fh,2,1,"div",33),e.k0s()()()}if(2&o){const n=e.XpG(3);e.R7$(2),e.R50("value",n.criticalContent),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_critical_content")," "),e.R7$(3),e.Y8G("dxTemplateOf","content")}}function x_(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",25),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.readReceipt,r)||(l.readReceipt=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.toggleReadReceipt())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(),e.R50("value",n.readReceipt),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_readreceipt")," ")}}function TC(o,t){if(1&o&&(e.j41(0,"div",39),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_content_connect_info")," ")}}function AC(o,t){if(1&o&&(e.j41(0,"div",27),e.nrm(1,"dx-load-indicator",28),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.Y8G("visible",n.connectedChapterNetworkLoading)}}function E_(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",44)(1,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(4);return e.DH7(l.selectAllContontConnectChapterNetworks,r)||(l.selectAllContontConnectChapterNetworks=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(4);return m.Njj(l.toggleAllChapters(r))}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.toggleSelectAllContentConnectChapterNetworks())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(4);e.R7$(),e.R50("value",n.selectAllContontConnectChapterNetworks),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_check_all")," ")}}function fw(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",46)(1,"dx-switch",47),e.bIt("onValueChanged",function(r){const l=m.eBV(n).$implicit,E=e.XpG(5);return m.Njj(E.toggleChapterSelection(l,r))}),e.k0s(),e.j41(2,"div",10),e.bIt("click",function(){const r=m.eBV(n).$implicit,l=e.XpG(5);return m.Njj(l.toggleIsChapterSelected(r.slug))}),e.EFF(3),e.k0s()()}if(2&o){const n=t.$implicit,s=e.XpG(5);e.R7$(),e.Y8G("value",s.isChapterSelected(n.slug)),e.R7$(2),e.SpI(" ",n.name," ")}}function O_(o,t){if(1&o&&(e.j41(0,"div",45),e.Z7z(1,fw,4,2,"div",46,e.fX1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.Dyx(n.networkChapters)}}function w_(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.contentConnectEnabled,r)||(l.contentConnectEnabled=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.toggleConnectedChapterNetworkIndicator(r))}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.toggleContentConnectEnabled())}),e.EFF(3),e.k0s(),e.nrm(4,"i",42),e.j41(5,"dx-tooltip",43),e.DNE(6,TC,2,1,"div",33),e.k0s()(),e.nVh(7,AC,2,1,"div",27),e.nVh(8,E_,4,2,"div",44),e.nVh(9,O_,3,0,"div",45)}if(2&o){const n=e.XpG(3);e.R7$(),e.R50("value",n.contentConnectEnabled),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_contentConnectPlaceholder")," "),e.R7$(3),e.Y8G("dxTemplateOf","content"),e.R7$(),e.vxM(n.contentConnectEnabled?7:-1),e.R7$(),e.vxM(n.contentConnectEnabled&&n.networkChapters.length>1?8:-1),e.R7$(),e.vxM(n.contentConnectEnabled&&n.showContentConnect?9:-1)}}function Cx(o,t){if(1&o&&(e.j41(0,"div",39),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_not_listed_info")," ")}}function yx(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",25),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.externalContent,r)||(l.externalContent=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.toggleExternalContent())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(),e.R50("value",n.externalContent),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_external_content")," ")}}function nA(o,t){if(1&o&&(e.j41(0,"div")(1,"select",48)(2,"option",49),e.EFF(3),e.k0s(),e.j41(4,"option",50),e.EFF(5),e.k0s(),e.j41(6,"option",50),e.EFF(7),e.k0s()()(),e.j41(8,"div")(9,"label",51),e.EFF(10),e.k0s(),e.nrm(11,"input",52),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("ngModel",n.externalContentUpdateCronSelection),e.R7$(),e.Y8G("value",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_UpdateCronSelection_OptionValueOnce"))),e.R7$(),e.SpI("Once",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_UpdateCronSelection_OptionLabelOnce")),e.R7$(),e.Y8G("value",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_UpdateCronSelection_OptionValueDaily"))),e.R7$(),e.SpI("Daily",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_UpdateCronSelection_OptionLabelDaily")),e.R7$(),e.Y8G("value",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_UpdateCronSelection_OptionValueMonthly"))),e.R7$(),e.SpI("Monthly",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_UpdateCronSelection_OptionOnceMonthly")),e.R7$(3),e.SpI(" ConfluenceSourceId",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_ConfluenceSourceIdLabel")," "),e.R7$(),e.Y8G("ngModel",n.publishArticle.externalContentConfluenceSourceId)}}function qf(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",29)(1,"div",19)(2,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.archive,r)||(l.archive=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleDateSwitch(r,"articleArchive"))}),e.k0s(),e.j41(3,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleArchive())}),e.EFF(4),e.k0s(),e.j41(5,"dx-date-box",30),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.articleArchiveTime,r)||(l.articleArchiveTime=r),m.Njj(r)}),e.bIt("onOpened",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleDate(r,"articleArchive"))}),e.k0s(),e.nrm(6,"i",31),e.j41(7,"dx-tooltip",32),e.DNE(8,DC,2,1,"div",33),e.k0s()(),e.j41(9,"div",19)(10,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.eventArticle,r)||(l.eventArticle=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleDateSwitch(r,"articleEvent"))}),e.k0s(),e.j41(11,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleEventArticle())}),e.EFF(12),e.k0s(),e.j41(13,"dx-date-box",30),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.articleEventTime,r)||(l.articleEventTime=r),m.Njj(r)}),e.bIt("onOpened",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleDate(r,"articleEvent"))}),e.k0s(),e.nrm(14,"i",34),e.j41(15,"dx-tooltip",35),e.DNE(16,xu,2,1,"div",33),e.k0s()(),e.nVh(17,Jf,8,3,"div",36),e.nVh(18,x_,4,2,"div",19),e.nVh(19,w_,10,6),e.k0s(),e.j41(20,"div",19)(21,"dx-switch",25),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.inactive,r)||(l.inactive=r),m.Njj(r)}),e.k0s(),e.j41(22,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleInactive())}),e.EFF(23),e.k0s(),e.nrm(24,"i",37),e.j41(25,"dx-tooltip",38),e.DNE(26,Cx,2,1,"div",33),e.k0s()(),e.nVh(27,yx,4,2,"div",19),e.nVh(28,nA,12,12)}if(2&o){const n=e.XpG(2);e.R7$(2),e.R50("value",n.archive),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_archive_article")," "),e.R7$(),e.Y8G("adaptivityEnabled",!0),e.R50("value",n.articleArchiveTime),e.Y8G("inputAttr",e.lJ4(22,Vd))("pickerType","calendar"),e.R7$(3),e.Y8G("dxTemplateOf","content"),e.R7$(2),e.R50("value",n.eventArticle),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_event_article_entry")," "),e.R7$(),e.Y8G("adaptivityEnabled",!0),e.R50("value",n.articleEventTime),e.Y8G("inputAttr",e.lJ4(23,Vd))("pickerType","calendar"),e.R7$(3),e.Y8G("dxTemplateOf","content"),e.R7$(),e.vxM(n.allowCriticalContentEnabled?17:-1),e.R7$(),e.vxM(n.artilceReadReceiptFeatureEnable?18:-1),e.R7$(),e.vxM(n.featureContentConnectEnabled?19:-1),e.R7$(2),e.R50("value",n.inactive),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_not_listed")," "),e.R7$(3),e.Y8G("dxTemplateOf","content"),e.R7$(),e.vxM(n.featurEnableExternalContent?27:-1),e.R7$(),e.vxM(n.externalContent?28:-1)}}function bx(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",18)(1,"div",19)(2,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.isArticleScheduled,r)||(l.isArticleScheduled=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleDateSwitch(r,"articleSchedule"))}),e.k0s(),e.j41(3,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.toggleIsArticleScheduled())}),e.EFF(4),e.k0s(),e.j41(5,"dx-date-box",22),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.articleScheduleDate,r)||(l.articleScheduleDate=r),m.Njj(r)}),e.bIt("onOpened",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleDate(r,"articleSchedule"))}),e.k0s()(),e.nVh(6,sp,4,2,"div",19),e.nVh(7,b_,7,3,"div",23),e.k0s(),e.j41(8,"div",24)(9,"div",10),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.changeExtendedOptionsDropDropDown())}),e.EFF(10),e.k0s(),e.j41(11,"dx-button",11),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.changeExtendedOptionsDropDropDown())}),e.k0s(),e.j41(12,"dx-button",12),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.changeExtendedOptionsDropDropDown())}),e.k0s()(),e.nVh(13,qf,29,24)}if(2&o){const n=e.XpG();e.R7$(2),e.R50("value",n.isArticleScheduled),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_schedule")," "),e.R7$(),e.Y8G("adaptivityEnabled",!0),e.R50("value",n.articleScheduleDate),e.Y8G("openOnFieldClick",!0)("inputAttr",e.lJ4(13,Vd))("pickerType","calendar"),e.R7$(),e.vxM(n.interActionFeatureEnabled?6:-1),e.R7$(),e.vxM(n.allowBreakingNews?7:-1),e.R7$(3),e.SpI(" ","Erweiterte Optionen"," "),e.R7$(),e.Y8G("visible",!n.extendedOptionsDropDown),e.R7$(),e.Y8G("visible",n.extendedOptionsDropDown),e.R7$(),e.vxM(n.extendedOptionsDropDown?13:-1)}}function mw(o,t){if(1&o&&(e.j41(0,"div",27),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_archive_article_info")," ")}}function iA(o,t){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.Lme(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_user_notify_counter")," ",n.numberOfNotifiedUsers," ")}}function S_(o,t){if(1&o&&(e.j41(0,"div",27),e.nrm(1,"dx-load-indicator",28),e.nVh(2,iA,2,2,"div"),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("visible",null==n.numberOfNotifiedUsers),e.R7$(),e.vxM(n.numberOfNotifiedUsers?2:-1)}}function _w(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",23)(1,"div",19)(2,"div",26)(3,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.isBreakingNews,r)||(l.isBreakingNews=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleBreakingNews(r))}),e.k0s(),e.j41(4,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleIsBreakingNews())}),e.EFF(5),e.k0s()()(),e.nVh(6,S_,3,2,"div",27),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(3),e.R50("value",n.isBreakingNews),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_breaking_notification")," "),e.R7$(),e.vxM(n.isBreakingNews?6:-1)}}function xx(o,t){if(1&o&&(e.j41(0,"div",27),e.EFF(1),e.nrm(2,"dx-load-indicator",28),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_content_connect_info")," "),e.R7$(),e.Y8G("visible",n.connectedChapterNetworkLoading)}}function rd(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",44)(1,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.selectAllContontConnectChapterNetworks,r)||(l.selectAllContontConnectChapterNetworks=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.toggleAllChapters(r))}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.toggleSelectAllContentConnectChapterNetworks())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(),e.R50("value",n.selectAllContontConnectChapterNetworks),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_check_all")," ")}}function em(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",46)(1,"dx-switch",47),e.bIt("onValueChanged",function(r){const l=m.eBV(n).$implicit,E=e.XpG(4);return m.Njj(E.toggleChapterSelection(l,r))}),e.k0s(),e.j41(2,"div",10),e.bIt("click",function(){const r=m.eBV(n).$implicit,l=e.XpG(4);return m.Njj(l.toggleIsChapterSelected(r.slug))}),e.EFF(3),e.k0s()()}if(2&o){const n=t.$implicit,s=e.XpG(4);e.R7$(),e.Y8G("value",s.isChapterSelected(n.slug)),e.R7$(2),e.SpI(" ",n.name," ")}}function vw(o,t){if(1&o&&(e.j41(0,"div",45),e.Z7z(1,em,4,2,"div",46,e.fX1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Dyx(n.networkChapters)}}function Cw(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.contentConnectEnabled,r)||(l.contentConnectEnabled=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleConnectedChapterNetworkIndicator(r))}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleContentConnectEnabled())}),e.EFF(3),e.k0s()(),e.nVh(4,xx,3,2,"div",27),e.nVh(5,rd,4,2,"div",44),e.nVh(6,vw,3,0,"div",45)}if(2&o){const n=e.XpG(2);e.R7$(),e.R50("value",n.contentConnectEnabled),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_contentConnectPlaceholder")," "),e.R7$(),e.vxM(n.contentConnectEnabled?4:-1),e.R7$(),e.vxM(n.contentConnectEnabled?5:-1),e.R7$(),e.vxM(n.contentConnectEnabled&&n.showContentConnect?6:-1)}}function IC(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",25),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.updatePublishDate,r)||(l.updatePublishDate=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleUpdatePublishDate())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.R50("value",n.updatePublishDate),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_updatePublishDate")," ")}}function Ex(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.isArticleScheduled,r)||(l.isArticleScheduled=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleDateSwitch(r,"articleSchedule"))}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.toggleIsArticleScheduled())}),e.EFF(3),e.k0s(),e.j41(4,"dx-date-box",22),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.articleScheduleDate,r)||(l.articleScheduleDate=r),m.Njj(r)}),e.bIt("onOpened",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleDate(r,"articleSchedule"))}),e.k0s()(),e.j41(5,"div",19)(6,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.archive,r)||(l.archive=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleDateSwitch(r,"articleArchive"))}),e.k0s(),e.j41(7,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.toggleArchive())}),e.EFF(8),e.k0s(),e.j41(9,"dx-date-box",30),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.articleArchiveTime,r)||(l.articleArchiveTime=r),m.Njj(r)}),e.bIt("onOpened",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleDate(r,"articleArchive"))}),e.k0s()(),e.nVh(10,mw,2,1,"div",27),e.nVh(11,_w,7,3,"div",23),e.nVh(12,Cw,7,5),e.nVh(13,IC,4,2,"div",19)}if(2&o){const n=e.XpG();e.R7$(),e.R50("value",n.isArticleScheduled),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_schedule")," "),e.R7$(),e.Y8G("adaptivityEnabled",!0),e.R50("value",n.articleScheduleDate),e.Y8G("openOnFieldClick",!0)("inputAttr",e.lJ4(17,Vd))("pickerType","calendar"),e.R7$(2),e.R50("value",n.archive),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_archive_article")," "),e.R7$(),e.Y8G("adaptivityEnabled",!0),e.R50("value",n.articleArchiveTime),e.Y8G("inputAttr",e.lJ4(18,Vd))("pickerType","calendar"),e.R7$(),e.vxM(n.archive?10:-1),e.R7$(),e.vxM(n.allowBreakingNews?11:-1),e.R7$(),e.vxM(n.featureContentConnectEnabled?12:-1),e.R7$(),e.vxM(n.chapterIsArticleOwner&&n.networkIsArticleOwner?13:-1)}}function Ox(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"dx-load-indicator",53),e.j41(2,"span",14),e.EFF(3),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("visible",n.working),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_publish_now")," ")}}function yw(o,t){if(1&o&&(e.j41(0,"p"),e.nrm(1,"i",16),e.EFF(2),e.k0s()),2&o){const n=e.XpG(3);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_wordsError"))}}function bw(o,t){if(1&o&&(e.j41(0,"p"),e.nrm(1,"i",16),e.EFF(2),e.k0s()),2&o){const n=e.XpG(3);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_sentencesError"))}}function wx(o,t){if(1&o&&(e.j41(0,"p"),e.nrm(1,"i",16),e.EFF(2),e.k0s()),2&o){const n=e.XpG(3);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_paragraphsError"))}}function xw(o,t){if(1&o&&(e.j41(0,"p"),e.nrm(1,"i",17),e.EFF(2),e.k0s()),2&o){const n=e.XpG(3);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_wordsError"))}}function Ew(o,t){if(1&o&&(e.j41(0,"p"),e.nrm(1,"i",17),e.EFF(2),e.k0s()),2&o){const n=e.XpG(3);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_sentencesError"))}}function MC(o,t){if(1&o&&(e.j41(0,"p"),e.nrm(1,"i",17),e.EFF(2),e.k0s()),2&o){const n=e.XpG(3);e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_paragraphsError"))}}function tm(o,t){if(1&o&&(e.j41(0,"div",15),e.nVh(1,yw,3,1,"p"),e.nVh(2,bw,3,1,"p"),e.nVh(3,wx,3,1,"p"),e.nVh(4,xw,3,1,"p"),e.nVh(5,Ew,3,1,"p"),e.nVh(6,MC,3,1,"p"),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.vxM(n.words?-1:1),e.R7$(),e.vxM(n.sentences?-1:2),e.R7$(),e.vxM(n.paragraphs?-1:3),e.R7$(),e.vxM(n.words?4:-1),e.R7$(),e.vxM(n.sentences?5:-1),e.R7$(),e.vxM(n.paragraphs?6:-1)}}function Ow(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.scope.currentScope.network.resources.web_articleDialog_createPublish_isNotOptimized_0)}}function Sx(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.scope.currentScope.network.resources.web_articleDialog_createPublish_isNotOptimized_1)}}function ww(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.scope.currentScope.network.resources.web_articleDialog_createPublish_isNotOptimized_2)}}function oA(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.scope.currentScope.network.resources.web_articleDialog_createPublish_isOptimized_0)}}function sA(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.scope.currentScope.network.resources.web_articleDialog_createPublish_isOptimized_1)}}function Sw(o,t){if(1&o&&(e.j41(0,"div",15),e.nVh(1,Ow,2,1,"p"),e.nVh(2,Sx,2,1,"p"),e.nVh(3,ww,2,1,"p"),e.nVh(4,oA,2,1,"p"),e.nVh(5,sA,2,1,"p"),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.vxM(n.words&&n.paragraphs&&n.sentences?-1:1),e.R7$(),e.vxM(n.words&&n.paragraphs&&n.sentences?-1:2),e.R7$(),e.vxM(n.words&&n.paragraphs&&n.sentences?-1:3),e.R7$(),e.vxM(n.words&&n.paragraphs&&n.sentences?4:-1),e.R7$(),e.vxM(n.words&&n.paragraphs&&n.sentences?5:-1)}}function PC(o,t){1&o&&(e.nVh(0,tm,7,6,"div",15),e.nVh(1,Sw,6,5,"div",15)),2&o&&(e.vxM(0),e.R7$(),e.vxM(1))}function rA(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",25),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.userInterAction,r)||(l.userInterAction=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleUserInterAction())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.R50("value",n.userInterAction),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_user_interaction")," ")}}function aA(o,t){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.Lme(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_user_notify_counter")," ",n.numberOfNotifiedUsers," ")}}function Dx(o,t){if(1&o&&(e.j41(0,"div",27),e.nrm(1,"dx-load-indicator",28),e.nVh(2,aA,2,2,"div"),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("visible",null==n.numberOfNotifiedUsers),e.R7$(),e.vxM(n.numberOfNotifiedUsers?2:-1)}}function Tx(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",23)(1,"div",19)(2,"div",26)(3,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.isBreakingNews,r)||(l.isBreakingNews=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleBreakingNews(r))}),e.k0s(),e.j41(4,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleIsBreakingNews())}),e.EFF(5),e.k0s()()(),e.nVh(6,Dx,3,2,"div",27),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(3),e.R50("value",n.isBreakingNews),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_breaking_notification")," "),e.R7$(),e.vxM(n.isBreakingNews?6:-1)}}function RC(o,t){if(1&o&&(e.j41(0,"div",39),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_archive_article_info")," ")}}function kC(o,t){if(1&o&&(e.j41(0,"div",39),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_event_article_entry_info")," ")}}function BC(o,t){if(1&o&&(e.j41(0,"div",39),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_critical_content_info")," ")}}function D_(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",36)(1,"div",19)(2,"dx-switch",25),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.criticalContent,r)||(l.criticalContent=r),m.Njj(r)}),e.k0s(),e.j41(3,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.toggleCriticalContent())}),e.EFF(4),e.k0s(),e.nrm(5,"i",60),e.j41(6,"dx-tooltip",61),e.DNE(7,BC,2,1,"div",33),e.k0s()()()}if(2&o){const n=e.XpG(3);e.R7$(2),e.R50("value",n.criticalContent),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_critical_content")," "),e.R7$(3),e.Y8G("dxTemplateOf","content")}}function nm(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",25),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.readReceipt,r)||(l.readReceipt=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.toggleReadReceipt())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(),e.R50("value",n.readReceipt),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_readreceipt")," ")}}function Yg(o,t){if(1&o&&(e.j41(0,"div",39),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_content_connect_info")," ")}}function im(o,t){if(1&o&&(e.j41(0,"div",27),e.nrm(1,"dx-load-indicator",28),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.Y8G("visible",n.connectedChapterNetworkLoading)}}function T_(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",44)(1,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(4);return e.DH7(l.selectAllContontConnectChapterNetworks,r)||(l.selectAllContontConnectChapterNetworks=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(4);return m.Njj(l.toggleAllChapters(r))}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.toggleSelectAllContentConnectChapterNetworks())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(4);e.R7$(),e.R50("value",n.selectAllContontConnectChapterNetworks),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_check_all")," ")}}function Ax(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",46)(1,"dx-switch",47),e.bIt("onValueChanged",function(r){const l=m.eBV(n).$implicit,E=e.XpG(5);return m.Njj(E.toggleChapterSelection(l,r))}),e.k0s(),e.j41(2,"div",10),e.bIt("click",function(){const r=m.eBV(n).$implicit,l=e.XpG(5);return m.Njj(l.toggleIsChapterSelected(r.slug))}),e.EFF(3),e.k0s()()}if(2&o){const n=t.$implicit,s=e.XpG(5);e.R7$(),e.Y8G("value",s.isChapterSelected(n.slug)),e.R7$(2),e.SpI(" ",n.name," ")}}function Dw(o,t){if(1&o&&(e.j41(0,"div",45),e.Z7z(1,Ax,4,2,"div",46,e.fX1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.Dyx(n.networkChapters)}}function om(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.contentConnectEnabled,r)||(l.contentConnectEnabled=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.toggleConnectedChapterNetworkIndicator(r))}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.toggleContentConnectEnabled())}),e.EFF(3),e.k0s(),e.nrm(4,"i",62),e.j41(5,"dx-tooltip",63),e.DNE(6,Yg,2,1,"div",33),e.k0s()(),e.nVh(7,im,2,1,"div",27),e.nVh(8,T_,4,2,"div",44),e.nVh(9,Dw,3,0,"div",45)}if(2&o){const n=e.XpG(3);e.R7$(),e.R50("value",n.contentConnectEnabled),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_contentConnectPlaceholder")," "),e.R7$(3),e.Y8G("dxTemplateOf","content"),e.R7$(),e.vxM(n.contentConnectEnabled?7:-1),e.R7$(),e.vxM(n.contentConnectEnabled&&n.networkChapters.length>1?8:-1),e.R7$(),e.vxM(n.contentConnectEnabled&&n.showContentConnect?9:-1)}}function Qg(o,t){if(1&o&&(e.j41(0,"div",39),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_not_listed_info")," ")}}function A_(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",25),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.externalContent,r)||(l.externalContent=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.toggleExternalContent())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(),e.R50("value",n.externalContent),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_external_content")," ")}}function FC(o,t){if(1&o&&(e.j41(0,"div")(1,"select",48)(2,"option",49),e.EFF(3),e.k0s(),e.j41(4,"option",50),e.EFF(5),e.k0s(),e.j41(6,"option",50),e.EFF(7),e.k0s()()(),e.j41(8,"div")(9,"label",51),e.EFF(10),e.k0s(),e.nrm(11,"input",52),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("ngModel",n.externalContentUpdateCronSelection),e.R7$(),e.Y8G("value",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_UpdateCronSelection_OptionValueOnce"))),e.R7$(),e.SpI("Once",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_UpdateCronSelection_OptionLabelOnce")),e.R7$(),e.Y8G("value",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_UpdateCronSelection_OptionValueDaily"))),e.R7$(),e.SpI("Daily",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_UpdateCronSelection_OptionLabelDaily")),e.R7$(),e.Y8G("value",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_UpdateCronSelection_OptionValueMonthly"))),e.R7$(),e.SpI("Monthly",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_UpdateCronSelection_OptionOnceMonthly")),e.R7$(3),e.SpI(" ConfluenceSourceId",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_externalContent_ConfluenceSourceIdLabel")," "),e.R7$(),e.Y8G("ngModel",n.publishArticle.externalContentConfluenceSourceId)}}function Ix(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",29)(1,"div",19)(2,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.archive,r)||(l.archive=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleDateSwitch(r,"articleArchive"))}),e.k0s(),e.j41(3,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleArchive())}),e.EFF(4),e.k0s(),e.nrm(5,"i",54),e.j41(6,"dx-tooltip",55),e.DNE(7,RC,2,1,"div",33),e.k0s()(),e.j41(8,"dx-date-box",30),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.articleArchiveTime,r)||(l.articleArchiveTime=r),m.Njj(r)}),e.bIt("onOpened",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleDate(r,"articleArchive"))}),e.k0s(),e.j41(9,"div",19)(10,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.eventArticle,r)||(l.eventArticle=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleDateSwitch(r,"articleEvent"))}),e.k0s(),e.j41(11,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleEventArticle())}),e.EFF(12),e.k0s(),e.nrm(13,"i",56),e.j41(14,"dx-tooltip",57),e.DNE(15,kC,2,1,"div",33),e.k0s()(),e.j41(16,"dx-date-box",30),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.articleEventTime,r)||(l.articleEventTime=r),m.Njj(r)}),e.bIt("onOpened",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleDate(r,"articleEvent"))}),e.k0s(),e.nVh(17,D_,8,3,"div",36),e.nVh(18,nm,4,2,"div",19),e.nVh(19,om,10,6),e.k0s(),e.j41(20,"div",19)(21,"dx-switch",25),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.inactive,r)||(l.inactive=r),m.Njj(r)}),e.k0s(),e.j41(22,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleInactive())}),e.EFF(23),e.k0s(),e.nrm(24,"i",58),e.j41(25,"dx-tooltip",59),e.DNE(26,Qg,2,1,"div",33),e.k0s()(),e.nVh(27,A_,4,2,"div",19),e.nVh(28,FC,12,12)}if(2&o){const n=e.XpG(2);e.R7$(2),e.R50("value",n.archive),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_archive_article")," "),e.R7$(3),e.Y8G("dxTemplateOf","content"),e.R7$(),e.Y8G("adaptivityEnabled",!0),e.R50("value",n.articleArchiveTime),e.Y8G("inputAttr",e.lJ4(22,Vd))("pickerType","calendar"),e.R7$(2),e.R50("value",n.eventArticle),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_event_article_entry")," "),e.R7$(3),e.Y8G("dxTemplateOf","content"),e.R7$(),e.Y8G("adaptivityEnabled",!0),e.R50("value",n.articleEventTime),e.Y8G("inputAttr",e.lJ4(23,Vd))("pickerType","calendar"),e.R7$(),e.vxM(n.allowCriticalContentEnabled?17:-1),e.R7$(),e.vxM(n.artilceReadReceiptFeatureEnable?18:-1),e.R7$(),e.vxM(n.featureContentConnectEnabled?19:-1),e.R7$(2),e.R50("value",n.inactive),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_not_listed")," "),e.R7$(3),e.Y8G("dxTemplateOf","content"),e.R7$(),e.vxM(n.featurEnableExternalContent?27:-1),e.R7$(),e.vxM(n.externalContent?28:-1)}}function Mx(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",18)(1,"div",19)(2,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.isArticleScheduled,r)||(l.isArticleScheduled=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleDateSwitch(r,"articleSchedule"))}),e.k0s(),e.j41(3,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.toggleIsArticleScheduled())}),e.EFF(4),e.k0s()(),e.j41(5,"dx-date-box",22),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.articleScheduleDate,r)||(l.articleScheduleDate=r),m.Njj(r)}),e.bIt("onOpened",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleDate(r,"articleSchedule"))}),e.k0s(),e.nVh(6,rA,4,2,"div",19),e.nVh(7,Tx,7,3,"div",23),e.k0s(),e.j41(8,"div",24)(9,"div",10),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.changeExtendedOptionsDropDropDown())}),e.EFF(10),e.k0s(),e.j41(11,"dx-button",11),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.changeExtendedOptionsDropDropDown())}),e.k0s(),e.j41(12,"dx-button",12),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.changeExtendedOptionsDropDropDown())}),e.k0s()(),e.nVh(13,Ix,29,24)}if(2&o){const n=e.XpG();e.R7$(2),e.R50("value",n.isArticleScheduled),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_schedule")," "),e.R7$(),e.Y8G("adaptivityEnabled",!0),e.R50("value",n.articleScheduleDate),e.Y8G("openOnFieldClick",!0)("inputAttr",e.lJ4(13,Vd))("pickerType","calendar"),e.R7$(),e.vxM(n.interActionFeatureEnabled?6:-1),e.R7$(),e.vxM(n.allowBreakingNews?7:-1),e.R7$(3),e.SpI(" ","Erweiterte Optionen"," "),e.R7$(),e.Y8G("visible",!n.extendedOptionsDropDown),e.R7$(),e.Y8G("visible",n.extendedOptionsDropDown),e.R7$(),e.vxM(n.extendedOptionsDropDown?13:-1)}}function NC(o,t){if(1&o&&(e.j41(0,"div",27),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_archive_article_info")," ")}}function Tw(o,t){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(4);e.R7$(),e.Lme(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_user_notify_counter")," ",n.numberOfNotifiedUsers," ")}}function lA(o,t){if(1&o&&(e.j41(0,"div",27),e.nrm(1,"dx-load-indicator",28),e.nVh(2,Tw,2,2,"div"),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("visible",null==n.numberOfNotifiedUsers),e.R7$(),e.vxM(n.numberOfNotifiedUsers?2:-1)}}function Px(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",23)(1,"div",19)(2,"div",26)(3,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.isBreakingNews,r)||(l.isBreakingNews=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleBreakingNews(r))}),e.k0s(),e.j41(4,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleIsBreakingNews())}),e.EFF(5),e.k0s()()(),e.nVh(6,lA,3,2,"div",27),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(3),e.R50("value",n.isBreakingNews),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_breaking_notification")," "),e.R7$(),e.vxM(n.isBreakingNews?6:-1)}}function Aw(o,t){if(1&o&&(e.j41(0,"div",27),e.EFF(1),e.nrm(2,"dx-load-indicator",28),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_content_connect_info")," "),e.R7$(),e.Y8G("visible",n.connectedChapterNetworkLoading)}}function Iw(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",44)(1,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.selectAllContontConnectChapterNetworks,r)||(l.selectAllContontConnectChapterNetworks=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.toggleAllChapters(r))}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.toggleSelectAllContentConnectChapterNetworks())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(),e.R50("value",n.selectAllContontConnectChapterNetworks),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_check_all")," ")}}function Zg(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",46)(1,"dx-switch",47),e.bIt("onValueChanged",function(r){const l=m.eBV(n).$implicit,E=e.XpG(4);return m.Njj(E.toggleChapterSelection(l,r))}),e.k0s(),e.j41(2,"div",10),e.bIt("click",function(){const r=m.eBV(n).$implicit,l=e.XpG(4);return m.Njj(l.toggleIsChapterSelected(r.slug))}),e.EFF(3),e.k0s()()}if(2&o){const n=t.$implicit,s=e.XpG(4);e.R7$(),e.Y8G("value",s.isChapterSelected(n.slug)),e.R7$(2),e.SpI(" ",n.name," ")}}function cA(o,t){if(1&o&&(e.j41(0,"div",45),e.Z7z(1,Zg,4,2,"div",46,e.fX1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Dyx(n.networkChapters)}}function dA(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.contentConnectEnabled,r)||(l.contentConnectEnabled=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleConnectedChapterNetworkIndicator(r))}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleContentConnectEnabled())}),e.EFF(3),e.k0s()(),e.nVh(4,Aw,3,2,"div",27),e.nVh(5,Iw,4,2,"div",44),e.nVh(6,cA,3,0,"div",45)}if(2&o){const n=e.XpG(2);e.R7$(),e.R50("value",n.contentConnectEnabled),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_contentConnectPlaceholder")," "),e.R7$(),e.vxM(n.contentConnectEnabled?4:-1),e.R7$(),e.vxM(n.contentConnectEnabled?5:-1),e.R7$(),e.vxM(n.contentConnectEnabled&&n.showContentConnect?6:-1)}}function sm(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",25),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.updatePublishDate,r)||(l.updatePublishDate=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.toggleUpdatePublishDate())}),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(),e.R50("value",n.updatePublishDate),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_updatePublishDate")," ")}}function f1(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",19)(1,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.isArticleScheduled,r)||(l.isArticleScheduled=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleDateSwitch(r,"articleSchedule"))}),e.k0s(),e.j41(2,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.toggleIsArticleScheduled())}),e.EFF(3),e.k0s()(),e.j41(4,"dx-date-box",22),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.articleScheduleDate,r)||(l.articleScheduleDate=r),m.Njj(r)}),e.bIt("onOpened",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleDate(r,"articleSchedule"))}),e.k0s(),e.j41(5,"div",19)(6,"dx-switch",20),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.archive,r)||(l.archive=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleDateSwitch(r,"articleArchive"))}),e.k0s(),e.j41(7,"div",21),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.toggleArchive())}),e.EFF(8),e.k0s()(),e.j41(9,"dx-date-box",30),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.articleArchiveTime,r)||(l.articleArchiveTime=r),m.Njj(r)}),e.bIt("onOpened",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleDate(r,"articleArchive"))}),e.k0s(),e.nVh(10,NC,2,1,"div",27),e.nVh(11,Px,7,3,"div",23),e.nVh(12,dA,7,5),e.nVh(13,sm,4,2,"div",19)}if(2&o){const n=e.XpG();e.R7$(),e.R50("value",n.isArticleScheduled),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_schedule")," "),e.R7$(),e.Y8G("adaptivityEnabled",!0),e.R50("value",n.articleScheduleDate),e.Y8G("openOnFieldClick",!0)("inputAttr",e.lJ4(17,Vd))("pickerType","calendar"),e.R7$(2),e.R50("value",n.archive),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_archive_article")," "),e.R7$(),e.Y8G("adaptivityEnabled",!0),e.R50("value",n.articleArchiveTime),e.Y8G("inputAttr",e.lJ4(18,Vd))("pickerType","calendar"),e.R7$(),e.vxM(n.archive?10:-1),e.R7$(),e.vxM(n.allowBreakingNews?11:-1),e.R7$(),e.vxM(n.featureContentConnectEnabled?12:-1),e.R7$(),e.vxM(n.chapterIsArticleOwner&&n.networkIsArticleOwner?13:-1)}}function Rx(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"dx-load-indicator",53),e.j41(2,"span",14),e.EFF(3),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("visible",n.working),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_publish_now")," ")}}let m1=(()=>{var o;class t{constructor(s,r,l,E,N,ae){this.profileService=s,this.notificationService=r,this.articleService=l,this.publishService=E,this.scopeService=N,this.toastService=ae,this.publishButtonVisible=!1,this.publishButtonDisabled=!1,this.allowPublish=!1,this.allowBreakingNews=!1,this.firstPublish=!1,this.publish=new e.bkB,this.showFirstPublishDialog=!1,this.working=!1,this.error=!1,this.minDate=new Date,this.isJournalistOnly=!1,this.publishButtonLabel="",this.showContentConnect=!1,this.words=!1,this.sentences=!1,this.paragraphs=!1,this.alreadyNotified=!1,this.numberOfNotifiedUsers=null,this.networkChapters=[],this.publishArticle={},this.quickTipDropDown=!1,this.selectedContentConnectNetworkChapters={},this.connectedChapterNetworkLoading=!1,this.externalContentUpdateCronSelection="",this.externalContentConfluenceSourceId="",this.networkIsArticleOwner=!0,this.chapterIsArticleOwner=!0,this.inactive=!1,this.allowCriticalContent=!1,this.isArticleScheduled=!1,this.archive=!1,this.eventArticle=!1,this.readReceipt=!1,this.criticalContent=!1,this.contentConnectEnabled=!1,this.isBreakingNews=!1,this.selectAllContontConnectChapterNetworks=!1,this.externalContent=!1,this.interActionFeatureEnabled=!1,this.artilceReadReceiptFeatureEnable=!1,this.featureGoogleNewsCheck=!1,this.allowCriticalContentEnabled=!1,this.featurEnableExternalContent=!1,this.featureContentConnectEnabled=!1,this.extendedOptionsDropDown=!1,this.connectedChapterNetworkIndicator=!1,this.updatePublishDate=!1,this.userInterAction=!1,this.eventCalendarEnabled=!1,this.onButtonClick=()=>{this.allowPublish?this.openFirstPublishDialog():this.onPublish()},this.openFirstPublishDialog=()=>{this.showFirstPublishDialog=!0},this.closePopup=()=>{this.showFirstPublishDialog=!1},this.changeQuickTipDropDown=()=>{this.quickTipDropDown=!this.quickTipDropDown},this.changeExtendedOptionsDropDropDown=()=>{this.extendedOptionsDropDown=!this.extendedOptionsDropDown},this.toggleConnectedChapterNetworkIndicator=ze=>{if(ze.value){if(ze.event&&!(this.networkChapters.length>0)){this.connectedChapterNetworkLoading=!0;let dt=this.scope.network.chapters.filter(Kt=>2==Kt.managementState&&Kt.id!=this.scope.currentChapter.id).map(Kt=>({name:Kt.name,slug:Kt.slug}));this.networkChapters.push(...dt),this.articleService.getContentConnectNetworks().then(Kt=>{let Vn=Kt.flatMap(ci=>ci.networkChapters.map(Vi=>({name:`${ci.name}: ${Vi.name}`,slug:Vi.slug})));this.networkChapters.push(...Vn),this.showContentConnect=this.networkChapters.length>0,this.connectedChapterNetworkLoading=!1,0==this.networkChapters.length&&this.toastService.popInfoToast(this.scope.network.getResourceOrKeyName("web_publish_dialog_content_connect_empty"))})}}else this.selectedContentConnectNetworkChapters={},this.selectAllContontConnectChapterNetworks=!1},this.toggleDate=(ze,dt)=>{switch(dt){case"articleSchedule":this.articleScheduleDate=new Date,this.isArticleScheduled=!0;break;case"articleArchive":this.articleArchiveTime=new Date,this.archive=!0;break;case"articleEvent":this.articleEventTime=new Date,this.eventArticle=!0}},this.toggleDateSwitch=(ze,dt)=>{switch(dt){case"articleSchedule":this.articleScheduleDate=ze.value?new Date:"";break;case"articleArchive":this.articleArchiveTime=ze.value?new Date:"";break;case"articleEvent":this.articleEventTime=ze.value?new Date:""}},this.toggleBreakingNews=ze=>{ze.value&&null==this.numberOfNotifiedUsers&&this.notificationService.getNotifiedUsersCount().then(dt=>{this.numberOfNotifiedUsers=dt})},this.toggleIsArticleScheduled=()=>{this.isArticleScheduled=!this.isArticleScheduled},this.toggleUserInterAction=()=>{this.userInterAction=!this.userInterAction},this.toggleIsBreakingNews=()=>{this.isBreakingNews=!this.isBreakingNews},this.toggleArchive=()=>{this.archive=!this.archive},this.toggleEventArticle=()=>{this.eventArticle=!this.eventArticle},this.toggleCriticalContent=()=>{this.criticalContent=!this.criticalContent},this.toggleReadReceipt=()=>{this.readReceipt=!this.readReceipt},this.toggleContentConnectEnabled=()=>{this.contentConnectEnabled=!this.contentConnectEnabled},this.toggleSelectAllContentConnectChapterNetworks=()=>{this.selectAllContontConnectChapterNetworks=!this.selectAllContontConnectChapterNetworks},this.toggleIsChapterSelected=ze=>{this.selectedContentConnectNetworkChapters[ze]=!this.selectedContentConnectNetworkChapters[ze]},this.toggleInactive=()=>{this.inactive=!this.inactive},this.toggleExternalContent=()=>{this.externalContent=!this.externalContent},this.toggleUpdatePublishDate=()=>{this.updatePublishDate=!this.updatePublishDate},this.generatePublishArticle=()=>({id:this.article.id,criticalContent:this.criticalContent,enableInteraction:this.userInterAction,inactive:this.inactive,chapterSlugs:Object.values(this.selectedContentConnectNetworkChapters).map(dt=>dt.slug),breakingNews:this.isBreakingNews,heading:this.article.revisions[0].texts[0].text,calendarDate:this.articleEventTime??null,scheduledPublish:this.articleScheduleDate?this.convertDate(this.articleScheduleDate):null,scheduledArchive:this.articleArchiveTime?this.convertDate(this.articleArchiveTime):null,externalContent:this.externalContent,firstPublish:!(!this.scope.profile.chapterRoles.contains(mc.MerkuristJournalist)||this.article.published),assetReferences:this.article.assetReferences,updatePublishDateAfterFirstPublish:this.updatePublishDate,readReceiptRequired:this.readReceipt,cbCalendarDate:!!this.article.CalendarDate,scheduledPublishDo:!!this.articleScheduleDate,scheduledArchiveDo:!!this.articleArchiveTime,externalContentNotifyAdminsNewContent:this.article.externalContentNotifyAdminsNewContent,externalContentNotifyAdminsChangedContent:this.article.externalContentNotifyAdminsChangedContent,externalContentNotifyAllChangedContent:this.article.externalContentNotifyAllChangedContent,externalContentUpdateCronSelection:this.article.externalContentUpdateCronSelection,externalContentConfluenceSourceId:this.article.externalContentConfluenceSourceId}),this.convertDate=ze=>{let dt=new Date(ze);return dt.setMilliseconds(0),dt.setSeconds(0),dt},this.animation={show:{type:"slide",duration:600,from:{position:{my:"bottom",at:"top",of:window},opacity:0},to:{position:{my:"center",at:"center",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"center",at:"center",of:window},opacity:1},to:{position:{my:"bottom",at:"top",of:window},opacity:0}}},this.scope=this.scopeService.getScope(),this.isJournalistOnly=this.scope.profile.chapterRoles.includes(mc.Journalist)&&!this.scope.profile.chapterRoles.includes(mc.MerkuristJournalist),this.allowPublish=!(this.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&this.isJournalistOnly)}ngOnChanges(s){s.article&&this.article.revisions&&(this.firstPublish=!(!this.allowPublish||null!=this.article.published),this.words=this.publishService.checkWords(this.article.revisions[0].htmlDocument),this.sentences=this.publishService.checkSentences(this.article.revisions[0].htmlDocument),this.paragraphs=this.publishService.checkParagraphs(this.article.revisions[0].htmlDocument))}ngOnInit(){this.firstPublish||(this.isArticleScheduled=null!=this.article.scheduledPublish,this.articleScheduleDate=this.article.scheduledPublish,this.articleArchiveTime=this.article.scheduledPublish,this.archive=null!=this.article.scheduledArchive,this.articleArchiveTime=this.article.scheduledArchive,this.inactive=this.article.inactive,this.articleEventTime=this.article.calendarDate,this.externalContent=this.article.externalContent),this.networkIsArticleOwner=this.article.originNetworkSlug==this.scope.network.slug,this.chapterIsArticleOwner=this.article.chapterSlug==this.scope.currentChapter.slug,this.featureGoogleNewsCheck=this.scope.currentScope.network.settings.featureGoogleNewsCheck;let s=this.scope.network.settings.languagePack.split("-")[0];this.allowBreakingNews=this.allowPublish,this.allowCriticalContentEnabled=this.scope.currentScope.chapter.settings.enableCriticalContent,this.interActionFeatureEnabled=this.scope.currentScope.chapter.settings.enableArticleInteraction,this.artilceReadReceiptFeatureEnable=this.scope.currentScope.chapter.settings.configurations.enableArticleReceipt,this.eventCalendarEnabled=!1!==this.scope.currentScope.network.settings.configurations.enableCalendar&&this.scope.currentScope.chapter.settings.configurations.enableEventArticles,this.featurEnableExternalContent=this.scope.currentScope.chapter.settings.configurations.enableExternalContent,this.featureContentConnectEnabled=this.scope.currentScope.network.settings.featureContentConnect,null!=this.scope.profile.activeUserLanguage?.vendorLanguageCode&&s!=this.scope.profile.activeUserLanguage?.vendorLanguageCode&&(s=this.scope.profile.activeUserLanguage?.vendorLanguageCode),this.interActionFeatureEnabled&&(this.userInterAction=!this.scope.currentChapter.settings.configurations?.disableInteractionsByDefault)}formIsValid(){return!this.publishArticle.scheduledArchive||this.publishArticle.scheduledArchive>=this.publishArticle.scheduledPublish}onPublish(){this.working=!0;const s=this.generatePublishArticle();this.allowPublish?this.articleService.publishArticle(s).then(r=>{this.working=!1,this.closePopup(),window.location.reload()}):this.articleService.publishArticleRequest(s).then(r=>{this.working=!1,this.closePopup(),window.location.reload()})}toggleChapterSelection(s,r){r.value?this.selectedContentConnectNetworkChapters[s.slug]=s:delete this.selectedContentConnectNetworkChapters[s.slug],this.selectAllContontConnectChapterNetworks=this.networkChapters.every(E=>!!this.selectedContentConnectNetworkChapters[E.slug]),this.connectedChapterNetworkIndicator=Object.keys(this.selectedContentConnectNetworkChapters).length>0}toggleAllChapters(s){s.value?this.networkChapters.forEach(l=>{this.selectedContentConnectNetworkChapters[l.slug]=l}):this.selectedContentConnectNetworkChapters={},this.connectedChapterNetworkIndicator=Object.keys(this.selectedContentConnectNetworkChapters).length>0}isChapterSelected(s){return!!this.selectedContentConnectNetworkChapters[s]}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU($n.p),e.rXU(Fd.J),e.rXU(id),e.rXU(dw),e.rXU(Se.A),e.rXU(ch))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-first-publish"]],inputs:{article:"article",publishButtonVisible:"publishButtonVisible",publishButtonDisabled:"publishButtonDisabled"},outputs:{publish:"publish"},standalone:!1,features:[e.OA$],decls:25,vars:24,consts:[[3,"onClick","disabled","visible"],[4,"dxTemplate","dxTemplateOf"],["position","top",3,"visibleChange","onHiding","visible","showCloseButton","showTitle","title","wrapperAttr","height","width","enableBodyScroll","animation"],[1,"first-publish-dialog-base-desktop"],[1,"first-publish-dialog-container"],[1,"quicktips"],[1,"publish-button"],["type","normal",3,"onClick","disabled"],[1,"first-publish-dialog-base-mobile"],[1,"quick-tip-header"],[1,"pointer",3,"click"],["icon","fa-solid fa-angle-down","stylingMode","text",3,"onClick","visible"],["icon","fa-solid fa-angle-up","stylingMode","text",3,"onClick","visible"],["aria-hidden","true",1,"publish-request-button-indicator",3,"visible"],[1,"dx-button-text"],[1,"row"],[1,"fa","fa-times","color-red"],[1,"fa","fa-check","color-green"],[1,"first-publish-dialog-tasks"],[1,"switch-label-container"],[3,"valueChange","onValueChanged","value"],[1,"first-publish-dialog-labels","pointer",3,"click"],["type","datetime",3,"valueChange","onOpened","adaptivityEnabled","value","openOnFieldClick","inputAttr","pickerType"],[1,"user-interaction-container"],[1,"extended-options-header"],[3,"valueChange","value"],[1,"d-flex","align-items-center"],[1,"first-publish-dialog-alert"],["id","small-indicator","height","20","width","20","aria-hidden","true",3,"visible"],[1,"extended-options.container"],["type","datetime",3,"valueChange","onOpened","adaptivityEnabled","value","inputAttr","pickerType"],["id","archiveArticleTooltipDesktop",1,"fa-regular","fa-question-circle","pointer","extended-options-info-icon"],["target","#archiveArticleTooltipDesktop","showEvent","mouseenter","hideEvent","mouseleave","position","top","maxWidth","90%"],["style","white-space: normal; word-wrap: break-word;",4,"dxTemplate","dxTemplateOf"],["id","articleEventTimeTooltipDesktop",1,"fa-regular","fa-question-circle","pointer","extended-options-info-icon"],["target","#articleEventTimeTooltipDesktop","showEvent","mouseenter","hideEvent","mouseleave","position","top","maxWidth","90%"],[1,"critical-content-container"],["id","inactiveTooltipDesktop",1,"fa-regular","fa-question-circle","pointer","extended-options-info-icon"],["target","#inactiveTooltipDesktop","showEvent","mouseenter","hideEvent","mouseleave","position","top","maxWidth","90%"],[2,"white-space","normal","word-wrap","break-word"],["id","criticalContentTooltipDesktop",1,"fa-regular","fa-question-circle","pointer","extended-options-info-icon"],["target","#criticalContentTooltipDesktop","showEvent","mouseenter","hideEvent","mouseleave","position","top","maxWidth","90%"],["id","contentConnectTooltipDesktop",1,"fa-regular","fa-question-circle","pointer","extended-options-info-icon"],["target","#contentConnectTooltipDesktop","showEvent","mouseenter","hideEvent","mouseleave","position","top","maxWidth","90%"],[1,"switch-label-container","pl-2"],[1,"content-connect-list"],[1,"content-connect-list-item"],[3,"onValueChanged","value"],["id","externalContent_UpdateCronSelection","name","externalContentUpdateCronSelection",3,"ngModel"],["selected","selected",3,"value"],[3,"value"],["for","externalContent_ConfluenceSourceId"],["type","text","id","externalContent_ConfluenceSourceId","name","ConfluenceSourceId","value","0",3,"ngModel"],["aria-hidden","true",1,"button-indicator",3,"visible"],["id","archiveArticleTooltipMobile",1,"fa-regular","fa-question-circle","pointer","extended-options-info-icon"],["target","#archiveArticleTooltipMobile","showEvent","mouseenter","hideEvent","mouseleave","position","top","maxWidth","90%"],["id","articleEventTimeTooltipMobile",1,"fa-regular","fa-question-circle","pointer","extended-options-info-icon"],["target","#articleEventTimeTooltipMobile","showEvent","mouseenter","hideEvent","mouseleave","position","top","maxWidth","90%"],["id","inactiveTooltipMobile",1,"fa-regular","fa-question-circle","pointer","extended-options-info-icon"],["target","#inactiveTooltipMobile","showEvent","mouseenter","hideEvent","mouseleave","position","top","maxWidth","90%"],["id","criticalContentTooltipMobile",1,"fa-regular","fa-question-circle","pointer","extended-options-info-icon"],["target","#criticalContentTooltipMobile","showEvent","mouseenter","hideEvent","mouseleave","position","top","maxWidth","90%"],["id","contentConnectTooltipMobile",1,"fa-regular","fa-question-circle","pointer","extended-options-info-icon"],["target","#contentConnectTooltipMobile","showEvent","mouseenter","hideEvent","mouseleave","position","top","maxWidth","90%"]],template:function(r,l){1&r&&(e.j41(0,"dx-button",0),e.bIt("onClick",function(){return l.onButtonClick()}),e.DNE(1,EC,4,2,"div",1),e.k0s(),e.j41(2,"dx-popup",2),e.mxI("visibleChange",function(N){return e.DH7(l.showFirstPublishDialog,N)||(l.showFirstPublishDialog=N),N}),e.bIt("onHiding",function(){return l.closePopup()}),e.j41(3,"div",3)(4,"div",4),e.nVh(5,gw,7,4,"div",5),e.nVh(6,bx,14,14)(7,Ex,14,19),e.j41(8,"div",6)(9,"dx-button",7),e.bIt("onClick",function(){return l.onPublish()}),e.DNE(10,Ox,4,2,"div",1),e.k0s()()()(),e.j41(11,"div",8)(12,"div",4)(13,"div",5)(14,"div",9)(15,"div",10),e.bIt("click",function(){return l.changeQuickTipDropDown()}),e.EFF(16),e.k0s(),e.j41(17,"dx-button",11),e.bIt("onClick",function(){return l.changeQuickTipDropDown()}),e.k0s(),e.j41(18,"dx-button",12),e.bIt("onClick",function(){return l.changeQuickTipDropDown()}),e.k0s()(),e.nVh(19,PC,2,2),e.k0s(),e.nVh(20,Mx,14,14)(21,f1,14,19),e.j41(22,"div",6)(23,"dx-button",7),e.bIt("onClick",function(){return l.onPublish()}),e.DNE(24,Rx,4,2,"div",1),e.k0s()()()()()),2&r&&(e.Y8G("disabled",l.publishButtonDisabled||l.working)("visible",l.publishButtonVisible),e.R7$(),e.Y8G("dxTemplateOf","content"),e.R7$(),e.R50("visible",l.showFirstPublishDialog),e.Y8G("showCloseButton",!0)("showTitle",!0)("title",l.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_title"))("wrapperAttr",e.lJ4(23,uw))("height","98vh")("width","100%")("enableBodyScroll",!1)("animation",l.animation),e.R7$(3),e.vxM(l.featureGoogleNewsCheck?5:-1),e.R7$(),e.vxM(l.firstPublish?6:l.firstPublish?-1:7),e.R7$(3),e.Y8G("disabled",l.working),e.R7$(),e.Y8G("dxTemplateOf","content"),e.R7$(6),e.SpI(" ","Quick Tips"," "),e.R7$(),e.Y8G("visible",!l.quickTipDropDown),e.R7$(),e.Y8G("visible",l.quickTipDropDown),e.R7$(),e.vxM(l.quickTipDropDown?19:-1),e.R7$(),e.vxM(l.firstPublish?20:l.firstPublish?-1:21),e.R7$(3),e.Y8G("disabled",l.working),e.R7$(),e.Y8G("dxTemplateOf","content"))},dependencies:[Ii.xH,Ii.y7,Ii.me,Ii.wz,Ii.BC,Ii.vS,Et.eC,Gn.e,ir.z,Wn.B,en.i,Zn.Y,xC.b],styles:["#firstPublishPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:var(--designContentWidth);max-width:var(--designContentWidth)}@media (max-width: 768px){  #firstPublishPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:100%;max-width:100%}}  #firstPublishPopup .dx-popup-content-scrollable{overflow-x:hidden}  .app-desktop .first-publish-dialog-base-mobile{display:none}  .app-desktop .first-publish-dialog-base-desktop{display:flex;justify-content:center}  .app-desktop .first-publish-dialog-base-desktop .first-publish-dialog-container{width:80%}@media (max-width: 768px){  .app-desktop .first-publish-dialog-base-desktop .first-publish-dialog-container{width:100%}}  .app-desktop .first-publish-dialog-base-desktop .quick-tip-header{font-size:1.2rem;display:flex;flex-direction:row}  .app-desktop .first-publish-dialog-base-desktop .first-publish-dialog-tasks{margin-top:2.5rem}  .app-desktop .first-publish-dialog-base-desktop .first-publish-dialog-labels{font-size:1.2rem;font-weight:700;margin:0 15px;color:var(--textColor60)}@media (max-width: 768px){  .app-desktop .first-publish-dialog-base-desktop .first-publish-dialog-labels{font-size:.8rem}}  .app-desktop .first-publish-dialog-base-desktop .critical-alert{font-size:.7rem;padding-left:3.5rem}  .app-desktop .first-publish-dialog-base-desktop .switch-label-container{display:flex;align-items:center;margin-top:20px}  .app-desktop .first-publish-dialog-base-desktop .first-publish-dialog-alert{font-size:.7rem;font-weight:300;padding-left:3.5rem}  .app-desktop .first-publish-dialog-base-desktop .content-connect-list{display:flex;flex-wrap:wrap;gap:5px;padding-left:1rem;justify-content:space-between;margin-top:15px}  .app-desktop .first-publish-dialog-base-desktop .content-connect-list-item{display:flex;width:calc(33.33% - 5px);gap:10px;margin-bottom:1rem}@media (max-width: 768px){  .app-desktop .first-publish-dialog-base-desktop .content-connect-list-item{width:100%;gap:15px}}  .app-desktop .first-publish-dialog-base-desktop .extended-options-header{margin-top:2rem;margin-bottom:1rem;font-size:1.3rem;display:flex;flex-direction:row}  .app-desktop .first-publish-dialog-base-desktop .extended-options-info-icon{margin-left:8px;font-size:1rem}  .app-desktop .first-publish-dialog-base-desktop .publish-button{display:flex;justify-content:center;transform:scale(1.2);margin-top:3rem;margin-bottom:4rem}  .app-desktop .first-publish-dialog-base-desktop .button-indicator{height:32px;width:32px;display:inline-block;vertical-align:middle;margin-right:5px}  .app-mobile .first-publish-dialog-base-desktop{display:none}  .app-mobile .first-publish-dialog-base-mobile{display:flex;justify-content:center}  .app-mobile .first-publish-dialog-base-mobile .first-publish-dialog-container{width:80%}@media (max-width: 768px){  .app-mobile .first-publish-dialog-base-mobile .first-publish-dialog-container{width:100%}}  .app-mobile .first-publish-dialog-base-mobile .quick-tip-header{font-size:1.2rem;display:flex;flex-direction:row}  .app-mobile .first-publish-dialog-base-mobile .first-publish-dialog-tasks{margin-top:2.5rem}  .app-mobile .first-publish-dialog-base-mobile .first-publish-dialog-labels{font-size:1.2rem;font-weight:700;margin:0 15px;color:var(--textColor60)}@media (max-width: 768px){  .app-mobile .first-publish-dialog-base-mobile .first-publish-dialog-labels{font-size:.8rem}}  .app-mobile .first-publish-dialog-base-mobile .critical-alert{font-size:.7rem;padding-left:3.5rem}  .app-mobile .first-publish-dialog-base-mobile .switch-label-container{display:flex;align-items:center;margin-top:20px;margin-bottom:20px}  .app-mobile .first-publish-dialog-base-mobile .first-publish-dialog-alert{font-size:.7rem;font-weight:300;padding-left:3.5rem}  .app-mobile .first-publish-dialog-base-mobile .content-connect-list{display:flex;flex-wrap:wrap;gap:5px;padding-left:1rem;justify-content:space-between;margin-top:15px}  .app-mobile .first-publish-dialog-base-mobile .content-connect-list-item{display:flex;width:calc(33.33% - 5px);gap:10px;margin-bottom:1rem}@media (max-width: 768px){  .app-mobile .first-publish-dialog-base-mobile .content-connect-list-item{width:100%;gap:15px}}  .app-mobile .first-publish-dialog-base-mobile .extended-options-header{margin-top:2rem;margin-bottom:1rem;font-size:1.3rem;display:flex;flex-direction:row}  .app-mobile .first-publish-dialog-base-mobile .extended-options-info-icon{margin-left:8px;font-size:1rem}  .app-mobile .first-publish-dialog-base-mobile .publish-button{display:flex;justify-content:center;transform:scale(1.2);margin-top:3rem;margin-bottom:4rem}  .app-mobile .first-publish-dialog-base-mobile .button-indicator{height:32px;width:32px;display:inline-block;vertical-align:middle;margin-right:5px}.publish-request-button-indicator[_ngcontent-%COMP%]{height:32px;width:32px;display:inline-block;vertical-align:middle;margin-right:5px}"]}))}return o(),t})();var kx=p(3777);const Bx=()=>({id:"updateActiveEmailPopup"});function uA(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-popup",3),e.mxI("visibleChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.isPopupVisible,r)||(l.isPopupVisible=r),m.Njj(r)}),e.bIt("onShowing",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.showPopup())})("onHidden",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.close())}),e.j41(1,"div",4)(2,"p",5),e.EFF(3),e.k0s(),e.nrm(4,"div",6),e.k0s(),e.j41(5,"div",7)(6,"dx-button",8),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.close())}),e.EFF(7),e.k0s(),e.j41(8,"dx-button",9),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.updateActiveEmail())}),e.EFF(9),e.k0s()()()}if(2&o){const n=e.XpG();e.R50("visible",n.isPopupVisible),e.Y8G("title",n.scope.currentScope.network.getResourceOrKeyName("web_emailDialog_updateActiveTitle"))("height","auto")("wrapperAttr",e.lJ4(10,Bx))("dragEnabled",!1)("animation",n.animation)("enableBodyScroll",!0),e.R7$(3),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_emailDialog_updateActiveDescription")),e.R7$(4),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_cancel")),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_accept"))}}function vc(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",18)(2,"i",19),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())})("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())}),e.k0s()(),e.j41(3,"div",20),e.EFF(4),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(2),e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_common_close_dialog")),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_activate")," ")}}function Fx(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-popup",10),e.mxI("visibleChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.isPopupVisible,r)||(l.isPopupVisible=r),m.Njj(r)}),e.bIt("onShowing",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.showPopup())})("onHidden",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.close())}),e.DNE(1,vc,5,2,"div",11),e.j41(2,"div",12)(3,"div",13)(4,"p",14),e.EFF(5,"\xa0"),e.k0s()(),e.j41(6,"div",15),e.nrm(7,"i",16),e.j41(8,"p",17),e.EFF(9),e.k0s()()(),e.j41(10,"div")(11,"div",7)(12,"dx-button",9),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.updateActiveEmail())}),e.EFF(13),e.k0s()()(),e.nrm(14,"div",6),e.k0s()}if(2&o){const n=e.XpG();e.R50("visible",n.isPopupVisible),e.Y8G("height","auto")("minHeight","50%")("wrapperAttr",e.lJ4(16,Bx))("dragEnabled",!1)("animation",n.animation)("enableBodyScroll",!0),e.R7$(),e.Y8G("dxTemplateOf","title"),e.R7$(2),e.AVh("update-active-email-popup-description-heading-background",n.hasCorporateBackgroundColor)("update-active-email-popup-description-heading-background-fallback",!n.hasCorporateBackgroundColor),e.R7$(6),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_emailDialog_updateActiveDescription")),e.R7$(2),e.AVh("update-active-email-popup-footer-ios-margin",n.isIos),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_accept"))}}let LC=(()=>{var o;class t{constructor(s,r,l,E,N){this.scopeService=s,this.authService=r,this.deviceInfoService=l,this.themingService=E,this.toasterService=N,this.isPopupVisible=!1,this.isPopupVisibleChange=new e.bkB,this.emailCallback=new e.bkB,this.isMobile=!1,this.hasCorporateBackgroundColor=!1,this.isIos=!1,this.showPopup=()=>{this.isPopupVisible=!0,this.isPopupVisibleChange.emit(!0)},this.close=()=>{this.isPopupVisible=!1,this.isPopupVisibleChange.emit(!1)},this.updateActiveEmail=()=>{this.authService.updateActiveEmail(this.emailId).then(()=>{if(this.deviceInfoService.getUserAgentInfo().isApp){const ae={my:{x:"center",y:"bottom"},at:{x:"center",y:"bottom"},of:window,offset:{x:0,y:-100},collision:"fit"};this.toasterService.popSuccessToast(this.scope.network.getResourceOrKeyName("web_email_updated_successfully"),ae)}else this.toasterService.popSuccessToast(this.scope.network.getResourceOrKeyName("web_email_updated_successfully"));this.emailCallback.emit()},ae=>{this.toasterService.popErrorToast(this.scope.network.getResourceOrKeyName("web_common_unknown_error_message"))}),this.close()},this.animation={show:{type:"slide",duration:600,from:{position:{my:"top",at:"bottom",of:window},opacity:0},to:{position:{my:"bottom",at:"bottom",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"bottom",at:"bottom",of:window},opacity:1},to:{position:{my:"top",at:"bottom",of:window},opacity:0}}},this.scope=this.scopeService.getScope(),this.isMobile=this.deviceInfoService.getUserAgentInfo().isMobile,this.isIos=this.deviceInfoService.getUserAgentInfo().isIos,this.isMobile||(this.animation={show:{type:"slide",duration:600,from:{position:{my:"bottom",at:"top",of:window},opacity:0},to:{position:{my:"top",at:"top",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"top",at:"top",of:window},opacity:1},to:{position:{my:"bottom",at:"top",of:window},opacity:0}}}),this.themingServiceSubscription=this.themingService.themingChanged$.subscribe(ae=>{this.hasCorporateBackgroundColor="dark"==ae.resolvedTheme&&this.scope.network.settings.colorPrimaryBackgroundDark||"light"==ae.resolvedTheme&&this.scope.network.settings.colorPrimaryBackground})}ngOnDestroy(){this.themingServiceSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Da.u),e.rXU(Ce.E),e.rXU(oo),e.rXU(ch))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-update-active-email"]],inputs:{emailId:"emailId",isPopupVisible:"isPopupVisible"},outputs:{isPopupVisibleChange:"isPopupVisibleChange",emailCallback:"emailCallback"},standalone:!1,decls:3,vars:1,consts:[[1,"update-active-email-base"],["position","top",3,"visible","title","height","wrapperAttr","dragEnabled","animation","enableBodyScroll"],["position","bottom",3,"visible","height","minHeight","wrapperAttr","dragEnabled","animation","enableBodyScroll"],["position","top",3,"visibleChange","onShowing","onHidden","visible","title","height","wrapperAttr","dragEnabled","animation","enableBodyScroll"],[1,"popup-body"],[1,"email-active-description"],[1,"clearfix"],[1,"popup-footer"],["stylingMode","text",3,"onClick"],[3,"onClick"],["position","bottom",3,"visibleChange","onShowing","onHidden","visible","height","minHeight","wrapperAttr","dragEnabled","animation","enableBodyScroll"],[4,"dxTemplate","dxTemplateOf"],[1,""],[1,"update-active-email-popup-description-heading"],[1,"m-0"],[1,"d-flex"],[1,"fa-regular","fa-circle-question","update-active-email-popup-description-icon"],[1,"update-active-email-popup-description-text"],[1,"update-active-email-popup-close-button-wrapper"],["tabindex","0","role","button",1,"fa-solid","fa-xmark","update-active-email-popup-close-button",3,"click","keydown.space","keydown.enter"],[1,"update-active-email-popup-title"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,uA,10,11,"dx-popup",1)(2,Fx,15,17,"dx-popup",2),e.k0s()),2&r&&(e.R7$(),e.vxM(l.isMobile?2:1))},dependencies:[Et.eC,Gn.e,en.i],styles:[".update-active-email-text[_ngcontent-%COMP%]{color:var(--textColor)}.update-active-email-text[_ngcontent-%COMP%]:hover{text-decoration:underline}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:600px!important}@media (max-width: 768px){  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:100%!important;max-width:100%;border:solid 1px var(--textColor)}}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-active-description{font-weight:400;color:var(--textColor)}@media (max-width: 768px){  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-title{border:none;padding:0}}@media (max-width: 768px){  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-content-scrollable{overflow-x:hidden}}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .update-active-email-popup-close-button-wrapper{display:flex;justify-content:right}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .update-active-email-popup-close-button{font-size:1.5rem;cursor:pointer;margin:15px 15px 0 0}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .update-active-email-popup-close-button:hover{transform:scale(1.1)}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .update-active-email-popup-title{text-align:center;font-size:1.3rem;font-weight:700}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .update-active-email-popup-description-heading{padding:15px 0;text-align:center;font-weight:500;margin:0 -25px 20px;font-size:1rem}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .update-active-email-popup-description-heading-background{background-color:var(--colorPrimaryBackground)}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .update-active-email-popup-description-heading-background-fallback{background-color:var(--color1-alpha20)}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .update-active-email-popup-description-text{font-weight:400;color:var(--textColor60);margin-left:2%;font-size:1rem}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .update-active-email-popup-description-icon{padding-top:5px;color:var(--textColor60)}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer{display:flex;justify-content:right;gap:1rem}@media (max-width: 768px){  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer{justify-content:center;margin-top:60px}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer .dx-button{font-weight:700}}  #updateActiveEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .update-active-email-popup-footer-ios-margin{margin-bottom:40px}"]}))}return o(),t})();const Nx=()=>({id:"sendVerificationPopup"});function VC(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-popup",3),e.mxI("visibleChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.isPopupVisible,r)||(l.isPopupVisible=r),m.Njj(r)}),e.bIt("onShowing",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.showPopup())})("onHidden",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.close())}),e.j41(1,"div",4)(2,"p",5),e.EFF(3),e.k0s(),e.nrm(4,"div",6),e.k0s(),e.j41(5,"div",7)(6,"dx-button",8),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.close())}),e.EFF(7),e.k0s(),e.j41(8,"dx-button",9),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.sendVerification())}),e.EFF(9),e.k0s()()()}if(2&o){const n=e.XpG();e.R50("visible",n.isPopupVisible),e.Y8G("title",n.scope.currentScope.network.getResourceOrKeyName("web_verificationDialog_sendTitle"))("height","auto")("wrapperAttr",e.lJ4(10,Nx))("dragEnabled",!1)("animation",n.animation)("enableBodyScroll",!0),e.R7$(3),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_verificationDialog_sendDescription")),e.R7$(4),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_cancel")),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_send"))}}function Mw(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",18)(2,"i",19),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())})("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())}),e.k0s()(),e.j41(3,"div",20),e.EFF(4),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(2),e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_common_close_dialog")),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_verify")," ")}}function I_(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-popup",10),e.mxI("visibleChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.isPopupVisible,r)||(l.isPopupVisible=r),m.Njj(r)}),e.bIt("onShowing",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.showPopup())})("onHidden",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.close())}),e.DNE(1,Mw,5,2,"div",11),e.j41(2,"div",12)(3,"div",13)(4,"p",14),e.EFF(5,"\xa0"),e.k0s()(),e.j41(6,"div",15),e.nrm(7,"i",16),e.j41(8,"p",17),e.EFF(9),e.k0s()()(),e.j41(10,"div")(11,"div",7)(12,"dx-button",9),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.sendVerification())}),e.EFF(13),e.k0s()()(),e.nrm(14,"div",6),e.k0s()}if(2&o){const n=e.XpG();e.R50("visible",n.isPopupVisible),e.Y8G("height","auto")("minHeight","50%")("wrapperAttr",e.lJ4(16,Nx))("dragEnabled",!1)("animation",n.animation)("enableBodyScroll",!0),e.R7$(),e.Y8G("dxTemplateOf","title"),e.R7$(2),e.AVh("send-verification-popup-description-heading-background",n.hasCorporateBackgroundColor)("send-verification-popup-description-heading-background-fallback",!n.hasCorporateBackgroundColor),e.R7$(6),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_verificationDialog_sendDescription")),e.R7$(2),e.AVh("send-verification-popup-footer-ios-margin",n.isIos),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_send"))}}let HC=(()=>{var o;class t{constructor(s,r,l,E,N){this.scopeService=s,this.authService=r,this.deviceInfoService=l,this.themingService=E,this.toasterService=N,this.isPopupVisible=!1,this.isPopupVisibleChange=new e.bkB,this.emailCallback=new e.bkB,this.isMobile=!1,this.hasCorporateBackgroundColor=!1,this.isIos=!1,this.showPopup=()=>{this.isPopupVisible=!0,this.isPopupVisibleChange.emit(!0)},this.close=()=>{this.isPopupVisible=!1,this.isPopupVisibleChange.emit(!1)},this.sendVerification=()=>{this.authService.sendEmailVerification(this.email).then(()=>{if(this.deviceInfoService.getUserAgentInfo().isApp){const ae={my:{x:"center",y:"bottom"},at:{x:"center",y:"bottom"},of:window,offset:{x:0,y:-100},collision:"fit"};this.toasterService.popSuccessToast(this.scope.network.getResourceOrKeyName("web_email_verification_sent_successfully"),ae)}else this.toasterService.popSuccessToast(this.scope.network.getResourceOrKeyName("web_email_verification_sent_successfully"));this.emailCallback.emit()},ae=>{this.toasterService.popErrorToast(this.scope.network.getResourceOrKeyName("web_common_unknown_error_message"))}),this.close()},this.animation={show:{type:"slide",duration:600,from:{position:{my:"top",at:"bottom",of:window},opacity:0},to:{position:{my:"bottom",at:"bottom",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"bottom",at:"bottom",of:window},opacity:1},to:{position:{my:"top",at:"bottom",of:window},opacity:0}}},this.scope=this.scopeService.getScope(),this.isMobile=this.deviceInfoService.getUserAgentInfo().isMobile,this.isIos=this.deviceInfoService.getUserAgentInfo().isIos,this.isMobile||(this.animation={show:{type:"slide",duration:600,from:{position:{my:"bottom",at:"top",of:window},opacity:0},to:{position:{my:"top",at:"top",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"top",at:"top",of:window},opacity:1},to:{position:{my:"bottom",at:"top",of:window},opacity:0}}}),this.themingServiceSubscription=this.themingService.themingChanged$.subscribe(ae=>{this.hasCorporateBackgroundColor="dark"==ae.resolvedTheme&&this.scope.network.settings.colorPrimaryBackgroundDark||"light"==ae.resolvedTheme&&this.scope.network.settings.colorPrimaryBackground})}ngOnDestroy(){this.themingServiceSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Da.u),e.rXU(Ce.E),e.rXU(oo),e.rXU(ch))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-send-verification"]],inputs:{email:"email",isPopupVisible:"isPopupVisible"},outputs:{isPopupVisibleChange:"isPopupVisibleChange",emailCallback:"emailCallback"},standalone:!1,decls:3,vars:1,consts:[[1,"send-verification-base"],["position","top",3,"visible","title","height","wrapperAttr","dragEnabled","animation","enableBodyScroll"],["position","bottom",3,"visible","height","minHeight","wrapperAttr","dragEnabled","animation","enableBodyScroll"],["position","top",3,"visibleChange","onShowing","onHidden","visible","title","height","wrapperAttr","dragEnabled","animation","enableBodyScroll"],[1,"popup-body"],[1,"email-verify-description"],[1,"clearfix"],[1,"popup-footer"],["stylingMode","text",3,"onClick"],[3,"onClick"],["position","bottom",3,"visibleChange","onShowing","onHidden","visible","height","minHeight","wrapperAttr","dragEnabled","animation","enableBodyScroll"],[4,"dxTemplate","dxTemplateOf"],[1,""],[1,"send-verification-popup-description-heading"],[1,"m-0"],[1,"d-flex"],[1,"fa-regular","fa-circle-question","send-verification-popup-description-icon"],[1,"send-verification-popup-description-text"],[1,"send-verification-popup-close-button-wrapper"],["tabindex","0","role","button",1,"fa-solid","fa-xmark","send-verification-popup-close-button",3,"click","keydown.enter","keydown.space"],[1,"send-verification-popup-title"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,VC,10,11,"dx-popup",1)(2,I_,15,17,"dx-popup",2),e.k0s()),2&r&&(e.R7$(),e.vxM(l.isMobile?2:1))},dependencies:[Et.eC,Gn.e,en.i],styles:[".send-verification-text[_ngcontent-%COMP%]{color:var(--textColor)}.send-verification-text[_ngcontent-%COMP%]:hover{text-decoration:underline}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:600px!important}@media (max-width: 768px){  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:100%!important;max-width:100%;border:solid 1px var(--textColor)}}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-verify-description{font-weight:400;color:var(--textColor)}@media (max-width: 768px){  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-title{border:none;padding:0}}@media (max-width: 768px){  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-content-scrollable{overflow-x:hidden}}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .send-verification-popup-close-button-wrapper{display:flex;justify-content:right}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .send-verification-popup-close-button{font-size:1.5rem;cursor:pointer;margin:15px 15px 0 0}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .send-verification-popup-close-button:hover{transform:scale(1.1)}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .send-verification-popup-title{text-align:center;font-size:1.3rem;font-weight:700}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .send-verification-popup-description-heading{padding:15px 0;text-align:center;font-weight:500;margin:0 -25px 20px;font-size:1rem}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .send-verification-popup-description-heading-background{background-color:var(--colorPrimaryBackground)}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .send-verification-popup-description-heading-background-fallback{background-color:var(--color1-alpha20)}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .send-verification-popup-description-text{font-weight:400;color:var(--textColor60);margin-left:2%;font-size:1rem}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .send-verification-popup-description-icon{padding-top:5px;color:var(--textColor60)}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer{display:flex;justify-content:end;gap:1rem}@media (max-width: 768px){  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer{margin-top:60px;justify-content:center}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer .dx-button{font-weight:700}}  #sendVerificationPopup .dx-overlay-content.dx-popup-normal.dx-resizable .send-verification-popup-footer-ios-margin{margin-bottom:40px}"]}))}return o(),t})();const Cc=()=>({id:"emailDeletePopup"});function Pw(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-popup",3),e.mxI("visibleChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.isPopupVisible,r)||(l.isPopupVisible=r),m.Njj(r)}),e.bIt("onShowing",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.showPopup())})("onHidden",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.close())}),e.j41(1,"div",4)(2,"p",5),e.EFF(3),e.k0s()(),e.j41(4,"div",6)(5,"dx-button",7),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.close())}),e.EFF(6),e.k0s(),e.j41(7,"dx-button",8),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.deleteEmail())}),e.EFF(8),e.k0s()()()}if(2&o){const n=e.XpG();e.Y8G("title",n.scope.currentScope.network.getResourceOrKeyName("web_emailDialog_delete")),e.R50("visible",n.isPopupVisible),e.Y8G("height","auto")("wrapperAttr",e.lJ4(10,Cc))("dragEnabled",!1)("animation",n.animation)("enableBodyScroll",!0),e.R7$(3),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_emailDialog_deleteDescription")),e.R7$(3),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_cancel")),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_emailDialog_delete"))}}function hA(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",18)(2,"i",19),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())})("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())}),e.k0s()(),e.j41(3,"div",20),e.EFF(4),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(2),e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_common_close_dialog")),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_emailDialog_delete")," ")}}function Rw(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-popup",9),e.mxI("visibleChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.isPopupVisible,r)||(l.isPopupVisible=r),m.Njj(r)}),e.bIt("onShowing",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.showPopup())})("onHidden",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.close())}),e.DNE(1,hA,5,2,"div",10),e.j41(2,"div",11)(3,"div",12)(4,"p",13),e.EFF(5,"\xa0"),e.k0s()(),e.j41(6,"div",14),e.nrm(7,"i",15),e.j41(8,"p",16),e.EFF(9),e.k0s()()(),e.j41(10,"div")(11,"div",6)(12,"dx-button",8),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.deleteEmail())}),e.EFF(13),e.k0s()()(),e.nrm(14,"div",17),e.k0s()}if(2&o){const n=e.XpG();e.R50("visible",n.isPopupVisible),e.Y8G("height","auto")("minHeight","50%")("wrapperAttr",e.lJ4(16,Cc))("dragEnabled",!1)("animation",n.animation)("enableBodyScroll",!0),e.R7$(),e.Y8G("dxTemplateOf","title"),e.R7$(2),e.AVh("email-delete-popup-description-heading-background",n.hasCorporateBackgroundColor)("email-delete-popup-description-heading-background-fallback",!n.hasCorporateBackgroundColor),e.R7$(6),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_emailDialog_deleteDescription")),e.R7$(2),e.AVh("email-delete-popup-footer-ios-margin",n.isIos),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_emailDialog_delete"))}}let M_=(()=>{var o;class t{constructor(s,r,l,E,N){this.scopeService=s,this.authService=r,this.deviceInfoService=l,this.themingService=E,this.toasterService=N,this.isPopupVisible=!1,this.isPopupVisibleChange=new e.bkB,this.emailCallback=new e.bkB,this.isMobile=!1,this.hasCorporateBackgroundColor=!1,this.isIos=!1,this.showPopup=()=>{this.isPopupVisible=!0,this.isPopupVisibleChange.emit(!0)},this.close=()=>{this.isPopupVisible=!1,this.isPopupVisibleChange.emit(!1)},this.deleteEmail=()=>{this.authService.deleteEmail(this.emailId).then(()=>{if(this.deviceInfoService.getUserAgentInfo().isApp){const ae={my:{x:"center",y:"bottom"},at:{x:"center",y:"bottom"},of:window,offset:{x:0,y:-100},collision:"fit"};this.toasterService.popSuccessToast(this.scope.network.getResourceOrKeyName("web_email_deleted_successfully"),ae)}else this.toasterService.popSuccessToast(this.scope.network.getResourceOrKeyName("web_email_deleted_successfully"));this.emailCallback.emit()},ae=>{this.toasterService.popErrorToast(this.scope.network.getResourceOrKeyName("web_common_unknown_error_message"))}),this.close()},this.animation={show:{type:"slide",duration:600,from:{position:{my:"top",at:"bottom",of:window},opacity:0},to:{position:{my:"bottom",at:"bottom",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"bottom",at:"bottom",of:window},opacity:1},to:{position:{my:"top",at:"bottom",of:window},opacity:0}}},this.scope=this.scopeService.getScope(),this.isMobile=this.deviceInfoService.getUserAgentInfo().isMobile,this.isIos=this.deviceInfoService.getUserAgentInfo().isIos,this.isMobile||(this.animation={show:{type:"slide",duration:600,from:{position:{my:"bottom",at:"top",of:window},opacity:0},to:{position:{my:"top",at:"top",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"top",at:"top",of:window},opacity:1},to:{position:{my:"bottom",at:"top",of:window},opacity:0}}}),this.themingServiceSubscription=this.themingService.themingChanged$.subscribe(ae=>{this.hasCorporateBackgroundColor="dark"==ae.resolvedTheme&&this.scope.network.settings.colorPrimaryBackgroundDark||"light"==ae.resolvedTheme&&this.scope.network.settings.colorPrimaryBackground})}ngOnDestroy(){this.themingServiceSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Da.u),e.rXU(Ce.E),e.rXU(oo),e.rXU(ch))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-email-delete"]],inputs:{emailId:"emailId",isPopupVisible:"isPopupVisible"},outputs:{isPopupVisibleChange:"isPopupVisibleChange",emailCallback:"emailCallback"},standalone:!1,decls:3,vars:1,consts:[[1,"email-delete-base"],["position","top",3,"title","visible","height","wrapperAttr","dragEnabled","animation","enableBodyScroll"],["position","bottom",3,"visible","height","minHeight","wrapperAttr","dragEnabled","animation","enableBodyScroll"],["position","top",3,"visibleChange","onShowing","onHidden","title","visible","height","wrapperAttr","dragEnabled","animation","enableBodyScroll"],[1,"popup-body"],[1,"email-delete-description"],[1,"popup-footer"],["stylingMode","text",3,"onClick"],[3,"onClick"],["position","bottom",3,"visibleChange","onShowing","onHidden","visible","height","minHeight","wrapperAttr","dragEnabled","animation","enableBodyScroll"],[4,"dxTemplate","dxTemplateOf"],[1,""],[1,"email-delete-popup-description-heading"],[1,"m-0"],[1,"d-flex"],[1,"fa-regular","fa-circle-question","email-delete-popup-description-icon"],[1,"email-delete-popup-description-text"],[1,"clearfix"],[1,"email-delete-popup-close-button-wrapper"],["tabindex","0","role","button",1,"fa-solid","fa-xmark","email-delete-popup-close-button",3,"click","keydown.enter","keydown.space"],[1,"email-delete-popup-title"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,Pw,9,11,"dx-popup",1)(2,Rw,15,17,"dx-popup",2),e.k0s()),2&r&&(e.R7$(),e.vxM(l.isMobile?2:1))},dependencies:[Et.eC,Gn.e,en.i],styles:[".email-delete-text[_ngcontent-%COMP%]{color:var(--textColor)}.email-delete-text[_ngcontent-%COMP%]:hover{text-decoration:underline}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:600px!important}@media (max-width: 768px){  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:100%!important;max-width:100%;border:solid 1px var(--textColor)}}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-delete-description{font-weight:400;color:var(--textColor)}@media (max-width: 768px){  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-title{border:none;padding:0}}@media (max-width: 768px){  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-content-scrollable{overflow-x:hidden}}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-delete-popup-close-button-wrapper{display:flex;justify-content:right}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-delete-popup-close-button{font-size:1.5rem;cursor:pointer;margin:15px 15px 0 0}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-delete-popup-close-button:hover{transform:scale(1.1)}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-delete-popup-title{text-align:center;font-size:1.3rem;font-weight:700}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-delete-popup-description-heading{padding:15px 0;text-align:center;font-weight:500;margin:0 -25px 20px;font-size:1rem}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-delete-popup-description-heading-background{background-color:var(--colorPrimaryBackground)}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-delete-popup-description-heading-background-fallback{background-color:var(--color1-alpha20)}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-delete-popup-description-text{font-weight:400;color:var(--textColor60);margin-left:2%;font-size:1rem}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-delete-popup-description-icon{padding-top:5px;color:var(--textColor60)}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer{display:flex;justify-content:end;gap:1rem}@media (max-width: 768px){  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer{margin-top:60px;justify-content:center}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer .dx-button{font-weight:700}}  #emailDeletePopup .dx-overlay-content.dx-popup-normal.dx-resizable .email-delete-popup-footer-ios-margin{margin-bottom:40px}"]}))}return o(),t})();const Qp=o=>({"aria-label":o,"aria-haspopup":"menu"}),kw=()=>({hideOnOutsideClick:!0,hideOnParentScroll:!0,width:"auto"});function $C(o,t){if(1&o&&(e.j41(0,"div",7)(1,"p",8)(2,"span",9),e.EFF(3),e.k0s(),e.j41(4,"span",10),e.nrm(5,"i",11),e.k0s(),e.j41(6,"span",12),e.EFF(7),e.k0s()()()),2&o){const n=e.XpG(2);e.R7$(3),e.JRh(n.activeEmail.email),e.R7$(4),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_activeEmail"))}}function Lx(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",7)(1,"p",14)(2,"span",9),e.EFF(3),e.k0s(),e.j41(4,"dx-drop-down-button",15),e.bIt("onItemClick",function(r){const l=m.eBV(n).$implicit,E=e.XpG(3);return m.Njj(E.onMenuClick(r,l))}),e.k0s()()()}if(2&o){const n=t.$implicit,s=e.XpG(3);e.R7$(3),e.JRh(n.email),e.R7$(),e.Y8G("stylingMode","text")("text","")("showArrowIcon",!1)("useItemTextAsTitle",!1)("hint",s.scope.currentScope.network.getResourceOrKeyName("web_common_further_options"))("icon","fa-solid fa-gear")("items",s.confirmedEmailsDropDownItems)("elementAttr",e.eq3(10,Qp,s.scope.currentScope.network.getResourceOrKeyName("web_common_further_options")))("dropDownOptions",e.lJ4(12,kw))}}function P_(o,t){if(1&o){const n=e.RV6();e.Z7z(0,Lx,5,13,"div",7,e.fX1),e.j41(2,"app-update-active-email",13),e.mxI("isPopupVisibleChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.activateEmailDropDownToggle,r)||(l.activateEmailDropDownToggle=r),m.Njj(r)}),e.bIt("emailCallback",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.getEmails())}),e.k0s(),e.j41(3,"app-email-delete",13),e.mxI("isPopupVisibleChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.deleteConfirmedEmailDropDownToggle,r)||(l.deleteConfirmedEmailDropDownToggle=r),m.Njj(r)}),e.bIt("emailCallback",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.getEmails())}),e.k0s()}if(2&o){const n=e.XpG(2);e.Dyx(n.confirmedEmails),e.R7$(2),e.Y8G("emailId",null==n.selectedEmail?null:n.selectedEmail.id),e.R50("isPopupVisible",n.activateEmailDropDownToggle),e.R7$(),e.Y8G("emailId",null==n.selectedEmail?null:n.selectedEmail.id),e.R50("isPopupVisible",n.deleteConfirmedEmailDropDownToggle)}}function pA(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",7)(1,"p",14)(2,"span",9),e.EFF(3),e.k0s(),e.j41(4,"dx-drop-down-button",18),e.bIt("onItemClick",function(r){const l=m.eBV(n).$implicit,E=e.XpG(3);return m.Njj(E.onMenuClick(r,l))}),e.k0s()()()}if(2&o){const n=t.$implicit,s=e.XpG(3);e.R7$(3),e.JRh(n.email),e.R7$(),e.Y8G("stylingMode","text")("text","")("showArrowIcon",!1)("icon","fa-solid fa-gear")("useItemTextAsTitle",!1)("items",s.unconfirmedEmailsDropDownItems)("hint",s.scope.currentScope.network.getResourceOrKeyName("web_common_further_options"))("elementAttr",e.eq3(10,Qp,s.scope.currentScope.network.getResourceOrKeyName("web_common_further_options")))("dropDownOptions",e.lJ4(12,kw))}}function _1(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"p",16),e.EFF(2),e.k0s()(),e.Z7z(3,pA,5,13,"div",7,e.fX1),e.j41(5,"app-send-verification",17),e.mxI("isPopupVisibleChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.verifyEmailDropDownToggle,r)||(l.verifyEmailDropDownToggle=r),m.Njj(r)}),e.bIt("emailCallback",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.getEmails())}),e.k0s(),e.j41(6,"app-email-delete",13),e.mxI("isPopupVisibleChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.deleteUnconfirmedEmailDropDownToggle,r)||(l.deleteUnconfirmedEmailDropDownToggle=r),m.Njj(r)}),e.bIt("emailCallback",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.getEmails())}),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_notVerifiedEmails")),e.R7$(),e.Dyx(n.unconfirmedEmails),e.R7$(2),e.Y8G("email",null==n.selectedEmail?null:n.selectedEmail.email),e.R50("isPopupVisible",n.verifyEmailDropDownToggle),e.R7$(),e.Y8G("emailId",null==n.selectedEmail?null:n.selectedEmail.id),e.R50("isPopupVisible",n.deleteUnconfirmedEmailDropDownToggle)}}function gA(o,t){if(1&o&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2),e.k0s(),e.j41(3,"div",2),e.nrm(4,"i",3),e.j41(5,"p",4),e.EFF(6),e.k0s()(),e.j41(7,"div",5)(8,"div",6),e.nVh(9,$C,8,2,"div",7),e.nVh(10,P_,4,4),e.nVh(11,_1,7,5),e.k0s()()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_manageEmails")),e.R7$(4),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_emailManagementDescription")),e.R7$(3),e.vxM(void 0!==n.activeEmail?9:-1),e.R7$(),e.vxM(n.confirmedEmails.length>0?10:-1),e.R7$(),e.vxM(n.unconfirmedEmails.length>0?11:-1)}}let Vx=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.authService=r,this.confirmedEmails=[],this.unconfirmedEmails=[],this.active=!1,this.showPopupMap=new Map,this.selectedEmail=null,this.confirmedEmailsDropDownItems=[],this.unconfirmedEmailsDropDownItems=[],this.activateEmailDropDownToggle=!1,this.deleteConfirmedEmailDropDownToggle=!1,this.deleteUnconfirmedEmailDropDownToggle=!1,this.verifyEmailDropDownToggle=!1,this.onMenuClick=(l,E)=>{const N=l?.itemData?.id;this.selectedEmail=E,this.activateEmailDropDownToggle="toggleActive"===N,this.verifyEmailDropDownToggle="verify"===N,this.deleteConfirmedEmailDropDownToggle="deleteConfirmed"===N,this.deleteUnconfirmedEmailDropDownToggle="deleteUnconfirmed"===N},this.getEmails=()=>{this.authService.getEmails().then(l=>{for(var E of(this.emails=l,this.confirmedEmails=[],this.unconfirmedEmails=[],this.emails))E.active&&(this.activeEmail=E),E.emailConfirmed&&!E.active&&this.confirmedEmails.push(E),!E.emailConfirmed&&!E.active&&this.unconfirmedEmails.push(E),this.showPopupMap.set(E.id,!1)})},this.toggleDropdown=()=>{this.active=!this.active},this.showPopup=()=>{},this.closePopup=()=>{},this.scope=this.scopeService.getScope(),this.confirmedEmailsDropDownItems=[{id:"toggleActive",text:this.scope.currentScope.network.getResourceOrKeyName("web_common_activate"),icon:"fa-regular fa-envelope"},{id:"deleteConfirmed",text:this.scope.currentScope.network.getResourceOrKeyName("web_common_delete"),icon:"fa-solid fa-trash-can"}],this.unconfirmedEmailsDropDownItems=[{id:"verify",text:this.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_verify"),icon:"fa-regular fa-envelope"},{id:"deleteUnconfirmed",text:this.scope.currentScope.network.getResourceOrKeyName("web_common_delete"),icon:"fa-solid fa-trash-can"}]}ngOnInit(){this.getEmails()}togglePopupVisibility(s){this.showPopupMap.forEach((r,l)=>{this.showPopupMap.set(l,l==s&&!r)})}hidePopup(s){this.showPopupMap.set(s,!1)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Da.u))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-email-management"]],standalone:!1,decls:1,vars:1,consts:[[1,"email-management-base"],[1,"email-management-instruction"],[1,"d-flex"],[1,"fa-regular","fa-circle-question","email-management-description-icon"],[1,"email-management-description"],[1,"email-management-container"],[1,"panel-body","nopadding"],[1,"panel","settings-panel"],[1,"pl-2"],[1,"settings-email"],[1,"float-right"],[1,"fa-solid","fa-check"],[1,"float-right","email-management-status-text"],[3,"isPopupVisibleChange","emailCallback","emailId","isPopupVisible"],[1,"pl-2","d-flex","align-items-center"],[1,"dropdown-button",3,"onItemClick","stylingMode","text","showArrowIcon","useItemTextAsTitle","hint","icon","items","elementAttr","dropDownOptions"],[1,""],[3,"isPopupVisibleChange","emailCallback","email","isPopupVisible"],[1,"dropdown-button",3,"onItemClick","stylingMode","text","showArrowIcon","icon","useItemTextAsTitle","items","hint","elementAttr","dropDownOptions"]],template:function(r,l){1&r&&e.nVh(0,gA,12,5,"div",0),2&r&&e.vxM(l.scope.currentScope.chapter.settings.disableUserProfileUpdate?-1:0)},dependencies:[Po.h,LC,HC,M_],styles:[".email-management-base[_ngcontent-%COMP%]   .email-management-instruction[_ngcontent-%COMP%]{color:var(--textColor);font-size:1.3rem;font-family:var(--fontPrimary);line-height:1.2em;margin-bottom:.4em}.email-management-base[_ngcontent-%COMP%]   .email-management-description[_ngcontent-%COMP%]{font-weight:400;color:var(--textColor60);margin-left:2%}.email-management-base[_ngcontent-%COMP%]   .email-management-description-icon[_ngcontent-%COMP%]{padding-top:5px;color:var(--textColor60)}.email-management-base[_ngcontent-%COMP%]   .email-management-container[_ngcontent-%COMP%]   .email-management-container-title[_ngcontent-%COMP%]{text-decoration:underline}.email-management-base[_ngcontent-%COMP%]   .email-management-container[_ngcontent-%COMP%]   .email-management-status-text[_ngcontent-%COMP%]{margin-right:1%}.email-management-base[_ngcontent-%COMP%]   .email-management-container[_ngcontent-%COMP%]   .email-management-edit-icon[_ngcontent-%COMP%]{cursor:pointer}.email-management-base[_ngcontent-%COMP%]   .email-management-container[_ngcontent-%COMP%]   .email-management-edit-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.email-management-base[_ngcontent-%COMP%]   .settings-email[_ngcontent-%COMP%]{font-weight:400;color:var(--textColor);text-decoration:underline}.email-management-base[_ngcontent-%COMP%]   .dropdown-button[_ngcontent-%COMP%]{margin-left:auto}  .email-management-popup-wrapper{background-color:transparent}  .email-management-popup-wrapper .dx-overlay-content.dx-popup-normal.dx-resizable{border:1px solid var(--textColor)}  .email-management-popup-wrapper .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-title{border:none;padding:0;min-height:0}  .email-management-popup-wrapper .dx-overlay-content.dx-popup-normal.dx-resizable .email-management-popup-close-button-wrapper{float:right}  .email-management-popup-wrapper .dx-overlay-content.dx-popup-normal.dx-resizable .email-management-popup-close-button{font-size:1.1rem;cursor:pointer;margin:10px 10px 0 0}  .email-management-popup-wrapper .dx-overlay-content.dx-popup-normal.dx-resizable .email-management-popup-close-button:hover{transform:scale(1.1)}  .email-management-popup-wrapper .dx-overlay-content.dx-popup-normal.dx-resizable .email-management-popup-options-text:hover{text-decoration:underline}  .email-management-popup-wrapper .dx-overlay-content.dx-popup-normal.dx-resizable .email-management-popup-options-icon{margin:auto 5% auto 0}"]}))}return o(),t})();const Bw=()=>({id:"changeEmailPopup"});function Fw(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",18)(2,"i",19),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.close())})("keydown.enter",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.close())})("keydown.space",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.close())}),e.k0s()(),e.j41(3,"div",20),e.EFF(4),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(2),e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_common_close_dialog")),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_authentication_settings_changeEmailForm_title")," ")}}function fA(o,t){if(1&o&&(e.j41(0,"div",7),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.changeEmailSuccess)}}function Nw(o,t){if(1&o&&(e.j41(0,"div",8),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.changeEmailError)}}function mA(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",1),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.showChangeEmailPopup())}),e.k0s(),e.j41(1,"dx-popup",2),e.mxI("visibleChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.isChangeEmailPopupVisible,r)||(l.isChangeEmailPopupVisible=r),m.Njj(r)}),e.bIt("onShowing",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.showPopup())})("onHidden",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.closePopup())}),e.DNE(2,Fw,5,2,"div",3),e.j41(3,"div",4)(4,"div",5)(5,"p",6),e.EFF(6),e.k0s()(),e.j41(7,"div",4),e.nVh(8,fA,2,1,"div",7),e.nVh(9,Nw,2,1,"div",8),e.j41(10,"dx-form",9),e.mxI("formDataChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.newEmail,r)||(l.newEmail=r),m.Njj(r)}),e.j41(11,"dxi-item",10),e.nrm(12,"dxo-label",11)(13,"dxi-validation-rule",12),e.k0s(),e.j41(14,"dxi-item",13),e.nrm(15,"dxo-label",11)(16,"dxi-validation-rule",12)(17,"dxi-validation-rule",14),e.k0s(),e.j41(18,"dxi-item",15)(19,"dx-button",16),e.bIt("onClick",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.changeEmail(r))}),e.EFF(20),e.k0s()()()()(),e.nrm(21,"div",17),e.k0s()}if(2&o){const n=e.XpG(2);e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_authentication_settings_changeEmailForm_title")),e.R7$(),e.R50("visible",n.isChangeEmailPopupVisible),e.Y8G("height","auto")("minHeight","50%")("wrapperAttr",e.lJ4(26,Bw))("dragEnabled",!1)("animation",n.animation)("enableBodyScroll",!0),e.R7$(),e.Y8G("dxTemplateOf","title"),e.R7$(2),e.AVh("change-email-popup-description-heading-background",n.hasCorporateBackgroundColor)("change-email-popup-description-heading-background-fallback",!n.hasCorporateBackgroundColor),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authentication_changeEmailForm_description")),e.R7$(2),e.vxM(""!=n.changeEmailSuccess?8:-1),e.R7$(),e.vxM(n.changeEmailError?9:-1),e.R7$(),e.R50("formData",n.newEmail),e.R7$(2),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_authentication_changeEmailForm_newEmailPlaceholder")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_authentication_changeEmailForm_newEmailError")),e.R7$(2),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_authentication_changeEmailForm_confirmationEmailPlaceholder")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_authentication_changeEmailForm_confirmationEmailError")),e.R7$(),e.Y8G("comparisonTarget",n.emailComparison)("message",n.scope.network.getResourceOrKeyName("web_authentication_changeEmailForm_confirmationEmailError")),e.R7$(),e.AVh("change-email-popup-footer-ios-margin",n.isIos),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_authentication_changeEmailForm_Submit")," ")}}function v1(o,t){if(1&o&&(e.j41(0,"div",7),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.changeEmailSuccess)}}function C1(o,t){if(1&o&&(e.j41(0,"div",8),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.changeEmailError)}}function y1(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",21),e.EFF(1),e.k0s(),e.j41(2,"div",22),e.nrm(3,"i",23),e.j41(4,"p",24),e.EFF(5),e.k0s()(),e.nVh(6,v1,2,1,"div",7),e.nVh(7,C1,2,1,"div",8),e.j41(8,"dx-form",9),e.mxI("formDataChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.newEmail,r)||(l.newEmail=r),m.Njj(r)}),e.j41(9,"dxi-item",10),e.nrm(10,"dxo-label",11)(11,"dxi-validation-rule",12),e.k0s(),e.j41(12,"dxi-item",13),e.nrm(13,"dxo-label",11)(14,"dxi-validation-rule",12)(15,"dxi-validation-rule",14),e.k0s(),e.j41(16,"dxi-item")(17,"dx-button",25),e.bIt("onClick",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.changeEmail(r))}),e.EFF(18),e.k0s()()()}if(2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authentication_settings_changeEmailForm_title")),e.R7$(4),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authentication_changeEmailForm_description")),e.R7$(),e.vxM(""!=n.changeEmailSuccess?6:-1),e.R7$(),e.vxM(n.changeEmailError?7:-1),e.R7$(),e.R50("formData",n.newEmail),e.R7$(2),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_authentication_changeEmailForm_newEmailPlaceholder")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_authentication_changeEmailForm_newEmailError")),e.R7$(2),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_authentication_changeEmailForm_confirmationEmailPlaceholder")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_authentication_changeEmailForm_confirmationEmailError")),e.R7$(),e.Y8G("comparisonTarget",n.emailComparison)("message",n.scope.network.getResourceOrKeyName("web_authentication_changeEmailForm_confirmationEmailError")),e.R7$(3),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_authentication_changeEmailForm_Submit")," ")}}function b1(o,t){if(1&o&&(e.j41(0,"div",0),e.nVh(1,mA,22,27)(2,y1,19,12),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.isMobile?1:2)}}let Hx=(()=>{var o;class t{constructor(s,r,l,E,N){this.scopeService=s,this.authService=r,this.deviceInfoService=l,this.themingService=E,this.toasterService=N,this.emailCallback=new e.bkB,this.changeEmailError=null,this.changeEmailSuccess="",this.newEmail={email:"",confirmEmail:""},this.isChangeEmailPopupVisible=!1,this.isMobile=!1,this.hasCorporateBackgroundColor=!1,this.isIos=!1,this.emailComparison=()=>this.newEmail.email,this.changeEmail=ae=>{ae?.event?.preventDefault?.(),this.form.instance.validate().isValid&&this.authService.changeEmail(this.newEmail).then(ze=>{if(this.form.instance.beginUpdate(),this.form.instance.getEditor("email")?.reset(),this.form.instance.getEditor("confirmEmail")?.reset(),this.form.instance.endUpdate(),kx.A.resetGroup(this.form.instance),this.changeEmailError=null,this.changeEmailSuccess=this.scope.currentScope.network.resources.web_authentication_changeEmailForm_changeEmailSuccessful,this.newEmail.email="",this.newEmail.confirmEmail="",this.deviceInfoService.getUserAgentInfo().isMobile)if(this.deviceInfoService.getUserAgentInfo().isApp){const dt={my:{x:"center",y:"bottom"},at:{x:"center",y:"bottom"},of:window,offset:{x:0,y:-100},collision:"fit"};this.toasterService.popSuccessToast(this.scope.currentScope.network.resources.web_authentication_changeEmailForm_changeEmailSuccessful,dt)}else this.toasterService.popSuccessToast(this.scope.currentScope.network.resources.web_authentication_changeEmailForm_changeEmailSuccessful);this.close()},ze=>{this.changeEmailError=ze.error,this.changeEmailSuccess=""})},this.showChangeEmailPopup=()=>{this.isChangeEmailPopupVisible=!0},this.close=()=>{this.emailCallback.emit(),this.isChangeEmailPopupVisible=!1},this.showPopup=()=>{},this.closePopup=()=>{},this.animation={show:{type:"slide",duration:600,from:{position:{my:"top",at:"bottom",of:window},opacity:0},to:{position:{my:"bottom",at:"bottom",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"bottom",at:"bottom",of:window},opacity:1},to:{position:{my:"top",at:"bottom",of:window},opacity:0}}},this.scope=this.scopeService.getScope(),this.isMobile=this.deviceInfoService.getUserAgentInfo().isMobile,this.isIos=this.deviceInfoService.getUserAgentInfo().isIos,this.themingServiceSubscription=this.themingService.themingChanged$.subscribe(ae=>{this.hasCorporateBackgroundColor="dark"==ae.resolvedTheme&&this.scope.network.settings.colorPrimaryBackgroundDark||"light"==ae.resolvedTheme&&this.scope.network.settings.colorPrimaryBackground})}ngOnDestroy(){this.themingServiceSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Da.u),e.rXU(Ce.E),e.rXU(oo),e.rXU(ch))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-change-email"]],viewQuery:function(r,l){if(1&r&&e.GBs(Xi.o,5),2&r){let E;e.mGM(E=e.lsd())&&(l.form=E.first)}},outputs:{emailCallback:"emailCallback"},standalone:!1,decls:1,vars:1,consts:[[1,"change-email-base"],["aria-haspopup","dialog",1,"change-email-button",3,"onClick","text"],["position","bottom",3,"visibleChange","onShowing","onHidden","visible","height","minHeight","wrapperAttr","dragEnabled","animation","enableBodyScroll"],[4,"dxTemplate","dxTemplateOf"],[1,""],[1,"change-email-popup-description-heading"],[1,"m-0"],["role","alert","aria-live","assertive","aria-atomic","true","tabindex","-1",1,"form-group","alert","alert-success"],["role","alert","aria-live","assertive","aria-atomic","true","tabindex","-1",1,"form-group","alert","alert-danger"],["labelMode","floating",3,"formDataChange","formData"],["dataField","email","editorType","dxTextBox"],[3,"text"],["id","signUpError","type","required",3,"message"],["dataField","confirmEmail","editorType","dxTextBox"],["id","signUpError","type","compare",3,"comparisonTarget","message"],[1,"popup-footer"],[3,"onClick"],[1,"clearfix"],[1,"change-email-popup-close-button-wrapper"],["tabindex","0","role","button",1,"fa-solid","fa-xmark","change-email-popup-close-button",3,"click","keydown.enter","keydown.space"],[1,"change-email-popup-title"],[1,"change-email-instruction"],[1,"d-flex"],[1,"fa-regular","fa-circle-question","change-email-description-icon"],[1,"change-email-description"],[1,"change-email-button",3,"onClick"]],template:function(r,l){1&r&&e.nVh(0,b1,3,1,"div",0),2&r&&e.vxM(l.scope.currentScope.chapter.settings.disableUserProfileUpdate?-1:0)},dependencies:[Bo.CVf,Et.eC,Gn.e,Bo.rkl,Bo.Inh,Xi.o,en.i],styles:[".change-email-base[_ngcontent-%COMP%]   .change-email-instruction[_ngcontent-%COMP%]{color:var(--textColor);font-size:1.3rem;font-family:var(--fontPrimary);line-height:1.2em;margin-bottom:.4em;font-weight:700}.change-email-base[_ngcontent-%COMP%]   .change-email-description[_ngcontent-%COMP%]{font-weight:400;color:var(--textColor60);margin-left:2%}.change-email-base[_ngcontent-%COMP%]   .change-email-description-icon[_ngcontent-%COMP%]{padding-top:5px;color:var(--textColor60)}  .change-email-button{font-weight:700}  .change-email-button .dx-button-text{font-weight:700}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:600px!important}@media (max-width: 768px){  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:100%!important;max-width:100%;border:solid 1px var(--textColor)}}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-title{border:none;padding:0}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-content-scrollable{overflow-x:hidden}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .change-email-popup-close-button-wrapper{display:flex;justify-content:right}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .change-email-popup-close-button{font-size:1.5rem;cursor:pointer;margin:15px 15px 0 0}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .change-email-popup-close-button:hover{transform:scale(1.1)}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .change-email-popup-title{text-align:center;font-size:1.3rem;font-weight:700}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .change-email-popup-description-heading{padding:15px 0;text-align:center;font-weight:500;margin:0 -25px 20px;font-size:1rem}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .change-email-popup-description-heading-background{background-color:var(--colorPrimaryBackground)}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .change-email-popup-description-heading-background-fallback{background-color:var(--color1-alpha20)}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .change-email-popup-description-text{font-weight:400;color:var(--textColor60);margin-left:2%;font-size:1rem}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .change-email-popup-description-icon{padding-top:5px;color:var(--textColor60)}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer{display:flex;justify-content:center;margin-top:60px}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer dx-button{font-weight:700}  #changeEmailPopup .dx-overlay-content.dx-popup-normal.dx-resizable .change-email-popup-footer-ios-margin{margin-bottom:30px}"]}))}return o(),t})();const UC=["deleteAccForm"],_A=["emailMgmt"],vA=()=>({id:"changePasswordPopup"}),$x=()=>({id:"deleteAccountPopup"});function R_(o,t){if(1&o&&(e.j41(0,"div",4),e.nrm(1,"i",11),e.EFF(2),e.k0s()),2&o){const n=e.XpG();e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_settings_emailValidationInProgress")," ")}}function Ux(o,t){if(1&o&&(e.j41(0,"div",5),e.EFF(1),e.j41(2,"a",12),e.EFF(3),e.k0s(),e.EFF(4,". "),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_settings_emailValidationFailure")," "),e.R7$(),e.Y8G("href",e.mNQ("mailto:"+n.scope.currentScope.network.settings.supportMail),e.B4B),e.R7$(),e.JRh(n.scope.currentScope.network.settings.supportMail)}}function Lw(o,t){if(1&o&&(e.j41(0,"div",6),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_settings_emailValidationSuccess")," ")}}function Vw(o,t){if(1&o&&(e.j41(0,"h2",13),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_setPassword"))}}function k_(o,t){if(1&o&&(e.j41(0,"h2",13),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_changePassword"))}}function CA(o,t){if(1&o&&(e.j41(0,"div",14)(1,"span"),e.EFF(2),e.k0s()()),2&o){const n=e.XpG(3);e.R7$(2),e.JRh(n.passwordMask)}}function Hw(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG(4);e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_changePassword")," ")}}function B_(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG(4);e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_setPassword")," ")}}function $w(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",33)(2,"i",34),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.closeChangePasswordPopup())})("keydown.enter",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.closeChangePasswordPopup())})("keydown.space",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.closeChangePasswordPopup())}),e.k0s()(),e.j41(3,"div",35),e.nVh(4,Hw,1,1)(5,B_,1,1),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(2),e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_common_close_dialog")),e.R7$(2),e.vxM(n.profile.hasPassword?4:5)}}function yA(o,t){if(1&o&&(e.j41(0,"div",21),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.changePasswordError)}}function F_(o,t){if(1&o&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.changePasswordMessage)}}function bA(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",36),e.bIt("onClick",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.changePassword(r))}),e.EFF(1),e.k0s()}if(2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_changePasswordButton"))}}function Uw(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",36),e.bIt("onClick",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.changePassword(r))}),e.EFF(1),e.k0s()}if(2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_setPasswordButton"))}}function jw(o,t){if(1&o){const n=e.RV6();e.nVh(0,CA,3,1,"div",14),e.j41(1,"dx-button",15),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.showChangePasswordPopup())}),e.k0s(),e.j41(2,"dx-popup",16),e.mxI("visibleChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.isChangePasswordPopupVisible,r)||(l.isChangePasswordPopupVisible=r),m.Njj(r)}),e.bIt("onShowing",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.showPopup())})("onHidden",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.closePopup())}),e.DNE(3,$w,6,2,"div",17),e.j41(4,"div",18)(5,"div",19)(6,"p",20),e.EFF(7),e.k0s()(),e.j41(8,"div",18),e.nVh(9,yA,2,1,"div",21),e.nVh(10,F_,2,1,"div",22),e.j41(11,"dx-form",23),e.mxI("formDataChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.changePasswordData,r)||(l.changePasswordData=r),m.Njj(r)}),e.j41(12,"dxi-item",24),e.nrm(13,"dxo-label",25)(14,"dxi-validation-rule",26),e.k0s(),e.j41(15,"dxi-item",27),e.nrm(16,"dxo-label",25)(17,"dxi-validation-rule",26)(18,"dxi-validation-rule",28),e.k0s(),e.j41(19,"dxi-item",29),e.nrm(20,"dxo-label",25)(21,"dxi-validation-rule",26)(22,"dxi-validation-rule",30),e.k0s(),e.j41(23,"dxi-item",31),e.nVh(24,bA,2,1,"dx-button")(25,Uw,2,1,"dx-button"),e.k0s()()()(),e.nrm(26,"div",32),e.k0s()}if(2&o){const n=e.XpG(2);e.vxM(n.profile.hasPassword?0:-1),e.R7$(),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_changePasswordButton")),e.R7$(),e.R50("visible",n.isChangePasswordPopupVisible),e.Y8G("height","auto")("minHeight","50%")("wrapperAttr",e.lJ4(33,vA))("dragEnabled",!1)("animation",n.animation)("enableBodyScroll",!0),e.R7$(),e.Y8G("dxTemplateOf","title"),e.R7$(2),e.AVh("authentication-settings-change-password-popup-description-heading-background",n.hasCorporateBackgroundColor)("authentication-settings-change-password-popup-description-heading-background-fallback",!n.hasCorporateBackgroundColor),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authentication_settings_change_password_popup_description_heading")),e.R7$(2),e.vxM(n.changePasswordError?9:-1),e.R7$(),e.vxM(n.changePasswordMessage?10:-1),e.R7$(),e.R50("formData",n.changePasswordData),e.R7$(),e.Y8G("editorOptions",n.currentPasswordEditorOptions),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_authentication_currentPasswordPlaceholder")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_passwordError")),e.R7$(),e.Y8G("editorOptions",n.newPasswordEditorOptions),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_password")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_passwordError")),e.R7$(),e.Y8G("validationCallback",n.validatePassword)("message",n.passwordErrorMessage),e.R7$(),e.Y8G("editorOptions",n.confirmPasswordEditorOptions),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_repeatPassword")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_repeatPasswordError")),e.R7$(),e.Y8G("comparisonTarget",n.passwordComparison),e.R7$(),e.AVh("authentication-settings-change-password-popup-footer-ios-margin",n.isIos),e.R7$(),e.vxM(n.profile.hasPassword?24:25)}}function xA(o,t){if(1&o&&(e.j41(0,"div",21),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.changePasswordError)}}function Gw(o,t){if(1&o&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.changePasswordMessage)}}function EA(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",38),e.bIt("onClick",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.changePassword(r))}),e.EFF(1),e.k0s()}if(2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_changePasswordButton"))}}function jx(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",38),e.bIt("onClick",function(r){m.eBV(n);const l=e.XpG(3);return m.Njj(l.changePassword(r))}),e.EFF(1),e.k0s()}if(2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_setPasswordButton"))}}function OA(o,t){if(1&o){const n=e.RV6();e.nVh(0,xA,2,1,"div",21),e.nVh(1,Gw,2,1,"div",22),e.j41(2,"dx-form",23),e.mxI("formDataChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.changePasswordData,r)||(l.changePasswordData=r),m.Njj(r)}),e.j41(3,"dxi-item",24),e.nrm(4,"dxo-label",25)(5,"dxi-validation-rule",26),e.k0s(),e.j41(6,"dxi-item",27),e.nrm(7,"dxo-label",25)(8,"dxi-validation-rule",26)(9,"dxi-validation-rule",28),e.k0s(),e.j41(10,"dxi-item",29),e.nrm(11,"dxo-label",25)(12,"dxi-validation-rule",26)(13,"dxi-validation-rule",30),e.k0s(),e.j41(14,"dxi-item"),e.nVh(15,EA,2,1,"dx-button",37)(16,jx,2,1,"dx-button",37),e.k0s()()}if(2&o){const n=e.XpG(2);e.vxM(n.changePasswordError?0:-1),e.R7$(),e.vxM(n.changePasswordMessage?1:-1),e.R7$(),e.R50("formData",n.changePasswordData),e.R7$(),e.Y8G("editorOptions",n.currentPasswordEditorOptions),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_authentication_currentPasswordPlaceholder")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_passwordError")),e.R7$(),e.Y8G("editorOptions",n.newPasswordEditorOptions),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_password")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_passwordError")),e.R7$(),e.Y8G("validationCallback",n.validatePassword)("message",n.passwordErrorMessage),e.R7$(),e.Y8G("editorOptions",n.confirmPasswordEditorOptions),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_repeatPassword")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_repeatPasswordError")),e.R7$(),e.Y8G("comparisonTarget",n.passwordComparison),e.R7$(2),e.vxM(n.profile.hasPassword?15:16)}}function Gx(o,t){if(1&o&&(e.j41(0,"div",7),e.nVh(1,Vw,2,1,"h2",13)(2,k_,2,1,"h2",13),e.nVh(3,jw,27,34)(4,OA,17,16),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.vxM(n.profile.hasPassword?2:1),e.R7$(2),e.vxM(n.isMobile?3:4)}}function jC(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",39),e.nrm(1,"app-email-management",null,0),e.k0s(),e.j41(3,"div",39)(4,"app-change-email",40),e.bIt("emailCallback",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.updateEmails())}),e.k0s()()}}function GC(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",8)(1,"h2",13),e.EFF(2),e.k0s(),e.j41(3,"div",41),e.nrm(4,"i",42),e.j41(5,"p",43),e.EFF(6),e.k0s()(),e.j41(7,"div",44)(8,"dx-button",15),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.openDeleteAccountModal())}),e.k0s()()()}if(2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_accountTitle")),e.R7$(4),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_accountInstruction")),e.R7$(2),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_deleteDialogTitle"))}}function wA(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",51)(2,"i",52),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())})("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.close())}),e.k0s()(),e.j41(3,"div",53),e.EFF(4),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(2),e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_common_close_dialog")),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_deleteDialogTitle")," ")}}function Wx(o,t){if(1&o&&(e.j41(0,"div",46),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.deleteAccountError)}}function WC(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-popup",16),e.mxI("visibleChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.isDeleteAccountVisible,r)||(l.isDeleteAccountVisible=r),m.Njj(r)}),e.bIt("onShowing",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.showPopup())})("onHidden",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.closePopup())}),e.DNE(1,wA,5,2,"div",17),e.j41(2,"div",18)(3,"div",45)(4,"p",20),e.EFF(5),e.k0s()(),e.nVh(6,Wx,2,1,"div",46),e.j41(7,"dx-form",47,1),e.mxI("formDataChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.deleteFormData,r)||(l.deleteFormData=r),m.Njj(r)}),e.j41(9,"dxi-item",48),e.nrm(10,"dxo-label",25)(11,"dxi-validation-rule",26),e.k0s()(),e.j41(12,"div",41),e.nrm(13,"i",49),e.j41(14,"p",50),e.EFF(15),e.k0s()()(),e.j41(16,"div")(17,"div",31)(18,"dx-button",36),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.deleteAccount())}),e.EFF(19),e.k0s()()(),e.nrm(20,"div",32),e.k0s()}if(2&o){const n=e.XpG();e.R50("visible",n.isDeleteAccountVisible),e.Y8G("height","auto")("minHeight","50%")("wrapperAttr",e.lJ4(22,$x))("dragEnabled",!1)("animation",n.animation)("enableBodyScroll",!0),e.R7$(),e.Y8G("dxTemplateOf","title"),e.R7$(2),e.AVh("authentication-settings-delete-profile-popup-description-heading-background",n.hasCorporateBackgroundColor)("authentication-settings-delete-profile-popup-description-heading-background-fallback",!n.hasCorporateBackgroundColor),e.R7$(2),e.JRh(n.scope.currentScope.network.resources.web_authenticationSettings_deleteDialogDescription_0),e.R7$(),e.vxM(n.deleteAccountError?6:-1),e.R7$(),e.R50("formData",n.deleteFormData),e.R7$(2),e.Y8G("editorOptions",n.deleteAccountPasswordEditorOptions),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_authentication_currentPasswordPlaceholder")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_passwordError")),e.R7$(4),e.JRh(n.scope.currentScope.network.resources.web_authenticationSettings_deleteDialogDescription_1),e.R7$(2),e.AVh("authentication-settings-delete-profile-popup-footer-ios-margin",n.isIos),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_deleteDialogConfirm"))}}function Ww(o,t){if(1&o&&(e.j41(0,"div",46),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.JRh(n.deleteAccountError)}}function rm(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-popup",54),e.mxI("visibleChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.isDeleteAccountVisible,r)||(l.isDeleteAccountVisible=r),m.Njj(r)}),e.bIt("onShowing",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.showPopup())})("onHidden",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.closePopup())}),e.j41(1,"div"),e.nVh(2,Ww,2,1,"div",46),e.j41(3,"dx-form",47,1),e.mxI("formDataChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.deleteFormData,r)||(l.deleteFormData=r),m.Njj(r)}),e.j41(5,"dxi-item",48),e.nrm(6,"dxo-label",25)(7,"dxi-validation-rule",26),e.k0s()(),e.j41(8,"p",43),e.EFF(9),e.k0s(),e.j41(10,"p",43),e.EFF(11),e.k0s()(),e.j41(12,"div")(13,"div",31)(14,"dx-button",55),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.close())}),e.EFF(15),e.k0s(),e.j41(16,"dx-button",36),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.deleteAccount())}),e.EFF(17),e.k0s()()(),e.nrm(18,"div",32),e.k0s()}if(2&o){const n=e.XpG();e.R50("visible",n.isDeleteAccountVisible),e.Y8G("title",n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_deleteDialogTitle"))("height","auto")("wrapperAttr",e.lJ4(16,$x))("dragEnabled",!1)("animation",n.animation)("enableBodyScroll",!0),e.R7$(2),e.vxM(n.deleteAccountError?2:-1),e.R7$(),e.R50("formData",n.deleteFormData),e.R7$(2),e.Y8G("editorOptions",n.deleteAccountPasswordEditorOptions),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_authentication_currentPasswordPlaceholder")),e.R7$(),e.Y8G("message",n.scope.network.getResourceOrKeyName("web_user_passwordError")),e.R7$(2),e.JRh(n.scope.currentScope.network.resources.web_authenticationSettings_deleteDialogDescription_0),e.R7$(2),e.JRh(n.scope.currentScope.network.resources.web_authenticationSettings_deleteDialogDescription_1),e.R7$(4),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_cancel")),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_deleteDialogConfirm"))}}let SA=(()=>{var o;class t{constructor(s,r,l,E,N,ae,ze){this.profileService=s,this.authService=r,this.scopeService=l,this.deviceInfoService=E,this.oculusService=N,this.themingService=ae,this.toasterService=ze,this.emailValidationStates={none:0,inProgress:1,failure:2,success:3},this.emailValidationState=this.emailValidationStates.none,this.changePasswordData={password:"",newPassword:"",confirmPassword:""},this.passwordErrorMessage="",this.isDeleteAccountVisible=!1,this.isChangePasswordPopupVisible=!1,this.isMobile=!1,this.hasCorporateBackgroundColor=!1,this.isIos=!1,this.passwordMask="\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",this.deleteFormData={password:""},this.currentPasswordVisible=!1,this.newPasswordVisible=!1,this.confirmPasswordVisible=!1,this.deleteAccountPasswordVisible=!1,this.changePasswordMode=dt=>{var Kt;if(!(Kt="DeleteAccountPassword"==dt?this.deleteteAccForm.instance.getEditor(dt):this.form.instance.getEditor(dt)))return;const ci=!("text"===Kt.option("mode"));switch(Kt.option("mode",ci?"text":"password"),dt){case"ConfirmPassword":this.confirmPasswordVisible=ci;break;case"NewPassword":this.newPasswordVisible=ci;break;case"CurrentPassword":this.currentPasswordVisible=ci}const Vi=Kt.getButton&&Kt.getButton("PasswordIcon"),Di=this.scope.network.getResourceOrKeyName(ci?"web_common_hide_password":"web_common_show_password");Vi?.option({icon:ci?"fa-solid fa-eye-slash":"fa-solid fa-eye"});const Eo=Vi?.element?.();Eo&&(Eo.setAttribute("aria-label",Di),Eo.setAttribute("aria-pressed",String(ci)))},this.changePassword=dt=>{dt?.event?.preventDefault?.(),this.form.instance.validate().isValid?this.changePasswordData.password?this.authService.changePassword(this.changePasswordData).then(Kt=>{this.updatePasswordMessage(),this.closeChangePasswordPopup(),Kt.error&&(this.changePasswordError=Kt.error)}):this.authService.setPassword(this.changePasswordData).then(Kt=>{this.updatePasswordMessage(),this.closeChangePasswordPopup(),Kt.error&&(this.changePasswordError=Kt.error)}):this.changePasswordError=this.scope.network.getResourceOrKeyName("web_common_check_input")},this.validatePassword=dt=>{const Kt=dt.value;if(!Kt)return!1;const Vn=this.scope.currentScope.network.settings.passwordMinLength,ci=this.scope.currentScope.network.settings.passwordMinCapitals,Vi=this.scope.currentScope.network.settings.passwordMinNumbers,Di=this.scope.currentScope.network.settings.passwordMinSpecialCharacters;return Kt.length<Vn?(this.passwordErrorMessage=this.scope.currentScope.network.getResourceOrKeyName("web_user_password_minLength").replace("{num}",Vn),!1):(Kt.match(/[A-Z]/g)||[]).length<ci?(this.passwordErrorMessage=this.scope.currentScope.network.getResourceOrKeyName("web_user_password_minCapitals").replace("{num}",ci),!1):(Kt.match(/[0-9]/g)||[]).length<Vi?(this.passwordErrorMessage=this.scope.currentScope.network.getResourceOrKeyName("web_user_password_minNumbers").replace("{num}",Vi),!1):!((Kt.match(/[^A-Za-z0-9]/g)||[]).length<Di&&(this.passwordErrorMessage=this.scope.currentScope.network.getResourceOrKeyName("web_user_password_minSpecialCharacters").replace("{num}",Di),1))},this.passwordComparison=()=>this.changePasswordData.newPassword,this.openDeleteAccountModal=()=>{this.isDeleteAccountVisible=!0},this.close=()=>{this.isDeleteAccountVisible=!1},this.showChangePasswordPopup=()=>{this.isChangePasswordPopupVisible=!0},this.closeChangePasswordPopup=()=>{this.isChangePasswordPopupVisible=!1},this.showPopup=()=>{},this.closePopup=()=>{},this.updateEmails=()=>{this.emailMgmt.getEmails()},this.animation={show:{type:"slide",duration:600,from:{position:{my:"top",at:"bottom",of:window},opacity:0},to:{position:{my:"bottom",at:"bottom",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"bottom",at:"bottom",of:window},opacity:1},to:{position:{my:"top",at:"bottom",of:window},opacity:0}}},this.scope=this.scopeService.getScope(),this.profile=this.scope.profile,this.profileServiceSubscription=this.profileService.profileChanged$.subscribe(dt=>{this.profile=dt}),this.themingServiceSubscription=this.themingService.themingChanged$.subscribe(dt=>{this.hasCorporateBackgroundColor="dark"==dt.resolvedTheme&&this.scope.network.settings.colorPrimaryBackgroundDark||"light"==dt.resolvedTheme&&this.scope.network.settings.colorPrimaryBackground}),this.isMobile=E.getUserAgentInfo().isMobile,this.isIos=E.getUserAgentInfo().isIos,this.isMobile||(this.animation={show:{type:"slide",duration:600,from:{position:{my:"bottom",at:"top",of:window},opacity:0},to:{position:{my:"top",at:"top",of:window},opacity:1}},hide:{type:"slide",duration:500,from:{position:{my:"top",at:"top",of:window},opacity:1},to:{position:{my:"bottom",at:"top",of:window},opacity:0}}}),this.currentPasswordEditorOptions={mode:this.currentPasswordVisible?"text":"password",valueChangeEvent:"input",buttons:[{name:"PasswordIcon",location:"after",options:{stylingMode:"text",icon:"fa-solid fa-eye",onClick:()=>{this.changePasswordMode("CurrentPassword")},elementAttr:{"aria-label":this.scope.network.getResourceOrKeyName(this.currentPasswordVisible?"web_common_hide_password":"web_common_show_password"),"aria-pressed":this.currentPasswordVisible}}}]},this.newPasswordEditorOptions={mode:this.newPasswordVisible?"text":"password",valueChangeEvent:"input",buttons:[{name:"PasswordIcon",location:"after",options:{stylingMode:"text",icon:"fa-solid fa-eye",onClick:()=>{this.changePasswordMode("NewPassword")},elementAttr:{"aria-label":this.scope.network.getResourceOrKeyName(this.newPasswordVisible?"web_common_hide_password":"web_common_show_password"),"aria-pressed":this.newPasswordVisible}}}]},this.confirmPasswordEditorOptions={mode:this.confirmPasswordVisible?"text":"password",valueChangeEvent:"input",buttons:[{name:"PasswordIcon",location:"after",options:{stylingMode:"text",icon:"fa-solid fa-eye",onClick:()=>{this.changePasswordMode("ConfirmPassword")},elementAttr:{"aria-label":this.scope.network.getResourceOrKeyName(this.confirmPasswordVisible?"web_common_hide_password":"web_common_show_password"),"aria-pressed":this.confirmPasswordVisible}}}]},this.deleteAccountPasswordEditorOptions={mode:this.deleteAccountPasswordVisible?"text":"password",valueChangeEvent:"input",buttons:[{name:"PasswordIcon",location:"after",options:{stylingMode:"text",icon:"fa-solid fa-eye",onClick:()=>{this.changePasswordMode("DeleteAccountPassword")},elementAttr:{"aria-label":this.scope.network.getResourceOrKeyName(this.deleteAccountPasswordVisible?"web_common_hide_password":"web_common_show_password"),"aria-pressed":this.deleteAccountPasswordVisible}}}]}}ngOnInit(){this.profile.isRegistered||window.location.replace("/");var s=new URLSearchParams(window.location.search).get("token");this.profile.isRegistered&&s&&(this.emailValidationState=this.emailValidationStates.inProgress,this.authService.validateEmail(s).then(()=>{setTimeout(()=>{this.emailValidationState=this.emailValidationStates.success},2e3)},()=>{setTimeout(()=>{this.emailValidationState=this.emailValidationStates.failure},2e3)}))}ngOnDestroy(){this.profileServiceSubscription.unsubscribe(),this.themingServiceSubscription.unsubscribe()}updatePasswordMessage(){if(this.form.instance.beginUpdate(),this.form.instance.getEditor("password")?.reset(),this.form.instance.getEditor("newPassword")?.reset(),this.form.instance.getEditor("confirmPassword")?.reset(),this.form.instance.endUpdate(),kx.A.resetGroup(this.form.instance),this.changePasswordData={password:"",newPassword:"",confirmPassword:""},this.changePasswordMessage=this.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_changePasswordSuccess"),this.deviceInfoService.getUserAgentInfo().isMobile)if(this.deviceInfoService.getUserAgentInfo().isApp){const s={my:{x:"center",y:"bottom"},at:{x:"center",y:"bottom"},of:window,offset:{x:0,y:-100},collision:"fit"};this.toasterService.popSuccessToast(this.changePasswordMessage,s)}else this.toasterService.popSuccessToast(this.changePasswordMessage)}compileErrors(s){if(s.modelState){var r=[];for(var l in s.modelState)if(s.modelState.hasOwnProperty(l))for(var E=0;E<s.modelState[l].length;E++){var N=s.modelState[l][E];-1===r.indexOf(N)&&r.push(N)}return r.join(" ")}return s}cleanChangesMessages(){this.changePasswordMessage=null,this.changePasswordError=null}deleteAccount(){this.deleteFormData.password&&this.authService.validateCredentials({password:this.deleteFormData.password,userName:this.profile.email}).then(()=>{document.body.style.pointerEvents="none",this.authService.deleteAccount().then(()=>{this.oculusService.push(!1,()=>{this.authService.logout().then(()=>{this.oculusService.navigate(""),window.location.href=this.scope.currentChapter.path+"/login"})})})},s=>{this.deleteAccountError=this.scope.network.getResourceOrKeyName(s.error&&403==s.status?"web_account_error_update_password_not_updated":"web_common_unknown_error_message")})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU($n.p),e.rXU(Da.u),e.rXU(Se.A),e.rXU(Ce.E),e.rXU(ga),e.rXU(oo),e.rXU(ch))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-authentication-settings"]],viewQuery:function(r,l){if(1&r&&(e.GBs(Xi.o,5),e.GBs(UC,5),e.GBs(_A,5)),2&r){let E;e.mGM(E=e.lsd())&&(l.form=E.first),e.mGM(E=e.lsd())&&(l.deleteteAccForm=E.first),e.mGM(E=e.lsd())&&(l.emailMgmt=E.first)}},standalone:!1,decls:10,vars:7,consts:[["emailMgmt",""],["deleteAccForm",""],[1,"authentication-settings-base"],[1,"settings-section"],[1,"alert","alert-info"],[1,"alert","alert-danger"],[1,"alert","alert-success"],[1,"password-button-area","mb-5"],[1,"section-settings","mb-5"],["position","bottom",3,"visible","height","minHeight","wrapperAttr","dragEnabled","animation","enableBodyScroll"],["position","top",3,"visible","title","height","wrapperAttr","dragEnabled","animation","enableBodyScroll"],[1,"fa","fa-spinner","fa-pulse"],[3,"href"],[1,"authentication-settings-instruction"],[1,"mb-1"],["aria-haspopup","dialog",1,"authentication-settings-button",3,"onClick","text"],["position","bottom",3,"visibleChange","onShowing","onHidden","visible","height","minHeight","wrapperAttr","dragEnabled","animation","enableBodyScroll"],[4,"dxTemplate","dxTemplateOf"],[1,""],[1,"authentication-settings-change-password-popup-description-heading"],[1,"m-0"],["name","changePasswordError","role","alert","aria-live","assertive","aria-atomic","true","tabindex","-1",1,"form-group","alert","alert-danger"],["name","changePasswordMessage","role","alert","aria-live","assertive","aria-atomic","true","tabindex","-1",1,"form-group","alert","alert-success"],["id","form","labelMode","floating",3,"formDataChange","formData"],["dataField","password","name","CurrentPassword","editorType","dxTextBox",3,"editorOptions"],[3,"text"],["id","signUpError","type","required",3,"message"],["dataField","newPassword","name","NewPassword","editorType","dxTextBox",3,"editorOptions"],["type","custom","id","signUpError",3,"validationCallback","message"],["dataField","confirmPassword","name","ConfirmPassword","editorType","dxTextBox",3,"editorOptions"],["type","compare","id","signUpError","message","Password and Confirm Password do not match",3,"comparisonTarget"],[1,"popup-footer"],[1,"clearfix"],[1,"authentication-settings-change-password-popup-close-button-wrapper"],["tabindex","0","role","button",1,"fa-solid","fa-xmark","authentication-settings-change-password-popup-close-button",3,"click","keydown.enter","keydown.space"],[1,"authentication-settings-change-password-popup-title"],[3,"onClick"],[1,"authentication-settings-button"],[1,"authentication-settings-button",3,"onClick"],[1,"mb-5"],[3,"emailCallback"],[1,"d-flex"],[1,"fa-regular","fa-circle-question","authentication-settings-description-icon"],[1,"authentication-settings-description"],[1,"action-container"],[1,"authentication-settings-delete-profile-popup-description-heading"],["name","deleteAccountError","role","alert","aria-live","assertive","aria-atomic","true","tabindex","-1",1,"form-group","alert","alert-danger"],["id","deleteAccForm","labelMode","floating",3,"formDataChange","formData"],["dataField","password","name","DeleteAccountPassword","editorType","dxTextBox",3,"editorOptions"],[1,"fa-regular","fa-circle-question","authentication-settings-delete-profile-popup-description-icon"],[1,"authentication-settings-delete-profile-popup-description-text"],[1,"authentication-settings-delete-profile-popup-close-button-wrapper"],["tabindex","0","role","button",1,"fa-solid","fa-xmark","authentication-settings-delete-profile-popup-close-button",3,"click","keydown.enter","keydown.space"],[1,"authentication-settings-delete-profile-popup-title"],["position","top",3,"visibleChange","onShowing","onHidden","visible","title","height","wrapperAttr","dragEnabled","animation","enableBodyScroll"],["stylingMode","text",3,"onClick"]],template:function(r,l){1&r&&(e.j41(0,"div",2)(1,"div",3),e.nVh(2,R_,3,1,"div",4),e.nVh(3,Ux,5,4,"div",5),e.nVh(4,Lw,2,1,"div",6),e.k0s(),e.nVh(5,Gx,5,2,"div",7),e.nVh(6,jC,5,0),e.nVh(7,GC,9,3,"div",8),e.nVh(8,WC,21,23,"dx-popup",9)(9,rm,19,17,"dx-popup",10),e.k0s()),2&r&&(e.R7$(2),e.vxM(l.emailValidationState===l.emailValidationStates.inProgress?2:-1),e.R7$(),e.vxM(l.emailValidationState===l.emailValidationStates.failure?3:-1),e.R7$(),e.vxM(l.emailValidationState===l.emailValidationStates.success?4:-1),e.R7$(),e.vxM("Saml2"!=(null==l.profile||null==l.profile.loginInfo?null:l.profile.loginInfo.loginMethod)?5:-1),e.R7$(),e.vxM("Saml2"!=l.profile.loginInfo.loginMethod?6:-1),e.R7$(),e.vxM(l.scope.currentScope.chapter.settings.disableUserDeleteAccountRequest?-1:7),e.R7$(),e.vxM(l.isMobile?8:9))},dependencies:[Bo.CVf,Et.eC,Gn.e,Bo.rkl,Bo.Inh,Xi.o,en.i,Ft.B,Vx,Hx],styles:[".authentication-settings-base[_ngcontent-%COMP%]{width:50%}.authentication-settings-base[_ngcontent-%COMP%]   .authentication-settings-instruction[_ngcontent-%COMP%]{color:var(--textColor);font-size:1.3rem;font-family:var(--fontPrimary);line-height:1.2em;margin-bottom:15px}.authentication-settings-base[_ngcontent-%COMP%]   .authentication-settings-description[_ngcontent-%COMP%]{font-weight:400;color:var(--textColor60);margin-left:2%}.authentication-settings-base[_ngcontent-%COMP%]   .authentication-settings-description-icon[_ngcontent-%COMP%]{padding-top:5px;color:var(--textColor60)}@media (max-width: 768px){.authentication-settings-base[_ngcontent-%COMP%]{width:100%}}  .authentication-settings-button{font-weight:700}  .authentication-settings-button .dx-button-text{font-weight:700}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:600px!important}@media (max-width: 768px){  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:100%!important;max-width:100%;border:solid 1px var(--textColor)}}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-description{font-weight:400;color:var(--textColor)}@media (max-width: 768px){  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-title{border:none;padding:0}}@media (max-width: 768px){  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-content-scrollable{overflow-x:hidden}}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-delete-profile-popup-close-button-wrapper{display:flex;justify-content:right}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-delete-profile-popup-close-button{font-size:1.5rem;cursor:pointer;margin:15px 15px 0 0}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-delete-profile-popup-close-button:hover{transform:scale(1.1)}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-delete-profile-popup-title{text-align:center;font-size:1.3rem;font-weight:700}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-delete-profile-popup-description-heading{padding:15px 0;text-align:center;font-weight:500;margin:0 -25px 20px;font-size:1rem}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-delete-profile-popup-description-heading-background{background-color:var(--colorPrimaryBackground)}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-delete-profile-popup-description-heading-background-fallback{background-color:var(--color1-alpha20)}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-delete-profile-popup-description-text{font-weight:400;color:var(--textColor60);margin-left:2%;font-size:1rem}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-delete-profile-popup-description-icon{padding-top:5px;color:var(--textColor60)}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer{display:flex;justify-content:end;gap:1rem}@media (max-width: 768px){  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer{margin-top:60px;justify-content:center}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer .dx-button{font-weight:700}}  #deleteAccountPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-delete-profile-popup-footer-ios-margin{margin-bottom:40px}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:600px!important}@media (max-width: 768px){  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:100%!important;max-width:100%;border:solid 1px var(--textColor)}}@media (max-width: 768px){  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-title{border:none;padding:0}}@media (max-width: 768px){  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .dx-popup-content-scrollable{overflow-x:hidden}}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-change-password-popup-close-button-wrapper{display:flex;justify-content:right}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-change-password-popup-close-button{font-size:1.5rem;cursor:pointer;margin:15px 15px 0 0}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-change-password-popup-close-button:hover{transform:scale(1.1)}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-change-password-popup-title{text-align:center;font-size:1.3rem;font-weight:700}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-change-password-popup-description-heading{padding:15px 0;text-align:center;font-weight:500;margin:0 -25px 20px;font-size:1rem}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-change-password-popup-description-heading-background{background-color:var(--colorPrimaryBackground)}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-change-password-popup-description-heading-background-fallback{background-color:var(--color1-alpha20)}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-change-password-popup-description-text{font-weight:400;color:var(--textColor60);margin-left:2%;font-size:1rem}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-change-password-popup-description-icon{padding-top:5px;color:var(--textColor60)}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer{display:flex;justify-content:end;gap:1rem}@media (max-width: 768px){  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer{margin-top:60px;justify-content:center}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .popup-footer .dx-button{font-weight:700}}  #changePasswordPopup .dx-overlay-content.dx-popup-normal.dx-resizable .authentication-settings-change-password-popup-footer-ios-margin{margin-bottom:30px}"]}))}return o(),t})();const zw=o=>({count:o});function DA(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",15),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.queueJoin())}),e.k0s()}if(2&o){const n=e.XpG(3);e.HbH(e.VkB("btn ","NEEDS-ACTION"===n.event.ownParticipationStatus?"active":""," col-auto event-calendar-detail-join-buttons")),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_eventDetail_join_queue"))("icon","NEEDS-ACTION"===n.event.ownParticipationStatus?"fa fa-check-circle":"")}}function Kw(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",4)(1,"div",13)(2,"dx-button",14),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.acceptJoin())}),e.k0s(),e.j41(3,"dx-button",15),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.declineJoin())}),e.k0s(),e.nVh(4,DA,1,5,"dx-button",16),e.k0s()()}if(2&o){const n=e.XpG(2);e.R7$(2),e.HbH(e.VkB("btn ","Accepted"===n.event.ownParticipationStatus?"active":""," col-auto event-calendar-detail-join-buttons")),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_eventDetail_join_accept"))("icon","ACCEPTED"===n.event.ownParticipationStatus?"fa fa-check-circle":"")("disabled",n.event.maxParticipants&&n.event.participantsAcceptedCount>=n.event.maxParticipants),e.R7$(),e.HbH(e.VkB("btn ","DECLINED"===n.event.ownParticipationStatus?"active":""," col-auto event-calendar-detail-join-buttons")),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_eventDetail_join_decline"))("icon","DECLINED"===n.event.ownParticipationStatus?"fa fa-check-circle":""),e.R7$(),e.vxM(n.event.waitQueueEnabled&&n.event.maxParticipants&&n.event.participantsAcceptedCount>=n.event.maxParticipants&&"ACCEPTED"!==n.event.ownParticipationStatus?4:-1)}}function TA(o,t){1&o&&e.nrm(0,"i",24)}function AA(o,t){1&o&&e.nrm(0,"i",25)}function IA(o,t){1&o&&e.nrm(0,"i",26)}function MA(o,t){if(1&o&&(e.j41(0,"div")(1,"div",22)(2,"div",23),e.nVh(3,TA,1,0,"i",24),e.nVh(4,AA,1,0,"i",25),e.nVh(5,IA,1,0,"i",26),e.k0s(),e.j41(6,"div",27),e.nrm(7,"app-user-badge-simple",11),e.k0s()()()),2&o){const n=t.$implicit;e.R7$(3),e.vxM("ACCEPTED"===n.participationStatus?3:-1),e.R7$(),e.vxM("DECLINED"===n.participationStatus?4:-1),e.R7$(),e.vxM("NEEDS-ACTION"===n.participationStatus?5:-1),e.R7$(2),e.Y8G("user",n)("author",!1)}}function Xw(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-list",19),e.DNE(2,MA,8,5,"div",20),e.k0s(),e.j41(3,"dx-button",21),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.loadMoreParticipants())}),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(),e.Y8G("dataSource",n.participants),e.R7$(),e.Y8G("dxTemplateOf","item"),e.R7$(),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_common_showMore"))("disabled",n.loadMoreParticipantsPending)("visible",n.participants.length!==n.event.participantCount)}}function Yw(o,t){if(1&o&&(e.j41(0,"div",7)(1,"div",1)(2,"div",17),e.nrm(3,"div",18),e.k0s(),e.nVh(4,Xw,4,5,"div"),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(3),e.Y8G("innerHTML",n.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_detail_attendees",e.eq3(2,zw,n.event.participantsAcceptedCount))+(n.event.maxParticipants?" / "+n.event.maxParticipants:""),e.npT),e.R7$(),e.vxM(n.participants&&n.scope.currentScope.chapter.closed?4:-1)}}function PA(o,t){if(1&o&&e.nrm(0,"app-user-comments-list",30),2&o){const n=e.XpG(4);e.Y8G("data",n.event)}}function Qw(o,t){if(1&o&&(e.j41(0,"div",28),e.nrm(1,"app-user-comment-form",29),e.nVh(2,PA,1,1,"app-user-comments-list",30),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("eventId",n.event.id),e.R7$(),e.vxM(n.reload?-1:2)}}function zx(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"app-recommended-articles",31),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Y8G("dataId",n.event.id)}}function Zw(o,t){if(1&o&&(e.nVh(0,Qw,3,2,"div",28),e.nVh(1,zx,2,1,"div")),2&o){const n=e.XpG(2);e.vxM(n.event.enableInteraction&&!n.scope.profile.readOnlyMode?0:-1),e.R7$(),e.vxM(n.scope.currentScope.chapter.settings.enableArticleRecommendations?1:-1)}}function Jw(o,t){if(1&o&&(e.j41(0,"article",1),e.nrm(1,"meta",2)(2,"app-header",3),e.nVh(3,Kw,5,12,"div",4),e.j41(4,"div",5),e.nrm(5,"div",6),e.nI1(6,"apicodoTranslateText"),e.nI1(7,"async"),e.k0s(),e.nVh(8,Yw,5,4,"div",7),e.j41(9,"div",8)(10,"div",9)(11,"div",10),e.nrm(12,"app-user-badge-simple",11),e.k0s()(),e.j41(13,"div",12),e.EFF(14),e.nI1(15,"date"),e.k0s()(),e.nVh(16,Zw,2,2),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("content",e.mNQ(n.event.lastSaved)),e.R7$(),e.Y8G("data",n.event)("removeOha",!0)("isPreview",n.isPreview),e.R7$(),e.vxM(n.event.allowJoin&&!n.isParticipationLocked()?3:-1),e.R7$(2),e.Y8G("innerHTML",e.bMT(7,14,e.bMT(6,12,n.event.processedContent)),e.npT),e.R7$(3),e.vxM(n.event.participantsPublic?8:-1),e.R7$(4),e.Y8G("user",n.event.organizer)("author",!0),e.R7$(2),e.SpI(" Ver\xf6ffentlicht am ",e.i5U(15,16,n.event.lastSaved,"dd.MM.yy HH:mm")," "),e.R7$(2),e.vxM(n.isPreview?-1:16)}}let Kx=(()=>{var o;class t{constructor(s,r,l,E,N,ae,ze){var dt=this;this.logoService=s,this.eventCalendarService=r,this.scopeService=l,this.translationService=E,this.eventSignalService=N,this.profileService=ae,this.upgrade=ze,this.isPreview=!1,this.occurrenceString="",this.participants=[],this.participantPage=0,this.loadMoreParticipantsPending=!1,this.reload=!1,this.translate=(0,ei.A)(function*(){dt.reload=!0,dt.eventSignalService.translationLoading.set(!0);const Vn=dt.eventSignalService.translationLanguage();if(dt.profileService.updateFavoriteLanguage(Vn),Vn){const ci=yield dt.translationService.getTranslatedEventDetails(dt.event.id,Vn);dt.event={...ci,occurrenceString:dt.occurrenceString,isEvent:!0,content:ci.htmlDescription},dt.eventSignalService.translationLoading.set(!1),dt.reload=!1}}),this.scope=l.getScope(),this.getResourceOrKeyName=this.scope.currentScope.network.getResourceOrKeyName,this.parserService=this.upgrade.$injector.get("parserService"),(0,dc.QZ)(()=>{this.eventSignalService.translateSignal()&&this.translate()},{allowSignalWrites:!0})}ngOnInit(){if(this.previewEvent)return this.event=this.previewEvent,this.isPreview=!0,this.event.coverImage||(this.event.coverImage={alwaysShowImageDescription:!1,assetImageUrl:this.logoService.getChapterEventPictureUrl(),text:"",source:""}),void this.load();let s=location.pathname.substring(location.pathname.lastIndexOf("/")+1);this.eventCalendarService.getEvent(s).then(r=>{this.event=r,this.event.coverImage||(this.event.coverImage={alwaysShowImageDescription:!1,assetImageUrl:this.logoService.getChapterEventPictureUrl(),text:"",source:""}),this.load()})}load(){this.event.isEvent=!0;var s=new Date(this.event.start),r=new Date(this.event.end),l=new Date(this.event.recurrenceRule.until);if(0===this.event.recurrenceRule.frequency)this.occurrenceString=this.event.isAllDay?s.toLocaleDateString()==r.toLocaleDateString()?this.getResourceOrKeyName("web_eventDetail_dateAllDay_singleDay",{date:s.toLocaleDateString()}):this.getResourceOrKeyName("web_eventDetail_dateAllDay",{start:s.toLocaleDateString(),end:r.toLocaleDateString()}):this.event.isOpenEnd?this.getResourceOrKeyName("web_eventDetail_openEnd",{start:s.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),end:this.getResourceOrKeyName("web_eventDetail_dateOpenEnd")}):this.getResourceOrKeyName("web_eventDetail_date",{start:s.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),end:r.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})});else{var E=this.event.durationInSeconds,N="web_eventDetail_duration_seconds";switch(E>0&&E%60==0&&(N="web_eventDetail_duration_minutes",(E/=60)%60==0&&(N="web_eventDetail_duration_hours",(E/=60)%24==0&&(N="web_eventDetail_duration_days",(E/=24)%7==0&&(E/=7,N="web_eventDetail_duration_weeks")))),this.occurrenceString=!this.event.recurrenceRule.until||l.getUTCFullYear()<=1?this.getResourceOrKeyName("web_eventDetail_recurringEvent",{start:s.toLocaleDateString(),startTime:s.toLocaleString([],{hour:"2-digit",minute:"2-digit"}),duration:this.getResourceOrKeyName(N,{duration:E})}):this.getResourceOrKeyName("web_eventDetail_recurringEvent_until",{start:s.toLocaleDateString(),startTime:s.toLocaleString([],{hour:"2-digit",minute:"2-digit"}),until:l.toLocaleDateString(),duration:this.getResourceOrKeyName(N,{duration:E})}),this.event.recurrenceRule.frequency){case 4:this.occurrenceString+=1===this.event.recurrenceRule.interval?" "+this.getResourceOrKeyName("web_eventDetail_dailyIntervalOne"):" "+this.getResourceOrKeyName("web_eventDetail_daily",{interval:this.event.recurrenceRule.interval});break;case 5:var ae="";0===this.event.recurrenceRule.byDay[0].dayOfWeek&&(this.event.recurrenceRule.byDay.push(this.event.recurrenceRule.byDay[0]),this.event.recurrenceRule.byDay.splice(0,1)),this.event.recurrenceRule.byDay.forEach((Di,Eo)=>{ae+=this.getWeekDayName(Di.dayOfWeek),Eo<this.event.recurrenceRule.byDay.length-2?ae+=", ":Eo===this.event.recurrenceRule.byDay.length-2&&(ae+=" "+this.getResourceOrKeyName("web_common_and")+" ")}),this.occurrenceString+=1===this.event.recurrenceRule.interval?" "+this.getResourceOrKeyName("web_eventDetail_weeklyIntervalOne",{weekDays:ae}):" "+this.getResourceOrKeyName("web_eventDetail_weekly",{interval:this.event.recurrenceRule.interval,weekDays:ae});break;case 6:if(this.event.recurrenceRule.byDay.length){var Kt=[{occurrences:[],weekDay:this.getResourceOrKeyName("web_common_sunday")},{occurrences:[],weekDay:this.getResourceOrKeyName("web_common_monday")},{occurrences:[],weekDay:this.getResourceOrKeyName("web_common_tuesday")},{occurrences:[],weekDay:this.getResourceOrKeyName("web_common_wednesday")},{occurrences:[],weekDay:this.getResourceOrKeyName("web_common_thursday")},{occurrences:[],weekDay:this.getResourceOrKeyName("web_common_friday")},{occurrences:[],weekDay:this.getResourceOrKeyName("web_common_saturday")}],Vn=[{occurrence:this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_first"),weekDays:[]},{occurrence:this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_second"),weekDays:[]},{occurrence:this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_third"),weekDays:[]},{occurrence:this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_fourth"),weekDays:[]},{occurrence:this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_last"),weekDays:[]},{occurrence:this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_secondToLast"),weekDays:[]},{occurrence:this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_thirdToLast"),weekDays:[]},{occurrence:this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_fourthToLast"),weekDays:[]}];this.event.recurrenceRule.byDay.forEach(Eo=>{Kt[Eo.dayOfWeek].occurrences.push(this.getWeekDayOccurrence(Eo.offset));var uo=Eo.offset;uo<0&&(uo=4-uo),Vn[uo-=1].weekDays.push(this.getWeekDayName(Eo.dayOfWeek))}),Kt.push(Kt[0]),Kt.splice(0,1),Kt=Kt.filter(function(Eo){return Eo.occurrences.length>0}),Vn=Vn.filter(function(Eo){return Eo.weekDays.length>0});let Di="";Kt.length<=Vn.length?Kt.forEach((Eo,uo)=>{Eo.occurrences.forEach((Jo,es)=>{Di+=Jo,es<Eo.occurrences.length-2?Di+=", ":es===Eo.occurrences.length-2&&(Di+=" "+this.getResourceOrKeyName("web_common_and")+" ")}),Di+=" "+Eo.weekDay,uo<Kt.length-2?Di+=", ":uo===Kt.length-2&&(Di+=" "+this.getResourceOrKeyName("web_common_and")+" ")}):Vn.forEach((Eo,uo)=>{Di+=" "+Eo.occurrence+" ",Eo.weekDays.forEach((Jo,es)=>{Di+=Jo,es<Eo.weekDays.length-2?Di+=", ":es===Eo.weekDays.length-2&&(Di+=" "+this.getResourceOrKeyName("web_common_and")+" ")}),uo<Vn.length-2?Di+=", ":uo===Vn.length-2&&(Di+=" "+this.getResourceOrKeyName("web_common_and")+" ")}),this.occurrenceString+=1===this.event.recurrenceRule.interval?" "+this.getResourceOrKeyName("web_eventDetail_monthlyIntervalOne_byWeekDay",{weekDays:Di}):" "+this.getResourceOrKeyName("web_eventDetail_monthly_byWeekDay",{interval:this.event.recurrenceRule.interval,weekDays:Di})}else{var ze=this.event.recurrenceRule.byMonthDay.join(", "),dt=ze.lastIndexOf(",");-1!==dt&&(ze=ze.substring(0,dt)+" "+this.getResourceOrKeyName("web_common_and")+ze.substring(dt+1,ze.length)),this.occurrenceString+=1===this.event.recurrenceRule.interval?" "+this.getResourceOrKeyName("web_eventDetail_monthlyIntervalOne_byMonthDay",{monthDays:ze}):" "+this.getResourceOrKeyName("web_eventDetail_monthly_byMonthDay",{interval:this.event.recurrenceRule.interval,monthDays:ze})}break;case 7:var ci="";switch(this.event.recurrenceRule.byMonth[0]){case 1:ci=this.getResourceOrKeyName("web_common_january");break;case 2:ci=this.getResourceOrKeyName("web_common_february");break;case 3:ci=this.getResourceOrKeyName("web_common_march");break;case 4:ci=this.getResourceOrKeyName("web_common_april");break;case 5:ci=this.getResourceOrKeyName("web_common_may");break;case 6:ci=this.getResourceOrKeyName("web_common_june");break;case 7:ci=this.getResourceOrKeyName("web_common_july");break;case 8:ci=this.getResourceOrKeyName("web_common_august");break;case 9:ci=this.getResourceOrKeyName("web_common_september");break;case 10:ci=this.getResourceOrKeyName("web_common_october");break;case 11:ci=this.getResourceOrKeyName("web_common_november");break;case 12:ci=this.getResourceOrKeyName("web_common_december")}if(this.event.recurrenceRule.byDay.length){var Vi=this.event.recurrenceRule.byDay[0];this.occurrenceString+=1===this.event.recurrenceRule.interval?" "+this.getResourceOrKeyName("web_eventDetail_yearlyIntervalOne_byWeekDay",{weekDay:this.getWeekDayOccurrence(Vi.offset)+" "+this.getWeekDayName(Vi.dayOfWeek),month:ci}):" "+this.getResourceOrKeyName("web_eventDetail_yearly_byWeekDay",{interval:this.event.recurrenceRule.interval,weekDay:this.getWeekDayOccurrence(Vi.offset)+" "+this.getWeekDayName(Vi.dayOfWeek),month:ci})}else this.occurrenceString+=1===this.event.recurrenceRule.interval?" "+this.getResourceOrKeyName("web_eventDetail_yearlyIntervalOne_byMonthDay",{monthDay:this.event.recurrenceRule.byMonthDay[0],month:ci}):" "+this.getResourceOrKeyName("web_eventDetail_yearly_byMonthDay",{interval:this.event.recurrenceRule.interval,monthDay:this.event.recurrenceRule.byMonthDay[0],month:ci})}}this.event.content=this.event.htmlDescription,this.parserService.postProcessHtml(this.event),this.event.participantsPublic&&this.eventCalendarService.getParticipants(this.event.id,0).then(Di=>{this.participants=Di,this.participantPage=0,this.loadMoreParticipantsPending=!1}),this.event.occurrenceString=this.occurrenceString}getWeekDayName(s){switch(s){case 1:return this.getResourceOrKeyName("web_common_monday");case 2:return this.getResourceOrKeyName("web_common_tuesday");case 3:return this.getResourceOrKeyName("web_common_wednesday");case 4:return this.getResourceOrKeyName("web_common_thursday");case 5:return this.getResourceOrKeyName("web_common_friday");case 6:return this.getResourceOrKeyName("web_common_saturday");case 0:return this.getResourceOrKeyName("web_common_sunday")}}getWeekDayOccurrence(s){switch(s){case 1:return this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_first");case 2:return this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_second");case 3:return this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_third");case 4:return this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_fourth");case-1:return this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_last");case-2:return this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_secondToLast");case-3:return this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_thirdToLast");case-4:return this.getResourceOrKeyName("web_eventDetail_recurrence_byWeekDay_fourthToLast")}}acceptJoin(){this.loadMoreParticipantsPending=!0,this.eventCalendarService.acceptJoinEvent(this.event.id).then(s=>{this.event.ownParticipationStatus=s.ownStatus,this.event.participantsAcceptedCount=s.acceptedCount,this.event.participantsDeclinedCount=s.declinedCount,this.event.participantsQueuedCount=s.queuedCount,this.event.participantsPublic&&this.eventCalendarService.getParticipants(this.event.id,0).then(r=>{this.participants=r,this.participantPage=0,this.loadMoreParticipantsPending=!1})})}declineJoin(){this.loadMoreParticipantsPending=!0,this.eventCalendarService.declineJoinEvent(this.event.id).then(s=>{this.event.ownParticipationStatus=s.ownStatus,this.event.participantsAcceptedCount=s.acceptedCount,this.event.participantsDeclinedCount=s.declinedCount,this.event.participantsQueuedCount=s.queuedCount,this.event.ownParticipationStatus="DECLINED",this.event.participantsPublic&&this.eventCalendarService.getParticipants(this.event.id,0).then(r=>{this.participants=r,this.participantPage=0,this.loadMoreParticipantsPending=!1})})}queueJoin(){this.loadMoreParticipantsPending=!0,this.eventCalendarService.queueJoinEvent(this.event.id).then(s=>{this.event.ownParticipationStatus=s.ownStatus,this.event.participantsAcceptedCount=s.acceptedCount,this.event.participantsDeclinedCount=s.declinedCount,this.event.participantsQueuedCount=s.queuedCount,this.event.participantsPublic&&this.eventCalendarService.getParticipants(this.event.id,0).then(r=>{this.participants=r,this.participantPage=0,this.loadMoreParticipantsPending=!1})})}loadMoreParticipants(){this.loadMoreParticipantsPending=!0,this.eventCalendarService.getParticipants(this.event.id,this.participantPage+1).then(s=>{this.participants=this.participants.concat(s),this.participantPage+=1,this.loadMoreParticipantsPending=!1})}isParticipationLocked(){return!!this.event.lockParticipation||!!this.event.lockParticipationAuto&&new Date(this.event.lockParticipationAutoDate)<new Date}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Il.X),e.rXU(Ld),e.rXU(Se.A),e.rXU(Bn.M),e.rXU(gu),e.rXU($n.p),e.rXU(He.be))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-event-calendar-detail"]],inputs:{previewEvent:"previewEvent"},standalone:!1,decls:2,vars:1,consts:[[1,"event-calendar-detail-wrapper"],[1,""],["itemprop","datePublished",3,"content"],[1,"d-block","container","p-0",2,"max-width","100%",3,"data","removeOha","isPreview"],[1,"event-calendar-detail-join-wrapper","row"],[1,"row","mobile-padding"],[1,"event-calendar-detail-content",3,"innerHTML"],[1,"row","event-calendar-detail-participants-wrapper"],[1,"row","event-calendar-detail-attribution"],[1,"col-11","col-md-7"],[1,"article-author-batch"],[3,"user","author"],[1,"col-9","col-md-5","text-end","articleDetail-publishDate"],[1,"event-calendar-detail-join-buttons-wrapper"],["stylingMode","contained",3,"onClick","text","icon","disabled"],["stylingMode","contained",3,"onClick","text","icon"],["stylingMode","contained",3,"text","class","icon"],[1,"event-calendar-detail-participants-count"],[1,"col-xs-6","col-md-4",3,"innerHTML"],["height","100%",3,"dataSource"],[4,"dxTemplate","dxTemplateOf"],["stylingMode","outlined",1,"btn","event-calendar-detail-show-more-button",3,"onClick","text","disabled","visible"],[1,"row"],[1,"col-1","event-calendar-detail-participant-status-icon"],[1,"fas","fa-check","fa-2xl","text-success"],[1,"fas","fa-times","fa-2xl","text-danger"],[1,"fa-regular","fa-clock","fa-2xl","text-warning"],[1,"col-auto"],[1,"event-calendar-detail-comments"],[3,"eventId"],[3,"data"],[3,"dataId"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,Jw,17,19,"article",1),e.k0s()),2&r&&(e.R7$(),e.vxM(l.event?1:-1))},dependencies:[Et.eC,Gn.e,Pf.a,cu,zu,Mc,Td,Xl,C.Jj,C.vh,Fo],styles:[".event-calendar-detail-wrapper[_ngcontent-%COMP%]{max-width:var(--designContentWidth);width:100%;margin:auto;margin-bottom:10rem}.event-calendar-detail-join-buttons[_ngcontent-%COMP%]{margin-right:1.875rem;margin-bottom:3.125rem}.event-calendar-detail-content[_ngcontent-%COMP%]{width:80%}.event-calendar-detail-content[_ngcontent-%COMP%]     p{font-size:1.5rem;line-height:1.5rem;color:var(--textColor);font-family:var(--fontTertiary)}@media (max-width: 768px){.event-calendar-detail-content[_ngcontent-%COMP%]     p{line-height:2rem}}.event-calendar-detail-participants-wrapper[_ngcontent-%COMP%]{margin:4rem 0}.event-calendar-detail-participants-count[_ngcontent-%COMP%]{padding-left:0;margin-bottom:1.4rem;font-weight:600;font-size:1.4rem;display:flex}.event-calendar-detail-participant-status-icon[_ngcontent-%COMP%]{margin:auto 0}.event-calendar-detail-show-more-button[_ngcontent-%COMP%]{margin-top:1.25rem}.event-calendar-detail-comments[_ngcontent-%COMP%]{margin-top:10rem;margin-bottom:5rem}@media (max-width: 990px){.event-calendar-detail-content[_ngcontent-%COMP%]{margin-left:15px}.event-calendar-detail-join-wrapper[_ngcontent-%COMP%], .event-calendar-detail-participants-wrapper[_ngcontent-%COMP%]{padding-left:15px}}@media (max-width: 768px){.mobile-padding[_ngcontent-%COMP%]{margin-right:15px}.event-calendar-detail-join-buttons[_ngcontent-%COMP%]{font-size:1.1rem}.event-calendar-detail-content[_ngcontent-%COMP%]{width:100%}.event-calendar-detail-content[_ngcontent-%COMP%]     p{font-size:1.3rem;line-height:2rem}.event-calendar-detail-join-wrapper[_ngcontent-%COMP%]{padding-left:15px}.event-calendar-detail-participants-count[_ngcontent-%COMP%]{font-size:1.2rem}}[_nghost-%COMP%]     .event-calendar-detail-wrapper .centered{text-align:center}[_nghost-%COMP%]     .event-calendar-detail-wrapper blockquote{margin:0;padding:0}[_nghost-%COMP%]     .event-calendar-detail-wrapper blockquote p{font-size:1.5rem;font-family:var(--fontSecondary);color:var(--textColor60);margin:2em 0 16px;font-style:italic}@media (max-width: 768px){[_nghost-%COMP%]     .event-calendar-detail-wrapper blockquote p{font-size:1.3rem}}[_nghost-%COMP%]     .event-calendar-detail-wrapper blockquote blockquote.allow-float p{margin-top:2em;text-align:center}@media (min-width: 768px){[_nghost-%COMP%]     .event-calendar-detail-wrapper blockquote.allow-float.allow-float-right p{max-width:50%;float:left;margin:2em 2em 2em 0}}@media (min-width: 1050px){[_nghost-%COMP%]     .event-calendar-detail-wrapper blockquote.allow-float.allow-float-right p{margin-left:-2em}}@media (min-width: 768px){[_nghost-%COMP%]     .event-calendar-detail-wrapper blockquote.allow-float.allow-float-left p{margin:2em 0 2em 2em;max-width:50%;float:right;text-align:right}}@media (min-width: 1050px){[_nghost-%COMP%]     .event-calendar-detail-wrapper blockquote.allow-float.allow-float-left p{margin-right:-2em}}@media (min-width: 768px){[_nghost-%COMP%]     .event-calendar-detail-wrapper blockquote.centered.allow-float p{margin:2em 0;max-width:100%;float:none}}"]}))}return o(),t})(),N_=(()=>{var o;class t{constructor(s){this.scopeService=s,this.scope=this.scopeService.getScope()}initEditorService(s){this.editorRef=s}getEditorPlaceholder(){return""}getEditorTextAsString(){if(this.editorRef){let s="";return this.editorRef.state.edit.doc.content.content.forEach(r=>{r.content.content.forEach(l=>{l.hasOwnProperty("text")&&(s+=l.text+"\n")})}),s}return""}setEditorText(s){if(this.editorRef){const r=this.editorRef.state.edit,l=r.config.schema;let E=[];s.split("\n").forEach(ze=>{ze&&E.push(l.nodes.paragraph.create({},[l.text(ze)]))});const N=l.nodes.doc.create({},E),ae=r.tr.replaceWith(0,r.doc.content.size,N);this.editorRef.view.dispatch(ae)}}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})(),am=(()=>{var o;class t{constructor(){this.textareaChanges=new qt.t({heading:"",title:"",summary:""}),this.textareaChanges$=this.textareaChanges.asObservable()}updateTextarea(s){this.textareaChanges.next(s)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const zC=["headingInput"];function qw(o,t){1&o&&(m.qSk(),e.j41(0,"svg",3)(1,"defs")(2,"style"),e.EFF(3," .cls-1 { fill: #9ed3d0; } "),e.k0s()(),e.nrm(4,"path",4),e.k0s())}function RA(o,t){if(1&o&&e.nVh(0,qw,5,0,":svg:svg",3),2&o){const n=e.XpG(2);e.vxM(n.isLoading?-1:0)}}function Xx(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"dx-load-indicator",2),e.nVh(2,RA,1,1),e.j41(3,"span"),e.EFF(4),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("visible",n.isLoading),e.R7$(),e.vxM(n.isLoading?-1:2),e.R7$(2),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_editor_ai_headers_create_button")," ")}}let eS=(()=>{var o;class t{constructor(s,r,l,E,N){this.aiService=s,this.editorService=r,this.scopeService=l,this.signalService=E,this.toasterService=N,this.isVisible=!0,this.isLoading=!1,this.scope=this.scopeService.getScope(),this.isVisible=s.isAiVisible()}generateHeaders(){var s=this;return(0,ei.A)(function*(){if(!s.aiService.isAiEnabled())return;const r=s.editorService.getEditorTextAsString();if(!r)return void s.toasterService.popErrorToast(s.scope.network.getResourceOrKeyName("ai_generate_title_error_message"));s.isLoading=!0;let l=yield s.aiService.completeArticleHeaders(r,"article",s.article.id);null!=l&&s.signalService.updateTextarea({heading:l.keyword,title:l.title,summary:l.summary}),s.isLoading=!1})()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Wp),e.rXU(N_),e.rXU(Se.A),e.rXU(am),e.rXU(ch))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-ai-generate-headers-button"]],viewQuery:function(r,l){if(1&r&&e.GBs(zC,5,e.aKT),2&r){let E;e.mGM(E=e.lsd())&&(l.headingInput=E.first)}},inputs:{article:"article"},standalone:!1,decls:2,vars:4,consts:[[3,"onClick","disabled","hidden","hint"],[4,"dxTemplate","dxTemplateOf"],["height","24","width","24","aria-hidden","true",3,"visible"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 37 37"],["d","M21.55,37h-6.11c0-8.53-6.92-15.45-15.45-15.45v-6.11c8.53,0,15.45-6.92,15.45-15.45h6.11c0,8.53,6.92,15.45,15.45,15.45v6.11c-8.53,0-15.45,6.92-15.45,15.45Z",1,"cls-1"]],template:function(r,l){1&r&&(e.j41(0,"dx-button",0),e.bIt("onClick",function(){return l.generateHeaders()}),e.DNE(1,Xx,5,3,"div",1),e.k0s()),2&r&&(e.Y8G("disabled",l.isLoading)("hidden",!l.isVisible)("hint",l.scope.network.getResourceOrKeyName("web_editor_ai_headers_create_hint")),e.R7$(),e.Y8G("dxTemplateOf","content"))},dependencies:[Et.eC,Gn.e,Wn.B],styles:[".dx-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-left:8px}"]}))}return o(),t})();function kA(o,t){1&o&&(m.qSk(),e.j41(0,"svg",1),e.nrm(1,"path",3),e.k0s())}let tS=(()=>{var o;class t{constructor(s,r,l,E){this.aiService=s,this.editorService=r,this.scopeService=l,this.signalService=E,this.isAiVisible=!1,this.isLoading=!1,this.assistantVisible=!1,this.articleType=$c.general,this.scope=this.scopeService.getScope(),this.isAiVisible=s.isAiVisible()}startAssistant(){this.aiService.isAiEnabled()&&(this.assistantVisible=!0)}onAssistantClosed(){this.assistantVisible=!1}onTextGenerated(s){this.assistantVisible=!1,this.editorService.setEditorText(s.text),this.signalService.updateTextarea({heading:s.keyword,title:s.title,summary:s.summary})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Wp),e.rXU(N_),e.rXU(Se.A),e.rXU(am))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-ai-assistant-button"]],inputs:{article:"article"},standalone:!1,decls:5,vars:6,consts:[[3,"onClick","visible"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 37 37"],["callerType","article",3,"onPopupClosed","onDataGenerated","popupVisible","articleType","callerId"],["d","M21.55,37h-6.11c0-8.53-6.92-15.45-15.45-15.45v-6.11c8.53,0,15.45-6.92,15.45-15.45h6.11c0,8.53,6.92,15.45,15.45,15.45v6.11c-8.53,0-15.45,6.92-15.45,15.45Z","fill","#9ed3d0",1,"cls-1"]],template:function(r,l){1&r&&(e.j41(0,"dx-button",0),e.bIt("onClick",function(){return l.startAssistant()}),e.nVh(1,kA,2,0,":svg:svg",1),e.j41(2,"span"),e.EFF(3),e.k0s()(),e.j41(4,"app-ai-assistant",2),e.bIt("onPopupClosed",function(){return l.onAssistantClosed()})("onDataGenerated",function(N){return l.onTextGenerated(N)}),e.k0s()),2&r&&(e.Y8G("visible",l.isAiVisible),e.R7$(),e.vxM(l.isLoading?-1:1),e.R7$(2),e.SpI(" ",l.scope.network.getResourceOrKeyName("web_editor_ai_article_assistant")," "),e.R7$(),e.Y8G("popupVisible",l.assistantVisible)("articleType",l.articleType)("callerId",l.article.id))},dependencies:[Gn.e,Ja],styles:[".dx-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-left:8px}"]}))}return o(),t})();function nS(o,t){1&o&&(m.qSk(),e.j41(0,"svg",3)(1,"defs")(2,"style"),e.EFF(3," .cls-1 { fill: #9ed3d0; } "),e.k0s()(),e.nrm(4,"path",4),e.k0s())}function iS(o,t){if(1&o&&e.nVh(0,nS,5,0,":svg:svg",3),2&o){const n=e.XpG(2);e.vxM(n.isLoading?-1:0)}}function oS(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"dx-load-indicator",2),e.nVh(2,iS,1,1),e.j41(3,"span"),e.EFF(4),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("visible",n.isLoading),e.R7$(),e.vxM(n.isLoading?-1:2),e.R7$(2),e.SpI(" ",n.scope.network.getResourceOrKeyName("web_editor_ai_caption_create_button")," ")}}let L_=(()=>{var o;class t{constructor(s,r){this.aiService=s,this.scopeService=r,this.imageUrl="",this.caption="",this.captionChange=new e.bkB,this.isVisible=!0,this.isLoading=!1,this.scope=this.scopeService.getScope(),this.isVisible=s.isAiVisible()}generateCaption(){var s=this;return(0,ei.A)(function*(){s.aiService.isAiEnabled()&&(s.isLoading=!0,s.imageUrl&&(s.caption=yield s.aiService.getImageCaption(s.imageUrl,"",""),s.captionChange.emit(s.caption)),s.isLoading=!1)})()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Wp),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-ai-generate-caption-button"]],inputs:{imageUrl:"imageUrl",caption:"caption"},outputs:{captionChange:"captionChange"},standalone:!1,decls:2,vars:4,consts:[["stylingMode","text",3,"onClick","disabled","hidden","hint"],[4,"dxTemplate","dxTemplateOf"],["height","24","width","24","aria-hidden","true",3,"visible"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 37 37"],["d","M21.55,37h-6.11c0-8.53-6.92-15.45-15.45-15.45v-6.11c8.53,0,15.45-6.92,15.45-15.45h6.11c0,8.53,6.92,15.45,15.45,15.45v6.11c-8.53,0-15.45,6.92-15.45,15.45Z",1,"cls-1"]],template:function(r,l){1&r&&(e.j41(0,"dx-button",0),e.bIt("onClick",function(){return l.generateCaption()}),e.DNE(1,oS,5,3,"div",1),e.k0s()),2&r&&(e.Y8G("disabled",l.isLoading)("hidden",!l.isVisible)("hint",l.scope.network.getResourceOrKeyName("web_editor_ai_caption_create_hint")),e.R7$(),e.Y8G("dxTemplateOf","content"))},dependencies:[Et.eC,Gn.e,Wn.B],styles:[".dx-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-left:8px}"]}))}return o(),t})(),sS=(()=>{var o;class t{constructor(s,r,l,E){this.router=s,this.scopeService=r,this.timeoutService=l,this.location=E,this.scope=this.scopeService.getScope()}isSameChapterUrl(s){let l=s.startsWith(this.scope.currentScope.network.path+(""!==this.scope.currentScope.chapter.regEx?"/"+this.scope.currentScope.chapter.regEx:"")+"/");return""===this.scope.currentScope.chapter.regEx&&l&&this.scope.chapters.forEach(E=>{2===E.managementState&&E.id!==this.scope.currentChapter.id&&s.startsWith(this.scope.currentScope.network.path+"/"+E.regEx+"/")&&(l=!1)}),l}redirectNotificationUrl(s){const r=new URL("https://"+this.scope.currentScope.network.domain),l=this.scope.currentScope.network.path+(""!==this.scope.currentScope.chapter.regEx?"/"+this.scope.currentScope.chapter.regEx:"");if(this.isSameChapterUrl(s)){const N=s.substring(l.length);this.location.replaceState(N)}else if(s.startsWith(r.origin))window.location.href=s;else if(window.cordova&&window.cordova.InAppBrowser){const N=this.scope.currentScope.network.settings.configurations.inAppBrowserOnly;let ae="location=no,toolbarposition=top,toolbartranslucent=no";"android"===window.cordova.platformId&&(ae="location=yes,hideurlbar=yes,zoom=no,closebuttoncaption="+this.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")),N?window.cordova.InAppBrowser.open(s,"_blank",ae):window.cordova.InAppBrowser.open(s,"_system",ae)}else window.location.href=s}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(Vt.Ix),m.KVO(Se.A),m.KVO(Af),m.KVO(S.aZ))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();var Yx=p(1767);function Qx(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",3)(1,"dx-button",6),e.bIt("onClick",function(){const r=m.eBV(n).$implicit,l=e.XpG();return m.Njj(l.answerQuestion(r.id))}),e.k0s()()}if(2&o){const n=t.$implicit;e.R7$(),e.Y8G("text",e.mNQ(n.text.toUpperCase()))}}function V_(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",4)(1,"dx-text-area",7),e.mxI("valueChange",function(r){const l=m.eBV(n).$implicit;return e.DH7(l.freeText,r)||(l.freeText=r),m.Njj(r)}),e.j41(2,"dx-validator"),e.nrm(3,"dxi-validation-rule",8),e.k0s()(),e.j41(4,"div",9)(5,"dx-button",10),e.bIt("onClick",function(){const r=m.eBV(n).$implicit,l=e.XpG();return m.Njj(l.clearTextArea(r))}),e.k0s(),e.j41(6,"dx-button",10),e.bIt("onClick",function(){const r=m.eBV(n).$implicit,l=e.XpG();return m.Njj(l.answerQuestion(r.id,r.freeText))}),e.k0s()()()}if(2&o){const n=t.$implicit,s=e.XpG();e.R7$(),e.R50("value",n.freeText),e.Y8G("placeholder",n.text)("maxLength",n.maxLength)("autoResizeEnabled",!0),e.R7$(2),e.Y8G("min",1),e.R7$(2),e.Y8G("text",e.mNQ(s.scope.currentScope.network.getResourceOrKeyName("web_common_cancel"))),e.R7$(),e.Y8G("text",e.mNQ(s.scope.currentScope.network.getResourceOrKeyName("web_common_workflow_submit")))}}let yc=(()=>{var o;class t{constructor(s,r,l,E,N){this.scopeService=s,this.shipmentService=r,this.oculusTrackingService=l,this.injector=E,this.elementRef=N,this.isInView=!1,this.answerArray=[],this.fixedAnswers=[],this.freeTextAnswers=[],this.updateAnswers=()=>{this.answerArray=Object.keys(this.question.answers).map(ze=>this.question.answers[ze]),this.fixedAnswers=this.answerArray.filter(ze=>!ze.isFreeTextAnswer),this.freeTextAnswers=this.answerArray.filter(ze=>ze.isFreeTextAnswer)},this.startOculusTracking=()=>{this.oculus=this.oculusTrackingService.trackSurveyImpression(this.elementRef.nativeElement.firstChild,{sv:this.survey.id,sb:null,sq:this.question.id,ia:this.article?this.article.id:null,iar:this.article?this.article.revisionId:null,iav:this.article?this.article.variantId:null}),this.oculus.persistent=this.$state.includes("app.main-news"),this.survey.firstQuestionId!=this.question.id&&(this.oculus.impressionThreshold=0)},this.answerQuestion=(ze,dt)=>{if(!this.survey.preview){if(this.question.answers[ze].isFreeTextAnswer){if(!dt||dt.match(/^\s*$/))return;this.oculus.bundle.sft=dt}this.oculus.bundle.sa=ze,this.oculus.ignoreImpressionThreshold=!0,this.oculus.push(),this.oculus.stop(0),this.shipmentService.clickSurvey(this.survey.id)}this.processAnswer(this.question.answers[ze])},this.clearTextArea=ze=>{ze.freeText=""};const ae=this.injector.get(He.be).$injector;this.$state=ae.get("$state"),this.scope=this.scopeService.getScope()}ngOnInit(){}ngOnChanges(s){this.survey.preview||this.startOculusTracking(),(s.survey||s.question)&&this.updateAnswers()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Xe),e.rXU(ga),e.rXU(m.zZn),e.rXU(e.aKT))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-survey-question"]],inputs:{survey:"survey",article:"article",question:"question",processAnswer:"processAnswer"},standalone:!1,features:[e.OA$],decls:9,vars:1,consts:[[1,"surveyQuestion"],[1,"surveyQuestion-text"],[1,"surveyQuestion-answers"],[1,"surveyQuestion-fixed-answer"],[1,"surveyQuestion-free-answer"],[1,"clearfix"],["stylingMode","contained","type","normal","height","3rem",3,"onClick","text"],["stylingMode","underlined",3,"valueChange","value","placeholder","maxLength","autoResizeEnabled"],["type","stringLength",3,"min"],[1,"freeTextAnswerButton"],["stylingMode","text",3,"onClick","text"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1),e.EFF(2),e.k0s(),e.j41(3,"div",2),e.Z7z(4,Qx,2,2,"div",3,e.fX1),e.Z7z(6,V_,7,9,"div",4,e.fX1),e.nrm(8,"div",5),e.k0s()()),2&r&&(e.R7$(2),e.JRh(l.question.text),e.R7$(2),e.Dyx(l.fixedAnswers),e.R7$(2),e.Dyx(l.freeTextAnswers))},dependencies:[Gn.e,Bo.Inh,mi._,Yx._],styles:[".surveyQuestion[_ngcontent-%COMP%]{background:var(--textColor5)}.surveyQuestion[_ngcontent-%COMP%]   .surveyQuestion-text[_ngcontent-%COMP%]{padding:1rem;font-size:1.5rem;font-weight:600}.surveyQuestion[_ngcontent-%COMP%]   .surveyQuestion-fixed-answer[_ngcontent-%COMP%]{padding:1rem;gap:1rem;display:flex;flex-direction:column;width:90%}.surveyQuestion[_ngcontent-%COMP%]   .surveyQuestion-fixed-answer[_ngcontent-%COMP%]     .dx-button-has-text .dx-button-content{justify-content:left}.surveyQuestion[_ngcontent-%COMP%]   .surveyQuestion-fixed-answer[_ngcontent-%COMP%]     .dx-button-has-text .dx-button-content .dx-button-text{font-size:1.2rem;font-weight:750}.surveyQuestion[_ngcontent-%COMP%]   .surveyQuestion-free-answer[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;width:90%}.surveyQuestion[_ngcontent-%COMP%]   .surveyQuestion-free-answer[_ngcontent-%COMP%]   .freeTextAnswerButton[_ngcontent-%COMP%]{justify-content:right;display:flex}.surveyQuestion[_ngcontent-%COMP%]   .surveyQuestion-free-answer[_ngcontent-%COMP%]   .freeTextAnswerButton[_ngcontent-%COMP%]     .dx-button-has-text .dx-button-content .dx-button-text{font-size:1rem;font-weight:700}"]}))}return o(),t})();function BA(o,t){if(1&o&&(e.j41(0,"div",1)(1,"span",4),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_sponsored"))}}function rS(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"app-survey-question",5),e.k0s()),2&o){const n=t.$implicit,s=e.XpG();e.R7$(),e.Y8G("survey",s.survey)("article",s.article)("question",n)("processAnswer",s.processAnswer)("hidden",s.actQuestionId!==n.id)}}function Zx(o,t){if(1&o){const n=e.RV6();e.j41(0,"a",10),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.clickBanner())}),e.nrm(1,"img",11),e.k0s()}if(2&o){const n=e.XpG(2).$implicit;e.Y8G("href",n.uri,e.B4B),e.R7$(),e.Y8G("src",n.imageUrl,e.B4B)}}function Jg(o,t){if(1&o){const n=e.RV6();e.j41(0,"a",12),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.clickBanner())}),e.nrm(1,"img",11),e.k0s()}if(2&o){const n=e.XpG(2).$implicit;e.Y8G("href",n.uri,e.B4B),e.R7$(),e.Y8G("src",n.imageUrl,e.B4B)}}function Jx(o,t){if(1&o){const n=e.RV6();e.j41(0,"a",12),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.clickBanner())}),e.nrm(1,"img",11),e.k0s()}if(2&o){const n=e.XpG(2).$implicit;e.Y8G("href",n.uri,e.B4B),e.R7$(),e.Y8G("src",n.imageUrl,e.B4B)}}function aS(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.clickBanner())}),e.nrm(1,"img",11),e.k0s()}if(2&o){const n=e.XpG(2).$implicit;e.R7$(),e.Y8G("src",n.imageUrl,e.B4B)}}function bc(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,Zx,2,2,"a",7),e.nVh(2,Jg,2,2,"a",8),e.nVh(3,Jx,2,2,"a",8),e.nVh(4,aS,2,1,"div",9),e.k0s()),2&o){const n=e.XpG().$implicit;e.HbH(e.VkB("survey-banner-wrapper survey-banner-wrapper-",n.id)),e.R7$(),e.vxM(n.inSameChapter&&n.uri&&!n.uriIsDocument?1:-1),e.R7$(),e.vxM(n.inSameChapter||!n.uri||n.uriIsDocument?-1:2),e.R7$(),e.vxM(n.uriIsDocument?3:-1),e.R7$(),e.vxM(n.uri?-1:4)}}function xo(o,t){if(1&o&&(e.j41(0,"div"),e.nVh(1,bc,5,7,"div",6),e.k0s()),2&o){const n=t.$implicit,s=e.XpG();e.R7$(),e.vxM(s.finalBannerId==n.id?1:-1)}}function lS(o,t){if(1&o&&(e.j41(0,"div",3),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_shipment_survey_thankYou")," ")}}let KC=(()=>{var o;class t{constructor(s,r,l,E,N){this.injector=s,this.scopeService=r,this.redirectService=l,this.clickService=E,this.oculusTrackingService=N,this.processAnswer=ze=>{ze.nextQuestionId?(this.actQuestionId=ze.nextQuestionId,this.actQuestion=this.survey.questionDict[this.actQuestionId]):(this.actQuestionId=null,ze.finalBannerId&&(this.finalBannerId=ze.finalBannerId,this.preview||(this.survey.oculus=this.oculusTrackingService.trackSurveyBannerImpression(this.survey.bannerDict[this.finalBannerId],{sv:this.survey.id,sb:this.finalBannerId,sq:this.actQuestionId,ia:this.article?.id||null,iar:this.article?.revisionId||null,iav:this.article?.variantId||null}),this.survey.oculus.persistent=this.$state.includes("app.main-news"),this.survey.oculus.impressionThreshold=0,this.survey.oculus.push())))},this.clickBanner=()=>{this.survey.oculus&&this.finalBannerId&&this.survey&&(this.clickService.clickSurveyBannerPost(this.survey.oculus.guid,this.survey.bannerDict[this.finalBannerId].guid),this.survey.oculus.click())};const ae=this.injector.get(He.be).$injector;this.$state=ae.get("$state"),this.scope=this.scopeService.getScope()}ngOnChanges(){if(this.survey){this.actQuestionId=this.survey.firstQuestionId,this.survey.preview=this.preview,this.survey.questionDict={},this.survey.questions.forEach(l=>{this.survey.questionDict[l.id]=l});var s=this.scope.globalSettings.blobStorageCdnUrl,r=this.scope.globalSettings.blobStorageContainerNameShipment;this.survey.bannerDict={},this.survey.banners.forEach(l=>{l.imageUrl="",l.pin&&(l.imageUrl=`${s}/${r}/${l.pin}?preset=shipment`),l.uri&&(l.inSameChapter=this.redirectService.isSameChapterUrl(l.uri),l.uriIsDocument=l.uri.includes("/pdf/")||l.uri.includes("/document/")||l.uri.includes("/file/")),this.survey.bannerDict[l.id]=l}),this.survey.answers.forEach(l=>{null!==l.finalBannerId&&(l.finalBanner=this.survey.bannerDict[l.finalBannerId]),null===this.survey.questionDict[l.questionId].answers&&(this.survey.questionDict[l.questionId].answers={}),this.survey.questionDict[l.questionId].answers[l.id]=l}),this.actQuestion=this.survey.questionDict[this.actQuestionId]}}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(m.zZn),e.rXU(Se.A),e.rXU(sS),e.rXU(xt._),e.rXU(ga))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-survey"]],inputs:{survey:"survey",article:"article",preview:"preview"},standalone:!1,features:[e.OA$],decls:9,vars:3,consts:[[1,"survey-base"],[1,"survey-sponsored-container"],[1,"survey-header"],[1,"survey-feedback"],[1,"survey-sponsored"],[3,"survey","article","question","processAnswer","hidden"],[3,"class"],[2,"display","block",3,"href"],["target","_blank",2,"display","block",3,"href"],[2,"display","block"],[2,"display","block",3,"click","href"],[2,"width","100%",3,"src"],["target","_blank",2,"display","block",3,"click","href"],[2,"display","block",3,"click"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,BA,3,1,"div",1),e.j41(2,"div",2),e.EFF(3),e.k0s(),e.Z7z(4,rS,2,5,"div",null,e.fX1),e.Z7z(6,xo,2,1,"div",null,e.fX1),e.nVh(8,lS,2,1,"div",3),e.k0s()),2&r&&(e.R7$(),e.vxM(l.survey.sponsored?1:-1),e.R7$(2),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_shipment_survey_weAsk")),e.R7$(),e.Dyx(l.survey.questions),e.R7$(2),e.Dyx(l.survey.banners),e.R7$(2),e.vxM(null==l.actQuestionId?8:-1))},dependencies:[Ft.B,yc],styles:[".survey-base[_ngcontent-%COMP%]   .survey-header[_ngcontent-%COMP%]{background:var(--textColor10);padding:1rem;font-size:1.5rem;font-weight:800}.survey-base[_ngcontent-%COMP%]   .survey-feedback[_ngcontent-%COMP%]{background:var(--textColor5);padding:1rem;font-size:1.5rem;font-weight:600}"]}))}return o(),t})();function I(o,t){if(1&o&&e.nrm(0,"app-survey",3),2&o){const n=e.XpG(2);e.Y8G("survey",n.shipment)("preview",n.preview)}}function i(o,t){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.nVh(2,I,1,2,"app-survey",3),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_survey_preview")," "),e.R7$(),e.vxM(n.shipment?2:-1)}}function a(o,t){if(1&o&&e.nrm(0,"app-survey",3),2&o){const n=e.XpG(2);e.Y8G("survey",n.shipment)("preview",n.preview)}}function c(o,t){if(1&o&&e.nVh(0,a,1,2,"app-survey",3),2&o){const n=e.XpG();e.vxM(n.shipment?0:-1)}}function g(o,t){if(1&o&&(e.j41(0,"div",2)(1,"div",4),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_survey_notFound")," ")}}let y=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.shipmentService=r,this.profileService=l,this.preview=null!=new URLSearchParams(window.location.search).get("preview"),this.requestInProgress=!0,this.translateSurvey=E=>{this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled&&(E.value?this.shipmentService.getTranslatedSurveyForDeeplink(this.surveyId,this.preview,E.value).then(N=>{this.shipment=N,this.profileService.updateFavoriteLanguage(E.value)}):this.shipmentService.getSurveyForDeeplink(this.surveyId,this.preview).then(N=>{this.shipment=N}))},this.scope=this.scopeService.getScope()}ngOnInit(){this.shipmentService.getSurveyForDeeplink(this.surveyId,this.preview).then(s=>{this.requestInProgress=!1,this.shipment=s},()=>{this.requestInProgress=!1,window.location.pathname="/"})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Xe),e.rXU($n.p))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-survey-detail"]],inputs:{surveyId:"surveyId"},standalone:!1,decls:5,vars:3,consts:[[1,"survey-detail-base"],["translationType","survey",3,"onValueChanged","surveyId"],[1,"survey"],[3,"survey","article","preview"],[1,"survey-feedback"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"app-legacy-translation",1),e.bIt("onValueChanged",function(N){return l.translateSurvey(N)}),e.k0s(),e.nVh(2,i,3,2,"div")(3,c,1,1),e.nVh(4,g,3,1,"div",2),e.k0s()),2&r&&(e.R7$(),e.Y8G("surveyId",l.surveyId),e.R7$(),e.vxM(l.preview?2:3),e.R7$(2),e.vxM(l.requestInProgress||l.shipment?-1:4))},dependencies:[Tf,KC],encapsulation:2}))}return o(),t})();function D(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",2)(1,"dx-button",3),e.bIt("onClick",function(){const r=m.eBV(n).$implicit,l=e.XpG(2);return m.Njj(l.answering(r.id))}),e.k0s()()}if(2&o){const n=t.$implicit;e.R7$(),e.Y8G("text",e.mNQ(n.text.toUpperCase()))}}function Y(o,t){if(1&o&&(e.j41(0,"div",0)(1,"div",1),e.EFF(2),e.k0s(),e.Z7z(3,D,2,2,"div",2,e.fX1),e.k0s()),2&o){const n=e.XpG();e.R7$(2),e.SpI(" ",n.question.text," "),e.R7$(),e.Dyx(n.question.answers)}}let xe=(()=>{var o;class t{constructor(s,r,l,E){this.elementRef=s,this.injector=r,this.scopeService=l,this.oculusTrackingService=E,this.isInView=!1,this.startOculusTracking=()=>{this.oculus=this.oculusTrackingService.trackMarketResearch(this.elementRef.nativeElement.firstChild,{mq:this.question.id,ia:this.article?this.article.id:null,iar:this.article?this.article.revisionId:null,iav:this.article?this.article.variantId:null,c:this.chapter.slug,n:this.network.slug}),this.oculus.persistent=this.$state.includes("app.main")},this.answering=ae=>{this.oculus.bundle.ma=ae,this.oculus.push(),this.oculus.stop(0),this.nextQuestion()};const N=this.injector.get(He.be).$injector;this.$state=N.get("$state"),this.scope=this.scopeService.getScope()}ngOnInit(){this.network=this.scope.currentScope.network,this.chapter=this.scope.currentScope.chapter,this.marketResearch.preview||this.startOculusTracking()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(e.aKT),e.rXU(m.zZn),e.rXU(Se.A),e.rXU(ga))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-market-research-question"]],inputs:{marketResearch:"marketResearch",article:"article",question:"question",nextQuestion:"nextQuestion"},standalone:!1,decls:1,vars:1,consts:[[1,"marketResearchShipment-question"],[1,"marketResearchShipment-question-text"],[1,"marketResearchShipment-answers"],["stylingMode","contained","type","normal","height","3rem",3,"onClick","text"]],template:function(r,l){1&r&&e.nVh(0,Y,5,1,"div",0),2&r&&e.vxM(l.question.isVisible?0:-1)},dependencies:[Gn.e],styles:[".marketResearchShipment-question[_ngcontent-%COMP%]   .marketResearchShipment-question-text[_ngcontent-%COMP%]{padding:1rem;font-size:1.5rem;font-weight:600}.marketResearchShipment-question[_ngcontent-%COMP%]   .marketResearchShipment-answers[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;width:90%;text-align:left}.marketResearchShipment-question[_ngcontent-%COMP%]   .marketResearchShipment-answers[_ngcontent-%COMP%]     .dx-button-has-text .dx-button-content{justify-content:left}.marketResearchShipment-question[_ngcontent-%COMP%]   .marketResearchShipment-answers[_ngcontent-%COMP%]     .dx-button-has-text .dx-button-content .dx-button-text{font-size:1.2rem;font-weight:750}"]}))}return o(),t})();function Le(o,t){if(1&o&&e.nrm(0,"app-market-research-question",4),2&o){const n=t.$implicit,s=e.XpG(2);e.Y8G("marketResearch",s.marketResearch)("article",s.article)("question",n)("nextQuestion",s.nextQuestion)}}function st(o,t){if(1&o&&(e.j41(0,"div",2),e.Z7z(1,Le,1,4,"app-market-research-question",4,e.fX1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Dyx(n.marketResearch.questions)}}function mt(o,t){if(1&o&&(e.j41(0,"div",3),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_shipment_marketResearch_thankYou")," ")}}let on=(()=>{var o;class t{constructor(s){this.scopeService=s,this.answered=!1,this.nextQuestion=()=>{this.actQuestion?.nextQuestionId?(this.actQuestion.isVisible=!1,this.actQuestionIndex++,this.actQuestion=this.marketResearch.questions[this.actQuestionIndex],this.actQuestion.isVisible=!0):(this.actQuestion.isVisible=!1,this.answered=!0)},this.scope=this.scopeService.getScope()}ngOnInit(){this.actQuestionIndex=0,this.actQuestion=this.marketResearch.questions[this.actQuestionIndex],this.actQuestion.isVisible=!0}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-market-research"]],inputs:{marketResearch:"marketResearch",article:"article"},standalone:!1,decls:6,vars:2,consts:[[1,"market-research-base"],[1,"market-research-header"],[1,"marketResearchQuestion-wrapper"],[1,"marketResearchShipment-feedback"],[3,"marketResearch","article","question","nextQuestion"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"h2"),e.EFF(3),e.k0s()(),e.nVh(4,st,3,0,"div",2)(5,mt,2,1,"div",3),e.k0s()),2&r&&(e.R7$(3),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_shipment_marketResearch_weAsk")),e.R7$(),e.vxM(l.answered?5:4))},dependencies:[xe],styles:[".market-research-base[_ngcontent-%COMP%]{background:var(--textColor10)}.market-research-base[_ngcontent-%COMP%]   .market-research-header[_ngcontent-%COMP%]{padding:1rem}.market-research-base[_ngcontent-%COMP%]   .marketResearchQuestion-wrapper[_ngcontent-%COMP%]{background:var(--textColor5);padding:1rem;font-size:1.5rem;font-weight:800}.market-research-base[_ngcontent-%COMP%]   .marketResearchShipment-feedback[_ngcontent-%COMP%]{background:var(--textColor5);padding:1rem;font-size:1.5rem;font-weight:600}"]}))}return o(),t})();var wn=p(4636);const Kn=()=>({id:"firstPublishPopup"});function Ai(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"dx-load-indicator",12),e.j41(2,"span",13),e.EFF(3),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("visible",n.working),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName(n.canPublish?"web_common_publish":"web_common_submit")," ")}}function no(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",6)(1,"dx-switch",15),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.event.lockParticipationAuto,r)||(l.event.lockParticipationAuto=r),m.Njj(r)}),e.bIt("onValueChanged",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.onChangeLockParticipationAuto())}),e.k0s(),e.j41(2,"div",8),e.EFF(3),e.k0s(),e.j41(4,"dx-date-box",16),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.event.lockParticipationAutoDate,r)||(l.event.lockParticipationAutoDate=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG(3);e.R7$(),e.R50("value",n.event.lockParticipationAuto),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_lockParticipationAuto")," "),e.R7$(),e.R50("value",n.event.lockParticipationAutoDate),e.Y8G("openOnFieldClick",!0)("min",n.now)("visible",n.event.lockParticipationAuto)}}function Yo(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",6)(1,"dx-switch",7),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.event.participantsPublic,r)||(l.event.participantsPublic=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",8),e.EFF(3),e.k0s()(),e.j41(4,"div",6)(5,"div",8),e.EFF(6),e.k0s(),e.j41(7,"dx-number-box",14),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.event.maxParticipants,r)||(l.event.maxParticipants=r),m.Njj(r)}),e.k0s()(),e.j41(8,"div",6)(9,"dx-switch",7),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.event.waitQueueEnabled,r)||(l.event.waitQueueEnabled=r),m.Njj(r)}),e.k0s(),e.j41(10,"div",8),e.EFF(11),e.k0s()(),e.j41(12,"div",6)(13,"dx-switch",7),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.event.lockParticipation,r)||(l.event.lockParticipation=r),m.Njj(r)}),e.k0s(),e.j41(14,"div",8),e.EFF(15),e.k0s()(),e.nVh(16,no,5,6,"div",6)}if(2&o){const n=e.XpG(2);e.R7$(),e.R50("value",n.event.participantsPublic),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_participantsPublic")," "),e.R7$(3),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_maxParticipants")," "),e.R7$(),e.R50("value",n.event.maxParticipants),e.Y8G("showSpinButtons",!0)("min",n.event.participantsAcceptedCount>0?n.event.participantsAcceptedCount:1),e.R7$(2),e.R50("value",n.event.waitQueueEnabled),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_queueParticipation")," "),e.R7$(2),e.R50("value",n.event.lockParticipation),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_lockParticipation")," "),e.R7$(),e.vxM(n.event.lockParticipation?-1:16)}}function ps(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",6)(1,"dx-switch",7),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.event.allowJoin,r)||(l.event.allowJoin=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",8),e.EFF(3),e.k0s()(),e.nVh(4,Yo,17,11)}if(2&o){const n=e.XpG();e.R7$(),e.R50("value",n.event.allowJoin),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_allowJoin")," "),e.R7$(),e.vxM(n.event.allowJoin?4:-1)}}function Ls(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",6)(1,"dx-switch",7),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.event.enableNotifications,r)||(l.event.enableNotifications=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",8),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.R50("value",n.event.enableNotifications),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_enableNotifications")," ")}}function _r(o,t){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Lme(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_user_notify_counter")," ",n.event.notificationUserCount," ")}}function Sr(o,t){if(1&o&&(e.j41(0,"div",9),e.nrm(1,"dx-load-indicator",17),e.nVh(2,_r,2,2,"div"),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("visible",!n.event.notificationUserCount),e.R7$(),e.vxM(n.event.notificationUserCount?2:-1)}}function Dr(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",21)(1,"dx-switch",22),e.bIt("onValueChanged",function(r){const l=m.eBV(n).$implicit,E=e.XpG(4);return m.Njj(E.toggleChapterSelection(l,r))}),e.k0s(),e.j41(2,"div"),e.EFF(3),e.k0s()()}if(2&o){const n=t.$implicit,s=e.XpG(4);e.R7$(),e.Y8G("value",s.isChapterSelected(n.slug)),e.R7$(2),e.SpI(" ",n.name," ")}}function ia(o,t){if(1&o&&(e.j41(0,"div",19),e.Z7z(1,Dr,4,2,"div",21,e.fX1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.Dyx(n.networkChapters)}}function rl(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",9),e.EFF(1),e.nrm(2,"dx-load-indicator",17),e.k0s(),e.j41(3,"div",18)(4,"dx-switch",15),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.selectAllContentConnectChapterNetworks,r)||(l.selectAllContentConnectChapterNetworks=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.toggleAllChapters(r))}),e.k0s(),e.j41(5,"div",8),e.EFF(6),e.k0s()(),e.nVh(7,ia,3,0,"div",19),e.j41(8,"div",20)(9,"dx-switch",7),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.ccBreakingEvent,r)||(l.ccBreakingEvent=r),m.Njj(r)}),e.k0s(),e.j41(10,"div")(11,"div",8),e.EFF(12),e.k0s(),e.j41(13,"div"),e.EFF(14),e.k0s()()()}if(2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_article_publish_dialog_content_connect_info")," "),e.R7$(),e.Y8G("visible",n.connectedChapterNetworkLoading),e.R7$(2),e.R50("value",n.selectAllContentConnectChapterNetworks),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_check_all")," "),e.R7$(),e.vxM(n.showContentConnect?7:-1),e.R7$(2),e.R50("value",n.ccBreakingEvent),e.R7$(3),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_breaking_event")," "),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_content_connect_breaking_event_notify_info")," ")}}function Hd(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",6)(1,"dx-switch",15),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.contentConnect,r)||(l.contentConnect=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.toggleConnectedChapterNetworkIndicator(r))}),e.k0s(),e.j41(2,"div",8),e.EFF(3),e.k0s()(),e.nVh(4,rl,15,8)}if(2&o){const n=e.XpG();e.R7$(),e.R50("value",n.contentConnect),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_contentConnectPlaceholder")," "),e.R7$(),e.vxM(n.contentConnect?4:-1)}}function cS(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"dx-load-indicator",12),e.j41(2,"span",13),e.EFF(3),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("visible",n.working),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_publish_now")," ")}}let dS=(()=>{var o;class t{constructor(s,r,l,E){this.scopeService=s,this.articleService=r,this.eventService=l,this.upgrade=E,this.canPublish=!0,this.showPublishDialog=!1,this.ccBreakingEvent=!1,this.closedChapter=!1,this.connectedChapters=[],this.working=!1,this.networkChapters=null,this.connectedChapterNetworkLoading=!1,this.featureContentConnectEnabled=!1,this.contentConnect=!1,this.showContentConnect=!1,this.selectAllContentConnectChapterNetworks=!1,this.selectedContentConnectNetworkChapters={},this.connectedChapterNetworkIndicator=!1,this.now=new Date,this.onButtonClick=()=>{this.canPublish?this.openPublishDialog():this.onPublish()},this.openPublishDialog=()=>{this.showPublishDialog=!0},this.toggleConnectedChapterNetworkIndicator=N=>{if(N.value){if(this.networkChapters)return;this.connectedChapterNetworkLoading=!0,this.networkChapters=[],this.articleService.getEventContentConnectNetworks().then(ae=>{this.showContentConnect=ae.length>0;let ze=ae.flatMap(dt=>dt.networkChapters.map(Kt=>({name:`${dt.name}: ${Kt.name}`,slug:Kt.slug,chapterNetwork:{isOwnNetwork:Kt.isOwnNetwork,chapterSlug:Kt.slug,networkSlug:dt.slug}})));this.networkChapters.push(...ze),this.connectedChapterNetworkLoading=!1})}else this.selectedContentConnectNetworkChapters={},this.selectAllContentConnectChapterNetworks=!1},this.scope=s.getScope()}ngOnInit(){this.closedChapter=this.scope.currentChapter.closed,this.event.breakingEvent=!1,this.proseMirrorEditorService=this.upgrade.$injector.get("proseMirrorEditorService"),this.recurrenceSelectionData=[{value:0,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_recurrence_once")},{value:4,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_recurrence_daily")},{value:5,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_recurrence_weekly")},{value:6,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_recurrence_monthly")},{value:7,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_recurrence_yearly")}],this.durationTypeRecurrenceData=[{value:1,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_duration_minutes")},{value:2,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_duration_hours")},{value:3,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_duration_days")},{value:4,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_duration_weeks")}],this.monthlyRecurrenceData=[{value:1,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_january")},{value:2,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_february")},{value:3,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_march")},{value:4,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_april")},{value:5,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_may")},{value:6,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_june")},{value:7,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_july")},{value:8,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_august")},{value:9,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_september")},{value:10,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_october")},{value:11,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_november")},{value:12,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_december")}],this.dailyRecurrenceData=[{value:1,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_monday")},{value:2,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_tuesday")},{value:3,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_wednesday")},{value:4,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_thursday")},{value:5,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_friday")},{value:6,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_saturday")},{value:0,name:this.scope.currentScope.network.getResourceOrKeyName("web_common_sunday")}],this.dayTypeRecurrenceData=[{value:1,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_recurrence_byWeekDay_first")},{value:2,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_recurrence_byWeekDay_second")},{value:3,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_recurrence_byWeekDay_third")},{value:4,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_recurrence_byWeekDay_fourth")},{value:-1,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_recurrence_byWeekDay_last")}],this.typeRecurrenceData=[{value:0,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_recurrence_dayType_monthDay")},{value:1,name:this.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_recurrence_dayType_weekDay")}]}toggleAllChapters(s){s.value&&this.networkChapters.forEach(l=>{this.selectedContentConnectNetworkChapters[l.slug]=l}),this.connectedChapterNetworkIndicator=Object.keys(this.selectedContentConnectNetworkChapters).length>0}toggleChapterSelection(s,r){r.value?this.selectedContentConnectNetworkChapters[s.slug]=s:delete this.selectedContentConnectNetworkChapters[s.slug],this.selectAllContentConnectChapterNetworks=this.networkChapters.every(E=>!!this.selectedContentConnectNetworkChapters[E.slug]),this.connectedChapterNetworkIndicator=Object.keys(this.selectedContentConnectNetworkChapters).length>0}isChapterSelected(s){return!!this.selectedContentConnectNetworkChapters[s]}onPublish(){this.working=!0,this.eventService.updateEvent(this.event.id,this.transformEvent()).then(s=>{this.event.unpublishedRevisionGuid=s,this.canPublish?!this.event.published&&this.scope.currentScope.network.settings.featureContentConnect&&this.scope.currentScope.chapter.settings.configurations.enableEventCalendar?this.publishContentConnectEvent():this.publishEvent():this.requestPublish()})}requestPublish(){this.eventService.requestEventPublish(this.event.id).then(s=>{this.working=!1,this.event.publishRequested=!0,window.location.reload()})}publishContentConnectEvent(){this.connectedChapters=Object.values(this.selectedContentConnectNetworkChapters).map(s=>s.chapterNetwork),this.eventService.publishContentConnectEvent(this.event.unpublishedRevisionGuid,this.event.breakingEvent,this.connectedChapters,this.ccBreakingEvent).then(()=>{this.event.unpublishedRevisionGuid=null,this.working=!1,window.location.reload()})}publishEvent(){this.eventService.publishEvent(this.event.unpublishedRevisionGuid,this.event.breakingEvent).then(s=>{this.event.unpublishedRevisionGuid=null,this.working=!1,window.location.reload()})}transformEvent(){var s=JSON.parse(JSON.stringify(this.event));switch(s.jsonDescription=this.proseMirrorEditorService.getDocument(),s.htmlDescription=this.proseMirrorEditorService.getHtmlDocument(),s.durationInSeconds=s.durationValue,s.durationType){case 0:break;case 1:s.durationInSeconds*=60;break;case 2:s.durationInSeconds*=3600;break;case 3:s.durationInSeconds*=86400;break;case 4:s.durationInSeconds*=604800}if(0!==s.recurrenceRule.frequency&&(s.end=null,s.isAllDay=!1),s.recurrenceRule.frequency<=5&&(s.recurrenceRule.byDay=[],s.recurrenceRule.byMonthDay=[]),s.recurrenceRule.frequency<=6&&(s.recurrenceRule.byMonth=[]),5===s.recurrenceRule.frequency?s.recurrenceRule.weekDays.forEach(function(E,N){E&&s.recurrenceRule.byDay.push({dayOfWeek:N})}):1===s.recurrenceRule.dayType?s.recurrenceRule.byMonthDay=[]:s.recurrenceRule.byDay=[],7===s.recurrenceRule.frequency&&(s.recurrenceRule.byMonthDay.splice(1),s.recurrenceRule.byDay.splice(1)),s.isAllDay){var r=new Date(s.start);s.start=r.getFullYear()+"-"+(r.getMonth()+1)+"-"+ +r.getDate();var l=new Date(s.end);s.end=l.getFullYear()+"-"+(l.getMonth()+1)+"-"+ +l.getDate()}return s.isOpenEnd&&(s.isAllDay=!1),s.recurrenceRule&&!s.recurrenceRule.hasUntil&&(s.recurrenceRule.until=null),s.allowJoin||(s.showParticipants=!1,s.maxParticipants=null),s.maxParticipants<1&&(s.maxParticipants=null),s.lockParticipation&&(s.lockParticipationAuto=!1,s.lockParticipationAutoDate=null),s}onChangeLockParticipationAuto(){if(this.event.lockParticipationAuto){if(this.event.lockParticipationAutoDate)return;this.event.lockParticipationAutoDate=this.now}else this.event.lockParticipationAutoDate=null}onRecurrenceSelectionChanged(s){this.event.recurrenceRule.frequency=s}onDayTypeChanged(s){this.event.recurrenceRule.dayType=s}deleteWeekDayRule(s){this.event.recurrenceRule.byDay.splice(s,1)}addWeekDayRule(){this.event.recurrenceRule.byDay.push({dayOfWeek:1,offset:1})}determineRecurrenceIntervalLabelText(){switch(this.event.recurrenceRule.frequency){case 4:default:return this.scope.currentScope.network.resources.web_eventEdit_recurrence_interval_days_part2;case 5:return this.scope.currentScope.network.resources.web_eventEdit_recurrence_interval_weeks_part2;case 6:return this.scope.currentScope.network.resources.web_eventEdit_recurrence_interval_months_part2;case 7:return this.scope.currentScope.network.resources.web_eventEdit_recurrence_interval_years_part2}}onChangeEventIsAllDay(){this.event.isAllDay&&(this.event.start&&(this.event.start=new Date(this.event.start.setHours(0,0,0,0))),this.event.end&&(this.event.end=new Date(this.event.end.setHours(23,59,59,999))))}onChangeEventIsOpenEnd(){this.event.isOpenEnd&&this.event.end&&(this.event.end=new Date(this.event.start.valueOf()),this.event.end.setHours(23,59,59,999))}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(id),e.rXU(Ld),e.rXU(He.be))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-event-calendar-publish"]],inputs:{event:"event",canPublish:"canPublish"},standalone:!1,decls:21,vars:20,consts:[[3,"onClick","disabled"],[4,"dxTemplate","dxTemplateOf"],["position","top",3,"visibleChange","visible","showCloseButton","showTitle","title","wrapperAttr","height","width"],[1,"event-calendar-publish-dialog-base"],[1,"event-calendar-publish-dialog-container"],[1,"event-calendar-publish-dialog-tasks"],[1,"event-calendar-publish-input-container"],[1,"event-calendar-publish-input",3,"valueChange","value"],[1,"event-calendar-publish-dialog-labels"],[1,"event-calendar-publish-dialog-alert"],[1,"publish-button"],["type","normal",3,"onClick","disabled"],["aria-hidden","true",1,"button-indicator",3,"visible"],[1,"dx-button-text"],[3,"valueChange","value","showSpinButtons","min"],[1,"event-calendar-publish-input",3,"valueChange","onValueChanged","value"],["type","datetime",3,"valueChange","value","openOnFieldClick","min","visible"],["id","small-indicator","height","20","width","20","aria-hidden","true",3,"visible"],[1,"event-calendar-publish-input-container","pl-2"],[1,"content-connect-list"],[1,"event-calendar-publish-content-connect-breaking-wrapper"],[1,"content-connect-list-item"],[3,"onValueChanged","value"]],template:function(r,l){1&r&&(e.j41(0,"dx-button",0),e.bIt("onClick",function(){return l.onButtonClick()}),e.DNE(1,Ai,4,2,"div",1),e.k0s(),e.j41(2,"dx-popup",2),e.mxI("visibleChange",function(N){return e.DH7(l.showPublishDialog,N)||(l.showPublishDialog=N),N}),e.j41(3,"div",3)(4,"div",4)(5,"div",5),e.nVh(6,ps,5,3),e.j41(7,"div",6)(8,"dx-switch",7),e.mxI("valueChange",function(N){return e.DH7(l.event.enableInteraction,N)||(l.event.enableInteraction=N),N}),e.k0s(),e.j41(9,"div",8),e.EFF(10),e.k0s()(),e.nVh(11,Ls,4,2,"div",6),e.j41(12,"div",6)(13,"dx-switch",7),e.mxI("valueChange",function(N){return e.DH7(l.event.breakingEvent,N)||(l.event.breakingEvent=N),N}),e.k0s(),e.j41(14,"div",8),e.EFF(15),e.k0s()(),e.nVh(16,Sr,3,2,"div",9),e.nVh(17,Hd,5,3),e.k0s(),e.j41(18,"div",10)(19,"dx-button",11),e.bIt("onClick",function(){return l.onPublish()}),e.DNE(20,cS,4,2,"div",1),e.k0s()()()()()),2&r&&(e.Y8G("disabled",l.working),e.R7$(),e.Y8G("dxTemplateOf","content"),e.R7$(),e.R50("visible",l.showPublishDialog),e.Y8G("showCloseButton",!0)("showTitle",!0)("title",l.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_createPublish_title"))("wrapperAttr",e.lJ4(19,Kn))("height","98vh")("width","98%"),e.R7$(4),e.vxM(l.closedChapter?6:-1),e.R7$(2),e.R50("value",l.event.enableInteraction),e.R7$(2),e.SpI(" ",l.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_enableInteraction")," "),e.R7$(),e.vxM(l.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration.IsNotificationSystemActive?11:-1),e.R7$(2),e.R50("value",l.event.breakingEvent),e.R7$(2),e.SpI(" ",l.scope.currentScope.network.getResourceOrKeyName("web_eventEdit_breaking_event")," "),e.R7$(),e.vxM(l.event.breakingEvent?16:-1),e.R7$(),e.vxM(l.scope.currentScope.network.settings.featureContentConnect&&!l.event.published?17:-1),e.R7$(2),e.Y8G("disabled",l.working),e.R7$(),e.Y8G("dxTemplateOf","content"))},dependencies:[Et.eC,Gn.e,ir.z,Wn.B,wn.E,en.i,Zn.Y],styles:["#firstPublishPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:var(--designContentWidth);max-width:var(--designContentWidth)}@media (max-width: 768px){  #firstPublishPopup .dx-overlay-content.dx-popup-normal.dx-resizable{width:100%;max-width:100%}}.event-calendar-publish-dialog-base[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width: 768px){.event-calendar-publish-dialog-base[_ngcontent-%COMP%]{display:unset}}.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .event-calendar-publish-dialog-container[_ngcontent-%COMP%]{width:80%}@media (max-width: 768px){.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .event-calendar-publish-dialog-container[_ngcontent-%COMP%]{width:100%}}.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .event-calendar-publish-dialog-tasks[_ngcontent-%COMP%]{margin-top:2.5rem}.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .event-calendar-publish-input[_ngcontent-%COMP%]{margin-right:15px}.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .event-calendar-publish-radio-group[_ngcontent-%COMP%]{font-size:1.2rem;margin-top:15px}@media (max-width: 768px){.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .event-calendar-publish-radio-group[_ngcontent-%COMP%]{font-size:.8rem}}.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .event-calendar-publish-dialog-labels[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;margin-right:15px;color:var(--textColor60)}@media (max-width: 768px){.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .event-calendar-publish-dialog-labels[_ngcontent-%COMP%]{font-size:.8rem}}.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .event-calendar-publish-input-container[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:20px}.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .event-calendar-publish-dialog-alert[_ngcontent-%COMP%]{font-size:.7rem;font-weight:300;padding-left:3.5rem}.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .content-connect-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:5px;padding-left:1rem;justify-content:space-between;margin-top:15px}.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .content-connect-list-item[_ngcontent-%COMP%]{display:flex;width:calc(33.33% - 5px);text-align:center;gap:10px;margin-bottom:1rem}@media (max-width: 768px){.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .content-connect-list-item[_ngcontent-%COMP%]{width:100%;gap:15px}}.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .event-calendar-publish-content-connect-breaking-wrapper[_ngcontent-%COMP%]{padding-left:1rem;display:flex}.event-calendar-publish-dialog-base[_ngcontent-%COMP%]   .publish-button[_ngcontent-%COMP%]{display:flex;justify-content:center;transform:scale(1.2);margin-top:3rem;margin-bottom:4rem}.button-indicator[_ngcontent-%COMP%]{height:32px;width:32px;display:inline-block;vertical-align:middle;margin-right:5px}"]}))}return o(),t})();var x1=p(4050);function E1(o,t){1&o&&e.nrm(0,"dxi-item",3)}function uS(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",5)(2,"dx-button",6),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.onLoginButtonClicked(r.dialogState.login))}),e.k0s(),e.j41(3,"dx-button",6),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.onRegisterButtonClicked())}),e.k0s()()()}if(2&o){const n=e.XpG();e.R7$(2),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_common_login")),e.R7$(),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_common_register"))}}function XC(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-button",7),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.onHowToClicked())}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_common_howDoesThisPlatformWork"))}}let O1=(()=>{var o;class t{constructor(s,r){this.hybridTrackingService=r,this.dismissPopup=new e.bkB,this.dialogState={none:0,login:2},this.onRegisterButtonClicked=()=>{this.hybridTrackingService.switchState("app.register",{closedToken:new URLSearchParams(window.location.search).get("closedToken")}),this.dismissPopup.emit()},this.onHowToClicked=()=>{window.location.href=this.scope.currentChapter.path+"/howto",this.dismissPopup.emit()},this.scope=s.getScope()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Ko.o))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-login-option-dialog"]],inputs:{onLoginButtonClicked:"onLoginButtonClicked",hasHowTo:"hasHowTo"},outputs:{dismissPopup:"dismissPopup"},standalone:!1,decls:6,vars:3,consts:[[1,"login-option-dialog-base"],[1,"login-option-dialog-form"],["template","buttonArea"],["template","howToButton"],[4,"dxTemplate","dxTemplateOf"],[2,"gap","1rem","display","flex"],["width","48%",3,"onClick","text"],["width","100%","type","success",3,"onClick","text"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"dx-form",1),e.nrm(2,"dxi-item",2),e.nVh(3,E1,1,0,"dxi-item",3),e.DNE(4,uS,4,2,"div",4)(5,XC,2,1,"div",4),e.k0s()()),2&r&&(e.R7$(3),e.vxM(l.hasHowTo?3:-1),e.R7$(),e.Y8G("dxTemplateOf","buttonArea"),e.R7$(),e.Y8G("dxTemplateOf","howToButton"))},dependencies:[Bo.CVf,Et.eC,Gn.e,Xi.o],styles:[".login-option-dialog-base[_ngcontent-%COMP%]{display:flex;justify-content:center}.login-option-dialog-base[_ngcontent-%COMP%]   .login-option-dialog-form[_ngcontent-%COMP%]{width:50%}@media (max-width: 768px){.login-option-dialog-base[_ngcontent-%COMP%]   .login-option-dialog-form[_ngcontent-%COMP%]{width:100%}}"]}))}return o(),t})();const FA=o=>({"background-color":o});function w1(o,t){if(1&o&&(e.j41(0,"div")(1,"a",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6),e.nrm(7,"img",7),e.k0s()(),e.j41(8,"div",8)(9,"div",5),e.nrm(10,"div",9),e.nI1(11,"apicodoTranslateText"),e.nI1(12,"async"),e.k0s(),e.j41(13,"div",5)(14,"div",10)(15,"div",11),e.nrm(16,"h4",12),e.nI1(17,"apicodoTranslateText"),e.nI1(18,"async"),e.k0s()()()()()()()()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("href",n.staticArticlePath,e.B4B)("target",n.linkTarget),e.R7$(6),e.Y8G("src",n.imagePath,e.B4B)("alt",n.imageAltText),e.R7$(3),e.Y8G("innerHtml",e.bMT(12,8,e.bMT(11,6,n.data.heading)),e.npT),e.R7$(6),e.Y8G("innerHtml",e.bMT(18,12,e.bMT(17,10,n.data.title)),e.npT)}}function S1(o,t){if(1&o&&(e.j41(0,"div")(1,"a",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",13)(7,"div",14),e.nrm(8,"app-navigation-header-logo",15),e.k0s()()(),e.j41(9,"div",8)(10,"div",5),e.nrm(11,"div",9),e.nI1(12,"apicodoTranslateText"),e.nI1(13,"async"),e.k0s(),e.j41(14,"div",5)(15,"div",10)(16,"div",11),e.nrm(17,"h4",12),e.nI1(18,"apicodoTranslateText"),e.nI1(19,"async"),e.k0s()()()()()()()()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("href",n.staticArticlePath,e.B4B)("target",n.linkTarget),e.R7$(6),e.Y8G("ngStyle",e.eq3(14,FA,n.fallbackColor)),e.R7$(),e.Y8G("isDisplayable",!0),e.R7$(3),e.Y8G("innerHtml",e.bMT(13,8,e.bMT(12,6,n.data.heading)),e.npT),e.R7$(6),e.Y8G("innerHtml",e.bMT(19,12,e.bMT(18,10,n.data.title)),e.npT)}}let NA=(()=>{var o;class t{constructor(s,r,l){this.deviceService=s,this.scopeService=r,this.displayableFallbackCoverService=l,this.imagePath="",this.isFallback=!1,this.fallbackColor="",this.imageAltText="",this.scope=this.scopeService.getScope()}ngOnInit(){if(this.imageAltText=this.data?.coverImageText??"",this.data.coverAssetReference){let s=this.scope.network.settings.configurations.enableHighQualityImage?"-hq":"",r=this.deviceService.getUserAgentInfo().isMobile?"-sm":"";this.imagePath=`${this.scope.globalSettings.blobStorageCdnUrl}/${this.scope.globalSettings.blobStorageContainerNameImage}/${this.data.coverAssetReference.assetImage.guid}?preset=cover${s}${r}-4x3&cache=${this.data.coverAssetReference.assetImage.cache}`}else this.isFallback=!0,this.fallbackColor=this.displayableFallbackCoverService.getRandomNetworkColor();this.data.articleExternalLink?(this.staticArticlePath=this.data.articleExternalLink,this.linkTarget="_blank"):(this.staticArticlePath=`${this.scope.currentScope.chapter.path}/${this.data.path}`,this.linkTarget="")}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Ce.E),e.rXU(Se.A),e.rXU(ul))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-displayable-static-article"]],inputs:{data:"data"},standalone:!1,decls:3,vars:2,consts:[[1,"displayable-static-article"],[1,"displayable-anchor-text",3,"href","target"],[1,"container","p-0","displayable-wrapper"],[1,"mb-3"],[1,"g-0"],[1,"row"],[1,"displayable-image-wrapper","col-12"],[3,"src","alt"],[1,"card-body","displayable-content-wrapper","p-0"],[1,"displayable-heading-wrapper","col-12",3,"innerHtml"],[1,"col-10"],[1,"displayable-text-wrapper"],[3,"innerHtml"],[1,"displayable-image-fallback-wrapper","col-12"],[1,"displayable-image-fallback",3,"ngStyle"],[3,"isDisplayable"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.nVh(1,w1,19,14,"div"),e.nVh(2,S1,20,16,"div"),e.k0s()),2&r&&(e.R7$(),e.vxM(l.isFallback?-1:1),e.R7$(),e.vxM(l.isFallback?2:-1))},dependencies:[C.B3,Ft.B,pc,C.Jj,Fo],styles:[".displayable-wrapper[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--textColor)}.displayable-content-wrapper[_ngcontent-%COMP%]{position:relative}.displayable-heading-wrapper[_ngcontent-%COMP%]{font-family:var(--fontPrimary);-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;text-transform:uppercase;margin-bottom:.5rem;color:var(--textColor)}.displayable-text-wrapper[_ngcontent-%COMP%]{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;margin-bottom:.5rem}.displayable-text-wrapper[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:1.25rem;margin-top:0;font-family:var(--fontSecondary);font-weight:700}.displayable-summary-wrapper[_ngcontent-%COMP%]{font-family:var(--fontPrimary);-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;font-size:1.2rem;line-height:1.3;margin-bottom:1rem}.displayable-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{aspect-ratio:4/3;overflow:hidden;object-fit:cover;width:100%;margin-bottom:.5rem}.card[_ngcontent-%COMP%]{border:none}.displayable-anchor-text[_ngcontent-%COMP%]{color:var(--textColor);text-decoration:none}.displayable-image-fallback[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;aspect-ratio:4/3}.displayable-image-fallback[_ngcontent-%COMP%]   .fallback-image[_ngcontent-%COMP%]{max-width:80%;max-height:50%}"]}))}return o(),t})(),LA=(()=>{var o;class t{constructor(s,r){this.http=s,this.scopeService=r,this.scope=this.scopeService.getScope()}getArticleQuestions(s){return this.http.get(`${this.scope.apiEndpoint}articleQuestions/${s}`)}getTranslatedArticleQuestions(s,r){return this.http.get(`${this.scope.apiEndpoint}articleQuestions/${s}/translate?targetLanguage=${r}`)}getAnswerId(s){return this.http.get(`${this.scope.apiEndpoint}articleQuestions/answers/${s}`)}postArticleQuestionAnswer(s,r){const l=r?`"${r.replace(/\\/gm,"\\\\").replace(/"/gm,'\\"')}"`:null,E=new ke.Lr({"Content-Type":"application/json"});return this.http.post(`${this.scope.apiEndpoint}articleQuestions/articleQuestionItems/${s}`,l,{headers:E})}deleteArticleQuestionAnswersByUser(s){return this.http.delete(`${this.scope.apiEndpoint}articleQuestions/${s}`)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(ke.Qq),m.KVO(Se.A))},this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}))}return o(),t})();const qx=()=>({class:"answer-btn"}),D1=()=>({style:"color: var(--color1)"}),e0=(o,t)=>t.id;function VA(o,t){1&o&&e.nrm(0,"div",3)}function HA(o,t){1&o&&e.nrm(0,"i",9)}function T1(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",5)(1,"dx-button",7),e.bIt("onClick",function(){const r=m.eBV(n).$implicit,l=e.XpG().$implicit,E=e.XpG();return m.Njj(E.answering(l.id,r.id))}),e.j41(2,"span",8),e.EFF(3),e.nVh(4,HA,1,0,"i",9),e.k0s()()()}if(2&o){const n=t.$implicit,s=e.XpG().$implicit,r=e.XpG();e.R7$(),e.AVh("button-selected",r.isAnswerSelected(s.id,n.id)),e.Y8G("elementAttr",e.lJ4(5,qx)),e.R7$(2),e.SpI(" ",n.text," "),e.R7$(),e.vxM(r.isAnswerSelected(s.id,n.id)?4:-1)}}function fk(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-button",13),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG().$implicit,l=e.XpG().$implicit,E=e.XpG();return m.Njj(E.answering(l.id,r.id))}),e.k0s()}2&o&&e.Y8G("elementAttr",e.lJ4(1,D1))}function $A(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",5)(1,"dx-text-area",10),e.mxI("valueChange",function(r){const l=m.eBV(n).$implicit;return e.DH7(l.freeText,r)||(l.freeText=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",11),e.nVh(3,fk,1,2,"dx-button",12),e.k0s()()}if(2&o){const n=t.$implicit;e.R7$(),e.Y8G("label",e.mNQ(n.text)),e.R50("value",n.freeText),e.R7$(2),e.vxM(n.freeText!==n.synchedFreeText?3:-1)}}function UA(o,t){if(1&o&&(e.j41(0,"div",1)(1,"div",2),e.EFF(2),e.k0s(),e.nVh(3,VA,1,0,"div",3),e.j41(4,"div",4),e.Z7z(5,T1,5,6,"div",5,e0),e.Z7z(7,$A,4,4,"div",5,e0),e.nrm(9,"div",6),e.k0s()()),2&o){const n=t.$implicit,s=e.XpG();e.R7$(2),e.SpI(" ",n.text+" "+s.scope.currentScope.network.getResourceOrKeyName(n.locked?"web_article_articleQuestion_locked_info":"web_article_articleQuestion_info")," "),e.R7$(),e.vxM(n.allowMultipleChoice?3:-1),e.R7$(2),e.Dyx(n.normalAnswers),e.R7$(2),e.Dyx(n.freeTextAnswers)}}let jA=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.articleQuestionsService=r,this.articleQuestionAnswerIds={},this.setArticleQuestions=l=>{this.articleQuestions=l,l.forEach(E=>{E.normalAnswers=[],E.freeTextAnswers=[],E.items.forEach(N=>{N.isFreeTextAnswer?E.freeTextAnswers.push(N):E.normalAnswers.push(N)}),this.articleQuestionsService.getAnswerId(E.id).subscribe(N=>{this.articleQuestionAnswerIds[E.id]=[],N.forEach(ae=>{if(this.articleQuestionAnswerIds[E.id].push(ae.itemId),ae.freeText){const ze=E.freeTextAnswers.find(dt=>dt.id===ae.itemId);ze&&(ze.freeText=ae.freeText,ze.synchedFreeText=ae.freeText)}})})})},this.answering=(l,E)=>{var N=this.articleQuestions.find(ci=>ci.id===l),ae=N.items.find(ci=>ci.id==E);if(!N.locked){var ze=this.articleQuestionAnswerIds[l].includes(E),dt=this.articleQuestionAnswerIds[l],Kt=ze&&(!ae.isFreeTextAnswer||!ae.freeText);if(!N.allowMultipleChoice||Kt){var Vn=ze?E:dt[0];(ae.id!==Vn||!ae.isFreeTextAnswer||!ae.freeText)&&this.articleQuestionsService.deleteArticleQuestionAnswersByUser(Vn).subscribe(()=>{dt.splice(dt.indexOf(Vn),1);var ci=N.items.find(Vi=>Vi.id==Vn);ci&&(ci.freeText=null,ci.synchedFreeText=null)})}Kt||this.articleQuestionsService.postArticleQuestionAnswer(E,ae.freeText).subscribe(()=>{ae.synchedFreeText=ae.freeText,ze||dt.push(E)})}},this.isAnswerSelected=(l,E)=>this.articleQuestionAnswerIds[l]?.includes(E),this.scope=this.scopeService.getScope()}ngOnInit(){this.articleQuestionsService.getArticleQuestions(this.article.id).subscribe(s=>{this.setArticleQuestions(s)})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(LA))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-article-question"]],inputs:{article:"article"},standalone:!1,decls:3,vars:0,consts:[[1,"article-question"],[1,"visible-isRegistered"],[1,"article-question-question-text"],["ng-bind","($root.scope.currentScope.network.getResourceOrKeyName('web_article_articleQuestion_allowMultipleChoice_info'))",1,"articleQuestion-allowMultipleChoice"],[1,"article-question-answers"],[1,"article-question-answer-button"],[1,"clearfix"],["width","100%",3,"onClick","elementAttr"],[1,"button-text"],[1,"fa","fa-check-circle"],["rows","1","labelMode","floating","valueChangeEvent","input",3,"valueChange","label","value"],[1,"freetext-answer-button-container"],["icon","fa fa-lg fa-arrow-right","stylingMode","text",1,"freetext-answer-button",3,"elementAttr"],["icon","fa fa-lg fa-arrow-right","stylingMode","text",1,"freetext-answer-button",3,"onClick","elementAttr"]],template:function(r,l){1&r&&(e.j41(0,"div",0),e.Z7z(1,UA,10,2,"div",1,e0),e.k0s()),2&r&&(e.R7$(),e.Dyx(l.articleQuestions))},dependencies:[Gn.e,mi._],styles:[".article-question[_ngcontent-%COMP%]{width:80%}@media (max-width: 768px){.article-question[_ngcontent-%COMP%]{width:100%;padding:10px 20px}}.article-question[_ngcontent-%COMP%]   .article-question-question-text[_ngcontent-%COMP%]{background:var(--textColor10);padding:16px;font-size:1.5rem;font-weight:800}.article-question[_ngcontent-%COMP%]   .answer-btn[_ngcontent-%COMP%]   .dx-button-content[_ngcontent-%COMP%]{flex-wrap:wrap}.article-question[_ngcontent-%COMP%]   .answer-btn[_ngcontent-%COMP%]   .dx-button-text[_ngcontent-%COMP%], .article-question[_ngcontent-%COMP%]   .answer-btn[_ngcontent-%COMP%]   .button-text[_ngcontent-%COMP%]{white-space:normal!important;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.3;display:block;width:100%;text-align:left;font-size:1.2rem;font-weight:750;text-transform:uppercase}.article-question[_ngcontent-%COMP%]   .answer-btn.dx-button[_ngcontent-%COMP%]{height:auto}.article-question[_ngcontent-%COMP%]   .article-question-answers[_ngcontent-%COMP%]{display:flex;flex-direction:column;background:var(--textColor5);padding:16px 16px 0;gap:16px}.article-question[_ngcontent-%COMP%]   .article-question-answers[_ngcontent-%COMP%]   .article-question-answer-button[_ngcontent-%COMP%]{width:90%}@media (max-width: 768px){.article-question[_ngcontent-%COMP%]   .article-question-answers[_ngcontent-%COMP%]   .article-question-answer-button[_ngcontent-%COMP%]{width:100%}}.article-question[_ngcontent-%COMP%]   .button-selected[_ngcontent-%COMP%]{background-color:var(--color1-alpha20)}.article-question[_ngcontent-%COMP%]   .freetext-answer-button-container[_ngcontent-%COMP%]{align-items:end;justify-content:end;display:flex;height:40px}.article-question[_ngcontent-%COMP%]   .freetext-answer-button-container[_ngcontent-%COMP%]     .dx-button.dx-button-mode-text .dx-icon{color:var(--color1)!important}"]}))}return o(),t})();function GA(o,t){if(1&o&&(e.j41(0,"h4"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_staff_dir_admin_editable"))}}function WA(o,t){if(1&o&&(e.j41(0,"h4"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_staff_dir_user_editable"))}}function zA(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-text-area",8,0),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG().$implicit,E=e.XpG(3);return e.DH7(E.staffDirData.data[l],r)||(E.staffDirData.data[l]=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG().$implicit,s=e.XpG(3);e.R7$(),e.Y8G("autoResizeEnabled",!0)("label",s.staffDirData.metaData[n].name),e.R50("value",s.staffDirData.data[n]),e.Y8G("labelMode","floating")("disabled",!s.isEditable)}}function KA(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-text-box",9),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG().$implicit,E=e.XpG(3);return e.DH7(E.staffDirData.data[l],r)||(E.staffDirData.data[l]=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG().$implicit,s=e.XpG(3);e.R7$(),e.Y8G("label",s.staffDirData.metaData[n].name),e.R50("value",s.staffDirData.data[n]),e.Y8G("labelMode","floating")("disabled",!s.isEditable)}}function XA(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-tag-box",10),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG().$implicit,E=e.XpG(3);return e.DH7(E.staffDirData.data[l],r)||(E.staffDirData.data[l]=r),m.Njj(r)}),e.bIt("onCustomItemCreating",function(r){m.eBV(n);const l=e.XpG(4);return m.Njj(l.handleCustomItemCreating(r))}),e.k0s()()}if(2&o){const n=e.XpG().$implicit,s=e.XpG(3);e.R7$(),e.Y8G("label",s.staffDirData.metaData[n].name),e.R50("value",s.staffDirData.data[n]),e.Y8G("acceptCustomValue",!0)("labelMode","floating")("dataSource",s.staffDirData.metaData[n].options)("showClearButton",s.isEditable)("disabled",!s.isEditable)}}function YA(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-text-box",9),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG().$implicit,E=e.XpG(3);return e.DH7(E.staffDirData.data[l],r)||(E.staffDirData.data[l]=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG().$implicit,s=e.XpG(3);e.R7$(),e.Y8G("label",s.staffDirData.metaData[n].name),e.R50("value",s.staffDirData.data[n]),e.Y8G("labelMode","floating")("disabled",!s.isEditable)}}function hS(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",7)(1,"dx-switch",11),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG().$implicit,E=e.XpG(3);return e.DH7(E.staffDirData.data[l],r)||(E.staffDirData.data[l]=r),m.Njj(r)}),e.k0s(),e.j41(2,"div",12),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG().$implicit,s=e.XpG(3);e.R7$(),e.R50("value",s.staffDirData.data[n]),e.Y8G("disabled",!s.isEditable),e.R7$(2),e.SpI(" ",s.staffDirData.metaData[n].name," ")}}function t0(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-select-box",13),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG().$implicit,E=e.XpG(3);return e.DH7(E.staffDirData.data[l],r)||(E.staffDirData.data[l]=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG().$implicit,s=e.XpG(3);e.R7$(),e.Y8G("label",s.staffDirData.metaData[n].name),e.R50("value",s.staffDirData.data[n]),e.Y8G("labelMode","floating")("dataSource",s.staffDirData.metaData[n].options)("disabled",!s.isEditable)("showClearButton",s.isEditable)}}function pS(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-date-box",14),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG().$implicit,E=e.XpG(3);return e.DH7(E.staffDirData.data[l],r)||(E.staffDirData.data[l]=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG().$implicit,s=e.XpG(3);e.R7$(),e.R50("value",s.staffDirData.data[n]),e.Y8G("label",s.staffDirData.metaData[n].name)("labelMode","floating")("disabled",!s.isEditable)("pickerType","calendar")}}function gS(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-text-box",9),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG().$implicit,E=e.XpG(3);return e.DH7(E.staffDirData.data[l],r)||(E.staffDirData.data[l]=r),m.Njj(r)}),e.k0s()()}if(2&o){const n=e.XpG().$implicit,s=e.XpG(3);e.R7$(),e.Y8G("label",s.staffDirData.metaData[n].name),e.R50("value",s.staffDirData.data[n]),e.Y8G("labelMode","floating")("disabled",!s.isEditable)}}function fS(o,t){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2).$implicit,s=e.XpG(3);e.R7$(),e.SpI(" ",s.staffDirData.metaData[n].description," ")}}function QA(o,t){if(1&o&&(e.nrm(0,"dx-button",15),e.j41(1,"dx-tooltip",16),e.DNE(2,fS,2,1,"div",17),e.k0s()),2&o){const n=e.XpG().$implicit;e.Y8G("id","tooltipButton_"+n),e.R7$(),e.Y8G("target","#tooltipButton_"+n),e.R7$(),e.Y8G("dxTemplateOf","content")}}function mS(o,t){if(1&o&&(e.j41(0,"div",5)(1,"div",6),e.nVh(2,zA,3,5,"div")(3,KA,2,4,"div")(4,XA,2,7,"div")(5,YA,2,4,"div")(6,hS,4,3,"div",7)(7,t0,2,6,"div")(8,pS,2,5,"div")(9,gS,2,4,"div"),e.k0s(),e.nVh(10,QA,3,3),e.k0s()),2&o){let n;const s=t.$implicit,r=e.XpG(3);e.R7$(2),e.vxM("textarea"===(n=r.staffDirData.metaData[s].type)?2:"text"===n?3:"tagAutocomplete"===n?4:"emailsend"===n?5:"boolean"===n?6:"options"===n?7:"datePicker"===n?8:"phonecall"===n?9:-1),e.R7$(8),e.vxM(r.staffDirData.metaData[s].description&&""!=r.staffDirData.metaData[s].description?10:-1)}}function ZA(o,t){if(1&o&&(e.j41(0,"div",4),e.nVh(1,GA,2,1,"h4")(2,WA,2,1,"h4"),e.Z7z(3,mS,11,2,"div",5,e.fX1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.vxM(n.isEditable?2:1),e.R7$(2),e.Dyx(n.staffDirKeys)}}function JA(o,t){1&o&&(e.j41(0,"dx-form",1),e.nrm(1,"dxi-item",2),e.DNE(2,ZA,5,1,"div",3),e.k0s()),2&o&&(e.R7$(2),e.Y8G("dxTemplateOf","staffDirProperties"))}let _S=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.profileService=r,this.isEditable=!1,this.staffDirData=null,this.staffDirKeys=[],this.save=()=>{this.isEditable&&this.profileService.updateStaffDirectory(this.scope.profile.guid,this.staffDirData.data)},this.scope=this.scopeService.getScope()}ngOnInit(){this.isEditable?this.profileService.getStaffDirectoryOwned(this.scope.profile.guid).then(s=>{this.staffDirData=s;for(let l in s.data){this.staffDirKeys.push(l);const E=this.staffDirData.data[l];if(Array.isArray(E)&&0===E.length&&(this.staffDirData.data[l]=[]),"tagAutocomplete"==this.staffDirData.metaData[l].type)for(var r of this.staffDirData.data[l])this.staffDirData.metaData[l].options.some(N=>N.text===r)||(this.staffDirData.metaData[l].options=[...this.staffDirData.metaData[l].options,{text:r}])}}):this.profileService.getOwnPrivateStaffDirData(this.scope.profile.guid).then(s=>{this.staffDirData=s;for(let l in s.data){this.staffDirKeys.push(l);const E=this.staffDirData.data[l];if(Array.isArray(E)&&1===E.length&&""===(E[0]??"")&&(this.staffDirData.data[l]=[]),"tagAutocomplete"==this.staffDirData.metaData[l].type)for(var r of this.staffDirData.data[l])this.staffDirData.metaData[l].options.some(N=>N.text===r)||(this.staffDirData.metaData[l].options=[...this.staffDirData.metaData[l].options,{text:r}])}})}handleCustomItemCreating(s){if(!s.text)return;const r=s.text.trim(),l=s.component;let E=l.option("dataSource")||[];Array.isArray(E)||(E=[]),E.some(ae=>ae.text===r)||(E=[...E,{text:r}],l.option("dataSource",E));let N=l.option("value")||[];N.includes(r)||(N=[...N,r],l.option("value",N)),s.customItem=r,setTimeout(()=>{l.blur(),l.option("text",""),l.focus()},0)}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU($n.p))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-staff-directory-editor"]],inputs:{isEditable:"isEditable"},standalone:!1,decls:1,vars:1,consts:[["staffDirTextArea",""],[1,"staff-directory-editor-base"],["template","staffDirProperties"],["style"," gap: 1rem; display: flex; flex-direction: column;",4,"dxTemplate","dxTemplateOf"],[2,"gap","1rem","display","flex","flex-direction","column"],[1,"staff-directory-editor-item"],[1,"staff-directory-editor-input"],[1,"profile-switch"],[3,"valueChange","autoResizeEnabled","label","value","labelMode","disabled"],[3,"valueChange","label","value","labelMode","disabled"],["displayExpr","text","valueExpr","text",3,"valueChange","onCustomItemCreating","label","value","acceptCustomValue","labelMode","dataSource","showClearButton","disabled"],[3,"valueChange","value","disabled"],[1,"profile-switch-label"],["displayExpr","text","valueExpr","value",3,"valueChange","label","value","labelMode","dataSource","disabled","showClearButton"],["type","date","displayFormat","dd.MM.yyyy",3,"valueChange","value","label","labelMode","disabled","pickerType"],["icon","fa-regular fa-question-circle","stylingMode","text",3,"id"],["showEvent","mouseenter","hideEvent","mouseleave","position","right",3,"target"],[4,"dxTemplate","dxTemplateOf"]],template:function(r,l){1&r&&e.nVh(0,JA,3,1,"dx-form",1),2&r&&e.vxM(l.staffDirData&&l.staffDirKeys.length>0?0:-1)},dependencies:[Bo.CVf,Et.eC,Gn.e,ir.z,Xi.o,is.l,Zn.Y,gn.T,mi._,gi.m,xC.b],styles:[".staff-directory-editor-base[_ngcontent-%COMP%]{gap:1rem}.staff-directory-editor-base[_ngcontent-%COMP%]   .staff-directory-editor-item[_ngcontent-%COMP%]{display:flex;align-items:start;flex-direction:column}.staff-directory-editor-base[_ngcontent-%COMP%]   .staff-directory-editor-item[_ngcontent-%COMP%]   .staff-directory-editor-input[_ngcontent-%COMP%]{width:60%}@media (max-width: 768px){.staff-directory-editor-base[_ngcontent-%COMP%]   .staff-directory-editor-item[_ngcontent-%COMP%]   .staff-directory-editor-input[_ngcontent-%COMP%]{width:100%}}.staff-directory-editor-base[_ngcontent-%COMP%]   .staff-directory-editor-item[_ngcontent-%COMP%]   .staff-directory-editor-input[_ngcontent-%COMP%]   .profile-switch-label[_ngcontent-%COMP%]{font-size:1rem;font-family:var(--textPrimary);color:var(--textColor60)}.staff-directory-editor-base[_ngcontent-%COMP%]   .staff-directory-editor-item[_ngcontent-%COMP%]   .staff-directory-editor-input[_ngcontent-%COMP%]   .profile-switch[_ngcontent-%COMP%]{display:flex;gap:10px}"]}))}return o(),t})();const Zp=()=>[".jpg",".jpeg",".png"],vS=(o,t)=>({"fa-camera":o,"fa-spinner fa-pulse":t});function qA(o,t){if(1&o){const n=e.RV6();e.j41(0,"i",10),e.bIt("click",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.deleteCover())})("keydown.enter",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.deleteCover())})("keydown.space",function(){m.eBV(n);const r=e.XpG(2);return m.Njj(r.deleteCover())}),e.k0s()}if(2&o){const n=e.XpG(2);e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_private_profile_delete_cover"))}}function CS(o,t){if(1&o&&e.nrm(0,"i",7),2&o){const n=e.XpG(2);e.Y8G("ngClass",e.l_i(1,vS,!n.loadingCover,n.loadingCover))}}function eI(o,t){1&o&&e.nrm(0,"dx-load-indicator",8)}function tI(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",1),e.nrm(1,"img",3),e.j41(2,"div",4),e.nVh(3,qA,1,1,"i",5),e.j41(4,"div",6,0),e.bIt("keydown.enter",function(r){m.eBV(n);const l=e.sdS(5);return r.preventDefault(),m.Njj(l.click())})("keydown.space",function(r){m.eBV(n);const l=e.sdS(5);return r.preventDefault(),m.Njj(l.click())}),e.nVh(6,CS,1,4,"i",7)(7,eI,1,0,"dx-load-indicator",8),e.k0s()(),e.j41(8,"dx-file-uploader",9),e.bIt("onUploaded",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onUploaded(r))}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("src",n.coverImageUrl,e.B4B)("alt",""),e.R7$(2),e.vxM(n.profile.coverImageUrl?3:-1),e.R7$(),e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_privat_profile_upload_cover")),e.R7$(2),e.vxM(n.uploadLoading?7:6),e.R7$(2),e.Y8G("multiple",!1)("allowedFileExtensions",e.lJ4(9,Zp))("uploadUrl",n.uploadUrl)("visible",!1)}}function A1(o,t){if(1&o&&(e.j41(0,"div",2),e.nrm(1,"div",11),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.xc7("width",n.fileUploadProgress,"%"),e.BMQ("aria-valuenow",n.fileUploadProgress)}}let I1=(()=>{var o;class t{constructor(s,r,l){this.scopeService=s,this.profileService=r,this.logoService=l,this.coverImageUrl="",this.uploadLoading=!1,this.deleteCover=()=>{this.profileService.updateCover(""),this.coverImageUrl=this.logoService.getChapterPictureUrl()},this.onUploaded=E=>{this.uploadLoading=!0,this.profileService.updateCover(E.request.response.replace(/"/g,"")).then(N=>{this.coverImageUrl=N.coverImageUrl,this.uploadLoading=!1})},this.scope=this.scopeService.getScope(),this.profile=this.scope.profile,this.profileServiceSubscription=this.profileService.profileChanged$.subscribe(E=>this.profile=E),this.uploadUrl=this.scope.apiEndpoint+"upload",this.coverImageUrl=this.profile.coverImageUrl+(this.profile.coverImageUrl.includes("?cache=")?"&preset=profile-cover":"?preset=profile-cover")}ngOnDestroy(){this.profileServiceSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU($n.p),e.rXU(Il.X))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-profile-cover"]],standalone:!1,decls:2,vars:2,consts:[["trigger",""],[1,"profile-cover-base","pointer"],[1,"progress","profile-progress"],[1,"profile-cover-image",3,"src","alt"],[1,"profile-cover-buttons"],["role","button","tabindex","0",1,"profile-cover-buttons-remove","fa","fa-remove"],["id","dropzone-cover-external","role","button","tabindex","0",1,"profile-cover-buttons-upload",3,"keydown.enter","keydown.space"],["aria-hidden","true",1,"fa",3,"ngClass"],["id","small-indicator","height","20","width","20"],["dialogTrigger","#dropzone-cover-external","uploadMode","instantly",3,"onUploaded","multiple","allowedFileExtensions","uploadUrl","visible"],["role","button","tabindex","0",1,"profile-cover-buttons-remove","fa","fa-remove",3,"click","keydown.enter","keydown.space"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar"]],template:function(r,l){1&r&&(e.nVh(0,tI,9,10,"div",1),e.nVh(1,A1,2,3,"div",2)),2&r&&(e.vxM(l.profile?0:-1),e.R7$(),e.vxM(l.fileUploadProgress&&l.fileUploadProgress<100?1:-1))},dependencies:[C.YU,Ri.m,Wn.B],styles:[".profile-cover-base[_ngcontent-%COMP%]{width:100%;height:380px;overflow:hidden;position:relative}@media (max-width: 768px){.profile-cover-base[_ngcontent-%COMP%]{height:220px}}.profile-cover-base[_ngcontent-%COMP%]   .profile-cover-image[_ngcontent-%COMP%]{width:100%;position:absolute;top:50%;bottom:50%;transform:translateY(-50%)}.profile-cover-base[_ngcontent-%COMP%]   .profile-cover-buttons[_ngcontent-%COMP%]{position:absolute;font-size:1.5em;background-color:#0006;top:0;right:0;border-bottom-left-radius:10px;pointer-events:none;padding:15px;display:flex;flex-direction:row;justify-content:center;align-items:center}.profile-cover-base[_ngcontent-%COMP%]   .profile-cover-buttons-upload[_ngcontent-%COMP%]{color:#fff;pointer-events:all;margin-left:5px;padding:10px}.profile-cover-base[_ngcontent-%COMP%]   .profile-cover-buttons-remove[_ngcontent-%COMP%]{margin-right:5px;color:var(--colorError);pointer-events:all;padding:10px}.profile-cover-base[_ngcontent-%COMP%]:hover   .profile-cover-buttons[_ngcontent-%COMP%], .profile-cover-base[_ngcontent-%COMP%]:focus-within   .profile-cover-buttons[_ngcontent-%COMP%]{opacity:1;transition:all linear .1s}"]}))}return o(),t})();const M1=(o,t)=>({"fa-camera":o,"fa-spinner fa-pulse":t});function nI(o,t){if(1&o&&e.nrm(0,"img",3),2&o){const n=e.XpG(2);e.Y8G("src",n.profile.avatarImageUrl+"?preset=profile-avatar",e.B4B)("alt","")}}function iI(o,t){if(1&o&&(e.j41(0,"div",4),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.avatarInitials," ")}}function oI(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nVh(2,nI,1,2,"img",3)(3,iI,2,1,"div",4),e.j41(4,"div",5)(5,"div",6)(6,"div")(7,"i",7),e.bIt("click",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.deleteAvatar())})("keydown.enter",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.deleteAvatar())})("keydown.space",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.deleteAvatar())}),e.k0s()(),e.j41(8,"div",8,0),e.bIt("keydown.enter",function(r){m.eBV(n);const l=e.sdS(9);return r.preventDefault(),m.Njj(l.click())})("keydown.space",function(r){m.eBV(n);const l=e.sdS(9);return r.preventDefault(),m.Njj(l.click())}),e.nrm(10,"i",9),e.k0s()()()(),e.j41(11,"dx-file-uploader",10),e.bIt("onUploaded",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onUploaded(r))}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(2),e.vxM(n.profile.avatarGuid||""==n.profile.avatarGuid?2:3),e.R7$(5),e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_privat_profile_delete_avatar")),e.R7$(),e.BMQ("aria-label",n.scope.currentScope.network.getResourceOrKeyName("web_privat_profile_upload_avatar")),e.R7$(2),e.Y8G("ngClass",e.l_i(9,M1,!n.loadingAvatar,n.loadingAvatar)),e.BMQ("aria-hidden",!0),e.R7$(),e.Y8G("multiple",!1)("allowedFileExtensions",n.allowedFileExtensions)("uploadUrl",n.uploadUrl)("visible",!1)}}let sI=(()=>{var o;class t{constructor(s,r){this.profileService=s,this.scopeService=r,this.allowedFileExtensions=[".jpg",".jpeg",".png"],this.getAvatarInitials=()=>this.scope.profile.firstName&&this.scope.profile.lastName?`${this.scope.profile.firstName[0]||""}${this.scope.profile.lastName[0]||""}`.toUpperCase():"",this.deleteAvatar=()=>{this.profileService.updateAvatar("")},this.onUploaded=l=>{this.profileService.updateAvatar(l.request.response.replace(/"/g,""))},this.scope=this.scopeService.getScope(),this.profile=this.scope.profile,this.profileServiceSubscription=this.profileService.profileChanged$.subscribe(l=>this.profile=l),this.uploadUrl=this.scope.apiEndpoint+"upload"}ngOnDestroy(){this.profileServiceSubscription.unsubscribe()}ngOnInit(){this.avatarInitials=this.getAvatarInitials()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU($n.p),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-profile-avatar"]],standalone:!1,decls:1,vars:1,consts:[["trigger",""],[1,"profile-avatar-base","pointer"],[1,"profile-avatar-image-container"],[1,"profile-avatar-image",3,"src","alt"],[1,"profile-avatar-image","avatar-initials"],[1,"profile-avatar-buttons-wrapper"],[1,"profile-avatar-buttons"],["role","button","tabindex","0",1,"profile-avatar-buttons-remove","fa","fa-remove",3,"click","keydown.enter","keydown.space"],["id","dropzone-avatar-external","tabindex","0","role","button",3,"keydown.enter","keydown.space"],[1,"profile-avatar-buttons-upload","fa",3,"ngClass"],["dialogTrigger","#dropzone-avatar-external","dropZone","#dropzone-avatar-external","uploadMode","instantly",3,"onUploaded","multiple","allowedFileExtensions","uploadUrl","visible"]],template:function(r,l){1&r&&e.nVh(0,oI,12,12,"div",1),2&r&&e.vxM(l.profile?0:-1)},dependencies:[C.YU,Ri.m],styles:[".profile-avatar-base[_ngcontent-%COMP%]{height:150px;margin:auto;position:relative;left:0;right:0}.profile-avatar-base[_ngcontent-%COMP%]   .profile-avatar-image-container[_ngcontent-%COMP%]{position:absolute}.profile-avatar-base[_ngcontent-%COMP%]   .profile-avatar-image[_ngcontent-%COMP%]{border-radius:50%;border:5px solid var(--backgroundColor);width:240px;height:240px}@media (max-width: 768px){.profile-avatar-base[_ngcontent-%COMP%]   .profile-avatar-image[_ngcontent-%COMP%]{width:160px;height:160px}}.profile-avatar-base[_ngcontent-%COMP%]   .profile-avatar-buttons-wrapper[_ngcontent-%COMP%]{border-radius:50%;overflow:hidden;position:absolute;top:4px;left:4px;width:230px;height:230px;pointer-events:none}@media (max-width: 768px){.profile-avatar-base[_ngcontent-%COMP%]   .profile-avatar-buttons-wrapper[_ngcontent-%COMP%]{width:150px;height:150px}}.profile-avatar-base[_ngcontent-%COMP%]   .profile-avatar-buttons[_ngcontent-%COMP%]{background-color:#0006;width:100%;height:40%;gap:1rem;align-items:center;text-align:center;padding:8px;font-size:1.5em;position:absolute;bottom:0;pointer-events:none;display:flex;flex-direction:row;justify-content:center}.profile-avatar-base[_ngcontent-%COMP%]   .avatar-initials[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;font-weight:700;background-color:#ccc;color:var(--textColor);font-size:5rem}@media (max-width: 768px){.profile-avatar-base[_ngcontent-%COMP%]   .avatar-initials[_ngcontent-%COMP%]{font-size:2.5rem}}.profile-avatar-base[_ngcontent-%COMP%]   .profile-avatar-buttons-upload[_ngcontent-%COMP%]{color:#fff;pointer-events:all;margin-bottom:5px;padding:10px}.profile-avatar-base[_ngcontent-%COMP%]   .profile-avatar-buttons-remove[_ngcontent-%COMP%]{color:var(--colorError);pointer-events:all;margin-bottom:5px;padding:10px}.profile-avatar-image-container[_ngcontent-%COMP%]:hover   .profile-avatar-buttons-wrapper[_ngcontent-%COMP%], .profile-avatar-image-container[_ngcontent-%COMP%]:focus-within   .profile-avatar-buttons-wrapper[_ngcontent-%COMP%]{opacity:1;transition:all linear .1s}"]}))}return o(),t})();const rI=()=>({id:"consent-switch",role:"switch","aria-labelledby":"consent-switch-label"}),P1=()=>({id:"age-disclosure-switch","aria-labelledby":"age-disclosure-label"}),R1=()=>({"aria-labelledby":"newsletter-label"});function k1(o,t){if(1&o&&(e.j41(0,"h1",6),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.Lme(" ",n.profile.firstName," ",n.profile.lastName," ")}}function B1(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",14)(2,"dx-select-box",15),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.selectedLanguage,r)||(l.selectedLanguage=r),m.Njj(r)}),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG(2);return m.Njj(l.setLanguage(r))}),e.k0s()(),e.nrm(3,"br"),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(2),e.Y8G("placeholder",e.mNQ(n.scope.currentScope.network.getResourceOrKeyName("web_article_translation_languageSelectBox_placeholder")))("items",n.multiLanguageSystemLanguages),e.R50("value",n.selectedLanguage)}}function F1(o,t){if(1&o&&(e.j41(0,"dxi-item",16),e.nrm(1,"dxo-label",17),e.k0s(),e.j41(2,"dxi-item",18),e.nrm(3,"dxo-label",17),e.k0s()),2&o){const n=e.XpG(2);e.Y8G("editorOptions",n.smallFieldOptions),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_firstname")),e.R7$(),e.Y8G("editorOptions",n.smallFieldOptions),e.R7$(),e.Y8G("text",n.scope.network.getResourceOrKeyName("web_user_lastname"))}}function N1(o,t){if(1&o){const n=e.RV6();e.nrm(0,"br"),e.j41(1,"dx-text-area",19),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.profile.additionalText,r)||(l.profile.additionalText=r),m.Njj(r)}),e.k0s()}if(2&o){const n=e.XpG(3);e.R7$(),e.R50("value",n.profile.additionalText),e.Y8G("minHeight","120px")("autoResizeEnabled",!0)("label",n.scope.network.getResourceOrKeyName("web_profile_additionalText"))}}function yS(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-text-area",19),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(2);return e.DH7(l.profile.about,r)||(l.profile.about=r),m.Njj(r)}),e.k0s(),e.nVh(2,N1,2,4),e.k0s()}if(2&o){const n=e.XpG(2);e.R7$(),e.R50("value",n.profile.about),e.Y8G("minHeight","120px")("autoResizeEnabled",!0)("label",n.scope.network.getResourceOrKeyName("web_profile_aboutMe")),e.R7$(),e.vxM(n.profile.isJournalist?2:-1)}}function bS(o,t){if(1&o){const n=e.RV6();e.j41(0,"dx-date-box",24),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(4);return e.DH7(l.profile.birthdayCalendarData.birthday,r)||(l.profile.birthdayCalendarData.birthday=r),m.Njj(r)}),e.k0s()}if(2&o){const n=e.XpG(4);e.R50("value",n.profile.birthdayCalendarData.birthday),e.Y8G("label",n.scope.network.getResourceOrKeyName("web_template_events_category_birthday"))("labelMode","floating")("pickerType","calendar")}}function aI(o,t){if(1&o&&e.nrm(0,"dxo-label",17),2&o){const n=e.XpG(4);e.Y8G("text",null==n.profile.birthdayCalendarData?null:n.profile.birthdayCalendarData.birthday)}}function xS(o,t){if(1&o&&(e.j41(0,"div",22),e.nVh(1,bS,1,4,"dx-date-box",23)(2,aI,1,1,"dxo-label",17),e.k0s()),2&o){const n=e.XpG(3);e.R7$(),e.vxM(n.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration.CanUserEditOwnBirthday?1:2)}}function L1(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",26)(2,"dx-switch",27),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(4);return e.DH7(l.profile.birthdayCalendarData.consentToEventCalendar,r)||(l.profile.birthdayCalendarData.consentToEventCalendar=r),m.Njj(r)}),e.k0s(),e.j41(3,"label",28),e.bIt("click",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.profile.birthdayCalendarData.consentToEventCalendar=!r.profile.birthdayCalendarData.consentToEventCalendar)}),e.EFF(4),e.k0s()()()}if(2&o){const n=e.XpG(4);e.R7$(2),e.R50("value",n.profile.birthdayCalendarData.consentToEventCalendar),e.Y8G("focusStateEnabled",!0)("elementAttr",e.lJ4(4,rI)),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_profile_consent_event_calendar")," ")}}function V1(o,t){1&o&&(e.nrm(0,"dxi-item",25),e.DNE(1,L1,5,5,"div",10)),2&o&&(e.R7$(),e.Y8G("dxTemplateOf","userEditEventCalendarConsent"))}function ES(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",26)(2,"dx-switch",27),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(4);return e.DH7(l.profile.birthdayCalendarData.consentAgeDisclosure,r)||(l.profile.birthdayCalendarData.consentAgeDisclosure=r),m.Njj(r)}),e.k0s(),e.j41(3,"label",30),e.bIt("click",function(){m.eBV(n);const r=e.XpG(4);return m.Njj(r.profile.birthdayCalendarData.consentAgeDisclosure=!r.profile.birthdayCalendarData.consentAgeDisclosure)}),e.EFF(4),e.k0s()()()}if(2&o){const n=e.XpG(4);e.R7$(2),e.R50("value",n.profile.birthdayCalendarData.consentAgeDisclosure),e.Y8G("focusStateEnabled",!0)("elementAttr",e.lJ4(4,P1)),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_profile_consent_age_disclosure")," ")}}function H1(o,t){1&o&&(e.nrm(0,"dxi-item",29),e.DNE(1,ES,5,5,"div",10)),2&o&&(e.R7$(),e.Y8G("dxTemplateOf","userEditAgeConsent"))}function mk(o,t){if(1&o&&(e.nrm(0,"dxi-item",20),e.DNE(1,xS,3,1,"div",21),e.nVh(2,V1,2,1),e.nVh(3,H1,2,1)),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("dxTemplateOf","birthdayEdit"),e.R7$(),e.vxM(n.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration.CanUserEditEventCalendarConsent?2:-1),e.R7$(),e.vxM(n.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration.CanUserEditAgeConsent?3:-1)}}function lI(o,t){1&o&&(e.j41(0,"div"),e.nrm(1,"app-staff-directory-editor",32)(2,"app-staff-directory-editor",32),e.k0s()),2&o&&(e.R7$(),e.Y8G("isEditable",!0),e.R7$(),e.Y8G("isEditable",!1))}function $1(o,t){1&o&&(e.nrm(0,"dxi-item",31),e.DNE(1,lI,3,2,"div",10)),2&o&&(e.R7$(),e.Y8G("dxTemplateOf","staffDir"))}function U1(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"div",26)(2,"dx-switch",34),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG(3);return e.DH7(l.newsletterChecked,r)||(l.newsletterChecked=r),m.Njj(r)}),e.bIt("onValueChanged",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.toggleUnsubscribe())}),e.k0s(),e.j41(3,"div",35),e.bIt("click",function(){m.eBV(n);const r=e.XpG(3);return m.Njj(r.toggleUnsubscribe())}),e.j41(4,"label",36),e.EFF(5),e.k0s()()()()}if(2&o){const n=e.XpG(3);e.R7$(2),e.R50("value",n.newsletterChecked),e.Y8G("elementAttr",e.lJ4(3,R1)),e.R7$(3),e.JRh(n.newsletterText)}}function cI(o,t){1&o&&(e.nrm(0,"dxi-item",33),e.DNE(1,U1,6,4,"div",10)),2&o&&(e.R7$(),e.Y8G("dxTemplateOf","newsletterSwitch"))}function j1(o,t){if(1&o&&(e.j41(0,"div",11),e.EFF(1),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_profile_saved")," ")}}function n0(o,t){if(1&o&&(e.j41(0,"div"),e.nrm(1,"dx-load-indicator",37),e.j41(2,"span",38),e.EFF(3),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(),e.Y8G("visible",n.loadIndicatorVisible),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_profile_save"))}}function dI(o,t){if(1&o){const n=e.RV6();e.j41(0,"div",2)(1,"div",3),e.nrm(2,"app-profile-cover"),e.j41(3,"div",4),e.nrm(4,"app-profile-avatar"),e.k0s()(),e.j41(5,"div",5),e.nVh(6,k1,2,2,"h1",6),e.nVh(7,B1,4,4,"div"),e.k0s(),e.j41(8,"div",7)(9,"dx-form",8),e.mxI("formDataChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.profile,r)||(l.profile=r),m.Njj(r)}),e.nVh(10,F1,4,4),e.nrm(11,"dxi-item",9),e.DNE(12,yS,3,5,"div",10),e.nVh(13,mk,4,3),e.nVh(14,$1,2,1),e.nVh(15,cI,2,1),e.k0s(),e.nVh(16,j1,2,1,"div",11),e.j41(17,"div",12)(18,"dx-button",13),e.bIt("onClick",function(){m.eBV(n);const r=e.XpG();return m.Njj(r.submitForm())}),e.DNE(19,n0,4,2,"div",10),e.k0s()(),e.nrm(20,"br"),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(6),e.vxM(n.scope.currentScope.chapter.settings.disableUserProfileUpdate?6:-1),e.R7$(),e.vxM(n.multiLanguageTranslationSystemIsEnabled&&n.multiLanguageSystemLanguages.length>0?7:-1),e.R7$(2),e.R50("formData",n.profile),e.R7$(),e.vxM(n.scope.currentScope.chapter.settings.disableUserProfileUpdate?-1:10),e.R7$(2),e.Y8G("dxTemplateOf","textAreas"),e.R7$(),e.vxM(!1!==n.scope.currentScope.network.settings.configurations.enableCalendar&&n.scope.currentScope.chapter.settings.configurations.enableBirthdayCalendar?13:-1),e.R7$(),e.vxM(n.staffDirectoryEnabled?14:-1),e.R7$(),e.vxM(n.scope.currentScope.chapter.settings.featureNewsletter&&!n.scope.currentScope.chapter.settings.featureNewsletterForced?15:-1),e.R7$(),e.vxM(n.profileSaved?16:-1),e.R7$(3),e.Y8G("dxTemplateOf","content")}}let uI=(()=>{var o;class t{constructor(s,r,l,E){this.scopeService=s,this.profileService=r,this.deviceInfoService=l,this.translationService=E,this.staffDirectoryKeys=[],this.staffAdminDirectoryKeys=[],this.newsletterText="",this.profileSaved=!1,this.birthdayCalendarVisible=!1,this.newsletterChecked=!1,this.multiLanguageSystemLanguages=[],this.selectedLanguage="",this.loadIndicatorVisible=!1,this.pageTitle="",this.profileServiceSubscription=new vi.yU,this.staffDirectorySave=this.profileService.updateStaffDirectory,this.toggleUnsubscribe=()=>{this.profile.unsubscribe=null===this.profile.unsubscribe?new Date:null},this.toggleBirthdayCalendar=()=>{this.birthdayCalendarVisible=!this.birthdayCalendarVisible},this.setLanguage=N=>{this.selectedLanguage=N.value},this.switchLanguage=()=>{if(this.selectedLanguage==this.profile.activeUserLanguage?.vendorLanguageCode)return;let N=this.multiLanguageSystemLanguages.find(ae=>ae.vendorLanguageCode==this.selectedLanguage);this.profile.activeUserLanguage=N,this.profileService.updateFavoriteLanguage(this.selectedLanguage)},this.submitForm=()=>{if(this.profileSaved=!1,this.form.instance.validate().isValid){if(this.loadIndicatorVisible=!0,this.staffDirectoryEnabled&&this.childComponents?.toArray()[0].save(),this.multiLanguageTranslationSystemIsEnabled&&this.switchLanguage(),this.profile.birthdayCalendarData&&this.profile.birthdayCalendarData.birthday){var N=new Date(this.profile.birthdayCalendarData.birthday);this.profile.birthdayCalendarData.convertedDate=new Date(N.getFullYear(),N.getMonth(),N.getDate()),this.profile.birthdayCalendarData.convertedDate.setMinutes(this.profile.birthdayCalendarData.convertedDate.getMinutes()-this.profile.birthdayCalendarData.convertedDate.getTimezoneOffset());var ae=new Date(this.profile.birthdayCalendarData.convertedDate.getFullYear(),this.profile.birthdayCalendarData.convertedDate.getMonth(),this.profile.birthdayCalendarData.convertedDate.getDate());ae.setMilliseconds(0),ae.setSeconds(0),ae.setMinutes(ae.getMinutes()-ae.getTimezoneOffset()),this.profile.birthdayCalendarData.birthday=ae}this.profileService.updateProfile(this.profile).then(ze=>{this.profileSaved=!0,this.birthdayCalendarVisible=!1,this.profile.birthdayCalendarData&&this.profile.birthdayCalendarData.birthday&&(this.profile.birthdayCalendarData.convertedDate=new Date(this.profile.birthdayCalendarData.birthday)),this.multiLanguageTranslationSystemIsEnabled&&document.location.reload(),this.loadIndicatorVisible=!1})}},this.scope=this.scopeService.getScope(),this.staffDirectoryEnabled=this.scope.network.settings.isStaffDirectoryEnabled,this.pageTitle=this.scope.network.getResourceOrKeyName("web_common_page_title_myProfile",{chapterName:this.scope.currentChapter.name}),this.profileServiceSubscription=this.profileService.profileChanged$.subscribe(N=>{this.profile=N,this.profile.birthdayCalendarData=N.birthdayCalendarData||{birthday:null,consentToEventCalendar:!1,consentAgeDisclosure:!1}})}ngOnInit(){this.profile=this.scope.profile,this.profile.birthdayCalendarData=this.profile.birthdayCalendarData||{birthday:null,consentToEventCalendar:!1,consentAgeDisclosure:!1};var s=this.scope.network.settings.languagePack.split("-")[0],r=this.scope.network.getResourceOrKeyName("web_translation_use_original");this.newsletterChecked=null==this.profile.unsubscribe,this.newsletterText=this.scope.currentScope.network.resources.web_profile_newsletter.replace("{{chapterName}}",this.scope.currentScope.chapter.name),this.multiLanguageTranslationSystemIsEnabled=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,this.multiLanguageTranslationSystemIsEnabled&&(this.translationService.getAvailableTargetLanguages().then(l=>{!l||"object"!=typeof l||(Object.entries(l).forEach(([E,N])=>{this.multiLanguageSystemLanguages.push({vendorLanguageCode:E,nativeName:N})}),this.selectedLanguage=this.multiLanguageSystemLanguages.find(E=>E.vendorLanguageCode===this.profile.activeUserLanguage?.vendorLanguageCode)?.vendorLanguageCode||null)}),this.multiLanguageSystemLanguages.push({vendorLanguageCode:s,nativeName:r})),this.smallFieldOptions={width:()=>this.deviceInfoService.getUserAgentInfo().isMobile?"100%":"40%"},this.mediumFieldOptions={width:()=>this.deviceInfoService.getUserAgentInfo().isMobile?"100%":"60%"},this.dateBoxOptions={width:()=>this.deviceInfoService.getUserAgentInfo().isMobile?"100%":"60%",pickerType:"calendar"},this.textAreaOptions={height:"120px",autoResizeEnabled:!0}}ngOnDestroy(){this.profileServiceSubscription&&this.profileServiceSubscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU($n.p),e.rXU(Ce.E),e.rXU(Bn.M))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-private-profile"]],viewQuery:function(r,l){if(1&r&&(e.GBs(Xi.o,5),e.GBs(_S,5)),2&r){let E;e.mGM(E=e.lsd())&&(l.form=E.first),e.mGM(E=e.lsd())&&(l.childComponents=E)}},standalone:!1,decls:4,vars:2,consts:[[1,"d-flex","justify-content-center"],["id","page-title",1,"hidden-header"],[1,"private-profile-base"],[1,"private-profile-cover-wrapper"],[1,"private-profile-avatar-wrapper"],[1,"private-profile-top"],[1,"profile-name"],[1,"private-profile-form-base"],["id","form","labelMode","floating",1,"private-profile-form",3,"formDataChange","formData"],["template","textAreas"],[4,"dxTemplate","dxTemplateOf"],["role","alert","aria-live","assertive","aria-atomic","true","id","profileSavedAlert","tabindex","-1",1,"alert","alert-success"],[2,"display","flex","justify-content","end"],[3,"onClick"],[1,"small-field"],["displayExpr","nativeName","valueExpr","vendorLanguageCode","stylingMode","underlined","width","80%",1,"ml-1",3,"valueChange","onValueChanged","placeholder","items","value"],["dataField","firstName","editorType","dxTextBox",3,"editorOptions"],[3,"text"],["dataField","lastName","editorType","dxTextBox",3,"editorOptions"],["labelMode","floating",3,"valueChange","value","minHeight","autoResizeEnabled","label"],["template","birthdayEdit"],["class","medium-field",4,"dxTemplate","dxTemplateOf"],[1,"medium-field"],["type","date","displayFormat","dd.MM.yyyy",3,"value","label","labelMode","pickerType"],["type","date","displayFormat","dd.MM.yyyy",3,"valueChange","value","label","labelMode","pickerType"],["template","userEditEventCalendarConsent"],[1,"profile-switch"],[3,"valueChange","value","focusStateEnabled","elementAttr"],["id","consent-switch-label",1,"profile-switch-label",3,"click"],["template","userEditAgeConsent"],["id","age-disclosure-label",1,"profile-switch-label",3,"click"],["template","staffDir"],[3,"isEditable"],["template","newsletterSwitch"],[3,"valueChange","onValueChanged","value","elementAttr"],[1,"profile-switch-label",3,"click"],["id","newsletter-label"],["height","20","width","20","aria-hidden","true",1,"button-indicator",3,"visible"],[1,"dx-button-text"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"h1",1),e.EFF(2),e.k0s(),e.nVh(3,dI,21,10,"div",2),e.k0s()),2&r&&(e.R7$(2),e.JRh(l.pageTitle),e.R7$(),e.vxM(l.profile?3:-1))},dependencies:[Bo.CVf,Et.eC,Gn.e,Bo.rkl,ir.z,Xi.o,Wn.B,is.l,Zn.Y,mi._,_S,I1,sI],styles:[".private-profile-base[_ngcontent-%COMP%]{width:var(--designContentWidth)}.private-profile-base[_ngcontent-%COMP%]   .profile-switch-label[_ngcontent-%COMP%]{cursor:pointer}@media (max-width: 768px){.private-profile-base[_ngcontent-%COMP%]   .private-profile-top[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}}.private-profile-base[_ngcontent-%COMP%]   .private-profile-cover-wrapper[_ngcontent-%COMP%]{position:relative;padding-bottom:110px}@media (max-width: 768px){.private-profile-base[_ngcontent-%COMP%]   .private-profile-cover-wrapper[_ngcontent-%COMP%]{padding-bottom:60px}}.private-profile-base[_ngcontent-%COMP%]   .private-profile-cover-wrapper[_ngcontent-%COMP%]   .private-profile-avatar-wrapper[_ngcontent-%COMP%]{position:absolute;bottom:18%;left:5%}@media (max-width: 768px){.private-profile-base[_ngcontent-%COMP%]   .private-profile-cover-wrapper[_ngcontent-%COMP%]   .private-profile-avatar-wrapper[_ngcontent-%COMP%]{bottom:6%;left:5%}}@media (max-width: 768px){.private-profile-base[_ngcontent-%COMP%]   .private-profile-form-base[_ngcontent-%COMP%]{padding:0 24px}}.private-profile-base[_ngcontent-%COMP%]   .private-profile-form-base[_ngcontent-%COMP%]   .private-profile-form[_ngcontent-%COMP%]   .medium-field[_ngcontent-%COMP%]{width:60%}@media (max-width: 768px){.private-profile-base[_ngcontent-%COMP%]   .private-profile-form-base[_ngcontent-%COMP%]   .private-profile-form[_ngcontent-%COMP%]   .medium-field[_ngcontent-%COMP%]{width:100%}}.private-profile-base[_ngcontent-%COMP%]   .private-profile-form-base[_ngcontent-%COMP%]   .private-profile-form[_ngcontent-%COMP%]   .profile-switch-label[_ngcontent-%COMP%]{font-size:1rem;font-family:var(--textPrimary);color:var(--textColor60)}.private-profile-base[_ngcontent-%COMP%]   .private-profile-form-base[_ngcontent-%COMP%]   .private-profile-form[_ngcontent-%COMP%]   .profile-switch[_ngcontent-%COMP%]{display:flex;gap:10px}.private-profile-base[_ngcontent-%COMP%]   .private-profile-form-base[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{width:40%}@media (max-width: 768px){.private-profile-base[_ngcontent-%COMP%]   .private-profile-form-base[_ngcontent-%COMP%]   .small-field[_ngcontent-%COMP%]{width:100%}}.private-profile-base[_ngcontent-%COMP%]   .button-indicator[_ngcontent-%COMP%]{margin-right:5px}"]}))}return o(),t})();const hI=o=>({count:o});function pI(o,t){1&o&&e.nrm(0,"i",7)}function gI(o,t){1&o&&e.nrm(0,"i",8)}function fI(o,t){1&o&&e.nrm(0,"i",9)}function G1(o,t){if(1&o&&(e.j41(0,"div")(1,"div",0)(2,"div",6),e.nVh(3,pI,1,0,"i",7),e.nVh(4,gI,1,0,"i",8),e.nVh(5,fI,1,0,"i",9),e.k0s(),e.j41(6,"div",10),e.nrm(7,"app-user-badge-simple",11),e.k0s()()()),2&o){const n=t.$implicit;e.R7$(3),e.vxM("ACCEPTED"===n.participationStatus?3:-1),e.R7$(),e.vxM("DECLINED"===n.participationStatus?4:-1),e.R7$(),e.vxM("NEEDS-ACTION"===n.participationStatus?5:-1),e.R7$(2),e.Y8G("user",n)("author",!1)}}function W1(o,t){if(1&o&&(e.j41(0,"div")(1,"dx-list",4),e.DNE(2,G1,8,5,"div",5),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.Y8G("dataSource",n.event.participants),e.R7$(),e.Y8G("dxTemplateOf","item")}}let z1=(()=>{var o;class t{constructor(s,r){this.eventCalendarService=s,this.scopeService=r,this.scope=r.getScope()}ngOnInit(){}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Ld),e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-event-calendar-detail-participants"]],inputs:{event:"event"},standalone:!1,decls:5,vars:4,consts:[[1,"row"],[1,""],[1,"event-calendar-detail-participants-count"],[1,"col-xs-6","col-md-4",3,"innerHTML"],["height","100%",3,"dataSource"],[4,"dxTemplate","dxTemplateOf"],[1,"col-1","event-calendar-detail-participant-status-icon"],[1,"fas","fa-check","fa-2xl","text-success"],[1,"fas","fa-times","fa-2xl","text-danger"],[1,"fa-regular","fa-clock","fa-2xl","text-warning"],[1,"col-auto"],[3,"user","author"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.nrm(3,"div",3),e.k0s(),e.nVh(4,W1,3,2,"div"),e.k0s()()),2&r&&(e.R7$(3),e.Y8G("innerHTML",l.scope.currentScope.network.getResourceOrKeyName("web_event_calendar_detail_attendees",e.eq3(2,hI,l.event.participantsAcceptedCount))+(l.event.maxParticipants?" / "+l.event.maxParticipants:""),e.npT),e.R7$(),e.vxM(l.event.participants&&l.scope.currentScope.chapter.closed?4:-1))},dependencies:[Et.eC,Pf.a,cu],styles:[".event-calendar-detail-participants-wrapper[_ngcontent-%COMP%]{margin:4rem 0 1.25rem}.event-calendar-detail-participants-count[_ngcontent-%COMP%]{padding-left:0;margin-bottom:1.4rem;font-weight:600;font-size:1.4rem;display:flex}.event-calendar-detail-participant-status-icon[_ngcontent-%COMP%]{margin:auto 0}@media (max-width: 768px){.event-calendar-detail-participants-count[_ngcontent-%COMP%]{font-size:1.2rem}}"]}))}return o(),t})();const K1=o=>({dataSource:o,displayExpr:"name",valueExpr:"value"});function X1(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s(),e.j41(2,"p"),e.EFF(3),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_basedataDescription")),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_basedataInvalid"))}}function YC(o,t){if(1&o&&(e.j41(0,"div")(1,"span",24),e.EFF(2),e.k0s(),e.nrm(3,"dx-load-indicator",25),e.k0s()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_common_save")),e.R7$(),e.Y8G("visible",n.loadIndicatorVisible)}}function mI(o,t){if(1&o){const n=e.RV6();e.j41(0,"div")(1,"dx-select-box",26),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.currentAdvertiser,r)||(l.currentAdvertiser=r),m.Njj(r)}),e.k0s(),e.j41(2,"h4",27),e.EFF(3),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("dataSource",n.advertisers),e.R50("value",n.currentAdvertiser),e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_company"))}}function _I(o,t){if(1&o&&(e.j41(0,"div")(1,"h4",27),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_contactPerson"))}}function vI(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.nrm(2,"br"),e.EFF(3),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.scope.currentScope.network.resources.web_advertiserBilling_saveSuccessful_0," "),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.resources.web_advertiserBilling_saveSuccessful_1," ")}}let CI=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.advertiserService=r,this.advertisers=[],this.loadIndicatorVisible=!1,this.submitData=()=>{this.form.instance.validate().isValid?(this.loadIndicatorVisible=!0,this.advertiserService.updateBillingInfo(this.currentAdvertiser).then(l=>{this.loadIndicatorVisible=!1,this.success=!0},()=>{this.loadIndicatorVisible=!1,this.success=!1})):this.success=!1},this.scope=this.scopeService.getScope(),this.scope.profile.isRegistered||(window.location.pathname="/"),this.advertiserService.getAdvertisersByUser().then(l=>{console.log(l),l.forEach(E=>{const N={accountHolder:E.accountHolder??"",costCenter:E.costCenter??"",phone:E.phone??"",gender:E.gender??"",email:E.email??"",country:E.country??"",iban:E.iban??"",guid:E.guid??"",title:E.title??"",bic:E.bic??"",firstName:E.firstName??"",lastName:E.lastName??"",companyName:E.companyName??"",address:E.address??"",city:E.city??"",postalCode:E.postalCode??null,chapter:E.chapter??""},ae=E.iban??"",ze=ae?ae.substr(0,7)+ae.substr(7).replace(/.(?=.{4,}$)/g,"*"):"";this.advertisers.push({...N,ibanShow:ze})}),this.currentAdvertiser=this.advertisers[0],console.log(this.currentAdvertiser)}),this.genderSource=[{name:this.scope.currentScope.network.getResourceOrKeyName("web_user_femaleSalutation"),value:!1},{name:this.scope.currentScope.network.getResourceOrKeyName("web_user_maleSalutation"),value:!0}]}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(wg))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-advertiser-billing-info"]],viewQuery:function(r,l){if(1&r&&e.GBs(Xi.o,5),2&r){let E;e.mGM(E=e.lsd())&&(l.form=E.first)}},standalone:!1,decls:48,vars:48,consts:[[1,"advertiser-billing-info"],[1,"form-container"],["id","form","labelMode","floating",3,"formData","colCount"],["template","advertiserSelectionArea",3,"colSpan"],["dataField","companyName","editorType","dxTextBox",3,"colSpan"],[3,"text"],["type","required",3,"message"],["dataField","costCenter","editorType","dxTextBox",3,"colSpan"],["dataField","address","editorType","dxTextBox",3,"colSpan"],["dataField","postalCode","editorType","dxTextBox",3,"colSpan"],["dataField","city","editorType","dxTextBox",3,"colSpan"],["dataField","country","editorType","dxTextBox",3,"colSpan"],["template","contactPersonHeader",3,"colSpan"],["dataField","gender","editorType","dxRadioGroup",3,"colSpan","editorOptions"],[3,"visible"],["dataField","title","editorType","dxTextBox",3,"colSpan"],["itemType","empty",3,"colSpan"],["dataField","firstName","editorType","dxTextBox",3,"colSpan"],["dataField","lastName","editorType","dxTextBox",3,"colSpan"],["dataField","email","editorType","dxTextBox",3,"colSpan"],["dataField","phone","editorType","dxTextBox",3,"colSpan"],[3,"colSpan"],[3,"onClick"],[4,"dxTemplate","dxTemplateOf"],[1,"dx-button-text"],["height","20","width","20","aria-hidden","true",1,"button-indicator",3,"visible"],["displayExpr","companyName",3,"valueChange","dataSource","value"],[1,"form-title"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"h1"),e.EFF(2),e.k0s(),e.nVh(3,X1,4,2),e.j41(4,"div",1)(5,"dx-form",2),e.nrm(6,"dxi-item",3),e.j41(7,"dxi-item",4),e.nrm(8,"dxo-label",5)(9,"dxi-validation-rule",6),e.k0s(),e.j41(10,"dxi-item",7),e.nrm(11,"dxo-label",5),e.k0s(),e.j41(12,"dxi-item",8),e.nrm(13,"dxo-label",5)(14,"dxi-validation-rule",6),e.k0s(),e.j41(15,"dxi-item",9),e.nrm(16,"dxo-label",5)(17,"dxi-validation-rule",6),e.k0s(),e.j41(18,"dxi-item",10),e.nrm(19,"dxo-label",5)(20,"dxi-validation-rule",6),e.k0s(),e.j41(21,"dxi-item",11),e.nrm(22,"dxo-label",5)(23,"dxi-validation-rule",6),e.k0s(),e.nrm(24,"dxi-item",12),e.j41(25,"dxi-item",13),e.nrm(26,"dxo-label",14),e.k0s(),e.j41(27,"dxi-item",15),e.nrm(28,"dxo-label",5),e.k0s(),e.nrm(29,"dxi-item",16),e.j41(30,"dxi-item",17),e.nrm(31,"dxo-label",5)(32,"dxi-validation-rule",6),e.k0s(),e.j41(33,"dxi-item",18),e.nrm(34,"dxo-label",5)(35,"dxi-validation-rule",6),e.k0s(),e.j41(36,"dxi-item",19),e.nrm(37,"dxo-label",5)(38,"dxi-validation-rule",6),e.k0s(),e.j41(39,"dxi-item",20),e.nrm(40,"dxo-label",5)(41,"dxi-validation-rule",6),e.k0s(),e.j41(42,"dxi-item",21)(43,"dx-button",22),e.bIt("onClick",function(){return l.submitData()}),e.DNE(44,YC,4,2,"div",23),e.k0s()(),e.DNE(45,mI,4,3,"div",23)(46,_I,3,1,"div",23),e.k0s()(),e.nVh(47,vI,4,2,"p"),e.k0s()),2&r&&(e.R7$(2),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_pageTitle")),e.R7$(),e.vxM(l.success?-1:3),e.R7$(2),e.Y8G("formData",l.currentAdvertiser)("colCount",6),e.R7$(),e.Y8G("colSpan",6),e.R7$(),e.Y8G("colSpan",6),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_companyPlaceholder")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_advertiserBilling_companyError")),e.R7$(),e.Y8G("colSpan",6),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_costcenterPlaceholder")),e.R7$(),e.Y8G("colSpan",6),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_streetHousenumberPlaceholder")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_advertiserBilling_streetHousenumberError")),e.R7$(),e.Y8G("colSpan",2),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_postalcodePlaceholder")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_advertiserBilling_postalcodeError")),e.R7$(),e.Y8G("colSpan",4),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_cityPlaceholder")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_advertiserBilling_cityError")),e.R7$(),e.Y8G("colSpan",6),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_countryPlaceholder")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_advertiserBilling_countryError")),e.R7$(),e.Y8G("colSpan",6),e.R7$(),e.Y8G("colSpan",6)("editorOptions",e.eq3(46,K1,l.genderSource)),e.R7$(),e.Y8G("visible",!1),e.R7$(),e.Y8G("colSpan",3),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_contactPersonTitle")),e.R7$(),e.Y8G("colSpan",3),e.R7$(),e.Y8G("colSpan",3),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_user_firstname")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_user_firstnameError")),e.R7$(),e.Y8G("colSpan",3),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_user_lastname")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_user_lastnameError")),e.R7$(),e.Y8G("colSpan",6),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_user_email")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_user_emailError")),e.R7$(),e.Y8G("colSpan",6),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_advertiserBilling_phonePlaceholder")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_advertiserBilling_phoneError")),e.R7$(),e.Y8G("colSpan",6),e.R7$(2),e.Y8G("dxTemplateOf","content"),e.R7$(),e.Y8G("dxTemplateOf","advertiserSelectionArea"),e.R7$(),e.Y8G("dxTemplateOf","contactPersonHeader"),e.R7$(),e.vxM(l.success?47:-1))},dependencies:[Bo.CVf,Et.eC,Gn.e,Bo.rkl,Bo.Inh,Xi.o,Wn.B,is.l],styles:[".advertiser-billing-info[_ngcontent-%COMP%]{max-width:var(--designContentWidth);margin:auto auto 40px;position:relative;padding-left:10px;padding-right:10px}@media (max-width: 768px){.advertiser-billing-info[_ngcontent-%COMP%]{padding-top:10px}}.advertiser-billing-info[_ngcontent-%COMP%]   .form-container[_ngcontent-%COMP%]{width:50%}@media (max-width: 768px){.advertiser-billing-info[_ngcontent-%COMP%]   .form-container[_ngcontent-%COMP%]{width:100%}}.advertiser-billing-info[_ngcontent-%COMP%]   .form-container[_ngcontent-%COMP%]   .form-title[_ngcontent-%COMP%]{margin-top:10px}.advertiser-billing-info[_ngcontent-%COMP%]   .button-indicator[_ngcontent-%COMP%]{margin-left:5px}"]}))}return o(),t})();const yI=()=>({id:"editor-heading"}),bI=()=>({id:"editor-title"}),Y1=()=>({id:"editor-summary"});let _k=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.signalService=r,this.heading="",this.title="",this.summary="",this.headingPlaceholder="",this.titlePlaceholder="",this.summaryPlaceholder="",this.onTextareaChange=()=>{this.signalService.updateTextarea({heading:this.heading,title:this.title,summary:this.summary})},this.scope=this.scopeService.getScope(),this.headingPlaceholder=this.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_headingPlaceholder")+this.scope.currentScope.network.getResourceOrKeyName(this.scope.currentScope.chapter.settings.enableOptionalArticleHeading?"web_articleEdit_Placeholder_optional":"web_articleEdit_Placeholder_required"),this.titlePlaceholder=this.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_titlePlaceholder")+this.scope.currentScope.network.getResourceOrKeyName(this.scope.currentScope.chapter.settings.enableOptionalArticleTitle?"web_articleEdit_Placeholder_optional":"web_articleEdit_Placeholder_required"),this.summaryPlaceholder=this.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_summaryPlaceholder")+this.scope.currentScope.network.getResourceOrKeyName(this.scope.currentScope.chapter.settings.enableOptionalArticleSummary?"web_articleEdit_Placeholder_optional":"web_articleEdit_Placeholder_required"),this.subscription=this.signalService.textareaChanges$.subscribe(l=>{l&&(l.heading!==this.heading||l.title!==this.title||l.summary!==this.summary)&&(this.heading=l.heading,this.title=l.title,this.summary=l.summary,setTimeout(()=>{const E=document.getElementById("editor-heading")?.querySelector(".dx-texteditor-input"),N=document.getElementById("editor-title")?.querySelector(".dx-texteditor-input"),ae=document.getElementById("editor-summary")?.querySelector(".dx-texteditor-input");[E,N,ae].forEach(ze=>{ze&&(ze.classList.add("highlight-text"),setTimeout(()=>{ze.classList.remove("highlight-text")},2e3))})}))})}ngOnInit(){this.heading=this.data.texts[0]?.heading,this.title=this.data.texts[0]?.text,this.summary=this.data.summary}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(am))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-editor-heading"]],inputs:{data:"data"},standalone:!1,decls:7,vars:20,consts:[[1,"editor-heading-base"],[1,"mt-2"],[1,"heading-input",3,"valueChange","onValueChanged","elementAttr","placeholder","autoResizeEnabled","value","valueChangeEvent"],[1,"mt-4"],[1,"title-input",3,"valueChange","onValueChanged","elementAttr","placeholder","minHeight","autoResizeEnabled","value","valueChangeEvent"],[1,"mt-4","mb-3"],[1,"teaser-input",3,"valueChange","onValueChanged","elementAttr","placeholder","minHeight","autoResizeEnabled","value","valueChangeEvent"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"dx-text-area",2),e.mxI("valueChange",function(N){return e.DH7(l.heading,N)||(l.heading=N),N}),e.bIt("onValueChanged",function(){return l.onTextareaChange()}),e.k0s()(),e.j41(3,"div",3)(4,"dx-text-area",4),e.mxI("valueChange",function(N){return e.DH7(l.title,N)||(l.title=N),N}),e.bIt("onValueChanged",function(){return l.onTextareaChange()}),e.k0s()(),e.j41(5,"div",5)(6,"dx-text-area",6),e.mxI("valueChange",function(N){return e.DH7(l.summary,N)||(l.summary=N),N}),e.bIt("onValueChanged",function(){return l.onTextareaChange()}),e.k0s()()()),2&r&&(e.R7$(2),e.Y8G("elementAttr",e.lJ4(17,yI))("placeholder",l.headingPlaceholder)("autoResizeEnabled",!0),e.R50("value",l.heading),e.Y8G("valueChangeEvent","input"),e.R7$(2),e.Y8G("elementAttr",e.lJ4(18,bI))("placeholder",l.titlePlaceholder)("minHeight","3rem")("autoResizeEnabled",!0),e.R50("value",l.title),e.Y8G("valueChangeEvent","input"),e.R7$(2),e.Y8G("elementAttr",e.lJ4(19,Y1))("placeholder",l.summaryPlaceholder)("minHeight","10rem")("autoResizeEnabled",!0),e.R50("value",l.summary),e.Y8G("valueChangeEvent","input"))},dependencies:[mi._],styles:[".highlight-text[_ngcontent-%COMP%]{background:linear-gradient(90deg,var(--textColor),var(--textColor),var(--colorPrimary),var(--colorSecondary));background-repeat:no-repeat;background-size:0%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:_ngcontent-%COMP%_animate 2s linear forwards}.editor-heading-base[_ngcontent-%COMP%]     .heading-input .dx-texteditor-input{font-family:var(--fontPrimary);font-size:1.2rem;line-height:1.85rem;font-weight:400}@media (max-width: 768px){.editor-heading-base[_ngcontent-%COMP%]     .heading-input .dx-texteditor-input{font-size:1rem;line-height:1.6rem}}.editor-heading-base[_ngcontent-%COMP%]     .heading-input .dx-placeholder:before{font-size:1.2rem;line-height:2rem}@media (max-width: 768px){.editor-heading-base[_ngcontent-%COMP%]     .heading-input .dx-placeholder:before{font-size:1rem;line-height:1.2rem}}.editor-heading-base[_ngcontent-%COMP%]     .title-input .dx-texteditor-input{font-family:var(--fontSecondary);font-size:3rem;font-weight:700;line-height:3.6rem}@media (max-width: 768px){.editor-heading-base[_ngcontent-%COMP%]     .title-input .dx-texteditor-input{font-size:2rem;line-height:2.6rem}}.editor-heading-base[_ngcontent-%COMP%]     .title-input .dx-placeholder:before{font-size:3rem;line-height:3.85rem}@media (max-width: 768px){.editor-heading-base[_ngcontent-%COMP%]     .title-input .dx-placeholder:before{font-size:2rem;line-height:2.85rem}}.editor-heading-base[_ngcontent-%COMP%]     .teaser-input:focus-within{outline:2px solid var(--textColor);outline-offset:6px;border-radius:3px}.editor-heading-base[_ngcontent-%COMP%]     .teaser-input .dx-texteditor-container:focus-within{outline:unset}.editor-heading-base[_ngcontent-%COMP%]     .teaser-input .dx-texteditor-input{font-family:var(--fontTertiary);font-size:1.5rem;line-height:2rem}@media (max-width: 768px){.editor-heading-base[_ngcontent-%COMP%]     .teaser-input .dx-texteditor-input{font-size:1.5rem;line-height:2rem}}.editor-heading-base[_ngcontent-%COMP%]     .teaser-input .dx-placeholder:before{font-size:1.5rem;line-height:2rem}@media (max-wdith: 768px){.editor-heading-base[_ngcontent-%COMP%]     .teaser-input .dx-placeholder:before{font-size:1.5rem;line-height:2rem}}@keyframes _ngcontent-%COMP%_animate{0%{background-size:0%;background-position-x:-50%}90%{background-size:100%;background-position-x:0%}to{background-size:500%}}"]}))}return o(),t})();const vk=()=>({class:"opt-switch","aria-labelledby":"optOutLabelText","aria-describedby":"optOutInfo"});function xI(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.nrm(2,"br"),e.j41(3,"strong"),e.EFF(4),e.nrm(5,"br"),e.EFF(6),e.k0s()()),2&o){const n=e.XpG();e.R7$(),e.SpI(" ",n.not0),e.R7$(3),e.SpI(" ",n.not2),e.R7$(2),e.SpI(" ",n.not3," ")}}function EI(o,t){if(1&o&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.JRh(n.yes0)}}function OI(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG();e.SpI(" ",n.yes1," ")}}function Q1(o,t){if(1&o&&e.EFF(0),2&o){const n=e.XpG();e.SpI(" ",n.not1," ")}}let Z1=(()=>{var o;class t{constructor(s){this.scopeService=s,this.storageKey="oculusOptOut",this.oculusOptOut=!1,this.not0="",this.not1="",this.not2="",this.not3="",this.yes0="",this.yes1="",this.scope=this.scopeService.getScope();const r=l=>this.scope.network.getResourceOrKeyName(l);this.not0=r("web_optOut_notOptOutDescription_0"),this.not1=r("web_optOut_notOptOutDescription_1"),this.not2=r("web_optOut_notOptOutDescription_2"),this.not3=r("web_optOut_notOptOutDescription_3"),this.yes0=r("web_optOut_OptOutDescription_0"),this.yes1=r("web_optOut_OptOutDescription_1")}ngOnInit(){try{const s=localStorage.getItem(this.storageKey);this.oculusOptOut="true"===s||"1"===s}catch{}}onToggle(s){this.oculusOptOut=s;try{s?localStorage.setItem(this.storageKey,"true"):localStorage.removeItem(this.storageKey)}catch{}}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-opt-out"]],standalone:!1,decls:9,vars:7,consts:[[1,"optOut"],["id","optOutInfo","aria-live","polite",1,"info"],[1,"opt-control-row"],[3,"onValueChanged","value","focusStateEnabled","hoverStateEnabled","elementAttr"],["id","optOutLabelText",1,"label",3,"click"]],template:function(r,l){1&r&&(e.j41(0,"div",0)(1,"div",1),e.nVh(2,xI,7,3,"p")(3,EI,2,1,"p"),e.k0s(),e.j41(4,"div",2)(5,"dx-switch",3),e.bIt("onValueChanged",function(N){return l.onToggle(N.value)}),e.k0s(),e.j41(6,"span",4),e.bIt("click",function(){return l.onToggle(!l.oculusOptOut)}),e.nVh(7,OI,1,1)(8,Q1,1,1),e.k0s()()()),2&r&&(e.R7$(2),e.vxM(l.oculusOptOut?3:2),e.R7$(3),e.Y8G("value",l.oculusOptOut)("focusStateEnabled",!0)("hoverStateEnabled",!0)("elementAttr",e.lJ4(6,vk)),e.R7$(2),e.vxM(l.oculusOptOut?7:8))},dependencies:[Zn.Y],styles:[".opt-switch[_ngcontent-%COMP%]{margin-right:5px;transform:translateY(5px)}"],changeDetection:0}))}return o(),t})();const QC=["title"],wI=()=>({autocomplete:"email"});function J1(o,t){if(1&o&&(e.j41(0,"div",5)(1,"span",10),e.EFF(2),e.k0s()()),2&o){const n=e.XpG(2);e.R7$(2),e.JRh(n.error)}}function q1(o,t){if(1&o){const n=e.RV6();e.j41(0,"form",3),e.bIt("submit",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.onSubmit(r))}),e.j41(1,"h2",4),e.EFF(2),e.k0s(),e.j41(3,"p",4),e.EFF(4),e.k0s(),e.nVh(5,J1,3,1,"div",5),e.j41(6,"dx-text-box",6),e.bIt("onValueChanged",function(r){m.eBV(n);const l=e.XpG();return m.Njj(l.email=r.value)}),e.nrm(7,"dx-validator",7),e.k0s(),e.nrm(8,"br")(9,"br"),e.j41(10,"div",8),e.nrm(11,"dx-button",9),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_requestPassword")," "),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_requestPassword_description")," "),e.R7$(),e.vxM(n.error?5:-1),e.R7$(),e.Y8G("value",n.email)("label",n.scope.currentScope.network.getResourceOrKeyName("web_user_email"))("inputAttr",e.lJ4(9,wI)),e.R7$(),e.Y8G("validationRules",n.emailRules),e.R7$(4),e.Y8G("text",n.scope.currentScope.network.getResourceOrKeyName("web_requestPassword_requestSubmit"))("useSubmitBehavior",!0)}}function eP(o,t){if(1&o&&(e.j41(0,"h1",11,0),e.EFF(2),e.k0s(),e.j41(3,"p",4),e.EFF(4),e.k0s(),e.j41(5,"div",8)(6,"a",12)(7,"div",13)(8,"span",14),e.EFF(9),e.k0s()()()()),2&o){const n=e.XpG();e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_password_successfully_reset")," "),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_requestPasswordComplete_description")," "),e.R7$(2),e.Y8G("href",n.scope.currentChapter.path+"/login",e.B4B),e.R7$(3),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_requestPasswordComplete_backToLogin")," ")}}let tP=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.authService=r,this.error=null,this.submitted=!1,this.showEmailError=!1,this.invitated=!1,this.email="",this.scope=this.scopeService.getScope()}get emailRules(){const s=this.scope.currentScope.network.getResourceOrKeyName("web_user_emailError");return[{type:"required",message:s},{type:"email",message:s}]}onSubmit(s){const r={email:this.email};this.error=null,this.authService.requestPassword(r).then(l=>{l.ok&&(this.invitated=!0)}).catch(l=>{this.error=l.error})}set title(s){s&&queueMicrotask(()=>s.nativeElement.focus())}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Da.u))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-password-change-request"]],viewQuery:function(r,l){if(1&r&&e.GBs(QC,5),2&r){let E;e.mGM(E=e.lsd())&&(l.title=E.first)}},standalone:!1,decls:3,vars:1,consts:[["title",""],[1,"col-sm-6"],["novalidate",""],["novalidate","",3,"submit"],[1,"instruction"],["role","alert","tabindex","-1",1,"form-group","alert","alert-danger"],["labelMode","floating","stylingMode","outlined","mode","email","validationMessageMode","always",1,"",3,"onValueChanged","value","label","inputAttr"],[3,"validationRules"],[1,"action-container"],["type","normal","stylingMode","contained",3,"text","useSubmitBehavior"],[1,""],["tabindex","-1",1,"hidden-header"],[1,"dx-widget","dx-button","dx-button-mode-contained","dx-button-normal","dx-button-has-text","a-hover",3,"href"],[1,"dx-button-content"],[1,"dx-button-text"]],template:function(r,l){1&r&&(e.j41(0,"div",1),e.nVh(1,q1,12,10,"form",2)(2,eP,10,4),e.k0s()),2&r&&(e.R7$(),e.vxM(l.invitated?2:1))},dependencies:[Ii.qT,Ii.cb,Ii.cV,Gn.e,gi.m,Yx._,Ft.B],styles:[".a-hover[_ngcontent-%COMP%]:hover{background-color:var(--adx-button-normal-hover-bg);outline:1px solid var(--textColor40);color:unset}"]}))}return o(),t})();const nP=o=>({"has-error":o});function o0(o,t){if(1&o&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"div",13),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.Y8G("innerHTML",n.scope.currentScope.network.getResourceOrKeyName("web_requestPassword_introduction"),e.npT)}}function iP(o,t){if(1&o&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"div",13),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.Y8G("innerHTML",n.scope.currentScope.network.getResourceOrKeyName("web_requestPassword_introduction_privacyPolicyCheckboxDisabled"),e.npT)}}function oP(o,t){if(1&o&&(e.j41(0,"div",3)(1,"span",14),e.EFF(2),e.k0s()()),2&o){const n=e.XpG();e.R7$(2),e.JRh(n.error)}}function SI(o,t){if(1&o&&(e.j41(0,"a",19),e.EFF(1),e.k0s(),e.EFF(2)),2&o){const n=e.XpG(2);e.Y8G("href",n.scope.currentChapter.path+"/tos",e.B4B),e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_termsOfUse")," "),e.R7$(),e.SpI(" ",n.scope.currentScope.network.resources.web_partnerAccessDialog_termsOfUseCheckboxDescription_1," ")}}function sP(o,t){if(1&o){const n=e.RV6();e.j41(0,"dxi-item")(1,"div",15)(2,"dx-switch",16),e.mxI("valueChange",function(r){m.eBV(n);const l=e.XpG();return e.DH7(l.setPasswordData.acceptPrivacyPolicy,r)||(l.setPasswordData.acceptPrivacyPolicy=r),m.Njj(r)}),e.k0s(),e.j41(3,"div",17)(4,"label",18)(5,"span"),e.EFF(6),e.nVh(7,SI,3,3),e.j41(8,"a",19),e.EFF(9),e.k0s(),e.EFF(10),e.k0s()()()()()}if(2&o){const n=e.XpG();e.R7$(2),e.R50("value",n.setPasswordData.acceptPrivacyPolicy),e.R7$(2),e.Y8G("ngClass",e.eq3(7,nP,n.submitted&&!n.setPasswordData.acceptPrivacyPolicy)),e.R7$(2),e.SpI(" ",n.scope.currentScope.network.resources.web_register_termsOfUsecheckboxDescription_0," "),e.R7$(),e.vxM(n.scope.currentScope.network.settings.configurations.enableTOS?7:-1),e.R7$(),e.Y8G("href",n.scope.currentChapter.path+"/pp",e.B4B),e.R7$(),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_privacyPolicy")," "),e.R7$(),e.SpI(" ",n.scope.currentScope.network.resources.web_register_termsOfUsecheckboxDescription_2," ")}}let rP=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.authService=r,this.showPrivacyPolicy=!1,this.isInvitation=!1,this.isInitialPasswordChange=!1,this.passwordRequestToken=null,this.submitted=!1,this.error=null,this.setPasswordData={newPassword:"",confirmPassword:"",passwordRequestToken:null,acceptPrivacyPolicy:!1,title:""},this.passwordMinLength=0,this.passwordMinCapitals=0,this.passwordMinNumbers=0,this.passwordMinSpecialCharacters=0,this.passwordErrorMessage="",this.newPasswordVisible=!1,this.confirmPasswordVisible=!1,this.validatePassword=l=>{const E=l?.value??"";return!(!E||(E.length<this.passwordMinLength?(this.passwordErrorMessage=this.scope.currentScope.network.getResourceOrKeyName("web_user_password_minLength").replace("{num}",`${this.passwordMinLength}`),1):(E.match(/[A-Z]/g)||[]).length<this.passwordMinCapitals?(this.passwordErrorMessage=this.scope.currentScope.network.getResourceOrKeyName("web_user_password_minCapitals").replace("{num}",`${this.passwordMinCapitals}`),1):(E.match(/[0-9]/g)||[]).length<this.passwordMinNumbers?(this.passwordErrorMessage=this.scope.currentScope.network.getResourceOrKeyName("web_user_password_minNumbers").replace("{num}",`${this.passwordMinNumbers}`),1):(E.match(/[^A-Za-z0-9]/g)||[]).length<this.passwordMinSpecialCharacters?(this.passwordErrorMessage=this.scope.currentScope.network.getResourceOrKeyName("web_user_password_minSpecialCharacters").replace("{num}",`${this.passwordMinSpecialCharacters}`),1):(this.passwordErrorMessage="",0)))},this.passwordComparison=()=>this.setPasswordData.newPassword,this.scope=this.scopeService.getScope(),this.setPasswordData.title=this.scope.network.getResourceOrKeyName("web_requestPassword_pageTitle"),this.passwordMinLength=this.scope.network.settings.passwordMinLength,this.passwordMinCapitals=this.scope.network.settings.passwordMinCapitals,this.passwordMinNumbers=this.scope.network.settings.passwordMinNumbers,this.passwordMinSpecialCharacters=this.scope.network.settings.passwordMinSpecialCharacters}ngOnInit(){this.showPrivacyPolicy=!0===(this.isInvitation||this.isInitialPasswordChange)&&!0===this.scope.currentChapter.settings.configurations.requirePrivacyPolicyInvitation,this.newPasswordEditorOptions=this.makePasswordEditorOptions("new"),this.confirmPasswordEditorOptions=this.makePasswordEditorOptions("confirm"),this.setPasswordData.passwordRequestToken=this.passwordRequestToken}makePasswordEditorOptions(s){const r="new"===s?this.newPasswordVisible:this.confirmPasswordVisible;return{mode:r?"text":"password",valueChangeEvent:"input",buttons:[{name:"PasswordIcon",location:"after",options:{stylingMode:"text",icon:r?"fa-solid fa-eye-slash":"fa-solid fa-eye",onClick:()=>{"new"===s?(this.newPasswordVisible=!this.newPasswordVisible,this.newPasswordEditorOptions=this.makePasswordEditorOptions("new")):(this.confirmPasswordVisible=!this.confirmPasswordVisible,this.confirmPasswordEditorOptions=this.makePasswordEditorOptions("confirm"))},elementAttr:{"aria-label":this.scope.network.getResourceOrKeyName(r?"web_common_hide_password":"web_common_show_password"),"aria-pressed":String(r),type:"button"}}}]}}setPassword(s){this.dxForm.instance.validate().isValid&&this.authService.changePassword(this.setPasswordData).then(l=>{l.ok?(this.scope.profile.adminSetPassword&&(this.scope.profile.adminSetPassword=!1),window.location.href=this.scope.currentChapter.path+"/account/password-resetted"):this.error=l.error}).catch(l=>{this.error=l?.error?.message||l?.error})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Da.u))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-password-change-form"]],viewQuery:function(r,l){if(1&r&&e.GBs(Xi.o,5),2&r){let E;e.mGM(E=e.lsd())&&(l.dxForm=E.first)}},inputs:{isInvitation:"isInvitation",isInitialPasswordChange:"isInitialPasswordChange",passwordRequestToken:"passwordRequestToken"},standalone:!1,decls:21,vars:18,consts:[[1,"row"],[1,"col-sm-6"],[1,"instruction"],["role","alert","tabindex","-1",1,"form-group","alert","alert-danger"],["id","pwdForm","novalidate","",3,"submit"],["id","form","labelMode","floating",3,"formDataChange","formData"],["dataField","newPassword","name","NewPassword","editorType","dxTextBox",3,"editorOptions"],[3,"text"],["id","signUpError","type","required",3,"message"],["type","custom","id","signUpError",3,"validationCallback","message"],["dataField","confirmPassword","name","ConfirmPassword","editorType","dxTextBox",3,"editorOptions"],["type","compare","id","signUpError",3,"comparisonTarget","message"],[3,"useSubmitBehavior"],[3,"innerHTML"],[1,""],[1,"d-flex","items-start","gap-2"],[3,"valueChange","value"],[1,"min-w-0"],[1,"cursor-pointer","select-none","leading-6",3,"ngClass"],["target","_blank","rel","noopener noreferrer",3,"href"]],template:function(r,l){1&r&&(e.nVh(0,o0,3,1,"div",0),e.nVh(1,iP,3,1,"div",0),e.j41(2,"div",0)(3,"div",1)(4,"h2",2),e.EFF(5),e.k0s(),e.nVh(6,oP,3,1,"div",3),e.j41(7,"form",4),e.bIt("submit",function(N){return l.setPassword(N)}),e.j41(8,"dx-form",5),e.mxI("formDataChange",function(N){return e.DH7(l.setPasswordData,N)||(l.setPasswordData=N),N}),e.j41(9,"dxi-item",6),e.nrm(10,"dxo-label",7)(11,"dxi-validation-rule",8)(12,"dxi-validation-rule",9),e.k0s(),e.j41(13,"dxi-item",10),e.nrm(14,"dxo-label",7)(15,"dxi-validation-rule",8)(16,"dxi-validation-rule",11),e.k0s(),e.nVh(17,sP,11,9,"dxi-item"),e.j41(18,"dxi-item")(19,"dx-button",12),e.EFF(20),e.k0s()()()()()()),2&r&&(e.vxM(l.showPrivacyPolicy&&l.isInvitation&&l.scope.currentScope.network.getResourceOrKeyName("web_requestPassword_introduction")?0:-1),e.R7$(),e.vxM(!l.showPrivacyPolicy&&l.isInvitation&&l.scope.currentScope.network.getResourceOrKeyName("web_requestPassword_introduction_privacyPolicyCheckboxDisabled")?1:-1),e.R7$(4),e.SpI(" ",l.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_setPassword")," "),e.R7$(),e.vxM(l.error?6:-1),e.R7$(2),e.R50("formData",l.setPasswordData),e.R7$(),e.Y8G("editorOptions",l.newPasswordEditorOptions),e.R7$(),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_user_password")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_user_passwordError")),e.R7$(),e.Y8G("validationCallback",l.validatePassword)("message",l.passwordErrorMessage),e.R7$(),e.Y8G("editorOptions",l.confirmPasswordEditorOptions),e.R7$(),e.Y8G("text",l.scope.network.getResourceOrKeyName("web_user_repeatPassword")),e.R7$(),e.Y8G("message",l.scope.network.getResourceOrKeyName("web_user_repeatPasswordError")),e.R7$(),e.Y8G("comparisonTarget",l.passwordComparison)("message",l.scope.network.getResourceOrKeyName("web_common_password_not_match")),e.R7$(),e.vxM(l.showPrivacyPolicy?17:-1),e.R7$(2),e.Y8G("useSubmitBehavior",!0),e.R7$(),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_setPassword")))},dependencies:[C.YU,Ii.qT,Ii.cb,Ii.cV,Bo.CVf,Gn.e,Bo.rkl,Bo.Inh,Xi.o,Zn.Y,Ft.B],encapsulation:2}))}return o(),t})();const qg=["title"];function H_(o,t){if(1&o&&(e.j41(0,"h1",2,0),e.EFF(2),e.k0s(),e.nrm(3,"app-password-change-form",3)),2&o){const n=e.XpG();e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_password_set_new")," "),e.R7$(),e.Y8G("isInitialPasswordChange",n.isInitialPasswordChange)("isInvitation",n.isInvitation)("passwordRequestToken",n.passwordRequestToken)}}function aP(o,t){if(1&o&&(e.j41(0,"h1",2,0),e.EFF(2),e.k0s(),e.nrm(3,"app-password-change-request")),2&o){const n=e.XpG();e.R7$(2),e.SpI(" ",n.scope.currentScope.network.getResourceOrKeyName("web_common_password_request_new")," ")}}let lP=(()=>{var o;class t{constructor(s){this.scopeService=s,this.passwordRequestToken=null,this.adminSetedPassword=!1,this.isInvitation=!1,this.isInitialPasswordChange=!1,this.scope=this.scopeService.getScope(),this.passwordRequestToken=new URLSearchParams(window.location.search).get("token"),this.isInvitation=new URLSearchParams(window.location.search).has("invitation"),this.isInitialPasswordChange=new URLSearchParams(window.location.search).has("initial")||this.scope.profile.adminSetPassword,this.adminSetedPassword=this.scope.profile.adminSetPassword}set title(s){s&&queueMicrotask(()=>s.nativeElement.focus())}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-password-reset"]],viewQuery:function(r,l){if(1&r&&e.GBs(qg,5),2&r){let E;e.mGM(E=e.lsd())&&(l.title=E.first)}},standalone:!1,decls:3,vars:1,consts:[["title",""],[1,"password-reset-base"],["tabindex","-1",1,"hidden-header"],[3,"isInitialPasswordChange","isInvitation","passwordRequestToken"]],template:function(r,l){1&r&&(e.j41(0,"div",1),e.nVh(1,H_,4,4)(2,aP,4,1),e.k0s()),2&r&&(e.R7$(),e.vxM(l.scope.profile.isRegistered||l.passwordRequestToken?1:2))},dependencies:[tP,rP],encapsulation:2}))}return o(),t})(),Ck=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.authService=r,this.scope=this.scopeService.getScope()}logout(){this.authService.logout().then(()=>{window.location.href=this.scope.currentChapter.path+"/login"})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Da.u))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-password-reset-complete"]],standalone:!1,decls:3,vars:2,consts:[[3,"onClick","text"]],template:function(r,l){1&r&&(e.j41(0,"p"),e.EFF(1),e.k0s(),e.j41(2,"dx-button",0),e.bIt("onClick",function(){return l.logout()}),e.k0s()),2&r&&(e.R7$(),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_resetPasswordComplete_description")),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_resetPasswordComplete_backToLogin")))},dependencies:[Gn.e],encapsulation:2}))}return o(),t})(),ZC=(()=>{var o;class t{constructor(s,r){this.scopeService=s,this.authService=r,this.scope=this.scopeService.getScope()}logout(){this.authService.logout().then(()=>{window.location.href=this.scope.currentChapter.path+"/login"})}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(e.rXU(Se.A),e.rXU(Da.u))},this.\u0275cmp=e.VBU({type:t,selectors:[["app-request-password-complete"]],standalone:!1,decls:3,vars:2,consts:[[3,"onClick","text"]],template:function(r,l){1&r&&(e.j41(0,"p"),e.EFF(1),e.k0s(),e.j41(2,"dx-button",0),e.bIt("onClick",function(){return l.logout()}),e.k0s()),2&r&&(e.R7$(),e.JRh(l.scope.currentScope.network.getResourceOrKeyName("web_requestPasswordComplete_description")),e.R7$(),e.Y8G("text",l.scope.currentScope.network.getResourceOrKeyName("web_resetPasswordComplete_backToLogin")))},dependencies:[Gn.e],encapsulation:2}))}return o(),t})();const s0=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g");class Jp{element=null;classNames=[];attrs=[];notSelectors=[];static parse(t){const n=[],s=(ae,ze)=>{ze.notSelectors.length>0&&!ze.element&&0==ze.classNames.length&&0==ze.attrs.length&&(ze.element="*"),ae.push(ze)};let l,r=new Jp,E=r,N=!1;for(s0.lastIndex=0;l=s0.exec(t);){if(l[1]){if(N)throw new Error("Nesting :not in a selector is not allowed");N=!0,E=new Jp,r.notSelectors.push(E)}const ae=l[2];if(ae){const dt=l[3];"#"===dt?E.addAttribute("id",ae.slice(1)):"."===dt?E.addClassName(ae.slice(1)):E.setElement(ae)}const ze=l[4];if(ze&&E.addAttribute(E.unescapeAttribute(ze),l[6]),l[7]&&(N=!1,E=r),l[8]){if(N)throw new Error("Multiple selectors in :not are not supported");s(n,r),r=E=new Jp}}return s(n,r),n}unescapeAttribute(t){let n="",s=!1;for(let r=0;r<t.length;r++){const l=t.charAt(r);if("\\"!==l){if("$"===l&&!s)throw new Error(`Error in attribute selector "${t}". Unescaped "$" is not supported. Please escape with "\\$".`);s=!1,n+=l}else s=!0}return n}escapeAttribute(t){return t.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}isElementSelector(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length}hasElementSelector(){return!!this.element}setElement(t=null){this.element=t}getAttrs(){const t=[];return this.classNames.length>0&&t.push("class",this.classNames.join(" ")),t.concat(this.attrs)}addAttribute(t,n=""){this.attrs.push(t,n&&n.toLowerCase()||"")}addClassName(t){this.classNames.push(t.toLowerCase())}toString(){let t=this.element||"";if(this.classNames&&this.classNames.forEach(n=>t+=`.${n}`),this.attrs)for(let n=0;n<this.attrs.length;n+=2){const s=this.escapeAttribute(this.attrs[n]),r=this.attrs[n+1];t+=`[${s}${r?"="+r:""}]`}return this.notSelectors.forEach(n=>t+=`:not(${n})`),t}}class lm{static createNotMatcher(t){const n=new lm;return n.addSelectables(t,null),n}_elementMap=new Map;_elementPartialMap=new Map;_classMap=new Map;_classPartialMap=new Map;_attrValueMap=new Map;_attrValuePartialMap=new Map;_listContexts=[];addSelectables(t,n){let s=null;t.length>1&&(s=new dP(t),this._listContexts.push(s));for(let r=0;r<t.length;r++)this._addSelectable(t[r],n,s)}_addSelectable(t,n,s){let r=this;const l=t.element,E=t.classNames,N=t.attrs,ae=new uP(t,n,s);if(l&&(0===N.length&&0===E.length?this._addTerminal(r._elementMap,l,ae):r=this._addPartial(r._elementPartialMap,l)),E)for(let ze=0;ze<E.length;ze++){const Kt=E[ze];0===N.length&&ze===E.length-1?this._addTerminal(r._classMap,Kt,ae):r=this._addPartial(r._classPartialMap,Kt)}if(N)for(let ze=0;ze<N.length;ze+=2){const Kt=N[ze],Vn=N[ze+1];if(ze===N.length-2){const ci=r._attrValueMap;let Vi=ci.get(Kt);Vi||(Vi=new Map,ci.set(Kt,Vi)),this._addTerminal(Vi,Vn,ae)}else{const ci=r._attrValuePartialMap;let Vi=ci.get(Kt);Vi||(Vi=new Map,ci.set(Kt,Vi)),r=this._addPartial(Vi,Vn)}}}_addTerminal(t,n,s){let r=t.get(n);r||(r=[],t.set(n,r)),r.push(s)}_addPartial(t,n){let s=t.get(n);return s||(s=new lm,t.set(n,s)),s}match(t,n){let s=!1;const r=t.element,l=t.classNames,E=t.attrs;for(let N=0;N<this._listContexts.length;N++)this._listContexts[N].alreadyMatched=!1;if(s=this._matchTerminal(this._elementMap,r,t,n)||s,s=this._matchPartial(this._elementPartialMap,r,t,n)||s,l)for(let N=0;N<l.length;N++){const ae=l[N];s=this._matchTerminal(this._classMap,ae,t,n)||s,s=this._matchPartial(this._classPartialMap,ae,t,n)||s}if(E)for(let N=0;N<E.length;N+=2){const ae=E[N],ze=E[N+1],dt=this._attrValueMap.get(ae);ze&&(s=this._matchTerminal(dt,"",t,n)||s),s=this._matchTerminal(dt,ze,t,n)||s;const Kt=this._attrValuePartialMap.get(ae);ze&&(s=this._matchPartial(Kt,"",t,n)||s),s=this._matchPartial(Kt,ze,t,n)||s}return s}_matchTerminal(t,n,s,r){if(!t||"string"!=typeof n)return!1;let l=t.get(n)||[];const E=t.get("*");if(E&&(l=l.concat(E)),0===l.length)return!1;let N,ae=!1;for(let ze=0;ze<l.length;ze++)N=l[ze],ae=N.finalize(s,r)||ae;return ae}_matchPartial(t,n,s,r){if(!t||"string"!=typeof n)return!1;const l=t.get(n);return!!l&&l.match(s,r)}}class dP{selectors;alreadyMatched=!1;constructor(t){this.selectors=t}}class uP{selector;cbContext;listContext;notSelectors;constructor(t,n,s){this.selector=t,this.cbContext=n,this.listContext=s,this.notSelectors=t.notSelectors}finalize(t,n){let s=!0;return this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)&&(s=!lm.createNotMatcher(this.notSelectors).match(t,null)),s&&n&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),n(this.selector,this.cbContext)),s}}class DI{registry;constructor(t){this.registry=t}match(t){return this.registry.has(t)?this.registry.get(t):[]}}var Eu=function(o){return o[o.Emulated=0]="Emulated",o[o.None=2]="None",o[o.ShadowDom=3]="ShadowDom",o}(Eu||{}),JC=function(o){return o[o.OnPush=0]="OnPush",o[o.Default=1]="Default",o}(JC||{}),qp=function(o){return o[o.None=0]="None",o[o.SignalBased=1]="SignalBased",o[o.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",o}(qp||{});const qC_name="custom-elements",TI_name="no-errors-schema";var la=function(o){return o[o.NONE=0]="NONE",o[o.HTML=1]="HTML",o[o.STYLE=2]="STYLE",o[o.SCRIPT=3]="SCRIPT",o[o.URL=4]="URL",o[o.RESOURCE_URL=5]="RESOURCE_URL",o}(la||{});function wS(o){const t=function II(o){const t=o.classNames&&o.classNames.length?[8,...o.classNames]:[];return[o.element&&"*"!==o.element?o.element:"",...o.attrs,...t]}(o),n=o.notSelectors&&o.notSelectors.length?o.notSelectors.map(s=>function MI(o){const t=o.classNames&&o.classNames.length?[8,...o.classNames]:[];return o.element?[5,o.element,...o.attrs,...t]:o.attrs.length?[3,...o.attrs,...t]:o.classNames&&o.classNames.length?[9,...o.classNames]:[]}(s)):[];return t.concat(...n)}function SS(o){return o?Jp.parse(o).map(wS):[]}var rp=function(o){return o[o.Directive=0]="Directive",o[o.Component=1]="Component",o[o.Injectable=2]="Injectable",o[o.Pipe=3]="Pipe",o[o.NgModule=4]="NgModule",o}(rp||{});let ey;function kI(o){const t=new NI;return $I(o.nodes.map(s=>s.visit(t,null)).join(""),o.meaning)}class BI{visitText(t,n){return t.value}visitContainer(t,n){return`[${t.children.map(s=>s.visit(this)).join(", ")}]`}visitIcu(t,n){const s=Object.keys(t.cases).map(r=>`${r} {${t.cases[r].visit(this)}}`);return`{${t.expression}, ${t.type}, ${s.join(", ")}}`}visitTagPlaceholder(t,n){return t.isVoid?`<ph tag name="${t.startName}"/>`:`<ph tag name="${t.startName}">${t.children.map(s=>s.visit(this)).join(", ")}</ph name="${t.closeName}">`}visitPlaceholder(t,n){return t.value?`<ph name="${t.name}">${t.value}</ph>`:`<ph name="${t.name}"/>`}visitIcuPlaceholder(t,n){return`<ph icu name="${t.name}">${t.value.visit(this)}</ph>`}visitBlockPlaceholder(t,n){return`<ph block name="${t.startName}">${t.children.map(s=>s.visit(this)).join(", ")}</ph name="${t.closeName}">`}}const FI=new BI;class NI extends BI{visitIcu(t){let n=Object.keys(t.cases).map(s=>`${s} {${t.cases[s].visit(this)}}`);return`{${t.type}, ${n.join(", ")}}`}}function $_(o){return(o>>>0).toString(16).padStart(8,"0")}function VI(o,t,n,s){return o<20?[t&n|~t&s,1518500249]:o<40?[t^n^s,1859775393]:o<60?[t&n|t&s|n&s,2400959708]:[t^n^s,3395469782]}function HI(o){ey??=new TextEncoder;const t=ey.encode(o),n=new DataView(t.buffer,t.byteOffset,t.byteLength);let s=gP(n,t.length,0),r=gP(n,t.length,102072);return 0==s&&(0==r||1==r)&&(s^=319790063,r^=-1801410264),BigInt.asUintN(32,BigInt(s))<<BigInt(32)|BigInt.asUintN(32,BigInt(r))}function $I(o,t=""){let n=HI(o);return t&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=HI(t)),BigInt.asUintN(63,n).toString()}function gP(o,t,n){let s=2654435769,r=2654435769,l=0;const E=t-12;for(;l<=E;l+=12){s+=o.getUint32(l,!0),r+=o.getUint32(l+4,!0);const ae=TS(s,r,n+=o.getUint32(l+8,!0));s=ae[0],r=ae[1],n=ae[2]}const N=t-l;return n+=t,N>=4?(s+=o.getUint32(l,!0),l+=4,N>=8?(r+=o.getUint32(l,!0),l+=4,N>=9&&(n+=o.getUint8(l++)<<8),N>=10&&(n+=o.getUint8(l++)<<16),11===N&&(n+=o.getUint8(l++)<<24)):(N>=5&&(r+=o.getUint8(l++)),N>=6&&(r+=o.getUint8(l++)<<8),7===N&&(r+=o.getUint8(l++)<<16))):(N>=1&&(s+=o.getUint8(l++)),N>=2&&(s+=o.getUint8(l++)<<8),3===N&&(s+=o.getUint8(l++)<<16)),TS(s,r,n)[2]}function TS(o,t,n){return o-=t,o-=n,t-=n,t-=o^=n>>>13,n-=o,n-=t^=o<<8,o-=t,o-=n^=t>>>13,t-=n,t-=o^=n>>>12,n-=o,n-=t^=o<<16,o-=t,o-=n^=t>>>5,t-=n,t-=o^=n>>>3,n-=o,n-=t^=o<<10,[o,t,n^=t>>>15]}var UI=function(o){return o[o.Little=0]="Little",o[o.Big=1]="Big",o}(UI||{});function ty(o,t){return function bk(o,t){const n=(65535&o)+(65535&t),s=(o>>>16)+(t>>>16)+(n>>>16);return[s>>>16,s<<16|65535&n]}(o,t)[1]}function jI(o,t){return o<<t|o>>>32-t}function fP(o,t){return t>=o.length?0:o[t]}function Ek(o,t,n){let s=0;if(n===UI.Big)for(let r=0;r<4;r++)s+=fP(o,t+r)<<24-8*r;else for(let r=0;r<4;r++)s+=fP(o,t+r)<<8*r;return s}var AS=function(o){return o[o.None=0]="None",o[o.Const=1]="Const",o}(AS||{});class U_{modifiers;constructor(t=AS.None){this.modifiers=t}hasModifier(t){return 0!==(this.modifiers&t)}}var ap=function(o){return o[o.Dynamic=0]="Dynamic",o[o.Bool=1]="Bool",o[o.String=2]="String",o[o.Int=3]="Int",o[o.Number=4]="Number",o[o.Function=5]="Function",o[o.Inferred=6]="Inferred",o[o.None=7]="None",o}(ap||{});class eg extends U_{name;constructor(t,n){super(n),this.name=t}visitType(t,n){return t.visitBuiltinType(this,n)}}class mh extends U_{value;typeParams;constructor(t,n,s=null){super(n),this.value=t,this.typeParams=s}visitType(t,n){return t.visitExpressionType(this,n)}}const $d=new eg(ap.Dynamic),xc=new eg(ap.Inferred),WI=new eg(ap.Bool),j_=(new eg(ap.Int),new eg(ap.Number)),ny=new eg(ap.String),Ou=(new eg(ap.Function),new eg(ap.None));var iy=function(o){return o[o.Minus=0]="Minus",o[o.Plus=1]="Plus",o}(iy||{}),Uo=function(o){return o[o.Equals=0]="Equals",o[o.NotEquals=1]="NotEquals",o[o.Assign=2]="Assign",o[o.Identical=3]="Identical",o[o.NotIdentical=4]="NotIdentical",o[o.Minus=5]="Minus",o[o.Plus=6]="Plus",o[o.Divide=7]="Divide",o[o.Multiply=8]="Multiply",o[o.Modulo=9]="Modulo",o[o.And=10]="And",o[o.Or=11]="Or",o[o.BitwiseOr=12]="BitwiseOr",o[o.BitwiseAnd=13]="BitwiseAnd",o[o.Lower=14]="Lower",o[o.LowerEquals=15]="LowerEquals",o[o.Bigger=16]="Bigger",o[o.BiggerEquals=17]="BiggerEquals",o[o.NullishCoalesce=18]="NullishCoalesce",o[o.Exponentiation=19]="Exponentiation",o[o.In=20]="In",o[o.AdditionAssignment=21]="AdditionAssignment",o[o.SubtractionAssignment=22]="SubtractionAssignment",o[o.MultiplicationAssignment=23]="MultiplicationAssignment",o[o.DivisionAssignment=24]="DivisionAssignment",o[o.RemainderAssignment=25]="RemainderAssignment",o[o.ExponentiationAssignment=26]="ExponentiationAssignment",o[o.AndAssignment=27]="AndAssignment",o[o.OrAssignment=28]="OrAssignment",o[o.NullishCoalesceAssignment=29]="NullishCoalesceAssignment",o}(Uo||{});function KI(o,t,n){const s=o.length;if(s!==t.length)return!1;for(let r=0;r<s;r++)if(!n(o[r],t[r]))return!1;return!0}function ad(o,t){return KI(o,t,(n,s)=>n.isEquivalent(s))}class Jr{type;sourceSpan;constructor(t,n){this.type=t||null,this.sourceSpan=n||null}prop(t,n){return new us(this,t,null,n)}key(t,n,s){return new zo(this,t,n,s)}callFn(t,n,s){return new ml(this,t,null,n,s)}instantiate(t,n,s){return new hm(this,t,n,s)}conditional(t,n=null,s){return new ct(this,t,n,null,s)}equals(t,n){return new jo(Uo.Equals,this,t,null,n)}notEquals(t,n){return new jo(Uo.NotEquals,this,t,null,n)}identical(t,n){return new jo(Uo.Identical,this,t,null,n)}notIdentical(t,n){return new jo(Uo.NotIdentical,this,t,null,n)}minus(t,n){return new jo(Uo.Minus,this,t,null,n)}plus(t,n){return new jo(Uo.Plus,this,t,null,n)}divide(t,n){return new jo(Uo.Divide,this,t,null,n)}multiply(t,n){return new jo(Uo.Multiply,this,t,null,n)}modulo(t,n){return new jo(Uo.Modulo,this,t,null,n)}power(t,n){return new jo(Uo.Exponentiation,this,t,null,n)}and(t,n){return new jo(Uo.And,this,t,null,n)}bitwiseOr(t,n){return new jo(Uo.BitwiseOr,this,t,null,n)}bitwiseAnd(t,n){return new jo(Uo.BitwiseAnd,this,t,null,n)}or(t,n){return new jo(Uo.Or,this,t,null,n)}lower(t,n){return new jo(Uo.Lower,this,t,null,n)}lowerEquals(t,n){return new jo(Uo.LowerEquals,this,t,null,n)}bigger(t,n){return new jo(Uo.Bigger,this,t,null,n)}biggerEquals(t,n){return new jo(Uo.BiggerEquals,this,t,null,n)}isBlank(t){return this.equals(PS,t)}nullishCoalesce(t,n){return new jo(Uo.NullishCoalesce,this,t,null,n)}toStmt(){return new _h(this,null)}}class ld extends Jr{name;constructor(t,n,s){super(n,s),this.name=t}isEquivalent(t){return t instanceof ld&&this.name===t.name}isConstant(){return!1}visitExpression(t,n){return t.visitReadVarExpr(this,n)}clone(){return new ld(this.name,this.type,this.sourceSpan)}set(t){return new jo(Uo.Assign,this,t,null,this.sourceSpan)}}class dm extends Jr{expr;constructor(t,n,s){super(n,s),this.expr=t}visitExpression(t,n){return t.visitTypeofExpr(this,n)}isEquivalent(t){return t instanceof dm&&t.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new dm(this.expr.clone())}}class oy extends Jr{expr;constructor(t,n,s){super(n,s),this.expr=t}visitExpression(t,n){return t.visitVoidExpr(this,n)}isEquivalent(t){return t instanceof oy&&t.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new oy(this.expr.clone())}}class yr extends Jr{node;constructor(t,n,s){super(n,s),this.node=t}isEquivalent(t){return t instanceof yr&&this.node===t.node}isConstant(){return!1}visitExpression(t,n){return t.visitWrappedNodeExpr(this,n)}clone(){return new yr(this.node,this.type,this.sourceSpan)}}class ml extends Jr{fn;args;pure;constructor(t,n,s,r,l=!1){super(s,r),this.fn=t,this.args=n,this.pure=l}get receiver(){return this.fn}isEquivalent(t){return t instanceof ml&&this.fn.isEquivalent(t.fn)&&ad(this.args,t.args)&&this.pure===t.pure}isConstant(){return!1}visitExpression(t,n){return t.visitInvokeFunctionExpr(this,n)}clone(){return new ml(this.fn.clone(),this.args.map(t=>t.clone()),this.type,this.sourceSpan,this.pure)}}class um extends Jr{tag;template;constructor(t,n,s,r){super(s,r),this.tag=t,this.template=n}isEquivalent(t){return t instanceof um&&this.tag.isEquivalent(t.tag)&&this.template.isEquivalent(t.template)}isConstant(){return!1}visitExpression(t,n){return t.visitTaggedTemplateLiteralExpr(this,n)}clone(){return new um(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}}class hm extends Jr{classExpr;args;constructor(t,n,s,r){super(s,r),this.classExpr=t,this.args=n}isEquivalent(t){return t instanceof hm&&this.classExpr.isEquivalent(t.classExpr)&&ad(this.args,t.args)}isConstant(){return!1}visitExpression(t,n){return t.visitInstantiateExpr(this,n)}clone(){return new hm(this.classExpr.clone(),this.args.map(t=>t.clone()),this.type,this.sourceSpan)}}class qa extends Jr{value;constructor(t,n,s){super(n,s),this.value=t}isEquivalent(t){return t instanceof qa&&this.value===t.value}isConstant(){return!0}visitExpression(t,n){return t.visitLiteralExpr(this,n)}clone(){return new qa(this.value,this.type,this.sourceSpan)}}class Ud extends Jr{elements;expressions;constructor(t,n,s){super(null,s),this.elements=t,this.expressions=n}isEquivalent(t){return t instanceof Ud&&KI(this.elements,t.elements,(n,s)=>n.text===s.text)&&ad(this.expressions,t.expressions)}isConstant(){return!1}visitExpression(t,n){return t.visitTemplateLiteralExpr(this,n)}clone(){return new Ud(this.elements.map(t=>t.clone()),this.expressions.map(t=>t.clone()))}}class pm extends Jr{text;rawText;constructor(t,n,s){super(ny,n),this.text=t,this.rawText=s??V(f(t))}visitExpression(t,n){return t.visitTemplateLiteralElementExpr(this,n)}isEquivalent(t){return t instanceof pm&&t.text===this.text&&t.rawText===this.rawText}isConstant(){return!0}clone(){return new pm(this.text,this.sourceSpan,this.rawText)}}class ef{text;sourceSpan;constructor(t,n){this.text=t,this.sourceSpan=n}}class gm{text;sourceSpan;associatedMessage;constructor(t,n,s){this.text=t,this.sourceSpan=n,this.associatedMessage=s}}class u extends Jr{metaBlock;messageParts;placeHolderNames;expressions;constructor(t,n,s,r,l){super(ny,l),this.metaBlock=t,this.messageParts=n,this.placeHolderNames=s,this.expressions=r}isEquivalent(t){return!1}isConstant(){return!1}visitExpression(t,n){return t.visitLocalizedString(this,n)}clone(){return new u(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(t=>t.clone()),this.sourceSpan)}serializeI18nHead(){let t=this.metaBlock.description||"";return this.metaBlock.meaning&&(t=`${this.metaBlock.meaning}|${t}`),this.metaBlock.customId&&(t=`${t}@@${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(n=>{t=`${t}\u241f${n}`}),se(t,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(t){return this.messageParts[t]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(t){return this.placeHolderNames[t]?.sourceSpan??this.expressions[t]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(t){const n=this.placeHolderNames[t-1],s=this.messageParts[t];let r=n.text;return 0===n.associatedMessage?.legacyIds.length&&(r+=`@@${$I(n.associatedMessage.messageString,n.associatedMessage.meaning)}`),se(r,s.text,this.getMessagePartSourceSpan(t))}}const f=o=>o.replace(/\\/g,"\\\\"),_=o=>o.replace(/^:/,"\\:"),O=o=>o.replace(/:/g,"\\:"),V=o=>o.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function se(o,t,n){return""===o?{cooked:t,raw:V(_(f(t))),range:n}:{cooked:`:${o}:${t}`,raw:V(`:${O(f(o))}:${f(t)}`),range:n}}class $e extends Jr{value;typeParams;constructor(t,n,s=null,r){super(n,r),this.value=t,this.typeParams=s}isEquivalent(t){return t instanceof $e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName}isConstant(){return!1}visitExpression(t,n){return t.visitExternalExpr(this,n)}clone(){return new $e(this.value,this.type,this.typeParams,this.sourceSpan)}}class ct extends Jr{condition;falseCase;trueCase;constructor(t,n,s=null,r,l){super(r||n.type,l),this.condition=t,this.falseCase=s,this.trueCase=n}isEquivalent(t){return t instanceof ct&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&function MS(o,t){return null==o||null==t?o==t:o.isEquivalent(t)}(this.falseCase,t.falseCase)}isConstant(){return!1}visitExpression(t,n){return t.visitConditionalExpr(this,n)}clone(){return new ct(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}}class fn extends Jr{condition;constructor(t,n){super(WI,n),this.condition=t}isEquivalent(t){return t instanceof fn&&this.condition.isEquivalent(t.condition)}isConstant(){return!1}visitExpression(t,n){return t.visitNotExpr(this,n)}clone(){return new fn(this.condition.clone(),this.sourceSpan)}}class Nn{name;type;constructor(t,n=null){this.name=t,this.type=n}isEquivalent(t){return this.name===t.name}clone(){return new Nn(this.name,this.type)}}class ui extends Jr{params;statements;name;constructor(t,n,s,r,l){super(s,r),this.params=t,this.statements=n,this.name=l}isEquivalent(t){return(t instanceof ui||t instanceof W_)&&ad(this.params,t.params)&&ad(this.statements,t.statements)}isConstant(){return!1}visitExpression(t,n){return t.visitFunctionExpr(this,n)}toDeclStmt(t,n){return new W_(t,this.params,this.statements,this.type,n,this.sourceSpan)}clone(){return new ui(this.params.map(t=>t.clone()),this.statements,this.type,this.sourceSpan,this.name)}}class _i extends Jr{params;body;constructor(t,n,s,r){super(s,r),this.params=t,this.body=n}isEquivalent(t){return!!(t instanceof _i&&ad(this.params,t.params))&&(this.body instanceof Jr&&t.body instanceof Jr?this.body.isEquivalent(t.body):!(!Array.isArray(this.body)||!Array.isArray(t.body))&&ad(this.body,t.body))}isConstant(){return!1}visitExpression(t,n){return t.visitArrowFunctionExpr(this,n)}clone(){return new _i(this.params.map(t=>t.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(t,n){return new al(t,this,xc,n,this.sourceSpan)}}class ao extends Jr{operator;expr;parens;constructor(t,n,s,r,l=!0){super(s||j_,r),this.operator=t,this.expr=n,this.parens=l}isEquivalent(t){return t instanceof ao&&this.operator===t.operator&&this.expr.isEquivalent(t.expr)}isConstant(){return!1}visitExpression(t,n){return t.visitUnaryOperatorExpr(this,n)}clone(){return new ao(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}}class No extends Jr{expr;constructor(t,n,s){super(n,s),this.expr=t}visitExpression(t,n){return t.visitParenthesizedExpr(this,n)}isEquivalent(t){return t instanceof No&&t.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new No(this.expr.clone())}}class jo extends Jr{operator;rhs;lhs;constructor(t,n,s,r,l){super(r||n.type,l),this.operator=t,this.rhs=s,this.lhs=n}isEquivalent(t){return t instanceof jo&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)}isConstant(){return!1}visitExpression(t,n){return t.visitBinaryOperatorExpr(this,n)}clone(){return new jo(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}isAssignment(){const t=this.operator;return t===Uo.Assign||t===Uo.AdditionAssignment||t===Uo.SubtractionAssignment||t===Uo.MultiplicationAssignment||t===Uo.DivisionAssignment||t===Uo.RemainderAssignment||t===Uo.ExponentiationAssignment||t===Uo.AndAssignment||t===Uo.OrAssignment||t===Uo.NullishCoalesceAssignment}}class us extends Jr{receiver;name;constructor(t,n,s,r){super(s,r),this.receiver=t,this.name=n}get index(){return this.name}isEquivalent(t){return t instanceof us&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name}isConstant(){return!1}visitExpression(t,n){return t.visitReadPropExpr(this,n)}set(t){return new jo(Uo.Assign,this.receiver.prop(this.name),t,null,this.sourceSpan)}clone(){return new us(this.receiver.clone(),this.name,this.type,this.sourceSpan)}}class zo extends Jr{receiver;index;constructor(t,n,s,r){super(s,r),this.receiver=t,this.index=n}isEquivalent(t){return t instanceof zo&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)}isConstant(){return!1}visitExpression(t,n){return t.visitReadKeyExpr(this,n)}set(t){return new jo(Uo.Assign,this.receiver.key(this.index),t,null,this.sourceSpan)}clone(){return new zo(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}}class Er extends Jr{entries;constructor(t,n,s){super(n,s),this.entries=t}isConstant(){return this.entries.every(t=>t.isConstant())}isEquivalent(t){return t instanceof Er&&ad(this.entries,t.entries)}visitExpression(t,n){return t.visitLiteralArrayExpr(this,n)}clone(){return new Er(this.entries.map(t=>t.clone()),this.type,this.sourceSpan)}}class Ua{key;value;quoted;constructor(t,n,s){this.key=t,this.value=n,this.quoted=s}isEquivalent(t){return this.key===t.key&&this.value.isEquivalent(t.value)}clone(){return new Ua(this.key,this.value.clone(),this.quoted)}}class Rr extends Jr{entries;valueType=null;constructor(t,n,s){super(n,s),this.entries=t,n&&(this.valueType=n.valueType)}isEquivalent(t){return t instanceof Rr&&ad(this.entries,t.entries)}isConstant(){return this.entries.every(t=>t.value.isConstant())}visitExpression(t,n){return t.visitLiteralMapExpr(this,n)}clone(){const t=this.entries.map(n=>n.clone());return new Rr(t,this.type,this.sourceSpan)}}const cd=new qa(null,null,null),PS=new qa(null,xc,null);var el=function(o){return o[o.None=0]="None",o[o.Final=1]="Final",o[o.Private=2]="Private",o[o.Exported=4]="Exported",o[o.Static=8]="Static",o}(el||{});class vP{text;multiline;trailingNewline;constructor(t,n,s){this.text=t,this.multiline=n,this.trailingNewline=s}toString(){return this.multiline?` ${this.text} `:this.text}}class CP extends vP{tags;constructor(t){super("",!0,!0),this.tags=t}toString(){return function u2(o){if(0===o.length)return"";if(1===o.length&&o[0].tagName&&!o[0].text)return`*${Ak(o[0])} `;let t="*\n";for(const n of o)t+=" *",t+=Ak(n).replace(/\n/g,"\n * "),t+="\n";return t+=" ",t}(this.tags)}}class c0{modifiers;sourceSpan;leadingComments;constructor(t=el.None,n=null,s){this.modifiers=t,this.sourceSpan=n,this.leadingComments=s}hasModifier(t){return 0!==(this.modifiers&t)}addLeadingComment(t){this.leadingComments=this.leadingComments??[],this.leadingComments.push(t)}}class al extends c0{name;value;type;constructor(t,n,s,r,l,E){super(r,l,E),this.name=t,this.value=n,this.type=s||n&&n.type||null}isEquivalent(t){return t instanceof al&&this.name===t.name&&(this.value?!!t.value&&this.value.isEquivalent(t.value):!t.value)}visitStatement(t,n){return t.visitDeclareVarStmt(this,n)}}class W_ extends c0{name;params;statements;type;constructor(t,n,s,r,l,E,N){super(l,E,N),this.name=t,this.params=n,this.statements=s,this.type=r||null}isEquivalent(t){return t instanceof W_&&ad(this.params,t.params)&&ad(this.statements,t.statements)}visitStatement(t,n){return t.visitDeclareFunctionStmt(this,n)}}class _h extends c0{expr;constructor(t,n,s){super(el.None,n,s),this.expr=t}isEquivalent(t){return t instanceof _h&&this.expr.isEquivalent(t.expr)}visitStatement(t,n){return t.visitExpressionStmt(this,n)}}class Ec extends c0{value;constructor(t,n=null,s){super(el.None,n,s),this.value=t}isEquivalent(t){return t instanceof Ec&&this.value.isEquivalent(t.value)}visitStatement(t,n){return t.visitReturnStmt(this,n)}}class RS extends c0{condition;trueCase;falseCase;constructor(t,n,s=[],r,l){super(el.None,r,l),this.condition=t,this.trueCase=n,this.falseCase=s}isEquivalent(t){return t instanceof RS&&this.condition.isEquivalent(t.condition)&&ad(this.trueCase,t.trueCase)&&ad(this.falseCase,t.falseCase)}visitStatement(t,n){return t.visitIfStmt(this,n)}}function zs(o,t,n){return new ld(o,t,n)}function ns(o,t=null,n){return new $e(o,null,t,n)}function ql(o,t,n){return new mh(o,t,n)}function d0(o){return new dm(o)}function hr(o,t,n){return new Er(o,t,n)}function _l(o,t=null){return new Rr(o.map(n=>new Ua(n.key,n.value,n.quoted)),t,null)}function fm(o,t,n,s,r){return new ui(o,t,n,s,r)}function Na(o,t,n,s){return new _i(o,t,n,s)}function kS(o,t,n,s,r){return new RS(o,t,n,s,r)}function Ei(o,t,n){return new qa(o,t,n)}function Ak(o){let t="";if(o.tagName&&(t+=` @${o.tagName}`),o.text){if(o.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');t+=" "+o.text.replace(/@/g,"\\@")}return t}const Ik=zs("<unknown>"),p2={};class XI extends Jr{resolved;original;shared=!1;constructor(t){super(t.type),this.resolved=t,this.original=t}visitExpression(t,n){return n===p2?this.original.visitExpression(t,n):this.resolved.visitExpression(t,n)}isEquivalent(t){return t instanceof XI&&this.resolved.isEquivalent(t.resolved)}isConstant(){return!0}clone(){throw new Error("Not supported.")}fixup(t){this.resolved=t,this.shared=!0}}class Mk{isClosureCompilerEnabled;statements=[];literals=new Map;literalFactories=new Map;sharedConstants=new Map;_claimedNames=new Map;nextNameIndex=0;constructor(t=!1){this.isClosureCompilerEnabled=t}getConstLiteral(t,n){if(t instanceof qa&&!Pk(t)||t instanceof XI)return t;const s=u0.INSTANCE.keyOf(t);let r=this.literals.get(s),l=!1;if(r||(r=new XI(t),this.literals.set(s,r),l=!0),!l&&!r.shared||l&&n){const E=this.freshName();let N,ae;this.isClosureCompilerEnabled&&Pk(t)?(N=new ui([],[new Ec(t)]),ae=zs(E).callFn([])):(N=t,ae=zs(E)),this.statements.push(new al(E,N,xc,el.Final)),r.fixup(ae)}return r}getSharedConstant(t,n){const s=t.keyOf(n);if(!this.sharedConstants.has(s)){const r=this.freshName();this.sharedConstants.set(s,zs(r)),this.statements.push(t.toSharedConstantDeclaration(r,n))}return this.sharedConstants.get(s)}getLiteralFactory(t){if(t instanceof Er){const n=t.entries.map(r=>r.isConstant()?r:Ik),s=u0.INSTANCE.keyOf(hr(n));return this._getLiteralFactory(s,t.entries,r=>hr(r))}{const n=_l(t.entries.map(r=>({key:r.key,value:r.value.isConstant()?r.value:Ik,quoted:r.quoted}))),s=u0.INSTANCE.keyOf(n);return this._getLiteralFactory(s,t.entries.map(r=>r.value),r=>_l(r.map((l,E)=>({key:t.entries[E].key,value:l,quoted:t.entries[E].quoted}))))}}getSharedFunctionReference(t,n,s=!0){const r=t instanceof _i;for(const E of this.statements)if(r&&E instanceof al&&E.value?.isEquivalent(t)||!r&&E instanceof W_&&t instanceof ui&&t.isEquivalent(E))return zs(E.name);const l=s?this.uniqueName(n):n;return this.statements.push(t instanceof ui?t.toDeclStmt(l,el.Final):new al(l,t,xc,el.Final,t.sourceSpan)),zs(l)}_getLiteralFactory(t,n,s){let r=this.literalFactories.get(t);const l=n.filter(E=>!E.isConstant());if(!r){const E=n.map((dt,Kt)=>dt.isConstant()?this.getConstLiteral(dt,!0):zs(`a${Kt}`)),ae=Na(E.filter(f2).map(dt=>new Nn(dt.name,$d)),s(E),xc),ze=this.freshName();this.statements.push(new al(ze,ae,xc,el.Final)),r=zs(ze),this.literalFactories.set(t,r)}return{literalFactory:r,literalFactoryArguments:l}}uniqueName(t,n=!0){const s=this._claimedNames.get(t)??0,r=0!==s||n?`${t}${s}`:`${t}`;return this._claimedNames.set(t,s+1),r}freshName(){return this.uniqueName("_c")}}class u0{static INSTANCE=new u0;keyOf(t){if(t instanceof qa&&"string"==typeof t.value)return`"${t.value}"`;if(t instanceof qa)return String(t.value);if(t instanceof Er){const n=[];for(const s of t.entries)n.push(this.keyOf(s));return`[${n.join(",")}]`}if(t instanceof Rr){const n=[];for(const s of t.entries){let r=s.key;s.quoted&&(r=`"${r}"`),n.push(r+":"+this.keyOf(s.value))}return`{${n.join(",")}}`}if(t instanceof $e)return`import("${t.value.moduleName}", ${t.value.name})`;if(t instanceof ld)return`read(${t.name})`;if(t instanceof dm)return`typeof(${this.keyOf(t.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${t.constructor.name}`)}}function f2(o){return o instanceof ld}function Pk(o){return o instanceof qa&&"string"==typeof o.value&&o.value.length>=50}const Li="@angular/core";let oi=(()=>class o{static NEW_METHOD="factory";static TRANSFORM_METHOD="transform";static PATCH_DEPS="patchedDeps";static core={name:null,moduleName:Li};static namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:Li};static namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:Li};static namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:Li};static element={name:"\u0275\u0275element",moduleName:Li};static elementStart={name:"\u0275\u0275elementStart",moduleName:Li};static elementEnd={name:"\u0275\u0275elementEnd",moduleName:Li};static domElement={name:"\u0275\u0275domElement",moduleName:Li};static domElementStart={name:"\u0275\u0275domElementStart",moduleName:Li};static domElementEnd={name:"\u0275\u0275domElementEnd",moduleName:Li};static domElementContainer={name:"\u0275\u0275domElementContainer",moduleName:Li};static domElementContainerStart={name:"\u0275\u0275domElementContainerStart",moduleName:Li};static domElementContainerEnd={name:"\u0275\u0275domElementContainerEnd",moduleName:Li};static domTemplate={name:"\u0275\u0275domTemplate",moduleName:Li};static domListener={name:"\u0275\u0275domListener",moduleName:Li};static advance={name:"\u0275\u0275advance",moduleName:Li};static syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:Li};static syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:Li};static attribute={name:"\u0275\u0275attribute",moduleName:Li};static classProp={name:"\u0275\u0275classProp",moduleName:Li};static elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:Li};static elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:Li};static elementContainer={name:"\u0275\u0275elementContainer",moduleName:Li};static styleMap={name:"\u0275\u0275styleMap",moduleName:Li};static classMap={name:"\u0275\u0275classMap",moduleName:Li};static styleProp={name:"\u0275\u0275styleProp",moduleName:Li};static interpolate={name:"\u0275\u0275interpolate",moduleName:Li};static interpolate1={name:"\u0275\u0275interpolate1",moduleName:Li};static interpolate2={name:"\u0275\u0275interpolate2",moduleName:Li};static interpolate3={name:"\u0275\u0275interpolate3",moduleName:Li};static interpolate4={name:"\u0275\u0275interpolate4",moduleName:Li};static interpolate5={name:"\u0275\u0275interpolate5",moduleName:Li};static interpolate6={name:"\u0275\u0275interpolate6",moduleName:Li};static interpolate7={name:"\u0275\u0275interpolate7",moduleName:Li};static interpolate8={name:"\u0275\u0275interpolate8",moduleName:Li};static interpolateV={name:"\u0275\u0275interpolateV",moduleName:Li};static nextContext={name:"\u0275\u0275nextContext",moduleName:Li};static resetView={name:"\u0275\u0275resetView",moduleName:Li};static templateCreate={name:"\u0275\u0275template",moduleName:Li};static defer={name:"\u0275\u0275defer",moduleName:Li};static deferWhen={name:"\u0275\u0275deferWhen",moduleName:Li};static deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:Li};static deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:Li};static deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:Li};static deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:Li};static deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:Li};static deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:Li};static deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:Li};static deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:Li};static deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:Li};static deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:Li};static deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:Li};static deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:Li};static deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:Li};static deferHydrateWhen={name:"\u0275\u0275deferHydrateWhen",moduleName:Li};static deferHydrateNever={name:"\u0275\u0275deferHydrateNever",moduleName:Li};static deferHydrateOnIdle={name:"\u0275\u0275deferHydrateOnIdle",moduleName:Li};static deferHydrateOnImmediate={name:"\u0275\u0275deferHydrateOnImmediate",moduleName:Li};static deferHydrateOnTimer={name:"\u0275\u0275deferHydrateOnTimer",moduleName:Li};static deferHydrateOnHover={name:"\u0275\u0275deferHydrateOnHover",moduleName:Li};static deferHydrateOnInteraction={name:"\u0275\u0275deferHydrateOnInteraction",moduleName:Li};static deferHydrateOnViewport={name:"\u0275\u0275deferHydrateOnViewport",moduleName:Li};static deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:Li};static conditionalCreate={name:"\u0275\u0275conditionalCreate",moduleName:Li};static conditionalBranchCreate={name:"\u0275\u0275conditionalBranchCreate",moduleName:Li};static conditional={name:"\u0275\u0275conditional",moduleName:Li};static repeater={name:"\u0275\u0275repeater",moduleName:Li};static repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:Li};static repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:Li};static repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:Li};static componentInstance={name:"\u0275\u0275componentInstance",moduleName:Li};static text={name:"\u0275\u0275text",moduleName:Li};static enableBindings={name:"\u0275\u0275enableBindings",moduleName:Li};static disableBindings={name:"\u0275\u0275disableBindings",moduleName:Li};static getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:Li};static textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:Li};static textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:Li};static textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:Li};static textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:Li};static textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:Li};static textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:Li};static textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:Li};static textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:Li};static textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:Li};static textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:Li};static restoreView={name:"\u0275\u0275restoreView",moduleName:Li};static pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:Li};static pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:Li};static pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:Li};static pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:Li};static pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:Li};static pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:Li};static pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:Li};static pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:Li};static pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:Li};static pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:Li};static pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:Li};static pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:Li};static pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:Li};static pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:Li};static pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:Li};static domProperty={name:"\u0275\u0275domProperty",moduleName:Li};static ariaProperty={name:"\u0275\u0275ariaProperty",moduleName:Li};static property={name:"\u0275\u0275property",moduleName:Li};static animationEnterListener={name:"\u0275\u0275animateEnterListener",moduleName:Li};static animationLeaveListener={name:"\u0275\u0275animateLeaveListener",moduleName:Li};static animationEnter={name:"\u0275\u0275animateEnter",moduleName:Li};static animationLeave={name:"\u0275\u0275animateLeave",moduleName:Li};static i18n={name:"\u0275\u0275i18n",moduleName:Li};static i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:Li};static i18nExp={name:"\u0275\u0275i18nExp",moduleName:Li};static i18nStart={name:"\u0275\u0275i18nStart",moduleName:Li};static i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:Li};static i18nApply={name:"\u0275\u0275i18nApply",moduleName:Li};static i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:Li};static pipe={name:"\u0275\u0275pipe",moduleName:Li};static projection={name:"\u0275\u0275projection",moduleName:Li};static projectionDef={name:"\u0275\u0275projectionDef",moduleName:Li};static reference={name:"\u0275\u0275reference",moduleName:Li};static inject={name:"\u0275\u0275inject",moduleName:Li};static injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:Li};static directiveInject={name:"\u0275\u0275directiveInject",moduleName:Li};static invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:Li};static invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:Li};static templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:Li};static forwardRef={name:"forwardRef",moduleName:Li};static resolveForwardRef={name:"resolveForwardRef",moduleName:Li};static replaceMetadata={name:"\u0275\u0275replaceMetadata",moduleName:Li};static getReplaceMetadataURL={name:"\u0275\u0275getReplaceMetadataURL",moduleName:Li};static \u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:Li};static declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:Li};static InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:Li};static resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:Li};static resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:Li};static resolveBody={name:"\u0275\u0275resolveBody",moduleName:Li};static getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:Li};static defineComponent={name:"\u0275\u0275defineComponent",moduleName:Li};static declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:Li};static setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:Li};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:Li};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:Li};static ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:Li};static FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:Li};static declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:Li};static FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:Li};static defineDirective={name:"\u0275\u0275defineDirective",moduleName:Li};static declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:Li};static DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:Li};static InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:Li};static InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:Li};static defineInjector={name:"\u0275\u0275defineInjector",moduleName:Li};static declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:Li};static NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:Li};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:Li};static defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:Li};static declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:Li};static setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:Li};static registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:Li};static PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:Li};static definePipe={name:"\u0275\u0275definePipe",moduleName:Li};static declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:Li};static declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:Li};static declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:Li};static setClassMetadata={name:"\u0275setClassMetadata",moduleName:Li};static setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:Li};static setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:Li};static queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:Li};static viewQuery={name:"\u0275\u0275viewQuery",moduleName:Li};static loadQuery={name:"\u0275\u0275loadQuery",moduleName:Li};static contentQuery={name:"\u0275\u0275contentQuery",moduleName:Li};static viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:Li};static contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:Li};static queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:Li};static twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:Li};static twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:Li};static twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:Li};static declareLet={name:"\u0275\u0275declareLet",moduleName:Li};static storeLet={name:"\u0275\u0275storeLet",moduleName:Li};static readContextLet={name:"\u0275\u0275readContextLet",moduleName:Li};static attachSourceLocations={name:"\u0275\u0275attachSourceLocations",moduleName:Li};static NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:Li};static InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:Li};static CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:Li};static ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:Li};static HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:Li};static ExternalStylesFeature={name:"\u0275\u0275ExternalStylesFeature",moduleName:Li};static AnimationsFeature={name:"\u0275\u0275AnimationsFeature",moduleName:Li};static listener={name:"\u0275\u0275listener",moduleName:Li};static getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:Li};static sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:Li};static sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:Li};static sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:Li};static sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:Li};static sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:Li};static sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:Li};static trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:Li};static trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:Li};static validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:Li};static InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:Li};static UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:Li};static unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:Li};static assertType={name:"\u0275assertType",moduleName:Li}})();const m2=/-+([a-z0-9])/g;function Rk(o,t,n){const s=o.indexOf(t);return-1==s?n:[o.slice(0,s).trim(),o.slice(s+1).trim()]}function kk(o){if("string"==typeof o)return o;if(Array.isArray(o))return`[${o.map(kk).join(", ")}]`;if(null==o)return""+o;const t=o.overriddenName||o.name;if(t)return`${t}`;if(!o.toString)return"object";const n=o.toString();if(null==n)return""+n;const s=n.indexOf("\n");return s>=0?n.slice(0,s):n}const BS=globalThis,E2=/^([1-9]|1[0-8])\./;function Bk(o){return!!o.startsWith("0.")||!E2.test(o)}class S2{file;sourcesContent=new Map;lines=[];lastCol0=0;hasMappings=!1;constructor(t=null){this.file=t}addSource(t,n=null){return this.sourcesContent.has(t)||this.sourcesContent.set(t,n),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(t,n,s,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=n&&!this.sourcesContent.has(n))throw new Error(`Unknown source file "${n}"`);if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(n&&(null==s||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:n,sourceLine0:s,sourceCol0:r}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;const t=new Map,n=[],s=[];Array.from(this.sourcesContent.keys()).forEach((ze,dt)=>{t.set(ze,dt),n.push(ze),s.push(this.sourcesContent.get(ze)||null)});let r="",l=0,E=0,N=0,ae=0;return this.lines.forEach(ze=>{l=0,r+=ze.map(dt=>{let Kt=YI(dt.col0-l);return l=dt.col0,null!=dt.sourceUrl&&(Kt+=YI(t.get(dt.sourceUrl)-E),E=t.get(dt.sourceUrl),Kt+=YI(dt.sourceLine0-N),N=dt.sourceLine0,Kt+=YI(dt.sourceCol0-ae),ae=dt.sourceCol0),Kt}).join(","),r+=";"}),r=r.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:s,mappings:r}}toJsComment(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function D2(o){let t="";const n=function b2(o){let t=[];for(let n=0;n<o.length;n++){let s=o.charCodeAt(n);if(s>=55296&&s<=56319&&o.length>n+1){const r=o.charCodeAt(n+1);r>=56320&&r<=57343&&(n++,s=(s-55296<<10)+r-56320+65536)}s<=127?t.push(s):s<=2047?t.push(s>>6&31|192,63&s|128):s<=65535?t.push(s>>12|224,s>>6&63|128,63&s|128):s<=2097151&&t.push(s>>18&7|240,s>>12&63|128,s>>6&63|128,63&s|128)}return t}(o);for(let s=0;s<n.length;){const r=n[s++],l=s<n.length?n[s++]:null,E=s<n.length?n[s++]:null;t+=FS(r>>2),t+=FS((3&r)<<4|(null===l?0:l>>4)),t+=null===l?"=":FS((15&l)<<2|(null===E?0:E>>6)),t+=null===l||null===E?"=":FS(63&E)}return t}(JSON.stringify(this,null,0)):""}}function YI(o){o=o<0?1+(-o<<1):o<<1;let t="";do{let n=31&o;(o>>=5)>0&&(n|=32),t+=FS(n)}while(o>0);return t}const T2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function FS(o){if(o<0||o>=64)throw new Error("Can only encode value in the range [0, 63]");return T2[o]}const A2=/'|\\|\n|\r|\$/g,I2=/^[$A-Z_][0-9A-Z_$]*$/i;class Fk{indent;partsLength=0;parts=[];srcSpans=[];constructor(t){this.indent=t}}const M2=new Map([[Uo.And,"&&"],[Uo.Bigger,">"],[Uo.BiggerEquals,">="],[Uo.BitwiseOr,"|"],[Uo.BitwiseAnd,"&"],[Uo.Divide,"/"],[Uo.Assign,"="],[Uo.Equals,"=="],[Uo.Identical,"==="],[Uo.Lower,"<"],[Uo.LowerEquals,"<="],[Uo.Minus,"-"],[Uo.Modulo,"%"],[Uo.Exponentiation,"**"],[Uo.Multiply,"*"],[Uo.NotEquals,"!="],[Uo.NotIdentical,"!=="],[Uo.NullishCoalesce,"??"],[Uo.Or,"||"],[Uo.Plus,"+"],[Uo.In,"in"],[Uo.AdditionAssignment,"+="],[Uo.SubtractionAssignment,"-="],[Uo.MultiplicationAssignment,"*="],[Uo.DivisionAssignment,"/="],[Uo.RemainderAssignment,"%="],[Uo.ExponentiationAssignment,"**="],[Uo.AndAssignment,"&&="],[Uo.OrAssignment,"||="],[Uo.NullishCoalesceAssignment,"??="]]);class bP{_indent;static createRoot(){return new bP(0)}_lines;constructor(t){this._indent=t,this._lines=[new Fk(t)]}get _currentLine(){return this._lines[this._lines.length-1]}println(t,n=""){this.print(t||null,n,!0)}lineIsEmpty(){return 0===this._currentLine.parts.length}lineLength(){return 2*this._currentLine.indent+this._currentLine.partsLength}print(t,n,s=!1){n.length>0&&(this._currentLine.parts.push(n),this._currentLine.partsLength+=n.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),s&&this._lines.push(new Fk(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map(t=>t.parts.length>0?Nk(t.indent)+t.parts.join(""):"").join("\n")}toSourceMapGenerator(t,n=0){const s=new S2(t);let r=!1;const l=()=>{r||(s.addSource(t," ").addMapping(0,t,0,0),r=!0)};for(let E=0;E<n;E++)s.addLine(),l();return this.sourceLines.forEach((E,N)=>{s.addLine();const ae=E.srcSpans,ze=E.parts;let dt=2*E.indent,Kt=0;for(;Kt<ae.length&&!ae[Kt];)dt+=ze[Kt].length,Kt++;for(Kt<ae.length&&0===N&&0===dt?r=!0:l();Kt<ae.length;){const Vn=ae[Kt],ci=Vn.start.file,Vi=Vn.start.line,Di=Vn.start.col;for(s.addSource(ci.url,ci.content).addMapping(dt,ci.url,Vi,Di),dt+=ze[Kt].length,Kt++;Kt<ae.length&&(Vn===ae[Kt]||!ae[Kt]);)dt+=ze[Kt].length,Kt++}}),s}spanOf(t,n){const s=this._lines[t];if(s){let r=n-Nk(s.indent).length;for(let l=0;l<s.parts.length;l++){const E=s.parts[l];if(E.length>r)return s.srcSpans[l];r-=E.length}}return null}get sourceLines(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines}}class P2{_escapeDollarInStrings;lastIfCondition=null;constructor(t){this._escapeDollarInStrings=t}printLeadingComments(t,n){if(void 0!==t.leadingComments)for(const s of t.leadingComments)s instanceof CP?n.print(t,`/*${s.toString()}*/`,s.trailingNewline):s.multiline?n.print(t,`/* ${s.text} */`,s.trailingNewline):s.text.split("\n").forEach(r=>{n.println(t,`// ${r}`)})}visitExpressionStmt(t,n){return this.printLeadingComments(t,n),t.expr.visitExpression(this,n),n.println(t,";"),null}visitReturnStmt(t,n){return this.printLeadingComments(t,n),n.print(t,"return "),t.value.visitExpression(this,n),n.println(t,";"),null}visitIfStmt(t,n){this.printLeadingComments(t,n),n.print(t,"if ("),this.lastIfCondition=t.condition,t.condition.visitExpression(this,n),this.lastIfCondition=null,n.print(t,") {");const s=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!s?(n.print(t," "),this.visitAllStatements(t.trueCase,n),n.removeEmptyLastLine(),n.print(t," ")):(n.println(),n.incIndent(),this.visitAllStatements(t.trueCase,n),n.decIndent(),s&&(n.println(t,"} else {"),n.incIndent(),this.visitAllStatements(t.falseCase,n),n.decIndent())),n.println(t,"}"),null}visitInvokeFunctionExpr(t,n){const s=t.fn instanceof _i;return s&&n.print(t.fn,"("),t.fn.visitExpression(this,n),s&&n.print(t.fn,")"),n.print(t,"("),this.visitAllExpressions(t.args,n,","),n.print(t,")"),null}visitTaggedTemplateLiteralExpr(t,n){return t.tag.visitExpression(this,n),t.template.visitExpression(this,n),null}visitTemplateLiteralExpr(t,n){n.print(t,"`");for(let s=0;s<t.elements.length;s++){t.elements[s].visitExpression(this,n);const r=s<t.expressions.length?t.expressions[s]:null;null!==r&&(n.print(r,"${"),r.visitExpression(this,n),n.print(r,"}"))}n.print(t,"`")}visitTemplateLiteralElementExpr(t,n){n.print(t,t.rawText)}visitWrappedNodeExpr(t,n){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")}visitTypeofExpr(t,n){n.print(t,"typeof "),t.expr.visitExpression(this,n)}visitVoidExpr(t,n){n.print(t,"void "),t.expr.visitExpression(this,n)}visitReadVarExpr(t,n){return n.print(t,t.name),null}visitInstantiateExpr(t,n){return n.print(t,"new "),t.classExpr.visitExpression(this,n),n.print(t,"("),this.visitAllExpressions(t.args,n,","),n.print(t,")"),null}visitLiteralExpr(t,n){const s=t.value;return n.print(t,"string"==typeof s?sy(s,this._escapeDollarInStrings):`${s}`),null}visitLocalizedString(t,n){const s=t.serializeI18nHead();n.print(t,"$localize `"+s.raw);for(let r=1;r<t.messageParts.length;r++)n.print(t,"${"),t.expressions[r-1].visitExpression(this,n),n.print(t,`}${t.serializeI18nTemplatePart(r).raw}`);return n.print(t,"`"),null}visitConditionalExpr(t,n){return n.print(t,"("),t.condition.visitExpression(this,n),n.print(t,"? "),t.trueCase.visitExpression(this,n),n.print(t,": "),t.falseCase.visitExpression(this,n),n.print(t,")"),null}visitDynamicImportExpr(t,n){n.print(t,`import(${t.url})`)}visitNotExpr(t,n){return n.print(t,"!"),t.condition.visitExpression(this,n),null}visitUnaryOperatorExpr(t,n){let s;switch(t.operator){case iy.Plus:s="+";break;case iy.Minus:s="-";break;default:throw new Error(`Unknown operator ${t.operator}`)}const r=t!==this.lastIfCondition;return r&&n.print(t,"("),n.print(t,s),t.expr.visitExpression(this,n),r&&n.print(t,")"),null}visitBinaryOperatorExpr(t,n){const s=M2.get(t.operator);if(!s)throw new Error(`Unknown operator ${t.operator}`);const r=t!==this.lastIfCondition;return r&&n.print(t,"("),t.lhs.visitExpression(this,n),n.print(t,` ${s} `),t.rhs.visitExpression(this,n),r&&n.print(t,")"),null}visitReadPropExpr(t,n){return t.receiver.visitExpression(this,n),n.print(t,"."),n.print(t,t.name),null}visitReadKeyExpr(t,n){return t.receiver.visitExpression(this,n),n.print(t,"["),t.index.visitExpression(this,n),n.print(t,"]"),null}visitLiteralArrayExpr(t,n){return n.print(t,"["),this.visitAllExpressions(t.entries,n,","),n.print(t,"]"),null}visitLiteralMapExpr(t,n){return n.print(t,"{"),this.visitAllObjects(s=>{n.print(t,`${sy(s.key,this._escapeDollarInStrings,s.quoted)}:`),s.value.visitExpression(this,n)},t.entries,n,","),n.print(t,"}"),null}visitCommaExpr(t,n){return n.print(t,"("),this.visitAllExpressions(t.parts,n,","),n.print(t,")"),null}visitParenthesizedExpr(t,n){t.expr.visitExpression(this,n)}visitAllExpressions(t,n,s){this.visitAllObjects(r=>r.visitExpression(this,n),t,n,s)}visitAllObjects(t,n,s,r){let l=!1;for(let E=0;E<n.length;E++)E>0&&(s.lineLength()>80?(s.print(null,r,!0),l||(s.incIndent(),s.incIndent(),l=!0)):s.print(null,r,!1)),t(n[E]);l&&(s.decIndent(),s.decIndent())}visitAllStatements(t,n){t.forEach(s=>s.visitStatement(this,n))}}function sy(o,t,n=!0){if(null==o)return null;const s=o.replace(A2,(...l)=>"$"==l[0]?t?"\\$":"$":"\n"==l[0]?"\\n":"\r"==l[0]?"\\r":`\\${l[0]}`);return n||!I2.test(s)?`'${s}'`:s}function Nk(o){let t="";for(let n=0;n<o;n++)t+="  ";return t}function QI(o,t){if(0===t)return ql(o);const n=[];for(let s=0;s<t;s++)n.push($d);return ql(o,void 0,n)}function R2(o,t){const n=sy(t,!1,!1);return n!==t?`${o}[${n}]`:`${o}.${t}`}function ec(o){const t=new yr(o);return{value:t,type:t}}function tg(o,t){const n=hr(o.map(s=>s.value));return t?Na([],n):n}function xP(o,t){return{expression:o,forwardRef:t}}function h0({expression:o,forwardRef:t}){switch(t){case 0:case 1:return o;case 2:return function EP(o){return ns(oi.forwardRef).callFn([Na([],o)])}(o)}}var ZI=function(o){return o[o.Class=0]="Class",o[o.Function=1]="Function",o}(ZI||{});function ry(o){const t=zs("__ngFactoryType__");let n=null;const s=$k(o)?t:new jo(Uo.Or,t,o.type.value);let r=null;null!==o.deps?"invalid"!==o.deps&&(r=new hm(s,Hk(o.deps,o.target))):(n=zs(`\u0275${o.name}_BaseFactory`),r=n.callFn([s]));const l=[];let E=null;function N(ze){const dt=zs("__ngConditionalFactory__");l.push(new al(dt.name,cd,xc));const Kt=null!==r?dt.set(r).toStmt():ns(oi.invalidFactory).callFn([]).toStmt();return l.push(kS(t,[Kt],[dt.set(ze).toStmt()])),dt}if($k(o)){const ze=Hk(o.delegateDeps,o.target);E=N(new(o.delegateType===ZI.Class?hm:ml)(o.delegate,ze))}else E=function L2(o){return void 0!==o.expression}(o)?N(o.expression):r;if(null===E)l.push(ns(oi.invalidFactory).callFn([]).toStmt());else if(null!==n){const ze=ns(oi.getInheritedFactory).callFn([o.type.value]),dt=new jo(Uo.Or,n,n.set(ze));l.push(new Ec(dt.callFn([s])))}else l.push(new Ec(E));let ae=fm([new Nn(t.name,$d)],l,xc,void 0,`${o.name}_Factory`);return null!==n&&(ae=Na([],[new al(n.name),new Ec(ae)]).callFn([],void 0,!0)),{expression:ae,statements:[],type:Vk(o)}}function Vk(o){const t=null!==o.deps&&"invalid"!==o.deps?function F2(o){let t=!1;const n=o.map(s=>{const r=function N2(o){const t=[];return null!==o.attributeNameType&&t.push({key:"attribute",value:o.attributeNameType,quoted:!1}),o.optional&&t.push({key:"optional",value:Ei(!0),quoted:!1}),o.host&&t.push({key:"host",value:Ei(!0),quoted:!1}),o.self&&t.push({key:"self",value:Ei(!0),quoted:!1}),o.skipSelf&&t.push({key:"skipSelf",value:Ei(!0),quoted:!1}),t.length>0?_l(t):null}(s);return null!==r?(t=!0,r):Ei(null)});return t?ql(hr(n)):Ou}(o.deps):Ou;return ql(ns(oi.FactoryDeclaration,[QI(o.type.type,o.typeArgumentCount),t]))}function Hk(o,t){return o.map((n,s)=>function B2(o,t,n){if(null===o.token)return ns(oi.invalidFactoryDep).callFn([Ei(n)]);if(null===o.attributeNameType){const s=(o.self?2:0)|(o.skipSelf?4:0)|(o.host?1:0)|(o.optional?8:0)|(t===rp.Pipe?16:0);let r=0!==s||o.optional?Ei(s):null;const l=[o.token];r&&l.push(r);const E=function V2(o){switch(o){case rp.Component:case rp.Directive:case rp.Pipe:return oi.directiveInject;default:return oi.inject}}(t);return ns(E).callFn(l)}return ns(oi.injectAttribute).callFn([o.token])}(n,t,s))}function $k(o){return void 0!==o.delegateType}class LS{start;end;constructor(t,n){this.start=t,this.end=n}toAbsolute(t){return new ig(t+this.start,t+this.end)}}class ja{span;sourceSpan;constructor(t,n){this.span=t,this.sourceSpan=n}toString(){return"AST"}}class OP extends ja{nameSpan;constructor(t,n,s){super(t,n),this.nameSpan=s}}let wu=class extends ja{visit(t,n=null){}};class z_ extends ja{visit(t,n=null){return t.visitImplicitReceiver(this,n)}}class VS extends z_{visit(t,n=null){return t.visitThisReceiver?.(this,n)}}class JI extends ja{expressions;constructor(t,n,s){super(t,n),this.expressions=s}visit(t,n=null){return t.visitChain(this,n)}}class Uk extends ja{condition;trueExp;falseExp;constructor(t,n,s,r,l){super(t,n),this.condition=s,this.trueExp=r,this.falseExp=l}visit(t,n=null){return t.visitConditional(this,n)}}class ay extends OP{receiver;name;constructor(t,n,s,r,l){super(t,n,s),this.receiver=r,this.name=l}visit(t,n=null){return t.visitPropertyRead(this,n)}}class wP extends OP{receiver;name;constructor(t,n,s,r,l){super(t,n,s),this.receiver=r,this.name=l}visit(t,n=null){return t.visitSafePropertyRead(this,n)}}class HS extends ja{receiver;key;constructor(t,n,s,r){super(t,n),this.receiver=s,this.key=r}visit(t,n=null){return t.visitKeyedRead(this,n)}}class SP extends ja{receiver;key;constructor(t,n,s,r){super(t,n),this.receiver=s,this.key=r}visit(t,n=null){return t.visitSafeKeyedRead(this,n)}}var qI=function(o){return o[o.ReferencedByName=0]="ReferencedByName",o[o.ReferencedDirectly=1]="ReferencedDirectly",o}(qI||{});class jk extends OP{exp;name;args;type;constructor(t,n,s,r,l,E,N){super(t,n,N),this.exp=s,this.name=r,this.args=l,this.type=E}visit(t,n=null){return t.visitPipe(this,n)}}class ng extends ja{value;constructor(t,n,s){super(t,n),this.value=s}visit(t,n=null){return t.visitLiteralPrimitive(this,n)}}class Gk extends ja{expressions;constructor(t,n,s){super(t,n),this.expressions=s}visit(t,n=null){return t.visitLiteralArray(this,n)}}class Wk extends ja{keys;values;constructor(t,n,s,r){super(t,n),this.keys=s,this.values=r}visit(t,n=null){return t.visitLiteralMap(this,n)}}let $S=class extends ja{strings;expressions;constructor(t,n,s,r){super(t,n),this.strings=s,this.expressions=r}visit(t,n=null){return t.visitInterpolation(this,n)}};class vh extends ja{operation;left;right;constructor(t,n,s,r,l){super(t,n),this.operation=s,this.left=r,this.right=l}visit(t,n=null){return t.visitBinary(this,n)}static isAssignmentOperation(t){return"="===t||"+="===t||"-="===t||"*="===t||"/="===t||"%="===t||"**="===t||"&&="===t||"||="===t||"??="===t}}class ly extends vh{operator;expr;left=null;right=null;operation=null;static createMinus(t,n,s){return new ly(t,n,"-",s,"-",new ng(t,n,0),s)}static createPlus(t,n,s){return new ly(t,n,"+",s,"-",s,new ng(t,n,0))}constructor(t,n,s,r,l,E,N){super(t,n,l,E,N),this.operator=s,this.expr=r}visit(t,n=null){return void 0!==t.visitUnary?t.visitUnary(this,n):t.visitBinary(this,n)}}class DP extends ja{expression;constructor(t,n,s){super(t,n),this.expression=s}visit(t,n=null){return t.visitPrefixNot(this,n)}}class TP extends ja{expression;constructor(t,n,s){super(t,n),this.expression=s}visit(t,n=null){return t.visitTypeofExpression(this,n)}}class AP extends ja{expression;constructor(t,n,s){super(t,n),this.expression=s}visit(t,n=null){return t.visitVoidExpression(this,n)}}class IP extends ja{expression;constructor(t,n,s){super(t,n),this.expression=s}visit(t,n=null){return t.visitNonNullAssert(this,n)}}class eM extends ja{receiver;args;argumentSpan;constructor(t,n,s,r,l){super(t,n),this.receiver=s,this.args=r,this.argumentSpan=l}visit(t,n=null){return t.visitCall(this,n)}}class zk extends ja{receiver;args;argumentSpan;constructor(t,n,s,r,l){super(t,n),this.receiver=s,this.args=r,this.argumentSpan=l}visit(t,n=null){return t.visitSafeCall(this,n)}}class MP extends ja{tag;template;constructor(t,n,s,r){super(t,n),this.tag=s,this.template=r}visit(t,n){return t.visitTaggedTemplateLiteral(this,n)}}class PP extends ja{elements;expressions;constructor(t,n,s,r){super(t,n),this.elements=s,this.expressions=r}visit(t,n){return t.visitTemplateLiteral(this,n)}}class Kk extends ja{text;constructor(t,n,s){super(t,n),this.text=s}visit(t,n){return t.visitTemplateLiteralElement(this,n)}}class RP extends ja{expression;constructor(t,n,s){super(t,n),this.expression=s}visit(t,n){return t.visitParenthesizedExpression(this,n)}}class ig{start;end;constructor(t,n){this.start=t,this.end=n}}class og extends ja{ast;source;location;errors;constructor(t,n,s,r,l){super(new LS(0,null===n?0:n.length),new ig(r,null===n?r:r+n.length)),this.ast=t,this.source=n,this.location=s,this.errors=l}visit(t,n=null){return t.visitASTWithSource?t.visitASTWithSource(this,n):this.ast.visit(t,n)}toString(){return`${this.source} in ${this.location}`}}class kP{sourceSpan;key;value;constructor(t,n,s){this.sourceSpan=t,this.key=n,this.value=s}}class H2{sourceSpan;key;value;constructor(t,n,s){this.sourceSpan=t,this.key=n,this.value=s}}class Xk{visit(t,n){t.visit(this,n)}visitUnary(t,n){this.visit(t.expr,n)}visitBinary(t,n){this.visit(t.left,n),this.visit(t.right,n)}visitChain(t,n){this.visitAll(t.expressions,n)}visitConditional(t,n){this.visit(t.condition,n),this.visit(t.trueExp,n),this.visit(t.falseExp,n)}visitPipe(t,n){this.visit(t.exp,n),this.visitAll(t.args,n)}visitImplicitReceiver(t,n){}visitThisReceiver(t,n){}visitInterpolation(t,n){this.visitAll(t.expressions,n)}visitKeyedRead(t,n){this.visit(t.receiver,n),this.visit(t.key,n)}visitLiteralArray(t,n){this.visitAll(t.expressions,n)}visitLiteralMap(t,n){this.visitAll(t.values,n)}visitLiteralPrimitive(t,n){}visitPrefixNot(t,n){this.visit(t.expression,n)}visitTypeofExpression(t,n){this.visit(t.expression,n)}visitVoidExpression(t,n){this.visit(t.expression,n)}visitNonNullAssert(t,n){this.visit(t.expression,n)}visitPropertyRead(t,n){this.visit(t.receiver,n)}visitSafePropertyRead(t,n){this.visit(t.receiver,n)}visitSafeKeyedRead(t,n){this.visit(t.receiver,n),this.visit(t.key,n)}visitCall(t,n){this.visit(t.receiver,n),this.visitAll(t.args,n)}visitSafeCall(t,n){this.visit(t.receiver,n),this.visitAll(t.args,n)}visitTemplateLiteral(t,n){for(let s=0;s<t.elements.length;s++){this.visit(t.elements[s],n);const r=s<t.expressions.length?t.expressions[s]:null;null!==r&&this.visit(r,n)}}visitTemplateLiteralElement(t,n){}visitTaggedTemplateLiteral(t,n){this.visit(t.tag,n),this.visit(t.template,n)}visitParenthesizedExpression(t,n){this.visit(t.expression,n)}visitAll(t,n){for(const s of t)this.visit(s,n)}}class tM{name;expression;type;sourceSpan;keySpan;valueSpan;isLiteral;isLegacyAnimation;isAnimation;constructor(t,n,s,r,l,E){this.name=t,this.expression=n,this.type=s,this.sourceSpan=r,this.keySpan=l,this.valueSpan=E,this.isLiteral=this.type===tf.LITERAL_ATTR,this.isLegacyAnimation=this.type===tf.LEGACY_ANIMATION,this.isAnimation=this.type===tf.ANIMATION}}var tf=function(o){return o[o.DEFAULT=0]="DEFAULT",o[o.LITERAL_ATTR=1]="LITERAL_ATTR",o[o.LEGACY_ANIMATION=2]="LEGACY_ANIMATION",o[o.TWO_WAY=3]="TWO_WAY",o[o.ANIMATION=4]="ANIMATION",o}(tf||{}),jd=function(o){return o[o.Regular=0]="Regular",o[o.LegacyAnimation=1]="LegacyAnimation",o[o.TwoWay=2]="TwoWay",o[o.Animation=3]="Animation",o}(jd||{});class Yk{name;targetOrPhase;type;handler;sourceSpan;handlerSpan;keySpan;constructor(t,n,s,r,l,E,N){this.name=t,this.targetOrPhase=n,this.type=s,this.handler=r,this.sourceSpan=l,this.handlerSpan=E,this.keySpan=N}}class $2{name;value;sourceSpan;keySpan;valueSpan;constructor(t,n,s,r,l){this.name=t,this.value=n,this.sourceSpan=s,this.keySpan=r,this.valueSpan=l}}var zr=function(o){return o[o.Property=0]="Property",o[o.Attribute=1]="Attribute",o[o.Class=2]="Class",o[o.Style=3]="Style",o[o.LegacyAnimation=4]="LegacyAnimation",o[o.TwoWay=5]="TwoWay",o[o.Animation=6]="Animation",o}(zr||{});class Qk{name;type;securityContext;value;unit;sourceSpan;keySpan;valueSpan;constructor(t,n,s,r,l,E,N,ae){this.name=t,this.type=n,this.securityContext=s,this.value=r,this.unit=l,this.sourceSpan=E,this.keySpan=N,this.valueSpan=ae}}var nf=function(o){return o[o.RAW_TEXT=0]="RAW_TEXT",o[o.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",o[o.PARSABLE_DATA=2]="PARSABLE_DATA",o}(nf||{});function sg(o,t=!0){if(":"!=o[0])return[null,o];const n=o.indexOf(":",1);if(-1===n){if(t)throw new Error(`Unsupported format "${o}" expecting ":namespace:name"`);return[null,o]}return[o.slice(1,n),o.slice(n+1)]}function Zk(o){return"ng-container"===sg(o)[1]}function BP(o){return"ng-content"===sg(o)[1]}function FP(o){return null===o?null:sg(o)[0]}function nM(o,t){return o?`:${o}:${t}`:t}let iM=class{value;sourceSpan;constructor(t,n){this.value=t,this.sourceSpan=n}visit(t){throw new Error("visit() not implemented for Comment")}},cy=class{value;sourceSpan;constructor(t,n){this.value=t,this.sourceSpan=n}visit(t){return t.visitText(this)}};class oM{value;sourceSpan;i18n;constructor(t,n,s){this.value=t,this.sourceSpan=n,this.i18n=s}visit(t){return t.visitBoundText(this)}}class sM{name;value;sourceSpan;keySpan;valueSpan;i18n;constructor(t,n,s,r,l,E){this.name=t,this.value=n,this.sourceSpan=s,this.keySpan=r,this.valueSpan=l,this.i18n=E}visit(t){return t.visitTextAttribute(this)}}class NP{name;type;securityContext;value;unit;sourceSpan;keySpan;valueSpan;i18n;constructor(t,n,s,r,l,E,N,ae,ze){this.name=t,this.type=n,this.securityContext=s,this.value=r,this.unit=l,this.sourceSpan=E,this.keySpan=N,this.valueSpan=ae,this.i18n=ze}static fromBoundElementProperty(t,n){if(void 0===t.keySpan)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${t.name}: ${t.sourceSpan}`);return new NP(t.name,t.type,t.securityContext,t.value,t.unit,t.sourceSpan,t.keySpan,t.valueSpan,n)}visit(t){return t.visitBoundAttribute(this)}}class LP{name;type;handler;target;phase;sourceSpan;handlerSpan;keySpan;constructor(t,n,s,r,l,E,N,ae){this.name=t,this.type=n,this.handler=s,this.target=r,this.phase=l,this.sourceSpan=E,this.handlerSpan=N,this.keySpan=ae}static fromParsedEvent(t){const n=t.type===jd.Regular?t.targetOrPhase:null,s=t.type===jd.LegacyAnimation?t.targetOrPhase:null;if(void 0===t.keySpan)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${t.name}: ${t.sourceSpan}`);return new LP(t.name,t.type,t.handler,n,s,t.sourceSpan,t.handlerSpan,t.keySpan)}visit(t){return t.visitBoundEvent(this)}}let sf=class{name;attributes;inputs;outputs;directives;children;references;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;isVoid;i18n;constructor(t,n,s,r,l,E,N,ae,ze,dt,Kt,Vn,ci){this.name=t,this.attributes=n,this.inputs=s,this.outputs=r,this.directives=l,this.children=E,this.references=N,this.isSelfClosing=ae,this.sourceSpan=ze,this.startSourceSpan=dt,this.endSourceSpan=Kt,this.isVoid=Vn,this.i18n=ci}visit(t){return t.visitElement(this)}};class K_{nameSpan;sourceSpan;prefetchSpan;whenOrOnSourceSpan;hydrateSpan;constructor(t,n,s,r,l){this.nameSpan=t,this.sourceSpan=n,this.prefetchSpan=s,this.whenOrOnSourceSpan=r,this.hydrateSpan=l}visit(t){return t.visitDeferredTrigger(this)}}class Jk extends K_{value;constructor(t,n,s,r,l){super(null,n,s,r,l),this.value=t}}class j2 extends K_{}class G2 extends K_{}class W2 extends K_{}class qk extends K_{reference;constructor(t,n,s,r,l,E){super(n,s,r,l,E),this.reference=t}}class z2 extends K_{delay;constructor(t,n,s,r,l,E){super(n,s,r,l,E),this.delay=t}}class eB extends K_{reference;constructor(t,n,s,r,l,E){super(n,s,r,l,E),this.reference=t}}class tB extends K_{reference;constructor(t,n,s,r,l,E){super(n,s,r,l,E),this.reference=t}}class rf{nameSpan;sourceSpan;startSourceSpan;endSourceSpan;constructor(t,n,s,r){this.nameSpan=t,this.sourceSpan=n,this.startSourceSpan=s,this.endSourceSpan=r}}class VP extends rf{children;minimumTime;i18n;constructor(t,n,s,r,l,E,N){super(s,r,l,E),this.children=t,this.minimumTime=n,this.i18n=N}visit(t){return t.visitDeferredBlockPlaceholder(this)}}class HP extends rf{children;afterTime;minimumTime;i18n;constructor(t,n,s,r,l,E,N,ae){super(r,l,E,N),this.children=t,this.afterTime=n,this.minimumTime=s,this.i18n=ae}visit(t){return t.visitDeferredBlockLoading(this)}}class $P extends rf{children;i18n;constructor(t,n,s,r,l,E){super(n,s,r,l),this.children=t,this.i18n=E}visit(t){return t.visitDeferredBlockError(this)}}class US extends rf{children;placeholder;loading;error;mainBlockSpan;i18n;triggers;prefetchTriggers;hydrateTriggers;definedTriggers;definedPrefetchTriggers;definedHydrateTriggers;constructor(t,n,s,r,l,E,N,ae,ze,dt,Kt,Vn,ci){super(ae,ze,Kt,Vn),this.children=t,this.placeholder=l,this.loading=E,this.error=N,this.mainBlockSpan=dt,this.i18n=ci,this.triggers=n,this.prefetchTriggers=s,this.hydrateTriggers=r,this.definedTriggers=Object.keys(n),this.definedPrefetchTriggers=Object.keys(s),this.definedHydrateTriggers=Object.keys(r)}visit(t){return t.visitDeferredBlock(this)}visitAll(t){this.visitTriggers(this.definedHydrateTriggers,this.hydrateTriggers,t),this.visitTriggers(this.definedTriggers,this.triggers,t),this.visitTriggers(this.definedPrefetchTriggers,this.prefetchTriggers,t),Nr(t,this.children),Nr(t,[this.placeholder,this.loading,this.error].filter(s=>null!==s))}visitTriggers(t,n,s){Nr(s,t.map(r=>n[r]))}}class nB extends rf{expression;cases;unknownBlocks;constructor(t,n,s,r,l,E,N){super(N,r,l,E),this.expression=t,this.cases=n,this.unknownBlocks=s}visit(t){return t.visitSwitchBlock(this)}}class UP extends rf{expression;children;i18n;constructor(t,n,s,r,l,E,N){super(E,s,r,l),this.expression=t,this.children=n,this.i18n=N}visit(t){return t.visitSwitchBlockCase(this)}}class rM extends rf{item;expression;trackBy;trackKeywordSpan;contextVariables;children;empty;mainBlockSpan;i18n;constructor(t,n,s,r,l,E,N,ae,ze,dt,Kt,Vn,ci){super(Vn,ae,dt,Kt),this.item=t,this.expression=n,this.trackBy=s,this.trackKeywordSpan=r,this.contextVariables=l,this.children=E,this.empty=N,this.mainBlockSpan=ze,this.i18n=ci}visit(t){return t.visitForLoopBlock(this)}}class jP extends rf{children;i18n;constructor(t,n,s,r,l,E){super(l,n,s,r),this.children=t,this.i18n=E}visit(t){return t.visitForLoopBlockEmpty(this)}}class iB extends rf{branches;constructor(t,n,s,r,l){super(l,n,s,r),this.branches=t}visit(t){return t.visitIfBlock(this)}}class jS extends rf{expression;children;expressionAlias;i18n;constructor(t,n,s,r,l,E,N,ae){super(N,r,l,E),this.expression=t,this.children=n,this.expressionAlias=s,this.i18n=ae}visit(t){return t.visitIfBlockBranch(this)}}class oB{name;sourceSpan;nameSpan;constructor(t,n,s){this.name=t,this.sourceSpan=n,this.nameSpan=s}visit(t){return t.visitUnknownBlock(this)}}let GP=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(t,n,s,r,l){this.name=t,this.value=n,this.sourceSpan=s,this.nameSpan=r,this.valueSpan=l}visit(t){return t.visitLetDeclaration(this)}},GS=class{componentName;tagName;fullName;attributes;inputs;outputs;directives;children;references;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(t,n,s,r,l,E,N,ae,ze,dt,Kt,Vn,ci,Vi){this.componentName=t,this.tagName=n,this.fullName=s,this.attributes=r,this.inputs=l,this.outputs=E,this.directives=N,this.children=ae,this.references=ze,this.isSelfClosing=dt,this.sourceSpan=Kt,this.startSourceSpan=Vn,this.endSourceSpan=ci,this.i18n=Vi}visit(t){return t.visitComponent(this)}},sB=class{name;attributes;inputs;outputs;references;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(t,n,s,r,l,E,N,ae,ze){this.name=t,this.attributes=n,this.inputs=s,this.outputs=r,this.references=l,this.sourceSpan=E,this.startSourceSpan=N,this.endSourceSpan=ae,this.i18n=ze}visit(t){return t.visitDirective(this)}};class rg{tagName;attributes;inputs;outputs;directives;templateAttrs;children;references;variables;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(t,n,s,r,l,E,N,ae,ze,dt,Kt,Vn,ci,Vi){this.tagName=t,this.attributes=n,this.inputs=s,this.outputs=r,this.directives=l,this.templateAttrs=E,this.children=N,this.references=ae,this.variables=ze,this.isSelfClosing=dt,this.sourceSpan=Kt,this.startSourceSpan=Vn,this.endSourceSpan=ci,this.i18n=Vi}visit(t){return t.visitTemplate(this)}}class aM{selector;attributes;children;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;name="ng-content";constructor(t,n,s,r,l,E,N,ae){this.selector=t,this.attributes=n,this.children=s,this.isSelfClosing=r,this.sourceSpan=l,this.startSourceSpan=E,this.endSourceSpan=N,this.i18n=ae}visit(t){return t.visitContent(this)}}class p0{name;value;sourceSpan;keySpan;valueSpan;constructor(t,n,s,r,l){this.name=t,this.value=n,this.sourceSpan=s,this.keySpan=r,this.valueSpan=l}visit(t){return t.visitVariable(this)}}class WP{name;value;sourceSpan;keySpan;valueSpan;constructor(t,n,s,r,l){this.name=t,this.value=n,this.sourceSpan=s,this.keySpan=r,this.valueSpan=l}visit(t){return t.visitReference(this)}}let rB=class{vars;placeholders;sourceSpan;i18n;constructor(t,n,s,r){this.vars=t,this.placeholders=n,this.sourceSpan=s,this.i18n=r}visit(t){return t.visitIcu(this)}};class zP{tagNames;bindings;listeners;sourceSpan;constructor(t,n,s,r){if(this.tagNames=t,this.bindings=n,this.listeners=s,this.sourceSpan=r,0===t.length)throw new Error("HostElement must have at least one tag name.")}visit(){throw new Error("HostElement cannot be visited")}}function Nr(o,t){const n=[];if(o.visit)for(const s of t)o.visit(s);else for(const s of t){const r=s.visit(o);r&&n.push(r)}return n}class Su{nodes;placeholders;placeholderToMessage;meaning;description;customId;sources;id;legacyIds=[];messageString;constructor(t,n,s,r,l,E){this.nodes=t,this.placeholders=n,this.placeholderToMessage=s,this.meaning=r,this.description=l,this.customId=E,this.id=this.customId,this.messageString=function X2(o){const t=new Y2;return o.map(s=>s.visit(t)).join("")}(this.nodes),this.sources=t.length?[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:[]}}let af=class{value;sourceSpan;constructor(t,n){this.value=t,this.sourceSpan=n}visit(t,n){return t.visitText(this,n)}};class ag{children;sourceSpan;constructor(t,n){this.children=t,this.sourceSpan=n}visit(t,n){return t.visitContainer(this,n)}}class g0{expression;type;cases;sourceSpan;expressionPlaceholder;constructor(t,n,s,r,l){this.expression=t,this.type=n,this.cases=s,this.sourceSpan=r,this.expressionPlaceholder=l}visit(t,n){return t.visitIcu(this,n)}}class X_{tag;attrs;startName;closeName;children;isVoid;sourceSpan;startSourceSpan;endSourceSpan;constructor(t,n,s,r,l,E,N,ae,ze){this.tag=t,this.attrs=n,this.startName=s,this.closeName=r,this.children=l,this.isVoid=E,this.sourceSpan=N,this.startSourceSpan=ae,this.endSourceSpan=ze}visit(t,n){return t.visitTagPlaceholder(this,n)}}class lf{value;name;sourceSpan;constructor(t,n,s){this.value=t,this.name=n,this.sourceSpan=s}visit(t,n){return t.visitPlaceholder(this,n)}}class f0{value;name;sourceSpan;previousMessage;constructor(t,n,s){this.value=t,this.name=n,this.sourceSpan=s}visit(t,n){return t.visitIcuPlaceholder(this,n)}}class Y_{name;parameters;startName;closeName;children;sourceSpan;startSourceSpan;endSourceSpan;constructor(t,n,s,r,l,E,N,ae){this.name=t,this.parameters=n,this.startName=s,this.closeName=r,this.children=l,this.sourceSpan=E,this.startSourceSpan=N,this.endSourceSpan=ae}visit(t,n){return t.visitBlockPlaceholder(this,n)}}class Y2{visitText(t){return t.value}visitContainer(t){return t.children.map(n=>n.visit(this)).join("")}visitIcu(t){const n=Object.keys(t.cases).map(s=>`${s} {${t.cases[s].visit(this)}}`);return`{${t.expressionPlaceholder}, ${t.type}, ${n.join(" ")}}`}visitTagPlaceholder(t){const n=t.children.map(s=>s.visit(this)).join("");return`{$${t.startName}}${n}{$${t.closeName}}`}visitPlaceholder(t){return`{$${t.name}}`}visitIcuPlaceholder(t){return`{$${t.name}}`}visitBlockPlaceholder(t){const n=t.children.map(s=>s.visit(this)).join("");return`{$${t.startName}}${n}{$${t.closeName}}`}}new class{visitTag(t){const n=this._serializeAttributes(t.attrs);if(0==t.children.length)return`<${t.name}${n}/>`;const s=t.children.map(r=>r.visit(this));return`<${t.name}${n}>${s.join("")}</${t.name}>`}visitText(t){return t.value}visitDeclaration(t){return`<?xml${this._serializeAttributes(t.attrs)} ?>`}_serializeAttributes(t){const n=Object.keys(t).map(s=>`${s}="${t[s]}"`).join(" ");return n.length>0?" "+n:""}visitDoctype(t){return`<!DOCTYPE ${t.rootTag} [\n${t.dtd}\n]>`}};function uB(o){return"i18n"===o||o.startsWith("i18n-")}function hB(o){return o.nodes[0]}function ZP(o={},t){const n={};return o&&Object.keys(o).length&&Object.keys(o).forEach(s=>n[WS(s,t)]=o[s]),n}function WS(o,t=!0){const n=function YP(o){return o.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}(o);if(!t)return n;const s=n.split("_");if(1===s.length)return o.toLowerCase();let r;/^\d+$/.test(s[s.length-1])&&(r=s.pop());let l=s.shift().toLowerCase();return s.length&&(l+=s.map(E=>E.charAt(0).toUpperCase()+E.slice(1).toLowerCase()).join("")),r?`${l}_${r}`:l}const JP=/[-.]/,zS="ctx";function pB(o,t){let n=null;return()=>(n||(o(new al("_t",void 0,$d)),n=zs(t)),n)}function Gd(o){return Array.isArray(o)?hr(o.map(Gd)):Ei(o,xc)}function tR(o,t){const n=Object.getOwnPropertyNames(o);return 0===n.length?null:_l(n.map(s=>{const r=o[s];let l,E,N,ae;if("string"==typeof r)l=s,N=s,E=r,ae=Gd(E);else{N=s,l=r.classPropertyName,E=r.bindingPropertyName;const ze=E!==l,dt=null!==r.transformFunction;let Kt=qp.None;if(r.isSignal&&(Kt|=qp.SignalBased),dt&&(Kt|=qp.HasDecoratorInputTransform),t&&(ze||dt||Kt!==qp.None)){const Vn=[Ei(Kt),Gd(E)];(ze||dt)&&(Vn.push(Gd(l)),dt&&Vn.push(r.transformFunction)),ae=hr(Vn)}else ae=Gd(E)}return{key:N,quoted:JP.test(N),value:ae}}))}class vl{values=[];set(t,n){if(n){const s=this.values.find(r=>r.key===t);s?s.value=n:this.values.push({key:t,value:n,quoted:!1})}}toLiteralMap(){return _l(this.values)}}function gB(o,t){let n=null;const s={name:o.name,type:o.type,typeArgumentCount:o.typeArgumentCount,deps:[],target:rp.Injectable};if(void 0!==o.useClass){const N=o.useClass.expression.isEquivalent(o.type.value);let ae;void 0!==o.deps&&(ae=o.deps),n=void 0!==ae?ry({...s,delegate:o.useClass.expression,delegateDeps:ae,delegateType:ZI.Class}):N?ry(s):{statements:[],expression:mB(o.type.value,o.useClass.expression,t)}}else n=void 0!==o.useFactory?void 0!==o.deps?ry({...s,delegate:o.useFactory,delegateDeps:o.deps||[],delegateType:ZI.Function}):{statements:[],expression:Na([],o.useFactory.callFn([]))}:void 0!==o.useValue?ry({...s,expression:o.useValue.expression}):void 0!==o.useExisting?ry({...s,expression:ns(oi.inject).callFn([o.useExisting.expression])}):{statements:[],expression:mB(o.type.value,o.type.value,t)};const r=o.type.value,l=new vl;return l.set("token",r),l.set("factory",n.expression),null!==o.providedIn.expression.value&&l.set("providedIn",h0(o.providedIn)),{expression:ns(oi.\u0275\u0275defineInjectable).callFn([l.toLiteralMap()],void 0,!0),type:fB(o),statements:n.statements}}function fB(o){return new mh(ns(oi.InjectableDeclaration,[QI(o.type.type,o.typeArgumentCount)]))}function mB(o,t,n){return o.node===t.node?t.prop("\u0275fac"):_B(n?ns(oi.resolveForwardRef).callFn([t]):t)}function _B(o){const t=new Nn("__ngFactoryType__",$d);return Na([t],o.prop("\u0275fac").callFn([zs(t.name)]))}const uV=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];class cM{start;end;static fromArray(t){return t?(function hV(o,t){if(null!=t&&(!Array.isArray(t)||2!=t.length))throw new Error(`Expected '${o}' to be an array, [start, end].`);if(null!=t){const n=t[0],s=t[1];uV.forEach(r=>{if(r.test(n)||r.test(s))throw new Error(`['${n}', '${s}'] contains unusable interpolation symbol.`)})}}("interpolation",t),new cM(t[0],t[1])):lp}constructor(t,n){this.start=t,this.end=n}}const lp=new cM("{{","}}"),vB=new Set(["switch"]),dg=123,Du=125;function ZS(o){return o>=9&&o<=32||160==o}function ug(o){return 48<=o&&o<=57}function y0(o){return o>=97&&o<=122||o>=65&&o<=90}function pM(o){return 10===o||13===o}function BB(o){return 48<=o&&o<=55}function JS(o){return 39===o||34===o||96===o}class fy{file;offset;line;col;constructor(t,n,s,r){this.file=t,this.offset=n,this.line=s,this.col=r}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){const n=this.file.content,s=n.length;let r=this.offset,l=this.line,E=this.col;for(;r>0&&t<0;)if(r--,t++,10==n.charCodeAt(r)){l--;const ae=n.substring(0,r-1).lastIndexOf(String.fromCharCode(10));E=ae>0?r-ae:r}else E--;for(;r<s&&t>0;){const N=n.charCodeAt(r);r++,t--,10==N?(l++,E=0):E++}return new fy(this.file,r,l,E)}getContext(t,n){const s=this.file.content;let r=this.offset;if(null!=r){r>s.length-1&&(r=s.length-1);let l=r,E=0,N=0;for(;E<t&&r>0&&(r--,E++,"\n"!=s[r]||++N!=n););for(E=0,N=0;E<t&&l<s.length-1&&(l++,E++,"\n"!=s[l]||++N!=n););return{before:s.substring(r,this.offset),after:s.substring(this.offset,l+1)}}return null}}class lR{content;url;constructor(t,n){this.content=t,this.url=n}}class dr{start;end;fullStart;details;constructor(t,n,s=t,r=null){this.start=t,this.end=n,this.fullStart=s,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var q_=function(o){return o[o.WARNING=0]="WARNING",o[o.ERROR=1]="ERROR",o}(q_||{});class Xs extends Error{span;msg;level;relatedError;constructor(t,n,s=q_.ERROR,r){super(n),this.span=t,this.msg=n,this.level=s,this.relatedError=r,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){const t=this.span.start.getContext(100,3);return t?`${this.msg} ("${t.before}[${q_[this.level]} ->]${t.after}")`:this.msg}toString(){const t=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${t}`}}let OV=0;function my(o){return o.replace(/\W/g,"_")}const FB='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';class SV extends P2{constructor(){super(!1)}visitWrappedNodeExpr(t,n){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(t,n){return n.print(t,`var ${t.name}`),t.value&&(n.print(t," = "),t.value.visitExpression(this,n)),n.println(t,";"),null}visitTaggedTemplateLiteralExpr(t,n){const s=t.template.elements;return t.tag.visitExpression(this,n),n.print(t,`(${FB}(`),n.print(t,`[${s.map(r=>sy(r.text,!1)).join(", ")}], `),n.print(t,`[${s.map(r=>sy(r.rawText,!1)).join(", ")}])`),t.template.expressions.forEach(r=>{n.print(t,", "),r.visitExpression(this,n)}),n.print(t,")"),null}visitTemplateLiteralExpr(t,n){n.print(t,"`");for(let s=0;s<t.elements.length;s++){t.elements[s].visitExpression(this,n);const r=s<t.expressions.length?t.expressions[s]:null;null!==r&&(n.print(r,"${"),r.visitExpression(this,n),n.print(r,"}"))}n.print(t,"`")}visitTemplateLiteralElementExpr(t,n){return n.print(t,t.rawText),null}visitFunctionExpr(t,n){return n.print(t,`function${t.name?" "+t.name:""}(`),this._visitParams(t.params,n),n.println(t,") {"),n.incIndent(),this.visitAllStatements(t.statements,n),n.decIndent(),n.print(t,"}"),null}visitArrowFunctionExpr(t,n){if(n.print(t,"("),this._visitParams(t.params,n),n.print(t,") =>"),Array.isArray(t.body))n.println(t,"{"),n.incIndent(),this.visitAllStatements(t.body,n),n.decIndent(),n.print(t,"}");else{const s=t.body instanceof Rr;s&&n.print(t,"("),t.body.visitExpression(this,n),s&&n.print(t,")")}return null}visitDeclareFunctionStmt(t,n){return n.print(t,`function ${t.name}(`),this._visitParams(t.params,n),n.println(t,") {"),n.incIndent(),this.visitAllStatements(t.statements,n),n.decIndent(),n.println(t,"}"),null}visitLocalizedString(t,n){n.print(t,`$localize(${FB}(`);const s=[t.serializeI18nHead()];for(let r=1;r<t.messageParts.length;r++)s.push(t.serializeI18nTemplatePart(r));return n.print(t,`[${s.map(r=>sy(r.cooked,!1)).join(", ")}], `),n.print(t,`[${s.map(r=>sy(r.raw,!1)).join(", ")}])`),t.expressions.forEach(r=>{n.print(t,", "),r.visitExpression(this,n)}),n.print(t,")"),null}_visitParams(t,n){this.visitAllObjects(s=>n.print(null,s.name),t,n,",")}}let gM;function NB(...o){if(!BS.trustedTypes)return new Function(...o);const s=`(function anonymous(${o.slice(0,-1).join(",")}\n) { ${o[o.length-1]}\n})`,r=BS.eval(function TV(o){return function DV(){if(void 0===gM){const o=BS.trustedTypes;if(gM=null,o)try{gM=o.createPolicy("angular#unsafe-jit",{createScript:t=>t})}catch{}}return gM}()?.createScript(o)||o}(s));return void 0===r.bind?new Function(...o):(r.toString=()=>s,r.bind(BS))}class AV{evaluateStatements(t,n,s,r){const l=new IV(s),E=bP.createRoot();return n.length>0&&!function MV(o){return o.isEquivalent(Ei("use strict").toStmt())}(n[0])&&(n=[Ei("use strict").toStmt(),...n]),l.visitAllStatements(n,E),l.createReturnStmt(E),this.evaluateCode(t,E,l.getArgs(),r)}evaluateCode(t,n,s,r){let l=`"use strict";${n.toSource()}\n//# sourceURL=${t}`;const E=[],N=[];for(const ze in s)N.push(s[ze]),E.push(ze);if(r){const ze=NB(...E.concat("return null;")).toString(),dt=ze.slice(0,ze.indexOf("return null;")).split("\n").length-1;l+=`\n${n.toSourceMapGenerator(t,dt).toJsComment()}`}const ae=NB(...E.concat(l));return this.executeFunction(ae,N)}executeFunction(t,n){return t(...n)}}class IV extends SV{refResolver;_evalArgNames=[];_evalArgValues=[];_evalExportedVars=[];constructor(t){super(),this.refResolver=t}createReturnStmt(t){new Ec(new Rr(this._evalExportedVars.map(s=>new Ua(s,zs(s),!1)))).visitStatement(this,t)}getArgs(){const t={};for(let n=0;n<this._evalArgNames.length;n++)t[this._evalArgNames[n]]=this._evalArgValues[n];return t}visitExternalExpr(t,n){return this._emitReferenceToExternal(t,this.refResolver.resolveExternalReference(t.value),n),null}visitWrappedNodeExpr(t,n){return this._emitReferenceToExternal(t,t.node,n),null}visitDeclareVarStmt(t,n){return t.hasModifier(el.Exported)&&this._evalExportedVars.push(t.name),super.visitDeclareVarStmt(t,n)}visitDeclareFunctionStmt(t,n){return t.hasModifier(el.Exported)&&this._evalExportedVars.push(t.name),super.visitDeclareFunctionStmt(t,n)}_emitReferenceToExternal(t,n,s){let r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);const l=function wV(o){if(!o||!o.reference)return null;const t=o.reference;if(t.__anonymousType)return t.__anonymousType;if(t.__forward_ref__)return"__forward_ref__";let n=kk(t);return n.indexOf("(")>=0?(n="anonymous_"+OV++,t.__anonymousType=n):n=my(n),n}({reference:n})||"val";this._evalArgNames.push(`jit_${l}_${r}`)}s.print(t,this._evalArgNames[r])}}function LB(o){const t=new vl;return null!==o.providers&&t.set("providers",o.providers),o.imports.length>0&&t.set("imports",hr(o.imports)),{expression:ns(oi.defineInjector).callFn([t.toLiteralMap()],void 0,!0),type:VB(o),statements:[]}}function VB(o){return new mh(ns(oi.InjectorDeclaration,[new mh(o.type.type)]))}class PV{context;constructor(t){this.context=t}resolveExternalReference(t){if("@angular/core"!==t.moduleName)throw new Error(`Cannot resolve external reference to ${t.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(t.name))throw new Error(`No value provided for @angular/core symbol '${t.name}'.`);return this.context[t.name]}}var fM=function(o){return o[o.Inline=0]="Inline",o[o.SideEffect=1]="SideEffect",o[o.Omit=2]="Omit",o}(fM||{}),_m=function(o){return o[o.Global=0]="Global",o[o.Local=1]="Local",o}(_m||{});function RV(o){const t=[],n=new vl;if(n.set("type",o.type.value),o.kind===_m.Global&&o.bootstrap.length>0&&n.set("bootstrap",tg(o.bootstrap,o.containsForwardDecls)),o.selectorScopeMode===fM.Inline)o.declarations.length>0&&n.set("declarations",tg(o.declarations,o.containsForwardDecls)),o.imports.length>0&&n.set("imports",tg(o.imports,o.containsForwardDecls)),o.exports.length>0&&n.set("exports",tg(o.exports,o.containsForwardDecls));else if(o.selectorScopeMode===fM.SideEffect){const l=function BV(o){const t=new vl;if(o.kind===_m.Global?o.declarations.length>0&&t.set("declarations",tg(o.declarations,o.containsForwardDecls)):o.declarationsExpression&&t.set("declarations",o.declarationsExpression),o.kind===_m.Global?o.imports.length>0&&t.set("imports",tg(o.imports,o.containsForwardDecls)):o.importsExpression&&t.set("imports",o.importsExpression),o.kind===_m.Global?o.exports.length>0&&t.set("exports",tg(o.exports,o.containsForwardDecls)):o.exportsExpression&&t.set("exports",o.exportsExpression),o.kind===_m.Local&&o.bootstrapExpression&&t.set("bootstrap",o.bootstrapExpression),0===Object.keys(t.values).length)return null;const s=function k2(o){return function Lk(o,t){const n=new $e({name:o,moduleName:null}),s=new jo(Uo.Identical,new dm(n),Ei("undefined")),r=new jo(Uo.Or,s,n,void 0,void 0);return new jo(Uo.And,r,t)}("ngJitMode",o)}(new ml(ns(oi.setNgModuleScope),[o.type.value,t.toLiteralMap()])),r=new ui([],[s.toStmt()]);return new ml(r,[]).toStmt()}(o);null!==l&&t.push(l)}return null!==o.schemas&&o.schemas.length>0&&n.set("schemas",hr(o.schemas.map(l=>l.value))),null!==o.id&&(n.set("id",o.id),t.push(ns(oi.registerNgModuleType).callFn([o.type.value,o.id]).toStmt())),{expression:ns(oi.defineNgModule).callFn([n.toLiteralMap()],void 0,!0),type:HB(o),statements:t}}function HB(o){if(o.kind===_m.Local)return new mh(o.type.value);const{type:t,declarations:n,exports:s,imports:r,includeImportTypes:l,publicDeclarationTypes:E}=o;return new mh(ns(oi.NgModuleDeclaration,[new mh(t.type),null===E?cR(n):FV(E),l?cR(r):Ou,cR(s)]))}function cR(o){const t=o.map(n=>d0(n.type));return o.length>0?ql(hr(t)):Ou}function FV(o){const t=o.map(n=>d0(n));return o.length>0?ql(hr(t)):Ou}function $B(o){const t=[];return t.push({key:"name",value:Ei(o.pipeName??o.name),quoted:!1}),t.push({key:"type",value:o.type.value,quoted:!1}),t.push({key:"pure",value:Ei(o.pure),quoted:!1}),!1===o.isStandalone&&t.push({key:"standalone",value:Ei(!1),quoted:!1}),{expression:ns(oi.definePipe).callFn([_l(t)],void 0,!0),type:UB(o),statements:[]}}function UB(o){return new mh(ns(oi.PipeDeclaration,[QI(o.type.type,o.typeArgumentCount),new mh(new qa(o.pipeName)),new mh(new qa(o.isStandalone))]))}var vm=function(o){return o[o.Directive=0]="Directive",o[o.Pipe=1]="Pipe",o[o.NgModule=2]="NgModule",o}(vm||{});const NV=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]),LV=["@media","@supports","@document","@layer","@container","@scope","@starting-style"];class jB{shimCssText(t,n,s=""){const r=[];t=t.replace(JV,N=>{if(N.match(qV))r.push(N);else{const ae=N.match(ZV);r.push((ae?.join("")??"")+"\n")}return uR}),t=this._insertDirectives(t);const l=this._scopeCssText(t,n,s);let E=0;return l.replace(eH,()=>r[E++])}_insertDirectives(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)}_scopeKeyframesRelatedCss(t,n){const s=new Set,r=_M(t,l=>this._scopeLocalKeyframeDeclarations(l,n,s));return _M(r,l=>this._scopeAnimationRule(l,n,s))}_scopeLocalKeyframeDeclarations(t,n,s){return{...t,selector:t.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(r,l,E,N,ae)=>(s.add(JB(N,E)),`${l}${E}${n}_${N}${E}${ae}`))}}_scopeAnimationKeyframe(t,n,s){return t.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(r,l,E,N,ae)=>`${l}${E}${N=`${s.has(JB(N,E))?n+"_":""}${N}`}${E}${ae}`)}_animationDeclarationKeyframesRe=/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;_scopeAnimationRule(t,n,s){let r=t.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(l,E,N)=>E+N.replace(this._animationDeclarationKeyframesRe,(ae,ze,dt="",Kt,Vn)=>Kt?`${ze}${this._scopeAnimationKeyframe(`${dt}${Kt}${dt}`,n,s)}`:NV.has(Vn)?ae:`${ze}${this._scopeAnimationKeyframe(Vn,n,s)}`));return r=r.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(l,E,N)=>`${E}${N.split(",").map(ae=>this._scopeAnimationKeyframe(ae,n,s)).join(",")}`),{...t,content:r}}_insertPolyfillDirectivesInCssText(t){return t.replace($V,function(...n){return n[2]+"{"})}_insertPolyfillRulesInCssText(t){return t.replace(UV,(...n)=>{const s=n[0].replace(n[1],"").replace(n[2],"");return n[4]+s})}_scopeCssText(t,n,s){const r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),n&&(t=this._scopeKeyframesRelatedCss(t,n),t=this._scopeSelectors(t,n,s)),(t=t+"\n"+r).trim()}_extractUnscopedRulesFromCssText(t){let s,n="";for(GB.lastIndex=0;null!==(s=GB.exec(t));)n+=s[0].replace(s[2],"").replace(s[1],s[4])+"\n\n";return n}_convertColonHost(t){return t.replace(jV,(n,s,r)=>{if(s){const l=[],E=s.split(",").map(N=>N.trim());for(const N of E){if(!N)break;const ae=ev+N.replace(mM,"")+r;l.push(ae)}return l.join(",")}return ev+r})}_convertColonHostContext(t){const n=t.length;let s=0,r=0,l="";for(let E=0;E<n;E++){const N=t[E];if(","!==N||0!==s){if(E===n-1){l+=this._convertColonHostContextInSelectorPart(t.slice(r));break}"("===N?s++:")"===N&&s--}else l+=this._convertColonHostContextInSelectorPart(t.slice(r,E))+",",r=E+1}return l}_convertColonHostContextInSelectorPart(t){return t.replace(GV,(n,s)=>{const r=[[]];let l;for(;l=WV.exec(n);){const E=(l[1]??"").trim().split(",").map(ae=>ae.trim()).filter(ae=>""!==ae),N=r.length;hH(r,E.length);for(let ae=0;ae<E.length;ae++)for(let ze=0;ze<N;ze++)r[ze+ae*N].push(E[ae]);n=l[2]}return r.map(E=>function uH(o,t,n=""){const s=ev;b0.lastIndex=0;const r=b0.test(t);if(0===o.length)return s+t;const l=[o.pop()||""];for(;o.length>0;){const E=l.length,N=o.pop();for(let ae=0;ae<E;ae++){const ze=l[ae];l[2*E+ae]=ze+" "+N,l[E+ae]=N+" "+ze,l[ae]=N+ze}}return l.map(E=>r?`${n}${E}${t}`:`${n}${E}${s}${t}, ${n}${E} ${s}${t}`).join(",")}(E,n,s)).join(", ")})}_convertShadowDOMSelectors(t){return KV.reduce((n,s)=>n.replace(s," "),t)}_scopeSelectors(t,n,s){return _M(t,r=>{let l=r.selector,E=r.content;return"@"!==r.selector[0]?l=this._scopeSelector({selector:l,scopeSelector:n,hostSelector:s,isParentSelector:!0}):LV.some(N=>r.selector.startsWith(N))?E=this._scopeSelectors(r.content,n,s):(r.selector.startsWith("@font-face")||r.selector.startsWith("@page"))&&(E=this._stripScopingSelectors(r.content)),new pR(l,E)})}_stripScopingSelectors(t){return _M(t,n=>{const s=n.selector.replace(XB," ").replace(dR," ");return new pR(s,n.content)})}_safeSelector;_shouldScopeIndicator;_scopeSelector({selector:t,scopeSelector:n,hostSelector:s,isParentSelector:r=!1}){return t.split(/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/).map(E=>E.split(XB)).map(E=>{const[N,...ae]=E;return[(dt=>this._selectorNeedsScoping(dt,n)?this._applySelectorScope({selector:dt,scopeSelector:n,hostSelector:s,isParentSelector:r}):dt)(N),...ae].join(" ")}).join(", ")}_selectorNeedsScoping(t,n){return!this._makeScopeMatcher(n).test(t)}_makeScopeMatcher(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")"+XV,"m")}_applySimpleSelectorScope(t,n,s){if(b0.lastIndex=0,b0.test(t)){const r=`[${s}]`;let l=t;for(;l.match(dR);)l=l.replace(dR,(E,N)=>N.replace(/([^:\)]*)(:*)(.*)/,(ae,ze,dt,Kt)=>ze+r+dt+Kt));return l.replace(b0,r)}return n+" "+t}_applySelectorScope({selector:t,scopeSelector:n,hostSelector:s,isParentSelector:r}){const E=`[${n=n.replace(/\[is=([^\]]*)\]/g,(Di,...Eo)=>Eo[0])}]`,N=Di=>{let Eo=Di.trim();if(!Eo)return Di;if(Di.includes(ev)){if(Eo=this._applySimpleSelectorScope(Di,n,s),!Di.match(zV)){const[uo,Jo,es,Qo]=Eo.match(/([^:]*)(:*)([\s\S]*)/);Eo=Jo+E+es+Qo}}else{const uo=Di.replace(b0,"");if(uo.length>0){const Jo=uo.match(/([^:]*)(:*)([\s\S]*)/);Jo&&(Eo=Jo[1]+E+Jo[2]+Jo[3])}}return Eo},ae=Di=>{let Eo="";const uo=[];let Jo;for(;null!==(Jo=qS.exec(Di));){let es=1,Qo=qS.lastIndex;for(;Qo<Di.length;){const Ts=Di[Qo];if(Qo++,"("!==Ts){if(")"!==Ts);else if(es--,0===es)break}else es++}uo.push(`${Jo[0]}${Di.slice(qS.lastIndex,Qo)}`),qS.lastIndex=Qo}return uo.join("")===Di?Eo=uo.map(es=>{const[Qo]=es.match(qS)??[],Ts=es.slice(Qo?.length,-1);return Ts.includes(ev)&&(this._shouldScopeIndicator=!0),`${Qo}${this._scopeSelector({selector:Ts,scopeSelector:n,hostSelector:s})})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||Di.includes(ev),Eo=this._shouldScopeIndicator?N(Di):Di),Eo};r&&(this._safeSelector=new VV(t),t=this._safeSelector.content());let Kt,ze="",dt=0;const Vn=/( |>|\+|~(?!=))(?!([^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\)))\s*/g,ci=t.includes(ev);for((r||this._shouldScopeIndicator)&&(this._shouldScopeIndicator=!ci);null!==(Kt=Vn.exec(t));){const Di=Kt[1],Eo=t.slice(dt,Kt.index);Eo.match(/__esc-ph-(\d+)__/)&&t[Kt.index+1]?.match(/[a-fA-F\d]/)||(ze+=`${ae(Eo)} ${Di} `,dt=Vn.lastIndex)}return ze+=ae(t.substring(dt)),this._safeSelector.restore(ze)}_insertPolyfillHostInCssText(t){return t.replace(QV,WB).replace(YV,mM)}}class VV{placeholders=[];index=0;_content;constructor(t){t=(t=this._escapeRegexMatches(t,/(\[[^\]]*\])/g)).replace(/(\\.)/g,(n,s)=>{const r=`__esc-ph-${this.index}__`;return this.placeholders.push(s),this.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(n,s,r)=>{const l=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,s+l})}restore(t){return t.replace(/__(?:ph|esc-ph)-(\d+)__/g,(n,s)=>this.placeholders[+s])}content(){return this._content}_escapeRegexMatches(t,n){return t.replace(n,(s,r)=>{const l=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,l})}}const qS=/:(where|is)\(/gi,$V=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,UV=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,GB=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,mM="-shadowcsshost",WB="-shadowcsscontext",zB="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))",jV=new RegExp(mM+zB+"?([^,{]*)","gim"),KB=WB+zB+"?([^{]*)",GV=new RegExp(`(:(where|is)\\()?(${KB})`,"gim"),WV=new RegExp(KB,"im"),ev=mM+"-no-combinator",zV=new RegExp(`${ev}(?![^(]*\\))`,"g"),dR=/-shadowcsshost-no-combinator([^\s,]*)/,KV=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],XB=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,XV="([>\\s~+[.,{:][\\s\\S]*)?$",b0=/-shadowcsshost/gim,YV=/:host/gim,QV=/:host-context/gim,ZV=/\r?\n/g,JV=/\/\*[\s\S]*?\*\//g,qV=/\/\*\s*#\s*source(Mapping)?URL=/g,uR="%COMMENT%",eH=new RegExp(uR,"g"),hR="%BLOCK%",tH=new RegExp(`(\\s*(?:${uR}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),nH=new Map([["{","}"]]),YB="%COMMA_IN_PLACEHOLDER%",QB="%SEMI_IN_PLACEHOLDER%",ZB="%COLON_IN_PLACEHOLDER%",iH=new RegExp(YB,"g"),oH=new RegExp(QB,"g"),sH=new RegExp(ZB,"g");class pR{selector;content;constructor(t,n){this.selector=t,this.content=n}}function _M(o,t){const n=function cH(o){let t=o,n=null;for(let s=0;s<t.length;s++){const r=t[s];if("\\"===r)s++;else if(null!==n)if(r===n)n=null;else{const l=lH[r];l&&(t=`${t.substr(0,s)}${l}${t.substr(s+1)}`,s+=l.length-1)}else("'"===r||'"'===r)&&(n=r)}return t}(o),s=function aH(o,t,n){const s=[],r=[];let ae,ze,l=0,E=0,N=-1;for(let dt=0;dt<o.length;dt++){const Kt=o[dt];"\\"===Kt?dt++:Kt===ze?(l--,0===l&&(r.push(o.substring(N,dt)),s.push(n),E=dt,N=-1,ae=ze=void 0)):Kt===ae?l++:0===l&&t.has(Kt)&&(ae=Kt,ze=t.get(Kt),l=1,N=dt+1,s.push(o.substring(E,N)))}return-1!==N?(r.push(o.substring(N)),s.push(n)):s.push(o.substring(E)),new rH(s.join(""),r)}(n,nH,hR);let r=0;return function dH(o){let t=o.replace(iH,",");return t=t.replace(oH,";"),t=t.replace(sH,":"),t}(s.escapedString.replace(tH,(...E)=>{const N=E[2];let ae="",ze=E[4],dt="";ze&&ze.startsWith("{"+hR)&&(ae=s.blocks[r++],ze=ze.substring(hR.length+1),dt="{");const Kt=t(new pR(N,ae));return`${E[1]}${Kt.selector}${E[3]}${dt}${Kt.content}${ze}`}))}class rH{escapedString;blocks;constructor(t,n){this.escapedString=t,this.blocks=n}}const lH={";":QB,",":YB,":":ZB};function JB(o,t){return t?o.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):o}function hH(o,t){const n=o.length;for(let s=1;s<t;s++)for(let r=0;r<n;r++)o[r+s*n]=o[r].slice(0)}var sn=function(o){return o[o.ListEnd=0]="ListEnd",o[o.Statement=1]="Statement",o[o.Variable=2]="Variable",o[o.ElementStart=3]="ElementStart",o[o.Element=4]="Element",o[o.Template=5]="Template",o[o.ElementEnd=6]="ElementEnd",o[o.ContainerStart=7]="ContainerStart",o[o.Container=8]="Container",o[o.ContainerEnd=9]="ContainerEnd",o[o.DisableBindings=10]="DisableBindings",o[o.ConditionalCreate=11]="ConditionalCreate",o[o.ConditionalBranchCreate=12]="ConditionalBranchCreate",o[o.Conditional=13]="Conditional",o[o.EnableBindings=14]="EnableBindings",o[o.Text=15]="Text",o[o.Listener=16]="Listener",o[o.InterpolateText=17]="InterpolateText",o[o.Binding=18]="Binding",o[o.Property=19]="Property",o[o.StyleProp=20]="StyleProp",o[o.ClassProp=21]="ClassProp",o[o.StyleMap=22]="StyleMap",o[o.ClassMap=23]="ClassMap",o[o.Advance=24]="Advance",o[o.Pipe=25]="Pipe",o[o.Attribute=26]="Attribute",o[o.ExtractedAttribute=27]="ExtractedAttribute",o[o.Defer=28]="Defer",o[o.DeferOn=29]="DeferOn",o[o.DeferWhen=30]="DeferWhen",o[o.I18nMessage=31]="I18nMessage",o[o.DomProperty=32]="DomProperty",o[o.Namespace=33]="Namespace",o[o.ProjectionDef=34]="ProjectionDef",o[o.Projection=35]="Projection",o[o.RepeaterCreate=36]="RepeaterCreate",o[o.Repeater=37]="Repeater",o[o.TwoWayProperty=38]="TwoWayProperty",o[o.TwoWayListener=39]="TwoWayListener",o[o.DeclareLet=40]="DeclareLet",o[o.StoreLet=41]="StoreLet",o[o.I18nStart=42]="I18nStart",o[o.I18n=43]="I18n",o[o.I18nEnd=44]="I18nEnd",o[o.I18nExpression=45]="I18nExpression",o[o.I18nApply=46]="I18nApply",o[o.IcuStart=47]="IcuStart",o[o.IcuEnd=48]="IcuEnd",o[o.IcuPlaceholder=49]="IcuPlaceholder",o[o.I18nContext=50]="I18nContext",o[o.I18nAttributes=51]="I18nAttributes",o[o.SourceLocation=52]="SourceLocation",o[o.Animation=53]="Animation",o[o.AnimationString=54]="AnimationString",o[o.AnimationBinding=55]="AnimationBinding",o[o.AnimationListener=56]="AnimationListener",o}(sn||{}),Gs=function(o){return o[o.LexicalRead=0]="LexicalRead",o[o.Context=1]="Context",o[o.TrackContext=2]="TrackContext",o[o.ReadVariable=3]="ReadVariable",o[o.NextContext=4]="NextContext",o[o.Reference=5]="Reference",o[o.StoreLet=6]="StoreLet",o[o.ContextLetReference=7]="ContextLetReference",o[o.GetCurrentView=8]="GetCurrentView",o[o.RestoreView=9]="RestoreView",o[o.ResetView=10]="ResetView",o[o.PureFunctionExpr=11]="PureFunctionExpr",o[o.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",o[o.PipeBinding=13]="PipeBinding",o[o.PipeBindingVariadic=14]="PipeBindingVariadic",o[o.SafePropertyRead=15]="SafePropertyRead",o[o.SafeKeyedRead=16]="SafeKeyedRead",o[o.SafeInvokeFunction=17]="SafeInvokeFunction",o[o.SafeTernaryExpr=18]="SafeTernaryExpr",o[o.EmptyExpr=19]="EmptyExpr",o[o.AssignTemporaryExpr=20]="AssignTemporaryExpr",o[o.ReadTemporaryExpr=21]="ReadTemporaryExpr",o[o.SlotLiteralExpr=22]="SlotLiteralExpr",o[o.ConditionalCase=23]="ConditionalCase",o[o.ConstCollected=24]="ConstCollected",o[o.TwoWayBindingSet=25]="TwoWayBindingSet",o}(Gs||{}),up=function(o){return o[o.None=0]="None",o[o.AlwaysInline=1]="AlwaysInline",o}(up||{}),Oc=function(o){return o[o.Context=0]="Context",o[o.Identifier=1]="Identifier",o[o.SavedView=2]="SavedView",o[o.Alias=3]="Alias",o}(Oc||{}),yh=function(o){return o[o.Normal=0]="Normal",o[o.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder",o}(yh||{}),Fs=function(o){return o[o.Attribute=0]="Attribute",o[o.ClassName=1]="ClassName",o[o.StyleProperty=2]="StyleProperty",o[o.Property=3]="Property",o[o.Template=4]="Template",o[o.I18n=5]="I18n",o[o.LegacyAnimation=6]="LegacyAnimation",o[o.TwoWayProperty=7]="TwoWayProperty",o[o.Animation=8]="Animation",o}(Fs||{}),eD=function(o){return o[o.Creation=0]="Creation",o[o.Postproccessing=1]="Postproccessing",o}(eD||{}),x0=function(o){return o[o.I18nText=0]="I18nText",o[o.I18nAttribute=1]="I18nAttribute",o}(x0||{}),ma=function(o){return o[o.None=0]="None",o[o.ElementTag=1]="ElementTag",o[o.TemplateTag=2]="TemplateTag",o[o.OpenTag=4]="OpenTag",o[o.CloseTag=8]="CloseTag",o[o.ExpressionIndex=16]="ExpressionIndex",o}(ma||{}),ud=function(o){return o[o.HTML=0]="HTML",o[o.SVG=1]="SVG",o[o.Math=2]="Math",o}(ud||{}),pa=function(o){return o[o.Idle=0]="Idle",o[o.Immediate=1]="Immediate",o[o.Timer=2]="Timer",o[o.Hover=3]="Hover",o[o.Interaction=4]="Interaction",o[o.Viewport=5]="Viewport",o[o.Never=6]="Never",o}(pa||{}),_y=function(o){return o[o.RootI18n=0]="RootI18n",o[o.Icu=1]="Icu",o[o.Attr=2]="Attr",o}(_y||{}),Tu=function(o){return o[o.NgTemplate=0]="NgTemplate",o[o.Structural=1]="Structural",o[o.Block=2]="Block",o}(Tu||{});const qB=Symbol("ConsumesSlot"),gR=Symbol("DependsOnSlotContext"),E0=Symbol("ConsumesVars"),vM=Symbol("UsesVarOffset"),hp={[qB]:!0,numSlotsUsed:1},bh={[gR]:!0},Au={[E0]:!0};function O0(o){return!0===o[qB]}function tD(o){return!0===o[gR]}function fR(o){return!0===o[E0]}function eF(o){return!0===o[vM]}function pp(o){return{kind:sn.Statement,statement:o,...ar}}function tv(o,t,n,s){return{kind:sn.Variable,xref:o,variable:t,initializer:n,flags:s,...ar}}const ar={debugListId:null,prev:null,next:null};class Cl{strings;expressions;i18nPlaceholders;constructor(t,n,s){if(this.strings=t,this.expressions=n,this.i18nPlaceholders=s,0!==s.length&&s.length!==n.length)throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${s.length}`)}}function vy(o,t,n,s,r,l,E,N,ae,ze,dt){return{kind:sn.Binding,bindingKind:t,target:o,name:n,expression:s,unit:r,securityContext:l,isTextAttribute:E,isStructuralTemplateAttribute:N,templateKind:ae,i18nContext:null,i18nMessage:ze,sourceSpan:dt,...ar}}function gH(o,t,n,s,r,l,E,N,ae,ze){return{kind:sn.Property,target:o,name:t,expression:n,bindingKind:s,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:l,templateKind:E,i18nContext:N,i18nMessage:ae,sourceSpan:ze,...bh,...Au,...ar}}function fH(o,t,n,s,r,l,E,N,ae){return{kind:sn.TwoWayProperty,target:o,name:t,expression:n,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:r,templateKind:l,i18nContext:E,i18nMessage:N,sourceSpan:ae,...bh,...Au,...ar}}function mH(o,t,n,s,r){return{kind:sn.StyleProp,target:o,name:t,expression:n,unit:s,sourceSpan:r,...bh,...Au,...ar}}function _H(o,t,n,s){return{kind:sn.ClassProp,target:o,name:t,expression:n,sourceSpan:s,...bh,...Au,...ar}}function vH(o,t,n){return{kind:sn.StyleMap,target:o,expression:t,sourceSpan:n,...bh,...Au,...ar}}function CH(o,t,n){return{kind:sn.ClassMap,target:o,expression:t,sourceSpan:n,...bh,...Au,...ar}}function yH(o,t,n,s,r,l,E,N,ae,ze){return{kind:sn.Attribute,target:o,namespace:t,name:n,expression:s,securityContext:r,sanitizer:null,isTextAttribute:l,isStructuralTemplateAttribute:E,templateKind:N,i18nContext:null,i18nMessage:ae,sourceSpan:ze,...bh,...Au,...ar}}function bH(o,t){return{kind:sn.Advance,delta:o,sourceSpan:t,...ar}}function tF(o,t,n,s){return{kind:sn.Conditional,target:o,test:t,conditions:n,processed:null,sourceSpan:s,contextValue:null,...ar,...bh,...Au}}function nF(o,t,n,s,r,l,E){return{kind:sn.AnimationBinding,name:o,target:t,animationKind:n,expression:s,i18nMessage:null,securityContext:r,sanitizer:null,sourceSpan:l,animationBindingKind:E,...ar}}function iF(o,t,n,s,r,l,E,N,ae,ze,dt){return{kind:sn.I18nExpression,context:o,target:t,i18nOwner:n,handle:s,expression:r,icuPlaceholder:l,i18nPlaceholder:E,resolutionTime:N,usage:ae,name:ze,sourceSpan:dt,...ar,...Au,...bh}}function OH(o,t,n){return{kind:sn.I18nApply,owner:o,handle:t,sourceSpan:n,...ar}}function cf(o){return o instanceof ba}class ba extends Jr{constructor(t=null){super(null,t)}}class jc extends ba{name;kind=Gs.LexicalRead;constructor(t){super(),this.name=t}visitExpression(t,n){}isEquivalent(t){return this.name===t.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new jc(this.name)}}class nD extends ba{target;targetSlot;offset;kind=Gs.Reference;constructor(t,n,s){super(),this.target=t,this.targetSlot=n,this.offset=s}visitExpression(){}isEquivalent(t){return t instanceof nD&&t.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new nD(this.target,this.targetSlot,this.offset)}}class w0 extends ba{target;value;sourceSpan;kind=Gs.StoreLet;[E0]=!0;[gR]=!0;constructor(t,n,s){super(),this.target=t,this.value=n,this.sourceSpan=s}visitExpression(){}isEquivalent(t){return t instanceof w0&&t.target===this.target&&t.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(t,n){this.value=Is(this.value,t,n)}clone(){return new w0(this.target,this.value,this.sourceSpan)}}class S0 extends ba{target;targetSlot;kind=Gs.ContextLetReference;constructor(t,n){super(),this.target=t,this.targetSlot=n}visitExpression(){}isEquivalent(t){return t instanceof S0&&t.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new S0(this.target,this.targetSlot)}}class Cm extends ba{view;kind=Gs.Context;constructor(t){super(),this.view=t}visitExpression(){}isEquivalent(t){return t instanceof Cm&&t.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new Cm(this.view)}}class CM extends ba{view;kind=Gs.TrackContext;constructor(t){super(),this.view=t}visitExpression(){}isEquivalent(t){return t instanceof CM&&t.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new CM(this.view)}}class iD extends ba{kind=Gs.NextContext;steps=1;constructor(){super()}visitExpression(){}isEquivalent(t){return t instanceof iD&&t.steps===this.steps}isConstant(){return!1}transformInternalExpressions(){}clone(){const t=new iD;return t.steps=this.steps,t}}class yM extends ba{kind=Gs.GetCurrentView;constructor(){super()}visitExpression(){}isEquivalent(t){return t instanceof yM}isConstant(){return!1}transformInternalExpressions(){}clone(){return new yM}}class oD extends ba{view;kind=Gs.RestoreView;constructor(t){super(),this.view=t}visitExpression(t,n){"number"!=typeof this.view&&this.view.visitExpression(t,n)}isEquivalent(t){return t instanceof oD&&typeof t.view==typeof this.view&&("number"==typeof this.view?this.view===t.view:this.view.isEquivalent(t.view))}isConstant(){return!1}transformInternalExpressions(t,n){"number"!=typeof this.view&&(this.view=Is(this.view,t,n))}clone(){return new oD(this.view instanceof Jr?this.view.clone():this.view)}}class bM extends ba{expr;kind=Gs.ResetView;constructor(t){super(),this.expr=t}visitExpression(t,n){this.expr.visitExpression(t,n)}isEquivalent(t){return t instanceof bM&&this.expr.isEquivalent(t.expr)}isConstant(){return!1}transformInternalExpressions(t,n){this.expr=Is(this.expr,t,n)}clone(){return new bM(this.expr.clone())}}class xM extends ba{target;value;kind=Gs.TwoWayBindingSet;constructor(t,n){super(),this.target=t,this.value=n}visitExpression(t,n){this.target.visitExpression(t,n),this.value.visitExpression(t,n)}isEquivalent(t){return this.target.isEquivalent(t.target)&&this.value.isEquivalent(t.value)}isConstant(){return!1}transformInternalExpressions(t,n){this.target=Is(this.target,t,n),this.value=Is(this.value,t,n)}clone(){return new xM(this.target,this.value)}}class df extends ba{xref;kind=Gs.ReadVariable;name=null;constructor(t){super(),this.xref=t}visitExpression(){}isEquivalent(t){return t instanceof df&&t.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){const t=new df(this.xref);return t.name=this.name,t}}class nv extends ba{kind=Gs.PureFunctionExpr;[E0]=!0;[vM]=!0;varOffset=null;body;args;fn=null;constructor(t,n){super(),this.body=t,this.args=n}visitExpression(t,n){this.body?.visitExpression(t,n);for(const s of this.args)s.visitExpression(t,n)}isEquivalent(t){return t instanceof nv&&t.args.length===this.args.length&&null!==t.body&&null!==this.body&&t.body.isEquivalent(this.body)&&t.args.every((n,s)=>n.isEquivalent(this.args[s]))}isConstant(){return!1}transformInternalExpressions(t,n){null!==this.body?this.body=Is(this.body,t,n|Kr.InChildOperation):null!==this.fn&&(this.fn=Is(this.fn,t,n));for(let s=0;s<this.args.length;s++)this.args[s]=Is(this.args[s],t,n)}clone(){const t=new nv(this.body?.clone()??null,this.args.map(n=>n.clone()));return t.fn=this.fn?.clone()??null,t.varOffset=this.varOffset,t}}class Cy extends ba{index;kind=Gs.PureFunctionParameterExpr;constructor(t){super(),this.index=t}visitExpression(){}isEquivalent(t){return t instanceof Cy&&t.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new Cy(this.index)}}class yy extends ba{target;targetSlot;name;args;kind=Gs.PipeBinding;[E0]=!0;[vM]=!0;varOffset=null;constructor(t,n,s,r){super(),this.target=t,this.targetSlot=n,this.name=s,this.args=r}visitExpression(t,n){for(const s of this.args)s.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){for(let s=0;s<this.args.length;s++)this.args[s]=Is(this.args[s],t,n)}clone(){const t=new yy(this.target,this.targetSlot,this.name,this.args.map(n=>n.clone()));return t.varOffset=this.varOffset,t}}class sD extends ba{target;targetSlot;name;args;numArgs;kind=Gs.PipeBindingVariadic;[E0]=!0;[vM]=!0;varOffset=null;constructor(t,n,s,r,l){super(),this.target=t,this.targetSlot=n,this.name=s,this.args=r,this.numArgs=l}visitExpression(t,n){this.args.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){this.args=Is(this.args,t,n)}clone(){const t=new sD(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return t.varOffset=this.varOffset,t}}class D0 extends ba{receiver;name;kind=Gs.SafePropertyRead;constructor(t,n){super(),this.receiver=t,this.name=n}get index(){return this.name}visitExpression(t,n){this.receiver.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){this.receiver=Is(this.receiver,t,n)}clone(){return new D0(this.receiver.clone(),this.name)}}class T0 extends ba{receiver;index;kind=Gs.SafeKeyedRead;constructor(t,n,s){super(s),this.receiver=t,this.index=n}visitExpression(t,n){this.receiver.visitExpression(t,n),this.index.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){this.receiver=Is(this.receiver,t,n),this.index=Is(this.index,t,n)}clone(){return new T0(this.receiver.clone(),this.index.clone(),this.sourceSpan)}}class by extends ba{receiver;args;kind=Gs.SafeInvokeFunction;constructor(t,n){super(),this.receiver=t,this.args=n}visitExpression(t,n){this.receiver.visitExpression(t,n);for(const s of this.args)s.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){this.receiver=Is(this.receiver,t,n);for(let s=0;s<this.args.length;s++)this.args[s]=Is(this.args[s],t,n)}clone(){return new by(this.receiver.clone(),this.args.map(t=>t.clone()))}}class A0 extends ba{guard;expr;kind=Gs.SafeTernaryExpr;constructor(t,n){super(),this.guard=t,this.expr=n}visitExpression(t,n){this.guard.visitExpression(t,n),this.expr.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){this.guard=Is(this.guard,t,n),this.expr=Is(this.expr,t,n)}clone(){return new A0(this.guard.clone(),this.expr.clone())}}class I0 extends ba{kind=Gs.EmptyExpr;visitExpression(t,n){}isEquivalent(t){return t instanceof I0}isConstant(){return!0}clone(){return new I0}transformInternalExpressions(){}}class uf extends ba{expr;xref;kind=Gs.AssignTemporaryExpr;name=null;constructor(t,n){super(),this.expr=t,this.xref=n}visitExpression(t,n){this.expr.visitExpression(t,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,n){this.expr=Is(this.expr,t,n)}clone(){const t=new uf(this.expr.clone(),this.xref);return t.name=this.name,t}}class iv extends ba{xref;kind=Gs.ReadTemporaryExpr;name=null;constructor(t){super(),this.xref=t}visitExpression(t,n){}isEquivalent(){return this.xref==this.xref}isConstant(){return!1}transformInternalExpressions(t,n){}clone(){const t=new iv(this.xref);return t.name=this.name,t}}class rD extends ba{slot;kind=Gs.SlotLiteralExpr;constructor(t){super(),this.slot=t}visitExpression(t,n){}isEquivalent(t){return t instanceof rD&&t.slot===this.slot}isConstant(){return!0}clone(){return new rD(this.slot)}transformInternalExpressions(){}}class aD extends ba{expr;target;targetSlot;alias;kind=Gs.ConditionalCase;constructor(t,n,s,r=null){super(),this.expr=t,this.target=n,this.targetSlot=s,this.alias=r}visitExpression(t,n){null!==this.expr&&this.expr.visitExpression(t,n)}isEquivalent(t){return t instanceof aD&&t.expr===this.expr}isConstant(){return!0}clone(){return new aD(this.expr,this.target,this.targetSlot)}transformInternalExpressions(t,n){null!==this.expr&&(this.expr=Is(this.expr,t,n))}}class M0 extends ba{expr;kind=Gs.ConstCollected;constructor(t){super(),this.expr=t}transformInternalExpressions(t,n){this.expr=t(this.expr,n)}visitExpression(t,n){this.expr.visitExpression(t,n)}isEquivalent(t){return t instanceof M0&&this.expr.isEquivalent(t.expr)}isConstant(){return this.expr.isConstant()}clone(){return new M0(this.expr)}}function wc(o,t){Bl(o,(n,s)=>(t(n,s),n),Kr.None)}var Kr=function(o){return o[o.None=0]="None",o[o.InChildOperation=1]="InChildOperation",o}(Kr||{});function mR(o,t,n){for(let s=0;s<o.expressions.length;s++)o.expressions[s]=Is(o.expressions[s],t,n)}function Bl(o,t,n){switch(o.kind){case sn.StyleProp:case sn.StyleMap:case sn.ClassProp:case sn.ClassMap:case sn.AnimationString:case sn.AnimationBinding:case sn.Binding:o.expression instanceof Cl?mR(o.expression,t,n):o.expression=Is(o.expression,t,n);break;case sn.Property:case sn.DomProperty:case sn.Attribute:o.expression instanceof Cl?mR(o.expression,t,n):o.expression=Is(o.expression,t,n),o.sanitizer=o.sanitizer&&Is(o.sanitizer,t,n);break;case sn.TwoWayProperty:o.expression=Is(o.expression,t,n),o.sanitizer=o.sanitizer&&Is(o.sanitizer,t,n);break;case sn.I18nExpression:o.expression=Is(o.expression,t,n);break;case sn.InterpolateText:mR(o.interpolation,t,n);break;case sn.Statement:EM(o.statement,t,n);break;case sn.Variable:o.initializer=Is(o.initializer,t,n);break;case sn.Conditional:for(const s of o.conditions)null!==s.expr&&(s.expr=Is(s.expr,t,n));null!==o.processed&&(o.processed=Is(o.processed,t,n)),null!==o.contextValue&&(o.contextValue=Is(o.contextValue,t,n));break;case sn.Animation:case sn.AnimationListener:case sn.Listener:case sn.TwoWayListener:for(const s of o.handlerOps)Bl(s,t,n|Kr.InChildOperation);break;case sn.ExtractedAttribute:o.expression=o.expression&&Is(o.expression,t,n),o.trustedValueFn=o.trustedValueFn&&Is(o.trustedValueFn,t,n);break;case sn.RepeaterCreate:if(null===o.trackByOps)o.track=Is(o.track,t,n);else for(const s of o.trackByOps)Bl(s,t,n|Kr.InChildOperation);null!==o.trackByFn&&(o.trackByFn=Is(o.trackByFn,t,n));break;case sn.Repeater:o.collection=Is(o.collection,t,n);break;case sn.Defer:null!==o.loadingConfig&&(o.loadingConfig=Is(o.loadingConfig,t,n)),null!==o.placeholderConfig&&(o.placeholderConfig=Is(o.placeholderConfig,t,n)),null!==o.resolverFn&&(o.resolverFn=Is(o.resolverFn,t,n));break;case sn.I18nMessage:for(const[s,r]of o.params)o.params.set(s,Is(r,t,n));for(const[s,r]of o.postprocessingParams)o.postprocessingParams.set(s,Is(r,t,n));break;case sn.DeferWhen:o.expr=Is(o.expr,t,n);break;case sn.StoreLet:o.value=Is(o.value,t,n);break;case sn.Advance:case sn.Container:case sn.ContainerEnd:case sn.ContainerStart:case sn.DeferOn:case sn.DisableBindings:case sn.Element:case sn.ElementEnd:case sn.ElementStart:case sn.EnableBindings:case sn.I18n:case sn.I18nApply:case sn.I18nContext:case sn.I18nEnd:case sn.I18nStart:case sn.IcuEnd:case sn.IcuStart:case sn.Namespace:case sn.Pipe:case sn.Projection:case sn.ProjectionDef:case sn.Template:case sn.Text:case sn.I18nAttributes:case sn.IcuPlaceholder:case sn.DeclareLet:case sn.SourceLocation:case sn.ConditionalCreate:case sn.ConditionalBranchCreate:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${sn[o.kind]}`)}}function Is(o,t,n){if(o instanceof ba)o.transformInternalExpressions(t,n);else if(o instanceof jo)o.lhs=Is(o.lhs,t,n),o.rhs=Is(o.rhs,t,n);else if(o instanceof ao)o.expr=Is(o.expr,t,n);else if(o instanceof us)o.receiver=Is(o.receiver,t,n);else if(o instanceof zo)o.receiver=Is(o.receiver,t,n),o.index=Is(o.index,t,n);else if(o instanceof ml){o.fn=Is(o.fn,t,n);for(let s=0;s<o.args.length;s++)o.args[s]=Is(o.args[s],t,n)}else if(o instanceof Er)for(let s=0;s<o.entries.length;s++)o.entries[s]=Is(o.entries[s],t,n);else if(o instanceof Rr)for(let s=0;s<o.entries.length;s++)o.entries[s].value=Is(o.entries[s].value,t,n);else if(o instanceof ct)o.condition=Is(o.condition,t,n),o.trueCase=Is(o.trueCase,t,n),null!==o.falseCase&&(o.falseCase=Is(o.falseCase,t,n));else if(o instanceof dm)o.expr=Is(o.expr,t,n);else if(o instanceof oy)o.expr=Is(o.expr,t,n);else if(o instanceof u)for(let s=0;s<o.expressions.length;s++)o.expressions[s]=Is(o.expressions[s],t,n);else if(o instanceof fn)o.condition=Is(o.condition,t,n);else if(o instanceof um)o.tag=Is(o.tag,t,n),o.template.expressions=o.template.expressions.map(s=>Is(s,t,n));else if(o instanceof _i)if(Array.isArray(o.body))for(let s=0;s<o.body.length;s++)EM(o.body[s],t,n);else o.body=Is(o.body,t,n);else if(!(o instanceof yr))if(o instanceof Ud)for(let s=0;s<o.expressions.length;s++)o.expressions[s]=Is(o.expressions[s],t,n);else if(o instanceof No)o.expr=Is(o.expr,t,n);else if(!(o instanceof ld||o instanceof $e||o instanceof qa))throw new Error(`Unhandled expression kind: ${o.constructor.name}`);return t(o,n)}function EM(o,t,n){if(o instanceof _h)o.expr=Is(o.expr,t,n);else if(o instanceof Ec)o.value=Is(o.value,t,n);else if(o instanceof al)void 0!==o.value&&(o.value=Is(o.value,t,n));else{if(!(o instanceof RS))throw new Error(`Unhandled statement kind: ${o.constructor.name}`);o.condition=Is(o.condition,t,n);for(const s of o.trueCase)EM(s,t,n);for(const s of o.falseCase)EM(s,t,n)}}function oF(o){return o instanceof qa&&"string"==typeof o.value}let Lo=(()=>{class o{static nextListId=0;debugListId=o.nextListId++;head={kind:sn.ListEnd,next:null,prev:null,debugListId:this.debugListId};tail={kind:sn.ListEnd,next:null,prev:null,debugListId:this.debugListId};constructor(){this.head.next=this.tail,this.tail.prev=this.head}push(n){if(Array.isArray(n)){for(const r of n)this.push(r);return}o.assertIsNotEnd(n),o.assertIsUnowned(n),n.debugListId=this.debugListId;const s=this.tail.prev;n.prev=s,s.next=n,n.next=this.tail,this.tail.prev=n}prepend(n){if(0===n.length)return;for(const l of n)o.assertIsNotEnd(l),o.assertIsUnowned(l),l.debugListId=this.debugListId;const s=this.head.next;let r=this.head;for(const l of n)r.next=l,l.prev=r,r=l;r.next=s,s.prev=r}*[Symbol.iterator](){let n=this.head.next;for(;n!==this.tail;){o.assertIsOwned(n,this.debugListId);const s=n.next;yield n,n=s}}*reversed(){let n=this.tail.prev;for(;n!==this.head;){o.assertIsOwned(n,this.debugListId);const s=n.prev;yield n,n=s}}static replace(n,s){o.assertIsNotEnd(n),o.assertIsNotEnd(s),o.assertIsOwned(n),o.assertIsUnowned(s),s.debugListId=n.debugListId,null!==n.prev&&(n.prev.next=s,s.prev=n.prev),null!==n.next&&(n.next.prev=s,s.next=n.next),n.debugListId=null,n.prev=null,n.next=null}static replaceWithMany(n,s){if(0===s.length)return void o.remove(n);o.assertIsNotEnd(n),o.assertIsOwned(n);const r=n.debugListId;n.debugListId=null;for(const dt of s)o.assertIsNotEnd(dt),o.assertIsUnowned(dt);const{prev:l,next:E}=n;n.prev=null,n.next=null;let N=l;for(const dt of s)o.assertIsUnowned(dt),dt.debugListId=r,N.next=dt,dt.prev=N,dt.next=null,N=dt;const ae=s[0],ze=N;null!==l&&(l.next=ae,ae.prev=l),null!==E&&(E.prev=ze,ze.next=E)}static remove(n){o.assertIsNotEnd(n),o.assertIsOwned(n),n.prev.next=n.next,n.next.prev=n.prev,n.debugListId=null,n.prev=null,n.next=null}static insertBefore(n,s){if(Array.isArray(n))for(const r of n)o.insertBefore(r,s);else{if(o.assertIsOwned(s),null===s.prev)throw new Error("AssertionError: illegal operation on list start");o.assertIsNotEnd(n),o.assertIsUnowned(n),n.debugListId=s.debugListId,n.prev=null,s.prev.next=n,n.prev=s.prev,n.next=s,s.prev=n}}static insertAfter(n,s){if(o.assertIsOwned(s),null===s.next)throw new Error("AssertionError: illegal operation on list end");o.assertIsNotEnd(n),o.assertIsUnowned(n),n.debugListId=s.debugListId,s.next.prev=n,n.next=s.next,n.prev=s,s.next=n}static assertIsUnowned(n){if(null!==n.debugListId)throw new Error(`AssertionError: illegal operation on owned node: ${sn[n.kind]}`)}static assertIsOwned(n,s){if(null===n.debugListId)throw new Error(`AssertionError: illegal operation on unowned node: ${sn[n.kind]}`);if(void 0!==s&&n.debugListId!==s)throw new Error(`AssertionError: node belongs to the wrong list (expected ${s}, actual ${n.debugListId})`)}static assertIsNotEnd(n){if(n.kind===sn.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}}return o})();class zd{slot=null}const SH=new Set([sn.Element,sn.ElementStart,sn.Container,sn.ContainerStart,sn.Template,sn.RepeaterCreate,sn.ConditionalCreate,sn.ConditionalBranchCreate]);function ym(o){return SH.has(o.kind)}function sF(o,t,n,s,r,l,E,N){return{kind:sn.Template,xref:o,templateKind:t,attributes:null,tag:n,handle:new zd,functionNameSuffix:s,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:l,startSourceSpan:E,wholeSourceSpan:N,...hp,...ar}}function rF(o,t,n,s,r,l,E,N){return{kind:sn.ConditionalCreate,xref:o,templateKind:t,attributes:null,tag:n,handle:new zd,functionNameSuffix:s,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:l,startSourceSpan:E,wholeSourceSpan:N,...hp,...ar}}function aF(o,t,n,s,r,l,E,N){return{kind:sn.ConditionalBranchCreate,xref:o,templateKind:t,attributes:null,tag:n,handle:new zd,functionNameSuffix:s,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:l,startSourceSpan:E,wholeSourceSpan:N,...hp,...ar}}function IH(o){return{kind:sn.DisableBindings,xref:o,...ar}}function MH(o){return{kind:sn.EnableBindings,xref:o,...ar}}function lF(o,t,n,s){return{kind:sn.Text,xref:o,handle:new zd,initialValue:t,icuPlaceholder:n,sourceSpan:s,...hp,...ar}}function _R(o,t,n,s,r,l,E,N,ae){const ze=new Lo;return ze.push(r),{kind:sn.Listener,target:o,targetSlot:t,tag:s,hostListener:N,name:n,handlerOps:ze,handlerFnName:null,consumesDollarEvent:!1,isLegacyAnimationListener:null!==l,legacyAnimationPhase:l,eventTarget:E,sourceSpan:ae,...ar}}function cF(o,t,n,s,r,l,E,N,ae){const ze=new Lo;return ze.push(r),{kind:sn.AnimationListener,target:o,targetSlot:t,tag:s,hostListener:N,name:n,animationKind:l,handlerOps:ze,handlerFnName:null,consumesDollarEvent:!1,eventTarget:E,sourceSpan:ae,...ar}}function dF(o,t,n,s,r,l){const E=new Lo;return E.push(r),{kind:sn.TwoWayListener,target:o,targetSlot:t,tag:s,name:n,handlerOps:E,handlerFnName:null,sourceSpan:l,...ar}}function uF(o,t,n){return{kind:sn.Pipe,xref:o,handle:t,name:n,...ar,...hp}}function kH(o){return{kind:sn.Namespace,active:o,...ar}}function BH(o){return{kind:sn.ProjectionDef,def:o,...ar}}function gp(o,t,n,s,r,l,E,N){return{kind:sn.ExtractedAttribute,target:o,bindingKind:t,namespace:n,name:s,expression:r,i18nContext:l,i18nMessage:E,securityContext:N,trustedValueFn:null,...ar}}function ov(o,t,n,s){return{kind:sn.DeferOn,defer:o,trigger:t,modifier:n,sourceSpan:s,...ar}}function OM(o,t,n,s){return{kind:sn.I18nStart,xref:o,handle:new zd,root:n??o,message:t,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:s,...ar,...hp}}function wM(o,t){return{kind:sn.I18nEnd,xref:o,sourceSpan:t,...ar}}function UH(o,t,n){return{kind:sn.IcuPlaceholder,xref:o,name:t,strings:n,expressionPlaceholders:[],...ar}}function vR(o,t,n,s,r){if(null===n&&o!==_y.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return{kind:sn.I18nContext,contextKind:o,xref:t,i18nBlock:n,message:s,sourceSpan:r,params:new Map,postprocessingParams:new Map,...ar}}function hF(o,t,n){return{kind:sn.I18nAttributes,xref:o,handle:t,target:n,i18nAttributesConfig:null,...ar,...hp}}function jH(o,t){return{kind:sn.SourceLocation,templatePath:o,locations:t,...ar}}function GH(o,t,n,s,r,l){return{kind:sn.DomProperty,name:o,expression:t,bindingKind:n,i18nContext:s,securityContext:r,sanitizer:null,sourceSpan:l,...Au,...ar}}const pF="CTX_REF_MARKER";var ys=function(o){return o[o.Tmpl=0]="Tmpl",o[o.Host=1]="Host",o[o.Both=2]="Both",o}(ys||{}),xh=function(o){return o[o.Full=0]="Full",o[o.DomOnly=1]="DomOnly",o}(xh||{});class gF{componentName;pool;compatibility;mode;constructor(t,n,s,r){this.componentName=t,this.pool=n,this.compatibility=s,this.mode=r}kind=ys.Both;allocateXrefId(){return this.nextXrefId++}nextXrefId=0}class CR extends gF{relativeContextFilePath;i18nUseExternalIds;deferMeta;allDeferrableDepsFn;relativeTemplatePath;enableDebugLocations;constructor(t,n,s,r,l,E,N,ae,ze,dt){super(t,n,s,r),this.relativeContextFilePath=l,this.i18nUseExternalIds=E,this.deferMeta=N,this.allDeferrableDepsFn=ae,this.relativeTemplatePath=ze,this.enableDebugLocations=dt,this.root=new hf(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}kind=ys.Tmpl;fnSuffix="Template";root;views=new Map;contentSelectors=null;allocateView(t){const n=new hf(this,this.allocateXrefId(),t);return this.views.set(n.xref,n),n}get units(){return this.views.values()}addConst(t,n){for(let r=0;r<this.consts.length;r++)if(this.consts[r].isEquivalent(t))return r;const s=this.consts.length;return this.consts.push(t),n&&this.constsInitializers.push(...n),s}consts=[];constsInitializers=[]}class fF{xref;constructor(t){this.xref=t}create=new Lo;update=new Lo;fnName=null;vars=null;*ops(){for(const t of this.create)if(yield t,t.kind===sn.Listener||t.kind===sn.Animation||t.kind===sn.AnimationListener||t.kind===sn.TwoWayListener)for(const n of t.handlerOps)yield n;else if(t.kind===sn.RepeaterCreate&&null!==t.trackByOps)for(const n of t.trackByOps)yield n;for(const t of this.update)yield t}}class hf extends fF{job;parent;constructor(t,n,s){super(n),this.job=t,this.parent=s}contextVariables=new Map;aliases=new Set;decls=null}class mF extends gF{constructor(t,n,s,r){super(t,n,s,r),this.root=new WH(this)}kind=ys.Host;fnSuffix="HostBindings";root;get units(){return[this.root]}}class WH extends fF{job;constructor(t){super(0),this.job=t}attributes=null}function KH(o){if(o instanceof ml&&o.fn instanceof jc&&"$any"===o.fn.name){if(1!==o.args.length)throw new Error("The $any builtin function expects exactly one argument.");return o.args[0]}return o}function YH(o,t){if(t.next?.kind!==sn.I18nExpression)return!0;const n=o.get(t.context),s=o.get(t.next.context);if(void 0===n)throw new Error("AssertionError: expected an I18nContextOp to exist for the I18nExpressionOp's context");if(void 0===s)throw new Error("AssertionError: expected an I18nContextOp to exist for the next I18nExpressionOp's context");return null!==n.i18nBlock?n.i18nBlock!==s.i18nBlock:t.i18nOwner!==t.next.i18nOwner}function yR(o){const t=new Map;for(const n of o.create)O0(n)&&(t.set(n.xref,n),n.kind===sn.RepeaterCreate&&null!==n.emptyView&&t.set(n.emptyView,n));return t}function P0(o,t){const n=o.get(t);if(void 0===n)throw new Error("All attributes should have an element-like target.");return n}function qH(o,t,n){if(t.expression instanceof Cl)return;let s=t.isTextAttribute||t.expression.isConstant();if(o.job.compatibility===yh.TemplateDefinitionBuilder&&(s&&=t.isTextAttribute),s){const r=gp(t.target,t.isStructuralTemplateAttribute?Fs.Template:Fs.Attribute,t.namespace,t.name,t.expression,t.i18nContext,t.i18nMessage,t.securityContext);if(o.job.kind===ys.Host)o.create.push(r);else{const l=P0(n,t.target);Lo.insertBefore(r,l)}Lo.remove(t)}}function e$(o,t){const n=o.get(t);if(void 0===n)throw new Error("All attributes should have an element-like target.");return n}const _F=new Map([[oi.ariaProperty,oi.ariaProperty],[oi.attribute,oi.attribute],[oi.classProp,oi.classProp],[oi.element,oi.element],[oi.elementContainer,oi.elementContainer],[oi.elementContainerEnd,oi.elementContainerEnd],[oi.elementContainerStart,oi.elementContainerStart],[oi.elementEnd,oi.elementEnd],[oi.elementStart,oi.elementStart],[oi.domProperty,oi.domProperty],[oi.i18nExp,oi.i18nExp],[oi.listener,oi.listener],[oi.listener,oi.listener],[oi.property,oi.property],[oi.styleProp,oi.styleProp],[oi.syntheticHostListener,oi.syntheticHostListener],[oi.syntheticHostProperty,oi.syntheticHostProperty],[oi.templateCreate,oi.templateCreate],[oi.twoWayProperty,oi.twoWayProperty],[oi.twoWayListener,oi.twoWayListener],[oi.declareLet,oi.declareLet],[oi.conditionalCreate,oi.conditionalBranchCreate],[oi.conditionalBranchCreate,oi.conditionalBranchCreate],[oi.domElement,oi.domElement],[oi.domElementStart,oi.domElementStart],[oi.domElementEnd,oi.domElementEnd],[oi.domElementContainer,oi.domElementContainer],[oi.domElementContainerStart,oi.domElementContainerStart],[oi.domElementContainerEnd,oi.domElementContainerEnd],[oi.domListener,oi.domListener],[oi.domTemplate,oi.domTemplate],[oi.animationEnter,oi.animationEnter],[oi.animationLeave,oi.animationLeave],[oi.animationEnterListener,oi.animationEnterListener],[oi.animationLeaveListener,oi.animationLeaveListener]]);function vF(o){let t=null;for(const n of o){if(n.kind!==sn.Statement||!(n.statement instanceof _h)){t=null;continue}if(!(n.statement.expr instanceof ml&&n.statement.expr.fn instanceof $e)){t=null;continue}const s=n.statement.expr.fn.value;if(_F.has(s))if(null!==t&&_F.get(t.instruction)===s&&t.length<256){const r=t.expression.callFn(n.statement.expr.args,n.statement.expr.sourceSpan,n.statement.expr.pure);t.expression=r,t.op.statement=r.toStmt(),t.length++,Lo.remove(n)}else t={op:n,instruction:s,expression:n.statement.expr,length:1};else t=null}}const r$=new Map([["&&",Uo.And],[">",Uo.Bigger],[">=",Uo.BiggerEquals],["|",Uo.BitwiseOr],["&",Uo.BitwiseAnd],["/",Uo.Divide],["=",Uo.Assign],["==",Uo.Equals],["===",Uo.Identical],["<",Uo.Lower],["<=",Uo.LowerEquals],["-",Uo.Minus],["%",Uo.Modulo],["**",Uo.Exponentiation],["*",Uo.Multiply],["!=",Uo.NotEquals],["!==",Uo.NotIdentical],["??",Uo.NullishCoalesce],["||",Uo.Or],["+",Uo.Plus],["in",Uo.In],["+=",Uo.AdditionAssignment],["-=",Uo.SubtractionAssignment],["*=",Uo.MultiplicationAssignment],["/=",Uo.DivisionAssignment],["%=",Uo.RemainderAssignment],["**=",Uo.ExponentiationAssignment],["&&=",Uo.AndAssignment],["||=",Uo.OrAssignment],["??=",Uo.NullishCoalesceAssignment]]);function CF(o){return null===o?ud.HTML:new Map([["svg",ud.SVG],["math",ud.Math]]).get(o)??ud.HTML}function R0(o){return Array.isArray(o)?hr(o.map(R0)):Ei(o)}function yF(o,t,n){const s=t.get(n);if(void 0!==s){const r=bR(s);if(r.entries.length>0)return o.addConst(r)}return null}const k0=Object.freeze([]);class d${compatibility;known=new Map;byKind=new Map;propertyBindings=null;projectAs=null;get attributes(){return this.byKind.get(Fs.Attribute)??k0}get classes(){return this.byKind.get(Fs.ClassName)??k0}get styles(){return this.byKind.get(Fs.StyleProperty)??k0}get bindings(){return this.propertyBindings??k0}get template(){return this.byKind.get(Fs.Template)??k0}get i18n(){return this.byKind.get(Fs.I18n)??k0}constructor(t){this.compatibility=t}isKnown(t,n){const s=this.known.get(t)??new Set;return this.known.set(t,s),!!s.has(n)||(s.add(n),!1)}add(t,n,s,r,l){if((this.compatibility!==yh.TemplateDefinitionBuilder||t!==Fs.Attribute&&t!==Fs.ClassName&&t!==Fs.StyleProperty)&&this.isKnown(t,n))return;if("ngProjectAs"===n){if(null===s||!(s instanceof qa)||null==s.value||"string"!=typeof s.value?.toString())throw Error("ngProjectAs must have a string literal value");this.projectAs=s.value.toString()}const N=this.arrayFor(t);if(N.push(...function u$(o,t){const n=Ei(t);return o?[Ei(0),Ei(o),n]:[n]}(r,n)),t===Fs.Attribute||t===Fs.StyleProperty){if(null===s)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(null!==l){if(!oF(s))throw Error("AssertionError: extracted attribute value should be string literal");N.push(function Dk(o,t,n,s){return new um(o,t,n,s)}(l,new Ud([new pm(s.value)],[]),void 0,s.sourceSpan))}else N.push(s)}}arrayFor(t){return t===Fs.Property||t===Fs.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(t)||this.byKind.set(t,[]),this.byKind.get(t))}}function bR({attributes:o,bindings:t,classes:n,i18n:s,projectAs:r,styles:l,template:E}){const N=[...o];if(null!==r){const ae=SS(r)[0];N.push(Ei(5),R0(ae))}return n.length>0&&N.push(Ei(1),...n),l.length>0&&N.push(Ei(2),...l),t.length>0&&N.push(Ei(3),...t),E.length>0&&N.push(Ei(4),...E),s.length>0&&N.push(Ei(6),...s),hr(N)}function h$(o,t){const n=o.get(t);if(void 0===n)throw new Error("All attributes should have an element-like target.");return n}function g$(o){if(0===o.animationBindingKind)return function PH(o,t,n,s,r,l){return{kind:sn.AnimationString,name:o,target:t,animationKind:n,expression:s,i18nMessage:null,securityContext:r,sanitizer:null,sourceSpan:l,...ar}}(o.name,o.target,"animate.enter"===o.name?"enter":"leave",o.expression,o.securityContext,o.sourceSpan);{const t=o.expression;return function RH(o,t,n,s,r,l){const E=new Lo;return E.push(s),{kind:sn.Animation,name:o,target:t,animationKind:n,handlerOps:E,handlerFnName:null,i18nMessage:null,securityContext:r,sanitizer:null,sourceSpan:l,...ar}}(o.name,o.target,"animate.enter"===o.name?"enter":"leave",[pp(new Ec(t,t.sourceSpan))],o.securityContext,o.sourceSpan)}}let y$=class{targets=new Map};const b$=new Map([[sn.ElementEnd,[sn.ElementStart,sn.Element]],[sn.ContainerEnd,[sn.ContainerStart,sn.Container]],[sn.I18nEnd,[sn.I18nStart,sn.I18n]]]),x$=new Set([sn.Pipe]);function Eh(o){return o instanceof ao?Eh(o.expr):o instanceof jo?Eh(o.lhs)||Eh(o.rhs):o instanceof ct?!(!o.falseCase||!Eh(o.falseCase))||Eh(o.condition)||Eh(o.trueCase):o instanceof fn?Eh(o.condition):o instanceof uf?Eh(o.expr):o instanceof us?Eh(o.receiver):o instanceof zo?Eh(o.receiver)||Eh(o.index):o instanceof No?Eh(o.expr):o instanceof ml||o instanceof Er||o instanceof Rr||o instanceof by||o instanceof yy}function B0(o,t,n){let s;if(Eh(o)){const r=n.job.allocateXrefId();s=[new uf(o,r),new iv(r)]}else s=[o,o.clone()],function S$(o,t,n){Is(o,s=>{if(s instanceof uf&&t.has(s.xref)){const r=new iv(s.xref);return n.job.compatibility===yh.TemplateDefinitionBuilder?new uf(r,r.xref):r}return s},Kr.None)}(s[1],function w$(o){const t=new Set;return Is(o,n=>(n instanceof uf&&t.add(n.xref),n),Kr.None),t}(s[0]),n);return new A0(s[0],t(s[1]))}function bF(o){return function D$(o){return o instanceof D0||o instanceof T0||o instanceof by}(o)||function T$(o){return o instanceof us||o instanceof zo||o instanceof ml}(o)}function I$(o,t){if(!bF(o))return o;const n=function A$(o){if(bF(o)&&o.receiver instanceof A0){let t=o.receiver;for(;t.expr instanceof A0;)t=t.expr;return t}return null}(o);if(n){if(o instanceof ml)return n.expr=n.expr.callFn(o.args),o.receiver;if(o instanceof us)return n.expr=n.expr.prop(o.name),o.receiver;if(o instanceof zo)return n.expr=n.expr.key(o.index),o.receiver;if(o instanceof by)return n.expr=B0(n.expr,s=>s.callFn(o.args),t),o.receiver;if(o instanceof D0)return n.expr=B0(n.expr,s=>s.prop(o.name),t),o.receiver;if(o instanceof T0)return n.expr=B0(n.expr,s=>s.key(o.index),t),o.receiver}else{if(o instanceof by)return B0(o.receiver,s=>s.callFn(o.args),t);if(o instanceof D0)return B0(o.receiver,s=>s.prop(o.name),t);if(o instanceof T0)return B0(o.receiver,s=>s.key(o.index),t)}return o}function M$(o){return o instanceof A0?new No(new ct(new jo(Uo.Equals,o.guard,cd),cd,o.expr)):o}function H$(o,t,n){let s=EF(t.params);const r=EF(t.postprocessingParams);let l=[...t.params.values()].some(E=>E.length>1);return function VH(o,t,n,s,r,l,E,N){return{kind:sn.I18nMessage,xref:o,i18nContext:t,i18nBlock:n,message:s,messagePlaceholder:r,params:l,postprocessingParams:E,needsPostprocessing:N,subMessages:[],...ar}}(o.allocateXrefId(),t.xref,t.i18nBlock,t.message,null,s,r,l)}function $$(o){if(o.strings.length!==o.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${o.strings.length} strings and ${o.expressionPlaceholders.length} expressions`);const t=o.expressionPlaceholders.map(F0);return o.strings.flatMap((n,s)=>[n,t[s]||""]).join("")}function EF(o){const t=new Map;for(const[n,s]of o){const r=U$(s);null!==r&&t.set(n,Ei(r))}return t}function U$(o){if(0===o.length)return null;const t=o.map(n=>F0(n));return 1===t.length?t[0]:`[${t.join("|")}]`}function F0(o){if(o.flags&ma.ElementTag&&o.flags&ma.TemplateTag){if("object"!=typeof o.value)throw Error("AssertionError: Expected i18n param value to have an element and template slot");const r=F0({...o,value:o.value.element,flags:o.flags&~ma.TemplateTag}),l=F0({...o,value:o.value.template,flags:o.flags&~ma.ElementTag});return o.flags&ma.OpenTag&&o.flags&ma.CloseTag?`${l}${r}${l}`:o.flags&ma.CloseTag?`${r}${l}`:`${l}${r}`}if(o.flags&ma.OpenTag&&o.flags&ma.CloseTag)return`${F0({...o,flags:o.flags&~ma.CloseTag})}${F0({...o,flags:o.flags&~ma.OpenTag})}`;if(o.flags===ma.None)return`${o.value}`;let t="",n="";return o.flags&ma.ElementTag?t="#":o.flags&ma.TemplateTag&&(t="*"),""!==t&&(n=o.flags&ma.CloseTag?"/":""),`\ufffd${n}${t}${o.value}${null===o.subTemplateIndex?"":`:${o.subTemplateIndex}`}\ufffd`}function lD(o,t){const n=function K$(o,t){const n={view:o.xref,viewContextVariable:{kind:Oc.Context,name:null,view:o.xref},contextVariables:new Map,aliases:o.aliases,references:[],letDeclarations:[],parent:t};for(const s of o.contextVariables.keys())n.contextVariables.set(s,{kind:Oc.Identifier,name:null,identifier:s,local:!1});for(const s of o.create)switch(s.kind){case sn.ElementStart:case sn.ConditionalCreate:case sn.ConditionalBranchCreate:case sn.Template:if(!Array.isArray(s.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let r=0;r<s.localRefs.length;r++)n.references.push({name:s.localRefs[r].name,targetId:s.xref,targetSlot:s.handle,offset:r,variable:{kind:Oc.Identifier,name:null,identifier:s.localRefs[r].name,local:!1}});break;case sn.DeclareLet:n.letDeclarations.push({targetId:s.xref,targetSlot:s.handle,variable:{kind:Oc.Identifier,name:null,identifier:s.declaredName,local:!1}})}return n}(o,t);for(const s of o.create)switch(s.kind){case sn.ConditionalCreate:case sn.ConditionalBranchCreate:case sn.Template:lD(o.job.views.get(s.xref),n);break;case sn.Projection:null!==s.fallbackView&&lD(o.job.views.get(s.fallbackView),n);break;case sn.RepeaterCreate:lD(o.job.views.get(s.xref),n),s.emptyView&&lD(o.job.views.get(s.emptyView),n),null!==s.trackByOps&&s.trackByOps.prepend(SM(o,n,!1));break;case sn.Animation:case sn.AnimationListener:case sn.Listener:case sn.TwoWayListener:s.handlerOps.prepend(SM(o,n,!0))}o.update.prepend(SM(o,n,!1))}function SM(o,t,n){const s=[];t.view!==o.xref&&s.push(tv(o.job.allocateXrefId(),t.viewContextVariable,new iD,up.None));const r=o.job.views.get(t.view);for(const[l,E]of r.contextVariables){const N=new Cm(t.view),ae=E===pF?N:new us(N,E);s.push(tv(o.job.allocateXrefId(),t.contextVariables.get(l),ae,up.None))}for(const l of r.aliases)s.push(tv(o.job.allocateXrefId(),l,l.expression.clone(),up.AlwaysInline));for(const l of t.references)s.push(tv(o.job.allocateXrefId(),l.variable,new nD(l.targetId,l.targetSlot,l.offset),up.None));if(t.view!==o.xref||n)for(const l of t.letDeclarations)s.push(tv(o.job.allocateXrefId(),l.variable,new S0(l.targetId,l.targetSlot),up.None));return null!==t.parent&&s.push(...SM(o,t.parent,!1)),s}function Z$(o){return o.startsWith("--")}function J$(o){return o.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}function xR(o){const t=o.indexOf("!important");-1!==t&&(o=t>0?o.substring(0,t):"");let n=null,s=o;const r=o.lastIndexOf(".");return r>0&&(n=o.slice(r+1),s=o.substring(0,r)),{property:s,suffix:n}}function DM(o,t=!1){return _l(Object.keys(o).map(n=>({key:n,quoted:t,value:o[n]})))}const eU=new class q${visitText(t){return t.value}visitContainer(t){return t.children.map(n=>n.visit(this)).join("")}visitIcu(t){const n=Object.keys(t.cases).map(r=>`${r} {${t.cases[r].visit(this)}}`);return`{${t.expressionPlaceholder}, ${t.type}, ${n.join(" ")}}`}visitTagPlaceholder(t){return t.isVoid?this.formatPh(t.startName):`${this.formatPh(t.startName)}${t.children.map(n=>n.visit(this)).join("")}${this.formatPh(t.closeName)}`}visitPlaceholder(t){return this.formatPh(t.name)}visitBlockPlaceholder(t){return`${this.formatPh(t.startName)}${t.children.map(n=>n.visit(this)).join("")}${this.formatPh(t.closeName)}`}visitIcuPlaceholder(t,n){return this.formatPh(t.name)}formatPh(t){return`{${WS(t,!1)}}`}};function TF(o){return o.visit(eU)}class xy{sourceSpan;i18n;constructor(t,n){this.sourceSpan=t,this.i18n=n}}class Ey extends xy{value;tokens;constructor(t,n,s,r){super(n,r),this.value=t,this.tokens=s}visit(t,n){return t.visitText(this,n)}}class N0 extends xy{switchValue;type;cases;switchValueSourceSpan;constructor(t,n,s,r,l,E){super(r,E),this.switchValue=t,this.type=n,this.cases=s,this.switchValueSourceSpan=l}visit(t,n){return t.visitExpansion(this,n)}}class ER{value;expression;sourceSpan;valueSourceSpan;expSourceSpan;constructor(t,n,s,r,l){this.value=t,this.expression=n,this.sourceSpan=s,this.valueSourceSpan=r,this.expSourceSpan=l}visit(t,n){return t.visitExpansionCase(this,n)}}class L0 extends xy{name;value;keySpan;valueSpan;valueTokens;constructor(t,n,s,r,l,E,N){super(s,N),this.name=t,this.value=n,this.keySpan=r,this.valueSpan=l,this.valueTokens=E}visit(t,n){return t.visitAttribute(this,n)}}class Oh extends xy{name;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;isVoid;constructor(t,n,s,r,l,E,N,ae=null,ze,dt){super(E,dt),this.name=t,this.attrs=n,this.directives=s,this.children=r,this.isSelfClosing=l,this.startSourceSpan=N,this.endSourceSpan=ae,this.isVoid=ze}visit(t,n){return t.visitElement(this,n)}}class V0{value;sourceSpan;constructor(t,n){this.value=t,this.sourceSpan=n}visit(t,n){return t.visitComment(this,n)}}class pf extends xy{name;parameters;children;nameSpan;startSourceSpan;endSourceSpan;constructor(t,n,s,r,l,E,N=null,ae){super(r,ae),this.name=t,this.parameters=n,this.children=s,this.nameSpan=l,this.startSourceSpan=E,this.endSourceSpan=N}visit(t,n){return t.visitBlock(this,n)}}class Kd extends xy{componentName;tagName;fullName;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;constructor(t,n,s,r,l,E,N,ae,ze,dt=null,Kt){super(ae,Kt),this.componentName=t,this.tagName=n,this.fullName=s,this.attrs=r,this.directives=l,this.children=E,this.isSelfClosing=N,this.startSourceSpan=ze,this.endSourceSpan=dt}visit(t,n){return t.visitComponent(this,n)}}class AF{name;attrs;sourceSpan;startSourceSpan;endSourceSpan;constructor(t,n,s,r,l=null){this.name=t,this.attrs=n,this.sourceSpan=s,this.startSourceSpan=r,this.endSourceSpan=l}visit(t,n){return t.visitDirective(this,n)}}class IF{expression;sourceSpan;constructor(t,n){this.expression=t,this.sourceSpan=n}visit(t,n){return t.visitBlockParameter(this,n)}}class MF{name;value;sourceSpan;nameSpan;valueSpan;constructor(t,n,s,r,l){this.name=t,this.value=n,this.sourceSpan=s,this.nameSpan=r,this.valueSpan=l}visit(t,n){return t.visitLetDeclaration(this,n)}}function tr(o,t,n=null){const s=[],r=o.visit?l=>o.visit(l,n)||l.visit(o,n):l=>l.visit(o,n);return t.forEach(l=>{const E=r(l);E&&s.push(E)}),s}const cD={AElig:"\xc6",AMP:"&",amp:"&",Aacute:"\xc1",Abreve:"\u0102",Acirc:"\xc2",Acy:"\u0410",Afr:"\u{1d504}",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\u{1d538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xc5",angst:"\xc5",Ascr:"\u{1d49c}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xc3",Auml:"\xc4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212c",Bscr:"\u212c",bernou:"\u212c",Beta:"\u0392",Bfr:"\u{1d505}",Bopf:"\u{1d539}",Breve:"\u02d8",breve:"\u02d8",Bumpeq:"\u224e",HumpDownHump:"\u224e",bump:"\u224e",CHcy:"\u0427",COPY:"\xa9",copy:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212d",Cfr:"\u212d",Ccaron:"\u010c",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",cedil:"\xb8",CenterDot:"\xb7",centerdot:"\xb7",middot:"\xb7",Chi:"\u03a7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201d",rdquo:"\u201d",rdquor:"\u201d",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2a74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222f",DoubleContourIntegral:"\u222f",ContourIntegral:"\u222e",conint:"\u222e",oint:"\u222e",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2a2f",Cscr:"\u{1d49e}",Cup:"\u22d3",CupCap:"\u224d",asympeq:"\u224d",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",DoubleLeftTee:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1d507}",DiacriticalAcute:"\xb4",acute:"\xb4",DiacriticalDot:"\u02d9",dot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",dblac:"\u02dd",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02dc",tilde:"\u02dc",Diamond:"\u22c4",diam:"\u22c4",diamond:"\u22c4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1d53b}",Dot:"\xa8",DoubleDot:"\xa8",die:"\xa8",uml:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21d3",Downarrow:"\u21d3",dArr:"\u21d3",DoubleLeftArrow:"\u21d0",Leftarrow:"\u21d0",lArr:"\u21d0",DoubleLeftRightArrow:"\u21d4",Leftrightarrow:"\u21d4",hArr:"\u21d4",iff:"\u21d4",DoubleLongLeftArrow:"\u27f8",Longleftarrow:"\u27f8",xlArr:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",Longleftrightarrow:"\u27fa",xhArr:"\u27fa",DoubleLongRightArrow:"\u27f9",Longrightarrow:"\u27f9",xrArr:"\u27f9",DoubleRightArrow:"\u21d2",Implies:"\u21d2",Rightarrow:"\u21d2",rArr:"\u21d2",DoubleRightTee:"\u22a8",vDash:"\u22a8",DoubleUpArrow:"\u21d1",Uparrow:"\u21d1",uArr:"\u21d1",DoubleUpDownArrow:"\u21d5",Updownarrow:"\u21d5",vArr:"\u21d5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",duarr:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",leftharpoondown:"\u21bd",lhard:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",rhard:"\u21c1",rightharpoondown:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",top:"\u22a4",DownTeeArrow:"\u21a7",mapstodown:"\u21a7",Dscr:"\u{1d49f}",Dstrok:"\u0110",ENG:"\u014a",ETH:"\xd0",Eacute:"\xc9",Ecaron:"\u011a",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\u{1d508}",Egrave:"\xc8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\u{1d53c}",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21cc",rightleftharpoons:"\u21cc",rlhar:"\u21cc",Escr:"\u2130",expectation:"\u2130",Esim:"\u2a73",Eta:"\u0397",Euml:"\xcb",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1d509}",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",blacksquare:"\u25aa",squarf:"\u25aa",squf:"\u25aa",Fopf:"\u{1d53d}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1d50a}",Gg:"\u22d9",ggg:"\u22d9",Gopf:"\u{1d53e}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22db",gel:"\u22db",gtreqless:"\u22db",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2a7e",geqslant:"\u2a7e",ges:"\u2a7e",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1d4a2}",Gt:"\u226b",NestedGreaterGreater:"\u226b",gg:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",caron:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",Poincareplane:"\u210c",HilbertSpace:"\u210b",Hscr:"\u210b",hamilt:"\u210b",Hopf:"\u210d",quaternions:"\u210d",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224f",bumpe:"\u224f",bumpeq:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xcd",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xcc",Imacr:"\u012a",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222c",Integral:"\u222b",int:"\u222b",Intersection:"\u22c2",bigcap:"\u22c2",xcap:"\u22c2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012e",Iopf:"\u{1d540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1d50d}",Jopf:"\u{1d541}",Jscr:"\u{1d4a5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\u{1d50e}",Kopf:"\u{1d542}",Kscr:"\u{1d4a6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219e",twoheadleftarrow:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",lang:"\u27e8",langle:"\u27e8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21e4",larrb:"\u21e4",LeftArrowRightArrow:"\u21c6",leftrightarrows:"\u21c6",lrarr:"\u21c6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27e6",lobrk:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",dharl:"\u21c3",downharpoonleft:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",lfloor:"\u230a",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",dashv:"\u22a3",LeftTeeArrow:"\u21a4",mapstoleft:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",vartriangleleft:"\u22b2",vltri:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",ltrie:"\u22b4",trianglelefteq:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",uharl:"\u21bf",upharpoonleft:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",leftharpoonup:"\u21bc",lharu:"\u21bc",LeftVectorBar:"\u2952",LessEqualGreater:"\u22da",leg:"\u22da",lesseqgtr:"\u22da",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",leqslant:"\u2a7d",les:"\u2a7d",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1d50f}",Ll:"\u22d8",Lleftarrow:"\u21da",lAarr:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",longleftarrow:"\u27f5",xlarr:"\u27f5",LongLeftRightArrow:"\u27f7",longleftrightarrow:"\u27f7",xharr:"\u27f7",LongRightArrow:"\u27f6",longrightarrow:"\u27f6",xrarr:"\u27f6",Lopf:"\u{1d543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21b0",lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",NestedLessLess:"\u226a",ll:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1d510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1d544}",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",ZeroWidthSpace:"\u200b",NewLine:"\n",Nfr:"\u{1d511}",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nbsp:"\xa0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226f",ngt:"\u226f",ngtr:"\u226f",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",nGtv:"\u226b\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224e\u0338",nbump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",nbumpe:"\u224f\u0338",NotLeftTriangle:"\u22ea",nltri:"\u22ea",ntriangleleft:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",nltrie:"\u22ec",ntrianglelefteq:"\u22ec",NotLess:"\u226e",nless:"\u226e",nlt:"\u226e",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226a\u0338",nLtv:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",npre:"\u2aaf\u0338",npreceq:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",nprcue:"\u22e0",NotReverseElement:"\u220c",notni:"\u220c",notniva:"\u220c",NotRightTriangle:"\u22eb",nrtri:"\u22eb",ntriangleright:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",nrtrie:"\u22ed",ntrianglerighteq:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",nsqsube:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",nsqsupe:"\u22e3",NotSubset:"\u2282\u20d2",nsubset:"\u2282\u20d2",vnsub:"\u2282\u20d2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",nsce:"\u2ab0\u0338",nsucceq:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",nsccue:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",nsupset:"\u2283\u20d2",vnsup:"\u2283\u20d2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1d4a9}",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\u{1d512}",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",ohm:"\u03a9",Omicron:"\u039f",Oopf:"\u{1d546}",OpenCurlyDoubleQuote:"\u201c",ldquo:"\u201c",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2a54",Oscr:"\u{1d4aa}",Oslash:"\xd8",Otilde:"\xd5",Otimes:"\u2a37",Ouml:"\xd6",OverBar:"\u203e",oline:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",tbrk:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",part:"\u2202",Pcy:"\u041f",Pfr:"\u{1d513}",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",plusmn:"\xb1",pm:"\xb1",Popf:"\u2119",primes:"\u2119",Pr:"\u2abb",Precedes:"\u227a",pr:"\u227a",prec:"\u227a",PrecedesEqual:"\u2aaf",pre:"\u2aaf",preceq:"\u2aaf",PrecedesSlantEqual:"\u227c",prcue:"\u227c",preccurlyeq:"\u227c",PrecedesTilde:"\u227e",precsim:"\u227e",prsim:"\u227e",Prime:"\u2033",Product:"\u220f",prod:"\u220f",Proportional:"\u221d",prop:"\u221d",propto:"\u221d",varpropto:"\u221d",vprop:"\u221d",Pscr:"\u{1d4ab}",Psi:"\u03a8",QUOT:'"',quot:'"',Qfr:"\u{1d514}",Qopf:"\u211a",rationals:"\u211a",Qscr:"\u{1d4ac}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xae",circledR:"\xae",reg:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",twoheadrightarrow:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",Rfr:"\u211c",real:"\u211c",realpart:"\u211c",ReverseElement:"\u220b",SuchThat:"\u220b",ni:"\u220b",niv:"\u220b",ReverseEquilibrium:"\u21cb",leftrightharpoons:"\u21cb",lrhar:"\u21cb",ReverseUpEquilibrium:"\u296f",duhar:"\u296f",Rho:"\u03a1",RightAngleBracket:"\u27e9",rang:"\u27e9",rangle:"\u27e9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21e5",rarrb:"\u21e5",RightArrowLeftArrow:"\u21c4",rightleftarrows:"\u21c4",rlarr:"\u21c4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27e7",robrk:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",dharr:"\u21c2",downharpoonright:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rfloor:"\u230b",RightTee:"\u22a2",vdash:"\u22a2",RightTeeArrow:"\u21a6",map:"\u21a6",mapsto:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",vartriangleright:"\u22b3",vrtri:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",rtrie:"\u22b5",trianglerighteq:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",uharr:"\u21be",upharpoonright:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",rharu:"\u21c0",rightharpoonup:"\u21c0",RightVectorBar:"\u2953",Ropf:"\u211d",reals:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",rAarr:"\u21db",Rscr:"\u211b",realine:"\u211b",Rsh:"\u21b1",rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\u{1d516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1d54a}",Sqrt:"\u221a",radic:"\u221a",Square:"\u25a1",squ:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228f",sqsub:"\u228f",sqsubset:"\u228f",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1d4ae}",Star:"\u22c6",sstarf:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227b",sc:"\u227b",succ:"\u227b",SucceedsEqual:"\u2ab0",sce:"\u2ab0",succeq:"\u2ab0",SucceedsSlantEqual:"\u227d",sccue:"\u227d",succcurlyeq:"\u227d",SucceedsTilde:"\u227f",scsim:"\u227f",succsim:"\u227f",Sum:"\u2211",sum:"\u2211",Sup:"\u22d1",Supset:"\u22d1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xde",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1d517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223c",sim:"\u223c",thicksim:"\u223c",thksim:"\u223c",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1d54b}",TripleDot:"\u20db",tdot:"\u20db",Tscr:"\u{1d4af}",Tstrok:"\u0166",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1d518}",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",lowbar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",bbrk:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",bigcup:"\u22c3",xcup:"\u22c3",UnionPlus:"\u228e",uplus:"\u228e",Uogon:"\u0172",Uopf:"\u{1d54c}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",udarr:"\u21c5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296e",udhar:"\u296e",UpTee:"\u22a5",bot:"\u22a5",bottom:"\u22a5",perp:"\u22a5",UpTeeArrow:"\u21a5",mapstoup:"\u21a5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\u{1d4b0}",Utilde:"\u0168",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",bigvee:"\u22c1",xvee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200a",hairsp:"\u200a",Vfr:"\u{1d519}",Vopf:"\u{1d54d}",Vscr:"\u{1d4b1}",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",bigwedge:"\u22c0",xwedge:"\u22c0",Wfr:"\u{1d51a}",Wopf:"\u{1d54e}",Wscr:"\u{1d4b2}",Xfr:"\u{1d51b}",Xi:"\u039e",Xopf:"\u{1d54f}",Xscr:"\u{1d4b3}",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\u{1d51c}",Yopf:"\u{1d550}",Yscr:"\u{1d4b4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1d4b5}",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",mstpos:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acirc:"\xe2",acy:"\u0430",aelig:"\xe6",afr:"\u{1d51e}",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",and:"\u2227",wedge:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",angle:"\u2220",ange:"\u29a4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angzarr:"\u237c",aogon:"\u0105",aopf:"\u{1d552}",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",approxeq:"\u224a",apid:"\u224b",apos:"'",aring:"\xe5",ascr:"\u{1d4b6}",ast:"*",midast:"*",atilde:"\xe3",auml:"\xe4",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",bcong:"\u224c",backepsilon:"\u03f6",bepsi:"\u03f6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223d",bsim:"\u223d",backsimeq:"\u22cd",bsime:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23b6",bcy:"\u0431",bdquo:"\u201e",ldquor:"\u201e",bemptyv:"\u29b0",beta:"\u03b2",beth:"\u2136",between:"\u226c",twixt:"\u226c",bfr:"\u{1d51f}",bigcirc:"\u25ef",xcirc:"\u25ef",bigodot:"\u2a00",xodot:"\u2a00",bigoplus:"\u2a01",xoplus:"\u2a01",bigotimes:"\u2a02",xotime:"\u2a02",bigsqcup:"\u2a06",xsqcup:"\u2a06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25bd",xdtri:"\u25bd",bigtriangleup:"\u25b3",xutri:"\u25b3",biguplus:"\u2a04",xuplus:"\u2a04",bkarow:"\u290d",rbarr:"\u290d",blacklozenge:"\u29eb",lozf:"\u29eb",blacktriangle:"\u25b4",utrif:"\u25b4",blacktriangledown:"\u25be",dtrif:"\u25be",blacktriangleleft:"\u25c2",ltrif:"\u25c2",blacktriangleright:"\u25b8",rtrif:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\u{1d553}",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",minusb:"\u229f",boxplus:"\u229e",plusb:"\u229e",boxtimes:"\u22a0",timesb:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",brvbar:"\xa6",bscr:"\u{1d4b7}",bsemi:"\u204f",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2aae",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",ccaps:"\u2a4d",ccaron:"\u010d",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cemptyv:"\u29b2",cent:"\xa2",cfr:"\u{1d520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21ba",olarr:"\u21ba",circlearrowright:"\u21bb",orarr:"\u21bb",circledS:"\u24c8",oS:"\u24c8",circledast:"\u229b",oast:"\u229b",circledcirc:"\u229a",ocir:"\u229a",circleddash:"\u229d",odash:"\u229d",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2a6d",copf:"\u{1d554}",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\u{1d4b8}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",curlyeqprec:"\u22de",cuesc:"\u22df",curlyeqsucc:"\u22df",cularr:"\u21b6",curvearrowleft:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curvearrowright:"\u21b7",curarrm:"\u293c",curlyvee:"\u22ce",cuvee:"\u22ce",curlywedge:"\u22cf",cuwed:"\u22cf",curren:"\xa4",cwint:"\u2231",cylcty:"\u232d",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290f",rBarr:"\u290f",dcaron:"\u010f",dcy:"\u0434",ddarr:"\u21ca",downdownarrows:"\u21ca",ddotseq:"\u2a77",eDDot:"\u2a77",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\u{1d521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03dd",gammad:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",llcorner:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\u{1d555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22a1",sdotb:"\u22a1",drcorn:"\u231f",lrcorner:"\u231f",drcrop:"\u230c",dscr:"\u{1d4b9}",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",triangledown:"\u25bf",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xea",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044d",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1d522}",eg:"\u2a9a",egrave:"\xe8",egs:"\u2a96",eqslantgtr:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",eqslantless:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1d556}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",straightepsilon:"\u03f5",varepsilon:"\u03f5",equals:"=",equest:"\u225f",questeq:"\u225f",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212f",eta:"\u03b7",eth:"\xf0",euml:"\xeb",euro:"\u20ac",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\u{1d523}",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\u{1d557}",fork:"\u22d4",pitchfork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac12:"\xbd",half:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1d4bb}",gEl:"\u2a8c",gtreqqless:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gap:"\u2a86",gtrapprox:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\u{1d524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gnsim:"\u22e7",gopf:"\u{1d558}",gscr:"\u210a",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtrdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrarr:"\u2978",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hardcy:"\u044a",harrcir:"\u2948",harrw:"\u21ad",leftrightsquigarrow:"\u21ad",hbar:"\u210f",hslash:"\u210f",planck:"\u210f",plankv:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22b9",hfr:"\u{1d525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",larrhk:"\u21a9",hookrightarrow:"\u21aa",rarrhk:"\u21aa",hopf:"\u{1d559}",horbar:"\u2015",hscr:"\u{1d4bd}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xed",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexcl:"\xa1",ifr:"\u{1d526}",igrave:"\xec",iiiint:"\u2a0c",qint:"\u2a0c",iiint:"\u222d",tint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",imath:"\u0131",inodot:"\u0131",imof:"\u22b7",imped:"\u01b5",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",intcal:"\u22ba",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\u{1d55a}",iota:"\u03b9",iquest:"\xbf",iscr:"\u{1d4be}",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1d527}",jmath:"\u0237",jopf:"\u{1d55b}",jscr:"\u{1d4bf}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",varkappa:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\u{1d528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\u{1d55c}",kscr:"\u{1d4c0}",lAtail:"\u291b",lBarr:"\u290e",lEg:"\u2a8b",lesseqqgtr:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lambda:"\u03bb",langd:"\u2991",lap:"\u2a85",lessapprox:"\u2a85",laquo:"\xab",larrbfs:"\u291f",larrfs:"\u291d",larrlp:"\u21ab",looparrowleft:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",leftarrowtail:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lcy:"\u043b",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21c7",llarr:"\u21c7",leftthreetimes:"\u22cb",lthree:"\u22cb",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessdot:"\u22d6",ltdot:"\u22d6",lfisht:"\u297c",lfr:"\u{1d529}",lgE:"\u2a91",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",longmapsto:"\u27fc",xmap:"\u27fc",looparrowright:"\u21ac",rarrlp:"\u21ac",lopar:"\u2985",lopf:"\u{1d55d}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",loz:"\u25ca",lozenge:"\u25ca",lpar:"(",lparlt:"\u2993",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\u{1d4c1}",lsime:"\u2a8d",lsimg:"\u2a8f",lsquor:"\u201a",sbquo:"\u201a",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",triangleleft:"\u25c3",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",macr:"\xaf",strns:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",mfr:"\u{1d52a}",mho:"\u2127",micro:"\xb5",midcir:"\u2af0",minus:"\u2212",minusdu:"\u2a2a",mlcp:"\u2adb",models:"\u22a7",mopf:"\u{1d55e}",mscr:"\u{1d4c2}",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nLeftarrow:"\u21cd",nlArr:"\u21cd",nLeftrightarrow:"\u21ce",nhArr:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nRightarrow:"\u21cf",nrArr:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nacute:"\u0144",nang:"\u2220\u20d2",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",natur:"\u266e",natural:"\u266e",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",neArr:"\u21d7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1d52b}",nharr:"\u21ae",nleftrightarrow:"\u21ae",nhpar:"\u2af2",nis:"\u22fc",nisd:"\u22fa",njcy:"\u045a",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219a",nleftarrow:"\u219a",nldr:"\u2025",nopf:"\u{1d55f}",not:"\xac",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinvb:"\u22f7",notinvc:"\u22f6",notnivb:"\u22fe",notnivc:"\u22fd",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",nrarr:"\u219b",nrightarrow:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nscr:"\u{1d4c3}",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsubseteqq:"\u2ac5\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupseteqq:"\u2ac6\u0338",ntilde:"\xf1",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xf3",ocirc:"\xf4",ocy:"\u043e",odblac:"\u0151",odiv:"\u2a38",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\u{1d52c}",ogon:"\u02db",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",olcir:"\u29be",olcross:"\u29bb",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",oopf:"\u{1d560}",opar:"\u29b7",operp:"\u29b9",or:"\u2228",vee:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oslash:"\xf8",osol:"\u2298",otilde:"\xf5",otimesas:"\u2a36",ouml:"\xf6",ovbar:"\u233d",para:"\xb6",parsim:"\u2af3",parsl:"\u2afd",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1d52d}",phi:"\u03c6",phiv:"\u03d5",straightphi:"\u03d5",varphi:"\u03d5",phone:"\u260e",pi:"\u03c0",piv:"\u03d6",varpi:"\u03d6",planckh:"\u210e",plus:"+",plusacir:"\u2a23",pluscir:"\u2a22",plusdu:"\u2a25",pluse:"\u2a72",plussim:"\u2a26",plustwo:"\u2a27",pointint:"\u2a15",popf:"\u{1d561}",pound:"\xa3",prE:"\u2ab3",prap:"\u2ab7",precapprox:"\u2ab7",precnapprox:"\u2ab9",prnap:"\u2ab9",precneqq:"\u2ab5",prnE:"\u2ab5",precnsim:"\u22e8",prnsim:"\u22e8",prime:"\u2032",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prurel:"\u22b0",pscr:"\u{1d4c5}",psi:"\u03c8",puncsp:"\u2008",qfr:"\u{1d52e}",qopf:"\u{1d562}",qprime:"\u2057",qscr:"\u{1d4c6}",quatint:"\u2a16",quest:"?",rAtail:"\u291c",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",raemptyv:"\u29b3",rangd:"\u2992",range:"\u29a5",raquo:"\xbb",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rightarrowtail:"\u21a3",rarrw:"\u219d",rightsquigarrow:"\u219d",ratail:"\u291a",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21b3",rect:"\u25ad",rfisht:"\u297d",rfr:"\u{1d52f}",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",varrho:"\u03f1",rightrightarrows:"\u21c9",rrarr:"\u21c9",rightthreetimes:"\u22cc",rthree:"\u22cc",ring:"\u02da",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",ropar:"\u2986",ropf:"\u{1d563}",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rsaquo:"\u203a",rscr:"\u{1d4c7}",rtimes:"\u22ca",rtri:"\u25b9",triangleright:"\u25b9",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",scE:"\u2ab4",scap:"\u2ab8",succapprox:"\u2ab8",scaron:"\u0161",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",succneqq:"\u2ab6",scnap:"\u2aba",succnapprox:"\u2aba",scnsim:"\u22e9",succnsim:"\u22e9",scpolint:"\u2a13",scy:"\u0441",sdot:"\u22c5",sdote:"\u2a66",seArr:"\u21d8",sect:"\xa7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1d530}",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",varsigma:"\u03c2",simdot:"\u2a6a",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",smashp:"\u2a33",smeparsl:"\u29e4",smile:"\u2323",ssmile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\u{1d564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\ufe00",sqcups:"\u2294\ufe00",sscr:"\u{1d4c8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2ac5",subseteqq:"\u2ac5",subdot:"\u2abd",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subsetneqq:"\u2acb",subne:"\u228a",subsetneq:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supseteqq:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supsetneqq:"\u2acc",supne:"\u228b",supsetneq:"\u228b",supplus:"\u2ac0",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swnwar:"\u292a",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1d531}",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",vartheta:"\u03d1",thorn:"\xfe",times:"\xd7",timesbar:"\u2a31",timesd:"\u2a30",topbot:"\u2336",topcir:"\u2af1",topf:"\u{1d565}",topfork:"\u2ada",tprime:"\u2034",triangle:"\u25b5",utri:"\u25b5",triangleq:"\u225c",trie:"\u225c",tridot:"\u25ec",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\u{1d4c9}",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",uHar:"\u2963",uacute:"\xfa",ubrcy:"\u045e",ubreve:"\u016d",ucirc:"\xfb",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297e",ufr:"\u{1d532}",ugrave:"\xf9",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",uogon:"\u0173",uopf:"\u{1d566}",upsi:"\u03c5",upsilon:"\u03c5",upuparrows:"\u21c8",uuarr:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\u{1d4ca}",utdot:"\u22f0",utilde:"\u0169",uuml:"\xfc",uwangle:"\u29a7",vBar:"\u2ae8",vBarv:"\u2ae9",vangrt:"\u299c",varsubsetneq:"\u228a\ufe00",vsubne:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",vsubnE:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",vsupne:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vsupnE:"\u2acc\ufe00",vcy:"\u0432",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",vfr:"\u{1d533}",vopf:"\u{1d567}",vscr:"\u{1d4cb}",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1d534}",wopf:"\u{1d568}",wscr:"\u{1d4cc}",xfr:"\u{1d535}",xi:"\u03be",xnis:"\u22fb",xopf:"\u{1d569}",xscr:"\u{1d4cd}",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",yen:"\xa5",yfr:"\u{1d536}",yicy:"\u0457",yopf:"\u{1d56a}",yscr:"\u{1d4ce}",yucy:"\u044e",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeta:"\u03b6",zfr:"\u{1d537}",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\u{1d56b}",zscr:"\u{1d4cf}",zwj:"\u200d",zwnj:"\u200c",ngsp:"\ue500"};class tU{tokens;errors;nonNormalizedIcuExpressions;constructor(t,n,s){this.tokens=t,this.errors=n,this.nonNormalizedIcuExpressions=s}}const iU=/\r\n?/g;function H0(o){return`Unexpected character "${0===o?"EOF":String.fromCharCode(o)}"`}function RF(o){return`Unknown entity "${o}" - use the "&#<decimal>;" or  "&#x<hex>;" syntax`}var OR=function(o){return o.HEX="hexadecimal",o.DEC="decimal",o}(OR||{});const sU=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"];class rU{_getTagDefinition;_cursor;_tokenizeIcu;_interpolationConfig;_leadingTriviaCodePoints;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(t,n,s){this._getTagDefinition=n,this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._interpolationConfig=s.interpolationConfig||lp,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map(l=>l.codePointAt(0)||0);const r=s.range||{endPos:t.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new AM(t,r):new dD(t,r),this._preserveLineEndings=s.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=s.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=s.tokenizeBlocks??!0,this._tokenizeLet=s.tokenizeLet??!0,this._selectorlessEnabled=s.selectorlessEnabled??!1;try{this._cursor.init()}catch(l){this.handleError(l)}}_processCarriageReturns(t){return this._preserveLineEndings?t:t.replace(iU,"\n")}tokenize(){for(;0!==this._cursor.peek();){const t=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(45)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(47)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeLet&&64===this._cursor.peek()&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(t):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(t):!this._tokenizeBlocks||this._inInterpolation||this._isInExpansionCase()||this._isInExpansionForm()||!this._attemptCharCode(Du)?this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart()):this._consumeBlockEnd(t)}catch(n){this.handleError(n)}}this._beginToken(41),this._endToken([])}_getBlockName(){let t=!1;const n=this._cursor.clone();return this._attemptCharCodeUntilFn(s=>ZS(s)?!t:!function hU(o){return y0(o)||ug(o)||95===o}(s)||(t=!0,!1)),this._cursor.getChars(n).trim()}_consumeBlockStart(t){this._requireCharCode(64),this._beginToken(24,t);const n=this._endToken([this._getBlockName()]);if(40===this._cursor.peek()){if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(La),!this._attemptCharCode(41))return void(n.type=28);this._attemptCharCodeUntilFn(La)}this._attemptCharCode(dg)?(this._beginToken(25),this._endToken([])):n.type=28}_consumeBlockEnd(t){this._beginToken(26,t),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(BF);41!==this._cursor.peek()&&0!==this._cursor.peek();){this._beginToken(27);const t=this._cursor.clone();let n=null,s=0;for(;59!==this._cursor.peek()&&0!==this._cursor.peek()||null!==n;){const r=this._cursor.peek();if(92===r)this._cursor.advance();else if(r===n)n=null;else if(null===n&&JS(r))n=r;else if(40===r&&null===n)s++;else if(41===r&&null===n){if(0===s)break;s>0&&s--}this._cursor.advance()}this._endToken([this._cursor.getChars(t)]),this._attemptCharCodeUntilFn(BF)}}_consumeLetDeclaration(t){if(this._requireStr("@let"),this._beginToken(29,t),!ZS(this._cursor.peek()))return void(this._endToken([this._cursor.getChars(t)]).type=32);this._attemptCharCodeUntilFn(La);const n=this._endToken([this._getLetDeclarationName()]);this._attemptCharCodeUntilFn(La),this._attemptCharCode(61)?(this._attemptCharCodeUntilFn(r=>La(r)&&!pM(r)),this._consumeLetDeclarationValue(),59===this._cursor.peek()?(this._beginToken(31),this._endToken([]),this._cursor.advance()):(n.type=32,n.sourceSpan=this._cursor.getSpan(t))):n.type=32}_getLetDeclarationName(){const t=this._cursor.clone();let n=!1;return this._attemptCharCodeUntilFn(s=>!(y0(s)||36===s||95===s||n&&ug(s))||(n=!0,!1)),this._cursor.getChars(t).trim()}_consumeLetDeclarationValue(){const t=this._cursor.clone();for(this._beginToken(30,t);0!==this._cursor.peek();){const n=this._cursor.peek();if(59===n)break;JS(n)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(s=>92===s?(this._cursor.advance(),!1):s===n)),this._cursor.advance()}this._endToken([this._cursor.getChars(t)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(function dU(o){return o!==Du}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Du){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(t,n=this._cursor.clone()){this._currentTokenStart=n,this._currentTokenType=t}_endToken(t,n){if(null===this._currentTokenStart)throw new Xs(this._cursor.getSpan(n),"Programming error - attempted to end a token when there was no start to the token");if(null===this._currentTokenType)throw new Xs(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");const s={type:this._currentTokenType,parts:t,sourceSpan:(n??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(s),this._currentTokenStart=null,this._currentTokenType=null,s}_createError(t,n){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');const s=new Xs(n,t);return this._currentTokenStart=null,this._currentTokenType=null,s}handleError(t){if(t instanceof wR&&(t=this._createError(t.msg,this._cursor.getSpan(t.cursor))),!(t instanceof Xs))throw t;this.errors.push(t)}_attemptCharCode(t){return this._cursor.peek()===t&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(t){return!!function uU(o,t){return kF(o)===kF(t)}(this._cursor.peek(),t)&&(this._cursor.advance(),!0)}_requireCharCode(t){const n=this._cursor.clone();if(!this._attemptCharCode(t))throw this._createError(H0(this._cursor.peek()),this._cursor.getSpan(n))}_attemptStr(t){const n=t.length;if(this._cursor.charsLeft()<n)return!1;const s=this._cursor.clone();for(let r=0;r<n;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._cursor=s,!1;return!0}_attemptStrCaseInsensitive(t){for(let n=0;n<t.length;n++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(n)))return!1;return!0}_requireStr(t){const n=this._cursor.clone();if(!this._attemptStr(t))throw this._createError(H0(this._cursor.peek()),this._cursor.getSpan(n))}_attemptCharCodeUntilFn(t){for(;!t(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(t,n){const s=this._cursor.clone();if(this._attemptCharCodeUntilFn(t),this._cursor.diff(s)<n)throw this._createError(H0(this._cursor.peek()),this._cursor.getSpan(s))}_attemptUntilChar(t){for(;this._cursor.peek()!==t;)this._cursor.advance()}_readChar(){const t=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),t}_peekStr(t){const n=t.length;if(this._cursor.charsLeft()<n)return!1;const s=this._cursor.clone();for(let r=0;r<n;r++){if(s.peek()!==t.charCodeAt(r))return!1;s.advance()}return!0}_isBlockStart(){return 64===this._cursor.peek()&&sU.some(t=>this._peekStr(t))}_isLetStart(){return 64===this._cursor.peek()&&this._peekStr("@let")}_consumeEntity(t){this._beginToken(9);const n=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){const s=this._attemptCharCode(120)||this._attemptCharCode(88),r=this._cursor.clone();if(this._attemptCharCodeUntilFn(lU),59!=this._cursor.peek())throw this._cursor.advance(),this._createError(function oU(o,t){return`Unable to parse entity "${t}" - ${o} character reference entities must end with ";"`}(s?OR.HEX:OR.DEC,this._cursor.getChars(n)),this._cursor.getSpan());const l=this._cursor.getChars(r);this._cursor.advance();try{const E=parseInt(l,s?16:10);this._endToken([String.fromCharCode(E),this._cursor.getChars(n)])}catch{throw this._createError(RF(this._cursor.getChars(n)),this._cursor.getSpan())}}else{const s=this._cursor.clone();if(this._attemptCharCodeUntilFn(cU),59!=this._cursor.peek())this._beginToken(t,n),this._cursor=s,this._endToken(["&"]);else{const r=this._cursor.getChars(s);this._cursor.advance();const l=cD.hasOwnProperty(r)&&cD[r];if(!l)throw this._createError(RF(r),this._cursor.getSpan(n));this._endToken([l,`&${r};`])}}}_consumeRawText(t,n){this._beginToken(t?6:7);const s=[];for(;;){const r=this._cursor.clone(),l=n();if(this._cursor=r,l)break;t&&38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(6),this._beginToken(6)):s.push(this._readChar())}this._endToken([this._processCarriageReturns(s.join(""))])}_consumeComment(t){this._beginToken(10,t),this._requireCharCode(45),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("--\x3e")),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}_consumeCdata(t){this._beginToken(12,t),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(t){this._beginToken(18,t);const n=this._cursor.clone();this._attemptUntilChar(62);const s=this._cursor.getChars(n);this._cursor.advance(),this._endToken([s])}_consumePrefixAndName(t){const n=this._cursor.clone();let r,s="";for(;58!==this._cursor.peek()&&!aU(this._cursor.peek());)this._cursor.advance();return 58===this._cursor.peek()?(s=this._cursor.getChars(n),this._cursor.advance(),r=this._cursor.clone()):r=n,this._requireCharCodeUntilFn(t,""===s?0:1),[s,this._cursor.getChars(r)]}_consumeTagOpen(t){let n,s,r,l;try{if(this._selectorlessEnabled&&TM(this._cursor.peek()))l=this._consumeComponentOpenStart(t),[r,s,n]=l.parts,s&&(r+=`:${s}`),n&&(r+=`:${n}`),this._attemptCharCodeUntilFn(La);else{if(!y0(this._cursor.peek()))throw this._createError(H0(this._cursor.peek()),this._cursor.getSpan(t));l=this._consumeTagOpenStart(t),s=l.parts[0],n=r=l.parts[1],this._attemptCharCodeUntilFn(La)}for(;!NF(this._cursor.peek());)if(this._selectorlessEnabled&&64===this._cursor.peek()){const N=this._cursor.clone(),ae=N.clone();ae.advance(),TM(ae.peek())&&this._consumeDirective(N,ae)}else this._consumeAttribute();33===l.type?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(N){if(N instanceof Xs)return void(l?l.type=33===l.type?37:4:(this._beginToken(5,t),this._endToken(["<"])));throw N}const E=this._getTagDefinition(n).getContentType(s);E===nf.RAW_TEXT?this._consumeRawTextWithTagClose(l,r,!1):E===nf.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(l,r,!0)}_consumeRawTextWithTagClose(t,n,s){this._consumeRawText(s,()=>!!(this._attemptCharCode(60)&&this._attemptCharCode(47)&&(this._attemptCharCodeUntilFn(La),this._attemptStrCaseInsensitive(n)))&&(this._attemptCharCodeUntilFn(La),this._attemptCharCode(62))),this._beginToken(33===t.type?36:3),this._requireCharCodeUntilFn(r=>62===r,3),this._cursor.advance(),this._endToken(t.parts)}_consumeTagOpenStart(t){this._beginToken(0,t);const n=this._consumePrefixAndName(Oy);return this._endToken(n)}_consumeComponentOpenStart(t){this._beginToken(33,t);const n=this._consumeComponentName();return this._endToken(n)}_consumeComponentName(){const t=this._cursor.clone();for(;FF(this._cursor.peek());)this._cursor.advance();const n=this._cursor.getChars(t);let s="",r="";return 58===this._cursor.peek()&&(this._cursor.advance(),[s,r]=this._consumePrefixAndName(Oy)),[n,s,r]}_consumeAttribute(){this._consumeAttributeName(),this._attemptCharCodeUntilFn(La),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(La),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(La)}_consumeAttributeName(){const t=this._cursor.peek();if(39===t||34===t)throw this._createError(H0(t),this._cursor.getSpan());let n;if(this._beginToken(14),this._openDirectiveCount>0){let r=0;n=l=>{if(this._openDirectiveCount>0)if(40===l)r++;else if(41===l){if(0===r)return!0;r--}return Oy(l)}}else if(91===t){let r=0;n=l=>(91===l?r++:93===l&&r--,r<=0?Oy(l):pM(l))}else n=Oy;const s=this._consumePrefixAndName(n);this._endToken(s)}_consumeAttributeValue(){if(39===this._cursor.peek()||34===this._cursor.peek()){const t=this._cursor.peek();this._consumeQuote(t);const n=()=>this._cursor.peek()===t;this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(t)}else{const t=()=>Oy(this._cursor.peek());this._consumeWithInterpolation(16,17,t,t)}}_consumeQuote(t){this._beginToken(15),this._requireCharCode(t),this._endToken([String.fromCodePoint(t)])}_consumeTagOpenEnd(){const t=this._attemptCharCode(47)?2:1;this._beginToken(t),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){const t=this._attemptCharCode(47)?35:34;this._beginToken(t),this._requireCharCode(62),this._endToken([])}_consumeTagClose(t){if(this._selectorlessEnabled){const s=t.clone();for(;62!==s.peek()&&!TM(s.peek());)s.advance();if(TM(s.peek())){this._beginToken(36,t);const r=this._consumeComponentName();return this._attemptCharCodeUntilFn(La),this._requireCharCode(62),void this._endToken(r)}}this._beginToken(3,t),this._attemptCharCodeUntilFn(La);const n=this._consumePrefixAndName(Oy);this._attemptCharCodeUntilFn(La),this._requireCharCode(62),this._endToken(n)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(dg),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);const t=this._readUntil(44),n=this._processCarriageReturns(t);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([n]);else{const r=this._endToken([t]);n!==t&&this.nonNormalizedIcuExpressions.push(r)}this._requireCharCode(44),this._attemptCharCodeUntilFn(La),this._beginToken(7);const s=this._readUntil(44);this._endToken([s]),this._requireCharCode(44),this._attemptCharCodeUntilFn(La)}_consumeExpansionCaseStart(){this._beginToken(20);const t=this._readUntil(dg).trim();this._endToken([t]),this._attemptCharCodeUntilFn(La),this._beginToken(21),this._requireCharCode(dg),this._endToken([]),this._attemptCharCodeUntilFn(La),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(Du),this._endToken([]),this._attemptCharCodeUntilFn(La),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(Du),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(t,n,s,r){this._beginToken(t);const l=[];for(;!s();){const E=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(l.join(""))],E),l.length=0,this._consumeInterpolation(n,E,r),this._beginToken(t)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(l.join(""))]),l.length=0,this._consumeEntity(t),this._beginToken(t)):l.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(l.join(""))])}_consumeInterpolation(t,n,s){const r=[];this._beginToken(t,n),r.push(this._interpolationConfig.start);const l=this._cursor.clone();let E=null,N=!1;for(;0!==this._cursor.peek()&&(null===s||!s());){const ae=this._cursor.clone();if(this._isTagStart())return this._cursor=ae,r.push(this._getProcessedChars(l,ae)),void this._endToken(r);if(null===E){if(this._attemptStr(this._interpolationConfig.end))return r.push(this._getProcessedChars(l,ae)),r.push(this._interpolationConfig.end),void this._endToken(r);this._attemptStr("//")&&(N=!0)}const ze=this._cursor.peek();this._cursor.advance(),92===ze?this._cursor.advance():ze===E?E=null:!N&&null===E&&JS(ze)&&(E=ze)}r.push(this._getProcessedChars(l,this._cursor)),this._endToken(r)}_consumeDirective(t,n){for(this._requireCharCode(64),this._cursor.advance();FF(this._cursor.peek());)this._cursor.advance();this._beginToken(38,t);const s=this._cursor.getChars(n);if(this._endToken([s]),this._attemptCharCodeUntilFn(La),40===this._cursor.peek()){for(this._openDirectiveCount++,this._beginToken(39),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(La);!NF(this._cursor.peek())&&41!==this._cursor.peek();)this._consumeAttribute();if(this._attemptCharCodeUntilFn(La),this._openDirectiveCount--,41!==this._cursor.peek()){if(62===this._cursor.peek()||47===this._cursor.peek())return;throw this._createError(H0(this._cursor.peek()),this._cursor.getSpan(t))}this._beginToken(40),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(La)}}_getProcessedChars(t,n){return this._processCarriageReturns(n.getChars(t))}_isTextEnd(){return!!(this._isTagStart()||0===this._cursor.peek()||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===Du&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===Du))}_isTagStart(){if(60===this._cursor.peek()){const t=this._cursor.clone();t.advance();const n=t.peek();if(97<=n&&n<=122||65<=n&&n<=90||47===n||33===n)return!0}return!1}_readUntil(t){const n=this._cursor.clone();return this._attemptUntilChar(t),this._cursor.getChars(n)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&21===this._expansionCaseStack[this._expansionCaseStack.length-1]}_isInExpansionForm(){return this._expansionCaseStack.length>0&&19===this._expansionCaseStack[this._expansionCaseStack.length-1]}isExpansionFormStart(){if(this._cursor.peek()!==dg)return!1;if(this._interpolationConfig){const t=this._cursor.clone(),n=this._attemptStr(this._interpolationConfig.start);return this._cursor=t,!n}return!0}}function La(o){return!ZS(o)||0===o}function Oy(o){return ZS(o)||62===o||60===o||47===o||39===o||34===o||61===o||0===o}function aU(o){return(o<97||122<o)&&(o<65||90<o)&&(o<48||o>57)}function lU(o){return 59===o||0===o||!function xV(o){return o>=97&&o<=102||o>=65&&o<=70||ug(o)}(o)}function cU(o){return 59===o||0===o||!y0(o)}function kF(o){return o>=97&&o<=122?o-97+65:o}function BF(o){return 59!==o&&La(o)}function TM(o){return 95===o||o>=65&&o<=90}function FF(o){return y0(o)||ug(o)||95===o}function NF(o){return 47===o||62===o||60===o||0===o}class dD{state;file;input;end;constructor(t,n){if(t instanceof dD){this.file=t.file,this.input=t.input,this.end=t.end;const s=t.state;this.state={peek:s.peek,offset:s.offset,line:s.line,column:s.column}}else{if(!n)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=n.endPos,this.state={peek:-1,offset:n.startPos,line:n.startLine,column:n.startCol}}}clone(){return new dD(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(t){return this.state.offset-t.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(t,n){let s=t=t||this;if(n)for(;this.diff(t)>0&&-1!==n.indexOf(t.peek());)s===t&&(t=t.clone()),t.advance();const r=this.locationFromCursor(t),l=this.locationFromCursor(this),E=s!==t?this.locationFromCursor(s):r;return new dr(r,l,E)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new wR('Unexpected character "EOF"',this);const n=this.charAt(t.offset);10===n?(t.line++,t.column=0):pM(n)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset)}locationFromCursor(t){return new fy(t.file,t.state.offset,t.state.line,t.state.column)}}class AM extends dD{internalState;constructor(t,n){t instanceof AM?(super(t),this.internalState={...t.internalState}):(super(t,n),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new AM(this)}getChars(t){const n=t.clone();let s="";for(;n.internalState.offset<this.internalState.offset;)s+=String.fromCodePoint(n.peek()),n.advance();return s}processEscapeSequence(){const t=()=>this.internalState.peek;if(92===t())if(this.internalState={...this.state},this.advanceState(this.internalState),110===t())this.state.peek=10;else if(114===t())this.state.peek=13;else if(118===t())this.state.peek=11;else if(116===t())this.state.peek=9;else if(98===t())this.state.peek=8;else if(102===t())this.state.peek=12;else if(117===t())if(this.advanceState(this.internalState),t()===dg){this.advanceState(this.internalState);const n=this.clone();let s=0;for(;t()!==Du;)this.advanceState(this.internalState),s++;this.state.peek=this.decodeHexDigits(n,s)}else{const n=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,4)}else if(120===t()){this.advanceState(this.internalState);const n=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,2)}else if(BB(t())){let n="",s=0,r=this.clone();for(;BB(t())&&s<3;)r=this.clone(),n+=String.fromCodePoint(t()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(n,8),this.internalState=r.internalState}else pM(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,n){const s=this.input.slice(t.internalState.offset,t.internalState.offset+n),r=parseInt(s,16);if(isNaN(r))throw t.state=t.internalState,new wR("Invalid hexadecimal escape sequence",t);return r}}class wR extends Error{msg;cursor;constructor(t,n){super(t),this.msg=t,this.cursor=n,Object.setPrototypeOf(this,new.target.prototype)}}class Fl extends Xs{elementName;static create(t,n,s){return new Fl(t,n,s)}constructor(t,n,s){super(n,s),this.elementName=t}}class IM{rootNodes;errors;constructor(t,n){this.rootNodes=t,this.errors=n}}let LF=class{getTagDefinition;constructor(t){this.getTagDefinition=t}parse(t,n,s){const r=function nU(o,t,n,s={}){const r=new rU(new lR(o,t),n,s);return r.tokenize(),new tU(function pU(o){const t=[];let n;for(let s=0;s<o.length;s++){const r=o[s];n&&5===n.type&&5===r.type||n&&16===n.type&&16===r.type?(n.parts[0]+=r.parts[0],n.sourceSpan.end=r.sourceSpan.end):(n=r,t.push(n))}return t}(r.tokens),r.errors,r.nonNormalizedIcuExpressions)}(t,n,this.getTagDefinition,s),l=new SR(r.tokens,this.getTagDefinition);return l.build(),new IM(l.rootNodes,[...r.errors,...l.errors])}};class SR{tokens;tagDefinitionResolver;_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(t,n){this.tokens=t,this.tagDefinitionResolver=n,this._advance()}build(){for(;41!==this._peek.type;)0===this._peek.type||4===this._peek.type?this._consumeElementStartTag(this._advance()):3===this._peek.type?this._consumeElementEndTag(this._advance()):12===this._peek.type?(this._closeVoidElement(),this._consumeCdata(this._advance())):10===this._peek.type?(this._closeVoidElement(),this._consumeComment(this._advance())):5===this._peek.type||7===this._peek.type||6===this._peek.type?(this._closeVoidElement(),this._consumeText(this._advance())):19===this._peek.type?this._consumeExpansion(this._advance()):24===this._peek.type?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):26===this._peek.type?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):28===this._peek.type?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):29===this._peek.type?(this._closeVoidElement(),this._consumeLet(this._advance())):32===this._peek.type?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):33===this._peek.type||37===this._peek.type?this._consumeComponentStartTag(this._advance()):36===this._peek.type?this._consumeComponentEndTag(this._advance()):this._advance();for(const t of this._containerStack)t instanceof pf&&this.errors.push(Fl.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`))}_advance(){const t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t}_advanceIf(t){return this._peek.type===t?this._advance():null}_consumeCdata(t){this._consumeText(this._advance()),this._advanceIf(13)}_consumeComment(t){const n=this._advanceIf(7),s=this._advanceIf(11),r=null!=n?n.parts[0].trim():null,l=null==s?t.sourceSpan:new dr(t.sourceSpan.start,s.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new V0(r,l))}_consumeExpansion(t){const n=this._advance(),s=this._advance(),r=[];for(;20===this._peek.type;){const E=this._parseExpansionCase();if(!E)return;r.push(E)}if(23!==this._peek.type)return void this.errors.push(Fl.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));const l=new dr(t.sourceSpan.start,this._peek.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new N0(n.parts[0],s.parts[0],r,l,n.sourceSpan)),this._advance()}_parseExpansionCase(){const t=this._advance();if(21!==this._peek.type)return this.errors.push(Fl.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;const n=this._advance(),s=this._collectExpansionExpTokens(n);if(!s)return null;const r=this._advance();s.push({type:41,parts:[],sourceSpan:r.sourceSpan});const l=new SR(s,this.tagDefinitionResolver);if(l.build(),l.errors.length>0)return this.errors=this.errors.concat(l.errors),null;const E=new dr(t.sourceSpan.start,r.sourceSpan.end,t.sourceSpan.fullStart),N=new dr(n.sourceSpan.start,r.sourceSpan.end,n.sourceSpan.fullStart);return new ER(t.parts[0],l.rootNodes,E,t.sourceSpan,N)}_collectExpansionExpTokens(t){const n=[],s=[21];for(;;){if((19===this._peek.type||21===this._peek.type)&&s.push(this._peek.type),22===this._peek.type){if(!VF(s,21))return this.errors.push(Fl.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(s.pop(),0===s.length)return n}if(23===this._peek.type){if(!VF(s,19))return this.errors.push(Fl.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;s.pop()}if(41===this._peek.type)return this.errors.push(Fl.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.push(this._advance())}}_consumeText(t){const n=[t],s=t.sourceSpan;let r=t.parts[0];if(r.length>0&&"\n"===r[0]){const l=this._getContainer();null!=l&&0===l.children.length&&this._getTagDefinition(l)?.ignoreFirstLf&&(r=r.substring(1),n[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[r]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)t=this._advance(),n.push(t),r+=8===t.type?t.parts.join("").replace(/&([^;]+);/g,HF):9===t.type?t.parts[0]:t.parts.join("");r.length>0&&this._addToParent(new Ey(r,new dr(s.start,t.sourceSpan.end,s.fullStart,s.details),n))}_closeVoidElement(){const t=this._getContainer();null!==t&&this._getTagDefinition(t)?.isVoid&&this._containerStack.pop()}_consumeElementStartTag(t){const n=[],s=[];this._consumeAttributesAndDirectives(n,s);const r=this._getElementFullName(t,this._getClosestElementLikeParent()),l=this._getTagDefinition(r);let E=!1;2===this._peek.type?(this._advance(),E=!0,l?.canSelfClose||null!==FP(r)||l?.isVoid||this.errors.push(Fl.create(r,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))):1===this._peek.type&&(this._advance(),E=!1);const N=this._peek.sourceSpan.fullStart,ae=new dr(t.sourceSpan.start,N,t.sourceSpan.fullStart),ze=new dr(t.sourceSpan.start,N,t.sourceSpan.fullStart),dt=new Oh(r,n,s,[],E,ae,ze,void 0,l?.isVoid??!1),Kt=this._getContainer(),Vn=null!==Kt&&!!this._getTagDefinition(Kt)?.isClosedByChild(dt.name);this._pushContainer(dt,Vn),E?this._popContainer(r,Oh,ae):4===t.type&&(this._popContainer(r,Oh,null),this.errors.push(Fl.create(r,ae,`Opening tag "${r}" not terminated.`)))}_consumeComponentStartTag(t){const n=t.parts[0],s=[],r=[];this._consumeAttributesAndDirectives(s,r);const l=this._getClosestElementLikeParent(),E=this._getComponentTagName(t,l),N=this._getComponentFullName(t,l),ae=35===this._peek.type;this._advance();const ze=this._peek.sourceSpan.fullStart,dt=new dr(t.sourceSpan.start,ze,t.sourceSpan.fullStart),Kt=new dr(t.sourceSpan.start,ze,t.sourceSpan.fullStart),Vn=new Kd(n,E,N,s,r,[],ae,dt,Kt,void 0),ci=this._getContainer(),Vi=null!==ci&&null!==Vn.tagName&&!!this._getTagDefinition(ci)?.isClosedByChild(Vn.tagName);this._pushContainer(Vn,Vi),ae?this._popContainer(N,Kd,dt):37===t.type&&(this._popContainer(N,Kd,null),this.errors.push(Fl.create(N,dt,`Opening tag "${N}" not terminated.`)))}_consumeAttributesAndDirectives(t,n){for(;14===this._peek.type||38===this._peek.type;)38===this._peek.type?n.push(this._consumeDirective(this._peek)):t.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(t){const n=this._getComponentFullName(t,this._getClosestElementLikeParent());if(!this._popContainer(n,Kd,t.sourceSpan)){const s=this._containerStack[this._containerStack.length-1];let r;r=s instanceof Kd&&s.componentName===t.parts[0]?`, did you mean "${s.fullName}"?`:". It may happen when the tag has already been closed by another tag.",this.errors.push(Fl.create(n,t.sourceSpan,`Unexpected closing tag "${n}"${r}`))}}_getTagDefinition(t){return"string"==typeof t?this.tagDefinitionResolver(t):t instanceof Oh?this.tagDefinitionResolver(t.name):t instanceof Kd&&null!==t.tagName?this.tagDefinitionResolver(t.tagName):null}_pushContainer(t,n){n&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t)}_consumeElementEndTag(t){const n=this._getElementFullName(t,this._getClosestElementLikeParent());this._getTagDefinition(n)?.isVoid?this.errors.push(Fl.create(n,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`)):this._popContainer(n,Oh,t.sourceSpan)||this.errors.push(Fl.create(n,t.sourceSpan,`Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`))}_popContainer(t,n,s){let r=!1;for(let l=this._containerStack.length-1;l>=0;l--){const E=this._containerStack[l];if(((E instanceof Kd?E.fullName:E.name)===t||null===t)&&E instanceof n)return E.endSourceSpan=s,E.sourceSpan.end=null!==s?s.end:E.sourceSpan.end,this._containerStack.splice(l,this._containerStack.length-l),!r;(E instanceof pf||!this._getTagDefinition(E)?.closedByParent)&&(r=!0)}return!1}_consumeAttr(t){const n=nM(t.parts[0],t.parts[1]);let s=t.sourceSpan.end;15===this._peek.type&&this._advance();let r="";const l=[];let E,N;if(16===this._peek.type)for(E=this._peek.sourceSpan,N=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){const dt=this._advance();l.push(dt),r+=17===dt.type?dt.parts.join("").replace(/&([^;]+);/g,HF):9===dt.type?dt.parts[0]:dt.parts.join(""),N=s=dt.sourceSpan.end}15===this._peek.type&&(s=this._advance().sourceSpan.end);const ze=E&&N&&new dr(E.start,N,E.fullStart);return new L0(n,r,new dr(t.sourceSpan.start,s,t.sourceSpan.fullStart),t.sourceSpan,ze,l.length>0?l:void 0,void 0)}_consumeDirective(t){const n=[];let s=t.sourceSpan.end,r=null;if(this._advance(),39===this._peek.type){for(s=this._peek.sourceSpan.end,this._advance();14===this._peek.type;)n.push(this._consumeAttr(this._advance()));40===this._peek.type?(r=this._peek.sourceSpan,this._advance()):this.errors.push(Fl.create(null,t.sourceSpan,"Unterminated directive definition"))}const l=new dr(t.sourceSpan.start,s,t.sourceSpan.fullStart),E=new dr(l.start,null===r?t.sourceSpan.end:r.end,l.fullStart);return new AF(t.parts[0],n,E,l,r)}_consumeBlockOpen(t){const n=[];for(;27===this._peek.type;){const N=this._advance();n.push(new IF(N.parts[0],N.sourceSpan))}25===this._peek.type&&this._advance();const s=this._peek.sourceSpan.fullStart,r=new dr(t.sourceSpan.start,s,t.sourceSpan.fullStart),l=new dr(t.sourceSpan.start,s,t.sourceSpan.fullStart),E=new pf(t.parts[0],n,[],r,t.sourceSpan,l);this._pushContainer(E,!1)}_consumeBlockClose(t){this._popContainer(null,pf,t.sourceSpan)||this.errors.push(Fl.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(t){const n=[];for(;27===this._peek.type;){const N=this._advance();n.push(new IF(N.parts[0],N.sourceSpan))}const s=this._peek.sourceSpan.fullStart,r=new dr(t.sourceSpan.start,s,t.sourceSpan.fullStart),l=new dr(t.sourceSpan.start,s,t.sourceSpan.fullStart),E=new pf(t.parts[0],n,[],r,t.sourceSpan,l);this._pushContainer(E,!1),this._popContainer(null,pf,null),this.errors.push(Fl.create(t.parts[0],r,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(t){const n=t.parts[0];let s,r;if(30!==this._peek.type)return void this.errors.push(Fl.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${n}". Declaration must have a value.`));if(s=this._advance(),31!==this._peek.type)return void this.errors.push(Fl.create(t.parts[0],t.sourceSpan,`Unterminated @let declaration "${n}". Declaration must be terminated with a semicolon.`));r=this._advance();const E=new dr(t.sourceSpan.start,r.sourceSpan.fullStart,t.sourceSpan.fullStart),N=t.sourceSpan.toString().lastIndexOf(n),ae=t.sourceSpan.start.moveBy(N),ze=new dr(ae,t.sourceSpan.end),dt=new MF(n,s.parts[0],E,ze,s.sourceSpan);this._addToParent(dt)}_consumeIncompleteLet(t){const n=t.parts[0]??"",s=n?` "${n}"`:"";if(n.length>0){const r=t.sourceSpan.toString().lastIndexOf(n),l=t.sourceSpan.start.moveBy(r),E=new dr(l,t.sourceSpan.end),N=new dr(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),ae=new MF(n,"",t.sourceSpan,E,N);this._addToParent(ae)}this.errors.push(Fl.create(t.parts[0],t.sourceSpan,`Incomplete @let declaration${s}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let t=this._containerStack.length-1;t>-1;t--){const n=this._containerStack[t];if(n instanceof Oh||n instanceof Kd)return n}return null}_addToParent(t){const n=this._getContainer();null===n?this.rootNodes.push(t):n.children.push(t)}_getElementFullName(t,n){return nM(this._getPrefix(t,n),t.parts[1])}_getComponentFullName(t,n){const s=t.parts[0],r=this._getComponentTagName(t,n);return null===r?s:r.startsWith(":")?s+r:`${s}:${r}`}_getComponentTagName(t,n){const s=this._getPrefix(t,n),r=t.parts[2];return s||r?!s&&r?r:nM(s,r||"ng-component"):null}_getPrefix(t,n){let s,r;if(33===t.type||37===t.type||36===t.type?(s=t.parts[1],r=t.parts[2]):(s=t.parts[0],r=t.parts[1]),s=s||this._getTagDefinition(r)?.implicitNamespacePrefix||"",!s&&n){const l=n instanceof Oh?n.name:n.tagName;if(null!==l){const E=sg(l)[1],N=this._getTagDefinition(E);null!==N&&!N.preventNamespaceInheritance&&(s=FP(l))}}return s}}function VF(o,t){return o.length>0&&o[o.length-1]===t}function HF(o,t){return void 0!==cD[t]?cD[t]||o:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):o}const $F="ngPreserveWhitespaces",UF=new Set(["pre","template","textarea","script","style"]),jF=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",gU=new RegExp(`[^${jF}]`),fU=new RegExp(`[${jF}]{2,}`,"g");function GF(o){return o.some(t=>t.name===$F)}function WF(o){return o.replace(new RegExp("\ue500","g")," ")}class DR{preserveSignificantWhitespace;originalNodeMap;requireContext;icuExpansionDepth=0;constructor(t,n,s=!0){this.preserveSignificantWhitespace=t,this.originalNodeMap=n,this.requireContext=s}visitElement(t,n){if(UF.has(t.name)||GF(t.attrs)){const r=new Oh(t.name,hg(this,t.attrs),hg(this,t.directives),t.children,t.isSelfClosing,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.isVoid,t.i18n);return this.originalNodeMap?.set(r,t),r}const s=new Oh(t.name,t.attrs,t.directives,hg(this,t.children),t.isSelfClosing,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.isVoid,t.i18n);return this.originalNodeMap?.set(s,t),s}visitAttribute(t,n){return t.name!==$F?t:null}visitText(t,n){const s=t.value.match(gU);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return t;if(s||n&&(n.prev instanceof N0||n.next instanceof N0)){const E=t.tokens.map(dt=>5===dt.type?function CU({type:o,parts:t,sourceSpan:n}){return{type:o,parts:[KF(t[0])],sourceSpan:n}}(dt):dt);!this.preserveSignificantWhitespace&&E.length>0&&(E.splice(0,1,function mU(o,t){return 5!==o.type||t?.prev?o:zF(o,s=>s.trimStart())}(E[0],n)),E.splice(E.length-1,1,function _U(o,t){return 5!==o.type||t?.next?o:zF(o,s=>s.trimEnd())}(E[E.length-1],n)));const N=KF(t.value),ae=this.preserveSignificantWhitespace?N:function vU(o,t){const n=!t?.prev,s=!t?.next,r=n?o.trimStart():o;return s?r.trimEnd():r}(N,n),ze=new Ey(ae,t.sourceSpan,E,t.i18n);return this.originalNodeMap?.set(ze,t),ze}return null}visitComment(t,n){return t}visitExpansion(t,n){let s;this.icuExpansionDepth++;try{s=new N0(t.switchValue,t.type,hg(this,t.cases),t.sourceSpan,t.switchValueSourceSpan,t.i18n)}finally{this.icuExpansionDepth--}return this.originalNodeMap?.set(s,t),s}visitExpansionCase(t,n){const s=new ER(t.value,hg(this,t.expression),t.sourceSpan,t.valueSourceSpan,t.expSourceSpan);return this.originalNodeMap?.set(s,t),s}visitBlock(t,n){const s=new pf(t.name,t.parameters,hg(this,t.children),t.sourceSpan,t.nameSpan,t.startSourceSpan,t.endSourceSpan);return this.originalNodeMap?.set(s,t),s}visitBlockParameter(t,n){return t}visitLetDeclaration(t,n){return t}visitComponent(t,n){if(t.tagName&&UF.has(t.tagName)||GF(t.attrs)){const r=new Kd(t.componentName,t.tagName,t.fullName,hg(this,t.attrs),hg(this,t.directives),t.children,t.isSelfClosing,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n);return this.originalNodeMap?.set(r,t),r}const s=new Kd(t.componentName,t.tagName,t.fullName,t.attrs,t.directives,hg(this,t.children),t.isSelfClosing,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n);return this.originalNodeMap?.set(s,t),s}visitDirective(t,n){return t}visit(t,n){if(this.requireContext&&!n)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}}function zF({type:o,parts:t,sourceSpan:n},s){return{type:o,parts:[s(t[0])],sourceSpan:n}}function KF(o){return WF(o).replace(fU," ")}function hg(o,t){const n=[];return t.forEach((s,r)=>{const E=s.visit(o,{prev:t[r-1],next:t[r+1]});E&&n.push(E)}),n}var xr=function(o){return o[o.Character=0]="Character",o[o.Identifier=1]="Identifier",o[o.PrivateIdentifier=2]="PrivateIdentifier",o[o.Keyword=3]="Keyword",o[o.String=4]="String",o[o.Operator=5]="Operator",o[o.Number=6]="Number",o[o.Error=7]="Error",o}(xr||{}),wy=function(o){return o[o.Plain=0]="Plain",o[o.TemplateLiteralPart=1]="TemplateLiteralPart",o[o.TemplateLiteralEnd=2]="TemplateLiteralEnd",o}(wy||{});const yU=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in"];class TR{tokenize(t){return new SU(t).scan()}}class bm{index;end;type;numValue;strValue;constructor(t,n,s,r,l){this.index=t,this.end=n,this.type=s,this.numValue=r,this.strValue=l}isCharacter(t){return this.type===xr.Character&&this.numValue===t}isNumber(){return this.type===xr.Number}isString(){return this.type===xr.String}isOperator(t){return this.type===xr.Operator&&this.strValue===t}isIdentifier(){return this.type===xr.Identifier}isPrivateIdentifier(){return this.type===xr.PrivateIdentifier}isKeyword(){return this.type===xr.Keyword}isKeywordLet(){return this.type===xr.Keyword&&"let"===this.strValue}isKeywordAs(){return this.type===xr.Keyword&&"as"===this.strValue}isKeywordNull(){return this.type===xr.Keyword&&"null"===this.strValue}isKeywordUndefined(){return this.type===xr.Keyword&&"undefined"===this.strValue}isKeywordTrue(){return this.type===xr.Keyword&&"true"===this.strValue}isKeywordFalse(){return this.type===xr.Keyword&&"false"===this.strValue}isKeywordThis(){return this.type===xr.Keyword&&"this"===this.strValue}isKeywordTypeof(){return this.type===xr.Keyword&&"typeof"===this.strValue}isKeywordVoid(){return this.type===xr.Keyword&&"void"===this.strValue}isKeywordIn(){return this.type===xr.Keyword&&"in"===this.strValue}isError(){return this.type===xr.Error}toNumber(){return this.type===xr.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===wy.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===wy.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}isTemplateLiteralInterpolationEnd(){return this.isOperator("}")}toString(){switch(this.type){case xr.Character:case xr.Identifier:case xr.Keyword:case xr.Operator:case xr.PrivateIdentifier:case xr.String:case xr.Error:return this.strValue;case xr.Number:return this.numValue.toString();default:return null}}}class AR extends bm{kind;constructor(t,n,s,r){super(t,n,xr.String,0,s),this.kind=r}}function MM(o,t,n){return new bm(o,t,xr.Character,n,String.fromCharCode(n))}function $0(o,t,n){return new bm(o,t,xr.Operator,0,n)}const PM=new bm(-1,-1,xr.Character,0,"");class SU{input;tokens=[];length;peek=0;index=-1;braceStack=[];constructor(t){this.input=t,this.length=t.length,this.advance()}scan(){let t=this.scanToken();for(;null!==t;)this.tokens.push(t),t=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){const t=this.input,n=this.length;let s=this.peek,r=this.index;for(;s<=32;){if(++r>=n){s=0;break}s=t.charCodeAt(r)}if(this.peek=s,this.index=r,r>=n)return null;if(XF(s))return this.scanIdentifier();if(ug(s))return this.scanNumber(r);const l=r;switch(s){case 46:return this.advance(),ug(this.peek)?this.scanNumber(l):MM(l,this.index,46);case 40:case 41:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(l,s);case dg:return this.scanOpenBrace(l,s);case Du:return this.scanCloseBrace(l,s);case 39:case 34:return this.scanString();case 96:return this.advance(),this.scanTemplateLiteralPart(l);case 35:return this.scanPrivateIdentifier();case 43:return this.scanComplexOperator(l,"+",61,"=");case 45:return this.scanComplexOperator(l,"-",61,"=");case 47:return this.scanComplexOperator(l,"/",61,"=");case 37:return this.scanComplexOperator(l,"%",61,"=");case 94:return this.scanOperator(l,"^");case 42:return this.scanStar(l);case 63:return this.scanQuestion(l);case 60:case 62:return this.scanComplexOperator(l,String.fromCharCode(s),61,"=");case 33:case 61:return this.scanComplexOperator(l,String.fromCharCode(s),61,"=",61,"=");case 38:return this.scanComplexOperator(l,"&",38,"&",61,"=");case 124:return this.scanComplexOperator(l,"|",124,"|",61,"=");case 160:for(;ZS(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(t,n){return this.advance(),MM(t,this.index,n)}scanOperator(t,n){return this.advance(),$0(t,this.index,n)}scanOpenBrace(t,n){return this.braceStack.push("expression"),this.advance(),MM(t,this.index,n)}scanCloseBrace(t,n){return this.advance(),"interpolation"===this.braceStack.pop()?(this.tokens.push($0(t,this.index,"}")),this.scanTemplateLiteralPart(this.index)):MM(t,this.index,n)}scanComplexOperator(t,n,s,r,l,E){this.advance();let N=n;return this.peek==s&&(this.advance(),N+=r),null!=l&&this.peek==l&&(this.advance(),N+=E),$0(t,this.index,N)}scanIdentifier(){const t=this.index;for(this.advance();YF(this.peek);)this.advance();const n=this.input.substring(t,this.index);return yU.indexOf(n)>-1?function EU(o,t,n){return new bm(o,t,xr.Keyword,0,n)}(t,this.index,n):function bU(o,t,n){return new bm(o,t,xr.Identifier,0,n)}(t,this.index,n)}scanPrivateIdentifier(){const t=this.index;if(this.advance(),!XF(this.peek))return this.error("Invalid character [#]",-1);for(;YF(this.peek);)this.advance();const n=this.input.substring(t,this.index);return function xU(o,t,n){return new bm(o,t,xr.PrivateIdentifier,0,n)}(t,this.index,n)}scanNumber(t){let n=this.index===t,s=!1;for(this.advance();;){if(!ug(this.peek))if(95===this.peek){if(!ug(this.input.charCodeAt(this.index-1))||!ug(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(46===this.peek)n=!1;else{if(!DU(this.peek))break;if(this.advance(),TU(this.peek)&&this.advance(),!ug(this.peek))return this.error("Invalid exponent",-1);n=!1}this.advance()}let r=this.input.substring(t,this.index);s&&(r=r.replace(/_/g,""));const l=n?function IU(o){const t=parseInt(o);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+o);return t}(r):parseFloat(r);return function OU(o,t,n){return new bm(o,t,xr.Number,n,"")}(t,this.index,l)}scanString(){const t=this.index,n=this.peek;this.advance();let s="",r=this.index;const l=this.input;for(;this.peek!=n;)if(92==this.peek){const N=this.scanStringBackslash(s,r);if("string"!=typeof N)return N;s=N,r=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}const E=l.substring(r,this.index);return this.advance(),new AR(t,this.index,s+E,wy.Plain)}scanQuestion(t){this.advance();let n="?";return 63===this.peek?(n+="?",this.advance(),61===this.peek&&(n+="=",this.advance())):46===this.peek&&(n+=".",this.advance()),$0(t,this.index,n)}scanTemplateLiteralPart(t){let n="",s=this.index;for(;96!==this.peek;)if(92===this.peek){const l=this.scanStringBackslash(n,s);if("string"!=typeof l)return l;n=l,s=this.index}else if(36===this.peek){const l=this.index;if(this.advance(),this.peek===dg)return this.braceStack.push("interpolation"),this.tokens.push(new AR(t,l,n+this.input.substring(s,l),wy.TemplateLiteralPart)),this.advance(),$0(l,this.index,this.input.substring(l,this.index))}else{if(0===this.peek)return this.error("Unterminated template literal",0);this.advance()}const r=this.input.substring(s,this.index);return this.advance(),new AR(t,this.index,n+r,wy.TemplateLiteralEnd)}error(t,n){const s=this.index+n;return function wU(o,t,n){return new bm(o,t,xr.Error,0,n)}(s,this.index,`Lexer Error: ${t} at column ${s} in expression [${this.input}]`)}scanStringBackslash(t,n){let s;if(t+=this.input.substring(n,this.index),this.advance(),117===this.peek){const r=this.input.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(r))return this.error(`Invalid unicode escape [\\u${r}]`,0);s=parseInt(r,16);for(let l=0;l<5;l++)this.advance()}else s=function AU(o){switch(o){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return o}}(this.peek),this.advance();return t+String.fromCharCode(s)}scanStar(t){this.advance();let n="*";return 42===this.peek?(n+="*",this.advance(),61===this.peek&&(n+="=",this.advance())):61===this.peek&&(n+="=",this.advance()),$0(t,this.index,n)}}function XF(o){return 97<=o&&o<=122||65<=o&&o<=90||95==o||36==o}function YF(o){return y0(o)||ug(o)||95==o||36==o}function DU(o){return 101==o||69==o}function TU(o){return 45==o||43==o}class MU{strings;expressions;offsets;constructor(t,n,s){this.strings=t,this.expressions=n,this.offsets=s}}class PU{templateBindings;warnings;errors;constructor(t,n,s){this.templateBindings=t,this.warnings=n,this.errors=s}}function sv(o){return o.start.toString()||"(unknown)"}class QF{_lexer;_supportsDirectPipeReferences;constructor(t,n=!1){this._lexer=t,this._supportsDirectPipeReferences=n}parseAction(t,n,s,r=lp){const l=[];this._checkNoInterpolation(l,t,n,r);const{stripped:E}=this._stripComments(t),N=this._lexer.tokenize(E),ae=new hD(t,n,s,N,1,l,0,this._supportsDirectPipeReferences).parseChain();return new og(ae,t,sv(n),s,l)}parseBinding(t,n,s,r=lp){const l=[],E=this._parseBindingAst(t,n,s,r,l);return new og(E,t,sv(n),s,l)}checkSimpleExpression(t){const n=new RU;return t.visit(n),n.errors}parseSimpleBinding(t,n,s,r=lp){const l=[],E=this._parseBindingAst(t,n,s,r,l),N=this.checkSimpleExpression(E);return N.length>0&&l.push(U0(`Host binding expression cannot contain ${N.join(" ")}`,t,"",n)),new og(E,t,sv(n),s,l)}_parseBindingAst(t,n,s,r,l){this._checkNoInterpolation(l,t,n,r);const{stripped:E}=this._stripComments(t),N=this._lexer.tokenize(E);return new hD(t,n,s,N,0,l,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(t,n,s,r,l){const E=this._lexer.tokenize(n);return new hD(n,s,l,E,0,[],0,this._supportsDirectPipeReferences).parseTemplateBindings({source:t,span:new ig(r,r+t.length)})}parseInterpolation(t,n,s,r,l=lp){const E=[],{strings:N,expressions:ae,offsets:ze}=this.splitInterpolation(t,n,E,r,l);if(0===ae.length)return null;const dt=[];for(let Kt=0;Kt<ae.length;++Kt){const Vn=r?.[2*Kt+1]?.sourceSpan,ci=ae[Kt].text,{stripped:Vi,hasComments:Di}=this._stripComments(ci),Eo=this._lexer.tokenize(Vi);if(Di&&0===Vi.trim().length&&0===Eo.length){E.push(U0("Interpolation expression cannot only contain a comment",t,`at column ${ae[Kt].start} in`,n));continue}const uo=new hD(Vn?ci:t,Vn||n,s,Eo,0,E,ze[Kt],this._supportsDirectPipeReferences).parseChain();dt.push(uo)}return this.createInterpolationAst(N.map(Kt=>Kt.text),dt,t,sv(n),s,E)}parseInterpolationExpression(t,n,s){const{stripped:r}=this._stripComments(t),l=this._lexer.tokenize(r),E=[],N=new hD(t,n,s,l,0,E,0,this._supportsDirectPipeReferences).parseChain();return this.createInterpolationAst(["",""],[N],t,sv(n),s,E)}createInterpolationAst(t,n,s,r,l,E){const N=new LS(0,s.length),ae=new $S(N,N.toAbsolute(l),t,n);return new og(ae,s,r,l,E)}splitInterpolation(t,n,s,r,l=lp){const E=[],N=[],ae=[],ze=r?function kU(o){let t=new Map,n=0,s=0,r=0;for(;r<o.length;){const l=o[r];if(9===l.type){const[E,N]=l.parts;n+=N.length,s+=E.length}else{const E=l.parts.reduce((N,ae)=>N+ae.length,0);s+=E,n+=E}t.set(s,n),r++}return t}(r):null;let dt=0,Kt=!1,Vn=!1,{start:ci,end:Vi}=l;for(;dt<t.length;)if(Kt){const Di=dt,Eo=Di+ci.length,uo=this._getInterpolationEndIndex(t,Vi,Eo);if(-1===uo){Kt=!1,Vn=!0;break}const Jo=uo+Vi.length,es=t.substring(Eo,uo);0===es.trim().length&&s.push(U0("Blank expressions are not allowed in interpolated strings",t,`at column ${dt} in`,n)),N.push({text:es,start:Di,end:Jo});const Ts=(ze?.get(Di)??Di)+ci.length;ae.push(Ts),dt=Jo,Kt=!1}else{const Di=dt;dt=t.indexOf(ci,dt),-1===dt&&(dt=t.length);const Eo=t.substring(Di,dt);E.push({text:Eo,start:Di,end:dt}),Kt=!0}if(!Kt)if(Vn){const Di=E[E.length-1];Di.text+=t.substring(dt),Di.end=t.length}else E.push({text:t.substring(dt),start:dt,end:t.length});return new MU(E,N,ae)}wrapLiteralPrimitive(t,n,s){const r=new LS(0,null==t?0:t.length);return new og(new ng(r,r.toAbsolute(s),t),t,"string"==typeof n?n:sv(n),s,[])}_stripComments(t){const n=this._commentStart(t);return null!=n?{stripped:t.substring(0,n),hasComments:!0}:{stripped:t,hasComments:!1}}_commentStart(t){let n=null;for(let s=0;s<t.length-1;s++){const r=t.charCodeAt(s),l=t.charCodeAt(s+1);if(47===r&&47==l&&null==n)return s;n===r?n=null:null==n&&JS(r)&&(n=r)}return null}_checkNoInterpolation(t,n,s,{start:r,end:l}){let E=-1,N=-1;for(const ae of this._forEachUnquotedChar(n,0))if(-1===E)n.startsWith(r)&&(E=ae);else if(N=this._getInterpolationEndIndex(n,l,ae),N>-1)break;E>-1&&N>-1&&t.push(U0(`Got interpolation (${r}${l}) where expression was expected`,n,`at column ${E} in`,s))}_getInterpolationEndIndex(t,n,s){for(const r of this._forEachUnquotedChar(t,s)){if(t.startsWith(n,r))return r;if(t.startsWith("//",r))return t.indexOf(n,r)}return-1}*_forEachUnquotedChar(t,n){let s=null,r=0;for(let l=n;l<t.length;l++){const E=t[l];!JS(t.charCodeAt(l))||null!==s&&s!==E||r%2!=0?null===s&&(yield l):s=null===s?E:null,r="\\"===E?r+1:0}}}var uD=function(o){return o[o.None=0]="None",o[o.Writable=1]="Writable",o}(uD||{});class hD{input;parseSourceSpan;absoluteOffset;tokens;parseFlags;errors;offset;supportsDirectPipeReferences;rparensExpected=0;rbracketsExpected=0;rbracesExpected=0;context=uD.None;sourceSpanCache=new Map;index=0;constructor(t,n,s,r,l,E,N,ae){this.input=t,this.parseSourceSpan=n,this.absoluteOffset=s,this.tokens=r,this.parseFlags=l,this.errors=E,this.offset=N,this.supportsDirectPipeReferences=ae}peek(t){const n=this.index+t;return n<this.tokens.length?this.tokens[n]:PM}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:0===this.tokens.length?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(t,n){let s=this.currentEndIndex;if(void 0!==n&&n>this.currentEndIndex&&(s=n),t>s){const r=s;s=t,t=r}return new LS(t,s)}sourceSpan(t,n){const s=`${t}@${this.inputIndex}:${n}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(t,n).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(t,n){this.context|=t;const s=n();return this.context^=t,s}consumeOptionalCharacter(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(t){this.consumeOptionalCharacter(t)||this.error(`Missing expected ${String.fromCharCode(t)}`)}consumeOptionalOperator(t){return!!this.next.isOperator(t)&&(this.advance(),!0)}isAssignmentOperator(t){return t.type===xr.Operator&&vh.isAssignmentOperation(t.strValue)}expectOperator(t){this.consumeOptionalOperator(t)||this.error(`Missing expected operator ${t}`)}prettyPrintToken(t){return t===PM?"end of input":`token ${t}`}expectIdentifierOrKeyword(){const t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(t.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(t,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(t)}, expected identifier or keyword`),null)}expectIdentifierOrKeywordOrString(){const t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(t.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(t,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(t)}, expected identifier, keyword, or string`),"")}parseChain(){const t=[],n=this.inputIndex;for(;this.index<this.tokens.length;){const s=this.parsePipe();if(t.push(s),this.consumeOptionalCharacter(59))for(1&this.parseFlags||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(59););else if(this.index<this.tokens.length){const r=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===r)break}}if(0===t.length){const s=this.offset,r=this.offset+this.input.length;return new wu(this.span(s,r),this.sourceSpan(s,r))}return 1==t.length?t[0]:new JI(this.span(n),this.sourceSpan(n),t)}parsePipe(){const t=this.inputIndex;let n=this.parseExpression();if(this.consumeOptionalOperator("|")){1&this.parseFlags&&this.error("Cannot have a pipe in an action expression");do{const s=this.inputIndex;let l,E,r=this.expectIdentifierOrKeyword();null!==r?l=this.sourceSpan(s):(r="",E=-1!==this.next.index?this.next.index:this.input.length+this.offset,l=new LS(E,E).toAbsolute(this.absoluteOffset));const N=[];for(;this.consumeOptionalCharacter(58);)N.push(this.parseExpression());let ae;if(this.supportsDirectPipeReferences){const ze=r.charCodeAt(0);ae=95===ze||ze>=65&&ze<=90?qI.ReferencedDirectly:qI.ReferencedByName}else ae=qI.ReferencedByName;n=new jk(this.span(t),this.sourceSpan(t,E),n,r,N,ae,l)}while(this.consumeOptionalOperator("|"))}return n}parseExpression(){return this.parseConditional()}parseConditional(){const t=this.inputIndex,n=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){const s=this.parsePipe();let r;if(this.consumeOptionalCharacter(58))r=this.parsePipe();else{const E=this.input.substring(t,this.inputIndex);this.error(`Conditional expression ${E} requires all 3 expressions`),r=new wu(this.span(t),this.sourceSpan(t))}return new Uk(this.span(t),this.sourceSpan(t),n,s,r)}return n}parseLogicalOr(){const t=this.inputIndex;let n=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){const s=this.parseLogicalAnd();n=new vh(this.span(t),this.sourceSpan(t),"||",n,s)}return n}parseLogicalAnd(){const t=this.inputIndex;let n=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){const s=this.parseNullishCoalescing();n=new vh(this.span(t),this.sourceSpan(t),"&&",n,s)}return n}parseNullishCoalescing(){const t=this.inputIndex;let n=this.parseEquality();for(;this.consumeOptionalOperator("??");){const s=this.parseEquality();n=new vh(this.span(t),this.sourceSpan(t),"??",n,s)}return n}parseEquality(){const t=this.inputIndex;let n=this.parseRelational();for(;this.next.type==xr.Operator;){const s=this.next.strValue;switch(s){case"==":case"===":case"!=":case"!==":this.advance();const r=this.parseRelational();n=new vh(this.span(t),this.sourceSpan(t),s,n,r);continue}break}return n}parseRelational(){const t=this.inputIndex;let n=this.parseAdditive();for(;this.next.type==xr.Operator||this.next.isKeywordIn;){const s=this.next.strValue;switch(s){case"<":case">":case"<=":case">=":case"in":this.advance();const r=this.parseAdditive();n=new vh(this.span(t),this.sourceSpan(t),s,n,r);continue}break}return n}parseAdditive(){const t=this.inputIndex;let n=this.parseMultiplicative();for(;this.next.type==xr.Operator;){const s=this.next.strValue;switch(s){case"+":case"-":this.advance();let r=this.parseMultiplicative();n=new vh(this.span(t),this.sourceSpan(t),s,n,r);continue}break}return n}parseMultiplicative(){const t=this.inputIndex;let n=this.parseExponentiation();for(;this.next.type==xr.Operator;){const s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();const r=this.parseExponentiation();n=new vh(this.span(t),this.sourceSpan(t),s,n,r);continue}break}return n}parseExponentiation(){const t=this.inputIndex;let n=this.parsePrefix();for(;this.next.type==xr.Operator&&"**"===this.next.strValue;){(n instanceof ly||n instanceof DP||n instanceof TP||n instanceof AP)&&this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"),this.advance();const s=this.parseExponentiation();n=new vh(this.span(t),this.sourceSpan(t),"**",n,s)}return n}parsePrefix(){if(this.next.type==xr.Operator){const t=this.inputIndex;let s;switch(this.next.strValue){case"+":return this.advance(),s=this.parsePrefix(),ly.createPlus(this.span(t),this.sourceSpan(t),s);case"-":return this.advance(),s=this.parsePrefix(),ly.createMinus(this.span(t),this.sourceSpan(t),s);case"!":return this.advance(),s=this.parsePrefix(),new DP(this.span(t),this.sourceSpan(t),s)}}else{if(this.next.isKeywordTypeof()){this.advance();const t=this.inputIndex;let n=this.parsePrefix();return new TP(this.span(t),this.sourceSpan(t),n)}if(this.next.isKeywordVoid()){this.advance();const t=this.inputIndex;let n=this.parsePrefix();return new AP(this.span(t),this.sourceSpan(t),n)}}return this.parseCallChain()}parseCallChain(){const t=this.inputIndex;let n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(46))n=this.parseAccessMember(n,t,!1);else if(this.consumeOptionalOperator("?."))n=this.consumeOptionalCharacter(40)?this.parseCall(n,t,!0):this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(n,t,!0):this.parseAccessMember(n,t,!0);else if(this.consumeOptionalCharacter(91))n=this.parseKeyedReadOrWrite(n,t,!1);else if(this.consumeOptionalCharacter(40))n=this.parseCall(n,t,!1);else if(this.consumeOptionalOperator("!"))n=new IP(this.span(t),this.sourceSpan(t),n);else if(this.next.isTemplateLiteralEnd())n=this.parseNoInterpolationTaggedTemplateLiteral(n,t);else{if(!this.next.isTemplateLiteralPart())return n;n=this.parseTaggedTemplateLiteral(n,t)}}parsePrimary(){const t=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;const n=this.parsePipe();return this.consumeOptionalCharacter(41)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(41)),this.rparensExpected--,new RP(this.span(t),this.sourceSpan(t),n)}if(this.next.isKeywordNull())return this.advance(),new ng(this.span(t),this.sourceSpan(t),null);if(this.next.isKeywordUndefined())return this.advance(),new ng(this.span(t),this.sourceSpan(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new ng(this.span(t),this.sourceSpan(t),!0);if(this.next.isKeywordFalse())return this.advance(),new ng(this.span(t),this.sourceSpan(t),!1);if(this.next.isKeywordIn())return this.advance(),new ng(this.span(t),this.sourceSpan(t),"in");if(this.next.isKeywordThis())return this.advance(),new VS(this.span(t),this.sourceSpan(t));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;const n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Gk(this.span(t),this.sourceSpan(t),n)}if(this.next.isCharacter(dg))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new z_(this.span(t),this.sourceSpan(t)),t,!1);if(this.next.isNumber()){const n=this.next.toNumber();return this.advance(),new ng(this.span(t),this.sourceSpan(t),n)}if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===wy.Plain){const n=this.next.toString();return this.advance(),new ng(this.span(t),this.sourceSpan(t),n)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new wu(this.span(t),this.sourceSpan(t))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new wu(this.span(t),this.sourceSpan(t))):(this.error(`Unexpected token ${this.next}`),new wu(this.span(t),this.sourceSpan(t)))}parseExpressionList(t){const n=[];do{if(this.next.isCharacter(t))break;n.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return n}parseLiteralMap(){const t=[],n=[],s=this.inputIndex;if(this.expectCharacter(dg),!this.consumeOptionalCharacter(Du)){this.rbracesExpected++;do{const r=this.inputIndex,l=this.next.isString(),E=this.expectIdentifierOrKeywordOrString(),N={key:E,quoted:l};if(t.push(N),l)this.expectCharacter(58),n.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))n.push(this.parsePipe());else{N.isShorthandInitialized=!0;const ae=this.span(r),ze=this.sourceSpan(r);n.push(new ay(ae,ze,ze,new z_(ae,ze),E))}}while(this.consumeOptionalCharacter(44)&&!this.next.isCharacter(Du));this.rbracesExpected--,this.expectCharacter(Du)}return new Wk(this.span(s),this.sourceSpan(s),t,n)}parseAccessMember(t,n,s){const r=this.inputIndex,l=this.withContext(uD.Writable,()=>{const N=this.expectIdentifierOrKeyword()??"";return 0===N.length&&this.error("Expected identifier for property access",t.span.end),N}),E=this.sourceSpan(r);if(s)return this.isAssignmentOperator(this.next)?(this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new wu(this.span(n),this.sourceSpan(n))):new wP(this.span(n),this.sourceSpan(n),E,t,l);if(this.isAssignmentOperator(this.next)){const N=this.next.strValue;if(!(1&this.parseFlags))return this.advance(),this.error("Bindings cannot contain assignments"),new wu(this.span(n),this.sourceSpan(n));const ae=new ay(this.span(n),this.sourceSpan(n),E,t,l);this.advance();const ze=this.parseConditional();return new vh(this.span(n),this.sourceSpan(n),N,ae,ze)}return new ay(this.span(n),this.sourceSpan(n),E,t,l)}parseCall(t,n,s){const r=this.inputIndex;this.rparensExpected++;const l=this.parseCallArguments(),E=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;const N=this.span(n),ae=this.sourceSpan(n);return s?new zk(N,ae,t,l,E):new eM(N,ae,t,l,E)}parseCallArguments(){if(this.next.isCharacter(41))return[];const t=[];do{t.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return t}expectTemplateBindingKey(){let t="",n=!1;const s=this.currentAbsoluteOffset;do{t+=this.expectIdentifierOrKeywordOrString(),n=this.consumeOptionalOperator("-"),n&&(t+="-")}while(n);return{source:t,span:new ig(s,s+t.length)}}parseTemplateBindings(t){const n=[];for(n.push(...this.parseDirectiveKeywordBindings(t));this.index<this.tokens.length;){const s=this.parseLetBinding();if(s)n.push(s);else{const r=this.expectTemplateBindingKey(),l=this.parseAsBinding(r);l?n.push(l):(r.source=t.source+r.source.charAt(0).toUpperCase()+r.source.substring(1),n.push(...this.parseDirectiveKeywordBindings(r)))}this.consumeStatementTerminator()}return new PU(n,[],this.errors)}parseKeyedReadOrWrite(t,n,s){return this.withContext(uD.Writable,()=>{this.rbracketsExpected++;const r=this.parsePipe();if(r instanceof wu&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),!this.isAssignmentOperator(this.next))return s?new SP(this.span(n),this.sourceSpan(n),t,r):new HS(this.span(n),this.sourceSpan(n),t,r);{const l=this.next.strValue;if(!s){const E=new HS(this.span(n),this.sourceSpan(n),t,r);this.advance();const N=this.parseConditional();return new vh(this.span(n),this.sourceSpan(n),l,E,N)}this.advance(),this.error("The '?.' operator cannot be used in the assignment")}return new wu(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(t){const n=[];this.consumeOptionalCharacter(58);const s=this.getDirectiveBoundTarget();let r=this.currentAbsoluteOffset;const l=this.parseAsBinding(t);l||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);const E=new ig(t.span.start,r);return n.push(new H2(E,t,s)),l&&n.push(l),n}getDirectiveBoundTarget(){if(this.next===PM||this.peekKeywordAs()||this.peekKeywordLet())return null;const t=this.parsePipe(),{start:n,end:s}=t.span,r=this.input.substring(n,s);return new og(t,r,sv(this.parseSourceSpan),this.absoluteOffset+n,this.errors)}parseAsBinding(t){if(!this.peekKeywordAs())return null;this.advance();const n=this.expectTemplateBindingKey();this.consumeStatementTerminator();const s=new ig(t.span.start,this.currentAbsoluteOffset);return new kP(s,n,t)}parseLetBinding(){if(!this.peekKeywordLet())return null;const t=this.currentAbsoluteOffset;this.advance();const n=this.expectTemplateBindingKey();let s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();const r=new ig(t,this.currentAbsoluteOffset);return new kP(r,n,s)}parseNoInterpolationTaggedTemplateLiteral(t,n){const s=this.parseNoInterpolationTemplateLiteral();return new MP(this.span(n),this.sourceSpan(n),t,s)}parseNoInterpolationTemplateLiteral(){const t=this.next.strValue,n=this.inputIndex;this.advance();const s=this.span(n),r=this.sourceSpan(n);return new PP(s,r,[new Kk(s,r,t)],[])}parseTaggedTemplateLiteral(t,n){const s=this.parseTemplateLiteral();return new MP(this.span(n),this.sourceSpan(n),t,s)}parseTemplateLiteral(){const t=[],n=[],s=this.inputIndex;for(;this.next!==PM;){const r=this.next;if(r.isTemplateLiteralPart()||r.isTemplateLiteralEnd()){const l=this.inputIndex;if(this.advance(),t.push(new Kk(this.span(l),this.sourceSpan(l),r.strValue)),r.isTemplateLiteralEnd())break}else if(r.isTemplateLiteralInterpolationStart()){this.advance();const l=this.parsePipe();l instanceof wu?this.error("Template literal interpolation cannot be empty"):n.push(l)}else this.advance()}return new PP(this.span(s),this.sourceSpan(s),t,n)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(t,n=this.index){this.errors.push(U0(t,this.input,this.getErrorLocationText(n),this.parseSourceSpan)),this.skip()}getErrorLocationText(t){return t<this.tokens.length?`at column ${this.tokens[t].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(t,n){let s=`Private identifiers are not supported. Unexpected private identifier: ${t}`;null!==n&&(s+=`, ${n}`),this.error(s)}skip(){let t=this.next;for(;this.index<this.tokens.length&&!t.isCharacter(59)&&!t.isOperator("|")&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(Du))&&(this.rbracketsExpected<=0||!t.isCharacter(93))&&!(this.context&uD.Writable&&this.isAssignmentOperator(t));)this.next.isError()&&this.errors.push(U0(this.next.toString(),this.input,this.getErrorLocationText(this.next.index),this.parseSourceSpan)),this.advance(),t=this.next}}function U0(o,t,n,s){n.length>0&&(n=` ${n} `);const r=sv(s);return new Xs(s,`Parser Error: ${o}${n}[${t}] in ${r}`)}class RU extends Xk{errors=[];visitPipe(){this.errors.push("pipes")}}class FU{visitUnary(t,n){return`${t.operator}${t.expr.visit(this,n)}`}visitBinary(t,n){return`${t.left.visit(this,n)} ${t.operation} ${t.right.visit(this,n)}`}visitChain(t,n){return t.expressions.map(s=>s.visit(this,n)).join("; ")}visitConditional(t,n){return`${t.condition.visit(this,n)} ? ${t.trueExp.visit(this,n)} : ${t.falseExp.visit(this,n)}`}visitThisReceiver(){return"this"}visitImplicitReceiver(){return""}visitInterpolation(t,n){return function LU(o,t){const n=[];for(let s=0;s<Math.max(o.length,t.length);s++)s<o.length&&n.push(o[s]),s<t.length&&n.push(t[s]);return n}(t.strings,t.expressions.map(s=>s.visit(this,n))).join("")}visitKeyedRead(t,n){return`${t.receiver.visit(this,n)}[${t.key.visit(this,n)}]`}visitLiteralArray(t,n){return`[${t.expressions.map(s=>s.visit(this,n)).join(", ")}]`}visitLiteralMap(t,n){return`{${function NU(o,t){if(o.length!==t.length)throw new Error("Array lengths must match");return o.map((n,s)=>[n,t[s]])}(t.keys.map(s=>s.quoted?`'${s.key}'`:s.key),t.values.map(s=>s.visit(this,n))).map(([s,r])=>`${s}: ${r}`).join(", ")}}`}visitLiteralPrimitive(t){if(null===t.value)return"null";switch(typeof t.value){case"number":case"boolean":return t.value.toString();case"undefined":return"undefined";case"string":return`'${t.value.replace(/'/g,"\\'")}'`;default:throw new Error(`Unsupported primitive type: ${t.value}`)}}visitPipe(t,n){return`${t.exp.visit(this,n)} | ${t.name}`}visitPrefixNot(t,n){return`!${t.expression.visit(this,n)}`}visitNonNullAssert(t,n){return`${t.expression.visit(this,n)}!`}visitPropertyRead(t,n){return t.receiver instanceof z_?t.name:`${t.receiver.visit(this,n)}.${t.name}`}visitSafePropertyRead(t,n){return`${t.receiver.visit(this,n)}?.${t.name}`}visitSafeKeyedRead(t,n){return`${t.receiver.visit(this,n)}?.[${t.key.visit(this,n)}]`}visitCall(t,n){return`${t.receiver.visit(this,n)}(${t.args.map(s=>s.visit(this,n)).join(", ")})`}visitSafeCall(t,n){return`${t.receiver.visit(this,n)}?.(${t.args.map(s=>s.visit(this,n)).join(", ")})`}visitTypeofExpression(t,n){return`typeof ${t.expression.visit(this,n)}`}visitVoidExpression(t,n){return`void ${t.expression.visit(this,n)}`}visitASTWithSource(t,n){return t.ast.visit(this,n)}visitTemplateLiteral(t,n){let s="";for(let r=0;r<t.elements.length;r++){s+=t.elements[r].visit(this,n);const l=r<t.expressions.length?t.expressions[r]:null;null!==l&&(s+="${"+l.visit(this,n)+"}")}return"`"+s+"`"}visitTemplateLiteralElement(t,n){return t.text}visitTaggedTemplateLiteral(t,n){return t.tag.visit(this,n)+t.template.visit(this,n)}visitParenthesizedExpression(t,n){return"("+t.expression.visit(this,n)+")"}}let RM;function ZF(){return RM||(RM={},kM(la.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),kM(la.STYLE,["*|style"]),kM(la.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),kM(la.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),RM}function kM(o,t){for(const n of t)RM[n.toLowerCase()]=o}const VU=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function HU(o){return VU.has(o.toLowerCase())}class $U{}const zU=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],JF=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colspan":"ariaColSpan","aria-current":"ariaCurrent","aria-disabled":"ariaDisabled","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),KU=Array.from(JF).reduce((o,[t,n])=>(o.set(t,n),o),new Map);class BM extends $U{_schema=new Map;_eventSchema=new Map;constructor(){super(),zU.forEach(t=>{const n=new Map,s=new Set,[r,l]=t.split("|"),E=l.split(","),[N,ae]=r.split("^");N.split(",").forEach(dt=>{this._schema.set(dt.toLowerCase(),n),this._eventSchema.set(dt.toLowerCase(),s)});const ze=ae&&this._schema.get(ae.toLowerCase());if(ze){for(const[dt,Kt]of ze)n.set(dt,Kt);for(const dt of this._eventSchema.get(ae.toLowerCase()))s.add(dt)}E.forEach(dt=>{if(dt.length>0)switch(dt[0]){case"*":s.add(dt.substring(1));break;case"!":n.set(dt.substring(1),"boolean");break;case"#":n.set(dt.substring(1),"number");break;case"%":n.set(dt.substring(1),"object");break;default:n.set(dt,"string")}})})}hasProperty(t,n,s){if(s.some(l=>l.name===TI_name))return!0;if(t.indexOf("-")>-1){if(Zk(t)||BP(t))return!1;if(s.some(l=>l.name===qC_name))return!0}return(this._schema.get(t.toLowerCase())||this._schema.get("unknown")).has(n)}hasElement(t,n){return!!(n.some(s=>s.name===TI_name)||t.indexOf("-")>-1&&(Zk(t)||BP(t)||n.some(s=>s.name===qC_name)))||this._schema.has(t.toLowerCase())}securityContext(t,n,s){s&&(n=this.getMappedPropName(n)),t=t.toLowerCase(),n=n.toLowerCase();let r=ZF()[t+"|"+n];return r||(r=ZF()["*|"+n],r||la.NONE)}getMappedPropName(t){return JF.get(t)??t}getDefaultComponentElementName(){return"ng-component"}validateProperty(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${t}' is disallowed for security reasons, please use (${t.slice(2)})=...\nIf '${t}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${t}' is disallowed for security reasons, please use (${t.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(t){const n=this._schema.get(t.toLowerCase())||this._schema.get("unknown");return Array.from(n.keys()).map(s=>KU.get(s)??s)}allKnownEventsOfElement(t){return Array.from(this._eventSchema.get(t.toLowerCase())??[])}normalizeAnimationStyleProperty(t){return function _2(o){return o.replace(m2,(...t)=>t[1].toUpperCase())}(t)}normalizeAnimationStyleValue(t,n,s){let r="";const l=s.toString().trim();let E=null;if(function XU(o){switch(o){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(t)&&0!==s&&"0"!==s)if("number"==typeof s)r="px";else{const N=s.match(/^[+-]?[\d\.]+([a-z]*)$/);N&&0==N[1].length&&(E=`Please provide a CSS unit value for ${n}:${s}`)}return{error:E,value:l+r}}}class Mr{closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:t,implicitNamespacePrefix:n,contentType:s=nf.PARSABLE_DATA,closedByParent:r=!1,isVoid:l=!1,ignoreFirstLf:E=!1,preventNamespaceInheritance:N=!1,canSelfClose:ae=!1}={}){t&&t.length>0&&t.forEach(ze=>this.closedByChildren[ze]=!0),this.isVoid=l,this.closedByParent=r||l,this.implicitNamespacePrefix=n||null,this.contentType=s,this.ignoreFirstLf=E,this.preventNamespaceInheritance=N,this.canSelfClose=ae??l}isClosedByChild(t){return this.isVoid||t.toLowerCase()in this.closedByChildren}getContentType(t){return"object"==typeof this.contentType?(void 0===t?void 0:this.contentType[t])??this.contentType.default:this.contentType}}let qF,j0;function IR(o){return j0||(qF=new Mr({canSelfClose:!0}),j0=Object.assign(Object.create(null),{base:new Mr({isVoid:!0}),meta:new Mr({isVoid:!0}),area:new Mr({isVoid:!0}),embed:new Mr({isVoid:!0}),link:new Mr({isVoid:!0}),img:new Mr({isVoid:!0}),input:new Mr({isVoid:!0}),param:new Mr({isVoid:!0}),hr:new Mr({isVoid:!0}),br:new Mr({isVoid:!0}),source:new Mr({isVoid:!0}),track:new Mr({isVoid:!0}),wbr:new Mr({isVoid:!0}),p:new Mr({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Mr({closedByChildren:["tbody","tfoot"]}),tbody:new Mr({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Mr({closedByChildren:["tbody"],closedByParent:!0}),tr:new Mr({closedByChildren:["tr"],closedByParent:!0}),td:new Mr({closedByChildren:["td","th"],closedByParent:!0}),th:new Mr({closedByChildren:["td","th"],closedByParent:!0}),col:new Mr({isVoid:!0}),svg:new Mr({implicitNamespacePrefix:"svg"}),foreignObject:new Mr({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Mr({implicitNamespacePrefix:"math"}),li:new Mr({closedByChildren:["li"],closedByParent:!0}),dt:new Mr({closedByChildren:["dt","dd"]}),dd:new Mr({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Mr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Mr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Mr({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Mr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Mr({closedByChildren:["optgroup"],closedByParent:!0}),option:new Mr({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Mr({ignoreFirstLf:!0}),listing:new Mr({ignoreFirstLf:!0}),style:new Mr({contentType:nf.RAW_TEXT}),script:new Mr({contentType:nf.RAW_TEXT}),title:new Mr({contentType:{default:nf.ESCAPABLE_RAW_TEXT,svg:nf.PARSABLE_DATA}}),textarea:new Mr({contentType:nf.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),(new BM).allKnownElementNames().forEach(t=>{!j0[t]&&null===FP(t)&&(j0[t]=new Mr({canSelfClose:!1}))})),j0[o]??j0[o.toLowerCase()]??qF}const eN={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"};class YU{_placeHolderNameCounts={};_signatureToName={};getStartTagPlaceholderName(t,n,s){const r=this._hashTag(t,n,s);if(this._signatureToName[r])return this._signatureToName[r];const l=t.toUpperCase(),E=eN[l]||`TAG_${l}`,N=this._generateUniqueName(s?E:`START_${E}`);return this._signatureToName[r]=N,N}getCloseTagPlaceholderName(t){const n=this._hashClosingTag(t);if(this._signatureToName[n])return this._signatureToName[n];const s=t.toUpperCase(),l=this._generateUniqueName(`CLOSE_${eN[s]||`TAG_${s}`}`);return this._signatureToName[n]=l,l}getPlaceholderName(t,n){const s=t.toUpperCase(),r=`PH: ${s}=${n}`;if(this._signatureToName[r])return this._signatureToName[r];const l=this._generateUniqueName(s);return this._signatureToName[r]=l,l}getUniquePlaceholder(t){return this._generateUniqueName(t.toUpperCase())}getStartBlockPlaceholderName(t,n){const s=this._hashBlock(t,n);if(this._signatureToName[s])return this._signatureToName[s];const r=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(t)}`);return this._signatureToName[s]=r,r}getCloseBlockPlaceholderName(t){const n=this._hashClosingBlock(t);if(this._signatureToName[n])return this._signatureToName[n];const s=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(t)}`);return this._signatureToName[n]=s,s}_hashTag(t,n,s){return`<${t}`+Object.keys(n).sort().map(N=>` ${N}=${n[N]}`).join("")+(s?"/>":`></${t}>`)}_hashClosingTag(t){return this._hashTag(`/${t}`,{},!1)}_hashBlock(t,n){return`@${t}${0===n.length?"":` (${n.sort().join("; ")})`} {}`}_hashClosingBlock(t){return this._hashBlock(`close_${t}`,[])}_toSnakeCase(t){return t.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;const s=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=s+1,`${t}_${s}`}}const QU=new QF(new TR);function ZU(o,t){return t}class JU{_expressionParser;_interpolationConfig;_containerBlocks;_retainEmptyTokens;_preserveExpressionWhitespace;constructor(t,n,s,r,l){this._expressionParser=t,this._interpolationConfig=n,this._containerBlocks=s,this._retainEmptyTokens=r,this._preserveExpressionWhitespace=l}toI18nMessage(t,n="",s="",r="",l){const E={isIcu:1==t.length&&t[0]instanceof N0,icuDepth:0,placeholderRegistry:new YU,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:l||ZU},N=tr(this,t,E);return new Su(N,E.placeholderToContent,E.placeholderToMessage,n,s,r)}visitElement(t,n){return this._visitElementLike(t,n)}visitComponent(t,n){return this._visitElementLike(t,n)}visitDirective(t,n){throw new Error("Unreachable code")}visitAttribute(t,n){const s=void 0===t.valueTokens||1===t.valueTokens.length?new af(t.value,t.valueSpan||t.sourceSpan):this._visitTextWithInterpolation(t.valueTokens,t.valueSpan||t.sourceSpan,n,t.i18n);return n.visitNodeFn(t,s)}visitText(t,n){const s=1===t.tokens.length?new af(t.value,t.sourceSpan):this._visitTextWithInterpolation(t.tokens,t.sourceSpan,n,t.i18n);return n.visitNodeFn(t,s)}visitComment(t,n){return null}visitExpansion(t,n){n.icuDepth++;const s={},r=new g0(t.switchValue,t.type,s,t.sourceSpan);if(t.cases.forEach(N=>{s[N.value]=new ag(N.expression.map(ae=>ae.visit(this,n)),N.expSourceSpan)}),n.icuDepth--,n.isIcu||n.icuDepth>0){const N=n.placeholderRegistry.getUniquePlaceholder(`VAR_${t.type}`);return r.expressionPlaceholder=N,n.placeholderToContent[N]={text:t.switchValue,sourceSpan:t.switchValueSourceSpan},n.visitNodeFn(t,r)}const l=n.placeholderRegistry.getPlaceholderName("ICU",t.sourceSpan.toString());n.placeholderToMessage[l]=this.toI18nMessage([t],"","","",void 0);const E=new f0(r,l,t.sourceSpan);return n.visitNodeFn(t,E)}visitExpansionCase(t,n){throw new Error("Unreachable code")}visitBlock(t,n){const s=tr(this,t.children,n);if(this._containerBlocks.has(t.name))return new ag(s,t.sourceSpan);const r=t.parameters.map(ae=>ae.expression),l=n.placeholderRegistry.getStartBlockPlaceholderName(t.name,r),E=n.placeholderRegistry.getCloseBlockPlaceholderName(t.name);n.placeholderToContent[l]={text:t.startSourceSpan.toString(),sourceSpan:t.startSourceSpan},n.placeholderToContent[E]={text:t.endSourceSpan?t.endSourceSpan.toString():"}",sourceSpan:t.endSourceSpan??t.sourceSpan};const N=new Y_(t.name,r,l,E,s,t.sourceSpan,t.startSourceSpan,t.endSourceSpan);return n.visitNodeFn(t,N)}visitBlockParameter(t,n){throw new Error("Unreachable code")}visitLetDeclaration(t,n){return null}_visitElementLike(t,n){const s=tr(this,t.children,n),r={},l=Kt=>{r[Kt.name]=Kt.value};let E,N;t instanceof Oh?(E=t.name,N=IR(t.name).isVoid):(E=t.fullName,N=!!t.tagName&&IR(t.tagName).isVoid),t.attrs.forEach(l),t.directives.forEach(Kt=>Kt.attrs.forEach(l));const ae=n.placeholderRegistry.getStartTagPlaceholderName(E,r,N);n.placeholderToContent[ae]={text:t.startSourceSpan.toString(),sourceSpan:t.startSourceSpan};let ze="";N||(ze=n.placeholderRegistry.getCloseTagPlaceholderName(E),n.placeholderToContent[ze]={text:`</${E}>`,sourceSpan:t.endSourceSpan??t.sourceSpan});const dt=new X_(E,r,ae,ze,s,N,t.sourceSpan,t.startSourceSpan,t.endSourceSpan);return n.visitNodeFn(t,dt)}_visitTextWithInterpolation(t,n,s,r){const l=[];let E=!1;for(const N of t)switch(N.type){case 8:case 17:E=!0;const[ae,ze,dt]=N.parts,Kt=i3(ze)||"INTERPOLATION",Vn=s.placeholderRegistry.getPlaceholderName(Kt,ze);if(this._preserveExpressionWhitespace)s.placeholderToContent[Vn]={text:N.parts.join(""),sourceSpan:N.sourceSpan},l.push(new lf(ze,Vn,N.sourceSpan));else{const ci=this.normalizeExpression(N);s.placeholderToContent[Vn]={text:`${ae}${ci}${dt}`,sourceSpan:N.sourceSpan},l.push(new lf(ci,Vn,N.sourceSpan))}break;default:if(N.parts[0].length>0||this._retainEmptyTokens){const ci=l[l.length-1];ci instanceof af?(ci.value+=N.parts[0],ci.sourceSpan=new dr(ci.sourceSpan.start,N.sourceSpan.end,ci.sourceSpan.fullStart,ci.sourceSpan.details)):l.push(new af(N.parts[0],N.sourceSpan))}else this._retainEmptyTokens&&l.push(new af(N.parts[0],N.sourceSpan))}return E?(function qU(o,t){if(t instanceof Su&&(function e3(o){const t=o.nodes;if(1!==t.length||!(t[0]instanceof ag))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(t),t=t.nodes[0]),t instanceof ag){!function t3(o,t){if(o.length!==t.length)throw new Error(`\nThe number of i18n message children changed between first and second pass.\n\nFirst pass (${o.length} tokens):\n${o.map(n=>`"${n.sourceSpan.toString()}"`).join("\n")}\n\nSecond pass (${t.length} tokens):\n${t.map(n=>`"${n.sourceSpan.toString()}"`).join("\n")}\n    `.trim());if(o.some((n,s)=>t[s].constructor!==n.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}(t.children,o);for(let n=0;n<o.length;n++)o[n].sourceSpan=t.children[n].sourceSpan}}(l,r),new ag(l,n)):l[0]}normalizeExpression(t){return function BU(o){return o.visit(new FU)}(this._expressionParser.parseBinding(t.parts[1],t.sourceSpan,t.sourceSpan.start.offset,this._interpolationConfig))}}const n3=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function i3(o){return o.split(n3)[2]}const nN=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function iN(o,t){return o=o.toLowerCase(),t=t.toLowerCase(),nN.has(o+"|"+t)||nN.has("*|"+t)}const o3=o=>(t,n)=>{const s=o.get(t)??t;return s instanceof xy&&(n instanceof f0&&s.i18n instanceof Su&&(n.previousMessage=s.i18n),s.i18n=n),n};class oN{interpolationConfig;keepI18nAttrs;enableI18nLegacyMessageIdFormat;containerBlocks;preserveSignificantWhitespace;retainEmptyTokens;hasI18nMeta=!1;_errors=[];constructor(t=lp,n=!1,s=!1,r=vB,l=!0,E=!l){this.interpolationConfig=t,this.keepI18nAttrs=n,this.enableI18nLegacyMessageIdFormat=s,this.containerBlocks=r,this.preserveSignificantWhitespace=l,this.retainEmptyTokens=E}_generateI18nMessage(t,n="",s){const{meaning:r,description:l,customId:E}=this._parseMetadata(n),ae=function tN(o,t,n,s){const r=new JU(QU,o,t,n,s);return(l,E,N,ae,ze)=>r.toI18nMessage(l,E,N,ae,ze)}(this.interpolationConfig,this.containerBlocks,this.retainEmptyTokens,this.preserveSignificantWhitespace)(t,r,l,E,s);return this._setMessageId(ae,n),this._setLegacyIds(ae,n),ae}visitAllWithErrors(t){const n=t.map(s=>s.visit(this,null));return new IM(n,this._errors)}visitElement(t){return this._visitElementLike(t),t}visitComponent(t,n){return this._visitElementLike(t),t}visitExpansion(t,n){let s;const r=t.i18n;if(this.hasI18nMeta=!0,r instanceof f0){const l=r.name;s=this._generateI18nMessage([t],r),hB(s).name=l,null!==n&&(n.placeholderToMessage[l]=s)}else s=this._generateI18nMessage([t],n||r);return t.i18n=s,t}visitText(t){return t}visitAttribute(t){return t}visitComment(t){return t}visitExpansionCase(t){return t}visitBlock(t,n){return tr(this,t.children,n),t}visitBlockParameter(t,n){return t}visitLetDeclaration(t,n){return t}visitDirective(t,n){return t}_visitElementLike(t){let n;if(function lV(o){return o.attrs.some(t=>uB(t.name))}(t)){this.hasI18nMeta=!0;const s=[],r={};for(const l of t.attrs)if("i18n"===l.name){const E=t.i18n||l.value,N=new Map,ae=this.preserveSignificantWhitespace?t.children:hg(new DR(!1,N),t.children);n=this._generateI18nMessage(ae,E,o3(N)),0===n.nodes.length&&(n=void 0),t.i18n=n}else if(l.name.startsWith("i18n-")){const E=l.name.slice(5);let N;N=t instanceof Kd?null!==t.tagName&&iN(t.tagName,E):iN(t.name,E),N?this._reportError(l,`Translating attribute '${E}' is disallowed for security reasons.`):r[E]=l.value}else s.push(l);if(Object.keys(r).length)for(const l of s){const E=r[l.name];void 0!==E&&l.value&&(l.i18n=this._generateI18nMessage([l],l.i18n||E))}this.keepI18nAttrs||(t.attrs=s)}tr(this,t.children,n)}_parseMetadata(t){return"string"==typeof t?function a3(o=""){let t,n,s;if(o=o.trim()){const r=o.indexOf(r3),l=o.indexOf(s3);let E;[E,t]=r>-1?[o.slice(0,r),o.slice(r+2)]:[o,""],[n,s]=l>-1?[E.slice(0,l),E.slice(l+1)]:["",E]}return{customId:t,meaning:n,description:s}}(t):t instanceof Su?t:{}}_setMessageId(t,n){t.id||(t.id=n instanceof Su&&n.id||function r0(o){return o.id||kI(o)}(t))}_setLegacyIds(t,n){if(this.enableI18nLegacyMessageIdFormat)t.legacyIds=[(o=t,function LI(o){ey??=new TextEncoder;const t=[...ey.encode(o)],n=function xk(o,t){const n=o.length+3>>>2,s=[];for(let r=0;r<n;r++)s[r]=Ek(o,4*r,t);return s}(t,UI.Big),s=8*t.length,r=new Uint32Array(80);let l=1732584193,E=4023233417,N=2562383102,ae=271733878,ze=3285377520;n[s>>5]|=128<<24-s%32,n[15+(s+64>>9<<4)]=s;for(let dt=0;dt<n.length;dt+=16){const Kt=l,Vn=E,ci=N,Vi=ae,Di=ze;for(let Eo=0;Eo<80;Eo++){r[Eo]=Eo<16?n[dt+Eo]:jI(r[Eo-3]^r[Eo-8]^r[Eo-14]^r[Eo-16],1);const uo=VI(Eo,E,N,ae),Jo=uo[0],es=uo[1],Qo=[jI(l,5),Jo,ze,es,r[Eo]].reduce(ty);ze=ae,ae=N,N=jI(E,30),E=l,l=Qo}l=ty(l,Kt),E=ty(E,Vn),N=ty(N,ci),ae=ty(ae,Vi),ze=ty(ze,Di)}return $_(l)+$_(E)+$_(N)+$_(ae)+$_(ze)}(function pP(o){return o.map(t=>t.visit(FI,null))}(o.nodes).join("")+`[${o.meaning}]`)),kI(t)];else if("string"!=typeof n){const s=n instanceof Su?n:n instanceof f0?n.previousMessage:void 0;t.legacyIds=s?s.legacyIds:[]}var o}_reportError(t,n){this._errors.push(new Xs(t.sourceSpan,n))}}const s3="|",r3="@@";function d3(o,t,n,s){const r=function p3(o){return o.nodes.map(t=>t.visit(h3,null)).join("")}(t),l=[Ei(r)];Object.keys(s).length&&(l.push(DM(ZP(s,!0),!0)),l.push(DM({original_code:_l(Object.keys(s).map(ae=>({key:WS(ae),quoted:!0,value:Ei(t.placeholders[ae]?t.placeholders[ae].sourceSpan.toString():t.placeholderToMessage[ae].nodes.map(ze=>ze.sourceSpan.toString()).join(""))})))})));const E=new al(n.name,zs("goog.getMsg").callFn(l),xc,el.Final);return E.addLeadingComment(function l3(o){const t=[];return t.push(o.description?{tagName:"desc",text:o.description}:{tagName:"suppress",text:"{msgDescriptions}"}),o.meaning&&t.push({tagName:"meaning",text:o.meaning}),function wk(o=[]){return new CP(o)}(t)}(t)),[E,new _h(o.set(n))]}const h3=new class u3{formatPh(t){return`{$${WS(t)}}`}visitText(t){return t.value}visitContainer(t){return t.children.map(n=>n.visit(this)).join("")}visitIcu(t){return TF(t)}visitTagPlaceholder(t){return t.isVoid?this.formatPh(t.startName):`${this.formatPh(t.startName)}${t.children.map(n=>n.visit(this)).join("")}${this.formatPh(t.closeName)}`}visitPlaceholder(t){return this.formatPh(t.name)}visitBlockPlaceholder(t){return`${this.formatPh(t.startName)}${t.children.map(n=>n.visit(this)).join("")}${this.formatPh(t.closeName)}`}visitIcuPlaceholder(t,n){return this.formatPh(t.name)}};function g3(o,t,n){const{messageParts:s,placeHolders:r}=function m3(o){const t=[],n=new f3(o.placeholderToMessage,t);return o.nodes.forEach(s=>s.visit(n)),function v3(o){const t=[],n=[];o[0]instanceof gm&&t.push(MR(o[0].sourceSpan.start));for(let s=0;s<o.length;s++){const r=o[s];r instanceof ef?t.push(r):(n.push(r),o[s-1]instanceof gm&&t.push(MR(o[s-1].sourceSpan.end)))}return o[o.length-1]instanceof gm&&t.push(MR(o[o.length-1].sourceSpan.end)),{messageParts:t,placeHolders:n}}(t)}(t),l=function _3(o){const t=o.nodes[0];return new dr(t.sourceSpan.fullStart,o.nodes[o.nodes.length-1].sourceSpan.end,t.sourceSpan.fullStart,t.sourceSpan.details)}(t),E=r.map(ze=>n[ze.text]),N=function Tk(o,t,n,s,r){return new u(o,t,n,s,r)}(t,s,r,E,l),ae=o.set(N);return[new _h(ae)]}class f3{placeholderToMessage;pieces;constructor(t,n){this.placeholderToMessage=t,this.pieces=n}visitText(t){if(this.pieces[this.pieces.length-1]instanceof ef)this.pieces[this.pieces.length-1].text+=t.value;else{const n=new dr(t.sourceSpan.fullStart,t.sourceSpan.end,t.sourceSpan.fullStart,t.sourceSpan.details);this.pieces.push(new ef(t.value,n))}}visitContainer(t){t.children.forEach(n=>n.visit(this))}visitIcu(t){this.pieces.push(new ef(TF(t),t.sourceSpan))}visitTagPlaceholder(t){this.pieces.push(this.createPlaceholderPiece(t.startName,t.startSourceSpan??t.sourceSpan)),t.isVoid||(t.children.forEach(n=>n.visit(this)),this.pieces.push(this.createPlaceholderPiece(t.closeName,t.endSourceSpan??t.sourceSpan)))}visitPlaceholder(t){this.pieces.push(this.createPlaceholderPiece(t.name,t.sourceSpan))}visitBlockPlaceholder(t){this.pieces.push(this.createPlaceholderPiece(t.startName,t.startSourceSpan??t.sourceSpan)),t.children.forEach(n=>n.visit(this)),this.pieces.push(this.createPlaceholderPiece(t.closeName,t.endSourceSpan??t.sourceSpan))}visitIcuPlaceholder(t){this.pieces.push(this.createPlaceholderPiece(t.name,t.sourceSpan,this.placeholderToMessage[t.name]))}createPlaceholderPiece(t,n,s){return new gm(WS(t,!1),n,s)}}function MR(o){return new ef("",new dr(o,o))}const sN="ngI18nClosureMode";function aN(o){return`MSG_${o}`.toUpperCase()}function x3(o){return new al(o.name,void 0,xc,void 0,o.sourceSpan)}function lN(o,t,n,s){const r=[],l=new Map;for(const ze of s.subMessages){const dt=n.get(ze),{mainVar:Kt,statements:Vn}=lN(o,t,n,dt);r.push(...Vn);const ci=l.get(dt.messagePlaceholder)??[];ci.push(Kt),l.set(dt.messagePlaceholder,ci)}(function O3(o,t){for(const[n,s]of t)1===s.length?o.params.set(n,s[0]):(o.params.set(n,Ei(`\ufffdI18N_EXP_${n}\ufffd`)),o.postprocessingParams.set(n,hr(s)))})(s,l),s.params=new Map([...s.params.entries()].sort());const E=zs(o.pool.uniqueName("i18n_")),N=function D3(o,t,n,s){let r;const l=n;if(s){const E=aN("EXTERNAL_"),N=o.uniqueName(l);r=`${E}${my(t)}$$${N}`}else{const E=aN(l);r=o.uniqueName(E)}return zs(r)}(o.pool,s.message.id,t,o.i18nUseExternalIds);let ae;if(s.needsPostprocessing||s.postprocessingParams.size>0){const dt=ZP(Object.fromEntries([...s.postprocessingParams.entries()].sort()),!1),Kt=[];s.postprocessingParams.size>0&&Kt.push(DM(dt,!0)),ae=Vn=>ns(oi.i18nPostprocess).callFn([Vn,...Kt])}return r.push(...function w3(o,t,n,s,r){const l=Object.fromEntries(s),E=[x3(t),kS(d0(zs(sN)).notIdentical(Ei("undefined",ny)).and(zs(sN)),d3(t,o,n,l),g3(t,o,ZP(l,!1)))];return r&&E.push(new _h(t.set(r(t)))),E}(s.message,E,N,s.params,ae)),{mainVar:E,statements:r}}function I3(o){const t=[];for(const n of o)t.push(Ei(n.name),Ei(n.target));return hr(t)}function P3(o){const t=[];let n=0,s=0,r=0,l=0,E=0,N=null;for(;n<o.length;)switch(o.charCodeAt(n++)){case 40:s++;break;case 41:s--;break;case 39:0===r?r=39:39===r&&92!==o.charCodeAt(n-1)&&(r=0);break;case 34:0===r?r=34:34===r&&92!==o.charCodeAt(n-1)&&(r=0);break;case 58:!N&&0===s&&0===r&&(N=cN(o.substring(E,n-1).trim()),l=n);break;case 59:if(N&&l>0&&0===s&&0===r){const ze=o.substring(l,n-1).trim();t.push(N,ze),E=n,l=0,N=null}}if(N&&l){const ae=o.slice(l).trim();t.push(N,ae)}return t}function cN(o){return o.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}function pD(o,t,n,s){null===o.fnName&&(o.fnName=o.job.pool.uniqueName(my(`${t}_${o.job.fnSuffix}`),!1));const r=new Map;for(const l of o.ops())switch(l.kind){case sn.Property:case sn.DomProperty:l.bindingKind===Fs.LegacyAnimation&&(l.name="@"+l.name);break;case sn.Animation:if(null===l.handlerFnName){const dt=l.name.replace(".","");l.handlerFnName=`${o.fnName}_${dt}_cb`,l.handlerFnName=my(l.handlerFnName)}break;case sn.AnimationListener:if(null!==l.handlerFnName)break;if(!l.hostListener&&null===l.targetSlot.slot)throw new Error("Expected a slot to be assigned");const E=l.name.replace(".","");l.handlerFnName=l.hostListener?`${t}_${E}_HostBindingHandler`:`${o.fnName}_${l.tag.replace("-","_")}_${E}_${l.targetSlot.slot}_listener`,l.handlerFnName=my(l.handlerFnName);break;case sn.Listener:if(null!==l.handlerFnName)break;if(!l.hostListener&&null===l.targetSlot.slot)throw new Error("Expected a slot to be assigned");let N="";l.isLegacyAnimationListener&&(l.name=`@${l.name}.${l.legacyAnimationPhase}`,N="animation"),l.handlerFnName=l.hostListener?`${t}_${N}${l.name}_HostBindingHandler`:`${o.fnName}_${l.tag.replace("-","_")}_${N}${l.name}_${l.targetSlot.slot}_listener`,l.handlerFnName=my(l.handlerFnName);break;case sn.TwoWayListener:if(null!==l.handlerFnName)break;if(null===l.targetSlot.slot)throw new Error("Expected a slot to be assigned");l.handlerFnName=my(`${o.fnName}_${l.tag.replace("-","_")}_${l.name}_${l.targetSlot.slot}_listener`);break;case sn.Variable:r.set(l.xref,B3(o,l.variable,n));break;case sn.RepeaterCreate:if(!(o instanceof hf))throw new Error("AssertionError: must be compiling a component");if(null===l.handle.slot)throw new Error("Expected slot to be assigned");null!==l.emptyView&&pD(o.job.views.get(l.emptyView),`${t}_${l.functionNameSuffix}Empty_${l.handle.slot+2}`,n,s),pD(o.job.views.get(l.xref),`${t}_${l.functionNameSuffix}_${l.handle.slot+1}`,n,s);break;case sn.Projection:if(!(o instanceof hf))throw new Error("AssertionError: must be compiling a component");if(null===l.handle.slot)throw new Error("Expected slot to be assigned");null!==l.fallbackView&&pD(o.job.views.get(l.fallbackView),`${t}_ProjectionFallback_${l.handle.slot}`,n,s);break;case sn.ConditionalCreate:case sn.ConditionalBranchCreate:case sn.Template:if(!(o instanceof hf))throw new Error("AssertionError: must be compiling a component");const ae=o.job.views.get(l.xref);if(null===l.handle.slot)throw new Error("Expected slot to be assigned");pD(ae,`${t}${0===l.functionNameSuffix.length?"":`_${l.functionNameSuffix}`}_${l.handle.slot}`,n,s);break;case sn.StyleProp:l.name=F3(l.name),s&&(l.name=dN(l.name));break;case sn.ClassProp:s&&(l.name=dN(l.name))}for(const l of o.ops())wc(l,E=>{if(E instanceof df&&null===E.name){if(!r.has(E.xref))throw new Error(`Variable ${E.xref} not yet named`);E.name=r.get(E.xref)}})}function B3(o,t,n){if(null===t.name)switch(t.kind){case Oc.Context:t.name="ctx_r"+n.index++;break;case Oc.Identifier:t.name=o.job.compatibility===yh.TemplateDefinitionBuilder?`${t.identifier}_${"ctx"===t.identifier?"i":""}r${++n.index}`:`${t.identifier}_i${n.index++}`;break;default:t.name="_r"+ ++n.index}return t.name}function F3(o){return o.startsWith("--")?o:cN(o)}function dN(o){const t=o.indexOf("!important");return t>-1?o.substring(0,t):o}function uN(o){for(const t of o){if(!(t.kind===sn.Statement&&t.statement instanceof _h&&t.statement.expr instanceof iD))continue;const n=t.statement.expr.steps;let s=!0;for(let r=t.next;r.kind!==sn.ListEnd&&s;r=r.next)wc(r,(l,E)=>{if(!cf(l))return l;if(s&&!(E&Kr.InChildOperation))switch(l.kind){case Gs.NextContext:l.steps+=n,Lo.remove(t),s=!1;break;case Gs.GetCurrentView:case Gs.Reference:case Gs.ContextLetReference:s=!1}})}}function H3(o,t){const n=o.get(t);if(void 0===n)throw new Error("All attributes should have an element-like target.");return n}function xm(o){return t=>t.kind===o}function gD(o,t){return n=>n.kind===o&&t===n.expression instanceof Cl}const G3=[{test:o=>o.kind===sn.Listener&&o.hostListener&&o.isLegacyAnimationListener},{test:function U3(o){return o.kind===sn.Listener&&!(o.hostListener&&o.isLegacyAnimationListener)||o.kind===sn.TwoWayListener||o.kind===sn.Animation||o.kind===sn.AnimationListener}}],W3=[{test:xm(sn.StyleMap),transform:FM},{test:xm(sn.ClassMap),transform:FM},{test:xm(sn.StyleProp)},{test:xm(sn.ClassProp)},{test:gD(sn.Attribute,!0)},{test:gD(sn.Property,!0)},{test:function j3(o){return!(o.kind!==sn.Property&&o.kind!==sn.TwoWayProperty||o.expression instanceof Cl)}},{test:gD(sn.Attribute,!1)}],z3=[{test:gD(sn.DomProperty,!0)},{test:gD(sn.DomProperty,!1)},{test:xm(sn.Attribute)},{test:xm(sn.StyleMap),transform:FM},{test:xm(sn.ClassMap),transform:FM},{test:xm(sn.StyleProp)},{test:xm(sn.ClassProp)}],hN=new Set([sn.Listener,sn.TwoWayListener,sn.AnimationListener,sn.StyleMap,sn.ClassMap,sn.StyleProp,sn.ClassProp,sn.Property,sn.TwoWayProperty,sn.DomProperty,sn.Attribute,sn.Animation]);function pN(o,t){let n=[],s=null;for(const r of o){const l=tD(r)?r.target:null;(!hN.has(r.kind)||l!==s&&null!==s&&null!==l)&&(Lo.insertBefore(gN(n,t),r),n=[],s=null),hN.has(r.kind)&&(n.push(r),Lo.remove(r),s=l??s)}o.push(gN(n,t))}function gN(o,t){const n=Array.from(t,()=>new Array);for(const s of o)n[t.findIndex(l=>l.test(s))].push(s);return n.flatMap((s,r)=>{const l=t[r].transform;return l?l(s):s})}function FM(o){return o.slice(o.length-1)}function Y3(o){return"select"===o.toLowerCase()}function Q3(o,t){const n=o.get(t);if(void 0===n)throw new Error("All attributes should have an slottable target.");return n}function J3(o){for(const t of o.update)wc(t,(n,s)=>{if(cf(n)&&n.kind===Gs.PipeBinding){if(s&Kr.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(o.job.compatibility){if(null==t.target)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");q3(o,t.target,n)}else o.create.push(uF(n.target,n.targetSlot,n.name))}})}function q3(o,t,n){for(let s=o.create.head.next;s.kind!==sn.ListEnd;s=s.next){if(!O0(s)||s.xref!==t)continue;for(;s.next.kind===sn.Pipe;)s=s.next;const r=uF(n.target,n.targetSlot,n.name);return void Lo.insertBefore(r,s.next)}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}function fN(o,t){let n=null;for(const s of o.create)switch(s.kind){case sn.I18nStart:s.subTemplateIndex=0===t?null:t,n=s;break;case sn.I18nEnd:null===n.subTemplateIndex&&(t=0),n=null;break;case sn.ConditionalCreate:case sn.ConditionalBranchCreate:case sn.Template:t=NM(o.job.views.get(s.xref),n,s.i18nPlaceholder,t);break;case sn.RepeaterCreate:t=NM(o.job.views.get(s.xref),n,s.i18nPlaceholder,t),null!==s.emptyView&&(t=NM(o.job.views.get(s.emptyView),n,s.emptyI18nPlaceholder,t));break;case sn.Projection:null!==s.fallbackView&&(t=NM(o.job.views.get(s.fallbackView),n,s.fallbackViewI18nPlaceholder,t))}return t}function NM(o,t,n,s){if(void 0!==n){if(null===t)throw Error("Expected template with i18n placeholder to be in an i18n block.");s++,function nj(o,t){if(o.create.head.next?.kind!==sn.I18nStart){const n=o.job.allocateXrefId();Lo.insertAfter(OM(n,t.message,t.root,null),o.create.head),Lo.insertBefore(wM(n,null),o.create.tail)}}(o,t)}return fN(o,s)}class oj extends u0{numArgs;constructor(t){super(),this.numArgs=t}keyOf(t){return t instanceof Cy?`param(${t.index})`:super.keyOf(t)}toSharedConstantDeclaration(t,n){const s=[];for(let l=0;l<this.numArgs;l++)s.push(new Nn("a"+l));const r=Is(n,l=>l instanceof Cy?zs("a"+l.index):l,Kr.None);return new al(t,new _i(s,r),void 0,el.Final)}}function rj(o){const t=[],n=[];for(const s of o.entries)if(s.isConstant())t.push(s);else{const r=n.length;n.push(s),t.push(new Cy(r))}return new nv(hr(t),n)}function aj(o){let t=[];const n=[];for(const s of o.entries)if(s.value.isConstant())t.push(s);else{const r=n.length;n.push(s.value),t.push(new Ua(s.key,new Cy(r),s.quoted))}return new nv(_l(t),n)}function lj(o,t,n,s,r){return rv(oi.element,o,t,n,s,r)}function cj(o,t,n,s,r){return rv(oi.elementStart,o,t,n,s,r)}function rv(o,t,n,s,r,l){const E=[Ei(t)];return null!==n&&E.push(Ei(n)),null!==r?E.push(Ei(s),Ei(r)):null!==s&&E.push(Ei(s)),gr(o,E,l)}function mN(o,t,n,s,r,l,E,N,ae){const ze=[Ei(t),n,Ei(s),Ei(r),Ei(l),Ei(E)];for(null!==N&&(ze.push(Ei(N)),ze.push(ns(oi.templateRefExtractor)));ze[ze.length-1].isEquivalent(cd);)ze.pop();return gr(o,ze,ae)}function PR(o,t,n,s,r){const l=[Ei(t)];return l.push(n instanceof Cl?G0(n,r):n),null!==s&&l.push(s),gr(o,l,r)}function dj(o){return gr(oi.elementEnd,[],o)}function uj(o,t,n,s){return rv(oi.elementContainerStart,o,null,t,n,s)}function hj(o,t,n,s){return rv(oi.elementContainer,o,null,t,n,s)}function pj(){return gr(oi.elementContainerEnd,[],null)}function gj(o,t,n,s,r,l,E,N){return mN(oi.templateCreate,o,t,n,s,r,l,E,N)}function fj(){return gr(oi.disableBindings,[],null)}function mj(){return gr(oi.enableBindings,[],null)}function _j(o,t,n,s,r){const l=[Ei(o),t];return null!==n&&l.push(ns(n)),gr(s?oi.syntheticHostListener:oi.listener,l,r)}function _N(o,t){return ns(oi.twoWayBindingSet).callFn([o,t])}function vj(o,t,n){return gr(oi.twoWayListener,[Ei(o),t],n)}function Cj(o,t){return gr(oi.pipe,[Ei(o),Ei(t)],null)}function yj(){return gr(oi.namespaceHTML,[],null)}function bj(){return gr(oi.namespaceSVG,[],null)}function xj(){return gr(oi.namespaceMathML,[],null)}function Ej(o,t){return gr(oi.advance,o>1?[Ei(o)]:[],t)}function Aj(o,t,n){const s=[Ei(o,null)];return""!==t&&s.push(Ei(t)),gr(oi.text,s,n)}function Ij(o,t,n,s,r,l,E,N,ae,ze,dt){const Kt=[Ei(o),Ei(t),n??Ei(null),Ei(s),Ei(r),Ei(l),E??Ei(null),N??Ei(null),ae?ns(oi.deferEnableTimerScheduling):Ei(null),Ei(dt)];let Vn;for(;null!==(Vn=Kt[Kt.length-1])&&Vn instanceof qa&&null===Vn.value;)Kt.pop();return gr(oi.defer,Kt,ze)}const Mj=new Map([[pa.Idle,{none:oi.deferOnIdle,prefetch:oi.deferPrefetchOnIdle,hydrate:oi.deferHydrateOnIdle}],[pa.Immediate,{none:oi.deferOnImmediate,prefetch:oi.deferPrefetchOnImmediate,hydrate:oi.deferHydrateOnImmediate}],[pa.Timer,{none:oi.deferOnTimer,prefetch:oi.deferPrefetchOnTimer,hydrate:oi.deferHydrateOnTimer}],[pa.Hover,{none:oi.deferOnHover,prefetch:oi.deferPrefetchOnHover,hydrate:oi.deferHydrateOnHover}],[pa.Interaction,{none:oi.deferOnInteraction,prefetch:oi.deferPrefetchOnInteraction,hydrate:oi.deferHydrateOnInteraction}],[pa.Viewport,{none:oi.deferOnViewport,prefetch:oi.deferPrefetchOnViewport,hydrate:oi.deferHydrateOnViewport}],[pa.Never,{none:oi.deferHydrateNever,prefetch:oi.deferHydrateNever,hydrate:oi.deferHydrateNever}]]);function Pj(o,t,n,s){const r=Mj.get(o)?.[n];if(void 0===r)throw new Error(`Unable to determine instruction for trigger ${o}`);return gr(r,t.map(l=>Ei(l)),s)}function Rj(o){return gr(oi.projectionDef,o?[o]:[],null)}function kj(o,t,n,s,r,l,E){const N=[Ei(o)];return(0!==t||null!==n||null!==s)&&(N.push(Ei(t)),null!==n&&N.push(n),null!==s&&(null===n&&N.push(Ei(null)),N.push(zs(s),Ei(r),Ei(l)))),gr(oi.projection,N,E)}function Bj(o,t,n,s){const r=[Ei(o),Ei(t)];return null!==n&&r.push(Ei(n)),gr(oi.i18nStart,r,s)}function Fj(o,t,n,s,r,l,E,N){const ae=[Ei(o),t,Ei(n),Ei(s),Ei(r),Ei(l)];for(null!==E&&(ae.push(Ei(E)),ae.push(ns(oi.templateRefExtractor)));ae[ae.length-1].isEquivalent(cd);)ae.pop();return gr(oi.conditionalCreate,ae,N)}function Nj(o,t,n,s,r,l,E,N){const ae=[Ei(o),t,Ei(n),Ei(s),Ei(r),Ei(l)];for(null!==E&&(ae.push(Ei(E)),ae.push(ns(oi.templateRefExtractor)));ae[ae.length-1].isEquivalent(cd);)ae.pop();return gr(oi.conditionalBranchCreate,ae,N)}function Lj(o,t,n,s,r,l,E,N,ae,ze,dt,Kt,Vn,ci){const Vi=[Ei(o),zs(t),Ei(n),Ei(s),Ei(r),Ei(l),E];return(N||null!==ae)&&(Vi.push(Ei(N)),null!==ae&&(Vi.push(zs(ae),Ei(ze),Ei(dt)),(null!==Kt||null!==Vn)&&Vi.push(Ei(Kt)),null!==Vn&&Vi.push(Ei(Vn)))),gr(oi.repeaterCreate,Vi,ci)}function Vj(o,t){return gr(oi.repeater,[o],t)}function Hj(o,t,n){return gr("prefetch"===o?oi.deferPrefetchWhen:"hydrate"===o?oi.deferHydrateWhen:oi.deferWhen,[t],n)}function $j(o,t){return gr(oi.declareLet,[Ei(o)],t)}function Gj(o,t,n,s){const r=[Ei(o),Ei(t)];return n&&r.push(Ei(n)),gr(oi.i18n,r,s)}function Wj(o){return gr(oi.i18nEnd,[],o)}function zj(o,t){const n=[Ei(o),Ei(t)];return gr(oi.i18nAttributes,n,null)}function Yj(o,t,n,s){const r=[Ei(o),t];return null!==n&&r.push(n),gr(oi.twoWayProperty,r,s)}function vN(o,t,n,s,r){const l=[Ei(o)];return l.push(t instanceof Cl?G0(t,r):t),(null!==n||null!==s)&&l.push(n??Ei(null)),null!==s&&l.push(Ei(s)),gr(oi.attribute,l,null)}function Qj(o,t,n,s){const r=[Ei(o)];return r.push(t instanceof Cl?G0(t,s):t),null!==n&&r.push(Ei(n)),gr(oi.styleProp,r,s)}function Zj(o,t,n){return gr(oi.classProp,[Ei(o),t],n)}function Jj(o,t){const n=o instanceof Cl?G0(o,t):o;return gr(oi.styleMap,[n],t)}function qj(o,t){const n=o instanceof Cl?G0(o,t):o;return gr(oi.classMap,[n],t)}function e4(o,t,n,s,r){return rv(oi.domElement,o,t,n,s,r)}function t4(o,t,n,s,r){return rv(oi.domElementStart,o,t,n,s,r)}function n4(o){return gr(oi.domElementEnd,[],o)}function i4(o,t,n,s){return rv(oi.domElementContainerStart,o,null,t,n,s)}function o4(o,t,n,s){return rv(oi.domElementContainer,o,null,t,n,s)}function s4(){return gr(oi.domElementContainerEnd,[],null)}function r4(o,t,n,s){const r=[Ei(o),t];return null!==n&&r.push(ns(n)),gr(oi.domListener,r,s)}function a4(o,t,n,s,r,l,E,N){return mN(oi.domTemplate,o,t,n,s,r,l,E,N)}const CN=[oi.pipeBind1,oi.pipeBind2,oi.pipeBind3,oi.pipeBind4];function d4(o,t,n){const s=yN(o,t);return function O4(o,t,n,s,r){return pp(RR(o,t,n,s,r).toStmt())}(b4,[],s,[],n)}function u4(o,t){return gr(oi.i18nExp,[o],t)}function h4(o,t){return gr(oi.i18nApply,[Ei(o)],t)}function g4(o,t,n,s){const r=[t];return null!==n&&r.push(n),gr("enter"===o?oi.animationEnter:oi.animationLeave,r,s)}function f4(o,t,n,s){const l=[t instanceof Cl?G0(t,s):t];return null!==n&&l.push(n),gr("enter"===o?oi.animationEnter:oi.animationLeave,l,s)}function m4(o,t,n,s){return gr("enter"===o?oi.animationEnterListener:oi.animationLeaveListener,[t],s)}function _4(o,t,n){return gr(oi.syntheticHostProperty,[Ei(o),t],n)}function C4(o,t){return gr(oi.attachSourceLocations,[Ei(o),t],null)}function yN(o,t){if(o.length<1||t.length!==o.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");const n=[];if(1===t.length&&""===o[0]&&""===o[1])n.push(t[0]);else{let s;for(s=0;s<t.length;s++)n.push(Ei(o[s]),t[s]);n.push(Ei(o[s]))}return n}function G0(o,t){const n=yN(o.strings,o.expressions);return RR(x4,[],n,[],t)}function gr(o,t,n){const s=ns(o).callFn(t,n);return pp(new _h(s,n))}function y4(o,t,n){const s=[o];return null!==t&&s.push(t),gr(oi.conditional,s,n)}const b4={constant:[oi.textInterpolate,oi.textInterpolate1,oi.textInterpolate2,oi.textInterpolate3,oi.textInterpolate4,oi.textInterpolate5,oi.textInterpolate6,oi.textInterpolate7,oi.textInterpolate8],variable:oi.textInterpolateV,mapping:o=>{if(o%2==0)throw new Error("Expected odd number of arguments");return(o-1)/2}},x4={constant:[oi.interpolate,oi.interpolate1,oi.interpolate2,oi.interpolate3,oi.interpolate4,oi.interpolate5,oi.interpolate6,oi.interpolate7,oi.interpolate8],variable:oi.interpolateV,mapping:o=>{if(o%2==0)throw new Error("Expected odd number of arguments");return(o-1)/2}},E4={constant:[oi.pureFunction0,oi.pureFunction1,oi.pureFunction2,oi.pureFunction3,oi.pureFunction4,oi.pureFunction5,oi.pureFunction6,oi.pureFunction7,oi.pureFunction8],variable:oi.pureFunctionV,mapping:o=>o};function RR(o,t,n,s,r){const l=o.mapping(n.length),E=n.at(-1);if(0===s.length&&n.length>1&&E instanceof qa&&""===E.value&&n.pop(),l<o.constant.length)return ns(o.constant[l]).callFn([...t,...n,...s],r);if(null!==o.variable)return ns(o.variable).callFn([...t,hr(n),...s],r);throw new Error("AssertionError: unable to call variadic function")}const w4=new Map([["window",oi.resolveWindow],["document",oi.resolveDocument],["body",oi.resolveBody]]),S4=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function T4(o,t){for(const n of t)switch(Bl(n,EN,Kr.None),n.kind){case sn.Text:Lo.replace(n,Aj(n.handle.slot,n.initialValue,n.sourceSpan));break;case sn.ElementStart:Lo.replace(n,o.job.mode===xh.DomOnly?t4(n.handle.slot,n.tag,n.attributes,n.localRefs,n.startSourceSpan):cj(n.handle.slot,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case sn.Element:Lo.replace(n,o.job.mode===xh.DomOnly?e4(n.handle.slot,n.tag,n.attributes,n.localRefs,n.wholeSourceSpan):lj(n.handle.slot,n.tag,n.attributes,n.localRefs,n.wholeSourceSpan));break;case sn.ElementEnd:Lo.replace(n,o.job.mode===xh.DomOnly?n4(n.sourceSpan):dj(n.sourceSpan));break;case sn.ContainerStart:Lo.replace(n,o.job.mode===xh.DomOnly?i4(n.handle.slot,n.attributes,n.localRefs,n.startSourceSpan):uj(n.handle.slot,n.attributes,n.localRefs,n.startSourceSpan));break;case sn.Container:Lo.replace(n,o.job.mode===xh.DomOnly?o4(n.handle.slot,n.attributes,n.localRefs,n.wholeSourceSpan):hj(n.handle.slot,n.attributes,n.localRefs,n.wholeSourceSpan));break;case sn.ContainerEnd:Lo.replace(n,o.job.mode===xh.DomOnly?s4():pj());break;case sn.I18nStart:Lo.replace(n,Bj(n.handle.slot,n.messageIndex,n.subTemplateIndex,n.sourceSpan));break;case sn.I18nEnd:Lo.replace(n,Wj(n.sourceSpan));break;case sn.I18n:Lo.replace(n,Gj(n.handle.slot,n.messageIndex,n.subTemplateIndex,n.sourceSpan));break;case sn.I18nAttributes:if(null===n.i18nAttributesConfig)throw new Error("AssertionError: i18nAttributesConfig was not set");Lo.replace(n,zj(n.handle.slot,n.i18nAttributesConfig));break;case sn.Template:if(!(o instanceof hf))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(n.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");const s=o.job.views.get(n.xref);Lo.replace(n,n.templateKind===Tu.Block||o.job.mode===xh.DomOnly?a4(n.handle.slot,zs(s.fnName),s.decls,s.vars,n.tag,n.attributes,n.localRefs,n.startSourceSpan):gj(n.handle.slot,zs(s.fnName),s.decls,s.vars,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case sn.DisableBindings:Lo.replace(n,fj());break;case sn.EnableBindings:Lo.replace(n,mj());break;case sn.Pipe:Lo.replace(n,Cj(n.handle.slot,n.name));break;case sn.DeclareLet:Lo.replace(n,$j(n.handle.slot,n.sourceSpan));break;case sn.AnimationString:Lo.replace(n,f4(n.animationKind,n.expression,n.sanitizer,n.sourceSpan));break;case sn.Animation:const r=LM(o,n.handlerFnName,n.handlerOps,!1);Lo.replace(n,g4(n.animationKind,r,n.sanitizer,n.sourceSpan));break;case sn.AnimationListener:const l=LM(o,n.handlerFnName,n.handlerOps,n.consumesDollarEvent);Lo.replace(n,m4(n.animationKind,l,0,n.sourceSpan));break;case sn.Listener:const E=LM(o,n.handlerFnName,n.handlerOps,n.consumesDollarEvent),N=n.eventTarget?w4.get(n.eventTarget):null;if(void 0===N)throw new Error(`Unexpected global target '${n.eventTarget}' defined for '${n.name}' event. Supported list of global targets: window,document,body.`);Lo.replace(n,o.job.mode!==xh.DomOnly||n.hostListener||n.isLegacyAnimationListener?_j(n.name,E,N,n.hostListener&&n.isLegacyAnimationListener,n.sourceSpan):r4(n.name,E,N,n.sourceSpan));break;case sn.TwoWayListener:Lo.replace(n,vj(n.name,LM(o,n.handlerFnName,n.handlerOps,!0),n.sourceSpan));break;case sn.Variable:if(null===n.variable.name)throw new Error(`AssertionError: unnamed variable ${n.xref}`);Lo.replace(n,pp(new al(n.variable.name,n.initializer,void 0,el.Final)));break;case sn.Namespace:switch(n.active){case ud.HTML:Lo.replace(n,yj());break;case ud.SVG:Lo.replace(n,bj());break;case ud.Math:Lo.replace(n,xj())}break;case sn.Defer:const ae=!!n.loadingMinimumTime||!!n.loadingAfterTime||!!n.placeholderMinimumTime;Lo.replace(n,Ij(n.handle.slot,n.mainSlot.slot,n.resolverFn,n.loadingSlot?.slot??null,n.placeholderSlot?.slot??null,n.errorSlot?.slot??null,n.loadingConfig,n.placeholderConfig,ae,n.sourceSpan,n.flags));break;case sn.DeferOn:let ze=[];switch(n.trigger.kind){case pa.Never:case pa.Idle:case pa.Immediate:break;case pa.Timer:ze=[n.trigger.delay];break;case pa.Interaction:case pa.Hover:case pa.Viewport:"hydrate"===n.modifier?ze=[]:(ze=[n.trigger.targetSlot?.slot??null],0!==n.trigger.targetSlotViewSteps&&ze.push(n.trigger.targetSlotViewSteps));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${n.trigger.kind}`)}Lo.replace(n,Pj(n.trigger.kind,ze,n.modifier,n.sourceSpan));break;case sn.ProjectionDef:Lo.replace(n,Rj(n.def));break;case sn.Projection:if(null===n.handle.slot)throw new Error("No slot was assigned for project instruction");let dt=null,Kt=null,Vn=null;if(null!==n.fallbackView){if(!(o instanceof hf))throw new Error("AssertionError: must be compiling a component");const Qo=o.job.views.get(n.fallbackView);if(void 0===Qo)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(null===Qo.fnName||null===Qo.decls||null===Qo.vars)throw new Error("AssertionError: expected projection fallback view to have been named and counted");dt=Qo.fnName,Kt=Qo.decls,Vn=Qo.vars}Lo.replace(n,kj(n.handle.slot,n.projectionSlotIndex,n.attributes,dt,Kt,Vn,n.sourceSpan));break;case sn.ConditionalCreate:if(!(o instanceof hf))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(n.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");const ci=o.job.views.get(n.xref);Lo.replace(n,Fj(n.handle.slot,zs(ci.fnName),ci.decls,ci.vars,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case sn.ConditionalBranchCreate:if(!(o instanceof hf))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(n.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");const Vi=o.job.views.get(n.xref);Lo.replace(n,Nj(n.handle.slot,zs(Vi.fnName),Vi.decls,Vi.vars,n.tag,n.attributes,n.localRefs,n.startSourceSpan));break;case sn.RepeaterCreate:if(null===n.handle.slot)throw new Error("No slot was assigned for repeater instruction");if(!(o instanceof hf))throw new Error("AssertionError: must be compiling a component");const Di=o.job.views.get(n.xref);if(null===Di.fnName)throw new Error("AssertionError: expected repeater primary view to have been named");let Eo=null,uo=null,Jo=null;if(null!==n.emptyView){const Qo=o.job.views.get(n.emptyView);if(void 0===Qo)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(null===Qo.fnName||null===Qo.decls||null===Qo.vars)throw new Error("AssertionError: expected repeater empty view to have been named and counted");Eo=Qo.fnName,uo=Qo.decls,Jo=Qo.vars}Lo.replace(n,Lj(n.handle.slot,Di.fnName,n.decls,n.vars,n.tag,n.attributes,M4(o,n),n.usesComponentInstance,Eo,uo,Jo,n.emptyTag,n.emptyAttributes,n.wholeSourceSpan));break;case sn.SourceLocation:const es=hr(n.locations.map(({targetSlot:Qo,offset:Ts,line:_a,column:wa})=>{if(null===Qo.slot)throw new Error("No slot was assigned for source location");return hr([Ei(Qo.slot),Ei(Ts),Ei(_a),Ei(wa)])}));Lo.replace(n,C4(n.templatePath,es));break;case sn.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${sn[n.kind]}`)}}function kR(o,t){for(const n of t)switch(Bl(n,EN,Kr.None),n.kind){case sn.Advance:Lo.replace(n,Ej(n.delta,n.sourceSpan));break;case sn.Property:Lo.replace(n,o.job.mode===xh.DomOnly&&n.bindingKind!==Fs.LegacyAnimation&&n.bindingKind!==Fs.Animation?xN(n):I4(n));break;case sn.TwoWayProperty:Lo.replace(n,Yj(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case sn.StyleProp:Lo.replace(n,Qj(n.name,n.expression,n.unit,n.sourceSpan));break;case sn.ClassProp:Lo.replace(n,Zj(n.name,n.expression,n.sourceSpan));break;case sn.StyleMap:Lo.replace(n,Jj(n.expression,n.sourceSpan));break;case sn.ClassMap:Lo.replace(n,qj(n.expression,n.sourceSpan));break;case sn.I18nExpression:Lo.replace(n,u4(n.expression,n.sourceSpan));break;case sn.I18nApply:Lo.replace(n,h4(n.handle.slot,n.sourceSpan));break;case sn.InterpolateText:Lo.replace(n,d4(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case sn.Attribute:Lo.replace(n,vN(n.name,n.expression,n.sanitizer,n.namespace,n.sourceSpan));break;case sn.DomProperty:if(n.expression instanceof Cl)throw new Error("not yet handled");Lo.replace(n,n.bindingKind===Fs.LegacyAnimation||n.bindingKind===Fs.Animation?_4(n.name,n.expression,n.sourceSpan):xN(n));break;case sn.Variable:if(null===n.variable.name)throw new Error(`AssertionError: unnamed variable ${n.xref}`);Lo.replace(n,pp(new al(n.variable.name,n.initializer,void 0,el.Final)));break;case sn.Conditional:if(null===n.processed)throw new Error("Conditional test was not set.");Lo.replace(n,y4(n.processed,n.contextValue,n.sourceSpan));break;case sn.Repeater:Lo.replace(n,Vj(n.collection,n.sourceSpan));break;case sn.DeferWhen:Lo.replace(n,Hj(n.modifier,n.expr,n.sourceSpan));break;case sn.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${n.declaredName}`);case sn.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${sn[n.kind]}`)}}function bN(o){return o.startsWith("aria")&&o.length>4}function xN(o){return bN(o.name)?vN(function A4(o){return"-"!==o.charAt(4)?"aria-"+o.slice(4).toLowerCase():o}(o.name),o.expression,null,null,o.sourceSpan):function p4(o,t,n,s){return PR(oi.domProperty,o,t,n,s)}(S4.get(o.name)??o.name,o.expression,o.sanitizer,o.sourceSpan)}function I4(o){return bN(o.name)?function Kj(o,t,n){return PR(oi.ariaProperty,o,t,null,n)}(o.name,o.expression,o.sourceSpan):function Xj(o,t,n,s){return PR(oi.property,o,t,n,s)}(o.name,o.expression,o.sanitizer,o.sourceSpan)}function EN(o){if(!cf(o))return o;switch(o.kind){case Gs.NextContext:return function wj(o){return ns(oi.nextContext).callFn(1===o?[]:[Ei(o)])}(o.steps);case Gs.Reference:return function Oj(o){return ns(oi.reference).callFn([Ei(o)])}(o.targetSlot.slot+1+o.offset);case Gs.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${o.name}`);case Gs.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case Gs.RestoreView:if("number"==typeof o.view)throw new Error("AssertionError: unresolved RestoreView");return function Dj(o){return ns(oi.restoreView).callFn([o])}(o.view);case Gs.ResetView:return function Tj(o){return ns(oi.resetView).callFn([o])}(o.expr);case Gs.GetCurrentView:return function Sj(){return ns(oi.getCurrentView).callFn([])}();case Gs.ReadVariable:if(null===o.name)throw new Error(`Read of unnamed variable ${o.xref}`);return zs(o.name);case Gs.ReadTemporaryExpr:if(null===o.name)throw new Error(`Read of unnamed temporary ${o.xref}`);return zs(o.name);case Gs.AssignTemporaryExpr:if(null===o.name)throw new Error(`Assign of unnamed temporary ${o.xref}`);return zs(o.name).set(o.expr);case Gs.PureFunctionExpr:if(null===o.fn)throw new Error("AssertionError: expected PureFunctions to have been extracted");return function v4(o,t,n){return RR(E4,[Ei(o),t],n,[],null)}(o.varOffset,o.fn,o.args);case Gs.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case Gs.PipeBinding:return function l4(o,t,n){if(n.length<1||n.length>CN.length)throw new Error("pipeBind() argument count out of bounds");return ns(CN[n.length-1]).callFn([Ei(o),Ei(t),...n])}(o.targetSlot.slot,o.varOffset,o.args);case Gs.PipeBindingVariadic:return function c4(o,t,n){return ns(oi.pipeBindV).callFn([Ei(o),Ei(t),n])}(o.targetSlot.slot,o.varOffset,o.args);case Gs.SlotLiteralExpr:return Ei(o.slot.slot);case Gs.ContextLetReference:return function jj(o){return ns(oi.readContextLet).callFn([Ei(o)])}(o.targetSlot.slot);case Gs.StoreLet:return function Uj(o,t){return ns(oi.storeLet).callFn([o],t)}(o.value,o.sourceSpan);case Gs.TrackContext:return zs("this");default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${Gs[o.kind]}`)}}function LM(o,t,n,s){kR(o,n);const r=[];for(const E of n){if(E.kind!==sn.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${sn[E.kind]}`);r.push(E.statement)}const l=[];return s&&l.push(new Nn("$event")),fm(l,r,void 0,void 0,t)}function M4(o,t){if(null!==t.trackByFn)return t.trackByFn;const n=[new Nn("$index"),new Nn("$item")];let s;if(null===t.trackByOps)s=t.usesComponentInstance?fm(n,[new Ec(t.track)]):Na(n,t.track);else{kR(o,t.trackByOps);const r=[];for(const l of t.trackByOps){if(l.kind!==sn.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${sn[l.kind]}`);r.push(l.statement)}s=!t.usesComponentInstance&&1===r.length&&r[0]instanceof Ec?Na(n,r[0].value):fm(n,r)}return t.trackByFn=o.job.pool.getSharedFunctionReference(s,"_forTrack"),t.trackByFn}function VM(o,t){const n=new Map;n.set(o.xref,zs("ctx"));for(const s of t)switch(s.kind){case sn.Variable:s.variable.kind===Oc.Context&&n.set(s.variable.view,new df(s.xref));break;case sn.Animation:case sn.AnimationListener:case sn.Listener:case sn.TwoWayListener:VM(o,s.handlerOps);break;case sn.RepeaterCreate:null!==s.trackByOps&&VM(o,s.trackByOps)}o===o.job.root&&n.set(o.xref,zs("ctx"));for(const s of t)Bl(s,r=>{if(r instanceof Cm){if(!n.has(r.view))throw new Error(`No context found for reference to view ${r.view} from view ${o.xref}`);return n.get(r.view)}return r},Kr.None)}function ON(o){for(const t of o)(t.kind===sn.Listener||t.kind===sn.TwoWayListener||t.kind===sn.AnimationListener)&&Bl(t,n=>n instanceof jc&&"$event"===n.name?((t.kind===sn.Listener||t.kind===sn.AnimationListener)&&(t.consumesDollarEvent=!0),new ld(n.name)):n,Kr.InChildOperation)}function gf(o,t,n,s,r){let l=null,E=new Map;for(const N of t.create)switch(N.kind){case sn.I18nStart:if(!N.context)throw Error("Could not find i18n context for i18n op");l={i18nBlock:N,i18nContext:n.get(N.context)};break;case sn.I18nEnd:l=null;break;case sn.ElementStart:if(void 0!==N.i18nPlaceholder){if(null===l)throw Error("i18n tag placeholder should only occur inside an i18n block");wN(N,l.i18nContext,l.i18nBlock,r),r&&N.i18nPlaceholder.closeName&&E.set(N.xref,r),r=void 0}break;case sn.ElementEnd:const ae=s.get(N.xref);if(ae&&void 0!==ae.i18nPlaceholder){if(null===l)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");SN(ae,l.i18nContext,l.i18nBlock,E.get(N.xref)),E.delete(N.xref)}break;case sn.Projection:if(void 0!==N.i18nPlaceholder){if(null===l)throw Error("i18n tag placeholder should only occur inside an i18n block");wN(N,l.i18nContext,l.i18nBlock,r),SN(N,l.i18nContext,l.i18nBlock,r),r=void 0}if(null!==N.fallbackView){const Vn=o.views.get(N.fallbackView);if(void 0===N.fallbackViewI18nPlaceholder)gf(o,Vn,n,s);else{if(null===l)throw Error("i18n tag placeholder should only occur inside an i18n block");HM(o,Vn,N.handle.slot,N.fallbackViewI18nPlaceholder,l.i18nContext,l.i18nBlock,r),gf(o,Vn,n,s),$M(o,Vn,N.handle.slot,N.fallbackViewI18nPlaceholder,l.i18nContext,l.i18nBlock,r),r=void 0}}break;case sn.ConditionalCreate:case sn.ConditionalBranchCreate:case sn.Template:const ze=o.views.get(N.xref);if(void 0===N.i18nPlaceholder)gf(o,ze,n,s);else{if(null===l)throw Error("i18n tag placeholder should only occur inside an i18n block");N.templateKind===Tu.Structural?gf(o,ze,n,s,N):(HM(o,ze,N.handle.slot,N.i18nPlaceholder,l.i18nContext,l.i18nBlock,r),gf(o,ze,n,s),$M(o,ze,N.handle.slot,N.i18nPlaceholder,l.i18nContext,l.i18nBlock,r),r=void 0)}break;case sn.RepeaterCreate:if(void 0!==r)throw Error("AssertionError: Unexpected structural directive associated with @for block");const dt=N.handle.slot+1,Kt=o.views.get(N.xref);if(void 0===N.i18nPlaceholder)gf(o,Kt,n,s);else{if(null===l)throw Error("i18n tag placeholder should only occur inside an i18n block");HM(o,Kt,dt,N.i18nPlaceholder,l.i18nContext,l.i18nBlock,r),gf(o,Kt,n,s),$M(o,Kt,dt,N.i18nPlaceholder,l.i18nContext,l.i18nBlock,r),r=void 0}if(null!==N.emptyView){const Vn=N.handle.slot+2,ci=o.views.get(N.emptyView);if(void 0===N.emptyI18nPlaceholder)gf(o,ci,n,s);else{if(null===l)throw Error("i18n tag placeholder should only occur inside an i18n block");HM(o,ci,Vn,N.emptyI18nPlaceholder,l.i18nContext,l.i18nBlock,r),gf(o,ci,n,s),$M(o,ci,Vn,N.emptyI18nPlaceholder,l.i18nContext,l.i18nBlock,r),r=void 0}}}}function wN(o,t,n,s){const{startName:r,closeName:l}=o.i18nPlaceholder;let E=ma.ElementTag|ma.OpenTag,N=o.handle.slot;void 0!==s&&(E|=ma.TemplateTag,N={element:N,template:s.handle.slot}),l||(E|=ma.CloseTag),W0(t.params,r,N,n.subTemplateIndex,E)}function SN(o,t,n,s){const{closeName:r}=o.i18nPlaceholder;if(r){let l=ma.ElementTag|ma.CloseTag,E=o.handle.slot;void 0!==s&&(l|=ma.TemplateTag,E={element:E,template:s.handle.slot}),W0(t.params,r,E,n.subTemplateIndex,l)}}function HM(o,t,n,s,r,l,E){let{startName:N,closeName:ae}=s,ze=ma.TemplateTag|ma.OpenTag;ae||(ze|=ma.CloseTag),void 0!==E&&W0(r.params,N,E.handle.slot,l.subTemplateIndex,ze),W0(r.params,N,n,DN(0,l,t),ze)}function $M(o,t,n,s,r,l,E){const{closeName:N}=s,ae=ma.TemplateTag|ma.CloseTag;N&&(W0(r.params,N,n,DN(0,l,t),ae),void 0!==E&&W0(r.params,N,E.handle.slot,l.subTemplateIndex,ae))}function DN(o,t,n){for(const s of n.create)if(s.kind===sn.I18nStart)return s.subTemplateIndex;return t.subTemplateIndex}function W0(o,t,n,s,r){const l=o.get(t)??[];l.push({value:n,subTemplateIndex:s,flags:r}),o.set(t,l)}function $4(o,t,n,s){if(null!==o.i18nPlaceholder){const r=n.get(o.context),l=o.resolutionTime===eD.Creation?r.params:r.postprocessingParams,E=l.get(o.i18nPlaceholder)||[];E.push(t),l.set(o.i18nPlaceholder,E)}null!==o.icuPlaceholder&&s.get(o.icuPlaceholder)?.expressionPlaceholders.push(t)}function UM(o,t,n){const s=new Map,r=new Map;for(const l of t)switch(l.kind){case sn.Variable:switch(l.variable.kind){case Oc.Identifier:if(l.variable.local){if(r.has(l.variable.identifier))continue;r.set(l.variable.identifier,l.xref)}else if(s.has(l.variable.identifier))continue;s.set(l.variable.identifier,l.xref);break;case Oc.Alias:if(s.has(l.variable.identifier))continue;s.set(l.variable.identifier,l.xref);break;case Oc.SavedView:n={view:l.variable.view,variable:l.xref}}break;case sn.Animation:case sn.AnimationListener:case sn.Listener:case sn.TwoWayListener:UM(o,l.handlerOps,n);break;case sn.RepeaterCreate:null!==l.trackByOps&&UM(o,l.trackByOps,n)}for(const l of t)l.kind==sn.Listener||l.kind===sn.TwoWayListener||l.kind===sn.Animation||l.kind===sn.AnimationListener||Bl(l,E=>{if(E instanceof jc)return r.has(E.name)?new df(r.get(E.name)):s.has(E.name)?new df(s.get(E.name)):new us(new Cm(o.job.root.xref),E.name);if(E instanceof oD&&"number"==typeof E.view){if(null===n||n.view!==E.view)throw new Error(`AssertionError: no saved view ${E.view} from view ${o.xref}`);return E.view=new df(n.variable),E}return E},Kr.None);for(const l of t)wc(l,E=>{if(E instanceof jc)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${E.name}`)})}const j4=new Map([[la.HTML,oi.sanitizeHtml],[la.RESOURCE_URL,oi.sanitizeResourceUrl],[la.SCRIPT,oi.sanitizeScript],[la.STYLE,oi.sanitizeStyle],[la.URL,oi.sanitizeUrl]]),G4=new Map([[la.HTML,oi.trustConstantHtml],[la.RESOURCE_URL,oi.trustConstantResourceUrl]]);function z4(o){return o.kind===sn.ElementStart&&"iframe"===o.tag?.toLowerCase()}function TN(o){if(Array.isArray(o)){if(o.length>1)throw Error("AssertionError: Ambiguous security context");return o[0]||la.NONE}return o}function X4(o,t){t.handlerOps.prepend([tv(o.job.allocateXrefId(),{kind:Oc.Context,name:null,view:o.xref},new oD(o.xref),up.None)]);for(const n of t.handlerOps)n.kind===sn.Statement&&n.statement instanceof Ec&&(n.statement.value=new bM(n.statement.value))}function Z4(o){let t=!1;return Is(o,n=>((n instanceof yy||n instanceof sD)&&(t=!0),n),Kr.None),t}function q4(o,t){o.lhs instanceof No&&o.lhs.expr instanceof ao&&t.add(o.lhs)}function eG(o,t){o.lhs instanceof No&&(AN(o.lhs.expr)||o.lhs.expr instanceof ct)&&t.add(o.lhs),o.rhs instanceof No&&(AN(o.rhs.expr)||o.rhs.expr instanceof ct)&&t.add(o.rhs)}function tG(o,t){o.lhs instanceof No&&o.lhs.expr instanceof jo&&o.lhs.expr.operator===Uo.NullishCoalesce&&t.add(o.lhs)}function AN(o){return o instanceof jo&&(o.operator===Uo.And||o.operator===Uo.Or)}function jM(o){let t=0,n=[];for(const s of o){const r=new Map;wc(s,(ze,dt)=>{dt&Kr.InChildOperation||ze instanceof iv&&r.set(ze.xref,ze)});let l=0;const E=new Set,N=new Set,ae=new Map;wc(s,(ze,dt)=>{dt&Kr.InChildOperation||(ze instanceof uf?(E.has(ze.xref)||(E.add(ze.xref),ae.set(ze.xref,`tmp_${t}_${l++}`)),IN(ae,ze)):ze instanceof iv&&(r.get(ze.xref)===ze&&(N.add(ze.xref),l--),IN(ae,ze)))}),n.push(...Array.from(new Set(ae.values())).map(ze=>pp(new al(ze)))),t++,s.kind===sn.Listener||s.kind===sn.Animation||s.kind===sn.AnimationListener||s.kind===sn.TwoWayListener?s.handlerOps.prepend(jM(s.handlerOps)):s.kind===sn.RepeaterCreate&&null!==s.trackByOps&&s.trackByOps.prepend(jM(s.trackByOps))}return n}function IN(o,t){const n=o.get(t.xref);if(void 0===n)throw new Error(`Found xref with unassigned name: ${t.xref}`);t.name=n}function sG(o,t){if(!(t instanceof ml)||0===t.args.length||t.args.length>2||!(t.receiver instanceof us&&t.receiver.receiver instanceof Cm)||t.receiver.receiver.view!==o)return!1;const[n,s]=t.args;return n instanceof ld&&"$index"===n.name&&(1===t.args.length||!(!(s instanceof ld)||"$item"!==s.name))}function cG(o){let t;switch(o.kind){case sn.Attribute:return t=1,o.expression instanceof Cl&&!function dG(o){return!(1!==o.expressions.length||2!==o.strings.length||""!==o.strings[0]||""!==o.strings[1])}(o.expression)&&(t+=o.expression.expressions.length),t;case sn.Property:case sn.DomProperty:return t=1,o.expression instanceof Cl&&(t+=o.expression.expressions.length),t;case sn.TwoWayProperty:return 1;case sn.StyleProp:case sn.ClassProp:case sn.StyleMap:case sn.ClassMap:return t=2,o.expression instanceof Cl&&(t+=o.expression.expressions.length),t;case sn.InterpolateText:return o.interpolation.expressions.length;case sn.I18nExpression:case sn.Conditional:case sn.DeferWhen:case sn.StoreLet:return 1;case sn.RepeaterCreate:return o.emptyView?1:0;default:throw new Error(`Unhandled op: ${sn[o.kind]}`)}}function MN(o){switch(o.kind){case Gs.PureFunctionExpr:case Gs.PipeBinding:return 1+o.args.length;case Gs.PipeBindingVariadic:return 1+o.numArgs;case Gs.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${o.constructor.name}`)}}var tc=function(o){return o[o.None=0]="None",o[o.ViewContextRead=1]="ViewContextRead",o[o.ViewContextWrite=2]="ViewContextWrite",o[o.SideEffectful=4]="SideEffectful",o}(tc||{});function GM(o){const t=new Map;for(const n of o)n.kind===sn.Variable&&n.flags&up.AlwaysInline&&(wc(n,s=>{if(cf(s)&&BR(s)!==tc.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),t.set(n.xref,n)),Bl(n,s=>s instanceof df&&t.has(s.xref)?t.get(s.xref).initializer.clone():s,Kr.None);for(const n of t.values())Lo.remove(n)}function WM(o,t){const n=new Map,s=new Map,r=new Set,l=new Map;for(const ze of o){if(ze.kind===sn.Variable){if(n.has(ze.xref)||s.has(ze.xref))throw new Error(`Should not see two declarations of the same variable: ${ze.xref}`);n.set(ze.xref,ze),s.set(ze.xref,0)}l.set(ze,hG(ze)),pG(ze,s,r)}let E=!1;for(const ze of o.reversed()){const dt=l.get(ze);if(ze.kind!==sn.Variable||0!==s.get(ze.xref))dt.fences&tc.ViewContextRead&&(E=!0);else{if(E&&dt.fences&tc.ViewContextWrite||dt.fences&tc.SideEffectful){const Kt=pp(ze.initializer.toStmt());l.set(Kt,dt),Lo.replace(ze,Kt)}else gG(ze,s),Lo.remove(ze);l.delete(ze),n.delete(ze.xref),s.delete(ze.xref)}}const N=[];for(const[ze,dt]of s){const Vn=!!(n.get(ze).flags&up.AlwaysInline);1!==dt||Vn||r.has(ze)||N.push(ze)}let ae;for(;ae=N.pop();){const ze=n.get(ae),dt=l.get(ze);if(ze.flags&up.AlwaysInline)throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let Vn=ze.next;Vn.kind!==sn.ListEnd;Vn=Vn.next){const ci=l.get(Vn);if(ci.variablesUsed.has(ae)){if(t===yh.TemplateDefinitionBuilder&&!mG(ze,Vn))break;if(fG(ae,ze.initializer,Vn,dt.fences)){ci.variablesUsed.delete(ae);for(const Vi of dt.variablesUsed)ci.variablesUsed.add(Vi);ci.fences|=dt.fences,n.delete(ae),s.delete(ae),l.delete(ze),Lo.remove(ze)}break}if(!PN(ci.fences,dt.fences))break}}}function BR(o){switch(o.kind){case Gs.NextContext:return tc.ViewContextRead|tc.ViewContextWrite;case Gs.RestoreView:return tc.ViewContextRead|tc.ViewContextWrite|tc.SideEffectful;case Gs.StoreLet:return tc.SideEffectful;case Gs.Reference:case Gs.ContextLetReference:return tc.ViewContextRead;default:return tc.None}}function hG(o){let t=tc.None;const n=new Set;return wc(o,s=>{cf(s)&&(s.kind===Gs.ReadVariable?n.add(s.xref):t|=BR(s))}),{fences:t,variablesUsed:n}}function pG(o,t,n){wc(o,(s,r)=>{if(!cf(s)||s.kind!==Gs.ReadVariable)return;const l=t.get(s.xref);void 0!==l&&(t.set(s.xref,l+1),r&Kr.InChildOperation&&n.add(s.xref))})}function gG(o,t){wc(o,n=>{if(!cf(n)||n.kind!==Gs.ReadVariable)return;const s=t.get(n.xref);if(void 0!==s){if(0===s)throw new Error(`Inaccurate variable count: ${n.xref} - found another read but count is already 0`);t.set(n.xref,s-1)}})}function PN(o,t){if(o&tc.ViewContextWrite){if(t&tc.ViewContextRead)return!1}else if(o&tc.ViewContextRead&&t&tc.ViewContextWrite)return!1;return!0}function fG(o,t,n,s){let r=!1,l=!0;return Bl(n,(E,N)=>{if(!cf(E)||r||!l)return E;if(N&Kr.InChildOperation&&s&tc.ViewContextRead)return E;if(E.kind===Gs.ReadVariable){if(E.xref===o)return r=!0,t}else{const ae=BR(E);l=l&&PN(ae,s)}return E},Kr.None),r}function mG(o,t){switch(o.variable.kind){case Oc.Identifier:return o.initializer instanceof ld&&"ctx"===o.initializer.name;case Oc.Context:return t.kind===sn.Variable;default:return!0}}const vG=[{kind:ys.Tmpl,fn:function X3(o){for(const t of o.units){const n=yR(t);for(const s of t.ops())if(s.kind===sn.Binding){const r=Q3(n,s.target);Y3(s.name)&&r.kind===sn.Projection&&Lo.remove(s)}}}},{kind:ys.Host,fn:function Q$(o){for(const t of o.root.update)if(t.kind===sn.Binding&&t.bindingKind===Fs.Property)if(t.name.endsWith("!important")&&(t.name=t.name.substring(0,t.name.length-10)),t.name.startsWith("style.")){t.bindingKind=Fs.StyleProperty,t.name=t.name.substring(6),Z$(t.name)||(t.name=J$(t.name));const{property:n,suffix:s}=xR(t.name);t.name=n,t.unit=s}else t.name.startsWith("style!")?(t.bindingKind=Fs.StyleProperty,t.name="style"):(t.name.startsWith("class.")||t.name.startsWith("class!"))&&(t.bindingKind=Fs.ClassName,t.name=xR(t.name.substring(6)).property)}},{kind:ys.Tmpl,fn:function M3(o){for(const t of o.units){let n=ud.HTML;for(const s of t.create)s.kind===sn.ElementStart&&s.namespace!==n&&(Lo.insertBefore(kH(s.namespace),s),n=s.namespace)}}},{kind:ys.Tmpl,fn:function tj(o){fN(o.root,0)}},{kind:ys.Tmpl,fn:function _G(o){for(const t of o.units){let n=null,s=null;for(const r of t.create)switch(r.kind){case sn.I18nStart:n=r;break;case sn.I18nEnd:n=null;break;case sn.IcuStart:null===n&&(s=o.allocateXrefId(),Lo.insertBefore(OM(s,r.message,void 0,null),r));break;case sn.IcuEnd:null!==s&&(Lo.insertAfter(wM(s,null),r),s=null)}}}},{kind:ys.Both,fn:function _$(o){const t=new Map;for(const n of o.units)for(const s of n.update.reversed())if(s.kind===sn.Binding&&s.isTextAttribute){const r=t.get(s.target)||new Set;r.has(s.name)&&o.compatibility===yh.TemplateDefinitionBuilder&&("style"===s.name||"class"===s.name)&&Lo.remove(s),r.add(s.name),t.set(s.target,r)}}},{kind:ys.Both,fn:function nG(o){for(const t of o.units)for(const n of t.update)if(n.kind===sn.Binding)switch(n.bindingKind){case Fs.ClassName:if(n.expression instanceof Cl)throw new Error("Unexpected interpolation in ClassName binding");Lo.replace(n,_H(n.target,n.name,n.expression,n.sourceSpan));break;case Fs.StyleProperty:Lo.replace(n,mH(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case Fs.Property:case Fs.Template:"style"===n.name?Lo.replace(n,vH(n.target,n.expression,n.sourceSpan)):"class"===n.name&&Lo.replace(n,CH(n.target,n.expression,n.sourceSpan))}}},{kind:ys.Both,fn:function t$(o){const t=new Map;for(const n of o.units)for(const s of n.create)ym(s)&&t.set(s.xref,s);for(const n of o.units)for(const s of n.ops())if(s.kind===sn.Binding)switch(s.bindingKind){case Fs.Attribute:if("ngNonBindable"===s.name)Lo.remove(s),e$(t,s.target).nonBindable=!0;else if(s.name.startsWith("animate."))Lo.replace(s,nF(s.name,s.target,"animate.enter"===s.name?"enter":"leave",s.expression,s.securityContext,s.sourceSpan,0));else{const[r,l]=sg(s.name);Lo.replace(s,yH(s.target,r,l,s.expression,s.securityContext,s.isTextAttribute,s.isStructuralTemplateAttribute,s.templateKind,s.i18nMessage,s.sourceSpan))}break;case Fs.Animation:Lo.replace(s,nF(s.name,s.target,"animate.enter"===s.name?"enter":"leave",s.expression,s.securityContext,s.sourceSpan,1));break;case Fs.Property:case Fs.LegacyAnimation:Lo.replace(s,o.kind===ys.Host?GH(s.name,s.expression,s.bindingKind,s.i18nContext,s.securityContext,s.sourceSpan):gH(s.target,s.name,s.expression,s.bindingKind,s.securityContext,s.isStructuralTemplateAttribute,s.templateKind,s.i18nContext,s.i18nMessage,s.sourceSpan));break;case Fs.TwoWayProperty:if(!(s.expression instanceof Jr))throw new Error(`Expected value of two-way property binding "${s.name}" to be an expression`);Lo.replace(s,fH(s.target,s.name,s.expression,s.securityContext,s.isStructuralTemplateAttribute,s.templateKind,s.i18nContext,s.i18nMessage,s.sourceSpan));break;case Fs.I18n:case Fs.ClassName:case Fs.StyleProperty:throw new Error(`Unhandled binding of kind ${Fs[s.bindingKind]}`)}}},{kind:ys.Both,fn:function p$(o){const t=new Map;for(const n of o.units)for(const s of n.create)ym(s)&&t.set(s.xref,s);for(const n of o.units)for(const s of n.ops())if(s.kind===sn.AnimationBinding){const r=g$(s);o.kind===ys.Host?n.create.push(r):Lo.insertAfter(r,h$(t,s.target)),Lo.remove(s)}}},{kind:ys.Both,fn:function JH(o){for(const t of o.units){const n=yR(t);for(const s of t.ops())switch(s.kind){case sn.Attribute:qH(t,s,n);break;case sn.Property:if(s.bindingKind!==Fs.LegacyAnimation&&s.bindingKind!==Fs.Animation){let r;r=null!==s.i18nMessage&&null===s.templateKind?Fs.I18n:s.isStructuralTemplateAttribute?Fs.Template:Fs.Property,Lo.insertBefore(gp(s.target,r,null,s.name,null,null,null,s.securityContext),P0(n,s.target))}break;case sn.TwoWayProperty:Lo.insertBefore(gp(s.target,Fs.TwoWayProperty,null,s.name,null,null,null,s.securityContext),P0(n,s.target));break;case sn.StyleProp:case sn.ClassProp:t.job.compatibility===yh.TemplateDefinitionBuilder&&s.expression instanceof I0&&Lo.insertBefore(gp(s.target,Fs.Property,null,s.name,null,null,null,la.STYLE),P0(n,s.target));break;case sn.Listener:if(!s.isLegacyAnimationListener){const r=gp(s.target,Fs.Property,null,s.name,null,null,null,la.NONE);if(o.kind===ys.Host){if(o.compatibility)break;t.create.push(r)}else Lo.insertBefore(r,P0(n,s.target))}break;case sn.TwoWayListener:if(o.kind!==ys.Host){const r=gp(s.target,Fs.Property,null,s.name,null,null,null,la.NONE);Lo.insertBefore(r,P0(n,s.target))}}}}},{kind:ys.Tmpl,fn:function m$(o){const t=new Map;for(const r of o.units)for(const l of r.ops())switch(l.kind){case sn.Binding:case sn.Property:case sn.Attribute:case sn.ExtractedAttribute:if(null===l.i18nMessage)continue;if(!t.has(l.i18nMessage)){const E=vR(_y.Attr,o.allocateXrefId(),null,l.i18nMessage,null);r.create.push(E),t.set(l.i18nMessage,E.xref)}l.i18nContext=t.get(l.i18nMessage)}const n=new Map;for(const r of o.units)for(const l of r.create)if(l.kind===sn.I18nStart&&l.xref===l.root){const E=vR(_y.RootI18n,o.allocateXrefId(),l.xref,l.message,null);r.create.push(E),l.context=E.xref,n.set(l.xref,E)}for(const r of o.units)for(const l of r.create)if(l.kind===sn.I18nStart&&l.xref!==l.root){const E=n.get(l.root);if(void 0===E)throw Error("AssertionError: Root i18n block i18n context should have been created.");l.context=E.xref,n.set(l.xref,E)}let s=null;for(const r of o.units)for(const l of r.create)switch(l.kind){case sn.I18nStart:s=l;break;case sn.I18nEnd:s=null;break;case sn.IcuStart:if(null===s)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(l.message.id!==s.message.id){const E=vR(_y.Icu,o.allocateXrefId(),s.root,l.message,null);r.create.push(E),l.context=E.xref}else l.context=s.context,n.get(s.xref).contextKind=_y.Icu}}},{kind:ys.Both,fn:function R3(o){const t=new Map;for(const n of o.units)for(const s of n.create)ym(s)&&t.set(s.xref,s);for(const n of o.units)for(const s of n.create)if(s.kind===sn.ExtractedAttribute&&s.bindingKind===Fs.Attribute&&oF(s.expression)){const r=t.get(s.target);if(void 0!==r&&(r.kind===sn.Template||r.kind===sn.ConditionalCreate||r.kind===sn.ConditionalBranchCreate)&&r.templateKind===Tu.Structural)continue;if("style"===s.name){const l=P3(s.expression.value);for(let E=0;E<l.length-1;E+=2)Lo.insertBefore(gp(s.target,Fs.StyleProperty,null,l[E],Ei(l[E+1]),null,null,la.STYLE),s);Lo.remove(s)}else if("class"===s.name){const l=s.expression.value.trim().split(/\s+/g);for(const E of l)Lo.insertBefore(gp(s.target,Fs.ClassName,null,E,null,null,null,la.NONE),s);Lo.remove(s)}}}},{kind:ys.Tmpl,fn:function P4(o){for(const t of o.units)for(const n of t.update)switch(n.kind){case sn.Attribute:case sn.Binding:case sn.ClassProp:case sn.ClassMap:case sn.Property:case sn.StyleProp:case sn.StyleMap:n.expression instanceof I0&&Lo.remove(n)}}},{kind:ys.Both,fn:function o$(o){for(const t of o.units)for(const n of t.update)(n.kind===sn.Attribute||n.kind===sn.StyleProp||n.kind==sn.StyleMap||n.kind===sn.ClassMap)&&n.expression instanceof Cl&&2===n.expression.strings.length&&n.expression.strings.every(r=>""===r)&&(n.expression=n.expression.expressions[0])}},{kind:ys.Both,fn:function K3(o){for(const t of o.units)pN(t.create,G3),pN(t.update,t.job.kind===ys.Host?z3:W3)}},{kind:ys.Tmpl,fn:function s$(o){for(const t of o.units)for(const n of t.ops()){if(n.kind!==sn.Conditional)continue;let s;const r=n.conditions.findIndex(N=>null===N.expr);if(r>=0){const N=n.conditions.splice(r,1)[0].targetSlot;s=new rD(N)}else s=Ei(-1);let l=null==n.test?null:new uf(n.test,o.allocateXrefId()),E=null;for(let N=n.conditions.length-1;N>=0;N--){let ae=n.conditions[N];if(null!==ae.expr){if(null!==l){const ze=0===N?l:new iv(l.xref);ae.expr=new jo(Uo.Identical,ze,ae.expr)}else null!==ae.alias&&(E??=o.allocateXrefId(),ae.expr=new uf(ae.expr,E),n.contextValue=new iv(E));s=new ct(ae.expr,new rD(ae.targetSlot),s)}}n.processed=s,n.conditions=[]}}},{kind:ys.Tmpl,fn:function Z3(o){for(const t of o.units)J3(t)}},{kind:ys.Tmpl,fn:function v$(o){for(const t of o.units)for(const n of t.create)n.kind===sn.Defer&&(null!==n.placeholderMinimumTime&&(n.placeholderConfig=new M0(R0([n.placeholderMinimumTime]))),(null!==n.loadingMinimumTime||null!==n.loadingAfterTime)&&(n.loadingConfig=new M0(R0([n.loadingMinimumTime,n.loadingAfterTime]))))}},{kind:ys.Tmpl,fn:function ej(o){for(const t of o.units)for(const n of t.update)Bl(n,s=>!(s instanceof yy)||s.args.length<=4?s:new sD(s.target,s.targetSlot,s.name,hr(s.args),s.args.length),Kr.None)}},{kind:ys.Both,fn:function sj(o){for(const t of o.units)for(const n of t.update)Bl(n,(s,r)=>r&Kr.InChildOperation?s:s instanceof Er?rj(s):s instanceof Rr?aj(s):s,Kr.None)}},{kind:ys.Tmpl,fn:function W$(o){const t=o.compatibility===yh.TemplateDefinitionBuilder,n=[];let s=0;for(const r of o.units)for(const l of r.create)l.kind===sn.Projection&&(n.push(l.selector),l.projectionSlotIndex=s++);if(n.length>0){let r=null;if(n.length>1||"*"!==n[0]){const l=n.map(E=>"*"===E?E:SS(E));r=o.pool.getConstLiteral(R0(l),t)}o.contentSelectors=o.pool.getConstLiteral(R0(n),t),o.root.create.prepend([BH(r)])}}},{kind:ys.Tmpl,fn:function G$(o){for(const t of o.units)for(const n of t.update){if(n.kind!==sn.StoreLet)continue;const s={kind:Oc.Identifier,name:null,identifier:n.declaredName,local:!0};Lo.replace(n,tv(o.allocateXrefId(),s,new w0(n.target,n.value,n.sourceSpan),up.None))}}},{kind:ys.Tmpl,fn:function z$(o){lD(o.root,null)}},{kind:ys.Tmpl,fn:function K4(o){for(const t of o.units){t.create.prepend([tv(t.job.allocateXrefId(),{kind:Oc.SavedView,name:null,view:t.xref},new yM,up.None)]);for(const n of t.create){if(n.kind!==sn.Listener&&n.kind!==sn.TwoWayListener&&n.kind!==sn.Animation&&n.kind!==sn.AnimationListener)continue;let s=t!==o.root;if(!s)for(const r of n.handlerOps)wc(r,l=>{(l instanceof nD||l instanceof S0)&&(s=!0)});s&&X4(t,n)}}}},{kind:ys.Both,fn:function zH(o){for(const t of o.units)for(const n of t.ops())Bl(n,KH,Kr.None)}},{kind:ys.Both,fn:function L4(o){for(const t of o.units)ON(t.create),ON(t.update)}},{kind:ys.Tmpl,fn:function rG(o){for(const t of o.units)for(const n of t.create)n.kind===sn.RepeaterCreate&&(n.track=Is(n.track,s=>{if(s instanceof jc){if(n.varNames.$index.has(s.name))return zs("$index");if(s.name===n.varNames.$implicit)return zs("$item")}return s},Kr.None))}},{kind:ys.Tmpl,fn:function k4(o){for(const t of o.units)for(const n of t.update){if(n.kind!==sn.Variable||n.variable.kind!==Oc.Identifier||!(n.initializer instanceof w0))continue;const s=n.variable.identifier;let r=n;for(;r&&r.kind!==sn.ListEnd;)Bl(r,l=>l instanceof jc&&l.name===s?Ei(void 0):l,Kr.None),r=r.prev}}},{kind:ys.Both,fn:function U4(o){for(const t of o.units)UM(t,t.create,null),UM(t,t.update,null)}},{kind:ys.Tmpl,fn:function C$(o){const t=new Map;function n(r){if(t.has(r.xref))return t.get(r.xref);const l=new y$;for(const E of r.create)if(ym(E)&&null!==E.localRefs){if(!Array.isArray(E.localRefs))throw new Error("LocalRefs were already processed, but were needed to resolve defer targets.");for(const N of E.localRefs)""===N.target&&l.targets.set(N.name,{xref:E.xref,slot:E.handle})}return t.set(r.xref,l),l}function s(r,l,E){switch(l.trigger.kind){case pa.Idle:case pa.Never:case pa.Immediate:case pa.Timer:return;case pa.Hover:case pa.Interaction:case pa.Viewport:if(null===l.trigger.targetName){if(null===E)throw new Error("defer on trigger with no target name must have a placeholder block");const ze=o.views.get(E);if(null==ze)throw new Error("AssertionError: could not find placeholder view for defer on trigger");for(const dt of ze.create)if(O0(dt)&&(ym(dt)||dt.kind===sn.Projection))return l.trigger.targetXref=dt.xref,l.trigger.targetView=E,l.trigger.targetSlotViewSteps=-1,void(l.trigger.targetSlot=dt.handle);return}let N=null!==E?o.views.get(E):r,ae=null!==E?-1:0;for(;null!==N;){const ze=n(N);if(ze.targets.has(l.trigger.targetName)){const{xref:dt,slot:Kt}=ze.targets.get(l.trigger.targetName);return l.trigger.targetXref=dt,l.trigger.targetView=N.xref,l.trigger.targetSlotViewSteps=ae,void(l.trigger.targetSlot=Kt)}N=null!==N.parent?o.views.get(N.parent):null,ae++}break;default:throw new Error(`Trigger kind ${l.trigger.kind} not handled`)}}for(const r of o.units){const l=new Map;for(const E of r.create)switch(E.kind){case sn.Defer:l.set(E.xref,E);break;case sn.DeferOn:const N=l.get(E.defer);s(r,E,"hydrate"===E.modifier?N.mainView:N.placeholderView)}}}},{kind:ys.Tmpl,fn:function aG(o){for(const t of o.units)for(const n of t.create)n.kind===sn.TwoWayListener&&Bl(n,s=>{if(!(s instanceof xM))return s;const{target:r,value:l}=s;if(r instanceof us||r instanceof zo)return _N(r,l).or(r.set(l));if(r instanceof df)return _N(r,l);throw new Error("Unsupported expression in two-way action binding.")},Kr.InChildOperation)}},{kind:ys.Tmpl,fn:function oG(o){for(const t of o.units)for(const n of t.create)if(n.kind===sn.RepeaterCreate)if(n.track instanceof ld&&"$index"===n.track.name)n.trackByFn=ns(oi.repeaterTrackByIndex);else if(n.track instanceof ld&&"$item"===n.track.name)n.trackByFn=ns(oi.repeaterTrackByIdentity);else if(sG(o.root.xref,n.track))n.usesComponentInstance=!0,n.track.receiver.receiver.view===t.xref?n.trackByFn=n.track.receiver:(n.trackByFn=ns(oi.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn);else{n.track=Is(n.track,r=>{if(r instanceof yy||r instanceof sD)throw new Error("Illegal State: Pipes are not allowed in this context");return r instanceof Cm?(n.usesComponentInstance=!0,new CM(r.view)):r},Kr.None);const s=new Lo;s.push(pp(new Ec(n.track,n.track.sourceSpan))),n.trackByOps=s}}},{kind:ys.Both,fn:function F4(o){for(const t of o.units)VM(t,t.create),VM(t,t.update)}},{kind:ys.Both,fn:function W4(o){for(const t of o.units){const n=yR(t);if(o.kind!==ys.Host)for(const s of t.create)if(s.kind===sn.ExtractedAttribute){const r=G4.get(TN(s.securityContext))??null;s.trustedValueFn=null!==r?ns(r):null}for(const s of t.update)switch(s.kind){case sn.Property:case sn.Attribute:case sn.DomProperty:let r=null;if(r=Array.isArray(s.securityContext)&&2===s.securityContext.length&&s.securityContext.indexOf(la.URL)>-1&&s.securityContext.indexOf(la.RESOURCE_URL)>-1?oi.sanitizeUrlOrResourceUrl:j4.get(TN(s.securityContext))??null,s.sanitizer=null!==r?ns(r):null,null===s.sanitizer){let l=!1;if(o.kind===ys.Host||s.kind===sn.DomProperty)l=!0;else{const E=n.get(s.target);if(void 0===E||!ym(E))throw Error("Property should have an element-like owner");l=z4(E)}l&&HU(s.name)&&(s.sanitizer=ns(oi.validateIframeAttribute))}}}}},{kind:ys.Tmpl,fn:function A3(o){for(const t of o.units)for(const n of t.create)switch(n.kind){case sn.ElementStart:case sn.ConditionalCreate:case sn.ConditionalBranchCreate:case sn.Template:if(!Array.isArray(n.localRefs))throw new Error("AssertionError: expected localRefs to be an array still");if(n.numSlotsUsed+=n.localRefs.length,n.localRefs.length>0){const s=I3(n.localRefs);n.localRefs=o.addConst(s)}else n.localRefs=null}}},{kind:ys.Both,fn:function O$(o){for(const t of o.units)for(const n of t.ops())Bl(n,s=>I$(s,{job:o}),Kr.None),Bl(n,M$,Kr.None)}},{kind:ys.Both,fn:function J4(o){const t=new Set;for(const n of o.units)for(const s of n.ops())wc(s,r=>{if(r instanceof jo)switch(r.operator){case Uo.Exponentiation:q4(r,t);break;case Uo.NullishCoalesce:eG(r,t);break;case Uo.And:case Uo.Or:tG(r,t)}});for(const n of o.units)for(const s of n.ops())Bl(s,r=>r instanceof No?t.has(r)?r:r.expr:r,Kr.None)}},{kind:ys.Both,fn:function iG(o){for(const t of o.units)t.create.prepend(jM(t.create)),t.update.prepend(jM(t.update))}},{kind:ys.Both,fn:function uG(o){for(const t of o.units){GM(t.create),GM(t.update);for(const n of t.create)n.kind===sn.Listener||n.kind===sn.Animation||n.kind===sn.AnimationListener||n.kind===sn.TwoWayListener?GM(n.handlerOps):n.kind===sn.RepeaterCreate&&null!==n.trackByOps&&GM(n.trackByOps);WM(t.create,o.compatibility),WM(t.update,o.compatibility);for(const n of t.create)n.kind===sn.Listener||n.kind===sn.Animation||n.kind===sn.AnimationListener||n.kind===sn.TwoWayListener?WM(n.handlerOps,o.compatibility):n.kind===sn.RepeaterCreate&&null!==n.trackByOps&&WM(n.trackByOps,o.compatibility)}}},{kind:ys.Both,fn:function Q4(o){const t=new Set,n=new Map;for(const s of o.units)for(const r of s.ops())r.kind===sn.DeclareLet&&n.set(r.xref,r),wc(r,l=>{l instanceof S0&&t.add(l.target)});for(const s of o.units)for(const r of s.update)Bl(r,l=>l instanceof w0&&!t.has(l.target)?(Z4(l)||Lo.remove(n.get(l.target)),l.value):l,Kr.None)}},{kind:ys.Tmpl,fn:function T3(o){for(const t of o.units){let n=null,s=null;const r=new Map,l=new Map,E=new Map;for(const N of t.create)switch(N.kind){case sn.I18nStart:if(null===N.context)throw Error("I18n op should have its context set.");n=N;break;case sn.I18nEnd:n=null;break;case sn.IcuStart:if(null===N.context)throw Error("Icu op should have its context set.");s=N;break;case sn.IcuEnd:s=null;break;case sn.Text:if(null!==n)if(r.set(N.xref,n),l.set(N.xref,s),null!==N.icuPlaceholder){const ae=UH(o.allocateXrefId(),N.icuPlaceholder,[N.initialValue]);Lo.replace(N,ae),E.set(N.xref,ae)}else Lo.remove(N)}for(const N of t.update)if(N.kind===sn.InterpolateText){if(!r.has(N.target))continue;const ae=r.get(N.target),ze=l.get(N.target),dt=E.get(N.target),Kt=ze?ze.context:ae.context,Vn=ze?eD.Postproccessing:eD.Creation,ci=[];for(let Vi=0;Vi<N.interpolation.expressions.length;Vi++){const Di=N.interpolation.expressions[Vi];ci.push(iF(Kt,ae.xref,ae.xref,ae.handle,Di,dt?.xref??null,N.interpolation.i18nPlaceholders[Vi]??null,Vn,x0.I18nText,"",Di.sourceSpan??N.sourceSpan))}Lo.replaceWithMany(N,ci),void 0!==dt&&(dt.strings=N.interpolation.strings)}}}},{kind:ys.Tmpl,fn:function f$(o){const t=new Map;for(const n of o.units){for(const s of n.create)s.kind===sn.I18nAttributes&&t.set(s.target,s);for(const s of n.update)switch(s.kind){case sn.Property:case sn.Attribute:if(null===s.i18nContext||!(s.expression instanceof Cl))continue;const r=t.get(s.target);if(void 0===r)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(r.target!==s.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");const l=[];for(let E=0;E<s.expression.expressions.length;E++){const N=s.expression.expressions[E];if(s.expression.i18nPlaceholders.length!==s.expression.expressions.length)throw new Error(`AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${s.expression.i18nPlaceholders.length} placeholders and ${s.expression.expressions.length} expressions`);l.push(iF(s.i18nContext,r.target,r.xref,r.handle,N,null,s.expression.i18nPlaceholders[E],eD.Creation,x0.I18nAttribute,s.name,s.sourceSpan))}Lo.replaceWithMany(s,l)}}}},{kind:ys.Tmpl,fn:function B4(o){for(const t of o.units){const n=new Set;for(const s of t.update)s.kind===sn.I18nExpression&&n.add(s.i18nOwner);for(const s of t.create)if(s.kind===sn.I18nAttributes){if(n.has(s.xref))continue;Lo.remove(s)}}}},{kind:ys.Tmpl,fn:function QH(o){for(const t of o.units){let n=t.update.head,s=[],r=null;for(const l of t.create){if(l.kind===sn.I18nStart)r={blockXref:l.xref,lastSlotConsumer:l.xref};else if(l.kind===sn.I18nEnd){for(const E of s)E.target=r.lastSlotConsumer,Lo.insertBefore(E,n);s.length=0,r=null}if(O0(l))for(null!==r&&(r.lastSlotConsumer=l.xref);null!==n.next;){if(null!==r&&n.kind===sn.I18nExpression&&n.usage===x0.I18nText&&n.i18nOwner===r.blockXref){const N=n;n=n.next,Lo.remove(N),s.push(N);continue}let E=!1;if(tD(n)&&n.target!==l.xref?E=!0:(n.kind===sn.Statement||n.kind===sn.Variable)&&wc(n,N=>{!E&&tD(N)&&N.target!==l.xref&&(E=!0)}),E)break;n=n.next}}}}},{kind:ys.Tmpl,fn:function XH(o){const t=new Map;for(const n of o.units)for(const s of n.create)s.kind===sn.I18nContext&&t.set(s.xref,s);for(const n of o.units)for(const s of n.update)s.kind===sn.I18nExpression&&YH(t,s)&&Lo.insertAfter(OH(s.i18nOwner,s.handle,null),s)}},{kind:ys.Tmpl,fn:function Y4(o){const t=new Map;for(const n of o.units){let s=0;for(const r of n.create)O0(r)&&(r.handle.slot=s,t.set(r.xref,r.handle.slot),s+=r.numSlotsUsed);n.decls=s}for(const n of o.units)for(const s of n.ops())if(s.kind===sn.Template||s.kind===sn.ConditionalCreate||s.kind===sn.ConditionalBranchCreate||s.kind===sn.RepeaterCreate){const r=o.views.get(s.xref);s.decls=r.decls}}},{kind:ys.Tmpl,fn:function V4(o){const t=new Map,n=new Map;for(const s of o.units)for(const r of s.create)switch(r.kind){case sn.I18nContext:t.set(r.xref,r);break;case sn.ElementStart:n.set(r.xref,r)}gf(o,o.root,t,n)}},{kind:ys.Tmpl,fn:function H4(o){const t=new Map,n=new Map,s=new Map;for(const E of o.units)for(const N of E.create)switch(N.kind){case sn.I18nStart:t.set(N.xref,N.subTemplateIndex);break;case sn.I18nContext:n.set(N.xref,N);break;case sn.IcuPlaceholder:s.set(N.xref,N)}const r=new Map,l=E=>E.usage===x0.I18nText?E.i18nOwner:E.context;for(const E of o.units)for(const N of E.update)if(N.kind===sn.I18nExpression){const ae=r.get(l(N))||0;$4(N,{value:ae,subTemplateIndex:t.get(N.i18nOwner)??null,flags:ma.ExpressionIndex},n,s),r.set(l(N),ae+1)}}},{kind:ys.Tmpl,fn:function V$(o){const t=new Map,n=new Map,s=new Map;for(const l of o.units)for(const E of l.create)switch(E.kind){case sn.I18nContext:const N=H$(o,E);l.create.push(N),t.set(E.xref,N),s.set(E.xref,E);break;case sn.I18nStart:n.set(E.xref,E)}let r=null;for(const l of o.units)for(const E of l.create)switch(E.kind){case sn.IcuStart:r=E,Lo.remove(E);const N=s.get(E.context);if(N.contextKind!==_y.Icu)continue;const ae=n.get(N.i18nBlock);if(ae.context===N.xref)continue;const ze=n.get(ae.root),dt=t.get(ze.context);if(void 0===dt)throw Error("AssertionError: ICU sub-message should belong to a root message.");const Kt=t.get(N.xref);Kt.messagePlaceholder=E.messagePlaceholder,dt.subMessages.push(Kt.xref);break;case sn.IcuEnd:r=null,Lo.remove(E);break;case sn.IcuPlaceholder:if(null===r||null==r.context)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");t.get(r.context).postprocessingParams.set(E.name,Ei($$(E))),Lo.remove(E)}}},{kind:ys.Tmpl,fn:function E3(o){const t=o.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",n=new Map,s=new Map,r=new Map,l=new Map;for(const ae of o.units)for(const ze of ae.ops())if(ze.kind===sn.ExtractedAttribute&&null!==ze.i18nContext){const dt=n.get(ze.i18nContext)??[];dt.push(ze),n.set(ze.i18nContext,dt)}else if(ze.kind===sn.I18nAttributes)s.set(ze.target,ze);else if(ze.kind===sn.I18nExpression&&ze.usage===x0.I18nAttribute){const dt=r.get(ze.target)??[];dt.push(ze),r.set(ze.target,dt)}else ze.kind===sn.I18nMessage&&l.set(ze.xref,ze);const E=new Map,N=new Map;for(const ae of o.units)for(const ze of ae.create)if(ze.kind===sn.I18nMessage){if(null===ze.messagePlaceholder){const{mainVar:dt,statements:Kt}=lN(o,t,l,ze);if(null!==ze.i18nBlock){const Vn=o.addConst(dt,Kt);N.set(ze.i18nBlock,Vn)}else{o.constsInitializers.push(...Kt),E.set(ze.i18nContext,dt);const Vn=n.get(ze.i18nContext);if(void 0!==Vn)for(const ci of Vn)ci.expression=dt.clone()}}Lo.remove(ze)}for(const ae of o.units)for(const ze of ae.create)if(ym(ze)){const dt=s.get(ze.xref);if(void 0===dt)continue;let Kt=r.get(ze.xref);if(void 0===Kt)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");const Vn=new Set;Kt=Kt.filter(Vi=>{const Di=Vn.has(Vi.name);return Vn.add(Vi.name),!Di});const ci=Kt.flatMap(Vi=>{const Di=E.get(Vi.context);if(void 0===Di)throw new Error("AssertionError: Could not find i18n expression's value");return[Ei(Vi.name),Di]});dt.i18nAttributesConfig=o.addConst(new Er(ci))}for(const ae of o.units)for(const ze of ae.create)if(ze.kind===sn.I18nStart){const dt=N.get(ze.root);if(void 0===dt)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");ze.messageIndex=dt}}},{kind:ys.Tmpl,fn:function X$(o){for(const t of o.units)for(const n of t.ops())Bl(n,s=>s instanceof M0?Ei(o.addConst(s.expr)):s,Kr.None)}},{kind:ys.Both,fn:function c$(o){const t=new Map;for(const n of o.units)for(const s of n.create)if(s.kind===sn.ExtractedAttribute){const r=t.get(s.target)||new d$(o.compatibility);t.set(s.target,r),r.add(s.bindingKind,s.name,s.expression,s.namespace,s.trustedValueFn),Lo.remove(s)}if(o instanceof CR)for(const n of o.units)for(const s of n.create)if(s.kind==sn.Projection){const r=t.get(s.xref);if(void 0!==r){const l=bR(r);l.entries.length>0&&(s.attributes=l)}}else ym(s)&&(s.attributes=yF(o,t,s.xref),s.kind===sn.RepeaterCreate&&null!==s.emptyView&&(s.emptyAttributes=yF(o,t,s.emptyView)));else if(o instanceof mF)for(const[n,s]of t.entries()){if(n!==o.root.xref)throw new Error("An attribute would be const collected into the host binding's template function, but is not associated with the root xref.");const r=bR(s);r.entries.length>0&&(o.root.attributes=r)}}},{kind:ys.Tmpl,fn:function R4(o){for(const t of o.units)for(const n of t.create)switch(n.kind){case sn.I18nContext:Lo.remove(n);break;case sn.I18nStart:n.context=null}}},{kind:ys.Both,fn:function lG(o){for(const t of o.units){let n=0;for(const s of t.ops())fR(s)&&(n+=cG(s));for(const s of t.ops())wc(s,r=>{cf(r)&&(o.compatibility===yh.TemplateDefinitionBuilder&&r instanceof nv||(eF(r)&&(r.varOffset=n),fR(r)&&(n+=MN(r))))});if(o.compatibility===yh.TemplateDefinitionBuilder)for(const s of t.ops())wc(s,r=>{!cf(r)||!(r instanceof nv)||(eF(r)&&(r.varOffset=n),fR(r)&&(n+=MN(r)))});t.vars=n}if(o instanceof CR)for(const t of o.units)for(const n of t.create){if(n.kind!==sn.Template&&n.kind!==sn.RepeaterCreate&&n.kind!==sn.ConditionalCreate&&n.kind!==sn.ConditionalBranchCreate)continue;const s=o.views.get(n.xref);n.vars=s.vars}}},{kind:ys.Tmpl,fn:function j$(o){for(const t of o.units){const n=new Map;for(const r of t.create)if(O0(r)){if(null===r.handle.slot)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls");n.set(r.xref,r.handle.slot)}let s=0;for(const r of t.update){let l=null;if(tD(r)?l=r:wc(r,N=>{null===l&&tD(N)&&(l=N)}),null===l)continue;if(!n.has(l.target))throw new Error(`AssertionError: reference to unknown slot for target ${l.target}`);const E=n.get(l.target);if(s!==E){const N=E-s;if(N<0)throw new Error("AssertionError: slot counter should never need to move backwards");Lo.insertBefore(bH(N,l.sourceSpan),r),s=E}}}}},{kind:ys.Both,fn:function k3(o){pD(o.root,o.componentName,{index:0},o.compatibility===yh.TemplateDefinitionBuilder)}},{kind:ys.Tmpl,fn:function N4(o){for(const t of o.units)for(const n of t.create)if(n.kind===sn.Defer){if(null!==n.resolverFn)continue;if(null!==n.ownResolverFn){if(null===n.handle.slot)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");const s=t.fnName?.replace("_Template","");n.resolverFn=o.pool.getSharedFunctionReference(n.ownResolverFn,`${s}_Defer_${n.handle.slot}_DepsFn`,!1)}}}},{kind:ys.Tmpl,fn:function N3(o){for(const t of o.units){for(const n of t.create)(n.kind===sn.Listener||n.kind===sn.Animation||n.kind===sn.AnimationListener||n.kind===sn.TwoWayListener)&&uN(n.handlerOps);uN(t.update)}}},{kind:ys.Tmpl,fn:function V3(o){for(const t of o.units){const n=new Set;for(const s of t.create)s.kind===sn.ElementStart&&"ng-container"===s.tag&&(s.kind=sn.ContainerStart,n.add(s.xref)),s.kind===sn.ElementEnd&&n.has(s.xref)&&(s.kind=sn.ContainerEnd)}}},{kind:ys.Tmpl,fn:function E$(o){for(const t of o.units)for(const n of t.create){const s=b$.get(n.kind);if(void 0===s)continue;const[r,l]=s;let E=n.prev;for(;null!==E&&x$.has(E.kind);)E=E.prev;null!==E&&E.kind===r&&(E.kind=l,Lo.remove(n))}}},{kind:ys.Tmpl,fn:function ZH(o){if(o.enableDebugLocations&&null!==o.relativeTemplatePath)for(const t of o.units){const n=[];for(const s of t.create)if(s.kind===sn.ElementStart||s.kind===sn.Element){const r=s.startSourceSpan.start;n.push({targetSlot:s.handle,offset:r.offset,line:r.line,column:r.col})}n.length>0&&t.create.push(jH(o.relativeTemplatePath,n))}}},{kind:ys.Tmpl,fn:function $3(o){const t=new Map;for(const n of o.units)for(const s of n.create)ym(s)&&t.set(s.xref,s);for(const n of o.units)for(const s of n.create)(s.kind===sn.ElementStart||s.kind===sn.ContainerStart)&&s.nonBindable&&Lo.insertAfter(IH(s.xref),s),(s.kind===sn.ElementEnd||s.kind===sn.ContainerEnd)&&H3(t,s.xref).nonBindable&&Lo.insertBefore(MH(s.xref),s)}},{kind:ys.Both,fn:function ij(o){for(const t of o.units)for(const n of t.ops())wc(n,s=>{if(!(s instanceof nv)||null===s.body)return;const r=new oj(s.args.length);s.fn=o.pool.getSharedConstant(r,s.body),s.body=null})}},{kind:ys.Both,fn:function D4(o){for(const t of o.units)T4(t,t.create),kR(t,t.update)}},{kind:ys.Both,fn:function i$(o){for(const t of o.units)vF(t.create),vF(t.update)}}];function RN(o,t){for(const n of vG)(n.kind===t||n.kind===ys.Both)&&n.fn(o)}function CG(o,t){const n=BN(o.root);return kN(o.root,t),n}function kN(o,t){for(const n of o.job.units){if(n.parent!==o.xref)continue;kN(n,t);const s=BN(n);t.statements.push(s.toDeclStmt(s.name))}}function BN(o){if(null===o.fnName)throw new Error(`AssertionError: view ${o.xref} is unnamed`);const t=[];for(const l of o.create){if(l.kind!==sn.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${sn[l.kind]}`);t.push(l.statement)}const n=[];for(const l of o.update){if(l.kind!==sn.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${sn[l.kind]}`);n.push(l.statement)}const s=zM(1,t),r=zM(2,n);return fm([new Nn("rf"),new Nn("ctx")],[...s,...r],void 0,void 0,o.fnName)}function zM(o,t){return 0===t.length?[]:[kS(new jo(Uo.BitwiseAnd,zs("rf"),Ei(o)),t)]}const FN=yh.TemplateDefinitionBuilder,Sy=new BM,Dy="ng-template";function KM(o){return o instanceof Su}function wG(o,t,n,s){let r;const l=t.expression.ast;r=l instanceof $S?new Cl(l.strings,l.expressions.map(E=>wr(E,o,t.sourceSpan)),[]):wr(l,o,t.sourceSpan),o.root.update.push(vy(o.root.xref,n,t.name,r,null,s,!1,!1,null,null,t.sourceSpan))}function SG(o,t,n,s){const r=vy(o.root.xref,Fs.Attribute,t,n,null,s,!0,!1,null,null,n.sourceSpan);o.root.update.push(r)}function DG(o,t){let n;if(t.type===jd.Animation)n=cF(o.root.xref,new zd,t.name,null,mD(o.root,t.handler,t.handlerSpan),t.name.endsWith("enter")?"enter":"leave",t.targetOrPhase,!0,t.sourceSpan);else{const[s,r]=t.type!==jd.LegacyAnimation?[null,t.targetOrPhase]:[t.targetOrPhase,null];n=_R(o.root.xref,new zd,t.name,null,mD(o.root,t.handler,t.handlerSpan),s,r,!0,t.sourceSpan)}o.root.create.push(n)}function Em(o,t){for(const n of t)if(n instanceof sf)TG(o,n);else if(n instanceof rg)AG(o,n);else if(n instanceof aM)IG(o,n);else if(n instanceof cy)NN(o,n,null);else if(n instanceof oM)LN(o,n,null);else if(n instanceof iB)MG(o,n);else if(n instanceof nB)PG(o,n);else if(n instanceof US)RG(o,n);else if(n instanceof rB)BG(o,n);else if(n instanceof rM)FG(o,n);else if(n instanceof GP)LG(o,n);else if(!(n instanceof GS))throw new Error(`Unsupported template node: ${n.constructor.name}`)}function TG(o,t){if(void 0!==t.i18n&&!(t.i18n instanceof Su||t.i18n instanceof X_))throw Error(`Unhandled i18n metadata type for element: ${t.i18n.constructor.name}`);const n=o.job.allocateXrefId(),[s,r]=sg(t.name),l=function DH(o,t,n,s,r,l){return{kind:sn.ElementStart,xref:t,tag:o,handle:new zd,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:s,startSourceSpan:r,wholeSourceSpan:l,...hp,...ar}}(r,n,CF(s),t.i18n instanceof X_?t.i18n:void 0,t.startSourceSpan,t.sourceSpan);o.create.push(l),function HG(o,t,n){let s=new Array,r=new Set;for(const l of n.attributes){const E=Sy.securityContext(n.name,l.name,!0);s.push(vy(t.xref,Fs.Attribute,l.name,NR(o.job,l.value,l.i18n),null,E,!0,!1,null,Om(l.i18n),l.sourceSpan)),l.i18n&&r.add(l.name)}for(const l of n.inputs)r.has(l.name)&&console.error(`On component ${o.job.componentName}, the binding ${l.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`),s.push(vy(t.xref,HN.get(l.type),l.name,NR(o.job,_D(l.value),l.i18n),l.unit,l.securityContext,!1,!1,null,Om(l.i18n)??null,l.sourceSpan));o.create.push(s.filter(l=>l?.kind===sn.ExtractedAttribute)),o.update.push(s.filter(l=>l?.kind===sn.Binding));for(const l of n.outputs){if(l.type===jd.LegacyAnimation&&null===l.phase)throw Error("Animation listener should have a phase");o.create.push(l.type===jd.TwoWay?dF(t.xref,t.handle,l.name,t.tag,$N(o,l.handler,l.handlerSpan),l.sourceSpan):l.type===jd.Animation?cF(t.xref,t.handle,l.name,t.tag,mD(o,l.handler,l.handlerSpan),l.name.endsWith("enter")?"enter":"leave",l.target,!1,l.sourceSpan):_R(t.xref,t.handle,l.name,t.tag,mD(o,l.handler,l.handlerSpan),l.phase,l.target,!1,l.sourceSpan))}null!==s.some(l=>l?.i18nMessage)&&o.create.push(hF(o.job.allocateXrefId(),new zd,t.xref))}(o,l,t),UN(l,t);let E=null;t.i18n instanceof Su&&(E=o.job.allocateXrefId(),o.create.push(OM(E,t.i18n,void 0,t.startSourceSpan))),Em(o,t.children);const N=function AH(o,t){return{kind:sn.ElementEnd,xref:o,sourceSpan:t,...ar}}(n,t.endSourceSpan??t.startSourceSpan);o.create.push(N),null!==E&&Lo.insertBefore(wM(E,t.endSourceSpan??t.startSourceSpan),N)}function AG(o,t){if(void 0!==t.i18n&&!(t.i18n instanceof Su||t.i18n instanceof X_))throw Error(`Unhandled i18n metadata type for template: ${t.i18n.constructor.name}`);const n=o.job.allocateView(o.xref);let s=t.tagName,r="";t.tagName&&([r,s]=sg(t.tagName));const l=t.i18n instanceof X_?t.i18n:void 0,E=CF(r),N=null===s?"":function l$(o,t){return t===ud.HTML?o:`:${function a$(o){const t=new Map([["svg",ud.SVG],["math",ud.Math]]);for(const[n,s]of t.entries())if(s===o)return n;return null}(t)}:${o}`}(s,E),ae=function VG(o){return sg(o.tagName??"")[1]===Dy}(t)?Tu.NgTemplate:Tu.Structural,ze=sF(n.xref,ae,s,N,E,l,t.startSourceSpan,t.sourceSpan);o.create.push(ze),function $G(o,t,n,s){let r=new Array;for(const l of n.templateAttrs)if(l instanceof sM){const E=Sy.securityContext(Dy,l.name,!0);r.push(YM(o,t.xref,zr.Attribute,l.name,l.value,null,E,!0,s,Om(l.i18n),l.sourceSpan))}else r.push(YM(o,t.xref,l.type,l.name,_D(l.value),l.unit,l.securityContext,!0,s,Om(l.i18n),l.sourceSpan));for(const l of n.attributes){const E=Sy.securityContext(Dy,l.name,!0);r.push(YM(o,t.xref,zr.Attribute,l.name,l.value,null,E,!1,s,Om(l.i18n),l.sourceSpan))}for(const l of n.inputs)r.push(YM(o,t.xref,l.type,l.name,_D(l.value),l.unit,l.securityContext,!1,s,Om(l.i18n),l.sourceSpan));o.create.push(r.filter(l=>l?.kind===sn.ExtractedAttribute)),o.update.push(r.filter(l=>l?.kind===sn.Binding));for(const l of n.outputs){if(l.type===jd.LegacyAnimation&&null===l.phase)throw Error("Animation listener should have a phase");if(s===Tu.NgTemplate&&o.create.push(l.type===jd.TwoWay?dF(t.xref,t.handle,l.name,t.tag,$N(o,l.handler,l.handlerSpan),l.sourceSpan):_R(t.xref,t.handle,l.name,t.tag,mD(o,l.handler,l.handlerSpan),l.phase,l.target,!1,l.sourceSpan)),s===Tu.Structural&&l.type!==jd.LegacyAnimation){const E=Sy.securityContext(Dy,l.name,!1);o.create.push(gp(t.xref,Fs.Property,null,l.name,null,null,null,E))}}null!==r.some(l=>l?.i18nMessage)&&o.create.push(hF(o.job.allocateXrefId(),new zd,t.xref))}(o,ze,t,ae),UN(ze,t),Em(n,t.children);for(const{name:dt,value:Kt}of t.variables)n.contextVariables.set(dt,""!==Kt?Kt:"$implicit");if(ae===Tu.NgTemplate&&t.i18n instanceof Su){const dt=o.job.allocateXrefId();Lo.insertAfter(OM(dt,t.i18n,void 0,t.startSourceSpan),n.create.head),Lo.insertBefore(wM(dt,t.endSourceSpan??t.startSourceSpan),n.create.tail)}}function IG(o,t){if(void 0!==t.i18n&&!(t.i18n instanceof X_))throw Error(`Unhandled i18n metadata type for element: ${t.i18n.constructor.name}`);let n=null;t.children.some(l=>!(l instanceof iM||l instanceof cy&&!(l.value.trim().length>0)))&&(n=o.job.allocateView(o.xref),Em(n,t.children));const r=function FH(o,t,n,s,r){return{kind:sn.Projection,xref:o,handle:new zd,selector:t,i18nPlaceholder:n,fallbackView:s,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:r,...ar,...hp,numSlotsUsed:null===s?1:2}}(o.job.allocateXrefId(),t.selector,t.i18n,n?.xref??null,t.sourceSpan);for(const l of t.attributes){const E=Sy.securityContext(t.name,l.name,!0);o.update.push(vy(r.xref,Fs.Attribute,l.name,Ei(l.value),null,E,!0,!1,null,Om(l.i18n),l.sourceSpan))}o.create.push(r)}function NN(o,t,n){o.create.push(lF(o.job.allocateXrefId(),t.value,n,t.sourceSpan))}function LN(o,t,n){let s=t.value;if(s instanceof og&&(s=s.ast),!(s instanceof $S))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${s.constructor.name}`);if(void 0!==t.i18n&&!(t.i18n instanceof ag))throw Error(`Unhandled i18n metadata type for text interpolation: ${t.i18n?.constructor.name}`);const r=t.i18n instanceof ag?t.i18n.children.filter(N=>N instanceof lf).map(N=>N.name):[];if(r.length>0&&r.length!==s.expressions.length)throw Error(`Unexpected number of i18n placeholders (${s.expressions.length}) for BoundText with ${s.expressions.length} expressions`);const l=o.job.allocateXrefId();o.create.push(lF(l,"",n,t.sourceSpan));const E=o.job.compatibility?null:t.sourceSpan;o.update.push(function pH(o,t,n){return{kind:sn.InterpolateText,target:o,interpolation:t,sourceSpan:n,...bh,...Au,...ar}}(l,new Cl(s.strings,s.expressions.map(N=>wr(N,o.job,E)),r),t.sourceSpan))}function MG(o,t){let n=null,s=[];for(let r=0;r<t.branches.length;r++){const l=t.branches[r],E=o.job.allocateView(o.xref),N=QM(o,E.xref,l);let ae;if(null!==l.expressionAlias&&E.contextVariables.set(l.expressionAlias.name,pF),void 0!==l.i18n){if(!(l.i18n instanceof Y_))throw Error(`Unhandled i18n metadata type for if block: ${l.i18n?.constructor.name}`);ae=l.i18n}const dt=(0===r?rF:aF)(E.xref,Tu.Block,N,"Conditional",ud.HTML,ae,l.startSourceSpan,l.sourceSpan);o.create.push(dt),null===n&&(n=E.xref);const Kt=l.expression?wr(l.expression,o.job,null):null,Vn=new aD(Kt,dt.xref,dt.handle,l.expressionAlias);s.push(Vn),Em(E,l.children)}o.update.push(tF(n,null,s,t.sourceSpan))}function PG(o,t){if(0===t.cases.length)return;let n=null,s=[];for(let r=0;r<t.cases.length;r++){const l=t.cases[r],E=o.job.allocateView(o.xref),N=QM(o,E.xref,l);let ae;if(void 0!==l.i18n){if(!(l.i18n instanceof Y_))throw Error(`Unhandled i18n metadata type for switch block: ${l.i18n?.constructor.name}`);ae=l.i18n}const dt=(0===r?rF:aF)(E.xref,Tu.Block,N,"Case",ud.HTML,ae,l.startSourceSpan,l.sourceSpan);o.create.push(dt),null===n&&(n=E.xref);const Kt=l.expression?wr(l.expression,o.job,t.startSourceSpan):null,Vn=new aD(Kt,dt.xref,dt.handle);s.push(Vn),Em(E,l.children)}o.update.push(tF(n,wr(t.expression,o.job,null),s,t.sourceSpan))}function XM(o,t,n,s,r){if(void 0!==n&&!(n instanceof Y_))throw Error("Unhandled i18n metadata type for defer block");if(void 0===s)return null;const l=o.job.allocateView(o.xref);Em(l,s);const E=sF(l.xref,Tu.Block,null,`Defer${t}`,ud.HTML,n,r,r);return o.create.push(E),E}function RG(o,t){let n=null;if(0===o.job.deferMeta.mode){if(!o.job.deferMeta.blocks.has(t))throw new Error("AssertionError: unable to find a dependency function for this deferred block");n=o.job.deferMeta.blocks.get(t)??null}const s=XM(o,"",t.i18n,t.children,t.sourceSpan),r=XM(o,"Loading",t.loading?.i18n,t.loading?.children,t.loading?.sourceSpan),l=XM(o,"Placeholder",t.placeholder?.i18n,t.placeholder?.children,t.placeholder?.sourceSpan),E=XM(o,"Error",t.error?.i18n,t.error?.children,t.error?.sourceSpan),N=o.job.allocateXrefId(),ae=function NH(o,t,n,s,r,l){return{kind:sn.Defer,xref:o,handle:new zd,mainView:t,mainSlot:n,loadingView:null,loadingSlot:null,loadingConfig:null,loadingMinimumTime:null,loadingAfterTime:null,placeholderView:null,placeholderSlot:null,placeholderConfig:null,placeholderMinimumTime:null,errorView:null,errorSlot:null,ownResolverFn:s,resolverFn:r,flags:null,sourceSpan:l,...ar,...hp,numSlotsUsed:2}}(N,s.xref,s.handle,n,o.job.allDeferrableDepsFn,t.sourceSpan);ae.placeholderView=l?.xref??null,ae.placeholderSlot=l?.handle??null,ae.loadingSlot=r?.handle??null,ae.errorSlot=E?.handle??null,ae.placeholderMinimumTime=t.placeholder?.minimumTime??null,ae.loadingMinimumTime=t.loading?.minimumTime??null,ae.loadingAfterTime=t.loading?.afterTime??null,ae.flags=function kG(o){return Object.keys(o.hydrateTriggers).length>0?1:null}(t),o.create.push(ae);const ze=[],dt=[];FR("hydrate",t.hydrateTriggers,ze,dt,o,N),FR("none",t.triggers,ze,dt,o,N),FR("prefetch",t.prefetchTriggers,ze,dt,o,N),ze.some(Vn=>"none"===Vn.modifier)||dt.some(Vn=>"none"===Vn.modifier)||ze.push(ov(N,{kind:pa.Idle},"none",null)),o.create.push(ze),o.update.push(dt)}function FR(o,t,n,s,r,l){if(void 0!==t.idle){const E=ov(l,{kind:pa.Idle},o,t.idle.sourceSpan);n.push(E)}if(void 0!==t.immediate){const E=ov(l,{kind:pa.Immediate},o,t.immediate.sourceSpan);n.push(E)}if(void 0!==t.timer){const E=ov(l,{kind:pa.Timer,delay:t.timer.delay},o,t.timer.sourceSpan);n.push(E)}if(void 0!==t.hover){const E=ov(l,{kind:pa.Hover,targetName:t.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},o,t.hover.sourceSpan);n.push(E)}if(void 0!==t.interaction){const E=ov(l,{kind:pa.Interaction,targetName:t.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},o,t.interaction.sourceSpan);n.push(E)}if(void 0!==t.viewport){const E=ov(l,{kind:pa.Viewport,targetName:t.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},o,t.viewport.sourceSpan);n.push(E)}if(void 0!==t.never){const E=ov(l,{kind:pa.Never},o,t.never.sourceSpan);n.push(E)}if(void 0!==t.when){if(t.when.value instanceof $S)throw new Error("Unexpected interpolation in defer block when trigger");const E=function EH(o,t,n,s){return{kind:sn.DeferWhen,target:o,expr:t,modifier:n,sourceSpan:s,...ar,...bh,...Au}}(l,wr(t.when.value,r.job,t.when.sourceSpan),o,t.when.sourceSpan);s.push(E)}}function BG(o,t){if(!(t.i18n instanceof Su&&function xG(o){return KM(o)&&1===o.nodes.length&&o.nodes[0]instanceof g0}(t.i18n)))throw Error(`Unhandled i18n metadata type for ICU: ${t.i18n?.constructor.name}`);{const n=o.job.allocateXrefId();o.create.push(function HH(o,t,n,s){return{kind:sn.IcuStart,xref:o,message:t,messagePlaceholder:n,context:null,sourceSpan:s,...ar}}(n,t.i18n,hB(t.i18n).name,null));for(const[s,r]of Object.entries({...t.vars,...t.placeholders}))r instanceof oM?LN(o,r,s):NN(o,r,s);o.create.push(function $H(o){return{kind:sn.IcuEnd,xref:o,...ar}}(n))}}function FG(o,t){const n=o.job.allocateView(o.xref),s=`\u0275$index_${n.xref}`,r=`\u0275$count_${n.xref}`,l=new Set;n.contextVariables.set(t.item.name,t.item.value);for(const uo of t.contextVariables)"$index"===uo.value&&l.add(uo.name),"$index"===uo.name?n.contextVariables.set("$index",uo.value).set(s,uo.value):"$count"===uo.name?n.contextVariables.set("$count",uo.value).set(r,uo.value):n.aliases.add({kind:Oc.Alias,name:null,identifier:uo.name,expression:NG(uo,s,r)});const E=nc(t.trackBy.span,t.sourceSpan),N=wr(t.trackBy,o.job,E);Em(n,t.children);let ae=null,ze=null;null!==t.empty&&(ae=o.job.allocateView(o.xref),Em(ae,t.empty.children),ze=QM(o,ae.xref,t.empty));const dt={$index:l,$implicit:t.item.name};if(void 0!==t.i18n&&!(t.i18n instanceof Y_))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(void 0!==t.empty?.i18n&&!(t.empty.i18n instanceof Y_))throw Error("AssertionError: Unhandled i18n metadata type or @empty");const Kt=t.i18n,Vn=t.empty?.i18n,ci=QM(o,n.xref,t),Vi=function TH(o,t,n,s,r,l,E,N,ae,ze){return{kind:sn.RepeaterCreate,attributes:null,xref:o,handle:new zd,emptyView:t,track:s,trackByFn:null,trackByOps:null,tag:n,emptyTag:l,emptyAttributes:null,functionNameSuffix:"For",namespace:ud.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:r,usesComponentInstance:!1,i18nPlaceholder:E,emptyI18nPlaceholder:N,startSourceSpan:ae,wholeSourceSpan:ze,...hp,...ar,...Au,numSlotsUsed:null===t?2:3}}(n.xref,ae?.xref??null,ci,N,dt,ze,Kt,Vn,t.startSourceSpan,t.sourceSpan);o.create.push(Vi);const Di=wr(t.expression,o.job,nc(t.expression.span,t.sourceSpan)),Eo=function xH(o,t,n,s){return{kind:sn.Repeater,target:o,targetSlot:t,collection:n,sourceSpan:s,...ar,...bh}}(Vi.xref,Vi.handle,Di,t.sourceSpan);o.update.push(Eo)}function NG(o,t,n){switch(o.value){case"$index":return new jc(t);case"$count":return new jc(n);case"$first":return new jc(t).identical(Ei(0));case"$last":return new jc(t).identical(new jc(n).minus(Ei(1)));case"$even":return new jc(t).modulo(Ei(2)).identical(Ei(0));case"$odd":return new jc(t).modulo(Ei(2)).notIdentical(Ei(0));default:throw new Error(`AssertionError: unknown @for loop variable ${o.value}`)}}function LG(o,t){const n=o.job.allocateXrefId();o.create.push(function LH(o,t,n){return{kind:sn.DeclareLet,xref:o,declaredName:t,sourceSpan:n,handle:new zd,...hp,...ar}}(n,t.name,t.sourceSpan)),o.update.push(function wH(o,t,n,s){return{kind:sn.StoreLet,target:o,declaredName:t,value:n,sourceSpan:s,...bh,...Au,...ar}}(n,t.name,wr(t.value,o.job,t.valueSpan),t.sourceSpan))}function wr(o,t,n){if(o instanceof og)return wr(o.ast,t,n);if(o instanceof ay)return o.receiver instanceof z_&&!(o.receiver instanceof VS)?new jc(o.name):new us(wr(o.receiver,t,n),o.name,null,nc(o.span,n));if(o instanceof eM){if(o.receiver instanceof z_)throw new Error("Unexpected ImplicitReceiver");return new ml(wr(o.receiver,t,n),o.args.map(s=>wr(s,t,n)),void 0,nc(o.span,n))}if(o instanceof ng)return Ei(o.value,void 0,nc(o.span,n));if(!(o instanceof ly)){if(o instanceof vh){const s=r$.get(o.operation);if(void 0===s)throw new Error(`AssertionError: unknown binary operator ${o.operation}`);return new jo(s,wr(o.left,t,n),wr(o.right,t,n),void 0,nc(o.span,n))}if(o instanceof VS)return new Cm(t.root.xref);if(o instanceof HS)return new zo(wr(o.receiver,t,n),wr(o.key,t,n),void 0,nc(o.span,n));if(o instanceof JI)throw new Error("AssertionError: Chain in unknown context");if(o instanceof Wk){const s=o.keys.map((r,l)=>new Ua(r.key,wr(o.values[l],t,n),r.quoted));return new Rr(s,void 0,nc(o.span,n))}if(o instanceof Gk)return new Er(o.expressions.map(s=>wr(s,t,n)));if(o instanceof Uk)return new ct(wr(o.condition,t,n),wr(o.trueExp,t,n),wr(o.falseExp,t,n),void 0,nc(o.span,n));if(o instanceof IP)return wr(o.expression,t,n);if(o instanceof jk)return new yy(t.allocateXrefId(),new zd,o.name,[wr(o.exp,t,n),...o.args.map(s=>wr(s,t,n))]);if(o instanceof SP)return new T0(wr(o.receiver,t,n),wr(o.key,t,n),nc(o.span,n));if(o instanceof wP)return new D0(wr(o.receiver,t,n),o.name);if(o instanceof zk)return new by(wr(o.receiver,t,n),o.args.map(s=>wr(s,t,n)));if(o instanceof wu)return new I0(nc(o.span,n));if(o instanceof DP)return function Sk(o,t){return new fn(o,t)}(wr(o.expression,t,n),nc(o.span,n));if(o instanceof TP)return d0(wr(o.expression,t,n));if(o instanceof AP)return new oy(wr(o.expression,t,n),void 0,nc(o.span,n));if(o instanceof PP)return VN(o,t,n);if(o instanceof MP)return new um(wr(o.tag,t,n),VN(o.template,t,n),void 0,nc(o.span,n));if(o instanceof RP)return new No(wr(o.expression,t,n),void 0,nc(o.span,n));throw new Error(`Unhandled expression type "${o.constructor.name}" in file "${n?.start.file.url}"`)}switch(o.operator){case"+":return new ao(iy.Plus,wr(o.expr,t,n),void 0,nc(o.span,n));case"-":return new ao(iy.Minus,wr(o.expr,t,n),void 0,nc(o.span,n));default:throw new Error(`AssertionError: unknown unary operator ${o.operator}`)}}function VN(o,t,n){return new Ud(o.elements.map(s=>new pm(s.text,nc(s.span,n))),o.expressions.map(s=>wr(s,t,n)),nc(o.span,n))}function NR(o,t,n,s){let r;return r=t instanceof $S?new Cl(t.strings,t.expressions.map(l=>wr(l,o,null)),Object.keys(Om(n)?.placeholders??{})):t instanceof ja?wr(t,o,null):Ei(t),r}const HN=new Map([[zr.Property,Fs.Property],[zr.TwoWay,Fs.TwoWayProperty],[zr.Attribute,Fs.Attribute],[zr.Class,Fs.ClassName],[zr.Style,Fs.StyleProperty],[zr.LegacyAnimation,Fs.LegacyAnimation],[zr.Animation,Fs.Animation]]);function Om(o){if(null==o)return null;if(!(o instanceof Su))throw Error(`Expected i18n meta to be a Message, but got: ${o.constructor.name}`);return o}function YM(o,t,n,s,r,l,E,N,ae,ze,dt){const Kt="string"==typeof r;if(ae===Tu.Structural){if(!N)switch(n){case zr.Property:case zr.Class:case zr.Style:return gp(t,Fs.Property,null,s,null,null,ze,E);case zr.TwoWay:return gp(t,Fs.TwoWayProperty,null,s,null,null,ze,E)}if(!Kt&&(n===zr.Attribute||n===zr.LegacyAnimation||n===zr.Animation))return null}let Vn=HN.get(n);return ae===Tu.NgTemplate&&(n===zr.Class||n===zr.Style||n===zr.Attribute&&!Kt)&&(Vn=Fs.Property),vy(t,Vn,s,NR(o.job,r,ze),l,E,Kt,N,ae,ze,dt)}function mD(o,t,n){t=_D(t);const s=new Array;let r=t instanceof JI?t.expressions:[t];if(0===r.length)throw new Error("Expected listener to have non-empty expression list.");const l=r.map(N=>wr(N,o.job,n)),E=l.pop();return s.push(...l.map(N=>pp(new _h(N,N.sourceSpan)))),s.push(pp(new Ec(E,E.sourceSpan))),s}function $N(o,t,n){t=_D(t);const s=new Array;if(t instanceof JI){if(1!==t.expressions.length)throw new Error("Expected two-way listener to have a single expression.");t=t.expressions[0]}const r=wr(t,o.job,n),l=new jc("$event"),E=new xM(r,l);return s.push(pp(new _h(E))),s.push(pp(new Ec(l))),s}function _D(o){return o instanceof og?o.ast:o}function UN(o,t){!function UG(o){if(!Array.isArray(o))throw new Error("AssertionError: expected an array")}(o.localRefs);for(const{name:n,value:s}of t.references)o.localRefs.push({name:n,target:s})}function nc(o,t){if(null===t)return null;const n=t.start.moveBy(o.start),s=t.start.moveBy(o.end),r=t.fullStart.moveBy(o.start);return new dr(n,s,r)}function QM(o,t,n){let s=null;for(const r of n.children)if(!(r instanceof iM||r instanceof GP)){if(null!==s)return null;if(!(r instanceof sf||r instanceof rg&&null!==r.tagName))return null;s=r}if(null!==s){for(const l of s.attributes)if(!l.name.startsWith("animate.")){const E=Sy.securityContext(Dy,l.name,!0);o.update.push(vy(t,Fs.Attribute,l.name,Ei(l.value),null,E,!0,!1,null,Om(l.i18n),l.sourceSpan))}for(const l of s.inputs)if(l.type!==zr.LegacyAnimation&&l.type!==zr.Animation&&l.type!==zr.Attribute){const E=Sy.securityContext(Dy,l.name,!0);o.create.push(gp(t,Fs.Property,null,l.name,null,null,null,E))}const r=s instanceof sf?s.name:s.tagName;return r===Dy?null:r}return null}function ZM(o,t){return kS(zs("rf").bitwiseAnd(Ei(o),null),t)}function GN(o,t,n,s){const r=[];return void 0!==s&&r.push(...s),o.isSignal&&r.push(new us(zs(zS),o.propertyName)),r.push(function WG(o,t){if(Array.isArray(o.predicate)){let n=[];return o.predicate.forEach(s=>{const r=s.split(",").map(l=>Ei(l.trim()));n.push(...r)}),t.getConstLiteral(hr(n),!0)}switch(o.predicate.forwardRef){case 0:case 2:return o.predicate.expression;case 1:return ns(oi.resolveForwardRef).callFn([o.predicate.expression])}}(o,t),Ei(function GG(o){return(o.descendants?1:0)|(o.static?2:0)|(o.emitDistinctChangesOnly?4:0)}(o))),o.read&&r.push(o.read),ns(o.isSignal?n.signalBased:n.nonSignal).callFn(r)}const LR=Symbol("queryAdvancePlaceholder");function WN(o){const t=[];let n=0;const s=()=>{n>0&&(t.unshift(ns(oi.queryAdvance).callFn(1===n?[]:[Ei(n)]).toStmt()),n=0)};for(let r=o.length-1;r>=0;r--){const l=o[r];l===LR?n++:(s(),t.unshift(l))}return s(),t}class zN extends LF{constructor(){super(IR)}parse(t,n,s){return super.parse(t,n,s)}}const VR="animate";class JG{_exprParser;_interpolationConfig;_schemaRegistry;errors;constructor(t,n,s,r){this._exprParser=t,this._interpolationConfig=n,this._schemaRegistry=s,this.errors=r}get interpolationConfig(){return this._interpolationConfig}createBoundHostProperties(t,n){const s=[];for(const r of Object.keys(t)){const l=t[r];"string"==typeof l?this.parsePropertyBinding(r,l,!0,!1,n,n.start.offset,void 0,[],s,n):this._reportError(`Value of the host property binding "${r}" needs to be a string representing an expression but got "${l}" (${typeof l})`,n)}return s}createDirectiveHostEventAsts(t,n){const s=[];for(const r of Object.keys(t)){const l=t[r];"string"==typeof l?this.parseEvent(r,l,!1,n,n,[],s,n):this._reportError(`Value of the host listener "${r}" needs to be a string representing an expression but got "${l}" (${typeof l})`,n)}return s}parseInterpolation(t,n,s){const r=n.fullStart.offset;try{const l=this._exprParser.parseInterpolation(t,n,r,s,this._interpolationConfig);return l&&this.errors.push(...l.errors),l}catch(l){return this._reportError(`${l}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}parseInterpolationExpression(t,n){const s=n.start.offset;try{const r=this._exprParser.parseInterpolationExpression(t,n,s);return r&&this.errors.push(...r.errors),r}catch(r){return this._reportError(`${r}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,s)}}parseInlineTemplateBinding(t,n,s,r,l,E,N,ae){const dt=this._parseTemplateBindings(t,n,s,s.start.offset+1,r);for(const Kt of dt){const Vn=av(s,Kt.sourceSpan),ci=Kt.key.source,Vi=av(s,Kt.key.span);if(Kt instanceof kP){const Di=Kt.value?Kt.value.source:"$implicit",Eo=Kt.value?av(s,Kt.value.span):void 0;N.push(new $2(ci,Di,Vn,Vi,Eo))}else if(Kt.value){const Di=ae?Vn:s,Eo=av(s,Kt.value.ast.sourceSpan);this._parsePropertyAst(ci,Kt.value,!1,Di,Vi,Eo,l,E)}else l.push([ci,""]),this.parseLiteralAttr(ci,null,Vi,r,void 0,l,E,Vi)}}_parseTemplateBindings(t,n,s,r,l){try{const E=this._exprParser.parseTemplateBindings(t,n,s,r,l);return E.errors.forEach(N=>this.errors.push(N)),E.warnings.forEach(N=>{this._reportError(N,s,q_.WARNING)}),E.templateBindings}catch(E){return this._reportError(`${E}`,s),[]}}parseLiteralAttr(t,n,s,r,l,E,N,ae){UR(t)?(t=t.substring(1),void 0!==ae&&(ae=av(ae,new ig(ae.start.offset+1,ae.end.offset))),n&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',s,q_.ERROR),this._parseLegacyAnimation(t,n,s,r,ae,l,E,N)):N.push(new tM(t,this._exprParser.wrapLiteralPrimitive(n,"",r),tf.LITERAL_ATTR,s,ae,l))}parsePropertyBinding(t,n,s,r,l,E,N,ae,ze,dt){0===t.length&&this._reportError("Property name is missing in binding",l);let Kt=!1;t.startsWith("animate-")?(Kt=!0,t=t.substring(8),void 0!==dt&&(dt=av(dt,new ig(dt.start.offset+8,dt.end.offset)))):UR(t)&&(Kt=!0,t=t.substring(1),void 0!==dt&&(dt=av(dt,new ig(dt.start.offset+1,dt.end.offset)))),Kt?this._parseLegacyAnimation(t,n,l,E,dt,N,ae,ze):t.startsWith(`${VR}.`)?this._parseAnimation(t,this.parseBinding(n,s,N||l,E),l,dt,N,ae,ze):this._parsePropertyAst(t,this.parseBinding(n,s,N||l,E),r,l,dt,N,ae,ze)}parsePropertyInterpolation(t,n,s,r,l,E,N,ae){const ze=this.parseInterpolation(n,r||s,ae);return!!ze&&(this._parsePropertyAst(t,ze,!1,s,N,r,l,E),!0)}_parsePropertyAst(t,n,s,r,l,E,N,ae){N.push([t,n.source]),ae.push(new tM(t,n,s?tf.TWO_WAY:tf.DEFAULT,r,l,E))}_parseAnimation(t,n,s,r,l,E,N){E.push([t,n.source]),N.push(new tM(t,n,tf.ANIMATION,s,r,l))}_parseLegacyAnimation(t,n,s,r,l,E,N,ae){0===t.length&&this._reportError("Animation trigger is missing",s);const ze=this.parseBinding(n||"undefined",!1,E||s,r);N.push([t,ze.source]),ae.push(new tM(t,ze,tf.LEGACY_ANIMATION,s,l,E))}parseBinding(t,n,s,r){try{const l=n?this._exprParser.parseSimpleBinding(t,s,r,this._interpolationConfig):this._exprParser.parseBinding(t,s,r,this._interpolationConfig);return l&&this.errors.push(...l.errors),l}catch(l){return this._reportError(`${l}`,s),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)}}createBoundElementProperty(t,n,s=!1,r=!0){if(n.isLegacyAnimation)return new Qk(n.name,zr.LegacyAnimation,la.NONE,n.expression,null,n.sourceSpan,n.keySpan,n.valueSpan);let E,l=null,N=null;const ae=n.name.split(".");let ze;if(ae.length>1)if("attr"==ae[0]){N=ae.slice(1).join("."),s||this._validatePropertyOrAttributeName(N,n.sourceSpan,!0),ze=jR(this._schemaRegistry,t,N,!0);const dt=N.indexOf(":");if(dt>-1){const Kt=N.substring(0,dt),Vn=N.substring(dt+1);N=nM(Kt,Vn)}E=zr.Attribute}else"class"==ae[0]?(N=ae[1],E=zr.Class,ze=[la.NONE]):"style"==ae[0]?(l=ae.length>2?ae[2]:null,N=ae[1],E=zr.Style,ze=[la.STYLE]):ae[0]==VR&&(N=n.name,E=zr.Animation,ze=[la.NONE]);if(null===N){const dt=this._schemaRegistry.getMappedPropName(n.name);N=r?dt:n.name,ze=jR(this._schemaRegistry,t,dt,!1),E=n.type===tf.TWO_WAY?zr.TwoWay:zr.Property,s||this._validatePropertyOrAttributeName(dt,n.sourceSpan,!1)}return new Qk(N,E,ze[0],n.expression,l,n.sourceSpan,n.keySpan,n.valueSpan)}parseEvent(t,n,s,r,l,E,N,ae){0===t.length&&this._reportError("Event name is missing in binding",r),UR(t)?(t=t.slice(1),void 0!==ae&&(ae=av(ae,new ig(ae.start.offset+1,ae.end.offset))),this._parseLegacyAnimationEvent(t,n,r,l,N,ae)):this._parseRegularEvent(t,n,s,r,l,E,N,ae)}calcPossibleSecurityContexts(t,n,s){const r=this._schemaRegistry.getMappedPropName(n);return jR(this._schemaRegistry,t,r,s)}parseEventListenerName(t){const[n,s]=function v2(o,t){return Rk(o,":",t)}(t,[null,t]);return{eventName:s,target:n}}parseLegacyAnimationEventName(t){const n=function C2(o,t){return Rk(o,".",t)}(t,[t,null]);return{eventName:n[0],phase:null===n[1]?null:n[1].toLowerCase()}}_parseLegacyAnimationEvent(t,n,s,r,l,E){const{eventName:N,phase:ae}=this.parseLegacyAnimationEventName(t),ze=this._parseAction(n,r);l.push(new Yk(N,ae,jd.LegacyAnimation,ze,s,r,E)),0===N.length&&this._reportError("Animation event name is missing in binding",s),ae?"start"!==ae&&"done"!==ae&&this._reportError(`The provided animation output phase value "${ae}" for "@${N}" is not supported (use start or done)`,s):this._reportError(`The animation trigger output event (@${N}) is missing its phase value name (start or done are currently supported)`,s)}_parseRegularEvent(t,n,s,r,l,E,N,ae){const{eventName:ze,target:dt}=this.parseEventListenerName(t),Kt=this.errors.length,Vn=this._parseAction(n,l),ci=this.errors.length===Kt;E.push([t,Vn.source]),s&&ci&&!this._isAllowedAssignmentEvent(Vn)&&this._reportError("Unsupported expression in a two-way binding",r);let Vi=jd.Regular;s&&(Vi=jd.TwoWay),t.startsWith(`${VR}.`)&&(Vi=jd.Animation),N.push(new Yk(ze,dt,Vi,Vn,r,l,ae))}_parseAction(t,n){const s=n&&n.start?n.start.offset:0;try{const r=this._exprParser.parseAction(t,n,s,this._interpolationConfig);return r&&this.errors.push(...r.errors),!r||r.ast instanceof wu?(this._reportError("Empty expressions are not allowed",n),this._exprParser.wrapLiteralPrimitive("ERROR",n,s)):r}catch(r){return this._reportError(`${r}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,s)}}_reportError(t,n,s=q_.ERROR){this.errors.push(new Xs(n,t,s))}_validatePropertyOrAttributeName(t,n,s){const r=s?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,n,q_.ERROR)}_isAllowedAssignmentEvent(t){return t instanceof og?this._isAllowedAssignmentEvent(t.ast):t instanceof IP?this._isAllowedAssignmentEvent(t.expression):t instanceof eM&&1===t.args.length&&t.receiver instanceof ay&&"$any"===t.receiver.name&&t.receiver.receiver instanceof z_&&!(t.receiver.receiver instanceof VS)?this._isAllowedAssignmentEvent(t.args[0]):(t instanceof ay||t instanceof HS)&&!$R(t)}}function $R(o){return o instanceof wP||o instanceof SP||(o instanceof RP?$R(o.expression):(o instanceof ay||o instanceof HS||o instanceof eM)&&$R(o.receiver))}function UR(o){return"@"==o[0]}function jR(o,t,n,s){let r;const l=E=>o.securityContext(E,n,s);return null===t?r=o.allKnownElementNames().map(l):(r=[],Jp.parse(t).forEach(E=>{const N=E.element?[E.element]:o.allKnownElementNames(),ae=new Set(E.notSelectors.filter(dt=>dt.isElementSelector()).map(dt=>dt.element)),ze=N.filter(dt=>!ae.has(dt));r.push(...ze.map(l))})),0===r.length?[la.NONE]:Array.from(new Set(r)).sort()}function av(o,t){const n=t.start-o.start.offset,s=t.end-o.end.offset;return new dr(o.start.moveBy(n),o.end.moveBy(s),o.fullStart.moveBy(n),o.details)}const eW=/^([^:/?#]+):/;function KN(o){let t=null,n=null,s=null,r=!1,l="";o.attrs.forEach(ae=>{const ze=ae.name.toLowerCase();"select"==ze?t=ae.value:"href"==ze?n=ae.value:"rel"==ze?s=ae.value:"ngNonBindable"==ae.name?r=!0:"ngProjectAs"==ae.name&&ae.value.length>0&&(l=ae.value)}),t=function uW(o){return null===o||0===o.length?"*":o}(t);const E=o.name.toLowerCase();let N=wh.OTHER;return BP(E)?N=wh.NG_CONTENT:"style"==E?N=wh.STYLE:"script"==E?N=wh.SCRIPT:"link"==E&&"stylesheet"==s&&(N=wh.STYLESHEET),new dW(N,t,n,r,l)}var wh=function(o){return o[o.NG_CONTENT=0]="NG_CONTENT",o[o.STYLE=1]="STYLE",o[o.STYLESHEET=2]="STYLESHEET",o[o.SCRIPT=3]="SCRIPT",o[o.OTHER=4]="OTHER",o}(wh||{});class dW{type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(t,n,s,r,l){this.type=t,this.selectAttr=n,this.hrefAttr=s,this.nonBindable=r,this.projectAs=l}}const hW=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,pW=/^track\s+([\S\s]*)/,gW=/^(as\s+)(.*)/,qM=/^else[^\S\r\n]+if/,fW=/^let\s+([\S\s]*)/,mW=/^[$A-Z_][0-9A-Z_$]*$/i,XN=/(\s*)(\S+)(\s*)/,vD=new Set(["$index","$first","$last","$even","$odd","$count"]);function YN(o){return"empty"===o}function QN(o){return"else"===o||qM.test(o)}function bW(o,t,n,s,r,l){const E=t.split(",");let N=n.start;for(const ae of E){const ze=ae.split("="),dt=2===ze.length?ze[0].trim():"",Kt=2===ze.length?ze[1].trim():"";if(0===dt.length||0===Kt.length)l.push(new Xs(o,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(vD.has(Kt))if(dt===s)l.push(new Xs(o,`Invalid @for loop "let" parameter. Variable cannot be called "${s}"`));else if(r.some(Vn=>Vn.name===dt))l.push(new Xs(o,`Duplicate "let" parameter variable "${Kt}"`));else{const[,Vn,ci]=ze[0].match(XN)??[],Vi=void 0!==Vn&&2===ze.length?new dr(N.moveBy(Vn.length),N.moveBy(Vn.length+ci.length)):n;let Di;if(2===ze.length){const[,uo,Jo]=ze[1].match(XN)??[];Di=void 0!==uo?new dr(N.moveBy(ze[0].length+1+uo.length),N.moveBy(ze[0].length+1+uo.length+Jo.length)):void 0}const Eo=new dr(Vi.start,Di?.end??Vi.end);r.push(new p0(dt,Kt,Eo,Vi,Di))}else l.push(new Xs(o,`Unknown "let" parameter variable "${Kt}". The allowed variables are: ${Array.from(vD).join(", ")}`));N=N.moveBy(ae.length+1)}}function CD(o,t,n){let s,r;return"string"==typeof n?(s=Math.max(0,o.expression.lastIndexOf(n)),r=s+n.length):(s=0,r=o.expression.length),t.parseBinding(o.expression.slice(s,r),!1,o.sourceSpan,o.sourceSpan.start.offset+s)}function ZN(o,t,n){if(0===o.parameters.length)return t.push(new Xs(o.startSourceSpan,"Conditional block does not have an expression")),null;const s=CD(o.parameters[0],n);let r=null;for(let l=1;l<o.parameters.length;l++){const E=o.parameters[l],N=E.expression.match(gW);if(null===N)t.push(new Xs(E.sourceSpan,`Unrecognized conditional parameter "${E.expression}"`));else if("if"===o.name||qM.test(o.name))if(null!==r)t.push(new Xs(E.sourceSpan,'Conditional can only have one "as" expression'));else{const ae=N[2].trim();if(mW.test(ae)){const ze=E.sourceSpan.start.moveBy(N[1].length),dt=new dr(ze,ze.moveBy(ae.length));r=new p0(ae,ae,dt,dt)}else t.push(new Xs(E.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}else t.push(new Xs(E.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'))}return{expression:s,expressionAlias:r}}const wW=/^\d+\.?\d*(ms|s)?$/,SW=/^\s$/,JN=new Map([[dg,Du],[91,93],[40,41]]);var Iu=function(o){return o.IDLE="idle",o.TIMER="timer",o.INTERACTION="interaction",o.IMMEDIATE="immediate",o.HOVER="hover",o.VIEWPORT="viewport",o.NEVER="never",o}(Iu||{});function DW({expression:o,sourceSpan:t},n,s){const r=o.indexOf("never"),l=new dr(t.start.moveBy(r),t.start.moveBy(r+5)),E=zR(o,t),N=KR(o,t);-1===r?s.push(new Xs(t,'Could not find "never" keyword in expression')):XR("never",n,s,new j2(l,t,E,null,N))}function GR({expression:o,sourceSpan:t},n,s,r){const l=o.indexOf("when"),E=new dr(t.start.moveBy(l),t.start.moveBy(l+4)),N=zR(o,t),ae=KR(o,t);if(-1===l)r.push(new Xs(t,'Could not find "when" keyword in expression'));else{const ze=yD(o,l+1),dt=n.parseBinding(o.slice(ze),!1,t,t.start.offset+ze);XR("when",s,r,new Jk(dt,t,N,E,ae))}}function WR({expression:o,sourceSpan:t},n,s,r){const l=o.indexOf("on"),E=new dr(t.start.moveBy(l),t.start.moveBy(l+2)),N=zR(o,t),ae=KR(o,t);if(-1===l)s.push(new Xs(t,'Could not find "on" keyword in expression'));else{const ze=yD(o,l+1);new TW(o,ze,t,n,s,o.startsWith("hydrate")?FW:BW,r,N,E,ae).parse()}}function zR(o,t){return o.startsWith("prefetch")?new dr(t.start,t.start.moveBy(8)):null}function KR(o,t){return o.startsWith("hydrate")?new dr(t.start,t.start.moveBy(7)):null}class TW{expression;start;span;triggers;errors;validator;placeholder;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(t,n,s,r,l,E,N,ae,ze,dt){this.expression=t,this.start=n,this.span=s,this.triggers=r,this.errors=l,this.validator=E,this.placeholder=N,this.prefetchSpan=ae,this.onSourceSpan=ze,this.hydrateSpan=dt,this.tokens=(new TR).tokenize(t.slice(n))}parse(){for(;this.tokens.length>0&&this.index<this.tokens.length;){const t=this.token();if(!t.isIdentifier()){this.unexpectedToken(t);break}if(this.isFollowedByOrLast(44))this.consumeTrigger(t,[]),this.advance();else if(this.isFollowedByOrLast(40)){this.advance();const n=this.errors.length,s=this.consumeParameters();if(this.errors.length!==n)break;this.consumeTrigger(t,s),this.advance()}else this.index<this.tokens.length-1&&this.unexpectedToken(this.tokens[this.index+1]);this.advance()}}advance(){this.index++}isFollowedByOrLast(t){return this.index===this.tokens.length-1||this.tokens[this.index+1].isCharacter(t)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(t,n){const s=this.span.start.moveBy(this.start+t.index-this.tokens[0].index),r=new dr(s,s.moveBy(t.strValue.length)),l=s.moveBy(this.token().end-t.index),E=0===t.index,N=E?this.onSourceSpan:null,ae=E?this.prefetchSpan:null,ze=E?this.hydrateSpan:null,dt=new dr(E?this.span.start:s,l);try{switch(t.toString()){case Iu.IDLE:this.trackTrigger("idle",function AW(o,t,n,s,r,l){if(o.length>0)throw new Error(`"${Iu.IDLE}" trigger cannot have parameters`);return new G2(t,n,s,r,l)}(n,r,dt,ae,N,ze));break;case Iu.TIMER:this.trackTrigger("timer",function IW(o,t,n,s,r,l){if(1!==o.length)throw new Error(`"${Iu.TIMER}" trigger must have exactly one parameter`);const E=e1(o[0]);if(null===E)throw new Error(`Could not parse time value of trigger "${Iu.TIMER}"`);return new z2(E,t,n,s,r,l)}(n,r,dt,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Iu.INTERACTION:this.trackTrigger("interaction",function RW(o,t,n,s,r,l,E){return E(Iu.INTERACTION,o),new eB(o[0]??null,t,n,s,r,l)}(n,r,dt,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Iu.IMMEDIATE:this.trackTrigger("immediate",function MW(o,t,n,s,r,l){if(o.length>0)throw new Error(`"${Iu.IMMEDIATE}" trigger cannot have parameters`);return new W2(t,n,s,r,l)}(n,r,dt,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Iu.HOVER:this.trackTrigger("hover",function PW(o,t,n,s,r,l,E,N){return N(Iu.HOVER,o),new qk(o[0]??null,t,n,s,r,l)}(n,r,dt,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,0,this.validator));break;case Iu.VIEWPORT:this.trackTrigger("viewport",function kW(o,t,n,s,r,l,E){return E(Iu.VIEWPORT,o),new tB(o[0]??null,t,n,s,r,l)}(n,r,dt,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;default:throw new Error(`Unrecognized trigger type "${t}"`)}}catch(Kt){this.error(t,Kt.message)}}consumeParameters(){const t=[];if(!this.token().isCharacter(40))return this.unexpectedToken(this.token()),t;this.advance();const n=[];let s="";for(;this.index<this.tokens.length;){const r=this.token();if(r.isCharacter(41)&&0===n.length){s.length&&t.push(s);break}r.type===xr.Character&&JN.has(r.numValue)&&n.push(JN.get(r.numValue)),n.length>0&&r.isCharacter(n[n.length-1])&&n.pop(),0===n.length&&r.isCharacter(44)&&s.length>0?(t.push(s),s="",this.advance()):(s+=this.tokenText(),this.advance())}return(!this.token().isCharacter(41)||n.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(44)&&this.unexpectedToken(this.tokens[this.index+1]),t}tokenText(){return this.expression.slice(this.start+this.token().index,this.start+this.token().end)}trackTrigger(t,n){XR(t,this.triggers,this.errors,n)}error(t,n){const s=this.span.start.moveBy(this.start+t.index),r=s.moveBy(t.end-t.index);this.errors.push(new Xs(new dr(s,r),n))}unexpectedToken(t){this.error(t,`Unexpected token "${t}"`)}}function XR(o,t,n,s){t[o]?n.push(new Xs(s.sourceSpan,`Duplicate "${o}" trigger is not allowed`)):t[o]=s}function BW(o,t){if(t.length>1)throw new Error(`"${o}" trigger can only have zero or one parameters`)}function FW(o,t){if(t.length>0)throw new Error(`Hydration trigger "${o}" cannot have parameters`)}function yD(o,t=0){let n=!1;for(let s=t;s<o.length;s++)if(SW.test(o[s]))n=!0;else if(n)return s;return-1}function e1(o){const t=o.match(wW);if(!t)return null;const[n,s]=t;return parseFloat(n)*("s"===s?1e3:1)}const NW=/^prefetch\s+when\s/,LW=/^prefetch\s+on\s/,VW=/^hydrate\s+when\s/,HW=/^hydrate\s+on\s/,$W=/^hydrate\s+never(\s*)$/,qN=/^minimum\s/,UW=/^after\s/,jW=/^when\s/,GW=/^on\s/;function YR(o){return"placeholder"===o||"loading"===o||"error"===o}function KW(o,t){let n=null;for(const s of o.parameters){if(!qN.test(s.expression))throw new Error(`Unrecognized parameter in @placeholder block: "${s.expression}"`);{if(null!=n)throw new Error('@placeholder block can only have one "minimum" parameter');const r=e1(s.expression.slice(yD(s.expression)));if(null===r)throw new Error('Could not parse time value of parameter "minimum"');n=r}}return new VP(tr(t,o.children,o.children),n,o.nameSpan,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.i18n)}function XW(o,t){let n=null,s=null;for(const r of o.parameters)if(UW.test(r.expression)){if(null!=n)throw new Error('@loading block can only have one "after" parameter');const l=e1(r.expression.slice(yD(r.expression)));if(null===l)throw new Error('Could not parse time value of parameter "after"');n=l}else{if(!qN.test(r.expression))throw new Error(`Unrecognized parameter in @loading block: "${r.expression}"`);{if(null!=s)throw new Error('@loading block can only have one "minimum" parameter');const l=e1(r.expression.slice(yD(r.expression)));if(null===l)throw new Error('Could not parse time value of parameter "minimum"');s=l}}return new HP(tr(t,o.children,o.children),n,s,o.nameSpan,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.i18n)}function YW(o,t){if(o.parameters.length>0)throw new Error("@error block cannot have parameters");return new $P(tr(t,o.children,o.children),o.nameSpan,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.i18n)}const ZW=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,lv_BANANA_BOX={start:"[(",end:")]"},lv_PROPERTY={start:"[",end:"]"},lv_EVENT={start:"(",end:")"},qW=new Set(["link","style","script","ng-template","ng-container","ng-content"]),ez=new Set(["ngProjectAs","ngNonBindable"]);class nz{bindingParser;options;errors=[];styles=[];styleUrls=[];ngContentSelectors=[];commentNodes=[];inI18nBlock=!1;processedNodes=new Set;constructor(t,n){this.bindingParser=t,this.options=n}visitElement(t){const n=KM(t.i18n);n&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",t.sourceSpan),this.inI18nBlock=!0);const s=KN(t);if(s.type===wh.SCRIPT)return null;if(s.type===wh.STYLE){const uo=function oz(o){return 1===o.children.length&&o.children[0]instanceof Ey?o.children[0].value:null}(t);return null!==uo&&this.styles.push(uo),null}if(s.type===wh.STYLESHEET&&function qG(o){if(null==o||0===o.length||"/"==o[0])return!1;const t=o.match(eW);return null===t||"package"==t[1]||"asset"==t[1]}(s.hrefAttr))return this.styleUrls.push(s.hrefAttr),null;const r=function U2(o){return"ng-template"===sg(o)[1]}(t.name),{attributes:l,boundEvents:E,references:N,variables:ae,templateVariables:ze,elementHasInlineTemplate:dt,parsedProperties:Kt,templateParsedProperties:Vn,i18nAttrsMeta:ci}=this.prepareAttributes(t.attrs,r),Vi=this.extractDirectives(t);let Di,Eo;if(Di=s.nonBindable?tr(sL,t.children).flat(1/0):tr(this,t.children,t.children),s.type===wh.NG_CONTENT){const uo=s.selectAttr,Jo=t.attrs.map(es=>this.visitAttribute(es));Eo=new aM(uo,Jo,Di,t.isSelfClosing,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n),this.ngContentSelectors.push(uo)}else if(r){const uo=this.categorizePropertyAttributes(t.name,Kt,ci);Eo=new rg(t.name,l,uo.bound,E,Vi,[],Di,N,ae,t.isSelfClosing,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}else{const uo=this.categorizePropertyAttributes(t.name,Kt,ci);Eo=new sf(t.name,l,uo.bound,E,Vi,Di,N,t.isSelfClosing,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.isVoid,t.i18n)}return dt&&(Eo=this.wrapInTemplate(Eo,Vn,ze,ci,r,n)),n&&(this.inI18nBlock=!1),Eo}visitAttribute(t){return new sM(t.name,t.value,t.sourceSpan,t.keySpan,t.valueSpan,t.i18n)}visitText(t){return this.processedNodes.has(t)?null:this._visitTextWithInterpolation(t.value,t.sourceSpan,t.tokens,t.i18n)}visitExpansion(t){if(!t.i18n)return null;if(!KM(t.i18n))throw new Error(`Invalid type "${t.i18n.constructor}" for "i18n" property of ${t.sourceSpan.toString()}. Expected a "Message"`);const n=t.i18n,s={},r={};return Object.keys(n.placeholders).forEach(l=>{const E=n.placeholders[l];if(l.startsWith("VAR_")){const N=l.trim(),ae=this.bindingParser.parseInterpolationExpression(E.text,E.sourceSpan);s[N]=new oM(ae,E.sourceSpan)}else r[l]=this._visitTextWithInterpolation(E.text,E.sourceSpan,null)}),new rB(s,r,t.sourceSpan,n)}visitExpansionCase(t){return null}visitComment(t){return this.options.collectCommentNodes&&this.commentNodes.push(new iM(t.value||"",t.sourceSpan)),null}visitLetDeclaration(t,n){const s=this.bindingParser.parseBinding(t.value,!1,t.valueSpan,t.valueSpan.start.offset);return 0===s.errors.length&&s.ast instanceof wu&&this.reportError("@let declaration value cannot be empty",t.valueSpan),new GP(t.name,s,t.sourceSpan,t.nameSpan,t.valueSpan)}visitComponent(t){const n=KM(t.i18n);if(n&&(this.inI18nBlock&&this.reportError("Cannot mark a component as translatable inside of a translatable section. Please remove the nested i18n marker.",t.sourceSpan),this.inI18nBlock=!0),null!==t.tagName&&qW.has(t.tagName))return this.reportError(`Tag name "${t.tagName}" cannot be used as a component tag`,t.startSourceSpan),null;const{attributes:s,boundEvents:r,references:l,templateVariables:E,elementHasInlineTemplate:N,parsedProperties:ae,templateParsedProperties:ze,i18nAttrsMeta:dt}=this.prepareAttributes(t.attrs,!1);this.validateSelectorlessReferences(l);const Kt=this.extractDirectives(t);let Vn;Vn=t.attrs.find(Di=>"ngNonBindable"===Di.name)?tr(sL,t.children).flat(1/0):tr(this,t.children,t.children);const ci=this.categorizePropertyAttributes(t.tagName,ae,dt);let Vi=new GS(t.componentName,t.tagName,t.fullName,s,ci.bound,r,Kt,Vn,l,t.isSelfClosing,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n);return N&&(Vi=this.wrapInTemplate(Vi,ze,E,dt,!1,n)),n&&(this.inI18nBlock=!1),Vi}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(t,n){const s=Array.isArray(n)?n.indexOf(t):-1;if(-1===s)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(t))return null;let r=null;switch(t.name){case"defer":r=function WW(o,t,n,s){const r=[],{placeholder:l,loading:E,error:N}=function zW(o,t,n){let s=null,r=null,l=null;for(const E of o)try{if(!YR(E.name)){t.push(new Xs(E.startSourceSpan,`Unrecognized block "@${E.name}"`));break}switch(E.name){case"placeholder":null!==s?t.push(new Xs(E.startSourceSpan,"@defer block can only have one @placeholder block")):s=KW(E,n);break;case"loading":null!==r?t.push(new Xs(E.startSourceSpan,"@defer block can only have one @loading block")):r=XW(E,n);break;case"error":null!==l?t.push(new Xs(E.startSourceSpan,"@defer block can only have one @error block")):l=YW(E,n)}}catch(N){t.push(new Xs(E.startSourceSpan,N.message))}return{placeholder:s,loading:r,error:l}}(t,r,n),{triggers:ae,prefetchTriggers:ze,hydrateTriggers:dt}=function QW(o,t,n,s){const r={},l={},E={};for(const N of o.parameters)jW.test(N.expression)?GR(N,t,r,n):GW.test(N.expression)?WR(N,r,n,s):NW.test(N.expression)?GR(N,t,l,n):LW.test(N.expression)?WR(N,l,n,s):VW.test(N.expression)?GR(N,t,E,n):HW.test(N.expression)?WR(N,E,n,s):$W.test(N.expression)?DW(N,E,n):n.push(new Xs(N.sourceSpan,"Unrecognized trigger"));return E.never&&Object.keys(E).length>1&&n.push(new Xs(o.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:r,prefetchTriggers:l,hydrateTriggers:E}}(o,s,r,l);let Kt=o.endSourceSpan,Vn=o.sourceSpan.end;if(t.length>0){const Di=t[t.length-1];Kt=Di.endSourceSpan,Vn=Di.sourceSpan.end}const ci=new dr(o.sourceSpan.start,Vn);return{node:new US(tr(n,o.children,o.children),ae,ze,dt,l,E,N,o.nameSpan,ci,o.sourceSpan,o.startSourceSpan,Kt,o.i18n),errors:r}}(t,this.findConnectedBlocks(s,n,YR),this,this.bindingParser);break;case"switch":r=function CW(o,t,n){const s=function EW(o){const t=[];let n=!1;if(1!==o.parameters.length)return t.push(new Xs(o.startSourceSpan,"@switch block must have exactly one parameter")),t;for(const s of o.children)if(!(s instanceof V0||s instanceof Ey&&0===s.value.trim().length)){if(!(s instanceof pf)||"case"!==s.name&&"default"!==s.name){t.push(new Xs(s.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}"default"===s.name?(n?t.push(new Xs(s.startSourceSpan,"@switch block can only have one @default block")):s.parameters.length>0&&t.push(new Xs(s.startSourceSpan,"@default block cannot have parameters")),n=!0):"case"===s.name&&1!==s.parameters.length&&t.push(new Xs(s.startSourceSpan,"@case block must have exactly one parameter"))}return t}(o),r=o.parameters.length>0?CD(o.parameters[0],n):n.parseBinding("",!1,o.sourceSpan,0),l=[],E=[];let N=null;for(const ae of o.children){if(!(ae instanceof pf))continue;if(("case"!==ae.name||0===ae.parameters.length)&&"default"!==ae.name){E.push(new oB(ae.name,ae.sourceSpan,ae.nameSpan));continue}const ze="case"===ae.name?CD(ae.parameters[0],n):null,dt=new UP(ze,tr(t,ae.children,ae.children),ae.sourceSpan,ae.startSourceSpan,ae.endSourceSpan,ae.nameSpan,ae.i18n);null===ze?N=dt:l.push(dt)}return null!==N&&l.push(N),{node:new nB(r,l,E,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.nameSpan),errors:s}}(t,this,this.bindingParser);break;case"for":r=function vW(o,t,n,s){const r=[],l=function yW(o,t,n){if(0===o.parameters.length)return t.push(new Xs(o.startSourceSpan,"@for loop does not have an expression")),null;const[s,...r]=o.parameters,l=function OW(o,t){const n=o.expression,s=/^\s$/;let r=0,l=0,E=n.length-1;for(let N=0;N<n.length;N++){const ae=n[N];if("("!==ae){if(s.test(ae))continue;break}l=N+1,r++}if(0===r)return n;for(let N=n.length-1;N>-1;N--){const ae=n[N];if(")"!==ae){if(s.test(ae))continue;break}if(E=N,r--,0===r)break}return 0!==r?(t.push(new Xs(o.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(l,E)}(s,t)?.match(hW);if(!l||0===l[2].trim().length)return t.push(new Xs(s.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;const[,E,N]=l;vD.has(E)&&t.push(new Xs(s.sourceSpan,`@for loop item name cannot be one of ${Array.from(vD).join(", ")}.`));const ae=s.expression.split(" ")[0],ze=new dr(s.sourceSpan.start,s.sourceSpan.start.moveBy(ae.length)),dt={itemName:new p0(E,"$implicit",ze,ze),trackBy:null,expression:CD(s,n,N),context:Array.from(vD,Kt=>{const Vn=new dr(o.startSourceSpan.end,o.startSourceSpan.end);return new p0(Kt,Kt,Vn,Vn)})};for(const Kt of r){const Vn=Kt.expression.match(fW);if(null!==Vn){const Vi=new dr(Kt.sourceSpan.start.moveBy(Vn[0].length-Vn[1].length),Kt.sourceSpan.end);bW(Kt.sourceSpan,Vn[1],Vi,E,dt.context,t);continue}const ci=Kt.expression.match(pW);if(null===ci)t.push(new Xs(Kt.sourceSpan,`Unrecognized @for loop parameter "${Kt.expression}"`));else if(null!==dt.trackBy)t.push(new Xs(Kt.sourceSpan,'@for loop can only have one "track" expression'));else{const Vi=CD(Kt,n,ci[1]);Vi.ast instanceof wu&&t.push(new Xs(o.startSourceSpan,'@for loop must have a "track" expression'));const Di=new dr(Kt.sourceSpan.start,Kt.sourceSpan.start.moveBy(5));dt.trackBy={expression:Vi,keywordSpan:Di}}}return dt}(o,r,s);let E=null,N=null;for(const ae of t)"empty"===ae.name?null!==N?r.push(new Xs(ae.sourceSpan,"@for loop can only have one @empty block")):ae.parameters.length>0?r.push(new Xs(ae.sourceSpan,"@empty block cannot have parameters")):N=new jP(tr(n,ae.children,ae.children),ae.sourceSpan,ae.startSourceSpan,ae.endSourceSpan,ae.nameSpan,ae.i18n):r.push(new Xs(ae.sourceSpan,`Unrecognized @for loop block "${ae.name}"`));if(null!==l)if(null===l.trackBy)r.push(new Xs(o.startSourceSpan,'@for loop must have a "track" expression'));else{const ae=N?.endSourceSpan??o.endSourceSpan,ze=new dr(o.sourceSpan.start,ae?.end??o.sourceSpan.end);E=new rM(l.itemName,l.expression,l.trackBy.expression,l.trackBy.keywordSpan,l.context,tr(n,o.children,o.children),N,ze,o.sourceSpan,o.startSourceSpan,ae,o.nameSpan,o.i18n)}return{node:E,errors:r}}(t,this.findConnectedBlocks(s,n,YN),this,this.bindingParser);break;case"if":r=function _W(o,t,n,s){const r=function xW(o){const t=[];let n=!1;for(let s=0;s<o.length;s++){const r=o[s];"else"===r.name?(n?t.push(new Xs(r.startSourceSpan,"Conditional can only have one @else block")):o.length>1&&s<o.length-1?t.push(new Xs(r.startSourceSpan,"@else block must be last inside the conditional")):r.parameters.length>0&&t.push(new Xs(r.startSourceSpan,"@else block cannot have parameters")),n=!0):qM.test(r.name)||t.push(new Xs(r.startSourceSpan,`Unrecognized conditional block @${r.name}`))}return t}(t),l=[],E=ZN(o,r,s);null!==E&&l.push(new jS(E.expression,tr(n,o.children,o.children),E.expressionAlias,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.nameSpan,o.i18n));for(const Kt of t)if(qM.test(Kt.name)){const Vn=ZN(Kt,r,s);if(null!==Vn){const ci=tr(n,Kt.children,Kt.children);l.push(new jS(Vn.expression,ci,Vn.expressionAlias,Kt.sourceSpan,Kt.startSourceSpan,Kt.endSourceSpan,Kt.nameSpan,Kt.i18n))}}else if("else"===Kt.name){const Vn=tr(n,Kt.children,Kt.children);l.push(new jS(null,Vn,null,Kt.sourceSpan,Kt.startSourceSpan,Kt.endSourceSpan,Kt.nameSpan,Kt.i18n))}const ae=l.length>0?l[l.length-1].endSourceSpan:o.endSourceSpan;let ze=o.sourceSpan;const dt=l[l.length-1];return void 0!==dt&&(ze=new dr((l.length>0?l[0].startSourceSpan:o.startSourceSpan).start,dt.sourceSpan.end)),{node:new iB(l,ze,o.startSourceSpan,ae,o.nameSpan),errors:r}}(t,this.findConnectedBlocks(s,n,QN),this,this.bindingParser);break;default:let l;YR(t.name)?(l=`@${t.name} block can only be used after an @defer block.`,this.processedNodes.add(t)):YN(t.name)?(l=`@${t.name} block can only be used after an @for block.`,this.processedNodes.add(t)):QN(t.name)?(l=`@${t.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(t)):l=`Unrecognized block @${t.name}.`,r={node:new oB(t.name,t.sourceSpan,t.nameSpan),errors:[new Xs(t.sourceSpan,l)]}}return this.errors.push(...r.errors),r.node}findConnectedBlocks(t,n,s){const r=[];for(let l=t+1;l<n.length;l++){const E=n[l];if(!(E instanceof V0)){if(E instanceof Ey&&0===E.value.trim().length){this.processedNodes.add(E);continue}if(!(E instanceof pf&&s(E.name)))break;r.push(E),this.processedNodes.add(E)}}return r}categorizePropertyAttributes(t,n,s){const r=[],l=[];return n.forEach(E=>{const N=s[E.name];if(E.isLiteral)l.push(new sM(E.name,E.expression.source||"",E.sourceSpan,E.keySpan,E.valueSpan,N));else{const ae=this.bindingParser.createBoundElementProperty(t,E,!0,!1);r.push(NP.fromBoundElementProperty(ae,N))}}),{bound:r,literal:l}}prepareAttributes(t,n){const s=[],r=[],l=[],E=[],N=[],ae={},ze=[],dt=[];let Kt=!1;for(const Vn of t){let ci=!1;const Vi=rL(Vn.name);let Di=!1;if(Vn.i18n&&(ae[Vn.name]=Vn.i18n),Vi.startsWith("*")){Kt&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",Vn.sourceSpan),Di=!0,Kt=!0;const Eo=Vn.value,uo=Vi.substring(1),Jo=[];this.bindingParser.parseInlineTemplateBinding(uo,Eo,Vn.sourceSpan,Vn.valueSpan?Vn.valueSpan.fullStart.offset:Vn.sourceSpan.fullStart.offset+Vn.name.length,[],ze,Jo,!0),dt.push(...Jo.map(Qo=>new p0(Qo.name,Qo.value,Qo.sourceSpan,Qo.keySpan,Qo.valueSpan)))}else ci=this.parseAttribute(n,Vn,[],s,r,l,E);!ci&&!Di&&N.push(this.visitAttribute(Vn))}return{attributes:N,boundEvents:r,references:E,variables:l,templateVariables:dt,elementHasInlineTemplate:Kt,parsedProperties:s,templateParsedProperties:ze,i18nAttrsMeta:ae}}parseAttribute(t,n,s,r,l,E,N){const ae=rL(n.name),ze=n.value,dt=n.sourceSpan,Kt=n.valueSpan?n.valueSpan.fullStart.offset:dt.fullStart.offset;function Vn(uo,Jo,es){const Ts=uo.start.moveBy(Jo.length+(n.name.length-ae.length)),_a=Ts.moveBy(es.length);return new dr(Ts,_a,Ts,es)}const ci=ae.match(ZW);if(ci){if(null!=ci[1]){const uo=ci[7],Jo=Vn(dt,ci[1],uo);this.bindingParser.parsePropertyBinding(uo,ze,!1,!1,dt,Kt,n.valueSpan,s,r,Jo)}else if(ci[2])if(t){const uo=ci[7],Jo=Vn(dt,ci[2],uo);this.parseVariable(uo,ze,dt,Jo,n.valueSpan,E)}else this.reportError('"let-" is only supported on ng-template elements.',dt);else if(ci[3]){const uo=ci[7],Jo=Vn(dt,ci[3],uo);this.parseReference(uo,ze,dt,Jo,n.valueSpan,N)}else if(ci[4]){const uo=[],Jo=ci[7],es=Vn(dt,ci[4],Jo);this.bindingParser.parseEvent(Jo,ze,!1,dt,n.valueSpan||dt,s,uo,es),ZR(uo,l)}else if(ci[5]){const uo=ci[7],Jo=Vn(dt,ci[5],uo);this.bindingParser.parsePropertyBinding(uo,ze,!1,!0,dt,Kt,n.valueSpan,s,r,Jo),this.parseAssignmentEvent(uo,ze,dt,n.valueSpan,s,l,Jo,Kt)}else if(ci[6]){const uo=Vn(dt,"",ae);this.bindingParser.parseLiteralAttr(ae,ze,dt,Kt,n.valueSpan,s,r,uo)}return!0}let Vi=null;if(ae.startsWith(lv_BANANA_BOX.start)?Vi=lv_BANANA_BOX:ae.startsWith(lv_PROPERTY.start)?Vi=lv_PROPERTY:ae.startsWith(lv_EVENT.start)&&(Vi=lv_EVENT),null!==Vi&&ae.endsWith(Vi.end)&&ae.length>Vi.start.length+Vi.end.length){const uo=ae.substring(Vi.start.length,ae.length-Vi.end.length),Jo=Vn(dt,Vi.start,uo);if(Vi.start===lv_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(uo,ze,!1,!0,dt,Kt,n.valueSpan,s,r,Jo),this.parseAssignmentEvent(uo,ze,dt,n.valueSpan,s,l,Jo,Kt);else if(Vi.start===lv_PROPERTY.start)this.bindingParser.parsePropertyBinding(uo,ze,!1,!1,dt,Kt,n.valueSpan,s,r,Jo);else{const es=[];this.bindingParser.parseEvent(uo,ze,!1,dt,n.valueSpan||dt,s,es,Jo),ZR(es,l)}return!0}const Di=Vn(dt,"",ae);return this.bindingParser.parsePropertyInterpolation(ae,ze,dt,n.valueSpan,s,r,Di,n.valueTokens??null)}extractDirectives(t){const n=t instanceof Kd?t.tagName:t.name,s=[],r=new Set;for(const l of t.directives){let E=!1;for(const ci of l.attrs)ci.name.startsWith("*")?(E=!0,this.reportError(`Shorthand template syntax "${ci.name}" is not supported inside a directive context`,ci.sourceSpan)):ez.has(ci.name)&&(E=!0,this.reportError(`Attribute "${ci.name}" is not supported in a directive context`,ci.sourceSpan));if(!E&&r.has(l.name)&&(E=!0,this.reportError(`Cannot apply directive "${l.name}" multiple times on the same element`,l.sourceSpan)),E)continue;const{attributes:N,parsedProperties:ae,boundEvents:ze,references:dt,i18nAttrsMeta:Kt}=this.prepareAttributes(l.attrs,!1);this.validateSelectorlessReferences(dt);const{bound:Vn}=this.categorizePropertyAttributes(n,ae,Kt);for(const ci of Vn)ci.type!==zr.Property&&ci.type!==zr.TwoWay&&(E=!0,this.reportError("Binding is not supported in a directive context",ci.sourceSpan));E||(r.add(l.name),s.push(new sB(l.name,N,Vn,ze,dt,l.sourceSpan,l.startSourceSpan,l.endSourceSpan,void 0)))}return s}filterAnimationAttributes(t){return t.filter(n=>!n.name.startsWith("animate."))}filterAnimationInputs(t){return t.filter(n=>n.type!==zr.Animation)}wrapInTemplate(t,n,s,r,l,E){const N=this.categorizePropertyAttributes("ng-template",n,r),ae=[];N.literal.forEach(Vn=>ae.push(Vn)),N.bound.forEach(Vn=>ae.push(Vn));const ze={attributes:[],inputs:[],outputs:[]};let Kt;return(t instanceof sf||t instanceof GS)&&(ze.attributes.push(...this.filterAnimationAttributes(t.attributes)),ze.inputs.push(...this.filterAnimationInputs(t.inputs)),ze.outputs.push(...t.outputs)),Kt=t instanceof GS?t.tagName:t instanceof rg?null:t.name,new rg(Kt,ze.attributes,ze.inputs,ze.outputs,[],ae,[t],[],s,!1,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,l&&E?void 0:t.i18n)}_visitTextWithInterpolation(t,n,s,r){const l=WF(t),E=this.bindingParser.parseInterpolation(l,n,s);return E?new oM(E,n,r):new cy(l,n)}parseVariable(t,n,s,r,l,E){t.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',s):0===t.length&&this.reportError("Variable does not have a name",s),E.push(new p0(t,n,s,r,l))}parseReference(t,n,s,r,l,E){t.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',s):0===t.length?this.reportError("Reference does not have a name",s):E.some(N=>N.name===t)&&this.reportError(`Reference "#${t}" is defined more than once`,s),E.push(new WP(t,n,s,r,l))}parseAssignmentEvent(t,n,s,r,l,E,N,ae){const ze=[];this.bindingParser.parseEvent(`${t}Change`,n,!0,s,r||s,l,ze,N),ZR(ze,E)}validateSelectorlessReferences(t){if(0===t.length)return;const n=new Set;for(const s of t)s.value.length>0?this.reportError("Cannot specify a value for a local reference in this context",s.valueSpan||s.sourceSpan):n.has(s.name)?this.reportError("Duplicate reference names are not allowed",s.sourceSpan):n.add(s.name)}reportError(t,n,s=q_.ERROR){this.errors.push(new Xs(n,t,s))}}const sL=new class iz{visitElement(t){const n=KN(t);if(n.type===wh.SCRIPT||n.type===wh.STYLE||n.type===wh.STYLESHEET)return null;const s=tr(this,t.children,null);return new sf(t.name,tr(this,t.attrs),[],[],[],s,[],t.isSelfClosing,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.isVoid)}visitComment(t){return null}visitAttribute(t){return new sM(t.name,t.value,t.sourceSpan,t.keySpan,t.valueSpan,t.i18n)}visitText(t){return new cy(t.value,t.sourceSpan)}visitExpansion(t){return null}visitExpansionCase(t){return null}visitBlock(t,n){const s=[new cy(t.startSourceSpan.toString(),t.startSourceSpan),...tr(this,t.children)];return null!==t.endSourceSpan&&s.push(new cy(t.endSourceSpan.toString(),t.endSourceSpan)),s}visitBlockParameter(t,n){return null}visitLetDeclaration(t,n){return new cy(`@let ${t.name} = ${t.value};`,t.sourceSpan)}visitComponent(t,n){const s=tr(this,t.children,null);return new sf(t.fullName,tr(this,t.attrs),[],[],[],s,[],t.isSelfClosing,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,!1)}visitDirective(t,n){return null}};function rL(o){return/^data-/i.test(o)?o.substring(5):o}function ZR(o,t){t.push(...o.map(n=>LP.fromParsedEvent(n)))}const sz=[" ","\n","\r","\t"];const rz=new BM;function t1(o=lp,t=!1){return new JG(new QF(new TR,t),o,rz,[])}class lL extends Xk{visit(t){t instanceof og?this.visit(t.ast):t.visit(this)}visitElement(t){this.visitAllTemplateNodes(t.attributes),this.visitAllTemplateNodes(t.inputs),this.visitAllTemplateNodes(t.outputs),this.visitAllTemplateNodes(t.directives),this.visitAllTemplateNodes(t.references),this.visitAllTemplateNodes(t.children)}visitTemplate(t){this.visitAllTemplateNodes(t.attributes),this.visitAllTemplateNodes(t.inputs),this.visitAllTemplateNodes(t.outputs),this.visitAllTemplateNodes(t.directives),this.visitAllTemplateNodes(t.templateAttrs),this.visitAllTemplateNodes(t.variables),this.visitAllTemplateNodes(t.references),this.visitAllTemplateNodes(t.children)}visitContent(t){this.visitAllTemplateNodes(t.children)}visitBoundAttribute(t){this.visit(t.value)}visitBoundEvent(t){this.visit(t.handler)}visitBoundText(t){this.visit(t.value)}visitIcu(t){Object.keys(t.vars).forEach(n=>this.visit(t.vars[n])),Object.keys(t.placeholders).forEach(n=>this.visit(t.placeholders[n]))}visitDeferredBlock(t){t.visitAll(this)}visitDeferredTrigger(t){t instanceof Jk&&this.visit(t.value)}visitDeferredBlockPlaceholder(t){this.visitAllTemplateNodes(t.children)}visitDeferredBlockError(t){this.visitAllTemplateNodes(t.children)}visitDeferredBlockLoading(t){this.visitAllTemplateNodes(t.children)}visitSwitchBlock(t){this.visit(t.expression),this.visitAllTemplateNodes(t.cases)}visitSwitchBlockCase(t){t.expression&&this.visit(t.expression),this.visitAllTemplateNodes(t.children)}visitForLoopBlock(t){t.item.visit(this),this.visitAllTemplateNodes(t.contextVariables),this.visit(t.expression),this.visitAllTemplateNodes(t.children),t.empty?.visit(this)}visitForLoopBlockEmpty(t){this.visitAllTemplateNodes(t.children)}visitIfBlock(t){this.visitAllTemplateNodes(t.branches)}visitIfBlockBranch(t){t.expression&&this.visit(t.expression),t.expressionAlias?.visit(this),this.visitAllTemplateNodes(t.children)}visitLetDeclaration(t){this.visit(t.value)}visitComponent(t){this.visitAllTemplateNodes(t.attributes),this.visitAllTemplateNodes(t.inputs),this.visitAllTemplateNodes(t.outputs),this.visitAllTemplateNodes(t.directives),this.visitAllTemplateNodes(t.references),this.visitAllTemplateNodes(t.children)}visitDirective(t){this.visitAllTemplateNodes(t.attributes),this.visitAllTemplateNodes(t.inputs),this.visitAllTemplateNodes(t.outputs),this.visitAllTemplateNodes(t.references)}visitVariable(t){}visitReference(t){}visitTextAttribute(t){}visitText(t){}visitUnknownBlock(t){}visitAllTemplateNodes(t){for(const n of t)this.visit(n)}}const JR="animate.leave";class lz extends lL{hasAnimations=!1;visitElement(t){for(const n of t.attributes)n.name===JR&&(this.hasAnimations=!0);for(const n of t.inputs)n.name===JR&&(this.hasAnimations=!0);for(const n of t.outputs)n.name===JR&&(this.hasAnimations=!0);super.visitElement(t)}}const tk="animate.leave";function cL(o,t,n){const s=new vl,r=SS(o.selector);return s.set("type",o.type.value),r.length>0&&s.set("selectors",Gd(r)),o.queries.length>0&&s.set("contentQueries",function KG(o,t,n){const s=[],r=[],l=pB(N=>r.push(N),"_t");for(const N of o){if(s.push(GN(N,t,{nonSignal:oi.contentQuery,signalBased:oi.contentQuerySignal},[zs("dirIndex")]).toStmt()),N.isSignal){r.push(LR);continue}const ae=l(),ze=ns(oi.loadQuery).callFn([]),dt=ns(oi.queryRefresh).callFn([ae.set(ze)]),Kt=zs(zS).prop(N.propertyName).set(N.first?ae.prop("first"):ae);r.push(dt.and(Kt).toStmt())}const E=n?`${n}_ContentQueries`:null;return fm([new Nn("rf",j_),new Nn(zS,null),new Nn("dirIndex",null)],[ZM(1,s),ZM(2,WN(r))],xc,null,E)}(o.queries,t,o.name)),o.viewQueries.length&&s.set("viewQuery",function zG(o,t,n){const s=[],r=[],l=pB(N=>r.push(N),"_t");o.forEach(N=>{const ae=GN(N,t,{signalBased:oi.viewQuerySignal,nonSignal:oi.viewQuery});if(s.push(ae.toStmt()),N.isSignal)return void r.push(LR);const ze=l(),dt=ns(oi.loadQuery).callFn([]),Kt=ns(oi.queryRefresh).callFn([ze.set(dt)]),Vn=zs(zS).prop(N.propertyName).set(N.first?ze.prop("first"):ze);r.push(Kt.and(Vn).toStmt())});const E=n?`${n}_Query`:null;return fm([new Nn("rf",j_),new Nn(zS,null)],[ZM(1,s),ZM(2,WN(r))],xc,null,E)}(o.viewQueries,t,o.name)),s.set("hostBindings",function gz(o,t,n,s,r,l,E){const N=n.createBoundHostProperties(o.properties,t),ae=n.createDirectiveHostEventAsts(o.listeners,t);o.specialAttributes.styleAttr&&(o.attributes.style=Ei(o.specialAttributes.styleAttr)),o.specialAttributes.classAttr&&(o.attributes.class=Ei(o.specialAttributes.classAttr));const ze=function OG(o,t,n){const s=new mF(o.componentName,n,FN,xh.DomOnly);for(const r of o.properties??[]){let l=Fs.Property;r.name.startsWith("attr.")&&(r.name=r.name.substring(5),l=Fs.Attribute),r.isLegacyAnimation&&(l=Fs.LegacyAnimation),r.isAnimation&&(l=Fs.Animation),wG(s,r,l,t.calcPossibleSecurityContexts(o.componentSelector,r.name,l===Fs.Attribute).filter(N=>N!==la.NONE))}for(const[r,l]of Object.entries(o.attributes)??[])SG(s,r,l,t.calcPossibleSecurityContexts(o.componentSelector,r,!0).filter(N=>N!==la.NONE));for(const r of o.events??[])DG(s,r);return s}({componentName:l,componentSelector:r,properties:N,events:ae,attributes:o.attributes},n,s);RN(ze,ys.Host),E.set("hostAttrs",ze.root.attributes);const dt=ze.root.vars;return null!==dt&&dt>0&&E.set("hostVars",Ei(dt)),function yG(o){if(null===o.root.fnName)throw new Error("AssertionError: host binding function is unnamed");const t=[];for(const l of o.root.create){if(l.kind!==sn.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${sn[l.kind]}`);t.push(l.statement)}const n=[];for(const l of o.root.update){if(l.kind!==sn.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${sn[l.kind]}`);n.push(l.statement)}if(0===t.length&&0===n.length)return null;const s=zM(1,t),r=zM(2,n);return fm([new Nn("rf"),new Nn("ctx")],[...s,...r],void 0,void 0,o.root.fnName)}(ze)}(o.host,o.typeSourceSpan,n,t,o.selector||"",o.name,s)),s.set("inputs",tR(o.inputs,!0)),s.set("outputs",tR(o.outputs)),null!==o.exportAs&&s.set("exportAs",hr(o.exportAs.map(l=>Ei(l)))),!1===o.isStandalone&&s.set("standalone",Ei(!1)),o.isSignal&&s.set("signals",Ei(!0)),s}function dL(o){return void 0!==o.host.attributes[tk]||void 0!==o.host.properties[tk]||void 0!==o.host.listeners[tk]}function uL(o,t){const n=[],s=t.providers,r=t.viewProviders;if(s||r){const E=[s||new Er([])];r&&E.push(r),n.push(ns(oi.ProvidersFeature).callFn(E))}if(t.hostDirectives?.length&&n.push(ns(oi.HostDirectivesFeature).callFn([Cz(t.hostDirectives)])),t.usesInheritance&&n.push(ns(oi.InheritDefinitionFeature)),t.fullInheritance&&n.push(ns(oi.CopyDefinitionFeature)),t.lifecycle.usesOnChanges&&n.push(ns(oi.NgOnChangesFeature)),"externalStyles"in t&&t.externalStyles?.length){const E=t.externalStyles.map(N=>Ei(N));n.push(ns(oi.ExternalStylesFeature).callFn([hr(E)]))}const l=t.template;(dL(t)||l&&l.nodes.length>0)&&(dL(t)||function az(o){const t=new lz;return Nr(t,o),t.hasAnimations}(l.nodes))&&n.push(ns(oi.AnimationsFeature).callFn([])),n.length&&o.set("features",hr(n))}function hL(o){const t=pL(o);return t.push(ik(o.template.ngContentSelectors)),t.push(ql(Ei(o.isStandalone))),t.push(fL(o)),o.isSignal&&t.push(ql(Ei(o.isSignal))),ql(ns(oi.ComponentDeclaration,t))}function hz(o){return ql(Ei(o))}function nk(o){return _l(Object.keys(o).map(n=>({key:n,value:Ei(Array.isArray(o[n])?o[n][0]:o[n]),quoted:!0})))}function ik(o){return o.length>0?ql(hr(o.map(t=>Ei(t)))):Ou}function pL(o){const t=null!==o.selector?o.selector.replace(/\n/g,""):null;return[QI(o.type.type,o.typeArgumentCount),null!==t?hz(t):Ou,null!==o.exportAs?ik(o.exportAs):Ou,ql(pz(o)),ql(nk(o.outputs)),ik(o.queries.map(n=>n.propertyName))]}function pz(o){return _l(Object.keys(o.inputs).map(t=>{const n=o.inputs[t],s=[{key:"alias",value:Ei(n.bindingPropertyName),quoted:!0},{key:"required",value:Ei(n.required),quoted:!0}];return n.isSignal&&s.push({key:"isSignal",value:Ei(n.isSignal),quoted:!0}),{key:t,value:_l(s),quoted:!0}}))}function gL(o){const t=pL(o);return t.push(Ou),t.push(ql(Ei(o.isStandalone))),t.push(fL(o)),o.isSignal&&t.push(ql(Ei(o.isSignal))),ql(ns(oi.DirectiveDeclaration,t))}const fz=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function fL(o){return o.hostDirectives?.length?ql(hr(o.hostDirectives.map(t=>_l([{key:"directive",value:d0(t.directive.type),quoted:!1},{key:"inputs",value:nk(t.inputs||{}),quoted:!1},{key:"outputs",value:nk(t.outputs||{}),quoted:!1}])))):Ou}function Cz(o){const t=[];let n=!1;for(const s of o){if(s.inputs||s.outputs){const r=[{key:"directive",value:s.directive.type,quoted:!1}];if(s.inputs){const l=o1(s.inputs);l&&r.push({key:"inputs",value:l,quoted:!1})}if(s.outputs){const l=o1(s.outputs);l&&r.push({key:"outputs",value:l,quoted:!1})}t.push(_l(r))}else t.push(s.directive.type);s.isForwardReference&&(n=!0)}return n?new ui([],[new Ec(hr(t))]):hr(t)}function o1(o){const t=[];for(const n in o)o.hasOwnProperty(n)&&t.push(Ei(n),Ei(o[n]));return t.length>0?hr(t):null}class _L{directiveMatcher;constructor(t){this.directiveMatcher=t}bind(t){if(!t.template&&!t.host)throw new Error("Empty bound targets are not supported");const n=new Map,s=[],r=new Set,l=new Map,E=new Map,N=new Map,ae=new Map,ze=new Map,dt=new Map,Kt=new Set,Vn=new Set,ci=[];if(t.template){const Vi=z0.apply(t.template);(function bz(o,t){const n=new Map;function s(l){if(n.has(l.rootNode))return n.get(l.rootNode);const E=l.namedEntities;let N;return N=null!==l.parentScope?new Map([...s(l.parentScope),...E]):new Map(E),n.set(l.rootNode,N),N}const r=[o];for(;r.length>0;){const l=r.pop();for(const E of l.childScopes.values())r.push(E);s(l)}for(const[l,E]of n)t.set(l,new Set(E.values()))})(Vi,N),ok.apply(t.template,this.directiveMatcher,n,s,r,l,E),xD.applyWithScope(t.template,Vi,ae,ze,dt,Kt,Vn,ci)}return t.host&&(n.set(t.host.node,t.host.directives),xD.applyWithScope(t.host.node,z0.apply(t.host.node),ae,ze,dt,Kt,Vn,ci)),new yz(t,n,s,r,l,E,ae,ze,dt,N,Kt,Vn,ci)}}class z0{parentScope;rootNode;namedEntities=new Map;elementLikeInScope=new Set;childScopes=new Map;isDeferred;constructor(t,n){this.parentScope=t,this.rootNode=n,this.isDeferred=!(null===t||!t.isDeferred)||n instanceof US}static newRootScope(){return new z0(null,null)}static apply(t){const n=z0.newRootScope();return n.ingest(t),n}ingest(t){t instanceof rg?(t.variables.forEach(n=>this.visitVariable(n)),t.children.forEach(n=>n.visit(this))):t instanceof jS?(null!==t.expressionAlias&&this.visitVariable(t.expressionAlias),t.children.forEach(n=>n.visit(this))):t instanceof rM?(this.visitVariable(t.item),t.contextVariables.forEach(n=>this.visitVariable(n)),t.children.forEach(n=>n.visit(this))):t instanceof UP||t instanceof jP||t instanceof US||t instanceof $P||t instanceof VP||t instanceof HP||t instanceof aM?t.children.forEach(n=>n.visit(this)):t instanceof zP||t.forEach(n=>n.visit(this))}visitElement(t){this.visitElementLike(t)}visitTemplate(t){t.directives.forEach(n=>n.visit(this)),t.references.forEach(n=>this.visitReference(n)),this.ingestScopedNode(t)}visitVariable(t){this.maybeDeclare(t)}visitReference(t){this.maybeDeclare(t)}visitDeferredBlock(t){this.ingestScopedNode(t),t.placeholder?.visit(this),t.loading?.visit(this),t.error?.visit(this)}visitDeferredBlockPlaceholder(t){this.ingestScopedNode(t)}visitDeferredBlockError(t){this.ingestScopedNode(t)}visitDeferredBlockLoading(t){this.ingestScopedNode(t)}visitSwitchBlock(t){t.cases.forEach(n=>n.visit(this))}visitSwitchBlockCase(t){this.ingestScopedNode(t)}visitForLoopBlock(t){this.ingestScopedNode(t),t.empty?.visit(this)}visitForLoopBlockEmpty(t){this.ingestScopedNode(t)}visitIfBlock(t){t.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(t){this.ingestScopedNode(t)}visitContent(t){this.ingestScopedNode(t)}visitLetDeclaration(t){this.maybeDeclare(t)}visitComponent(t){this.visitElementLike(t)}visitDirective(t){t.references.forEach(n=>this.visitReference(n))}visitBoundAttribute(t){}visitBoundEvent(t){}visitBoundText(t){}visitText(t){}visitTextAttribute(t){}visitIcu(t){}visitDeferredTrigger(t){}visitUnknownBlock(t){}visitElementLike(t){t.directives.forEach(n=>n.visit(this)),t.references.forEach(n=>this.visitReference(n)),t.children.forEach(n=>n.visit(this)),this.elementLikeInScope.add(t)}maybeDeclare(t){this.namedEntities.has(t.name)||this.namedEntities.set(t.name,t)}lookup(t){return this.namedEntities.has(t)?this.namedEntities.get(t):null!==this.parentScope?this.parentScope.lookup(t):null}getChildScope(t){const n=this.childScopes.get(t);if(void 0===n)throw new Error(`Assertion error: child scope for ${t} not found`);return n}ingestScopedNode(t){const n=new z0(this,t);n.ingest(t),this.childScopes.set(t,n)}}class ok{directiveMatcher;directives;eagerDirectives;missingDirectives;bindings;references;isInDeferBlock=!1;constructor(t,n,s,r,l,E){this.directiveMatcher=t,this.directives=n,this.eagerDirectives=s,this.missingDirectives=r,this.bindings=l,this.references=E}static apply(t,n,s,r,l,E,N){new ok(n,s,r,l,E,N).ingest(t)}ingest(t){t.forEach(n=>n.visit(this))}visitElement(t){this.visitElementOrTemplate(t)}visitTemplate(t){this.visitElementOrTemplate(t)}visitDeferredBlock(t){const n=this.isInDeferBlock;this.isInDeferBlock=!0,t.children.forEach(s=>s.visit(this)),this.isInDeferBlock=n,t.placeholder?.visit(this),t.loading?.visit(this),t.error?.visit(this)}visitDeferredBlockPlaceholder(t){t.children.forEach(n=>n.visit(this))}visitDeferredBlockError(t){t.children.forEach(n=>n.visit(this))}visitDeferredBlockLoading(t){t.children.forEach(n=>n.visit(this))}visitSwitchBlock(t){t.cases.forEach(n=>n.visit(this))}visitSwitchBlockCase(t){t.children.forEach(n=>n.visit(this))}visitForLoopBlock(t){t.item.visit(this),t.contextVariables.forEach(n=>n.visit(this)),t.children.forEach(n=>n.visit(this)),t.empty?.visit(this)}visitForLoopBlockEmpty(t){t.children.forEach(n=>n.visit(this))}visitIfBlock(t){t.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(t){t.expressionAlias?.visit(this),t.children.forEach(n=>n.visit(this))}visitContent(t){t.children.forEach(n=>n.visit(this))}visitComponent(t){if(this.directiveMatcher instanceof DI){const n=this.directiveMatcher.match(t.componentName);n.length>0?this.trackSelectorlessMatchesAndDirectives(t,n):this.missingDirectives.add(t.componentName)}t.directives.forEach(n=>n.visit(this)),t.children.forEach(n=>n.visit(this))}visitDirective(t){if(this.directiveMatcher instanceof DI){const n=this.directiveMatcher.match(t.name);n.length>0?this.trackSelectorlessMatchesAndDirectives(t,n):this.missingDirectives.add(t.name)}}visitElementOrTemplate(t){if(this.directiveMatcher instanceof lm){const n=[],s=function cV(o){const t=o instanceof sf?o.name:"ng-template",n=function dV(o){const t={};return o instanceof rg&&"ng-template"!==o.tagName?o.templateAttrs.forEach(n=>t[n.name]=""):(o.attributes.forEach(n=>{uB(n.name)||(t[n.name]=n.value)}),o.inputs.forEach(n=>{(n.type===zr.Property||n.type===zr.TwoWay)&&(t[n.name]="")}),o.outputs.forEach(n=>{t[n.name]=""})),t}(o),s=new Jp,r=sg(t)[1];return s.setElement(r),Object.getOwnPropertyNames(n).forEach(l=>{const E=sg(l)[1],N=n[l];s.addAttribute(E,N),"class"===l.toLowerCase()&&N.trim().split(/\s+/).forEach(ze=>s.addClassName(ze))}),s}(t);this.directiveMatcher.match(s,(r,l)=>n.push(...l)),this.trackSelectorBasedBindingsAndDirectives(t,n)}else t.references.forEach(n=>{""===n.value.trim()&&this.references.set(n,t)});t.directives.forEach(n=>n.visit(this)),t.children.forEach(n=>n.visit(this))}trackMatchedDirectives(t,n){n.length>0&&(this.directives.set(t,n),this.isInDeferBlock||this.eagerDirectives.push(...n))}trackSelectorlessMatchesAndDirectives(t,n){if(0===n.length)return;this.trackMatchedDirectives(t,n);const s=(r,l,E)=>{r[E].hasBindingPropertyName(l.name)&&this.bindings.set(l,r)};for(const r of n)t.inputs.forEach(l=>s(r,l,"inputs")),t.attributes.forEach(l=>s(r,l,"inputs")),t.outputs.forEach(l=>s(r,l,"outputs"));t.references.forEach(r=>this.references.set(r,{directive:n[0],node:t}))}trackSelectorBasedBindingsAndDirectives(t,n){this.trackMatchedDirectives(t,n),t.references.forEach(r=>{let l=null;if(""===r.value.trim())l=n.find(E=>E.isComponent)||null;else if(l=n.find(E=>null!==E.exportAs&&E.exportAs.some(N=>N===r.value))||null,null===l)return;this.references.set(r,null!==l?{directive:l,node:t}:t)});const s=(r,l)=>{const E=n.find(ae=>ae[l].hasBindingPropertyName(r.name));this.bindings.set(r,void 0!==E?E:t)};t.inputs.forEach(r=>s(r,"inputs")),t.attributes.forEach(r=>s(r,"inputs")),t instanceof rg&&t.templateAttrs.forEach(r=>s(r,"inputs")),t.outputs.forEach(r=>s(r,"outputs"))}visitVariable(t){}visitReference(t){}visitTextAttribute(t){}visitBoundAttribute(t){}visitBoundEvent(t){}visitBoundAttributeOrEvent(t){}visitText(t){}visitBoundText(t){}visitIcu(t){}visitDeferredTrigger(t){}visitUnknownBlock(t){}visitLetDeclaration(t){}}class xD extends lL{bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;visitNode=t=>t.visit(this);constructor(t,n,s,r,l,E,N,ae,ze){super(),this.bindings=t,this.symbols=n,this.usedPipes=s,this.eagerPipes=r,this.deferBlocks=l,this.nestingLevel=E,this.scope=N,this.rootNode=ae,this.level=ze}static applyWithScope(t,n,s,r,l,E,N,ae){new xD(s,r,E,N,ae,l,n,t instanceof rg?t:null,0).ingest(t)}ingest(t){if(t instanceof rg)t.variables.forEach(this.visitNode),t.children.forEach(this.visitNode),this.nestingLevel.set(t,this.level);else if(t instanceof jS)null!==t.expressionAlias&&this.visitNode(t.expressionAlias),t.children.forEach(this.visitNode),this.nestingLevel.set(t,this.level);else if(t instanceof rM)this.visitNode(t.item),t.contextVariables.forEach(n=>this.visitNode(n)),t.trackBy.visit(this),t.children.forEach(this.visitNode),this.nestingLevel.set(t,this.level);else if(t instanceof US){if(this.scope.rootNode!==t)throw new Error(`Assertion error: resolved incorrect scope for deferred block ${t}`);this.deferBlocks.push([t,this.scope]),t.children.forEach(n=>n.visit(this)),this.nestingLevel.set(t,this.level)}else t instanceof UP||t instanceof jP||t instanceof $P||t instanceof VP||t instanceof HP||t instanceof aM?(t.children.forEach(n=>n.visit(this)),this.nestingLevel.set(t,this.level)):t instanceof zP?this.nestingLevel.set(t,0):t.forEach(this.visitNode)}visitTemplate(t){t.inputs.forEach(this.visitNode),t.outputs.forEach(this.visitNode),t.directives.forEach(this.visitNode),t.templateAttrs.forEach(this.visitNode),t.references.forEach(this.visitNode),this.ingestScopedNode(t)}visitVariable(t){null!==this.rootNode&&this.symbols.set(t,this.rootNode)}visitReference(t){null!==this.rootNode&&this.symbols.set(t,this.rootNode)}visitDeferredBlock(t){this.ingestScopedNode(t),t.triggers.when?.value.visit(this),t.prefetchTriggers.when?.value.visit(this),t.hydrateTriggers.when?.value.visit(this),t.hydrateTriggers.never?.visit(this),t.placeholder&&this.visitNode(t.placeholder),t.loading&&this.visitNode(t.loading),t.error&&this.visitNode(t.error)}visitDeferredBlockPlaceholder(t){this.ingestScopedNode(t)}visitDeferredBlockError(t){this.ingestScopedNode(t)}visitDeferredBlockLoading(t){this.ingestScopedNode(t)}visitSwitchBlockCase(t){t.expression?.visit(this),this.ingestScopedNode(t)}visitForLoopBlock(t){t.expression.visit(this),this.ingestScopedNode(t),t.empty?.visit(this)}visitForLoopBlockEmpty(t){this.ingestScopedNode(t)}visitIfBlockBranch(t){t.expression?.visit(this),this.ingestScopedNode(t)}visitContent(t){this.ingestScopedNode(t)}visitLetDeclaration(t){super.visitLetDeclaration(t),null!==this.rootNode&&this.symbols.set(t,this.rootNode)}visitPipe(t,n){return this.usedPipes.add(t.name),this.scope.isDeferred||this.eagerPipes.add(t.name),super.visitPipe(t,n)}visitPropertyRead(t,n){return this.maybeMap(t,t.name),super.visitPropertyRead(t,n)}visitSafePropertyRead(t,n){return this.maybeMap(t,t.name),super.visitSafePropertyRead(t,n)}ingestScopedNode(t){const n=this.scope.getChildScope(t);new xD(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,n,t,this.level+1).ingest(t)}maybeMap(t,n){if(!(t.receiver instanceof z_)||t.receiver instanceof VS)return;const s=this.scope.lookup(n);null!==s&&this.bindings.set(t,s)}}class yz{target;directives;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;deferredBlocks;deferredScopes;constructor(t,n,s,r,l,E,N,ae,ze,dt,Kt,Vn,ci){this.target=t,this.directives=n,this.eagerDirectives=s,this.missingDirectives=r,this.bindings=l,this.references=E,this.exprTargets=N,this.symbols=ae,this.nestingLevel=ze,this.scopedNodeEntities=dt,this.usedPipes=Kt,this.eagerPipes=Vn,this.deferredBlocks=ci.map(Vi=>Vi[0]),this.deferredScopes=new Map(ci)}getEntitiesInScope(t){return this.scopedNodeEntities.get(t)??new Set}getDirectivesOfNode(t){return this.directives.get(t)||null}getReferenceTarget(t){return this.references.get(t)||null}getConsumerOfBinding(t){return this.bindings.get(t)||null}getExpressionTarget(t){return this.exprTargets.get(t)||null}getDefinitionNodeOfSymbol(t){return this.symbols.get(t)||null}getNestingLevel(t){return this.nestingLevel.get(t)||0}getUsedDirectives(){const t=new Set;return this.directives.forEach(n=>n.forEach(s=>t.add(s))),Array.from(t.values())}getEagerlyUsedDirectives(){const t=new Set(this.eagerDirectives);return Array.from(t.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(t,n){if(!(n instanceof eB||n instanceof tB||n instanceof qk))return null;const s=n.reference;if(null===s){let l=null;if(null!==t.placeholder)for(const E of t.placeholder.children)if(!(E instanceof iM)){if(null!==l)return null;E instanceof sf&&(l=E)}return l}const r=this.findEntityInScope(t,s);if(r instanceof WP&&this.getDefinitionNodeOfSymbol(r)!==t){const l=this.getReferenceTarget(r);if(null!==l)return this.referenceTargetToElement(l)}if(null!==t.placeholder){const l=this.findEntityInScope(t.placeholder,s),E=l instanceof WP?this.getReferenceTarget(l):null;if(null!==E)return this.referenceTargetToElement(E)}return null}isDeferred(t){for(const n of this.deferredBlocks){if(!this.deferredScopes.has(n))continue;const s=[this.deferredScopes.get(n)];for(;s.length>0;){const r=s.pop();if(r.elementLikeInScope.has(t))return!0;s.push(...r.childScopes.values())}}return!1}referencedDirectiveExists(t){return!this.missingDirectives.has(t)}findEntityInScope(t,n){const s=this.getEntitiesInScope(t);for(const r of s)if(r.name===n)return r;return null}referenceTargetToElement(t){return t instanceof sf?t:t instanceof rg||t.node instanceof GS||t.node instanceof sB||t.node instanceof zP?null:this.referenceTargetToElement(t.node)}}class sk{}class xz{jitEvaluator;FactoryTarget=rp;ResourceLoader=sk;elementSchemaRegistry=new BM;constructor(t=new AV){this.jitEvaluator=t}compilePipe(t,n,s){const l=$B({name:s.name,type:ec(s.type),typeArgumentCount:0,deps:null,pipeName:s.pipeName,pure:s.pure,isStandalone:s.isStandalone});return this.jitExpression(l.expression,t,n,[])}compilePipeDeclaration(t,n,s){const l=$B(function Vz(o){return{name:o.type.name,type:ec(o.type),typeArgumentCount:0,pipeName:o.name,deps:null,pure:o.pure??!0,isStandalone:o.isStandalone??Bk(o.version)}}(s));return this.jitExpression(l.expression,t,n,[])}compileInjectable(t,n,s){const{expression:r,statements:l}=gB({name:s.name,type:ec(s.type),typeArgumentCount:s.typeArgumentCount,providedIn:SL(s.providedIn),useClass:K0(s,"useClass"),useFactory:wL(s,"useFactory"),useValue:K0(s,"useValue"),useExisting:K0(s,"useExisting"),deps:s.deps?.map(DL)},!0);return this.jitExpression(r,t,n,l)}compileInjectableDeclaration(t,n,s){const{expression:r,statements:l}=gB({name:s.type.name,type:ec(s.type),typeArgumentCount:0,providedIn:SL(s.providedIn),useClass:K0(s,"useClass"),useFactory:wL(s,"useFactory"),useValue:K0(s,"useValue"),useExisting:K0(s,"useExisting"),deps:s.deps?.map(TL)},!0);return this.jitExpression(r,t,n,l)}compileInjector(t,n,s){const l=LB({name:s.name,type:ec(s.type),providers:s.providers&&s.providers.length>0?new yr(s.providers):null,imports:s.imports.map(E=>new yr(E))});return this.jitExpression(l.expression,t,n,[])}compileInjectorDeclaration(t,n,s){const r=function Hz(o){return{name:o.type.name,type:ec(o.type),providers:void 0!==o.providers&&o.providers.length>0?new yr(o.providers):null,imports:void 0!==o.imports?o.imports.map(t=>new yr(t)):[]}}(s),l=LB(r);return this.jitExpression(l.expression,t,n,[])}compileNgModule(t,n,s){const l=RV({kind:_m.Global,type:ec(s.type),bootstrap:s.bootstrap.map(ec),declarations:s.declarations.map(ec),publicDeclarationTypes:null,imports:s.imports.map(ec),includeImportTypes:!0,exports:s.exports.map(ec),selectorScopeMode:fM.Inline,containsForwardDecls:!1,schemas:s.schemas?s.schemas.map(ec):null,id:s.id?new yr(s.id):null});return this.jitExpression(l.expression,t,n,[])}compileNgModuleDeclaration(t,n,s){const r=function kV(o){const t=new vl;return t.set("type",new yr(o.type)),void 0!==o.bootstrap&&t.set("bootstrap",new yr(o.bootstrap)),void 0!==o.declarations&&t.set("declarations",new yr(o.declarations)),void 0!==o.imports&&t.set("imports",new yr(o.imports)),void 0!==o.exports&&t.set("exports",new yr(o.exports)),void 0!==o.schemas&&t.set("schemas",new yr(o.schemas)),void 0!==o.id&&t.set("id",new yr(o.id)),ns(oi.defineNgModule).callFn([t.toLiteralMap()])}(s);return this.jitExpression(r,t,n,[])}compileDirective(t,n,s){const r=bL(s);return this.compileDirectiveFromMeta(t,n,r)}compileDirectiveDeclaration(t,n,s){const l=xL(s,this.createParseSourceSpan("Directive",s.type.name,n));return this.compileDirectiveFromMeta(t,n,l)}compileDirectiveFromMeta(t,n,s){const r=new Mk,E=function cz(o,t,n){const s=cL(o,t,n);return uL(s,o),{expression:ns(oi.defineDirective).callFn([s.toLiteralMap()],void 0,!0),type:gL(o),statements:[]}}(s,r,t1());return this.jitExpression(E.expression,t,n,r.statements)}compileComponent(t,n,s){const{template:r,interpolation:l,defer:E}=OL(s.template,s.name,n,s.preserveWhitespaces,s.interpolation,void 0),N={...s,...bL(s),selector:s.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,declarations:s.declarations.map(Sz),declarationListEmitMode:0,defer:E,styles:[...s.styles,...r.styles],encapsulation:s.encapsulation,interpolation:l,changeDetection:s.changeDetection??null,animations:null!=s.animations?new yr(s.animations):null,viewProviders:null!=s.viewProviders?new yr(s.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null};return this.compileComponentFromMeta(t,`ng:///${s.name}.js`,N)}compileComponentDeclaration(t,n,s){const l=function wz(o,t,n){const{template:s,interpolation:r,defer:l}=OL(o.template,o.type.name,n,o.preserveWhitespaces??!1,o.interpolation,o.deferBlockDependencies),E=[];if(o.dependencies)for(const ae of o.dependencies)switch(ae.kind){case"directive":case"component":E.push(rk(ae));break;case"pipe":E.push(Tz(ae))}else(o.components||o.directives||o.pipes)&&(o.components&&E.push(...o.components.map(ae=>rk(ae,!0))),o.directives&&E.push(...o.directives.map(ae=>rk(ae))),o.pipes&&E.push(...function Dz(o){return o?Object.keys(o).map(t=>({kind:vm.Pipe,name:t,type:new yr(o[t])})):[]}(o.pipes)));const N=E.some(({kind:ae})=>ae===vm.Directive||ae===vm.NgModule);return{...xL(o,t),template:s,styles:o.styles??[],declarations:E,viewProviders:void 0!==o.viewProviders?new yr(o.viewProviders):null,animations:void 0!==o.animations?new yr(o.animations):null,defer:l,changeDetection:o.changeDetection??JC.Default,encapsulation:o.encapsulation??Eu.Emulated,interpolation:r,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:N}}(s,this.createParseSourceSpan("Component",s.type.name,n),n);return this.compileComponentFromMeta(t,n,l)}compileComponentFromMeta(t,n,s){const r=new Mk,E=function dz(o,t,n){const s=cL(o,t,n);uL(s,o);const r=o.selector&&Jp.parse(o.selector),l=r&&r[0];if(l){const Vi=l.getAttrs();Vi.length&&s.set("attrs",t.getConstLiteral(hr(Vi.map(Di=>Ei(null!=Di?Di:void 0))),!0))}let N=null;if(1===o.defer.mode&&null!==o.defer.dependenciesFn){const Vi=`${o.name}_DeferFn`;t.statements.push(new al(Vi,o.defer.dependenciesFn,void 0,el.Final)),N=zs(Vi)}const ze=function EG(o,t,n,s,r,l,E,N,ae,ze){const dt=new CR(o,n,FN,s,r,l,E,N,ae,ze);return Em(dt.root,t),dt}(o.name,o.template.nodes,t,o.isStandalone&&!o.hasDirectiveDependencies?xh.DomOnly:xh.Full,o.relativeContextFilePath,o.i18nUseExternalIds,o.defer,N,o.relativeTemplatePath,!1);RN(ze,ys.Tmpl);const dt=CG(ze,t);if(null!==ze.contentSelectors&&s.set("ngContentSelectors",ze.contentSelectors),s.set("decls",Ei(ze.root.decls)),s.set("vars",Ei(ze.root.vars)),ze.consts.length>0&&s.set("consts",ze.constsInitializers.length>0?Na([],[...ze.constsInitializers,new Ec(hr(ze.consts))]):hr(ze.consts)),s.set("template",dt),3!==o.declarationListEmitMode&&o.declarations.length>0)s.set("dependencies",function uz(o,t){switch(t){case 0:return o;case 1:return Na([],o);case 2:return Na([],o.prop("map").callFn([ns(oi.resolveForwardRef)]));case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}(hr(o.declarations.map(Vi=>Vi.type)),o.declarationListEmitMode));else if(3===o.declarationListEmitMode){const Vi=[o.type.value];o.rawImports&&Vi.push(o.rawImports),s.set("dependencies",ns(oi.getComponentDepsFactory).callFn(Vi))}null===o.encapsulation&&(o.encapsulation=Eu.Emulated);let Kt=!!o.externalStyles?.length;if(o.styles&&o.styles.length){const Di=(o.encapsulation==Eu.Emulated?function vz(o,t,n){const s=new jB;return o.map(r=>s.shimCssText(r,t,n))}(o.styles,"_ngcontent-%COMP%","_nghost-%COMP%"):o.styles).reduce((Eo,uo)=>(uo.trim().length>0&&Eo.push(t.getConstLiteral(Ei(uo))),Eo),[]);Di.length>0&&(Kt=!0,s.set("styles",hr(Di)))}return!Kt&&o.encapsulation===Eu.Emulated&&(o.encapsulation=Eu.None),o.encapsulation!==Eu.Emulated&&s.set("encapsulation",Ei(o.encapsulation)),null!==o.animations&&s.set("data",_l([{key:"animation",value:o.animations,quoted:!1}])),null!==o.changeDetection&&("number"==typeof o.changeDetection&&o.changeDetection!==JC.Default?s.set("changeDetection",Ei(o.changeDetection)):"object"==typeof o.changeDetection&&s.set("changeDetection",o.changeDetection)),{expression:ns(oi.defineComponent).callFn([s.toLiteralMap()],void 0,!0),type:hL(o),statements:[]}}(s,r,t1(s.interpolation));return this.jitExpression(E.expression,t,n,r.statements)}compileFactory(t,n,s){const r=ry({name:s.name,type:ec(s.type),typeArgumentCount:s.typeArgumentCount,deps:(o=s.deps,null==o?null:o.map(DL)),target:s.target});var o;return this.jitExpression(r.expression,t,n,r.statements)}compileFactoryDeclaration(t,n,s){const r=ry({name:s.type.name,type:ec(s.type),typeArgumentCount:0,deps:Array.isArray(s.deps)?s.deps.map(TL):s.deps,target:s.target});return this.jitExpression(r.expression,t,n,r.statements)}createParseSourceSpan(t,n,s){return function EV(o,t,n){const r=new lR("",`in ${o} ${t} in ${n}`);return new dr(new fy(r,-1,-1,-1),new fy(r,-1,-1,-1))}(t,n,s)}jitExpression(t,n,s,r){const l=[...r,new al("$def",t,void 0,el.Exported)];return this.jitEvaluator.evaluateStatements(s,l,new PV(n),!0).$def}}function vL(o){return{...o,isSignal:o.isSignal,predicate:yL(o.predicate),read:o.read?new yr(o.read):null,static:o.static,emitDistinctChangesOnly:o.emitDistinctChangesOnly}}function CL(o){return{propertyName:o.propertyName,first:o.first??!1,predicate:yL(o.predicate),descendants:o.descendants??!1,read:o.read?new yr(o.read):null,static:o.static??!1,emitDistinctChangesOnly:o.emitDistinctChangesOnly??!0,isSignal:!!o.isSignal}}function yL(o){return Array.isArray(o)?o:xP(new yr(o),1)}function bL(o){const t=function Lz(o){return o.reduce((t,n)=>{if("string"==typeof n){const[s,r]=IL(n);t[r]={bindingPropertyName:s,classPropertyName:r,required:!1,isSignal:!1,transformFunction:null}}else t[n.name]={bindingPropertyName:n.alias||n.name,classPropertyName:n.name,required:n.required||!1,isSignal:!1,transformFunction:null!=n.transform?new yr(n.transform):null};return t},{})}(o.inputs||[]),n=ak(o.outputs||[]),s=o.propMetadata,r={},l={};for(const N in s)s.hasOwnProperty(N)&&s[N].forEach(ae=>{kz(ae)?r[N]={bindingPropertyName:ae.alias||N,classPropertyName:N,required:ae.required||!1,isSignal:!!ae.isSignal,transformFunction:null!=ae.transform?new yr(ae.transform):null}:Bz(ae)&&(l[N]=ae.alias||N)});const E=o.hostDirectives?.length?o.hostDirectives.map(N=>"function"==typeof N?{directive:ec(N),inputs:null,outputs:null,isForwardReference:!1}:{directive:ec(N.directive),isForwardReference:!1,inputs:N.inputs?ak(N.inputs):null,outputs:N.outputs?ak(N.outputs):null}):null;return{...o,typeArgumentCount:0,typeSourceSpan:o.typeSourceSpan,type:ec(o.type),deps:null,host:{...Mz(o.propMetadata,o.typeSourceSpan,o.host)},inputs:{...t,...r},outputs:{...n,...l},queries:o.queries.map(vL),providers:null!=o.providers?new yr(o.providers):null,viewQueries:o.viewQueries.map(vL),fullInheritance:!1,hostDirectives:E}}function xL(o,t){const n=o.hostDirectives?.length?o.hostDirectives.map(s=>({directive:ec(s.directive),isForwardReference:!1,inputs:s.inputs?EL(s.inputs):null,outputs:s.outputs?EL(s.outputs):null})):null;return{name:o.type.name,type:ec(o.type),typeSourceSpan:t,selector:o.selector??null,inputs:o.inputs?Fz(o.inputs):{},outputs:o.outputs??{},host:Ez(o.host),queries:(o.queries??[]).map(CL),viewQueries:(o.viewQueries??[]).map(CL),providers:void 0!==o.providers?new yr(o.providers):null,exportAs:o.exportAs??null,usesInheritance:o.usesInheritance??!1,lifecycle:{usesOnChanges:o.usesOnChanges??!1},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:o.isStandalone??Bk(o.version),isSignal:o.isSignal??!1,hostDirectives:n}}function Ez(o={}){return{attributes:Oz(o.attributes??{}),listeners:o.listeners??{},properties:o.properties??{},specialAttributes:{classAttr:o.classAttribute,styleAttr:o.styleAttribute}}}function EL(o){let t=null;for(let n=1;n<o.length;n+=2)t=t||{},t[o[n-1]]=o[n];return t}function Oz(o){const t={};for(const n of Object.keys(o))t[n]=new yr(o[n]);return t}function Sz(o){return{...o,type:new yr(o.type)}}function rk(o,t=null){return{kind:vm.Directive,isComponent:t||"component"===o.kind,selector:o.selector,type:new yr(o.type),inputs:o.inputs??[],outputs:o.outputs??[],exportAs:o.exportAs??null}}function Tz(o){return{kind:vm.Pipe,name:o.name,type:new yr(o.type)}}function OL(o,t,n,s,r,l){const E=r?cM.fromArray(r):lp,N=function aL(o,t,n={}){const{interpolationConfig:s,preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:l}=n,E=n.enableSelectorless??!1,N=t1(s,E),ze=(new zN).parse(o,t,{leadingTriviaChars:sz,...n,tokenizeExpansionForms:!0,tokenizeBlocks:n.enableBlockSyntax??!0,tokenizeLet:n.enableLetSyntax??!0,selectorlessEnabled:E});if(!n.alwaysAttemptHtmlToR3AstConversion&&ze.errors&&ze.errors.length>0){const Ts={interpolationConfig:s,preserveWhitespaces:r,errors:ze.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(Ts.commentNodes=[]),Ts}let dt=ze.rootNodes;const Kt=!(n.preserveSignificantWhitespace??1),Vn=new oN(s,!r,l,void 0,n.preserveSignificantWhitespace,Kt),ci=Vn.visitAllWithErrors(dt);if(!n.alwaysAttemptHtmlToR3AstConversion&&ci.errors&&ci.errors.length>0){const Ts={interpolationConfig:s,preserveWhitespaces:r,errors:ci.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(Ts.commentNodes=[]),Ts}dt=ci.rootNodes,r||(dt=tr(new DR(!0,void 0,!1),dt),Vn.hasI18nMeta&&(dt=tr(new oN(s,!1,void 0,void 0,!0,Kt),dt)));const{nodes:Vi,errors:Di,styleUrls:Eo,styles:uo,ngContentSelectors:Jo,commentNodes:es}=function tz(o,t,n){const s=new nz(t,n),E={nodes:tr(s,o,o),errors:t.errors.concat(s.errors),styleUrls:s.styleUrls,styles:s.styles,ngContentSelectors:s.ngContentSelectors};return n.collectCommentNodes&&(E.commentNodes=s.commentNodes),E}(dt,N,{collectCommentNodes:!!n.collectCommentNodes});Di.push(...ze.errors,...ci.errors);const Qo={interpolationConfig:s,preserveWhitespaces:r,errors:Di.length>0?Di:null,nodes:Vi,styleUrls:Eo,styles:uo,ngContentSelectors:Jo};return n.collectCommentNodes&&(Qo.commentNodes=es),Qo}(o,n,{preserveWhitespaces:s,interpolationConfig:E});if(null!==N.errors){const dt=N.errors.map(Kt=>Kt.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${t}: ${dt}`)}return{template:N,interpolation:E,defer:Iz(new _L(null).bind({template:N.nodes}),l)}}function K0(o,t){if(o.hasOwnProperty(t))return xP(new yr(o[t]),0)}function wL(o,t){if(o.hasOwnProperty(t))return new yr(o[t])}function SL(o){return xP("function"==typeof o?new yr(o):new qa(o??null),0)}function DL(o){const t=null!=o.attribute,n=null===o.token?null:new yr(o.token);return AL(t?new yr(o.attribute):n,t,o.host,o.optional,o.self,o.skipSelf)}function TL(o){const t=o.attribute??!1;return AL(null===o.token?null:new yr(o.token),t,o.host??!1,o.optional??!1,o.self??!1,o.skipSelf??!1)}function AL(o,t,n,s,r,l){return{token:o,attributeNameType:t?Ei("unknown"):null,host:n,optional:s,self:r,skipSelf:l}}function Iz(o,t){const n=o.getDeferBlocks(),s=new Map;for(let r=0;r<n.length;r++){const l=t?.[r];s.set(n[r],l?new yr(l):null)}return{mode:0,blocks:s}}function Mz(o,t,n){const s=function mz(o){const t={},n={},s={},r={};for(const l of Object.keys(o)){const E=o[l],N=l.match(fz);if(null===N)switch(l){case"class":if("string"!=typeof E)throw new Error("Class binding must be string");r.classAttr=E;break;case"style":if("string"!=typeof E)throw new Error("Style binding must be string");r.styleAttr=E;break;default:t[l]="string"==typeof E?Ei(E):E}else if(null!=N[1]){if("string"!=typeof E)throw new Error("Property binding must be string");s[N[1]]=E}else if(null!=N[2]){if("string"!=typeof E)throw new Error("Event binding must be string");n[N[2]]=E}}return{attributes:t,listeners:n,properties:s,specialAttributes:r}}(n||{}),r=function _z(o,t){const n=t1();return n.createDirectiveHostEventAsts(o.listeners,t),n.createBoundHostProperties(o.properties,t),n.errors}(s,t);if(r.length)throw new Error(r.map(l=>l.msg).join("\n"));for(const l in o)o.hasOwnProperty(l)&&o[l].forEach(E=>{Pz(E)?s.properties[E.hostPropertyName||l]=R2("this",l):Rz(E)&&(s.listeners[E.eventName||l]=`${l}(${(E.args||[]).join(",")})`)});return s}function Pz(o){return"HostBinding"===o.ngMetadataName}function Rz(o){return"HostListener"===o.ngMetadataName}function kz(o){return"Input"===o.ngMetadataName}function Bz(o){return"Output"===o.ngMetadataName}function Fz(o){return Object.keys(o).reduce((t,n)=>{const s=o[n];return t[n]="string"==typeof s||Array.isArray(s)?function Nz(o){return"string"==typeof o?{bindingPropertyName:o,classPropertyName:o,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:o[0],classPropertyName:o[1],transformFunction:o[2]?new yr(o[2]):null,required:!1,isSignal:!1}}(s):{bindingPropertyName:s.publicName,classPropertyName:n,transformFunction:null!==s.transformFunction?new yr(s.transformFunction):null,required:s.isRequired,isSignal:s.isSignal},t},{})}function ak(o){return o.reduce((t,n)=>{const[s,r]=IL(n);return t[r]=s,t},{})}function IL(o){const[t,n]=o.split(":",2).map(s=>s.trim());return[n??t,t]}class ML{defaultEncapsulation;preserveWhitespaces;strictInjectionParameters;constructor({defaultEncapsulation:t=Eu.Emulated,preserveWhitespaces:n,strictInjectionParameters:s}={}){this.defaultEncapsulation=t,this.preserveWhitespaces=function Uz(o,t=!1){return null===o?t:o}(function y2(o){return void 0===o?null:o}(n)),this.strictInjectionParameters=!0===s}}new class qz{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(t){return!1}isClosedByChild(t){return!1}getContentType(){return nf.PARSABLE_DATA}},new class x2{full;major;minor;patch;constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}("20.2.4"),function $z(o){(o.ng||(o.ng={})).\u0275compilerFacade=new xz}(BS),new k.RxE("20.2.4");const iK=[{provide:e.Ql9,useFactory:()=>new e.Ql9}];class ZL{_defaultOptions;constructor(t){this._defaultOptions=[{defaultEncapsulation:e.gXe.Emulated},...t]}createCompiler(t=[]){const n=function oK(o){return{defaultEncapsulation:JL(o.map(t=>t.defaultEncapsulation)),providers:sK(o.map(t=>t.providers)),preserveWhitespaces:JL(o.map(t=>t.preserveWhitespaces))}}(this._defaultOptions.concat(t));return m.zZn.create({providers:[iK,{provide:ML,useFactory:()=>new ML({defaultEncapsulation:n.defaultEncapsulation,preserveWhitespaces:n.preserveWhitespaces}),deps:[]},n.providers]}).get(e.Ql9)}}function JL(o){for(let t=o.length-1;t>=0;t--)if(void 0!==o[t])return o[t]}function sK(o){const t=[];return o.forEach(n=>n&&t.push(...n)),t}let rK=(()=>{class o extends sk{get(n){let s,r;const l=new Promise((N,ae)=>{s=N,r=ae}),E=new XMLHttpRequest;return E.open("GET",n,!0),E.responseType="text",E.onload=function(){const N=E.response;let ae=E.status;0===ae&&(ae=N?200:0),200<=ae&&ae<=300?s(N):r(`Failed to load ${n}`)},E.onerror=function(){r(`Failed to load ${n}`)},E.send(),l}static \u0275fac=(()=>{let n;return function(r){return(n||(n=e.xGo(o)))(r||o)}})();static \u0275prov=m.jDH({token:o,factory:o.\u0275fac})}return o})();(0,k.oH4)(K,"browserDynamic",[{provide:e.d80,useValue:{providers:[{provide:sk,useClass:rK,deps:[]}]},multi:!0},{provide:e.OfE,useClass:ZL,deps:[e.d80]}]);const lK=JSON.parse('{"de":{"Yes":"Ja","No":"Nein","Cancel":"Abbrechen","Close":"Schlie\xdfen","Clear":"L\xf6schen","Done":"Fertig","Loading":"Laden...","Select":"Ausw\xe4hlen...","Search":"Suchen...","Back":"Zur\xfcck","OK":"OK","dxCollectionWidget-noDataText":"Keine Daten verf\xfcgbar","dxDropDownEditor-selectLabel":"Ausw\xe4hlen","validation-required":"Pflichtfeld","validation-required-formatted":"{0} ist ein Pflichtfeld","validation-numeric":"Der Wert muss eine Zahl sein","validation-numeric-formatted":"{0} muss eine Zahl sein","validation-range":"Der Wert ist nicht im g\xfcltigen Bereich","validation-range-formatted":"{0} ist nicht im g\xfcltigen Bereich","validation-stringLength":"Die L\xe4nge des Wertes ist nicht korrekt","validation-stringLength-formatted":"Die L\xe4nge von {0} ist nicht korrekt","validation-custom":"Der Wert ist ung\xfcltig","validation-custom-formatted":"{0} ist ung\xfcltig","validation-async":"Der Wert ist ung\xfcltig","validation-async-formatted":"{0} ist ung\xfcltig","validation-compare":"Der Wert ist unpassend","validation-compare-formatted":"{0} ist unpassend","validation-pattern":"Der Wert passt nicht zum Muster","validation-pattern-formatted":"{0} passt nicht zum Muster","validation-email":"Die Email-Adresse ist ung\xfcltig","validation-email-formatted":"{0} ist ung\xfcltig","validation-mask":"Der Wert ist ung\xfcltig","dxLookup-searchPlaceholder":"Minimale Anzahl Zeichen: {0}","dxList-pullingDownText":"Zum Aktualisieren nach unten ziehen","dxList-pulledDownText":"Zum Aktualisieren loslassen","dxList-refreshingText":"Aktualisiere...","dxList-pageLoadingText":"Laden...","dxList-nextButtonText":"Mehr","dxList-selectAll":"Alles ausw\xe4hlen","dxList-listAriaLabel":"Items","dxList-listAriaLabel-deletable":"Deletable items","dxListEditDecorator-delete":"Entfernen","dxListEditDecorator-more":"Mehr","dxScrollView-pullingDownText":"Zum Aktualisieren nach unten ziehen","dxScrollView-pulledDownText":"Zum Aktualisieren loslassen","dxScrollView-refreshingText":"Aktualisiere...","dxScrollView-reachBottomText":"Laden...","dxDateBox-simulatedDataPickerTitleTime":"Zeit ausw\xe4hlen","dxDateBox-simulatedDataPickerTitleDate":"Datum ausw\xe4hlen","dxDateBox-simulatedDataPickerTitleDateTime":"Datum und Zeit ausw\xe4hlen","dxDateBox-validation-datetime":"Der Wert muss ein Datum oder eine Uhrzeit sein","dxDateRangeBox-invalidStartDateMessage":"Anfangsdatum muss ein Datum sein","dxDateRangeBox-invalidEndDateMessage":"Enddatum muss ein Datum sein","dxDateRangeBox-startDateOutOfRangeMessage":"Anfangsdatum ist ausserhalb des g\xfcltigen Bereichs","dxDateRangeBox-endDateOutOfRangeMessage":"Enddatum ist ausserhalb des g\xfcltigen Bereichs","dxDateRangeBox-startDateLabel":"Anfangsdatum","dxDateRangeBox-endDateLabel":"Enddatum","dxFileUploader-selectFile":"Datei ausw\xe4hlen","dxFileUploader-dropFile":"oder hierher ziehen","dxFileUploader-bytes":"Bytes","dxFileUploader-kb":"KB","dxFileUploader-Mb":"MB","dxFileUploader-Gb":"GB","dxFileUploader-upload":"Hochladen","dxFileUploader-uploaded":"Hochgeladen","dxFileUploader-readyToUpload":"Bereit zum Hochladen","dxFileUploader-uploadAbortedMessage":"Upload abgebrochen","dxFileUploader-uploadFailedMessage":"Fehler beim Hochladen","dxFileUploader-invalidFileExtension":"Unzul\xe4ssiger Dateityp","dxFileUploader-invalidMaxFileSize":"Datei ist zu gro\xdf","dxFileUploader-invalidMinFileSize":"Datei ist zu klein","dxRangeSlider-ariaFrom":"Von","dxRangeSlider-ariaTill":"Bis","dxSwitch-switchedOnText":"EIN","dxSwitch-switchedOffText":"AUS","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} ist ein Pflichtfeld","dxNumberBox-invalidValueMessage":"Der Wert muss eine Zahl sein","dxNumberBox-noDataText":"Keine Daten","dxDataGrid-emptyHeaderWithColumnChooserText":"Verwenden Sie die {0}, um Spalten anzuzeigen","dxDataGrid-emptyHeaderWithGroupPanelText":"Ziehen Sie eine Spalte aus dem Gruppenpanel hierher","dxDataGrid-emptyHeaderWithColumnChooserAndGroupPanelText":"Verwenden Sie die {0} oder ziehen Sie eine Spalte aus dem Gruppenpanel","dxDataGrid-emptyHeaderColumnChooserText":"Spaltenauswahl","dxDataGrid-columnChooserTitle":"Spaltenauswahl","dxDataGrid-columnChooserEmptyText":"Ziehen Sie Spalten hierhin, um sie zu verstecken","dxDataGrid-groupContinuesMessage":"Weiter auf der n\xe4chsten Seite","dxDataGrid-groupContinuedMessage":"Weiter von der vorherigen Seite","dxDataGrid-groupHeaderText":"Nach dieser Spalte gruppieren","dxDataGrid-ungroupHeaderText":"Gruppierung entfernen","dxDataGrid-ungroupAllText":"Alle Gruppierungen entfernen","dxDataGrid-editingEditRow":"Bearbeiten","dxDataGrid-editingSaveRowChanges":"Speichern","dxDataGrid-editingCancelRowChanges":"Abbrechen","dxDataGrid-editingDeleteRow":"Entfernen","dxDataGrid-editingUndeleteRow":"Wiederherstellen","dxDataGrid-editingConfirmDeleteMessage":"Sind Sie sicher, dass Sie diesen Datensatz l\xf6schen wollen?","dxDataGrid-validationCancelChanges":"\xc4nderungen verwerfen","dxDataGrid-groupPanelEmptyText":"Ziehen Sie eine Spalte hierhin, um danach zu gruppieren","dxDataGrid-noDataText":"Keine Daten","dxDataGrid-searchPanelPlaceholder":"Suchen...","dxDataGrid-filterRowShowAllText":"(Alle)","dxDataGrid-filterRowResetOperationText":"Zur\xfccksetzen","dxDataGrid-filterRowOperationEquals":"Ist gleich","dxDataGrid-filterRowOperationNotEquals":"Ist nicht gleich","dxDataGrid-filterRowOperationLess":"Kleiner als","dxDataGrid-filterRowOperationLessOrEquals":"Kleiner oder gleich","dxDataGrid-filterRowOperationGreater":"Gr\xf6\xdfer als","dxDataGrid-filterRowOperationGreaterOrEquals":"Gr\xf6\xdfer oder gleich","dxDataGrid-filterRowOperationStartsWith":"Beginnt mit","dxDataGrid-filterRowOperationContains":"Enth\xe4lt","dxDataGrid-filterRowOperationNotContains":"Enth\xe4lt nicht","dxDataGrid-filterRowOperationEndsWith":"Endet mit","dxDataGrid-filterRowOperationBetween":"Zwischen","dxDataGrid-filterRowOperationBetweenStartText":"Anfang","dxDataGrid-filterRowOperationBetweenEndText":"Ende","dxDataGrid-ariaSearchBox":"Search box","dxDataGrid-applyFilterText":"Filter anwenden","dxDataGrid-trueText":"wahr","dxDataGrid-falseText":"falsch","dxDataGrid-sortingAscendingText":"Aufsteigend sortieren","dxDataGrid-sortingDescendingText":"Absteigend sortieren","dxDataGrid-sortingClearText":"Sortierung aufheben","dxDataGrid-ariaNotSortedColumn":"Not sorted column","dxDataGrid-ariaSortedAscendingColumn":"Column sorted in ascending order","dxDataGrid-ariaSortedDescendingColumn":"Column sorted in descending order","dxDataGrid-ariaSortIndex":"Sort index {0}","dxDataGrid-editingSaveAllChanges":"\xc4nderungen speichern","dxDataGrid-editingCancelAllChanges":"\xc4nderungen verwerfen","dxDataGrid-editingAddRow":"Neue Zeile","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Minimum von {1} ist {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Maximum von {1} ist {0}","dxDataGrid-summaryAvg":"\xd8: {0}","dxDataGrid-summaryAvgOtherColumn":"Durchschnitt von {1} ist {0}","dxDataGrid-summarySum":"Summe: {0}","dxDataGrid-summarySumOtherColumn":"Summe von {1} ist {0}","dxDataGrid-summaryCount":"Anzahl: {0}","dxDataGrid-columnFixingFix":"Fixieren","dxDataGrid-columnFixingUnfix":"L\xf6sen","dxDataGrid-columnFixingLeftPosition":"Nach links","dxDataGrid-columnFixingRightPosition":"Nach rechts","dxDataGrid-exportTo":"Exportieren","dxDataGrid-exportToExcel":"Exportieren als Excel-Datei","dxDataGrid-exporting":"Exportieren ...","dxDataGrid-excelFormat":"Excel-Datei","dxDataGrid-selectedRows":"Ausgew\xe4hlte Zeilen","dxDataGrid-exportSelectedRows":"Ausgew\xe4hlte Zeilen exportieren nach {0}","dxDataGrid-exportAll":"Alle Daten exportieren nach {0}","dxDataGrid-headerFilterLabel":"Filteroptionen","dxDataGrid-headerFilterIndicatorLabel":"Filteroptionen f\xfcr Spalte \'{0}\' anzeigen","dxDataGrid-headerFilterEmptyValue":"(Leerwerte)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Abbrechen","dxDataGrid-ariaAdaptiveCollapse":"Zus\xe4tzliche Spalten verstecken","dxDataGrid-ariaAdaptiveExpand":"Zus\xe4tzliche Spalten anzeigen","dxDataGrid-ariaColumn":"Spalte","dxDataGrid-ariaColumnHeader":"Column header","dxDataGrid-ariaValue":"Wert","dxDataGrid-ariaError":"Error","dxDataGrid-ariaRevertButton":"Press Escape to discard the changes","dxDataGrid-ariaFilterCell":"Filterzelle","dxDataGrid-ariaCollapse":"Zusammenklappen","dxDataGrid-ariaModifiedCell":"Modified","dxDataGrid-ariaDeletedCell":"Deleted","dxDataGrid-ariaEditableCell":"Editable","dxDataGrid-ariaExpand":"Aufklappen","dxDataGrid-ariaCollapsedRow":"Collapsed row","dxDataGrid-ariaExpandedRow":"Expanded row","dxDataGrid-ariaDataGrid":"Datentabelle mit {0} Zeilen und {1} Spalten","dxDataGrid-ariaSearchInGrid":"Suchen in der Datentabelle","dxDataGrid-ariaSelectAll":"Alle ausw\xe4hlen","dxDataGrid-ariaSelectRow":"Zeile ausw\xe4hlen","dxDataGrid-ariaToolbar":"Symbolleiste der Datentabelle","dxDataGrid-ariaEditForm":"Edit form","dxDataGrid-filterBuilderPopupTitle":"Filter-Generator","dxDataGrid-filterPanelCreateFilter":"Filter erzeugen","dxDataGrid-filterPanelClearFilter":"Zur\xfccksetzen","dxDataGrid-filterPanelFilterEnabledHint":"Filter aktivieren","dxDataGrid-masterDetail":"Cell with details","dxTreeList-ariaTreeList":"TreeList mit {0} Zeilen und {1} Spalten","dxTreeList-ariaSearchInGrid":"Suchen in der Strukturliste","dxTreeList-ariaToolbar":"Symbolleiste der Strukturliste","dxTreeList-editingAddRowToNode":"Hinzuf\xfcgen","dxPager-infoText":"Seite {0} von {1} ({2} Elemente)","dxPager-pagesCountText":"von","dxPager-pageSize":"Elemente pro Seite: {0}","dxPager-pageSizesAllText":"Alle","dxPager-page":"Seite {0}","dxPager-prevPage":"Vorherige Seite","dxPager-nextPage":"N\xe4chste Seite","dxPager-ariaLabel":"Seitennavigation","dxPager-ariaPageSize":"Seitenl\xe4nge","dxPager-ariaPageNumber":"Seitennummer","dxPivotGrid-grandTotal":"Gesamt","dxPivotGrid-total":"{0} Gesamt","dxPivotGrid-fieldChooserTitle":"Feldauswahl","dxPivotGrid-showFieldChooser":"Feldauswahl anzeigen","dxPivotGrid-expandAll":"Alle aufklappen","dxPivotGrid-collapseAll":"Alle zusammenklappen","dxPivotGrid-sortColumnBySummary":"\\"{0}\\" nach dieser Spalte sortieren","dxPivotGrid-sortRowBySummary":"\\"{0}\\" nach dieser Zeile sortieren","dxPivotGrid-removeAllSorting":"Sortierungen entfernen","dxPivotGrid-dataNotAvailable":"Entf.","dxPivotGrid-rowFields":"Zeilenfelder","dxPivotGrid-columnFields":"Spaltenfelder","dxPivotGrid-dataFields":"Datenfelder","dxPivotGrid-filterFields":"Filterfelder","dxPivotGrid-allFields":"Alle Felder","dxPivotGrid-columnFieldArea":"Spaltenfelder hierher ziehen","dxPivotGrid-dataFieldArea":"Datenfelder hierher ziehen","dxPivotGrid-rowFieldArea":"Zeilenfelder hierher ziehen","dxPivotGrid-filterFieldArea":"Filterfelder hierher ziehen","dxScheduler-editorLabelTitle":"Betreff","dxScheduler-editorLabelStartDate":"Anfangszeit","dxScheduler-editorLabelEndDate":"Endzeit","dxScheduler-editorLabelDescription":"Beschreibung","dxScheduler-editorLabelRecurrence":"Wiederholen","dxScheduler-openAppointment":"Termin \xf6ffnen","dxScheduler-recurrenceNever":"Nie","dxScheduler-recurrenceMinutely":"Min\xfctlich","dxScheduler-recurrenceHourly":"St\xfcndlich","dxScheduler-recurrenceDaily":"T\xe4glich","dxScheduler-recurrenceWeekly":"W\xf6chentlich","dxScheduler-recurrenceMonthly":"Monatlich","dxScheduler-recurrenceYearly":"J\xe4hrlich","dxScheduler-recurrenceRepeatEvery":"Wiederholen alle","dxScheduler-recurrenceRepeatOn":"Wiederholen an","dxScheduler-recurrenceEnd":"Wiederholungsende","dxScheduler-recurrenceAfter":"Nach","dxScheduler-recurrenceOn":"Am","dxScheduler-recurrenceRepeatMinutely":"Minute(n)","dxScheduler-recurrenceRepeatHourly":"Stunde(n)","dxScheduler-recurrenceRepeatDaily":"Tag(e)","dxScheduler-recurrenceRepeatWeekly":"Woche(n)","dxScheduler-recurrenceRepeatMonthly":"Monat(e)","dxScheduler-recurrenceRepeatYearly":"Jahr(e)","dxScheduler-switcherDay":"Tag","dxScheduler-switcherWeek":"Woche","dxScheduler-switcherWorkWeek":"Arbeitswoche","dxScheduler-switcherMonth":"Monat","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Zeitstrahl Tag","dxScheduler-switcherTimelineWeek":"Zeitstrahl Woche","dxScheduler-switcherTimelineWorkWeek":"Zeitstrahl Arbeitswoche","dxScheduler-switcherTimelineMonth":"Zeitstrahl Monat","dxScheduler-recurrenceRepeatOnDate":"am Datum","dxScheduler-recurrenceRepeatCount":"Ereignisse","dxScheduler-allDay":"Ganzt\xe4gig","dxScheduler-confirmRecurrenceEditTitle":"Wiederkehrenden Termin bearbeiten","dxScheduler-confirmRecurrenceDeleteTitle":"Wiederkehrenden Termin l\xf6schen","dxScheduler-confirmRecurrenceEditMessage":"M\xf6chten Sie nur diesen Termin bearbeiten, oder die gesamte Serie?","dxScheduler-confirmRecurrenceDeleteMessage":"M\xf6chten Sie nur diesen Termin l\xf6schen, oder die gesamte Serie?","dxScheduler-confirmRecurrenceEditSeries":"Serie bearbeiten","dxScheduler-confirmRecurrenceDeleteSeries":"Serie l\xf6schen","dxScheduler-confirmRecurrenceEditOccurrence":"Termin bearbeiten","dxScheduler-confirmRecurrenceDeleteOccurrence":"Termin l\xf6schen","dxScheduler-noTimezoneTitle":"Keine Zeitzone","dxScheduler-moreAppointments":"{0} weitere","dxCalendar-currentDay":"Today","dxCalendar-currentMonth":"Current month","dxCalendar-currentYear":"Current year","dxCalendar-currentYearRange":"Current year range","dxCalendar-todayButtonText":"Heute","dxCalendar-ariaWidgetName":"Kalendar","dxCalendar-previousMonthButtonLabel":"Previous month","dxCalendar-previousYearButtonLabel":"Previous year","dxCalendar-previousDecadeButtonLabel":"Previous decade","dxCalendar-previousCenturyButtonLabel":"Previous century","dxCalendar-nextMonthButtonLabel":"Next month","dxCalendar-nextYearButtonLabel":"Next year","dxCalendar-nextDecadeButtonLabel":"Next decade","dxCalendar-nextCenturyButtonLabel":"Next century","dxCalendar-captionMonthLabel":"Month selection","dxCalendar-captionYearLabel":"Year selection","dxCalendar-captionDecadeLabel":"Decade selection","dxCalendar-captionCenturyLabel":"Century selection","dxCalendar-selectedDate":"The selected date is {0}","dxCalendar-selectedDateRange":"The selected date range is from {0} to {1}","dxColorView-ariaRed":"Rot","dxColorView-ariaGreen":"Gr\xfcn","dxColorView-ariaBlue":"Blau","dxColorView-ariaAlpha":"Transparenz","dxColorView-ariaHex":"Farbwert","dxTagBox-selected":"{0} ausgew\xe4hlt","dxTagBox-allSelected":"Alle ausgew\xe4hlt ({0})","dxTagBox-moreSelected":"{0} weitere","dxTagBox-tagRoleDescription":"Tag. Press the delete button to remove this tag","vizExport-printingButtonText":"Drucken","vizExport-titleMenuText":"Export/Druck","vizExport-exportButtonText":"{0}-Datei","dxFilterBuilder-and":"Und","dxFilterBuilder-or":"Oder","dxFilterBuilder-notAnd":"Nicht Und","dxFilterBuilder-notOr":"Nicht Oder","dxFilterBuilder-addCondition":"Bedingung hinzuf\xfcgen","dxFilterBuilder-addGroup":"Gruppe hinzuf\xfcgen","dxFilterBuilder-enterValueText":"<Wert eingeben>","dxFilterBuilder-filterOperationEquals":"Ist gleich","dxFilterBuilder-filterOperationNotEquals":"Ist nicht gleich","dxFilterBuilder-filterOperationLess":"Kleiner als","dxFilterBuilder-filterOperationLessOrEquals":"Kleiner oder gleich","dxFilterBuilder-filterOperationGreater":"Gr\xf6\xdfer als","dxFilterBuilder-filterOperationGreaterOrEquals":"Gr\xf6\xdfer oder gleich","dxFilterBuilder-filterOperationStartsWith":"Beginnt mit","dxFilterBuilder-filterOperationContains":"Enth\xe4lt","dxFilterBuilder-filterOperationNotContains":"Enth\xe4lt nicht","dxFilterBuilder-filterOperationEndsWith":"Endet mit","dxFilterBuilder-filterOperationIsBlank":"Ist leer","dxFilterBuilder-filterOperationIsNotBlank":"Ist nicht leer","dxFilterBuilder-filterOperationBetween":"Zwischen","dxFilterBuilder-filterOperationAnyOf":"Ist enthalten in","dxFilterBuilder-filterOperationNoneOf":"Ist nicht enthalten in","dxHtmlEditor-dialogColorCaption":"Schriftfarbe \xe4ndern","dxHtmlEditor-dialogBackgroundCaption":"Hintergrundfarbe \xe4ndern","dxHtmlEditor-dialogLinkCaption":"Link hinzuf\xfcgen","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Link in neuem Fenster \xf6ffnen","dxHtmlEditor-dialogImageCaption":"Bild hinzuf\xfcgen","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternativer Text","dxHtmlEditor-dialogImageWidthField":"Breite (px)","dxHtmlEditor-dialogImageHeightField":"Bildh\xf6he (px)","dxHtmlEditor-dialogInsertTableRowsField":"Zeilen","dxHtmlEditor-dialogInsertTableColumnsField":"Spalten","dxHtmlEditor-dialogInsertTableCaption":"Tabelle einf\xfcgen","dxHtmlEditor-dialogUpdateImageCaption":"Bild Aktualisieren","dxHtmlEditor-dialogImageUpdateButton":"Aktualisieren","dxHtmlEditor-dialogImageAddButton":"Hinzuf\xfcgen","dxHtmlEditor-dialogImageSpecifyUrl":"Aus dem Web","dxHtmlEditor-dialogImageSelectFile":"Von diesem Ger\xe4t","dxHtmlEditor-dialogImageKeepAspectRatio":"Seitenverh\xe4ltnis beibehalten","dxHtmlEditor-dialogImageEncodeToBase64":"Als Base64 kodieren","dxHtmlEditor-heading":"\xdcberschrift","dxHtmlEditor-normalText":"Normaler Text","dxHtmlEditor-background":"Hintergrundfarbe","dxHtmlEditor-bold":"Fett","dxHtmlEditor-color":"Schriftfarbe","dxHtmlEditor-font":"Schriftart","dxHtmlEditor-italic":"Kursiv","dxHtmlEditor-link":"Link hinzuf\xfcgen","dxHtmlEditor-image":"Bild hinzuf\xfcgen","dxHtmlEditor-size":"Schriftgr\xf6\xdfe","dxHtmlEditor-strike":"Durchgestrichen","dxHtmlEditor-subscript":"Tiefgestellt","dxHtmlEditor-superscript":"Hochgestellt","dxHtmlEditor-underline":"Unterstrichen","dxHtmlEditor-blockquote":"Blockzitat","dxHtmlEditor-header":"Kopfzeile","dxHtmlEditor-increaseIndent":"Einzug vergr\xf6\xdfern","dxHtmlEditor-decreaseIndent":"Einzug verkleinern","dxHtmlEditor-orderedList":"Sortierte Liste","dxHtmlEditor-bulletList":"Aufz\xe4hlung","dxHtmlEditor-alignLeft":"Linksb\xfcndig","dxHtmlEditor-alignCenter":"Zentriert","dxHtmlEditor-alignRight":"Rechtsb\xfcndig","dxHtmlEditor-alignJustify":"Blocksatz","dxHtmlEditor-codeBlock":"Codeblock","dxHtmlEditor-variable":"Variable hinzuf\xfcgen","dxHtmlEditor-undo":"R\xfcckg\xe4ngig","dxHtmlEditor-redo":"Wiederholen","dxHtmlEditor-clear":"Formate l\xf6schen","dxHtmlEditor-insertTable":"Tabelle einf\xfcgen","dxHtmlEditor-insertHeaderRow":"Kopfzeile einf\xfcgen","dxHtmlEditor-insertRowAbove":"Zeile oberhalb einf\xfcgen","dxHtmlEditor-insertRowBelow":"Zeile unterhalb einf\xfcgen","dxHtmlEditor-insertColumnLeft":"Spalte links einf\xfcgen","dxHtmlEditor-insertColumnRight":"Spalte rechts einf\xfcgen","dxHtmlEditor-deleteColumn":"Spalte l\xf6schen","dxHtmlEditor-deleteRow":"Zeile l\xf6schen","dxHtmlEditor-deleteTable":"Tabelle l\xf6schen","dxHtmlEditor-cellProperties":"Zelleneigenschaften","dxHtmlEditor-tableProperties":"Tabelleneigenschaften","dxHtmlEditor-insert":"Einf\xfcgen","dxHtmlEditor-delete":"L\xf6schen","dxHtmlEditor-border":"Rahmen","dxHtmlEditor-style":"Stil","dxHtmlEditor-width":"Breite","dxHtmlEditor-height":"H\xf6he","dxHtmlEditor-borderColor":"Farbe","dxHtmlEditor-tableBackground":"Hintergrund","dxHtmlEditor-dimensions":"Abmessungen","dxHtmlEditor-alignment":"Ausrichtung","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertikal","dxHtmlEditor-paddingVertical":"Vertikaler Abstand","dxHtmlEditor-paddingHorizontal":"Horizontaler Abstand","dxHtmlEditor-pixels":"Pixel","dxHtmlEditor-list":"Liste","dxHtmlEditor-ordered":"Sortiert","dxHtmlEditor-bullet":"Aufz\xe4hlung","dxHtmlEditor-align":"Ausrichten","dxHtmlEditor-center":"Zentrieren","dxHtmlEditor-left":"Links","dxHtmlEditor-right":"Rechts","dxHtmlEditor-indent":"Einzug","dxHtmlEditor-justify":"Blocksatz","dxHtmlEditor-borderStyleNone":"none","dxHtmlEditor-borderStyleHidden":"hidden","dxHtmlEditor-borderStyleDotted":"dotted","dxHtmlEditor-borderStyleDashed":"dashed","dxHtmlEditor-borderStyleSolid":"solid","dxHtmlEditor-borderStyleDouble":"double","dxHtmlEditor-borderStyleGroove":"groove","dxHtmlEditor-borderStyleRidge":"ridge","dxHtmlEditor-borderStyleInset":"inset","dxHtmlEditor-borderStyleOutset":"outset","dxFileManager-newDirectoryName":"Ohne Titel","dxFileManager-rootDirectoryName":"Dateien","dxFileManager-errorNoAccess":"Zugriff verweigert. Die Operation kann nicht durchgef\xfchrt werden.","dxFileManager-errorDirectoryExistsFormat":"Ordner {0} existiert bereits.","dxFileManager-errorFileExistsFormat":"Datei {0} existiert bereits.","dxFileManager-errorFileNotFoundFormat":"Datei {0} wurde nicht gefunden.","dxFileManager-errorDirectoryNotFoundFormat":"Verzeichnis \'{0}\' nicht gefunden.","dxFileManager-errorWrongFileExtension":"Dateierweiterung ist nicht erlaubt.","dxFileManager-errorMaxFileSizeExceeded":"Die Dateigr\xf6\xdfe \xfcbersteigt die maximal erlaubte Gr\xf6\xdfe.","dxFileManager-errorInvalidSymbols":"Der Dateiname enth\xe4lt ung\xfcltige Zeichen.","dxFileManager-errorDefault":"Unbekannter Fehler","dxFileManager-errorDirectoryOpenFailed":"Das Verzeichnis kann nicht ge\xf6ffnet werden","dxFileManager-commandCreate":"Neues Verzeichnis","dxFileManager-commandRename":"Umbenennen","dxFileManager-commandMove":"Verschieben nach","dxFileManager-commandCopy":"Kopieren nach","dxFileManager-commandDelete":"L\xf6schen","dxFileManager-commandDownload":"Herunterladen","dxFileManager-commandUpload":"Dateien hochladen","dxFileManager-commandRefresh":"Aktualisieren","dxFileManager-commandThumbnails":"Miniaturansicht","dxFileManager-commandDetails":"Detailansicht","dxFileManager-commandClearSelection":"Auswahl aufheben","dxFileManager-commandShowNavPane":"Navigationsbereich ein-/ausschalten","dxFileManager-dialogDirectoryChooserMoveTitle":"Verschieben nach","dxFileManager-dialogDirectoryChooserMoveButtonText":"Verschieben","dxFileManager-dialogDirectoryChooserCopyTitle":"Kopieren nach","dxFileManager-dialogDirectoryChooserCopyButtonText":"Kopieren","dxFileManager-dialogRenameItemTitle":"Umbenennen","dxFileManager-dialogRenameItemButtonText":"Speichern","dxFileManager-dialogCreateDirectoryTitle":"Neues Verzeichnis","dxFileManager-dialogCreateDirectoryButtonText":"Erstellen","dxFileManager-dialogDeleteItemTitle":"L\xf6schen","dxFileManager-dialogDeleteItemButtonText":"L\xf6schen","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Sind Sie sicher, dass Sie {0} l\xf6schen m\xf6chten?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Sind Sie sicher, dass Sie {0} Elemente l\xf6schen m\xf6chten?","dxFileManager-dialogButtonCancel":"Abbrechen","dxFileManager-editingCreateSingleItemProcessingMessage":"Ein Verzeichnis wird in {0} erstellt","dxFileManager-editingCreateSingleItemSuccessMessage":"Ein Verzeichnis wurde in {0} erstellt","dxFileManager-editingCreateSingleItemErrorMessage":"Verzeichnis wurde nicht erstellt","dxFileManager-editingCreateCommonErrorMessage":"Verzeichnis wurde nicht erstellt","dxFileManager-editingRenameSingleItemProcessingMessage":"Ein Element in {0} wird umbenannt","dxFileManager-editingRenameSingleItemSuccessMessage":"Ein Element in {0} wurde umbenannt","dxFileManager-editingRenameSingleItemErrorMessage":"Element wurde nicht umbenannt","dxFileManager-editingRenameCommonErrorMessage":"Element wurde nicht umbenannt","dxFileManager-editingDeleteSingleItemProcessingMessage":"Ein Element aus {0} wird gel\xf6scht","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"{0} Elemente aus {1} werden gel\xf6scht","dxFileManager-editingDeleteSingleItemSuccessMessage":"Ein Element aus {0} wurde gel\xf6scht","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"{0} Elemente aus {1} wurden gel\xf6scht","dxFileManager-editingDeleteSingleItemErrorMessage":"Element wurde nicht gel\xf6scht","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} Elemente wurden nicht gel\xf6scht","dxFileManager-editingDeleteCommonErrorMessage":"Einige Elemente wurden nicht gel\xf6scht","dxFileManager-editingMoveSingleItemProcessingMessage":"Ein Element wird nach {0} verschoben","dxFileManager-editingMoveMultipleItemsProcessingMessage":"{0} Elemente werden nach {1} verschoben","dxFileManager-editingMoveSingleItemSuccessMessage":"Ein Element wurde nach {0} verschoben","dxFileManager-editingMoveMultipleItemsSuccessMessage":"{0} Elemente wurden nach {1} verschoben","dxFileManager-editingMoveSingleItemErrorMessage":"Element wurde nicht verschoben","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} Elemente wurden nicht verschoben","dxFileManager-editingMoveCommonErrorMessage":"Einige Elemente wurden nicht verschoben","dxFileManager-editingCopySingleItemProcessingMessage":"Ein Element wird nach {0} kopiert","dxFileManager-editingCopyMultipleItemsProcessingMessage":"{0} Elemente werden nach {1} kopiert","dxFileManager-editingCopySingleItemSuccessMessage":"Ein Element wurde nach {0} kopiert","dxFileManager-editingCopyMultipleItemsSuccessMessage":"{0} Elemente wurden nach {1} kopiert","dxFileManager-editingCopySingleItemErrorMessage":"Element wurde nicht kopiert","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} Elemente wurden nicht kopiert","dxFileManager-editingCopyCommonErrorMessage":"Einige Elemente wurden nicht kopiert","dxFileManager-editingUploadSingleItemProcessingMessage":"Ein Element wird nach {0} hochgeladen","dxFileManager-editingUploadMultipleItemsProcessingMessage":"{0} Elemente werden nach {1} hochgeladen","dxFileManager-editingUploadSingleItemSuccessMessage":"Ein Element wurde nach {0} hochgeladen","dxFileManager-editingUploadMultipleItemsSuccessMessage":"{0} Elemente wurden nach {1} hochgeladen","dxFileManager-editingUploadSingleItemErrorMessage":"Element wurde nicht hochgeladen","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} Elemente wurden nicht hochgeladen","dxFileManager-editingUploadCanceledMessage":"Abgebrochen","dxFileManager-editingDownloadSingleItemErrorMessage":"Datei wurde nicht heruntergeladen","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} Dateien wurden nicht heruntergeladen","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Zuletzt ge\xe4ndert am","dxFileManager-listDetailsColumnCaptionFileSize":"Dateigr\xf6\xdfe","dxFileManager-listThumbnailsTooltipTextSize":"Gr\xf6\xdfe","dxFileManager-listThumbnailsTooltipTextDateModified":"Zuletzt ge\xe4ndert am","dxFileManager-notificationProgressPanelTitle":"Fortschritt","dxFileManager-notificationProgressPanelEmptyListText":"Keine Vorg\xe4nge","dxFileManager-notificationProgressPanelOperationCanceled":"Abgebrochen","dxDiagram-categoryGeneral":"Allgemein","dxDiagram-categoryFlowchart":"Flussdiagramm","dxDiagram-categoryOrgChart":"Organisationsdiagramm","dxDiagram-categoryContainers":"Container","dxDiagram-categoryCustom":"Benutzerdefiniert","dxDiagram-commandExportToSvg":"Export als SVG","dxDiagram-commandExportToPng":"Export als PNG","dxDiagram-commandExportToJpg":"Export als JPEG","dxDiagram-commandUndo":"R\xfcckg\xe4ngig","dxDiagram-commandRedo":"Wiederherstellen","dxDiagram-commandFontName":"Schriftartname","dxDiagram-commandFontSize":"Schriftgr\xf6\xdfe","dxDiagram-commandBold":"Fett","dxDiagram-commandItalic":"Kursiv","dxDiagram-commandUnderline":"Unterstrichen","dxDiagram-commandTextColor":"Textfarbe","dxDiagram-commandLineColor":"Linienfarbe","dxDiagram-commandLineWidth":"Linienst\xe4rke","dxDiagram-commandLineStyle":"Linienart","dxDiagram-commandLineStyleSolid":"Durchgezogen","dxDiagram-commandLineStyleDotted":"Gepunktet","dxDiagram-commandLineStyleDashed":"Gestrichelt","dxDiagram-commandFillColor":"F\xfcllfarbe","dxDiagram-commandAlignLeft":"Linksb\xfcndig","dxDiagram-commandAlignCenter":"Zentriert","dxDiagram-commandAlignRight":"Rechtsb\xfcndig","dxDiagram-commandConnectorLineType":"Konnektor Linienart","dxDiagram-commandConnectorLineStraight":"Gerade","dxDiagram-commandConnectorLineOrthogonal":"Rechtwinklig","dxDiagram-commandConnectorLineStart":"Konnektor Linienanfang","dxDiagram-commandConnectorLineEnd":"Konnektor Linienende","dxDiagram-commandConnectorLineNone":"Keine","dxDiagram-commandConnectorLineArrow":"Pfeil","dxDiagram-commandFullscreen":"Vollbild","dxDiagram-commandUnits":"Einheiten","dxDiagram-commandPageSize":"Seitengr\xf6\xdfe","dxDiagram-commandPageOrientation":"Seitenausrichtung","dxDiagram-commandPageOrientationLandscape":"Querformat","dxDiagram-commandPageOrientationPortrait":"Hochformat","dxDiagram-commandPageColor":"Seitenfarbe","dxDiagram-commandShowGrid":"Raster anzeigen","dxDiagram-commandSnapToGrid":"Am Raster ausrichten","dxDiagram-commandGridSize":"Rastergr\xf6\xdfe","dxDiagram-commandZoomLevel":"Vergr\xf6\xdferungsstufe","dxDiagram-commandAutoZoom":"Automatische Vergr\xf6\xdferung","dxDiagram-commandFitToContent":"An Inhalt anpassen","dxDiagram-commandFitToWidth":"An Breite anpassen","dxDiagram-commandAutoZoomByContent":"Automatisch an Inhalt anpassen","dxDiagram-commandAutoZoomByWidth":"Automatisch an Breite anpassen","dxDiagram-commandSimpleView":"Einfache Ansicht","dxDiagram-commandCut":"Ausschneiden","dxDiagram-commandCopy":"Kopieren","dxDiagram-commandPaste":"Einf\xfcgen","dxDiagram-commandSelectAll":"Alles ausw\xe4hlen","dxDiagram-commandDelete":"L\xf6schen","dxDiagram-commandBringToFront":"In den Vordergrund","dxDiagram-commandSendToBack":"In den Hintergrund","dxDiagram-commandLock":"Sperren","dxDiagram-commandUnlock":"Entsperren","dxDiagram-commandInsertShapeImage":"Bild einf\xfcgen...","dxDiagram-commandEditShapeImage":"Bild bearbeiten...","dxDiagram-commandDeleteShapeImage":"Bild l\xf6schen","dxDiagram-commandLayoutLeftToRight":"Von links nach rechts","dxDiagram-commandLayoutRightToLeft":"Von rechts nach links","dxDiagram-commandLayoutTopToBottom":"Von oben nach unten","dxDiagram-commandLayoutBottomToTop":"Von unten nach oben","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Abbrechen","dxDiagram-dialogInsertShapeImageTitle":"Bild einf\xfcgen","dxDiagram-dialogEditShapeImageTitle":"Bild bearbeiten","dxDiagram-dialogEditShapeImageSelectButton":"Bild ausw\xe4hlen","dxDiagram-dialogEditShapeImageLabelText":"oder Datei hier ablegen","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Eigenschaften","dxDiagram-uiSettings":"Einstellungen","dxDiagram-uiShowToolbox":"Toolbox anzeigen","dxDiagram-uiSearch":"Suchen","dxDiagram-uiStyle":"Stil","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Baum","dxDiagram-uiLayoutLayered":"Mehrschichtig","dxDiagram-uiDiagram":"Diagramm","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Objekt","dxDiagram-uiConnector":"Verbindung","dxDiagram-uiPage":"Seite","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rechteck","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Kreuz","dxDiagram-shapeTriangle":"Dreieck","dxDiagram-shapeDiamond":"Raute","dxDiagram-shapeHeart":"Herz","dxDiagram-shapePentagon":"F\xfcnfeck","dxDiagram-shapeHexagon":"Sechseck","dxDiagram-shapeOctagon":"Achteck","dxDiagram-shapeStar":"Stern","dxDiagram-shapeArrowLeft":"Pfeil nach links","dxDiagram-shapeArrowUp":"Pfeil nach oben","dxDiagram-shapeArrowRight":"Pfeil nach rechts","dxDiagram-shapeArrowDown":"Pfeil nach unten","dxDiagram-shapeArrowUpDown":"Pfeil nach oben und unten","dxDiagram-shapeArrowLeftRight":"Pfeil nach links und rechts","dxDiagram-shapeProcess":"Prozess","dxDiagram-shapeDecision":"Entscheidung","dxDiagram-shapeTerminator":"Abschluss","dxDiagram-shapePredefinedProcess":"Vordefinierter Prozess","dxDiagram-shapeDocument":"Dokument","dxDiagram-shapeMultipleDocuments":"Mehrere Dokumente","dxDiagram-shapeManualInput":"Manuelle Eingabe","dxDiagram-shapePreparation":"Vorbereitung","dxDiagram-shapeData":"Daten","dxDiagram-shapeDatabase":"Datenbank","dxDiagram-shapeHardDisk":"Festplatte","dxDiagram-shapeInternalStorage":"Lokaler Speicher","dxDiagram-shapePaperTape":"Lochstreifen","dxDiagram-shapeManualOperation":"Manuelle Verarbeitung","dxDiagram-shapeDelay":"Verz\xf6gerung","dxDiagram-shapeStoredData":"Gespeicherte Daten","dxDiagram-shapeDisplay":"Anzeige","dxDiagram-shapeMerge":"Zusammenf\xfchren","dxDiagram-shapeConnector":"Verbinder","dxDiagram-shapeOr":"Oder","dxDiagram-shapeSummingJunction":"Summierungsknoten","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertikaler Container","dxDiagram-shapeHorizontalContainer":"Horizontaler Container","dxDiagram-shapeCardDefaultText":"Name der Person","dxDiagram-shapeCardWithImageOnLeft":"Karte mit Bild links","dxDiagram-shapeCardWithImageOnTop":"Karte mit Bild oben","dxDiagram-shapeCardWithImageOnRight":"Karte mit Bild rechts","dxGantt-dialogTitle":"Titel","dxGantt-dialogStartTitle":"Beginn","dxGantt-dialogEndTitle":"Ende","dxGantt-dialogProgressTitle":"Fortschritt","dxGantt-dialogResourcesTitle":"Ressourcen","dxGantt-dialogResourceManagerTitle":"Ressourcen-Manager","dxGantt-dialogTaskDetailsTitle":"Aufgabendetails","dxGantt-dialogEditResourceListHint":"Ressourcenliste bearbeiten","dxGantt-dialogEditNoResources":"Keine Ressourcen","dxGantt-dialogButtonAdd":"Hinzuf\xfcgen","dxGantt-contextMenuNewTask":"Neue Aufgabe","dxGantt-contextMenuNewSubtask":"Neue Teilaufgabe","dxGantt-contextMenuDeleteTask":"Aufgabe l\xf6schen","dxGantt-contextMenuDeleteDependency":"Abh\xe4ngigkeit entfernen","dxGantt-dialogTaskDeleteConfirmation":"Abh\xe4ngigkeiten und Teilaufgaben werden zusammen mit dieser Aufgabe gel\xf6scht. M\xf6chten Sie diese Aufgabe l\xf6schen?","dxGantt-dialogDependencyDeleteConfirmation":"M\xf6chten Sie die Abh\xe4ngigkeit von der Aufgabe entfernen?","dxGantt-dialogResourcesDeleteConfirmation":"Wenn Sie diese Ressource l\xf6schen, wird sie von allen Aufgaben entfernt. M\xf6chten Sie die Ressource l\xf6schen? Ressource: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"Die Aufgabe, die Sie verschieben m\xf6chten, ist mit einer zweiten Aufgabe durch eine Abh\xe4ngigkeit verbunden. Die \xc4nderung w\xfcrde gegen Abh\xe4ngigkeitsregeln verstossen. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogConstraintViolationMessage":"Die Aufgabe, die Sie verschieben m\xf6chten, ist mit einer zweiten Aufgabe durch eine Abh\xe4ngigkeit verbunden. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogCancelOperationMessage":"Vorgang abbrechen","dxGantt-dialogDeleteDependencyMessage":"Abh\xe4ngigkeit l\xf6schen","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Aufgabe verschieben und Abh\xe4ngigkeit beibehalten","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"Die Aufgabe, die Sie zu verschieben versuchen, ist mit anderen Aufgaben durch Abh\xe4ngigkeitsbeziehungen verbunden. Die \xc4nderung verst\xf6\xdft daher gegen Abh\xe4ngigkeitsregeln. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"Die Aufgabe, die Sie zu verschieben versuchen, ist mit anderen Aufgaben durch Abh\xe4ngigkeitsbeziehungen verbunden. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogDeleteDependenciesMessage":"Abh\xe4ngigkeitsbeziehungen entfernen","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"Die Aufgabe verschieben und die Abh\xe4ngigkeitsbeziehungen beibehalten.","dxGantt-undo":"R\xfcckg\xe4ngig","dxGantt-redo":"Wiederherstellen","dxGantt-expandAll":"Alle erweitern","dxGantt-collapseAll":"Alle reduzieren","dxGantt-addNewTask":"Neue Aufgabe hinzuf\xfcgen","dxGantt-deleteSelectedTask":"Ausgew\xe4hlte Aufgabe l\xf6schen","dxGantt-zoomIn":"Vergr\xf6\xdfern","dxGantt-zoomOut":"Verkleinern","dxGantt-fullScreen":"Vollbildmodus","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Aufsteigend sortieren","dxGantt-sortingDescendingText":"Absteigend sortieren","dxGantt-sortingClearText":"Sortierung aufheben","dxGantt-showResources":"Ressourcen Anzeigen","dxGantt-showDependencies":"Abh\xe4ngigkeiten Anzeigen","dxGantt-dialogStartDateValidation":"Startdatum muss sp\xe4ter sein als {0}","dxGantt-dialogEndDateValidation":"Enddatum muss sp\xe4ter sein als {0}","dxGallery-itemName":"Gallery item","dxMultiView-elementAriaRoleDescription":"MultiView","dxMultiView-elementAriaLabel":"Use the arrow keys or swipe to navigate between views","dxMultiView-itemAriaRoleDescription":"View","dxMultiView-itemAriaLabel":"{0} of {1}","dxSplitter-resizeHandleAriaLabel":"Split bar"}}'),cK=JSON.parse('{"fr":{"Yes":"Oui","No":"Non","Cancel":"Annuler","Close":"Fermer","Clear":"Vider","Done":"Termin\xe9","Loading":"Chargement...","Select":"S\xe9lection...","Search":"Recherche","Back":"Retour","OK":"OK","dxCollectionWidget-noDataText":"Pas de donn\xe9es","dxDropDownEditor-selectLabel":"S\xe9lection","validation-required":"Obligatoire","validation-required-formatted":"{0} est obligatoire","validation-numeric":"La valeur doit \xeatre un nombre","validation-numeric-formatted":"{0} doit \xeatre un nombre","validation-range":"La valeur ne se trouve pas dans la plage valide","validation-range-formatted":"{0} ne se trouve pas dans la plage valide","validation-stringLength":"La longueur de la valeur est incorrecte","validation-stringLength-formatted":"La longueur de {0} est incorrecte","validation-custom":"La valeur est invalide","validation-custom-formatted":"{0} est invalide","validation-async":"La valeur est invalide","validation-async-formatted":"{0} est invalide","validation-compare":"La valeur est inappropri\xe9e","validation-compare-formatted":"{0} est inappropri\xe9e","validation-pattern":"La valeur ne correspond pas au mod\xe8le","validation-pattern-formatted":"{0} ne correspond pas au mod\xe8le","validation-email":"L\'adresse email est invalide","validation-email-formatted":"{0} est invalide","validation-mask":"La valeur est invalide","dxLookup-searchPlaceholder":"Nombre minimum de caract\xe8res: {0}","dxList-pullingDownText":"Tirez vers le bas pour actualiser...","dxList-pulledDownText":"Relacher pour actualiser...","dxList-refreshingText":"Actualisation...","dxList-pageLoadingText":"Chargement...","dxList-nextButtonText":"Suivant","dxList-selectAll":"S\xe9lectionner tout","dxList-listAriaLabel":"Items","dxList-listAriaLabel-deletable":"Deletable items","dxListEditDecorator-delete":"Supprimer","dxListEditDecorator-more":"Plus","dxScrollView-pullingDownText":"Tirez vers le bas pour actualiser...","dxScrollView-pulledDownText":"Relacher pour actualiser...","dxScrollView-refreshingText":"Mise \xe0 jour...","dxScrollView-reachBottomText":"Chargement...","dxDateBox-simulatedDataPickerTitleTime":"Choisissez l\'heure","dxDateBox-simulatedDataPickerTitleDate":"Choisissez la date","dxDateBox-simulatedDataPickerTitleDateTime":"Choisissez la date et l\'heure","dxDateBox-validation-datetime":"La valeur doit \xeatre une date ou une heure.","dxDateRangeBox-invalidStartDateMessage":"Start value must be a date","dxDateRangeBox-invalidEndDateMessage":"End value must be a date","dxDateRangeBox-startDateOutOfRangeMessage":"Start date is out of range","dxDateRangeBox-endDateOutOfRangeMessage":"End date is out of range","dxDateRangeBox-startDateLabel":"Date de d\xe9but","dxDateRangeBox-endDateLabel":"Date de fin","dxFileUploader-selectFile":"Choisissez un fichier","dxFileUploader-dropFile":"D\xe9posez un fichier","dxFileUploader-bytes":"Bytes","dxFileUploader-kb":"KB","dxFileUploader-Mb":"MB","dxFileUploader-Gb":"GB","dxFileUploader-upload":"T\xe9l\xe9charger","dxFileUploader-uploaded":"T\xe9l\xe9charg\xe9","dxFileUploader-readyToUpload":"Pr\xeat \xe0 t\xe9l\xe9charger","dxFileUploader-uploadAbortedMessage":"T\xe9l\xe9chargement annul\xe9","dxFileUploader-uploadFailedMessage":"\xc9chec du t\xe9l\xe9chargement","dxFileUploader-invalidFileExtension":"Type de fichier non autoris\xe9","dxFileUploader-invalidMaxFileSize":"Fichier trop volumineux","dxFileUploader-invalidMinFileSize":"Fichier trop petit","dxRangeSlider-ariaFrom":"De {0}","dxRangeSlider-ariaTill":"\xe0 {0}","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optionnel","dxForm-requiredMessage":"{0} est obligatoire","dxNumberBox-invalidValueMessage":"La valeur doit \xeatre un nombre","dxNumberBox-noDataText":"Pas de donn\xe9es","dxDataGrid-emptyHeaderWithColumnChooserText":"Use {0} to display columns","dxDataGrid-emptyHeaderWithGroupPanelText":"Drag a column from the group panel here","dxDataGrid-emptyHeaderWithColumnChooserAndGroupPanelText":"Use {0} or drag a column from the group panel","dxDataGrid-emptyHeaderColumnChooserText":"column chooser","dxDataGrid-columnChooserTitle":"Choisir les colonnes","dxDataGrid-columnChooserEmptyText":"Faites glisser une colonne ici pour la cacher","dxDataGrid-groupContinuesMessage":"Suite \xe0 la page suivante","dxDataGrid-groupContinuedMessage":"Suite de la page pr\xe9c\xe9dente","dxDataGrid-groupHeaderText":"Grouper avec cette colonne","dxDataGrid-ungroupHeaderText":"D\xe9grouper","dxDataGrid-ungroupAllText":"D\xe9grouper tout","dxDataGrid-editingEditRow":"Editer","dxDataGrid-editingSaveRowChanges":"Sauvegarder","dxDataGrid-editingCancelRowChanges":"Annuler","dxDataGrid-editingDeleteRow":"Supprimer","dxDataGrid-editingUndeleteRow":"Restaurer","dxDataGrid-editingConfirmDeleteMessage":"\xcates-vous s\xfbr de vouloir supprimer cet \xe9l\xe9ment ?","dxDataGrid-validationCancelChanges":"Annuler les changements","dxDataGrid-groupPanelEmptyText":"Faites glisser une colonne ICI pour grouper par celle-ci","dxDataGrid-noDataText":"Pas de donn\xe9es","dxDataGrid-searchPanelPlaceholder":"Recherche...","dxDataGrid-filterRowShowAllText":"(tous)","dxDataGrid-filterRowResetOperationText":"R\xe9initialiser","dxDataGrid-filterRowOperationEquals":"Egale","dxDataGrid-filterRowOperationNotEquals":"Diff\xe9rent de","dxDataGrid-filterRowOperationLess":"Plus petit","dxDataGrid-filterRowOperationLessOrEquals":"Plus petit ou \xe9gal","dxDataGrid-filterRowOperationGreater":"Plus grand","dxDataGrid-filterRowOperationGreaterOrEquals":"Plus grand ou \xe9gal","dxDataGrid-filterRowOperationStartsWith":"Commence par","dxDataGrid-filterRowOperationContains":"Contient","dxDataGrid-filterRowOperationNotContains":"Ne contient pas","dxDataGrid-filterRowOperationEndsWith":"Termine par","dxDataGrid-filterRowOperationBetween":"Entre","dxDataGrid-filterRowOperationBetweenStartText":"D\xe9but","dxDataGrid-filterRowOperationBetweenEndText":"Fin","dxDataGrid-ariaSearchBox":"Search box","dxDataGrid-applyFilterText":"Filtrer le texte","dxDataGrid-trueText":"Vrai","dxDataGrid-falseText":"Faux","dxDataGrid-sortingAscendingText":"Tri croissant","dxDataGrid-sortingDescendingText":"Tri d\xe9croissant","dxDataGrid-sortingClearText":"Supprimer le tri","dxDataGrid-ariaNotSortedColumn":"Not sorted column","dxDataGrid-ariaSortedAscendingColumn":"Column sorted in ascending order","dxDataGrid-ariaSortedDescendingColumn":"Column sorted in descending order","dxDataGrid-ariaSortIndex":"Sort index {0}","dxDataGrid-editingSaveAllChanges":"Sauvegarder les changements","dxDataGrid-editingCancelAllChanges":"Ignorer les changements","dxDataGrid-editingAddRow":"Ajouter ligne","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Minimum de {1} est {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Maximum de {1} est {0}","dxDataGrid-summaryAvg":"Moy: {0}","dxDataGrid-summaryAvgOtherColumn":"Moyenne de {1} est {0}","dxDataGrid-summarySum":"Somme: {0}","dxDataGrid-summarySumOtherColumn":"Somme de {1} est {0}","dxDataGrid-summaryCount":"Total: {0}","dxDataGrid-columnFixingFix":"Fixer","dxDataGrid-columnFixingUnfix":"D\xe9tacher","dxDataGrid-columnFixingLeftPosition":"A gauche","dxDataGrid-columnFixingRightPosition":"A droite","dxDataGrid-exportTo":"Exporter","dxDataGrid-exportToExcel":"Exporter sous Excel","dxDataGrid-exporting":"Exporter...","dxDataGrid-excelFormat":"Fichier Excel","dxDataGrid-selectedRows":"Lignes s\xe9lectionn\xe9es","dxDataGrid-exportSelectedRows":"Exporter les lignes s\xe9lectionn\xe9es vers {0}","dxDataGrid-exportAll":"Exporter tout vers {0}","dxDataGrid-headerFilterLabel":"Filter options","dxDataGrid-headerFilterIndicatorLabel":"Show filter options for column \'{0}\'","dxDataGrid-headerFilterEmptyValue":"(aucune valeur)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Annuler","dxDataGrid-ariaAdaptiveCollapse":"Masquer les donn\xe9es suppl\xe9mentaires","dxDataGrid-ariaAdaptiveExpand":"Afficher des donn\xe9es suppl\xe9mentaires","dxDataGrid-ariaColumn":"Colonne","dxDataGrid-ariaColumnHeader":"Column header","dxDataGrid-ariaValue":"Valeur","dxDataGrid-ariaError":"Error","dxDataGrid-ariaRevertButton":"Press Escape to discard the changes","dxDataGrid-ariaFilterCell":"Filtre de cellule","dxDataGrid-ariaCollapse":"R\xe9duire","dxDataGrid-ariaModifiedCell":"Modified","dxDataGrid-ariaDeletedCell":"Deleted","dxDataGrid-ariaEditableCell":"Editable","dxDataGrid-ariaExpand":"Etendre","dxDataGrid-ariaCollapsedRow":"Collapsed row","dxDataGrid-ariaExpandedRow":"Expanded row","dxDataGrid-ariaDataGrid":"Grille","dxDataGrid-ariaSearchInGrid":"Rechercher dans la grille","dxDataGrid-ariaSelectAll":"S\xe9lectionner tout","dxDataGrid-ariaSelectRow":"S\xe9lectionner ligne","dxDataGrid-ariaToolbar":"Barre d\'outils de la grille de donn\xe9es","dxDataGrid-ariaEditForm":"Edit form","dxDataGrid-filterBuilderPopupTitle":"Cr\xe9ation de filtre","dxDataGrid-filterPanelCreateFilter":"Cr\xe9er un filtre","dxDataGrid-filterPanelClearFilter":"Supprimer","dxDataGrid-filterPanelFilterEnabledHint":"Activer le filtre","dxDataGrid-masterDetail":"Cell with details","dxTreeList-ariaTreeList":"Tree list with {0} rows and {1} columns","dxTreeList-ariaSearchInGrid":"Rechercher dans l\'arborescence","dxTreeList-ariaToolbar":"Barre d\'outils de la liste arborescente","dxTreeList-editingAddRowToNode":"Ajouter","dxPager-infoText":"Page {0} sur {1} ({2} \xe9lements)","dxPager-pagesCountText":"sur","dxPager-pageSize":"Items per page: {0}","dxPager-pageSizesAllText":"Tous","dxPager-page":"Page {0}","dxPager-prevPage":"Previous Page","dxPager-nextPage":"Next Page","dxPager-ariaLabel":"Page Navigation","dxPager-ariaPageSize":"Page size","dxPager-ariaPageNumber":"Page number","dxPivotGrid-grandTotal":"Total g\xe9n\xe9ral","dxPivotGrid-total":"Total {0}","dxPivotGrid-fieldChooserTitle":"Liste des champs","dxPivotGrid-showFieldChooser":"Afficher la liste des champs","dxPivotGrid-expandAll":"Etendre tout","dxPivotGrid-collapseAll":"R\xe9duire tout","dxPivotGrid-sortColumnBySummary":"Trier par colonne \\"{0}\\"","dxPivotGrid-sortRowBySummary":"Trier par ligne \\"{0}\\"","dxPivotGrid-removeAllSorting":"Supprimer les tris","dxPivotGrid-dataNotAvailable":"ND","dxPivotGrid-rowFields":"Lignes","dxPivotGrid-columnFields":"Colonnes","dxPivotGrid-dataFields":"Valeurs","dxPivotGrid-filterFields":"Filtres","dxPivotGrid-allFields":"Tous les champs","dxPivotGrid-columnFieldArea":"D\xe9poser les champs de colonne ici","dxPivotGrid-dataFieldArea":"D\xe9poser les champs de donn\xe9es ici","dxPivotGrid-rowFieldArea":"D\xe9poser les champs de ligne ici","dxPivotGrid-filterFieldArea":"D\xe9poser les champs de filtre ici","dxScheduler-editorLabelTitle":"Titre","dxScheduler-editorLabelStartDate":"Date de d\xe9but","dxScheduler-editorLabelEndDate":"Date de fin","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"R\xe9currence","dxScheduler-openAppointment":"D\xe9finir un \xe9venement","dxScheduler-recurrenceNever":"Jamais","dxScheduler-recurrenceMinutely":"Minutely","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Quotidien","dxScheduler-recurrenceWeekly":"Hebdomadaire","dxScheduler-recurrenceMonthly":"Mensuel","dxScheduler-recurrenceYearly":"Annuel","dxScheduler-recurrenceRepeatEvery":"Chaque","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"Jusqu\'\xe0","dxScheduler-recurrenceAfter":"Apr\xe8s","dxScheduler-recurrenceOn":"Le","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"Jour(s)","dxScheduler-recurrenceRepeatWeekly":"Semaine(s)","dxScheduler-recurrenceRepeatMonthly":"Mois(s)","dxScheduler-recurrenceRepeatYearly":"Ann\xe9e(s)","dxScheduler-switcherDay":"Jour","dxScheduler-switcherWeek":"Semaine","dxScheduler-switcherWorkWeek":"Semaine de travail","dxScheduler-switcherMonth":"Mois","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Jour","dxScheduler-switcherTimelineWeek":"Timeline Semaine","dxScheduler-switcherTimelineWorkWeek":"Timeline Semaine de travail","dxScheduler-switcherTimelineMonth":"Timeline Mois","dxScheduler-recurrenceRepeatOnDate":"le","dxScheduler-recurrenceRepeatCount":"occurence(s)","dxScheduler-allDay":"Temps plein","dxScheduler-confirmRecurrenceEditTitle":"Edit Recurring Appointment","dxScheduler-confirmRecurrenceDeleteTitle":"Delete Recurring Appointment","dxScheduler-confirmRecurrenceEditMessage":"Voulez-vous \xe9diter cet \xe9venement ou la s\xe9rie enti\xe8re ?","dxScheduler-confirmRecurrenceDeleteMessage":"Voulez-vous supprimer cet \xe9venement ou la s\xe9rie enti\xe8re ?","dxScheduler-confirmRecurrenceEditSeries":"Editer serie","dxScheduler-confirmRecurrenceDeleteSeries":"Supprimer serie","dxScheduler-confirmRecurrenceEditOccurrence":"Editer \xe9venement","dxScheduler-confirmRecurrenceDeleteOccurrence":"Supprimer \xe9venement","dxScheduler-noTimezoneTitle":"Pas de fuseau horaire","dxScheduler-moreAppointments":"{0} en plus","dxCalendar-currentDay":"Today","dxCalendar-currentMonth":"Current month","dxCalendar-currentYear":"Current year","dxCalendar-currentYearRange":"Current year range","dxCalendar-todayButtonText":"Aujourd\'hui","dxCalendar-ariaWidgetName":"Calendrier","dxCalendar-previousMonthButtonLabel":"Previous month","dxCalendar-previousYearButtonLabel":"Previous year","dxCalendar-previousDecadeButtonLabel":"Previous decade","dxCalendar-previousCenturyButtonLabel":"Previous century","dxCalendar-nextMonthButtonLabel":"Next month","dxCalendar-nextYearButtonLabel":"Next year","dxCalendar-nextDecadeButtonLabel":"Next decade","dxCalendar-nextCenturyButtonLabel":"Next century","dxCalendar-captionMonthLabel":"Month selection","dxCalendar-captionYearLabel":"Year selection","dxCalendar-captionDecadeLabel":"Decade selection","dxCalendar-captionCenturyLabel":"Century selection","dxCalendar-selectedDate":"The selected date is {0}","dxCalendar-selectedDateRange":"The selected date range is from {0} to {1}","dxColorView-ariaRed":"Rouge","dxColorView-ariaGreen":"Vert","dxColorView-ariaBlue":"Bleu","dxColorView-ariaAlpha":"Transparence","dxColorView-ariaHex":"Code couleur","dxTagBox-selected":"{0} selectionn\xe9s","dxTagBox-allSelected":"Tous s\xe9lectionn\xe9s ({0})","dxTagBox-moreSelected":"{0} en plus","dxTagBox-tagRoleDescription":"Tag. Press the delete button to remove this tag","vizExport-printingButtonText":"Imprimer","vizExport-titleMenuText":"Exporter/Imprimer","vizExport-exportButtonText":"{0} fichier","dxFilterBuilder-and":"Et","dxFilterBuilder-or":"Ou","dxFilterBuilder-notAnd":"Non Et","dxFilterBuilder-notOr":"Non Ou","dxFilterBuilder-addCondition":"Ajouter une condition","dxFilterBuilder-addGroup":"Ajouter un groupe","dxFilterBuilder-enterValueText":"<entrer une valeur>","dxFilterBuilder-filterOperationEquals":"Est \xe9gal \xe0","dxFilterBuilder-filterOperationNotEquals":"Est diff\xe9rent de","dxFilterBuilder-filterOperationLess":"Est plus petit que","dxFilterBuilder-filterOperationLessOrEquals":"Est plus petit ou \xe9gal \xe0","dxFilterBuilder-filterOperationGreater":"Est plus grand que","dxFilterBuilder-filterOperationGreaterOrEquals":"Est plus grand ou \xe9gal \xe0","dxFilterBuilder-filterOperationStartsWith":"Commence par","dxFilterBuilder-filterOperationContains":"Contient","dxFilterBuilder-filterOperationNotContains":"Ne contient pas","dxFilterBuilder-filterOperationEndsWith":"Finit par","dxFilterBuilder-filterOperationIsBlank":"Est vide","dxFilterBuilder-filterOperationIsNotBlank":"N\'est pas vide","dxFilterBuilder-filterOperationBetween":"Entre","dxFilterBuilder-filterOperationAnyOf":"Est parmi","dxFilterBuilder-filterOperationNoneOf":"N\'est pas parmi","dxHtmlEditor-dialogColorCaption":"Changer couleur police","dxHtmlEditor-dialogBackgroundCaption":"Changer couleur fond","dxHtmlEditor-dialogLinkCaption":"Ajouter un hyperlien","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Texte","dxHtmlEditor-dialogLinkTargetField":"Ouvrir le lien dans une nouvelle fen\xeatre","dxHtmlEditor-dialogImageCaption":"Ajouter image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Texte alternatif","dxHtmlEditor-dialogImageWidthField":"Largeur (px)","dxHtmlEditor-dialogImageHeightField":"Hauteur (px)","dxHtmlEditor-dialogInsertTableRowsField":"Lignes","dxHtmlEditor-dialogInsertTableColumnsField":"Colonnes","dxHtmlEditor-dialogInsertTableCaption":"Ins\xe9rer un tableau","dxHtmlEditor-dialogUpdateImageCaption":"Actualiser l\'image","dxHtmlEditor-dialogImageUpdateButton":"Actualiser","dxHtmlEditor-dialogImageAddButton":"Ajouter","dxHtmlEditor-dialogImageSpecifyUrl":"Depuis le Web","dxHtmlEditor-dialogImageSelectFile":"Depuis cet appareil","dxHtmlEditor-dialogImageKeepAspectRatio":"Conserver les proportions","dxHtmlEditor-dialogImageEncodeToBase64":"Encoder en Base64","dxHtmlEditor-heading":"Titre","dxHtmlEditor-normalText":"Texte normal","dxHtmlEditor-background":"Couleur de l\'arri\xe8re plan","dxHtmlEditor-bold":"Gras","dxHtmlEditor-color":"Couleur de police","dxHtmlEditor-font":"Police","dxHtmlEditor-italic":"Italique","dxHtmlEditor-link":"Ajouter un hyperlien","dxHtmlEditor-image":"Ajouter une image","dxHtmlEditor-size":"Taille","dxHtmlEditor-strike":"Barr\xe9","dxHtmlEditor-subscript":"Indice","dxHtmlEditor-superscript":"Suscription","dxHtmlEditor-underline":"Souligner","dxHtmlEditor-blockquote":"Citation","dxHtmlEditor-header":"Ent\xeate","dxHtmlEditor-increaseIndent":"Augmenter le retrait","dxHtmlEditor-decreaseIndent":"R\xe9duire le retrait","dxHtmlEditor-orderedList":"Liste ordonn\xe9e","dxHtmlEditor-bulletList":"Liste \xe0 puces","dxHtmlEditor-alignLeft":"Aligner \xe0 gauche","dxHtmlEditor-alignCenter":"Centrer","dxHtmlEditor-alignRight":"Aligner \xe0 droite","dxHtmlEditor-alignJustify":"Justifier","dxHtmlEditor-codeBlock":"Bloc de code","dxHtmlEditor-variable":"Ajouter une variable","dxHtmlEditor-undo":"Annuler","dxHtmlEditor-redo":"Refaire","dxHtmlEditor-clear":"Supprimer le formattage","dxHtmlEditor-insertTable":"Ins\xe9rer tableau","dxHtmlEditor-insertHeaderRow":"Ins\xe9rer une ligne d\'en-t\xeate","dxHtmlEditor-insertRowAbove":"Ins\xe9rer une ligne au-dessus","dxHtmlEditor-insertRowBelow":"Ins\xe9rer une ligne ci-dessous","dxHtmlEditor-insertColumnLeft":"Ins\xe9rer une colonne \xe0 gauche","dxHtmlEditor-insertColumnRight":"Ins\xe9rer une colonne \xe0 droite","dxHtmlEditor-deleteColumn":"Supprimer la colonne","dxHtmlEditor-deleteRow":"Supprimer la ligne","dxHtmlEditor-deleteTable":"Supprimer le tableau","dxHtmlEditor-cellProperties":"Propri\xe9t\xe9s de la cellule","dxHtmlEditor-tableProperties":"Propri\xe9t\xe9s du tableau","dxHtmlEditor-insert":"Ins\xe9rer","dxHtmlEditor-delete":"Supprimer","dxHtmlEditor-border":"Bordure","dxHtmlEditor-style":"Style","dxHtmlEditor-width":"Largeur","dxHtmlEditor-height":"Hauteur","dxHtmlEditor-borderColor":"Couleur","dxHtmlEditor-tableBackground":"Arri\xe8re plan","dxHtmlEditor-dimensions":"Dimensions","dxHtmlEditor-alignment":"Alignement","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertical","dxHtmlEditor-paddingVertical":"Rembourrage vertical","dxHtmlEditor-paddingHorizontal":"Rembourrage horizontal","dxHtmlEditor-pixels":"Pixels","dxHtmlEditor-list":"Liste","dxHtmlEditor-ordered":"En ordre","dxHtmlEditor-bullet":"Point","dxHtmlEditor-align":"Aligner","dxHtmlEditor-center":"Centrer","dxHtmlEditor-left":"Gauche","dxHtmlEditor-right":"Droite","dxHtmlEditor-indent":"Retrait","dxHtmlEditor-justify":"Justifier","dxHtmlEditor-borderStyleNone":"none","dxHtmlEditor-borderStyleHidden":"hidden","dxHtmlEditor-borderStyleDotted":"dotted","dxHtmlEditor-borderStyleDashed":"dashed","dxHtmlEditor-borderStyleSolid":"solid","dxHtmlEditor-borderStyleDouble":"double","dxHtmlEditor-borderStyleGroove":"groove","dxHtmlEditor-borderStyleRidge":"ridge","dxHtmlEditor-borderStyleInset":"inset","dxHtmlEditor-borderStyleOutset":"outset","dxFileManager-newDirectoryName":"R\xe9pertoire sans titre","dxFileManager-rootDirectoryName":"Fichiers","dxFileManager-errorNoAccess":"Acc\xe8s interdit. L\'op\xe9ration ne peut se terminer.","dxFileManager-errorDirectoryExistsFormat":"R\xe9pertoire \'{0}\' existe d\xe9j\xe0.","dxFileManager-errorFileExistsFormat":"Fichier \'{0}\' existe d\xe9j\xe0.","dxFileManager-errorFileNotFoundFormat":"Impossible de trouver le fichier \'{0}.\'","dxFileManager-errorDirectoryNotFoundFormat":"Impossible de trouver le r\xe9pertoire \'{0}.\'","dxFileManager-errorWrongFileExtension":"Extension de fichier non permise.","dxFileManager-errorMaxFileSizeExceeded":"Taille du fichier d\xe9passe la limite maximum permise.","dxFileManager-errorInvalidSymbols":"Ce nom contient des caract\xe8res invalides.","dxFileManager-errorDefault":"Erreur non sp\xe9cifi\xe9.","dxFileManager-errorDirectoryOpenFailed":"Le r\xe9pertoire ne peut s\'ouvrir","dxFileManager-commandCreate":"Nouveau r\xe9pertoire","dxFileManager-commandRename":"Renommer","dxFileManager-commandMove":"D\xe9placer","dxFileManager-commandCopy":"Copier","dxFileManager-commandDelete":"Supprimer","dxFileManager-commandDownload":"T\xe9l\xe9charger","dxFileManager-commandUpload":"T\xe9l\xe9verser des fichiers","dxFileManager-commandRefresh":"Rafra\xeechir","dxFileManager-commandThumbnails":"Mode vignette","dxFileManager-commandDetails":"Mode d\xe9tails","dxFileManager-commandClearSelection":"Vider s\xe9lection","dxFileManager-commandShowNavPane":"Basculer le volet de navigation","dxFileManager-dialogDirectoryChooserMoveTitle":"D\xe9placer vers","dxFileManager-dialogDirectoryChooserMoveButtonText":"D\xe9placer","dxFileManager-dialogDirectoryChooserCopyTitle":"Copier vers","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copier","dxFileManager-dialogRenameItemTitle":"Renommer","dxFileManager-dialogRenameItemButtonText":"Sauvegarder","dxFileManager-dialogCreateDirectoryTitle":"Nouveau r\xe9pertoire","dxFileManager-dialogCreateDirectoryButtonText":"Cr\xe9er","dxFileManager-dialogDeleteItemTitle":"Supprimer","dxFileManager-dialogDeleteItemButtonText":"Supprimer","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Voulez-vous vraiment supprimer {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Voulez-vous vraiment supprimer {0}?","dxFileManager-dialogButtonCancel":"Annuler","dxFileManager-editingCreateSingleItemProcessingMessage":"Cr\xe9er un r\xe9pertoire dans {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"R\xe9pertoire cr\xe9\xe9 dans {0}","dxFileManager-editingCreateSingleItemErrorMessage":"R\xe9pertoire n\'est pas cr\xe9\xe9","dxFileManager-editingCreateCommonErrorMessage":"R\xe9pertoire n\'est pas cr\xe9\xe9","dxFileManager-editingRenameSingleItemProcessingMessage":"Renommer un item dans {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Item renomm\xe9 dans {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item non renomm\xe9","dxFileManager-editingRenameCommonErrorMessage":"Item non renomm\xe9","dxFileManager-editingDeleteSingleItemProcessingMessage":"Supprimer un item de {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Supprimer {0} items de {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Item supprim\xe9 de {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"{0} items supprim\xe9s de {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item non suprim\xe9","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items non supprim\xe9s","dxFileManager-editingDeleteCommonErrorMessage":"Des items ne sont pas supprim\xe9s","dxFileManager-editingMoveSingleItemProcessingMessage":"En train de d\xe9placer un item vers {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"En train de d\xe9placer {0} items vers {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Item d\xe9plac\xe9 vers {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"{0} items d\xe9plac\xe9s vers {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item non d\xe9plac\xe9","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items non d\xe9plac\xe9s","dxFileManager-editingMoveCommonErrorMessage":"Des items ne sont pas d\xe9plac\xe9s","dxFileManager-editingCopySingleItemProcessingMessage":"En train de copier un item vers {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"En train de copier {0} items vers {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Item copi\xe9 vers {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"{0} items copi\xe9s vers {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item non copi\xe9","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items non copi\xe9s","dxFileManager-editingCopyCommonErrorMessage":"Des items ne sont pas copi\xe9s","dxFileManager-editingUploadSingleItemProcessingMessage":"En train de t\xe9l\xe9verser un item vers {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"En train de t\xe9l\xe9verser {0} items vers {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Item t\xe9l\xe9vers\xe9 vers {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"{0} items t\xe9l\xe9vers\xe9s vers {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item non t\xe9l\xe9vers\xe9","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items non t\xe9l\xe9vers\xe9s","dxFileManager-editingUploadCanceledMessage":"Annul\xe9","dxFileManager-editingDownloadSingleItemErrorMessage":"L\'\xe9l\xe9ment n\'a pas \xe9t\xe9 t\xe9l\xe9charg\xe9","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} \xe9l\xe9ments n\'ont pas \xe9t\xe9 t\xe9l\xe9charg\xe9s","dxFileManager-listDetailsColumnCaptionName":"Nom","dxFileManager-listDetailsColumnCaptionDateModified":"Date modifi\xe9","dxFileManager-listDetailsColumnCaptionFileSize":"Taille de fichier","dxFileManager-listThumbnailsTooltipTextSize":"Taille","dxFileManager-listThumbnailsTooltipTextDateModified":"Date modifi\xe9","dxFileManager-notificationProgressPanelTitle":"En cours","dxFileManager-notificationProgressPanelEmptyListText":"Aucune op\xe9ration","dxFileManager-notificationProgressPanelOperationCanceled":"Annul\xe9","dxDiagram-categoryGeneral":"G\xe9n\xe9ral","dxDiagram-categoryFlowchart":"Organigramme","dxDiagram-categoryOrgChart":"Structure organisationnelle","dxDiagram-categoryContainers":"Conteneurs","dxDiagram-categoryCustom":"Personnalis\xe9","dxDiagram-commandExportToSvg":"Exporter en SVG","dxDiagram-commandExportToPng":"Exporter en PNG","dxDiagram-commandExportToJpg":"Exporter en JPEG","dxDiagram-commandUndo":"Annuler","dxDiagram-commandRedo":"Refaire","dxDiagram-commandFontName":"Nom de la police","dxDiagram-commandFontSize":"Taille de la police","dxDiagram-commandBold":"Gras","dxDiagram-commandItalic":"Italique","dxDiagram-commandUnderline":"Souligner","dxDiagram-commandTextColor":"Couleur texte","dxDiagram-commandLineColor":"Couleur ligne","dxDiagram-commandLineWidth":"Largeur de ligne","dxDiagram-commandLineStyle":"Style de ligne","dxDiagram-commandLineStyleSolid":"Solide","dxDiagram-commandLineStyleDotted":"Point\xe9","dxDiagram-commandLineStyleDashed":"Pointill\xe9","dxDiagram-commandFillColor":"Couleur remplissage","dxDiagram-commandAlignLeft":"Aligner \xe0 gauche","dxDiagram-commandAlignCenter":"Centrer","dxDiagram-commandAlignRight":"Aligner \xe0 droite","dxDiagram-commandConnectorLineType":"Type de ligne de connexion","dxDiagram-commandConnectorLineStraight":"Droit","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"D\xe9but de la ligne de connexion","dxDiagram-commandConnectorLineEnd":"Fin de la ligne de connexion","dxDiagram-commandConnectorLineNone":"Aucun","dxDiagram-commandConnectorLineArrow":"Fl\xe8che","dxDiagram-commandFullscreen":"Plein \xe9cran","dxDiagram-commandUnits":"Unit\xe9s","dxDiagram-commandPageSize":"Taille de la page","dxDiagram-commandPageOrientation":"Orientation de la page","dxDiagram-commandPageOrientationLandscape":"Paysage","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Couleur de la page","dxDiagram-commandShowGrid":"Afficher la grille","dxDiagram-commandSnapToGrid":"Aligner sur la grille","dxDiagram-commandGridSize":"Taille de la grille","dxDiagram-commandZoomLevel":"Niveau de zoom","dxDiagram-commandAutoZoom":"Zoom automatique","dxDiagram-commandFitToContent":"Ajuster au contenu","dxDiagram-commandFitToWidth":"Ajuster \xe0 la largeur","dxDiagram-commandAutoZoomByContent":"Auto zoom par contenu","dxDiagram-commandAutoZoomByWidth":"Auto zoom par largeur","dxDiagram-commandSimpleView":"Vue simple","dxDiagram-commandCut":"Couper","dxDiagram-commandCopy":"Copier","dxDiagram-commandPaste":"Coller","dxDiagram-commandSelectAll":"Tout s\xe9lectionner","dxDiagram-commandDelete":"Supprimer","dxDiagram-commandBringToFront":"Amener au premier plan","dxDiagram-commandSendToBack":"Envoyer \xe0 l\'arri\xe8re","dxDiagram-commandLock":"Verrouiller","dxDiagram-commandUnlock":"D\xe9verrouiller","dxDiagram-commandInsertShapeImage":"Ins\xe9rer une image...","dxDiagram-commandEditShapeImage":"Changer image...","dxDiagram-commandDeleteShapeImage":"Supprimer image","dxDiagram-commandLayoutLeftToRight":"Gauche \xe0 droite","dxDiagram-commandLayoutRightToLeft":"Droite \xe0 gauche","dxDiagram-commandLayoutTopToBottom":"Haut en bas","dxDiagram-commandLayoutBottomToTop":"Bas en haut","dxDiagram-unitIn":"po","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Annuler","dxDiagram-dialogInsertShapeImageTitle":"Ins\xe9rer une image","dxDiagram-dialogEditShapeImageTitle":"Changer image","dxDiagram-dialogEditShapeImageSelectButton":"S\xe9lectionner une image","dxDiagram-dialogEditShapeImageLabelText":"ou d\xe9poser le fichier ici","dxDiagram-uiExport":"Exporter","dxDiagram-uiProperties":"Propri\xe9t\xe9s","dxDiagram-uiSettings":"Param\xe8tres","dxDiagram-uiShowToolbox":"Afficher les outils","dxDiagram-uiSearch":"Recherche","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Disposition","dxDiagram-uiLayoutTree":"Arbre","dxDiagram-uiLayoutLayered":"Par couches","dxDiagram-uiDiagram":"Diagramme","dxDiagram-uiText":"Texte","dxDiagram-uiObject":"Objet","dxDiagram-uiConnector":"Connecteur","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Texte","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Croix","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamant","dxDiagram-shapeHeart":"C\u0153ur","dxDiagram-shapePentagon":"Pentagone","dxDiagram-shapeHexagon":"Hexagone","dxDiagram-shapeOctagon":"Octogone","dxDiagram-shapeStar":"\xc9toile","dxDiagram-shapeArrowLeft":"Fl\xe8che gauche","dxDiagram-shapeArrowUp":"Fl\xe8che vers le haut","dxDiagram-shapeArrowRight":"Fl\xe8che droite","dxDiagram-shapeArrowDown":"Fl\xe8che vers le bas","dxDiagram-shapeArrowUpDown":"Fl\xe8che haut bas","dxDiagram-shapeArrowLeftRight":"Fl\xe8che gauche droite","dxDiagram-shapeProcess":"Processus","dxDiagram-shapeDecision":"D\xe9cision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Processus pr\xe9d\xe9fini","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Documents multiples","dxDiagram-shapeManualInput":"Entr\xe9e manuelle","dxDiagram-shapePreparation":"Pr\xe9paration","dxDiagram-shapeData":"Donn\xe9es","dxDiagram-shapeDatabase":"Base de donn\xe9es","dxDiagram-shapeHardDisk":"Disque dur","dxDiagram-shapeInternalStorage":"Stockage interne","dxDiagram-shapePaperTape":"Bande de papier","dxDiagram-shapeManualOperation":"Op\xe9ration manuelle","dxDiagram-shapeDelay":"Retard","dxDiagram-shapeStoredData":"Les donn\xe9es stock\xe9es","dxDiagram-shapeDisplay":"Afficher","dxDiagram-shapeMerge":"Fusionner","dxDiagram-shapeConnector":"Connecteur","dxDiagram-shapeOr":"Ou","dxDiagram-shapeSummingJunction":"Jonction de sommation","dxDiagram-shapeContainerDefaultText":"R\xe9cipient","dxDiagram-shapeVerticalContainer":"Conteneur vertical","dxDiagram-shapeHorizontalContainer":"Conteneur horizontal","dxDiagram-shapeCardDefaultText":"Nom de la personne","dxDiagram-shapeCardWithImageOnLeft":"Carte avec image \xe0 gauche","dxDiagram-shapeCardWithImageOnTop":"Carte avec image sur le dessus","dxDiagram-shapeCardWithImageOnRight":"Carte avec image \xe0 droite","dxGantt-dialogTitle":"Titre","dxGantt-dialogStartTitle":"D\xe9part","dxGantt-dialogEndTitle":"Fin","dxGantt-dialogProgressTitle":"Progr\xe8s","dxGantt-dialogResourcesTitle":"Ressources","dxGantt-dialogResourceManagerTitle":"Gestionnaire de ressources","dxGantt-dialogTaskDetailsTitle":"D\xe9tails de la t\xe2che","dxGantt-dialogEditResourceListHint":"Modifier la liste des ressources","dxGantt-dialogEditNoResources":"Pas de ressources","dxGantt-dialogButtonAdd":"Ajouter","dxGantt-contextMenuNewTask":"Nouvelle t\xe2che","dxGantt-contextMenuNewSubtask":"Nouvelle sous-t\xe2che","dxGantt-contextMenuDeleteTask":"Supprimer la t\xe2che","dxGantt-contextMenuDeleteDependency":"Supprimer la d\xe9pendance","dxGantt-dialogTaskDeleteConfirmation":"La suppression d\'une t\xe2che supprime \xe9galement toutes ses d\xe9pendances et sous-t\xe2ches. \xcates-vous s\xfbr de vouloir supprimer cette t\xe2che?","dxGantt-dialogDependencyDeleteConfirmation":"\xcates-vous s\xfbr de vouloir supprimer la d\xe9pendance de la t\xe2che?","dxGantt-dialogResourcesDeleteConfirmation":"La suppression d\'une ressource la supprime \xe9galement des t\xe2ches auxquelles cette ressource est affect\xe9e. Voulez-vous vraiment supprimer ces ressources? Ressources : {0}","dxGantt-dialogConstraintCriticalViolationMessage":"La t\xe2che que vous essayez de d\xe9placer est li\xe9e \xe0 une deuxi\xe8me t\xe2che par une relation de d\xe9pendance. Ce changement serait en conflit avec les r\xe8gles de d\xe9pendance. Comment aimeriez-vous proceder?","dxGantt-dialogConstraintViolationMessage":"La t\xe2che que vous essayez de d\xe9placer est li\xe9e \xe0 une deuxi\xe8me t\xe2che par une relation de d\xe9pendance. Comment aimeriez-vous proceder?","dxGantt-dialogCancelOperationMessage":"Annuler l\'op\xe9ration","dxGantt-dialogDeleteDependencyMessage":"Supprimer la d\xe9pendance","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"D\xe9placer la t\xe2che et conserver la d\xe9pendance","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"La t\xe2che que vous essayez de d\xe9placer est li\xe9e \xe0 une autre t\xe2che par des relations de d\xe9pendance. Ce changement serait en conflit avec les r\xe8gles de d\xe9pendance. Comment aimeriez-vous proceder?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"La t\xe2che que vous essayez de d\xe9placer est li\xe9e \xe0 une autre t\xe2che par des relations de d\xe9pendance. Comment aimeriez-vous proceder?","dxGantt-dialogDeleteDependenciesMessage":"Supprimer les d\xe9pendances","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"D\xe9placer la t\xe2che et conserver les d\xe9pendances","dxGantt-undo":"Annuler","dxGantt-redo":"Refaire","dxGantt-expandAll":"D\xe9velopper tout","dxGantt-collapseAll":"Tout r\xe9duire","dxGantt-addNewTask":"Ajouter une nouvelle t\xe2che","dxGantt-deleteSelectedTask":"Supprimer la t\xe2che s\xe9lectionn\xe9e","dxGantt-zoomIn":"Agrandir","dxGantt-zoomOut":"D\xe9zoomer","dxGantt-fullScreen":"Plein \xe9cran","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Tri croissant","dxGantt-sortingDescendingText":"Tri d\xe9croissant","dxGantt-sortingClearText":"Supprimer le tri","dxGantt-showResources":"Afficher les ressources","dxGantt-showDependencies":"Afficher les d\xe9pendances","dxGantt-dialogStartDateValidation":"La date de d\xe9but doit \xeatre post\xe9rieure au {0}","dxGantt-dialogEndDateValidation":"La date de fin doit \xeatre post\xe9rieure au {0}","dxGallery-itemName":"Gallery item","dxMultiView-elementAriaRoleDescription":"MultiView","dxMultiView-elementAriaLabel":"Use the arrow keys or swipe to navigate between views","dxMultiView-itemAriaRoleDescription":"View","dxMultiView-itemAriaLabel":"{0} of {1}","dxSplitter-resizeHandleAriaLabel":"Split bar"}}');let dK=(()=>{var o;class t{static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275mod=e.$C({type:t}),this.\u0275inj=m.G2t({imports:[C.MD]}))}return o(),t})(),qL=(()=>{var o;class t{constructor(s){this.injector=s,this.injector.get(Jn),this.injector.get(Qn)}static forRoot(){return{ngModule:t,providers:[Jn,Qn]}}static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)(m.KVO(m.zZn))},this.\u0275mod=e.$C({type:t}),this.\u0275inj=m.G2t({providers:[Jn,Qn],imports:[C.MD,Ii.YN]}))}return o(),t})(),uK=(()=>{var o;class t{static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275mod=e.$C({type:t}),this.\u0275inj=m.G2t({imports:[C.MD,qL]}))}return o(),t})();var Y0=p(842),hK=p(7569),pK=p(6716);class gK extends Vt.b{constructor(){super(...arguments),this.storedRoutes=new Map}shouldDetach(t){return!1}store(t,n){this.storedRoutes.set(t.routeConfig?.path??"/",n)}shouldAttach(t){return!!t.routeConfig&&!!this.storedRoutes.get(t.routeConfig.path)}retrieve(t){return this.storedRoutes.get(t.routeConfig?.path??"/")??null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}var hk=p(4077);let fK=(()=>{var o;class t{static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275mod=e.$C({type:t}),this.\u0275inj=m.G2t({providers:[xn],imports:[C.MD,Y0.A,hk.p]}))}return o(),t})(),mK=(()=>{var o;class t{static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275mod=e.$C({type:t}),this.\u0275inj=m.G2t({providers:[Ss],imports:[C.MD,Y0.A,hk.p,Ii.YN]}))}return o(),t})(),_K=(()=>{var o;class t{static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275mod=e.$C({type:t}),this.\u0275inj=m.G2t({imports:[C.MD,hk.p]}))}return o(),t})();var vK=p(3686),CK=p(8747);let e2=(()=>{var o;class t{static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275mod=e.$C({type:t}),this.\u0275inj=m.G2t({imports:[C.MD,Y0.A]}))}return o(),t})();var yK=p(9055),bK=p(444);let t2=(()=>{var o;class t{static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275mod=e.$C({type:t}),this.\u0275inj=m.G2t({providers:[oo,Wi,Pi],imports:[C.MD,Xi.F,en.p,yK.Q,Gn.L,Wr.i,Zn.d,bK.x,is.S,Vg]}))}return o(),t})();var xK=p(893);let EK=(()=>{var o;class t{static#e=o=()=>(this.\u0275fac=function(r){return new(r||t)},this.\u0275mod=e.$C({type:t}),this.\u0275inj=m.G2t({providers:[Hi,Fc,Ka,Ku,CK.j,Kc,kD,e_],imports:[C.MD,Ii.YN,xK.Z,Y0.A,e2,t2,js,Ii.YN,Y0.A]}))}return o(),t})();var wK=p(9012),SK=p(4775),DK=p(1757);p(5169).A.defaultOptions({options:{focusStateEnabled:!0,hideOnOutsideClick:!1,deferRendering:!1,elementAttr:{role:"dialog","aria-modal":"true"}}}),DK.A.defaultOptions({options:{focusStateEnabled:!0,tabIndex:0}}),wK.A.defaultOptions({options:{focusStateEnabled:!0,tabIndex:0}}),SK.A.defaultOptions({options:{focusStateEnabled:!0,tabIndex:0}});const AK=[{path:"chat",loadChildren:()=>n2.getMiniScopeIsRedesign()?Promise.all([p.e("default-node_modules_devextreme_esm_ui_speed_dial_action_repaint_floating_action_button_js-no-b40944"),p.e("src_app_chat-module_chat_module_ts")]).then(p.bind(p,5325)).then(t=>t.default):Promise.all([p.e("default-node_modules_devextreme_esm_ui_speed_dial_action_repaint_floating_action_button_js-no-b40944"),p.e("src_app_chat-module-legacy_chat_module_ts")]).then(p.bind(p,4626)).then(t=>t.default),data:{reuseComponent:!0,canLoad:[ft.g]}}];let IK=(()=>{var o;class t extends Oo.EZ{constructor(){super(...arguments),this.overrides={swipe:{direction:pK.DIRECTION_ALL},pinch:{enable:!0},pan:{enable:!0}}}static#e=o=()=>(this.\u0275fac=(()=>{let s;return function(l){return(s||(s=e.xGo(t)))(l||t)}})(),this.\u0275prov=m.jDH({token:t,factory:t.\u0275fac}))}return o(),t})();function MK(o){return o.createCompiler()}let n2=(()=>{var o;class t{constructor(s,r,l){this.upgrade=s,this.theminService=r,this.scopeService=l,t.miniScope=this.scopeService.getMiniScope()}ngDoBootstrap(s){if(t.isBootstrapped)return;const r=this.upgrade;document.onreadystatechange=function(){"interactive"===document.readyState&&(r.bootstrap(document.getElementsByTagName("html")[0],["app"],{strictDi:!0}),K())},t.isBootstrapped=!0,(0,vK.A)({licenseKey:"ewogICJmb3JtYXQiOiAxLAogICJjdXN0b21lcklkIjogIjJhZGVlODQzLWM1ZjctNDZhNC05NmQ5LWU0OTU0YzQ2MTJkMCIsCiAgIm1heFZlcnNpb25BbGxvd2VkIjogMjQxCn0=.CV31v7xJUX1WEYm3ehMKbkyu3e09oN7FVbgrWj41Iil0HNASrq5cwZghhpy7iZV0P1ECtK/vTbXqozqIPHECoTtU+rmlV5HmNVY6FVxKReY45immdA/E5KKkQP/nPqLwdDOIRQ=="}),(0,Te.fH)(lK),(0,Te.fH)(cK)}static#e=o=()=>(this.isBootstrapped=!1,this.getMiniScopeIsRedesign=()=>"Redesign2024"==t.miniScope.data.RootCssClass,this.\u0275fac=function(r){return new(r||t)(m.KVO(He.be),m.KVO(oo),m.KVO(Se.A))},this.\u0275mod=e.$C({type:t}),this.\u0275inj=m.G2t({providers:[Nt.L,e.Ql9,{provide:Oo.kQ,useClass:IK},{provide:Vt.b,useClass:gK},{provide:ft.g},{provide:e.d80,useValue:{},multi:!0},{provide:e.OfE,useClass:ZL,deps:[e.d80]},{provide:e.Ql9,useFactory:MK,deps:[e.OfE]}],imports:[ce,He.be,Y0.A,C.MD,Oo.fM,dK,fK,mK,uK,hK.iI.forRoot(AK,{initialNavigation:"enabledNonBlocking",onSameUrlNavigation:"reload",enableTracing:!1}),qL.forRoot(),_K,EK,e2,t2]}))}return o(),t})();(function cP(){app.directive("appChatHome",(0,Re.PW)({component:nn})),app.directive("appChatHomeLegacy",(0,Re.PW)({component:rn})),app.directive("chatBubble",(0,Re.PW)({component:me})),app.directive("userVitals",(0,Re.PW)({component:On})),app.directive("apicodoLoadingSpinnerComponent",(0,Re.PW)({component:Bt,inputs:["isLoading","loadingMessage"]})),app.directive("chatOneToOneActionButtonComponent",(0,Re.PW)({component:ji.D})),app.directive("appSmartBanner",(0,Re.PW)({component:_e})),app.directive("cookieExternalMediaInfo",(0,Re.PW)({component:Ve,inputs:["type","isAssetListItem"]})),app.directive("cookieConsentComponentManager",(0,Re.PW)({component:_o})),app.directive("workflowRenderer",(0,Re.PW)({component:_s,inputs:["workflowid","ispreview","articleid","revisionid"]})),app.directive("pixabaySearcher",(0,Re.PW)({component:Ho,inputs:["callback","callerdata","dismiss"]})),app.directive("apicodoMediaManagement",(0,Re.PW)({component:nr,inputs:["callback"]})),app.directive("userCommentsListComponent",(0,Re.PW)({component:zu})),app.directive("userCommentFormComponent",(0,Re.PW)({component:Mc})),app.directive("mediaGalleryComponent",(0,Re.PW)({component:Ph})),app.directive("mediaGalleryItemComponent",(0,Re.PW)({component:Sp})),app.directive("userBadgeNewComponent",(0,Re.PW)({component:uu})),app.directive("userBadgeSimple",(0,Re.PW)({component:cu})),app.directive("recommendedArticlesComponent",(0,Re.PW)({component:Td})),app.directive("ohaComponent",(0,Re.PW)({component:Hl})),app.directive("headerComponent",(0,Re.PW)({component:Xl})),app.directive("footerComponent",(0,Re.PW)({component:Ql})),app.directive("articleCategoriesComponent",(0,Re.PW)({component:Vc})),app.directive("miscellaneousUserInteractionsComponent",(0,Re.PW)({component:Gr})),app.directive("displayableLeadArticleImageLeftComponent",(0,Re.PW)({component:Ui})),app.directive("displayableArticleWithImageComponent",(0,Re.PW)({component:uv})),app.directive("displayableArticleWithoutImageComponent",(0,Re.PW)({component:hv})),app.directive("displayableLeadArticleImageRightComponent",(0,Re.PW)({component:gc})),app.directive("displayableSuperbannerComponent",(0,Re.PW)({component:sE})),app.directive("displayableShipmentWithImageComponent",(0,Re.PW)({component:gv})),app.directive("displayableShipmentWithoutImageComponent",(0,Re.PW)({component:Fy})),app.directive("displayableSnipComponent",(0,Re.PW)({component:By})),app.directive("notificationsSettingsComponent",(0,Re.PW)({component:gE})),app.directive("notificationsComponent",(0,Re.PW)({component:fE})),app.directive("appStoreComponent",(0,Re.PW)({component:Gy})),app.directive("snipsComponent",(0,Re.PW)({component:XD})),app.directive("snipComponent",(0,Re.PW)({component:ob})),app.directive("navigationBarBrowserComponent",(0,Re.PW)({component:CE})),app.directive("navigationBarAppComponent",(0,Re.PW)({component:bE})),app.directive("authorBillingEditorComponent",(0,Re.PW)({component:Tb})),app.directive("rubricsComponent",(0,Re.PW)({component:AE})),app.directive("navigationHeaderComponent",(0,Re.PW)({component:jE})),app.directive("userMenuComponent",(0,Re.PW)({component:XE})),app.directive("sponsoredArticleListComponent",(0,Re.PW)({component:Wf})),app.directive("authorListComponent",(0,Re.PW)({component:qE})),app.directive("authorListItemComponent",(0,Re.PW)({component:tC,inputs:["authorData"]})),app.directive("eventCalendarComponent",(0,Re.PW)({component:pO})),app.directive("registerComponent",(0,Re.PW)({component:AT,inputs:["signUpData"]})),app.directive("loginComponent",(0,Re.PW)({component:Vb})),app.directive("publicProfileComponent",(0,Re.PW)({component:Wb})),app.directive("authorDashboardComponent",(0,Re.PW)({component:sd})),app.directive("snipAuthorApplicationComponent",(0,Re.PW)({component:mC,inputs:["snipId"]})),app.directive("searchComponent",(0,Re.PW)({component:CC})),app.directive("feedbackComponent",(0,Re.PW)({component:yC})),app.directive("firstPublishComponent",(0,Re.PW)({component:m1})),app.directive("aiGenerateHeadersButtonComponent",(0,Re.PW)({component:eS})),app.directive("aiAssistantComponent",(0,Re.PW)({component:Ja})),app.directive("aiAssistantButtonComponent",(0,Re.PW)({component:tS})),app.directive("aiGenerateCaptionButtonComponent",(0,Re.PW)({component:L_})),app.directive("authenticationSettingsComponent",(0,Re.PW)({component:SA})),app.directive("emailManagementComponent",(0,Re.PW)({component:Vx})),app.directive("changeEmailComponent",(0,Re.PW)({component:Hx})),app.directive("eventCalendarDetailComponent",(0,Re.PW)({component:Kx})),app.directive("surveyComponent",(0,Re.PW)({component:KC,inputs:["survey","article"]})),app.directive("surveyDetailComponent",(0,Re.PW)({component:y,inputs:["surveyId"]})),app.directive("surveyQuestionComponent",(0,Re.PW)({component:yc})),app.directive("marketResearchComponent",(0,Re.PW)({component:on,inputs:["marketResearch","article"]})),app.directive("publicProfileArticleListDisplayableComponent",(0,Re.PW)({component:dC,inputs:["article"]})),app.directive("loginDialogComponent",(0,Re.PW)({component:x1.v})),app.directive("loginOptionDialogComponent",(0,Re.PW)({component:O1,inputs:["onLoginButtonClicked","hasHowTo","dismissPopup"]})),app.directive("eventCalendarPublishComponent",(0,Re.PW)({component:dS,inputs:["dismissPopup"]})),app.directive("displayableStaticArticleComponent",(0,Re.PW)({component:NA})),app.directive("privateProfileComponent",(0,Re.PW)({component:uI})),app.directive("navigationHeaderLogoComponent",(0,Re.PW)({component:pc})),app.directive("eventCalendarDetailParticipantsComponent",(0,Re.PW)({component:z1})),app.directive("imageGalleryComponent",(0,Re.PW)({component:iT})),app.directive("advertiserBillingInfoComponent",(0,Re.PW)({component:CI})),app.directive("editorHeadingComponent",(0,Re.PW)({component:_k})),app.directive("optOutComponent",(0,Re.PW)({component:Z1})),app.directive("articleQuestionComponent",(0,Re.PW)({component:jA,inputs:["article"]})),app.directive("passwortResetComponent",(0,Re.PW)({component:lP})),app.directive("passwordResetCompleteComponent",(0,Re.PW)({component:Ck})),app.directive("requestPasswordCompleteComponent",(0,Re.PW)({component:ZC})),app.directive("dxTagBoxWrapper",(0,Re.PW)({component:hn,inputs:["options"]})),app.directive("dxLookupWrapper",(0,Re.PW)({component:rs,inputs:["options"]})),app.directive("dxSelectBoxWrapper",(0,Re.PW)({component:Es,inputs:["options"]})),app.directive("dxDateBoxWrapper",(0,Re.PW)({component:Js,inputs:["options"]})),app.directive("dxScrollViewWrapper",(0,Re.PW)({component:Tr,inputs:["options"]})),app.directive("dxButtonWrapper",(0,Re.PW)({component:ea,inputs:["options"]})),app.directive("dxSwitchWrapper",(0,Re.PW)({component:Hr,inputs:["options"]})),app.directive("dxTextboxWrapper",(0,Re.PW)({component:va,inputs:["options"]})),app.directive("dxTextAreaWrapper",(0,Re.PW)({component:ot,inputs:["options","value"]})),app.directive("dxLoadIndicatorWrapper",(0,Re.PW)({component:io,inputs:["options"]})),app.directive("appNgxArticleImpression",(0,Re.PW)({component:Nc,inputs:["ngxArticleData"]})),app.directive("appNgxArticleReading",(0,Re.PW)({component:Pl,inputs:["ngxArticleData"]})),app.directive("appNgxOculusContainer",(0,Re.PW)({component:Jc})),app.directive("appNgxSnipImpression",(0,Re.PW)({component:lh,inputs:["ngxSnipData"]})),app.directive("appNgxSnipReading",(0,Re.PW)({component:mu,inputs:["ngxSnipData"]})),app.directive("appNgxSparticleImpression",(0,Re.PW)({component:Dd,inputs:["ngxSparticleData","ngxArticleData"]})),app.directive("appNgxSparticleReading",(0,Re.PW)({component:Bd,inputs:["ngxSparticleData"]})),app.directive("appNgxShipmentPremium",(0,Re.PW)({component:yf})),app.factory("hybridRouteTrackingService",(0,Re.f$)(Ko.o)),app.factory("profileServiceRedesign",(0,Re.f$)($n.p)),app.factory("advertiserService",(0,Re.f$)(wg)),app.factory("articleService",(0,Re.f$)(id)),app.factory("snipService",(0,Re.f$)(Gh)),app.factory("shipmentService",(0,Re.f$)(Xe)),app.factory("logoService",(0,Re.f$)(Il.X)),app.factory("ngxPopupService",(0,Re.f$)(Ln.O)),app.factory("metaService",(0,Re.f$)(Wh.R)),app.factory("notificationService",(0,Re.f$)(Fd.J)),app.factory("authorService",(0,Re.f$)(Ka)),app.factory("aiService",(0,Re.f$)(Wp)),app.factory("editorService",(0,Re.f$)(N_)),app.factory("displayableFallbackCoverService",(0,Re.f$)(ul)),app.factory("editorSignalService",(0,Re.f$)(am)),app.factory("clickService",(0,Re.f$)(xt._)),app.directive("appNgxMainNews",(0,Re.PW)({component:LD})),app.config(["$stateProvider",function(o){o.state("app.chat",{url:"chat*path",template:"<app-chat-home></app-chat-home>",controller:function(){}})}])})(),(0,k.SmG)(),K().bootstrapModule(n2).catch(o=>console.error(o))},1973:(En,it,p)=>{"use strict";p.d(it,{A:()=>w});var S=p(5704);const m=new(p(8167).A);var T=p(7251),C=p(8879);m.add(function(P,v){S.A.fn[P]=function(x){let B;if("string"==typeof x){const j=x,F=[].slice.call(arguments).slice(1);this.each(function(){const X=v.getInstance(this);if(!X)throw T.A.Error("E0009",P);const Z=X[j].apply(X,F);void 0===B&&(B=Z)})}else this.each(function(){const j=v.getInstance(this);j?j.option(x):new v(this,x)}),B=this;return B}});const w=function(P,v,x){x?v[P]=x:x=v,(0,C.UU)(x,P),m.fire(P,x)}},1982:(En,it,p)=>{"use strict";function S(d,m,T,C=0,e=!1){const k=m.schedule(function(){T(),e?d.add(this.schedule(null,C)):this.unsubscribe()},C);if(d.add(k),!e)return k}p.d(it,{N:()=>S})},1983:(En,it,p)=>{"use strict";p.d(it,{B:()=>C,S:()=>e});var S=p(656),d=p(4303),m=p(2359),T=p(3349);let C=(()=>{class k extends T.ic{instance=null;get elementAttr(){return this._getOption("elementAttr")}set elementAttr(P){this._setOption("elementAttr",P)}get height(){return this._getOption("height")}set height(P){this._setOption("height",P)}get hint(){return this._getOption("hint")}set hint(P){this._setOption("hint",P)}get indicatorSrc(){return this._getOption("indicatorSrc")}set indicatorSrc(P){this._setOption("indicatorSrc",P)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(P){this._setOption("rtlEnabled",P)}get visible(){return this._getOption("visible")}set visible(P){this._setOption("visible",P)}get width(){return this._getOption("width")}set width(P){this._setOption("width",P)}onContentReady;onDisposing;onInitialized;onOptionChanged;elementAttrChange;heightChange;hintChange;indicatorSrcChange;rtlEnabledChange;visibleChange;widthChange;constructor(P,v,x,b,B,j,F){super(P,v,x,b,j,F),this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"indicatorSrcChange"},{emit:"rtlEnabledChange"},{emit:"visibleChange"},{emit:"widthChange"}]),B.setHost(this)}_createInstance(P,v){return new m.A(P,v)}ngOnDestroy(){this._destroyWidget()}static \u0275fac=function(v){return new(v||k)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:k,selectors:[["dx-load-indicator"]],inputs:{elementAttr:"elementAttr",height:"height",hint:"hint",indicatorSrc:"indicatorSrc",rtlEnabled:"rtlEnabled",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",elementAttrChange:"elementAttrChange",heightChange:"heightChange",hintChange:"hintChange",indicatorSrcChange:"indicatorSrcChange",rtlEnabledChange:"rtlEnabledChange",visibleChange:"visibleChange",widthChange:"widthChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH]),d.Vt3],decls:0,vars:0,template:function(v,x){},encapsulation:2})}return k})(),e=(()=>{class k{static \u0275fac=function(v){return new(v||k)};static \u0275mod=d.$C({type:k});static \u0275inj=S.G2t({imports:[T.p_,T.xZ,T.xZ]})}return k})()},2013:(En,it,p)=>{"use strict";p.d(it,{A:()=>k});var S=p(4859),d=p(6110);const m=(0,d.zk)(),T={observe:S.lQ,unobserve:S.lQ,disconnect:S.lQ},k=new class C{constructor(){if(!(0,d.Vd)()||!m.ResizeObserver)return T;this._callbacksMap=new Map,this._observer=new m.ResizeObserver(P=>{P.forEach(v=>{var x;null===(x=this._callbacksMap.get(v.target))||void 0===x||x(v)})})}observe(P,v){this._callbacksMap.set(P,v),this._observer.observe(P)}unobserve(P){this._callbacksMap.delete(P),this._observer.unobserve(P)}disconnect(){this._callbacksMap.clear(),this._observer.disconnect()}}},2029:(En,it,p)=>{"use strict";p.d(it,{Kn:()=>e,yU:()=>C,Uv:()=>k});var S=p(4418);const m=(0,p(4520).L)(P=>function(x){P(this),this.message=x?`${x.length} errors occurred during unsubscription:\n${x.map((b,B)=>`${B+1}) ${b.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=x});var T=p(9583);class C{constructor(v){this.initialTeardown=v,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let v;if(!this.closed){this.closed=!0;const{_parentage:x}=this;if(x)if(this._parentage=null,Array.isArray(x))for(const j of x)j.remove(this);else x.remove(this);const{initialTeardown:b}=this;if((0,S.T)(b))try{b()}catch(j){v=j instanceof m?j.errors:[j]}const{_finalizers:B}=this;if(B){this._finalizers=null;for(const j of B)try{w(j)}catch(F){v=v??[],F instanceof m?v=[...v,...F.errors]:v.push(F)}}if(v)throw new m(v)}}add(v){var x;if(v&&v!==this)if(this.closed)w(v);else{if(v instanceof C){if(v.closed||v._hasParent(this))return;v._addParent(this)}(this._finalizers=null!==(x=this._finalizers)&&void 0!==x?x:[]).push(v)}}_hasParent(v){const{_parentage:x}=this;return x===v||Array.isArray(x)&&x.includes(v)}_addParent(v){const{_parentage:x}=this;this._parentage=Array.isArray(x)?(x.push(v),x):x?[x,v]:v}_removeParent(v){const{_parentage:x}=this;x===v?this._parentage=null:Array.isArray(x)&&(0,T.o)(x,v)}remove(v){const{_finalizers:x}=this;x&&(0,T.o)(x,v),v instanceof C&&v._removeParent(this)}}C.EMPTY=(()=>{const P=new C;return P.closed=!0,P})();const e=C.EMPTY;function k(P){return P instanceof C||P&&"closed"in P&&(0,S.T)(P.remove)&&(0,S.T)(P.add)&&(0,S.T)(P.unsubscribe)}function w(P){(0,S.T)(P)?P():P.unsubscribe()}},2047:(En,it,p)=>{"use strict";p.d(it,{Ao:()=>k,Jj:()=>L,Lh:()=>J,lT:()=>G,mg:()=>R,oo:()=>Q,wD:()=>H});var S=p(4072),d=p(778),m=p(9293),T=p(7940),C=p(9209);function e(z){return(K,ee,re,be)=>{const ce=be?(0,m.b4)(z,be):z;if(ee)return S.A.on(K,ce,re,ee),()=>{S.A.off(K,ce,ee)}}}const k=e(d.U),H=(e(T.A.scroll),e(T.A.init),e(T.A.start),e(T.A.move),e(T.A.end),e(T.A.stop),e(T.A.cancel),e(C.A.down),e(C.A.up),e(C.A.move),e("mouseenter"),e("mouseleave"),e("keydown"),e("dxactive")),J=e("dxinactive"),R=e("dxhoverstart"),L=e("dxhoverend"),G=e("focusin"),Q=e("focusout")},2123:(En,it,p)=>{"use strict";p.d(it,{Cy:()=>B,IL:()=>v,Oj:()=>x,fw:()=>j,g:()=>F,ro:()=>b,x5:()=>k});var S=p(5704),d=p(5397),m=p(1830);const C=/matrix(3d)?\((.+?)\)/,e=/translate(?:3d)?\((.+?)\)/,k=function(X){X=(0,S.A)(X);const U=b(X);return{left:U.x,top:U.y}};function w(X){return"string"===(0,m.NW)(X)&&"%"===X[X.length-1]}function P(X,U){X.length&&(0,d.p)(X.get(0),"dxTranslator",U)}const v=function(X){X.length&&(0,d.jf)(X.get(0),"dxTranslator")},x=function(X){return X.x=X.x||0,X.y=X.y||0,"translate("+(w(X.x)?X.x:X.x+"px")+", "+(w(X.y)?X.y:X.y+"px")+")"},b=function(X){let U=X.length?(0,d.p)(X.get(0),"dxTranslator"):null;if(!U){let A=(X.css("transform")||x({x:0,y:0})).match(C);const M=A&&A[1];A?(A=A[2].split(","),"3d"===M?A=A.slice(12,15):(A.push(0),A=A.slice(4,7))):A=[0,0,0],U={x:parseFloat(A[0]),y:parseFloat(A[1]),z:parseFloat(A[2])},P(X,U)}return U},B=function(X,U){X=(0,S.A)(X);const Z=U.left,A=U.top;let M;void 0===Z?(M=b(X),M.y=A||0):void 0===A?(M=b(X),M.x=Z||0):(M={x:Z||0,y:A||0,z:0},P(X,M)),X.css({transform:x(M)}),(w(Z)||w(A))&&v(X)},j=function(X,U){let Z;X=(0,S.A)(X);const A={left:0,top:0,transform:"none"};U&&(Z=X.css("transition"),A.transition="none"),X.css(A),v(X),U&&(X.get(0),X.css("transition",Z))},F=function(X){let U=X.match(e);if(U&&U[1])return U=U[1].split(","),U={x:parseFloat(U[0]),y:parseFloat(U[1]),z:parseFloat(U[2])},U}},2145:(En,it,p)=>{"use strict";function S(m,T){T=encodeURIComponent(T);for(const C of m.split(";")){const e=C.indexOf("="),[k,w]=-1==e?[C,""]:[C.slice(0,e),C.slice(e+1)];if(k.trim()===T)return decodeURIComponent(w)}return null}p.d(it,{N:()=>d,b:()=>S});class d{}},2148:(En,it,p)=>{"use strict";p.d(it,{A:()=>J});var S=p(851),d=p(1973),m=p(5704),T=p(3090),C=p(3684),e=p(9430);const x="dx-colorbox-color-is-not-defined",Z=e.A.prototype,A={makeTransparentBackground:Z._makeTransparentBackground.bind(Z),makeRgba:Z._makeRgba.bind(Z)},M=C.A.inherit({_supportedKeys(){const R=function(L){if(L.stopPropagation(),this.option("opened"))return L.preventDefault(),!0};return(0,T.X)(this.callBase(),{enter:this._enterKeyHandler,leftArrow:R,rightArrow:R,upArrow:function(L){return this.option("opened")?!L.altKey||(this.close(),!1):(L.preventDefault(),!1)},downArrow:function(L){return this.option("opened")||L.altKey?!(!this.option("opened")&&L.altKey&&(this._validatedOpening(),1)):(L.preventDefault(),!1)}})},_getDefaultOptions(){return(0,T.X)(this.callBase(),{editAlphaChannel:!1,applyValueMode:"useButtons",keyStep:1,fieldTemplate:null,buttonsLocation:"bottom after"})},_popupHidingHandler(){this.callBase(),"useButtons"===this.option("applyValueMode")&&this._updateColorViewValue(this.option("value"))},_popupConfig(){return(0,T.X)(this.callBase(),{width:""})},_contentReadyHandler(){this._createColorView(),this._addPopupBottomClasses()},_addPopupBottomClasses(){const R=this._popup.bottomToolbar();R&&(R.addClass("dx-colorview-container-cell").addClass("dx-colorview-button-cell").find(".dx-toolbar-items-container").addClass("dx-colorview-buttons-container"),R.find(".dx-popup-done").addClass("dx-colorview-apply-button"),R.find(".dx-popup-cancel").addClass("dx-colorview-cancel-button"))},_createColorView(){this._popup.$overlayContent().addClass("dx-colorbox-overlay");const R=(0,m.A)("<div>").appendTo(this._popup.$content());this._colorView=this._createComponent(R,e.A,this._colorViewConfig())},_applyNewColor(R){this.option("value",R),R&&A.makeTransparentBackground(this._$colorResultPreview,R),this._colorViewEnterKeyPressed&&(this.close(),this._colorViewEnterKeyPressed=!1)},_colorViewConfig(){const R=this;return{value:R.option("value"),matchValue:R.option("value"),editAlphaChannel:R.option("editAlphaChannel"),applyValueMode:R.option("applyValueMode"),focusStateEnabled:R.option("focusStateEnabled"),stylingMode:this.option("stylingMode"),target:this._input(),onEnterKeyPressed(L){let{event:G}=L;R._colorViewEnterKeyPressed=!0,R._colorView.option("value")!==R.option("value")&&(R._saveValueChangeEvent(G),R._applyNewColor(R._colorView.option("value")),R.close())},onValueChanged(L){let{event:G,value:Q,previousValue:z}=L;const K="instantly"===R.option("applyValueMode");A.makeRgba(Q)===z||!K&&!R._colorViewEnterKeyPressed||R._shouldSaveEmptyValue||(G&&R._saveValueChangeEvent(G),R._applyNewColor(Q))}}},_enterKeyHandler(R){const L=this._input().val(),{value:G,editAlphaChannel:Q}=this.option(),z=G&&Q?A.makeRgba(G):G;if(!L)return!1;if(!new S.A(L).colorIsInvalid){if(L!==z&&(this._applyColorFromInput(L),this._saveValueChangeEvent(R),this.option("value",this.option("editAlphaChannel")?A.makeRgba(L):L)),this._colorView){const ee=this._colorView.option("value");G!==ee&&(this._saveValueChangeEvent(R),this.option("value",ee))}return this.close(),!1}this._input().val(z)},_applyButtonHandler(R){this._saveValueChangeEvent(R.event),this._applyNewColor(this._colorView.option("value")),this.callBase()},_cancelButtonHandler(){this._resetInputValue(),this.callBase()},_getKeyboardListeners(){return this.callBase().concat([this._colorView])},_init(){this.callBase()},_initMarkup(){this.$element().addClass("dx-colorbox"),this.callBase()},_renderInput(){this.callBase(),this._input().addClass("dx-colorbox-input"),this._renderColorPreview()},_renderColorPreview(){this.$element().wrapInner((0,m.A)("<div>").addClass("dx-colorbox-input-container")),this._$colorBoxInputContainer=this.$element().children().eq(0),this._$colorResultPreview=(0,m.A)("<div>").addClass("dx-colorbox-color-result-preview").appendTo(this._$textEditorInputContainer),this.option("value")?A.makeTransparentBackground(this._$colorResultPreview,this.option("value")):this._$colorBoxInputContainer.addClass(x)},_renderValue(){const{value:R,editAlphaChannel:L}=this.option(),Q=R&&L?A.makeRgba(R):R;return this.option("text",Q),this.callBase()},_resetInputValue(){const R=this._input(),L=this.option("value");R.val(L),this._updateColorViewValue(L)},_updateColorViewValue(R){this._colorView&&this._colorView.option({value:R,matchValue:R})},_valueChangeEventHandler(R){let L=this._input().val();L&&(L=this._applyColorFromInput(L),this._updateColorViewValue(L)),this.callBase(R,L)},_applyColorFromInput(R){const{editAlphaChannel:L}=this.option();return new S.A(R).colorIsInvalid?(this._resetInputValue(),this.option("value")):L?A.makeRgba(R):R},_clean(){this.callBase(),delete this._shouldSaveEmptyValue},_optionChanged(R){const{value:L}=R,{name:G}=R;switch(G){case"value":this._$colorBoxInputContainer.toggleClass(x,!L),L?A.makeTransparentBackground(this._$colorResultPreview,L):this._$colorResultPreview.removeAttr("style"),null===L&&(this._shouldSaveEmptyValue=!0),this._updateColorViewValue(L),this._shouldSaveEmptyValue=!1,this.callBase(R);break;case"applyButtonText":case"cancelButtonText":this.callBase(R),this._popup&&this._addPopupBottomClasses();break;case"editAlphaChannel":case"keyStep":this._colorView&&this._colorView.option(G,L);break;default:this.callBase(R)}}});(0,d.A)("dxColorBox",M);const J=M},2170:(En,it,p)=>{"use strict";p.d(it,{M:()=>m});var S=p(5973),d=p(7007);const m=function(){return[{device:()=>!d.nativeScrolling,options:{useNative:!1}},{device:T=>!S.A.isSimulator()&&"desktop"===S.A.real().deviceType&&"generic"===T.platform,options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:d.touch,showScrollbar:"onHover"}}]}},2198:(En,it,p)=>{"use strict";p.d(it,{be:()=>H});var S=p(5503),d=p(9079),m=p(656),T=p(4303),C=p(2978);let e=null;const b=[{provide:"$injector",useFactory:function w(){if(!e)throw new Error("Trying to get the AngularJS injector before it being set.");const J=e;return e=null,J},deps:[]},{provide:"$rootScope",useFactory:function P(J){return J.get("$rootScope")},deps:["$injector"]},{provide:"$compile",useFactory:function v(J){return J.get("$compile")},deps:["$injector"]},{provide:"$parse",useFactory:function x(J){return J.get("$parse")},deps:["$injector"]}];class B{modInjector;constructor(R){this.modInjector=R}get(R,L){return L===T.vet?L:this.modInjector.get(R,L)}}let H=(()=>{class J{ngZone;platformRef;$injector;injector;applicationRef;constructor(L,G,Q){this.ngZone=G,this.platformRef=Q,this.injector=new B(L),this.applicationRef=this.injector.get(T.o8S)}bootstrap(L,G=[],Q){const z=S.sK+".init";(0,S.oE)(z,[]).constant(S.k5,2).value(S.DT,this.injector).factory(S.A6,[S.DT,be=>({injector:be})]).config([S.Ke,S.FJ,(be,ce)=>{ce.has(S.TH)&&be.decorator(S.TH,[S._e,Re=>{const Se=Re.whenStable,De=this.injector,Pe=function(Ie){Se.call(Re,function(){const W=De.get(T.NYb);W.isStable()?Ie():W.whenStable(Pe.bind(Re,Ie))})};return Re.whenStable=Pe,Re}]),ce.has(S.Eq)&&be.decorator(S.Eq,[S._e,Re=>{let Se=(De,Pe,Ie,W,...ie)=>this.ngZone.runOutsideAngular(()=>Re((...he)=>{setTimeout(()=>{this.ngZone.run(()=>De(...he))})},Pe,Ie,W,...ie));return Object.keys(Re).forEach(De=>Se[De]=Re[De]),Re.hasOwnProperty("flush")&&(Se.flush=()=>(Re.flush(),Se)),Se}])}]).run([S.FJ,be=>{this.$injector=be;const ce=be.get("$rootScope");(function k(J){e=J})(be),this.injector.get(S.FJ),(0,S.ND)(L).data((0,d.w7)(S.DT),this.injector),this.platformRef.onDestroy(()=>(0,d.ei)(be)),setTimeout(()=>{const Re=()=>{this.ngZone.run(()=>{ce.$$phase?ce.$evalAsync():ce.$digest()})},Se=this.ngZone instanceof T.myG?this.applicationRef.afterTick.subscribe(()=>Re()):this.ngZone.onMicrotaskEmpty.subscribe(()=>Re());ce.$on("$destroy",()=>{Se.unsubscribe()})},0)}]);const K=(0,S.oE)(S.sK,[z].concat(G)),ee=window.angular;ee.resumeBootstrap=void 0;const re=this.ngZone.run(()=>(0,S.Nw)(L,[K.name],Q));if(ee.resumeBootstrap){const be=ee.resumeBootstrap,ce=this.ngZone;ee.resumeBootstrap=function(){let Re=arguments;return ee.resumeBootstrap=be,ce.run(()=>ee.resumeBootstrap.apply(this,Re))}}return re}static \u0275fac=function(G){return new(G||J)(m.KVO(m.zZn),m.KVO(T.SKi),m.KVO(C.Tg_))};static \u0275mod=T.$C({type:J});static \u0275inj=m.G2t({providers:[b]})}return J})()},2246:(En,it,p)=>{"use strict";function S(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(it,{L:()=>S})},2290:(En,it,p)=>{"use strict";p.d(it,{U:()=>m});var S=p(9867),d=p(6111);function m(T){return(0,S.N)((C,e)=>{let k=!1;C.subscribe((0,d._)(e,w=>{k=!0,e.next(w)},()=>{k||e.next(T),e.complete()}))})}},2333:(En,it,p)=>{"use strict";p.d(it,{W:()=>Ke,t:()=>Be});var S=p(4303),d=p(656),m=p(2123),T=p(1973),C=p(5973),e=p(9522),k=p(5170),w=p(5704),P=p(7591),v=p(4859),x=p(3090),b=p(2660),B=p(1363),j=p(7007),F=p(1830),X=p(6110),U=p(4072),Z=p(8360),A=p(1010),M=p(3608),H=p(8910),J=p(9212),R=p(2773);const L=(0,X.zk)(),ke=A.A.inherit({_supportedKeys(){return(0,x.X)(this.callBase(),{space(q){q.preventDefault(),this._validatedOpening()},enter(){this._validatedOpening()}})},_getDefaultOptions(){const q=Oe=>{let fe;return fe="phone"===C.A.real().deviceType&&L.visualViewport?L.visualViewport[Oe]:"width"===Oe?(0,B.RG)(L):(0,B.Oq)(L),.8*fe};return(0,x.X)(this.callBase(),{placeholder:Z.A.format("Select"),searchPlaceholder:Z.A.format("Search"),searchEnabled:!0,searchStartEvent:"input change keyup",cleanSearchOnOpening:!0,showCancelButton:!0,showClearButton:!1,clearButtonText:Z.A.format("Clear"),applyButtonText:Z.A.format("OK"),pullRefreshEnabled:!1,useNativeScrolling:!0,pullingDownText:Z.A.format("dxList-pullingDownText"),pulledDownText:Z.A.format("dxList-pulledDownText"),refreshingText:Z.A.format("dxList-refreshingText"),pageLoadingText:Z.A.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:Z.A.format("dxList-nextButtonText"),grouped:!1,groupTemplate:"group",usePopover:!1,openOnFieldClick:!0,showDropDownButton:!1,focusStateEnabled:!1,dropDownOptions:{showTitle:!0,width:()=>q("width"),height:()=>q("height"),shading:!0,hideOnOutsideClick:!1,position:void 0,animation:{},title:"",titleTemplate:"title",onTitleRendered:null,fullScreen:!1},dropDownCentered:!1,_scrollToSelectedItemEnabled:!1,useHiddenSubmitElement:!0})},_setDeprecatedOptions(){this.callBase(),(0,x.X)(this._deprecatedOptions,{valueChangeEvent:{since:"22.1",alias:"searchStartEvent"}})},_defaultOptionsRules(){const q=(0,J.ss)();return this.callBase().concat([{device:()=>!j.nativeScrolling,options:{useNativeScrolling:!1}},{device:Oe=>!C.A.isSimulator()&&"desktop"===C.A.real().deviceType&&"generic"===Oe.platform,options:{usePopover:!0,dropDownOptions:{height:"auto"}}},{device:{platform:"ios",phone:!0},options:{dropDownOptions:{fullScreen:!0}}},{device:{platform:"ios",tablet:!0},options:{dropDownOptions:{width:()=>.4*Math.min((0,B.RG)(L),(0,B.Oq)(L)),height:"auto"},usePopover:!0}},{device:()=>"desktop"===C.A.real().deviceType&&!C.A.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>(0,J.gx)(q),options:{usePopover:!1,searchEnabled:!1,showCancelButton:!1,dropDownCentered:!0,_scrollToSelectedItemEnabled:!0,dropDownOptions:{hideOnOutsideClick:!0,_ignoreFunctionValueDeprecation:!0,width:()=>(0,R.v)(this.$element()),height:function(){return this._getPopupHeight()}.bind(this),showTitle:!1,shading:!1}}}])},_init(){this.callBase(),this._initActions()},_initActions(){this.callBase(),this._initScrollAction(),this._initPageLoadingAction(),this._initPullRefreshAction()},_initPageLoadingAction(){this._pageLoadingAction=this._createActionByOption("onPageLoading")},_initPullRefreshAction(){this._pullRefreshAction=this._createActionByOption("onPullRefresh")},_initScrollAction(){this._scrollAction=this._createActionByOption("onScroll")},_scrollHandler(q){this._scrollAction(q)},_pullRefreshHandler(q){this._pullRefreshAction(q)},_pageLoadingHandler(q){this._pageLoadingAction(q)},_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({group:new P.M("group"),title:new P.M("title")})},_initMarkup(){this.$element().addClass("dx-lookup").toggleClass("dx-lookup-popover-mode",this.option("usePopover")),this.callBase()},_inputWrapper(){return this.$element().find(".dx-lookup-field-wrapper")},_dataSourceOptions(){return(0,x.X)(this.callBase(),{paginate:!0})},_fireContentReadyAction:v.lQ,_popupWrapperClass:()=>"",_renderInput(){this._$field=(0,w.A)("<div>").addClass("dx-lookup-field"),this._applyInputAttributes(this.option("inputAttr"));const q=(0,w.A)("<div>").addClass("dx-lookup-arrow");this._$fieldWrapper=(0,w.A)("<div>").addClass("dx-lookup-field-wrapper").append(this._$field).append(q).appendTo(this.$element())},_applyInputAttributes(q){this._$field.attr(q)},_getInputContainer(){return this._$fieldWrapper},_renderField(){const q=this._getTemplateByOption("fieldTemplate");if(q&&this.option("fieldTemplate"))return void this._renderFieldTemplate(q);const Oe=this.option("displayValue");this._updateField(Oe);const fe=!this.option("selectedItem");this.$element().toggleClass("dx-lookup-empty",fe).toggleClass("dx-texteditor-empty",fe)},_getLabelContainer(){return this._$field},_renderDisplayText(q){this._input().length?this.callBase(q):this._updateField(q)},_updateField(q){if(q=(0,F.O9)(q)&&String(q),this._$field.empty(),q)this._$field.text(q);else{const Oe=(0,w.A)("<div>").attr({"data-dx_placeholder":this.option("placeholder")});this._$field.append(Oe),Oe.addClass("dx-placeholder")}},_renderButtonContainers:v.lQ,_renderFieldTemplate(q){this._$field.empty();const Oe=this._fieldRenderData();q.render({model:Oe,container:(0,e.cc)(this._$field)})},_fieldRenderData(){return this.option("selectedItem")},_popupShowingHandler(){this.callBase.apply(this,arguments),this.option("cleanSearchOnOpening")&&(this.option("searchEnabled")&&this._searchBox.option("value")&&(this._searchBox.option("value",""),this._searchCanceled()),this._list&&this._list.option("focusedElement",null)),this.option("dropDownOptions.fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&(this._popup.option("position").of=(0,w.A)(L))},_popupShownHandler(){const q=this.option("_scrollToSelectedItemEnabled");!this.option("dropDownOptions.fullScreen")&&q&&this._setPopupPosition(),this.callBase()},_scrollToSelectedItem(){const q=this._list.option("selectedIndex"),Oe=this._list.option("items"),fe=Oe.length;0!==fe&&(this._list.option("grouped")?this._list.scrollToItem({group:fe-1,item:Oe[fe-1].items.length-1}):this._list.scrollToItem(fe-1),this._list.scrollToItem(q))},_getDifferenceOffsets(q){return q.offset().top-(0,w.A)(this.element()).offset().top},_isCenteringEnabled:(q,Oe)=>q>1&&q<Oe-2,_getPopupOffset(){const q=this._listItemElements().length;if(0===q)return;const Oe=(0,w.A)(this._list.element()).find(".dx-list-item-selected"),fe=this._listItemElements().index(Oe),We=((0,B.Oq)(Oe)-(0,B.Oq)(this.element()))/2,Ue=(0,w.A)(this._list.element()).offset().top,Ve=this.option("dropDownOptions.height"),tt="function"==typeof Ve?Ve():Ve,at=(0,B.Oq)(L);let Vt=0;if(-1!==fe){if(this._isCenteringEnabled(fe,q)){this._scrollToSelectedItem();const Nt=(tt-(0,B.Oq)(Oe))/2-this._getDifferenceOffsets(Oe);this._list.scrollTo(this._list.scrollTop()+4-Nt),Vt=We+this._getDifferenceOffsets(Oe),Ue<Vt&&fe!==q-3&&(this._list.scrollTo(this._list.scrollTop()+this._getDifferenceOffsets(Oe)/2),Vt=We+this._getDifferenceOffsets(Oe))}else fe<=1?(this._list.scrollTo(0),Vt=We+this._getDifferenceOffsets(Oe)):fe>=q-2&&(this._scrollToSelectedItem(),Vt=We+this._getDifferenceOffsets(Oe));Ue<Vt&&(this._scrollToSelectedItem(),Vt=We+8)}const qe=tt-Vt-(0,B.Oq)(this.element());return at-Ue<qe&&(this._list.scrollTo(this._list.scrollTop()+We-qe),Vt=tt-(0,B.Oq)(this.element())-8),Vt},_setPopupPosition(){if(!this.option("dropDownCentered")||this._popup.$wrapper().hasClass("dx-popover-flipped-vertical"))return;const Oe=(0,w.A)(this._popup.$content()).parent(),fe=this._getPopupOffset(),We=(0,m.x5)(Oe);(0,m.Cy)(Oe,{top:We.top-fe})},_listItemGroupedElements(){const q=this._list._getItemsContainer().children(),Oe=[];return q.each((fe,We)=>{Oe.push((0,w.A)(We).find(".dx-list-group-header")[0]),(0,w.A)(We).find(".dx-list-item").each((Ve,tt)=>{Oe.push(tt)})}),(0,w.A)(Oe)},_calculateListHeight(q){const Oe=q?this._listItemGroupedElements():this._listItemElements(),fe=(0,w.A)(".dx-list-item-selected"),We=Oe.index(fe);let Ue=0,Ve=[];return 0===Oe.length?Ue+=8:Oe.length<5?Oe.each((tt,at)=>{Ue+=(0,B.P$)(at)}):(Ve=We<=1?Oe.slice(0,5):this._isCenteringEnabled(We,Oe.length)?Oe.slice(We-2,We+3):Oe.slice(Oe.length-5,Oe.length),Ve.each((tt,at)=>{Ue+=(0,B.P$)(at)})),Ue+(q?8:16)},_getPopupHeight(){var q;return null!==(q=this._list)&&void 0!==q&&q.itemElements().length?this._calculateListHeight(this.option("grouped"))+(this._$searchWrapper?(0,B.P$)(this._$searchWrapper):0)+(this._popup._$bottom?(0,B.P$)(this._popup._$bottom):0)+(this._popup._$title?(0,B.P$)(this._popup._$title):0):"auto"},_popupTabHandler:v.lQ,_renderPopup(){this.option("usePopover")&&!this.option("dropDownOptions.fullScreen")?this.option("_scrollToSelectedItemEnabled")?this.callBase():(this._renderPopover(),this._attachPopupKeyHandler()):this.callBase(),this._$popup.addClass("dx-lookup-popup"),this._popup.$wrapper().addClass("dx-lookup-popup-wrapper")},_renderPopover(){this._popup=this._createComponent(this._$popup,M.A,(0,x.X)(this._popupConfig(),this._options.cache("dropDownOptions"),{showEvent:null,hideEvent:null,target:this.$element(),fullScreen:!1,shading:!1,hideOnParentScroll:!0,_fixWrapperPosition:!1,width:this._isInitialOptionValue("dropDownOptions.width")?function(){return(0,B.Ot)(this.$element())}.bind(this):this._popupConfig().width})),this._popup.$overlayContent().attr("role","dialog"),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this.option("_scrollToSelectedItemEnabled")&&this._popup._$arrow.remove(),this._setPopupContentId(this._popup.$content()),this._contentReadyHandler()},_popupHidingHandler(){this.callBase(),this.option("focusStateEnabled")&&this.focus()},_popupHiddenHandler(){this.callBase(),this.option("_scrollToSelectedItemEnabled")&&(0,m.fw)((0,w.A)(this._popup.content()).parent())},_preventFocusOnPopup:v.lQ,_popupConfig(){const q=(0,x.X)(this.callBase(),{toolbarItems:this._getPopupToolbarItems(),hideOnParentScroll:!1,onPositioned:null,maxHeight:"100vh",showTitle:this.option("dropDownOptions.showTitle"),title:this.option("dropDownOptions.title"),titleTemplate:this._getTemplateByOption("dropDownOptions.titleTemplate"),onTitleRendered:this.option("dropDownOptions.onTitleRendered"),fullScreen:this.option("dropDownOptions.fullScreen"),shading:this.option("dropDownOptions.shading"),hideOnOutsideClick:this.option("dropDownOptions.hideOnOutsideClick")||this.option("dropDownOptions.closeOnOutsideClick")});return delete q.animation,delete q.position,this.option("_scrollToSelectedItemEnabled")&&(q.position=this.option("dropDownCentered")?{my:"left top",at:"left top",of:this.element()}:{my:"left top",at:"left bottom",of:this.element()},q.hideOnParentScroll=!0),(0,b.__)(["position","animation","width","height"],(Oe,fe)=>{const We=this.option(`dropDownOptions.${fe}`);void 0!==We&&(q[fe]=We)}),q},_getPopupToolbarItems(){const q="useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[],Oe=this._getCancelButtonConfig();Oe&&q.push(Oe);const fe=this._getClearButtonConfig();return fe&&q.push(fe),this._applyButtonsLocation(q)},_popupToolbarItemsConfig(){return[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText")}}]},_getCancelButtonConfig(){return this.option("showCancelButton")?{shortcut:"cancel",onClick:this._cancelButtonHandler.bind(this),options:{text:this.option("cancelButtonText")}}:null},_getClearButtonConfig(){return this.option("showClearButton")?{shortcut:"clear",onClick:this._resetValue.bind(this),options:{text:this.option("clearButtonText")}}:null},_applyButtonHandler(q){q&&this._saveValueChangeEvent(q.event),this.option("value",this._valueGetter(this._currentSelectedItem())),this.callBase()},_cancelButtonHandler(){this._refreshSelected(),this.callBase()},_refreshPopupVisibility(){this.option("opened")&&this._updateListDimensions()},_dimensionChanged(){this.option("usePopover")&&!this.option("dropDownOptions.width")&&this.option("dropDownOptions.width",(0,B.RG)(this.$element())),this._updateListDimensions()},_input(){return this._$searchBox||this.callBase()},_renderPopupContent(){this.callBase(),this._renderSearch()},_renderValueChangeEvent:v.lQ,_renderSearch(){const q=this.option("searchEnabled");if(this._toggleSearchClass(q),q){const Oe=this._$searchWrapper=(0,w.A)("<div>").addClass("dx-lookup-search-wrapper"),fe=this._$searchBox=(0,w.A)("<div>").addClass("dx-lookup-search").appendTo(Oe),Ue=C.A.current().android?"text":"search";let Ve=!1;const tt={mode:Ue,showClearButton:!0,valueChangeEvent:this.option("searchStartEvent"),inputAttr:{"aria-label":"Search"},onDisposing:()=>Ve=!1,onFocusIn:()=>Ve=!0,onFocusOut:()=>Ve=!1,onKeyboardHandled:at=>Ve&&this._list._keyboardHandler(at),onValueChanged:at=>this._searchHandler(at)};this._searchBox=this._createComponent(fe,H.A,tt),this._registerSearchKeyHandlers(),Oe.insertBefore(this._$list),this._setSearchPlaceholder()}},_updateActiveDescendant(){if(this.callBase(),!this._$searchBox)return;const q=this._$searchBox.find("input");this.callBase(q)},_removeSearch(){this._$searchWrapper&&this._$searchWrapper.remove(),delete this._$searchWrapper,this._$searchBox&&this._$searchBox.remove(),delete this._$searchBox,delete this._searchBox},_selectListItemHandler(q){const Oe=(0,w.A)(this._list.option("focusedElement"));Oe.length&&(q.preventDefault(),q.target=Oe.get(0),this._saveValueChangeEvent(q),this._selectListItem(q.itemData,Oe))},_registerSearchKeyHandlers(){this._searchBox.registerKeyHandler("enter",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("space",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("end",v.lQ),this._searchBox.registerKeyHandler("home",v.lQ)},_toggleSearchClass(q){this._popup&&this._popup.$wrapper().toggleClass("dx-lookup-popup-search",q)},_setSearchPlaceholder(){if(!this._$searchBox)return;const q=this.option("minSearchLength");let Oe=this.option("searchPlaceholder");q&&Oe===Z.A.format("Search")&&(Oe=Z.A.getFormatter("dxLookup-searchPlaceholder")(q)),this._searchBox.option("placeholder",Oe)},_setAriaTargetForList:v.lQ,_listConfig(){return(0,x.X)(this.callBase(),{tabIndex:0,grouped:this.option("grouped"),groupTemplate:this._getTemplateByOption("groupTemplate"),pullRefreshEnabled:this.option("pullRefreshEnabled"),useNativeScrolling:this.option("useNativeScrolling"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),pageLoadingText:this.option("pageLoadingText"),onScroll:this._scrollHandler.bind(this),onPullRefresh:this._pullRefreshHandler.bind(this),onPageLoading:this._pageLoadingHandler.bind(this),pageLoadMode:this.option("pageLoadMode"),nextButtonText:this.option("nextButtonText"),indicateLoading:this.option("searchEnabled"),onSelectionChanged:this._getSelectionChangedHandler()})},_getSelectionChangedHandler(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):v.lQ},_listContentReadyHandler(){this.callBase(...arguments),this._refreshSelected()},_runWithoutCloseOnScroll(q){const{_scrollToSelectedItemEnabled:Oe}=this.option(),fe=this._popup.option("hideOnParentScroll");Oe?(this._popup.option("hideOnParentScroll",!1),q(),this._hideOnParentScrollTimer=setTimeout(()=>{this._popup.option("hideOnParentScroll",fe)})):q()},_setFocusPolicy(){this.option("focusStateEnabled")&&this._runWithoutCloseOnScroll(()=>{this.option("searchEnabled")?this._searchBox.focus():this._list.focus()})},_focusTarget(){return this._$field},_keyboardEventBindingTarget(){return this._$field},_listItemClickHandler(q){this._saveValueChangeEvent(q.event),this._selectListItem(q.itemData,q.event.currentTarget)},_selectListItem(q,Oe){this._list.selectItem(Oe),"instantly"===this.option("applyValueMode")&&this._applyButtonHandler()},_currentSelectedItem(){return this.option("grouped")?this._list.option("selectedItems[0]").items[0]:this._list.option("selectedItems[0]")},_resetValue(q){this._saveValueChangeEvent(q.event),this.option("value",null),this.option("opened",!1)},_searchValue(){return this.option("searchEnabled")&&this._searchBox?this._searchBox.option("value"):""},_renderInputValue(){return this.callBase().always(()=>{this._refreshSelected()})},_renderPlaceholder(){0!==this.$element().find(".dx-texteditor-input").length&&this.callBase()},_clean(){this._$fieldWrapper.remove(),clearTimeout(this._hideOnParentScrollTimer),this._hideOnParentScrollTimer=null,this._$searchBox=null,this.callBase()},_optionChanged(q){var Oe;const{name:fe,fullName:We,value:Ue}=q;switch(fe){case"dataSource":this.callBase(...arguments),this._renderField();break;case"searchEnabled":this._popup&&(this._removeSearch(),this._renderSearch());break;case"searchPlaceholder":this._setSearchPlaceholder();break;case"minSearchLength":this._setSearchPlaceholder(),this.callBase(...arguments);break;case"inputAttr":this._applyInputAttributes(Ue);break;case"usePopover":case"placeholder":this._invalidate();break;case"clearButtonText":case"showClearButton":case"showCancelButton":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"applyValueMode":default:this.callBase(...arguments);break;case"onPageLoading":this._initPageLoadingAction();break;case"onPullRefresh":this._initPullRefreshAction();break;case"pullRefreshEnabled":case"useNativeScrolling":case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"nextButtonText":case"grouped":case"groupTemplate":this._setListOption(fe);break;case"searchStartEvent":null===(Oe=this._searchBox)||void 0===Oe||Oe.option("valueChangeEvent",Ue);break;case"onScroll":this._initScrollAction();break;case"pageLoadMode":this._setListOption("pageLoadMode",this.option("pageLoadMode"));break;case"cleanSearchOnOpening":case"_scrollToSelectedItemEnabled":break;case"dropDownOptions":switch(We){case"dropDownOptions.width":case"dropDownOptions.height":this._popupOptionChanged({name:fe,fullName:We,value:"auto"===Ue?this.initialOption("dropDownOptions")[(0,k.MO)(We)]:Ue}),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;default:this.callBase(...arguments)}break;case"dropDownCentered":this.option("_scrollToSelectedItemEnabled")&&(this.option("dropDownOptions.position",void 0),this._renderPopup())}},focus(){this.option("opened")?this._setFocusPolicy():U.A.trigger(this._focusTarget(),"focus")},field(){return this._$field}});(0,T.A)("dxLookup",ke);const de=ke;var Ae=p(8832),pe=p(3349),Ee=p(8914);const le={provide:Ae.kq,useExisting:(0,d.Rfq)(()=>Ke),multi:!0};let Ke=(()=>{class q extends pe.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(fe){this._setOption("accessKey",fe)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(fe){this._setOption("activeStateEnabled",fe)}get applyButtonText(){return this._getOption("applyButtonText")}set applyButtonText(fe){this._setOption("applyButtonText",fe)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(fe){this._setOption("applyValueMode",fe)}get cancelButtonText(){return this._getOption("cancelButtonText")}set cancelButtonText(fe){this._setOption("cancelButtonText",fe)}get cleanSearchOnOpening(){return this._getOption("cleanSearchOnOpening")}set cleanSearchOnOpening(fe){this._setOption("cleanSearchOnOpening",fe)}get clearButtonText(){return this._getOption("clearButtonText")}set clearButtonText(fe){this._setOption("clearButtonText",fe)}get dataSource(){return this._getOption("dataSource")}set dataSource(fe){this._setOption("dataSource",fe)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(fe){this._setOption("deferRendering",fe)}get disabled(){return this._getOption("disabled")}set disabled(fe){this._setOption("disabled",fe)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(fe){this._setOption("displayExpr",fe)}get displayValue(){return this._getOption("displayValue")}set displayValue(fe){this._setOption("displayValue",fe)}get dropDownCentered(){return this._getOption("dropDownCentered")}set dropDownCentered(fe){this._setOption("dropDownCentered",fe)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(fe){this._setOption("dropDownOptions",fe)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(fe){this._setOption("elementAttr",fe)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(fe){this._setOption("fieldTemplate",fe)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(fe){this._setOption("focusStateEnabled",fe)}get fullScreen(){return this._getOption("fullScreen")}set fullScreen(fe){this._setOption("fullScreen",fe)}get grouped(){return this._getOption("grouped")}set grouped(fe){this._setOption("grouped",fe)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(fe){this._setOption("groupTemplate",fe)}get height(){return this._getOption("height")}set height(fe){this._setOption("height",fe)}get hint(){return this._getOption("hint")}set hint(fe){this._setOption("hint",fe)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(fe){this._setOption("hoverStateEnabled",fe)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(fe){this._setOption("inputAttr",fe)}get isDirty(){return this._getOption("isDirty")}set isDirty(fe){this._setOption("isDirty",fe)}get isValid(){return this._getOption("isValid")}set isValid(fe){this._setOption("isValid",fe)}get items(){return this._getOption("items")}set items(fe){this._setOption("items",fe)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(fe){this._setOption("itemTemplate",fe)}get label(){return this._getOption("label")}set label(fe){this._setOption("label",fe)}get labelMode(){return this._getOption("labelMode")}set labelMode(fe){this._setOption("labelMode",fe)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(fe){this._setOption("minSearchLength",fe)}get name(){return this._getOption("name")}set name(fe){this._setOption("name",fe)}get nextButtonText(){return this._getOption("nextButtonText")}set nextButtonText(fe){this._setOption("nextButtonText",fe)}get noDataText(){return this._getOption("noDataText")}set noDataText(fe){this._setOption("noDataText",fe)}get opened(){return this._getOption("opened")}set opened(fe){this._setOption("opened",fe)}get pageLoadingText(){return this._getOption("pageLoadingText")}set pageLoadingText(fe){this._setOption("pageLoadingText",fe)}get pageLoadMode(){return this._getOption("pageLoadMode")}set pageLoadMode(fe){this._setOption("pageLoadMode",fe)}get placeholder(){return this._getOption("placeholder")}set placeholder(fe){this._setOption("placeholder",fe)}get pulledDownText(){return this._getOption("pulledDownText")}set pulledDownText(fe){this._setOption("pulledDownText",fe)}get pullingDownText(){return this._getOption("pullingDownText")}set pullingDownText(fe){this._setOption("pullingDownText",fe)}get pullRefreshEnabled(){return this._getOption("pullRefreshEnabled")}set pullRefreshEnabled(fe){this._setOption("pullRefreshEnabled",fe)}get refreshingText(){return this._getOption("refreshingText")}set refreshingText(fe){this._setOption("refreshingText",fe)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(fe){this._setOption("rtlEnabled",fe)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(fe){this._setOption("searchEnabled",fe)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(fe){this._setOption("searchExpr",fe)}get searchMode(){return this._getOption("searchMode")}set searchMode(fe){this._setOption("searchMode",fe)}get searchPlaceholder(){return this._getOption("searchPlaceholder")}set searchPlaceholder(fe){this._setOption("searchPlaceholder",fe)}get searchStartEvent(){return this._getOption("searchStartEvent")}set searchStartEvent(fe){this._setOption("searchStartEvent",fe)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(fe){this._setOption("searchTimeout",fe)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(fe){this._setOption("selectedItem",fe)}get showCancelButton(){return this._getOption("showCancelButton")}set showCancelButton(fe){this._setOption("showCancelButton",fe)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(fe){this._setOption("showClearButton",fe)}get showDataBeforeSearch(){return this._getOption("showDataBeforeSearch")}set showDataBeforeSearch(fe){this._setOption("showDataBeforeSearch",fe)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(fe){this._setOption("stylingMode",fe)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(fe){this._setOption("tabIndex",fe)}get text(){return this._getOption("text")}set text(fe){this._setOption("text",fe)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(fe){this._setOption("useItemTextAsTitle",fe)}get useNativeScrolling(){return this._getOption("useNativeScrolling")}set useNativeScrolling(fe){this._setOption("useNativeScrolling",fe)}get usePopover(){return this._getOption("usePopover")}set usePopover(fe){this._setOption("usePopover",fe)}get validationError(){return this._getOption("validationError")}set validationError(fe){this._setOption("validationError",fe)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(fe){this._setOption("validationErrors",fe)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(fe){this._setOption("validationMessageMode",fe)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(fe){this._setOption("validationMessagePosition",fe)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(fe){this._setOption("validationStatus",fe)}get value(){return this._getOption("value")}set value(fe){this._setOption("value",fe)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(fe){this._setOption("valueChangeEvent",fe)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(fe){this._setOption("valueExpr",fe)}get visible(){return this._getOption("visible")}set visible(fe){this._setOption("visible",fe)}get width(){return this._getOption("width")}set width(fe){this._setOption("width",fe)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(fe){this._setOption("wrapItemText",fe)}onClosed;onContentReady;onDisposing;onInitialized;onItemClick;onOpened;onOptionChanged;onPageLoading;onPullRefresh;onScroll;onSelectionChanged;onValueChanged;accessKeyChange;activeStateEnabledChange;applyButtonTextChange;applyValueModeChange;cancelButtonTextChange;cleanSearchOnOpeningChange;clearButtonTextChange;dataSourceChange;deferRenderingChange;disabledChange;displayExprChange;displayValueChange;dropDownCenteredChange;dropDownOptionsChange;elementAttrChange;fieldTemplateChange;focusStateEnabledChange;fullScreenChange;groupedChange;groupTemplateChange;heightChange;hintChange;hoverStateEnabledChange;inputAttrChange;isDirtyChange;isValidChange;itemsChange;itemTemplateChange;labelChange;labelModeChange;minSearchLengthChange;nameChange;nextButtonTextChange;noDataTextChange;openedChange;pageLoadingTextChange;pageLoadModeChange;placeholderChange;pulledDownTextChange;pullingDownTextChange;pullRefreshEnabledChange;refreshingTextChange;rtlEnabledChange;searchEnabledChange;searchExprChange;searchModeChange;searchPlaceholderChange;searchStartEventChange;searchTimeoutChange;selectedItemChange;showCancelButtonChange;showClearButtonChange;showDataBeforeSearchChange;stylingModeChange;tabIndexChange;textChange;useItemTextAsTitleChange;useNativeScrollingChange;usePopoverChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;valueChangeEventChange;valueExprChange;visibleChange;widthChange;wrapItemTextChange;onBlur;change(fe){}touched=fe=>{};get itemsChildren(){return this._getOption("items")}set itemsChildren(fe){this.setChildren("items",fe)}constructor(fe,We,Ue,Ve,tt,at,Vt,qe){super(fe,We,Ue,Ve,Vt,qe),this._watcherHelper=Ve,this._idh=tt,this._createEventEmitters([{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"pageLoading",emit:"onPageLoading"},{subscribe:"pullRefresh",emit:"onPullRefresh"},{subscribe:"scroll",emit:"onScroll"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"applyButtonTextChange"},{emit:"applyValueModeChange"},{emit:"cancelButtonTextChange"},{emit:"cleanSearchOnOpeningChange"},{emit:"clearButtonTextChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"displayValueChange"},{emit:"dropDownCenteredChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"fullScreenChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"minSearchLengthChange"},{emit:"nameChange"},{emit:"nextButtonTextChange"},{emit:"noDataTextChange"},{emit:"openedChange"},{emit:"pageLoadingTextChange"},{emit:"pageLoadModeChange"},{emit:"placeholderChange"},{emit:"pulledDownTextChange"},{emit:"pullingDownTextChange"},{emit:"pullRefreshEnabledChange"},{emit:"refreshingTextChange"},{emit:"rtlEnabledChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchPlaceholderChange"},{emit:"searchStartEventChange"},{emit:"searchTimeoutChange"},{emit:"selectedItemChange"},{emit:"showCancelButtonChange"},{emit:"showClearButtonChange"},{emit:"showDataBeforeSearchChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useItemTextAsTitleChange"},{emit:"useNativeScrollingChange"},{emit:"usePopoverChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),this._idh.setHost(this),at.setHost(this)}_createInstance(fe,We){return new de(fe,We)}writeValue(fe){this.eventHelper.lockedValueChangeEvent=!0,this.value=fe,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(fe){this.disabled=fe}registerOnChange(fe){this.change=fe}registerOnTouched(fe){this.touched=fe}_createWidget(fe){super._createWidget(fe),this.instance.on("focusOut",We=>{this.eventHelper.fireNgEvent("onBlur",[We])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(fe){super.ngOnChanges(fe),this.setupChanges("dataSource",fe),this.setupChanges("items",fe),this.setupChanges("searchExpr",fe),this.setupChanges("validationErrors",fe)}setupChanges(fe,We){fe in this._optionsToUpdate||this._idh.setup(fe,We)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(fe,We){let Ue=this._idh.setupSingle(fe,We),Ve=null!==this._idh.getChanges(fe,We);(Ue||Ve)&&super._setOption(fe,We)}static \u0275fac=function(We){return new(We||q)(S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(pe.zF),S.rXU(pe.jS),S.rXU(pe.$M),S.rXU(pe.fH),S.rXU(S.pJN),S.rXU(S.Agw))};static \u0275cmp=S.VBU({type:q,selectors:[["dx-lookup"]],contentQueries:function(We,Ue,Ve){if(1&We&&S.wni(Ve,Ee.CVf,4),2&We){let tt;S.mGM(tt=S.lsd())&&(Ue.itemsChildren=tt)}},hostBindings:function(We,Ue){1&We&&S.bIt("valueChange",function(tt){return Ue.change(tt)})("onBlur",function(tt){return Ue.touched(tt)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",applyButtonText:"applyButtonText",applyValueMode:"applyValueMode",cancelButtonText:"cancelButtonText",cleanSearchOnOpening:"cleanSearchOnOpening",clearButtonText:"clearButtonText",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",displayValue:"displayValue",dropDownCentered:"dropDownCentered",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",fullScreen:"fullScreen",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isDirty:"isDirty",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",label:"label",labelMode:"labelMode",minSearchLength:"minSearchLength",name:"name",nextButtonText:"nextButtonText",noDataText:"noDataText",opened:"opened",pageLoadingText:"pageLoadingText",pageLoadMode:"pageLoadMode",placeholder:"placeholder",pulledDownText:"pulledDownText",pullingDownText:"pullingDownText",pullRefreshEnabled:"pullRefreshEnabled",refreshingText:"refreshingText",rtlEnabled:"rtlEnabled",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchPlaceholder:"searchPlaceholder",searchStartEvent:"searchStartEvent",searchTimeout:"searchTimeout",selectedItem:"selectedItem",showCancelButton:"showCancelButton",showClearButton:"showClearButton",showDataBeforeSearch:"showDataBeforeSearch",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useItemTextAsTitle:"useItemTextAsTitle",useNativeScrolling:"useNativeScrolling",usePopover:"usePopover",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onClosed:"onClosed",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPageLoading:"onPageLoading",onPullRefresh:"onPullRefresh",onScroll:"onScroll",onSelectionChanged:"onSelectionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",applyButtonTextChange:"applyButtonTextChange",applyValueModeChange:"applyValueModeChange",cancelButtonTextChange:"cancelButtonTextChange",cleanSearchOnOpeningChange:"cleanSearchOnOpeningChange",clearButtonTextChange:"clearButtonTextChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",displayValueChange:"displayValueChange",dropDownCenteredChange:"dropDownCenteredChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",fullScreenChange:"fullScreenChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",labelChange:"labelChange",labelModeChange:"labelModeChange",minSearchLengthChange:"minSearchLengthChange",nameChange:"nameChange",nextButtonTextChange:"nextButtonTextChange",noDataTextChange:"noDataTextChange",openedChange:"openedChange",pageLoadingTextChange:"pageLoadingTextChange",pageLoadModeChange:"pageLoadModeChange",placeholderChange:"placeholderChange",pulledDownTextChange:"pulledDownTextChange",pullingDownTextChange:"pullingDownTextChange",pullRefreshEnabledChange:"pullRefreshEnabledChange",refreshingTextChange:"refreshingTextChange",rtlEnabledChange:"rtlEnabledChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchPlaceholderChange:"searchPlaceholderChange",searchStartEventChange:"searchStartEventChange",searchTimeoutChange:"searchTimeoutChange",selectedItemChange:"selectedItemChange",showCancelButtonChange:"showCancelButtonChange",showClearButtonChange:"showClearButtonChange",showDataBeforeSearchChange:"showDataBeforeSearchChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",useNativeScrollingChange:"useNativeScrollingChange",usePopoverChange:"usePopoverChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},standalone:!1,features:[S.Jv_([pe.zF,pe.jS,le,pe.fH,pe.$M]),S.Vt3,S.OA$],decls:0,vars:0,template:function(We,Ue){},encapsulation:2})}return q})(),Be=(()=>{class q{static \u0275fac=function(We){return new(We||q)};static \u0275mod=S.$C({type:q});static \u0275inj=d.G2t({imports:[Ee.df_,Ee.YLo,Ee.YaD,Ee.eNx,Ee.Bkf,Ee.nwt,Ee.hXw,Ee.YGc,Ee.gf0,Ee.rvW,Ee.Tob,Ee.$Ql,Ee.i9t,Ee.TBD,Ee.isg,Ee.POb,pe.p_,pe.xZ,Ee.df_,Ee.YLo,Ee.YaD,Ee.eNx,Ee.Bkf,Ee.nwt,Ee.hXw,Ee.YGc,Ee.gf0,Ee.rvW,Ee.Tob,Ee.$Ql,Ee.i9t,Ee.TBD,Ee.isg,Ee.POb,pe.xZ]})}return q})()},2359:(En,it,p)=>{"use strict";p.d(it,{A:()=>H});var S=p(1973),d=p(5973),m=p(5704),T=p(3090),C=p(1363),e=p(7007),k=p(6110),w=p(8360),P=p(9212),v=p(7080);const x=(0,k.w3)(),A=v.A.inherit({_getDefaultOptions(){return(0,T.X)(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules(){const J=(0,P.ss)();return this.callBase().concat([{device:()=>"android"===d.A.real().platform&&!/chrome/i.test(x.userAgent),options:{viaImage:!0}},{device:()=>(0,P.Nt)(J),options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:()=>(0,P.AE)(J),options:{_animatingSegmentCount:7}}])},_useTemplates:()=>!1,_init(){this.callBase(),this.$element().addClass("dx-loadindicator");const R={role:"alert",label:w.A.format("Loading")};this.setAria(R)},_initMarkup(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper(){this._$wrapper=(0,m.A)("<div>").addClass("dx-loadindicator-wrapper"),this.$element().append(this._$wrapper)},_renderIndicatorContent(){this._$content=(0,m.A)("<div>").addClass("dx-loadindicator-content"),this._$wrapper.append(this._$content)},_renderMarkup(){const{viaImage:J,indicatorSrc:R}=this.option();!(0,e.animation)()||J||R?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation(){const J=this.option("_animatingSegmentInner");this._$indicator=(0,m.A)("<div>").addClass("dx-loadindicator-icon"),this._$content.append(this._$indicator);for(let R=this.option("_animatingSegmentCount");R>=0;--R){const L=(0,m.A)("<div>").addClass("dx-loadindicator-segment").addClass("dx-loadindicator-segment"+R);J&&L.append((0,m.A)("<div>").addClass("dx-loadindicator-segment-inner")),this._$indicator.append(L)}},_renderMarkupForImage(){const{indicatorSrc:J}=this.option();J?(this._$wrapper.addClass("dx-loadindicator-image"),this._$wrapper.css("backgroundImage",`url(${J})`)):(0,e.animation)()&&this._renderMarkupForAnimation()},_renderDimensions(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation(){if(!this._$indicator)return;let J=this.option("width"),R=this.option("height");if(J||R){J=(0,C.RG)(this.$element()),R=(0,C.Oq)(this.$element());const L=Math.min(R,J);this._$wrapper.css({height:L,width:L,fontSize:L})}},_clean(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage(){this._$wrapper.css("backgroundImage","none")},_optionChanged(J){switch(J.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(J)}}});(0,S.A)("dxLoadIndicator",A);const H=A},2363:(En,it,p)=>{"use strict";p.d(it,{R0:()=>e,lI:()=>C,ms:()=>T});var S=p(4418),d=p(1677);function m(k){return k[k.length-1]}function T(k){return(0,S.T)(m(k))?k.pop():void 0}function C(k){return(0,d.m)(m(k))?k.pop():void 0}function e(k,w){return"number"==typeof m(k)?k.pop():w}},2385:(En,it,p)=>{"use strict";p.d(it,{O:()=>w});var S=p(2978),d=p(4303),m=p(656),T=p(827);const C=["popupContent"];let e=(()=>{var P;class v{constructor(){this.title="Popup",this.width=400,this.height="auto",this.animation={},this.position={},this.hideOnOutsideClick=!1,this.componentBindings={},this.enableBodyScroll=!0}ngOnInit(){this.contentComponent&&this.loadComponent()}ngOnDestroy(){this.componentRef&&this.componentRef.destroy()}loadComponent(){this.popupContent.clear(),this.componentRef=this.popupContent.createComponent(this.contentComponent),Object.assign(this.componentRef.instance,this.componentBindings)}onClose(){}static#e=P=()=>(this.\u0275fac=function(B){return new(B||v)},this.\u0275cmp=d.VBU({type:v,selectors:[["app-apicodo-popup-wrapper"]],viewQuery:function(B,j){if(1&B&&d.GBs(C,7,d.c1b),2&B){let F;d.mGM(F=d.lsd())&&(j.popupContent=F.first)}},inputs:{title:"title",width:"width",height:"height",animation:"animation",position:"position",hideOnOutsideClick:"hideOnOutsideClick",contentComponent:"contentComponent",componentBindings:"componentBindings",enableBodyScroll:"enableBodyScroll"},standalone:!1,decls:3,vars:10,consts:[["popupContent",""],[3,"onHiding","visible","title","showTitle","width","height","animation","position","hideOnOutsideClick","dragEnabled","enableBodyScroll"]],template:function(B,j){if(1&B){const F=d.RV6();d.j41(0,"dx-popup",1),d.bIt("onHiding",function(){return m.eBV(F),m.Njj(j.onClose())}),d.nrm(1,"div",null,0),d.k0s()}2&B&&d.Y8G("visible",!0)("title",j.title)("showTitle",!1)("width",j.width)("height",j.height)("animation",j.animation)("position",j.position)("hideOnOutsideClick",j.hideOnOutsideClick)("dragEnabled",!1)("enableBodyScroll",j.enableBodyScroll)},dependencies:[T.i],encapsulation:2}))}return P(),v})();var k=p(1351);let w=(()=>{var P;class v{constructor(b){this.appRef=b,this.componentReferences=[]}closeAll(){this.componentReferences.forEach(b=>{this.closePopup(b.componentRef,b.domElement)}),this.componentReferences=[]}closeLast(){let b=this.componentReferences.pop();b&&this.closePopup(b.componentRef,b.domElement)}openPopup(b,B="default"){const j=document.createElement("div");document.body.appendChild(j);const F=(0,S.a0P)(e,{environmentInjector:this.appRef.injector});return this.appRef.attachView(F.hostView),j.appendChild(F.hostView.rootNodes[0]),F.instance.title=b.title,F.instance.width=b.width,F.instance.animation=b.animation,F.instance.position=b.position,F.instance.hideOnOutsideClick=b.hideOnOutsideClick,F.instance.height=b.height??"auto",F.instance.enableBodyScroll=b.enableBodyScroll??!0,F.instance.contentComponent="AuthenticationDialogComponent"==b.component?k.c:b.component,F.instance.componentBindings=b.data,this.componentReferences.push({name:B,componentRef:F,domElement:j}),F}closePopup(b,B){this.appRef.detachView(b.hostView),b.destroy(),document.body.removeChild(B)}static#e=P=()=>(this.\u0275fac=function(B){return new(B||v)(m.KVO(d.o8S))},this.\u0275prov=m.jDH({token:v,factory:v.\u0275fac,providedIn:"root"}))}return P(),v})()},2390:(En,it,p)=>{"use strict";p.d(it,{P:()=>w});var S=p(656),d=p(4303),m=p(357),T=p(8832),C=p(3349);const e={provide:T.kq,useExisting:(0,S.Rfq)(()=>k),multi:!0};let k=(()=>{class P extends C.ic{_watcherHelper;_idh;instance=null;get disabled(){return this._getOption("disabled")}set disabled(x){this._setOption("disabled",x)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(x){this._setOption("elementAttr",x)}get height(){return this._getOption("height")}set height(x){this._setOption("height",x)}get hint(){return this._getOption("hint")}set hint(x){this._setOption("hint",x)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(x){this._setOption("hoverStateEnabled",x)}get isDirty(){return this._getOption("isDirty")}set isDirty(x){this._setOption("isDirty",x)}get isValid(){return this._getOption("isValid")}set isValid(x){this._setOption("isValid",x)}get max(){return this._getOption("max")}set max(x){this._setOption("max",x)}get min(){return this._getOption("min")}set min(x){this._setOption("min",x)}get readOnly(){return this._getOption("readOnly")}set readOnly(x){this._setOption("readOnly",x)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(x){this._setOption("rtlEnabled",x)}get showStatus(){return this._getOption("showStatus")}set showStatus(x){this._setOption("showStatus",x)}get statusFormat(){return this._getOption("statusFormat")}set statusFormat(x){this._setOption("statusFormat",x)}get validationError(){return this._getOption("validationError")}set validationError(x){this._setOption("validationError",x)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(x){this._setOption("validationErrors",x)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(x){this._setOption("validationMessageMode",x)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(x){this._setOption("validationMessagePosition",x)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(x){this._setOption("validationStatus",x)}get value(){return this._getOption("value")}set value(x){this._setOption("value",x)}get visible(){return this._getOption("visible")}set visible(x){this._setOption("visible",x)}get width(){return this._getOption("width")}set width(x){this._setOption("width",x)}onComplete;onContentReady;onDisposing;onInitialized;onOptionChanged;onValueChanged;disabledChange;elementAttrChange;heightChange;hintChange;hoverStateEnabledChange;isDirtyChange;isValidChange;maxChange;minChange;readOnlyChange;rtlEnabledChange;showStatusChange;statusFormatChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;visibleChange;widthChange;onBlur;change(x){}touched=x=>{};constructor(x,b,B,j,F,X,U,Z){super(x,b,B,j,U,Z),this._watcherHelper=j,this._idh=F,this._createEventEmitters([{subscribe:"complete",emit:"onComplete"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"maxChange"},{emit:"minChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showStatusChange"},{emit:"statusFormatChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),X.setHost(this)}_createInstance(x,b){return new m.A(x,b)}writeValue(x){this.eventHelper.lockedValueChangeEvent=!0,this.value=x,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(x){this.disabled=x}registerOnChange(x){this.change=x}registerOnTouched(x){this.touched=x}_createWidget(x){super._createWidget(x),this.instance.on("focusOut",b=>{this.eventHelper.fireNgEvent("onBlur",[b])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(x){super.ngOnChanges(x),this.setupChanges("validationErrors",x)}setupChanges(x,b){x in this._optionsToUpdate||this._idh.setup(x,b)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(x,b){let B=this._idh.setupSingle(x,b),j=null!==this._idh.getChanges(x,b);(B||j)&&super._setOption(x,b)}static \u0275fac=function(b){return new(b||P)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(C.zF),d.rXU(C.jS),d.rXU(C.$M),d.rXU(C.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:P,selectors:[["dx-progress-bar"]],hostBindings:function(b,B){1&b&&d.bIt("valueChange",function(F){return B.change(F)})("onBlur",function(F){return B.touched(F)})},inputs:{disabled:"disabled",elementAttr:"elementAttr",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isDirty:"isDirty",isValid:"isValid",max:"max",min:"min",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showStatus:"showStatus",statusFormat:"statusFormat",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onComplete:"onComplete",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",maxChange:"maxChange",minChange:"minChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showStatusChange:"showStatusChange",statusFormatChange:"statusFormatChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[d.Jv_([C.zF,C.jS,e,C.fH,C.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(b,B){},encapsulation:2})}return P})(),w=(()=>{class P{static \u0275fac=function(b){return new(b||P)};static \u0275mod=d.$C({type:P});static \u0275inj=S.G2t({imports:[C.p_,C.xZ,C.xZ]})}return P})()},2392:(En,it,p)=>{"use strict";p.d(it,{A:()=>ye});var S=p(6853),d=p(5704),m=p(3090),T=p(9293),C=p(8360),e=p(8073),k=p(3538),w=p(4859),P=p(2660),v=p(127),x=p(1605);const b=[],B=function(Me,_e,ke){b.push({enabled:Me,decoratorType:_e,decoratorSubType:ke})};B(function(){return this.option("menuItems").length},()=>"menu",function(){return this.option("menuMode")}),B(function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")},function(){const Me=this.option("itemDeleteMode");return"toggle"===Me||"slideButton"===Me||"swipe"===Me||"static"===Me?"delete":"menu"},function(){let Me=this.option("itemDeleteMode");return"slideItem"===Me&&(Me="slide"),Me}),B(function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")},()=>"selection",()=>"default"),B(function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")},()=>"reorder",()=>"default");const J=k.A.inherit({ctor(Me){this._list=Me,this._fetchRequiredDecorators()},dispose(){this._decorators&&this._decorators.length&&(0,P.__)(this._decorators,(Me,_e)=>{_e.dispose()})},_fetchRequiredDecorators(){this._decorators=[],(0,P.__)(b,(Me,_e)=>{if(_e.enabled.call(this._list)){const Ye=_e.decoratorType.call(this._list),de=_e.decoratorSubType.call(this._list),Ae=this._createDecorator(Ye,de);this._decorators.push(Ae)}})},_createDecorator(Me,_e){return new(this._findDecorator(Me,_e))(this._list)},_findDecorator(Me,_e){var ke;const Ye=null===(ke=x.u[Me])||void 0===ke?void 0:ke[_e];if(!Ye)throw v.A.Error("E1012",Me,_e);return Ye},modifyItemElement(Me){const _e=(0,d.A)(Me.itemElement),ke={$itemElement:_e};this._prependBeforeBags(_e,ke),this._appendAfterBags(_e,ke),this._applyDecorators("modifyElement",ke)},afterItemsRendered(){this._applyDecorators("afterRender")},_prependBeforeBags(Me,_e){const ke=this._collectDecoratorsMarkup("beforeBag",_e,"dx-list-item-before-bag");Me.prepend(ke)},_appendAfterBags(Me,_e){const ke=this._collectDecoratorsMarkup("afterBag",_e,"dx-list-item-after-bag");Me.append(ke)},_collectDecoratorsMarkup(Me,_e,ke){const Ye=(0,d.A)("<div>");return(0,P.__)(this._decorators,function(){const de=(0,d.A)("<div>").addClass(ke);this[Me]((0,m.X)({$container:de},_e)),de.children().length&&Ye.append(de)}),Ye.children()},_applyDecorators(Me,_e){(0,P.__)(this._decorators,function(){this[Me](_e)})},_handlerExists(Me){if(!this._decorators)return!1;const _e=this._decorators,{length:ke}=_e;for(let Ye=0;Ye<ke;Ye++)if(_e[Ye][Me]!==w.lQ)return!0;return!1},_eventHandler(Me,_e,ke){if(!this._decorators)return!1;let Ye=!1;const de=this._decorators,{length:Ae}=de;for(let pe=0;pe<Ae&&(Ye=de[pe][Me](_e,ke),!Ye);pe++);return Ye},handleClick(Me,_e){return this._eventHandler("handleClick",Me,_e)},handleKeyboardEvents(Me,_e){return this._eventHandler("handleKeyboardEvents",Me,_e)},handleEnterPressing(Me){return this._eventHandler("handleEnterPressing",Me)},contextMenuHandlerExists(){return this._handlerExists("handleContextMenu")},handleContextMenu(Me,_e){return this._eventHandler("handleContextMenu",Me,_e)},getExcludedItemSelectors(){const Me=[];return this._applyDecorators("getExcludedSelectors",Me),Me.join(",")}});var R=p(1830),L=p(1541),G=p(1435),Q=p(1694);const be=function(Me){return(Me.group<<20)+Me.item},ce=function(Me){return{group:Me>>20,item:1048575&Me}},Se=Q.A.inherit({_groupElements(){return this._collectionWidget._itemContainer().find(".dx-list-group")},_groupItemElements:Me=>Me.find(".dx-list-item"),getIndexByItemData(Me){const _e=this._collectionWidget.option("items");let ke=!1;return!!Me&&(Me.items&&Me.items.length&&(Me=Me.items[0]),(0,P.__)(_e,(Ye,de)=>{if(!de.items||((0,P.__)(de.items,(Ae,pe)=>pe!==Me||(ke={group:Ye,item:Ae},!1)),ke))return!1}),ke)},getItemDataByIndex(Me){const _e=this._collectionWidget.option("items");return(0,R.kf)(Me)?this.itemsGetter()[Me]:Me&&_e[Me.group]&&_e[Me.group].items[Me.item]||null},itemsGetter(){let Me=[];const _e=this._collectionWidget.option("items");for(let ke=0;ke<_e.length;ke++)_e[ke]&&_e[ke].items?Me=Me.concat(_e[ke].items):Me.push(_e[ke]);return Me},deleteItemAtIndex(Me){const _e=ce(Me);this._collectionWidget.option("items")[_e.group].items.splice(_e.item,1)},getKeysByItems(Me){let ke,_e=[];for(ke=0;ke<Me.length;ke++)Me[ke]&&Me[ke].items?_e=_e.concat(Me[ke].items):_e.push(Me[ke]);const Ye=[];for(ke=0;ke<_e.length;ke++)Ye.push(this._collectionWidget.keyOf(_e[ke]));return Ye},getIndexByKey(Me,_e){const ke=_e||this._collectionWidget.option("items");let Ye=-1;const de=this;return(0,P.__)(ke,(Ae,pe)=>{if(pe.items&&((0,P.__)(pe.items,(Ee,le)=>{const Ke=de._collectionWidget.keyOf(le);if(de._equalKeys(Ke,Me))return Ye={group:Ae,item:Ee},!1}),-1!==Ye))return!1}),Ye},_getGroups(Me){const ke=this._collectionWidget._dataController.group();return ke?G.A.queryByOptions((0,L.A)(Me),{group:ke}).toArray():this._collectionWidget.option("items")},getItemsByKeys(Me,_e){const ke=[],Ye=this._getGroups(_e),de={},Ae=pe=>{const Ee=this.getIndexByKey(pe,Ye),le=Ee&&Ye[Ee.group];if(le)return{groupKey:le.key,item:le.items[Ee.item]}};return(0,P.__)(Me,(pe,Ee)=>{const le=Ae(Ee);if(!le)return;const{groupKey:Ke}=le,{item:Be}=le;let q=de[Ke];q||(q={key:Ke,items:[]},de[Ke]=q,ke.push(q)),q.items.push(Be)}),ke},moveItemAtIndexToIndex(Me,_e){const ke=this._collectionWidget.option("items"),Ye=ce(Me),de=ce(_e),Ae=ke[Ye.group].items,pe=ke[de.group].items,Ee=Ae[Ye.item];Ae.splice(Ye.item,1),pe.splice(de.item,0,Ee)},_isItemIndex:Me=>Me&&(0,R.kf)(Me.group)&&(0,R.kf)(Me.item),_getNormalizedItemIndex(Me){const _e=(0,d.A)(Me),ke=_e.closest(".dx-list-group");return ke.length?be({group:this._groupElements().index(ke),item:this._groupItemElements(ke).index(_e)}):-1},_normalizeItemIndex:Me=>be(Me),_denormalizeItemIndex:Me=>ce(Me),_getItemByNormalizedIndex(Me){const _e=ce(Me),ke=this._groupElements().eq(_e.group);return this._groupItemElements(ke).eq(_e.item)},_itemsFromSameParent:(Me,_e)=>ce(Me).group===ce(_e).group}),he=e.i.inherit({_supportedKeys(){const Me=this,_e=this.callBase(),ke=(Ye,de)=>{const Ae=this._editStrategy,pe=this.option("focusedElement"),Ee=Ae.getNormalizedIndex(pe);if(Ee!==this._getLastItemIndex()||!this._dataController.isLoading())if(Ye.shiftKey&&Me.option("itemDragging.allowReordering")){const Be=Ae.getItemElement(Ee+(de?-1:1));this.reorderItem(pe,Be),this.scrollToItem(pe),Ye.preventDefault()}else this._editProvider.handleKeyboardEvents(Ee,de)||(de?_e.upArrow(Ye):_e.downArrow(Ye))};return(0,m.X)({},_e,{del:Ye=>{Me.option("allowItemDeleting")&&(Ye.preventDefault(),Me.deleteItem(Me.option("focusedElement")))},upArrow:Ye=>ke(Ye,!0),downArrow:Ye=>ke(Ye),enter:function(Ye){this._editProvider.handleEnterPressing(Ye)||_e.enter.apply(this,arguments)},space:function(Ye){this._editProvider.handleEnterPressing(Ye)||_e.space.apply(this,arguments)}})},_updateSelection(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex(){return this._itemElements().length-1},_refreshItemElements(){this.callBase();const Me=this._editProvider.getExcludedItemSelectors();Me.length&&(this._itemElementsCache=this._itemElementsCache.not(Me))},_isItemStrictEquals(Me,_e){const ke=Me&&Me.__dx_key__;return!(ke&&!this.key()&&this._selection.isItemSelected(ke))&&this.callBase(Me,_e)},_getDefaultOptions(){return(0,m.X)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:C.A.format("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",itemDragging:{}})},_defaultOptionsRules(){return this.callBase().concat([{device:Me=>"ios"===Me.platform,options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}}])},_init(){this.callBase(),this._initEditProvider()},_initDataSource(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll(){return"page"===this.option("selectAllMode")},_initEditProvider(){this._editProvider=new J(this)},_disposeEditProvider(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy(){this.option("grouped")?this._editStrategy=new Se(this):this.callBase()},_initMarkup(){this._refreshEditProvider(),this.callBase()},_renderItems(){this.callBase(...arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:()=>"dx-list-item-selected",_itemResponseWaitClass:()=>"dx-list-item-response-wait",_itemClickHandler(Me){const _e=(0,d.A)(Me.currentTarget);_e.is(".dx-state-disabled, .dx-state-disabled *")||this._editProvider.handleClick(_e,Me)||(this._saveSelectionChangeEvent(Me),this.callBase(...arguments))},_shouldFireContextMenuEvent(){return this.callBase(...arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler(Me){const _e=(0,d.A)(Me.currentTarget);_e.is(".dx-state-disabled, .dx-state-disabled *")||((0,T.kH)(Me)&&this._editProvider.handleContextMenu(_e,Me)?Me.handledByEditProvider=!0:this.callBase(...arguments))},_getItemContainer(Me){if(this.option("grouped")){var _e;const ke=null===(_e=this._editStrategy.getIndexByItemData(Me))||void 0===_e?void 0:_e.group;return this._getGroupContainerByIndex(ke)}return this.callBase(Me)},_itemContextMenuHandler(Me){const _e=(0,d.A)(Me.currentTarget);_e.is(".dx-state-disabled, .dx-state-disabled *")||(Me.handledByEditProvider||!this._editProvider.handleContextMenu(_e,Me)?this.callBase(...arguments):Me.preventDefault())},_postprocessRenderItem(Me){this.callBase(...arguments),this._editProvider.modifyItemElement(Me)},_clean(){this._disposeEditProvider(),this.callBase()},focusListItem(Me){const _e=this._editStrategy.getItemElement(Me);this.option("focusedElement",_e),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged(Me){switch(Me.name){case"selectAllMode":this._initDataSource(),this._dataController.pageIndex(0),this._dataController.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(Me);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(Me)}},selectAll(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement(Me){return this._itemElements().index(Me)},getItemElementByFlatIndex(Me){const _e=this._itemElements();return Me<0||Me>=_e.length?(0,d.A)():_e.eq(Me)},getItemByIndex(Me){return this._editStrategy.getItemDataByIndex(Me)},deleteItem(Me){const _e=this._editStrategy,ke=_e.getNormalizedIndex(Me),Ye=this.option("focusedElement"),de=this.option("focusStateEnabled"),Ae=Ye?_e.getNormalizedIndex(Ye):ke,Ee=Ae===this._getLastItemIndex()||ke<Ae?Ae-1:Ae;return this.callBase(Me).done(function(){de&&this.focusListItem(Ee)})}}).inherit(S.A).inherit({_addWidgetPrefix:Me=>`dx-list-${Me}`,_getCombinedFilter(){const Me=this._dataController,_e={filter:Me.filter()};Me.addSearchFilter(_e);const{filter:ke}=_e;return ke},_initDataSource(){const Me=this.option("searchValue"),_e=this.option("searchExpr"),ke=this.option("searchMode");this.callBase();const Ye=this._dataController;Me&&Me.length&&Ye.searchValue(Me),ke.length&&Ye.searchOperation(S.A.getOperationBySearchMode(ke)),_e&&Ye.searchExpr(_e)}});(0,p(1973).A)("dxList",he);const ye=he},2432:(En,it,p)=>{"use strict";p.d(it,{w:()=>S});const S=d=>{var m,T;const C=d.originalEvent;if(!C)return d.target;if(null===(m=C.target)||void 0===m||!m.shadowRoot)return C.target;const k=C.path??(null===(T=C.composedPath)||void 0===T?void 0:T.call(C));return k?.[0]??d.target}},2440:(En,it,p)=>{"use strict";p.d(it,{A:()=>ee});var S=p(5704),d=p(9916),m=p(2946),T=p(1830),C=p(3686),e=p(2614),k=p(6569),w=p(2735),P=p(1435),v=p(6021);const x="totalCount",b="load",B="byKey",j="insert",F="update",X="remove";function U(re){return re&&(0,T.Tn)(re.then)}function Z(re){return(new v.cY).resolve(re).promise()}function A(re,be){if(!(0,T.Tn)(be))throw e.sO.Error("E4011",re)}function M(re){throw e.sO.Error("E4012",re)}function H(re){return function(be){let ce;ce=be instanceof Error?be:new Error(function(Re){const Se=Re[0];return Se&&Se.getResponseHeader?(0,d.m9)(Se,Re[1]):null}(arguments)||be&&String(be)||"Unknown error"),ce.message!==d.SR&&re.reject(ce)}}function J(re,be){const ce=re._loadFunc;let Re;return A(b,ce),Re=ce.apply(re,[be]),Array.isArray(Re)?Re=Z(Re):null==Re?Re=Z([]):U(Re)||M(b),(0,v.Sx)(Re)}function G(re,be,ce,Re){if(be.__rawData)Re(be.__rawData);else{const Se=be.__rawDataPromise||J(be,ce);be._cacheRawData&&(be.__rawDataPromise=Se),Se.always(function(){delete be.__rawDataPromise}).done(function(De){be._cacheRawData&&(be.__rawData=De),Re(De)}).fail(De=>{var Pe;const Ie=H(re);null===(Pe=be._errorHandler)||void 0===Pe||Pe.call(be,De),Ie(De)})}}function Q(re,be,ce,Re){const Se={};"userData"in(ce=ce||{})&&(Se.userData=ce.userData),G(re,be,Se,function(De){const Pe=(0,w.A)(De,{errorHandler:be._errorHandler});let Ie,W;const ie=[];let he,Ce;Re||(Ie=P.A.queryByOptions(Pe,ce),Ie===Pe?he=De.slice(0):ie.push(Ie.enumerate().done(function(ye){he=ye}))),(ce.requireTotalCount||Re)&&(W=P.A.queryByOptions(Pe,ce,!0),W===Pe?Ce=De.length:ie.push(W.count().done(function(ye){Ce=ye}))),v.z7.apply(S.A,ie).done(function(){Re?re.resolve(Ce):ce.requireTotalCount?re.resolve(he,{totalCount:Ce}):re.resolve(he)}).fail(function(ye){re.reject(ye)})})}const ee=k.A.inherit({ctor:function(re){this.callBase(re=re||{}),this._useDefaultSearch=!!re.useDefaultSearch||"raw"===re.loadMode,this._loadMode=re.loadMode,this._cacheRawData=!1!==re.cacheRawData,this._loadFunc=re[b],this._totalCountFunc=re[x],this._byKeyFunc=re[B],this._insertFunc=re[j],this._updateFunc=re[F],this._removeFunc=re[X]},_clearCache(){delete this.__rawData},createQuery:function(){throw e.sO.Error("E4010")},clearRawDataCache:function(){this._clearCache()},_totalCountImpl:function(re){let be=new v.cY;return"raw"!==this._loadMode||this._totalCountFunc?(function R(re,be){const ce=re._totalCountFunc;let Re;if(!(0,T.Tn)(ce))throw e.sO.Error("E4021");return Re=ce.apply(re,[be]),U(Re)||(Re=Number(Re),isFinite(Re)||M(x),Re=Z(Re)),(0,v.Sx)(Re)}(this,re).done(function(ce){be.resolve(Number(ce))}).fail(H(be)),be=this._addFailHandlers(be)):Q(be,this,re,!0),be.promise()},_pushImpl:function(re){this.__rawData&&(0,m.VK)({keyInfo:this,data:this.__rawData,changes:re})},_loadImpl:function(re){let be=new v.cY;return"raw"===this._loadMode?Q(be,this,re,!1):(J(this,re).done(function(ce,Re){be.resolve(ce,Re)}).fail(H(be)),be=this._addFailHandlers(be)),be.promise()},_byKeyImpl:function(re,be){const ce=new v.cY;return this._byKeyViaLoad()?(this._requireKey(),function z(re,be,ce){G(re,be,{},function(Re){const Se=be.key();let De;for(let Pe=0,Ie=Re.length;Pe<Ie;Pe++)if(De=Re[Pe],(0,d.t7)(Se,be.keyOf(Re[Pe]),ce))return void re.resolve(De);re.reject(e.sO.Error("E4009"))})}(ce,this,re)):function L(re,be,ce){const Re=re._byKeyFunc;let Se;return A(B,Re),Se=Re.apply(re,[be,ce]),U(Se)||(Se=Z(Se)),(0,v.Sx)(Se)}(this,re,be).done(function(Re){ce.resolve(Re)}).fail(H(ce)),ce.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(re){const be=this,ce=be._insertFunc;let Re;const Se=new v.cY;return A(j,ce),Re=ce.apply(be,[re]),U(Re)||(Re=Z(Re)),(0,v.Sx)(Re).done(function(De){(0,C.A)().useLegacyStoreResult?Se.resolve(re,De):Se.resolve(De||re,be.keyOf(De))}).fail(H(Se)),Se.promise()},_updateImpl:function(re,be){const ce=this._updateFunc;let Re;const Se=new v.cY;return A(F,ce),Re=ce.apply(this,[re,be]),U(Re)||(Re=Z(Re)),(0,v.Sx)(Re).done(function(De){(0,C.A)().useLegacyStoreResult?Se.resolve(re,be):Se.resolve(De||be,re)}).fail(H(Se)),Se.promise()},_removeImpl:function(re){const be=this._removeFunc;let ce;const Re=new v.cY;return A(X,be),ce=be.apply(this,[re]),U(ce)||(ce=Z()),(0,v.Sx)(ce).done(function(){Re.resolve(re)}).fail(H(Re)),Re.promise()}})},2459:(En,it,p)=>{"use strict";p.d(it,{B:()=>k,s:()=>e});var S=p(656),d=p(4303),m=p(6942),T=p(3349),C=p(8914);let e=(()=>{class w extends T.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(v){this._setOption("accessKey",v)}get dataSource(){return this._getOption("dataSource")}set dataSource(v){this._setOption("dataSource",v)}get disabled(){return this._getOption("disabled")}set disabled(v){this._setOption("disabled",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(v){this._setOption("focusStateEnabled",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get hint(){return this._getOption("hint")}set hint(v){this._setOption("hint",v)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(v){this._setOption("hoverStateEnabled",v)}get iconPosition(){return this._getOption("iconPosition")}set iconPosition(v){this._setOption("iconPosition",v)}get itemHoldTimeout(){return this._getOption("itemHoldTimeout")}set itemHoldTimeout(v){this._setOption("itemHoldTimeout",v)}get items(){return this._getOption("items")}set items(v){this._setOption("items",v)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(v){this._setOption("itemTemplate",v)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(v){this._setOption("keyExpr",v)}get noDataText(){return this._getOption("noDataText")}set noDataText(v){this._setOption("noDataText",v)}get orientation(){return this._getOption("orientation")}set orientation(v){this._setOption("orientation",v)}get repaintChangesOnly(){return this._getOption("repaintChangesOnly")}set repaintChangesOnly(v){this._setOption("repaintChangesOnly",v)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(v){this._setOption("rtlEnabled",v)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(v){this._setOption("scrollByContent",v)}get scrollingEnabled(){return this._getOption("scrollingEnabled")}set scrollingEnabled(v){this._setOption("scrollingEnabled",v)}get selectedIndex(){return this._getOption("selectedIndex")}set selectedIndex(v){this._setOption("selectedIndex",v)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(v){this._setOption("selectedItem",v)}get selectedItemKeys(){return this._getOption("selectedItemKeys")}set selectedItemKeys(v){this._setOption("selectedItemKeys",v)}get selectedItems(){return this._getOption("selectedItems")}set selectedItems(v){this._setOption("selectedItems",v)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(v){this._setOption("selectionMode",v)}get showNavButtons(){return this._getOption("showNavButtons")}set showNavButtons(v){this._setOption("showNavButtons",v)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(v){this._setOption("stylingMode",v)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(v){this._setOption("tabIndex",v)}get visible(){return this._getOption("visible")}set visible(v){this._setOption("visible",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}onContentReady;onDisposing;onInitialized;onItemClick;onItemContextMenu;onItemHold;onItemRendered;onOptionChanged;onSelectionChanged;accessKeyChange;dataSourceChange;disabledChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;iconPositionChange;itemHoldTimeoutChange;itemsChange;itemTemplateChange;keyExprChange;noDataTextChange;orientationChange;repaintChangesOnlyChange;rtlEnabledChange;scrollByContentChange;scrollingEnabledChange;selectedIndexChange;selectedItemChange;selectedItemKeysChange;selectedItemsChange;selectionModeChange;showNavButtonsChange;stylingModeChange;tabIndexChange;visibleChange;widthChange;get itemsChildren(){return this._getOption("items")}set itemsChildren(v){this.setChildren("items",v)}constructor(v,x,b,B,j,F,X,U){super(v,x,b,B,X,U),this._watcherHelper=B,this._idh=j,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemHold",emit:"onItemHold"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"accessKeyChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"iconPositionChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"keyExprChange"},{emit:"noDataTextChange"},{emit:"orientationChange"},{emit:"repaintChangesOnlyChange"},{emit:"rtlEnabledChange"},{emit:"scrollByContentChange"},{emit:"scrollingEnabledChange"},{emit:"selectedIndexChange"},{emit:"selectedItemChange"},{emit:"selectedItemKeysChange"},{emit:"selectedItemsChange"},{emit:"selectionModeChange"},{emit:"showNavButtonsChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),F.setHost(this)}_createInstance(v,x){return new m.A(v,x)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(v){super.ngOnChanges(v),this.setupChanges("dataSource",v),this.setupChanges("items",v),this.setupChanges("selectedItemKeys",v),this.setupChanges("selectedItems",v)}setupChanges(v,x){v in this._optionsToUpdate||this._idh.setup(v,x)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("selectedItemKeys"),this._idh.doCheck("selectedItems"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(v,x){let b=this._idh.setupSingle(v,x),B=null!==this._idh.getChanges(v,x);(b||B)&&super._setOption(v,x)}static \u0275fac=function(x){return new(x||w)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.$M),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:w,selectors:[["dx-tabs"]],contentQueries:function(x,b,B){if(1&x&&d.wni(B,C.CVf,4),2&x){let j;d.mGM(j=d.lsd())&&(b.itemsChildren=j)}},inputs:{accessKey:"accessKey",dataSource:"dataSource",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",iconPosition:"iconPosition",itemHoldTimeout:"itemHoldTimeout",items:"items",itemTemplate:"itemTemplate",keyExpr:"keyExpr",noDataText:"noDataText",orientation:"orientation",repaintChangesOnly:"repaintChangesOnly",rtlEnabled:"rtlEnabled",scrollByContent:"scrollByContent",scrollingEnabled:"scrollingEnabled",selectedIndex:"selectedIndex",selectedItem:"selectedItem",selectedItemKeys:"selectedItemKeys",selectedItems:"selectedItems",selectionMode:"selectionMode",showNavButtons:"showNavButtons",stylingMode:"stylingMode",tabIndex:"tabIndex",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemContextMenu:"onItemContextMenu",onItemHold:"onItemHold",onItemRendered:"onItemRendered",onOptionChanged:"onOptionChanged",onSelectionChanged:"onSelectionChanged",accessKeyChange:"accessKeyChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",iconPositionChange:"iconPositionChange",itemHoldTimeoutChange:"itemHoldTimeoutChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",keyExprChange:"keyExprChange",noDataTextChange:"noDataTextChange",orientationChange:"orientationChange",repaintChangesOnlyChange:"repaintChangesOnlyChange",rtlEnabledChange:"rtlEnabledChange",scrollByContentChange:"scrollByContentChange",scrollingEnabledChange:"scrollingEnabledChange",selectedIndexChange:"selectedIndexChange",selectedItemChange:"selectedItemChange",selectedItemKeysChange:"selectedItemKeysChange",selectedItemsChange:"selectedItemsChange",selectionModeChange:"selectionModeChange",showNavButtonsChange:"showNavButtonsChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",visibleChange:"visibleChange",widthChange:"widthChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH,T.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(x,b){},encapsulation:2})}return w})(),k=(()=>{class w{static \u0275fac=function(x){return new(x||w)};static \u0275mod=d.$C({type:w});static \u0275inj=S.G2t({imports:[C.POb,T.p_,T.xZ,C.POb,T.xZ]})}return w})()},2489:(En,it,p)=>{"use strict";p.d(it,{h:()=>e});var S=p(3806),d=p(8621),m=p(8448),T=p(2363),C=p(8399);function e(...k){const w=(0,T.lI)(k),P=(0,T.R0)(k,1/0),v=k;return v.length?1===v.length?(0,d.Tg)(v[0]):(0,S.U)(P)((0,C.H)(v,w)):m.w}},2493:(En,it,p)=>{"use strict";p.d(it,{$:()=>S});const S={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},2583:(En,it,p)=>{"use strict";p.d(it,{A:()=>ue});var S=p(5704),d=p(6110),m=p(4072),T=p(7251),C=p(9522),e=p(3090),k=p(1830),w=p(2660),P=p(2123);const v=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,x={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"};let B={};const j=function(me){let je,Te=(me=x[me]||me).match(v);Te||(je="linear",Te=x[je].match(v)),Te=Te.slice(1,5);for(let lt=0;lt<Te.length;lt++)Te[lt]=parseFloat(Te[lt]);const Ne=je||"cubicbezier_"+Te.join("_").replace(/\./g,"p");return(0,k.Tn)(B[Ne])||(B[Ne]=function(lt,Qe,Ct,yt,Gt){return yt*function(me,Te,je,Ne){const lt=3*me,Qe=3*(je-me)-lt,Ct=1-lt-Qe,yt=3*Te,Gt=3*(Ne-Te)-yt,ft=1-yt-Gt,nn=function(Mn){return Mn*(lt+Mn*(Qe+Mn*Ct))},rn=function(Mn){return lt+Mn*(2*Qe+3*Mn*Ct)};return function(Mn){return(On=function(On){let Vo,ji=On,Mi=0;for(;Mi<14&&(Vo=nn(ji)-On,!(Math.abs(Vo)<.001));)ji-=Vo/rn(ji),Mi++;return ji}(Mn))*(yt+On*(Gt+On*ft));var On}}(Te[0],Te[1],Te[2],Te[3])(Qe/Gt)+Ct}),Ne};var U=p(608),Z=p(7007),A=p(6870),M=p(1110),H=p(9293),J=p(6021),R=p(4859);const L=(0,d.zk)(),G=(0,H.b4)(M.N,"dxFX"),Q=/^([+-])=(.*)/i,z="dxAnimData",K="dxAnimQueue",re={initAnimation:function(me,Te){me.css({transitionProperty:"none"}),"string"==typeof Te.from?me.addClass(Te.from):qe(me,Te.from);const je=this,Ne=new J.cY,lt=Te.cleanupWhen;Te.transitionAnimation={deferred:Ne,finish:function(){je._finishTransition(me),lt?(0,J.z7)(Ne,lt).always(function(){je._cleanup(me,Te)}):je._cleanup(me,Te),Ne.resolveWith(me,[Te,me])}},this._completeAnimationCallback(me,Te).done(function(){Te.transitionAnimation.finish()}).fail(function(){Ne.rejectWith(me,[Te,me])}),Te.duration||Te.transitionAnimation.finish(),me.css("transform")},animate:function(me,Te){return this._startAnimation(me,Te),Te.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(me,Te){const je=this,Ne=Date.now()+Te.delay,lt=new J.cY,Qe=new J.cY,Ct=new J.cY;let yt;const Gt=(0,Z.transitionEndEventName)()+".dxFX";Te.transitionAnimation.cleanup=function(){clearTimeout(yt),clearTimeout(ft),m.A.off(me,Gt),m.A.off(me,G)},m.A.one(me,Gt,function(){Date.now()-Ne>=Te.duration&&Qe.reject()}),m.A.off(me,G),m.A.on(me,G,function(){je.stop(me,Te),lt.reject()});const ft=setTimeout(function(){yt=setTimeout(function(){Ct.reject()},Te.duration+Te.delay+et._simulatedTransitionEndDelay),(0,J.z7)(Qe,Ct).fail(function(){lt.resolve()}.bind(this))});return lt.promise()},_startAnimation:function(me,Te){me.css({transitionProperty:"all",transitionDelay:Te.delay+"ms",transitionDuration:Te.duration+"ms",transitionTimingFunction:Te.easing}),"string"==typeof Te.to?me[0].className+=" "+Te.to:Te.to&&qe(me,Te.to)},_finishTransition:function(me){me.css("transition","none")},_cleanup:function(me,Te){Te.transitionAnimation.cleanup(),"string"==typeof Te.from&&(me.removeClass(Te.from),me.removeClass(Te.to))},stop:function(me,Te,je){Te&&(je?Te.transitionAnimation.finish():((0,k.Qd)(Te.to)&&(0,w.__)(Te.to,function(Ne){me.css(Ne,me.css(Ne))}),this._finishTransition(me),this._cleanup(me,Te)))}},be={initAnimation:function(me,Te){qe(me,Te.from)},animate:function(me,Te){const je=new J.cY,Ne=this;return Te?((0,w.__)(Te.to,function(lt){void 0===Te.from[lt]&&(Te.from[lt]=Ne._normalizeValue(me.css(lt)))}),Te.to.transform&&(Te.from.transform=Ne._parseTransform(Te.from.transform),Te.to.transform=Ne._parseTransform(Te.to.transform)),Te.frameAnimation={to:Te.to,from:Te.from,currentValue:Te.from,easing:j(Te.easing),duration:Te.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),(0,U.u)(Te.frameAnimation.animationFrameId),je.resolve()},draw:function(){if(Te.draw)return void Te.draw(this.currentValue);const lt=(0,e.X)({},this.currentValue);lt.transform&&(lt.transform=(0,w.Tj)(lt.transform,function(Qe,Ct){return"translate"===Ct?(0,P.Oj)(Qe):"scale"===Ct?"scale("+Qe+")":"rotate"===Ct.substr(0,Ct.length-1)?Ct+"("+Qe+"deg)":void 0}).join(" ")),me.css(lt)}},Te.delay?(Te.frameAnimation.startTime+=Te.delay,Te.frameAnimation.delayTimeout=setTimeout(function(){Ne._startAnimation(me,Te)},Te.delay)):Ne._startAnimation(me,Te),je.promise()):je.reject().promise()},_startAnimation:function(me,Te){m.A.off(me,G),m.A.on(me,G,function(){Te.frameAnimation&&(0,U.u)(Te.frameAnimation.animationFrameId)}),this._animationStep(me,Te)},_parseTransform:function(me){const Te={};return(0,w.__)(me.match(/\w+\d*\w*\([^)]*\)\s*/g),function(je,Ne){const lt=(0,P.g)(Ne),Qe=Ne.match(/scale\((.+?)\)/),Ct=Ne.match(/(rotate.)\((.+)deg\)/);lt&&(Te.translate=lt),Qe&&Qe[1]&&(Te.scale=parseFloat(Qe[1])),Ct&&Ct[1]&&(Te[Ct[1]]=parseFloat(Ct[2]))}),Te},stop:function(me,Te,je){const Ne=Te&&Te.frameAnimation;Ne&&((0,U.u)(Ne.animationFrameId),clearTimeout(Ne.delayTimeout),je&&Ne.finish(),delete Te.frameAnimation)},_animationStep:function(me,Te){const je=Te&&Te.frameAnimation;if(!je)return;const Ne=(new Date).valueOf();if(Ne>=je.startTime+je.duration)return void je.finish();je.currentValue=this._calcStepValue(je,Ne-je.startTime),je.draw();const lt=this;je.animationFrameId=(0,U.x)(function(){lt._animationStep(me,Te)})},_calcStepValue:function(me,Te){const je=function(Ne,lt){const Qe=Array.isArray(lt)?[]:{};return(0,w.__)(lt,function(Ct,yt){if("string"==typeof yt&&!1===parseFloat(yt))return!0;Qe[Ct]="object"==typeof yt?je(Ne[Ct],yt):function(Gt){const ft=Te/me.duration,nn=Te,rn=1*Ne[Gt],Mn=lt[Gt]-Ne[Gt],On=me.duration;return function X(me){return B[me]}(me.easing)(ft,nn,rn,Mn,On)}(Ct)}),Qe};return je(me.from,me.to)},_normalizeValue:function(me){const Te=parseFloat(me);return!1===Te?me:Te}},ce={initAnimation:function(){},animate:function(){return(new J.cY).resolve().promise()},stop:R.lQ,isSynchronous:!0},Se=function(me,Te,je,Ne){(0,w.__)(["from","to"],function(){if(!je(me[this]))throw T.A.Error("E0010",Te,this,Ne)})},De=function(me,Te){return Se(me,Te,function(je){return(0,k.Qd)(je)},"a plain object")},ie={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},he={validateConfig:function(me){De(me,"slide")},setup:function(me,Te){const je=(0,P.x5)(me);if("slide"!==Te.type){const Ne="slideIn"===Te.type?Te.from:Te.to;Ne.position=(0,e.X)({of:L},ie[Te.direction]),Vt(me,Ne)}this._setUpConfig(je,Te.from),this._setUpConfig(je,Te.to),(0,P.IL)(me)},_setUpConfig:function(me,Te){Te.left="left"in Te?Te.left:"+=0",Te.top="top"in Te?Te.top:"+=0",this._initNewPosition(me,Te)},_initNewPosition:function(me,Te){const je={left:Te.left,top:Te.top};delete Te.left,delete Te.top;let Ne=this._getRelativeValue(je.left);void 0!==Ne?je.left=Ne+me.left:Te.left=0,Ne=this._getRelativeValue(je.top),void 0!==Ne?je.top=Ne+me.top:Te.top=0,Te.transform=(0,P.Oj)({x:je.left,y:je.top})},_getRelativeValue:function(me){let Te;if("string"==typeof me&&(Te=Q.exec(me)))return parseInt(Te[1]+"1")*Te[2]}},Ce={setup:function(me,Te){const je=Te.from,Ne=Te.to,lt="fadeOut"===Te.type?1:0,Qe="fadeOut"===Te.type?0:1;let Ct=(0,k.Qd)(je)?String(je.opacity??lt):String(je),yt=(0,k.Qd)(Ne)?String(Ne.opacity??Qe):String(Ne);switch(Te.skipElementInitialStyles||(Ct=me.css("opacity")),Te.type){case"fadeIn":yt=1;break;case"fadeOut":yt=0}Te.from={visibility:"visible",opacity:Ct},Te.to={opacity:yt}}},Me={custom:{setup:function(){}},slide:he,slideIn:he,slideOut:he,fade:Ce,fadeIn:Ce,fadeOut:Ce,pop:{validateConfig:function(me){De(me,"pop")},setup:function(me,Te){const je=Te.from,Ne=Te.to,lt="opacity"in je?je.opacity:me.css("opacity"),Qe="opacity"in Ne?Ne.opacity:1,Ct="scale"in je?je.scale:0,yt="scale"in Ne?Ne.scale:1;Te.from={opacity:lt};const Gt=(0,P.ro)(me);Te.from.transform=this._getCssTransform(Gt,Ct),Te.to={opacity:Qe},Te.to.transform=this._getCssTransform(Gt,yt)},_getCssTransform:function(me,Te){return(0,P.Oj)(me)+"scale("+Te+")"}},css:{validateConfig:function(me){!function(me){Se(me,"css",function(je){return"string"==typeof je},"a string")}(me)},setup:function(){}}},ke={type:"custom",from:{},to:{},duration:400,start:R.lQ,complete:R.lQ,easing:"ease",delay:0},Ye={duration:400,easing:"ease",delay:0};function de(){const me=this.element,Te=this.config;if(Vt(me,Te.from),Vt(me,Te.to),this.configurator.setup(me,Te),me.data(z,this),et.off&&(Te.duration=0,Te.delay=0),this.strategy.initAnimation(me,Te),Te.start){const je=(0,C.cc)(me);Te.start.apply(this,[je,Te])}}const pe=function(){const me=this,Te=me.element,je=me.config;return me.isStarted=!0,me.strategy.animate(Te,je).done(function(){!function(me){const Te=me.element,je=me.config;if(Te.removeData(z),je.complete){const Ne=(0,C.cc)(Te);je.complete.apply(this,[Ne,je])}me.deferred.resolveWith(this,[Te,je])}(me)}).fail(function(){me.deferred.rejectWith(this,[Te,je])})},Ee=function(me){const Te=this,je=Te.element,Ne=Te.config;clearTimeout(Te.startTimeout),Te.isStarted||Te.start(),Te.strategy.stop(je,Ne,me)},le=(0,H.b4)(M.N,"dxFXStartAnimation"),Be=function(me,Te){const Ne=(0,e.X)(!0,{},"css"===Te.type?Ye:ke,Te),lt=function(me){const Te=Me[me.type];if(!Te)throw T.A.Error("E0011",me.type);return Te}(Ne),Qe=function(me){me=me||{};const Te={transition:(0,Z.transition)()?re:be,frame:be,noAnimation:ce};let je=me.strategy||"transition";return"css"===me.type&&!(0,Z.transition)()&&(je="noAnimation"),Te[je]}(Ne),Ct={element:(0,S.A)(me),config:Ne,configurator:lt,strategy:Qe,isSynchronous:Qe.isSynchronous,setup:de,start:pe,stop:Ee,deferred:new J.cY};return(0,k.Tn)(lt.validateConfig)&&lt.validateConfig(Ne),function(me){m.A.off(me.element,le),m.A.on(me.element,le,function(){et.stop(me.element)}),me.deferred.always(function(){m.A.off(me.element,le)})}(Ct),Ct};function fe(me){return me.data(K)||[]}const Ue=function(me){me.removeData(K)};function Ve(me){return!!me.data(z)}function tt(me,Te){if(!(Te=fe(me)).length)return;const je=Te.shift();0===Te.length&&Ue(me),function at(me){return me.setup(),et.off||me.isSynchronous?me.start():me.startTimeout=setTimeout(function(){me.start()}),me.deferred.promise()}(je).done(function(){Ve(me)||tt(me)})}function Vt(me,Te){if(!Te||!Te.position)return;const je=(0,S.A)(L);let Ne=0,lt=0;const Qe=A.A.calculate(me,Te.position),Ct=me.offset(),yt=me.position();yt.top>Ct.top&&(lt=je.scrollTop()),yt.left>Ct.left&&(Ne=je.scrollLeft()),(0,e.X)(Te,{left:Qe.h.location-Ct.left+yt.left-Ne,top:Qe.v.location-Ct.top+yt.top-lt}),delete Te.position}function qe(me,Te){(0,w.__)(Te,function(je,Ne){try{me.css(je,(0,k.Tn)(Ne)?Ne():Ne)}catch{}})}const et={off:!1,animationTypes:Me,animate:function(me,Te){const je=(0,S.A)(me);if(!je.length)return(new J.cY).resolve().promise();const Ne=Be(je,Te);return function Oe(me,Te){const je=fe(me);(function We(me,Te){me.data(K,Te)})(me,je),je.push(Te),Ve(me)||tt(me,je)}(je,Ne),Ne.deferred.promise()},createAnimation:Be,isAnimating:Ve,stop:function(me,Te){const je=(0,S.A)(me),Ne=fe(je);(0,w.__)(Ne,function(Qe,Ct){Ct.config.delay=0,Ct.config.duration=0,Ct.isSynchronous=!0}),Ve(je)||tt(je,Ne);const lt=je.data(z);lt&&lt.stop(Te),je.removeData(z),Ue(je)},_simulatedTransitionEndDelay:100},ue=et},2614:(En,it,p)=>{"use strict";p.d(it,{H4:()=>C,sO:()=>m});var S=p(7754),d=p(7251);const m=(0,S.A)(d.A.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",E4024:"String function {0} cannot be used with the data field {1} of type {2}.",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"});const C=function(k){var w;null===(w=null)||void 0===w||w(k)}},2660:(En,it,p)=>{"use strict";p.d(it,{Tj:()=>S,__:()=>d});const S=(T,C)=>{if(Array.isArray(T))return T.map(C);const e=[];for(const k in T)e.push(C(T[k],k));return e},d=(T,C)=>{if(T){if("length"in T)for(let e=0;e<T.length&&!1!==C.call(T[e],e,T[e]);e++);else for(const e in T)if(!1===C.call(T[e],e,T[e]))break;return T}}},2673:(En,it,p)=>{"use strict";p.d(it,{x0:()=>be,b7:()=>re});var S=p(9144),d=p(5737),m=p(5328),T=p(5652),k=(p(778),p(1134),p(1830)),w=p(1294),P=p(2047),v=p(6628),x=p(3090),b=p(8649),B=p(9641),j=p(1848);const F=["children","rtlEnabled"],U={};let Z=(()=>{class ce extends T.eh{constructor(Se){super(Se),this.state={},this.__getterCache={}}getChildContext(){return(0,d.A)({},this.context,{[j.Q.id]:this.config||j.Q.defaultValue})}get config(){return void 0!==this.__getterCache.config?this.__getterCache.config:this.__getterCache.config={rtlEnabled:this.props.rtlEnabled}}get restAttributes(){return(0,S.A)(this.props,F)}componentWillUpdate(Se,De,Pe){this.props.rtlEnabled!==Se.rtlEnabled&&(this.__getterCache.config=void 0)}render(){return(ce=>ce.props.children)({props:(0,d.A)({},this.props),config:this.config,restAttributes:this.restAttributes})}}return ce.defaultProps=U,ce})();var A=p(3686),J=p(1773),R=p(7251),L=p(6054);const G=["_feedbackHideTimeout","_feedbackShowTimeout","accessKey","activeStateEnabled","activeStateUnit","addWidgetClass","aria","children","className","classes","cssText","disabled","focusStateEnabled","height","hint","hoverStateEnabled","name","onActive","onClick","onDimensionChanged","onFocusIn","onFocusOut","onHoverEnd","onHoverStart","onInactive","onKeyDown","onRootElementRendered","onVisibilityChange","rootElementRef","rtlEnabled","tabIndex","visible","width"],re=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(B.s),Object.getOwnPropertyDescriptors({_feedbackHideTimeout:400,_feedbackShowTimeout:30,cssText:"",aria:Object.freeze({}),classes:"",name:"",addWidgetClass:!0})));let be=(()=>{class ce extends T.oe{get config(){return this.context[j.Q.id]?this.context[j.Q.id]:j.Q.defaultValue}constructor(Se){super(Se),this.widgetElementRef=(0,m._3)(),this.state={active:!1,focused:!1,hovered:!1},this.setRootElementRef=this.setRootElementRef.bind(this),this.activeEffect=this.activeEffect.bind(this),this.inactiveEffect=this.inactiveEffect.bind(this),this.clickEffect=this.clickEffect.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.focusInEffect=this.focusInEffect.bind(this),this.focusOutEffect=this.focusOutEffect.bind(this),this.hoverStartEffect=this.hoverStartEffect.bind(this),this.hoverEndEffect=this.hoverEndEffect.bind(this),this.keyboardEffect=this.keyboardEffect.bind(this),this.resizeEffect=this.resizeEffect.bind(this),this.windowResizeEffect=this.windowResizeEffect.bind(this),this.visibilityEffect=this.visibilityEffect.bind(this),this.checkDeprecation=this.checkDeprecation.bind(this),this.applyCssTextEffect=this.applyCssTextEffect.bind(this)}createEffects(){return[new T.Lt(this.setRootElementRef,[]),new T.Lt(this.activeEffect,[this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),new T.Lt(this.inactiveEffect,[this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),new T.Lt(this.clickEffect,[this.props.disabled,this.props.name,this.props.onClick]),new T.Lt(this.focusInEffect,[this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),new T.Lt(this.focusOutEffect,[this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),new T.Lt(this.hoverStartEffect,[this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),new T.Lt(this.hoverEndEffect,[this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),new T.Lt(this.keyboardEffect,[this.props.focusStateEnabled,this.props.onKeyDown]),new T.Lt(this.resizeEffect,[this.props.name,this.props.onDimensionChanged]),new T.Lt(this.windowResizeEffect,[this.props.onDimensionChanged]),new T.Lt(this.visibilityEffect,[this.props.name,this.props.onVisibilityChange]),new T.Lt(this.checkDeprecation,[this.props.height,this.props.width]),new T.Lt(this.applyCssTextEffect,[this.props.cssText]),(0,T.h2)()]}updateEffects(){var Se,De,Pe,Ie,W,ie,he,Ce,ye,Me,_e,ke,Ye;null===(Se=this._effects[1])||void 0===Se||Se.update([this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),null===(De=this._effects[2])||void 0===De||De.update([this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),null===(Pe=this._effects[3])||void 0===Pe||Pe.update([this.props.disabled,this.props.name,this.props.onClick]),null===(Ie=this._effects[4])||void 0===Ie||Ie.update([this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),null===(W=this._effects[5])||void 0===W||W.update([this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),null===(ie=this._effects[6])||void 0===ie||ie.update([this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),null===(he=this._effects[7])||void 0===he||he.update([this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),null===(Ce=this._effects[8])||void 0===Ce||Ce.update([this.props.focusStateEnabled,this.props.onKeyDown]),null===(ye=this._effects[9])||void 0===ye||ye.update([this.props.name,this.props.onDimensionChanged]),null===(Me=this._effects[10])||void 0===Me||Me.update([this.props.onDimensionChanged]),null===(_e=this._effects[11])||void 0===_e||_e.update([this.props.name,this.props.onVisibilityChange]),null===(ke=this._effects[12])||void 0===ke||ke.update([this.props.height,this.props.width]),null===(Ye=this._effects[13])||void 0===Ye||Ye.update([this.props.cssText])}setRootElementRef(){const{onRootElementRendered:Se,rootElementRef:De}=this.props;De&&(De.current=this.widgetElementRef.current),Se?.(this.widgetElementRef.current)}activeEffect(){const{_feedbackShowTimeout:Se,activeStateEnabled:De,activeStateUnit:Pe,disabled:Ie,onActive:W}=this.props;if(De&&!Ie)return(0,P.wD)(this.widgetElementRef.current,he=>{this.setState(Ce=>({active:!0})),W?.(he)},{timeout:Se,selector:Pe},"UIFeedback")}inactiveEffect(){const{_feedbackHideTimeout:Se,activeStateEnabled:De,activeStateUnit:Pe,onInactive:Ie}=this.props;if(De)return(0,P.Lh)(this.widgetElementRef.current,ie=>{this.state.active&&(this.setState(he=>({active:!1})),Ie?.(ie))},{timeout:Se,selector:Pe},"UIFeedback")}clickEffect(){const{disabled:Se,name:De,onClick:Pe}=this.props,Ie=De;if(Pe&&!Se)return w.Rz.on(this.widgetElementRef.current,Pe,{namespace:Ie}),()=>w.Rz.off(this.widgetElementRef.current,{namespace:Ie})}focusInEffect(){const{disabled:Se,focusStateEnabled:De,name:Pe,onFocusIn:Ie}=this.props;if(De&&!Se)return(0,P.lT)(this.widgetElementRef.current,ie=>{ie.isDefaultPrevented()||(this.setState(he=>({focused:!0})),Ie?.(ie))},null,`${Pe}Focus`)}focusOutEffect(){const{focusStateEnabled:Se,name:De,onFocusOut:Pe}=this.props;if(Se)return(0,P.oo)(this.widgetElementRef.current,W=>{!W.isDefaultPrevented()&&this.state.focused&&(this.setState(ie=>({focused:!1})),Pe?.(W))},null,`${De}Focus`)}hoverStartEffect(){const{activeStateUnit:Se,disabled:De,hoverStateEnabled:Pe,onHoverStart:Ie}=this.props;if(Pe&&!De)return(0,P.mg)(this.widgetElementRef.current,ie=>{!this.state.active&&this.setState(he=>({hovered:!0})),Ie?.(ie)},{selector:Se},"UIFeedback")}hoverEndEffect(){const{activeStateUnit:Se,hoverStateEnabled:De,onHoverEnd:Pe}=this.props;if(De)return(0,P.Jj)(this.widgetElementRef.current,W=>{this.state.hovered&&(this.setState(ie=>({hovered:!1})),Pe?.(W))},{selector:Se},"UIFeedback")}keyboardEffect(){const{focusStateEnabled:Se,onKeyDown:De}=this.props;if(Se&&De){const Pe=w.QJ.on(this.widgetElementRef.current,this.widgetElementRef.current,Ie=>De(Ie));return()=>w.QJ.off(Pe)}}resizeEffect(){const Se=`${this.props.name}VisibilityChange`,{onDimensionChanged:De}=this.props;if(De)return w.XR.on(this.widgetElementRef.current,De,{namespace:Se}),()=>w.XR.off(this.widgetElementRef.current,{namespace:Se})}windowResizeEffect(){const{onDimensionChanged:Se}=this.props;if(Se)return J.A.add(Se),()=>{J.A.remove(Se)}}visibilityEffect(){const{name:Se,onVisibilityChange:De}=this.props,Pe=`${Se}VisibilityChange`;if(De)return w.XD.on(this.widgetElementRef.current,()=>De(!0),()=>De(!1),{namespace:Pe}),()=>w.XD.off(this.widgetElementRef.current,{namespace:Pe})}checkDeprecation(){const{height:Se,width:De}=this.props;(0,k.Tn)(De)&&R.A.log("W0017","width"),(0,k.Tn)(Se)&&R.A.log("W0017","height")}applyCssTextEffect(){const{cssText:Se}=this.props;""!==Se&&(this.widgetElementRef.current.style.cssText=Se)}get shouldRenderConfigProvider(){const{rtlEnabled:Se}=this.props;return function H(ce,Re){const Se=(0,k.O9)(ce),De=(0,k.O9)((0,A.A)().rtlEnabled)&&!Se&&!(0,k.O9)(Re?.rtlEnabled);return Se&&ce!==Re?.rtlEnabled||De}(Se,this.config)}get rtlEnabled(){const{rtlEnabled:Se}=this.props;return function M(ce,Re){return void 0!==ce?ce:void 0!==Re?.rtlEnabled?Re.rtlEnabled:(0,A.A)().rtlEnabled}(Se,this.config)}get attributes(){const{aria:Se,disabled:De,focusStateEnabled:Pe,visible:Ie}=this.props,W=Pe&&!De&&this.props.accessKey;return(0,d.A)({},(0,x.X)({},W&&{accessKey:W}),(ce=>Object.keys(ce).reduce((Re,Se)=>ce[Se]?(0,d.A)({},Re,{["role"===Se||"id"===Se?Se:`aria-${Se}`]:String(ce[Se])}):Re,{}))((0,d.A)({},Se,{disabled:De,hidden:!Ie})),(0,x.X)({},this.restAttributes))}get styles(){const{height:Se,width:De}=this.props,Pe=this.restAttributes.style||{},Ie=(0,b.CC)("width",(0,k.Tn)(De)?De():De),W=(0,b.CC)("height",(0,k.Tn)(Se)?Se():Se);return(0,d.A)({},Pe,{height:W??Pe.height,width:Ie??Pe.width})}get cssClasses(){const{activeStateEnabled:Se,addWidgetClass:De,className:Pe,classes:Ie,disabled:W,focusStateEnabled:ie,hoverStateEnabled:he,onVisibilityChange:Ce,visible:ye}=this.props,Me=!!ie&&!W,_e=!!he&&!W,ke=!!Se&&!W,Ye={"dx-widget":!!De,[String(Ie)]:!!Ie,[String(Pe)]:!!Pe,"dx-state-disabled":!!W,"dx-state-invisible":!ye,"dx-state-focused":!!this.state.focused&&Me,"dx-state-active":!!this.state.active&&ke,"dx-state-hover":!!this.state.hovered&&_e&&!this.state.active,"dx-rtl":!!this.rtlEnabled,"dx-visibility-change-handler":!!Ce};return(0,v.g)(Ye)}get tabIndex(){const{disabled:Se,focusStateEnabled:De,tabIndex:Pe}=this.props;return De&&!Se?Pe:void 0}get restAttributes(){return(0,S.A)(this.props,G)}focus(){w.XC.trigger(this.widgetElementRef.current)}blur(){const Se=L.A.getActiveElement(this.widgetElementRef.current);this.widgetElementRef.current===Se&&Se.blur()}activate(){this.setState(Se=>({active:!0}))}deactivate(){this.setState(Se=>({active:!1}))}render(){return(ce=>{const Re=(0,m._B)((0,m.bF)(1,"div",ce.cssClasses,ce.props.children,0,(0,d.A)({},ce.attributes,{tabIndex:ce.tabIndex,title:ce.props.hint,style:(0,T.gs)(ce.styles)}),null,ce.widgetElementRef));return ce.shouldRenderConfigProvider?(0,m.sO)(2,Z,{rtlEnabled:ce.rtlEnabled,children:Re}):Re})({props:(0,d.A)({},this.props),active:this.state.active,focused:this.state.focused,hovered:this.state.hovered,widgetElementRef:this.widgetElementRef,config:this.config,shouldRenderConfigProvider:this.shouldRenderConfigProvider,rtlEnabled:this.rtlEnabled,attributes:this.attributes,styles:this.styles,cssClasses:this.cssClasses,tabIndex:this.tabIndex,restAttributes:this.restAttributes})}}return ce.defaultProps=re,ce})()},2720:(En,it,p)=>{"use strict";p.d(it,{A:()=>w});var S=p(6054),d=p(1926),m=p(6110),T=p(4356);let C=[];const e=(0,T.A)(()=>{const P=S.A.listen(S.A.getDocument(),"DOMContentLoaded",()=>{k.fire(),P()})}),k={add:P=>{const v=(0,m.Vd)();v&&"loading"!==S.A.getReadyState()?P():(C.push(P),v&&e())},fire:()=>{C.forEach(P=>P()),C=[]}},w=(0,d.A)(k)},2735:(En,it,p)=>{"use strict";p.d(it,{A:()=>M});var S=p(3538),d=p(1830),m=p(2660),T=p(4270),C=p(6021),e=p(2614),k=p(9916);const w=S.A.inherit({toArray:function(){const H=[];for(this.reset();this.next();)H.push(this.current());return H},countable:function(){return!1}}),P=w.inherit({ctor:function(H){this.array=H,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),v=w.inherit({ctor:function(H){this.iter=H},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),x=v.inherit({ctor:function(H,J){this.callBase(H),this.index=-1,this.mapper=J},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){const H=this.callBase();return H&&this.index++,H}}),B=w.inherit({ctor:function(H,J,R,L){this.langParams=H.langParams,H instanceof x||((H=new x(H,this._wrap)).langParams=this.langParams),this.iter=H,this.rules=[{getter:J,desc:R,compare:L,langParams:this.langParams}]},thenBy:function(H,J,R){const L=new B(this.sortedIter||this.iter,H,J,R);return this.sortedIter||(L.rules=this.rules.concat(L.rules)),L},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){const H=this;H.sortedIter||((0,m.__)(H.rules,function(){this.getter=(0,T.Hz)(this.getter)}),H.sortedIter=new x(new P(this.iter.toArray().sort(function(J,R){return H._compare(J,R)})),H._unwrap))},_wrap:function(H,J){return{index:J,value:H}},_unwrap:function(H){return H.value},_getDefaultCompare:H=>(J,R)=>function(H,J,R){return(0,d.Kg)(H)&&(0,d.Kg)(J)&&(null!=R&&R.locale||null!=R&&R.collatorOptions)?new Intl.Collator(R?.locale||void 0,R?.collatorOptions||void 0).compare(H,J):(H=(0,T.ao)(H,!1,R),J=(0,T.ao)(J,!1,R),null===H&&null!==J?-1:null!==H&&null===J||void 0===H&&void 0!==J?1:void 0!==H&&void 0===J||H<J?-1:H>J?1:0)}(J,R,H),_compare:function(H,J){const R=H.index,L=J.index;if((H=H.value)===(J=J.value))return R-L;for(let G=0,Q=this.rules.length;G<Q;G++){const z=this.rules[G],K=z.getter(H),ee=z.getter(J),be=(z.compare||this._getDefaultCompare(z.langParams))(K,ee);if(be)return z.desc?-be:be}return R-L}}),j=function(){let H={};const J=z=>(0,T.ao)(z,!1,H),L=function(z){var K;return(0,d.O9)(z)?null!==(K=H)&&void 0!==K&&K.locale?z.toLocaleString(H.locale):z.toString():""};function G(z,K,ee){return function(re){re=J(z(re));let be=Q(K)?re===K:re==K;return ee&&(be=!be),be}}function Q(z){return""===z||0===z||!1===z}return function(z,K){return H=K||{},(0,d.Tn)(z)?z:(0,k.$A)(z)?function(z){if((0,k.Im)(z))return(be=>{const ce=(0,T.Hz)(be[0][0]),Re=be.reduce((Se,De,Pe)=>(Pe%2==0&&Se.push(J(De[2])),Se),[]);return Se=>{const De=J(ce(Se));return Re.some(Pe=>Q(Pe)?De===Pe:De==Pe)}})(z);const K=[];let ee=!1,re=!1;return(0,m.__)(z,function(){if(Array.isArray(this)||(0,d.Tn)(this)){if(K.length>1&&ee!==re)throw new e.sO.Error("E4019");K.push(j(this,H)),ee=re,re=!0}else re=(0,k.LO)(this)}),function(be){let ce=ee;for(let Re=0;Re<K.length;Re++)if(K[Re](be)!==ee){ce=!ee;break}return ce}}(z):(0,k.bF)(z)?function(ee){const re=ee[0],be=j(ee[1],H);if("!"===re)return function(ce){return!be(ce)};throw e.sO.Error("E4003",re)}(z):function(ee){ee=(0,k.aE)(ee);const re=(0,T.Hz)(ee[0]),be=ee[1];let ce=ee[2];ce=J(ce);const Re=(Se,De)=>(Se=J(re(Se)),(null!=ce&&null!=Se||ce===Se)&&De(Se,ce));switch(be.toLowerCase()){case"=":return G(re,ce);case"<>":return G(re,ce,!0);case">":return Se=>Re(Se,(De,Pe)=>De>Pe);case"<":return Se=>Re(Se,(De,Pe)=>De<Pe);case">=":return Se=>Re(Se,(De,Pe)=>De>=Pe);case"<=":return Se=>Re(Se,(De,Pe)=>De<=Pe);case"startswith":return function(Se){return 0===J(L(re(Se))).indexOf(ce)};case"endswith":return function(Se){const De=J(L(re(Se))),Pe=L(ce);if(De.length<Pe.length)return!1;const Ie=De.lastIndexOf(ce);return-1!==Ie&&Ie===De.length-ce.length};case"contains":return function(Se){return J(L(re(Se))).indexOf(ce)>-1};case"notcontains":return function(Se){return-1===J(L(re(Se))).indexOf(ce)}}throw e.sO.Error("E4003",be)}(z)}}(),F=v.inherit({ctor:function(H,J){this.callBase(H),this.langParams=H.langParams,this.criteria=j(J,this.langParams)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),X=w.inherit({ctor:function(H,J){this.iter=H,this.getter=J},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(this.groupedIter)return;const H={},J=[],R=this.iter,L=(0,T.Hz)(this.getter);for(R.reset();R.next();){const G=R.current(),Q=L(G);Q in H?H[Q].push(G):(H[Q]=[G],J.push(Q))}this.groupedIter=new P((0,m.Tj)(J,function(G){return{key:G,items:H[G]}}))}}),U=v.inherit({ctor:function(H,J){this.callBase(H),this.getter=(0,T.Hz)(J)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),Z=v.inherit({ctor:function(H,J,R){this.callBase(H),this.skip=Math.max(0,J),this.take=Math.max(0,R),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}}),A=function(H,J){J=J||{},H instanceof w||(H=new P(H)),J.langParams&&(H.langParams=J.langParams);const R=function(ee){const re=J.errorHandler;re&&re(ee),(0,e.H4)(ee)},L=function(ee){const re=(new C.cY).fail(R);let be;const ce=ee.step,Re=ee.finalize;try{H.reset(),be="seed"in ee?ee.seed:H.next()?H.current():NaN;let Se=be;for(;H.next();)Se=ce(Se,H.current());re.resolve(Re?Re(Se):Se)}catch(Se){re.reject(Se)}return re.promise()},G=function(ee){return L(k.zL[ee])},Q=function(ee){return!(0,d.Tn)(ee)&&!Array.isArray(ee)&&(ee=[].slice.call(arguments)),K(new U(H,ee))},z=function(ee){return Q((0,T.Hz)(ee))};function K(ee){return A(ee,J)}return{toArray:function(){return H.toArray()},enumerate:function(){const ee=(new C.cY).fail(R);try{ee.resolve(H.toArray())}catch(re){ee.reject(re)}return ee.promise()},setLangParams(ee){H.langParams=ee},sortBy:function(ee,re,be){return K(new B(H,ee,re,be))},thenBy:function(ee,re,be){if(H instanceof B)return K(H.thenBy(ee,re,be));throw e.sO.Error("E4004")},filter:function(ee){return Array.isArray(ee)||(ee=[].slice.call(arguments)),K(new F(H,ee))},slice:function(ee,re){return void 0===re&&(re=Number.MAX_VALUE),K(new Z(H,ee,re))},select:Q,groupBy:function(ee){return K(new X(H,ee))},aggregate:function(ee,re,be){return L(arguments.length<2?{step:arguments[0]}:{seed:ee,step:re,finalize:be})},count:function(){if(H.countable()){const ee=(new C.cY).fail(R);try{ee.resolve(H.count())}catch(re){ee.reject(re)}return ee.promise()}return G("count")},sum:function(ee){return ee?z(ee).sum():G("sum")},min:function(ee){return ee?z(ee).min():G("min")},max:function(ee){return ee?z(ee).max():G("max")},avg:function(ee){return ee?z(ee).avg():G("avg")}}},M=A},2746:(En,it,p)=>{"use strict";p.d(it,{CI:()=>b,EU:()=>C,Hl:()=>e,Q5:()=>T,mE:()=>Q});var S=p(656),d=p(5732),m=p(4303);const T=new S.nKC("");let C=(()=>{class Se{_zone;_plugins;_eventNameToPlugin=new Map;constructor(Pe,Ie){this._zone=Ie,Pe.forEach(W=>{W.manager=this}),this._plugins=Pe.slice().reverse()}addEventListener(Pe,Ie,W,ie){return this._findPluginFor(Ie).addEventListener(Pe,Ie,W,ie)}getZone(){return this._zone}_findPluginFor(Pe){let Ie=this._eventNameToPlugin.get(Pe);if(Ie)return Ie;if(Ie=this._plugins.find(ie=>ie.supports(Pe)),!Ie)throw new S.buA(5101,!1);return this._eventNameToPlugin.set(Pe,Ie),Ie}static \u0275fac=function(Ie){return new(Ie||Se)(S.KVO(T),S.KVO(m.SKi))};static \u0275prov=S.jDH({token:Se,factory:Se.\u0275fac})}return Se})();class e{_doc;constructor(De){this._doc=De}manager}const k="ng-app-id";function w(Se){for(const De of Se)De.remove()}function P(Se,De){const Pe=De.createElement("style");return Pe.textContent=Se,Pe}function x(Se,De){const Pe=De.createElement("link");return Pe.setAttribute("rel","stylesheet"),Pe.setAttribute("href",Se),Pe}let b=(()=>{class Se{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(Pe,Ie,W,ie={}){this.doc=Pe,this.appId=Ie,this.nonce=W,function v(Se,De,Pe,Ie){const W=Se.head?.querySelectorAll(`style[${k}="${De}"],link[${k}="${De}"]`);if(W)for(const ie of W)ie.removeAttribute(k),ie instanceof HTMLLinkElement?Ie.set(ie.href.slice(ie.href.lastIndexOf("/")+1),{usage:0,elements:[ie]}):ie.textContent&&Pe.set(ie.textContent,{usage:0,elements:[ie]})}(Pe,Ie,this.inline,this.external),this.hosts.add(Pe.head)}addStyles(Pe,Ie){for(const W of Pe)this.addUsage(W,this.inline,P);Ie?.forEach(W=>this.addUsage(W,this.external,x))}removeStyles(Pe,Ie){for(const W of Pe)this.removeUsage(W,this.inline);Ie?.forEach(W=>this.removeUsage(W,this.external))}addUsage(Pe,Ie,W){const ie=Ie.get(Pe);ie?ie.usage++:Ie.set(Pe,{usage:1,elements:[...this.hosts].map(he=>this.addElement(he,W(Pe,this.doc)))})}removeUsage(Pe,Ie){const W=Ie.get(Pe);W&&(W.usage--,W.usage<=0&&(w(W.elements),Ie.delete(Pe)))}ngOnDestroy(){for(const[,{elements:Pe}]of[...this.inline,...this.external])w(Pe);this.hosts.clear()}addHost(Pe){this.hosts.add(Pe);for(const[Ie,{elements:W}]of this.inline)W.push(this.addElement(Pe,P(Ie,this.doc)));for(const[Ie,{elements:W}]of this.external)W.push(this.addElement(Pe,x(Ie,this.doc)))}removeHost(Pe){this.hosts.delete(Pe)}addElement(Pe,Ie){return this.nonce&&Ie.setAttribute("nonce",this.nonce),Pe.appendChild(Ie)}static \u0275fac=function(Ie){return new(Ie||Se)(S.KVO(S.qQL),S.KVO(m.sZ2),S.KVO(m.BIS,8),S.KVO(m.Agw))};static \u0275prov=S.jDH({token:Se,factory:Se.\u0275fac})}return Se})();const B={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/Math/MathML"},j=/%COMP%/g,U="%COMP%",Z=`_nghost-${U}`,A=`_ngcontent-${U}`,H=new S.nKC("",{providedIn:"root",factory:()=>!0});function L(Se,De){return De.map(Pe=>Pe.replace(j,Se))}let Q=(()=>{class Se{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;animationDisabled;maxAnimationTimeout;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;registry;constructor(Pe,Ie,W,ie,he,Ce,ye,Me=null,_e,ke,Ye=null){this.eventManager=Pe,this.sharedStylesHost=Ie,this.appId=W,this.removeStylesOnCompDestroy=ie,this.doc=he,this.platformId=Ce,this.ngZone=ye,this.nonce=Me,this.animationDisabled=_e,this.maxAnimationTimeout=ke,this.tracingService=Ye,this.platformIsServer=!1,this.defaultRenderer=new z(Pe,he,ye,this.platformIsServer,this.tracingService,this.registry=(0,S.kRk)(),this.maxAnimationTimeout)}createRenderer(Pe,Ie){if(!Pe||!Ie)return this.defaultRenderer;const W=this.getOrCreateRenderer(Pe,Ie);return W instanceof Re?W.applyToHost(Pe):W instanceof ce&&W.applyStyles(),W}getOrCreateRenderer(Pe,Ie){const W=this.rendererByCompId;let ie=W.get(Ie.id);if(!ie){const he=this.doc,Ce=this.ngZone,ye=this.eventManager,Me=this.sharedStylesHost,_e=this.removeStylesOnCompDestroy,ke=this.platformIsServer,Ye=this.tracingService;switch(Ie.encapsulation){case m.gXe.Emulated:ie=new Re(ye,Me,Ie,this.appId,_e,he,Ce,ke,Ye,this.registry,this.animationDisabled,this.maxAnimationTimeout);break;case m.gXe.ShadowDom:return new be(ye,Me,Pe,Ie,he,Ce,this.nonce,ke,Ye,this.registry,this.maxAnimationTimeout);default:ie=new ce(ye,Me,Ie,_e,he,Ce,ke,Ye,this.registry,this.animationDisabled,this.maxAnimationTimeout)}W.set(Ie.id,ie)}return ie}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(Pe){this.rendererByCompId.delete(Pe)}static \u0275fac=function(Ie){return new(Ie||Se)(S.KVO(C),S.KVO(b),S.KVO(m.sZ2),S.KVO(H),S.KVO(S.qQL),S.KVO(m.Agw),S.KVO(m.SKi),S.KVO(m.BIS),S.KVO(m.DG8),S.KVO(m.KA5),S.KVO(m.a8H,8))};static \u0275prov=S.jDH({token:Se,factory:Se.\u0275fac})}return Se})();class z{eventManager;doc;ngZone;platformIsServer;tracingService;registry;maxAnimationTimeout;data=Object.create(null);throwOnSyntheticProps=!0;constructor(De,Pe,Ie,W,ie,he,Ce){this.eventManager=De,this.doc=Pe,this.ngZone=Ie,this.platformIsServer=W,this.tracingService=ie,this.registry=he,this.maxAnimationTimeout=Ce}destroy(){}destroyNode=null;createElement(De,Pe){return Pe?this.doc.createElementNS(B[Pe]||Pe,De):this.doc.createElement(De)}createComment(De){return this.doc.createComment(De)}createText(De){return this.doc.createTextNode(De)}appendChild(De,Pe){(re(De)?De.content:De).appendChild(Pe)}insertBefore(De,Pe,Ie){De&&(re(De)?De.content:De).insertBefore(Pe,Ie)}removeChild(De,Pe){const{elements:Ie}=this.registry;Ie?Ie.animate(Pe,()=>Pe.remove(),this.maxAnimationTimeout):Pe.remove()}selectRootElement(De,Pe){let Ie="string"==typeof De?this.doc.querySelector(De):De;if(!Ie)throw new S.buA(-5104,!1);return Pe||(Ie.textContent=""),Ie}parentNode(De){return De.parentNode}nextSibling(De){return De.nextSibling}setAttribute(De,Pe,Ie,W){if(W){Pe=W+":"+Pe;const ie=B[W];ie?De.setAttributeNS(ie,Pe,Ie):De.setAttribute(Pe,Ie)}else De.setAttribute(Pe,Ie)}removeAttribute(De,Pe,Ie){if(Ie){const W=B[Ie];W?De.removeAttributeNS(W,Pe):De.removeAttribute(`${Ie}:${Pe}`)}else De.removeAttribute(Pe)}addClass(De,Pe){De.classList.add(Pe)}removeClass(De,Pe){De.classList.remove(Pe)}setStyle(De,Pe,Ie,W){W&(m.czy.DashCase|m.czy.Important)?De.style.setProperty(Pe,Ie,W&m.czy.Important?"important":""):De.style[Pe]=Ie}removeStyle(De,Pe,Ie){Ie&m.czy.DashCase?De.style.removeProperty(Pe):De.style[Pe]=""}setProperty(De,Pe,Ie){null!=De&&(De[Pe]=Ie)}setValue(De,Pe){De.nodeValue=Pe}listen(De,Pe,Ie,W){if("string"==typeof De&&!(De=(0,d.rb)().getGlobalEventTarget(this.doc,De)))throw new S.buA(5102,!1);let ie=this.decoratePreventDefault(Ie);return this.tracingService?.wrapEventListener&&(ie=this.tracingService.wrapEventListener(De,Pe,ie)),this.eventManager.addEventListener(De,Pe,ie,W)}decoratePreventDefault(De){return Pe=>{if("__ngUnwrap__"===Pe)return De;!1===De(Pe)&&Pe.preventDefault()}}}function re(Se){return"TEMPLATE"===Se.tagName&&void 0!==Se.content}class be extends z{sharedStylesHost;hostEl;shadowRoot;constructor(De,Pe,Ie,W,ie,he,Ce,ye,Me,_e,ke){super(De,ie,he,ye,Me,_e,ke),this.sharedStylesHost=Pe,this.hostEl=Ie,this.shadowRoot=Ie.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let Ye=W.styles;Ye=L(W.id,Ye);for(const Ae of Ye){const pe=document.createElement("style");Ce&&pe.setAttribute("nonce",Ce),pe.textContent=Ae,this.shadowRoot.appendChild(pe)}const de=W.getExternalStyles?.();if(de)for(const Ae of de){const pe=x(Ae,ie);Ce&&pe.setAttribute("nonce",Ce),this.shadowRoot.appendChild(pe)}}nodeOrShadowRoot(De){return De===this.hostEl?this.shadowRoot:De}appendChild(De,Pe){return super.appendChild(this.nodeOrShadowRoot(De),Pe)}insertBefore(De,Pe,Ie){return super.insertBefore(this.nodeOrShadowRoot(De),Pe,Ie)}removeChild(De,Pe){return super.removeChild(null,Pe)}parentNode(De){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(De)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ce extends z{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;_animationDisabled;constructor(De,Pe,Ie,W,ie,he,Ce,ye,Me,_e,ke,Ye){super(De,ie,he,Ce,ye,Me,ke),this.sharedStylesHost=Pe,this.removeStylesOnCompDestroy=W,this._animationDisabled=_e;let de=Ie.styles;this.styles=Ye?L(Ye,de):de,this.styleUrls=Ie.getExternalStyles?.(Ye)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){if(this.removeStylesOnCompDestroy){if(!this._animationDisabled&&this.registry.elements)return void this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)},this.maxAnimationTimeout)});this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}}class Re extends ce{contentAttr;hostAttr;constructor(De,Pe,Ie,W,ie,he,Ce,ye,Me,_e,ke,Ye){const de=W+"-"+Ie.id;super(De,Pe,Ie,ie,he,Ce,ye,Me,_e,ke,Ye,de),this.contentAttr=function J(Se){return A.replace(j,Se)}(de),this.hostAttr=function R(Se){return Z.replace(j,Se)}(de)}applyToHost(De){this.applyStyles(),this.setAttribute(De,this.hostAttr,"")}createElement(De,Pe){const Ie=super.createElement(De,Pe);return super.setAttribute(Ie,this.contentAttr,""),Ie}}},2773:(En,it,p)=>{"use strict";p.d(it,{b:()=>T,v:()=>m});var S=p(1363),d=p(6110);const m=function(C){if((0,d.Vd)())return(0,S.Ot)(C)},T=function(C){return null===C&&(C=void 0),"function"==typeof C&&(C=C()),C}},2823:(En,it,p)=>{"use strict";p.d(it,{A:()=>Z});var S=p(3538),d=p(5973),m=p(5704),T=p(4859),C=p(2660),e=p(1363),k=p(4072),w=p(9293),P=p(179);const v="dxNativeScrollable",j="vertical",F="horizontal",Z=S.A.inherit({ctor(A){this._init(A)},_init(A){this._component=A,this._$element=A.$element(),this._$container=(0,m.A)(A.container()),this._$content=A.$content(),this._direction=A.option("direction"),this._useSimulatedScrollbar=A.option("useSimulatedScrollbar"),this.option=A.option.bind(A),this._createActionByOption=A._createActionByOption.bind(A),this._isLocked=A._isLocked.bind(A),this._isDirection=A._isDirection.bind(A),this._allowedDirection=A._allowedDirection.bind(A),this._getMaxOffset=A._getMaxOffset.bind(A),this._isRtlNativeStrategy=A._isRtlNativeStrategy.bind(A)},render(){const M=d.A.real().platform;this._$element.addClass("dx-scrollable-native").addClass(`dx-scrollable-native-${M}`).toggleClass("dx-scrollable-scrollbars-hidden",!this._isScrollbarVisible()),this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateRtlPosition(A){A&&this.option("rtlEnabled")&&this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._moveScrollbars()},_renderScrollbars(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass("dx-scrollable-scrollbar-simulated"),this._renderScrollbar(j),this._renderScrollbar(F)},_renderScrollbar(A){this._isDirection(A)&&(this._scrollbars[A]=new P.A((0,m.A)("<div>").appendTo(this._$element),{direction:A,expandable:this._component.option("scrollByThumb")}))},handleInit:T.lQ,handleStart:T.lQ,handleMove(A){this._isLocked()?A.cancel=!0:this._allowedDirection()&&(A.originalEvent.isScrollingEvent=!0)},handleEnd:T.lQ,handleCancel:T.lQ,handleStop:T.lQ,_eachScrollbar(A){A=A.bind(this),(0,C.__)(this._scrollbars||{},(M,H)=>{A(H,M)})},createActions(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs(){const{left:A,top:M}=this.location();return{event:this._eventForUserAction,scrollOffset:this._getScrollOffset(),reachedLeft:this._isRtlNativeStrategy()?this._isReachedRight(-A):this._isReachedLeft(A),reachedRight:this._isRtlNativeStrategy()?this._isReachedLeft(-Math.abs(A)):this._isReachedRight(A),reachedTop:this._isDirection(j)?Math.round(M)>=0:void 0,reachedBottom:this._isDirection(j)?Math.round(Math.abs(M)-this._getMaxOffset().top)>=0:void 0}},_getScrollOffset(){const{top:A,left:M}=this.location();return{top:-A,left:this._normalizeOffsetLeft(-M)}},_normalizeOffsetLeft(A){return this._isRtlNativeStrategy()?this._getMaxOffset().left+A:A},_isReachedLeft(A){return this._isDirection(F)?Math.round(A)>=0:void 0},_isReachedRight(A){return this._isDirection(F)?Math.round(Math.abs(A)-this._getMaxOffset().left)>=0:void 0},_isScrollbarVisible(){const{showScrollbar:A}=this.option();return"never"!==A&&!1!==A},handleScroll(A){this._eventForUserAction=A,this._moveScrollbars(),this._scrollAction(this._createActionArgs())},_moveScrollbars(){const{top:A,left:M}=this._getScrollOffset();this._eachScrollbar(H=>{H.moveTo({top:-A,left:-M}),H.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(()=>{this._eachScrollbar(A=>{A.option("visible",!1)})},500)},location(){return{left:-this._$container.scrollLeft(),top:-this._$container.scrollTop()}},disabledChanged:T.lQ,update(){this._update(),this._updateAction(this._createActionArgs())},_update(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions(){this._containerSize={height:(0,e.Oq)(this._$container),width:(0,e.RG)(this._$container)},this._componentContentSize={height:(0,e.Oq)(this._component.$content()),width:(0,e.RG)(this._component.$content())},this._contentSize={height:(0,e.Oq)(this._$content),width:(0,e.RG)(this._$content)}},_updateScrollbars(){this._eachScrollbar(function(A,M){const H=M===j?"height":"width";A.option({containerSize:this._containerSize[H],contentSize:this._componentContentSize[H]}),A.update()})},_allowedDirections(){return{vertical:this._isDirection(j)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(F)&&this._contentSize.width>this._containerSize.width}},dispose(){const{className:A}=this._$element.get(0),M=new RegExp("dx-scrollable-native\\S*","g");M.test(A)&&this._$element.removeClass(A.match(M).join(" ")),k.A.off(this._$element,`.${v}`),k.A.off(this._$container,`.${v}`),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars(){this._eachScrollbar(A=>{A.$element().remove()})},scrollBy(A){const M=this.location();this._$container.scrollTop(Math.round(-M.top-A.top)),this._$container.scrollLeft(Math.round(-M.left-A.left))},validate(A){return!(this.option("disabled")||(0,w.X1)(A)&&this._isScrolledInMaxDirection(A)||!this._allowedDirection())},_isScrolledInMaxDirection(A){const M=this._$container.get(0);let H;return H=A.delta>0?A.shiftKey?!M.scrollLeft:!M.scrollTop:A.shiftKey?M.scrollLeft>=this._getMaxOffset().left:M.scrollTop>=this._getMaxOffset().top,H},getDirection(){return this._allowedDirection()}})},2831:(En,it,p)=>{"use strict";p.d(it,{n:()=>T});var S=p(8621),d=p(9867),m=p(6111);function T(C,e){return(0,d.N)((k,w)=>{let P=null,v=0,x=!1;const b=()=>x&&!P&&w.complete();k.subscribe((0,m._)(w,B=>{P?.unsubscribe();let j=0;const F=v++;(0,S.Tg)(C(B,F)).subscribe(P=(0,m._)(w,X=>w.next(e?e(B,X,F,j++):X),()=>{P=null,b()}))},()=>{x=!0,b()}))})}},2895:(En,it,p)=>{"use strict";p.d(it,{Y:()=>m,l:()=>T});var S=p(2493);let d=null;function m(C){if(S.$.useDeprecatedSynchronousErrorHandling){const e=!d;if(e&&(d={errorThrown:!1,error:null}),C(),e){const{errorThrown:k,error:w}=d;if(d=null,k)throw w}}else C()}function T(C){S.$.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=C)}},2923:(En,it,p)=>{"use strict";p.d(it,{Hg:()=>e,Yq:()=>x,fH:()=>k});var S=p(7280),d=p(8360),m=p(1520),T=p(9061);p(9461);const e=S.A.locale.bind(S.A),k=d.A.load.bind(d.A),x=(d.A.format.bind(d.A),m.A.format.bind(m.A),m.A.parse.bind(m.A),T.A.format.bind(T.A));T.A.parse.bind(T.A)},2925:(En,it,p)=>{"use strict";p.d(it,{A:()=>m});const m=p(3538).A.inherit({ctor:function(T){T&&(T=String(T)),this._value=this._normalize(T||this._generate())},_normalize:function(T){for(T=T.replace(/[^a-f0-9]/gi,"").toLowerCase();T.length<32;)T+="0";return[T.substr(0,8),T.substr(8,4),T.substr(12,4),T.substr(16,4),T.substr(20,12)].join("-")},_generate:function(){let T="";for(let C=0;C<32;C++)T+=Math.round(15*Math.random()).toString(16);return T},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}})},2928:(En,it,p)=>{"use strict";p.d(it,{Y:()=>m});var S=p(4912),d=p(3229);function m(T=0,C=S.E){return T<0&&(T=0),(0,d.O)(T,T,C)}},2946:(En,it,p)=>{"use strict";p.d(it,{TF:()=>L,VK:()=>A,Xb:()=>G,Yr:()=>R,lj:()=>Z,yo:()=>J});var S=p(5737),d=p(1830),m=p(3686),T=p(2925),C=p(3090),e=p(2614),k=p(6509),P=(p(4270),p(9916));function x(Q,z,K,ee){let re,be;if(ee){for(let ce=0;ce<z.length;ce++)if(re=z[ce].items||z[ce].collapsedItems||[],be=x(Q,re||[],K,ee-1),be)return be}else if(G(Q,z,K)>=0)return z}function b(Q,z,K,ee){return ee?x(Q,z,K,ee)||[]:z}function X(Q,z,K){Q._dataByKeyMap&&(Q._dataByKeyMap[JSON.stringify(z)]=K,Q._dataByKeyMapLength+=K?1:-1)}function U(Q,z,K){K=K||new WeakMap;const ee=Q?Object.create(Object.getPrototypeOf(Q)):{};Q&&K.set(Q,ee);const re=(0,S.A)({},Q);(0,k.tm)(ee,re,!0,!0);for(const be in re){const ce=re[be],Re=z?.[be];(0,d.Gv)(ce)&&!(0,d.Qd)(ce)&&(0,d.Gv)(Re)&&!K.has(ce)&&(ee[be]=U(ce,Re,K))}for(const be in ee){const ce=ee[be];(0,d.Gv)(ce)&&K.has(ce)&&(ee[be]=K.get(ce))}return ee}function Z(Q,z){const K=U(Q,z);return(0,k.tm)(K,z,!0,!0)}function A(Q){let{keyInfo:z,data:K,changes:ee,groupCount:re,useInsertIndex:be,immutable:ce,disableCache:Re,logError:Se,skipCopying:De}=Q;const Pe=!0===ce?[...K]:K;return ee.forEach(Ie=>{const W="insert"===Ie.type?Pe:b(z,Pe,Ie.key,re);switch(!Re&&function B(Q,z){if(Q.key()&&(!z._dataByKeyMap||z._dataByKeyMapLength!==z.length)){const K={},ee=z.length;for(let re=0;re<ee;re++)K[JSON.stringify(Q.keyOf(z[re]))]=z[re];z._dataByKeyMap=K,z._dataByKeyMapLength=ee}}(z,W),Ie.type){case"update":J(z,W,Ie.key,Ie.data,!0,ce,Se);break;case"insert":R(z,W,Ie.data,be&&(0,d.O9)(Ie.index)?Ie.index:-1,!0,Se,De);break;case"remove":L(z,W,Ie.key,!0,Se)}}),Pe}function M(Q,z,K){return Q?z&&e.sO.log(K):(0,P.OE)(e.sO.Error(K))}function J(Q,z,K,ee,re,be,ce){let Re;const Se=Q.key();if(Se){if(function v(Q,z){let K;const ee="string"==typeof z?z.split():z.slice();for(;ee.length;)if(K=ee.shift(),K in Q)return!0;return!1}(ee,Se)&&!(0,P.t7)(Se,K,Q.keyOf(ee)))return M(re,ce,"E4017");if(Re=function j(Q,z){if(Q._dataByKeyMap)return Q._dataByKeyMap[JSON.stringify(z)]}(z,K),!Re){const De=G(Q,z,K);if(De<0)return M(re,ce,"E4009");if(Re=z[De],!0===be&&(0,d.O9)(Re)){const Pe=Z(Re,ee);return z[De]=Pe,!re&&(0,P.DO)(Pe,K)}}}else Re=K;if((0,k.tm)(Re,ee,!0),!re)return(0,m.A)().useLegacyStoreResult?(0,P.DO)(K,ee):(0,P.DO)(Re,K)}function R(Q,z,K,ee,re,be,ce){let Re;const Se=Q.key(),De=(0,d.Qd)(K)&&!ce?(0,C.X)({},K):K;if(Se){if(Re=Q.keyOf(De),void 0===Re||"object"==typeof Re&&(0,d.RI)(Re)){if(Array.isArray(Se))throw e.sO.Error("E4007");Re=De[Se]=String(new T.A)}else if(void 0!==z[G(Q,z,Re)])return M(re,be,"E4008")}else Re=De;if(ee>=0?z.splice(ee,0,De):z.push(De),X(z,Re,De),!re)return(0,P.DO)((0,m.A)().useLegacyStoreResult?K:De,Re)}function L(Q,z,K,ee,re){const be=G(Q,z,K);return be>-1&&(z.splice(be,1),X(z,K,null)),ee?be<0?M(ee,re,"E4009"):void 0:(0,P.DO)(K)}function G(Q,z,K){const ee=Q.key();if(!function F(Q,z){return!Q._dataByKeyMap||Q._dataByKeyMap[JSON.stringify(z)]}(z,K))return-1;for(let re=0,be=z.length;re<be;re++)if((0,P.t7)(ee,Q.keyOf(z[re]),K))return re;return-1}},2978:(En,it,p)=>{"use strict";p.d(it,{CGW:()=>F,ES_:()=>b,HJs:()=>ws,Hbi:()=>ls,L39:()=>fi,MKu:()=>vo,RxE:()=>W,SmG:()=>Ne,Tg_:()=>Oe,_q3:()=>Pn,a0P:()=>Bo,fpN:()=>Ps,gRc:()=>yt,hFB:()=>Z,oH4:()=>Ve,xvI:()=>ie});var S=p(656),d=p(1131),m=p(4303),T=p(3038);const C=Symbol("InputSignalNode#UNSET"),e={...d.s0,transformFn:void 0,applyValueToInputSignal(gn,Xt){(0,d.j2)(gn,Xt)}};function w(gn,Xt){const hn=Object.create(e);function Wn(){if((0,d.mK)(hn),hn.value===C)throw new S.buA(-950,null);return hn.value}return hn.value=gn,hn.transformFn=Xt?.transform,Wn[d.bh]=hn,Wn}class b{attributeName;constructor(Xt){this.attributeName=Xt}__NG_ELEMENT_ID__=()=>(0,m.kS0)(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}function F(gn){return new T.Zf}function X(gn,Xt){return w(gn,Xt)}new S.nKC("").__NG_ELEMENT_ID__=gn=>{const Xt=(0,S.Mx4)();if(null===Xt)throw new S.buA(204,!1);if(2&Xt.type)return Xt.value;if(8&gn)return null;throw new S.buA(204,!1)};const Z=(X.required=function U(gn){return w(C,gn)},X);class W{full;major;minor;patch;constructor(Xt){this.full=Xt;const hn=Xt.split(".");this.major=hn[0],this.minor=hn[1],this.patch=hn.slice(2).join(".")}}const ie=new W("20.2.4"),de=new S.nKC(""),Ae=new S.nKC("");function pe(gn){return!gn.moduleRef}let le;function Ke(){le=Be}function Be(gn,Xt){const hn=gn.injector.get(m.o8S);if(gn._bootstrapComponents.length>0)gn._bootstrapComponents.forEach(Wn=>hn.bootstrap(Wn));else{if(!gn.instance.ngDoBootstrap)throw new S.buA(-403,!1);gn.instance.ngDoBootstrap(hn)}Xt.push(gn)}let Oe=(()=>{class gn{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(hn){this._injector=hn}bootstrapModuleFactory(hn,Wn){const Fi=Wn?.scheduleInRootZone,bo=Wn?.ignoreChangesOutsideZone,Mo=[(0,m.SdI)({ngZoneFactory:()=>(0,m.G5x)(Wn?.ngZone,{...(0,m.cZr)({eventCoalescing:Wn?.ngZoneEventCoalescing,runCoalescing:Wn?.ngZoneRunCoalescing}),scheduleInRootZone:Fi}),ignoreChangesOutsideZone:bo}),{provide:S.hk6,useExisting:m.Ts$},S.gv8],rs=(0,m.VzW)(hn.moduleType,this.injector,Mo);return Ke(),function Ee(gn){const Xt=pe(gn)?gn.r3Injector:gn.moduleRef.injector,hn=Xt.get(m.SKi);return hn.run(()=>{pe(gn)?gn.r3Injector.resolveInjectorInitializers():gn.moduleRef.resolveInjectorInitializers();const Wn=Xt.get(S.ZTf);let Fi;if(hn.runOutsideAngular(()=>{Fi=hn.onError.subscribe({next:Wn})}),pe(gn)){const io=()=>Xt.destroy(),bo=gn.platformInjector.get(de);bo.add(io),Xt.onDestroy(()=>{Fi.unsubscribe(),bo.delete(io)})}else{const io=()=>gn.moduleRef.destroy(),bo=gn.platformInjector.get(de);bo.add(io),gn.moduleRef.onDestroy(()=>{(0,m.TFI)(gn.allPlatformModules,gn.moduleRef),Fi.unsubscribe(),bo.delete(io)})}return function q(gn,Xt,hn){try{const Wn=hn();return(0,m.yLl)(Wn)?Wn.catch(Fi=>{throw Xt.runOutsideAngular(()=>gn(Fi)),Fi}):Wn}catch(Wn){throw Xt.runOutsideAngular(()=>gn(Wn)),Wn}}(Wn,hn,()=>{const io=Xt.get(S.rev),bo=io.add(),Mo=Xt.get(m.H1s);return Mo.runInitializers(),Mo.donePromise.then(()=>{const rs=Xt.get(m.xe9,m.DkB);if((0,m.e6s)(rs||m.DkB),!Xt.get(Ae,!0))return pe(gn)?Xt.get(m.o8S):(gn.allPlatformModules.push(gn.moduleRef),gn.moduleRef);if(pe(gn)){const $s=Xt.get(m.o8S);return void 0!==gn.rootComponent&&$s.bootstrap(gn.rootComponent),$s}return le?.(gn.moduleRef,gn.allPlatformModules),gn.moduleRef}).finally(()=>{io.remove(bo)})})})}({moduleRef:rs,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(hn,Wn=[]){const Fi=(0,m.lJT)({},Wn);return Ke(),function he(gn,Xt,hn){const Wn=new m.Co$(hn);return Promise.resolve(Wn)}(0,0,hn).then(io=>this.bootstrapModuleFactory(io,Fi))}onDestroy(hn){this._destroyListeners.push(hn)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S.buA(404,!1);this._modules.slice().forEach(Wn=>Wn.destroy()),this._destroyListeners.forEach(Wn=>Wn());const hn=this._injector.get(de,null);hn&&(hn.forEach(Wn=>Wn()),hn.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(Wn){return new(Wn||gn)((0,S.KVO)(S.zZn))};static \u0275prov=(0,S.jDH)({token:gn,factory:gn.\u0275fac,providedIn:"platform"})}return gn})(),fe=null;const We=new S.nKC("");function Ve(gn,Xt,hn=[]){const Wn=`Platform: ${Xt}`,Fi=new S.nKC(Wn);return(io=[])=>{let bo=Vt();if(!bo||bo.injector.get(We,!1)){const Mo=[...hn,...io,{provide:Fi,useValue:!0}];gn?gn(Mo):function Ue(gn){if(fe&&!fe.get(We,!1))throw new S.buA(400,!1);(0,m.pl0)(),(0,m.ypd)(),fe=gn;const Xt=gn.get(Oe);(function ue(gn){const Xt=gn.get(m.PLl,null);(0,S.N4e)(gn,()=>{Xt?.forEach(hn=>hn())})})(gn)}(function tt(gn=[],Xt){return S.zZn.create({name:Xt,providers:[{provide:S.GBX,useValue:"platform"},{provide:de,useValue:new Set([()=>fe=null])},...gn]})}(Mo,Wn))}return function at(){const Xt=Vt();if(!Xt)throw new S.buA(401,!1);return Xt}()}}function Vt(){return fe?.get(Oe)??null}function Ne(){}let yt=(()=>class gn{static __NG_ELEMENT_ID__=Gt})();function Gt(gn){return function ft(gn,Xt,hn){if((0,S.Qs1)(gn)&&!hn){const Wn=(0,S.KdJ)(gn.index,Xt);return new m.NCX(Wn,Wn)}return 175&gn.type?new m.NCX(Xt[S.b5C],Xt):null}((0,S.Mx4)(),(0,S.OAn)(),!(16&~gn))}class Mn{constructor(){}supports(Xt){return(0,m.ozJ)(Xt)}create(Xt){return new ji(Xt)}}const On=(gn,Xt)=>Xt;class ji{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(Xt){this._trackByFn=Xt||On}forEachItem(Xt){let hn;for(hn=this._itHead;null!==hn;hn=hn._next)Xt(hn)}forEachOperation(Xt){let hn=this._itHead,Wn=this._removalsHead,Fi=0,io=null;for(;hn||Wn;){const bo=!Wn||hn&&hn.currentIndex<ti(Wn,Fi,io)?hn:Wn,Mo=ti(bo,Fi,io),rs=bo.currentIndex;if(bo===Wn)Fi--,Wn=Wn._nextRemoved;else if(hn=hn._next,null==bo.previousIndex)Fi++;else{io||(io=[]);const is=Mo-Fi,$s=rs-Fi;if(is!=$s){for(let ir=0;ir<is;ir++){const Cr=ir<io.length?io[ir]:io[ir]=0,Js=Cr+ir;$s<=Js&&Js<is&&(io[ir]=Cr+1)}io[bo.previousIndex]=$s-is}}Mo!==rs&&Xt(bo,Mo,rs)}}forEachPreviousItem(Xt){let hn;for(hn=this._previousItHead;null!==hn;hn=hn._nextPrevious)Xt(hn)}forEachAddedItem(Xt){let hn;for(hn=this._additionsHead;null!==hn;hn=hn._nextAdded)Xt(hn)}forEachMovedItem(Xt){let hn;for(hn=this._movesHead;null!==hn;hn=hn._nextMoved)Xt(hn)}forEachRemovedItem(Xt){let hn;for(hn=this._removalsHead;null!==hn;hn=hn._nextRemoved)Xt(hn)}forEachIdentityChange(Xt){let hn;for(hn=this._identityChangesHead;null!==hn;hn=hn._nextIdentityChange)Xt(hn)}diff(Xt){if(null==Xt&&(Xt=[]),!(0,m.ozJ)(Xt))throw new S.buA(900,!1);return this.check(Xt)?this:null}onDestroy(){}check(Xt){this._reset();let Fi,io,bo,hn=this._itHead,Wn=!1;if(Array.isArray(Xt)){this.length=Xt.length;for(let Mo=0;Mo<this.length;Mo++)io=Xt[Mo],bo=this._trackByFn(Mo,io),null!==hn&&Object.is(hn.trackById,bo)?(Wn&&(hn=this._verifyReinsertion(hn,io,bo,Mo)),Object.is(hn.item,io)||this._addIdentityChange(hn,io)):(hn=this._mismatch(hn,io,bo,Mo),Wn=!0),hn=hn._next}else Fi=0,(0,m.utN)(Xt,Mo=>{bo=this._trackByFn(Fi,Mo),null!==hn&&Object.is(hn.trackById,bo)?(Wn&&(hn=this._verifyReinsertion(hn,Mo,bo,Fi)),Object.is(hn.item,Mo)||this._addIdentityChange(hn,Mo)):(hn=this._mismatch(hn,Mo,bo,Fi),Wn=!0),hn=hn._next,Fi++}),this.length=Fi;return this._truncate(hn),this.collection=Xt,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let Xt;for(Xt=this._previousItHead=this._itHead;null!==Xt;Xt=Xt._next)Xt._nextPrevious=Xt._next;for(Xt=this._additionsHead;null!==Xt;Xt=Xt._nextAdded)Xt.previousIndex=Xt.currentIndex;for(this._additionsHead=this._additionsTail=null,Xt=this._movesHead;null!==Xt;Xt=Xt._nextMoved)Xt.previousIndex=Xt.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(Xt,hn,Wn,Fi){let io;return null===Xt?io=this._itTail:(io=Xt._prev,this._remove(Xt)),null!==(Xt=null===this._unlinkedRecords?null:this._unlinkedRecords.get(Wn,null))?(Object.is(Xt.item,hn)||this._addIdentityChange(Xt,hn),this._reinsertAfter(Xt,io,Fi)):null!==(Xt=null===this._linkedRecords?null:this._linkedRecords.get(Wn,Fi))?(Object.is(Xt.item,hn)||this._addIdentityChange(Xt,hn),this._moveAfter(Xt,io,Fi)):Xt=this._addAfter(new Mi(hn,Wn),io,Fi),Xt}_verifyReinsertion(Xt,hn,Wn,Fi){let io=null===this._unlinkedRecords?null:this._unlinkedRecords.get(Wn,null);return null!==io?Xt=this._reinsertAfter(io,Xt._prev,Fi):Xt.currentIndex!=Fi&&(Xt.currentIndex=Fi,this._addToMoves(Xt,Fi)),Xt}_truncate(Xt){for(;null!==Xt;){const hn=Xt._next;this._addToRemovals(this._unlink(Xt)),Xt=hn}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(Xt,hn,Wn){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(Xt);const Fi=Xt._prevRemoved,io=Xt._nextRemoved;return null===Fi?this._removalsHead=io:Fi._nextRemoved=io,null===io?this._removalsTail=Fi:io._prevRemoved=Fi,this._insertAfter(Xt,hn,Wn),this._addToMoves(Xt,Wn),Xt}_moveAfter(Xt,hn,Wn){return this._unlink(Xt),this._insertAfter(Xt,hn,Wn),this._addToMoves(Xt,Wn),Xt}_addAfter(Xt,hn,Wn){return this._insertAfter(Xt,hn,Wn),this._additionsTail=null===this._additionsTail?this._additionsHead=Xt:this._additionsTail._nextAdded=Xt,Xt}_insertAfter(Xt,hn,Wn){const Fi=null===hn?this._itHead:hn._next;return Xt._next=Fi,Xt._prev=hn,null===Fi?this._itTail=Xt:Fi._prev=Xt,null===hn?this._itHead=Xt:hn._next=Xt,null===this._linkedRecords&&(this._linkedRecords=new Co),this._linkedRecords.put(Xt),Xt.currentIndex=Wn,Xt}_remove(Xt){return this._addToRemovals(this._unlink(Xt))}_unlink(Xt){null!==this._linkedRecords&&this._linkedRecords.remove(Xt);const hn=Xt._prev,Wn=Xt._next;return null===hn?this._itHead=Wn:hn._next=Wn,null===Wn?this._itTail=hn:Wn._prev=hn,Xt}_addToMoves(Xt,hn){return Xt.previousIndex===hn||(this._movesTail=null===this._movesTail?this._movesHead=Xt:this._movesTail._nextMoved=Xt),Xt}_addToRemovals(Xt){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Co),this._unlinkedRecords.put(Xt),Xt.currentIndex=null,Xt._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=Xt,Xt._prevRemoved=null):(Xt._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=Xt),Xt}_addIdentityChange(Xt,hn){return Xt.item=hn,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=Xt:this._identityChangesTail._nextIdentityChange=Xt,Xt}}class Mi{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(Xt,hn){this.item=Xt,this.trackById=hn}}class Vo{_head=null;_tail=null;add(Xt){null===this._head?(this._head=this._tail=Xt,Xt._nextDup=null,Xt._prevDup=null):(this._tail._nextDup=Xt,Xt._prevDup=this._tail,Xt._nextDup=null,this._tail=Xt)}get(Xt,hn){let Wn;for(Wn=this._head;null!==Wn;Wn=Wn._nextDup)if((null===hn||hn<=Wn.currentIndex)&&Object.is(Wn.trackById,Xt))return Wn;return null}remove(Xt){const hn=Xt._prevDup,Wn=Xt._nextDup;return null===hn?this._head=Wn:hn._nextDup=Wn,null===Wn?this._tail=hn:Wn._prevDup=hn,null===this._head}}class Co{map=new Map;put(Xt){const hn=Xt.trackById;let Wn=this.map.get(hn);Wn||(Wn=new Vo,this.map.set(hn,Wn)),Wn.add(Xt)}get(Xt,hn){const Fi=this.map.get(Xt);return Fi?Fi.get(Xt,hn):null}remove(Xt){const hn=Xt.trackById;return this.map.get(hn).remove(Xt)&&this.map.delete(hn),Xt}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ti(gn,Xt,hn){const Wn=gn.previousIndex;if(null===Wn)return Wn;let Fi=0;return hn&&Wn<hn.length&&(Fi=hn[Wn]),Wn+Xt+Fi}class Qn{constructor(){}supports(Xt){return Xt instanceof Map||(0,m.vDg)(Xt)}create(){return new ei}}class ei{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(Xt){let hn;for(hn=this._mapHead;null!==hn;hn=hn._next)Xt(hn)}forEachPreviousItem(Xt){let hn;for(hn=this._previousMapHead;null!==hn;hn=hn._nextPrevious)Xt(hn)}forEachChangedItem(Xt){let hn;for(hn=this._changesHead;null!==hn;hn=hn._nextChanged)Xt(hn)}forEachAddedItem(Xt){let hn;for(hn=this._additionsHead;null!==hn;hn=hn._nextAdded)Xt(hn)}forEachRemovedItem(Xt){let hn;for(hn=this._removalsHead;null!==hn;hn=hn._nextRemoved)Xt(hn)}diff(Xt){if(Xt){if(!(Xt instanceof Map||(0,m.vDg)(Xt)))throw new S.buA(900,!1)}else Xt=new Map;return this.check(Xt)?this:null}onDestroy(){}check(Xt){this._reset();let hn=this._mapHead;if(this._appendAfter=null,this._forEach(Xt,(Wn,Fi)=>{if(hn&&hn.key===Fi)this._maybeAddToChanges(hn,Wn),this._appendAfter=hn,hn=hn._next;else{const io=this._getOrCreateRecordForKey(Fi,Wn);hn=this._insertBeforeOrAppend(hn,io)}}),hn){hn._prev&&(hn._prev._next=null),this._removalsHead=hn;for(let Wn=hn;null!==Wn;Wn=Wn._nextRemoved)Wn===this._mapHead&&(this._mapHead=null),this._records.delete(Wn.key),Wn._nextRemoved=Wn._next,Wn.previousValue=Wn.currentValue,Wn.currentValue=null,Wn._prev=null,Wn._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(Xt,hn){if(Xt){const Wn=Xt._prev;return hn._next=Xt,hn._prev=Wn,Xt._prev=hn,Wn&&(Wn._next=hn),Xt===this._mapHead&&(this._mapHead=hn),this._appendAfter=Xt,Xt}return this._appendAfter?(this._appendAfter._next=hn,hn._prev=this._appendAfter):this._mapHead=hn,this._appendAfter=hn,null}_getOrCreateRecordForKey(Xt,hn){if(this._records.has(Xt)){const Fi=this._records.get(Xt);this._maybeAddToChanges(Fi,hn);const io=Fi._prev,bo=Fi._next;return io&&(io._next=bo),bo&&(bo._prev=io),Fi._next=null,Fi._prev=null,Fi}const Wn=new Rt(Xt);return this._records.set(Xt,Wn),Wn.currentValue=hn,this._addToAdditions(Wn),Wn}_reset(){if(this.isDirty){let Xt;for(this._previousMapHead=this._mapHead,Xt=this._previousMapHead;null!==Xt;Xt=Xt._next)Xt._nextPrevious=Xt._next;for(Xt=this._changesHead;null!==Xt;Xt=Xt._nextChanged)Xt.previousValue=Xt.currentValue;for(Xt=this._additionsHead;null!=Xt;Xt=Xt._nextAdded)Xt.previousValue=Xt.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(Xt,hn){Object.is(hn,Xt.currentValue)||(Xt.previousValue=Xt.currentValue,Xt.currentValue=hn,this._addToChanges(Xt))}_addToAdditions(Xt){null===this._additionsHead?this._additionsHead=this._additionsTail=Xt:(this._additionsTail._nextAdded=Xt,this._additionsTail=Xt)}_addToChanges(Xt){null===this._changesHead?this._changesHead=this._changesTail=Xt:(this._changesTail._nextChanged=Xt,this._changesTail=Xt)}_forEach(Xt,hn){Xt instanceof Map?Xt.forEach(hn):Object.keys(Xt).forEach(Wn=>hn(Xt[Wn],Wn))}}class Rt{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(Xt){this.key=Xt}}function Jt(){return new Pn([new Mn])}let Pn=(()=>{class gn{factories;static \u0275prov=(0,S.jDH)({token:gn,providedIn:"root",factory:Jt});constructor(hn){this.factories=hn}static create(hn,Wn){if(null!=Wn){const Fi=Wn.factories.slice();hn=hn.concat(Fi)}return new gn(hn)}static extend(hn){return{provide:gn,useFactory:()=>{const Wn=(0,S.WQX)(gn,{optional:!0,skipSelf:!0});return gn.create(hn,Wn||Jt())}}}find(hn){const Wn=this.factories.find(Fi=>Fi.supports(hn));if(null!=Wn)return Wn;throw new S.buA(901,!1)}}return gn})();function Ii(){return new vo([new Qn])}let vo=(()=>{class gn{static \u0275prov=(0,S.jDH)({token:gn,providedIn:"root",factory:Ii});factories;constructor(hn){this.factories=hn}static create(hn,Wn){if(Wn){const Fi=Wn.factories.slice();hn=hn.concat(Fi)}return new gn(hn)}static extend(hn){return{provide:gn,useFactory:()=>{const Wn=(0,S.WQX)(gn,{optional:!0,skipSelf:!0});return gn.create(hn,Wn||Ii())}}}find(hn){const Wn=this.factories.find(Fi=>Fi.supports(hn));if(Wn)return Wn;throw new S.buA(901,!1)}}return gn})();const Ps=Ve(null,"core",[]);let ls=(()=>{class gn{constructor(hn){}static \u0275fac=function(Wn){return new(Wn||gn)((0,S.KVO)(m.o8S))};static \u0275mod=(0,m.$C)({type:gn});static \u0275inj=(0,S.G2t)({})}return gn})();function fi(gn){return"boolean"==typeof gn?gn:null!=gn&&"false"!==gn}function Bo(gn,Xt){const hn=(0,S.xUg)(gn),Wn=Xt.elementInjector||(0,S.WB9)();return new m.eHC(hn).create(Wn,Xt.projectableNodes,Xt.hostElement,Xt.environmentInjector,Xt.directives,Xt.bindings)}function ws(gn){const Xt=(0,S.xUg)(gn);if(!Xt)return null;const hn=new m.eHC(Xt);return{get selector(){return hn.selector},get type(){return hn.componentType},get inputs(){return hn.inputs},get outputs(){return hn.outputs},get ngContentSelectors(){return hn.ngContentSelectors},get isStandalone(){return Xt.standalone},get isSignal(){return Xt.signals}}}},3008:(En,it,p)=>{"use strict";p.d(it,{p:()=>w});var S=p(8189),d=p(5574),m=p(6104),T=p(3746),C=p(656),e=p(7543),k=p(65);let w=(()=>{var P;class v{constructor(b,B,j){this.scope=b,this.auth=B,this.http=j,this.SignalrHubUrl="http://localhost:5269/hub/chatHub",this.isConnected=!1,this.roomDeletedSource=new m.B,this.roomDeleted$=this.roomDeletedSource.asObservable(),this.roomCreatedSource=new m.B,this.roomCreated$=this.roomCreatedSource.asObservable(),this.isConnectedSource=new m.B,this.isConnected$=this.isConnectedSource.asObservable(),this.msgReceivedSource=new m.B,this.msgReceived$=this.msgReceivedSource.asObservable(),this.msgUpdatedSource=new m.B,this.msgUpdated$=this.msgUpdatedSource.asObservable(),this.msgDeletedSource=new m.B,this.msgDeleted$=this.msgDeletedSource.asObservable(),this._hubConnection=null,this.SignalrHubUrl=this.scope.getScope().globalSettings.configurations.chatServerConfig.baseUrl+"hub/chatHub",this._hubConnection=(new S.$).withUrl(this.SignalrHubUrl,{accessTokenFactory:()=>this.auth.getToken()}).withAutomaticReconnect().configureLogging(d.$.None).build(),this._hubConnection.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}).catch(F=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onclose(F=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onreconnected(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}),this._hubConnection.onreconnecting(F=>{console.warn("apicodo is trying to reconnect to server. please wait or try again later")}),this._hubConnection.on("chatRoomRemoved",F=>{this.roomDeletedSource.next(F.payload)}),this._hubConnection.on("chatRoomCreated",F=>{(this.scope.getScope().currentChapter.slug===F.payload.chapterSlug||this.scope.getScope().network.slug===F.payload.networkSlug)&&this.http.get(this.scope.getScope().apiEndpoint+"chatMessagesFast/IsMyMembershipActive/"+F.payload.id).toPromise().then(X=>{X&&(this._hubConnection?.send("addToGroup",F.payload.id),this.auth.expireToken(this).then(U=>{this.roomCreatedSource.next(F.payload)}))})}),this._hubConnection.on("newMessageSent",F=>{this.msgReceivedSource.next(F.payload)}),this._hubConnection.on("chatMessageUpdated",F=>{this.msgUpdatedSource.next(F.payload)}),this._hubConnection.on("chatMessageDeleted",F=>{this.msgDeletedSource.next(F.payload)})}addToChatroom(b){this.isConnected&&this._hubConnection?.send("addToGroup",b)}reconnect(){this.isConnected=!1,this.isConnectedSource.next(!1),this._hubConnection?.stop().then(()=>{this._hubConnection?.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}).catch(b=>{this.isConnected=!1,this.isConnectedSource.next(!1)})})}static#e=P=()=>(this.\u0275fac=function(B){return new(B||v)(C.KVO(T.A),C.KVO(e.u),C.KVO(k.Qq))},this.\u0275prov=C.jDH({token:v,factory:v.\u0275fac,providedIn:"root"}))}return P(),v})()},3012:(En,it,p)=>{"use strict";p.d(it,{Ai:()=>P,T0:()=>k,UN:()=>F,_S:()=>d,ar:()=>X,df:()=>m,oz:()=>j,r4:()=>T});var S=p(1830);const d=function(U){return 0===U?0:U/Math.abs(U)},m=function(U,Z,A){const M=!Z&&0!==Z,H=!A&&0!==A;return M&&(Z=H?U:Math.min(U,A)),H&&(A=M?U:Math.max(U,Z)),Math.min(Math.max(U,Z),A)},T=function(U,Z,A){return U>=Z&&U<=A};function C(U){return Math.abs(parseInt(U.toExponential().split("e")[1]))}function k(U,Z){const A=function e(U){const Z=U.toExponential().split("e"),A=parseFloat(Z[0]);return{exponent:parseInt(Z[1]),mantissa:A}}(U);return parseFloat(`${A.mantissa}e${A.exponent+Z}`)}function P(U,Z){let A=function v(U){const Z=U.toString();if(Z.indexOf(".")<0)return 0;const A=Z.split("."),M=A[1].indexOf("e");return M>=0?M:A[1].length}(Z||0)+2;const M=U.toString().split("."),H=U,J=Math.abs(U);let R;const L=(0,S.O4)(U),G=J>1?10:0;return 1===M.length?U:(L||((0,S.O4)(Z)&&(A=M[0].length+C(Z)),U=(U=J)-Math.floor(U)+G),A=function w(){return"0.000300"!==3e-4.toPrecision(3)}()&&C(U)>6||A>7?15:7,L||(R=parseFloat(U.toPrecision(A)).toString().split("."),R[0]!==G.toString())?parseFloat(H.toPrecision(A)):parseFloat(M[0]+"."+R[1]))}function j(U,Z,A){if(Z===parseInt(Z))return U%Z;const M=X(U/Z,A);return(M-parseInt(M))*Z}function F(U){var Z;const A=U.toString();return(null===(Z=A.split(".")[1])||void 0===Z?void 0:Z.length)||parseInt(A.split("e-")[1])||0}function X(U){return parseFloat(U.toFixed(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))}},3038:(En,it,p)=>{"use strict";p.d(it,{Zf:()=>x,EW:()=>j,QZ:()=>X,O8:()=>B}),p(6394);var d=p(656),m=p(1131);const P={...m.pL,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,kind:"effect"};class x{destroyed=!1;listeners=null;errorHandler=(0,d.WQX)(d.zcH,{optional:!0});destroyRef=(0,d.WQX)(d.abz);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(ie){if(this.destroyed)throw new d.buA(953,!1);return(this.listeners??=[]).push(ie),{unsubscribe:()=>{const he=this.listeners?.indexOf(ie);void 0!==he&&-1!==he&&this.listeners?.splice(he,1)}}}emit(ie){if(this.destroyed)return void console.warn((0,d.OsK)(953,!1));if(null===this.listeners)return;const he=(0,m.Ht)(null);try{for(const Ce of this.listeners)try{Ce(ie)}catch(ye){this.errorHandler?.handleError(ye)}}finally{(0,m.Ht)(he)}}}function B(W){return function w(W){const ie=(0,m.Ht)(null);try{return W()}finally{(0,m.Ht)(ie)}}(W)}function j(W,ie){return(0,m.KZ)(W,ie?.equal)}class F{[m.bh];constructor(ie){this[m.bh]=ie}destroy(){this[m.bh].destroy()}}function X(W,ie){const he=ie?.injector??(0,d.WQX)(d.zZn);let ye,Ce=!0!==ie?.manualCleanup?he.get(d.abz):null;const Me=he.get(d.r4V,null,{optional:!0}),_e=he.get(d.hk6);return null!==Me?(ye=function M(W,ie,he){const Ce=Object.create(A);return Ce.view=W,Ce.zone=typeof Zone<"u"?Zone.current:null,Ce.notifier=ie,Ce.fn=J(Ce,he),W[d.tQN]??=new Set,W[d.tQN].add(Ce),Ce.consumerMarkedDirty(Ce),Ce}(Me.view,_e,W),Ce instanceof d.KXn&&Ce._lView===Me.view&&(Ce=null)):ye=function H(W,ie,he){const Ce=Object.create(Z);return Ce.fn=J(Ce,W),Ce.scheduler=ie,Ce.notifier=he,Ce.zone=typeof Zone<"u"?Zone.current:null,Ce.scheduler.add(Ce),Ce.notifier.notify(12),Ce}(W,he.get(d.VML),_e),ye.injector=he,null!==Ce&&(ye.onDestroyFn=Ce.onDestroy(()=>ye.destroy())),new F(ye)}const U={...P,cleanupFns:void 0,zone:null,onDestroyFn:d.lQ1,run(){const W=(0,d.cBl)(!1);try{!function v(W){if(W.dirty=!1,W.hasRun&&!(0,m.si)(W))return;W.hasRun=!0;const ie=(0,m.Bg)(W);try{W.cleanup(),W.fn()}finally{(0,m.Wu)(W,ie)}}(this)}finally{(0,d.cBl)(W)}},cleanup(){if(!this.cleanupFns?.length)return;const W=(0,m.Ht)(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],(0,m.Ht)(W)}}},Z={...U,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){(0,m.XR)(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}},A={...U,consumerMarkedDirty(){this.view[d.Wg1]|=8192,(0,d.blu)(this.view),this.notifier.notify(13)},destroy(){(0,m.XR)(this),this.onDestroyFn(),this.cleanup(),this.view[d.tQN]?.delete(this)}};function J(W,ie){return()=>{ie(he=>(W.cleanupFns??=[]).push(he))}}Error,Error},3070:(En,it,p)=>{"use strict";p.d(it,{I:()=>k,b:()=>e});var S=p(656),d=p(4303),m=p(6314),T=p(3349),C=p(8914);let e=(()=>{class w extends T.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(v){this._setOption("accessKey",v)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(v){this._setOption("activeStateEnabled",v)}get adaptivityEnabled(){return this._getOption("adaptivityEnabled")}set adaptivityEnabled(v){this._setOption("adaptivityEnabled",v)}get animation(){return this._getOption("animation")}set animation(v){this._setOption("animation",v)}get cssClass(){return this._getOption("cssClass")}set cssClass(v){this._setOption("cssClass",v)}get dataSource(){return this._getOption("dataSource")}set dataSource(v){this._setOption("dataSource",v)}get disabled(){return this._getOption("disabled")}set disabled(v){this._setOption("disabled",v)}get disabledExpr(){return this._getOption("disabledExpr")}set disabledExpr(v){this._setOption("disabledExpr",v)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(v){this._setOption("displayExpr",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(v){this._setOption("focusStateEnabled",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get hideSubmenuOnMouseLeave(){return this._getOption("hideSubmenuOnMouseLeave")}set hideSubmenuOnMouseLeave(v){this._setOption("hideSubmenuOnMouseLeave",v)}get hint(){return this._getOption("hint")}set hint(v){this._setOption("hint",v)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(v){this._setOption("hoverStateEnabled",v)}get items(){return this._getOption("items")}set items(v){this._setOption("items",v)}get itemsExpr(){return this._getOption("itemsExpr")}set itemsExpr(v){this._setOption("itemsExpr",v)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(v){this._setOption("itemTemplate",v)}get orientation(){return this._getOption("orientation")}set orientation(v){this._setOption("orientation",v)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(v){this._setOption("rtlEnabled",v)}get selectByClick(){return this._getOption("selectByClick")}set selectByClick(v){this._setOption("selectByClick",v)}get selectedExpr(){return this._getOption("selectedExpr")}set selectedExpr(v){this._setOption("selectedExpr",v)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(v){this._setOption("selectedItem",v)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(v){this._setOption("selectionMode",v)}get showFirstSubmenuMode(){return this._getOption("showFirstSubmenuMode")}set showFirstSubmenuMode(v){this._setOption("showFirstSubmenuMode",v)}get showSubmenuMode(){return this._getOption("showSubmenuMode")}set showSubmenuMode(v){this._setOption("showSubmenuMode",v)}get submenuDirection(){return this._getOption("submenuDirection")}set submenuDirection(v){this._setOption("submenuDirection",v)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(v){this._setOption("tabIndex",v)}get visible(){return this._getOption("visible")}set visible(v){this._setOption("visible",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}onContentReady;onDisposing;onInitialized;onItemClick;onItemContextMenu;onItemRendered;onOptionChanged;onSelectionChanged;onSubmenuHidden;onSubmenuHiding;onSubmenuShowing;onSubmenuShown;accessKeyChange;activeStateEnabledChange;adaptivityEnabledChange;animationChange;cssClassChange;dataSourceChange;disabledChange;disabledExprChange;displayExprChange;elementAttrChange;focusStateEnabledChange;heightChange;hideSubmenuOnMouseLeaveChange;hintChange;hoverStateEnabledChange;itemsChange;itemsExprChange;itemTemplateChange;orientationChange;rtlEnabledChange;selectByClickChange;selectedExprChange;selectedItemChange;selectionModeChange;showFirstSubmenuModeChange;showSubmenuModeChange;submenuDirectionChange;tabIndexChange;visibleChange;widthChange;get itemsChildren(){return this._getOption("items")}set itemsChildren(v){this.setChildren("items",v)}constructor(v,x,b,B,j,F,X,U){super(v,x,b,B,X,U),this._watcherHelper=B,this._idh=j,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"submenuHidden",emit:"onSubmenuHidden"},{subscribe:"submenuHiding",emit:"onSubmenuHiding"},{subscribe:"submenuShowing",emit:"onSubmenuShowing"},{subscribe:"submenuShown",emit:"onSubmenuShown"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"adaptivityEnabledChange"},{emit:"animationChange"},{emit:"cssClassChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"disabledExprChange"},{emit:"displayExprChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hideSubmenuOnMouseLeaveChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemsChange"},{emit:"itemsExprChange"},{emit:"itemTemplateChange"},{emit:"orientationChange"},{emit:"rtlEnabledChange"},{emit:"selectByClickChange"},{emit:"selectedExprChange"},{emit:"selectedItemChange"},{emit:"selectionModeChange"},{emit:"showFirstSubmenuModeChange"},{emit:"showSubmenuModeChange"},{emit:"submenuDirectionChange"},{emit:"tabIndexChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),F.setHost(this)}_createInstance(v,x){return new m.A(v,x)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(v){super.ngOnChanges(v),this.setupChanges("dataSource",v),this.setupChanges("items",v)}setupChanges(v,x){v in this._optionsToUpdate||this._idh.setup(v,x)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(v,x){let b=this._idh.setupSingle(v,x),B=null!==this._idh.getChanges(v,x);(b||B)&&super._setOption(v,x)}static \u0275fac=function(x){return new(x||w)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.$M),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:w,selectors:[["dx-menu"]],contentQueries:function(x,b,B){if(1&x&&d.wni(B,C.CVf,4),2&x){let j;d.mGM(j=d.lsd())&&(b.itemsChildren=j)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",adaptivityEnabled:"adaptivityEnabled",animation:"animation",cssClass:"cssClass",dataSource:"dataSource",disabled:"disabled",disabledExpr:"disabledExpr",displayExpr:"displayExpr",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hideSubmenuOnMouseLeave:"hideSubmenuOnMouseLeave",hint:"hint",hoverStateEnabled:"hoverStateEnabled",items:"items",itemsExpr:"itemsExpr",itemTemplate:"itemTemplate",orientation:"orientation",rtlEnabled:"rtlEnabled",selectByClick:"selectByClick",selectedExpr:"selectedExpr",selectedItem:"selectedItem",selectionMode:"selectionMode",showFirstSubmenuMode:"showFirstSubmenuMode",showSubmenuMode:"showSubmenuMode",submenuDirection:"submenuDirection",tabIndex:"tabIndex",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemContextMenu:"onItemContextMenu",onItemRendered:"onItemRendered",onOptionChanged:"onOptionChanged",onSelectionChanged:"onSelectionChanged",onSubmenuHidden:"onSubmenuHidden",onSubmenuHiding:"onSubmenuHiding",onSubmenuShowing:"onSubmenuShowing",onSubmenuShown:"onSubmenuShown",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",adaptivityEnabledChange:"adaptivityEnabledChange",animationChange:"animationChange",cssClassChange:"cssClassChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",disabledExprChange:"disabledExprChange",displayExprChange:"displayExprChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hideSubmenuOnMouseLeaveChange:"hideSubmenuOnMouseLeaveChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",itemsChange:"itemsChange",itemsExprChange:"itemsExprChange",itemTemplateChange:"itemTemplateChange",orientationChange:"orientationChange",rtlEnabledChange:"rtlEnabledChange",selectByClickChange:"selectByClickChange",selectedExprChange:"selectedExprChange",selectedItemChange:"selectedItemChange",selectionModeChange:"selectionModeChange",showFirstSubmenuModeChange:"showFirstSubmenuModeChange",showSubmenuModeChange:"showSubmenuModeChange",submenuDirectionChange:"submenuDirectionChange",tabIndexChange:"tabIndexChange",visibleChange:"visibleChange",widthChange:"widthChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH,T.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(x,b){},encapsulation:2})}return w})(),k=(()=>{class w{static \u0275fac=function(x){return new(x||w)};static \u0275mod=d.$C({type:w});static \u0275inj=S.G2t({imports:[C.YLo,C.YaD,C.eNx,C.Bkf,C.nwt,C.hXw,C.YGc,C.gf0,C.rvW,C.Tob,C.$Ql,C.POb,C.dFh,C.pGU,C.vwi,T.p_,T.xZ,C.YLo,C.YaD,C.eNx,C.Bkf,C.nwt,C.hXw,C.YGc,C.gf0,C.rvW,C.Tob,C.$Ql,C.POb,C.dFh,C.pGU,C.vwi,T.xZ]})}return w})()},3090:(En,it,p)=>{"use strict";p.d(it,{X:()=>m,a:()=>d});var S=p(1830);const d=function(T,C,e){T=T||{};for(const k in C)Object.prototype.hasOwnProperty.call(C,k)&&(!(k in T)||e)&&(T[k]=C[k]);return T},m=function(T){let C=1,e=!1;for("boolean"==typeof(T=T||{})&&(e=T,T=arguments[1]||{},C++);C<arguments.length;C++){const k=arguments[C];if(null!=k)for(const w in k){const P=T[w],v=k[w];let b,x=!1;"__proto__"===w||"constructor"===w||T===v||(e&&v&&((0,S.Qd)(v)||(x=Array.isArray(v)))?(b=x?P&&Array.isArray(P)?P:[]:P&&(0,S.Qd)(P)?P:{},T[w]=m(e,b,v)):void 0!==v&&(T[w]=v))}}return T}},3110:function(En){En.exports=function(it){function p(d){if(S[d])return S[d].exports;var m=S[d]={exports:{},id:d,loaded:!1};return it[d].call(m.exports,m,m.exports,p),m.loaded=!0,m.exports}var S={};return p.m=it,p.c=S,p.p="dist/",p(0)}([function(it,p,S){"use strict";function d(z){return z&&z.__esModule?z:{default:z}}var m=Object.assign||function(z){for(var K=1;K<arguments.length;K++){var ee=arguments[K];for(var re in ee)Object.prototype.hasOwnProperty.call(ee,re)&&(z[re]=ee[re])}return z},C=(d(S(1)),S(6)),e=d(C),w=d(S(7)),v=d(S(8)),b=d(S(9)),j=d(S(10)),X=d(S(11)),Z=d(S(14)),A=[],M=!1,H={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},J=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(M=!0),M)return A=(0,X.default)(A,H),(0,j.default)(A,H.once),A},R=function(){A=(0,Z.default)(),J()};it.exports={init:function(z){H=m(H,z),A=(0,Z.default)();var K=document.all&&!window.atob;return function(z){return!0===z||"mobile"===z&&b.default.mobile()||"phone"===z&&b.default.phone()||"tablet"===z&&b.default.tablet()||"function"==typeof z&&!0===z()}(H.disable)||K?void A.forEach(function(z,K){z.node.removeAttribute("data-aos"),z.node.removeAttribute("data-aos-easing"),z.node.removeAttribute("data-aos-duration"),z.node.removeAttribute("data-aos-delay")}):(H.disableMutationObserver||v.default.isSupported()||(console.info('\n      aos: MutationObserver is not supported on this browser,\n      code mutations observing has been disabled.\n      You may have to call "refreshHard()" by yourself.\n    '),H.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",H.easing),document.querySelector("body").setAttribute("data-aos-duration",H.duration),document.querySelector("body").setAttribute("data-aos-delay",H.delay),"DOMContentLoaded"===H.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?J(!0):"load"===H.startEvent?window.addEventListener(H.startEvent,function(){J(!0)}):document.addEventListener(H.startEvent,function(){J(!0)}),window.addEventListener("resize",(0,w.default)(J,H.debounceDelay,!0)),window.addEventListener("orientationchange",(0,w.default)(J,H.debounceDelay,!0)),window.addEventListener("scroll",(0,e.default)(function(){(0,j.default)(A,H.once)},H.throttleDelay)),H.disableMutationObserver||v.default.ready("[data-aos]",R),A)},refresh:J,refreshHard:R}},function(it,p){},,,,,function(it,p){(function(S){"use strict";function d(G,Q,z){function K(de){var Ae=Ie,pe=W;return Ie=W=void 0,Me=de,he=G.apply(pe,Ae)}function be(de){var Ae=de-ye;return void 0===ye||Ae>=Q||Ae<0||ke&&de-Me>=ie}function ce(){var de=L();return be(de)?Re(de):void(Ce=setTimeout(ce,function re(de){var Ee=Q-(de-ye);return ke?R(Ee,ie-(de-Me)):Ee}(de)))}function Re(de){return Ce=void 0,Ye&&Ie?K(de):(Ie=W=void 0,he)}function Pe(){var de=L(),Ae=be(de);if(Ie=arguments,W=this,ye=de,Ae){if(void 0===Ce)return function ee(de){return Me=de,Ce=setTimeout(ce,Q),_e?K(de):he}(ye);if(ke)return Ce=setTimeout(ce,Q),K(ye)}return void 0===Ce&&(Ce=setTimeout(ce,Q)),he}var Ie,W,ie,he,Ce,ye,Me=0,_e=!1,ke=!1,Ye=!0;if("function"!=typeof G)throw new TypeError(P);return Q=k(Q)||0,T(z)&&(_e=!!z.leading,ie=(ke="maxWait"in z)?J(k(z.maxWait)||0,Q):ie,Ye="trailing"in z?!!z.trailing:Ye),Pe.cancel=function Se(){void 0!==Ce&&clearTimeout(Ce),Me=0,Ie=ye=W=Ce=void 0},Pe.flush=function De(){return void 0===Ce?he:Re(L())},Pe}function T(G){var Q=typeof G>"u"?"undefined":w(G);return!!G&&("object"==Q||"function"==Q)}function e(G){return"symbol"==(typeof G>"u"?"undefined":w(G))||function C(G){return!!G&&"object"==(typeof G>"u"?"undefined":w(G))}(G)&&H.call(G)==x}function k(G){if("number"==typeof G)return G;if(e(G))return v;if(T(G)){var Q="function"==typeof G.valueOf?G.valueOf():G;G=T(Q)?Q+"":Q}if("string"!=typeof G)return 0===G?G:+G;G=G.replace(b,"");var z=j.test(G);return z||F.test(G)?X(G.slice(2),z?2:8):B.test(G)?v:+G}var w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(G){return typeof G}:function(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},P="Expected a function",v=NaN,x="[object Symbol]",b=/^\s+|\s+$/g,B=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,F=/^0o[0-7]+$/i,X=parseInt,U="object"==(typeof S>"u"?"undefined":w(S))&&S&&S.Object===Object&&S,Z="object"==(typeof self>"u"?"undefined":w(self))&&self&&self.Object===Object&&self,A=U||Z||Function("return this")(),H=Object.prototype.toString,J=Math.max,R=Math.min,L=function(){return A.Date.now()};it.exports=function m(G,Q,z){var K=!0,ee=!0;if("function"!=typeof G)throw new TypeError(P);return T(z)&&(K="leading"in z?!!z.leading:K,ee="trailing"in z?!!z.trailing:ee),d(G,Q,{leading:K,maxWait:Q,trailing:ee})}}).call(p,function(){return this}())},function(it,p){(function(S){"use strict";function m(L){var G=typeof L>"u"?"undefined":k(L);return!!L&&("object"==G||"function"==G)}function C(L){return"symbol"==(typeof L>"u"?"undefined":k(L))||function T(L){return!!L&&"object"==(typeof L>"u"?"undefined":k(L))}(L)&&M.call(L)==v}function e(L){if("number"==typeof L)return L;if(C(L))return P;if(m(L)){var G="function"==typeof L.valueOf?L.valueOf():L;L=m(G)?G+"":G}if("string"!=typeof L)return 0===L?L:+L;L=L.replace(x,"");var Q=B.test(L);return Q||j.test(L)?F(L.slice(2),Q?2:8):b.test(L)?P:+L}var k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},w="Expected a function",P=NaN,v="[object Symbol]",x=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,j=/^0o[0-7]+$/i,F=parseInt,X="object"==(typeof S>"u"?"undefined":k(S))&&S&&S.Object===Object&&S,U="object"==(typeof self>"u"?"undefined":k(self))&&self&&self.Object===Object&&self,Z=X||U||Function("return this")(),M=Object.prototype.toString,H=Math.max,J=Math.min,R=function(){return Z.Date.now()};it.exports=function d(L,G,Q){function z(Ye){var de=Pe,Ae=Ie;return Pe=Ie=void 0,ye=Ye,ie=L.apply(Ae,de)}function re(Ye){var de=Ye-Ce;return void 0===Ce||de>=G||de<0||_e&&Ye-ye>=W}function be(){var Ye=R();return re(Ye)?ce(Ye):void(he=setTimeout(be,function ee(Ye){var pe=G-(Ye-Ce);return _e?J(pe,W-(Ye-ye)):pe}(Ye)))}function ce(Ye){return he=void 0,ke&&Pe?z(Ye):(Pe=Ie=void 0,ie)}function De(){var Ye=R(),de=re(Ye);if(Pe=arguments,Ie=this,Ce=Ye,de){if(void 0===he)return function K(Ye){return ye=Ye,he=setTimeout(be,G),Me?z(Ye):ie}(Ce);if(_e)return he=setTimeout(be,G),z(Ce)}return void 0===he&&(he=setTimeout(be,G)),ie}var Pe,Ie,W,ie,he,Ce,ye=0,Me=!1,_e=!1,ke=!0;if("function"!=typeof L)throw new TypeError(w);return G=e(G)||0,m(Q)&&(Me=!!Q.leading,W=(_e="maxWait"in Q)?H(e(Q.maxWait)||0,G):W,ke="trailing"in Q?!!Q.trailing:ke),De.cancel=function Re(){void 0!==he&&clearTimeout(he),ye=0,Pe=Ce=Ie=he=void 0},De.flush=function Se(){return void 0===he?ie:ce(R())},De}}).call(p,function(){return this}())},function(it,p){"use strict";function S(k){var w=void 0,P=void 0;for(w=0;w<k.length;w+=1)if((P=k[w]).dataset&&P.dataset.aos||P.children&&S(P.children))return!0;return!1}function d(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function C(k){k&&k.forEach(function(w){var P=Array.prototype.slice.call(w.addedNodes),v=Array.prototype.slice.call(w.removedNodes);if(S(P.concat(v)))return e()})}Object.defineProperty(p,"__esModule",{value:!0});var e=function(){};p.default={isSupported:function m(){return!!d()},ready:function T(k,w){var P=window.document,x=new(d())(C);e=w,x.observe(P.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}}},function(it,p){"use strict";function d(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(p,"__esModule",{value:!0});var m=function(){function P(v,x){for(var b=0;b<x.length;b++){var B=x[b];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(v,B.key,B)}}return function(v,x,b){return x&&P(v.prototype,x),b&&P(v,b),v}}(),T=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,C=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,e=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,k=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,w=function(){function P(){!function S(P,v){if(!(P instanceof v))throw new TypeError("Cannot call a class as a function")}(this,P)}return m(P,[{key:"phone",value:function(){var v=d();return!(!T.test(v)&&!C.test(v.substr(0,4)))}},{key:"mobile",value:function(){var v=d();return!(!e.test(v)&&!k.test(v.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),P}();p.default=new w},function(it,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.default=function(m,T){var C=window.pageYOffset,e=window.innerHeight;m.forEach(function(k,w){!function(m,T,C){var e=m.node.getAttribute("data-aos-once");T>m.position?m.node.classList.add("aos-animate"):typeof e<"u"&&("false"===e||!C&&"true"!==e)&&m.node.classList.remove("aos-animate")}(k,e+C,T)})}},function(it,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var T=function d(e){return e&&e.__esModule?e:{default:e}}(S(12));p.default=function(e,k){return e.forEach(function(w,P){w.node.classList.add("aos-init"),w.position=(0,T.default)(w.node,k.offset)}),e}},function(it,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var T=function d(e){return e&&e.__esModule?e:{default:e}}(S(13));p.default=function(e,k){var w=0,P=0,v=window.innerHeight,x={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(x.offset&&!isNaN(x.offset)&&(P=parseInt(x.offset)),x.anchor&&document.querySelectorAll(x.anchor)&&(e=document.querySelectorAll(x.anchor)[0]),w=(0,T.default)(e).top,x.anchorPlacement){case"top-bottom":break;case"center-bottom":w+=e.offsetHeight/2;break;case"bottom-bottom":w+=e.offsetHeight;break;case"top-center":w+=v/2;break;case"bottom-center":w+=v/2+e.offsetHeight;break;case"center-center":w+=v/2+e.offsetHeight/2;break;case"top-top":w+=v;break;case"bottom-top":w+=e.offsetHeight+v;break;case"center-top":w+=e.offsetHeight/2+v}return x.anchorPlacement||x.offset||isNaN(k)||(P=k),w+P}},function(it,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(d){for(var m=0,T=0;d&&!isNaN(d.offsetLeft)&&!isNaN(d.offsetTop);)m+=d.offsetLeft-("BODY"!=d.tagName?d.scrollLeft:0),T+=d.offsetTop-("BODY"!=d.tagName?d.scrollTop:0),d=d.offsetParent;return{top:T,left:m}}},function(it,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(d){return d=d||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(d,function(m){return{node:m}})}}])},3125:(En,it,p)=>{"use strict";p.d(it,{A:()=>L});var S=p(2583),d=p(2123),m=p(1973),T=p(9522),C=p(5704),e=p(6021),k=p(3090),w=p(4757),P=p(1363),v=p(6110),x=p(4072),b=p(5213),B=p(1830);const j=(0,v.zk)(),Z=G=>(0,C.A)(G).is(":visible"),A=(G,Q)=>{var z,K;if(!G)return;const ee=(null===(z=Q.to)||void 0===z?void 0:z.left)||0,re=(null===(K=Q.to)||void 0===K?void 0:K.top)||0;G.style.transform=`translate(${ee}px,${re}px)`,G.style.transition=S.A.off?"":`transform ${Q.duration}ms ${Q.easing}`},M=G=>{G&&(G.style.transform="",G.style.transition="")},J=b.A.inherit({_init(){this.callBase(),this._sourceScrollHandler=this._handleSourceScroll.bind(this),this._sourceScrollableInfo=null},_getDefaultOptions(){return(0,k.X)(this.callBase(),{clone:!0,filter:"> *",itemOrientation:"vertical",dropFeedbackMode:"push",allowDropInsideItem:!1,allowReordering:!0,moveItemOnDrop:!1,onDragChange:null,onAdd:null,onRemove:null,onReorder:null,onPlaceholderPrepared:null,animation:{type:"slide",duration:300,easing:"ease"},fromIndex:null,toIndex:null,dropInsideItem:!1,itemPoints:null,fromIndexOffset:0,offset:0,autoUpdate:!1,draggableElementSize:0})},reset(){this.option({dropInsideItem:!1,toIndex:null,fromIndex:null,itemPoints:null,fromIndexOffset:0,draggableElementSize:0}),this._$placeholderElement&&this._$placeholderElement.remove(),this._$placeholderElement=null,!this._isIndicateMode()&&this._$modifiedItem&&(this._$modifiedItem.css("marginBottom",this._modifiedItemMargin),this._$modifiedItem=null)},_getPrevVisibleItem:(G,Q)=>G.slice(0,Q).reverse().filter(Z)[0],_dragStartHandler(G){if(this.callBase.apply(this,arguments),!0===G.cancel)return;const Q=this._getSourceElement();this._updateItemPoints(),this._subscribeToSourceScroll(G),this.option("fromIndex",this._getElementIndex(Q)),this.option("fromIndexOffset",this.option("offset"))},_subscribeToSourceScroll(G){const Q=this._getScrollable((0,C.A)(G.target));Q&&(this._sourceScrollableInfo={element:Q,scrollLeft:Q.scrollLeft(),scrollTop:Q.scrollTop()},x.A.off(Q,"scroll",this._sourceScrollHandler),x.A.on(Q,"scroll",this._sourceScrollHandler))},_unsubscribeFromSourceScroll(){this._sourceScrollableInfo&&(x.A.off(this._sourceScrollableInfo.element,"scroll",this._sourceScrollHandler),this._sourceScrollableInfo=null)},_handleSourceScroll(G){const Q=this._sourceScrollableInfo;Q&&["scrollLeft","scrollTop"].forEach(z=>{G.target[z]!==Q[z]&&(this._correctItemPoints(G.target[z]-Q[z]),this._movePlaceholder(),Q[z]=G.target[z])})},_dragEnterHandler(G){if(this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&(this._subscribeToSourceScroll(G),this._updateItemPoints(),this.option("fromIndex",-1),!this._isIndicateMode())){const Q=this.option("itemPoints"),z=Q[Q.length-1];if(z){const K=this.$element(),ee=this._getSourceElement(),re=this._isVerticalOrientation(),be=re?(0,P.P$)(ee,!0):(0,P.Ot)(ee,!0),ce=K.get(0)[re?"scrollHeight":"scrollWidth"],Re=K.get(0)[re?"scrollTop":"scrollLeft"],Se=re?"top":"left",De=z[Se],Ie=K.offset()[Se]+ce-Re-De;if(Ie<be&&re){const W=this._getItems(),ie=(0,C.A)(this._getPrevVisibleItem(W));this._$modifiedItem=ie,this._modifiedItemMargin=ie.get(0).style.marginBottom,ie.css("marginBottom",be-Ie);const he=ie.closest(".dx-sortable"),Ce=he.data("dxScrollable")||he.data("dxScrollView");Ce&&Ce.update()}}}},_dragLeaveHandler(){this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&this._unsubscribeFromSourceScroll()},dragEnter(){this!==this._getTargetDraggable()&&this.option("toIndex",-1)},dragLeave(){this!==this._getTargetDraggable()&&this.option("toIndex",this.option("fromIndex"))},_allowDrop(G){const z=this._getTargetDraggable().$element(),K=this._getScrollable(z);if(K){const{left:ee,right:re,top:be,bottom:ce}=function H(G){const Q=G.offset(),{style:z}=G[0],K=parseFloat(z.paddingLeft)||0,ee=parseFloat(z.paddingRight)||0,re=parseFloat(z.paddingTop)||0,be=G[0].clientWidth-(K+ee),ce=(0,P.Oq)(G),Re=Q.left+K,Se=Q.top+re;return{left:Re,right:Re+be,top:Se,bottom:Se+ce}}(K),Re=this.option("toIndex"),Se=this.option("itemPoints"),De=Se?.filter(Pe=>Pe.index===Re)[0];if(De&&void 0!==De.top)return this._isVerticalOrientation()?be<=Math.ceil(De.top)&&Math.floor(De.top)<=ce:ee<=Math.ceil(De.left)&&Math.floor(De.left)<=re}return!0},dragEnd(G){this._unsubscribeFromSourceScroll();const Q=this._getSourceElement(),z=this._getSourceDraggable(),K=z.NAME!==this.NAME,ee=this.option("toIndex"),{event:re}=G,be=this._allowDrop(re);if(null!==ee&&ee>=0&&be){let ce,Re;if(z!==this&&(ce=this._fireAddEvent(re),ce||(Re=this._fireRemoveEvent(re))),K&&(0,d.fw)(Q),this.option("moveItemOnDrop")&&!ce&&this._moveItem(Q,ee,Re),z===this)return this._fireReorderEvent(re)}return(0,e.cY)().resolve()},dragMove(G){const Q=this.option("itemPoints");if(!Q)return;const z=this._isVerticalOrientation(),K=z?"top":"left",ee=z?G.pageY:G.pageX,re=this.option("rtlEnabled");let be;for(let ce=Q.length-1;ce>=0;ce--){const Re=Q[ce+1]&&(Q[ce][K]+Q[ce+1][K])/2;if(!(!z&&re?ee>Re:Re>ee)&&void 0!==Re)break;be=Q[ce]}be&&(this._updatePlaceholderPosition(G,be),this._verticalScrollHelper.isScrolling()&&this._isIndicateMode()&&this._movePlaceholder())},_isIndicateMode(){return"indicate"===this.option("dropFeedbackMode")||this.option("allowDropInsideItem")},_createPlaceholder(){let G;return this._isIndicateMode()&&(G=(0,C.A)("<div>").addClass(this._addWidgetPrefix("placeholder")).insertBefore(this._getSourceDraggable()._$dragElement)),this._$placeholderElement=G,G},_getItems(){const G=this._getItemsSelector();return this._$content().find(G).not(`.${this._addWidgetPrefix("placeholder")}`).not(`.${this._addWidgetPrefix("clone")}`).toArray()},_allowReordering(){return this._getSourceDraggable()!==this._getTargetDraggable()||this.option("allowReordering")},_isValidPoint(G,Q,z){const K=this.option("allowDropInsideItem");return!!(z||this._allowReordering()||0===G&&K)&&(!this._isIndicateMode()||-1===Q||G!==Q&&(z||G!==Q+1))},_getItemPoints(){const G=this;let z,K,ee,Q=[];const re=G.option("rtlEnabled"),be=G._isVerticalOrientation(),ce=G._getItems(),Re=ce.filter(Z),Se=Re.length,De=this._getDraggableElement(),Pe=Re.indexOf(De.get(0));if(Se){for(let Ie=0;Ie<=Se;Ie++){const W=!be&&re^Ie===Se,ie=be&&Ie===Se;Ie<Se&&(z=(0,C.A)(Re[Ie]),K=z.offset(),ee=(0,P.Ot)(z)),Q.push({dropInsideItem:!1,left:K.left+(W?ee:0),top:K.top+(ie?Q[Ie-1].height:0),index:Ie===Se?ce.length:ce.indexOf(z.get(0)),$item:z,width:(0,P.Ot)(z),height:(0,P.P$)(z),isValid:G._isValidPoint(Ie,Pe)})}if(this.option("allowDropInsideItem")){const Ie=Q;Q=[];for(let W=0;W<Ie.length;W++)Q.push(Ie[W]),Ie[W+1]&&Q.push((0,k.X)({},Ie[W],{dropInsideItem:!0,top:Math.floor((Ie[W].top+Ie[W+1].top)/2),left:Math.floor((Ie[W].left+Ie[W+1].left)/2),isValid:this._isValidPoint(W,Pe,!0)}))}}else Q.push({dropInsideItem:!1,index:0,isValid:!0});return Q},_updateItemPoints(G){(G||this.option("autoUpdate")||!this.option("itemPoints"))&&this.option("itemPoints",this._getItemPoints())},_correctItemPoints(G){const Q=this.option("itemPoints");if(G&&Q&&!this.option("autoUpdate")){const K=this._isVerticalOrientation()?"top":"left";Q.forEach(ee=>{ee[K]-=G})}},_getElementIndex(G){return this._getItems().indexOf(G.get(0))},_getDragTemplateArgs(G){const Q=this.callBase.apply(this,arguments);return Q.model.fromIndex=this._getElementIndex(G),Q},_togglePlaceholder(G){this._$placeholderElement&&this._$placeholderElement.toggle(G)},_isVerticalOrientation(){return"vertical"===this.option("itemOrientation")},_normalizeToIndex(G,Q){const z=this._getSourceDraggable()!==this._getTargetDraggable(),K=this._getActualFromIndex();return null===G?K:Math.max(z||K>=G||Q?G:G-1,0)},_updatePlaceholderPosition(G,Q){const z=this._getSourceDraggable(),K=this._normalizeToIndex(Q.index,Q.dropInsideItem),ee=(0,k.X)(this._getEventArgs(G),{toIndex:K,dropInsideItem:Q.dropInsideItem});Q.isValid&&this._getAction("onDragChange")(ee),!ee.cancel&&Q.isValid?(this.option({dropInsideItem:Q.dropInsideItem,toIndex:Q.index}),this._getAction("onPlaceholderPrepared")((0,k.X)(this._getEventArgs(G),{placeholderElement:(0,T.cc)(this._$placeholderElement),dragElement:(0,T.cc)(z._$dragElement)})),this._updateItemPoints()):Q.isValid||this.option({dropInsideItem:!1,toIndex:null})},_makeWidthCorrection(G,Q){if(this._$scrollable=this._getScrollable(G),this._$scrollable){const z=(0,P.RG)(this._$scrollable),K=this._$scrollable.offset().left-G.offset().left,ee=(0,P.Ot)(G)-K-z;K>0&&(Q-=K),ee>0&&(Q-=ee)}return Q},_updatePlaceholderSizes(G,Q){const z=this.option("dropInsideItem"),K=(0,C.A)(Q),ee=this._isVerticalOrientation();let re="",be="";G.toggleClass(this._addWidgetPrefix("placeholder-inside"),z),(ee||z)&&(re=(0,P.Ot)(K)),(!ee||z)&&(be=(0,P.P$)(K)),re=this._makeWidthCorrection(K,re),G.css({width:re,height:be})},_moveItem(G,Q,z){let K;const ee=this._getItems(),re=ee[Q],be=this._getSourceDraggable();z&&(G=G.clone(),be._toggleDragSourceClass(!1,G)),re||(K=ee[Q-1]),this._moveItemCore(G,re,K)},_moveItemCore(G,Q,z){Q||z?z?G.insertAfter((0,C.A)(z)):G.insertBefore((0,C.A)(Q)):G.appendTo(this.$element())},_getDragStartArgs(G,Q){return(0,k.X)(this.callBase.apply(this,arguments),{fromIndex:this._getElementIndex(Q)})},_getEventArgs(G){const Q=this._getSourceDraggable(),z=this._getTargetDraggable(),K=z.option("dropInsideItem");return(0,k.X)(this.callBase.apply(this,arguments),{fromIndex:Q.option("fromIndex"),toIndex:this._normalizeToIndex(z.option("toIndex"),K),dropInsideItem:K})},_optionChanged(G){const{name:Q}=G;switch(Q){case"onDragChange":case"onPlaceholderPrepared":case"onAdd":case"onRemove":case"onReorder":this[`_${Q}Action`]=this._createActionByOption(Q);break;case"itemOrientation":case"allowDropInsideItem":case"moveItemOnDrop":case"dropFeedbackMode":case"itemPoints":case"animation":case"allowReordering":case"fromIndexOffset":case"offset":case"draggableElementSize":case"autoUpdate":break;case"fromIndex":[!1,!0].forEach(z=>{const K=z?G.value:G.previousValue;if(null!==K){const ee=(0,C.A)(this._getItems()[K]);this._toggleDragSourceClass(z,ee)}});break;case"dropInsideItem":this._optionChangedDropInsideItem(G);break;case"toIndex":this._optionChangedToIndex(G);break;default:this.callBase(G)}},_optionChangedDropInsideItem(){this._isIndicateMode()&&this._$placeholderElement&&this._movePlaceholder()},_isPositionVisible(G){const Q=this.$element();let z;if("hidden"!==Q.css("overflow")?z=Q.get(0):Q.parents().each(function(){if("visible"!==(0,C.A)(this).css("overflow"))return z=this,!1}),z){const K=(0,w.N)(z),ee=this._isVerticalOrientation(),re=ee?"top":"left",ce=ee?j.pageYOffset:j.pageXOffset;if(G[re]<K[re]+ce||G[re]>K[ee?"bottom":"right"]+ce)return!1}return!0},_optionChangedToIndex(G){const Q=G.value;if(this._isIndicateMode()){const z=null!==Q&&Q>=0;this._togglePlaceholder(z),z&&this._movePlaceholder()}else this._moveItems(G.previousValue,G.value,G.fullUpdate)},update(){if(null===this.option("fromIndex")&&null===this.option("toIndex"))return;this._updateItemPoints(!0),this._updateDragSourceClass();const G=this.option("toIndex");this._optionChangedToIndex({value:G,fullUpdate:!0})},_updateDragSourceClass(){const G=this._getActualFromIndex(),Q=(0,C.A)(this._getItems()[G]);Q.length&&(this._$sourceElement=Q,this._toggleDragSourceClass(!0,Q))},_makeLeftCorrection(G){const Q=this._$scrollable;if(Q&&this._isVerticalOrientation()){const z=Q.offset().left-G;z>0&&(G+=z)}return G},_movePlaceholder(){const G=this,Q=G._$placeholderElement||G._createPlaceholder();if(!Q)return;const z=G._getItems(),K=G.option("toIndex"),ee=G._isVerticalOrientation(),re=this.option("rtlEnabled"),be=G.option("dropInsideItem");let ce=null,Re=z[K];if(Re){const Se=(0,C.A)(Re);ce=Se.offset(),!ee&&re&&!be&&(ce.left+=(0,P.Ot)(Se,!0))}else{const Se=Re=this._getPrevVisibleItem(z,K);Se&&(ce=(0,C.A)(Se).offset(),ee?ce.top+=(0,P.P$)(Se,!0):re||(ce.left+=(0,P.Ot)(Se,!0)))}if(G._updatePlaceholderSizes(Q,Re),ce&&!G._isPositionVisible(ce)&&(ce=null),ce){const Se=ee&&K===z.length,De=(0,P.P$)(Q);ce.left=G._makeLeftCorrection(ce.left),ce.top=Se&&ce.top>=De?ce.top-De:ce.top,G._move(ce,Q)}Q.toggle(!!ce)},_getPositions(G,Q,z,K){const ee=[];for(let re=0;re<G.length;re++){let be=0;null!==K&&null!==z?(-1===z?re>=K&&(be=Q):-1===K?re>z&&(be=-Q):z<K?re>z&&re<K&&(be=-Q):z>K&&re>=K&&re<z&&(be=Q),ee.push(be)):ee.push(be)}return ee},_getDraggableElementSize(G){const Q=this._getDraggableElement();let z=this.option("draggableElementSize");return z||(z=G?((0,P.P$)(Q)+(0,P.P$)(Q,!0))/2:((0,P.Ot)(Q)+(0,P.Ot)(Q,!0))/2,this.option("autoUpdate")||this.option("draggableElementSize",z)),z},_getActualFromIndex(){const{fromIndex:G,fromIndexOffset:Q,offset:z}=this.option();return null==G?null:G+Q-z},_moveItems(G,Q,z){const K=this._getActualFromIndex(),ee=this._isVerticalOrientation(),re=ee?"top":"left",be=this._getDraggableElementSize(ee),ce=this._getItems(),Re=this._getPositions(ce,be,K,G),Se=this._getPositions(ce,be,K,Q),De=this.option("animation"),Pe=this.option("rtlEnabled");for(let Ie=0;Ie<ce.length;Ie++){const W=ce[Ie],ie=Re[Ie],he=Se[Ie];null===Q||null===K?M(W):(ie!==he||z&&(0,B.O9)(he))&&A(W,(0,k.X)({},De,{to:{[re]:!ee&&Pe?-he:he}}))}},_toggleDragSourceClass(G,Q){const z=Q||this._$sourceElement;this.callBase.apply(this,arguments),this._isIndicateMode()||z&&z.toggleClass(this._addWidgetPrefix("source-hidden"),G)},_dispose(){this.reset(),this.callBase()},_fireAddEvent(G){const Q=this._getEventArgs(G);return this._getAction("onAdd")(Q),Q.cancel},_fireRemoveEvent(G){const Q=this._getSourceDraggable(),z=this._getEventArgs(G);return Q._getAction("onRemove")(z),z.cancel},_fireReorderEvent(G){const Q=this._getEventArgs(G);return this._getAction("onReorder")(Q),Q.promise||(0,e.cY)().resolve()}});(0,m.A)("dxSortable",J);const L=J},3176:(En,it,p)=>{"use strict";p.d(it,{h:()=>d});var S=p(3438);class d extends S.cf{constructor(T,C){super("chatDb-"+C+"-"+T),this.version(1).stores({chatRooms:"id, synchStartedOn, synchCompletedOn",chatMessages:"id, parentId, synchStartedOn, synchCompletedOn",synchTable:"id, synchStartedOn, synchCompletedOn"}),this.version(2).stores({chatRooms:"id, synchStartedOn, synchCompletedOn, hashGuid",chatMessages:"id, parentId, synchStartedOn, synchCompletedOn",synchTable:"id, synchStartedOn, synchCompletedOn, hashGuid"})}}},3183:(En,it,p)=>{"use strict";p.d(it,{C0:()=>k,E3:()=>T,TF:()=>e,vt:()=>C});var S=p(4859);let d=1500,m=[];const T=P=>(d=(0,S.YD)(P,d),d),C=function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;const{length:v}=m,x=(v?m[v-1]:P)+1;return m.push(x),x},e=P=>{const v=m.indexOf(P);v>=0&&m.splice(v,1)},k=P=>m.length&&m[m.length-1]===P},3229:(En,it,p)=>{"use strict";p.d(it,{O:()=>C});var S=p(9406),d=p(4912),m=p(1677);function C(e=0,k,w=d.b){let P=-1;return null!=k&&((0,m.m)(k)?w=k:P=k),new S.c(v=>{let x=function T(e){return e instanceof Date&&!isNaN(e)}(e)?+e-w.now():e;x<0&&(x=0);let b=0;return w.schedule(function(){v.closed||(v.next(b++),0<=P?this.schedule(void 0,P):v.complete())},x)})}},3312:(En,it,p)=>{"use strict";p.d(it,{A:()=>d});const d=p(5213).A},3341:(En,it,p)=>{"use strict";p.d(it,{p:()=>w});var S=p(6394),d=p(6104),m=p(8399),T=p(8486),C=p(3746),e=p(656),k=p(65);let w=(()=>{var P;class v{constructor(b,B){this.http=b,this.scopeService=B,this.apiEndpoint="",this.connectionDataSubject=new d.B,this.connectionData$=this.connectionDataSubject.asObservable(),this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint,this.mediaApiBaseUrl=this.scope.globalSettings.configurations.apicodoMediaBaseUrl,this.getConnectionDataObservable().subscribe()}getVideoData(b){var B=this;return(0,S.A)(function*(){var F={headers:{Authorization:"Bearer "+(yield B.getConnectionData()).token}};return B.http.get(B.mediaApiBaseUrl+"/api/Thumbnail/GetWebFrontendData?fileId="+b,F).toPromise().then(X=>X.data).catch(X=>{console.error("getVideoData() FAIL",X)})})()}getConnectionDataInternal(){var b=this;return(0,S.A)(function*(){return b.http.get(b.apiEndpoint+"media/token").toPromise().then(B=>(b.apicodoMediaConnectionData=B,b.apicodoMediaConnectionData.isInitialized=!0,b.apicodoMediaConnectionData.expiresOn=new Date(Date.now()+36e5),b.connectionDataSubject.next(b.apicodoMediaConnectionData),b.apicodoMediaConnectionData))})()}getConnectionDataObservable(){return(0,m.H)(this.getConnectionDataInternal())}getConnectionData(){var b=this;return(0,S.A)(function*(){return b.apicodoMediaConnectionData&&b.apicodoMediaConnectionData.expiresOn>Date.now()?b.apicodoMediaConnectionData:b.connectionData$.pipe((0,T.s)(1)).toPromise()})()}static#e=P=()=>(this.\u0275fac=function(B){return new(B||v)(e.KVO(k.Qq),e.KVO(C.A))},this.\u0275prov=e.jDH({token:v,factory:v.\u0275fac}))}return P(),v})()},3349:(En,it,p)=>{"use strict";p.d(it,{$M:()=>ke,PF:()=>Pe,eC:()=>R,fH:()=>ce,ic:()=>De,jS:()=>A,l9:()=>ee,p_:()=>Me,t$:()=>K,xZ:()=>L,ym:()=>be,zF:()=>X});var S=p(656),d=p(4303),m=p(2978),T=p(2145),C=p(6610),e=p(6054),k=p(1216),w=p(3686),P=p(4859),v=p(5704),x=p(5690),b=p(2720),B=p(4072);p(1113),p(6021);class X{host;setHost(Ae){this.host=Ae}setTemplate(Ae){this.host.setTemplate(Ae)}}class U{instance;zone;subscriptions={};events={};constructor(Ae,pe){this.instance=Ae,this.zone=pe}hasEvent(Ae){return 0!==this.getEmitter(Ae).observers.length}fireEvent(Ae,pe){const Ee=this.getEmitter(Ae);Ee.observers.length&&((this.subscriptions[Ae]||[]).length===Ee.observers.length?Ee.next(pe&&pe[0]):this.zone.run(()=>Ee.next(pe&&pe[0])))}on(Ae,pe){if("string"==typeof Ae){const Ee=this.subscriptions[Ae]||[],le=this.getEmitter(Ae).subscribe(pe?.bind(this.instance)),Ke=le.unsubscribe.bind(le);Ee.push({handler:pe,unsubscribe:Ke}),this.subscriptions[Ae]=Ee}else{const Ee=Ae;Object.keys(Ee).forEach(le=>this.on(le,Ee[le]))}}off(Ae,pe){const Ee=this.subscriptions[Ae]||[];pe?Ee.some((le,Ke)=>le.handler===pe&&(le.unsubscribe(),Ee.splice(Ke,1),!0)):(Ee.forEach(le=>{le.unsubscribe()}),Ee.splice(0,Ee.length))}dispose(){}addEmitter(Ae,pe){this.events[Ae]=pe}getEmitter(Ae){return this.events[Ae]||(this.events[Ae]=new d.bkB),this.events[Ae]}}class Z{zone;component;lockedValueChangeEvent=!1;constructor(Ae,pe){this.zone=Ae,this.component=pe}fireNgEvent(Ae,pe){if(this.lockedValueChangeEvent&&"valueChange"===Ae)return;const Ee=this.component[Ae];Ee&&Ee.observers.length&&this.zone.run(()=>{Ee.next(pe&&pe[0])})}createEmitters(Ae){Ae.forEach(pe=>{this.component[pe.emit]=new d.bkB})}}let A=(()=>{class de{_watchers=[];getWatchMethod(){return(Ee,le,Ke)=>{let Be=Ee();(Ke=Ke||{}).skipImmediate||le(Be);const q=()=>{const Oe=Ee();this._isDifferentValues(Be,Oe,Ke.deep)&&(le(Oe),Be=Oe)};return this._watchers.push(q),()=>{const Oe=this._watchers.indexOf(q);-1!==Oe&&this._watchers.splice(Oe,1)}}}_isDifferentValues(pe,Ee,le){const Ke=this._toComparable(Ee),Be=this._toComparable(pe);return le&&Ke instanceof Object&&Be instanceof Object?this._checkObjectsFields(Ee,pe):Ke!==Be}_toComparable(pe){return pe instanceof Date?pe.getTime():pe}_checkObjectsFields(pe,Ee){for(const le in pe){const Ke=this._toComparable(pe[le]),Be=this._toComparable(Ee[le]);let q=!1;if("object"==typeof Ke&&"object"==typeof Be&&(q=(0,P.RL)(Ke,Be)),Ke!==Be&&!q)return!0}}checkWatchers(){for(const pe of this._watchers)pe()}static \u0275fac=function(Ee){return new(Ee||de)};static \u0275prov=S.jDH({token:de,factory:de.\u0275fac})}return de})();function M(de){return de.get?de.get(0):de}const H="dx-template-wrapper";let R=(()=>{class de{templateRef;viewContainerRef;renderer;zone;set dxTemplateOf(pe){this.name=pe}name;constructor(pe,Ee,le,Ke,Be){this.templateRef=pe,this.viewContainerRef=Ee,this.renderer=Ke,this.zone=Be,le.setTemplate(this)}renderTemplate(pe){const Ee=this.viewContainerRef.createEmbeddedView(this.templateRef,{$implicit:pe.model,index:pe.index}),le=M(pe.container);return pe.container&&Ee.rootNodes.forEach(Ke=>{this.renderer.appendChild(le,Ke)}),Ee}render(pe){let Ee;return Ee=this.zone.isStable?this.zone.run(()=>this.renderTemplate(pe)):this.renderTemplate(pe),Ee.detectChanges(),Ee.rootNodes.forEach(le=>{1===le.nodeType&&e.A.setClass(le,H,!0),(0,k.xH)(le,"dxremove",({},Ke)=>{(!Ke||!Ke._angularIntegration)&&Ee.destroy()})}),Ee.rootNodes}static \u0275fac=function(Ee){return new(Ee||de)(d.rXU(d.C4Q),d.rXU(d.c1b),d.rXU(X),d.rXU(d.sFG),d.rXU(d.SKi))};static \u0275dir=d.FsC({type:de,selectors:[["","dxTemplate",""]],inputs:{dxTemplateOf:"dxTemplateOf"},standalone:!1})}return de})(),L=(()=>{class de{static \u0275fac=function(Ee){return new(Ee||de)};static \u0275mod=d.$C({type:de});static \u0275inj=S.G2t({})}return de})();const G="dx-visibility-change-handler";let Q=(()=>{class de{_host;_hostOptionPath;_collectionContainerImpl;_initialOptions={};constructor(){this._collectionContainerImpl=new z(this._setOption.bind(this),this._filterItems.bind(this))}_optionChangedHandler(pe){const Ee=this._fullOptionPath();if(0===pe.fullName.indexOf(Ee)){const Ke=this[`${pe.fullName.slice(Ee.length)}Change`];Ke&&Ke.next(pe.value)}}_createEventEmitters(pe){pe.forEach(Ee=>{this[Ee.emit]=new d.bkB})}_getOption(pe){return this.isLinked?this.instance.option(this._fullOptionPath()+pe):this._initialOptions[pe]}_setOption(pe,Ee){if(this.isLinked){const le=this._fullOptionPath()+pe;this.instance.option(le,Ee)}else this._initialOptions[pe]=Ee}_addRemovedOption(pe){this.instance&&this.removedNestedComponents&&this.removedNestedComponents.push(pe)}_deleteRemovedOptions(pe){this.instance&&this.removedNestedComponents&&(this.removedNestedComponents=this.removedNestedComponents.filter(Ee=>!Ee.startsWith(pe)))}_addRecreatedComponent(){this.instance&&this.recreatedNestedComponents&&this.recreatedNestedComponents.push({getOptionPath:()=>this._getOptionPath()})}_getOptionPath(){return this._hostOptionPath()+this._optionPath}setHost(pe,Ee){this._host=pe,this._hostOptionPath=Ee,this.optionChangedHandlers.subscribe(this._optionChangedHandler.bind(this))}setChildren(pe,Ee){return this.resetOptions(pe),this._collectionContainerImpl.setChildren(pe,Ee)}_filterItems(pe){return pe.filter(Ee=>Ee!==this)}get instance(){return this._host&&this._host.instance}get resetOptions(){return this._host&&this._host.resetOptions}get isRecreated(){return this._host&&this._host.isRecreated}get removedNestedComponents(){return this._host&&this._host.removedNestedComponents}set removedNestedComponents(pe){this._host.removedNestedComponents=pe}get recreatedNestedComponents(){return this._host&&this._host.recreatedNestedComponents}set recreatedNestedComponents(pe){this._host.recreatedNestedComponents=pe}get isLinked(){return!!this.instance&&this._host.isLinked}get optionChangedHandlers(){return this._host&&this._host.optionChangedHandlers}static \u0275fac=function(Ee){return new(Ee||de)};static \u0275cmp=d.VBU({type:de,selectors:[["ng-component"]],standalone:!1,decls:0,vars:0,template:function(Ee,le){},encapsulation:2})}return de})();class z{_setOption;_filterItems;_activatedQueries={};constructor(Ae,pe){this._setOption=Ae,this._filterItems=pe}setChildren(Ae,pe){if(this._filterItems&&(pe=this._filterItems(pe)),pe.length&&(this._activatedQueries[Ae]=!0),this._activatedQueries[Ae]){const Ee=pe.map((le,Ke)=>(le._index=Ke,le._value));this._setOption(Ae,Ee)}}}let K=(()=>{class de extends Q{setHost(pe,Ee){super.setHost(pe,Ee),this._host[this._optionPath]=this._initialOptions}_fullOptionPath(){return`${this._getOptionPath()}.`}static \u0275fac=(()=>{let pe;return function(le){return(pe||(pe=d.xGo(de)))(le||de)}})();static \u0275cmp=d.VBU({type:de,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(Ee,le){},encapsulation:2})}return de})(),ee=(()=>{class de extends Q{_index;_fullOptionPath(){return`${this._getOptionPath()}[${this._index}].`}get _value(){return this._initialOptions}get isLinked(){return void 0!==this._index&&!!this.instance&&this._host.isLinked}static \u0275fac=(()=>{let pe;return function(le){return(pe||(pe=d.xGo(de)))(le||de)}})();static \u0275cmp=d.VBU({type:de,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(Ee,le){},encapsulation:2})}return de})();const re=function(de){const Ae=[];(0,v.A)(de).hasClass(G)||Ae.push(de),Ae.push.apply(Ae,de.querySelectorAll(`.${G}`));for(let pe=0;pe<Ae.length;pe++)(0,k.tY)(Ae[pe],"dxshown")};function be(de,Ae,pe,Ee){void 0===!de.template||!Ae.nativeElement.hasChildNodes()||![].slice.call(Ae.nativeElement.childNodes).filter(Be=>{if(Be.tagName){const q=Be.tagName.toLowerCase().substr(0,3);return!("dxi"===q||"dxo"===q)}return"#comment"!==Be.nodeName&&Be.textContent.replace(/\s/g,"").length}).length||(de.template={render:Be=>{const q=Ae.nativeElement;if(e.A.setClass(q,H,!0),Be.container){const Oe=M(Be.container),fe=Oe.contains(Ae.nativeElement);pe.appendChild(Oe,Ae.nativeElement),fe||Ee.body.contains(Oe)&&re(q)}return q}})}class ce{_host;_optionPath;getHost(){return this._host}setHost(Ae,pe){this._host=Ae,this._optionPath=pe||(()=>"")}setNestedOption(Ae){Ae.setHost(this._host,this._optionPath)}}let Re;(0,w.A)({buyNowLink:"https://go.devexpress.com/Licensing_Installer_Watermark_DevExtremeAngular.aspx"});const Se=()=>(Re||(Re=(0,d.zw6)("DX_isPlatformServer")),Re);let De=(()=>{class de{element;ngZone;watcherHelper;transferState;platformId;_initialOptions={};_optionsToUpdate={};_collectionContainerImpl;eventHelper;optionChangedHandlers=new d.bkB;templates;instance;isLinked=!0;changedOptions={};removedNestedComponents=[];recreatedNestedComponents;widgetUpdateLocked=!1;templateUpdateRequired=!1;_updateTemplates(){if(this.templates.length&&this.templateUpdateRequired){const pe={};this.templates.forEach(Ee=>{pe[Ee.name]=Ee}),this.instance.option("integrationOptions.templates",pe),this.templates=Object.values(pe),this.templateUpdateRequired=!1}}_initEvents(){this.instance.on("optionChanged",pe=>{this.changedOptions[pe.name]=pe.value;const Ee=pe.name===pe.fullName?pe.value:pe.component.option(pe.name);this.eventHelper.fireNgEvent(`${pe.name}Change`,[Ee]),this.optionChangedHandlers.emit(pe)})}_initOptions(){this._initialOptions.integrationOptions.watchMethod=this.watcherHelper.getWatchMethod()}_initPlatform(){this.transferState.hasKey(Se())?this._initialOptions.integrationOptions.renderedOnServer=this.transferState.get(Se(),null):(0,C.Vy)(this.platformId)&&this.transferState.set(Se(),!0)}_createEventEmitters(pe){const Ee=this.ngZone;this.eventHelper.createEmitters(pe),this._initialOptions.eventsStrategy=le=>{const Ke=new U(le,Ee);return pe.filter(Be=>Be.subscribe).forEach(Be=>{Ke.addEmitter(Be.subscribe,this[Be.emit])}),Ke},this._initialOptions.nestedComponentOptions=function(le){return{eventsStrategy:Ke=>new U(Ke,Ee),nestedComponentOptions:le.option("nestedComponentOptions")}}}_shouldOptionChange(pe,Ee){if(this.changedOptions.hasOwnProperty(pe)){const le=this.changedOptions[pe];return delete this.changedOptions[pe],Ee!==le}return!0}clearChangedOptions(){this.changedOptions={}}_getOption(pe){return this.instance?this.instance.option(pe):this._initialOptions[pe]}lockWidgetUpdate(){!this.widgetUpdateLocked&&this.instance&&(this.instance.beginUpdate(),this.widgetUpdateLocked=!0)}unlockWidgetUpdate(){this.widgetUpdateLocked&&(this.widgetUpdateLocked=!1,this.instance.endUpdate())}_setOption(pe,Ee){this.lockWidgetUpdate(),this._shouldOptionChange(pe,Ee)&&(this.instance?this.instance.option(pe,Ee):this._initialOptions[pe]=Ee)}_createWidget(pe){this._initialOptions.integrationOptions={},this._initPlatform(),this._initOptions(),this._initialOptions.onInitializing=function(){this.beginUpdate()},this.instance=this._createInstance(pe,this._initialOptions),this._initEvents(),this._initialOptions={}}_destroyWidget(){if(this.removedNestedComponents=[],this.instance){const pe=this.instance.element();(0,k.tY)(pe,"dxremove",{_angularIntegration:!0}),this.instance.dispose(),e.A.removeElement(pe)}}constructor(pe,Ee,le,Ke,Be,q){this.element=pe,this.ngZone=Ee,this.watcherHelper=Ke,this.transferState=Be,this.platformId=q,this.templates=[],le.setHost(this),this._collectionContainerImpl=new z(this._setOption.bind(this)),this.eventHelper=new Z(Ee,this)}ngOnChanges(pe){for(const Ee in pe)pe[Ee].currentValue!==this[Ee]&&(this._optionsToUpdate[Ee]=pe[Ee].currentValue)}ngOnInit(){this._createWidget(this.element.nativeElement)}ngDoCheck(){this.applyOptions()}ngAfterContentChecked(){this.applyOptions(),this.resetOptions(),this.unlockWidgetUpdate()}ngAfterViewInit(){this._updateTemplates(),this.instance.endUpdate(),this.recreatedNestedComponents=[]}ngAfterViewChecked(){this._updateTemplates()}applyOptions(){Object.keys(this._optionsToUpdate).length&&(this.instance&&this.instance.option(this._optionsToUpdate),this._optionsToUpdate={})}resetOptions(pe){this.instance&&(this.removedNestedComponents.filter(Ee=>!(Ee&&!this.isRecreated(Ee)&&pe)||Ee.startsWith(pe)).forEach(Ee=>{this.instance.resetOption(Ee)}),this.removedNestedComponents=[],this.recreatedNestedComponents=[])}isRecreated(pe){return this.recreatedNestedComponents&&this.recreatedNestedComponents.some(Ee=>Ee.getOptionPath()===pe)}setTemplate(pe){this.templates.push(pe),this.templateUpdateRequired=!0}setChildren(pe,Ee){return this.resetOptions(pe),this._collectionContainerImpl.setChildren(pe,Ee)}static \u0275fac=function(Ee){return new(Ee||de)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(X),d.rXU(A),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:de,selectors:[["ng-component"]],standalone:!1,features:[d.OA$],decls:0,vars:0,template:function(Ee,le){},encapsulation:2})}return de})(),Pe=(()=>{class de extends De{createInstance(pe){this._createWidget(pe)}ngOnInit(){}ngAfterViewInit(){this._createWidget(this.element.nativeElement),this.instance.endUpdate()}static \u0275fac=(()=>{let pe;return function(le){return(pe||(pe=d.xGo(de)))(le||de)}})();static \u0275cmp=d.VBU({type:de,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(Ee,le){},encapsulation:2})}return de})();const Ie=["mousemove","mouseover","mouseout"],W=["mouseup","click","mousedown","transitionend","wheel"];let ie,he=[],Ce=function(de){ie||(ie=this.callBase.bind(this)),he.push(de)};b.A.inject({add(de){return Ce.call(this,de)}});let ye=(de,Ae,pe)=>{Number(m.xvI.major)<12&&console.warn("Your version of Angular is not supported. Please update your project to version 12 or later. Please refer to the Angular Update Guide for more information: https://update.angular.io"),e.A.inject({_document:de,listen(...le){const Ke=le[1];return Ie.includes(Ke)?Ae.runOutsideAngular(()=>this.callBase.apply(this,le)):Ae.isStable&&W.includes(Ke)?Ae.run(()=>this.callBase.apply(this,le)):this.callBase.apply(this,le)},isElementNode:le=>le&&1===le.nodeType,isTextNode:le=>le&&3===le.nodeType,isDocument:le=>le&&9===le.nodeType}),x.A.inject({getXhr(){if(!pe)return this.callBase.apply(this);const le=pe.build();return"withCredentials"in le||(le.withCredentials=!1),le}});const Ee=()=>{Ae.run(()=>{B.A.set({}),he.forEach(le=>ie.call(null,le)),he=[],b.A.fire()})};Ee(),Ce=le=>Ae.run(()=>le()),ye=Ee},Me=(()=>{class de{constructor(pe,Ee,le){ye(pe,Ee,le)}static \u0275fac=function(Ee){return new(Ee||de)(S.KVO(S.qQL),S.KVO(d.SKi),S.KVO(T.N,8))};static \u0275mod=d.$C({type:de});static \u0275inj=S.G2t({})}return de})(),ke=(()=>{class de{_differs;_host;_propertyDiffers={};constructor(pe){this._differs=pe}setHost(pe){this._host=pe}setup(pe,Ee){pe in Ee&&this.setupSingle(pe,Ee[pe].currentValue)}setupSingle(pe,Ee){if(Ee&&Array.isArray(Ee)){if(!this._propertyDiffers[pe])try{return this._propertyDiffers[pe]=this._differs.find(Ee).create(null),!0}catch{}}else delete this._propertyDiffers[pe];return!1}getChanges(pe,Ee){if(this._propertyDiffers[pe])return this._propertyDiffers[pe].diff(Ee)}checkChangedOptions(pe,Ee){return this._host.changedOptions[pe]===Ee}doCheck(pe){if(this._propertyDiffers[pe]&&this._host.instance){const Ee=this._host[pe];(function _e(de){return de&&"function"==typeof de[Symbol.iterator]})(Ee)&&this.getChanges(pe,Ee)&&!this.checkChangedOptions(pe,Ee)&&(this._host.lockWidgetUpdate(),this._host.instance.option(pe,Ee))}}static \u0275fac=function(Ee){return new(Ee||de)(S.KVO(m._q3))};static \u0275prov=S.jDH({token:de,factory:de.\u0275fac})}return de})()},3378:(En,it,p)=>{"use strict";p.d(it,{d:()=>T});var S=p(3746),d=p(656),m=p(65);let T=(()=>{var C;class e{constructor(w,P){this.http=w,this.scopeService=P,this._chatUsersPromise=null,this._chatUsersData=null,this.apiEndpoint=`${P.getScope().apiEndpoint}chatMembers`}post(w){return this.http.post(`${this.apiEndpoint}`,w)}hide(w){return this.http.post(`${this.apiEndpoint}/HideChat/${w}`,null)}delete(w){return this.http.delete(`${this.apiEndpoint}/${w.toString()}`)}toggleMute(w){return this.http.post(`${this.apiEndpoint}/ToggleChatMuted/${w}`,null)}promoteToAdmin(w){return this.http.post(`${this.apiEndpoint}/${w}/promoteToAdmin`,null)}revokeAdminPrivileges(w){return this.http.post(`${this.apiEndpoint}/${w}/revokeAdminPrivileges`,null)}getChatUsers(w){return this._chatUsersData?Promise.resolve(this._chatUsersData):(this._chatUsersPromise||(this._chatUsersPromise=this.http.get(w).toPromise().then(P=>(this._chatUsersData=P,P))),this._chatUsersPromise)}static#e=C=()=>(this.\u0275fac=function(P){return new(P||e)(d.KVO(m.Qq),d.KVO(S.A))},this.\u0275prov=d.jDH({token:e,factory:e.\u0275fac}))}return C(),e})()},3396:(En,it,p)=>{"use strict";p.d(it,{U:()=>w,b:()=>k});var S=p(656),d=p(4303),m=p(273),T=p(3349),C=p(8914);const e=["*"];let k=(()=>{class P extends T.ic{instance=null;get animation(){return this._getOption("animation")}set animation(x){this._setOption("animation",x)}get closeOnOutsideClick(){return this._getOption("closeOnOutsideClick")}set closeOnOutsideClick(x){this._setOption("closeOnOutsideClick",x)}get container(){return this._getOption("container")}set container(x){this._setOption("container",x)}get contentTemplate(){return this._getOption("contentTemplate")}set contentTemplate(x){this._setOption("contentTemplate",x)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(x){this._setOption("deferRendering",x)}get disabled(){return this._getOption("disabled")}set disabled(x){this._setOption("disabled",x)}get height(){return this._getOption("height")}set height(x){this._setOption("height",x)}get hideEvent(){return this._getOption("hideEvent")}set hideEvent(x){this._setOption("hideEvent",x)}get hideOnOutsideClick(){return this._getOption("hideOnOutsideClick")}set hideOnOutsideClick(x){this._setOption("hideOnOutsideClick",x)}get hideOnParentScroll(){return this._getOption("hideOnParentScroll")}set hideOnParentScroll(x){this._setOption("hideOnParentScroll",x)}get hint(){return this._getOption("hint")}set hint(x){this._setOption("hint",x)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(x){this._setOption("hoverStateEnabled",x)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(x){this._setOption("maxHeight",x)}get maxWidth(){return this._getOption("maxWidth")}set maxWidth(x){this._setOption("maxWidth",x)}get minHeight(){return this._getOption("minHeight")}set minHeight(x){this._setOption("minHeight",x)}get minWidth(){return this._getOption("minWidth")}set minWidth(x){this._setOption("minWidth",x)}get position(){return this._getOption("position")}set position(x){this._setOption("position",x)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(x){this._setOption("rtlEnabled",x)}get shading(){return this._getOption("shading")}set shading(x){this._setOption("shading",x)}get shadingColor(){return this._getOption("shadingColor")}set shadingColor(x){this._setOption("shadingColor",x)}get showEvent(){return this._getOption("showEvent")}set showEvent(x){this._setOption("showEvent",x)}get target(){return this._getOption("target")}set target(x){this._setOption("target",x)}get visible(){return this._getOption("visible")}set visible(x){this._setOption("visible",x)}get width(){return this._getOption("width")}set width(x){this._setOption("width",x)}get wrapperAttr(){return this._getOption("wrapperAttr")}set wrapperAttr(x){this._setOption("wrapperAttr",x)}onContentReady;onDisposing;onHidden;onHiding;onInitialized;onOptionChanged;onShowing;onShown;animationChange;closeOnOutsideClickChange;containerChange;contentTemplateChange;deferRenderingChange;disabledChange;heightChange;hideEventChange;hideOnOutsideClickChange;hideOnParentScrollChange;hintChange;hoverStateEnabledChange;maxHeightChange;maxWidthChange;minHeightChange;minWidthChange;positionChange;rtlEnabledChange;shadingChange;shadingColorChange;showEventChange;targetChange;visibleChange;widthChange;wrapperAttrChange;constructor(x,b,B,j,F,X,U){super(x,b,B,j,X,U),this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"hidden",emit:"onHidden"},{subscribe:"hiding",emit:"onHiding"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"showing",emit:"onShowing"},{subscribe:"shown",emit:"onShown"},{emit:"animationChange"},{emit:"closeOnOutsideClickChange"},{emit:"containerChange"},{emit:"contentTemplateChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"heightChange"},{emit:"hideEventChange"},{emit:"hideOnOutsideClickChange"},{emit:"hideOnParentScrollChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"maxHeightChange"},{emit:"maxWidthChange"},{emit:"minHeightChange"},{emit:"minWidthChange"},{emit:"positionChange"},{emit:"rtlEnabledChange"},{emit:"shadingChange"},{emit:"shadingColorChange"},{emit:"showEventChange"},{emit:"targetChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapperAttrChange"}]),F.setHost(this)}_createInstance(x,b){return new m.A(x,b)}ngOnDestroy(){this._destroyWidget()}static \u0275fac=function(b){return new(b||P)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:P,selectors:[["dx-tooltip"]],inputs:{animation:"animation",closeOnOutsideClick:"closeOnOutsideClick",container:"container",contentTemplate:"contentTemplate",deferRendering:"deferRendering",disabled:"disabled",height:"height",hideEvent:"hideEvent",hideOnOutsideClick:"hideOnOutsideClick",hideOnParentScroll:"hideOnParentScroll",hint:"hint",hoverStateEnabled:"hoverStateEnabled",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",position:"position",rtlEnabled:"rtlEnabled",shading:"shading",shadingColor:"shadingColor",showEvent:"showEvent",target:"target",visible:"visible",width:"width",wrapperAttr:"wrapperAttr"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onHidden:"onHidden",onHiding:"onHiding",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onShowing:"onShowing",onShown:"onShown",animationChange:"animationChange",closeOnOutsideClickChange:"closeOnOutsideClickChange",containerChange:"containerChange",contentTemplateChange:"contentTemplateChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",heightChange:"heightChange",hideEventChange:"hideEventChange",hideOnOutsideClickChange:"hideOnOutsideClickChange",hideOnParentScrollChange:"hideOnParentScrollChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",maxHeightChange:"maxHeightChange",maxWidthChange:"maxWidthChange",minHeightChange:"minHeightChange",minWidthChange:"minWidthChange",positionChange:"positionChange",rtlEnabledChange:"rtlEnabledChange",shadingChange:"shadingChange",shadingColorChange:"shadingColorChange",showEventChange:"showEventChange",targetChange:"targetChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapperAttrChange:"wrapperAttrChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH]),d.Vt3],ngContentSelectors:e,decls:1,vars:0,template:function(b,B){1&b&&(d.NAR(),d.SdG(0))},encapsulation:2})}return P})(),w=(()=>{class P{static \u0275fac=function(b){return new(b||P)};static \u0275mod=d.$C({type:P});static \u0275inj=S.G2t({imports:[C.YLo,C.YaD,C.eNx,C.Bkf,C.nwt,C.hXw,C.YGc,C.gf0,C.rvW,C.Tob,C.$Ql,C.i9t,C.TBD,T.p_,T.xZ,C.YLo,C.YaD,C.eNx,C.Bkf,C.nwt,C.hXw,C.YGc,C.gf0,C.rvW,C.Tob,C.$Ql,C.i9t,C.TBD,T.xZ]})}return P})()},3422:(En,it,p)=>{"use strict";p.d(it,{Z:()=>w});var S=p(3527),d=p(8621),m=p(9867),T=p(1982),C=p(6111),k=p(4418);function w(P,v,x=1/0){return(0,k.T)(v)?w((b,B)=>(0,S.T)((j,F)=>v(b,j,B,F))((0,d.Tg)(P(b,B))),x):("number"==typeof v&&(x=v),(0,m.N)((b,B)=>function e(P,v,x,b,B,j,F,X){const U=[];let Z=0,A=0,M=!1;const H=()=>{M&&!U.length&&!Z&&v.complete()},J=L=>Z<b?R(L):U.push(L),R=L=>{j&&v.next(L),Z++;let G=!1;(0,d.Tg)(x(L,A++)).subscribe((0,C._)(v,Q=>{B?.(Q),j?J(Q):v.next(Q)},()=>{G=!0},void 0,()=>{if(G)try{for(Z--;U.length&&Z<b;){const Q=U.shift();F?(0,T.N)(v,F,()=>R(Q)):R(Q)}H()}catch(Q){v.error(Q)}}))};return P.subscribe((0,C._)(v,J,()=>{M=!0,H()})),()=>{X?.()}}(b,B,P,x)))}},3425:(En,it,p)=>{"use strict";p.d(it,{F:()=>k,o:()=>e});var S=p(656),d=p(4303),m=p(5480),T=p(3349),C=p(8914);let e=(()=>{class w extends T.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(v){this._setOption("accessKey",v)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(v){this._setOption("activeStateEnabled",v)}get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(v){this._setOption("alignItemLabels",v)}get alignItemLabelsInAllGroups(){return this._getOption("alignItemLabelsInAllGroups")}set alignItemLabelsInAllGroups(v){this._setOption("alignItemLabelsInAllGroups",v)}get colCount(){return this._getOption("colCount")}set colCount(v){this._setOption("colCount",v)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(v){this._setOption("colCountByScreen",v)}get customizeItem(){return this._getOption("customizeItem")}set customizeItem(v){this._setOption("customizeItem",v)}get disabled(){return this._getOption("disabled")}set disabled(v){this._setOption("disabled",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(v){this._setOption("focusStateEnabled",v)}get formData(){return this._getOption("formData")}set formData(v){this._setOption("formData",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get hint(){return this._getOption("hint")}set hint(v){this._setOption("hint",v)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(v){this._setOption("hoverStateEnabled",v)}get isDirty(){return this._getOption("isDirty")}set isDirty(v){this._setOption("isDirty",v)}get items(){return this._getOption("items")}set items(v){this._setOption("items",v)}get labelLocation(){return this._getOption("labelLocation")}set labelLocation(v){this._setOption("labelLocation",v)}get labelMode(){return this._getOption("labelMode")}set labelMode(v){this._setOption("labelMode",v)}get minColWidth(){return this._getOption("minColWidth")}set minColWidth(v){this._setOption("minColWidth",v)}get optionalMark(){return this._getOption("optionalMark")}set optionalMark(v){this._setOption("optionalMark",v)}get readOnly(){return this._getOption("readOnly")}set readOnly(v){this._setOption("readOnly",v)}get requiredMark(){return this._getOption("requiredMark")}set requiredMark(v){this._setOption("requiredMark",v)}get requiredMessage(){return this._getOption("requiredMessage")}set requiredMessage(v){this._setOption("requiredMessage",v)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(v){this._setOption("rtlEnabled",v)}get screenByWidth(){return this._getOption("screenByWidth")}set screenByWidth(v){this._setOption("screenByWidth",v)}get scrollingEnabled(){return this._getOption("scrollingEnabled")}set scrollingEnabled(v){this._setOption("scrollingEnabled",v)}get showColonAfterLabel(){return this._getOption("showColonAfterLabel")}set showColonAfterLabel(v){this._setOption("showColonAfterLabel",v)}get showOptionalMark(){return this._getOption("showOptionalMark")}set showOptionalMark(v){this._setOption("showOptionalMark",v)}get showRequiredMark(){return this._getOption("showRequiredMark")}set showRequiredMark(v){this._setOption("showRequiredMark",v)}get showValidationSummary(){return this._getOption("showValidationSummary")}set showValidationSummary(v){this._setOption("showValidationSummary",v)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(v){this._setOption("tabIndex",v)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(v){this._setOption("validationGroup",v)}get visible(){return this._getOption("visible")}set visible(v){this._setOption("visible",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}onContentReady;onDisposing;onEditorEnterKey;onFieldDataChanged;onInitialized;onOptionChanged;accessKeyChange;activeStateEnabledChange;alignItemLabelsChange;alignItemLabelsInAllGroupsChange;colCountChange;colCountByScreenChange;customizeItemChange;disabledChange;elementAttrChange;focusStateEnabledChange;formDataChange;heightChange;hintChange;hoverStateEnabledChange;isDirtyChange;itemsChange;labelLocationChange;labelModeChange;minColWidthChange;optionalMarkChange;readOnlyChange;requiredMarkChange;requiredMessageChange;rtlEnabledChange;screenByWidthChange;scrollingEnabledChange;showColonAfterLabelChange;showOptionalMarkChange;showRequiredMarkChange;showValidationSummaryChange;tabIndexChange;validationGroupChange;visibleChange;widthChange;get itemsChildren(){return this._getOption("items")}set itemsChildren(v){this.setChildren("items",v)}constructor(v,x,b,B,j,F,X,U){super(v,x,b,B,X,U),this._watcherHelper=B,this._idh=j,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"editorEnterKey",emit:"onEditorEnterKey"},{subscribe:"fieldDataChanged",emit:"onFieldDataChanged"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"alignItemLabelsChange"},{emit:"alignItemLabelsInAllGroupsChange"},{emit:"colCountChange"},{emit:"colCountByScreenChange"},{emit:"customizeItemChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"formDataChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isDirtyChange"},{emit:"itemsChange"},{emit:"labelLocationChange"},{emit:"labelModeChange"},{emit:"minColWidthChange"},{emit:"optionalMarkChange"},{emit:"readOnlyChange"},{emit:"requiredMarkChange"},{emit:"requiredMessageChange"},{emit:"rtlEnabledChange"},{emit:"screenByWidthChange"},{emit:"scrollingEnabledChange"},{emit:"showColonAfterLabelChange"},{emit:"showOptionalMarkChange"},{emit:"showRequiredMarkChange"},{emit:"showValidationSummaryChange"},{emit:"tabIndexChange"},{emit:"validationGroupChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),F.setHost(this)}_createInstance(v,x){return new m.A(v,x)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(v){super.ngOnChanges(v),this.setupChanges("items",v)}setupChanges(v,x){v in this._optionsToUpdate||this._idh.setup(v,x)}ngDoCheck(){this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(v,x){let b=this._idh.setupSingle(v,x),B=null!==this._idh.getChanges(v,x);(b||B)&&super._setOption(v,x)}static \u0275fac=function(x){return new(x||w)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.$M),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:w,selectors:[["dx-form"]],contentQueries:function(x,b,B){if(1&x&&d.wni(B,C.CVf,4),2&x){let j;d.mGM(j=d.lsd())&&(b.itemsChildren=j)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",alignItemLabels:"alignItemLabels",alignItemLabelsInAllGroups:"alignItemLabelsInAllGroups",colCount:"colCount",colCountByScreen:"colCountByScreen",customizeItem:"customizeItem",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",formData:"formData",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isDirty:"isDirty",items:"items",labelLocation:"labelLocation",labelMode:"labelMode",minColWidth:"minColWidth",optionalMark:"optionalMark",readOnly:"readOnly",requiredMark:"requiredMark",requiredMessage:"requiredMessage",rtlEnabled:"rtlEnabled",screenByWidth:"screenByWidth",scrollingEnabled:"scrollingEnabled",showColonAfterLabel:"showColonAfterLabel",showOptionalMark:"showOptionalMark",showRequiredMark:"showRequiredMark",showValidationSummary:"showValidationSummary",tabIndex:"tabIndex",validationGroup:"validationGroup",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onEditorEnterKey:"onEditorEnterKey",onFieldDataChanged:"onFieldDataChanged",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",alignItemLabelsChange:"alignItemLabelsChange",alignItemLabelsInAllGroupsChange:"alignItemLabelsInAllGroupsChange",colCountChange:"colCountChange",colCountByScreenChange:"colCountByScreenChange",customizeItemChange:"customizeItemChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",formDataChange:"formDataChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isDirtyChange:"isDirtyChange",itemsChange:"itemsChange",labelLocationChange:"labelLocationChange",labelModeChange:"labelModeChange",minColWidthChange:"minColWidthChange",optionalMarkChange:"optionalMarkChange",readOnlyChange:"readOnlyChange",requiredMarkChange:"requiredMarkChange",requiredMessageChange:"requiredMessageChange",rtlEnabledChange:"rtlEnabledChange",screenByWidthChange:"screenByWidthChange",scrollingEnabledChange:"scrollingEnabledChange",showColonAfterLabelChange:"showColonAfterLabelChange",showOptionalMarkChange:"showOptionalMarkChange",showRequiredMarkChange:"showRequiredMarkChange",showValidationSummaryChange:"showValidationSummaryChange",tabIndexChange:"tabIndexChange",validationGroupChange:"validationGroupChange",visibleChange:"visibleChange",widthChange:"widthChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH,T.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(x,b){},encapsulation:2})}return w})(),k=(()=>{class w{static \u0275fac=function(x){return new(x||w)};static \u0275mod=d.$C({type:w});static \u0275inj=S.G2t({imports:[C.k61,C.POb,C.uE7,C.$lK,C.hUd,C.HKo,C.Ixj,T.p_,T.xZ,C.k61,C.POb,C.uE7,C.$lK,C.hUd,C.HKo,C.Ixj,T.xZ]})}return w})()},3438:(En,it,p)=>{"use strict";p.d(it,{Ay:()=>kn,cf:()=>kn});const S=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,d=Object.keys,m=Array.isArray;function T(Fe,He){return"object"!=typeof He||d(He).forEach(function(wt){Fe[wt]=He[wt]}),Fe}typeof Promise>"u"||S.Promise||(S.Promise=Promise);const C=Object.getPrototypeOf,e={}.hasOwnProperty;function k(Fe,He){return e.call(Fe,He)}function w(Fe,He){"function"==typeof He&&(He=He(C(Fe))),(typeof Reflect>"u"?d:Reflect.ownKeys)(He).forEach(wt=>{v(Fe,wt,He[wt])})}const P=Object.defineProperty;function v(Fe,He,wt,Ut){P(Fe,He,T(wt&&k(wt,"get")&&"function"==typeof wt.get?{get:wt.get,set:wt.set,configurable:!0}:{value:wt,configurable:!0,writable:!0},Ut))}function x(Fe){return{from:function(He){return Fe.prototype=Object.create(He.prototype),v(Fe.prototype,"constructor",Fe),{extend:w.bind(null,Fe.prototype)}}}}const b=Object.getOwnPropertyDescriptor;function B(Fe,He){let wt;return b(Fe,He)||(wt=C(Fe))&&B(wt,He)}const j=[].slice;function F(Fe,He,wt){return j.call(Fe,He,wt)}function X(Fe,He){return He(Fe)}function U(Fe){if(!Fe)throw new Error("Assertion Failed")}function Z(Fe){S.setImmediate?setImmediate(Fe):setTimeout(Fe,0)}function A(Fe,He){return Fe.reduce((wt,Ut,cn)=>{var Ln=He(Ut,cn);return Ln&&(wt[Ln[0]]=Ln[1]),wt},{})}function M(Fe,He){if("string"==typeof He&&k(Fe,He))return Fe[He];if(!He)return Fe;if("string"!=typeof He){for(var wt=[],Ut=0,cn=He.length;Ut<cn;++Ut){var Ln=M(Fe,He[Ut]);wt.push(Ln)}return wt}var $n=He.indexOf(".");if(-1!==$n){var bi=Fe[He.substr(0,$n)];return null==bi?void 0:M(bi,He.substr($n+1))}}function H(Fe,He,wt){if(Fe&&void 0!==He&&(!("isFrozen"in Object)||!Object.isFrozen(Fe)))if("string"!=typeof He&&"length"in He){U("string"!=typeof wt&&"length"in wt);for(var Ut=0,cn=He.length;Ut<cn;++Ut)H(Fe,He[Ut],wt[Ut])}else{var Ln=He.indexOf(".");if(-1!==Ln){var $n=He.substr(0,Ln),bi=He.substr(Ln+1);if(""===bi)void 0===wt?m(Fe)&&!isNaN(parseInt($n))?Fe.splice($n,1):delete Fe[$n]:Fe[$n]=wt;else{var vi=Fe[$n];vi&&k(Fe,$n)||(vi=Fe[$n]={}),H(vi,bi,wt)}}else void 0===wt?m(Fe)&&!isNaN(parseInt(He))?Fe.splice(He,1):delete Fe[He]:Fe[He]=wt}}function J(Fe){var He={};for(var wt in Fe)k(Fe,wt)&&(He[wt]=Fe[wt]);return He}const R=[].concat;function L(Fe){return R.apply([],Fe)}const G="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(L([8,16,32,64].map(Fe=>["Int","Uint","Float"].map(He=>He+Fe+"Array")))).filter(Fe=>S[Fe]),Q=G.map(Fe=>S[Fe]);A(G,Fe=>[Fe,!0]);let z=null;function K(Fe){z=typeof WeakMap<"u"&&new WeakMap;const He=ee(Fe);return z=null,He}function ee(Fe){if(!Fe||"object"!=typeof Fe)return Fe;let He=z&&z.get(Fe);if(He)return He;if(m(Fe)){He=[],z&&z.set(Fe,He);for(var wt=0,Ut=Fe.length;wt<Ut;++wt)He.push(ee(Fe[wt]))}else if(Q.indexOf(Fe.constructor)>=0)He=Fe;else{const Ln=C(Fe);for(var cn in He=Ln===Object.prototype?{}:Object.create(Ln),z&&z.set(Fe,He),Fe)k(Fe,cn)&&(He[cn]=ee(Fe[cn]))}return He}const{toString:re}={};function be(Fe){return re.call(Fe).slice(8,-1)}const ce=typeof Symbol<"u"?Symbol.iterator:"@@iterator",Re="symbol"==typeof ce?function(Fe){var He;return null!=Fe&&(He=Fe[ce])&&He.apply(Fe)}:function(){return null},Se={};function De(Fe){var He,wt,Ut,cn;if(1===arguments.length){if(m(Fe))return Fe.slice();if(this===Se&&"string"==typeof Fe)return[Fe];if(cn=Re(Fe)){for(wt=[];!(Ut=cn.next()).done;)wt.push(Ut.value);return wt}if(null==Fe)return[Fe];if("number"==typeof(He=Fe.length)){for(wt=new Array(He);He--;)wt[He]=Fe[He];return wt}return[Fe]}for(He=arguments.length,wt=new Array(He);He--;)wt[He]=arguments[He];return wt}const Pe=typeof Symbol<"u"?Fe=>"AsyncFunction"===Fe[Symbol.toStringTag]:()=>!1;var Ie=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function W(Fe,He){Ie=Fe,ie=He}var ie=()=>!0;const he=!new Error("").stack;function Ce(){if(he)try{throw new Error}catch(Fe){return Fe}return new Error}function ye(Fe,He){var wt=Fe.stack;return wt?(He=He||0,0===wt.indexOf(Fe.name)&&(He+=(Fe.name+Fe.message).split("\n").length),wt.split("\n").slice(He).filter(ie).map(Ut=>"\n"+Ut).join("")):""}var Me=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],_e=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Me),ke={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Ye(Fe,He){this._e=Ce(),this.name=Fe,this.message=He}function de(Fe,He){return Fe+". Errors: "+Object.keys(He).map(wt=>He[wt].toString()).filter((wt,Ut,cn)=>cn.indexOf(wt)===Ut).join("\n")}function Ae(Fe,He,wt,Ut){this._e=Ce(),this.failures=He,this.failedKeys=Ut,this.successCount=wt,this.message=de(Fe,He)}function pe(Fe,He){this._e=Ce(),this.name="BulkError",this.failures=Object.keys(He).map(wt=>He[wt]),this.failuresByPos=He,this.message=de(Fe,He)}x(Ye).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+ye(this._e,2))}},toString:function(){return this.name+": "+this.message}}),x(Ae).from(Ye),x(pe).from(Ye);var Ee=_e.reduce((Fe,He)=>(Fe[He]=He+"Error",Fe),{});const le=Ye;var Ke=_e.reduce((Fe,He)=>{var wt=He+"Error";function Ut(cn,Ln){this._e=Ce(),this.name=wt,cn?"string"==typeof cn?(this.message=`${cn}${Ln?"\n "+Ln:""}`,this.inner=Ln||null):"object"==typeof cn&&(this.message=`${cn.name} ${cn.message}`,this.inner=cn):(this.message=ke[He]||wt,this.inner=null)}return x(Ut).from(le),Fe[He]=Ut,Fe},{});Ke.Syntax=SyntaxError,Ke.Type=TypeError,Ke.Range=RangeError;var Be=Me.reduce((Fe,He)=>(Fe[He+"Error"]=Ke[He],Fe),{}),q=_e.reduce((Fe,He)=>(-1===["Syntax","Type","Range"].indexOf(He)&&(Fe[He+"Error"]=Ke[He]),Fe),{});function Oe(){}function fe(Fe){return Fe}function We(Fe,He){return null==Fe||Fe===fe?He:function(wt){return He(Fe(wt))}}function Ue(Fe,He){return function(){Fe.apply(this,arguments),He.apply(this,arguments)}}function Ve(Fe,He){return Fe===Oe?He:function(){var wt=Fe.apply(this,arguments);void 0!==wt&&(arguments[0]=wt);var Ut=this.onsuccess,cn=this.onerror;this.onsuccess=null,this.onerror=null;var Ln=He.apply(this,arguments);return Ut&&(this.onsuccess=this.onsuccess?Ue(Ut,this.onsuccess):Ut),cn&&(this.onerror=this.onerror?Ue(cn,this.onerror):cn),void 0!==Ln?Ln:wt}}function tt(Fe,He){return Fe===Oe?He:function(){Fe.apply(this,arguments);var wt=this.onsuccess,Ut=this.onerror;this.onsuccess=this.onerror=null,He.apply(this,arguments),wt&&(this.onsuccess=this.onsuccess?Ue(wt,this.onsuccess):wt),Ut&&(this.onerror=this.onerror?Ue(Ut,this.onerror):Ut)}}function at(Fe,He){return Fe===Oe?He:function(wt){var Ut=Fe.apply(this,arguments);T(wt,Ut);var cn=this.onsuccess,Ln=this.onerror;this.onsuccess=null,this.onerror=null;var $n=He.apply(this,arguments);return cn&&(this.onsuccess=this.onsuccess?Ue(cn,this.onsuccess):cn),Ln&&(this.onerror=this.onerror?Ue(Ln,this.onerror):Ln),void 0===Ut?void 0===$n?void 0:$n:T(Ut,$n)}}function Vt(Fe,He){return Fe===Oe?He:function(){return!1!==He.apply(this,arguments)&&Fe.apply(this,arguments)}}function qe(Fe,He){return Fe===Oe?He:function(){var wt=Fe.apply(this,arguments);if(wt&&"function"==typeof wt.then){for(var Ut=this,cn=arguments.length,Ln=new Array(cn);cn--;)Ln[cn]=arguments[cn];return wt.then(function(){return He.apply(Ut,Ln)})}return He.apply(this,arguments)}}q.ModifyError=Ae,q.DexieError=Ye,q.BulkError=pe;var Nt={};const[ue,me,Te]=typeof Promise>"u"?[]:(()=>{let Fe=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[Fe,C(Fe),Fe];const He=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[He,C(He),Fe]})(),je=me&&me.then,Ne=ue&&ue.constructor,lt=!!Te;var Qe=!1,Ct=Te?()=>{Te.then(To)}:S.setImmediate?setImmediate.bind(null,To):S.MutationObserver?()=>{var Fe=document.createElement("div");new MutationObserver(()=>{To(),Fe=null}).observe(Fe,{attributes:!0}),Fe.setAttribute("i","1")}:()=>{setTimeout(To,0)},yt=function(Fe,He){Vo.push([Fe,He]),ft&&(Ct(),ft=!1)},Gt=!0,ft=!0,nn=[],rn=[],Mn=null,On=fe,ji={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ro,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(Fe=>{try{ro(Fe[0],Fe[1])}catch{}})}},Mi=ji,Vo=[],Co=0,ti=[];function Qn(Fe){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Oe,this._lib=!1;var He=this._PSD=Mi;if(Ie&&(this._stackHolder=Ce(),this._prev=null,this._numPrev=0),"function"!=typeof Fe){if(Fe!==Nt)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Pn(this,this._value))}this._state=null,this._value=null,++He.ref,Jt(this,Fe)}const ei={get:function(){var Fe=Mi,He=li;function wt(Ut,cn){var Ln=!Fe.global&&(Fe!==Mi||He!==li);const $n=Ln&&!Sn();var bi=new Qn((vi,ki)=>{Ii(this,new Rt(ni(Ut,Fe,Ln,$n),ni(cn,Fe,Ln,$n),vi,ki,Fe))});return Ie&&Wo(bi,this),bi}return wt.prototype=Nt,wt},set:function(Fe){v(this,"then",Fe&&Fe.prototype===Nt?ei:{get:function(){return Fe},set:ei.set})}};function Rt(Fe,He,wt,Ut,cn){this.onFulfilled="function"==typeof Fe?Fe:null,this.onRejected="function"==typeof He?He:null,this.resolve=wt,this.reject=Ut,this.psd=cn}function Jt(Fe,He){try{He(wt=>{if(null===Fe._state){if(wt===Fe)throw new TypeError("A promise cannot be resolved with itself.");var Ut=Fe._lib&&hs();wt&&"function"==typeof wt.then?Jt(Fe,(cn,Ln)=>{wt instanceof Qn?wt._then(cn,Ln):wt.then(cn,Ln)}):(Fe._state=!0,Fe._value=wt,Jn(Fe)),Ut&&Ps()}},Pn.bind(null,Fe))}catch(wt){Pn(Fe,wt)}}function Pn(Fe,He){if(rn.push(He),null===Fe._state){var wt=Fe._lib&&hs();He=On(He),Fe._state=!1,Fe._value=He,Ie&&null!==He&&"object"==typeof He&&!He._promise&&function(){try{(()=>{var Ut=B(He,"stack");He._promise=Fe,v(He,"stack",{get:()=>Qe?Ut&&(Ut.get?Ut.get.apply(He):Ut.value):Fe.stack})}).apply(null,void 0)}catch($n){}}(),Ut=Fe,nn.some(cn=>cn._value===Ut._value)||nn.push(Ut),Jn(Fe),wt&&Ps()}var Ut}function Jn(Fe){var He=Fe._listeners;Fe._listeners=[];for(var wt=0,Ut=He.length;wt<Ut;++wt)Ii(Fe,He[wt]);var cn=Fe._PSD;--cn.ref||cn.finalize(),0===Co&&(++Co,yt(()=>{0==--Co&&ls()},[]))}function Ii(Fe,He){if(null!==Fe._state){var wt=Fe._state?He.onFulfilled:He.onRejected;if(null===wt)return(Fe._state?He.resolve:He.reject)(Fe._value);++He.psd.ref,++Co,yt(vo,[wt,Fe,He])}else Fe._listeners.push(He)}function vo(Fe,He,wt){try{Mn=He;var Ut,cn=He._value;He._state?Ut=Fe(cn):(rn.length&&(rn=[]),Ut=Fe(cn),-1===rn.indexOf(cn)&&function(Ln){for(var $n=nn.length;$n;)if(nn[--$n]._value===Ln._value)return void nn.splice($n,1)}(He)),wt.resolve(Ut)}catch(Ln){wt.reject(Ln)}finally{Mn=null,0==--Co&&ls(),--wt.psd.ref||wt.psd.finalize()}}function pi(Fe,He,wt){if(He.length===wt)return He;var Ut="";if(!1===Fe._state){var cn,Ln,$n=Fe._value;null!=$n?(cn=$n.name||"Error",Ln=$n.message||$n,Ut=ye($n,0)):(cn=$n,Ln=""),He.push(cn+(Ln?": "+Ln:"")+Ut)}return Ie&&((Ut=ye(Fe._stackHolder,2))&&-1===He.indexOf(Ut)&&He.push(Ut),Fe._prev&&pi(Fe._prev,He,wt)),He}function Wo(Fe,He){var wt=He?He._numPrev+1:0;wt<100&&(Fe._prev=He,Fe._numPrev=wt)}function To(){hs()&&Ps()}function hs(){var Fe=Gt;return Gt=!1,ft=!1,Fe}function Ps(){var Fe,He,wt;do{for(;Vo.length>0;)for(Fe=Vo,Vo=[],wt=Fe.length,He=0;He<wt;++He){var Ut=Fe[He];Ut[0].apply(null,Ut[1])}}while(Vo.length>0);Gt=!0,ft=!0}function ls(){var Fe=nn;nn=[],Fe.forEach(Ut=>{Ut._PSD.onunhandled.call(null,Ut._value,Ut)});for(var He=ti.slice(0),wt=He.length;wt;)He[--wt]()}function Hs(Fe){return new Qn(Nt,!1,Fe)}function ss(Fe,He){var wt=Mi;return function(){var Ut=hs(),cn=Mi;try{return dn(wt,!0),Fe.apply(this,arguments)}catch(Ln){He&&He(Ln)}finally{dn(cn,!1),Ut&&Ps()}}}w(Qn.prototype,{then:ei,_then:function(Fe,He){Ii(this,new Rt(null,null,Fe,He,Mi))},catch:function(Fe){if(1===arguments.length)return this.then(null,Fe);var He=arguments[0],wt=arguments[1];return this.then(null,"function"==typeof He?Ut=>Ut instanceof He?wt(Ut):Hs(Ut):Ut=>Ut&&Ut.name===He?wt(Ut):Hs(Ut))},finally:function(Fe){return this.then(He=>(Fe(),He),He=>(Fe(),Hs(He)))},stack:{get:function(){if(this._stack)return this._stack;try{Qe=!0;var Fe=pi(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=Fe),Fe}finally{Qe=!1}}},timeout:function(Fe,He){return Fe<1/0?new Qn((wt,Ut)=>{var cn=setTimeout(()=>Ut(new Ke.Timeout(He)),Fe);this.then(wt,Ut).finally(clearTimeout.bind(null,cn))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&v(Qn.prototype,Symbol.toStringTag,"Dexie.Promise"),ji.env=jt(),w(Qn,{all:function(){var Fe=De.apply(null,arguments).map(ri);return new Qn(function(He,wt){0===Fe.length&&He([]);var Ut=Fe.length;Fe.forEach((cn,Ln)=>Qn.resolve(cn).then($n=>{Fe[Ln]=$n,--Ut||He(Fe)},wt))})},resolve:Fe=>{if(Fe instanceof Qn)return Fe;if(Fe&&"function"==typeof Fe.then)return new Qn((wt,Ut)=>{Fe.then(wt,Ut)});var He=new Qn(Nt,!0,Fe);return Wo(He,Mn),He},reject:Hs,race:function(){var Fe=De.apply(null,arguments).map(ri);return new Qn((He,wt)=>{Fe.map(Ut=>Qn.resolve(Ut).then(He,wt))})},PSD:{get:()=>Mi,set:Fe=>Mi=Fe},totalEchoes:{get:()=>li},newPSD:Ni,usePSD:Ot,scheduler:{get:()=>yt,set:Fe=>{yt=Fe}},rejectionMapper:{get:()=>On,set:Fe=>{On=Fe}},follow:(Fe,He)=>new Qn((wt,Ut)=>Ni((cn,Ln)=>{var $n=Mi;$n.unhandleds=[],$n.onunhandled=Ln,$n.finalize=Ue(function(){var bi;bi=()=>{0===this.unhandleds.length?cn():Ln(this.unhandleds[0])},ti.push(function vi(){bi(),ti.splice(ti.indexOf(vi),1)}),++Co,yt(()=>{0==--Co&&ls()},[])},$n.finalize),Fe()},He,wt,Ut))}),Ne&&(Ne.allSettled&&v(Qn,"allSettled",function(){const Fe=De.apply(null,arguments).map(ri);return new Qn(He=>{0===Fe.length&&He([]);let wt=Fe.length;const Ut=new Array(wt);Fe.forEach((cn,Ln)=>Qn.resolve(cn).then($n=>Ut[Ln]={status:"fulfilled",value:$n},$n=>Ut[Ln]={status:"rejected",reason:$n}).then(()=>--wt||He(Ut)))})}),Ne.any&&typeof AggregateError<"u"&&v(Qn,"any",function(){const Fe=De.apply(null,arguments).map(ri);return new Qn((He,wt)=>{0===Fe.length&&wt(new AggregateError([]));let Ut=Fe.length;const cn=new Array(Ut);Fe.forEach((Ln,$n)=>Qn.resolve(Ln).then(bi=>He(bi),bi=>{cn[$n]=bi,--Ut||wt(new AggregateError(cn))}))})}));const qo={awaits:0,echoes:0,id:0};var cs=0,bs=[],Fn=0,li=0,si=0;function Ni(Fe,He,wt,Ut){var cn=Mi,Ln=Object.create(cn);Ln.parent=cn,Ln.ref=0,Ln.global=!1,Ln.id=++si;var $n=ji.env;Ln.env=lt?{Promise:Qn,PromiseProp:{value:Qn,configurable:!0,writable:!0},all:Qn.all,race:Qn.race,allSettled:Qn.allSettled,any:Qn.any,resolve:Qn.resolve,reject:Qn.reject,nthen:Bi($n.nthen,Ln),gthen:Bi($n.gthen,Ln)}:{},He&&T(Ln,He),++cn.ref,Ln.finalize=function(){--this.parent.ref||this.parent.finalize()};var bi=Ot(Ln,Fe,wt,Ut);return 0===Ln.ref&&Ln.finalize(),bi}function Yi(){return qo.id||(qo.id=++cs),++qo.awaits,qo.echoes+=100,qo.id}function Sn(){return!!qo.awaits&&(0==--qo.awaits&&(qo.id=0),qo.echoes=100*qo.awaits,!0)}function ri(Fe){return qo.echoes&&Fe&&Fe.constructor===Ne?(Yi(),Fe.then(He=>(Sn(),He),He=>(Sn(),mo(He)))):Fe}function It(Fe){++li,qo.echoes&&0!=--qo.echoes||(qo.echoes=qo.id=0),bs.push(Mi),dn(Fe,!0)}function Pt(){var Fe=bs[bs.length-1];bs.pop(),dn(Fe,!1)}function dn(Fe,He){var wt=Mi;if((He?!qo.echoes||Fn++&&Fe===Mi:!Fn||--Fn&&Fe===Mi)||Tn(He?It.bind(null,Fe):Pt),Fe!==Mi&&(Mi=Fe,wt===ji&&(ji.env=jt()),lt)){var Ut=ji.env.Promise,cn=Fe.env;me.then=cn.nthen,Ut.prototype.then=cn.gthen,(wt.global||Fe.global)&&(Object.defineProperty(S,"Promise",cn.PromiseProp),Ut.all=cn.all,Ut.race=cn.race,Ut.resolve=cn.resolve,Ut.reject=cn.reject,cn.allSettled&&(Ut.allSettled=cn.allSettled),cn.any&&(Ut.any=cn.any))}}function jt(){var Fe=S.Promise;return lt?{Promise:Fe,PromiseProp:Object.getOwnPropertyDescriptor(S,"Promise"),all:Fe.all,race:Fe.race,allSettled:Fe.allSettled,any:Fe.any,resolve:Fe.resolve,reject:Fe.reject,nthen:me.then,gthen:Fe.prototype.then}:{}}function Ot(Fe,He,wt,Ut,cn){var Ln=Mi;try{return dn(Fe,!0),He(wt,Ut,cn)}finally{dn(Ln,!1)}}function Tn(Fe){je.call(ue,Fe)}function ni(Fe,He,wt,Ut){return"function"!=typeof Fe?Fe:function(){var cn=Mi;wt&&Yi(),dn(He,!0);try{return Fe.apply(this,arguments)}finally{dn(cn,!1),Ut&&Tn(Sn)}}}function Bi(Fe,He){return function(wt,Ut){return Fe.call(this,ni(wt,He),ni(Ut,He))}}-1===(""+je).indexOf("[native code]")&&(Yi=Sn=Oe);const Zi="unhandledrejection";function ro(Fe,He){var wt;try{wt=He.onuncatched(Fe)}catch{}if(!1!==wt)try{var Ut,cn={promise:He,reason:Fe};if(S.document&&document.createEvent?((Ut=document.createEvent("Event")).initEvent(Zi,!0,!0),T(Ut,cn)):S.CustomEvent&&T(Ut=new CustomEvent(Zi,{detail:cn}),cn),Ut&&S.dispatchEvent&&(dispatchEvent(Ut),!S.PromiseRejectionEvent&&S.onunhandledrejection))try{S.onunhandledrejection(Ut)}catch{}Ie&&Ut&&!Ut.defaultPrevented&&console.warn(`Unhandled rejection: ${Fe.stack||Fe}`)}catch{}}var mo=Qn.reject;function ho(Fe,He,wt,Ut){if(Fe.idbdb&&(Fe._state.openComplete||Mi.letThrough||Fe._vip)){var cn=Fe._createTransaction(He,wt,Fe._dbSchema);try{cn.create(),Fe._state.PR1398_maxLoop=3}catch(Ln){return Ln.name===Ee.InvalidState&&Fe.isOpen()&&--Fe._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),Fe._close(),Fe.open().then(()=>ho(Fe,He,wt,Ut))):mo(Ln)}return cn._promise(He,(Ln,$n)=>Ni(()=>(Mi.trans=cn,Ut(Ln,$n,cn)))).then(Ln=>cn._completion.then(()=>Ln))}if(Fe._state.openComplete)return mo(new Ke.DatabaseClosed(Fe._state.dbOpenError));if(!Fe._state.isBeingOpened){if(!Fe._options.autoOpen)return mo(new Ke.DatabaseClosed);Fe.open().catch(Oe)}return Fe._state.dbReadyPromise.then(()=>ho(Fe,He,wt,Ut))}const jn=-1/0,ai="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",$i="String expected.",zi=[],_o=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),$o=_o,gs=_o,xn=Fe=>!/(dexie\.js|dexie\.min\.js)/.test(Fe),Bn="__dbnames",Gn="readonly",Ri="readwrite";function Xi(Fe,He){return Fe?He?function(){return Fe.apply(this,arguments)&&He.apply(this,arguments)}:Fe:He}const Oo={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Fo(Fe){return"string"!=typeof Fe||/\./.test(Fe)?He=>He:He=>(void 0===He[Fe]&&Fe in He&&delete(He=K(He))[Fe],He)}class Vs{_trans(He,wt,Ut){const cn=this._tx||Mi.trans,Ln=this.name;function $n(vi,ki,Si){if(!Si.schema[Ln])throw new Ke.NotFound("Table "+Ln+" not part of transaction");return wt(Si.idbtrans,Si)}const bi=hs();try{return cn&&cn.db===this.db?cn===Mi.trans?cn._promise(He,$n,Ut):Ni(()=>cn._promise(He,$n,Ut),{trans:cn,transless:Mi.transless||Mi}):ho(this.db,He,[this.name],$n)}finally{bi&&Ps()}}get(He,wt){return He&&He.constructor===Object?this.where(He).first(wt):this._trans("readonly",Ut=>this.core.get({trans:Ut,key:He}).then(cn=>this.hook.reading.fire(cn))).then(wt)}where(He){if("string"==typeof He)return new this.db.WhereClause(this,He);if(m(He))return new this.db.WhereClause(this,`[${He.join("+")}]`);const wt=d(He);if(1===wt.length)return this.where(wt[0]).equals(He[wt[0]]);const Ut=this.schema.indexes.concat(this.schema.primKey).filter(ki=>{if(ki.compound&&wt.every(Si=>ki.keyPath.indexOf(Si)>=0)){for(let Si=0;Si<wt.length;++Si)if(-1===wt.indexOf(ki.keyPath[Si]))return!1;return!0}return!1}).sort((ki,Si)=>ki.keyPath.length-Si.keyPath.length)[0];if(Ut&&"\uffff"!==this.db._maxKey){const ki=Ut.keyPath.slice(0,wt.length);return this.where(ki).equals(ki.map(Si=>He[Si]))}!Ut&&Ie&&console.warn(`The query ${JSON.stringify(He)} on ${this.name} would benefit of a compound index [${wt.join("+")}]`);const{idxByName:cn}=this.schema,Ln=this.db._deps.indexedDB;function $n(ki,Si){try{return 0===Ln.cmp(ki,Si)}catch{return!1}}const[bi,vi]=wt.reduce(([ki,Si],Wi)=>{const Pi=cn[Wi],oo=He[Wi];return[ki||Pi,ki||!Pi?Xi(Si,Pi&&Pi.multi?Do=>{const Ht=M(Do,Wi);return m(Ht)&&Ht.some(Mt=>$n(oo,Mt))}:Do=>$n(oo,M(Do,Wi))):Si]},[null,null]);return bi?this.where(bi.name).equals(He[bi.keyPath]).filter(vi):Ut?this.filter(vi):this.where(wt).equals("")}filter(He){return this.toCollection().and(He)}count(He){return this.toCollection().count(He)}offset(He){return this.toCollection().offset(He)}limit(He){return this.toCollection().limit(He)}each(He){return this.toCollection().each(He)}toArray(He){return this.toCollection().toArray(He)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(He){return new this.db.Collection(new this.db.WhereClause(this,m(He)?`[${He.join("+")}]`:He))}reverse(){return this.toCollection().reverse()}mapToClass(He){this.schema.mappedClass=He;const wt=Ut=>{if(!Ut)return Ut;const cn=Object.create(He.prototype);for(var Ln in Ut)if(k(Ut,Ln))try{cn[Ln]=Ut[Ln]}catch{}return cn};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=wt,this.hook("reading",wt),He}defineClass(){return this.mapToClass(function(He){T(this,He)})}add(He,wt){const{auto:Ut,keyPath:cn}=this.schema.primKey;let Ln=He;return cn&&Ut&&(Ln=Fo(cn)(He)),this._trans("readwrite",$n=>this.core.mutate({trans:$n,type:"add",keys:null!=wt?[wt]:null,values:[Ln]})).then($n=>$n.numFailures?Qn.reject($n.failures[0]):$n.lastResult).then($n=>{if(cn)try{H(He,cn,$n)}catch{}return $n})}update(He,wt){if("object"!=typeof He||m(He))return this.where(":id").equals(He).modify(wt);{const Ut=M(He,this.schema.primKey.keyPath);if(void 0===Ut)return mo(new Ke.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof wt?d(wt).forEach(cn=>{H(He,cn,wt[cn])}):wt(He,{value:He,primKey:Ut})}catch{}return this.where(":id").equals(Ut).modify(wt)}}put(He,wt){const{auto:Ut,keyPath:cn}=this.schema.primKey;let Ln=He;return cn&&Ut&&(Ln=Fo(cn)(He)),this._trans("readwrite",$n=>this.core.mutate({trans:$n,type:"put",values:[Ln],keys:null!=wt?[wt]:null})).then($n=>$n.numFailures?Qn.reject($n.failures[0]):$n.lastResult).then($n=>{if(cn)try{H(He,cn,$n)}catch{}return $n})}delete(He){return this._trans("readwrite",wt=>this.core.mutate({trans:wt,type:"delete",keys:[He]})).then(wt=>wt.numFailures?Qn.reject(wt.failures[0]):void 0)}clear(){return this._trans("readwrite",He=>this.core.mutate({trans:He,type:"deleteRange",range:Oo})).then(He=>He.numFailures?Qn.reject(He.failures[0]):void 0)}bulkGet(He){return this._trans("readonly",wt=>this.core.getMany({keys:He,trans:wt}).then(Ut=>Ut.map(cn=>this.hook.reading.fire(cn))))}bulkAdd(He,wt,Ut){const cn=Array.isArray(wt)?wt:void 0,Ln=(Ut=Ut||(cn?void 0:wt))?Ut.allKeys:void 0;return this._trans("readwrite",$n=>{const{auto:bi,keyPath:vi}=this.schema.primKey;if(vi&&cn)throw new Ke.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(cn&&cn.length!==He.length)throw new Ke.InvalidArgument("Arguments objects and keys must have the same length");const ki=He.length;let Si=vi&&bi?He.map(Fo(vi)):He;return this.core.mutate({trans:$n,type:"add",keys:cn,values:Si,wantResults:Ln}).then(({numFailures:Wi,results:Pi,lastResult:oo,failures:Do})=>{if(0===Wi)return Ln?Pi:oo;throw new pe(`${this.name}.bulkAdd(): ${Wi} of ${ki} operations failed`,Do)})})}bulkPut(He,wt,Ut){const cn=Array.isArray(wt)?wt:void 0,Ln=(Ut=Ut||(cn?void 0:wt))?Ut.allKeys:void 0;return this._trans("readwrite",$n=>{const{auto:bi,keyPath:vi}=this.schema.primKey;if(vi&&cn)throw new Ke.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(cn&&cn.length!==He.length)throw new Ke.InvalidArgument("Arguments objects and keys must have the same length");const ki=He.length;let Si=vi&&bi?He.map(Fo(vi)):He;return this.core.mutate({trans:$n,type:"put",keys:cn,values:Si,wantResults:Ln}).then(({numFailures:Wi,results:Pi,lastResult:oo,failures:Do})=>{if(0===Wi)return Ln?Pi:oo;throw new pe(`${this.name}.bulkPut(): ${Wi} of ${ki} operations failed`,Do)})})}bulkDelete(He){const wt=He.length;return this._trans("readwrite",Ut=>this.core.mutate({trans:Ut,type:"delete",keys:He})).then(({numFailures:Ut,lastResult:cn,failures:Ln})=>{if(0===Ut)return cn;throw new pe(`${this.name}.bulkDelete(): ${Ut} of ${wt} operations failed`,Ln)})}}function fs(Fe){var He={},wt=function($n,bi){if(bi){for(var vi=arguments.length,ki=new Array(vi-1);--vi;)ki[vi-1]=arguments[vi];return He[$n].subscribe.apply(null,ki),Fe}if("string"==typeof $n)return He[$n]};wt.addEventType=Ln;for(var Ut=1,cn=arguments.length;Ut<cn;++Ut)Ln(arguments[Ut]);return wt;function Ln($n,bi,vi){if("object"!=typeof $n){var ki;bi||(bi=Vt),vi||(vi=Oe);var Si={subscribers:[],fire:vi,subscribe:function(Wi){-1===Si.subscribers.indexOf(Wi)&&(Si.subscribers.push(Wi),Si.fire=bi(Si.fire,Wi))},unsubscribe:function(Wi){Si.subscribers=Si.subscribers.filter(function(Pi){return Pi!==Wi}),Si.fire=Si.subscribers.reduce(bi,vi)}};return He[$n]=wt[$n]=Si,Si}d(ki=$n).forEach(function(Wi){var Pi=ki[Wi];if(m(Pi))Ln(Wi,ki[Wi][0],ki[Wi][1]);else{if("asap"!==Pi)throw new Ke.InvalidArgument("Invalid event config");var oo=Ln(Wi,fe,function(){for(var Do=arguments.length,Ht=new Array(Do);Do--;)Ht[Do]=arguments[Do];oo.subscribers.forEach(function(Mt){Z(function(){Mt.apply(null,Ht)})})})}})}}function zt(Fe,He){return x(He).from({prototype:Fe}),He}function zn(Fe,He){return!(Fe.filter||Fe.algorithm||Fe.or)&&(He?Fe.justLimit:!Fe.replayFilter)}function pn(Fe,He){Fe.filter=Xi(Fe.filter,He)}function An(Fe,He,wt){var Ut=Fe.replayFilter;Fe.replayFilter=Ut?()=>Xi(Ut(),He()):He,Fe.justLimit=wt&&!Ut}function fi(Fe,He){if(Fe.isPrimKey)return He.primaryKey;const wt=He.getIndexByKeyPath(Fe.index);if(!wt)throw new Ke.Schema("KeyPath "+Fe.index+" on object store "+He.name+" is not indexed");return wt}function qi(Fe,He,wt){const Ut=fi(Fe,He.schema);return He.openCursor({trans:wt,values:!Fe.keysOnly,reverse:"prev"===Fe.dir,unique:!!Fe.unique,query:{index:Ut,range:Fe.range}})}function So(Fe,He,wt,Ut){const cn=Fe.replayFilter?Xi(Fe.filter,Fe.replayFilter()):Fe.filter;if(Fe.or){const Ln={},$n=(bi,vi,ki)=>{if(!cn||cn(vi,ki,Pi=>vi.stop(Pi),Pi=>vi.fail(Pi))){var Si=vi.primaryKey,Wi=""+Si;"[object ArrayBuffer]"===Wi&&(Wi=""+new Uint8Array(Si)),k(Ln,Wi)||(Ln[Wi]=!0,He(bi,vi,ki))}};return Promise.all([Fe.or._iterate($n,wt),Go(qi(Fe,Ut,wt),Fe.algorithm,$n,!Fe.keysOnly&&Fe.valueMapper)])}return Go(qi(Fe,Ut,wt),Xi(Fe.algorithm,cn),He,!Fe.keysOnly&&Fe.valueMapper)}function Go(Fe,He,wt,Ut){var cn=ss(Ut?(Ln,$n,bi)=>wt(Ut(Ln),$n,bi):wt);return Fe.then(Ln=>{if(Ln)return Ln.start(()=>{var $n=()=>Ln.continue();He&&!He(Ln,bi=>$n=bi,bi=>{Ln.stop(bi),$n=Oe},bi=>{Ln.fail(bi),$n=Oe})||cn(Ln.value,Ln,bi=>$n=bi),$n()})})}function xs(Fe,He){try{const wt=Rs(Fe),Ut=Rs(He);if(wt!==Ut)return"Array"===wt?1:"Array"===Ut?-1:"binary"===wt?1:"binary"===Ut?-1:"string"===wt?1:"string"===Ut?-1:"Date"===wt?1:"Date"!==Ut?NaN:-1;switch(wt){case"number":case"Date":case"string":return Fe>He?1:Fe<He?-1:0;case"binary":return function(cn,Ln){const $n=cn.length,bi=Ln.length,vi=$n<bi?$n:bi;for(let ki=0;ki<vi;++ki)if(cn[ki]!==Ln[ki])return cn[ki]<Ln[ki]?-1:1;return $n===bi?0:$n<bi?-1:1}(ks(Fe),ks(He));case"Array":return function(cn,Ln){const $n=cn.length,bi=Ln.length,vi=$n<bi?$n:bi;for(let ki=0;ki<vi;++ki){const Si=xs(cn[ki],Ln[ki]);if(0!==Si)return Si}return $n===bi?0:$n<bi?-1:1}(Fe,He)}}catch{}return NaN}function Rs(Fe){const He=typeof Fe;if("object"!==He)return He;if(ArrayBuffer.isView(Fe))return"binary";const wt=be(Fe);return"ArrayBuffer"===wt?"binary":wt}function ks(Fe){return Fe instanceof Uint8Array?Fe:ArrayBuffer.isView(Fe)?new Uint8Array(Fe.buffer,Fe.byteOffset,Fe.byteLength):new Uint8Array(Fe)}class _s{_read(He,wt){var Ut=this._ctx;return Ut.error?Ut.table._trans(null,mo.bind(null,Ut.error)):Ut.table._trans("readonly",He).then(wt)}_write(He){var wt=this._ctx;return wt.error?wt.table._trans(null,mo.bind(null,wt.error)):wt.table._trans("readwrite",He,"locked")}_addAlgorithm(He){var wt=this._ctx;wt.algorithm=Xi(wt.algorithm,He)}_iterate(He,wt){return So(this._ctx,He,wt,this._ctx.table.core)}clone(He){var wt=Object.create(this.constructor.prototype),Ut=Object.create(this._ctx);return He&&T(Ut,He),wt._ctx=Ut,wt}raw(){return this._ctx.valueMapper=null,this}each(He){var wt=this._ctx;return this._read(Ut=>So(wt,He,Ut,wt.table.core))}count(He){return this._read(wt=>{const Ut=this._ctx,cn=Ut.table.core;if(zn(Ut,!0))return cn.count({trans:wt,query:{index:fi(Ut,cn.schema),range:Ut.range}}).then($n=>Math.min($n,Ut.limit));var Ln=0;return So(Ut,()=>(++Ln,!1),wt,cn).then(()=>Ln)}).then(He)}sortBy(He,wt){const Ut=He.split(".").reverse(),cn=Ut[0],Ln=Ut.length-1;function $n(ki,Si){return Si?$n(ki[Ut[Si]],Si-1):ki[cn]}var bi="next"===this._ctx.dir?1:-1;function vi(ki,Si){var Wi=$n(ki,Ln),Pi=$n(Si,Ln);return Wi<Pi?-bi:Wi>Pi?bi:0}return this.toArray(function(ki){return ki.sort(vi)}).then(wt)}toArray(He){return this._read(wt=>{var Ut=this._ctx;if("next"===Ut.dir&&zn(Ut,!0)&&Ut.limit>0){const{valueMapper:cn}=Ut,Ln=fi(Ut,Ut.table.core.schema);return Ut.table.core.query({trans:wt,limit:Ut.limit,values:!0,query:{index:Ln,range:Ut.range}}).then(({result:$n})=>cn?$n.map(cn):$n)}{const cn=[];return So(Ut,Ln=>cn.push(Ln),wt,Ut.table.core).then(()=>cn)}},He)}offset(He){var wt=this._ctx;return He<=0||(wt.offset+=He,zn(wt)?An(wt,()=>{var Ut=He;return(cn,Ln)=>0===Ut||(1===Ut?(--Ut,!1):(Ln(()=>{cn.advance(Ut),Ut=0}),!1))}):An(wt,()=>{var Ut=He;return()=>--Ut<0})),this}limit(He){return this._ctx.limit=Math.min(this._ctx.limit,He),An(this._ctx,()=>{var wt=He;return function(Ut,cn,Ln){return--wt<=0&&cn(Ln),wt>=0}},!0),this}until(He,wt){return pn(this._ctx,function(Ut,cn,Ln){return!He(Ut.value)||(cn(Ln),wt)}),this}first(He){return this.limit(1).toArray(function(wt){return wt[0]}).then(He)}last(He){return this.reverse().first(He)}filter(He){var wt;return pn(this._ctx,function(cn){return He(cn.value)}),(wt=this._ctx).isMatch=Xi(wt.isMatch,He),this}and(He){return this.filter(He)}or(He){return new this.db.WhereClause(this._ctx.table,He,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(He){var wt=this._ctx;return wt.keysOnly=!wt.isMatch,this.each(function(Ut,cn){He(cn.key,cn)})}eachUniqueKey(He){return this._ctx.unique="unique",this.eachKey(He)}eachPrimaryKey(He){var wt=this._ctx;return wt.keysOnly=!wt.isMatch,this.each(function(Ut,cn){He(cn.primaryKey,cn)})}keys(He){var wt=this._ctx;wt.keysOnly=!wt.isMatch;var Ut=[];return this.each(function(cn,Ln){Ut.push(Ln.key)}).then(function(){return Ut}).then(He)}primaryKeys(He){var wt=this._ctx;if("next"===wt.dir&&zn(wt,!0)&&wt.limit>0)return this._read(cn=>{var Ln=fi(wt,wt.table.core.schema);return wt.table.core.query({trans:cn,values:!1,limit:wt.limit,query:{index:Ln,range:wt.range}})}).then(({result:cn})=>cn).then(He);wt.keysOnly=!wt.isMatch;var Ut=[];return this.each(function(cn,Ln){Ut.push(Ln.primaryKey)}).then(function(){return Ut}).then(He)}uniqueKeys(He){return this._ctx.unique="unique",this.keys(He)}firstKey(He){return this.limit(1).keys(function(wt){return wt[0]}).then(He)}lastKey(He){return this.reverse().firstKey(He)}distinct(){var He=this._ctx,wt=He.index&&He.table.schema.idxByName[He.index];if(!wt||!wt.multi)return this;var Ut={};return pn(this._ctx,function(cn){var Ln=cn.primaryKey.toString(),$n=k(Ut,Ln);return Ut[Ln]=!0,!$n}),this}modify(He){var wt=this._ctx;return this._write(Ut=>{var cn;if("function"==typeof He)cn=He;else{var Ln=d(He),$n=Ln.length;cn=function(Ht){for(var Mt=!1,bt=0;bt<$n;++bt){var an=Ln[bt],Un=He[an];M(Ht,an)!==Un&&(H(Ht,an,Un),Mt=!0)}return Mt}}const bi=wt.table.core,{outbound:vi,extractKey:ki}=bi.schema.primaryKey,Si=this.db._options.modifyChunkSize||200,Wi=[];let Pi=0;const oo=[],Do=(Ht,Mt)=>{const{failures:bt,numFailures:an}=Mt;Pi+=Ht-an;for(let Un of d(bt))Wi.push(bt[Un])};return this.clone().primaryKeys().then(Ht=>{const Mt=bt=>{const an=Math.min(Si,Ht.length-bt);return bi.getMany({trans:Ut,keys:Ht.slice(bt,bt+an),cache:"immutable"}).then(Un=>{const di=[],qn=[],Ti=vi?[]:null,Qi=[];for(let eo=0;eo<an;++eo){const os=Un[eo],as={value:K(os),primKey:Ht[bt+eo]};!1!==cn.call(as,as.value,as)&&(null==as.value?Qi.push(Ht[bt+eo]):vi||0===xs(ki(os),ki(as.value))?(qn.push(as.value),vi&&Ti.push(Ht[bt+eo])):(Qi.push(Ht[bt+eo]),di.push(as.value)))}const go=zn(wt)&&wt.limit===1/0&&("function"!=typeof He||He===Bs)&&{index:wt.index,range:wt.range};return Promise.resolve(di.length>0&&bi.mutate({trans:Ut,type:"add",values:di}).then(eo=>{for(let os in eo.failures)Qi.splice(parseInt(os),1);Do(di.length,eo)})).then(()=>(qn.length>0||go&&"object"==typeof He)&&bi.mutate({trans:Ut,type:"put",keys:Ti,values:qn,criteria:go,changeSpec:"function"!=typeof He&&He}).then(eo=>Do(qn.length,eo))).then(()=>(Qi.length>0||go&&He===Bs)&&bi.mutate({trans:Ut,type:"delete",keys:Qi,criteria:go}).then(eo=>Do(Qi.length,eo))).then(()=>Ht.length>bt+an&&Mt(bt+Si))})};return Mt(0).then(()=>{if(Wi.length>0)throw new Ae("Error modifying one or more objects",Wi,Pi,oo);return Ht.length})})})}delete(){var He=this._ctx,wt=He.range;return zn(He)&&(He.isPrimKey&&!gs||3===wt.type)?this._write(Ut=>{const{primaryKey:cn}=He.table.core.schema,Ln=wt;return He.table.core.count({trans:Ut,query:{index:cn,range:Ln}}).then($n=>He.table.core.mutate({trans:Ut,type:"deleteRange",range:Ln}).then(({failures:bi,numFailures:Si})=>{if(Si)throw new Ae("Could not delete some values",Object.keys(bi).map(Wi=>bi[Wi]),$n-Si);return $n-Si}))}):this.modify(Bs)}}const Bs=(Fe,He)=>He.value=null;function Ss(Fe,He){return Fe<He?-1:Fe===He?0:1}function Et(Fe,He){return Fe>He?-1:Fe===He?0:1}function en(Fe,He,wt){var Ut=Fe instanceof Yt?new Fe.Collection(Fe):Fe;return Ut._ctx.error=wt?new wt(He):new TypeError(He),Ut}function Dn(Fe){return new Fe.Collection(Fe,()=>ut("")).limit(0)}function Zn(Fe,He,wt,Ut,cn,Ln){for(var $n=Math.min(Fe.length,Ut.length),bi=-1,vi=0;vi<$n;++vi){var ki=He[vi];if(ki!==Ut[vi])return cn(Fe[vi],wt[vi])<0?Fe.substr(0,vi)+wt[vi]+wt.substr(vi+1):cn(Fe[vi],Ut[vi])<0?Fe.substr(0,vi)+Ut[vi]+wt.substr(vi+1):bi>=0?Fe.substr(0,bi)+He[bi]+wt.substr(bi+1):null;cn(Fe[vi],ki)<0&&(bi=vi)}return $n<Ut.length&&"next"===Ln?Fe+wt.substr(Fe.length):$n<Fe.length&&"prev"===Ln?Fe.substr(0,wt.length):bi<0?null:Fe.substr(0,bi)+Ut[bi]+wt.substr(bi+1)}function gi(Fe,He,wt,Ut){var cn,Ln,$n,bi,vi,ki,Si,Wi=wt.length;if(!wt.every(Ht=>"string"==typeof Ht))return en(Fe,$i);function Pi(Ht){cn=function(bt){return"next"===bt?an=>an.toUpperCase():an=>an.toLowerCase()}(Ht),Ln=function(bt){return"next"===bt?an=>an.toLowerCase():an=>an.toUpperCase()}(Ht),$n="next"===Ht?Ss:Et;var Mt=wt.map(function(bt){return{lower:Ln(bt),upper:cn(bt)}}).sort(function(bt,an){return $n(bt.lower,an.lower)});bi=Mt.map(function(bt){return bt.upper}),vi=Mt.map(function(bt){return bt.lower}),ki=Ht,Si="next"===Ht?"":Ut}Pi("next");var oo=new Fe.Collection(Fe,()=>mi(bi[0],vi[Wi-1]+Ut));oo._ondirectionchange=function(Ht){Pi(Ht)};var Do=0;return oo._addAlgorithm(function(Ht,Mt,bt){var an=Ht.key;if("string"!=typeof an)return!1;var Un=Ln(an);if(He(Un,vi,Do))return!0;for(var di=null,qn=Do;qn<Wi;++qn){var Ti=Zn(an,Un,bi[qn],vi[qn],$n,ki);null===Ti&&null===di?Do=qn+1:(null===di||$n(di,Ti)>0)&&(di=Ti)}return Mt(null!==di?function(){Ht.continue(di+Si)}:bt),!1}),oo}function mi(Fe,He,wt,Ut){return{type:2,lower:Fe,upper:He,lowerOpen:wt,upperOpen:Ut}}function ut(Fe){return{type:1,lower:Fe,upper:Fe}}class Yt{get Collection(){return this._ctx.table.db.Collection}between(He,wt,Ut,cn){Ut=!1!==Ut,cn=!0===cn;try{return this._cmp(He,wt)>0||0===this._cmp(He,wt)&&(Ut||cn)&&(!Ut||!cn)?Dn(this):new this.Collection(this,()=>mi(He,wt,!Ut,!cn))}catch{return en(this,ai)}}equals(He){return null==He?en(this,ai):new this.Collection(this,()=>ut(He))}above(He){return null==He?en(this,ai):new this.Collection(this,()=>mi(He,void 0,!0))}aboveOrEqual(He){return null==He?en(this,ai):new this.Collection(this,()=>mi(He,void 0,!1))}below(He){return null==He?en(this,ai):new this.Collection(this,()=>mi(void 0,He,!1,!0))}belowOrEqual(He){return null==He?en(this,ai):new this.Collection(this,()=>mi(void 0,He))}startsWith(He){return"string"!=typeof He?en(this,$i):this.between(He,He+"\uffff",!0,!0)}startsWithIgnoreCase(He){return""===He?this.startsWith(He):gi(this,(wt,Ut)=>0===wt.indexOf(Ut[0]),[He],"\uffff")}equalsIgnoreCase(He){return gi(this,(wt,Ut)=>wt===Ut[0],[He],"")}anyOfIgnoreCase(){var He=De.apply(Se,arguments);return 0===He.length?Dn(this):gi(this,(wt,Ut)=>-1!==Ut.indexOf(wt),He,"")}startsWithAnyOfIgnoreCase(){var He=De.apply(Se,arguments);return 0===He.length?Dn(this):gi(this,(wt,Ut)=>Ut.some(cn=>0===wt.indexOf(cn)),He,"\uffff")}anyOf(){const He=De.apply(Se,arguments);let wt=this._cmp;try{He.sort(wt)}catch{return en(this,ai)}if(0===He.length)return Dn(this);const Ut=new this.Collection(this,()=>mi(He[0],He[He.length-1]));Ut._ondirectionchange=Ln=>{wt="next"===Ln?this._ascending:this._descending,He.sort(wt)};let cn=0;return Ut._addAlgorithm((Ln,$n,bi)=>{const vi=Ln.key;for(;wt(vi,He[cn])>0;)if(++cn,cn===He.length)return $n(bi),!1;return 0===wt(vi,He[cn])||($n(()=>{Ln.continue(He[cn])}),!1)}),Ut}notEqual(He){return this.inAnyRange([[jn,He],[He,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const He=De.apply(Se,arguments);if(0===He.length)return new this.Collection(this);try{He.sort(this._ascending)}catch{return en(this,ai)}const wt=He.reduce((Ut,cn)=>Ut?Ut.concat([[Ut[Ut.length-1][1],cn]]):[[jn,cn]],null);return wt.push([He[He.length-1],this.db._maxKey]),this.inAnyRange(wt,{includeLowers:!1,includeUppers:!1})}inAnyRange(He,wt){const Ut=this._cmp,cn=this._ascending,Ln=this._descending,$n=this._min,bi=this._max;if(0===He.length)return Dn(this);if(!He.every(an=>void 0!==an[0]&&void 0!==an[1]&&cn(an[0],an[1])<=0))return en(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ke.InvalidArgument);const vi=!wt||!1!==wt.includeLowers,ki=wt&&!0===wt.includeUppers;let Si,Wi=cn;function Pi(an,Un){return Wi(an[0],Un[0])}try{Si=He.reduce(function(an,Un){let di=0,qn=an.length;for(;di<qn;++di){const Ti=an[di];if(Ut(Un[0],Ti[1])<0&&Ut(Un[1],Ti[0])>0){Ti[0]=$n(Ti[0],Un[0]),Ti[1]=bi(Ti[1],Un[1]);break}}return di===qn&&an.push(Un),an},[]),Si.sort(Pi)}catch{return en(this,ai)}let oo=0;const Do=ki?an=>cn(an,Si[oo][1])>0:an=>cn(an,Si[oo][1])>=0,Ht=vi?an=>Ln(an,Si[oo][0])>0:an=>Ln(an,Si[oo][0])>=0;let Mt=Do;const bt=new this.Collection(this,()=>mi(Si[0][0],Si[Si.length-1][1],!vi,!ki));return bt._ondirectionchange=an=>{"next"===an?(Mt=Do,Wi=cn):(Mt=Ht,Wi=Ln),Si.sort(Pi)},bt._addAlgorithm((an,Un,di)=>{for(var qn=an.key;Mt(qn);)if(++oo,oo===Si.length)return Un(di),!1;return!((Do(Ti=qn)||Ht(Ti))&&(0===this._cmp(qn,Si[oo][1])||0===this._cmp(qn,Si[oo][0])||Un(()=>{an.continue(Wi===cn?Si[oo][0]:Si[oo][1])}),1));var Ti}),bt}startsWithAnyOf(){const He=De.apply(Se,arguments);return He.every(wt=>"string"==typeof wt)?0===He.length?Dn(this):this.inAnyRange(He.map(wt=>[wt,wt+"\uffff"])):en(this,"startsWithAnyOf() only works with strings")}}function Dt(Fe){return ss(function(He){return mn(He),Fe(He.target.error),!1})}function mn(Fe){Fe.stopPropagation&&Fe.stopPropagation(),Fe.preventDefault&&Fe.preventDefault()}const Yn="storagemutated",xi="x-storagemutated-1",Ki=fs(null,Yn);class Ro{_lock(){return U(!Mi.global),++this._reculock,1!==this._reculock||Mi.global||(Mi.lockOwnerFor=this),this}_unlock(){if(U(!Mi.global),0==--this._reculock)for(Mi.global||(Mi.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var He=this._blockedFuncs.shift();try{Ot(He[1],He[0])}catch{}}return this}_locked(){return this._reculock&&Mi.lockOwnerFor!==this}create(He){if(!this.mode)return this;const wt=this.db.idbdb,Ut=this.db._state.dbOpenError;if(U(!this.idbtrans),!He&&!wt)switch(Ut&&Ut.name){case"DatabaseClosedError":throw new Ke.DatabaseClosed(Ut);case"MissingAPIError":throw new Ke.MissingAPI(Ut.message,Ut);default:throw new Ke.OpenFailed(Ut)}if(!this.active)throw new Ke.TransactionInactive;return U(null===this._completion._state),(He=this.idbtrans=He||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):wt.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=ss(cn=>{mn(cn),this._reject(He.error)}),He.onabort=ss(cn=>{mn(cn),this.active&&this._reject(new Ke.Abort(He.error)),this.active=!1,this.on("abort").fire(cn)}),He.oncomplete=ss(()=>{this.active=!1,this._resolve(),"mutatedParts"in He&&Ki.storagemutated.fire(He.mutatedParts)}),this}_promise(He,wt,Ut){if("readwrite"===He&&"readwrite"!==this.mode)return mo(new Ke.ReadOnly("Transaction is readonly"));if(!this.active)return mo(new Ke.TransactionInactive);if(this._locked())return new Qn((Ln,$n)=>{this._blockedFuncs.push([()=>{this._promise(He,wt,Ut).then(Ln,$n)},Mi])});if(Ut)return Ni(()=>{var Ln=new Qn(($n,bi)=>{this._lock();const vi=wt($n,bi,this);vi&&vi.then&&vi.then($n,bi)});return Ln.finally(()=>this._unlock()),Ln._lib=!0,Ln});var cn=new Qn((Ln,$n)=>{var bi=wt(Ln,$n,this);bi&&bi.then&&bi.then(Ln,$n)});return cn._lib=!0,cn}_root(){return this.parent?this.parent._root():this}waitFor(He){var wt=this._root();const Ut=Qn.resolve(He);if(wt._waitingFor)wt._waitingFor=wt._waitingFor.then(()=>Ut);else{wt._waitingFor=Ut,wt._waitingQueue=[];var cn=wt.idbtrans.objectStore(wt.storeNames[0]);!function $n(){for(++wt._spinCount;wt._waitingQueue.length;)wt._waitingQueue.shift()();wt._waitingFor&&(cn.get(-1/0).onsuccess=$n)}()}var Ln=wt._waitingFor;return new Qn(($n,bi)=>{Ut.then(vi=>wt._waitingQueue.push(ss($n.bind(null,vi))),vi=>wt._waitingQueue.push(ss(bi.bind(null,vi)))).finally(()=>{wt._waitingFor===Ln&&(wt._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Ke.Abort))}table(He){const wt=this._memoizedTables||(this._memoizedTables={});if(k(wt,He))return wt[He];const Ut=this.schema[He];if(!Ut)throw new Ke.NotFound("Table "+He+" not part of transaction");const cn=new this.db.Table(He,Ut,this);return cn.core=this.db.core.table(He),wt[He]=cn,cn}}function yo(Fe,He,wt,Ut,cn,Ln,$n){return{name:Fe,keyPath:He,unique:wt,multi:Ut,auto:cn,compound:Ln,src:(wt&&!$n?"&":"")+(Ut?"*":"")+(cn?"++":"")+ko(He)}}function ko(Fe){return"string"==typeof Fe?Fe:Fe?"["+[].join.call(Fe,"+")+"]":""}function Ho(Fe,He,wt){return{name:Fe,primKey:He,indexes:wt,mappedClass:null,idxByName:A(wt,Ut=>[Ut.name,Ut])}}let ms=Fe=>{try{return Fe.only([[]]),ms=()=>[[]],[[]]}catch{return ms=()=>"\uffff","\uffff"}};function ds(Fe){return null==Fe?()=>{}:"string"==typeof Fe?1===(He=Fe).split(".").length?Ut=>Ut[He]:Ut=>M(Ut,He):He=>M(He,Fe);var He}function Bo(Fe){return[].slice.call(Fe)}let ws=0;function Ys(Fe){return null==Fe?":id":"string"==typeof Fe?Fe:`[${Fe.join("+")}]`}function Us(Fe,He,wt){function Ut(vi){if(3===vi.type)return null;if(4===vi.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:ki,upper:Si,lowerOpen:Wi,upperOpen:Pi}=vi;return void 0===ki?void 0===Si?null:He.upperBound(Si,!!Pi):void 0===Si?He.lowerBound(ki,!!Wi):He.bound(ki,Si,!!Wi,!!Pi)}const{schema:cn,hasGetAll:Ln}=function(vi,ki){const Si=Bo(vi.objectStoreNames);return{schema:{name:vi.name,tables:Si.map(Wi=>ki.objectStore(Wi)).map(Wi=>{const{keyPath:Pi,autoIncrement:oo}=Wi,Do=m(Pi),Mt={},bt={name:Wi.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:null==Pi,compound:Do,keyPath:Pi,autoIncrement:oo,unique:!0,extractKey:ds(Pi)},indexes:Bo(Wi.indexNames).map(an=>Wi.index(an)).map(an=>{const{name:Un,unique:di,multiEntry:qn,keyPath:Ti}=an,Qi={name:Un,compound:m(Ti),keyPath:Ti,unique:di,multiEntry:qn,extractKey:ds(Ti)};return Mt[Ys(Ti)]=Qi,Qi}),getIndexByKeyPath:an=>Mt[Ys(an)]};return Mt[":id"]=bt.primaryKey,null!=Pi&&(Mt[Ys(Pi)]=bt.primaryKey),bt})},hasGetAll:Si.length>0&&"getAll"in ki.objectStore(Si[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(Fe,wt),$n=cn.tables.map(vi=>function(ki){const Si=ki.name;return{name:Si,schema:ki,mutate:function({trans:Wi,type:Pi,keys:oo,values:Do,range:Ht}){return new Promise((Mt,bt)=>{Mt=ss(Mt);const an=Wi.objectStore(Si),Un=null==an.keyPath,di="put"===Pi||"add"===Pi;if(!di&&"delete"!==Pi&&"deleteRange"!==Pi)throw new Error("Invalid operation type: "+Pi);const{length:qn}=oo||Do||{length:1};if(oo&&Do&&oo.length!==Do.length)throw new Error("Given keys array must have same length as given values array.");if(0===qn)return Mt({numFailures:0,failures:{},results:[],lastResult:void 0});let Ti;const Qi=[],go=[];let eo=0;const os=Os=>{++eo,mn(Os)};if("deleteRange"===Pi){if(4===Ht.type)return Mt({numFailures:eo,failures:go,results:[],lastResult:void 0});Qi.push(Ti=3===Ht.type?an.clear():an.delete(Ut(Ht)))}else{const[Os,Ks]=di?Un?[Do,oo]:[Do,null]:[oo,null];if(di)for(let ht=0;ht<qn;++ht)Qi.push(Ti=Ks&&void 0!==Ks[ht]?an[Pi](Os[ht],Ks[ht]):an[Pi](Os[ht])),Ti.onerror=os;else for(let ht=0;ht<qn;++ht)Qi.push(Ti=an[Pi](Os[ht])),Ti.onerror=os}const as=Os=>{const Ks=Os.target.result;Qi.forEach((ht,_t)=>null!=ht.error&&(go[_t]=ht.error)),Mt({numFailures:eo,failures:go,results:"delete"===Pi?oo:Qi.map(ht=>ht.result),lastResult:Ks})};Ti.onerror=Os=>{os(Os),as(Os)},Ti.onsuccess=as})},getMany:({trans:Wi,keys:Pi})=>new Promise((oo,Do)=>{oo=ss(oo);const Ht=Wi.objectStore(Si),Mt=Pi.length,bt=new Array(Mt);let an,Un=0,di=0;const qn=Qi=>{const go=Qi.target;bt[go._pos]=go.result,++di===Un&&oo(bt)},Ti=Dt(Do);for(let Qi=0;Qi<Mt;++Qi)null!=Pi[Qi]&&(an=Ht.get(Pi[Qi]),an._pos=Qi,an.onsuccess=qn,an.onerror=Ti,++Un);0===Un&&oo(bt)}),get:({trans:Wi,key:Pi})=>new Promise((oo,Do)=>{oo=ss(oo);const Ht=Wi.objectStore(Si).get(Pi);Ht.onsuccess=Mt=>oo(Mt.target.result),Ht.onerror=Dt(Do)}),query:function(Wi){return Pi=>new Promise((oo,Do)=>{oo=ss(oo);const{trans:Ht,values:Mt,limit:bt,query:an}=Pi,Un=bt===1/0?void 0:bt,{index:di,range:qn}=an,Ti=Ht.objectStore(Si),Qi=di.isPrimaryKey?Ti:Ti.index(di.name),go=Ut(qn);if(0===bt)return oo({result:[]});if(Wi){const eo=Mt?Qi.getAll(go,Un):Qi.getAllKeys(go,Un);eo.onsuccess=os=>oo({result:os.target.result}),eo.onerror=Dt(Do)}else{let eo=0;const os=Mt||!("openKeyCursor"in Qi)?Qi.openCursor(go):Qi.openKeyCursor(go),as=[];os.onsuccess=Os=>{const Ks=os.result;return Ks?(as.push(Mt?Ks.value:Ks.primaryKey),++eo===bt?oo({result:as}):void Ks.continue()):oo({result:as})},os.onerror=Dt(Do)}})}(Ln),openCursor:function({trans:Wi,values:Pi,query:oo,reverse:Do,unique:Ht}){return new Promise((Mt,bt)=>{Mt=ss(Mt);const{index:an,range:Un}=oo,di=Wi.objectStore(Si),qn=an.isPrimaryKey?di:di.index(an.name),Ti=Do?Ht?"prevunique":"prev":Ht?"nextunique":"next",Qi=Pi||!("openKeyCursor"in qn)?qn.openCursor(Ut(Un),Ti):qn.openKeyCursor(Ut(Un),Ti);Qi.onerror=Dt(bt),Qi.onsuccess=ss(go=>{const eo=Qi.result;if(!eo)return void Mt(null);eo.___id=++ws,eo.done=!1;const os=eo.continue.bind(eo);let as=eo.continuePrimaryKey;as&&(as=as.bind(eo));const Os=eo.advance.bind(eo),Ks=()=>{throw new Error("Cursor not stopped")};eo.trans=Wi,eo.stop=eo.continue=eo.continuePrimaryKey=eo.advance=()=>{throw new Error("Cursor not started")},eo.fail=ss(bt),eo.next=function(){let ht=1;return this.start(()=>ht--?this.continue():this.stop()).then(()=>this)},eo.start=ht=>{const _t=new Promise((In,Oi)=>{In=ss(In),Qi.onerror=Dt(Oi),eo.fail=Oi,eo.stop=po=>{eo.stop=eo.continue=eo.continuePrimaryKey=eo.advance=Ks,In(po)}}),_n=()=>{if(Qi.result)try{ht()}catch(In){eo.fail(In)}else eo.done=!0,eo.start=()=>{throw new Error("Cursor behind last entry")},eo.stop()};return Qi.onsuccess=ss(In=>{Qi.onsuccess=_n,_n()}),eo.continue=os,eo.continuePrimaryKey=as,eo.advance=Os,_n(),_t},Mt(eo)},bt)})},count({query:Wi,trans:Pi}){const{index:oo,range:Do}=Wi;return new Promise((Ht,Mt)=>{const bt=Pi.objectStore(Si),an=oo.isPrimaryKey?bt:bt.index(oo.name),Un=Ut(Do),di=Un?an.count(Un):an.count();di.onsuccess=ss(qn=>Ht(qn.target.result)),di.onerror=Dt(Mt)})}}}(vi)),bi={};return $n.forEach(vi=>bi[vi.name]=vi),{stack:"dbcore",transaction:Fe.transaction.bind(Fe),table(vi){if(!bi[vi])throw new Error(`Table '${vi}' not found`);return bi[vi]},MIN_KEY:-1/0,MAX_KEY:ms(He),schema:cn}}function Qs({_novip:Fe},He){const Ut=function(cn,Ln,{IDBKeyRange:$n},vi){return{dbcore:(Si=Us(Ln,$n,vi),Wi=cn.dbcore,Wi.reduce((Pi,{create:oo})=>({...Pi,...oo(Pi)}),Si))};var Si,Wi}(Fe._middlewares,He.db,Fe._deps,He);Fe.core=Ut.dbcore,Fe.tables.forEach(cn=>{const Ln=cn.name;Fe.core.schema.tables.some($n=>$n.name===Ln)&&(cn.core=Fe.core.table(Ln),Fe[Ln]instanceof Fe.Table&&(Fe[Ln].core=cn.core))})}function nr({_novip:Fe},He,wt,Ut){wt.forEach(cn=>{const Ln=Ut[cn];He.forEach($n=>{const bi=B($n,cn);(!bi||"value"in bi&&void 0===bi.value)&&($n===Fe.Transaction.prototype||$n instanceof Fe.Transaction?v($n,cn,{get(){return this.table(cn)},set(vi){P(this,cn,{value:vi,writable:!0,configurable:!0,enumerable:!0})}}):$n[cn]=new Fe.Table(cn,Ln))})})}function gn({_novip:Fe},He){He.forEach(wt=>{for(let Ut in wt)wt[Ut]instanceof Fe.Table&&delete wt[Ut]})}function Xt(Fe,He){return Fe._cfg.version-He._cfg.version}function Wn(Fe,He){const wt={del:[],add:[],change:[]};let Ut;for(Ut in Fe)He[Ut]||wt.del.push(Ut);for(Ut in He){const cn=Fe[Ut],Ln=He[Ut];if(cn){const $n={name:Ut,def:Ln,recreate:!1,del:[],add:[],change:[]};if(""+(cn.primKey.keyPath||"")!=""+(Ln.primKey.keyPath||"")||cn.primKey.auto!==Ln.primKey.auto&&!_o)$n.recreate=!0,wt.change.push($n);else{const bi=cn.idxByName,vi=Ln.idxByName;let ki;for(ki in bi)vi[ki]||$n.del.push(ki);for(ki in vi){const Si=bi[ki],Wi=vi[ki];Si?Si.src!==Wi.src&&$n.change.push(Wi):$n.add.push(Wi)}($n.del.length>0||$n.add.length>0||$n.change.length>0)&&wt.change.push($n)}}else wt.add.push([Ut,Ln])}return wt}function Fi(Fe,He,wt,Ut){const cn=Fe.db.createObjectStore(He,wt.keyPath?{keyPath:wt.keyPath,autoIncrement:wt.auto}:{autoIncrement:wt.auto});return Ut.forEach(Ln=>io(cn,Ln)),cn}function io(Fe,He){Fe.createIndex(He.name,He.keyPath,{unique:He.unique,multiEntry:He.multi})}function bo(Fe,He,wt){const Ut={};return F(He.objectStoreNames,0).forEach(cn=>{const Ln=wt.objectStore(cn);let $n=Ln.keyPath;const bi=yo(ko($n),$n||"",!1,!1,!!Ln.autoIncrement,$n&&"string"!=typeof $n,!0),vi=[];for(let Si=0;Si<Ln.indexNames.length;++Si){const Wi=Ln.index(Ln.indexNames[Si]);$n=Wi.keyPath;var ki=yo(Wi.name,$n,!!Wi.unique,!!Wi.multiEntry,!1,$n&&"string"!=typeof $n,!1);vi.push(ki)}Ut[cn]=Ho(cn,bi,vi)}),Ut}function Mo({_novip:Fe},He,wt){const Ut=wt.db.objectStoreNames;for(let cn=0;cn<Ut.length;++cn){const Ln=Ut[cn],$n=wt.objectStore(Ln);Fe._hasGetAll="getAll"in $n;for(let bi=0;bi<$n.indexNames.length;++bi){const vi=$n.indexNames[bi],ki=$n.index(vi).keyPath,Si="string"==typeof ki?ki:"["+F(ki).join("+")+"]";if(He[Ln]){const Wi=He[Ln].idxByName[Si];Wi&&(Wi.name=vi,delete He[Ln].idxByName[Si],He[Ln].idxByName[vi]=Wi)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&S.WorkerGlobalScope&&S instanceof S.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(Fe._hasGetAll=!1)}class rs{_parseStoresSpec(He,wt){d(He).forEach(Ut=>{if(null!==He[Ut]){var cn=He[Ut].split(",").map(($n,bi)=>{const vi=($n=$n.trim()).replace(/([&*]|\+\+)/g,""),ki=/^\[/.test(vi)?vi.match(/^\[(.*)\]$/)[1].split("+"):vi;return yo(vi,ki||null,/\&/.test($n),/\*/.test($n),/\+\+/.test($n),m(ki),0===bi)}),Ln=cn.shift();if(Ln.multi)throw new Ke.Schema("Primary key cannot be multi-valued");cn.forEach($n=>{if($n.auto)throw new Ke.Schema("Only primary key can be marked as autoIncrement (++)");if(!$n.keyPath)throw new Ke.Schema("Index must have a name and cannot be an empty string")}),wt[Ut]=Ho(Ut,Ln,cn)}})}stores(He){const wt=this.db;this._cfg.storesSource=this._cfg.storesSource?T(this._cfg.storesSource,He):He;const cn={};let Ln={};return wt._versions.forEach($n=>{T(cn,$n._cfg.storesSource),Ln=$n._cfg.dbschema={},$n._parseStoresSpec(cn,Ln)}),wt._dbSchema=Ln,gn(wt,[wt._allTables,wt,wt.Transaction.prototype]),nr(wt,[wt._allTables,wt,wt.Transaction.prototype,this._cfg.tables],d(Ln),Ln),wt._storeNames=d(Ln),this}upgrade(He){return this._cfg.contentUpgrade=qe(this._cfg.contentUpgrade||Oe,He),this}}function is(Fe,He){let wt=Fe._dbNamesDB;return wt||(wt=Fe._dbNamesDB=new kn(Bn,{addons:[],indexedDB:Fe,IDBKeyRange:He}),wt.version(1).stores({dbnames:"name"})),wt.table("dbnames")}function $s(Fe){return Fe&&"function"==typeof Fe.databases}function Es(Fe){return Ni(function(){return Mi.letThrough=!0,Fe()})}function ir(){var Fe;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(He){var wt=function(){return indexedDB.databases().finally(He)};Fe=setInterval(wt,100),wt()}).finally(function(){return clearInterval(Fe)}):Promise.resolve()}function Js(Fe){var He=Ln=>Fe.next(Ln),wt=cn(He),Ut=cn(Ln=>Fe.throw(Ln));function cn(Ln){return $n=>{var bi=Ln($n),vi=bi.value;return bi.done?vi:vi&&"function"==typeof vi.then?vi.then(wt,Ut):m(vi)?Promise.all(vi).then(wt,Ut):wt(vi)}}return cn(He)()}function Or(Fe,He,wt){var Ut=arguments.length;if(Ut<2)throw new Ke.InvalidArgument("Too few arguments");for(var cn=new Array(Ut-1);--Ut;)cn[Ut-1]=arguments[Ut];return wt=cn.pop(),[Fe,L(cn),wt]}function rr(Fe,He,wt,Ut,cn){return Qn.resolve().then(()=>{const Ln=Mi.transless||Mi,$n=Fe._createTransaction(He,wt,Fe._dbSchema,Ut),bi={trans:$n,transless:Ln};if(Ut)$n.idbtrans=Ut.idbtrans;else try{$n.create(),Fe._state.PR1398_maxLoop=3}catch(Wi){return Wi.name===Ee.InvalidState&&Fe.isOpen()&&--Fe._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),Fe._close(),Fe.open().then(()=>rr(Fe,He,wt,null,cn))):mo(Wi)}const vi=Pe(cn);let ki;vi&&Yi();const Si=Qn.follow(()=>{if(ki=cn.call($n,$n),ki)if(vi){var Wi=Sn.bind(null,null);ki.then(Wi,Wi)}else"function"==typeof ki.next&&"function"==typeof ki.throw&&(ki=Js(ki))},bi);return(ki&&"function"==typeof ki.then?Qn.resolve(ki).then(Wi=>$n.active?Wi:mo(new Ke.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):Si.then(()=>ki)).then(Wi=>(Ut&&$n._resolve(),$n._completion.then(()=>Wi))).catch(Wi=>($n._reject(Wi),mo(Wi)))})}function Tr(Fe,He,wt){const Ut=m(Fe)?Fe.slice():[Fe];for(let cn=0;cn<wt;++cn)Ut.push(He);return Ut}const ur={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(Fe){return{...Fe,table(He){const wt=Fe.table(He),{schema:Ut}=wt,cn={},Ln=[];function $n(Si,Wi,Pi){const oo=Ys(Si),Do=cn[oo]=cn[oo]||[],Ht=null==Si?0:"string"==typeof Si?1:Si.length,Mt=Wi>0,bt={...Pi,isVirtual:Mt,keyTail:Wi,keyLength:Ht,extractKey:ds(Si),unique:!Mt&&Pi.unique};return Do.push(bt),bt.isPrimaryKey||Ln.push(bt),Ht>1&&$n(2===Ht?Si[0]:Si.slice(0,Ht-1),Wi+1,Pi),Do.sort((an,Un)=>an.keyTail-Un.keyTail),bt}const bi=$n(Ut.primaryKey.keyPath,0,Ut.primaryKey);cn[":id"]=[bi];for(const Si of Ut.indexes)$n(Si.keyPath,0,Si);function vi(Si){const Wi=Si.query.index;return Wi.isVirtual?{...Si,query:{index:Wi,range:(Pi=Si.query.range,oo=Wi.keyTail,{type:1===Pi.type?2:Pi.type,lower:Tr(Pi.lower,Pi.lowerOpen?Fe.MAX_KEY:Fe.MIN_KEY,oo),lowerOpen:!0,upper:Tr(Pi.upper,Pi.upperOpen?Fe.MIN_KEY:Fe.MAX_KEY,oo),upperOpen:!0})}}:Si;var Pi,oo}return{...wt,schema:{...Ut,primaryKey:bi,indexes:Ln,getIndexByKeyPath:function(Si){const Wi=cn[Ys(Si)];return Wi&&Wi[0]}},count:Si=>wt.count(vi(Si)),query:Si=>wt.query(vi(Si)),openCursor(Si){const{keyTail:Wi,isVirtual:Pi,keyLength:oo}=Si.query.index;return Pi?wt.openCursor(vi(Si)).then(Do=>{return Do&&(Ht=Do,Object.create(Ht,{continue:{value:function(bt){null!=bt?Ht.continue(Tr(bt,Si.reverse?Fe.MAX_KEY:Fe.MIN_KEY,Wi)):Si.unique?Ht.continue(Ht.key.slice(0,oo).concat(Si.reverse?Fe.MIN_KEY:Fe.MAX_KEY,Wi)):Ht.continue()}},continuePrimaryKey:{value(bt,an){Ht.continuePrimaryKey(Tr(bt,Fe.MAX_KEY,Wi),an)}},primaryKey:{get:()=>Ht.primaryKey},key:{get(){const bt=Ht.key;return 1===oo?bt[0]:bt.slice(0,oo)}},value:{get:()=>Ht.value}}));var Ht}):wt.openCursor(Si)}}}}}};function Ar(Fe,He,wt,Ut){return wt=wt||{},Ut=Ut||"",d(Fe).forEach(cn=>{if(k(He,cn)){var Ln=Fe[cn],$n=He[cn];if("object"==typeof Ln&&"object"==typeof $n&&Ln&&$n){const bi=be(Ln);bi!==be($n)?wt[Ut+cn]=He[cn]:"Object"===bi?Ar(Ln,$n,wt,Ut+cn+"."):Ln!==$n&&(wt[Ut+cn]=He[cn])}else Ln!==$n&&(wt[Ut+cn]=He[cn])}else wt[Ut+cn]=void 0}),d(He).forEach(cn=>{k(Fe,cn)||(wt[Ut+cn]=He[cn])}),wt}const ea={stack:"dbcore",name:"HooksMiddleware",level:2,create:Fe=>({...Fe,table(He){const wt=Fe.table(He),{primaryKey:Ut}=wt.schema;return{...wt,mutate(Ln){const $n=Mi.trans,{deleting:bi,creating:vi,updating:ki}=$n.table(He).hook;switch(Ln.type){case"add":if(vi.fire===Oe)break;return $n._promise("readwrite",()=>Si(Ln),!0);case"put":if(vi.fire===Oe&&ki.fire===Oe)break;return $n._promise("readwrite",()=>Si(Ln),!0);case"delete":if(bi.fire===Oe)break;return $n._promise("readwrite",()=>Si(Ln),!0);case"deleteRange":if(bi.fire===Oe)break;return $n._promise("readwrite",()=>{return Wi((Pi=Ln).trans,Pi.range,1e4);var Pi},!0)}return wt.mutate(Ln);function Si(Pi){const oo=Mi.trans,Do=Pi.keys||("delete"===(Mt=Pi).type?Mt.keys:Mt.keys||Mt.values.map(Ut.extractKey));var Mt;if(!Do)throw new Error("Keys missing");return"delete"!==(Pi="add"===Pi.type||"put"===Pi.type?{...Pi,keys:Do}:{...Pi}).type&&(Pi.values=[...Pi.values]),Pi.keys&&(Pi.keys=[...Pi.keys]),function(Ht,Mt,bt){return"add"===Mt.type?Promise.resolve([]):Ht.getMany({trans:Mt.trans,keys:bt,cache:"immutable"})}(wt,Pi,Do).then(Ht=>{const Mt=Do.map((bt,an)=>{const Un=Ht[an],di={onerror:null,onsuccess:null};if("delete"===Pi.type)bi.fire.call(di,bt,Un,oo);else if("add"===Pi.type||void 0===Un){const qn=vi.fire.call(di,bt,Pi.values[an],oo);null==bt&&null!=qn&&(Pi.keys[an]=bt=qn,Ut.outbound||H(Pi.values[an],Ut.keyPath,bt))}else{const qn=Ar(Un,Pi.values[an]),Ti=ki.fire.call(di,qn,bt,Un,oo);if(Ti){const Qi=Pi.values[an];Object.keys(Ti).forEach(go=>{k(Qi,go)?Qi[go]=Ti[go]:H(Qi,go,Ti[go])})}}return di});return wt.mutate(Pi).then(({failures:bt,results:an,numFailures:Un,lastResult:di})=>{for(let qn=0;qn<Do.length;++qn){const Ti=an?an[qn]:Do[qn],Qi=Mt[qn];null==Ti?Qi.onerror&&Qi.onerror(bt[qn]):Qi.onsuccess&&Qi.onsuccess("put"===Pi.type&&Ht[qn]?Pi.values[qn]:Ti)}return{failures:bt,results:an,numFailures:Un,lastResult:di}}).catch(bt=>(Mt.forEach(an=>an.onerror&&an.onerror(bt)),Promise.reject(bt)))})}function Wi(Pi,oo,Do){return wt.query({trans:Pi,values:!1,query:{index:Ut,range:oo},limit:Do}).then(({result:Ht})=>Si({type:"delete",keys:Ht,trans:Pi}).then(Mt=>Mt.numFailures>0?Promise.reject(Mt.failures[0]):Ht.length<Do?{failures:[],numFailures:0,lastResult:void 0}:Wi(Pi,{...oo,lower:Ht[Ht.length-1],lowerOpen:!0},Do)))}}}}})};function Vr(Fe,He,wt){try{if(!He||He.keys.length<Fe.length)return null;const Ut=[];for(let cn=0,Ln=0;cn<He.keys.length&&Ln<Fe.length;++cn)0===xs(He.keys[cn],Fe[Ln])&&(Ut.push(wt?K(He.values[cn]):He.values[cn]),++Ln);return Ut.length===Fe.length?Ut:null}catch{return null}}const Hr={stack:"dbcore",level:-1,create:Fe=>({table:He=>{const wt=Fe.table(He);return{...wt,getMany:Ut=>{if(!Ut.cache)return wt.getMany(Ut);const cn=Vr(Ut.keys,Ut.trans._cache,"clone"===Ut.cache);return cn?Qn.resolve(cn):wt.getMany(Ut).then(Ln=>(Ut.trans._cache={keys:Ut.keys,values:"clone"===Ut.cache?K(Ln):Ln},Ln))},mutate:Ut=>("add"!==Ut.type&&(Ut.trans._cache=null),wt.mutate(Ut))}}})};function jr(Fe){return!("from"in Fe)}const Ir=function(Fe,He){if(!this){const wt=new Ir;return Fe&&"d"in Fe&&T(wt,Fe),wt}T(this,arguments.length?{d:1,from:Fe,to:arguments.length>1?He:Fe}:{d:0})};function va(Fe,He,wt){const Ut=xs(He,wt);if(isNaN(Ut))return;if(Ut>0)throw RangeError();if(jr(Fe))return T(Fe,{from:He,to:wt,d:1});const cn=Fe.l,Ln=Fe.r;if(xs(wt,Fe.from)<0)return cn?va(cn,He,wt):Fe.l={from:He,to:wt,d:1,l:null,r:null},Bt(Fe);if(xs(He,Fe.to)>0)return Ln?va(Ln,He,wt):Fe.r={from:He,to:wt,d:1,l:null,r:null},Bt(Fe);xs(He,Fe.from)<0&&(Fe.from=He,Fe.l=null,Fe.d=Ln?Ln.d+1:1),xs(wt,Fe.to)>0&&(Fe.to=wt,Fe.r=null,Fe.d=Fe.l?Fe.l.d+1:1);const $n=!Fe.r;cn&&!Fe.l&&ca(Fe,cn),Ln&&$n&&ca(Fe,Ln)}function ca(Fe,He){jr(He)||function wt(Ut,{from:cn,to:Ln,l:$n,r:bi}){va(Ut,cn,Ln),$n&&wt(Ut,$n),bi&&wt(Ut,bi)}(Fe,He)}function ot(Fe){let He=jr(Fe)?null:{s:0,n:Fe};return{next(wt){const Ut=arguments.length>0;for(;He;)switch(He.s){case 0:if(He.s=1,Ut)for(;He.n.l&&xs(wt,He.n.from)<0;)He={up:He,n:He.n.l,s:1};else for(;He.n.l;)He={up:He,n:He.n.l,s:1};case 1:if(He.s=2,!Ut||xs(wt,He.n.to)<=0)return{value:He.n,done:!1};case 2:if(He.n.r){He.s=3,He={up:He,n:He.n.r,s:0};continue}case 3:He=He.up}return{done:!0}}}}function Bt(Fe){var He,wt;const Ut=((null===(He=Fe.r)||void 0===He?void 0:He.d)||0)-((null===(wt=Fe.l)||void 0===wt?void 0:wt.d)||0),cn=Ut>1?"r":Ut<-1?"l":"";if(cn){const Ln="r"===cn?"l":"r",$n={...Fe},bi=Fe[cn];Fe.from=bi.from,Fe.to=bi.to,Fe[cn]=bi[cn],$n[cn]=bi[Ln],Fe[Ln]=$n,$n.d=qt($n)}Fe.d=qt(Fe)}function qt({r:Fe,l:He}){return(Fe?He?Math.max(Fe.d,He.d):Fe.d:He?He.d:0)+1}w(Ir.prototype,{add(Fe){return ca(this,Fe),this},addKey(Fe){return va(this,Fe,Fe),this},addKeys(Fe){return Fe.forEach(He=>va(this,He,He)),this},[ce](){return ot(this)}});const bn={stack:"dbcore",level:0,create:Fe=>{const He=Fe.schema.name,wt=new Ir(Fe.MIN_KEY,Fe.MAX_KEY);return{...Fe,table:Ut=>{const cn=Fe.table(Ut),{schema:Ln}=cn,{primaryKey:$n}=Ln,{extractKey:bi,outbound:vi}=$n,ki={...cn,mutate:Pi=>{const oo=Pi.trans,Do=oo.mutatedParts||(oo.mutatedParts={}),Ht=Ti=>{const Qi=`idb://${He}/${Ut}/${Ti}`;return Do[Qi]||(Do[Qi]=new Ir)},Mt=Ht(""),bt=Ht(":dels"),{type:an}=Pi;let[Un,di]="deleteRange"===Pi.type?[Pi.range]:"delete"===Pi.type?[Pi.keys]:Pi.values.length<50?[[],Pi.values]:[];const qn=Pi.trans._cache;return cn.mutate(Pi).then(Ti=>{if(m(Un)){"delete"!==an&&(Un=Ti.results),Mt.addKeys(Un);const Qi=Vr(Un,qn);Qi||"add"===an||bt.addKeys(Un),(Qi||di)&&(go=Ht,os=Qi,as=di,Ln.indexes.forEach(function Os(Ks){const ht=go(Ks.name||"");function _t(In){return null!=In?Ks.extractKey(In):null}const _n=In=>Ks.multiEntry&&m(In)?In.forEach(Oi=>ht.addKey(Oi)):ht.addKey(In);(os||as).forEach((In,Oi)=>{const po=os&&_t(os[Oi]),Zs=as&&_t(as[Oi]);0!==xs(po,Zs)&&(null!=po&&_n(po),null!=Zs&&_n(Zs))})}))}else if(Un){const Qi={from:Un.lower,to:Un.upper};bt.add(Qi),Mt.add(Qi)}else Mt.add(wt),bt.add(wt),Ln.indexes.forEach(Qi=>Ht(Qi.name).add(wt));var go,os,as;return Ti})}},Si=({query:{index:Pi,range:oo}})=>{var Do,Ht;return[Pi,new Ir(null!==(Do=oo.lower)&&void 0!==Do?Do:Fe.MIN_KEY,null!==(Ht=oo.upper)&&void 0!==Ht?Ht:Fe.MAX_KEY)]},Wi={get:Pi=>[$n,new Ir(Pi.key)],getMany:Pi=>[$n,(new Ir).addKeys(Pi.keys)],count:Si,query:Si,openCursor:Si};return d(Wi).forEach(Pi=>{ki[Pi]=function(oo){const{subscr:Do}=Mi;if(Do){const Ht=di=>{const qn=`idb://${He}/${Ut}/${di}`;return Do[qn]||(Do[qn]=new Ir)},Mt=Ht(""),bt=Ht(":dels"),[an,Un]=Wi[Pi](oo);if(Ht(an.name||"").add(Un),!an.isPrimaryKey){if("count"!==Pi){const di="query"===Pi&&vi&&oo.values&&cn.query({...oo,values:!1});return cn[Pi].apply(this,arguments).then(qn=>{if("query"===Pi){if(vi&&oo.values)return di.then(({result:Qi})=>(Mt.addKeys(Qi),qn));const Ti=oo.values?qn.result.map(bi):qn.result;oo.values?Mt.addKeys(Ti):bt.addKeys(Ti)}else if("openCursor"===Pi){const Ti=qn,Qi=oo.values;return Ti&&Object.create(Ti,{key:{get:()=>(bt.addKey(Ti.primaryKey),Ti.key)},primaryKey:{get(){const go=Ti.primaryKey;return bt.addKey(go),go}},value:{get:()=>(Qi&&Mt.addKey(Ti.primaryKey),Ti.value)}})}return qn})}bt.add(wt)}}return cn[Pi].apply(this,arguments)}}),ki}}}};class kn{constructor(He,wt){this._middlewares={},this.verno=0;const Ut=kn.dependencies;this._options=wt={addons:kn.addons,autoOpen:!0,indexedDB:Ut.indexedDB,IDBKeyRange:Ut.IDBKeyRange,...wt},this._deps={indexedDB:wt.indexedDB,IDBKeyRange:wt.IDBKeyRange};const{addons:cn}=wt;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const Ln={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Oe,dbReadyPromise:null,cancelOpen:Oe,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var $n,bi;Ln.dbReadyPromise=new Qn(bi=>{Ln.dbReadyResolve=bi}),Ln.openCanceller=new Qn((bi,vi)=>{Ln.cancelOpen=vi}),this._state=Ln,this.name=He,this.on=fs(this,"populate","blocked","versionchange","close",{ready:[qe,Oe]}),this.on.ready.subscribe=X(this.on.ready.subscribe,bi=>(vi,ki)=>{kn.vip(()=>{const Si=this._state;if(Si.openComplete)Si.dbOpenError||Qn.resolve().then(vi),ki&&bi(vi);else if(Si.onReadyBeingFired)Si.onReadyBeingFired.push(vi),ki&&bi(vi);else{bi(vi);const Wi=this;ki||bi(function Pi(){Wi.on.ready.unsubscribe(vi),Wi.on.ready.unsubscribe(Pi)})}})}),this.Collection=($n=this,zt(_s.prototype,function(bi,vi){this.db=$n;let ki=Oo,Si=null;if(vi)try{ki=vi()}catch(Do){Si=Do}const Wi=bi._ctx,Pi=Wi.table,oo=Pi.hook.reading.fire;this._ctx={table:Pi,index:Wi.index,isPrimKey:!Wi.index||Pi.schema.primKey.keyPath&&Wi.index===Pi.schema.primKey.name,range:ki,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:Si,or:Wi.or,valueMapper:oo!==fe?oo:null}})),this.Table=(bi=this,zt(Vs.prototype,function(vi,ki,Si){this.db=bi,this._tx=Si,this.name=vi,this.schema=ki,this.hook=bi._allTables[vi]?bi._allTables[vi].hook:fs(null,{creating:[Ve,Oe],reading:[We,fe],updating:[at,Oe],deleting:[tt,Oe]})})),this.Transaction=function(bi){return zt(Ro.prototype,function(vi,ki,Si,Wi,Pi){this.db=bi,this.mode=vi,this.storeNames=ki,this.schema=Si,this.chromeTransactionDurability=Wi,this.idbtrans=null,this.on=fs(this,"complete","error","abort"),this.parent=Pi||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Qn((oo,Do)=>{this._resolve=oo,this._reject=Do}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},oo=>{var Do=this.active;return this.active=!1,this.on.error.fire(oo),this.parent?this.parent._reject(oo):Do&&this.idbtrans&&this.idbtrans.abort(),mo(oo)})})}(this),this.Version=function(bi){return zt(rs.prototype,function(vi){this.db=bi,this._cfg={version:vi,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(bi){return zt(Yt.prototype,function(vi,ki,Si){this.db=bi,this._ctx={table:vi,index:":id"===ki?null:ki,or:Si};const Wi=bi._deps.indexedDB;if(!Wi)throw new Ke.MissingAPI;this._cmp=this._ascending=Wi.cmp.bind(Wi),this._descending=(Pi,oo)=>Wi.cmp(oo,Pi),this._max=(Pi,oo)=>Wi.cmp(Pi,oo)>0?Pi:oo,this._min=(Pi,oo)=>Wi.cmp(Pi,oo)<0?Pi:oo,this._IDBKeyRange=bi._deps.IDBKeyRange})}(this),this.on("versionchange",bi=>{bi.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",bi=>{!bi.newVersion||bi.newVersion<bi.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${bi.oldVersion/10}`)}),this._maxKey=ms(wt.IDBKeyRange),this._createTransaction=(bi,vi,ki,Si)=>new this.Transaction(bi,vi,ki,this._options.chromeTransactionDurability,Si),this._fireOnBlocked=bi=>{this.on("blocked").fire(bi),zi.filter(vi=>vi.name===this.name&&vi!==this&&!vi._state.vcFired).map(vi=>vi.on("versionchange").fire(bi))},this.use(ur),this.use(ea),this.use(bn),this.use(Hr),this.vip=Object.create(this,{_vip:{value:!0}}),cn.forEach(bi=>bi(this))}version(He){if(isNaN(He)||He<.1)throw new Ke.Type("Given version is not a positive number");if(He=Math.round(10*He)/10,this.idbdb||this._state.isBeingOpened)throw new Ke.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,He);const wt=this._versions;var Ut=wt.filter(cn=>cn._cfg.version===He)[0];return Ut||(Ut=new this.Version(He),wt.push(Ut),wt.sort(Xt),Ut.stores({}),this._state.autoSchema=!1,Ut)}_whenReady(He){return this.idbdb&&(this._state.openComplete||Mi.letThrough||this._vip)?He():new Qn((wt,Ut)=>{if(this._state.openComplete)return Ut(new Ke.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void Ut(new Ke.DatabaseClosed);this.open().catch(Oe)}this._state.dbReadyPromise.then(wt,Ut)}).then(He)}use({stack:He,create:wt,level:Ut,name:cn}){cn&&this.unuse({stack:He,name:cn});const Ln=this._middlewares[He]||(this._middlewares[He]=[]);return Ln.push({stack:He,create:wt,level:Ut??10,name:cn}),Ln.sort(($n,bi)=>$n.level-bi.level),this}unuse({stack:He,name:wt,create:Ut}){return He&&this._middlewares[He]&&(this._middlewares[He]=this._middlewares[He].filter(cn=>Ut?cn.create!==Ut:!!wt&&cn.name!==wt)),this}open(){return function Cr(Fe){const He=Fe._state,{indexedDB:wt}=Fe._deps;if(He.isBeingOpened||Fe.idbdb)return He.dbReadyPromise.then(()=>He.dbOpenError?mo(He.dbOpenError):Fe);Ie&&(He.openCanceller._stackHolder=Ce()),He.isBeingOpened=!0,He.dbOpenError=null,He.openComplete=!1;const Ut=He.openCanceller;function cn(){if(He.openCanceller!==Ut)throw new Ke.DatabaseClosed("db.open() was cancelled")}let Ln=He.dbReadyResolve,$n=null,bi=!1;const vi=()=>new Qn((ki,Si)=>{if(cn(),!wt)throw new Ke.MissingAPI;const Wi=Fe.name,Pi=He.autoSchema?wt.open(Wi):wt.open(Wi,Math.round(10*Fe.verno));if(!Pi)throw new Ke.MissingAPI;Pi.onerror=Dt(Si),Pi.onblocked=ss(Fe._fireOnBlocked),Pi.onupgradeneeded=ss(oo=>{if($n=Pi.transaction,He.autoSchema&&!Fe._options.allowEmptyDB){Pi.onerror=mn,$n.abort(),Pi.result.close();const Ht=wt.deleteDatabase(Wi);Ht.onsuccess=Ht.onerror=ss(()=>{Si(new Ke.NoSuchDatabase(`Database ${Wi} doesnt exist`))})}else{$n.onerror=Dt(Si);var Do=oo.oldVersion>Math.pow(2,62)?0:oo.oldVersion;bi=Do<1,Fe._novip.idbdb=Pi.result,function hn(Fe,He,wt,Ut){const cn=Fe._dbSchema,Ln=Fe._createTransaction("readwrite",Fe._storeNames,cn);Ln.create(wt),Ln._completion.catch(Ut);const $n=Ln._reject.bind(Ln),bi=Mi.transless||Mi;Ni(()=>{Mi.trans=Ln,Mi.transless=bi,0===He?(d(cn).forEach(vi=>{Fi(wt,vi,cn[vi].primKey,cn[vi].indexes)}),Qs(Fe,wt),Qn.follow(()=>Fe.on.populate.fire(Ln)).catch($n)):function({_novip:vi},ki,Si,Wi){const Pi=[],oo=vi._versions;let Do=vi._dbSchema=bo(0,vi.idbdb,Wi),Ht=!1;return oo.filter(an=>an._cfg.version>=ki).forEach(an=>{Pi.push(()=>{const Un=Do,di=an._cfg.dbschema;Mo(vi,Un,Wi),Mo(vi,di,Wi),Do=vi._dbSchema=di;const qn=Wn(Un,di);qn.add.forEach(Qi=>{Fi(Wi,Qi[0],Qi[1].primKey,Qi[1].indexes)}),qn.change.forEach(Qi=>{if(Qi.recreate)throw new Ke.Upgrade("Not yet support for changing primary key");{const go=Wi.objectStore(Qi.name);Qi.add.forEach(eo=>io(go,eo)),Qi.change.forEach(eo=>{go.deleteIndex(eo.name),io(go,eo)}),Qi.del.forEach(eo=>go.deleteIndex(eo))}});const Ti=an._cfg.contentUpgrade;if(Ti&&an._cfg.version>ki){Qs(vi,Wi),Si._memoizedTables={},Ht=!0;let Qi=J(di);qn.del.forEach(as=>{Qi[as]=Un[as]}),gn(vi,[vi.Transaction.prototype]),nr(vi,[vi.Transaction.prototype],d(Qi),Qi),Si.schema=Qi;const go=Pe(Ti);let eo;go&&Yi();const os=Qn.follow(()=>{if(eo=Ti(Si),eo&&go){var as=Sn.bind(null,null);eo.then(as,as)}});return eo&&"function"==typeof eo.then?Qn.resolve(eo):os.then(()=>eo)}}),Pi.push(Un=>{var di,qn;(!Ht||!$o)&&(di=an._cfg.dbschema,[].slice.call((qn=Un).db.objectStoreNames).forEach(Ti=>null==di[Ti]&&qn.db.deleteObjectStore(Ti))),gn(vi,[vi.Transaction.prototype]),nr(vi,[vi.Transaction.prototype],vi._storeNames,vi._dbSchema),Si.schema=vi._dbSchema})}),function bt(){return Pi.length?Qn.resolve(Pi.shift()(Si.idbtrans)).then(bt):Qn.resolve()}().then(()=>{var an,Un;Un=Wi,d(an=Do).forEach(di=>{Un.db.objectStoreNames.contains(di)||Fi(Un,di,an[di].primKey,an[di].indexes)})})}(Fe,He,Ln,wt).catch($n)})}(Fe,Do/10,$n,Si)}},Si),Pi.onsuccess=ss(()=>{$n=null;const oo=Fe._novip.idbdb=Pi.result,Do=F(oo.objectStoreNames);if(Do.length>0)try{const Mt=oo.transaction(1===(Ht=Do).length?Ht[0]:Ht,"readonly");He.autoSchema?function({_novip:bt},an,Un){bt.verno=an.version/10;const di=bt._dbSchema=bo(0,an,Un);bt._storeNames=F(an.objectStoreNames,0),nr(bt,[bt._allTables],d(di),di)}(Fe,oo,Mt):(Mo(Fe,Fe._dbSchema,Mt),function(bt,an){const Un=Wn(bo(0,bt.idbdb,an),bt._dbSchema);return!(Un.add.length||Un.change.some(di=>di.add.length||di.change.length))}(Fe,Mt)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Qs(Fe,Mt)}catch{}var Ht;zi.push(Fe),oo.onversionchange=ss(Mt=>{He.vcFired=!0,Fe.on("versionchange").fire(Mt)}),oo.onclose=ss(Mt=>{Fe.on("close").fire(Mt)}),bi&&function({indexedDB:Mt,IDBKeyRange:bt},an){!$s(Mt)&&an!==Bn&&is(Mt,bt).put({name:an}).catch(Oe)}(Fe._deps,Wi),ki()},Si)}).catch(ki=>ki&&"UnknownError"===ki.name&&He.PR1398_maxLoop>0?(He.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),vi()):Qn.reject(ki));return Qn.race([Ut,(typeof navigator>"u"?Qn.resolve():ir()).then(vi)]).then(()=>(cn(),He.onReadyBeingFired=[],Qn.resolve(Es(()=>Fe.on.ready.fire(Fe.vip))).then(function ki(){if(He.onReadyBeingFired.length>0){let Si=He.onReadyBeingFired.reduce(qe,Oe);return He.onReadyBeingFired=[],Qn.resolve(Es(()=>Si(Fe.vip))).then(ki)}}))).finally(()=>{He.onReadyBeingFired=null,He.isBeingOpened=!1}).then(()=>Fe).catch(ki=>{He.dbOpenError=ki;try{$n&&$n.abort()}catch{}return Ut===He.openCanceller&&Fe._close(),mo(ki)}).finally(()=>{He.openComplete=!0,Ln()})}(this)}_close(){const He=this._state,wt=zi.indexOf(this);if(wt>=0&&zi.splice(wt,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}He.dbReadyPromise=new Qn(Ut=>{He.dbReadyResolve=Ut}),He.openCanceller=new Qn((Ut,cn)=>{He.cancelOpen=cn})}close(){this._close();const He=this._state;this._options.autoOpen=!1,He.dbOpenError=new Ke.DatabaseClosed,He.isBeingOpened&&He.cancelOpen(He.dbOpenError)}delete(){const He=arguments.length>0,wt=this._state;return new Qn((Ut,cn)=>{const Ln=()=>{this.close();var $n=this._deps.indexedDB.deleteDatabase(this.name);$n.onsuccess=ss(()=>{(function({indexedDB:bi,IDBKeyRange:vi},ki){!$s(bi)&&ki!==Bn&&is(bi,vi).delete(ki).catch(Oe)})(this._deps,this.name),Ut()}),$n.onerror=Dt(cn),$n.onblocked=this._fireOnBlocked};if(He)throw new Ke.InvalidArgument("Arguments not allowed in db.delete()");wt.isBeingOpened?wt.dbReadyPromise.then(Ln):Ln()})}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const He=this._state.dbOpenError;return He&&"DatabaseClosed"===He.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return d(this._allTables).map(He=>this._allTables[He])}transaction(){const He=Or.apply(this,arguments);return this._transaction.apply(this,He)}_transaction(He,wt,Ut){let cn=Mi.trans;cn&&cn.db===this&&-1===He.indexOf("!")||(cn=null);const Ln=-1!==He.indexOf("?");let $n,bi;He=He.replace("!","").replace("?","");try{if(bi=wt.map(ki=>{var Si=ki instanceof this.Table?ki.name:ki;if("string"!=typeof Si)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return Si}),"r"==He||He===Gn)$n=Gn;else{if("rw"!=He&&He!=Ri)throw new Ke.InvalidArgument("Invalid transaction mode: "+He);$n=Ri}if(cn){if(cn.mode===Gn&&$n===Ri){if(!Ln)throw new Ke.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");cn=null}cn&&bi.forEach(ki=>{if(cn&&-1===cn.storeNames.indexOf(ki)){if(!Ln)throw new Ke.SubTransaction("Table "+ki+" not included in parent transaction.");cn=null}}),Ln&&cn&&!cn.active&&(cn=null)}}catch(ki){return cn?cn._promise(null,(Si,Wi)=>{Wi(ki)}):mo(ki)}const vi=rr.bind(null,this,$n,bi,cn,Ut);return cn?cn._promise($n,vi,"lock"):Mi.trans?Ot(Mi.transless,()=>this._whenReady(vi)):this._whenReady(vi)}table(He){if(!k(this._allTables,He))throw new Ke.InvalidTable(`Table ${He} does not exist`);return this._allTables[He]}}const yi=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class Hi{constructor(He){this._subscribe=He}subscribe(He,wt,Ut){return this._subscribe(He&&"function"!=typeof He?He:{next:He,error:wt,complete:Ut})}[yi](){return this}}function co(Fe,He){return d(He).forEach(wt=>{ca(Fe[wt]||(Fe[wt]=new Ir),He[wt])}),Fe}let Ko;try{Ko={indexedDB:S.indexedDB||S.mozIndexedDB||S.webkitIndexedDB||S.msIndexedDB,IDBKeyRange:S.IDBKeyRange||S.webkitIDBKeyRange}}catch{Ko={indexedDB:null,IDBKeyRange:null}}const Ft=kn;function Wt(Fe){let He=xt;try{xt=!0,Ki.storagemutated.fire(Fe)}finally{xt=He}}w(Ft,{...q,delete:Fe=>new Ft(Fe,{addons:[]}).delete(),exists:Fe=>new Ft(Fe,{addons:[]}).open().then(He=>(He.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(Fe){try{return function({indexedDB:He,IDBKeyRange:wt}){return $s(He)?Promise.resolve(He.databases()).then(Ut=>Ut.map(cn=>cn.name).filter(cn=>cn!==Bn)):is(He,wt).toCollection().primaryKeys()}(Ft.dependencies).then(Fe)}catch{return mo(new Ke.MissingAPI)}},defineClass:()=>function(Fe){T(this,Fe)},ignoreTransaction:Fe=>Mi.trans?Ot(Mi.transless,Fe):Fe(),vip:Es,async:function(Fe){return function(){try{var He=Js(Fe.apply(this,arguments));return He&&"function"==typeof He.then?He:Qn.resolve(He)}catch(wt){return mo(wt)}}},spawn:function(Fe,He,wt){try{var Ut=Js(Fe.apply(wt,He||[]));return Ut&&"function"==typeof Ut.then?Ut:Qn.resolve(Ut)}catch(cn){return mo(cn)}},currentTransaction:{get:()=>Mi.trans||null},waitFor:function(Fe,He){const wt=Qn.resolve("function"==typeof Fe?Ft.ignoreTransaction(Fe):Fe).timeout(He||6e4);return Mi.trans?Mi.trans.waitFor(wt):wt},Promise:Qn,debug:{get:()=>Ie,set:Fe=>{W(Fe,"dexie"===Fe?()=>!0:xn)}},derive:x,extend:T,props:w,override:X,Events:fs,on:Ki,liveQuery:function Po(Fe){let He,wt=!1;const Ut=new Hi(cn=>{const Ln=Pe(Fe);let $n=!1,bi={},vi={};const ki={get closed(){return $n},unsubscribe:()=>{$n=!0,Ki.storagemutated.unsubscribe(oo)}};cn.start&&cn.start(ki);let Si=!1,Wi=!1;function Pi(){return d(vi).some(Ht=>bi[Ht]&&function oa(Fe,He){const wt=ot(He);let Ut=wt.next();if(Ut.done)return!1;let cn=Ut.value;const Ln=ot(Fe);let $n=Ln.next(cn.from),bi=$n.value;for(;!Ut.done&&!$n.done;){if(xs(bi.from,cn.to)<=0&&xs(bi.to,cn.from)>=0)return!0;xs(cn.from,bi.from)<0?cn=(Ut=wt.next(bi.from)).value:bi=($n=Ln.next(cn.from)).value}return!1}(bi[Ht],vi[Ht]))}const oo=Ht=>{co(bi,Ht),Pi()&&Do()},Do=()=>{if(Si||$n)return;bi={};const Ht={},Mt=function(bt){Ln&&Yi();const an=()=>Ni(Fe,{subscr:bt,trans:null}),Un=Mi.trans?Ot(Mi.transless,an):an();return Ln&&Un.then(Sn,Sn),Un}(Ht);Wi||(Ki(Yn,oo),Wi=!0),Si=!0,Promise.resolve(Mt).then(bt=>{wt=!0,He=bt,Si=!1,$n||(Pi()?Do():(bi={},vi=Ht,cn.next&&cn.next(bt)))},bt=>{Si=!1,wt=!1,cn.error&&cn.error(bt),ki.unsubscribe()})};return Do(),ki});return Ut.hasValue=()=>wt,Ut.getValue=()=>He,Ut},extendObservabilitySet:co,getByKeyPath:M,setByKeyPath:H,delByKeyPath:function(Fe,He){"string"==typeof He?H(Fe,He,void 0):"length"in He&&[].map.call(He,function(wt){H(Fe,wt,void 0)})},shallowClone:J,deepClone:K,getObjectDiff:Ar,cmp:xs,asap:Z,minKey:jn,addons:[],connections:zi,errnames:Ee,dependencies:Ko,semVer:"3.2.7",version:"3.2.7".split(".").map(Fe=>parseInt(Fe)).reduce((Fe,He,wt)=>Fe+He/Math.pow(10,2*wt))}),Ft.maxKey=ms(Ft.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Ki(Yn,Fe=>{if(!xt){let He;_o?(He=document.createEvent("CustomEvent"),He.initCustomEvent(xi,!0,!0,Fe)):He=new CustomEvent(xi,{detail:Fe}),xt=!0,dispatchEvent(He),xt=!1}}),addEventListener(xi,({detail:Fe})=>{xt||Wt(Fe)}));let xt=!1;if(typeof BroadcastChannel<"u"){const Fe=new BroadcastChannel(xi);"function"==typeof Fe.unref&&Fe.unref(),Ki(Yn,He=>{xt||Fe.postMessage(He)}),Fe.onmessage=He=>{He.data&&Wt(He.data)}}else if(typeof self<"u"&&typeof navigator<"u"){Ki(Yn,He=>{try{xt||(typeof localStorage<"u"&&localStorage.setItem(xi,JSON.stringify({trig:Math.random(),changedParts:He})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(wt=>wt.postMessage({type:xi,changedParts:He})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",He=>{if(He.key===xi){const wt=JSON.parse(He.newValue);wt&&Wt(wt.changedParts)}});const Fe=self.document&&navigator.serviceWorker;Fe&&Fe.addEventListener("message",function({data:He}){He&&He.type===xi&&Wt(He.changedParts)})}Qn.rejectionMapper=function(Fe,He){if(!Fe||Fe instanceof Ye||Fe instanceof TypeError||Fe instanceof SyntaxError||!Fe.name||!Be[Fe.name])return Fe;var wt=new Be[Fe.name](He||Fe.message,Fe);return"stack"in Fe&&v(wt,"stack",{get:function(){return this.inner.stack}}),wt},W(Ie,xn)},3480:(En,it,p)=>{"use strict";p.d(it,{A:()=>ye});var S=p(1973),d=p(1830),m=p(9066),T=p(3777),C=p(3090),e=p(5704),k=p(5397),w=p(8684),P=p(6620);const x="dx-invalid-message-auto",b="dx-validation-target";class B extends m.A{getProps(){const _e=super.getProps();return _e.onFocusIn=()=>{if("auto"===this.option("validationMessageMode")){const Ye=(0,e.A)(function v(Me,_e){var ke;return((null===(ke=Me.getRootNode)||void 0===ke?void 0:ke.call(Me))??document).querySelector(_e)}(this.element(),".dx-invalid-message.dx-overlay-wrapper"));Ye?.removeClass(x);const de=150;this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(()=>{Ye?.addClass(x)},de)}},_e.saveValueChangeEvent=ke=>{this._valueChangeEventInstance=ke},_e}_createElement(_e){super._createElement(_e),this.showValidationMessageTimeout=void 0,this.validationRequest=(0,w.A)(),(0,k.p)(this.$element()[0],b,this)}_render(){var _e;null===(_e=this.option("_onMarkupRendered"))||void 0===_e||_e()}_init(){super._init(),this._initialValue=this.option("value")}_initializeComponent(){super._initializeComponent(),this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})}_initOptions(_e){super._initOptions(_e),this.option(T.A.initValidationOptions(_e))}_getDefaultOptions(){return(0,C.X)(super._getDefaultOptions(),{validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})}_bindInnerWidgetOptions(_e,ke){const Ye=(0,C.X)({},_e.option()),de=()=>this._silent(ke,Ye);de(),_e.on("optionChanged",de)}_raiseValidation(_e,ke){const Ye=!(0,d.O9)(_e)&&!(0,d.O9)(ke);_e!==ke&&!Ye&&this.validationRequest.fire({value:_e,editor:this})}_raiseValueChangeAction(_e,ke){var Ye;null===(Ye=this._valueChangeAction)||void 0===Ye||Ye.call(this,{element:this.$element(),previousValue:ke,value:_e,event:this._valueChangeEventInstance}),this._valueChangeEventInstance=void 0}_optionChanged(_e){const{name:ke,previousValue:Ye,value:de}=_e;switch(ke&&void 0!==this._getActionConfigs()[ke]&&this._addAction(ke),ke){case"value":this._raiseValidation(de,Ye),this.option("isDirty",this._initialValue!==de),this._raiseValueChangeAction(de,Ye);break;case"onValueChanged":this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]});break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(T.A.synchronizeValidationOptions(_e,this.option()))}super._optionChanged(_e)}clear(){const{value:_e}=this._getDefaultOptions();this.option({value:_e})}reset(){arguments.length&&(this._initialValue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0),this.option("value",this._initialValue),this.option("isDirty",!1),this.option("isValid",!0)}_dispose(){super._dispose(),(0,k.p)(this.element(),b,null),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout)}}const j=P.A.isEditor,F=Me=>j(Me)||Me instanceof B;B.isEditor=F,P.A.isEditor=F;class X extends B{_useTemplates(){return!1}_isFocused(){return this.$element()[0].classList.contains("dx-state-focused")}getSupportedKeyNames(){return["space"]}getProps(){const _e=super.getProps();return null!==_e.value&&(_e.value=!!_e.value),_e}}var U=p(9144),Z=p(5737),A=p(5328),M=p(5652),H=p(5973),J=p(1257),R=p(6628),L=p(8649);p(9212);const Q=["size"],K={};let ee=(()=>{class Me extends M.eh{constructor(ke){super(ke),this.state={},this.elementRef=(0,A._3)(),this.__getterCache={}}get cssStyles(){return void 0!==this.__getterCache.cssStyles?this.__getterCache.cssStyles:this.__getterCache.cssStyles=(()=>{const{size:ke}=this.props;return{fontSize:(0,L.CC)("fontSize",ke)}})()}get restAttributes(){return(0,U.A)(this.props,Q)}componentWillUpdate(ke,Ye,de){this.props.size!==ke.size&&(this.__getterCache.cssStyles=void 0)}render(){return(Me=>{const{cssStyles:_e,elementRef:ke}=Me;return(0,A.bF)(1,"span","dx-checkbox-icon",null,1,{style:(0,M.gs)(_e)},null,ke)})({props:(0,Z.A)({},this.props),elementRef:this.elementRef,cssStyles:this.cssStyles,restAttributes:this.restAttributes})}}return Me.defaultProps=K,Me})();var re=p(2673),be=p(5170);const ce=["accessKey","activeStateEnabled","aria","className","defaultValue","disabled","enableThreeStateBehavior","focusStateEnabled","height","hint","hoverStateEnabled","iconSize","inputAttr","isDirty","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","saveValueChangeEvent","tabIndex","text","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],De=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(J.eH),Object.getOwnPropertyDescriptors({text:"",enableThreeStateBehavior:!1,activeStateEnabled:!0,hoverStateEnabled:!0,get focusStateEnabled(){return"desktop"===H.A.real().deviceType&&!H.A.isSimulator()},defaultValue:!1,valueChange:()=>{}}))),Pe={get text(){return De.text},get enableThreeStateBehavior(){return De.enableThreeStateBehavior},get activeStateEnabled(){return De.activeStateEnabled},get hoverStateEnabled(){return De.hoverStateEnabled},get focusStateEnabled(){return De.focusStateEnabled},get defaultValue(){return De.defaultValue},get valueChange(){return De.valueChange},get readOnly(){return De.readOnly},get name(){return De.name},get validationError(){return De.validationError},get validationErrors(){return De.validationErrors},get validationMessageMode(){return De.validationMessageMode},get validationMessagePosition(){return De.validationMessagePosition},get validationStatus(){return De.validationStatus},get isValid(){return De.isValid},get isDirty(){return De.isDirty},get inputAttr(){return De.inputAttr},get className(){return De.className},get disabled(){return De.disabled},get tabIndex(){return De.tabIndex},get visible(){return De.visible},get aria(){return re.b7.aria}};class Ie extends M.oe{constructor(_e){super(_e),this.editorRef=(0,A._3)(),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[(0,M.h2)()]}onWidgetClick(_e){const{enableThreeStateBehavior:ke,readOnly:Ye,saveValueChangeEvent:de}=this.props;if(!Ye)if(de?.(_e),ke){let Ae;this.setState(pe=>(Ae=null===(void 0!==this.props.value?this.props.value:pe.value)||!(void 0!==this.props.value?this.props.value:pe.value)&&null,{value:Ae})),this.props.valueChange(Ae)}else{let Ae;this.setState(pe=>(Ae=!(void 0!==this.props.value?this.props.value:pe.value),{value:Ae})),this.props.valueChange(Ae)}}keyDown(_e){const{onKeyDown:ke}=this.props,{keyName:Ye,originalEvent:de,which:Ae}=_e,pe=ke?.(_e);if(null!=pe&&pe.cancel)return pe;("space"===Ye||"space"===Ae)&&(de.preventDefault(),this.onWidgetClick(de))}get cssClasses(){return(Me=>{const{text:_e,value:ke}=Me;return(0,R.g)({"dx-checkbox":!0,"dx-checkbox-checked":!0===ke,"dx-checkbox-has-text":!!_e,"dx-checkbox-indeterminate":null===ke})})((0,Z.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}))}get aria(){return(0,Z.A)({},{role:"checkbox",checked:null===(void 0!==this.props.value?this.props.value:this.state.value)?"mixed":`${!0===(void 0!==this.props.value?this.props.value:this.state.value)}`},this.props.aria)}get restAttributes(){const _e=(0,Z.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,U.A)(_e,ce)}focus(){this.editorRef.current.focus()}blur(){this.editorRef.current.blur()}render(){return(Me=>{const{aria:_e,cssClasses:ke,editorRef:Ye,keyDown:de,onWidgetClick:Ae,props:{accessKey:pe,activeStateEnabled:Ee,className:le,disabled:Ke,focusStateEnabled:Be,height:q,hint:Oe,hoverStateEnabled:fe,iconSize:We,isValid:Ue,name:Ve,onFocusIn:tt,readOnly:at,rtlEnabled:Vt,tabIndex:qe,text:Nt,validationError:et,validationErrors:ue,validationMessageMode:me,validationMessagePosition:Te,validationStatus:je,value:Ne,visible:lt,width:Qe},restAttributes:Ct}=Me;return(0,A._B)((0,A.sO)(2,J.KE,(0,Z.A)({aria:_e,classes:ke,onClick:Ae,onKeyDown:de,accessKey:pe,activeStateEnabled:Ee,focusStateEnabled:Be,hoverStateEnabled:fe,className:le,disabled:Ke,readOnly:at,hint:Oe,height:q,width:Qe,rtlEnabled:Vt,tabIndex:qe,visible:lt,validationError:et,validationErrors:ue,validationMessageMode:me,validationMessagePosition:Te,validationStatus:je,isValid:Ue,onFocusIn:tt},Ct,{children:(0,A.nl)([(0,A._B)((0,A.bF)(64,"input",null,null,1,(0,Z.A)({type:"hidden",value:`${Ne}`},Ve&&{name:Ve}))),(0,A.bF)(1,"div","dx-checkbox-container",[(0,A.sO)(2,ee,{size:We,isChecked:!0===Ne}),Nt&&(0,A.bF)(1,"span","dx-checkbox-text",Nt,0)],0)],4)}),null,Ye))})({props:(0,Z.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),editorRef:this.editorRef,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,cssClasses:this.cssClasses,aria:this.aria,restAttributes:this.restAttributes})}}Ie.defaultProps=Pe;const ie=[];class Ce extends X{getProps(){const _e=super.getProps();return _e.onKeyDown=this._wrapKeyDownHandler(_e.onKeyDown),_e}focus(){var _e;return null===(_e=this.viewRef)||void 0===_e?void 0:_e.focus(...arguments)}blur(){var _e;return null===(_e=this.viewRef)||void 0===_e?void 0:_e.blur(...arguments)}_getActionConfigs(){return{onFocusIn:{},onClick:{}}}get _propsInfo(){return{twoWay:[["value","defaultValue","valueChange"]],allowNull:["defaultValue","validationError","validationErrors","value"],elements:[],templates:[],props:["text","iconSize","enableThreeStateBehavior","activeStateEnabled","hoverStateEnabled","focusStateEnabled","saveValueChangeEvent","defaultValue","valueChange","readOnly","name","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","isValid","isDirty","inputAttr","onFocusIn","className","accessKey","disabled","height","hint","onClick","onKeyDown","rtlEnabled","tabIndex","visible","width","aria","value"]}}get _viewComponent(){return Ie}}(0,S.A)("dxCheckBox",Ce),Ce.defaultOptions=function he(Me){ie.push(Me),Ie.defaultProps=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(Ie.defaultProps),Object.getOwnPropertyDescriptors(function W(Me){const _e=["value"];return Object.keys(Me).reduce((ke,Ye)=>{const de=Me[Ye];return ke[_e.some(pe=>pe===Ye)?"default"+Ye.charAt(0).toUpperCase()+Ye.slice(1):Ye]=de,ke},{})}((0,be.a6)(ie)))))};const ye=Ce},3486:(En,it,p)=>{"use strict";p.d(it,{h:()=>e,m:()=>k});var S=p(656),d=p(4303),m=p(4083),T=p(3349),C=p(8914);let e=(()=>{class w extends T.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(v){this._setOption("accessKey",v)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(v){this._setOption("activeStateEnabled",v)}get dataSource(){return this._getOption("dataSource")}set dataSource(v){this._setOption("dataSource",v)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(v){this._setOption("deferRendering",v)}get disabled(){return this._getOption("disabled")}set disabled(v){this._setOption("disabled",v)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(v){this._setOption("displayExpr",v)}get dropDownContentTemplate(){return this._getOption("dropDownContentTemplate")}set dropDownContentTemplate(v){this._setOption("dropDownContentTemplate",v)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(v){this._setOption("dropDownOptions",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(v){this._setOption("focusStateEnabled",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get hint(){return this._getOption("hint")}set hint(v){this._setOption("hint",v)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(v){this._setOption("hoverStateEnabled",v)}get icon(){return this._getOption("icon")}set icon(v){this._setOption("icon",v)}get items(){return this._getOption("items")}set items(v){this._setOption("items",v)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(v){this._setOption("itemTemplate",v)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(v){this._setOption("keyExpr",v)}get noDataText(){return this._getOption("noDataText")}set noDataText(v){this._setOption("noDataText",v)}get opened(){return this._getOption("opened")}set opened(v){this._setOption("opened",v)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(v){this._setOption("rtlEnabled",v)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(v){this._setOption("selectedItem",v)}get selectedItemKey(){return this._getOption("selectedItemKey")}set selectedItemKey(v){this._setOption("selectedItemKey",v)}get showArrowIcon(){return this._getOption("showArrowIcon")}set showArrowIcon(v){this._setOption("showArrowIcon",v)}get splitButton(){return this._getOption("splitButton")}set splitButton(v){this._setOption("splitButton",v)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(v){this._setOption("stylingMode",v)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(v){this._setOption("tabIndex",v)}get template(){return this._getOption("template")}set template(v){this._setOption("template",v)}get text(){return this._getOption("text")}set text(v){this._setOption("text",v)}get type(){return this._getOption("type")}set type(v){this._setOption("type",v)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(v){this._setOption("useItemTextAsTitle",v)}get useSelectMode(){return this._getOption("useSelectMode")}set useSelectMode(v){this._setOption("useSelectMode",v)}get visible(){return this._getOption("visible")}set visible(v){this._setOption("visible",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(v){this._setOption("wrapItemText",v)}onButtonClick;onContentReady;onDisposing;onInitialized;onItemClick;onOptionChanged;onSelectionChanged;accessKeyChange;activeStateEnabledChange;dataSourceChange;deferRenderingChange;disabledChange;displayExprChange;dropDownContentTemplateChange;dropDownOptionsChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;iconChange;itemsChange;itemTemplateChange;keyExprChange;noDataTextChange;openedChange;rtlEnabledChange;selectedItemChange;selectedItemKeyChange;showArrowIconChange;splitButtonChange;stylingModeChange;tabIndexChange;templateChange;textChange;typeChange;useItemTextAsTitleChange;useSelectModeChange;visibleChange;widthChange;wrapItemTextChange;get itemsChildren(){return this._getOption("items")}set itemsChildren(v){this.setChildren("items",v)}constructor(v,x,b,B,j,F,X,U){super(v,x,b,B,X,U),this._watcherHelper=B,this._idh=j,this._createEventEmitters([{subscribe:"buttonClick",emit:"onButtonClick"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"dropDownContentTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"iconChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"keyExprChange"},{emit:"noDataTextChange"},{emit:"openedChange"},{emit:"rtlEnabledChange"},{emit:"selectedItemChange"},{emit:"selectedItemKeyChange"},{emit:"showArrowIconChange"},{emit:"splitButtonChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"templateChange"},{emit:"textChange"},{emit:"typeChange"},{emit:"useItemTextAsTitleChange"},{emit:"useSelectModeChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"}]),this._idh.setHost(this),F.setHost(this)}_createInstance(v,x){return new m.A(v,x)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(v){super.ngOnChanges(v),this.setupChanges("dataSource",v),this.setupChanges("items",v)}setupChanges(v,x){v in this._optionsToUpdate||this._idh.setup(v,x)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(v,x){let b=this._idh.setupSingle(v,x),B=null!==this._idh.getChanges(v,x);(b||B)&&super._setOption(v,x)}static \u0275fac=function(x){return new(x||w)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.$M),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:w,selectors:[["dx-drop-down-button"]],contentQueries:function(x,b,B){if(1&x&&d.wni(B,C.CVf,4),2&x){let j;d.mGM(j=d.lsd())&&(b.itemsChildren=j)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",dropDownContentTemplate:"dropDownContentTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",icon:"icon",items:"items",itemTemplate:"itemTemplate",keyExpr:"keyExpr",noDataText:"noDataText",opened:"opened",rtlEnabled:"rtlEnabled",selectedItem:"selectedItem",selectedItemKey:"selectedItemKey",showArrowIcon:"showArrowIcon",splitButton:"splitButton",stylingMode:"stylingMode",tabIndex:"tabIndex",template:"template",text:"text",type:"type",useItemTextAsTitle:"useItemTextAsTitle",useSelectMode:"useSelectMode",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onButtonClick:"onButtonClick",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onOptionChanged:"onOptionChanged",onSelectionChanged:"onSelectionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",dropDownContentTemplateChange:"dropDownContentTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",iconChange:"iconChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",keyExprChange:"keyExprChange",noDataTextChange:"noDataTextChange",openedChange:"openedChange",rtlEnabledChange:"rtlEnabledChange",selectedItemChange:"selectedItemChange",selectedItemKeyChange:"selectedItemKeyChange",showArrowIconChange:"showArrowIconChange",splitButtonChange:"splitButtonChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",templateChange:"templateChange",textChange:"textChange",typeChange:"typeChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",useSelectModeChange:"useSelectModeChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH,T.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(x,b){},encapsulation:2})}return w})(),k=(()=>{class w{static \u0275fac=function(x){return new(x||w)};static \u0275mod=d.$C({type:w});static \u0275inj=S.G2t({imports:[C.df_,C.YLo,C.YaD,C.eNx,C.Bkf,C.nwt,C.hXw,C.YGc,C.gf0,C.rvW,C.Tob,C.$Ql,C.isg,C.POb,T.p_,T.xZ,C.df_,C.YLo,C.YaD,C.eNx,C.Bkf,C.nwt,C.hXw,C.YGc,C.gf0,C.rvW,C.Tob,C.$Ql,C.isg,C.POb,T.xZ]})}return w})()},3527:(En,it,p)=>{"use strict";p.d(it,{T:()=>m});var S=p(9867),d=p(6111);function m(T,C){return(0,S.N)((e,k)=>{let w=0;e.subscribe((0,d._)(k,P=>{k.next(T.call(C,P,w++))}))})}},3535:(En,it,p)=>{"use strict";p.d(it,{A:()=>P});var S=p(9293),d=p(1208),m=p(6211);const T=Math.abs,w=d.A.inherit({start:function(v){this._startEventData=(0,S.rw)(v),this._startTimer(v)},_startTimer:function(v){const x="timeout"in this?this.timeout:750;this._holdTimer=setTimeout(function(){this._requestAccept(v),this._fireEvent("dxhold",v,{target:v.target}),this._forgetAccept()}.bind(this),x)},move:function(v){this._touchWasMoved(v)&&this._cancel(v)},_touchWasMoved:function(v){const x=(0,S.nm)(this._startEventData,(0,S.rw)(v));return T(x.x)>5||T(x.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});(0,m.A)({emitter:w,bubble:!0,events:["dxhold"]});const P={name:"dxhold"}},3538:(En,it,p)=>{"use strict";p.d(it,{A:()=>x});var S=p(7251),d=p(1830);const m=function(b,B,j){return function(){const F=this.callBase;this.callBase=b[B];try{return j.apply(this,arguments)}finally{this.callBase=F}}},C=function(b){const B=this;let j,F,X;if(!b)return B;for(F in b)X=b[F],j="function"==typeof B.prototype[F]&&"function"==typeof X,B.prototype[F]=j?m(B.parent.prototype,F,X):X;return B},e=function(){const b=this;let B,j,F;const X=Object.prototype.hasOwnProperty.bind(b);for(!X("_includedCtors")&&!X("_includedPostCtors")&&(b._includedCtors=b._includedCtors.slice(0),b._includedPostCtors=b._includedPostCtors.slice(0)),F=0;F<arguments.length;F++)for(j in B=arguments[F],B.ctor&&b._includedCtors.push(B.ctor),B.postCtor&&b._includedPostCtors.push(B.postCtor),B)"ctor"===j||"postCtor"===j||"default"===j||(b.prototype[j]=B[j]);return b},k=function(b){if(!Object.prototype.hasOwnProperty.bind(this)("parent")&&this.parent){const F=Object.getPrototypeOf(this);return F===b||F.subclassOf(b)}return this.parent===b||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(b)},w=function(){throw S.A.Error("E0001")},P=function(){const b=Object.prototype.hasOwnProperty;return function(B,j){for(const F in B){if(!b.call(B,F))return;j[F]=B[F]}}}(),v=function(){};v.inherit=function(b){const B=function(){if(!this||(0,d.l6)(this)||"function"!=typeof this.constructor)throw S.A.Error("E0003");const j=this,F=j.ctor,X=j.constructor._includedCtors,U=j.constructor._includedPostCtors;let Z;for(Z=0;Z<X.length;Z++)X[Z].call(j);for(F&&F.apply(j,arguments),Z=0;Z<U.length;Z++)U[Z].call(j)};return B.prototype=function(b){const B=function(){};return B.prototype=b.prototype,new B}(this),P(this,B),B.inherit=this.inherit,B.abstract=w,B.redefine=C,B.include=e,B.subclassOf=k,B.parent=this,B._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],B._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],B.prototype.constructor=B,B.redefine(b),B},v.abstract=w;const x=v},3568:(En,it,p)=>{"use strict";p.d(it,{A:()=>S});const S={}},3608:(En,it,p)=>{"use strict";p.d(it,{A:()=>be});var S=p(6870),d=p(2123),m=p(1973),T=p(6054),C=p(9522),e=p(5704),k=p(3090),w=p(3012),P=p(4757),v=p(1363),x=p(1830),b=p(6110),B=p(4072),j=p(9293),F=p(8628),X=p(9212),U=p(127),Z=p(5742);const R={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},L=function(ce){return(0,x.Gv)(ce)?ce.name:ce},G=function(ce,Re){const Se=ce.option(Re);return L(Se)},z=function(ce,Re){const{target:Se,shading:De,disabled:Pe,hideEvent:Ie}=ce.option(),W=(0,x.Kg)(Se),ie=De&&"hide"===Re,he=ie?null:G(ce,`${Re}Event`);if(ie&&Ie&&U.A.log("W1020"),!he||Pe)return;const Ce=(0,j.b4)(he,ce.NAME),ye=ce._createAction(function(){const ke=function(ce,Re){const Se=ce.option(Re);return(0,x.Gv)(Se)&&Se.delay}(ce,`${Re}Event`);this._clearEventsTimeouts(),ke?this._timeouts[Re]=setTimeout(()=>{ce[Re]()},ke):ce[Re]()}.bind(ce),{validatingTargetName:"target"}),Me=function(ke){ye({event:ke,target:(0,e.A)(ke.currentTarget)})},_e=`_${Re}EventHandler`;if(W)ce[_e]=Me,B.A.on(T.A.getDocument(),Ce,Se,Me);else{const ke=(0,C.cc)((0,e.A)(Se));ce[_e]=void 0,B.A.on(ke,Ce,Me)}},K=function(ce,Re,Se,De){let Pe=De||G(ce,`${Se}Event`);if(!Pe)return;Pe=(0,j.b4)(Pe,ce.NAME);const Ie=`_${Se}EventHandler`;ce[Ie]?B.A.off(T.A.getDocument(),Pe,Re,ce[Ie]):B.A.off((0,C.cc)((0,e.A)(Re)),Pe)},ee=F.A.inherit({_getDefaultOptions(){return(0,k.X)(this.callBase(),{target:void 0,shading:!1,position:(0,k.X)({},Z.X.bottom),hideOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",from:1,to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,hideOnParentScroll:!0,arrowPosition:"",arrowOffset:0,_fixWrapperPosition:!0})},_defaultOptionsRules:()=>[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:()=>!(0,b.Vd)(),options:{animation:null}},{device:()=>(0,X.Nt)(),options:{useFlatToolbarButtons:!0}},{device:()=>(0,X.gx)(),options:{useDefaultToolbarButtons:!0,showCloseButton:!1}}],_init(){var ce;this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass("dx-popover"),this.$wrapper().addClass("dx-popover-wrapper");const Re=null===(ce=this.option("toolbarItems"))||void 0===ce?void 0:ce.length;this.setAria("role",Re?"dialog":"tooltip")},_render(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents(ce){K(this,ce,"show"),K(this,ce,"hide")},_attachEvents(){z(this,"show"),z(this,"hide")},_renderArrow(){this._$arrow=(0,e.A)("<div>").addClass("dx-popover-arrow").prependTo(this.$overlayContent())},_documentDownHandler(ce){return!this._isOutsideClick(ce)||this.callBase(ce)},_isOutsideClick(ce){return!(0,e.A)(ce.target).closest(this.option("target")).length},_animate(ce){ce&&ce.to&&"object"==typeof ce.to&&(0,k.X)(ce.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation(){this.callBase.apply(this,arguments)},_renderTitle(){this.$wrapper().toggleClass("dx-popover-without-title",!this.option("showTitle")),this.callBase()},_renderPosition(){let ce=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.callBase(),this._renderOverlayPosition(ce),this._actions.onPositioned()},_renderOverlayPosition(ce){this._resetOverlayPosition(ce),this._updateContentSize(ce);const Re=this._getContainerPosition(),Se=S.A.setup(this.$overlayContent(),Re),De=this._getSideByLocation(Se);this._togglePositionClass(`dx-position-${De}`),this._toggleFlippedClass(Se.h.flip,Se.v.flip),(this._isHorizontalSide()||this._isVerticalSide())&&this._renderArrowPosition(De)},_resetOverlayPosition(ce){this._setContentHeight(ce),this._togglePositionClass(`dx-position-${this._positionController._positionSide}`),(0,d.Cy)(this.$overlayContent(),{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize(ce){if(!this.$content()||!ce)return;const Re=S.A.calculate(this.$overlayContent(),this._getContainerPosition());if(Re.h.oversize>0&&this._isHorizontalSide()&&!Re.h.fit){const Se=(0,v.RG)(this.$overlayContent())-Re.h.oversize;(0,v.zj)(this.$overlayContent(),Se)}if(Re.v.oversize>0&&this._isVerticalSide()&&!Re.v.fit){const Se=(0,v.Oq)(this.$overlayContent())-Re.v.oversize,De=(0,v.Oq)(this.$content())-Re.v.oversize;(0,v.k$)(this.$overlayContent(),Se),(0,v.k$)(this.$content(),De)}},_getContainerPosition(){return this._positionController._getContainerPosition()},_getHideOnParentScrollTarget(){return(0,e.A)(this._positionController._position.of||this.callBase())},_getSideByLocation(ce){const Re=ce.v.flip,Se=ce.h.flip;return this._isVerticalSide()&&Re||this._isHorizontalSide()&&Se||this._isPopoverInside()?R[this._positionController._positionSide]:this._positionController._positionSide},_togglePositionClass(ce){this.$wrapper().removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(ce)},_toggleFlippedClass(ce,Re){this.$wrapper().toggleClass("dx-popover-flipped-horizontal",ce).toggleClass("dx-popover-flipped-vertical",Re)},_renderArrowPosition(ce){const Re=(0,P.N)(this._$arrow.get(0)),Se=-(this._isVerticalSide(ce)?Re.height:Re.width);this._$arrow.css(R[ce],Se);const De=this._isVerticalSide(ce)?"left":"top",Pe=this._isVerticalSide(ce)?"width":"height",Ie=(0,e.A)(this._positionController._position.of),W=S.A.offset(Ie)||{top:0,left:0},ie=S.A.offset(this.$overlayContent()),he=Re[Pe],Ce=ie[De],ye=(0,P.N)(this.$overlayContent().get(0))[Pe],Me=W[De],_e=Ie.get(0),ke=_e&&!_e.preventDefault?(0,P.N)(_e)[Pe]:0,Ye=Math.max(Ce,Me),de=Math.min(Ce+ye,Me+ke);let Ae;Ae="start"===this.option("arrowPosition")?Ye-Ce:"end"===this.option("arrowPosition")?de-Ce-he:(Ye+de)/2-Ce-he/2;const pe=this._positionController._getContentBorderWidth(ce),Ee=(0,w.df)(Ae-pe+this.option("arrowOffset"),pe,ye-he-2*pe);this._$arrow.css(De,Ee)},_isPopoverInside(){return this._positionController._isPopoverInside()},_setContentHeight(ce){ce&&this.callBase()},_getPositionControllerConfig(){const{shading:ce,target:Re}=this.option();return(0,k.X)({},this.callBase(),{target:Re,shading:ce,$arrow:this._$arrow})},_initPositionController(){this._positionController=new Z.B(this._getPositionControllerConfig())},_renderWrapperDimensions(){this.option("shading")&&this.$wrapper().css({width:"100%",height:"100%"})},_isVerticalSide(ce){return this._positionController._isVerticalSide(ce)},_isHorizontalSide(ce){return this._positionController._isHorizontalSide(ce)},_clearEventTimeout(ce){clearTimeout(this._timeouts[ce])},_clearEventsTimeouts(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged(ce){switch(ce.name){case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":ce.value&&this.option("fullScreen",!1);break;case"target":ce.previousValue&&this._detachEvents(ce.previousValue),this._positionController.updateTarget(ce.value),this._invalidate();break;case"showEvent":case"hideEvent":{const Re=ce.name.substring(0,4),Se=L(ce.previousValue);this.hide(),K(this,this.option("target"),Re,Se),z(this,Re);break}case"visible":this._clearEventTimeout(ce.value?"show":"hide"),this.callBase(ce);break;default:this.callBase(ce)}},show(ce){return ce&&this.option("target",ce),this.callBase()}});(0,m.A)("dxPopover",ee);const be=ee},3651:(En,it,p)=>{"use strict";p.d(it,{A:()=>le});var S=p(5737),d=p(1973),m=p(1074),T=p(5704);const e=["dxAutocomplete","dxButton","dxCheckBox","dxDateBox","dxMenu","dxSelectBox","dxTabs","dxTextBox","dxButtonGroup","dxDropDownButton"];function w(Ke,Be){var q;if(!Ke)return;const Oe=Ke._findItemElementByItem(Be);if(!Oe.length)return;const fe=Ke._getItemData(Oe),We=!!(null!==(q=fe.options)&&void 0!==q&&q.disabled||fe.disabled||Ke.option("disabled")),{widget:Ue}=fe;if(Ue&&e.includes(Ue)){const at=Oe.find(Ue.toLowerCase().replace("dx",".dx-"));if(at.length){var Ve,tt;const Vt=function(Ke){const Be=Ke.data&&Ke.data(),q=Be&&Be.dxComponents,Oe=q&&q[0];return Oe&&Be[Oe]}(at);if(!Vt)return;let qe=null===(Ve=Vt._focusTarget)||void 0===Ve?void 0:Ve.call(Vt);qe="dxDropDownButton"===Ue?qe&&qe.find(".dx-buttongroup"):qe??(0,T.A)(Vt.element());const Nt=null===(tt=fe.options)||void 0===tt?void 0:tt.tabIndex;qe.attr("tabIndex",We?-1:Nt??0)}}}var P=p(1363);class x{constructor(Be){this._toolbar=Be}_initMarkup(){}_updateMenuVisibility(){}_renderMenuItems(){}_renderItem(){}_getMenuItems(){}_getToolbarItems(){return this._toolbar.option("items")??[]}_getItemsWidth(){return this._toolbar._getSummaryItemsSize("width",this._toolbar._itemElements(),!0)}_arrangeItems(){const Be=this._toolbar._$toolbarItemsContainer.find(".dx-toolbar-label").eq(0);if(!Be.length)return;const q=(0,P.RG)(this._toolbar.$element()),Oe=(0,P.Ot)(Be)-(0,P.RG)(Be);Be.css("maxWidth",q-Oe)}_hideOverflowItems(){}_dimensionChanged(){}_itemOptionChanged(){}_optionChanged(){}}var b=p(4859),B=p(4270),j=p(3090),F=p(2660),U=(p(8628),p(5973)),Z=p(7591),A=p(6110),M=p(9012),H=p(9212),J=p(1609),R=p(8073);class be extends R.i{_init(){super._init(),this._activeStateUnit=".dx-toolbar-menu-action:not(.dx-toolbar-hidden-button-group)"}_initMarkup(){this._renderSections(),super._initMarkup(),this._setMenuRole()}_getSections(){return this._itemContainer().children()}_itemElements(){return this._getSections().children(this._itemSelector())}_renderSections(){const Be=this._itemContainer();(0,F.__)(["before","center","after","menu"],(q,Oe)=>{const fe=`_$${Oe}Section`;this[fe]||(this[fe]=(0,T.A)("<div>").addClass("dx-toolbar-menu-section")),this[fe].appendTo(Be)})}_renderItems(){super._renderItems.apply(this,arguments),this._updateSections()}_setMenuRole(){this.$element().find(".dx-scrollview-content").attr("role","menu")}_updateSections(){const Be=this.$element().find(".dx-toolbar-menu-section");Be.removeClass("dx-toolbar-menu-last-section"),Be.not(":empty").eq(-1).addClass("dx-toolbar-menu-last-section")}_renderItem(Be,q,Oe,fe){const We=q.location??"menu",Ve=super._renderItem(Be,q,this[`_$${We}Section`],fe);return this._getItemTemplateName({itemData:q})&&Ve.addClass("dx-toolbar-menu-custom"),("menu"===We||"dxButton"===q.widget||"dxButtonGroup"===q.widget||q.isAction)&&Ve.addClass("dx-toolbar-menu-action"),"dxButton"===q.widget&&Ve.addClass("dx-toolbar-hidden-button"),"dxButtonGroup"===q.widget&&Ve.addClass("dx-toolbar-hidden-button-group"),Ve.addClass(q.cssClass),Ve}_getItemTemplateName(Be){const q=super._getItemTemplateName(Be),Oe=Be.itemData;return Oe&&Oe.menuItemTemplate||q}_dataSourceOptions(){return{paginate:!1}}_itemClickHandler(Be,q,Oe){(0,T.A)(Be.target).closest(".dx-toolbar-menu-action").length&&super._itemClickHandler(Be,q,Oe)}_clean(){this._getSections().empty(),super._clean()}}class ie extends J.A{_supportedKeys(){var Be;let q={};return(!this.option("opened")||!(null!==(Be=this._list)&&void 0!==Be&&Be.option("focusedElement")))&&(q=this._button._supportedKeys()),(0,j.X)(super._supportedKeys(),q,{tab(){this._popup&&this._popup.hide()}})}_getDefaultOptions(){return(0,S.A)({},super._getDefaultOptions(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",onButtonClick:null,activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,onItemRendered:null,closeOnClick:!0,useInkRipple:!1,container:void 0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}}})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>"desktop"===U.A.real().deviceType&&!U.A.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>(0,H.Nt)(),options:{useInkRipple:!0,animation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}}])}_init(){super._init(),this.$element().addClass("dx-dropdownmenu"),this._initItemClickAction(),this._initButtonClickAction()}_initItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")}_initButtonClickAction(){this._buttonClickAction=this._createActionByOption("onButtonClick")}_initTemplates(){this._templateManager.addDefaultTemplates({content:new Z.M("content")}),super._initTemplates()}_initMarkup(){this._renderButton(),super._initMarkup()}_render(){super._render(),this.setAria({haspopup:!0,expanded:this.option("opened")})}_renderContentImpl(){this.option("opened")&&this._renderPopup()}_clean(){this._cleanFocusState(),this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove(),delete this._list,delete this._popup}_renderButton(){const Be=this.$element().addClass("dx-dropdownmenu-button");this._button=this._createComponent(Be,M.A,{icon:"overflow",template:"content",stylingMode:(0,H.Ft)()?"text":"contained",useInkRipple:this.option("useInkRipple"),hoverStateEnabled:!1,focusStateEnabled:!1,onClick:q=>{this.option("opened",!this.option("opened")),this._buttonClickAction(q)}})}_toggleActiveState(Be,q,Oe){this._button._toggleActiveState(Be,q,Oe)}_toggleMenuVisibility(Be){var q,Oe;const fe=Be??!(null!==(q=this._popup)&&void 0!==q&&q.option("visible"));Be&&this._renderPopup(),null===(Oe=this._popup)||void 0===Oe||Oe.toggle(fe),this.setAria("expanded",fe)}_renderPopup(){if(this._$popup)return;this._$popup=(0,T.A)("<div>").appendTo(this.$element());const{rtlEnabled:Be,container:q,animation:Oe}=this.option();this._popup=this._createComponent(this._$popup,"dxPopup",{onInitialized(fe){let{component:We}=fe;We.$wrapper().addClass("dx-dropdownmenu-popup-wrapper").addClass("dx-dropdownmenu-popup")},deferRendering:!1,preventScrollEvents:!1,contentTemplate:fe=>this._renderList(fe),_ignoreFunctionValueDeprecation:!0,maxHeight:()=>this._getMaxHeight(),position:{my:"top "+(Be?"left":"right"),at:"bottom "+(Be?"left":"right"),collision:"fit flip",offset:{v:3},of:this.$element()},animation:Oe,onOptionChanged:fe=>{let{name:We,value:Ue}=fe;"visible"===We&&this.option("opened",Ue)},container:q,autoResizeEnabled:!1,height:"auto",width:"auto",hideOnOutsideClick:fe=>this._closeOutsideDropDownHandler(fe),hideOnParentScroll:!0,shading:!1,dragEnabled:!1,showTitle:!1,fullScreen:!1,_fixWrapperPosition:!0})}_getMaxHeight(){const Be=this.$element(),q=Be.offset().top,Oe=(0,P.P$)((0,A.zk)()),fe=Math.max(q,Oe-q-(0,P.P$)(Be));return Math.min(Oe,fe-3-10)}_closeOutsideDropDownHandler(Be){return!(0,T.A)(Be.target).closest(this.$element()).length}_renderList(Be){const q=(0,T.A)(Be);q.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(q,be,{dataSource:this._getListDataSource(),pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this.option("itemTemplate"),onItemClick:Oe=>{this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(Oe)},tabIndex:-1,focusStateEnabled:!1,activeStateEnabled:!0,onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}})}_itemOptionChanged(Be,q,Oe){var fe;null===(fe=this._list)||void 0===fe||fe._itemOptionChanged(Be,q,Oe),w(this._list,Be)}_getListDataSource(){return this.option("dataSource")??this.option("items")}_setListDataSource(){var Be;null===(Be=this._list)||void 0===Be||Be.option("dataSource",this._getListDataSource()),delete this._deferRendering}_getKeyboardListeners(){return super._getKeyboardListeners().concat([this._list])}_toggleVisibility(Be){var q;super._toggleVisibility(Be),null===(q=this._button)||void 0===q||q.option("visible",Be)}_optionChanged(Be){var q,Oe,fe;const{name:We,value:Ue}=Be;switch(We){case"items":case"dataSource":this.option("opened")?this._setListDataSource():this._deferRendering=!0;break;case"itemTemplate":null===(q=this._list)||void 0===q||q.option(We,this._getTemplate(Ue));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"useInkRipple":this._invalidate();break;case"focusStateEnabled":null===(Oe=this._list)||void 0===Oe||Oe.option(We,Ue),super._optionChanged(Be);break;case"onItemRendered":null===(fe=this._list)||void 0===fe||fe.option(We,Ue);break;case"opened":this._deferRendering&&this._setListDataSource(),this._toggleMenuVisibility(Ue),this._updateFocusableItemsTabIndex();break;case"closeOnClick":break;case"container":this._popup&&this._popup.option(We,Ue);break;case"disabled":this._list&&this._updateFocusableItemsTabIndex();break;default:super._optionChanged(Be)}}_updateFocusableItemsTabIndex(){this.option("items").forEach(Be=>w(this._list,Be))}}const _e="dx-toolbar-item-invisible";class ke{constructor(Be){this._toolbar=Be}_initMarkup(){(0,b.zE)(()=>{this._renderOverflowMenu(),this._renderMenuItems()})}_renderOverflowMenu(){if(!this._hasVisibleMenuItems())return;this._renderMenuButtonContainer();const Be=(0,T.A)("<div>").appendTo(this._overflowMenuContainer()),q=this._toolbar._createActionByOption("onItemClick"),Oe=this._toolbar._getTemplateByOption("menuItemTemplate");this._menu=this._toolbar._createComponent(Be,ie,{disabled:this._toolbar.option("disabled"),itemTemplate:()=>Oe,onItemClick:fe=>{q(fe)},container:this._toolbar.option("menuContainer"),onOptionChanged:fe=>{let{name:We,value:Ue}=fe;"opened"===We&&this._toolbar.option("overflowMenuVisible",Ue),"items"===We&&this._updateMenuVisibility(Ue)}})}renderMenuItems(){this._menu||this._renderOverflowMenu(),this._menu&&this._menu.option("items",this._getMenuItems()),this._menu&&!this._menu.option("items").length&&this._menu.option("opened",!1)}_renderMenuButtonContainer(){this._$overflowMenuContainer=(0,T.A)("<div>").appendTo(this._toolbar._$afterSection).addClass("dx-toolbar-button").addClass("dx-toolbar-menu-container")}_overflowMenuContainer(){return this._$overflowMenuContainer}_updateMenuVisibility(Be){const q=Be??this._getMenuItems(),Oe=q.length&&this._hasVisibleMenuItems(q);this._toggleMenuVisibility(Oe)}_toggleMenuVisibility(Be){this._overflowMenuContainer()&&this._overflowMenuContainer().toggleClass("dx-state-invisible",!Be)}_renderMenuItems(){(0,b.zE)(()=>{this.renderMenuItems()})}_dimensionChanged(){this.renderMenuItems()}_getToolbarItems(){return(0,b.VM)(this._toolbar.option("items")??[],Be=>!this._toolbar._isMenuItem(Be))}_getHiddenItems(){return this._toolbar._itemContainer().children(`.dx-toolbar-item-auto-hide.${_e}`).not(".dx-state-invisible")}_getMenuItems(){const Be=(0,b.VM)(this._toolbar.option("items")??[],fe=>this._toolbar._isMenuItem(fe)),q=this._getHiddenItems();return this._restoreItems=this._restoreItems??[],[...[].slice.call(q).map(fe=>{const We=this._toolbar._getItemData(fe),Ue=(0,T.A)(fe),Ve=Ue.children();return(0,j.X)({menuItemTemplate:()=>(this._restoreItems.push({container:Ue,item:Ve}),(0,T.A)("<div>").addClass("dx-toolbar-item-auto-hide").append(Ve))},We)}),...Be]}_hasVisibleMenuItems(Be){const q=Be??this._toolbar.option("items");let Oe=!1;const fe=(0,B.Hz)("visible"),We=(0,B.Hz)("locateInMenu");return(0,F.__)(q,(Ue,Ve)=>{const tt=fe(Ve,{functionsAsIs:!0}),at=We(Ve,{functionsAsIs:!0});(!1!==tt&&("auto"===at||"always"===at)||"menu"===Ve.location)&&(Oe=!0)}),Oe}_arrangeItems(){this._toolbar._$centerSection.css({margin:"0 auto",float:"none"}),(0,F.__)(this._restoreItems??[],(q,Oe)=>{(0,T.A)(Oe.container).append(Oe.item)}),this._restoreItems=[];const Be=(0,P.RG)(this._toolbar.$element());return this._hideOverflowItems(Be),Be}_hideOverflowItems(Be){const q=this._toolbar.$element().find(".dx-toolbar-item-auto-hide");if(!q.length)return;const Oe=Be??(0,P.RG)(this._toolbar.$element());(0,T.A)(q).removeClass(_e);let fe=this._getItemsWidth();for(;q.length&&Oe<fe;)q.eq(-1).addClass(_e),fe=this._getItemsWidth(),q.splice(-1,1)}_getItemsWidth(){return this._toolbar._getSummaryItemsSize("width",[this._toolbar._$beforeSection,this._toolbar._$centerSection,this._toolbar._$afterSection])}_itemOptionChanged(Be,q,Oe){var fe;"disabled"!==q&&"options.disabled"!==q||!this._toolbar._isMenuItem(Be)?this.renderMenuItems():null===(fe=this._menu)||void 0===fe||fe._itemOptionChanged(Be,q,Oe)}_renderItem(Be,q){"auto"===Be.locateInMenu&&q.addClass("dx-toolbar-item-auto-hide")}_optionChanged(Be,q){var Oe,fe,We,Ue,Ve;switch(Be){case"disabled":null===(Oe=this._menu)||void 0===Oe||Oe.option(Be,q);break;case"overflowMenuVisible":null===(fe=this._menu)||void 0===fe||fe.option("opened",q);break;case"onItemClick":null===(We=this._menu)||void 0===We||We.option(Be,q);break;case"menuContainer":null===(Ue=this._menu)||void 0===Ue||Ue.option("container",q);break;case"menuItemTemplate":null===(Ve=this._menu)||void 0===Ve||Ve.option("itemTemplate",q)}}}class Ae extends m.A{_getDefaultOptions(){return(0,S.A)({},super._getDefaultOptions(),{menuItemTemplate:"menuItem",menuContainer:void 0,overflowMenuVisible:!1,multiline:!1})}_isMultiline(){return this.option("multiline")}_dimensionChanged(Be){"height"!==Be&&(super._dimensionChanged(),this._layoutStrategy._dimensionChanged())}_initMarkup(){super._initMarkup(),this._updateFocusableItemsTabIndex(),this._layoutStrategy._initMarkup()}_renderToolbar(){super._renderToolbar(),this._renderLayoutStrategy()}_itemContainer(){return this._isMultiline()?this._$toolbarItemsContainer:super._itemContainer()}_renderLayoutStrategy(){this.$element().toggleClass("dx-toolbar-multiline",this._isMultiline()),this._layoutStrategy=this._isMultiline()?new x(this):new ke(this)}_renderSections(){if(!this._isMultiline())return super._renderSections()}_postProcessRenderItems(){this._layoutStrategy._hideOverflowItems(),this._layoutStrategy._updateMenuVisibility(),super._postProcessRenderItems(),this._layoutStrategy._renderMenuItems()}_renderItem(Be,q,Oe,fe){const We=super._renderItem(Be,q,Oe,fe);this._layoutStrategy._renderItem(q,We);const{widget:Ue,showText:Ve}=q;return"dxButton"===Ue&&"inMenu"===Ve&&We.toggleClass("dx-toolbar-text-auto-hide"),We}_getItemsWidth(){return this._layoutStrategy._getItemsWidth()}_getMenuItems(){return this._layoutStrategy._getMenuItems()}_getToolbarItems(){return this._layoutStrategy._getToolbarItems()}_arrangeItems(){if(this.$element().is(":hidden"))return;const Be=this._layoutStrategy._arrangeItems();this._isMultiline()||super._arrangeItems(Be)}_itemOptionChanged(Be,q,Oe,fe){this._isMenuItem(Be)||super._itemOptionChanged(Be,q,Oe,fe),this._layoutStrategy._itemOptionChanged(Be,q,Oe),("disabled"===q||"options.disabled"===q)&&w(this,Be),"location"===q&&this.repaint()}_updateFocusableItemsTabIndex(){this._getToolbarItems().forEach(Be=>w(this,Be))}_isMenuItem(Be){return"menu"===Be.location||"always"===Be.locateInMenu}_isToolbarItem(Be){return void 0===Be.location||"never"===Be.locateInMenu}_optionChanged(Be){const{name:q,value:Oe}=Be;switch(this._layoutStrategy._optionChanged(q,Oe),q){case"menuContainer":case"menuItemTemplate":case"overflowMenuVisible":break;case"multiline":this._invalidate();break;case"disabled":super._optionChanged(Be),this._updateFocusableItemsTabIndex();break;default:super._optionChanged(Be)}}updateDimensions(){this._dimensionChanged()}}(0,d.A)("dxToolbar",Ae);const le=Ae},3684:(En,it,p)=>{"use strict";p.d(it,{A:()=>Ie});var S=p(6870),d=p(2123),m=p(1973),T=p(5973),C=p(9522),e=p(2925),k=p(5704),w=p(5645),P=p(4859),v=p(3090),x=p(2660),b=p(4757),B=p(1830),j=p(6110),F=p(778),X=p(4072),U=p(9293),Z=p(8360),A=p(8628),M=p(8910),H=p(402),J=p(127),R=p(7080),L=p(5257),G=p(2773);const z="dx-dropdowneditor-input-wrapper",ee="dx-dropdowneditor-overlay",De="ios"===T.A.current().platform,Pe=M.A.inherit({_supportedKeys(){return(0,v.X)({},this.callBase(),{tab(W){if(!this.option("opened"))return;if(!this._popup.getFocusableElements().length)return void this.close();const ie=W.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();ie&&(X.A.trigger(ie,"focus"),ie.select()),W.preventDefault()},escape(W){return this.option("opened")&&W.preventDefault(),this.close(),!0},upArrow(W){return!(!(0,U.By)(W)&&(W.preventDefault(),W.stopPropagation(),W.altKey)&&(this.close(),1))},downArrow(W){return!(!(0,U.By)(W)&&(W.preventDefault(),W.stopPropagation(),W.altKey)&&(this._validatedOpening(),1))},enter(W){return this.option("opened")&&(W.preventDefault(),this._valueChangeEventHandler(W)),!0}})},_getDefaultButtons(){return this.callBase().concat([{name:"dropDown",Ctor:L.A}])},_getDefaultOptions(){return(0,v.X)(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{showTitle:!1},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:Z.A.format("OK"),cancelButtonText:Z.A.format("Cancel"),buttonsLocation:"default",useHiddenSubmitElement:!1,validationMessagePosition:"auto"})},_useTemplates:()=>!0,_getDefaultPopupPosition(W){const ie=(0,b.n)(W);return{offset:{h:0,v:-1},my:`${ie} top`,at:`${ie} bottom`,collision:"flip flip"}},_defaultOptionsRules(){return this.callBase().concat([{device:W=>"generic"===W.platform,options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper(){return this.$element().find(`.${z}`).first()},_init(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._updatePopupPosition(this.option("rtlEnabled")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_updatePopupPosition(W){const{my:ie,at:he}=this._getDefaultPopupPosition(W),Ce=this.option("popupPosition");this.option("popupPosition",(0,v.X)({},Ce,{my:ie,at:he}))},_initVisibilityActions(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup(){this._renderSubmitElement(),this.callBase(),this.$element().addClass("dx-dropdowneditor"),this.setAria("role",this._getAriaRole())},_render(){this.callBase(),this._renderOpenHandler(),this._attachFocusOutHandler(),this._renderOpenedState()},_renderContentImpl(){this.option("deferRendering")||this._createPopup()},_renderInput(){this.callBase(),this._renderTemplateWrapper(),this._wrapInput(),this._setDefaultAria()},_wrapInput(){this._$container=this.$element().wrapInner((0,k.A)("<div>").addClass(z)).children().eq(0)},_getAriaHasPopup:()=>"true",_getAriaAutocomplete:()=>"none",_getAriaRole:()=>"combobox",_setDefaultAria(){this.setAria({haspopup:this._getAriaHasPopup(),autocomplete:this._getAriaAutocomplete(),role:this._getAriaRole()})},_readOnlyPropValue(){return!this._isEditable()||this.callBase()},_cleanFocusState(){this.callBase(),this.option("fieldTemplate")&&this._detachFocusEvents()},_getFieldTemplate(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderMask(){this.option("fieldTemplate")||this.callBase()},_renderField(){const W=this._getFieldTemplate();W&&this._renderTemplatedField(W,this._fieldRenderData())},_renderPlaceholder(){this._getFieldTemplate()||this.callBase()},_renderValue(){this.option("useHiddenSubmitElement")&&this._setSubmitValue(),this.callBase().always(this._renderField.bind(this))},_getButtonsContainer(){return this._getFieldTemplate()?this._$container:this._$textEditorContainer},_renderTemplateWrapper(){this._getFieldTemplate()&&(this._$templateWrapper||(this._$templateWrapper=(0,k.A)("<div>").addClass("dx-dropdowneditor-field-template-wrapper").prependTo(this.$element())))},_renderTemplatedField(W,ie){const he=(0,H.in)(this._input());this._detachKeyboardEvents(),this._detachFocusEvents(),this._$textEditorContainer.remove(),this._$templateWrapper.empty();const Ce=this._$templateWrapper;W.render({model:ie,container:(0,C.cc)(Ce),onRendered:()=>{if(!this.$element().find(Ce).length)return;const Me=this._input();if(!Me.length)throw J.A.Error("E1010");this._integrateInput(),he&&X.A.trigger(Me,"focus")}})},_integrateInput(){var W;const{isValid:ie}=this.option();this._renderFocusState(),this._refreshValueChangeEvent(),this._refreshEvents(),this._refreshEmptinessEvent(),this._setDefaultAria(),this._setFieldAria(),this._toggleValidationClasses(!ie),null===(W=this.option("_onMarkupRendered"))||void 0===W||W()},_refreshEmptinessEvent(){X.A.off(this._input(),"input blur",this._toggleEmptinessEventHandler),this._renderEmptinessEvent()},_fieldRenderData(){return this.option("value")},_initTemplates(){this._templateManager.addDefaultTemplates({dropDownButton:new w.l(W=>{const ie=(0,k.A)("<div>").addClass("dx-dropdowneditor-icon");(0,k.A)(W.container).append(ie)})}),this.callBase()},_renderOpenHandler(){const W=this._inputWrapper(),ie=(0,U.b4)(F.U,this.NAME),he=this.option("openOnFieldClick");X.A.off(W,ie),X.A.on(W,ie,this._getInputClickHandler(he)),this.$element().toggleClass("dx-dropdowneditor-field-clickable",he),he&&(this._openOnFieldClickAction=this._createAction(this._openHandler.bind(this)))},_attachFocusOutHandler(){De&&(this._detachFocusOutEvents(),X.A.on(this._inputWrapper(),(0,U.b4)("focusout",this.NAME),W=>{const ie=W.relatedTarget;ie&&this.option("opened")&&this._isTargetOutOfComponent(ie)&&this.close()}))},_isTargetOutOfComponent(W){const ie=this.content?(0,k.A)(this.content()).closest(`.${ee}`):this._$popup;return 0===(0,k.A)(W).closest(`.${ee}`,ie).length},_detachFocusOutEvents(){De&&X.A.off(this._inputWrapper(),(0,U.b4)("focusout",this.NAME))},_getInputClickHandler(W){return W?ie=>{this._executeOpenAction(ie)}:()=>{this._focusInput()}},_openHandler(){this._toggleOpenState()},_executeOpenAction(W){this._openOnFieldClickAction({event:W})},_keyboardEventBindingTarget(){return this._input()},_focusInput(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!(0,H.in)(this._input())&&(this._resetCaretPosition(),X.A.trigger(this._input(),"focus")),!0)},_resetCaretPosition(){let W=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const ie=this._input().get(0);if(ie){const{value:he}=ie,Ce=(0,B.O9)(he)&&(W||this._isEditable())?he.length:0;this._caret({start:Ce,end:Ce},!0)}},_isEditable(){return this.option("acceptCustomValue")},_toggleOpenState(W){this._focusInput()&&(this.option("readOnly")||(W=arguments.length?W:!this.option("opened"),this.option("opened",W)))},_getControlsAria(){return this._popup&&this._popupContentId},_renderOpenedState(){const W=this.option("opened");W&&this._createPopup(),this.$element().toggleClass("dx-dropdowneditor-active",W),this._setPopupOption("visible",W);const ie={expanded:W,controls:this._getControlsAria()};this.setAria(ie),this.setAria("owns",W?this._popupContentId:void 0,this.$element())},_createPopup(){this._$popup||(this._$popup=(0,k.A)("<div>").addClass(ee).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent(),this._setPopupAriaLabel())},_setPopupAriaLabel(){const W=this._popup.$overlayContent();this.setAria("label","Dropdown",W)},_renderPopupContent:P.lQ,_renderPopup(){const W=(0,v.X)(this._popupConfig(),this._options.cache("dropDownOptions"));delete W.closeOnOutsideClick,this._popup=this._createComponent(this._$popup,A.A,W),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this._attachPopupKeyHandler(),this._contentReadyHandler(),this._setPopupContentId(this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_attachPopupKeyHandler(){X.A.on(this._popup.$overlayContent(),(0,U.b4)("keydown",this.NAME),W=>this._popupKeyHandler(W))},_popupKeyHandler(W){switch((0,U.YD)(W)){case"tab":this._popupTabHandler(W);break;case"escape":this._popupEscHandler(W)}},_popupTabHandler(W){const ie=(0,k.A)(W.target),he=W.shiftKey&&ie.is(this._getFirstPopupElement());(!W.shiftKey&&ie.is(this._getLastPopupElement())||he)&&(X.A.trigger(this.field(),"focus"),W.preventDefault())},_popupEscHandler(){X.A.trigger(this._input(),"focus"),this.close()},_setPopupContentId(W){this._popupContentId=`dx-${new e.A}`,this.setAria("id",this._popupContentId,W)},_contentReadyHandler:P.lQ,_popupConfig(){return{onInitialized:this._getPopupInitializedHandler(),position:(0,v.X)(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("dropDownOptions.showTitle"),_ignoreFunctionValueDeprecation:!0,width:()=>(0,G.v)(this.$element()),height:"auto",shading:!1,hideOnParentScroll:!0,hideOnOutsideClick:W=>this._closeOutsideDropDownHandler(W),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,dragEnabled:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1,contentTemplate:null,_hideOnParentScrollTarget:this.$element(),_wrapperClassExternal:ee,_ignorePreventScrollEventsDeprecation:!0}},_popupInitializedHandler:P.lQ,_getPopupInitializedHandler(){const W=this.option("onPopupInitialized");return ie=>{this._popupInitializedHandler(ie),W&&this._popupInitializedAction({popup:ie.component})}},_dimensionChanged(){!(0,j.Vd)()||this.$element().is(":visible")?this._updatePopupWidth():this.close()},_updatePopupWidth(){void 0===(0,G.b)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",()=>(0,G.v)(this.$element()))},_popupPositionedHandler(W){var ie;const{labelMode:he,stylingMode:Ce}=this.option();if(!this._popup)return;const ye=this._popup.$overlayContent(),Me=null===(ie=W.position)||void 0===ie||null===(ie=ie.v)||void 0===ie?void 0:ie.flip,_e="hidden"!==he&&"outside"!==he&&"outlined"===Ce;if(W.position&&ye.toggleClass("dx-dropdowneditor-overlay-flipped",Me),Me&&_e&&this._label.isVisible()){const ke=this._label.$element();(0,d.Cy)(ye,{top:(0,d.x5)(ye).top-parseInt(ke.css("fontSize"))})}},_popupShowingHandler:P.lQ,_popupHidingHandler(){this.option("opened",!1)},_popupShownHandler(){var W;this._openAction(),null===(W=this._validationMessage)||void 0===W||W.option("positionSide",this._getValidationMessagePositionSide())},_popupHiddenHandler(){var W;this._closeAction(),null===(W=this._validationMessage)||void 0===W||W.option("positionSide",this._getValidationMessagePositionSide())},_getValidationMessagePositionSide(){const W=this.option("validationMessagePosition");if("auto"!==W)return W;let ie="bottom";if(this._popup&&this._popup.option("visible")){const{top:he}=S.A.setup(this.$element()),{top:Ce}=S.A.setup(this._popup.$content());ie=he+this.option("popupPosition").offset.v>Ce?"bottom":"top"}return ie},_closeOutsideDropDownHandler(W){let{target:ie}=W;const he=(0,k.A)(ie),Ce=this.getButton("dropDown"),ye=Ce&&Ce.$element(),Me=!!he.closest(this.$element()).length,_e=!!he.closest(ye).length;return!Me&&!_e},_clean(){delete this._openOnFieldClickAction,delete this._$templateWrapper,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption(W,ie){this._setWidgetOption("_popup",arguments)},_validatedOpening(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement(){return(0,k.A)(this._popup.getFocusableElements()).first()},_getLastPopupElement(){return(0,k.A)(this._popup.getFocusableElements()).last()},_popupToolbarItemsConfig(){const W=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText")}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText")}}];return this._applyButtonsLocation(W)},_applyButtonsLocation(W){const ie=this.option("buttonsLocation"),he=W;if("default"!==ie){const Ce=(0,P.T6)(ie);(0,x.__)(he,(ye,Me)=>{(0,v.X)(Me,{toolbar:Ce[0],location:Ce[1]})})}return he},_applyButtonHandler(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler(){this.close(),this.option("focusStateEnabled")&&this.focus()},_popupOptionChanged(W){const ie=R.A.getOptionsFromContainer(W);this._setPopupOption(ie);const he=Object.keys(ie);(he.includes("width")||he.includes("height"))&&this._dimensionChanged()},_renderSubmitElement(){this.option("useHiddenSubmitElement")&&(this._$submitElement=(0,k.A)("<input>").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement(){return this.option("useHiddenSubmitElement")?this._$submitElement:this.callBase()},_dispose(){this._detachFocusOutEvents(),this.callBase()},_optionChanged(W){var ie;switch(W.name){case"width":case"height":this.callBase(W),null===(ie=this._popup)||void 0===ie||ie.repaint();break;case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(W),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;case"popupPosition":break;case"deferRendering":(0,j.Vd)()&&this._createPopup();break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"useHiddenSubmitElement":this._$submitElement&&(this._$submitElement.remove(),this._$submitElement=void 0),this._renderSubmitElement();break;case"rtlEnabled":this._updatePopupPosition(W.value),this.callBase(W);break;default:this.callBase(W)}},open(){this.option("opened",!0)},close(){this.option("opened",!1)},field(){return(0,C.cc)(this._input())},content(){return this._popup?this._popup.content():null}});(0,m.A)("dxDropDownEditor",Pe);const Ie=Pe},3686:(En,it,p)=>{"use strict";p.d(it,{A:()=>k});var S=p(3090),d=p(7251);const m={rtlEnabled:!1,defaultCurrency:"USD",defaultUseCurrencyAccountingStyle:!0,oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",label:"",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,shading:!1,direction:"auto"},optionsParser:w=>{"{"!==w.trim().charAt(0)&&(w="{"+w+"}");try{return JSON.parse(w)}catch(P){try{return JSON.parse(T(w))}catch{throw d.A.Error("E3018",P,w)}}}},T=w=>w.replace(/'/g,'"').replace(/,\s*([\]}])/g,"$1").replace(/([{,])\s*([^":\s]+)\s*:/g,'$1"$2":'),C=["decimalSeparator","thousandsSeparator"],e=function(){if(!arguments.length)return m;const w=arguments.length<=0?void 0:arguments[0];C.forEach(P=>{w[P]&&d.A.log("W0003","config",P,"19.2",`Now, the ${P} is selected based on the specified locale.`)}),(0,S.X)(m,w)};typeof DevExpress<"u"&&DevExpress.config&&e(DevExpress.config);const k=e},3696:(En,it,p)=>{"use strict";p.d(it,{Z:()=>dv});var S=p(2925),d=p(1614),m=p(1830),T=p(3686),C=p(3538),e=p(3090),k=p(2660),w=p(1113),P=p(4859),v=p(6021),x=p(2614),b=p(9916),B=p(9495);const j=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,F=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,X=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,U="application/json;odata=verbose",Z=ge=>"string"===(0,m.NW)(ge)?ge.split():ge,A=ge=>/\./.test(ge),M=(ge,oe,te)=>{for(ge=String(ge);ge.length<oe;)ge=te?`${ge}0`:`0${ge}`;return ge},H=(ge,oe,te)=>{const ne=[],ve=Ge=>M(Ge,2);return ne.push(ge.getFullYear()),ne.push("-"),ne.push(ve(ge.getMonth()+1)),ne.push("-"),ne.push(ve(ge.getDate())),oe&&ge.getHours()+ge.getMinutes()+ge.getSeconds()+ge.getMilliseconds()<1||(ne.push("T"),ne.push(ve(ge.getHours())),ne.push(":"),ne.push(ve(ge.getMinutes())),ne.push(":"),ne.push(ve(ge.getSeconds())),ge.getMilliseconds()&&(ne.push("."),ne.push(M(ge.getMilliseconds(),3))),te||ne.push("Z")),ne.join("")},K=(ge,oe,te)=>{const{deserializeDates:ne,fieldTypes:ve,countOnly:Ge,isPaged:Je}=te,pt=new v.cY,Tt=function(ge,oe){var te;let ne=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe=(0,e.X)({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},oe),null===(te=ne.beforeSend)||void 0===te||te.call(ne,oe);const{async:ve,timeout:Ge,headers:Je}=oe;let{url:pt,method:Tt}=oe;const{jsonp:$t,withCredentials:yn}=ne;Tt=(Tt||"get").toLowerCase();const hi="get"===Tt,wi=hi&&$t,Ui=(0,e.X)({},oe.params),fo=hi?Ui:JSON.stringify(oe.payload,function(Ws,sr){if(!(this[Ws]instanceof Date))return sr;switch(sr=H(this[Ws]),ge){case 2:return sr.substr(0,sr.length-1);case 3:case 4:return sr;default:throw x.sO.Error("E4002")}}),ts=!hi&&(ge=>{const oe=[];for(const te in ge)oe.push(te+"="+ge[te]);return oe.join("&")})(Ui),Ms=!hi&&U;return ts&&(pt+=(pt.indexOf("?")>-1?"&":"?")+ts),wi&&(fo.$format="json"),{url:pt,data:fo,dataType:wi?"jsonp":"json",jsonp:wi&&"$callback",method:Tt,async:ve,timeout:Ge,headers:Je,contentType:Ms,accepts:{json:[U,"text/plain"].join()},xhrFields:{withCredentials:yn}}}(ge,oe,te);return w.A.sendRequest(Tt).always(($t,yn)=>{const wi=be($t,yn,{deserializeDates:ne,fieldTypes:ve},Tt),{error:Ui,data:fo,count:Io}=wi;let{nextUrl:ts}=wi;if(Ui)Ui.message!==b.SR&&pt.reject(Ui);else if(Ge)isFinite(Io)?pt.resolve(Io):pt.reject(new x.sO.Error("E4018"));else if(ts&&!Je)(ge=>/^(?:[a-z]+:)?\/{2,2}/i.test(ge))(ts)||(ts=((ge,oe)=>{let te;const ne=(ge=>{const oe=ge.indexOf("?");return oe>-1?ge.substr(0,oe):ge})(ge).split("/"),ve=oe.split("/");for(ne.pop();ve.length;)te=ve.shift(),".."===te?ne.pop():ne.push(te);return ne.join("/")})(Tt.url,ts)),K(ge,{url:ts},te).fail(pt.reject).done(Ms=>pt.resolve(fo.concat(Ms)));else{const Ms=isFinite(Io)?{totalCount:Io}:void 0;pt.resolve(fo,Ms)}}),pt.promise()},be=(ge,oe,te,ne)=>{const ve=((ge,oe,te)=>{var ne,ve,Ge,Je;if("nocontent"===oe)return null;let pt="Unknown error",Tt=ge,$t=200;const yn={requestOptions:te};if("success"!==oe){const{status:wi,responseText:Ui}=ge;$t=wi,pt=(0,b.m9)(ge,oe);try{Tt=JSON.parse(Ui)}catch{}}const hi=(null===(ne=Tt)||void 0===ne?void 0:ne.then)||(null===(ve=Tt)||void 0===ve?void 0:ve.error)||(null===(Ge=Tt)||void 0===Ge?void 0:Ge["odata.error"])||(null===(Je=Tt)||void 0===Je?void 0:Je["@odata.error"]);if(hi){pt=(ge=>{let oe,te,ne=ge;var ve;"message"in ge&&(oe=(null===(ve=ge.message)||void 0===ve?void 0:ve.value)||ge.message);for(;(ne=ne.innererror||ne.internalexception)&&(te=ne.message,oe=te??oe,!ne.internalexception||-1!==oe.indexOf("inner exception")););return oe})(hi)||pt,yn.errorDetails=hi,200===$t&&($t=500);const wi=Number(hi.code);isFinite(wi)&&wi>=400&&($t=wi)}return $t>=400||0===$t?(yn.httpStatus=$t,(0,e.X)(Error(pt),yn)):null})(ge,oe,ne);if(ve)return{error:ve};if(!(0,m.Qd)(ge))return{data:ge};const Ge="d"in ge&&(Array.isArray(ge.d)||(0,m.Gv)(ge.d))?ce(ge):Re(ge);return De(Ge,te),Ge},ce=ge=>{let{d:oe}=ge;return(0,m.O9)(oe)?{data:oe.results??oe,nextUrl:oe.__next,count:parseInt(oe.__count,10)}:{error:Error("Malformed or unsupported JSON response received")}},Re=ge=>({data:ge.value??ge,nextUrl:ge["@odata.nextLink"],count:parseInt(ge["@odata.count"],10)}),Se=C.A.inherit({ctor(ge){this._value=ge},valueOf(){return this._value}}),De=function(ge){let oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,k.__)(ge,(te,ne)=>{if(null!==ne&&"object"==typeof ne)"results"in ne&&(ge[te]=ne.results),De(ge[te],oe);else if("string"==typeof ne){const{fieldTypes:ve,deserializeDates:Ge}=oe;if((!ve||"String"!==ve[te])&&j.test(ne)&&(ge[te]=new S.A(ne)),!1!==Ge)if(ne.match(F)){const pt=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);ge[te]=new Date(pt.valueOf()+60*pt.getTimezoneOffset()*1e3)}else X.test(ne)&&(ge[te]=new Date((ge=>{const oe=new Date(60*new Date(0).getTimezoneOffset()*1e3),te=ge.replace("Z","").split("T"),ne=/(\d{4})-(\d{2})-(\d{2})/.exec(te[0]),ve=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(te[1]);if(oe.setFullYear(Number(ne[1])),oe.setMonth(Number(ne[2])-1),oe.setDate(Number(ne[3])),Array.isArray(ve)&&ve.length){oe.setHours(Number(ve[1])),oe.setMinutes(Number(ve[2])),oe.setSeconds(Number(ve[3]));let Ge=(ve[4]||"").slice(0,3);Ge=M(Ge,3,!0),oe.setMilliseconds(Number(Ge))}return oe})(ge[te]).valueOf()))}})},W=ge=>ge instanceof Se?ge.valueOf():ge.replace(/\./g,"/"),ie=ge=>ge instanceof Date?H(ge,!1,!1):ge instanceof S.A?ge.valueOf():Array.isArray(ge)?`[${ge.map(oe=>ie(oe)).join(",")}]`:he(ge),he=ge=>ge instanceof Date?(ge=>`datetime'${H(ge,!0,!0)}'`)(ge):ge instanceof S.A?`guid'${ge}'`:ge instanceof Se?ge.valueOf():"string"==typeof ge?(ge=>`'${ge.replace(/'/g,"''")}'`)(ge):String(ge),Ce=(ge,oe)=>{switch(oe){case 2:case 3:return he(ge);case 4:return ie(ge);default:throw x.sO.Error("E4002")}},Me={String:ge=>`${ge}`,Int32:ge=>Math.floor(ge),Int64:ge=>ge instanceof Se?ge:new Se(`${ge}L`),Guid:ge=>ge instanceof S.A?ge:new S.A(ge),Boolean:ge=>!!ge,Single:ge=>ge instanceof Se?ge:new Se(ge+"f"),Decimal:ge=>ge instanceof Se?ge:new Se(ge+"m")},_e=(ge,oe)=>{if(null===oe)return null;const te=Me[ge];if(!te)throw x.sO.Error("E4014",ge);return te(oe)},ke=(ge,oe)=>{if(oe)return ge<4?W(oe.join()):(0,P.VM)(oe,A,!0).join()},Ye=ge=>{let oe="";const te=[],ne=[];return(0,k.__)(ge,(ve,Ge)=>{Array.isArray(Ge)&&[].push.apply(te,Ge),(0,m.Qd)(Ge)&&ne.push(`${ve}${Ye(Ge)}`)}),(te.length||ne.length)&&(oe+="(",te.length&&(oe+=`$select=${(0,k.Tj)(te,W).join()}`),ne.length&&(te.length&&(oe+=";"),oe+=`$expand=${(0,k.Tj)(ne,W).join()}`),oe+=")"),oe},Ae=(ge,oe,te)=>{const ne=te(oe,ge.shift(),ge);!1!==ne&&Ae(ge,ne,te)},pe=(ge,oe,te)=>(0,k.__)(ge,(ne,ve)=>Ae(ve.split("."),oe,te)),Ee=(ge,oe)=>{const te={};return ge&&(0,k.__)(Z(ge),function(){te[W(this)]=1}),oe&&(0,k.__)(Z(oe),function(){const ne=this.split(".");ne.length<2||(ne.pop(),te[W(ne.join("."))]=1)}),(0,k.Tj)(te,(ne,ve)=>ve).join()},Ke=(ge,oe,te)=>ge<4?Ee(oe,te):((ge,oe)=>{const te={};if(ge||oe)return ge&&pe(Z(ge),te,(ne,ve,Ge)=>(ne[ve]=ne[ve]||{},!!Ge.length&&ne[ve])),oe&&pe((0,P.VM)(Z(oe),A),te,(ne,ve,Ge)=>Ge.length?ne[ve]=ne[ve]||{}:(ne[ve]=ne[ve]||[],ne[ve].push(ve),!1)),(ge=>{const oe=[];return(0,k.__)(ge,(te,ne)=>oe.push(`${te}${Ye(ne)}`)),oe.join()})(te)})(oe,te);var Oe=p(1541),fe=p(6569),We=p(3568);const Ve=["contains","notcontains","startswith","endswith"],tt=(()=>{let ge,oe,te;const ne=hi=>(wi,Ui)=>`${wi} ${hi} ${Ui}`,ve=(hi,wi)=>(Ui,fo)=>{const Io=[hi,"("];return oe&&(Ui=-1===Ui.indexOf("tolower(")?`tolower(${Ui})`:Ui,fo=fo.toLowerCase()),wi?Io.push(fo,",",Ui):Io.push(Ui,",",fo),Io.push(")"),Io.join("")},Ge={"=":ne("eq"),"<>":ne("ne"),">":ne("gt"),">=":ne("ge"),"<":ne("lt"),"<=":ne("le"),startswith:ve("startswith"),endswith:ve("endswith")},Je=(0,e.X)({},Ge,{contains:ve("substringof",!0),notcontains:ve("not substringof",!0)}),pt=(0,e.X)({},Ge,{contains:ve("contains"),notcontains:ve("not contains")}),$t=hi=>{const wi=[];let Ui,fo;return(0,k.__)(hi,function(Io,ts){if(Array.isArray(ts)){if(wi.length>1&&Ui!==fo)throw new x.sO.Error("E4019");wi.push(`(${yn(ts)})`),Ui=fo,fo="and"}else fo=(0,b.LO)(this)?"and":"or"}),wi.join(` ${Ui} `)},yn=hi=>Array.isArray(hi[0])?$t(hi):(0,b.bF)(hi)?(wi=>{const Ui=wi[0],fo=yn(wi[1]);if("!"===Ui)return`not (${fo})`;throw x.sO.Error("E4003",Ui)})(hi):(hi=>{var wi;const Ui=(hi=(0,b.aE)(hi))[1],fo=hi[0],Io=te&&te[fo];if(Io&&(ts=Ui,Ve.some(Qa=>Qa===ts))&&"String"!==Io)throw new x.sO.Error("E4024",Ui,fo,Io);var ts;const Ws=(4===ge?pt:Je)[Ui.toLowerCase()];if(!Ws)throw x.sO.Error("E4003",Ui);let sr=hi[2];return null!==(wi=te)&&void 0!==wi&&wi[fo]&&(sr=_e(te[fo],sr)),Ws(W(fo),Ce(sr,ge))})(hi);return(hi,wi,Ui,fo)=>(te=Ui,oe=fo??(0,T.A)().oDataFilterToLower,ge=wi,yn(hi))})();We.A.odata=ge=>{let oe=[];const te=[],ne=ge.expand;let ve,Ge,Je,pt;const Tt=ge.version||4,$t=()=>Ge||void 0!==Je,yn=wi=>{for(let Ui=0;Ui<wi.length;Ui++)if((0,m.Tn)(wi[Ui])||Array.isArray(wi[Ui])&&yn(wi[Ui]))return!0;return!1},hi=()=>{const wi={};if(pt||(oe.length&&(wi.$orderby=oe.join(",")),Ge&&(wi.$skip=Ge),void 0!==Je&&(wi.$top=Je),wi.$select=ke(Tt,ve)||void 0,wi.$expand=Ke(Tt,ne,ve)||void 0),te.length){const Ui=te.length<2?te[0]:te,fo=ge?.fieldTypes,Io=ge?.filterToLower;wi.$filter=tt(Ui,Tt,fo,Io)}return pt&&(wi.$top=0),(ge.requireTotalCount||pt)&&(4!==Tt?wi.$inlinecount="allpages":wi.$count="true"),wi};return{optimize:wi=>{let Ui=-1;for(let Io=0;Io<wi.length;Io++)if("select"===wi[Io].name){Ui=Io;break}if(Ui<0||!(0,m.Tn)(wi[Ui].args[0]))return;const fo=wi[1+Ui];!fo||"slice"!==fo.name||(wi[1+Ui]=wi[Ui],wi[Ui]=fo)},exec:wi=>K(Tt,{url:wi,params:(0,e.X)(hi(),ge?.params)},{beforeSend:ge.beforeSend,jsonp:ge.jsonp,withCredentials:ge.withCredentials,countOnly:pt,deserializeDates:ge.deserializeDates,fieldTypes:ge.fieldTypes,isPaged:isFinite(Je)}),multiSort(wi){let Ui;if($t())return!1;for(let fo=0;fo<wi.length;fo++){const Io=wi[fo][0],ts=!!wi[fo][1];let Ms;if("string"!=typeof Io)return!1;Ms=W(Io),ts&&(Ms+=" desc"),Ui=Ui||[],Ui.push(Ms)}oe=Ui},slice(wi,Ui){if($t())return!1;Ge=wi,Je=Ui},filter(wi){if($t()||(Array.isArray(wi)||(wi=[].slice.call(arguments)),yn(wi)))return!1;te.length&&te.push("and"),te.push(wi)},select(wi){if(ve||(0,m.Tn)(wi))return!1;Array.isArray(wi)||(wi=[].slice.call(arguments)),ve=wi},count:()=>pt=!0}};class Nt{constructor(oe){oe=oe||{},this._url=String(oe.url).replace(/\/+$/,""),this._beforeSend=oe.beforeSend,this._jsonp=oe.jsonp,this._version=oe.version||4,this._withCredentials=oe.withCredentials,this._deserializeDates=oe.deserializeDates,this._filterToLower=oe.filterToLower}sendRequest(oe,te,ne,ve){return K(this.version,{url:oe,method:te,params:ne||{},payload:ve},{beforeSend:this._beforeSend,jsonp:this._jsonp,withCredentials:this._withCredentials,deserializeDates:this._deserializeDates})}get version(){return this._version}get beforeSend(){return this._beforeSend}get url(){return this._url}get jsonp(){return this._jsonp}get filterToLower(){return this._filterToLower}}const je=fe.A.inherit({ctor(ge){this.callBase(ge),this._requestDispatcher=new Nt(ge);let oe=this.key(),te=ge.fieldTypes,ne=ge.keyType;if(ne){const ve="string"==typeof ne;oe||(oe=ve?"5d46402c-7899-4ea9-bd81-8b73c47c7683":Object.keys(ne),this._legacyAnonymousKey=oe),ve&&(ne=((ge,oe)=>({[ge]:oe}))(oe,ne)),te=((ge,oe)=>{const te={};for(const ne in ge)te[ne]=ge[ne];for(const ne in oe)ne in te?te[ne]!==oe[ne]&&x.sO.log("W4001",ne):te[ne]=oe[ne];return te})(te,ne)}this._fieldTypes=te||{},this._updateMethod=2===this.version()?"MERGE":"PATCH"},_customLoadOptions:()=>["expand","customQueryParams"],_byKeyImpl(ge,oe){const te={};return oe&&(te.$expand=Ke(this.version(),oe.expand,oe.select)||void 0,te.$select=ke(this.version(),oe.select)||void 0),this._requestDispatcher.sendRequest(this._byKeyUrl(ge),"GET",te)},createQuery(ge){let oe;const te={adapter:"odata",beforeSend:this._requestDispatcher.beforeSend,errorHandler:this._errorHandler,jsonp:this._requestDispatcher.jsonp,version:this._requestDispatcher.version,withCredentials:this._requestDispatcher._withCredentials,expand:ge?.expand,requireTotalCount:ge?.requireTotalCount,deserializeDates:this._requestDispatcher._deserializeDates,fieldTypes:this._fieldTypes};if(oe=ge?.urlOverride??this._requestDispatcher.url,(0,m.O9)(this._requestDispatcher.filterToLower)&&(te.filterToLower=this._requestDispatcher.filterToLower),null!=ge&&ge.customQueryParams){const ne=((ge,oe)=>{if(!ge)return ge;const te={};return(0,k.__)(ge,(ne,ve)=>{te[ne]=Ce(ve,oe)}),te})(ge?.customQueryParams,this.version());4===this.version()?oe=((ge,oe)=>(0,B.GP)("{0}({1})",ge,(0,k.Tj)(oe||{},(te,ne)=>(0,B.GP)("{0}={1}",ne,te)).join(",")))(oe,ne):te.params=ne}return(0,Oe.A)(oe,te)},_insertImpl(ge){this._requireKey();const oe=new v.cY;return(0,v.z7)(this._requestDispatcher.sendRequest(this._requestDispatcher.url,"POST",null,ge)).done(te=>oe.resolve(te&&!(0,T.A)().useLegacyStoreResult?te:ge,this.keyOf(te))).fail(oe.reject),oe.promise()},_updateImpl(ge,oe){const te=new v.cY;return(0,v.z7)(this._requestDispatcher.sendRequest(this._byKeyUrl(ge),this._updateMethod,null,oe)).done(ne=>(0,T.A)().useLegacyStoreResult?te.resolve(ge,oe):te.resolve(ne||oe,ge)).fail(te.reject),te.promise()},_removeImpl(ge){const oe=new v.cY;return(0,v.z7)(this._requestDispatcher.sendRequest(this._byKeyUrl(ge),"DELETE")).done(()=>oe.resolve(ge)).fail(oe.reject),oe.promise()},_convertKey(ge){let oe=ge;const te=this._fieldTypes,ne=this.key()||this._legacyAnonymousKey;if(Array.isArray(ne)){oe={};for(let ve=0;ve<ne.length;ve++){const Ge=ne[ve];oe[Ge]=_e(te[Ge],ge[Ge])}}else te[ne]&&(oe=_e(te[ne],ge));return oe},_byKeyUrl(ge){const oe=this._requestDispatcher.url,te=this._convertKey(ge);return`${oe}(${encodeURIComponent(((ge,oe)=>{if((0,m.Qd)(ge)){const te=[];return(0,k.__)(ge,(ne,ve)=>te.push(`${W(ne)}=${Ce(ve,oe)}`)),te.join()}return Ce(ge,oe)})(te,this.version()))})`},version(){return this._requestDispatcher.version}},"odata");class Ne extends RangeError{constructor(oe){super(`${oe} was out of range. Must be non-negative and less than the size of the collection.`),this.paramName=oe,this.name="ArgumentOutOfRangeException",this.stack=this.stack||(new Error).stack}}const lt=Object.freeze({MoreThanOneElement:"Sequence contains more than one element",MoreThanOneMatchingElement:"Sequence contains more than one matching element",NoElements:"Sequence contains no elements",NoMatch:"Sequence contains no matching element"});class Qe extends Error{constructor(oe){super(oe),this.name="InvalidOperationException",this.stack=this.stack||(new Error).stack}}const Ct=(ge,oe)=>ge===oe;class yt{constructor(oe){this.iterator=oe}[Symbol.asyncIterator](){return this.iterator()}}function Gt(ge,oe){this.v=ge,this.k=oe}function ft(ge){return new Gt(ge,0)}function nn(ge){return function(){return new rn(ge.apply(this,arguments))}}function rn(ge){var oe,te;function ne(Ge,Je){try{var pt=ge[Ge](Je),Tt=pt.value,$t=Tt instanceof Gt;Promise.resolve($t?Tt.v:Tt).then(function(yn){if($t){var hi="return"===Ge?"return":"next";if(!Tt.k||yn.done)return ne(hi,yn);yn=ge[hi](yn).value}ve(pt.done?"return":"normal",yn)},function(yn){ne("throw",yn)})}catch(yn){ve("throw",yn)}}function ve(Ge,Je){switch(Ge){case"return":oe.resolve({value:Je,done:!0});break;case"throw":oe.reject(Je);break;default:oe.resolve({value:Je,done:!1})}(oe=oe.next)?ne(oe.key,oe.arg):te=null}this._invoke=function(Ge,Je){return new Promise(function(pt,Tt){var $t={key:Ge,arg:Je,resolve:pt,reject:Tt,next:null};te?te=te.next=$t:(oe=te=$t,ne(Ge,Je))})},"function"!=typeof ge.return&&(this.return=void 0)}rn.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},rn.prototype.next=function(ge){return this._invoke("next",ge)},rn.prototype.throw=function(ge){return this._invoke("throw",ge)},rn.prototype.return=function(ge){return this._invoke("return",ge)};class Mn{constructor(oe){this.dataFunc=oe}[Symbol.asyncIterator](){const{dataFunc:oe}=this;function ne(){return(ne=nn(function*(){if(1===oe.type)for(const ve of oe.generator())yield ve;else for(const ve of yield ft(oe.generator()))yield ve})).apply(this,arguments)}return function te(){return ne.apply(this,arguments)}()}}class On{constructor(oe){this.iterator=oe}[Symbol.iterator](){return this.iterator()}}class ji extends Array{}const Vo=(ge,oe,te,ne)=>{if(ne){if(!te)throw new ReferenceError("TAccumulate function is undefined");return Qn(ge,oe,te,ne)}return te?ti(ge,oe,te):Co(ge,oe)},Co=(ge,oe)=>{let te;for(const ne of ge)te=te?oe(te,ne):ne;if(void 0===te)throw new Qe(lt.NoElements);return te},ti=(ge,oe,te)=>{let ne=oe;for(const ve of ge)ne=te(ne,ve);return ne},Qn=(ge,oe,te,ne)=>{let ve=oe;for(const Ge of ge)ve=te(ve,Ge);return ne(ve)},ei=(ge,oe)=>{for(const te of ge)if(!1===oe(te))return!1;return!0};var Rt=p(6394);const Jt=function(){var ge=(0,Rt.A)(function*(oe,te){for(const ne of oe)if(!1===(yield te(ne)))return!1;return!0});return function(te,ne){return ge.apply(this,arguments)}}(),Pn=(ge,oe)=>oe?Ii(ge,oe):Jn(ge),Jn=ge=>{for(const oe of ge)return!0;return!1},Ii=(ge,oe)=>{for(const te of ge)if(!0===oe(te))return!0;return!1},vo=function(){var ge=(0,Rt.A)(function*(oe,te){for(const ne of oe)if(!0===(yield te(ne)))return!0;return!1});return function(te,ne){return ge.apply(this,arguments)}}();function pi(ge){var oe,te,ne,ve=2;for(typeof Symbol<"u"&&(te=Symbol.asyncIterator,ne=Symbol.iterator);ve--;){if(te&&null!=(oe=ge[te]))return oe.call(ge);if(ne&&null!=(oe=ge[ne]))return new Wo(oe.call(ge));te="@@asyncIterator",ne="@@iterator"}throw new TypeError("Object is not async iterable")}function Wo(ge){function oe(te){if(Object(te)!==te)return Promise.reject(new TypeError(te+" is not an object."));var ne=te.done;return Promise.resolve(te.value).then(function(ve){return{value:ve,done:ne}})}return(Wo=function(ne){this.s=ne,this.n=ne.next}).prototype={s:null,n:null,next:function(){return oe(this.n.apply(this.s,arguments))},return:function(ne){var ve=this.s.return;return void 0===ve?Promise.resolve({value:ne,done:!0}):oe(ve.apply(this.s,arguments))},throw:function(ne){var ve=this.s.return;return void 0===ve?Promise.reject(ne):oe(ve.apply(this.s,arguments))}},new Wo(ge)}const To=ge=>{if(Array.isArray(ge)){if(0===ge.length)throw new Qe(lt.NoElements);return new yt(nn(function*(){var ne,oe=!1,te=!1;try{for(var Ge,ve=pi(ge);oe=!(Ge=yield ft(ve.next())).done;oe=!1)yield Ge.value}catch(Je){te=!0,ne=Je}finally{try{oe&&null!=ve.return&&(yield ft(ve.return()))}finally{if(te)throw ne}}}))}return new yt(ge)},hs=ge=>{function te(){return(te=nn(function*(){for(const ne of ge)yield ne})).apply(this,arguments)}return To(function oe(){return te.apply(this,arguments)})},Ps=(ge,oe)=>new Mn({generator:oe,type:ge}),ls=ge=>Ps(0,function(){var te=(0,Rt.A)(function*(){const ne=[];for(const ve of ge)ne.push(ve);return ne});return function(){return te.apply(this,arguments)}}()),Hs=(ge,oe)=>{let te=0,ne=0;if(oe)for(const ve of ge)te+=oe(ve),ne+=1;else for(const ve of ge)te+=ve,ne+=1;if(0===ne)throw new Qe(lt.NoElements);return te/ne},ss=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=0,ve=0;for(const Ge of oe)ne+=(yield te(Ge)),ve+=1;if(0===ve)throw new Qe(lt.NoElements);return ne/ve});return function(te,ne){return ge.apply(this,arguments)}}(),qo=(ge,oe)=>{if(oe<1)throw new Ne("index");return new On(function*te(){let ne=[];for(const ve of ge)ne.push(ve),ne.length===oe&&(yield ne,ne=[]);ne.length&&(yield ne)})},cs=(ge,oe)=>new On(function*te(){yield*ge,yield*oe}),bs=(ge,oe,te=Ct)=>{for(const ne of ge)if(te(oe,ne))return!0;return!1},Fn=function(){var ge=(0,Rt.A)(function*(oe,te,ne){for(const ve of oe)if(yield ne(te,ve))return!0;return!1});return function(te,ne,ve){return ge.apply(this,arguments)}}(),li=(ge,oe)=>oe?Ni(ge,oe):si(ge),si=ge=>{let oe=0;for(const te of ge)oe++;return oe},Ni=(ge,oe)=>{let te=0;for(const ne of ge)!0===oe(ne)&&te++;return te},Yi=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=0;for(const ve of oe)!0===(yield te(ve))&&ne++;return ne});return function(te,ne){return ge.apply(this,arguments)}}(),Sn=(ge,oe)=>new On(function*te(){let ne=!1;for(const ve of ge)ne=!0,yield ve;ne||(yield oe)}),ri=(ge,oe=Ct)=>new On(function*te(){const ne=[];for(const ve of ge)ne.find(Je=>oe(Je,ve))||(ne.push(ve),yield ve)}),It=(ge,oe)=>{function ne(){return(ne=nn(function*(){const ve=[];e:for(const Ge of ge){for(const Je of ve)if(yield ft(oe(Je,Ge)))continue e;ve.push(Ge),yield Ge}})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},Pt=(ge,oe)=>new On(function*te(){for(const ne of ge)oe(ne),yield ne}),dn=(ge,oe)=>{function ne(){return(ne=nn(function*(){for(const ve of ge)yield ft(oe(ve)),yield ve})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},jt=(ge,oe)=>{if(oe<0)throw new Ne("index");let te=0;for(const ne of ge)if(oe===te++)return ne;throw new Ne("index")},Ot=(ge,oe)=>{let te=0;for(const ne of ge)if(oe===te++)return ne;return null},Tn=(ge,oe,te=Ct)=>new On(function*ne(){const ve=[...oe];for(const Ge of ge){let Je=!1;for(let pt=0;pt<ve.length;pt++)if(!0===te(Ge,ve[pt])){Je=!0;break}!1===Je&&(yield Ge)}}),ni=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=[...oe];for(const Je of ge){let pt=!1;for(let Tt=0;Tt<Ge.length;Tt++){const $t=Ge[Tt];if(!0===(yield ft(te(Je,$t)))){pt=!0;break}}!1===pt&&(yield Je)}})).apply(this,arguments)}return To(function ne(){return ve.apply(this,arguments)})},Bi=(ge,oe)=>oe?ro(ge,oe):Zi(ge),Zi=ge=>{const oe=ge[Symbol.iterator]().next();if(!0===oe.done)throw new Qe(lt.NoElements);return oe.value},ro=(ge,oe)=>{for(const te of ge)if(!0===oe(te))return te;throw new Qe(lt.NoMatch)},mo=function(){var ge=(0,Rt.A)(function*(oe,te){for(const ne of oe)if(!0===(yield te(ne)))return ne;throw new Qe(lt.NoMatch)});return function(te,ne){return ge.apply(this,arguments)}}(),ho=(ge,oe)=>oe?Qt(ge,oe):St(ge),St=ge=>ge[Symbol.iterator]().next().value||null,Qt=(ge,oe)=>{for(const te of ge)if(!0===oe(te))return te;return null},jn=function(){var ge=(0,Rt.A)(function*(oe,te){for(const ne of oe)if(!0===(yield te(ne)))return ne;return null});return function(te,ne){return ge.apply(this,arguments)}}();class ai extends ji{constructor(oe,te){super(1),this.key=oe,this[0]=te}}const gs=(ge,oe,te)=>{let ne;return ne=te?((ge,oe,te)=>function*(){const ve=new Array;for(const Ge of ge){const Je=oe(Ge);let pt=!1;for(let Tt=0;Tt<ve.length;Tt++){const $t=ve[Tt];if(te($t.key,Je)){$t.push(Ge),pt=!0;break}}!1===pt&&ve.push(new ai(Je,Ge))}for(const Ge of ve)yield Ge})(ge,oe,te):((ge,oe)=>function*(){const ne={};for(const ve of ge){const Ge=oe(ve),Je=ne[Ge];Je?Je.push(ve):ne[Ge]=new ai(Ge,ve)}for(const ve in ne)yield ne[ve]})(ge,oe),new On(ne)},xn=(ge,oe,te)=>te?Gn(ge,oe,te):Bn(ge,oe),Bn=(ge,oe)=>{function ne(){return(ne=nn(function*(){const ve={};for(const Ge of ge){const Je=yield ft(oe(Ge)),pt=ve[Je];pt?pt.push(Ge):ve[Je]=new ai(Je,Ge)}for(const Ge in ve)yield ve[Ge]})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},Gn=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=new Array;for(const Je of ge){const pt=yield ft(oe(Je));let Tt=!1;for(let $t=0;$t<Ge.length;$t++){const yn=Ge[$t];if(!0===(yield ft(te(yn.key,pt)))){yn.push(Je),Tt=!0;break}}!1===Tt&&Ge.push(new ai(pt,Je))}for(const Je of Ge)yield Je})).apply(this,arguments)}return To(function ne(){return ve.apply(this,arguments)})},Ri=(ge,oe,te,ne)=>ne?((ge,oe,te,ne)=>new On(function*ve(){const Ge=new Array;for(const Je of ge){const pt=oe(Je);let Tt=!1;for(let $t=0;$t<Ge.length;$t++){const yn=Ge[$t];if(ne(yn.key,pt)){yn.push(te(Je)),Tt=!0;break}}if(!1===Tt){const $t=te(Je);Ge.push(new ai(pt,$t))}}for(const Je of Ge)yield Je}))(ge,oe,te,ne):((ge,oe,te)=>new On(function*ne(){const ve={};for(const Ge of ge){const Je=oe(Ge),pt=ve[Je],Tt=te(Ge);pt?pt.push(Tt):ve[Je]=new ai(Je,Tt)}for(const Ge in ve)yield ve[Ge]}))(ge,oe,te),Xi=(ge,oe,te,ne,ve,Ge)=>{const Je=Ge?Oo(ge,oe,te,ne,ve,Ge):Fo(ge,oe,te,ne,ve);return new On(Je)},Oo=(ge,oe,te,ne,ve,Ge)=>function*(){var Je;const pt=[];for(const Tt of oe){const $t=ne(Tt),yn=pt.find(hi=>Ge(hi.key,$t));yn?yn.values.push(Tt):pt.push({key:$t,values:[Tt]})}for(const Tt of ge){const $t=te(Tt),yn=null!==(Je=pt.find(hi=>Ge(hi.key,$t)))&&void 0!==Je?Je:{key:$t,values:[]};yield ve(Tt,yn.values)}},Fo=(ge,oe,te,ne,ve)=>function*(){var Ge;const Je=new Map;for(const pt of oe){const Tt=ne(pt),$t=Je.get(Tt);$t?$t.push(pt):Je.set(Tt,[pt])}for(const pt of ge){const Tt=te(pt),$t=null!==(Ge=Je.get(Tt))&&void 0!==Ge?Ge:[];yield ve(pt,$t)}},Vs=(ge,oe,te,ne,ve,Ge)=>{const Je=Ge?fs(ge,oe,te,ne,ve,Ge):zt(ge,oe,te,ne,ve);return To(Je)},fs=(ge,oe,te,ne,ve,Ge)=>nn(function*(){var Je;const pt=[];for(const Tt of oe){const $t=yield ft(ne(Tt)),yn=pt.find(hi=>Ge(hi.key,$t));yn?yn.values.push(Tt):pt.push({key:$t,values:[Tt]})}for(const Tt of ge){const $t=yield ft(te(Tt)),yn=null!==(Je=pt.find(hi=>Ge(hi.key,$t)))&&void 0!==Je?Je:{key:$t,values:[]};yield ve(Tt,yn.values)}}),zt=(ge,oe,te,ne,ve)=>nn(function*(){var Ge;const Je=new Map;for(const pt of oe){const Tt=yield ft(ne(pt)),$t=Je.get(Tt);$t?$t.push(pt):Je.set(Tt,[pt])}for(const pt of ge){const Tt=yield ft(te(pt)),$t=null!==(Ge=Je.get(Tt))&&void 0!==Ge?Ge:[];yield ve(pt,$t)}}),zn=(ge,oe,te=Ct)=>new On(function*ne(){const ve=[...ge.distinct(te)];if(0===ve.length)return;const Ge=[...oe];for(let Je=0;Je<ve.length;Je++){const pt=ve[Je];for(let Tt=0;Tt<Ge.length;Tt++)if(!0===te(pt,Ge[Tt])){yield pt;break}}}),pn=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=[];var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(ge.distinctAsync(te));Je=!(yn=yield ft($t.next())).done;Je=!1)Ge.push(yn.value)}catch(wi){pt=!0,Tt=wi}finally{try{Je&&null!=$t.return&&(yield ft($t.return()))}finally{if(pt)throw Tt}}if(0===Ge.length)return;const hi=[...oe];for(let wi=0;wi<Ge.length;wi++){const Ui=Ge[wi];for(let fo=0;fo<hi.length;fo++){const Io=hi[fo];if(!0===(yield ft(te(Ui,Io)))){yield Ui;break}}}})).apply(this,arguments)}return To(function ne(){return ve.apply(this,arguments)})},An=(ge,oe,te,ne,ve,Ge=Ct)=>new On(function*Je(){const pt=[...oe];for(const Tt of ge){const $t=te(Tt);for(const yn of pt){const hi=ne(yn);!0===Ge($t,hi)&&(yield ve(Tt,yn))}}}),fi=(ge,oe)=>oe?So(ge,oe):qi(ge),qi=ge=>{let oe;for(const te of ge)oe=te;if(!oe)throw new Qe(lt.NoElements);return oe},So=(ge,oe)=>{let te;for(const ne of ge)!0===oe(ne)&&(te=ne);if(!te)throw new Qe(lt.NoMatch);return te},Go=function(){var ge=(0,Rt.A)(function*(oe,te){let ne;for(const ve of oe)!0===(yield te(ve))&&(ne=ve);if(!ne)throw new Qe(lt.NoMatch);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),xs=(ge,oe)=>oe?ks(ge,oe):Rs(ge),Rs=ge=>{let oe=null;for(const te of ge)oe=te;return oe},ks=(ge,oe)=>{let te=null;for(const ne of ge)!0===oe(ne)&&(te=ne);return te},_s=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=null;for(const ve of oe)!0===(yield te(ve))&&(ne=ve);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),Bs=(ge,oe)=>oe?Et(ge,oe):Ss(ge),Ss=ge=>{let oe=null;for(const te of ge)oe=Math.max(oe||Number.NEGATIVE_INFINITY,te);if(null===oe)throw new Qe(lt.NoElements);return oe},Et=(ge,oe)=>{let te=null;for(const ne of ge)te=Math.max(te||Number.NEGATIVE_INFINITY,oe(ne));if(null===te)throw new Qe(lt.NoElements);return te},en=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=null;for(const ve of oe)ne=Math.max(ne||Number.NEGATIVE_INFINITY,yield te(ve));if(null===ne)throw new Qe(lt.NoElements);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),Dn=(ge,oe)=>oe?gi(ge,oe):Zn(ge),Zn=ge=>{let oe=null;for(const te of ge)oe=Math.min(oe||Number.POSITIVE_INFINITY,te);if(null===oe)throw new Qe(lt.NoElements);return oe},gi=(ge,oe)=>{let te=null;for(const ne of ge)te=Math.min(te||Number.POSITIVE_INFINITY,oe(ne));if(null===te)throw new Qe(lt.NoElements);return te},mi=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=null;for(const ve of oe)ne=Math.min(ne||Number.POSITIVE_INFINITY,yield te(ve));if(null===ne)throw new Qe(lt.NoElements);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),ut=(ge,oe)=>{const te="string"==typeof oe?ve=>typeof ve===oe:ve=>ve instanceof oe;return new On(function*ne(){for(const ve of ge)te(ve)&&(yield ve)})};function Yt(ge){var oe={},te=!1;function ne(ve,Ge){return te=!0,{done:!1,value:new Gt(Ge=new Promise(function(Je){Je(ge[ve](Ge))}),1)}}return oe[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},oe.next=function(ve){return te?(te=!1,ve):ne("next",ve)},"function"==typeof ge.throw&&(oe.throw=function(ve){if(te)throw te=!1,ve;return ne("throw",ve)}),"function"==typeof ge.return&&(oe.return=function(ve){return te?(te=!1,ve):ne("return",ve)}),oe}const Dt=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=new Map;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;{const yn=yield te($t),hi=ne.get(yn);hi?hi.push($t):ne.set(yn,[$t])}}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}();function Yn(){return(Yn=nn(function*(ge,oe,te,ne){const ve=yield ft(Dt(ge,oe)),Ge=[...ve.keys()].sort(ne||void 0);if(te)for(let Je=0;Je<Ge.length;Je++)yield ve.get(Ge[Je]);else for(let Je=Ge.length-1;Je>=0;Je--)yield ve.get(Ge[Je])})).apply(this,arguments)}const xi=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=new Map;for(const ve of oe){const Ge=yield te(ve),Je=ne.get(Ge);Je?Je.push(ve):ne.set(Ge,[ve])}return ne});return function(te,ne){return ge.apply(this,arguments)}}();function Ki(ge,oe,te,ne){return Ro.apply(this,arguments)}function Ro(){return(Ro=nn(function*(ge,oe,te,ne){const ve=yield ft(xi(ge,oe)),Ge=[...ve.keys()].sort(ne||void 0);if(te)for(let Je=0;Je<Ge.length;Je++)yield ve.get(Ge[Je]);else for(let Je=Ge.length-1;Je>=0;Je--)yield ve.get(Ge[Je])})).apply(this,arguments)}const yo=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=new Map;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;{const yn=te($t),hi=ne.get(yn);hi?hi.push($t):ne.set(yn,[$t])}}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}();function Ho(){return(Ho=nn(function*(ge,oe,te,ne){const ve=yield ft(yo(ge,oe)),Ge=[...ve.keys()].sort(ne||void 0);if(te)for(let Je=0;Je<Ge.length;Je++)yield ve.get(Ge[Je]);else for(let Je=Ge.length-1;Je>=0;Je--)yield ve.get(Ge[Je])})).apply(this,arguments)}function*ds(ge,oe,te,ne){const ve=((ge,oe)=>{const te=new Map;for(const ne of ge){const ve=oe(ne),Ge=te.get(ve);Ge?Ge.push(ne):te.set(ve,[ne])}return te})(ge,oe),Ge=[...ve.keys()].sort(ne||void 0);if(te)for(let Je=0;Je<Ge.length;Je++)yield ve.get(Ge[Je]);else for(let Je=Ge.length-1;Je>=0;Je--)yield ve.get(Ge[Je])}class Bo extends yt{constructor(oe){super(nn(function*(){var ve,te=!1,ne=!1;try{for(var Je,Ge=pi(oe());te=!(Je=yield ft(Ge.next())).done;te=!1){const pt=Je.value;yield*Yt(pi(pt))}}catch(pt){ne=!0,ve=pt}finally{try{te&&null!=Ge.return&&(yield ft(Ge.return()))}finally{if(ne)throw ve}}})),this.orderedPairs=oe}static generateAsync(oe,te,ne,ve){let Ge;return Ge=oe instanceof Bo?function(){var Je=nn(function*(){var $t,pt=!1,Tt=!1;try{for(var hi,yn=pi(oe.orderedPairs());pt=!(hi=yield ft(yn.next())).done;pt=!1){const wi=hi.value;yield*Yt(pi(Ki(wi,te,ne,ve)))}}catch(wi){Tt=!0,$t=wi}finally{try{pt&&null!=yn.return&&(yield ft(yn.return()))}finally{if(Tt)throw $t}}});return function(){return Je.apply(this,arguments)}}():()=>function mn(ge,oe,te,ne){return Yn.apply(this,arguments)}(oe,te,ne,ve),new Bo(Ge)}static generate(oe,te,ne,ve){let Ge;return Ge=oe instanceof Bo?function(){var Je=nn(function*(){var $t,pt=!1,Tt=!1;try{for(var hi,yn=pi(oe.orderedPairs());pt=!(hi=yield ft(yn.next())).done;pt=!1){const wi=hi.value;yield*Yt(pi(ds(wi,te,ne,ve)))}}catch(wi){Tt=!0,$t=wi}finally{try{pt&&null!=yn.return&&(yield ft(yn.return()))}finally{if(Tt)throw $t}}});return function(){return Je.apply(this,arguments)}}():()=>function ko(ge,oe,te,ne){return Ho.apply(this,arguments)}(oe,te,ne,ve),new Bo(Ge)}thenBy(oe,te){return Bo.generate(this,oe,!0,te)}thenByAsync(oe,te){return Bo.generateAsync(this,oe,!0,te)}thenByDescending(oe,te){return Bo.generate(this,oe,!1,te)}thenByDescendingAsync(oe,te){return Bo.generateAsync(this,oe,!1,te)}}function*Ys(ge,oe,te,ne){const ve=((ge,oe)=>{const te=new Map;for(const ne of ge){const ve=oe(ne),Ge=te.get(ve);Ge?Ge.push(ne):te.set(ve,[ne])}return te})(ge,oe),Ge=[...ve.keys()].sort(ne||void 0);if(te)for(let Je=0;Je<Ge.length;Je++)yield ve.get(Ge[Je]);else for(let Je=Ge.length-1;Je>=0;Je--)yield ve.get(Ge[Je])}const Us=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=new Map;for(const ve of oe){const Ge=yield te(ve),Je=ne.get(Ge);Je?Je.push(ve):ne.set(Ge,[ve])}return ne});return function(te,ne){return ge.apply(this,arguments)}}();function Qs(ge,oe,te,ne){return nr.apply(this,arguments)}function nr(){return(nr=nn(function*(ge,oe,te,ne){const ve=yield ft(Us(ge,oe)),Ge=[...ve.keys()].sort(ne||void 0);if(te)for(let Je=0;Je<Ge.length;Je++)yield ve.get(Ge[Je]);else for(let Je=Ge.length-1;Je>=0;Je--)yield ve.get(Ge[Je])})).apply(this,arguments)}class gn extends On{constructor(oe){super(function*(){for(const te of oe())yield*te}),this.orderedPairs=oe}static generate(oe,te,ne,ve){let Ge;return Ge=oe instanceof gn?function*(){for(const Je of oe.orderedPairs())yield*Ys(Je,te,ne,ve)}:()=>Ys(oe,te,ne,ve),new gn(Ge)}static generateAsync(oe,te,ne,ve){let Ge;return Ge=oe instanceof gn?function(){var Je=nn(function*(){for(const pt of oe.orderedPairs())yield*Yt(pi(Qs(pt,te,ne,ve)))});return function(){return Je.apply(this,arguments)}}():()=>Qs(oe,te,ne,ve),new Bo(Ge)}thenBy(oe,te){return gn.generate(this,oe,!0,te)}thenByAsync(oe,te){return gn.generateAsync(this,oe,!0,te)}thenByDescending(oe,te){return gn.generate(this,oe,!1,te)}thenByDescendingAsync(oe,te){return gn.generateAsync(this,oe,!1,te)}}const Xt=(ge,oe,te)=>gn.generate(ge,oe,!0,te),hn=(ge,oe,te)=>gn.generateAsync(ge,oe,!0,te),Wn=(ge,oe,te)=>gn.generate(ge,oe,!1,te),Fi=(ge,oe,te)=>gn.generateAsync(ge,oe,!1,te),io=(ge,oe)=>{const te=[],ne=[];for(const ve of ge)!0===oe(ve)?ne.push(ve):te.push(ve);return[ne,te]},bo=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=[],ve=[];for(const Ge of oe)!0===(yield te(Ge))?ve.push(Ge):ne.push(Ge);return[ve,ne]});return function(te,ne){return ge.apply(this,arguments)}}(),Mo=ge=>new On(function*oe(){const te=[...ge];for(let ne=te.length-1;ne>=0;ne--)yield te[ne]}),rs=(ge,oe)=>{if("function"==typeof oe){const{length:te}=oe;return 1===te?is(ge,oe):$s(ge,oe)}return Es(ge,oe)},is=(ge,oe)=>new On(function*te(){for(const ne of ge)yield oe(ne)}),$s=(ge,oe)=>new On(function*te(){let ne=0;for(const ve of ge)yield oe(ve,ne),ne++}),Es=(ge,oe)=>new On(function*te(){for(const ne of ge)yield ne[oe]}),ir=(ge,oe)=>"function"==typeof oe?1===oe.length?Cr(ge,oe):Js(ge,oe):Or(ge,oe),Cr=(ge,oe)=>{function ne(){return(ne=nn(function*(){for(const ve of ge)yield oe(ve)})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},Js=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0;for(const Ge of ge)yield oe(Ge,ve),ve++})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},Or=(ge,oe)=>{function ne(){return(ne=nn(function*(){for(const ve of ge)yield ve[oe]})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},rr=(ge,oe)=>"function"==typeof oe?1===oe.length?Tr(ge,oe):ur(ge,oe):Ar(ge,oe),Tr=(ge,oe)=>new On(function*te(){for(const ne of ge)for(const ve of oe(ne))yield ve}),ur=(ge,oe)=>new On(function*te(){let ne=0;for(const ve of ge){for(const Ge of oe(ve,ne))yield Ge;ne++}}),Ar=(ge,oe)=>new On(function*te(){for(const ne of ge)for(const ve of ne[oe])yield ve}),ea=(ge,oe)=>1===oe.length?Vr(ge,oe):Hr(ge,oe),Vr=(ge,oe)=>{function ne(){return(ne=nn(function*(){for(const ve of ge){const Ge=yield ft(oe(ve));for(const Je of Ge)yield Je}})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},Hr=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0;for(const Ge of ge){const Je=yield ft(oe(Ge,ve));for(const pt of Je)yield pt;ve++}})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},jr=(ge,oe,te=Ct)=>{const ne=ge[Symbol.iterator](),ve=oe[Symbol.iterator]();let Ge=ne.next(),Je=ve.next();for(;!Ge.done&&!Je.done;){if(!te(Ge.value,Je.value))return!1;Ge=ne.next(),Je=ve.next()}return!0===Ge.done&&!0===Je.done},Ir=function(){var ge=(0,Rt.A)(function*(oe,te,ne){const ve=oe[Symbol.iterator](),Ge=te[Symbol.iterator]();let Je=ve.next(),pt=Ge.next();for(;!Je.done&&!pt.done;){if(!1===(yield ne(Je.value,pt.value)))return!1;Je=ve.next(),pt=Ge.next()}return!0===Je.done&&!0===pt.done});return function(te,ne,ve){return ge.apply(this,arguments)}}(),va=(ge,oe)=>oe?oa(ge,oe):ca(ge),ca=ge=>{let oe=!1,te=null;for(const ne of ge){if(!0===oe)throw new Qe(lt.MoreThanOneElement);oe=!0,te=ne}if(!1===oe)throw new Qe(lt.NoElements);return te},oa=(ge,oe)=>{let te=!1,ne=null;for(const ve of ge)if(oe(ve)){if(!0===te)throw new Qe(lt.MoreThanOneMatchingElement);te=!0,ne=ve}if(!1===te)throw new Qe(lt.NoMatch);return ne},ot=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=!1,ve=null;for(const Ge of oe)if(yield te(Ge)){if(!0===ne)throw new Qe(lt.MoreThanOneMatchingElement);ne=!0,ve=Ge}if(!1===ne)throw new Qe(lt.NoMatch);return ve});return function(te,ne){return ge.apply(this,arguments)}}(),Bt=(ge,oe)=>oe?bn(ge,oe):qt(ge),qt=ge=>{let oe=!1,te=null;for(const ne of ge){if(!0===oe)throw new Qe(lt.MoreThanOneElement);oe=!0,te=ne}return te},bn=(ge,oe)=>{let te=!1,ne=null;for(const ve of ge)if(oe(ve)){if(!0===te)throw new Qe(lt.MoreThanOneMatchingElement);te=!0,ne=ve}return ne},kn=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=!1,ve=null;for(const Ge of oe)if(yield te(Ge)){if(!0===ne)throw new Qe(lt.MoreThanOneElement);ne=!0,ve=Ge}return ve});return function(te,ne){return ge.apply(this,arguments)}}(),yi=(ge,oe)=>new On(function*te(){let ne=0;for(const ve of ge)ne++>=oe&&(yield ve)}),Hi=(ge,oe)=>1===oe.length?co(ge,oe):Po(ge,oe),co=(ge,oe)=>new On(function*te(){let ne=!0;for(const ve of ge)!1===ne?yield ve:!1===oe(ve)&&(ne=!1,yield ve)}),Po=(ge,oe)=>new On(function*te(){let ne=0,ve=!0;for(const Ge of ge)!1===ve?yield Ge:!1===oe(Ge,ne)&&(ve=!1,yield Ge),ne++}),Ko=(ge,oe)=>1===oe.length?Ft(ge,oe):Wt(ge,oe),Ft=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=!0;for(const Ge of ge)!1===ve?yield Ge:!1===(yield ft(oe(Ge)))&&(ve=!1,yield Ge)})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},Wt=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0,Ge=!0;for(const Je of ge)!1===Ge?yield Je:!1===(yield ft(oe(Je,ve)))&&(Ge=!1,yield Je),ve++})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},xt=(ge,oe)=>oe?He(ge,oe):Fe(ge),Fe=ge=>{let oe=0;for(const te of ge)oe+=te;return oe},He=(ge,oe)=>{let te=0;for(const ne of ge)te+=oe(ne);return te},wt=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=0;for(const ve of oe)ne+=(yield te(ve));return ne});return function(te,ne){return ge.apply(this,arguments)}}(),Ut=(ge,oe)=>new On(function*te(){let ne=oe>0?oe:0;for(const ve of ge){if(0===ne--)break;yield ve}}),cn=(ge,oe)=>1===oe.length?Ln(ge,oe):$n(ge,oe),Ln=(ge,oe)=>new On(function*te(){for(const ne of ge){if(!oe(ne))break;yield ne}}),$n=(ge,oe)=>new On(function*te(){let ne=0;for(const ve of ge){if(!oe(ve,ne++))break;yield ve}}),bi=(ge,oe)=>1===oe.length?vi(ge,oe):ki(ge,oe),vi=(ge,oe)=>{function ne(){return(ne=nn(function*(){for(const ve of ge){if(!(yield ft(oe(ve))))break;yield ve}})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},ki=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0;for(const Ge of ge){if(!(yield ft(oe(Ge,ve++))))break;yield Ge}})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},Si=ge=>[...ge],Wi=(ge,oe)=>{const te=new Map;for(const ne of ge){const ve=oe(ne),Ge=te.get(ve);void 0===Ge?te.set(ve,[ne]):Ge.push(ne)}return te},Pi=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=new Map;for(const ve of oe){const Ge=yield te(ve),Je=ne.get(Ge);void 0===Je?ne.set(Ge,[ve]):Je.push(ve)}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),oo=(ge,oe)=>{const te={};for(const ne of ge)te[oe(ne)]=ne;return te},Do=function(){var ge=(0,Rt.A)(function*(oe,te){const ne={};for(const ve of oe)ne[yield te(ve)]=ve;return ne});return function(te,ne){return ge.apply(this,arguments)}}(),Ht=ge=>new Set(ge),Mt=(ge,oe,te)=>te?an(ge,oe,te):bt(ge,oe),bt=(ge,oe)=>new On(function*te(){const ne=new Set;for(const ve of ge)!1===ne.has(ve)&&(yield ve,ne.add(ve));for(const ve of oe)!1===ne.has(ve)&&(yield ve,ne.add(ve))}),an=(ge,oe,te)=>new On(function*ne(){const ve=[];for(const Ge of[ge,oe])for(const Je of Ge){let pt=!1;for(const Tt of ve)if(!0===te(Je,Tt)){pt=!0;break}!1===pt&&(yield Je,ve.push(Je))}}),Un=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=[];for(const Je of[ge,oe])for(const pt of Je){let Tt=!1;for(const $t of Ge)if(!0===(yield ft(te(pt,$t)))){Tt=!0;break}!1===Tt&&(yield pt,Ge.push(pt))}})).apply(this,arguments)}return To(function ne(){return ve.apply(this,arguments)})},di=(ge,oe)=>1===oe.length?qn(ge,oe):Ti(ge,oe),qn=(ge,oe)=>new On(function*te(){for(const ne of ge)!0===oe(ne)&&(yield ne)}),Ti=(ge,oe)=>new On(function*te(){let ne=0;for(const ve of ge)!0===oe(ve,ne++)&&(yield ve)}),Qi=(ge,oe)=>1===oe.length?go(ge,oe):eo(ge,oe),go=(ge,oe)=>{function ne(){return(ne=nn(function*(){for(const ve of ge)!0===(yield ft(oe(ve)))&&(yield ve)})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},eo=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0;for(const Ge of ge)!0===(yield ft(oe(Ge,ve++)))&&(yield Ge)})).apply(this,arguments)}return To(function te(){return ne.apply(this,arguments)})},os=(ge,oe,te)=>te?Os(ge,oe,te):as(ge,oe),as=(ge,oe)=>new On(function*te(){const ne=ge[Symbol.iterator](),ve=oe[Symbol.iterator]();for(;;){const Ge=ne.next(),Je=ve.next();if(Ge.done||Je.done)break;yield[Ge.value,Je.value]}}),Os=(ge,oe,te)=>new On(function*ne(){const ve=ge[Symbol.iterator](),Ge=oe[Symbol.iterator]();for(;;){const Je=ve.next(),pt=Ge.next();if(Je.done||pt.done)break;yield te(Je.value,pt.value)}}),Ks=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=ge[Symbol.iterator](),Je=oe[Symbol.iterator]();for(;;){const pt=Ge.next(),Tt=Je.next();if(pt.done||Tt.done)break;yield te(pt.value,Tt.value)}})).apply(this,arguments)}return To(function ne(){return ve.apply(this,arguments)})},ht=ge=>{const oe=ge.prototype,te=(ne,ve)=>{const Ge=function(...Je){return ne(this,...Je)};Object.defineProperty(Ge,"length",{value:ne.length-1}),oe[ve]=Ge};te(Vo,"aggregate"),te(ei,"all"),te(Jt,"allAsync"),te(Pn,"any"),te(vo,"anyAsync"),te(hs,"asAsync"),te(ls,"asParallel"),te(Hs,"average"),te(ss,"averageAsync"),te(qo,"chunk"),te(cs,"concatenate"),te(bs,"contains"),te(Fn,"containsAsync"),te(li,"count"),te(Yi,"countAsync"),te(Sn,"defaultIfEmpty"),te(ri,"distinct"),te(It,"distinctAsync"),te(Pt,"each"),te(dn,"eachAsync"),te(jt,"elementAt"),te(Ot,"elementAtOrDefault"),te(Tn,"except"),te(ni,"exceptAsync"),te(Bi,"first"),te(mo,"firstAsync"),te(ho,"firstOrDefault"),te(jn,"firstOrDefaultAsync"),te(gs,"groupBy"),te(xn,"groupByAsync"),te(Ri,"groupByWithSel"),te(Xi,"groupJoin"),te(Vs,"groupJoinAsync"),te(zn,"intersect"),te(pn,"intersectAsync"),te(An,"joinByKey"),te(fi,"last"),te(Go,"lastAsync"),te(xs,"lastOrDefault"),te(_s,"lastOrDefaultAsync"),te(Bs,"max"),te(en,"maxAsync"),te(Dn,"min"),te(mi,"minAsync"),te(ut,"ofType"),te(Xt,"orderBy"),te(hn,"orderByAsync"),te(Wn,"orderByDescending"),te(Fi,"orderByDescendingAsync"),te(Mo,"reverse"),te(rs,"select"),te(ir,"selectAsync"),te(rr,"selectMany"),te(ea,"selectManyAsync"),te(jr,"sequenceEquals"),te(Ir,"sequenceEqualsAsync"),te(va,"single"),te(ot,"singleAsync"),te(Bt,"singleOrDefault"),te(kn,"singleOrDefaultAsync"),te(yi,"skip"),te(Hi,"skipWhile"),te(Ko,"skipWhileAsync"),te(xt,"sum"),te(wt,"sumAsync"),te(Ut,"take"),te(cn,"takeWhile"),te(bi,"takeWhileAsync"),te(Si,"toArray"),te(Wi,"toMap"),te(Pi,"toMapAsync"),te(oo,"toObject"),te(Do,"toObjectAsync"),te(io,"partition"),te(bo,"partitionAsync"),te(Ht,"toSet"),te(Mt,"union"),te(Un,"unionAsync"),te(di,"where"),te(Qi,"whereAsync"),te(os,"zip"),te(Ks,"zipAsync")},_t=(ge,oe,te,ne)=>{if(ne){if(!te)throw new ReferenceError("TAccumulate function is undefined");return Oi(ge,oe,te,ne)}return te?In(ge,oe,te):_n(ge,oe)},_n=function(){var ge=(0,Rt.A)(function*(oe,te){let ne;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;ne=ne?te(ne,$t):$t}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}if(void 0===ne)throw new Qe(lt.NoElements);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),In=function(){var ge=(0,Rt.A)(function*(oe,te,ne){let ve=te;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(oe);Ge=!($t=yield Tt.next()).done;Ge=!1)ve=ne(ve,$t.value)}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield Tt.return())}finally{if(Je)throw pt}}return ve});return function(te,ne,ve){return ge.apply(this,arguments)}}(),Oi=function(){var ge=(0,Rt.A)(function*(oe,te,ne,ve){let Ge=te;var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(oe);Je=!(yn=yield $t.next()).done;Je=!1)Ge=ne(Ge,yn.value)}catch(hi){pt=!0,Tt=hi}finally{try{Je&&null!=$t.return&&(yield $t.return())}finally{if(pt)throw Tt}}return ve(Ge)});return function(te,ne,ve,Ge){return ge.apply(this,arguments)}}(),po=function(){var ge=(0,Rt.A)(function*(oe,te){var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1)if(!1===te(pt.value))return!1}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}return!0});return function(te,ne){return ge.apply(this,arguments)}}(),Zs=function(){var ge=(0,Rt.A)(function*(oe,te){var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1){const Tt=pt.value;if(!1===(yield te(Tt)))return!1}}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}return!0});return function(te,ne){return ge.apply(this,arguments)}}(),xa=(ge,oe)=>oe?Ea(ge,oe):yl(ge),yl=function(){var ge=(0,Rt.A)(function*(oe){var ve,te=!1,ne=!1;try{for(var Ge=pi(oe);te=!(yield Ge.next()).done;te=!1)return!0}catch(pt){ne=!0,ve=pt}finally{try{te&&null!=Ge.return&&(yield Ge.return())}finally{if(ne)throw ve}}return!1});return function(te){return ge.apply(this,arguments)}}(),Ea=function(){var ge=(0,Rt.A)(function*(oe,te){var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1)if(!0===te(pt.value))return!0}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}return!1});return function(te,ne){return ge.apply(this,arguments)}}(),bl=function(){var ge=(0,Rt.A)(function*(oe,te){var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1){const Tt=pt.value;if(!0===(yield te(Tt)))return!0}}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}return!1});return function(te,ne){return ge.apply(this,arguments)}}(),xl=ge=>Ps(0,function(){var te=(0,Rt.A)(function*(){const ne=[];var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield pt.next()).done;ve=!1)ne.push(Tt.value)}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(){return te.apply(this,arguments)}}()),ic=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=0,ve=0;if(te){var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(oe);Ge=!($t=yield Tt.next()).done;Ge=!1)ne+=te($t.value),ve+=1}catch(Io){Je=!0,pt=Io}finally{try{Ge&&null!=Tt.return&&(yield Tt.return())}finally{if(Je)throw pt}}}else{var wi,yn=!1,hi=!1;try{for(var fo,Ui=pi(oe);yn=!(fo=yield Ui.next()).done;yn=!1)ne+=fo.value,ve+=1}catch(Io){hi=!0,wi=Io}finally{try{yn&&null!=Ui.return&&(yield Ui.return())}finally{if(hi)throw wi}}}if(0===ve)throw new Qe(lt.NoElements);return ne/ve});return function(te,ne){return ge.apply(this,arguments)}}(),oc=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=0,ve=0;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(oe);Ge=!($t=yield Tt.next()).done;Ge=!1){const yn=$t.value;ne+=(yield te(yn)),ve+=1}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield Tt.return())}finally{if(Je)throw pt}}if(0===ve)throw new Qe(lt.NoElements);return ne/ve});return function(te,ne){return ge.apply(this,arguments)}}(),js=(ge,oe)=>{if(oe<1)throw new Ne("index");function ne(){return(ne=nn(function*(){let ve=[];var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1)ve.push($t.value),ve.length===oe&&(yield ve,ve=[])}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}ve.length&&(yield ve)})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},El=(ge,oe)=>{function ne(){return(ne=nn(function*(){yield*Yt(pi(ge)),yield*Yt(pi(oe))})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Sc=function(){var ge=(0,Rt.A)(function*(oe,te,ne=Ct){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1)if(ne(te,Tt.value))return!0}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return!1});return function(te,ne){return ge.apply(this,arguments)}}(),sc=function(){var ge=(0,Rt.A)(function*(oe,te,ne){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;if(yield ne(te,$t))return!0}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return!1});return function(te,ne,ve){return ge.apply(this,arguments)}}(),hd=(ge,oe)=>oe?Xd(ge,oe):Sh(ge),Sh=function(){var ge=(0,Rt.A)(function*(oe){let te=0;var Ge,ne=!1,ve=!1;try{for(var Je=pi(oe);ne=!(yield Je.next()).done;ne=!1)te++}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}return te});return function(te){return ge.apply(this,arguments)}}(),Xd=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=0;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1)!0===te(Tt.value)&&ne++}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),pd=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=0;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;!0===(yield te($t))&&ne++}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),rc=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=!1;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;ve=!0,yield yn}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}ve||(yield oe)})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Nl=(ge,oe=Ct)=>{function ne(){return(ne=nn(function*(){const ve=[];var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;ve.find(wi=>oe(wi,yn))||(ve.push(yn),yield yn)}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Ll=(ge,oe)=>{function ne(){return(ne=nn(function*(){const ve=[];var pt,Ge=!1,Je=!1;try{e:for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;for(const hi of ve)if(yield ft(oe(hi,yn)))continue e;ve.push(yn),yield yn}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},gd=(ge,oe)=>{function ne(){return(ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1){const $t=Tt.value;oe($t),yield $t}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Yd=(ge,oe)=>{function ne(){return(ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1){const $t=Tt.value;yield ft(oe($t)),yield $t}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Mu=function(){var ge=(0,Rt.A)(function*(oe,te){if(te<0)throw new Ne("index");let ne=0;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1)if(te===ne++)return Tt.value}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}throw new Ne("index")});return function(te,ne){return ge.apply(this,arguments)}}(),fd=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=0;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1)if(te===ne++)return Tt.value}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return null});return function(te,ne){return ge.apply(this,arguments)}}(),Sa=(ge,oe,te=Ct)=>{function ve(){return(ve=nn(function*(){const Ge=[];var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(oe);Je=!(yn=yield ft($t.next())).done;Je=!1)Ge.push(yn.value)}catch(ts){pt=!0,Tt=ts}finally{try{Je&&null!=$t.return&&(yield ft($t.return()))}finally{if(pt)throw Tt}}var Ui,hi=!1,wi=!1;try{for(var Io,fo=pi(ge);hi=!(Io=yield ft(fo.next())).done;hi=!1){const ts=Io.value;{let Ms=!1;for(let Ws=0;Ws<Ge.length;Ws++)if(!0===te(ts,Ge[Ws])){Ms=!0;break}!1===Ms&&(yield ts)}}}catch(ts){wi=!0,Ui=ts}finally{try{hi&&null!=fo.return&&(yield ft(fo.return()))}finally{if(wi)throw Ui}}})).apply(this,arguments)}return new yt(function ne(){return ve.apply(this,arguments)})},Qd=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=[];var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(oe);Je=!(yn=yield ft($t.next())).done;Je=!1)Ge.push(yn.value)}catch(ts){pt=!0,Tt=ts}finally{try{Je&&null!=$t.return&&(yield ft($t.return()))}finally{if(pt)throw Tt}}var Ui,hi=!1,wi=!1;try{for(var Io,fo=pi(ge);hi=!(Io=yield ft(fo.next())).done;hi=!1){const ts=Io.value;{let Ms=!1;for(let Ws=0;Ws<Ge.length;Ws++){const sr=Ge[Ws];if(!0===(yield ft(te(ts,sr)))){Ms=!0;break}}!1===Ms&&(yield ts)}}}catch(ts){wi=!0,Ui=ts}finally{try{hi&&null!=fo.return&&(yield ft(fo.return()))}finally{if(wi)throw Ui}}})).apply(this,arguments)}return new yt(function ne(){return ve.apply(this,arguments)})},Dc=(ge,oe)=>oe?md(ge,oe):Tc(ge),Tc=function(){var ge=(0,Rt.A)(function*(oe){const te=yield oe[Symbol.asyncIterator]().next();if(!0===te.done)throw new Qe(lt.NoElements);return te.value});return function(te){return ge.apply(this,arguments)}}(),md=function(){var ge=(0,Rt.A)(function*(oe,te){var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1){const Tt=pt.value;if(!0===te(Tt))return Tt}}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}throw new Qe(lt.NoMatch)});return function(te,ne){return ge.apply(this,arguments)}}(),Gc=function(){var ge=(0,Rt.A)(function*(oe,te){var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1){const Tt=pt.value;if(!0===(yield te(Tt)))return Tt}}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}throw new Qe(lt.NoMatch)});return function(te,ne){return ge.apply(this,arguments)}}(),Ac=(ge,oe)=>oe?rt(ge,oe):Ic(ge),Ic=function(){var ge=(0,Rt.A)(function*(oe){return(yield oe[Symbol.asyncIterator]().next()).value||null});return function(te){return ge.apply(this,arguments)}}(),rt=function(){var ge=(0,Rt.A)(function*(oe,te){var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1){const Tt=pt.value;if(!0===te(Tt))return Tt}}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}return null});return function(te,ne){return ge.apply(this,arguments)}}(),At=function(){var ge=(0,Rt.A)(function*(oe,te){var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1){const Tt=pt.value;if(!0===(yield te(Tt)))return Tt}}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}return null});return function(te,ne){return ge.apply(this,arguments)}}(),vt=(ge,oe,te)=>te?kt(ge,oe,te):ln(ge,oe),kt=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=new Array;var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(ge);Je=!(yn=yield ft($t.next())).done;Je=!1){const hi=yn.value;{const wi=oe(hi);let Ui=!1;for(let fo=0;fo<Ge.length;fo++){const Io=Ge[fo];if(te(Io.key,wi)){Io.push(hi),Ui=!0;break}}!1===Ui&&Ge.push(new ai(wi,hi))}}}catch(hi){pt=!0,Tt=hi}finally{try{Je&&null!=$t.return&&(yield ft($t.return()))}finally{if(pt)throw Tt}}for(const hi of Ge)yield hi})).apply(this,arguments)}return new yt(function ne(){return ve.apply(this,arguments)})},ln=(ge,oe)=>{function ne(){return(ne=nn(function*(){const ve={};var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;{const hi=oe(yn),wi=ve[hi];wi?wi.push(yn):ve[hi]=new ai(hi,yn)}}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}for(const yn in ve)yield ve[yn]})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Rn=(ge,oe,te)=>te?Gi(ge,oe,te):ii(ge,oe),ii=(ge,oe)=>{function ne(){return(ne=nn(function*(){const ve={};var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;{const hi=yield ft(oe(yn)),wi=ve[hi];wi?wi.push(yn):ve[hi]=new ai(hi,yn)}}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}for(const yn in ve)yield ve[yn]})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Gi=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=new Array;var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(ge);Je=!(yn=yield ft($t.next())).done;Je=!1){const hi=yn.value;{const wi=yield ft(oe(hi));let Ui=!1;for(let fo=0;fo<Ge.length;fo++){const Io=Ge[fo];if(!0===(yield ft(te(Io.key,wi)))){Io.push(hi),Ui=!0;break}}!1===Ui&&Ge.push(new ai(wi,hi))}}}catch(hi){pt=!0,Tt=hi}finally{try{Je&&null!=$t.return&&(yield ft($t.return()))}finally{if(pt)throw Tt}}for(const hi of Ge)yield hi})).apply(this,arguments)}return new yt(function ne(){return ve.apply(this,arguments)})},lo=(ge,oe,te,ne)=>ne?lr(ge,oe,te,ne):Cs(ge,oe,te),Cs=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge={};var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(ge);Je=!(yn=yield ft($t.next())).done;Je=!1){const hi=yn.value;{const wi=oe(hi),Ui=Ge[wi],fo=te(hi);Ui?Ui.push(fo):Ge[wi]=new ai(wi,fo)}}}catch(hi){pt=!0,Tt=hi}finally{try{Je&&null!=$t.return&&(yield ft($t.return()))}finally{if(pt)throw Tt}}for(const hi in Ge)yield Ge[hi]})).apply(this,arguments)}return new yt(function ne(){return ve.apply(this,arguments)})},lr=(ge,oe,te,ne)=>{function Ge(){return(Ge=nn(function*(){const Je=new Array;var $t,pt=!1,Tt=!1;try{for(var hi,yn=pi(ge);pt=!(hi=yield ft(yn.next())).done;pt=!1){const wi=hi.value;{const Ui=oe(wi);let fo=!1;for(let Io=0;Io<Je.length;Io++){const ts=Je[Io];if(ne(ts.key,Ui)){ts.push(te(wi)),fo=!0;break}}if(!1===fo){const Io=te(wi);Je.push(new ai(Ui,Io))}}}}catch(wi){Tt=!0,$t=wi}finally{try{pt&&null!=yn.return&&(yield ft(yn.return()))}finally{if(Tt)throw $t}}for(const wi of Je)yield wi})).apply(this,arguments)}return new yt(function ve(){return Ge.apply(this,arguments)})},Xr=(ge,oe,te,ne,ve,Ge)=>{const Je=Ge?ta(ge,oe,te,ne,ve,Ge):Ga(ge,oe,te,ne,ve);return new yt(Je)},ta=(ge,oe,te,ne,ve,Ge)=>nn(function*(){var Je;const pt=[];var yn,Tt=!1,$t=!1;try{for(var wi,hi=pi(oe);Tt=!(wi=yield ft(hi.next())).done;Tt=!1){const Ws=wi.value;{const sr=ne(Ws),Qa=pt.find(gc=>Ge(gc.key,sr));Qa?Qa.values.push(Ws):pt.push({key:sr,values:[Ws]})}}}catch(Ws){$t=!0,yn=Ws}finally{try{Tt&&null!=hi.return&&(yield ft(hi.return()))}finally{if($t)throw yn}}var Io,Ui=!1,fo=!1;try{for(var Ms,ts=pi(ge);Ui=!(Ms=yield ft(ts.next())).done;Ui=!1){const Ws=Ms.value;{const sr=te(Ws),Qa=null!==(Je=pt.find(gc=>Ge(gc.key,sr)))&&void 0!==Je?Je:{key:sr,values:[]};yield ve(Ws,Qa.values)}}}catch(Ws){fo=!0,Io=Ws}finally{try{Ui&&null!=ts.return&&(yield ft(ts.return()))}finally{if(fo)throw Io}}}),Ga=(ge,oe,te,ne,ve)=>nn(function*(){var Ge;const Je=new Map;var $t,pt=!1,Tt=!1;try{for(var hi,yn=pi(oe);pt=!(hi=yield ft(yn.next())).done;pt=!1){const Ms=hi.value;{const Ws=ne(Ms),sr=Je.get(Ws);sr?sr.push(Ms):Je.set(Ws,[Ms])}}}catch(Ms){Tt=!0,$t=Ms}finally{try{pt&&null!=yn.return&&(yield ft(yn.return()))}finally{if(Tt)throw $t}}var fo,wi=!1,Ui=!1;try{for(var ts,Io=pi(ge);wi=!(ts=yield ft(Io.next())).done;wi=!1){const Ms=ts.value;{const Ws=te(Ms),sr=null!==(Ge=Je.get(Ws))&&void 0!==Ge?Ge:[];yield ve(Ms,sr)}}}catch(Ms){Ui=!0,fo=Ms}finally{try{wi&&null!=Io.return&&(yield ft(Io.return()))}finally{if(Ui)throw fo}}}),Ca=(ge,oe,te,ne,ve,Ge)=>{const Je=Ge?Ol(ge,oe,te,ne,ve,Ge):Wa(ge,oe,te,ne,ve);return new yt(Je)},Ol=(ge,oe,te,ne,ve,Ge)=>nn(function*(){var Je;const pt=[];var yn,Tt=!1,$t=!1;try{for(var wi,hi=pi(oe);Tt=!(wi=yield ft(hi.next())).done;Tt=!1){const Ws=wi.value;{const sr=yield ft(ne(Ws)),Qa=pt.find(gc=>Ge(gc.key,sr));Qa?Qa.values.push(Ws):pt.push({key:sr,values:[Ws]})}}}catch(Ws){$t=!0,yn=Ws}finally{try{Tt&&null!=hi.return&&(yield ft(hi.return()))}finally{if($t)throw yn}}var Io,Ui=!1,fo=!1;try{for(var Ms,ts=pi(ge);Ui=!(Ms=yield ft(ts.next())).done;Ui=!1){const Ws=Ms.value;{const sr=yield ft(te(Ws)),Qa=null!==(Je=pt.find(gc=>Ge(gc.key,sr)))&&void 0!==Je?Je:{key:sr,values:[]};yield ve(Ws,Qa.values)}}}catch(Ws){fo=!0,Io=Ws}finally{try{Ui&&null!=ts.return&&(yield ft(ts.return()))}finally{if(fo)throw Io}}}),Wa=(ge,oe,te,ne,ve)=>nn(function*(){var Ge;const Je=new Map;var $t,pt=!1,Tt=!1;try{for(var hi,yn=pi(oe);pt=!(hi=yield ft(yn.next())).done;pt=!1){const Ms=hi.value;{const Ws=yield ft(ne(Ms)),sr=Je.get(Ws);sr?sr.push(Ms):Je.set(Ws,[Ms])}}}catch(Ms){Tt=!0,$t=Ms}finally{try{pt&&null!=yn.return&&(yield ft(yn.return()))}finally{if(Tt)throw $t}}var fo,wi=!1,Ui=!1;try{for(var ts,Io=pi(ge);wi=!(ts=yield ft(Io.next())).done;wi=!1){const Ms=ts.value;{const Ws=yield ft(te(Ms)),sr=null!==(Ge=Je.get(Ws))&&void 0!==Ge?Ge:[];yield ve(Ms,sr)}}}catch(Ms){Ui=!0,fo=Ms}finally{try{wi&&null!=Io.return&&(yield ft(Io.return()))}finally{if(Ui)throw fo}}}),ac=(ge,oe,te=Ct)=>{function ve(){return(ve=nn(function*(){const Ge=yield ft(ge.distinct(te).toArray());if(0===Ge.length)return;const Je=yield ft(oe.toArray());for(let pt=0;pt<Ge.length;pt++){const Tt=Ge[pt];for(let $t=0;$t<Je.length;$t++)if(!0===te(Tt,Je[$t])){yield Tt;break}}})).apply(this,arguments)}return new yt(function ne(){return ve.apply(this,arguments)})},wl=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=yield ft(ge.distinctAsync(te).toArray());if(0===Ge.length)return;const Je=yield ft(oe.toArray());for(let pt=0;pt<Ge.length;pt++){const Tt=Ge[pt];for(let $t=0;$t<Je.length;$t++){const yn=Je[$t];if(!0===(yield ft(te(Tt,yn)))){yield Tt;break}}}})).apply(this,arguments)}return new yt(function ne(){return ve.apply(this,arguments)})},Ma=(ge,oe,te,ne,ve,Ge=Ct)=>{function pt(){return(pt=nn(function*(){const Tt=[];var hi,$t=!1,yn=!1;try{for(var Ui,wi=pi(oe);$t=!(Ui=yield ft(wi.next())).done;$t=!1)Tt.push(Ui.value)}catch(sr){yn=!0,hi=sr}finally{try{$t&&null!=wi.return&&(yield ft(wi.return()))}finally{if(yn)throw hi}}var ts,fo=!1,Io=!1;try{for(var Ws,Ms=pi(ge);fo=!(Ws=yield ft(Ms.next())).done;fo=!1){const sr=Ws.value;{const Qa=te(sr);for(const gc of Tt){const Mm=ne(gc);!0===Ge(Qa,Mm)&&(yield ve(sr,gc))}}}}catch(sr){Io=!0,ts=sr}finally{try{fo&&null!=Ms.return&&(yield ft(Ms.return()))}finally{if(Io)throw ts}}})).apply(this,arguments)}return new yt(function Je(){return pt.apply(this,arguments)})},Wc=(ge,oe)=>oe?lc(ge,oe):Zd(ge),Zd=function(){var ge=(0,Rt.A)(function*(oe){let te=null;var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1)te=pt.value}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}if(!te)throw new Qe(lt.NoElements);return te});return function(te){return ge.apply(this,arguments)}}(),lc=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=null;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;!0===te($t)&&(ne=$t)}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}if(!ne)throw new Qe(lt.NoMatch);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),Pu=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=null;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;!0===(yield te($t))&&(ne=$t)}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}if(!ne)throw new Qe(lt.NoMatch);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),_d=(ge,oe)=>oe?Ru(ge,oe):Jd(ge),Jd=function(){var ge=(0,Rt.A)(function*(oe){let te=null;var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1)te=pt.value}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}return te});return function(te){return ge.apply(this,arguments)}}(),Ru=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=null;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;!0===te($t)&&(ne=$t)}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),Mc=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=null;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;!0===(yield te($t))&&(ne=$t)}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),vd=(ge,oe)=>oe?ku(ge,oe):cl(ge),cl=function(){var ge=(0,Rt.A)(function*(oe){let te=null;var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1)te=Math.max(te||Number.NEGATIVE_INFINITY,pt.value)}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}if(null===te)throw new Qe(lt.NoElements);return te});return function(te){return ge.apply(this,arguments)}}(),ku=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=null;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1)ne=Math.max(ne||Number.NEGATIVE_INFINITY,te(Tt.value))}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}if(null===ne)throw new Qe(lt.NoElements);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),qd=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=null;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;ne=Math.max(ne||Number.NEGATIVE_INFINITY,yield te($t))}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}if(null===ne)throw new Qe(lt.NoElements);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),fp=(ge,oe)=>oe?za(ge,oe):pg(ge),pg=function(){var ge=(0,Rt.A)(function*(oe){let te=null;var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1)te=Math.min(te||Number.POSITIVE_INFINITY,pt.value)}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}if(null===te)throw new Qe(lt.NoElements);return te});return function(te){return ge.apply(this,arguments)}}(),za=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=null;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1)ne=Math.min(ne||Number.POSITIVE_INFINITY,te(Tt.value))}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}if(null===ne)throw new Qe(lt.NoElements);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),Vl=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=null;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;ne=Math.min(ne||Number.POSITIVE_INFINITY,yield te($t))}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}if(null===ne)throw new Qe(lt.NoElements);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),zc=(ge,oe)=>{const te="string"==typeof oe?Ge=>typeof Ge===oe:Ge=>Ge instanceof oe;function ve(){return(ve=nn(function*(){var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;te(yn)&&(yield yn)}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function ne(){return ve.apply(this,arguments)})},Dh=(ge,oe,te)=>Bo.generate(ge,oe,!0,te),eu=(ge,oe,te)=>Bo.generateAsync(ge,oe,!0,te),Bu=(ge,oe,te)=>Bo.generate(ge,oe,!1,te),Sl=(ge,oe,te)=>Bo.generateAsync(ge,oe,!1,te),mp=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=[],ve=[];var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(oe);Ge=!($t=yield Tt.next()).done;Ge=!1){const yn=$t.value;!0===te(yn)?ve.push(yn):ne.push(yn)}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield Tt.return())}finally{if(Je)throw pt}}return[ve,ne]});return function(te,ne){return ge.apply(this,arguments)}}(),tu=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=[],ve=[];var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(oe);Ge=!($t=yield Tt.next()).done;Ge=!1){const yn=$t.value;!0===(yield te(yn))?ve.push(yn):ne.push(yn)}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield Tt.return())}finally{if(Je)throw pt}}return[ve,ne]});return function(te,ne){return ge.apply(this,arguments)}}(),Cd=ge=>{function te(){return(te=nn(function*(){const ne=[];var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1)ne.push(Tt.value)}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}for(let $t=ne.length-1;$t>=0;$t--)yield ne[$t]})).apply(this,arguments)}return new yt(function oe(){return te.apply(this,arguments)})},Fu=(ge,oe)=>"function"==typeof oe?1===oe.length?Kc(ge,oe):Nu(ge,oe):Xc(ge,oe),Kc=(ge,oe)=>{function ne(){return(ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1){const $t=Tt.value;yield oe($t)}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Nu=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;yield oe(yn,ve),ve++}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Xc=(ge,oe)=>{function ne(){return(ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1)yield Tt.value[oe]}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Yc=(ge,oe)=>"string"==typeof oe?Dl(ge,oe):dl(ge,oe),dl=(ge,oe)=>{function ne(){return(ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1){const $t=Tt.value;yield oe($t)}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Dl=(ge,oe)=>{function ne(){return(ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1)yield Tt.value[oe]}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},yd=(ge,oe)=>"function"==typeof oe?1===oe.length?Lu(ge,oe):bd(ge,oe):Hl(ge,oe),Lu=(ge,oe)=>{function ne(){return(ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1){const $t=Tt.value;for(const yn of oe($t))yield yn}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},bd=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;for(const hi of oe(yn,ve))yield hi;ve++}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Hl=(ge,oe)=>{function ne(){return(ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1){const $t=Tt.value;for(const yn of $t[oe])yield yn}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},_p=(ge,oe)=>new yt(1===oe.length?function(){var ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1){const $t=Tt.value;{const yn=yield ft(oe($t));for(const hi of yn)yield hi}}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}});return function(){return ne.apply(this,arguments)}}():function(){var ne=nn(function*(){let ve=0;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;{const hi=yield ft(oe(yn,ve));for(const wi of hi)yield wi;ve++}}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}});return function(){return ne.apply(this,arguments)}}()),Da=function(){var ge=(0,Rt.A)(function*(oe,te,ne=Ct){const ve=oe[Symbol.asyncIterator](),Ge=te[Symbol.asyncIterator]();let Je=yield Promise.all([ve.next(),Ge.next()]),pt=Je[0],Tt=Je[1];for(;!pt.done&&!Tt.done;){if(!ne(pt.value,Tt.value))return!1;Je=yield Promise.all([ve.next(),Ge.next()]),pt=Je[0],Tt=Je[1]}return!0===pt.done&&!0===Tt.done});return function(te,ne){return ge.apply(this,arguments)}}(),Tl=function(){var ge=(0,Rt.A)(function*(oe,te,ne){const ve=oe[Symbol.asyncIterator](),Ge=te[Symbol.asyncIterator]();let Je=yield Promise.all([ve.next(),Ge.next()]),pt=Je[0],Tt=Je[1];for(;!pt.done&&!Tt.done;){if(!1===(yield ne(pt.value,Tt.value)))return!1;Je=yield Promise.all([ve.next(),Ge.next()]),pt=Je[0],Tt=Je[1]}return!0===pt.done&&!0===Tt.done});return function(te,ne,ve){return ge.apply(this,arguments)}}(),$l=(ge,oe)=>oe?Yr(ge,oe):vp(ge),vp=function(){var ge=(0,Rt.A)(function*(oe){let te=!1,ne=null;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;if(!0===te)throw new Qe(lt.MoreThanOneElement);te=!0,ne=$t}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}if(!1===te)throw new Qe(lt.NoElements);return ne});return function(te){return ge.apply(this,arguments)}}(),Yr=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=!1,ve=null;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(oe);Ge=!($t=yield Tt.next()).done;Ge=!1){const yn=$t.value;if(te(yn)){if(!0===ne)throw new Qe(lt.MoreThanOneMatchingElement);ne=!0,ve=yn}}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield Tt.return())}finally{if(Je)throw pt}}if(!1===ne)throw new Qe(lt.NoMatch);return ve});return function(te,ne){return ge.apply(this,arguments)}}(),Pc=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=!1,ve=null;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(oe);Ge=!($t=yield Tt.next()).done;Ge=!1){const yn=$t.value;if(yield te(yn)){if(!0===ne)throw new Qe(lt.MoreThanOneMatchingElement);ne=!0,ve=yn}}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield Tt.return())}finally{if(Je)throw pt}}if(!1===ne)throw new Qe(lt.NoMatch);return ve});return function(te,ne){return ge.apply(this,arguments)}}(),Vu=(ge,oe)=>oe?xd(ge,oe):nu(ge),nu=function(){var ge=(0,Rt.A)(function*(oe){let te=!1,ne=null;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;if(!0===te)throw new Qe(lt.MoreThanOneElement);te=!0,ne=$t}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te){return ge.apply(this,arguments)}}(),xd=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=!1,ve=null;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(oe);Ge=!($t=yield Tt.next()).done;Ge=!1){const yn=$t.value;if(te(yn)){if(!0===ne)throw new Qe(lt.MoreThanOneMatchingElement);ne=!0,ve=yn}}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield Tt.return())}finally{if(Je)throw pt}}return ve});return function(te,ne){return ge.apply(this,arguments)}}(),Ul=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=!1,ve=null;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(oe);Ge=!($t=yield Tt.next()).done;Ge=!1){const yn=$t.value;if(yield te(yn)){if(!0===ne)throw new Qe(lt.MoreThanOneMatchingElement);ne=!0,ve=yn}}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield Tt.return())}finally{if(Je)throw pt}}return ve});return function(te,ne){return ge.apply(this,arguments)}}(),iu=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;ve++>=oe&&(yield yn)}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Hu=(ge,oe)=>1===oe.length?Ed(ge,oe):$u(ge,oe),Ed=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=!0;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;!1===ve?yield yn:!1===oe(yn)&&(ve=!1,yield yn)}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},$u=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0,Ge=!0;var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(ge);Je=!(yn=yield ft($t.next())).done;Je=!1){const hi=yn.value;!1===Ge?yield hi:!1===oe(hi,ve)&&(Ge=!1,yield hi),ve++}}catch(hi){pt=!0,Tt=hi}finally{try{Je&&null!=$t.return&&(yield ft($t.return()))}finally{if(pt)throw Tt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Uu=(ge,oe)=>1===oe.length?ou(ge,oe):Rc(ge,oe),ou=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=!0;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;!1===ve?yield yn:!1===(yield ft(oe(yn)))&&(ve=!1,yield yn)}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Rc=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0,Ge=!0;var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(ge);Je=!(yn=yield ft($t.next())).done;Je=!1){const hi=yn.value;!1===Ge?yield hi:!1===(yield ft(oe(hi,ve)))&&(Ge=!1,yield hi),ve++}}catch(hi){pt=!0,Tt=hi}finally{try{Je&&null!=$t.return&&(yield ft($t.return()))}finally{if(pt)throw Tt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},gt=(ge,oe)=>oe?Xn(ge,oe):un(ge),un=function(){var ge=(0,Rt.A)(function*(oe){let te=0;var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1)te+=pt.value}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}return te});return function(te){return ge.apply(this,arguments)}}(),Xn=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=0;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1)ne+=te(Tt.value)}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),to=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=0;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;ne+=(yield te($t))}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),wo=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=oe>0?oe:0;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;if(0===ve--)break;yield yn}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Ds=(ge,oe)=>1===oe.length?kr(ge,oe):Qr(ge,oe),kr=(ge,oe)=>{function ne(){return(ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1){const $t=Tt.value;if(!oe($t))break;yield $t}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Qr=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;if(!oe(yn,ve++))break;yield yn}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},sa=(ge,oe)=>1===oe.length?Zr(ge,oe):cc(ge,oe),Zr=(ge,oe)=>{function ne(){return(ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1){const $t=Tt.value;if(!(yield ft(oe($t))))break;yield $t}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},cc=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;if(!(yield ft(oe(yn,ve++))))break;yield yn}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Cp=function(){var ge=(0,Rt.A)(function*(oe){const te=[];var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1)te.push(pt.value)}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}return te});return function(te){return ge.apply(this,arguments)}}(),yp=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=new Map;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;{const yn=te($t),hi=ne.get(yn);void 0===hi?ne.set(yn,[$t]):hi.push($t)}}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),Dm=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=new Map;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;{const yn=yield te($t),hi=ne.get(yn);void 0===hi?ne.set(yn,[$t]):hi.push($t)}}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),Tm=function(){var ge=(0,Rt.A)(function*(oe,te){const ne={};var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;ne[te($t)]=$t}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),ju=function(){var ge=(0,Rt.A)(function*(oe,te){const ne={};var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;ne[yield te($t)]=$t}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),_f=function(){var ge=(0,Rt.A)(function*(oe){const te=new Set;var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(oe);ne=!(pt=yield Je.next()).done;ne=!1)te.add(pt.value)}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield Je.return())}finally{if(ve)throw Ge}}return te});return function(te){return ge.apply(this,arguments)}}(),gg=(ge,oe,te)=>te?mg(ge,oe,te):fg(ge,oe),fg=(ge,oe)=>{function ne(){return(ne=nn(function*(){const ve=new Set;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const Io=$t.value;!1===ve.has(Io)&&(yield Io,ve.add(Io))}}catch(Io){Je=!0,pt=Io}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}var wi,yn=!1,hi=!1;try{for(var fo,Ui=pi(oe);yn=!(fo=yield ft(Ui.next())).done;yn=!1){const Io=fo.value;!1===ve.has(Io)&&(yield Io,ve.add(Io))}}catch(Io){hi=!0,wi=Io}finally{try{yn&&null!=Ui.return&&(yield ft(Ui.return()))}finally{if(hi)throw wi}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},mg=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=[];for(const hi of[ge,oe]){var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(hi);Je=!(yn=yield ft($t.next())).done;Je=!1){const wi=yn.value;{let Ui=!1;for(const fo of Ge)if(!0===te(wi,fo)){Ui=!0;break}!1===Ui&&(yield wi,Ge.push(wi))}}}catch(wi){pt=!0,Tt=wi}finally{try{Je&&null!=$t.return&&(yield ft($t.return()))}finally{if(pt)throw Tt}}}})).apply(this,arguments)}return new yt(function ne(){return ve.apply(this,arguments)})},Gu=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=[];for(const hi of[ge,oe]){var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(hi);Je=!(yn=yield ft($t.next())).done;Je=!1){const wi=yn.value;{let Ui=!1;for(const fo of Ge)if(!0===(yield ft(te(wi,fo)))){Ui=!0;break}!1===Ui&&(yield wi,Ge.push(wi))}}}catch(wi){pt=!0,Tt=wi}finally{try{Je&&null!=$t.return&&(yield ft($t.return()))}finally{if(pt)throw Tt}}}})).apply(this,arguments)}return new yt(function ne(){return ve.apply(this,arguments)})},Al=(ge,oe)=>1===oe.length?Wu(ge,oe):su(ge,oe),Wu=(ge,oe)=>{function ne(){return(ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1){const $t=Tt.value;!0===oe($t)&&(yield $t)}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},su=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;!0===oe(yn,ve++)&&(yield yn)}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},_g=(ge,oe)=>1===oe.length?bp(ge,oe):xp(ge,oe),bp=(ge,oe)=>{function ne(){return(ne=nn(function*(){var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(ge);ve=!(Tt=yield ft(pt.next())).done;ve=!1){const $t=Tt.value;!0===(yield ft(oe($t)))&&(yield $t)}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield ft(pt.return()))}finally{if(Ge)throw Je}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},xp=(ge,oe)=>{function ne(){return(ne=nn(function*(){let ve=0;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ge);Ge=!($t=yield ft(Tt.next())).done;Ge=!1){const yn=$t.value;!0===(yield ft(oe(yn,ve++)))&&(yield yn)}}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield ft(Tt.return()))}finally{if(Je)throw pt}}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},ru=(ge,oe,te)=>te?Ku(ge,oe,te):zu(ge,oe),zu=(ge,oe)=>{function ne(){return(ne=nn(function*(){const ve=ge[Symbol.asyncIterator](),Ge=oe[Symbol.asyncIterator]();for(;;){const[Je,pt]=yield ft(Promise.all([ve.next(),Ge.next()]));if(Je.done||pt.done)break;yield[Je.value,pt.value]}})).apply(this,arguments)}return new yt(function te(){return ne.apply(this,arguments)})},Ku=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=ge[Symbol.asyncIterator](),Je=oe[Symbol.asyncIterator]();for(;;){const[pt,Tt]=yield ft(Promise.all([Ge.next(),Je.next()]));if(pt.done||Tt.done)break;yield te(pt.value,Tt.value)}})).apply(this,arguments)}return new yt(function ne(){return ve.apply(this,arguments)})},au=(ge,oe,te)=>{function ve(){return(ve=nn(function*(){const Ge=ge[Symbol.asyncIterator](),Je=oe[Symbol.asyncIterator]();for(;;){const pt=yield ft(Promise.all([Ge.next(),Je.next()])),Tt=pt[0],$t=pt[1];if(Tt.done||$t.done)break;yield te(Tt.value,$t.value)}})).apply(this,arguments)}return new yt(function ne(){return ve.apply(this,arguments)})},Th=(ge,oe,te,ne)=>{if(ne){if(!te)throw new ReferenceError("TAccumulate function is undefined");return lu(ge,oe,te,ne)}return te?Xu(ge,oe,te):jl(ge,oe)},jl=function(){var ge=(0,Rt.A)(function*(oe,te){let ne;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;ne=ne?te(ne,$t):$t}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}if(void 0===ne)throw new Qe(lt.NoElements);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),Xu=function(){var ge=(0,Rt.A)(function*(oe,te,ne){let ve=te;var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(oe);Ge=!($t=yield Tt.next()).done;Ge=!1)ve=ne(ve,$t.value)}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield Tt.return())}finally{if(Je)throw pt}}return ve});return function(te,ne,ve){return ge.apply(this,arguments)}}(),lu=function(){var ge=(0,Rt.A)(function*(oe,te,ne,ve){let Ge=te;var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(oe);Je=!(yn=yield $t.next()).done;Je=!1)Ge=ne(Ge,yn.value)}catch(hi){pt=!0,Tt=hi}finally{try{Je&&null!=$t.return&&(yield $t.return())}finally{if(pt)throw Tt}}return ve(Ge)});return function(te,ne,ve,Ge){return ge.apply(this,arguments)}}(),Ta=(ge,oe)=>{const te=ge.dataFunc;switch(te.type){case 0:return{generator:()=>te.generator().then(ve=>{const Ge=new Array(ve.length);for(let Je=0;Je<ve.length;Je++)Ge[Je]=oe(ve[Je]);return Ge}),type:0};case 1:return{generator:()=>{const ve=te.generator(),Ge=new Array(ve.length);for(let Je=0;Je<ve.length;Je++)Ge[Je]=ve[Je].then(oe);return Ge},type:1};case 2:return{generator:function(){var ve=(0,Rt.A)(function*(){const Ge=yield te.generator(),Je=new Array(Ge.length);for(let pt=0;pt<Ge.length;pt++)Je[pt]=Ge[pt].then(oe);return Je});return function(){return ve.apply(this,arguments)}}(),type:2}}},cu=(ge,oe)=>{const te=Ta(ge,ne=>{if(!oe(ne))throw new Error(String(!1));return!0});switch(te.type){case 0:return te.generator().then(()=>!0,()=>!1);case 1:return Promise.all(te.generator()).then(()=>!0,()=>!1);case 2:return te.generator().then(Promise.all.bind(Promise)).then(()=>!0,()=>!1)}},Pa=(ge,oe)=>{const te=ge.dataFunc;switch(te.type){case 0:return{generator:function(){var ve=(0,Rt.A)(function*(){const Ge=yield te.generator(),Je=new Array(Ge.length);for(let pt=0;pt<Ge.length;pt++)Je[pt]=oe(Ge[pt]);return Je});return function(){return ve.apply(this,arguments)}}(),type:2};case 1:return{generator:()=>te.generator().map(function(){var Ge=(0,Rt.A)(function*(Je){const pt=yield Je;return yield oe(pt)});return function(Je){return Ge.apply(this,arguments)}}()),type:1};case 2:return{generator:function(){var ve=(0,Rt.A)(function*(){return(yield te.generator()).map(Je=>Je.then(oe))});return function(){return ve.apply(this,arguments)}}(),type:2}}},Yu=(ge,oe)=>{const te=Pa(ge,function(){var ne=(0,Rt.A)(function*(ve){if(!1===(yield oe(ve)))throw new Error(String(!1));return!0});return function(ve){return ne.apply(this,arguments)}}());switch(te.type){case 1:return Promise.all(te.generator()).then(()=>!0,()=>!1);case 2:return te.generator().then(Promise.all.bind(Promise)).then(()=>!0,()=>!1)}},Ah=(ge,oe)=>oe?Qu(ge,oe):vg(ge),vg=function(){var ge=(0,Rt.A)(function*(oe){const te=oe.dataFunc;let ne;switch(te.type){case 1:return ne=te.generator(),0!==ne.length;case 0:case 2:return ne=yield te.generator(),0!==ne.length}});return function(te){return ge.apply(this,arguments)}}(),Qu=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=Ta(oe,te);let ve;switch(ne.type){case 0:return ve=yield ne.generator(),ve.includes(!0);case 1:return ve=yield Promise.all(ne.generator()),ve.includes(!0);case 2:return ve=yield Promise.all(yield ne.generator()),ve.includes(!0)}});return function(te,ne){return ge.apply(this,arguments)}}(),Ih=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=Pa(oe,te);let ve;switch(ne.type){case 1:return ve=ne.generator(),0!==ve.length&&new Promise((Je,pt)=>{let Tt=0;for(const $t of ve)$t.then(yn=>{Tt++,yn?Je(!0):Tt===ve.length&&Je(!1)},pt)});case 2:return ve=yield ne.generator(),0!==Promise.length&&(yield Promise.all(ve)).includes(!0)}});return function(te,ne){return ge.apply(this,arguments)}}(),kc=ge=>{function te(){return(te=nn(function*(){var Ge,ne=!1,ve=!1;try{for(var pt,Je=pi(ge);ne=!(pt=yield ft(Je.next())).done;ne=!1)yield pt.value}catch(Tt){ve=!0,Ge=Tt}finally{try{ne&&null!=Je.return&&(yield ft(Je.return()))}finally{if(ve)throw Ge}}})).apply(this,arguments)}return To(function oe(){return te.apply(this,arguments)})},Aa=function(){var ge=(0,Rt.A)(function*(oe){switch(oe.type){case 0:return yield oe.generator();case 1:return yield Promise.all(oe.generator());case 2:const te=yield oe.generator();return yield Promise.all(te)}});return function(te){return ge.apply(this,arguments)}}(),Ep=function(){var ge=(0,Rt.A)(function*(oe,te){let ne;ne=te?Ta(oe,te):oe.dataFunc;const ve=yield Aa(ne);if(0===ve.length)throw new Qe(lt.NoElements);let Ge=0;for(const Je of ve)Ge+=Je;return Ge/ve.length});return function(te,ne){return ge.apply(this,arguments)}}(),Od=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=Pa(oe,te),ve=yield Aa(ne);if(0===ve.length)throw new Qe(lt.NoElements);let Ge=0;for(const Je of ve)Ge+=Je;return Ge/ve.length});return function(te,ne){return ge.apply(this,arguments)}}(),Gl=(ge,oe)=>{if(oe<1)throw new Ne("index");let te;switch(ge.dataFunc.type){case 1:const ne=ge.dataFunc.generator;te={type:1,generator:()=>{const Je=[];let pt=[];for(const Tt of ne())pt.push(Tt),pt.length===oe&&(Je.push(Promise.all(pt)),pt=[]);return pt.length&&Je.push(Promise.all(pt)),Je}};break;case 2:const ve=ge.dataFunc.generator;te={type:2,generator:(Je=(0,Rt.A)(function*(){const pt=[];let Tt=[];for(const $t of yield ve())Tt.push($t),Tt.length===oe&&(pt.push(Promise.all(Tt)),Tt=[]);return Tt.length&&pt.push(Promise.all(Tt)),pt}),function(){return Je.apply(this,arguments)})};break;case 0:const Ge=ge.dataFunc.generator;te={type:0,generator:function(){var Je=(0,Rt.A)(function*(){const pt=[];let Tt=[];for(const $t of yield Ge())Tt.push($t),Tt.length===oe&&(pt.push(Tt),Tt=[]);return Tt.length&&pt.push(Tt),pt});return function(){return Je.apply(this,arguments)}}()}}var Je;return new Mn(te)},Op=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){const[ve,Ge]=yield Promise.all([ge.toArray(),oe.toArray()]);return[...ve,...Ge]});return function(){return ne.apply(this,arguments)}}(),type:0}),Mh=function(){var ge=(0,Rt.A)(function*(oe,te,ne=Ct){let ve;switch(ve=Ta(oe,ne?Ge=>ne(te,Ge):Ge=>Ge===te),ve.type){case 0:return(yield ve.generator()).some(Je=>Je);case 1:return(yield Promise.all(ve.generator())).some(Je=>Je);case 2:return(yield Promise.all(yield ve.generator())).some(Je=>Je)}});return function(te,ne){return ge.apply(this,arguments)}}(),Cg=function(){var ge=(0,Rt.A)(function*(oe,te,ne){const ve=Pa(oe,Ge=>ne(te,Ge));switch(ve.type){case 1:return(yield Promise.all(ve.generator())).some(Je=>Je);case 2:return(yield Promise.all(yield ve.generator())).some(Je=>Je)}});return function(te,ne,ve){return ge.apply(this,arguments)}}(),Am=(ge,oe)=>oe?wp(ge,oe):Zu(ge),Zu=function(){var ge=(0,Rt.A)(function*(oe){const te=oe.dataFunc;switch(te.type){case 0:case 2:return(yield oe.toArray()).length;case 1:return te.generator().length}});return function(te){return ge.apply(this,arguments)}}(),wp=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=yield oe.toArray();let ve=0;for(let Ge=0;Ge<ne.length;Ge++)!0===te(ne[Ge])&&ve++;return ve});return function(te,ne){return ge.apply(this,arguments)}}(),Sp=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=Pa(oe,te);let ve;switch(ne.type){case 1:ve=Promise.all(ne.generator());break;case 2:ve=Promise.all(yield ne.generator())}let Ge=0;for(const Je of yield ve)Je&&Ge++;return Ge});return function(te,ne){return ge.apply(this,arguments)}}(),du=(ge,oe)=>{const te=ge.dataFunc,ne=oe instanceof Promise;let ve;switch(te.type){case 0:ve={generator:()=>te.generator().then(Je=>Je.length?Je:ne?oe.then(pt=>[pt]):[oe]),type:te.type};break;case 1:ve={generator:()=>{const Je=te.generator();return Je.length?Je:ne?[oe]:[Promise.resolve(oe)]},type:te.type};break;case 2:ve={generator:function(){var Je=(0,Rt.A)(function*(){const pt=yield te.generator();return pt.length?pt:ne?[oe]:[Promise.resolve(oe)]});return function(){return Je.apply(this,arguments)}}(),type:te.type}}return new Mn(ve)},Qc=(ge,oe=Ct)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){const ve=[];for(const Ge of yield ge.toArray())ve.find(pt=>oe(pt,Ge))||ve.push(Ge);return ve});return function(){return ne.apply(this,arguments)}}(),type:0}),Ph=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){const ve=[];e:for(const Ge of yield ge.toArray()){for(const Je of ve)if(yield oe(Je,Ge))continue e;ve.push(Ge)}return ve});return function(){return ne.apply(this,arguments)}}(),type:0}),Ka=(ge,oe)=>new Mn(Ta(ge,te=>(oe(te),te))),Rh=(ge,oe)=>{const te=Pa(ge,function(){var ne=(0,Rt.A)(function*(ve){return yield oe(ve),ve});return function(ve){return ne.apply(this,arguments)}}());return new Mn(te)},Ju=function(){var ge=(0,Rt.A)(function*(oe,te){if(te<0)throw new Ne("index");const ne=oe.dataFunc;switch(ne.type){case 0:{const ve=yield ne.generator();if(te>=ve.length)throw new Ne("index");return ve[te]}case 1:{const ve=ne.generator();if(te>=ve.length)throw new Ne("index");return yield ve[te]}case 2:{const ve=yield ne.generator();if(te>=ve.length)throw new Ne("index");return yield ve[te]}}});return function(te,ne){return ge.apply(this,arguments)}}(),Dp=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=oe.dataFunc;switch(ne.type){case 0:{const ve=yield ne.generator();return te>=ve.length?null:ve[te]}case 1:{const ve=ne.generator();return te>=ve.length?null:yield ve[te]}case 2:{const ve=yield ne.generator();return te>=ve.length?null:yield ve[te]}}});return function(te,ne){return ge.apply(this,arguments)}}(),tl=(ge,oe,te=Ct)=>new Mn({generator:function(){var ve=(0,Rt.A)(function*(){const[Ge,Je]=yield Promise.all([ge.toArray(),oe.toArray()]),pt=[];for(const Tt of Ge){let $t=!1;for(let yn=0;yn<Je.length;yn++)if(!0===te(Tt,Je[yn])){$t=!0;break}!1===$t&&pt.push(Tt)}return pt});return function(){return ve.apply(this,arguments)}}(),type:0}),Tp=(ge,oe,te)=>new Mn({generator:function(){var ve=(0,Rt.A)(function*(){const[Ge,Je]=yield Promise.all([ge.toArray(),oe.toArray()]),pt=[];for(const Tt of Ge){let $t=!1;for(let yn=0;yn<Je.length;yn++){const hi=Je[yn];if(!0===(yield te(Tt,hi))){$t=!0;break}}!1===$t&&pt.push(Tt)}return pt});return function(){return ve.apply(this,arguments)}}(),type:0}),nl=ge=>Aa(ge.dataFunc),kh=(ge,oe)=>oe?qu(ge,oe):Ap(ge),Ap=function(){var ge=(0,Rt.A)(function*(oe){const te=oe.dataFunc;switch(te.type){case 0:{const ne=yield te.generator();if(0===ne.length)throw new Qe(lt.NoElements);return ne[0]}case 1:{const ne=te.generator();if(0===ne.length)throw new Qe(lt.NoElements);return yield ne[0]}case 2:{const ne=yield te.generator();if(0===ne.length)throw new Qe(lt.NoElements);return yield ne[0]}}});return function(te){return ge.apply(this,arguments)}}(),qu=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=yield nl(oe);for(const ve of ne)if(!0===te(ve))return ve;throw new Qe(lt.NoMatch)});return function(te,ne){return ge.apply(this,arguments)}}(),Bh=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=yield nl(oe);for(const ve of ne)if(!0===(yield te(ve)))return ve;throw new Qe(lt.NoMatch)});return function(te,ne){return ge.apply(this,arguments)}}(),Fh=(ge,oe)=>oe?yg(ge,oe):Zc(ge),Zc=function(){var ge=(0,Rt.A)(function*(oe){const te=oe.dataFunc;switch(te.type){case 0:{const ne=yield te.generator();return 0===ne.length?null:ne[0]}case 1:{const ne=te.generator();return 0===ne.length?null:yield ne[0]}case 2:{const ne=yield te.generator();return 0===ne.length?null:yield ne[0]}}});return function(te){return ge.apply(this,arguments)}}(),yg=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=yield nl(oe);for(const ve of ne)if(!0===te(ve))return ve;return null});return function(te,ne){return ge.apply(this,arguments)}}(),bg=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=yield nl(oe);for(const ve of ne)if(!0===(yield te(ve)))return ve;return null});return function(te,ne){return ge.apply(this,arguments)}}(),br=(ge,oe,te)=>te?Ip(ge,oe,te):eh(ge,oe),eh=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){const ve={};for(const Je of yield ge.toArray()){const pt=oe(Je),Tt=ve[pt];Tt?Tt.push(Je):ve[pt]=new ai(pt,Je)}const Ge=new Array;for(const Je in ve)Ge.push(ve[Je]);return Ge});return function(){return ne.apply(this,arguments)}}(),type:0}),Ip=(ge,oe,te)=>new Mn({generator:function(){var ve=(0,Rt.A)(function*(){const Ge=new Array;for(const pt of yield ge.toArray()){const Tt=oe(pt);let $t=!1;for(let yn=0;yn<Ge.length;yn++){const hi=Ge[yn];if(te(hi.key,Tt)){hi.push(pt),$t=!0;break}}!1===$t&&Ge.push(new ai(Tt,pt))}const Je=new Array;for(const pt of Ge)Je.push(pt);return Je});return function(){return ve.apply(this,arguments)}}(),type:0}),Nh=(ge,oe,te)=>te?wd(ge,oe,te):Bc(ge,oe),wd=(ge,oe,te)=>new Mn({generator:function(){var ve=(0,Rt.A)(function*(){const Ge=Pa(ge,function(){var $t=(0,Rt.A)(function*(yn){return[yield oe(yn),yn]});return function(yn){return $t.apply(this,arguments)}}());let Je;switch(Ge.type){case 1:Je=yield Promise.all(Ge.generator());break;case 2:Je=yield Promise.all(yield Ge.generator())}const pt=new Array;for(const[$t,yn]of Je){let hi=!1;for(let wi=0;wi<pt.length;wi++){const Ui=pt[wi];if(!0===(yield te(Ui.key,$t))){Ui.push(yn),hi=!0;break}}!1===hi&&pt.push(new ai($t,yn))}const Tt=new Array;for(const $t of pt)Tt.push($t);return Tt});return function(){return ve.apply(this,arguments)}}(),type:0}),Bc=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){const ve=Pa(ge,function(){var Tt=(0,Rt.A)(function*($t){return[yield oe($t),$t]});return function($t){return Tt.apply(this,arguments)}}());let Ge;switch(ve.type){case 1:Ge=yield Promise.all(ve.generator());break;case 2:Ge=yield Promise.all(yield ve.generator())}const Je={};for(const[Tt,$t]of Ge){const yn=Je[Tt];yn?yn.push($t):Je[Tt]=new ai(Tt,$t)}const pt=new Array;for(const Tt in Je)pt.push(Je[Tt]);return pt});return function(){return ne.apply(this,arguments)}}(),type:0}),Sd=(ge,oe,te,ne)=>ne?uu(ge,oe,te,ne):Fc(ge,oe,te),uu=(ge,oe,te,ne)=>new Mn({generator:function(){var Ge=(0,Rt.A)(function*(){const Je=new Array;var $t,pt=!1,Tt=!1;try{for(var hi,yn=pi(ge);pt=!(hi=yield yn.next()).done;pt=!1){const Ui=hi.value;{const fo=oe(Ui);let Io=!1;for(let ts=0;ts<Je.length;ts++){const Ms=Je[ts];if(ne(Ms.key,fo)){Ms.push(te(Ui)),Io=!0;break}}if(!1===Io){const ts=te(Ui);Je.push(new ai(fo,ts))}}}}catch(Ui){Tt=!0,$t=Ui}finally{try{pt&&null!=yn.return&&(yield yn.return())}finally{if(Tt)throw $t}}const wi=new Array;for(const Ui of Je)wi.push(Ui);return wi});return function(){return Ge.apply(this,arguments)}}(),type:0}),Fc=(ge,oe,te)=>new Mn({generator:function(){var ve=(0,Rt.A)(function*(){const Ge={};for(const pt of yield ge.toArray()){const Tt=oe(pt),$t=Ge[Tt],yn=te(pt);$t?$t.push(yn):Ge[Tt]=new ai(Tt,yn)}const Je=new Array;for(const pt in Ge)Je.push(Ge[pt]);return Je});return function(){return ve.apply(this,arguments)}}(),type:0}),ga=(ge,oe,te,ne,ve,Ge)=>{const Je=Ge?Mp(ge,oe,te,ne,ve,Ge):Nc(ge,oe,te,ne,ve);return new Mn({generator:Je,type:0})},Mp=(ge,oe,te,ne,ve,Ge)=>(0,Rt.A)(function*(){const Je=[];var $t,pt=!1,Tt=!1;try{for(var hi,yn=pi(oe);pt=!(hi=yield yn.next()).done;pt=!1){const Ui=hi.value;{const fo=ne(Ui),Io=Je.find(ts=>Ge(ts.key,fo));Io?Io.values.push(Ui):Je.push({key:fo,values:[Ui]})}}}catch(Ui){Tt=!0,$t=Ui}finally{try{pt&&null!=yn.return&&(yield yn.return())}finally{if(Tt)throw $t}}return(yield ge.toArray()).map(Ui=>{var fo;const Io=te(Ui),ts=null!==(fo=Je.find(Ms=>Ge(Ms.key,Io)))&&void 0!==fo?fo:{key:Io,values:[]};return ve(Ui,ts.values)})}),Nc=(ge,oe,te,ne,ve)=>(0,Rt.A)(function*(){const Ge=new Map;var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(oe);Je=!(yn=yield $t.next()).done;Je=!1){const wi=yn.value;{const Ui=ne(wi),fo=Ge.get(Ui);fo?fo.push(wi):Ge.set(Ui,[wi])}}}catch(wi){pt=!0,Tt=wi}finally{try{Je&&null!=$t.return&&(yield $t.return())}finally{if(pt)throw Tt}}return(yield ge.toArray()).map(wi=>{var Ui;const fo=te(wi),Io=null!==(Ui=Ge.get(fo))&&void 0!==Ui?Ui:[];return ve(wi,Io)})}),hu=(ge,oe,te,ne,ve,Ge)=>{const Je=Ge?Jc(ge,oe,te,ne,ve,Ge):qc(ge,oe,te,ne,ve);return new Mn({generator:Je,type:0})},Jc=(ge,oe,te,ne,ve,Ge)=>(0,Rt.A)(function*(){const Je=[];var $t,pt=!1,Tt=!1;try{for(var hi,yn=pi(oe);pt=!(hi=yield yn.next()).done;pt=!1){const fo=hi.value;{const Io=yield ne(fo),ts=Je.find(Ms=>Ge(Ms.key,Io));ts?ts.values.push(fo):Je.push({key:Io,values:[fo]})}}}catch(fo){Tt=!0,$t=fo}finally{try{pt&&null!=yn.return&&(yield yn.return())}finally{if(Tt)throw $t}}const Ui=(yield ge.toArray()).map(function(){var fo=(0,Rt.A)(function*(Io){var ts;const Ms=yield te(Io),Ws=null!==(ts=Je.find(sr=>Ge(sr.key,Ms)))&&void 0!==ts?ts:{key:Ms,values:[]};return ve(Io,Ws.values)});return function(Io){return fo.apply(this,arguments)}}());return yield Promise.all(Ui)}),qc=(ge,oe,te,ne,ve)=>(0,Rt.A)(function*(){const Ge=new Map;var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(oe);Je=!(yn=yield $t.next()).done;Je=!1){const Ui=yn.value;{const fo=yield ne(Ui),Io=Ge.get(fo);Io?Io.push(Ui):Ge.set(fo,[Ui])}}}catch(Ui){pt=!0,Tt=Ui}finally{try{Je&&null!=$t.return&&(yield $t.return())}finally{if(pt)throw Tt}}const wi=(yield ge.toArray()).map(function(){var Ui=(0,Rt.A)(function*(fo){var Io;const ts=yield te(fo),Ms=null!==(Io=Ge.get(ts))&&void 0!==Io?Io:[];return ve(fo,Ms)});return function(fo){return Ui.apply(this,arguments)}}());return yield Promise.all(wi)}),Dd=(ge,oe,te=Ct)=>new Mn({generator:function(){var ve=(0,Rt.A)(function*(){const Ge=yield ge.distinct(te).toArray();if(0===Ge.length)return[];const Je=yield oe.toArray(),pt=new Array;for(let Tt=0;Tt<Ge.length;Tt++){const $t=Ge[Tt];for(let yn=0;yn<Je.length;yn++)if(!0===te($t,Je[yn])){pt.push($t);break}}return pt});return function(){return ve.apply(this,arguments)}}(),type:0}),Il=(ge,oe,te)=>new Mn({generator:function(){var ve=(0,Rt.A)(function*(){const Ge=yield ge.distinctAsync(te).toArray();if(0===Ge.length)return[];const Je=yield oe.toArray(),pt=new Array;for(let Tt=0;Tt<Ge.length;Tt++){const $t=Ge[Tt];for(let yn=0;yn<Je.length;yn++){const hi=Je[yn];if(!0===(yield te($t,hi))){pt.push($t);break}}}return pt});return function(){return ve.apply(this,arguments)}}(),type:0}),ul=(ge,oe,te,ne,ve,Ge=Ct)=>new Mn({generator:function(){var pt=(0,Rt.A)(function*(){const[Tt,$t]=yield Promise.all([oe.toArray(),ge.toArray()]),yn=new Array;for(const hi of $t){const wi=te(hi);for(const Ui of Tt){const fo=ne(Ui);!0===Ge(wi,fo)&&yn.push(ve(hi,Ui))}}return yn});return function(){return pt.apply(this,arguments)}}(),type:0}),th=(ge,oe)=>oe?ih(ge,oe):nh(ge),nh=function(){var ge=(0,Rt.A)(function*(oe){const te=oe.dataFunc;switch(te.type){case 0:{const ne=yield te.generator();if(0===ne.length)throw new Qe(lt.NoElements);return ne[ne.length-1]}case 1:{const ne=te.generator();if(0===ne.length)throw new Qe(lt.NoElements);return yield ne[ne.length-1]}case 2:{const ne=yield te.generator();if(0===ne.length)throw new Qe(lt.NoElements);return yield ne[ne.length-1]}}});return function(te){return ge.apply(this,arguments)}}(),ih=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=oe.dataFunc;switch(ne.type){case 0:{const ve=yield ne.generator();for(let Ge=ve.length-1;Ge>=0;Ge--){const Je=ve[Ge];if(te(Je))return Je}break}case 1:{const ve=ne.generator();for(let Ge=ve.length-1;Ge>=0;Ge--){const Je=yield ve[Ge];if(te(Je))return Je}break}case 2:{const ve=yield ne.generator();for(let Ge=ve.length-1;Ge>=0;Ge--){const Je=yield ve[Ge];if(te(Je))return Je}break}}throw new Qe(lt.NoMatch)});return function(te,ne){return ge.apply(this,arguments)}}(),xg=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=oe.dataFunc;switch(ne.type){case 0:{const ve=yield ne.generator();for(let Ge=ve.length-1;Ge>=0;Ge--){const Je=ve[Ge];if(!0===(yield te(Je)))return Je}break}case 1:{const ve=ne.generator();for(let Ge=ve.length-1;Ge>=0;Ge--){const Je=yield ve[Ge];if(!0===(yield te(Je)))return Je}break}case 2:{const ve=yield ne.generator();for(let Ge=ve.length-1;Ge>=0;Ge--){const Je=yield ve[Ge];if(!0===(yield te(Je)))return Je}break}}throw new Qe(lt.NoMatch)});return function(te,ne){return ge.apply(this,arguments)}}(),Eg=(ge,oe)=>oe?pu(ge,oe):Lh(ge),Lh=function(){var ge=(0,Rt.A)(function*(oe){const te=oe.dataFunc;switch(te.type){case 0:{const ne=yield te.generator();return 0===ne.length?null:ne[ne.length-1]}case 1:{const ne=te.generator();return 0===ne.length?null:yield ne[ne.length-1]}case 2:{const ne=yield te.generator();return 0===ne.length?null:yield ne[ne.length-1]}}});return function(te){return ge.apply(this,arguments)}}(),pu=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=oe.dataFunc;switch(ne.type){case 0:{const ve=yield ne.generator();for(let Ge=ve.length-1;Ge>=0;Ge--){const Je=ve[Ge];if(te(Je))return Je}break}case 1:{const ve=ne.generator();for(let Ge=ve.length-1;Ge>=0;Ge--){const Je=yield ve[Ge];if(te(Je))return Je}break}case 2:{const ve=yield ne.generator();for(let Ge=ve.length-1;Ge>=0;Ge--){const Je=yield ve[Ge];if(te(Je))return Je}break}}return null});return function(te,ne){return ge.apply(this,arguments)}}(),Td=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=oe.dataFunc;switch(ne.type){case 0:{const ve=yield ne.generator();for(let Ge=ve.length-1;Ge>=0;Ge--){const Je=ve[Ge];if(!0===(yield te(Je)))return Je}break}case 1:{const ve=ne.generator();for(let Ge=ve.length-1;Ge>=0;Ge--){const Je=yield ve[Ge];if(!0===(yield te(Je)))return Je}break}case 2:{const ve=yield ne.generator();for(let Ge=ve.length-1;Ge>=0;Ge--){const Je=yield ve[Ge];if(!0===(yield te(Je)))return Je}break}}return null});return function(te,ne){return ge.apply(this,arguments)}}(),Vh=function(){var ge=(0,Rt.A)(function*(oe,te){let ne;ne=te?Ta(oe,te):oe.dataFunc;const ve=yield Aa(ne);if(0===ve.length)throw new Qe(lt.NoElements);return Math.max.apply(null,ve)});return function(te,ne){return ge.apply(this,arguments)}}(),Wl=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=Pa(oe,te),ve=yield Aa(ne);if(0===ve.length)throw new Qe(lt.NoElements);return Math.max.apply(null,ve)});return function(te,ne){return ge.apply(this,arguments)}}(),Hh=function(){var ge=(0,Rt.A)(function*(oe,te){let ne;ne=te?Ta(oe,te):oe.dataFunc;const ve=yield Aa(ne);if(0===ve.length)throw new Qe(lt.NoElements);return Math.min.apply(null,ve)});return function(te,ne){return ge.apply(this,arguments)}}(),Ad=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=Pa(oe,te),ve=yield Aa(ne);if(0===ve.length)throw new Qe(lt.NoElements);return Math.min.apply(null,ve)});return function(te,ne){return ge.apply(this,arguments)}}(),zl=(ge,oe)=>{const te="string"==typeof oe?ve=>[typeof ve===oe,ve]:ve=>[ve instanceof oe,ve];return new Mn({generator:function(){var ve=(0,Rt.A)(function*(){const Ge=Ta(ge,te),Je=yield Aa(Ge),pt=[];for(const[Tt,$t]of Je)Tt&&pt.push($t);return pt});return function(){return ve.apply(this,arguments)}}(),type:0})},Og=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=new Map;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;{const yn=yield te($t),hi=ne.get(yn);hi?hi.push($t):ne.set(yn,[$t])}}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}();function $h(){return($h=nn(function*(ge,oe,te,ne){const ve=yield ft(Og(ge,oe)),Ge=[...ve.keys()].sort(ne||void 0);if(te)for(let Je=0;Je<Ge.length;Je++)yield ve.get(Ge[Je]);else for(let Je=Ge.length-1;Je>=0;Je--)yield ve.get(Ge[Je])})).apply(this,arguments)}const Rp=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=new Map;for(const ve of oe){const Ge=yield te(ve),Je=ne.get(Ge);Je?Je.push(ve):ne.set(Ge,[ve])}return ne});return function(te,ne){return ge.apply(this,arguments)}}();function oh(ge,oe,te,ne){return sh.apply(this,arguments)}function sh(){return(sh=nn(function*(ge,oe,te,ne){const ve=yield ft(Rp(ge,oe)),Ge=[...ve.keys()].sort(ne||void 0);if(te)for(let Je=0;Je<Ge.length;Je++)yield ve.get(Ge[Je]);else for(let Je=Ge.length-1;Je>=0;Je--)yield ve.get(Ge[Je])})).apply(this,arguments)}const Cf=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=new Map;var Je,ve=!1,Ge=!1;try{for(var Tt,pt=pi(oe);ve=!(Tt=yield pt.next()).done;ve=!1){const $t=Tt.value;{const yn=te($t),hi=ne.get(yn);hi?hi.push($t):ne.set(yn,[$t])}}}catch($t){Ge=!0,Je=$t}finally{try{ve&&null!=pt.return&&(yield pt.return())}finally{if(Ge)throw Je}}return ne});return function(te,ne){return ge.apply(this,arguments)}}();function dc(){return(dc=nn(function*(ge,oe,te,ne){const ve=yield ft(Cf(ge,oe)),Ge=[...ve.keys()].sort(ne||void 0);if(te)for(let Je=0;Je<Ge.length;Je++)yield ve.get(Ge[Je]);else for(let Je=Ge.length-1;Je>=0;Je--)yield ve.get(Ge[Je])})).apply(this,arguments)}function gu(ge,oe,te,ne){return Lc.apply(this,arguments)}function Lc(){return(Lc=nn(function*(ge,oe,te,ne){const ve=((ge,oe)=>{const te=new Map;for(const ne of ge){const ve=oe(ne),Ge=te.get(ve);Ge?Ge.push(ne):te.set(ve,[ne])}return te})(ge,oe),Ge=[...ve.keys()].sort(ne||void 0);if(te)for(let Je=0;Je<Ge.length;Je++)yield ve.get(Ge[Je]);else for(let Je=Ge.length-1;Je>=0;Je--)yield ve.get(Ge[Je])})).apply(this,arguments)}class Va extends Mn{constructor(oe){var te;super({generator:(te=(0,Rt.A)(function*(){const ne=oe(),ve=[];var pt,Ge=!1,Je=!1;try{for(var $t,Tt=pi(ne);Ge=!($t=yield Tt.next()).done;Ge=!1)ve.push(...$t.value)}catch(yn){Je=!0,pt=yn}finally{try{Ge&&null!=Tt.return&&(yield Tt.return())}finally{if(Je)throw pt}}return ve}),function(){return te.apply(this,arguments)}),type:0}),this.orderedPairs=oe}static generateAsync(oe,te,ne,ve){let Ge;return Ge=oe instanceof Va?function(){var Je=nn(function*(){var $t,pt=!1,Tt=!1;try{for(var hi,yn=pi(oe.orderedPairs());pt=!(hi=yield ft(yn.next())).done;pt=!1){const wi=hi.value;yield*Yt(pi(oh(wi,te,ne,ve)))}}catch(wi){Tt=!0,$t=wi}finally{try{pt&&null!=yn.return&&(yield ft(yn.return()))}finally{if(Tt)throw $t}}});return function(){return Je.apply(this,arguments)}}():()=>function Pp(ge,oe,te,ne){return $h.apply(this,arguments)}(oe,te,ne,ve),new Va(Ge)}static generate(oe,te,ne,ve){let Ge;return Ge=oe instanceof Va?function(){var Je=nn(function*(){var $t,pt=!1,Tt=!1;try{for(var hi,yn=pi(oe.orderedPairs());pt=!(hi=yield ft(yn.next())).done;pt=!1){const wi=hi.value;yield*Yt(pi(gu(wi,te,ne,ve)))}}catch(wi){Tt=!0,$t=wi}finally{try{pt&&null!=yn.return&&(yield ft(yn.return()))}finally{if(Tt)throw $t}}});return function(){return Je.apply(this,arguments)}}():()=>function kp(ge,oe,te,ne){return dc.apply(this,arguments)}(oe,te,ne,ve),new Va(Ge)}thenBy(oe,te){return Va.generate(this,oe,!0,te)}thenByAsync(oe,te){return Va.generateAsync(this,oe,!0,te)}thenByDescending(oe,te){return Va.generate(this,oe,!1,te)}thenByDescendingAsync(oe,te){return Va.generateAsync(this,oe,!1,te)}}const Id=(ge,oe,te)=>Va.generate(ge,oe,!0,te),fu=(ge,oe,te)=>Va.generateAsync(ge,oe,!0,te),Kl=(ge,oe,te)=>Va.generate(ge,oe,!1,te),Zt=(ge,oe,te)=>Va.generateAsync(ge,oe,!1,te),Ze=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=Ta(oe,pt=>[te(pt),pt]),ve=yield Aa(ne),Ge=[],Je=[];for(const[pt,Tt]of ve)pt?Je.push(Tt):Ge.push(Tt);return[Je,Ge]});return function(te,ne){return ge.apply(this,arguments)}}(),Lt=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=Pa(oe,function(){var pt=(0,Rt.A)(function*(Tt){return[yield te(Tt),Tt]});return function(Tt){return pt.apply(this,arguments)}}()),ve=yield Aa(ne),Ge=[],Je=[];for(const[pt,Tt]of ve)pt?Je.push(Tt):Ge.push(Tt);return[Je,Ge]});return function(te,ne){return ge.apply(this,arguments)}}(),Hn=ge=>{const oe=ge.dataFunc;switch(oe.type){case 1:return new Mn({generator:()=>oe.generator().reverse(),type:oe.type});case 2:return new Mn({generator:function(){var ne=(0,Rt.A)(function*(){return(yield oe.generator()).reverse()});return function(){return ne.apply(this,arguments)}}(),type:oe.type});case 0:return new Mn({generator:function(){var ne=(0,Rt.A)(function*(){return(yield oe.generator()).reverse()});return function(){return ne.apply(this,arguments)}}(),type:oe.type})}},Ci=(ge,oe)=>{const te=ge.dataFunc;switch(te.type){case 0:return{generator:()=>te.generator().then(ve=>{const Ge=new Array(ve.length);for(let Je=0;Je<ve.length;Je++)Ge[Je]=oe(ve[Je],Je);return Ge}),type:0};case 1:return{generator:()=>{const ve=te.generator(),Ge=new Array(ve.length);for(let Je=0;Je<ve.length;Je++)Ge[Je]=ve[Je].then(pt=>oe(pt,Je));return Ge},type:1};case 2:return{generator:function(){var ve=(0,Rt.A)(function*(){const Ge=yield te.generator(),Je=new Array(Ge.length);for(let pt=0;pt<Ge.length;pt++)Je[pt]=Ge[pt].then(Tt=>oe(Tt,pt));return Je});return function(){return ve.apply(this,arguments)}}(),type:2}}},Ji=(ge,oe)=>new Mn("function"==typeof oe?1===oe.length?Ta(ge,oe):Ci(ge,oe):Ta(ge,te=>te[oe])),so=(ge,oe)=>{const te=ge.dataFunc;switch(te.type){case 0:return{generator:function(){var ve=(0,Rt.A)(function*(){const Ge=yield te.generator(),Je=new Array(Ge.length);for(let pt=0;pt<Ge.length;pt++)Je[pt]=oe(Ge[pt],pt);return Je});return function(){return ve.apply(this,arguments)}}(),type:2};case 1:return{generator:()=>te.generator().map((ve,Ge)=>ve.then(Je=>oe(Je,Ge))),type:1};case 2:return{generator:function(){var ve=(0,Rt.A)(function*(){return(yield te.generator()).map((Je,pt)=>Je.then(Tt=>oe(Tt,pt)))});return function(){return ve.apply(this,arguments)}}(),type:2}}},Ao=(ge,oe)=>{let te;return te="function"==typeof oe?1===oe.length?Pa(ge,oe):so(ge,oe):Pa(ge,ne=>ne[oe]),new Mn(te)},Xo=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){let ve;ve="function"==typeof oe?1===oe.length?Ta(ge,oe):Ci(ge,oe):Ta(ge,Je=>Je[oe]);const Ge=[];switch(ve.type){case 0:for(const Je of yield ve.generator())for(const pt of Je)Ge.push(pt);break;case 1:for(const Je of ve.generator())for(const pt of yield Je)Ge.push(pt);break;case 2:for(const Je of yield ve.generator())for(const pt of yield Je)Ge.push(pt)}return Ge});return function(){return ne.apply(this,arguments)}}(),type:0}),As=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){let ve;ve=1===oe.length?Pa(ge,oe):so(ge,oe);const Ge=[];switch(ve.type){case 1:for(const Je of ve.generator())for(const pt of yield Je)Ge.push(pt);break;case 2:for(const Je of yield ve.generator())for(const pt of yield Je)Ge.push(pt)}return Ge});return function(){return ne.apply(this,arguments)}}(),type:0}),Zo=function(){var ge=(0,Rt.A)(function*(oe,te,ne=Ct){const ve=yield oe.toArray(),Ge=yield te.toArray();if(ve.length!==Ge.length)return!1;for(let Je=0;Je<ve.length;Je++)if(!1===ne(ve[Je],Ge[Je]))return!1;return!0});return function(te,ne){return ge.apply(this,arguments)}}(),qs=function(){var ge=(0,Rt.A)(function*(oe,te,ne){const ve=yield oe.toArray(),Ge=yield te.toArray();if(ve.length!==Ge.length)return!1;for(let Je=0;Je<ve.length;Je++){const pt=ve[Je],Tt=Ge[Je];if(!1===(yield ne(pt,Tt)))return!1}return!0});return function(te,ne,ve){return ge.apply(this,arguments)}}(),fr=(ge,oe)=>oe?Lr(ge,oe):or(ge),or=function(){var ge=(0,Rt.A)(function*(oe){const te=oe.dataFunc;switch(te.type){case 0:{const ne=yield te.generator();if(ne.length>1)throw new Qe(lt.MoreThanOneElement);if(0===ne.length)throw new Qe(lt.NoElements);return ne[0]}case 1:{const ne=te.generator();if(ne.length>1)throw new Qe(lt.MoreThanOneElement);if(0===ne.length)throw new Qe(lt.NoElements);return ne[0]}case 2:{const ne=yield te.generator();if(ne.length>1)throw new Qe(lt.MoreThanOneElement);if(0===ne.length)throw new Qe(lt.NoElements);return yield ne[0]}}});return function(te){return ge.apply(this,arguments)}}(),Lr=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=yield nl(oe);let ve=!1,Ge=null;for(const Je of ne)if(te(Je)){if(!0===ve)throw new Qe(lt.MoreThanOneMatchingElement);ve=!0,Ge=Je}if(!1===ve)throw new Qe(lt.NoMatch);return Ge});return function(te,ne){return ge.apply(this,arguments)}}(),pr=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=yield nl(oe);let ve=!1,Ge=null;for(const Je of ne)if(!0===(yield te(Je))){if(!0===ve)throw new Qe(lt.MoreThanOneMatchingElement);ve=!0,Ge=Je}if(!1===ve)throw new Qe(lt.NoMatch);return Ge});return function(te,ne){return ge.apply(this,arguments)}}(),Pr=(ge,oe)=>oe?Wr(ge,oe):Gr(ge),Gr=function(){var ge=(0,Rt.A)(function*(oe){const te=oe.dataFunc;switch(te.type){case 0:{const ne=yield te.generator();if(ne.length>1)throw new Qe(lt.MoreThanOneElement);return 0===ne.length?null:ne[0]}case 1:{const ne=te.generator();if(ne.length>1)throw new Qe(lt.MoreThanOneElement);return 0===ne.length?null:ne[0]}case 2:{const ne=yield te.generator();if(ne.length>1)throw new Qe(lt.MoreThanOneElement);return 0===ne.length?null:yield ne[0]}}});return function(te){return ge.apply(this,arguments)}}(),Wr=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=yield nl(oe);let ve=!1,Ge=null;for(const Je of ne)if(te(Je)){if(!0===ve)throw new Qe(lt.MoreThanOneElement);ve=!0,Ge=Je}return Ge});return function(te,ne){return ge.apply(this,arguments)}}(),na=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=yield nl(oe);let ve=!1,Ge=null;for(const Je of ne)if(!0===(yield te(Je))){if(!0===ve)throw new Qe(lt.MoreThanOneElement);ve=!0,Ge=Je}return Ge});return function(te,ne){return ge.apply(this,arguments)}}(),mr=(ge,oe)=>{const te=ge.dataFunc;switch(te.type){case 0:return new Mn({generator:function(){var ve=(0,Rt.A)(function*(){return(yield te.generator()).slice(oe)});return function(){return ve.apply(this,arguments)}}(),type:0});case 1:return new Mn({generator:()=>te.generator().slice(oe),type:1});case 2:return new Mn({generator:function(){var Ge=(0,Rt.A)(function*(){return(yield te.generator()).slice(oe)});return function(){return Ge.apply(this,arguments)}}(),type:2})}},Fr=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){const ve=yield ge.toArray();let Ge=0;for(;Ge<ve.length&&!1!==oe(ve[Ge],Ge);Ge++);const Je=[];for(;Ge<ve.length;Ge++)Je.push(ve[Ge]);return Je});return function(){return ne.apply(this,arguments)}}(),type:0}),$r=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){const ve=yield ge.toArray();let Ge=0;for(;Ge<ve.length;Ge++){const pt=ve[Ge];if(!1===(yield oe(pt,Ge)))break}const Je=[];for(;Ge<ve.length;Ge++)Je.push(ve[Ge]);return Je});return function(){return ne.apply(this,arguments)}}(),type:0}),da=(ge,oe)=>oe?Oa(ge,oe):ka(ge),ka=function(){var ge=(0,Rt.A)(function*(oe){let te=0;for(const ne of yield oe.toArray())te+=ne;return te});return function(te){return ge.apply(this,arguments)}}(),Oa=function(){var ge=(0,Rt.A)(function*(oe,te){let ne=0;for(const ve of yield oe.toArray())ne+=te(ve);return ne});return function(te,ne){return ge.apply(this,arguments)}}(),ua=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=Pa(oe,te),ve=yield Aa(ne);let Ge=0;for(const Je of ve)Ge+=Je;return Ge});return function(te,ne){return ge.apply(this,arguments)}}(),Ha=(ge,oe)=>{const te=oe>0?oe:0,ne=ge.dataFunc;switch(ne.type){case 1:return new Mn({generator:()=>ne.generator().splice(0,te),type:1});case 2:return new Mn({generator:()=>ne.generator().then(pt=>pt.splice(0,te)),type:2});default:return new Mn({generator:()=>ne.generator().then(pt=>pt.splice(0,te)),type:0})}},il=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){const ve=yield ge.toArray(),Ge=new Array;if(1===oe.length)for(const Je of ve){if(!0!==oe(Je))break;Ge.push(Je)}else for(let Je=0;Je<ve.length;Je++){const pt=ve[Je];if(!0!==oe(pt,Je))break;Ge.push(pt)}return Ge});return function(){return ne.apply(this,arguments)}}(),type:0}),Xa=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){const ve=yield ge.toArray(),Ge=new Array;if(1===oe.length){const Je=oe;for(const pt of ve){if(!0!==(yield Je(pt)))break;Ge.push(pt)}}else for(let Je=0;Je<ve.length;Je++){const pt=ve[Je];if(!0!==(yield oe(pt,Je)))break;Ge.push(pt)}return Ge});return function(){return ne.apply(this,arguments)}}(),type:0}),Xl=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=new Map,ve=Ta(oe,Je=>[te(Je),Je]),Ge=yield Aa(ve);for(const[Je,pt]of Ge){const Tt=ne.get(Je);void 0===Tt?ne.set(Je,[pt]):Tt.push(pt)}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),Ml=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=new Map,ve=Pa(oe,function(){var Je=(0,Rt.A)(function*(pt){return[yield te(pt),pt]});return function(pt){return Je.apply(this,arguments)}}()),Ge=yield Aa(ve);for(const[Je,pt]of Ge){const Tt=ne.get(Je);void 0===Tt?ne.set(Je,[pt]):Tt.push(pt)}return ne});return function(te,ne){return ge.apply(this,arguments)}}(),ol=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=oe.dataFunc,ve=yield Aa(ne),Ge={};for(const Je of ve)Ge[te(Je)]=Je;return Ge});return function(te,ne){return ge.apply(this,arguments)}}(),Ya=function(){var ge=(0,Rt.A)(function*(oe,te){const ne=Pa(oe,function(){var Je=(0,Rt.A)(function*(pt){return[yield te(pt),pt]});return function(pt){return Je.apply(this,arguments)}}()),ve=yield Aa(ne),Ge={};for(const[Je,pt]of ve)Ge[Je]=pt;return Ge});return function(te,ne){return ge.apply(this,arguments)}}(),Md=function(){var ge=(0,Rt.A)(function*(oe){const te=oe.dataFunc,ne=yield Aa(te);return new Set(ne)});return function(te){return ge.apply(this,arguments)}}(),Yl=(ge,oe,te)=>te?ed(ge,oe,te):rh(ge,oe),rh=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){const ve=new Set,Ge=oe.toArray();var Tt,Je=!1,pt=!1;try{for(var yn,$t=pi(ge);Je=!(yn=yield $t.next()).done;Je=!1){const wi=yn.value;!1===ve.has(wi)&&ve.add(wi)}}catch(wi){pt=!0,Tt=wi}finally{try{Je&&null!=$t.return&&(yield $t.return())}finally{if(pt)throw Tt}}const hi=yield Ge;for(const wi of hi)!1===ve.has(wi)&&ve.add(wi);return[...ve.keys()]});return function(){return ne.apply(this,arguments)}}(),type:0}),ed=(ge,oe,te)=>new Mn({generator:function(){var ve=(0,Rt.A)(function*(){const Ge=[],Je=yield Promise.all([ge.toArray(),oe.toArray()]);for(const pt of Je)for(const Tt of pt){let $t=!1;for(const yn of Ge)if(!0===te(Tt,yn)){$t=!0;break}!1===$t&&Ge.push(Tt)}return Ge});return function(){return ve.apply(this,arguments)}}(),type:0}),Pd=(ge,oe,te)=>new Mn({generator:function(){var ve=(0,Rt.A)(function*(){const Ge=[],Je=yield Promise.all([ge.toArray(),oe.toArray()]);for(const pt of Je)for(const Tt of pt){let $t=!1;for(const yn of Ge)if(!0===(yield te(Tt,yn))){$t=!0;break}!1===$t&&Ge.push(Tt)}return Ge});return function(){return ve.apply(this,arguments)}}(),type:0}),td=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){return(yield ge.toArray()).filter(oe)});return function(){return ne.apply(this,arguments)}}(),type:0}),Ql=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){const ve=so(ge,function(){var pt=(0,Rt.A)(function*(Tt,$t){return[yield oe(Tt,$t),Tt]});return function(Tt,$t){return pt.apply(this,arguments)}}()),Ge=yield Aa(ve),Je=[];for(const[pt,Tt]of Ge)pt&&Je.push(Tt);return Je});return function(){return ne.apply(this,arguments)}}(),type:0}),fa=(ge,oe,te)=>te?Rd(ge,oe,te):Pl(ge,oe),Pl=(ge,oe)=>new Mn({generator:function(){var ne=(0,Rt.A)(function*(){const[ve,Ge]=yield Promise.all([ge.toArray(),oe.toArray()]),Je=ve.length<Ge.length?ve.length:Ge.length,pt=new Array(Je);for(let Tt=0;Tt<Je;Tt++)pt[Tt]=[ve[Tt],Ge[Tt]];return pt});return function(){return ne.apply(this,arguments)}}(),type:0}),Rd=(ge,oe,te)=>new Mn({generator:function(){var ve=(0,Rt.A)(function*(){const[Ge,Je]=yield Promise.all([ge.toArray(),oe.toArray()]),pt=Ge.length<Je.length?Ge.length:Je.length,Tt=new Array(pt);for(let $t=0;$t<pt;$t++)Tt[$t]=te(Ge[$t],Je[$t]);return Tt});return function(){return ve.apply(this,arguments)}}(),type:0}),uc=(ge,oe,te)=>new Mn({generator:function(){var ve=(0,Rt.A)(function*(){const[Ge,Je]=yield Promise.all([ge.toArray(),oe.toArray()]),pt=Ge.length<Je.length?Ge.length:Je.length,Tt=new Array(pt);for(let $t=0;$t<pt;$t++)Tt[$t]=te(Ge[$t],Je[$t]);return Promise.all(Tt)});return function(){return ve.apply(this,arguments)}}(),type:0}),Ba=ge=>{var oe;const te=ji.prototype,ne=ge.prototype,ve=Object.getOwnPropertyNames(te);for(const Ge of ve)ne[Ge]=null!==(oe=ne[Ge])&&void 0!==oe?oe:te[Ge]};ht(On),(ge=>{const oe=ge.prototype,te=(ne,ve)=>{const Ge=function(...Je){return ne(this,...Je)};Object.defineProperty(Ge,"length",{value:ne.length-1}),oe[ve]=Ge};te(_t,"aggregate"),te(po,"all"),te(Zs,"allAsync"),te(xa,"any"),te(bl,"anyAsync"),te(xl,"asParallel"),te(ic,"average"),te(oc,"averageAsync"),te(js,"chunk"),te(El,"concatenate"),te(Sc,"contains"),te(sc,"containsAsync"),te(hd,"count"),te(pd,"countAsync"),te(rc,"defaultIfEmpty"),te(Nl,"distinct"),te(Ll,"distinctAsync"),te(gd,"each"),te(Yd,"eachAsync"),te(Mu,"elementAt"),te(fd,"elementAtOrDefault"),te(Sa,"except"),te(Qd,"exceptAsync"),te(Dc,"first"),te(Gc,"firstAsync"),te(Ac,"firstOrDefault"),te(At,"firstOrDefaultAsync"),te(vt,"groupBy"),te(Rn,"groupByAsync"),te(lo,"groupByWithSel"),te(Xr,"groupJoin"),te(Ca,"groupJoinAsync"),te(ac,"intersect"),te(wl,"intersectAsync"),te(Ma,"joinByKey"),te(Wc,"last"),te(Pu,"lastAsync"),te(_d,"lastOrDefault"),te(Mc,"lastOrDefaultAsync"),te(vd,"max"),te(qd,"maxAsync"),te(fp,"min"),te(Vl,"minAsync"),te(zc,"ofType"),te(Dh,"orderBy"),te(eu,"orderByAsync"),te(Bu,"orderByDescending"),te(Sl,"orderByDescendingAsync"),te(mp,"partition"),te(tu,"partitionAsync"),te(Cd,"reverse"),te(Fu,"select"),te(Yc,"selectAsync"),te(yd,"selectMany"),te(_p,"selectManyAsync"),te(Da,"sequenceEquals"),te(Tl,"sequenceEqualsAsync"),te($l,"single"),te(Pc,"singleAsync"),te(Vu,"singleOrDefault"),te(Ul,"singleOrDefaultAsync"),te(iu,"skip"),te(Hu,"skipWhile"),te(Uu,"skipWhileAsync"),te(gt,"sum"),te(to,"sumAsync"),te(wo,"take"),te(Ds,"takeWhile"),te(sa,"takeWhileAsync"),te(Cp,"toArray"),te(yp,"toMap"),te(Dm,"toMapAsync"),te(Tm,"toObject"),te(ju,"toObjectAsync"),te(_f,"toSet"),te(gg,"union"),te(Gu,"unionAsync"),te(Al,"where"),te(_g,"whereAsync"),te(ru,"zip"),te(au,"zipAsync")})(yt),(ge=>{const oe=ge.prototype,te=(ne,ve)=>{const Ge=function(...Je){return ne(this,...Je)};Object.defineProperty(Ge,"length",{value:ne.length-1}),oe[ve]=Ge};te(Th,"aggregate"),te(cu,"all"),te(Yu,"allAsync"),te(Ah,"any"),te(Ih,"anyAsync"),te(kc,"asAsync"),te(Ep,"average"),te(Od,"averageAsync"),te(Gl,"chunk"),te(Op,"concatenate"),te(Mh,"contains"),te(Cg,"containsAsync"),te(Am,"count"),te(Sp,"countAsync"),te(du,"defaultIfEmpty"),te(Qc,"distinct"),te(Ph,"distinctAsync"),te(Ka,"each"),te(Rh,"eachAsync"),te(Ju,"elementAt"),te(Dp,"elementAtOrDefault"),te(tl,"except"),te(Tp,"exceptAsync"),te(kh,"first"),te(Bh,"firstAsync"),te(Fh,"firstOrDefault"),te(bg,"firstOrDefaultAsync"),te(br,"groupBy"),te(Nh,"groupByAsync"),te(Sd,"groupByWithSel"),te(ga,"groupJoin"),te(hu,"groupJoinAsync"),te(ga,"groupJoin"),te(hu,"groupJoinAsync"),te(Dd,"intersect"),te(Il,"intersectAsync"),te(ul,"joinByKey"),te(th,"last"),te(xg,"lastAsync"),te(Eg,"lastOrDefault"),te(Td,"lastOrDefaultAsync"),te(Vh,"max"),te(Wl,"maxAsync"),te(Hh,"min"),te(Ad,"minAsync"),te(zl,"ofType"),te(Id,"orderBy"),te(fu,"orderByAsync"),te(Kl,"orderByDescending"),te(Zt,"orderByDescendingAsync"),te(Ze,"partition"),te(Lt,"partitionAsync"),te(Hn,"reverse"),te(Ji,"select"),te(Ao,"selectAsync"),te(Xo,"selectMany"),te(As,"selectManyAsync"),te(Zo,"sequenceEquals"),te(qs,"sequenceEqualsAsync"),te(fr,"single"),te(pr,"singleAsync"),te(Pr,"singleOrDefault"),te(na,"singleOrDefaultAsync"),te(mr,"skip"),te(Fr,"skipWhile"),te($r,"skipWhileAsync"),te(da,"sum"),te(ua,"sumAsync"),te(Ha,"take"),te(il,"takeWhile"),te(Xa,"takeWhileAsync"),te(nl,"toArray"),te(Xl,"toMap"),te(Ml,"toMapAsync"),te(ol,"toObject"),te(Ya,"toObjectAsync"),te(Md,"toSet"),te(Yl,"union"),te(Pd,"unionAsync"),te(td,"where"),te(Ql,"whereAsync"),te(fa,"zip"),te(uc,"zipAsync")})(Mn),(()=>{var ge;const{prototype:oe}=ji,te=Object.getOwnPropertyNames(On.prototype);for(const ne of te)oe[ne]=null!==(ge=oe[ne])&&void 0!==ge?ge:On.prototype[ne];oe.all=function(ne){return this.every(ne)},oe.any=function(ne){return ne?this.some(ne):0!==this.length},oe.count=function(ne){if(ne){let ve=0;for(let Ge=0;Ge<this.length;Ge++)!0===ne(this[Ge])&&ve++;return ve}return this.length},oe.elementAt=function(ne){if(ne<0||ne>=this.length)throw new Ne("index");return this[ne]},oe.elementAtOrDefault=function(ne){return this[ne]||null},oe.first=function(ne){if(ne){const ve=this.find(ne);if(void 0===ve)throw new Qe(lt.NoMatch);return ve}if(0===this.length)throw new Qe(lt.NoElements);return this[0]},oe.firstOrDefault=function(ne){if(ne){const ve=this.find(ne);return void 0===ve?null:ve}return 0===this.length?null:this[0]},oe.last=function(ne){if(ne){for(let ve=this.length-1;ve>=0;ve--){const Ge=this[ve];if(!0===ne(Ge))return Ge}throw new Qe(lt.NoMatch)}if(0===this.length)throw new Qe(lt.NoElements);return this[this.length-1]},oe.lastOrDefault=function(ne){if(ne){for(let ve=this.length-1;ve>=0;ve--){const Ge=this[ve];if(!0===ne(Ge))return Ge}return null}return 0===this.length?null:this[this.length-1]},oe.max=function(ne){if(0===this.length)throw new Qe(lt.NoElements);if(ne){let ve=Number.NEGATIVE_INFINITY;for(let Ge=0;Ge<this.length;Ge++)ve=Math.max(ne(this[Ge]),ve);return ve}return Math.max.apply(null,this)},oe.min=function(ne){if(0===this.length)throw new Qe(lt.NoElements);if(ne){let ve=Number.POSITIVE_INFINITY;for(let Ge=0;Ge<this.length;Ge++)ve=Math.min(ne(this[Ge]),ve);return ve}return Math.min.apply(null,this)},oe.reverse=function(){return Array.prototype.reverse.apply(this),this}})();var Fd=p(6104),Sg=p(5804),zh=p(3176),bf=p(4773),Bp=p(5050),Im=p(3746),Rl=p(656),pc=p(65),Ay=p(3008);ht(Map),ht(Set),(()=>{var ge;const oe=String.prototype,te=Object.getOwnPropertyNames(On.prototype);for(const ne of te)oe[ne]=null!==(ge=oe[ne])&&void 0!==ge?ge:On.prototype[ne];oe.first=function(ne){if(ne){for(let ve=0;ve<this.length;ve++){const Ge=this[ve];if(!0===ne(Ge))return Ge}throw new Qe(lt.NoMatch)}if(0===this.length)throw new Qe(lt.NoElements);return this[0]},oe.firstOrDefault=function(ne){if(ne){for(let ve=0;ve<this.length;ve++){const Ge=this[ve];if(!0===ne(Ge))return Ge}return null}return 0===this.length?null:this[0]},oe.count=function(ne){if(ne){let ve=0;for(let Ge=0;Ge<this.length;Ge++)!0===ne(this[Ge])&&ve++;return ve}return this.length},oe.elementAt=function(ne){if(ne<0||ne>=this.length)throw new Ne("index");return this[ne]},oe.elementAtOrDefault=function(ne){return this[ne]||null},oe.last=function(ne){if(ne){for(let ve=this.length-1;ve>=0;ve--){const Ge=this[ve];if(!0===ne(Ge))return Ge}throw new Qe(lt.NoMatch)}if(0===this.length)throw new Qe(lt.NoElements);return this[this.length-1]},oe.lastOrDefault=function(ne){if(ne){for(let ve=this.length-1;ve>=0;ve--){const Ge=this[ve];if(!0===ne(Ge))return Ge}return null}return 0===this.length?null:this[this.length-1]},oe.reverse=function(){const ne=this;return new On(function*ve(){for(let Ge=ne.length-1;Ge>=0;Ge--)yield ne[Ge]})}})(),Ba(Array),Ba(Int8Array),Ba(Int16Array),Ba(Int32Array),Ba(Uint8Array),Ba(Uint8ClampedArray),Ba(Uint16Array),Ba(Uint32Array),Ba(Float32Array),Ba(Float64Array);let dv=(()=>{var ge;class oe{constructor(ne,ve,Ge,Je,pt){this.propertyConverter=ne,this.scopeService=ve,this.http=Ge,this.chatMessageService=Je,this.chatRelayService=pt,this.stores=new Map,this.subscriptions=[],this.cacheUpdatedSource=new Fd.B,this.cacheUpdated$=this.cacheUpdatedSource.asObservable(),this.storePushSource=new Fd.B,this.storePush$=this.storePushSource.asObservable(),this.rebuildCache=new Map,this.updateCache=new Map,this.requestCache=new Map,this.scope=this.scopeService.getScope(),this.database=new zh.h(this.scope.currentScope.chapter.id,this.scope.network.id),this.apiEndpoint=`${this.scopeService.getScope().apiEndpoint}chatMessages`,this.fastApiEndpoint=`${this.scopeService.getScope().apiEndpoint}chatMessagesFast`,this.registerRelay(),oe.instanceCount++}getCachedHttpRequest(ne){const ve=(new Date).toISOString(),Ge=`${this.fastApiEndpoint}/quickDiff?chatRoomId=${ne.toString()}&diffDate=${ve}`;if(!this.requestCache.has(Ge)){const Je=(0,Sg._)(this.http.get(Ge));this.requestCache.set(Ge,Je),Je.finally(()=>{this.requestCache.delete(Ge)})}return this.requestCache.get(Ge)}getOdataStore(ne){var ve=`${this.apiEndpoint}/getForChatRoom(chatRoomId='${ne.toString()}')`;return new je({url:ve,key:"Id",keyType:"Guid",version:4})}getArrayStore(ne){var ve=new Date;return null!=this.stores.get(ne.toString())?new Promise((Ge,Je)=>Ge(this.stores.get(ne.toString())||new d.A)):this.database.chatMessages.where("parentId").equals(ne.toString()).count().then(Ge=>{if(Ge>0)return this.database.chatMessages.where("parentId").equals(ne.toString()).toArray().then(Je=>{var Tt=Je.map(yn=>JSON.parse(yn.jsonValue)).orderBy(yn=>yn.createdOn).toArray();let $t=new d.A({key:"id",data:Tt,onLoaded:yn=>this.propertyConverter.convert(yn)});return this.stores.set(ne.toString(),$t),$t.on("inserted",yn=>{this.chatMessageService.postMessage(yn.id,ne,yn.displayContent,yn.replyId).toPromise().then(hi=>{})}),$t.on("removed",yn=>{this.chatMessageService.deleteMessage(yn).toPromise().then(hi=>{this.database.chatMessages.delete(yn.toString())})}),this.cacheUpdatedSource.next(ne.valueOf()),$t});{let Je=`${this.fastApiEndpoint}/quick?chatRoomId=${ne.toString()}`;return this.http.get(Je).toPromise().then(pt=>{let $t=[];return pt?.value.map(yn=>$t.push({value:yn,id:yn.id.valueOf(),parentId:ne.toString(),synchStartedOn:ve,synchCompletedOn:new Date,jsonValue:JSON.stringify(yn)})),$t.forEach(yn=>{yn.value.id=yn.value.id.toString()}),$t=$t.orderBy(yn=>yn.value.createdOn).toArray(),$t}).then(pt=>this.database.chatMessages.where("parentId").equals(ne.toString()).delete().then(Tt=>this.database.chatMessages.bulkAdd(pt).catch($t=>{console.log("error on chatroom message adding: room: "+ne),console.log($t)}).then($t=>{var yn=pt.map(wi=>JSON.parse(wi.jsonValue));yn=yn.orderBy(wi=>wi.createdOn).toArray();let hi=new d.A({key:"id",data:yn,onLoaded:wi=>this.propertyConverter.convert(wi)});return this.stores.set(ne.toString(),hi),hi.on("inserted",wi=>{this.chatMessageService.postMessage(wi.id,ne,wi.displayContent,wi.replyId).toPromise().then(Ui=>{})}),hi.on("removed",wi=>{this.chatMessageService.deleteMessage(wi).toPromise().then(Ui=>{this.database.chatMessages.delete(wi.toString())})}),this.chatRelayService.addToChatroom(ne.toString()),this.cacheUpdatedSource.next(ne.valueOf()),hi},$t=>(console.error("Foobar at api call promise"),null!=this.stores.get(ne.toString())?(console.error("Resolving store from self fallback"),new Promise((yn,hi)=>{yn(this.stores.get(ne.toString())||new d.A)})):this.database.chatMessages.where("parentId").equals(ne.toString()).toArray().then(yn=>{var hi=yn.map(Ui=>JSON.parse(Ui.jsonValue));let wi=new d.A({key:"id",data:hi,onLoaded:Ui=>this.propertyConverter.convert(Ui)});return wi.on("inserted",Ui=>{this.chatMessageService.postMessage(Ui.id,ne,Ui.displayContent,Ui.replyId).toPromise().then(fo=>{})}),wi.on("removed",Ui=>{this.chatMessageService.deleteMessage(Ui).toPromise().then(fo=>{this.database.chatMessages.delete(Ui.toString())})}),this.stores.set(ne.toString(),wi),this.cacheUpdatedSource.next(ne.toString()),wi})))))}})}registerRelay(){this.subscriptions.push(this.chatRelayService.msgReceived$.subscribe(ne=>{this.getArrayStore(new S.A(ne.roomId)).then(ve=>{(0,Sg._)(this.http.get(`${this.apiEndpoint}/GetById(id='${ne.id.toString()}')`)).then(Ge=>{ve.load().then(Je=>{if(Je.any(pt=>pt.id.toString()==Ge.id.toString()))try{ve?.push([{type:"update",key:Ge.id,data:Ge}])}catch(pt){console.error("push error",pt,this)}else ve?.push([{type:"insert",data:Ge}]);this.storePushSource.next(ne.roomId);try{this.database.chatMessages.add({value:Ge,id:Ge.id.valueOf(),parentId:ne.roomId,synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(Ge)})}catch(pt){console.error("add message to indexDb foobar",pt,this)}})})},ve=>{console.error("Msg received error",ve,this)})}),this.chatRelayService.msgUpdated$.subscribe(ne=>{this.getArrayStore(new S.A(ne.roomId)).then(ve=>{(0,Sg._)(this.http.get(`${this.apiEndpoint}/GetById(id='${ne.id.toString()}')`)).then(Ge=>{ve.push([{type:"update",key:new S.A(ne.id),data:Ge}]),this.storePushSource.next(ne.roomId);try{this.database.chatMessages.update(ne.id,{value:Ge,id:Ge.id.valueOf(),parentId:ne.roomId,synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(Ge)})}catch(Je){console.error("update message to indexDb foobar",Je)}},Ge=>{console.error("Msg updated",Ge)})})}),this.chatRelayService.msgDeleted$.subscribe(ne=>{this.getArrayStore(new S.A(ne.roomId)).then(ve=>{ve.push([{type:"remove",key:ne.id}]),this.storePushSource.next(ne.roomId);try{this.database.chatMessages.delete(ne.id)}catch(Ge){console.log("delete message to indexDb foobar"),console.log(Ge)}})}))}rebuildCacheAndGetStore(ne){const ve=ne.toString();if(!this.rebuildCache.has(ve)){const Ge=`${this.fastApiEndpoint}/quick?chatRoomId=${ve}`,Je=new Date,pt=this.http.get(Ge).toPromise().then(Tt=>{if(Tt){let $t=Tt.value.map(yn=>({value:yn,id:yn.id.valueOf(),parentId:ve,synchStartedOn:Je,synchCompletedOn:new Date,jsonValue:JSON.stringify(yn),hashGuid:Tt.hashGuid?.valueOf()}));return $t.forEach(yn=>{yn.value.id=yn.value.id.toString()}),$t=$t.sort((yn,hi)=>new Date(yn.value.createdOn).getTime()-new Date(hi.value.createdOn).getTime()),$t}return[]}).then(Tt=>this.database.chatMessages.where("parentId").equals(ve).delete().then(()=>this.database.chatMessages.bulkAdd(Tt).then(()=>{const $t=Tt.map(hi=>JSON.parse(hi.jsonValue)).sort((hi,wi)=>new Date(hi.createdOn).getTime()-new Date(wi.createdOn).getTime()),yn=new d.A({key:"id",data:$t,onLoaded:hi=>this.propertyConverter.convert(hi)});return yn.on("inserted",hi=>{this.chatMessageService.postMessage(hi.id,ne,hi.displayContent,hi.replyId).toPromise()}),yn.on("removed",hi=>{this.chatMessageService.deleteMessage(hi).toPromise().then(()=>this.database.chatMessages.delete(hi.toString()))}),this.stores.set(ve,yn),this.cacheUpdatedSource.next(ve),this.database.chatRooms.update(ve,{hashGuid:Tt[0]?.hashGuid}).catch(hi=>{console.error("Hash update failed",Tt[0])}),yn}).catch($t=>(console.error("Error on chatroom message adding: room:",ve,$t),this.fallbackStore(ne))))).catch(Tt=>(console.error("Foobar at api call promise",Tt),this.fallbackStore(ne)));this.rebuildCache.set(ve,pt),pt.finally(()=>{this.rebuildCache.delete(ve)})}return this.rebuildCache.get(ve)}fallbackStore(ne){const ve=ne.toString();return this.stores.has(ve)?Promise.resolve(this.stores.get(ve)||new d.A):this.database.chatMessages.where("parentId").equals(ve).toArray().then(Ge=>{const Je=Ge.map(Tt=>JSON.parse(Tt.jsonValue)),pt=new d.A({key:"id",data:Je,onLoaded:Tt=>this.propertyConverter.convert(Tt)});return pt.on("inserted",Tt=>{this.chatMessageService.postMessage(Tt.id,ne,Tt.displayContent,Tt.replyId).toPromise()}),pt.on("removed",Tt=>{this.chatMessageService.deleteMessage(Tt).toPromise().then(()=>this.database.chatMessages.delete(Tt.toString()))}),this.stores.set(ve,pt),this.cacheUpdatedSource.next(ve),pt})}updateStore(ne,ve,Ge){const Je=ne.toString();if(!this.updateCache.has(Je)){const pt=this.getArrayStore(ne).then(Tt=>Tt.load().then($t=>this.getCachedHttpRequest(ne).then(hi=>{const wi=hi.value.map(Ui=>Ui.modifiedOn&&!Ui.deletedOn?(Tt.push([{type:"update",key:Ui.id,data:Ui}]),this.database.chatMessages.update(Ui.id.valueOf(),{value:Ui,id:Ui.id.valueOf(),parentId:ne.valueOf(),synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(Ui)}).catch(fo=>{console.error("Error updating message in indexDb",fo)})):Ui.modifiedOn&&Ui.deletedOn?(Tt.push([{type:"remove",key:Ui.id}]),this.database.chatMessages.delete(Ui.id.valueOf()).catch(fo=>{console.error("Error deleting message from indexDb",fo)})):Tt.byKey(Ui.id).then(fo=>(Tt.push(fo?[{type:"update",key:Ui.id,data:Ui}]:[{type:"insert",data:Ui}]),this.database.chatMessages.get(Ui.id.valueOf()).then(Io=>Io?null:this.database.chatMessages.add({value:Ui,id:Ui.id.valueOf(),parentId:ne.valueOf(),synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(Ui)}).catch(ts=>{console.error("Error adding message to indexDb",ts)})))).catch(fo=>(console.error("Error handling message byKey operation",fo),null)));return Promise.all(wi).then(()=>{this.checkForCorruption(ne)})}).catch(hi=>{console.error("Error fetching messages from server",hi)}))).finally(()=>{this.updateCache.delete(Je)});this.updateCache.set(Je,pt)}return this.updateCache.get(Je).then(()=>{})}checkForCorruption(ne){(new Date).toISOString();return ne.toString(),this.getCachedHttpRequest(ne).then(pt=>{let Tt=pt.totalCount,$t=pt.hashGuid;return this.getArrayStore(ne).then(yn=>{yn.load().then(hi=>this.database.chatRooms.get(ne.valueOf()).then(wi=>hi.length!=Tt||wi?.hashGuid!=$t?this.dropBackendCache(ne).then(Ui=>Ui?(this.chatRelayService.addToChatroom(ne.toString()),this.rebuildCacheAndGetStore(ne)):null):null))})})}dropBackendCache(ne){return this.http.get(this.scopeService.getScope().apiEndpoint+"chatMessagesFast/IsMyMembershipActive/"+ne.toString()).toPromise().then(ve=>ve)}static#e=ge=()=>(this.instanceCount=0,this.\u0275fac=function(ve){return new(ve||oe)(Rl.KVO(Bp.A),Rl.KVO(Im.A),Rl.KVO(pc.Qq),Rl.KVO(bf.A),Rl.KVO(Ay.p))},this.\u0275prov=Rl.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}))}return ge(),oe})()},3746:(En,it,p)=>{"use strict";p.d(it,{A:()=>v});var S=p(9406),d=p(756),m=p(9516),T=p(4526),C=p(3527),e=p(2923),k=p(656),w=p(65),P=p(242);let v=(()=>{var x;class b{constructor(j,F){this.http=j,this.deficeInfoService=F,this.scope=window.scope,this.scopeNetworkChapterCache={},this.deferredCache={},this.getNetworkUrl=()=>"https://"+this.scope.currentScope.network.domain,this.observer=new S.c(X=>{this.scope&&(X.next(this.scope),X.complete());const U=setInterval(()=>{this.scope&&(X.next(this.scope),X.complete(),clearInterval(U)),this.loadScope()},1e3)})}loadScope(){this.scope=window.scope,this.scope&&(0,e.Hg)(this.scope?.currentScope?.network?.settings?.languageCode??"de")}getScope(){return this.scope?this.scope:(this.loadScope(),window.scope)}getUserClientInfo(){const j=this.deficeInfoService.getUserAgentInfo(),F=j.isApp,U=j.appPlatform,A={isApp:F,appVersion:"",appPlatform:m.Y.Web,androidVersion:j.androidVersion};return F&&(A.appVersion=j.appVersion,A.appPlatform=U),A}getNetworkChapter(j,F){const X=`${F}_${j}`;return this.scopeNetworkChapterCache[X]?(0,d.of)(this.scopeNetworkChapterCache[X]):(this.deferredCache[X]||(this.deferredCache[X]=this.http.get(this.scope.apiEndpoint+"networks/"+j+"/"+F).pipe((0,C.T)(U=>(this.scopeNetworkChapterCache[X]=U,delete this.deferredCache[X],U)),(0,T.W)(U=>{throw delete this.deferredCache[X],U}))),this.deferredCache[X])}getMiniScope(){var j=window.miniScope;return j.apiEndpoint="/api/"+j.networkSlug+"/"+j.chapterSlug+"/",window.miniScope}static#e=x=()=>(this.\u0275fac=function(F){return new(F||b)(k.KVO(w.Qq),k.KVO(P.E))},this.\u0275prov=k.jDH({token:b,factory:b.\u0275fac,providedIn:"root"}))}return x(),b})()},3777:(En,it,p)=>{"use strict";p.d(it,{A:()=>d});const d=p(5811).A},3806:(En,it,p)=>{"use strict";p.d(it,{U:()=>m});var S=p(3422),d=p(9656);function m(T=1/0){return(0,S.Z)(d.D,T)}},3943:(En,it,p)=>{"use strict";p.d(it,{R:()=>k});var S=p(656),d=p(3746),m=p(1118),T=p(5732),C=p(353);let e=(()=>{var w;class P{constructor(x){this.doc=x}focusTop(){return setTimeout(()=>requestAnimationFrame(()=>this._focusPageTitle()),0),!0}_focusPageTitle(){const x=this.doc.activeElement;x?.blur&&x.blur();const b=this.doc.getElementById("page-title");if(!b)return!1;b.hasAttribute("tabindex")||b.setAttribute("tabindex","-1"),b.focus({preventScroll:!0});const B=(b.textContent||"").trim();return B&&(this.doc.title=B),!0}static#e=w=()=>(this.\u0275fac=function(b){return new(b||P)(S.KVO(S.qQL))},this.\u0275prov=S.jDH({token:P,factory:P.\u0275fac,providedIn:"root"}))}return w(),P})(),k=(()=>{var w;class P{constructor(x,b,B,j,F){this.location=x,this.scopeService=b,this.logoService=B,this.focusTopService=j,this.document=F,this.scope=this.scopeService.getScope(),this.miniScope=this.scopeService.getMiniScope()}setMetaName(x,b){const B=x.replace(":","\\:"),j=this.document.querySelector(`meta[name='${B}']`);if(b||(b=""),j)j.getAttribute("content")!==b&&j.setAttribute("content",b);else{const F=this.document.createElement("meta");F.name=x,F.content=b.replace('"',"&quot;"),this.document.head.appendChild(F)}}setMetaProperty(x,b){const B=x.replace(":","\\:"),j=this.document.querySelector(`meta[property='${B}']`);if(b||(b=""),j)j.getAttribute("content")!==b&&j.setAttribute("content",b);else{const F=this.document.createElement("meta");F.setAttribute("property",x),F.content=b.replace('"',"&quot;"),this.document.head.appendChild(F)}}setFavicon(x){const b=this.document.querySelector('link[rel="shortcut icon"]');b&&b.setAttribute("href",x?this.logoService.getEditorIconUrl():this.logoService.getNetworkIconSmallUrl())}removeMeta(x){const b=x.replace(":","\\:");this.document.querySelectorAll(`meta[name='${b}'], meta[property='${b}'], link[rel='canonical']`).forEach(j=>j.remove())}setDefault(){this.setMetaName("author",this.scope.currentScope.network.name),this.setMetaName("date",(new Date).toISOString()),this.setMetaProperty("og:type","website"),this.setMetaProperty("og:image",this.logoService.getNetworkLogoUrl()+"&preset=social-media"),this.setMetaName("twitter:image:src",this.logoService.getNetworkLogoUrl()+"&preset=social-media"),this.removeMeta("article:publisher"),this.removeMeta("article:published_time"),this.removeMeta("article:section")}handleAppState(x){var b=this.scope.currentChapter.name,B="",j="";switch(this.resetViewport(),x.name){case m.g.AppImprint:B=this.scope.network.getResourceOrKeyName("web_common_page_title_imprint",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_imprint");break;case m.g.AppPrivacyPolicy:B=this.scope.network.getResourceOrKeyName("web_common_page_title_privacyPolicy",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_privacyPolicy");break;case m.g.AppAccessibility:B=this.scope.network.getResourceOrKeyName("web_common_page_title_accessibility",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_accessibility");break;case m.g.AppTos:B=this.scope.network.getResourceOrKeyName("web_common_page_title_termsOfService",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_termsOfService");break;case m.g.AppMainNews:B=this.scope.network.getResourceOrKeyName("web_common_page_description_home")+this.scope.currentChapter.name+this.scope.network.getResourceOrKeyName("web_common_news_title"),j=this.scope.network.getResourceOrKeyName("web_common_page_description_news");break;case m.g.AppMainSnips:B=this.scope.network.getResourceOrKeyName("web_common_page_title_snips"),j=this.scope.network.getResourceOrKeyName("web_common_page_description_snips");break;case m.g.AppMainLogin:B=this.scope.network.getResourceOrKeyName("web_common_page_title_login",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_login");break;case m.g.AppMainNotifications:B=this.scope.network.getResourceOrKeyName("web_common_page_title_notifications",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_notification");break;case m.g.AppNotificationSettings:B=this.scope.network.getResourceOrKeyName("web_common_page_title_notificationSetting",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_notificationSettings");break;case m.g.AppMyProfile:B=this.scope.network.getResourceOrKeyName("web_common_page_title_myProfile",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_myProfile");break;case m.g.AppPublicProfile:B=this.scope.network.getResourceOrKeyName("web_common_page_title_publicProfile",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_publicProfile");break;case m.g.AppRegister:B=this.scope.network.getResourceOrKeyName("web_common_page_title_register",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_register");break;case m.g.AppRegisterNewsletter:B=this.scope.network.getResourceOrKeyName("web_common_page_title_registerNewsletter",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_registerNewsletter");break;case m.g.AppRequestPassword:B=this.scope.network.getResourceOrKeyName("web_common_page_title_requestPassword",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_requestPassword");break;case m.g.AppAccountSettings:B=this.scope.network.getResourceOrKeyName("web_common_page_title_accountSetting",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_accountSetting");break;case m.g.AppSearch:B=this.scope.network.getResourceOrKeyName("web_common_page_title_search",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_search");break;case m.g.AppSnipApply:B=this.scope.network.getResourceOrKeyName("web_common_page_title_snipApply"),j=this.scope.network.getResourceOrKeyName("web_common_page_description_snipApply");break;case m.g.AppRubrics:B=this.scope.network.getResourceOrKeyName("web_common_page_title_rubrics",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_rubrics");break;case m.g.AppFeedback:B=this.scope.network.getResourceOrKeyName("web_common_page_title_feedback",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_feedback");break;case m.g.AppEventCalendar:B=this.scope.network.getResourceOrKeyName("web_common_page_title_eventCalendar"),j=this.scope.network.getResourceOrKeyName("web_common_page_description_eventCalendar");break;case m.g.AppAuthors:B=this.scope.network.getResourceOrKeyName("web_common_page_title_authors",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_authors");break;case m.g.AppChat:B=this.scope.network.getResourceOrKeyName("web_common_page_title_chat"),j=this.scope.network.getResourceOrKeyName("web_common_page_description_chat"),this.setViewportNoZoom();break;case m.g.AppAuthorDashboard:B=this.scope.network.getResourceOrKeyName("web_common_page_title_authorDashboard",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_description_authorDashboard");break;case m.g.AppClosedChapter:B=this.scope.network.getResourceOrKeyName("web_common_page_title_closedChapter",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_closedChapter_description_0");break;case m.g.AppPasswordResetComplete:B=this.scope.network.getResourceOrKeyName("web_common_page_title_passwordmanagement",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_resetPasswordComplete_description");break;case m.g.AppRequestPassword:B=this.scope.network.getResourceOrKeyName("web_common_page_title_passwordmanagement",{chapterName:b}),j=this.scope.network.getResourceOrKeyName("web_common_page_title_passwordmanagement_description");break;default:B=b}this.push(B,j)}stateChanged(x){x&&("Redesign2024"==this.scope.network.settings.configurations?.contentRenderEngine?(this.handleAppState(x),setTimeout(()=>{this.focusTopService.focusTop()},200)):(this.setDefault(),this.resetViewport()))}push(x,b){this.setDefault();const B=this.scopeService.getNetworkUrl();this.setMetaProperty("og:url",B+this.location.path()),this.document.title=x,this.setMetaProperty("og:title",x),this.setMetaName("twitter:title",x),this.setMetaName("description",b),this.setMetaProperty("og:description",b),this.setMetaName("twitter:description",b)}generalPush(x){if(!x)return;this.document.title=x.title??"";const b=this.scopeService.getNetworkUrl();if(x.canonicalLink){let B=this.document.querySelector('link[rel="canonical"]');B?B.getAttribute("href")!==x.canonicalLink&&B.setAttribute("href",x.canonicalLink):(B=this.document.createElement("link"),B.setAttribute("rel","canonical"),B.setAttribute("href",x.canonicalLink??""),this.document.head.appendChild(B))}this.setMetaProperty("og:type",x.type??""),this.setMetaProperty("og:title",x.title??""),this.setMetaProperty("og:url",b+(x.path??"")),this.setMetaProperty("og:description",x.description??""),this.setMetaProperty("og:image",x.imageUrl??""),this.setMetaName("twitter:title",x.title??""),this.setMetaName("description",x.description??""),this.setMetaName("twitter:description",x.description??""),this.setMetaName("author",x.getFullAuthorName?.()??""),this.setMetaName("date",x.getMetaDate?.()??""),this.setMetaName("twitter:site",this.scope.currentScope.chapter.settings.seoTwitterSite??""),this.setMetaName("twitter:image:src",x.imageUrl??""),x.removeAttributes&&x.removeAttributes.forEach(B=>{this.removeMeta(B)}),"article"===x.type?(this.document.head.setAttribute("prefix","og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#"),this.setMetaProperty("article:publisher",this.scope.currentScope.chapter.settings.seoFacebookPublisher??""),this.setMetaProperty("article:published_time",x.getMetaDate?.()??"")):this.document.head.setAttribute("prefix","og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#")}ensureViewportMeta(){let x=this.document.querySelector('meta[name="viewport"]');return x||(x=this.document.createElement("meta"),x.name="viewport",x.content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, viewport-fit=cover",this.document.head.appendChild(x)),x}rememberOriginalViewport(){if(void 0===this.originalViewportContent){const x=this.document.querySelector('meta[name="viewport"]');this.originalViewportContent=x?.content??null}}setViewportNoZoom(){this.rememberOriginalViewport();const x=this.ensureViewportMeta(),b="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover";x.content!==b&&x.setAttribute("content",b)}resetViewport(){const x=this.ensureViewportMeta(),B=this.originalViewportContent??"width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, viewport-fit=cover";x.content!==B&&x.setAttribute("content",B)}static#e=w=()=>(this.\u0275fac=function(b){return new(b||P)(S.KVO(T.aZ),S.KVO(d.A),S.KVO(C.X),S.KVO(e),S.KVO(S.qQL))},this.\u0275prov=S.jDH({token:P,factory:P.\u0275fac,providedIn:"root"}))}return w(),P})()},3949:(En,it,p)=>{"use strict";p.d(it,{A:()=>Ae});var S=p(2583),d=p(1973),m=p(5973),T=p(6054),C=p(9522),e=p(7251),k=p(5704),w=p(8412),P=p(36),v=p(4859),x=p(6021),b=p(1832),B=p(3090),j=p(2660),F=p(2720),X=p(1363),U=p(1830),Z=p(4017),A=p(6110),M=p(4072),H=p(8664),J=p(9209),R=p(1294),L=p(9293),G=p(9229);const Q=function(){let pe=[];return{add:function(Ee){pe.includes(Ee)||pe.push(Ee)},remove:function(Ee){const le=pe.indexOf(Ee);-1!==le&&pe.splice(le,1)},fire:function(){const Ee=pe.pop(),le=!!Ee;return le&&Ee(),le},hasCallback:function(){return pe.length>0}}}();var z=p(402),K=p(127),ee=p(7080),re=p(5417),be=p(3183);const ce=F.A.add,Re=(0,A.zk)(),Se=Z.WV,Me=[];ce(()=>{M.A.subscribeGlobal(T.A.getDocument(),J.A.down,pe=>{for(let Ee=Me.length-1;Ee>=0;Ee--)if(!Me[Ee]._proxiedDocumentDownHandler(pe))return})});const Ye=ee.A.inherit({_supportedKeys(){return(0,B.X)(this.callBase(),{escape(){this.hide()}})},_getDefaultOptions(){return(0,B.X)(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",wrapperAttr:{},position:(0,B.X)({},re.g.center),width:"80vw",minWidth:null,maxWidth:null,height:"80vh",minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,from:{opacity:1,scale:1},to:{opacity:0,scale:.55}}},closeOnOutsideClick:!1,hideOnOutsideClick:!1,_ignorePreventScrollEventsDeprecation:!1,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",innerOverlay:!1,restorePosition:!0,container:void 0,visualContainer:void 0,hideTopOverlayHandler:()=>{this.hide()},hideOnParentScroll:!1,preventScrollEvents:!0,onPositioned:null,propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0,_hideOnParentScrollTarget:void 0,_fixWrapperPosition:!1})},_defaultOptionsRules(){return this.callBase().concat([{device:()=>!(0,A.Vd)(),options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference(){this.callBase(),(0,B.X)(this._optionsByReference,{animation:!0})},$wrapper(){return this._$wrapper},_eventBindingTarget(){return this._$content},_setDeprecatedOptions(){this.callBase(),(0,B.X)(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.1",alias:"hideOnOutsideClick"}})},ctor(pe,Ee){this.callBase(pe,Ee),Ee&&"preventScrollEvents"in Ee&&!Ee._ignorePreventScrollEventsDeprecation&&this._logDeprecatedPreventScrollEventsInfo()},_logDeprecatedPreventScrollEventsInfo(){this._logDeprecatedOptionWarning("preventScrollEvents",{since:"23.1",message:"If you enable this option, end-users may experience scrolling issues."})},_init(){this.callBase(),this._initActions(),this._initHideOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._customWrapperClass=null,this._$wrapper=(0,k.A)("<div>").addClass("dx-overlay-wrapper"),this._$content=(0,k.A)("<div>").addClass("dx-overlay-content"),this._initInnerOverlayClass(),this.$element().addClass("dx-overlay"),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),this._toggleViewPortSubscription(!0),this._initHideTopOverlayHandler(this.option("hideTopOverlayHandler")),this._parentsScrollSubscriptionInfo={handler:Ee=>{this._hideOnParentsScrollHandler(Ee)}},this.warnPositionAsFunction()},warnPositionAsFunction(){(0,U.Tn)(this.option("position"))&&e.A.log("W0018")},_initInnerOverlayClass(){this._$content.toggleClass("dx-inner-overlay",this.option("innerOverlay"))},_initHideTopOverlayHandler(pe){this._hideTopOverlayHandler=pe},_getActionsList:()=>["onShowing","onShown","onHiding","onHidden","onPositioned","onVisualPositionChanged"],_initActions(){this._actions={};const pe=this._getActionsList();(0,j.__)(pe,(Ee,le)=>{this._actions[le]=this._createActionByOption(le,{excludeValidators:["disabled","readOnly"]})||v.lQ})},_initHideOnOutsideClickHandler(){var pe=this;this._proxiedDocumentDownHandler=function(){return pe._documentDownHandler(...arguments)}},_initMarkup(){this.callBase(),this._renderWrapperAttributes(),this._initPositionController()},_documentDownHandler(pe){this._showAnimationProcessing&&this._stopAnimation();const Ee=(0,k.A)(Re.document).is(pe.target)||(0,b.gR)(Re.document,pe.target),le=(0,k.A)(pe.target).closest(".dx-inner-overlay").length;return Ee&&!le&&!(this._$content.is(pe.target)||(0,b.gR)(this._$content.get(0),pe.target))&&this._shouldHideOnOutsideClick(pe)&&this._outsideClickHandler(pe),this.option("propagateOutsideClick")},_shouldHideOnOutsideClick(pe){const{hideOnOutsideClick:Ee}=this.option();return(0,U.Tn)(Ee)?Ee(pe):Ee},_outsideClickHandler(pe){this.option("shading")&&pe.preventDefault(),this.hide()},_getAnonymousTemplateName:()=>"content",_initTemplates(){this._templateManager.addDefaultTemplates({content:new w.A}),this.callBase()},_isTopOverlay(){const pe=this._overlayStack();for(let Ee=pe.length-1;Ee>=0;Ee--){const le=pe[Ee]._findTabbableBounds();if(le.first||le.last)return pe[Ee]===this}return!1},_overlayStack:()=>Me,_zIndexInitValue:()=>Ye.baseZIndex(),_toggleViewPortSubscription(pe){var Ee=this;Se.remove(this._viewPortChangeHandle),pe&&(this._viewPortChangeHandle=function(){Ee._viewPortChangeHandler(...arguments)},Se.add(this._viewPortChangeHandle))},_viewPortChangeHandler(){this._positionController.updateContainer(this.option("container")),this._refresh()},_renderWrapperAttributes(){const{wrapperAttr:pe}=this.option(),Ee=(0,B.X)({},pe),le=Ee.class;delete Ee.class,this.$wrapper().attr(Ee).removeClass(this._customWrapperClass).addClass(le),this._customWrapperClass=le},_renderVisibilityAnimate(pe){return this._stopAnimation(),pe?this._show():this._hide()},_getAnimationConfig(){return this._getOptionValue("animation",this)},_toggleBodyScroll:v.lQ,_animateShowing(){var pe=this;const Ee=this._getAnimationConfig()??{},le=this._normalizeAnimation(Ee.show,"to"),Ke=le?.start??v.lQ,Be=le?.complete??v.lQ;this._animate(le,function(){if(!pe._isAnimationPaused){pe.option("focusStateEnabled")&&M.A.trigger(pe._focusTarget(),"focus");for(var q=arguments.length,Oe=new Array(q),fe=0;fe<q;fe++)Oe[fe]=arguments[fe];Be.call(pe,...Oe),pe._showAnimationProcessing=!1,pe._isHidden=!1,pe._actions.onShown(),pe._toggleSafariScrolling(),pe._showingDeferred.resolve()}},function(){if(!pe._isAnimationPaused){for(var q=arguments.length,Oe=new Array(q),fe=0;fe<q;fe++)Oe[fe]=arguments[fe];Ke.call(pe,...Oe),pe._showAnimationProcessing=!0}})},_processShowingHidingCancel(pe,Ee,le){(0,U.yL)(pe)?pe.then(Ke=>{Ke?le():Ee()}).catch(()=>Ee()):pe?le():Ee()},_show(){if(this._showingDeferred=(0,x.cY)(),this._parentHidden=this._isParentHidden(),this._showingDeferred.done(()=>{delete this._parentHidden}),this._parentHidden)return this._isHidden=!0,this._showingDeferred.resolve();if(this._currentVisible)return(0,x.cY)().resolve().promise();if(this._currentVisible=!0,this._isHidingActionCanceled)delete this._isHidingActionCanceled,this._showingDeferred.reject();else{const pe=()=>{this._stopAnimation(),this._toggleBodyScroll(this.option("enableBodyScroll")),this._toggleVisibility(!0),this._$content.css("visibility","hidden"),this._$content.toggleClass("dx-state-invisible",!1),this._updateZIndexStackPosition(!0),this._positionController.openingHandled(),this._renderContent();const Ee={cancel:!1};this._actions.onShowing(Ee),this._processShowingHidingCancel(Ee.cancel,()=>{this._$content.css("visibility",""),this._renderVisibility(!0),this._animateShowing()},()=>{this._toggleVisibility(!1),this._$content.css("visibility",""),this._$content.toggleClass("dx-state-invisible",!0),this._isShowingActionCanceled=!0,this._moveFromContainer(),this._toggleBodyScroll(!0),this.option("visible",!1),this._showingDeferred.resolve()})};this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(pe)):pe()}return this._showingDeferred.promise()},_normalizeAnimation(pe,Ee){return pe&&(pe=(0,B.X)({type:"slide",skipElementInitialStyles:!0},pe),(0,U.Gv)(pe[Ee])&&(0,B.X)(pe[Ee],{position:this._positionController.position})),pe},_animateHiding(){var pe=this;const Ee=this._getAnimationConfig()??{},le=this._normalizeAnimation(Ee.hide,"from"),Ke=le?.start??v.lQ,Be=le?.complete??v.lQ;this._animate(le,function(){var q;pe._$content.css("pointerEvents",""),pe._renderVisibility(!1);for(var Oe=arguments.length,fe=new Array(Oe),We=0;We<Oe;We++)fe[We]=arguments[We];Be.call(pe,...fe),pe._hideAnimationProcessing=!1,null===(q=pe._actions)||void 0===q||q.onHidden(),pe._hidingDeferred.resolve()},function(){pe._$content.css("pointerEvents","none");for(var q=arguments.length,Oe=new Array(q),fe=0;fe<q;fe++)Oe[fe]=arguments[fe];Ke.call(pe,...Oe),pe._hideAnimationProcessing=!0})},_hide(){if(!this._currentVisible)return(0,x.cY)().resolve().promise();this._currentVisible=!1,this._hidingDeferred=(0,x.cY)();const pe={cancel:!1};return this._isShowingActionCanceled?(delete this._isShowingActionCanceled,this._hidingDeferred.reject()):(this._actions.onHiding(pe),this._toggleSafariScrolling(),this._toggleBodyScroll(!0),this._processShowingHidingCancel(pe.cancel,()=>{this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animateHiding()},()=>{this._isHidingActionCanceled=!0,this._toggleBodyScroll(this.option("enableBodyScroll")),this.option("visible",!0),this._hidingDeferred.resolve()})),this._hidingDeferred.promise()},_forceFocusLost(){const pe=T.A.getActiveElement();this._$content.find(pe).length&&(0,b.GX)()},_animate(pe,Ee,le){pe?S.A.animate(this._$content,(0,B.X)({},pe,{start:le=le||pe.start||v.lQ,complete:Ee})):Ee()},_stopAnimation(){S.A.stop(this._$content,!0)},_renderVisibility(pe){pe&&this._isParentHidden()||(this._currentVisible=pe,this._stopAnimation(),pe||(0,G.EH)(this._$content),pe?(this._checkContainerExists(),this._moveToContainer(),this._renderGeometry(),(0,G.I9)(this._$content),(0,G.ho)(this._$content)):(this._toggleVisibility(pe),this._$content.toggleClass("dx-state-invisible",!pe),this._updateZIndexStackPosition(pe),this._moveFromContainer()),this._toggleShading(pe),this._toggleSubscriptions(pe))},_updateZIndexStackPosition(pe){const Ee=this._overlayStack(),le=Ee.indexOf(this);pe?(-1===le&&(this._zIndex=be.vt(this._zIndexInitValue()),Ee.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):-1!==le&&(Ee.splice(le,1),be.TF(this._zIndex))},_toggleShading(pe){this._$wrapper.toggleClass("dx-overlay-shader",pe&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(pe&&this.option("shading"))},_initTabTerminatorHandler(){var pe=this;this._proxiedTabTerminatorHandler=function(){pe._tabKeyHandler(...arguments)}},_toggleTabTerminator(pe){const Ee=(0,L.b4)("keydown",this.NAME);pe?M.A.on(T.A.getDocument(),Ee,this._proxiedTabTerminatorHandler):M.A.off(T.A.getDocument(),Ee,this._proxiedTabTerminatorHandler)},_findTabbableBounds(){const pe=this._$wrapper.find("*"),Ee=pe.length-1,le={first:null,last:null};for(let Ke=0;Ke<=Ee&&(!le.first&&pe.eq(Ke).is(z.Kr)&&(le.first=pe.eq(Ke)),!le.last&&pe.eq(Ee-Ke).is(z.Kr)&&(le.last=pe.eq(Ee-Ke)),!le.first||!le.last);Ke++);return le},_tabKeyHandler(pe){if("tab"!==(0,L.YD)(pe)||!this._isTopOverlay())return;const Ee=this._findTabbableBounds(),le=Ee.first,Ke=Ee.last,Be=!pe.shiftKey&&pe.target===Ke.get(0),q=pe.shiftKey&&pe.target===le.get(0),Oe=0===Ee.length,fe=!(0,b.gR)(this._$wrapper.get(0),pe.target);if(Be||q||Oe||fe){pe.preventDefault();const We=pe.shiftKey?Ke:le;M.A.trigger(We,"focusin"),M.A.trigger(We,"focus")}},_toggleSubscriptions(pe){(0,A.Vd)()&&(this._toggleHideTopOverlayCallback(pe),this._toggleHideOnParentsScrollSubscription(pe))},_toggleHideTopOverlayCallback(pe){this._hideTopOverlayHandler&&(pe?Q.add(this._hideTopOverlayHandler):Q.remove(this._hideTopOverlayHandler))},_toggleHideOnParentsScrollSubscription(pe){const Ee=(0,L.b4)("scroll",this.NAME),{prevTargets:le,handler:Ke}=this._parentsScrollSubscriptionInfo??{};M.A.off(le,Ee,Ke);const Be=this.option("hideOnParentScroll");if(pe&&Be){let q=this._getHideOnParentScrollTarget().parents();"desktop"===m.A.real().deviceType&&(q=q.add(Re)),M.A.on(q,Ee,Ke),this._parentsScrollSubscriptionInfo.prevTargets=q}},_hideOnParentsScrollHandler(pe){let Ee=!1;const le=this.option("hideOnParentScroll");(0,U.Tn)(le)&&(Ee=le(pe)),!Ee&&!this._showAnimationProcessing&&this.hide()},_getHideOnParentScrollTarget(){const pe=(0,k.A)(this.option("_hideOnParentScrollTarget"));return pe.length?pe:this._$wrapper},_render(){this.callBase(),this._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_renderContent(){const pe=!this._currentVisible&&this.option("deferRendering");this.option("visible")&&this._isParentHidden()?this._isHidden=!0:this._contentAlreadyRendered||pe||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase())},_isParentHidden(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;const pe=this.$element().parent();if(pe.is(":visible"))return!1;let Ee=!1;return pe.add(pe.parents()).each((le,Ke)=>{if("none"===(0,k.A)(Ke).css("display"))return Ee=!0,!1}),Ee||!T.A.getBody().contains(pe.get(0))},_renderContentImpl(){const pe=(0,x.cY)(),Ee=this.option("contentTemplate"),le=this._getTemplate(Ee),Ke=this._templateManager.anonymousTemplateName===Ee;return le&&le.render({container:(0,C.cc)(this.$content()),noModel:!0,transclude:Ke,onRendered:()=>{pe.resolve(),this.option("templatesRenderAsynchronously")&&this._dimensionChanged()}}),this._toggleWrapperScrollEventsSubscription(this.option("preventScrollEvents")),pe.done(()=>{this.option("visible")&&this._moveToContainer()}),pe.promise()},_getPositionControllerConfig(){const{container:pe,visualContainer:Ee,_fixWrapperPosition:le,restorePosition:Ke,_skipContentPositioning:Be}=this.option();return{container:pe,visualContainer:Ee,$root:this.$element(),$content:this._$content,$wrapper:this._$wrapper,onPositioned:this._actions.onPositioned,onVisualPositionChanged:this._actions.onVisualPositionChanged,restorePosition:Ke,_fixWrapperPosition:le,_skipContentPositioning:Be}},_initPositionController(){this._positionController=new re.A(this._getPositionControllerConfig())},_toggleWrapperScrollEventsSubscription(pe){const Ee=(0,L.b4)(H.Cy,this.NAME);M.A.off(this._$wrapper,Ee),pe&&M.A.on(this._$wrapper,Ee,{validate:()=>!0,getDirection:()=>"both",_toggleGestureCover(le){le||this._toggleGestureCoverImpl(le)},_clearSelection:v.lQ,isNative:!0},le=>{const{originalEvent:Ke}=le.originalEvent,{type:Be}=Ke||{},q="wheel"===Be,Oe="mousemove"===Be,fe=q&&!(0,L.By)(le);le._cancelPreventDefault=!0,Ke&&!1!==le.cancelable&&(!Oe&&!q||fe)&&le.preventDefault()})},_moveFromContainer(){this._$content.appendTo(this.$element()),this._$wrapper.detach()},_checkContainerExists(){const pe=this._positionController.$container;void 0!==pe&&(pe.length>0||K.A.log("W1021",this.NAME))},_moveToContainer(){this._$wrapper.appendTo(this._positionController.$container),this._$content.appendTo(this._$wrapper)},_renderGeometry(pe){const{visible:Ee}=this.option();Ee&&(0,A.Vd)()&&(this._stopAnimation(),this._renderGeometryImpl())},_renderGeometryImpl(){this._positionController.updatePosition(this._getOptionValue("position")),this._renderWrapper(),this._renderDimensions(),this._renderPosition()},_renderPosition(){this._positionController.positionContent()},_isAllWindowCovered(){return(0,U.l6)(this._positionController.$visualContainer.get(0))&&this.option("shading")},_toggleSafariScrolling(){const pe=this.option("visible"),Ee=(0,k.A)(T.A.getBody()),le="ios"===m.A.real().platform&&P.A.safari,Ke=this._isAllWindowCovered(),Be=Ee.hasClass("dx-prevent-safari-scrolling");le&&(!Be||pe&&Ke&&!this._disposed?!Be&&pe&&Ke&&(this._cachedBodyScrollTop=Re.pageYOffset,Ee.addClass("dx-prevent-safari-scrolling")):(Ee.removeClass("dx-prevent-safari-scrolling"),Re.scrollTo(0,this._cachedBodyScrollTop),this._cachedBodyScrollTop=void 0))},_renderWrapper(){this._positionController.styleWrapperPosition(),this._renderWrapperDimensions(),this._positionController.positionWrapper()},_renderWrapperDimensions(){const{$visualContainer:pe}=this._positionController,Ee=T.A.getDocumentElement(),le=(0,U.l6)(pe.get(0)),Ke=le?Ee.clientWidth:(0,X.Ot)(pe),Be=le?Re.innerHeight:(0,X.P$)(pe);this._$wrapper.css({width:Ke,height:Be})},_renderDimensions(){const pe=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",pe),maxWidth:this._getOptionValue("maxWidth",pe),minHeight:this._getOptionValue("minHeight",pe),maxHeight:this._getOptionValue("maxHeight",pe),width:this._getOptionValue("width",pe),height:this._getOptionValue("height",pe)})},_focusTarget(){return this._$content},_attachKeyboardEvents(){this._keyboardListenerId=R.QJ.on(this._$content,null,pe=>this._keyboardHandler(pe))},_keyboardHandler(pe){((0,k.A)(pe.originalEvent.target).is(this._$content)||!this.option("ignoreChildEvents"))&&this.callBase(...arguments)},_isVisible(){return this.option("visible")},_visibilityChanged(pe){pe?this.option("visible")&&this._renderVisibilityAnimate(pe):this._renderVisibilityAnimate(pe)},_dimensionChanged(){this._renderGeometry()},_clean(){const pe=this.option();!this._contentAlreadyRendered&&!pe.isRenovated&&this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose(){S.A.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this._parentsScrollSubscriptionInfo=null,this.callBase(),this._toggleSafariScrolling(),this.option("visible")&&be.TF(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleRTLDirection(pe){this._$content.toggleClass("dx-rtl",pe)},_optionChanged(pe){const{value:Ee,name:le}=pe;if(this._getActionsList().includes(le))this._initActions();else switch(le){case"animation":case"closeOnOutsideClick":case"hideOnOutsideClick":case"propagateOutsideClick":break;case"shading":this._toggleShading(this.option("visible")),this._toggleSafariScrolling();break;case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":this._renderGeometry();break;case"position":this._positionController.updatePosition(this.option("position")),this._positionController.restorePositionOnNextRender(!0),this._renderGeometry(),this._toggleSafariScrolling();break;case"visible":this._renderVisibilityAnimate(Ee).done(()=>{var Ke;return null===(Ke=this._animateDeferred)||void 0===Ke?void 0:Ke.resolveWith(this)}).fail(()=>{var Ke;return null===(Ke=this._animateDeferred)||void 0===Ke?void 0:Ke.reject()});break;case"container":this._positionController.updateContainer(Ee),this._invalidate(),this._toggleSafariScrolling();break;case"visualContainer":this._positionController.updateVisualContainer(Ee),this._renderWrapper(),this._toggleSafariScrolling();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"hideTopOverlayHandler":this._toggleHideTopOverlayCallback(!1),this._initHideTopOverlayHandler(Ee),this._toggleHideTopOverlayCallback(this.option("visible"));break;case"hideOnParentScroll":case"_hideOnParentScrollTarget":this._toggleHideOnParentsScrollSubscription(this.option("visible"));break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.callBase(pe);break;case"_fixWrapperPosition":this._positionController.fixWrapperPosition=Ee;break;case"wrapperAttr":this._renderWrapperAttributes();break;case"restorePosition":this._positionController.restorePosition=Ee;break;case"preventScrollEvents":this._logDeprecatedPreventScrollEventsInfo(),this._toggleWrapperScrollEventsSubscription(Ee);break;default:this.callBase(pe)}},toggle(pe){pe=void 0===pe?!this.option("visible"):pe;const Ee=(0,x.cY)();if(pe===this.option("visible"))return Ee.resolveWith(this,[pe]).promise();const le=(0,x.cY)();return this._animateDeferred=le,this.option("visible",pe),le.promise().done(()=>{delete this._animateDeferred,Ee.resolveWith(this,[this.option("visible")])}).fail(()=>{delete this._animateDeferred,Ee.reject()}),Ee.promise()},$content(){return this._$content},show(){return this.toggle(!0)},hide(){return this.toggle(!1)},content(){return(0,C.cc)(this._$content)},repaint(){this._contentAlreadyRendered?(this._positionController.restorePositionOnNextRender(!0),this._renderGeometry({forceStopAnimation:!0}),(0,G.ho)(this._$content)):this.callBase()}});Ye.baseZIndex=pe=>be.E3(pe),(0,d.A)("dxOverlay",Ye);const Ae=Ye},3970:function(En){"use strict";En.exports=function(){const it=new Map,p={set(Zt,Ze,Lt){it.has(Zt)||it.set(Zt,new Map);const Hn=it.get(Zt);Hn.has(Ze)||0===Hn.size?Hn.set(Ze,Lt):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(Hn.keys())[0]}.`)},get:(Zt,Ze)=>it.has(Zt)&&it.get(Zt).get(Ze)||null,remove(Zt,Ze){if(!it.has(Zt))return;const Lt=it.get(Zt);Lt.delete(Ze),0===Lt.size&&it.delete(Zt)}},m="transitionend",T=Zt=>(Zt&&window.CSS&&window.CSS.escape&&(Zt=Zt.replace(/#([^\s"#']+)/g,(Ze,Lt)=>`#${CSS.escape(Lt)}`)),Zt),C=Zt=>null==Zt?`${Zt}`:Object.prototype.toString.call(Zt).match(/\s([a-z]+)/i)[1].toLowerCase(),w=Zt=>{Zt.dispatchEvent(new Event(m))},P=Zt=>!(!Zt||"object"!=typeof Zt)&&(typeof Zt.jquery<"u"&&(Zt=Zt[0]),typeof Zt.nodeType<"u"),v=Zt=>P(Zt)?Zt.jquery?Zt[0]:Zt:"string"==typeof Zt&&Zt.length>0?document.querySelector(T(Zt)):null,x=Zt=>{if(!P(Zt)||0===Zt.getClientRects().length)return!1;const Ze="visible"===getComputedStyle(Zt).getPropertyValue("visibility"),Lt=Zt.closest("details:not([open])");if(!Lt)return Ze;if(Lt!==Zt){const Hn=Zt.closest("summary");if(Hn&&Hn.parentNode!==Lt||null===Hn)return!1}return Ze},b=Zt=>!(Zt&&Zt.nodeType===Node.ELEMENT_NODE&&!Zt.classList.contains("disabled"))||(typeof Zt.disabled<"u"?Zt.disabled:Zt.hasAttribute("disabled")&&"false"!==Zt.getAttribute("disabled")),B=Zt=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof Zt.getRootNode){const Ze=Zt.getRootNode();return Ze instanceof ShadowRoot?Ze:null}return Zt instanceof ShadowRoot?Zt:Zt.parentNode?B(Zt.parentNode):null},j=()=>{},X=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,U=[],A=()=>"rtl"===document.documentElement.dir,M=Zt=>{(Zt=>{"loading"===document.readyState?(U.length||document.addEventListener("DOMContentLoaded",()=>{for(const Ze of U)Ze()}),U.push(Zt)):Zt()})(()=>{const Ze=X();if(Ze){const Lt=Zt.NAME,Hn=Ze.fn[Lt];Ze.fn[Lt]=Zt.jQueryInterface,Ze.fn[Lt].Constructor=Zt,Ze.fn[Lt].noConflict=()=>(Ze.fn[Lt]=Hn,Zt.jQueryInterface)}})},H=(Zt,Ze=[],Lt=Zt)=>"function"==typeof Zt?Zt(...Ze):Lt,J=(Zt,Ze,Lt=!0)=>{if(!Lt)return void H(Zt);const Ci=(Zt=>{if(!Zt)return 0;let{transitionDuration:Ze,transitionDelay:Lt}=window.getComputedStyle(Zt);const Hn=Number.parseFloat(Ze),Ci=Number.parseFloat(Lt);return Hn||Ci?(Ze=Ze.split(",")[0],Lt=Lt.split(",")[0],1e3*(Number.parseFloat(Ze)+Number.parseFloat(Lt))):0})(Ze)+5;let Ji=!1;const so=({target:Ao})=>{Ao===Ze&&(Ji=!0,Ze.removeEventListener(m,so),H(Zt))};Ze.addEventListener(m,so),setTimeout(()=>{Ji||w(Ze)},Ci)},R=(Zt,Ze,Lt,Hn)=>{const Ci=Zt.length;let Ji=Zt.indexOf(Ze);return-1===Ji?!Lt&&Hn?Zt[Ci-1]:Zt[0]:(Ji+=Lt?1:-1,Hn&&(Ji=(Ji+Ci)%Ci),Zt[Math.max(0,Math.min(Ji,Ci-1))])},L=/[^.]*(?=\..*)\.|.*/,G=/\..*/,Q=/::\d+$/,z={};let K=1;const ee={mouseenter:"mouseover",mouseleave:"mouseout"},re=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function be(Zt,Ze){return Ze&&`${Ze}::${K++}`||Zt.uidEvent||K++}function ce(Zt){const Ze=be(Zt);return Zt.uidEvent=Ze,z[Ze]=z[Ze]||{},z[Ze]}function De(Zt,Ze,Lt=null){return Object.values(Zt).find(Hn=>Hn.callable===Ze&&Hn.delegationSelector===Lt)}function Pe(Zt,Ze,Lt){const Hn="string"==typeof Ze,Ci=Hn?Lt:Ze||Lt;let Ji=he(Zt);return re.has(Ji)||(Ji=Zt),[Hn,Ci,Ji]}function Ie(Zt,Ze,Lt,Hn,Ci){if("string"!=typeof Ze||!Zt)return;let[Ji,so,Ao]=Pe(Ze,Lt,Hn);var Lr;Ze in ee&&(Lr=so,so=function(pr){if(!pr.relatedTarget||pr.relatedTarget!==pr.delegateTarget&&!pr.delegateTarget.contains(pr.relatedTarget))return Lr.call(this,pr)});const Xo=ce(Zt),As=Xo[Ao]||(Xo[Ao]={}),Zo=De(As,so,Ji?Lt:null);if(Zo)return void(Zo.oneOff=Zo.oneOff&&Ci);const qs=be(so,Ze.replace(L,"")),fr=Ji?function Se(Zt,Ze,Lt){return function Hn(Ci){const Ji=Zt.querySelectorAll(Ze);for(let{target:so}=Ci;so&&so!==this;so=so.parentNode)for(const Ao of Ji)if(Ao===so)return ye(Ci,{delegateTarget:so}),Hn.oneOff&&Ce.off(Zt,Ci.type,Ze,Lt),Lt.apply(so,[Ci])}}(Zt,Lt,so):function Re(Zt,Ze){return function Lt(Hn){return ye(Hn,{delegateTarget:Zt}),Lt.oneOff&&Ce.off(Zt,Hn.type,Ze),Ze.apply(Zt,[Hn])}}(Zt,so);fr.delegationSelector=Ji?Lt:null,fr.callable=so,fr.oneOff=Ci,fr.uidEvent=qs,As[qs]=fr,Zt.addEventListener(Ao,fr,Ji)}function W(Zt,Ze,Lt,Hn,Ci){const Ji=De(Ze[Lt],Hn,Ci);Ji&&(Zt.removeEventListener(Lt,Ji,!!Ci),delete Ze[Lt][Ji.uidEvent])}function ie(Zt,Ze,Lt,Hn){const Ci=Ze[Lt]||{};for(const[Ji,so]of Object.entries(Ci))Ji.includes(Hn)&&W(Zt,Ze,Lt,so.callable,so.delegationSelector)}function he(Zt){return Zt=Zt.replace(G,""),ee[Zt]||Zt}const Ce={on(Zt,Ze,Lt,Hn){Ie(Zt,Ze,Lt,Hn,!1)},one(Zt,Ze,Lt,Hn){Ie(Zt,Ze,Lt,Hn,!0)},off(Zt,Ze,Lt,Hn){if("string"!=typeof Ze||!Zt)return;const[Ci,Ji,so]=Pe(Ze,Lt,Hn),Ao=so!==Ze,Xo=ce(Zt),As=Xo[so]||{},Zo=Ze.startsWith(".");if(typeof Ji<"u"){if(!Object.keys(As).length)return;W(Zt,Xo,so,Ji,Ci?Lt:null)}else{if(Zo)for(const qs of Object.keys(Xo))ie(Zt,Xo,qs,Ze.slice(1));for(const[qs,fr]of Object.entries(As)){const or=qs.replace(Q,"");(!Ao||Ze.includes(or))&&W(Zt,Xo,so,fr.callable,fr.delegationSelector)}}},trigger(Zt,Ze,Lt){if("string"!=typeof Ze||!Zt)return null;const Hn=X();let so=null,Ao=!0,Xo=!0,As=!1;Ze!==he(Ze)&&Hn&&(so=Hn.Event(Ze,Lt),Hn(Zt).trigger(so),Ao=!so.isPropagationStopped(),Xo=!so.isImmediatePropagationStopped(),As=so.isDefaultPrevented());const Zo=ye(new Event(Ze,{bubbles:Ao,cancelable:!0}),Lt);return As&&Zo.preventDefault(),Xo&&Zt.dispatchEvent(Zo),Zo.defaultPrevented&&so&&so.preventDefault(),Zo}};function ye(Zt,Ze={}){for(const[Lt,Hn]of Object.entries(Ze))try{Zt[Lt]=Hn}catch{Object.defineProperty(Zt,Lt,{configurable:!0,get:()=>Hn})}return Zt}function Me(Zt){if("true"===Zt)return!0;if("false"===Zt)return!1;if(Zt===Number(Zt).toString())return Number(Zt);if(""===Zt||"null"===Zt)return null;if("string"!=typeof Zt)return Zt;try{return JSON.parse(decodeURIComponent(Zt))}catch{return Zt}}function _e(Zt){return Zt.replace(/[A-Z]/g,Ze=>`-${Ze.toLowerCase()}`)}const ke={setDataAttribute(Zt,Ze,Lt){Zt.setAttribute(`data-bs-${_e(Ze)}`,Lt)},removeDataAttribute(Zt,Ze){Zt.removeAttribute(`data-bs-${_e(Ze)}`)},getDataAttributes(Zt){if(!Zt)return{};const Ze={},Lt=Object.keys(Zt.dataset).filter(Hn=>Hn.startsWith("bs")&&!Hn.startsWith("bsConfig"));for(const Hn of Lt){let Ci=Hn.replace(/^bs/,"");Ci=Ci.charAt(0).toLowerCase()+Ci.slice(1,Ci.length),Ze[Ci]=Me(Zt.dataset[Hn])}return Ze},getDataAttribute:(Zt,Ze)=>Me(Zt.getAttribute(`data-bs-${_e(Ze)}`))};class Ye{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(Ze){return Ze=this._mergeConfigObj(Ze),Ze=this._configAfterMerge(Ze),this._typeCheckConfig(Ze),Ze}_configAfterMerge(Ze){return Ze}_mergeConfigObj(Ze,Lt){const Hn=P(Lt)?ke.getDataAttribute(Lt,"config"):{};return{...this.constructor.Default,..."object"==typeof Hn?Hn:{},...P(Lt)?ke.getDataAttributes(Lt):{},..."object"==typeof Ze?Ze:{}}}_typeCheckConfig(Ze,Lt=this.constructor.DefaultType){for(const[Hn,Ci]of Object.entries(Lt)){const Ji=Ze[Hn],so=P(Ji)?"element":C(Ji);if(!new RegExp(Ci).test(so))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${Hn}" provided type "${so}" but expected type "${Ci}".`)}}}class Ae extends Ye{constructor(Ze,Lt){super(),(Ze=v(Ze))&&(this._element=Ze,this._config=this._getConfig(Lt),p.set(this._element,this.constructor.DATA_KEY,this))}dispose(){p.remove(this._element,this.constructor.DATA_KEY),Ce.off(this._element,this.constructor.EVENT_KEY);for(const Ze of Object.getOwnPropertyNames(this))this[Ze]=null}_queueCallback(Ze,Lt,Hn=!0){J(Ze,Lt,Hn)}_getConfig(Ze){return Ze=this._mergeConfigObj(Ze,this._element),Ze=this._configAfterMerge(Ze),this._typeCheckConfig(Ze),Ze}static getInstance(Ze){return p.get(v(Ze),this.DATA_KEY)}static getOrCreateInstance(Ze,Lt={}){return this.getInstance(Ze)||new this(Ze,"object"==typeof Lt?Lt:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(Ze){return`${Ze}${this.EVENT_KEY}`}}const pe=Zt=>{let Ze=Zt.getAttribute("data-bs-target");if(!Ze||"#"===Ze){let Lt=Zt.getAttribute("href");if(!Lt||!Lt.includes("#")&&!Lt.startsWith("."))return null;Lt.includes("#")&&!Lt.startsWith("#")&&(Lt=`#${Lt.split("#")[1]}`),Ze=Lt&&"#"!==Lt?Lt.trim():null}return Ze?Ze.split(",").map(Lt=>T(Lt)).join(","):null},Ee={find:(Zt,Ze=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(Ze,Zt)),findOne:(Zt,Ze=document.documentElement)=>Element.prototype.querySelector.call(Ze,Zt),children:(Zt,Ze)=>[].concat(...Zt.children).filter(Lt=>Lt.matches(Ze)),parents(Zt,Ze){const Lt=[];let Hn=Zt.parentNode.closest(Ze);for(;Hn;)Lt.push(Hn),Hn=Hn.parentNode.closest(Ze);return Lt},prev(Zt,Ze){let Lt=Zt.previousElementSibling;for(;Lt;){if(Lt.matches(Ze))return[Lt];Lt=Lt.previousElementSibling}return[]},next(Zt,Ze){let Lt=Zt.nextElementSibling;for(;Lt;){if(Lt.matches(Ze))return[Lt];Lt=Lt.nextElementSibling}return[]},focusableChildren(Zt){const Ze=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(Lt=>`${Lt}:not([tabindex^="-"])`).join(",");return this.find(Ze,Zt).filter(Lt=>!b(Lt)&&x(Lt))},getSelectorFromElement(Zt){const Ze=pe(Zt);return Ze&&Ee.findOne(Ze)?Ze:null},getElementFromSelector(Zt){const Ze=pe(Zt);return Ze?Ee.findOne(Ze):null},getMultipleElementsFromSelector(Zt){const Ze=pe(Zt);return Ze?Ee.find(Ze):[]}},le=(Zt,Ze="hide")=>{const Hn=Zt.NAME;Ce.on(document,`click.dismiss${Zt.EVENT_KEY}`,`[data-bs-dismiss="${Hn}"]`,function(Ci){if(["A","AREA"].includes(this.tagName)&&Ci.preventDefault(),b(this))return;const Ji=Ee.getElementFromSelector(this)||this.closest(`.${Hn}`);Zt.getOrCreateInstance(Ji)[Ze]()})},q=".bs.alert",Oe=`close${q}`,fe=`closed${q}`;class Ve extends Ae{static get NAME(){return"alert"}close(){if(Ce.trigger(this._element,Oe).defaultPrevented)return;this._element.classList.remove("show");const Lt=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,Lt)}_destroyElement(){this._element.remove(),Ce.trigger(this._element,fe),this.dispose()}static jQueryInterface(Ze){return this.each(function(){const Lt=Ve.getOrCreateInstance(this);if("string"==typeof Ze){if(void 0===Lt[Ze]||Ze.startsWith("_")||"constructor"===Ze)throw new TypeError(`No method named "${Ze}"`);Lt[Ze](this)}})}}le(Ve,"close"),M(Ve);const et='[data-bs-toggle="button"]';class me extends Ae{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(Ze){return this.each(function(){const Lt=me.getOrCreateInstance(this);"toggle"===Ze&&Lt[Ze]()})}}Ce.on(document,"click.bs.button.data-api",et,Zt=>{Zt.preventDefault();const Ze=Zt.target.closest(et);me.getOrCreateInstance(Ze).toggle()}),M(me);const je=".bs.swipe",Ne=`touchstart${je}`,lt=`touchmove${je}`,Qe=`touchend${je}`,Ct=`pointerdown${je}`,yt=`pointerup${je}`,Mn={endCallback:null,leftCallback:null,rightCallback:null},On={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ji extends Ye{constructor(Ze,Lt){super(),this._element=Ze,Ze&&ji.isSupported()&&(this._config=this._getConfig(Lt),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Mn}static get DefaultType(){return On}static get NAME(){return"swipe"}dispose(){Ce.off(this._element,je)}_start(Ze){this._supportPointerEvents?this._eventIsPointerPenTouch(Ze)&&(this._deltaX=Ze.clientX):this._deltaX=Ze.touches[0].clientX}_end(Ze){this._eventIsPointerPenTouch(Ze)&&(this._deltaX=Ze.clientX-this._deltaX),this._handleSwipe(),H(this._config.endCallback)}_move(Ze){this._deltaX=Ze.touches&&Ze.touches.length>1?0:Ze.touches[0].clientX-this._deltaX}_handleSwipe(){const Ze=Math.abs(this._deltaX);if(Ze<=40)return;const Lt=Ze/this._deltaX;this._deltaX=0,Lt&&H(Lt>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ce.on(this._element,Ct,Ze=>this._start(Ze)),Ce.on(this._element,yt,Ze=>this._end(Ze)),this._element.classList.add("pointer-event")):(Ce.on(this._element,Ne,Ze=>this._start(Ze)),Ce.on(this._element,lt,Ze=>this._move(Ze)),Ce.on(this._element,Qe,Ze=>this._end(Ze)))}_eventIsPointerPenTouch(Ze){return this._supportPointerEvents&&("pen"===Ze.pointerType||"touch"===Ze.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Co=".bs.carousel",ti=".data-api",Qn="ArrowLeft",ei="ArrowRight",Jt="next",Pn="prev",Jn="left",Ii="right",vo=`slide${Co}`,pi=`slid${Co}`,Wo=`keydown${Co}`,To=`mouseenter${Co}`,hs=`mouseleave${Co}`,Ps=`dragstart${Co}`,ls=`load${Co}${ti}`,Hs=`click${Co}${ti}`,ss="carousel",qo="active",Ni=".active",Yi=".carousel-item",Sn=Ni+Yi,jt={[Qn]:Ii,[ei]:Jn},Ot={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Tn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ni extends Ae{constructor(Ze,Lt){super(Ze,Lt),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ee.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ss&&this.cycle()}static get Default(){return Ot}static get DefaultType(){return Tn}static get NAME(){return"carousel"}next(){this._slide(Jt)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(Pn)}pause(){this._isSliding&&w(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding)return void Ce.one(this._element,pi,()=>this.cycle());this.cycle()}}to(Ze){const Lt=this._getItems();if(Ze>Lt.length-1||Ze<0)return;if(this._isSliding)return void Ce.one(this._element,pi,()=>this.to(Ze));const Hn=this._getItemIndex(this._getActive());Hn!==Ze&&this._slide(Ze>Hn?Jt:Pn,Lt[Ze])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(Ze){return Ze.defaultInterval=Ze.interval,Ze}_addEventListeners(){this._config.keyboard&&Ce.on(this._element,Wo,Ze=>this._keydown(Ze)),"hover"===this._config.pause&&(Ce.on(this._element,To,()=>this.pause()),Ce.on(this._element,hs,()=>this._maybeEnableCycle())),this._config.touch&&ji.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const Hn of Ee.find(".carousel-item img",this._element))Ce.on(Hn,Ps,Ci=>Ci.preventDefault());this._swipeHelper=new ji(this._element,{leftCallback:()=>this._slide(this._directionToOrder(Jn)),rightCallback:()=>this._slide(this._directionToOrder(Ii)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}})}_keydown(Ze){if(/input|textarea/i.test(Ze.target.tagName))return;const Lt=jt[Ze.key];Lt&&(Ze.preventDefault(),this._slide(this._directionToOrder(Lt)))}_getItemIndex(Ze){return this._getItems().indexOf(Ze)}_setActiveIndicatorElement(Ze){if(!this._indicatorsElement)return;const Lt=Ee.findOne(Ni,this._indicatorsElement);Lt.classList.remove(qo),Lt.removeAttribute("aria-current");const Hn=Ee.findOne(`[data-bs-slide-to="${Ze}"]`,this._indicatorsElement);Hn&&(Hn.classList.add(qo),Hn.setAttribute("aria-current","true"))}_updateInterval(){const Ze=this._activeElement||this._getActive();if(!Ze)return;const Lt=Number.parseInt(Ze.getAttribute("data-bs-interval"),10);this._config.interval=Lt||this._config.defaultInterval}_slide(Ze,Lt=null){if(this._isSliding)return;const Hn=this._getActive(),Ci=Ze===Jt,Ji=Lt||R(this._getItems(),Hn,Ci,this._config.wrap);if(Ji===Hn)return;const so=this._getItemIndex(Ji),Ao=or=>Ce.trigger(this._element,or,{relatedTarget:Ji,direction:this._orderToDirection(Ze),from:this._getItemIndex(Hn),to:so});if(Ao(vo).defaultPrevented||!Hn||!Ji)return;const As=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(so),this._activeElement=Ji;const Zo=Ci?"carousel-item-start":"carousel-item-end",qs=Ci?"carousel-item-next":"carousel-item-prev";Ji.classList.add(qs),Hn.classList.add(Zo),Ji.classList.add(Zo),this._queueCallback(()=>{Ji.classList.remove(Zo,qs),Ji.classList.add(qo),Hn.classList.remove(qo,qs,Zo),this._isSliding=!1,Ao(pi)},Hn,this._isAnimated()),As&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Ee.findOne(Sn,this._element)}_getItems(){return Ee.find(Yi,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(Ze){return A()?Ze===Jn?Pn:Jt:Ze===Jn?Jt:Pn}_orderToDirection(Ze){return A()?Ze===Pn?Jn:Ii:Ze===Pn?Ii:Jn}static jQueryInterface(Ze){return this.each(function(){const Lt=ni.getOrCreateInstance(this,Ze);if("number"!=typeof Ze){if("string"==typeof Ze){if(void 0===Lt[Ze]||Ze.startsWith("_")||"constructor"===Ze)throw new TypeError(`No method named "${Ze}"`);Lt[Ze]()}}else Lt.to(Ze)})}}Ce.on(document,Hs,"[data-bs-slide], [data-bs-slide-to]",function(Zt){const Ze=Ee.getElementFromSelector(this);if(!Ze||!Ze.classList.contains(ss))return;Zt.preventDefault();const Lt=ni.getOrCreateInstance(Ze),Hn=this.getAttribute("data-bs-slide-to");return Hn?(Lt.to(Hn),void Lt._maybeEnableCycle()):"next"===ke.getDataAttribute(this,"slide")?(Lt.next(),void Lt._maybeEnableCycle()):(Lt.prev(),void Lt._maybeEnableCycle())}),Ce.on(window,ls,()=>{const Zt=Ee.find('[data-bs-ride="carousel"]');for(const Ze of Zt)ni.getOrCreateInstance(Ze)}),M(ni);const ro=".bs.collapse",ho=`show${ro}`,St=`shown${ro}`,Qt=`hide${ro}`,jn=`hidden${ro}`,ai=`click${ro}.data-api`,$i="show",zi="collapse",_o="collapsing",gs=`:scope .${zi} .${zi}`,Xi='[data-bs-toggle="collapse"]',Oo={parent:null,toggle:!0},Fo={parent:"(null|element)",toggle:"boolean"};class Vs extends Ae{constructor(Ze,Lt){super(Ze,Lt),this._isTransitioning=!1,this._triggerArray=[];const Hn=Ee.find(Xi);for(const Ci of Hn){const Ji=Ee.getSelectorFromElement(Ci),so=Ee.find(Ji).filter(Ao=>Ao===this._element);null!==Ji&&so.length&&this._triggerArray.push(Ci)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Oo}static get DefaultType(){return Fo}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let Ze=[];if(this._config.parent&&(Ze=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(Ao=>Ao!==this._element).map(Ao=>Vs.getOrCreateInstance(Ao,{toggle:!1}))),Ze.length&&Ze[0]._isTransitioning||Ce.trigger(this._element,ho).defaultPrevented)return;for(const Ao of Ze)Ao.hide();const Hn=this._getDimension();this._element.classList.remove(zi),this._element.classList.add(_o),this._element.style[Hn]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const so=`scroll${Hn[0].toUpperCase()+Hn.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(_o),this._element.classList.add(zi,$i),this._element.style[Hn]="",Ce.trigger(this._element,St)},this._element,!0),this._element.style[Hn]=`${this._element[so]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ce.trigger(this._element,Qt).defaultPrevented)return;const Lt=this._getDimension();this._element.style[Lt]=`${this._element.getBoundingClientRect()[Lt]}px`,this._element.classList.add(_o),this._element.classList.remove(zi,$i);for(const Ci of this._triggerArray){const Ji=Ee.getElementFromSelector(Ci);Ji&&!this._isShown(Ji)&&this._addAriaAndCollapsedClass([Ci],!1)}this._isTransitioning=!0;this._element.style[Lt]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(_o),this._element.classList.add(zi),Ce.trigger(this._element,jn)},this._element,!0)}_isShown(Ze=this._element){return Ze.classList.contains($i)}_configAfterMerge(Ze){return Ze.toggle=!!Ze.toggle,Ze.parent=v(Ze.parent),Ze}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const Ze=this._getFirstLevelChildren(Xi);for(const Lt of Ze){const Hn=Ee.getElementFromSelector(Lt);Hn&&this._addAriaAndCollapsedClass([Lt],this._isShown(Hn))}}_getFirstLevelChildren(Ze){const Lt=Ee.find(gs,this._config.parent);return Ee.find(Ze,this._config.parent).filter(Hn=>!Lt.includes(Hn))}_addAriaAndCollapsedClass(Ze,Lt){if(Ze.length)for(const Hn of Ze)Hn.classList.toggle("collapsed",!Lt),Hn.setAttribute("aria-expanded",Lt)}static jQueryInterface(Ze){const Lt={};return"string"==typeof Ze&&/show|hide/.test(Ze)&&(Lt.toggle=!1),this.each(function(){const Hn=Vs.getOrCreateInstance(this,Lt);if("string"==typeof Ze){if(typeof Hn[Ze]>"u")throw new TypeError(`No method named "${Ze}"`);Hn[Ze]()}})}}Ce.on(document,ai,Xi,function(Zt){("A"===Zt.target.tagName||Zt.delegateTarget&&"A"===Zt.delegateTarget.tagName)&&Zt.preventDefault();for(const Ze of Ee.getMultipleElementsFromSelector(this))Vs.getOrCreateInstance(Ze,{toggle:!1}).toggle()}),M(Vs);var fs="top",zt="bottom",zn="right",pn="left",An="auto",fi=[fs,zt,zn,pn],qi="start",So="end",Go="clippingParents",xs="viewport",Rs="popper",ks="reference",_s=fi.reduce(function(Zt,Ze){return Zt.concat([Ze+"-"+qi,Ze+"-"+So])},[]),Bs=[].concat(fi,[An]).reduce(function(Zt,Ze){return Zt.concat([Ze,Ze+"-"+qi,Ze+"-"+So])},[]),Ss="beforeRead",en="afterRead",Dn="beforeMain",gi="afterMain",mi="beforeWrite",Yt="afterWrite",Dt=[Ss,"read",en,Dn,"main",gi,mi,"write",Yt];function mn(Zt){return Zt?(Zt.nodeName||"").toLowerCase():null}function Yn(Zt){if(null==Zt)return window;if("[object Window]"!==Zt.toString()){var Ze=Zt.ownerDocument;return Ze&&Ze.defaultView||window}return Zt}function xi(Zt){return Zt instanceof Yn(Zt).Element||Zt instanceof Element}function Ki(Zt){return Zt instanceof Yn(Zt).HTMLElement||Zt instanceof HTMLElement}function Ro(Zt){return!(typeof ShadowRoot>"u")&&(Zt instanceof Yn(Zt).ShadowRoot||Zt instanceof ShadowRoot)}const Ho={name:"applyStyles",enabled:!0,phase:"write",fn:function yo(Zt){var Ze=Zt.state;Object.keys(Ze.elements).forEach(function(Lt){var Hn=Ze.styles[Lt]||{},Ci=Ze.attributes[Lt]||{},Ji=Ze.elements[Lt];!Ki(Ji)||!mn(Ji)||(Object.assign(Ji.style,Hn),Object.keys(Ci).forEach(function(so){var Ao=Ci[so];!1===Ao?Ji.removeAttribute(so):Ji.setAttribute(so,!0===Ao?"":Ao)}))})},effect:function ko(Zt){var Ze=Zt.state,Lt={popper:{position:Ze.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(Ze.elements.popper.style,Lt.popper),Ze.styles=Lt,Ze.elements.arrow&&Object.assign(Ze.elements.arrow.style,Lt.arrow),function(){Object.keys(Ze.elements).forEach(function(Hn){var Ci=Ze.elements[Hn],Ji=Ze.attributes[Hn]||{},Ao=Object.keys(Ze.styles.hasOwnProperty(Hn)?Ze.styles[Hn]:Lt[Hn]).reduce(function(Xo,As){return Xo[As]="",Xo},{});!Ki(Ci)||!mn(Ci)||(Object.assign(Ci.style,Ao),Object.keys(Ji).forEach(function(Xo){Ci.removeAttribute(Xo)}))})}},requires:["computeStyles"]};function ms(Zt){return Zt.split("-")[0]}var ds=Math.max,Bo=Math.min,ws=Math.round;function Ys(){var Zt=navigator.userAgentData;return null!=Zt&&Zt.brands&&Array.isArray(Zt.brands)?Zt.brands.map(function(Ze){return Ze.brand+"/"+Ze.version}).join(" "):navigator.userAgent}function Us(){return!/^((?!chrome|android).)*safari/i.test(Ys())}function Qs(Zt,Ze,Lt){void 0===Ze&&(Ze=!1),void 0===Lt&&(Lt=!1);var Hn=Zt.getBoundingClientRect(),Ci=1,Ji=1;Ze&&Ki(Zt)&&(Ci=Zt.offsetWidth>0&&ws(Hn.width)/Zt.offsetWidth||1,Ji=Zt.offsetHeight>0&&ws(Hn.height)/Zt.offsetHeight||1);var Ao=(xi(Zt)?Yn(Zt):window).visualViewport,Xo=!Us()&&Lt,As=(Hn.left+(Xo&&Ao?Ao.offsetLeft:0))/Ci,Zo=(Hn.top+(Xo&&Ao?Ao.offsetTop:0))/Ji,qs=Hn.width/Ci,fr=Hn.height/Ji;return{width:qs,height:fr,top:Zo,right:As+qs,bottom:Zo+fr,left:As,x:As,y:Zo}}function nr(Zt){var Ze=Qs(Zt),Lt=Zt.offsetWidth,Hn=Zt.offsetHeight;return Math.abs(Ze.width-Lt)<=1&&(Lt=Ze.width),Math.abs(Ze.height-Hn)<=1&&(Hn=Ze.height),{x:Zt.offsetLeft,y:Zt.offsetTop,width:Lt,height:Hn}}function gn(Zt,Ze){var Lt=Ze.getRootNode&&Ze.getRootNode();if(Zt.contains(Ze))return!0;if(Lt&&Ro(Lt)){var Hn=Ze;do{if(Hn&&Zt.isSameNode(Hn))return!0;Hn=Hn.parentNode||Hn.host}while(Hn)}return!1}function Xt(Zt){return Yn(Zt).getComputedStyle(Zt)}function hn(Zt){return["table","td","th"].indexOf(mn(Zt))>=0}function Wn(Zt){return((xi(Zt)?Zt.ownerDocument:Zt.document)||window.document).documentElement}function Fi(Zt){return"html"===mn(Zt)?Zt:Zt.assignedSlot||Zt.parentNode||(Ro(Zt)?Zt.host:null)||Wn(Zt)}function io(Zt){return Ki(Zt)&&"fixed"!==Xt(Zt).position?Zt.offsetParent:null}function Mo(Zt){for(var Ze=Yn(Zt),Lt=io(Zt);Lt&&hn(Lt)&&"static"===Xt(Lt).position;)Lt=io(Lt);return Lt&&("html"===mn(Lt)||"body"===mn(Lt)&&"static"===Xt(Lt).position)?Ze:Lt||function bo(Zt){var Ze=/firefox/i.test(Ys());if(/Trident/i.test(Ys())&&Ki(Zt)&&"fixed"===Xt(Zt).position)return null;var Ci=Fi(Zt);for(Ro(Ci)&&(Ci=Ci.host);Ki(Ci)&&["html","body"].indexOf(mn(Ci))<0;){var Ji=Xt(Ci);if("none"!==Ji.transform||"none"!==Ji.perspective||"paint"===Ji.contain||-1!==["transform","perspective"].indexOf(Ji.willChange)||Ze&&"filter"===Ji.willChange||Ze&&Ji.filter&&"none"!==Ji.filter)return Ci;Ci=Ci.parentNode}return null}(Zt)||Ze}function rs(Zt){return["top","bottom"].indexOf(Zt)>=0?"x":"y"}function is(Zt,Ze,Lt){return ds(Zt,Bo(Ze,Lt))}function ir(Zt){return Object.assign({},{top:0,right:0,bottom:0,left:0},Zt)}function Cr(Zt,Ze){return Ze.reduce(function(Lt,Hn){return Lt[Hn]=Zt,Lt},{})}const Tr={name:"arrow",enabled:!0,phase:"main",fn:function Or(Zt){var Ze,Lt=Zt.state,Hn=Zt.name,Ci=Zt.options,Ji=Lt.elements.arrow,so=Lt.modifiersData.popperOffsets,Ao=ms(Lt.placement),Xo=rs(Ao),Zo=[pn,zn].indexOf(Ao)>=0?"height":"width";if(Ji&&so){var qs=function(Ze,Lt){return ir("number"!=typeof(Ze="function"==typeof Ze?Ze(Object.assign({},Lt.rects,{placement:Lt.placement})):Ze)?Ze:Cr(Ze,fi))}(Ci.padding,Lt),fr=nr(Ji),or="y"===Xo?fs:pn,Lr="y"===Xo?zt:zn,pr=Lt.rects.reference[Zo]+Lt.rects.reference[Xo]-so[Xo]-Lt.rects.popper[Zo],Pr=so[Xo]-Lt.rects.reference[Xo],Gr=Mo(Ji),Wr=Gr?"y"===Xo?Gr.clientHeight||0:Gr.clientWidth||0:0,$r=Wr/2-fr[Zo]/2+(pr/2-Pr/2),da=is(qs[or],$r,Wr-fr[Zo]-qs[Lr]);Lt.modifiersData[Hn]=((Ze={})[Xo]=da,Ze.centerOffset=da-$r,Ze)}},effect:function rr(Zt){var Ze=Zt.state,Hn=Zt.options.element,Ci=void 0===Hn?"[data-popper-arrow]":Hn;null!=Ci&&("string"==typeof Ci&&!(Ci=Ze.elements.popper.querySelector(Ci))||gn(Ze.elements.popper,Ci)&&(Ze.elements.arrow=Ci))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ur(Zt){return Zt.split("-")[1]}var Ar={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vr(Zt){var Ze,Lt=Zt.popper,Hn=Zt.popperRect,Ci=Zt.placement,Ji=Zt.variation,so=Zt.offsets,Ao=Zt.position,Xo=Zt.gpuAcceleration,As=Zt.adaptive,Zo=Zt.roundOffsets,qs=Zt.isFixed,fr=so.x,or=void 0===fr?0:fr,Lr=so.y,pr=void 0===Lr?0:Lr,Pr="function"==typeof Zo?Zo({x:or,y:pr}):{x:or,y:pr};or=Pr.x,pr=Pr.y;var Gr=so.hasOwnProperty("x"),Wr=so.hasOwnProperty("y"),na=pn,mr=fs,Fr=window;if(As){var $r=Mo(Lt),da="clientHeight",ka="clientWidth";$r===Yn(Lt)&&"static"!==Xt($r=Wn(Lt)).position&&"absolute"===Ao&&(da="scrollHeight",ka="scrollWidth"),(Ci===fs||(Ci===pn||Ci===zn)&&Ji===So)&&(mr=zt,pr-=(qs&&$r===Fr&&Fr.visualViewport?Fr.visualViewport.height:$r[da])-Hn.height,pr*=Xo?1:-1),Ci!==pn&&(Ci!==fs&&Ci!==zt||Ji!==So)||(na=zn,or-=(qs&&$r===Fr&&Fr.visualViewport?Fr.visualViewport.width:$r[ka])-Hn.width,or*=Xo?1:-1)}var Xa,Ha=Object.assign({position:Ao},As&&Ar),il=!0===Zo?function ea(Zt,Ze){var Hn=Zt.y,Ci=Ze.devicePixelRatio||1;return{x:ws(Zt.x*Ci)/Ci||0,y:ws(Hn*Ci)/Ci||0}}({x:or,y:pr},Yn(Lt)):{x:or,y:pr};return or=il.x,pr=il.y,Object.assign({},Ha,Xo?((Xa={})[mr]=Wr?"0":"",Xa[na]=Gr?"0":"",Xa.transform=(Fr.devicePixelRatio||1)<=1?"translate("+or+"px, "+pr+"px)":"translate3d("+or+"px, "+pr+"px, 0)",Xa):((Ze={})[mr]=Wr?pr+"px":"",Ze[na]=Gr?or+"px":"",Ze.transform="",Ze))}const jr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function Hr(Zt){var Ze=Zt.state,Lt=Zt.options,Hn=Lt.gpuAcceleration,Ci=void 0===Hn||Hn,Ji=Lt.adaptive,so=void 0===Ji||Ji,Ao=Lt.roundOffsets,Xo=void 0===Ao||Ao,As={placement:ms(Ze.placement),variation:ur(Ze.placement),popper:Ze.elements.popper,popperRect:Ze.rects.popper,gpuAcceleration:Ci,isFixed:"fixed"===Ze.options.strategy};null!=Ze.modifiersData.popperOffsets&&(Ze.styles.popper=Object.assign({},Ze.styles.popper,Vr(Object.assign({},As,{offsets:Ze.modifiersData.popperOffsets,position:Ze.options.strategy,adaptive:so,roundOffsets:Xo})))),null!=Ze.modifiersData.arrow&&(Ze.styles.arrow=Object.assign({},Ze.styles.arrow,Vr(Object.assign({},As,{offsets:Ze.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Xo})))),Ze.attributes.popper=Object.assign({},Ze.attributes.popper,{"data-popper-placement":Ze.placement})},data:{}};var Ir={passive:!0};const ca={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function va(Zt){var Ze=Zt.state,Lt=Zt.instance,Hn=Zt.options,Ci=Hn.scroll,Ji=void 0===Ci||Ci,so=Hn.resize,Ao=void 0===so||so,Xo=Yn(Ze.elements.popper),As=[].concat(Ze.scrollParents.reference,Ze.scrollParents.popper);return Ji&&As.forEach(function(Zo){Zo.addEventListener("scroll",Lt.update,Ir)}),Ao&&Xo.addEventListener("resize",Lt.update,Ir),function(){Ji&&As.forEach(function(Zo){Zo.removeEventListener("scroll",Lt.update,Ir)}),Ao&&Xo.removeEventListener("resize",Lt.update,Ir)}},data:{}};var oa={left:"right",right:"left",bottom:"top",top:"bottom"};function ot(Zt){return Zt.replace(/left|right|bottom|top/g,function(Ze){return oa[Ze]})}var Bt={start:"end",end:"start"};function qt(Zt){return Zt.replace(/start|end/g,function(Ze){return Bt[Ze]})}function bn(Zt){var Ze=Yn(Zt);return{scrollLeft:Ze.pageXOffset,scrollTop:Ze.pageYOffset}}function kn(Zt){return Qs(Wn(Zt)).left+bn(Zt).scrollLeft}function co(Zt){var Ze=Xt(Zt);return/auto|scroll|overlay|hidden/.test(Ze.overflow+Ze.overflowY+Ze.overflowX)}function Po(Zt){return["html","body","#document"].indexOf(mn(Zt))>=0?Zt.ownerDocument.body:Ki(Zt)&&co(Zt)?Zt:Po(Fi(Zt))}function Ko(Zt,Ze){var Lt;void 0===Ze&&(Ze=[]);var Hn=Po(Zt),Ci=Hn===(null==(Lt=Zt.ownerDocument)?void 0:Lt.body),Ji=Yn(Hn),so=Ci?[Ji].concat(Ji.visualViewport||[],co(Hn)?Hn:[]):Hn,Ao=Ze.concat(so);return Ci?Ao:Ao.concat(Ko(Fi(so)))}function Ft(Zt){return Object.assign({},Zt,{left:Zt.x,top:Zt.y,right:Zt.x+Zt.width,bottom:Zt.y+Zt.height})}function xt(Zt,Ze,Lt){return Ze===xs?Ft(function yi(Zt,Ze){var Lt=Yn(Zt),Hn=Wn(Zt),Ci=Lt.visualViewport,Ji=Hn.clientWidth,so=Hn.clientHeight,Ao=0,Xo=0;if(Ci){Ji=Ci.width,so=Ci.height;var As=Us();(As||!As&&"fixed"===Ze)&&(Ao=Ci.offsetLeft,Xo=Ci.offsetTop)}return{width:Ji,height:so,x:Ao+kn(Zt),y:Xo}}(Zt,Lt)):xi(Ze)?function Wt(Zt,Ze){var Lt=Qs(Zt,!1,"fixed"===Ze);return Lt.top=Lt.top+Zt.clientTop,Lt.left=Lt.left+Zt.clientLeft,Lt.bottom=Lt.top+Zt.clientHeight,Lt.right=Lt.left+Zt.clientWidth,Lt.width=Zt.clientWidth,Lt.height=Zt.clientHeight,Lt.x=Lt.left,Lt.y=Lt.top,Lt}(Ze,Lt):Ft(function Hi(Zt){var Ze,Lt=Wn(Zt),Hn=bn(Zt),Ci=null==(Ze=Zt.ownerDocument)?void 0:Ze.body,Ji=ds(Lt.scrollWidth,Lt.clientWidth,Ci?Ci.scrollWidth:0,Ci?Ci.clientWidth:0),so=ds(Lt.scrollHeight,Lt.clientHeight,Ci?Ci.scrollHeight:0,Ci?Ci.clientHeight:0),Ao=-Hn.scrollLeft+kn(Zt),Xo=-Hn.scrollTop;return"rtl"===Xt(Ci||Lt).direction&&(Ao+=ds(Lt.clientWidth,Ci?Ci.clientWidth:0)-Ji),{width:Ji,height:so,x:Ao,y:Xo}}(Wn(Zt)))}function He(Zt,Ze,Lt,Hn){var Ci="clippingParents"===Ze?function Fe(Zt){var Ze=Ko(Fi(Zt)),Hn=["absolute","fixed"].indexOf(Xt(Zt).position)>=0&&Ki(Zt)?Mo(Zt):Zt;return xi(Hn)?Ze.filter(function(Ci){return xi(Ci)&&gn(Ci,Hn)&&"body"!==mn(Ci)}):[]}(Zt):[].concat(Ze),Ji=[].concat(Ci,[Lt]),Ao=Ji.reduce(function(Xo,As){var Zo=xt(Zt,As,Hn);return Xo.top=ds(Zo.top,Xo.top),Xo.right=Bo(Zo.right,Xo.right),Xo.bottom=Bo(Zo.bottom,Xo.bottom),Xo.left=ds(Zo.left,Xo.left),Xo},xt(Zt,Ji[0],Hn));return Ao.width=Ao.right-Ao.left,Ao.height=Ao.bottom-Ao.top,Ao.x=Ao.left,Ao.y=Ao.top,Ao}function wt(Zt){var Xo,Ze=Zt.reference,Lt=Zt.element,Hn=Zt.placement,Ci=Hn?ms(Hn):null,Ji=Hn?ur(Hn):null,so=Ze.x+Ze.width/2-Lt.width/2,Ao=Ze.y+Ze.height/2-Lt.height/2;switch(Ci){case fs:Xo={x:so,y:Ze.y-Lt.height};break;case zt:Xo={x:so,y:Ze.y+Ze.height};break;case zn:Xo={x:Ze.x+Ze.width,y:Ao};break;case pn:Xo={x:Ze.x-Lt.width,y:Ao};break;default:Xo={x:Ze.x,y:Ze.y}}var As=Ci?rs(Ci):null;if(null!=As){var Zo="y"===As?"height":"width";switch(Ji){case qi:Xo[As]=Xo[As]-(Ze[Zo]/2-Lt[Zo]/2);break;case So:Xo[As]=Xo[As]+(Ze[Zo]/2-Lt[Zo]/2)}}return Xo}function Ut(Zt,Ze){void 0===Ze&&(Ze={});var Hn=Ze.placement,Ci=void 0===Hn?Zt.placement:Hn,Ji=Ze.strategy,so=void 0===Ji?Zt.strategy:Ji,Ao=Ze.boundary,Xo=void 0===Ao?Go:Ao,As=Ze.rootBoundary,Zo=void 0===As?xs:As,qs=Ze.elementContext,fr=void 0===qs?Rs:qs,or=Ze.altBoundary,Lr=void 0!==or&&or,pr=Ze.padding,Pr=void 0===pr?0:pr,Gr=ir("number"!=typeof Pr?Pr:Cr(Pr,fi)),na=Zt.rects.popper,mr=Zt.elements[Lr?fr===Rs?ks:Rs:fr],Fr=He(xi(mr)?mr:mr.contextElement||Wn(Zt.elements.popper),Xo,Zo,so),$r=Qs(Zt.elements.reference),da=wt({reference:$r,element:na,strategy:"absolute",placement:Ci}),ka=Ft(Object.assign({},na,da)),Oa=fr===Rs?ka:$r,ua={top:Fr.top-Oa.top+Gr.top,bottom:Oa.bottom-Fr.bottom+Gr.bottom,left:Fr.left-Oa.left+Gr.left,right:Oa.right-Fr.right+Gr.right},Ha=Zt.modifiersData.offset;if(fr===Rs&&Ha){var il=Ha[Ci];Object.keys(ua).forEach(function(Xa){var Xl=[zn,zt].indexOf(Xa)>=0?1:-1,Ml=[fs,zt].indexOf(Xa)>=0?"y":"x";ua[Xa]+=il[Ml]*Xl})}return ua}const bi={name:"flip",enabled:!0,phase:"main",fn:function $n(Zt){var Ze=Zt.state,Lt=Zt.options,Hn=Zt.name;if(!Ze.modifiersData[Hn]._skip){for(var Ci=Lt.mainAxis,Ji=void 0===Ci||Ci,so=Lt.altAxis,Ao=void 0===so||so,Xo=Lt.fallbackPlacements,As=Lt.padding,Zo=Lt.boundary,qs=Lt.rootBoundary,fr=Lt.altBoundary,or=Lt.flipVariations,Lr=void 0===or||or,pr=Lt.allowedAutoPlacements,Pr=Ze.options.placement,Gr=ms(Pr),na=Xo||(Gr!==Pr&&Lr?function Ln(Zt){if(ms(Zt)===An)return[];var Ze=ot(Zt);return[qt(Zt),Ze,qt(Ze)]}(Pr):[ot(Pr)]),mr=[Pr].concat(na).reduce(function(Ql,fa){return Ql.concat(ms(fa)===An?function cn(Zt,Ze){void 0===Ze&&(Ze={});var Ci=Ze.boundary,Ji=Ze.rootBoundary,so=Ze.padding,Ao=Ze.flipVariations,Xo=Ze.allowedAutoPlacements,As=void 0===Xo?Bs:Xo,Zo=ur(Ze.placement),qs=Zo?Ao?_s:_s.filter(function(Lr){return ur(Lr)===Zo}):fi,fr=qs.filter(function(Lr){return As.indexOf(Lr)>=0});0===fr.length&&(fr=qs);var or=fr.reduce(function(Lr,pr){return Lr[pr]=Ut(Zt,{placement:pr,boundary:Ci,rootBoundary:Ji,padding:so})[ms(pr)],Lr},{});return Object.keys(or).sort(function(Lr,pr){return or[Lr]-or[pr]})}(Ze,{placement:fa,boundary:Zo,rootBoundary:qs,padding:As,flipVariations:Lr,allowedAutoPlacements:pr}):fa)},[]),Fr=Ze.rects.reference,$r=Ze.rects.popper,da=new Map,ka=!0,Oa=mr[0],ua=0;ua<mr.length;ua++){var Ha=mr[ua],il=ms(Ha),Xa=ur(Ha)===qi,Xl=[fs,zt].indexOf(il)>=0,Ml=Xl?"width":"height",ol=Ut(Ze,{placement:Ha,boundary:Zo,rootBoundary:qs,altBoundary:fr,padding:As}),Ya=Xl?Xa?zn:pn:Xa?zt:fs;Fr[Ml]>$r[Ml]&&(Ya=ot(Ya));var Md=ot(Ya),Yl=[];if(Ji&&Yl.push(ol[il]<=0),Ao&&Yl.push(ol[Ya]<=0,ol[Md]<=0),Yl.every(function(Ql){return Ql})){Oa=Ha,ka=!1;break}da.set(Ha,Yl)}if(ka)for(var ed=function(fa){var Pl=mr.find(function(Rd){var uc=da.get(Rd);if(uc)return uc.slice(0,fa).every(function(Ia){return Ia})});if(Pl)return Oa=Pl,"break"},Pd=Lr?3:1;Pd>0&&"break"!==ed(Pd);Pd--);Ze.placement!==Oa&&(Ze.modifiersData[Hn]._skip=!0,Ze.placement=Oa,Ze.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function vi(Zt,Ze,Lt){return void 0===Lt&&(Lt={x:0,y:0}),{top:Zt.top-Ze.height-Lt.y,right:Zt.right-Ze.width+Lt.x,bottom:Zt.bottom-Ze.height+Lt.y,left:Zt.left-Ze.width-Lt.x}}function ki(Zt){return[fs,zn,zt,pn].some(function(Ze){return Zt[Ze]>=0})}const Wi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function Si(Zt){var Ze=Zt.state,Lt=Zt.name,Hn=Ze.rects.reference,Ci=Ze.rects.popper,Ji=Ze.modifiersData.preventOverflow,so=Ut(Ze,{elementContext:"reference"}),Ao=Ut(Ze,{altBoundary:!0}),Xo=vi(so,Hn),As=vi(Ao,Ci,Ji),Zo=ki(Xo),qs=ki(As);Ze.modifiersData[Lt]={referenceClippingOffsets:Xo,popperEscapeOffsets:As,isReferenceHidden:Zo,hasPopperEscaped:qs},Ze.attributes.popper=Object.assign({},Ze.attributes.popper,{"data-popper-reference-hidden":Zo,"data-popper-escaped":qs})}};const Do={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function oo(Zt){var Ze=Zt.state,Hn=Zt.name,Ci=Zt.options.offset,Ji=void 0===Ci?[0,0]:Ci,so=Bs.reduce(function(Zo,qs){return Zo[qs]=function Pi(Zt,Ze,Lt){var Hn=ms(Zt),Ci=[pn,fs].indexOf(Hn)>=0?-1:1,Ji="function"==typeof Lt?Lt(Object.assign({},Ze,{placement:Zt})):Lt,so=Ji[0],Ao=Ji[1];return so=so||0,Ao=(Ao||0)*Ci,[pn,zn].indexOf(Hn)>=0?{x:Ao,y:so}:{x:so,y:Ao}}(qs,Ze.rects,Ji),Zo},{}),Ao=so[Ze.placement],As=Ao.y;null!=Ze.modifiersData.popperOffsets&&(Ze.modifiersData.popperOffsets.x+=Ao.x,Ze.modifiersData.popperOffsets.y+=As),Ze.modifiersData[Hn]=so}};const Mt={name:"popperOffsets",enabled:!0,phase:"read",fn:function Ht(Zt){var Ze=Zt.state;Ze.modifiersData[Zt.name]=wt({reference:Ze.rects.reference,element:Ze.rects.popper,strategy:"absolute",placement:Ze.placement})},data:{}};const Un={name:"preventOverflow",enabled:!0,phase:"main",fn:function an(Zt){var Ze=Zt.state,Lt=Zt.options,Hn=Zt.name,Ci=Lt.mainAxis,Ji=void 0===Ci||Ci,so=Lt.altAxis,Ao=void 0!==so&&so,fr=Lt.tether,or=void 0===fr||fr,Lr=Lt.tetherOffset,pr=void 0===Lr?0:Lr,Pr=Ut(Ze,{boundary:Lt.boundary,rootBoundary:Lt.rootBoundary,padding:Lt.padding,altBoundary:Lt.altBoundary}),Gr=ms(Ze.placement),Wr=ur(Ze.placement),na=!Wr,mr=rs(Gr),Fr=function bt(Zt){return"x"===Zt?"y":"x"}(mr),$r=Ze.modifiersData.popperOffsets,da=Ze.rects.reference,ka=Ze.rects.popper,Oa="function"==typeof pr?pr(Object.assign({},Ze.rects,{placement:Ze.placement})):pr,ua="number"==typeof Oa?{mainAxis:Oa,altAxis:Oa}:Object.assign({mainAxis:0,altAxis:0},Oa),Ha=Ze.modifiersData.offset?Ze.modifiersData.offset[Ze.placement]:null,il={x:0,y:0};if($r){if(Ji){var Xa,Xl="y"===mr?fs:pn,Ml="y"===mr?zt:zn,ol="y"===mr?"height":"width",Ya=$r[mr],Md=Ya+Pr[Xl],Yl=Ya-Pr[Ml],rh=or?-ka[ol]/2:0,ed=Wr===qi?da[ol]:ka[ol],Pd=Wr===qi?-ka[ol]:-da[ol],td=Ze.elements.arrow,Ql=or&&td?nr(td):{width:0,height:0},fa=Ze.modifiersData["arrow#persistent"]?Ze.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Pl=fa[Xl],Rd=fa[Ml],uc=is(0,da[ol],Ql[ol]),Ia=na?da[ol]/2-rh-uc-Pl-ua.mainAxis:ed-uc-Pl-ua.mainAxis,hc=na?-da[ol]/2+rh+uc+Rd+ua.mainAxis:Pd+uc+Rd+ua.mainAxis,Ba=Ze.elements.arrow&&Mo(Ze.elements.arrow),ah=Ba?"y"===mr?Ba.clientTop||0:Ba.clientLeft||0:0,sl=null!=(Xa=Ha?.[mr])?Xa:0,Vc=Ya+hc-sl,Uh=is(or?Bo(Md,Ya+Ia-sl-ah):Md,Ya,or?ds(Yl,Vc):Yl);$r[mr]=Uh,il[mr]=Uh-Ya}if(Ao){var lh,nd=$r[Fr],Bd="y"===Fr?"height":"width",Xe=nd+Pr["x"===mr?fs:pn],vn=nd-Pr["x"===mr?zt:zn],h=-1!==[fs,pn].indexOf(Gr),we=null!=(lh=Ha?.[Fr])?lh:0,Cn=h?Xe:nd-da[Bd]-ka[Bd]-we+ua.altAxis,Ns=h?nd+da[Bd]+ka[Bd]-we-ua.altAxis:vn,vs=or&&h?function $s(Zt,Ze,Lt){var Hn=is(Zt,Ze,Lt);return Hn>Lt?Lt:Hn}(Cn,nd,Ns):is(or?Cn:Xe,nd,or?Ns:vn);$r[Fr]=vs,il[Fr]=vs-nd}Ze.modifiersData[Hn]=il}},requiresIfExists:["offset"]};function Qi(Zt,Ze,Lt){void 0===Lt&&(Lt=!1);var Hn=Ki(Ze),Ci=Ki(Ze)&&function Ti(Zt){var Ze=Zt.getBoundingClientRect(),Lt=ws(Ze.width)/Zt.offsetWidth||1,Hn=ws(Ze.height)/Zt.offsetHeight||1;return 1!==Lt||1!==Hn}(Ze),Ji=Wn(Ze),so=Qs(Zt,Ci,Lt),Ao={scrollLeft:0,scrollTop:0},Xo={x:0,y:0};return(Hn||!Hn&&!Lt)&&(("body"!==mn(Ze)||co(Ji))&&(Ao=function qn(Zt){return Zt!==Yn(Zt)&&Ki(Zt)?function di(Zt){return{scrollLeft:Zt.scrollLeft,scrollTop:Zt.scrollTop}}(Zt):bn(Zt)}(Ze)),Ki(Ze)?((Xo=Qs(Ze,!0)).x+=Ze.clientLeft,Xo.y+=Ze.clientTop):Ji&&(Xo.x=kn(Ji))),{x:so.left+Ao.scrollLeft-Xo.x,y:so.top+Ao.scrollTop-Xo.y,width:so.width,height:so.height}}function go(Zt){var Ze=new Map,Lt=new Set,Hn=[];function Ci(Ji){Lt.add(Ji.name),[].concat(Ji.requires||[],Ji.requiresIfExists||[]).forEach(function(Ao){if(!Lt.has(Ao)){var Xo=Ze.get(Ao);Xo&&Ci(Xo)}}),Hn.push(Ji)}return Zt.forEach(function(Ji){Ze.set(Ji.name,Ji)}),Zt.forEach(function(Ji){Lt.has(Ji.name)||Ci(Ji)}),Hn}function os(Zt){var Ze;return function(){return Ze||(Ze=new Promise(function(Lt){Promise.resolve().then(function(){Ze=void 0,Lt(Zt())})})),Ze}}var Os={placement:"bottom",modifiers:[],strategy:"absolute"};function Ks(){for(var Zt=arguments.length,Ze=new Array(Zt),Lt=0;Lt<Zt;Lt++)Ze[Lt]=arguments[Lt];return!Ze.some(function(Hn){return!(Hn&&"function"==typeof Hn.getBoundingClientRect)})}function ht(Zt){void 0===Zt&&(Zt={});var Lt=Zt.defaultModifiers,Hn=void 0===Lt?[]:Lt,Ci=Zt.defaultOptions,Ji=void 0===Ci?Os:Ci;return function(Ao,Xo,As){void 0===As&&(As=Ji);var Zo={placement:"bottom",orderedModifiers:[],options:Object.assign({},Os,Ji),modifiersData:{},elements:{reference:Ao,popper:Xo},attributes:{},styles:{}},qs=[],fr=!1,or={state:Zo,setOptions:function(Gr){var Wr="function"==typeof Gr?Gr(Zo.options):Gr;pr(),Zo.options=Object.assign({},Ji,Zo.options,Wr),Zo.scrollParents={reference:xi(Ao)?Ko(Ao):Ao.contextElement?Ko(Ao.contextElement):[],popper:Ko(Xo)};var na=function eo(Zt){var Ze=go(Zt);return Dt.reduce(function(Lt,Hn){return Lt.concat(Ze.filter(function(Ci){return Ci.phase===Hn}))},[])}(function as(Zt){var Ze=Zt.reduce(function(Lt,Hn){var Ci=Lt[Hn.name];return Lt[Hn.name]=Ci?Object.assign({},Ci,Hn,{options:Object.assign({},Ci.options,Hn.options),data:Object.assign({},Ci.data,Hn.data)}):Hn,Lt},{});return Object.keys(Ze).map(function(Lt){return Ze[Lt]})}([].concat(Hn,Zo.options.modifiers)));return Zo.orderedModifiers=na.filter(function(mr){return mr.enabled}),function Lr(){Zo.orderedModifiers.forEach(function(Pr){var Wr=Pr.options,mr=Pr.effect;if("function"==typeof mr){var Fr=mr({state:Zo,name:Pr.name,instance:or,options:void 0===Wr?{}:Wr});qs.push(Fr||function(){})}})}(),or.update()},forceUpdate:function(){if(!fr){var Gr=Zo.elements,Wr=Gr.reference,na=Gr.popper;if(Ks(Wr,na)){Zo.rects={reference:Qi(Wr,Mo(na),"fixed"===Zo.options.strategy),popper:nr(na)},Zo.reset=!1,Zo.placement=Zo.options.placement,Zo.orderedModifiers.forEach(function(ua){return Zo.modifiersData[ua.name]=Object.assign({},ua.data)});for(var mr=0;mr<Zo.orderedModifiers.length;mr++)if(!0!==Zo.reset){var Fr=Zo.orderedModifiers[mr],$r=Fr.fn,da=Fr.options;"function"==typeof $r&&(Zo=$r({state:Zo,options:void 0===da?{}:da,name:Fr.name,instance:or})||Zo)}else Zo.reset=!1,mr=-1}}},update:os(function(){return new Promise(function(Pr){or.forceUpdate(),Pr(Zo)})}),destroy:function(){pr(),fr=!0}};if(!Ks(Ao,Xo))return or;function pr(){qs.forEach(function(Pr){return Pr()}),qs=[]}return or.setOptions(As).then(function(Pr){!fr&&As.onFirstUpdate&&As.onFirstUpdate(Pr)}),or}}var _t=ht(),In=ht({defaultModifiers:[ca,Mt,jr,Ho]}),po=ht({defaultModifiers:[ca,Mt,jr,Ho,Do,bi,Un,Tr,Wi]});const Zs=Object.freeze(Object.defineProperty({__proto__:null,afterMain:gi,afterRead:en,afterWrite:Yt,applyStyles:Ho,arrow:Tr,auto:An,basePlacements:fi,beforeMain:Dn,beforeRead:Ss,beforeWrite:mi,bottom:zt,clippingParents:Go,computeStyles:jr,createPopper:po,createPopperBase:_t,createPopperLite:In,detectOverflow:Ut,end:So,eventListeners:ca,flip:bi,hide:Wi,left:pn,main:"main",modifierPhases:Dt,offset:Do,placements:Bs,popper:Rs,popperGenerator:ht,popperOffsets:Mt,preventOverflow:Un,read:"read",reference:ks,right:zn,start:qi,top:fs,variationPlacements:_s,viewport:xs,write:"write"},Symbol.toStringTag,{value:"Module"})),xa="dropdown",Ea=".bs.dropdown",bl=".data-api",oc="ArrowUp",js="ArrowDown",Sc=`hide${Ea}`,sc=`hidden${Ea}`,hd=`show${Ea}`,Sh=`shown${Ea}`,Xd=`click${Ea}${bl}`,pd=`keydown${Ea}${bl}`,rc=`keyup${Ea}${bl}`,Nl="show",Sa='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Qd=`${Sa}.${Nl}`,Dc=".dropdown-menu",Ac=A()?"top-end":"top-start",Ic=A()?"top-start":"top-end",rt=A()?"bottom-end":"bottom-start",At=A()?"bottom-start":"bottom-end",vt=A()?"left-start":"right-start",kt=A()?"right-start":"left-start",ii={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Gi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class lo extends Ae{constructor(Ze,Lt){super(Ze,Lt),this._popper=null,this._parent=this._element.parentNode,this._menu=Ee.next(this._element,Dc)[0]||Ee.prev(this._element,Dc)[0]||Ee.findOne(Dc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ii}static get DefaultType(){return Gi}static get NAME(){return xa}toggle(){return this._isShown()?this.hide():this.show()}show(){if(b(this._element)||this._isShown())return;const Ze={relatedTarget:this._element};if(!Ce.trigger(this._element,hd,Ze).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const Hn of[].concat(...document.body.children))Ce.on(Hn,"mouseover",j);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Nl),this._element.classList.add(Nl),Ce.trigger(this._element,Sh,Ze)}}hide(){!b(this._element)&&this._isShown()&&this._completeHide({relatedTarget:this._element})}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(Ze){if(!Ce.trigger(this._element,Sc,Ze).defaultPrevented){if("ontouchstart"in document.documentElement)for(const Hn of[].concat(...document.body.children))Ce.off(Hn,"mouseover",j);this._popper&&this._popper.destroy(),this._menu.classList.remove(Nl),this._element.classList.remove(Nl),this._element.setAttribute("aria-expanded","false"),ke.removeDataAttribute(this._menu,"popper"),Ce.trigger(this._element,sc,Ze)}}_getConfig(Ze){if("object"==typeof(Ze=super._getConfig(Ze)).reference&&!P(Ze.reference)&&"function"!=typeof Ze.reference.getBoundingClientRect)throw new TypeError(`${xa.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return Ze}_createPopper(){if(typeof Zs>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let Ze=this._element;"parent"===this._config.reference?Ze=this._parent:P(this._config.reference)?Ze=v(this._config.reference):"object"==typeof this._config.reference&&(Ze=this._config.reference);const Lt=this._getPopperConfig();this._popper=po(Ze,this._menu,Lt)}_isShown(){return this._menu.classList.contains(Nl)}_getPlacement(){const Ze=this._parent;if(Ze.classList.contains("dropend"))return vt;if(Ze.classList.contains("dropstart"))return kt;if(Ze.classList.contains("dropup-center"))return"top";if(Ze.classList.contains("dropdown-center"))return"bottom";const Lt="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return Ze.classList.contains("dropup")?Lt?Ic:Ac:Lt?At:rt}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:Ze}=this._config;return"string"==typeof Ze?Ze.split(",").map(Lt=>Number.parseInt(Lt,10)):"function"==typeof Ze?Lt=>Ze(Lt,this._element):Ze}_getPopperConfig(){const Ze={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(ke.setDataAttribute(this._menu,"popper","static"),Ze.modifiers=[{name:"applyStyles",enabled:!1}]),{...Ze,...H(this._config.popperConfig,[Ze])}}_selectMenuItem({key:Ze,target:Lt}){const Hn=Ee.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(Ci=>x(Ci));Hn.length&&R(Hn,Lt,Ze===js,!Hn.includes(Lt)).focus()}static jQueryInterface(Ze){return this.each(function(){const Lt=lo.getOrCreateInstance(this,Ze);if("string"==typeof Ze){if(typeof Lt[Ze]>"u")throw new TypeError(`No method named "${Ze}"`);Lt[Ze]()}})}static clearMenus(Ze){if(2===Ze.button||"keyup"===Ze.type&&"Tab"!==Ze.key)return;const Lt=Ee.find(Qd);for(const Hn of Lt){const Ci=lo.getInstance(Hn);if(!Ci||!1===Ci._config.autoClose)continue;const Ji=Ze.composedPath(),so=Ji.includes(Ci._menu);if(Ji.includes(Ci._element)||"inside"===Ci._config.autoClose&&!so||"outside"===Ci._config.autoClose&&so||Ci._menu.contains(Ze.target)&&("keyup"===Ze.type&&"Tab"===Ze.key||/input|select|option|textarea|form/i.test(Ze.target.tagName)))continue;const Ao={relatedTarget:Ci._element};"click"===Ze.type&&(Ao.clickEvent=Ze),Ci._completeHide(Ao)}}static dataApiKeydownHandler(Ze){const Lt=/input|textarea/i.test(Ze.target.tagName),Hn="Escape"===Ze.key,Ci=[oc,js].includes(Ze.key);if(!Ci&&!Hn||Lt&&!Hn)return;Ze.preventDefault();const Ji=this.matches(Sa)?this:Ee.prev(this,Sa)[0]||Ee.next(this,Sa)[0]||Ee.findOne(Sa,Ze.delegateTarget.parentNode),so=lo.getOrCreateInstance(Ji);if(Ci)return Ze.stopPropagation(),so.show(),void so._selectMenuItem(Ze);so._isShown()&&(Ze.stopPropagation(),so.hide(),Ji.focus())}}Ce.on(document,pd,Sa,lo.dataApiKeydownHandler),Ce.on(document,pd,Dc,lo.dataApiKeydownHandler),Ce.on(document,Xd,lo.clearMenus),Ce.on(document,rc,lo.clearMenus),Ce.on(document,Xd,Sa,function(Zt){Zt.preventDefault(),lo.getOrCreateInstance(this).toggle()}),M(lo);const Cs="backdrop",ta=`mousedown.bs.${Cs}`,Ga={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ca={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ol extends Ye{constructor(Ze){super(),this._config=this._getConfig(Ze),this._isAppended=!1,this._element=null}static get Default(){return Ga}static get DefaultType(){return Ca}static get NAME(){return Cs}show(Ze){if(!this._config.isVisible)return void H(Ze);this._append();const Lt=this._getElement();Lt.classList.add("show"),this._emulateAnimation(()=>{H(Ze)})}hide(Ze){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),H(Ze)})):H(Ze)}dispose(){this._isAppended&&(Ce.off(this._element,ta),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const Ze=document.createElement("div");Ze.className=this._config.className,this._config.isAnimated&&Ze.classList.add("fade"),this._element=Ze}return this._element}_configAfterMerge(Ze){return Ze.rootElement=v(Ze.rootElement),Ze}_append(){if(this._isAppended)return;const Ze=this._getElement();this._config.rootElement.append(Ze),Ce.on(Ze,ta,()=>{H(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(Ze){J(Ze,this._getElement(),this._config.isAnimated)}}const wl=".bs.focustrap",Ma=`focusin${wl}`,Wc=`keydown.tab${wl}`,Pu="backward",_d={autofocus:!0,trapElement:null},Jd={autofocus:"boolean",trapElement:"element"};class Ru extends Ye{constructor(Ze){super(),this._config=this._getConfig(Ze),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return _d}static get DefaultType(){return Jd}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ce.off(document,wl),Ce.on(document,Ma,Ze=>this._handleFocusin(Ze)),Ce.on(document,Wc,Ze=>this._handleKeydown(Ze)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ce.off(document,wl))}_handleFocusin(Ze){const{trapElement:Lt}=this._config;if(Ze.target===document||Ze.target===Lt||Lt.contains(Ze.target))return;const Hn=Ee.focusableChildren(Lt);0===Hn.length?Lt.focus():this._lastTabNavDirection===Pu?Hn[Hn.length-1].focus():Hn[0].focus()}_handleKeydown(Ze){"Tab"===Ze.key&&(this._lastTabNavDirection=Ze.shiftKey?Pu:"forward")}}const Mc=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",vd=".sticky-top",cl="padding-right",ku="margin-right";class qd{constructor(){this._element=document.body}getWidth(){const Ze=document.documentElement.clientWidth;return Math.abs(window.innerWidth-Ze)}hide(){const Ze=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,cl,Lt=>Lt+Ze),this._setElementAttributes(Mc,cl,Lt=>Lt+Ze),this._setElementAttributes(vd,ku,Lt=>Lt-Ze)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,cl),this._resetElementAttributes(Mc,cl),this._resetElementAttributes(vd,ku)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(Ze,Lt,Hn){const Ci=this.getWidth();this._applyManipulationCallback(Ze,so=>{if(so!==this._element&&window.innerWidth>so.clientWidth+Ci)return;this._saveInitialAttribute(so,Lt);const Ao=window.getComputedStyle(so).getPropertyValue(Lt);so.style.setProperty(Lt,`${Hn(Number.parseFloat(Ao))}px`)})}_saveInitialAttribute(Ze,Lt){const Hn=Ze.style.getPropertyValue(Lt);Hn&&ke.setDataAttribute(Ze,Lt,Hn)}_resetElementAttributes(Ze,Lt){this._applyManipulationCallback(Ze,Ci=>{const Ji=ke.getDataAttribute(Ci,Lt);null!==Ji?(ke.removeDataAttribute(Ci,Lt),Ci.style.setProperty(Lt,Ji)):Ci.style.removeProperty(Lt)})}_applyManipulationCallback(Ze,Lt){if(P(Ze))Lt(Ze);else for(const Hn of Ee.find(Ze,this._element))Lt(Hn)}}const za=".bs.modal",Dh=`hide${za}`,eu=`hidePrevented${za}`,Bu=`hidden${za}`,Sl=`show${za}`,mp=`shown${za}`,tu=`resize${za}`,Cd=`click.dismiss${za}`,Fu=`mousedown.dismiss${za}`,Kc=`keydown.dismiss${za}`,Nu=`click${za}.data-api`,Xc="modal-open",Dl="modal-static",_p={backdrop:!0,focus:!0,keyboard:!0},Da={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Tl extends Ae{constructor(Ze,Lt){super(Ze,Lt),this._dialog=Ee.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new qd,this._addEventListeners()}static get Default(){return _p}static get DefaultType(){return Da}static get NAME(){return"modal"}toggle(Ze){return this._isShown?this.hide():this.show(Ze)}show(Ze){this._isShown||this._isTransitioning||Ce.trigger(this._element,Sl,{relatedTarget:Ze}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Xc),this._adjustDialog(),this._backdrop.show(()=>this._showElement(Ze)))}hide(){!this._isShown||this._isTransitioning||Ce.trigger(this._element,Dh).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ce.off(window,za),Ce.off(this._dialog,za),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ol({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ru({trapElement:this._element})}_showElement(Ze){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const Lt=Ee.findOne(".modal-body",this._dialog);Lt&&(Lt.scrollTop=0),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ce.trigger(this._element,mp,{relatedTarget:Ze})},this._dialog,this._isAnimated())}_addEventListeners(){Ce.on(this._element,Kc,Ze=>{if("Escape"===Ze.key){if(this._config.keyboard)return void this.hide();this._triggerBackdropTransition()}}),Ce.on(window,tu,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ce.on(this._element,Fu,Ze=>{Ce.one(this._element,Cd,Lt=>{if(this._element===Ze.target&&this._element===Lt.target){if("static"===this._config.backdrop)return void this._triggerBackdropTransition();this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Xc),this._resetAdjustments(),this._scrollBar.reset(),Ce.trigger(this._element,Bu)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(Ce.trigger(this._element,eu).defaultPrevented)return;const Lt=this._element.scrollHeight>document.documentElement.clientHeight,Hn=this._element.style.overflowY;"hidden"===Hn||this._element.classList.contains(Dl)||(Lt||(this._element.style.overflowY="hidden"),this._element.classList.add(Dl),this._queueCallback(()=>{this._element.classList.remove(Dl),this._queueCallback(()=>{this._element.style.overflowY=Hn},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const Ze=this._element.scrollHeight>document.documentElement.clientHeight,Lt=this._scrollBar.getWidth(),Hn=Lt>0;if(Hn&&!Ze){const Ci=A()?"paddingLeft":"paddingRight";this._element.style[Ci]=`${Lt}px`}if(!Hn&&Ze){const Ci=A()?"paddingRight":"paddingLeft";this._element.style[Ci]=`${Lt}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(Ze,Lt){return this.each(function(){const Hn=Tl.getOrCreateInstance(this,Ze);if("string"==typeof Ze){if(typeof Hn[Ze]>"u")throw new TypeError(`No method named "${Ze}"`);Hn[Ze](Lt)}})}}Ce.on(document,Nu,'[data-bs-toggle="modal"]',function(Zt){const Ze=Ee.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&Zt.preventDefault(),Ce.one(Ze,Sl,Ci=>{Ci.defaultPrevented||Ce.one(Ze,Bu,()=>{x(this)&&this.focus()})});const Lt=Ee.findOne(".modal.show");Lt&&Tl.getInstance(Lt).hide(),Tl.getOrCreateInstance(Ze).toggle(this)}),le(Tl),M(Tl);const Yr=".bs.offcanvas",Pc=".data-api",Vu=`load${Yr}${Pc}`,Ul="showing",Ed=".offcanvas.show",$u=`show${Yr}`,Uu=`shown${Yr}`,ou=`hide${Yr}`,Rc=`hidePrevented${Yr}`,gt=`hidden${Yr}`,un=`resize${Yr}`,Xn=`click${Yr}${Pc}`,to=`keydown.dismiss${Yr}`,Ds={backdrop:!0,keyboard:!0,scroll:!1},kr={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Qr extends Ae{constructor(Ze,Lt){super(Ze,Lt),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ds}static get DefaultType(){return kr}static get NAME(){return"offcanvas"}toggle(Ze){return this._isShown?this.hide():this.show(Ze)}show(Ze){this._isShown||Ce.trigger(this._element,$u,{relatedTarget:Ze}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new qd).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ul),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(Ul),Ce.trigger(this._element,Uu,{relatedTarget:Ze})},this._element,!0))}hide(){this._isShown&&!Ce.trigger(this._element,ou).defaultPrevented&&(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new qd).reset(),Ce.trigger(this._element,gt)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const Lt=!!this._config.backdrop;return new Ol({className:"offcanvas-backdrop",isVisible:Lt,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:Lt?()=>{"static"!==this._config.backdrop?this.hide():Ce.trigger(this._element,Rc)}:null})}_initializeFocusTrap(){return new Ru({trapElement:this._element})}_addEventListeners(){Ce.on(this._element,to,Ze=>{if("Escape"===Ze.key){if(this._config.keyboard)return void this.hide();Ce.trigger(this._element,Rc)}})}static jQueryInterface(Ze){return this.each(function(){const Lt=Qr.getOrCreateInstance(this,Ze);if("string"==typeof Ze){if(void 0===Lt[Ze]||Ze.startsWith("_")||"constructor"===Ze)throw new TypeError(`No method named "${Ze}"`);Lt[Ze](this)}})}}Ce.on(document,Xn,'[data-bs-toggle="offcanvas"]',function(Zt){const Ze=Ee.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&Zt.preventDefault(),b(this))return;Ce.one(Ze,gt,()=>{x(this)&&this.focus()});const Lt=Ee.findOne(Ed);Lt&&Lt!==Ze&&Qr.getInstance(Lt).hide(),Qr.getOrCreateInstance(Ze).toggle(this)}),Ce.on(window,Vu,()=>{for(const Zt of Ee.find(Ed))Qr.getOrCreateInstance(Zt).show()}),Ce.on(window,un,()=>{for(const Zt of Ee.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(Zt).position&&Qr.getOrCreateInstance(Zt).hide()}),le(Qr),M(Qr);const Zr={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},cc=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Cp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,yp=(Zt,Ze)=>{const Lt=Zt.nodeName.toLowerCase();return Ze.includes(Lt)?!cc.has(Lt)||!!Cp.test(Zt.nodeValue):Ze.filter(Hn=>Hn instanceof RegExp).some(Hn=>Hn.test(Lt))};const ju={allowList:Zr,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},_f={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},gg={entry:"(string|element|function|null)",selector:"(string|element)"};class fg extends Ye{constructor(Ze){super(),this._config=this._getConfig(Ze)}static get Default(){return ju}static get DefaultType(){return _f}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(Ze=>this._resolvePossibleFunction(Ze)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(Ze){return this._checkContent(Ze),this._config.content={...this._config.content,...Ze},this}toHtml(){const Ze=document.createElement("div");Ze.innerHTML=this._maybeSanitize(this._config.template);for(const[Ci,Ji]of Object.entries(this._config.content))this._setContent(Ze,Ji,Ci);const Lt=Ze.children[0],Hn=this._resolvePossibleFunction(this._config.extraClass);return Hn&&Lt.classList.add(...Hn.split(" ")),Lt}_typeCheckConfig(Ze){super._typeCheckConfig(Ze),this._checkContent(Ze.content)}_checkContent(Ze){for(const[Lt,Hn]of Object.entries(Ze))super._typeCheckConfig({selector:Lt,entry:Hn},gg)}_setContent(Ze,Lt,Hn){const Ci=Ee.findOne(Hn,Ze);if(Ci){if(!(Lt=this._resolvePossibleFunction(Lt)))return void Ci.remove();if(P(Lt))return void this._putElementInTemplate(v(Lt),Ci);if(this._config.html)return void(Ci.innerHTML=this._maybeSanitize(Lt));Ci.textContent=Lt}}_maybeSanitize(Ze){return this._config.sanitize?function Dm(Zt,Ze,Lt){if(!Zt.length)return Zt;if(Lt&&"function"==typeof Lt)return Lt(Zt);const Ci=(new window.DOMParser).parseFromString(Zt,"text/html"),Ji=[].concat(...Ci.body.querySelectorAll("*"));for(const so of Ji){const Ao=so.nodeName.toLowerCase();if(!Object.keys(Ze).includes(Ao)){so.remove();continue}const Xo=[].concat(...so.attributes),As=[].concat(Ze["*"]||[],Ze[Ao]||[]);for(const Zo of Xo)yp(Zo,As)||so.removeAttribute(Zo.nodeName)}return Ci.body.innerHTML}(Ze,this._config.allowList,this._config.sanitizeFn):Ze}_resolvePossibleFunction(Ze){return H(Ze,[this])}_putElementInTemplate(Ze,Lt){if(this._config.html)return Lt.innerHTML="",void Lt.append(Ze);Lt.textContent=Ze.textContent}}const Gu=new Set(["sanitize","allowList","sanitizeFn"]),Al="fade",su="show",_g=".tooltip-inner",xp="hide.bs.modal",ru="hover",zu="focus",vg={AUTO:"auto",TOP:"top",RIGHT:A()?"left":"right",BOTTOM:"bottom",LEFT:A()?"right":"left"},Qu={allowList:Zr,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Ih={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class kc extends Ae{constructor(Ze,Lt){if(typeof Zs>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(Ze,Lt),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Qu}static get DefaultType(){return Ih}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown())return void this._leave();this._enter()}}dispose(){clearTimeout(this._timeout),Ce.off(this._element.closest(".modal"),xp,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const Ze=Ce.trigger(this._element,this.constructor.eventName("show")),Hn=(B(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(Ze.defaultPrevented||!Hn)return;this._disposePopper();const Ci=this._getTipElement();this._element.setAttribute("aria-describedby",Ci.getAttribute("id"));const{container:Ji}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(Ji.append(Ci),Ce.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(Ci),Ci.classList.add(su),"ontouchstart"in document.documentElement)for(const Ao of[].concat(...document.body.children))Ce.on(Ao,"mouseover",j);this._queueCallback(()=>{Ce.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!Ce.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(su),"ontouchstart"in document.documentElement)for(const Ci of[].concat(...document.body.children))Ce.off(Ci,"mouseover",j);this._activeTrigger.click=!1,this._activeTrigger[zu]=!1,this._activeTrigger[ru]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ce.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(Ze){const Lt=this._getTemplateFactory(Ze).toHtml();if(!Lt)return null;Lt.classList.remove(Al,su),Lt.classList.add(`bs-${this.constructor.NAME}-auto`);const Hn=(Zt=>{do{Zt+=Math.floor(1e6*Math.random())}while(document.getElementById(Zt));return Zt})(this.constructor.NAME).toString();return Lt.setAttribute("id",Hn),this._isAnimated()&&Lt.classList.add(Al),Lt}setContent(Ze){this._newContent=Ze,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(Ze){return this._templateFactory?this._templateFactory.changeContent(Ze):this._templateFactory=new fg({...this._config,content:Ze,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[_g]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(Ze){return this.constructor.getOrCreateInstance(Ze.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Al)}_isShown(){return this.tip&&this.tip.classList.contains(su)}_createPopper(Ze){const Lt=H(this._config.placement,[this,Ze,this._element]),Hn=vg[Lt.toUpperCase()];return po(this._element,Ze,this._getPopperConfig(Hn))}_getOffset(){const{offset:Ze}=this._config;return"string"==typeof Ze?Ze.split(",").map(Lt=>Number.parseInt(Lt,10)):"function"==typeof Ze?Lt=>Ze(Lt,this._element):Ze}_resolvePossibleFunction(Ze){return H(Ze,[this._element])}_getPopperConfig(Ze){const Lt={placement:Ze,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:Hn=>{this._getTipElement().setAttribute("data-popper-placement",Hn.state.placement)}}]};return{...Lt,...H(this._config.popperConfig,[Lt])}}_setListeners(){const Ze=this._config.trigger.split(" ");for(const Lt of Ze)if("click"===Lt)Ce.on(this._element,this.constructor.eventName("click"),this._config.selector,Hn=>{this._initializeOnDelegatedTarget(Hn).toggle()});else if("manual"!==Lt){const Hn=this.constructor.eventName(Lt===ru?"mouseenter":"focusin"),Ci=this.constructor.eventName(Lt===ru?"mouseleave":"focusout");Ce.on(this._element,Hn,this._config.selector,Ji=>{const so=this._initializeOnDelegatedTarget(Ji);so._activeTrigger["focusin"===Ji.type?zu:ru]=!0,so._enter()}),Ce.on(this._element,Ci,this._config.selector,Ji=>{const so=this._initializeOnDelegatedTarget(Ji);so._activeTrigger["focusout"===Ji.type?zu:ru]=so._element.contains(Ji.relatedTarget),so._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ce.on(this._element.closest(".modal"),xp,this._hideModalHandler)}_fixTitle(){const Ze=this._element.getAttribute("title");Ze&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",Ze),this._element.setAttribute("data-bs-original-title",Ze),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(Ze,Lt){clearTimeout(this._timeout),this._timeout=setTimeout(Ze,Lt)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(Ze){const Lt=ke.getDataAttributes(this._element);for(const Hn of Object.keys(Lt))Gu.has(Hn)&&delete Lt[Hn];return Ze={...Lt,..."object"==typeof Ze&&Ze?Ze:{}},Ze=this._mergeConfigObj(Ze),Ze=this._configAfterMerge(Ze),this._typeCheckConfig(Ze),Ze}_configAfterMerge(Ze){return Ze.container=!1===Ze.container?document.body:v(Ze.container),"number"==typeof Ze.delay&&(Ze.delay={show:Ze.delay,hide:Ze.delay}),"number"==typeof Ze.title&&(Ze.title=Ze.title.toString()),"number"==typeof Ze.content&&(Ze.content=Ze.content.toString()),Ze}_getDelegateConfig(){const Ze={};for(const[Lt,Hn]of Object.entries(this._config))this.constructor.Default[Lt]!==Hn&&(Ze[Lt]=Hn);return Ze.selector=!1,Ze.trigger="manual",Ze}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(Ze){return this.each(function(){const Lt=kc.getOrCreateInstance(this,Ze);if("string"==typeof Ze){if(typeof Lt[Ze]>"u")throw new TypeError(`No method named "${Ze}"`);Lt[Ze]()}})}}M(kc);const Ep=".popover-header",Od=".popover-body",Gl={...kc.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Op={...kc.DefaultType,content:"(null|string|element|function)"};class Mh extends kc{static get Default(){return Gl}static get DefaultType(){return Op}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ep]:this._getTitle(),[Od]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(Ze){return this.each(function(){const Lt=Mh.getOrCreateInstance(this,Ze);if("string"==typeof Ze){if(typeof Lt[Ze]>"u")throw new TypeError(`No method named "${Ze}"`);Lt[Ze]()}})}}M(Mh);const Zu=".bs.scrollspy",Sp=`activate${Zu}`,du=`click${Zu}`,Qc=`load${Zu}.data-api`,Ka="active",Ju="[href]",tl=".nav-link",kh=`${tl}, .nav-item > ${tl}, .list-group-item`,Bh={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Fh={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Zc extends Ae{constructor(Ze,Lt){super(Ze,Lt),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Bh}static get DefaultType(){return Fh}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const Ze of this._observableSections.values())this._observer.observe(Ze)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(Ze){return Ze.target=v(Ze.target)||document.body,Ze.rootMargin=Ze.offset?`${Ze.offset}px 0px -30%`:Ze.rootMargin,"string"==typeof Ze.threshold&&(Ze.threshold=Ze.threshold.split(",").map(Lt=>Number.parseFloat(Lt))),Ze}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ce.off(this._config.target,du),Ce.on(this._config.target,du,Ju,Ze=>{const Lt=this._observableSections.get(Ze.target.hash);if(Lt){Ze.preventDefault();const Hn=this._rootElement||window,Ci=Lt.offsetTop-this._element.offsetTop;if(Hn.scrollTo)return void Hn.scrollTo({top:Ci,behavior:"smooth"});Hn.scrollTop=Ci}}))}_getNewObserver(){return new IntersectionObserver(Lt=>this._observerCallback(Lt),{root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin})}_observerCallback(Ze){const Lt=so=>this._targetLinks.get(`#${so.target.id}`),Hn=so=>{this._previousScrollData.visibleEntryTop=so.target.offsetTop,this._process(Lt(so))},Ci=(this._rootElement||document.documentElement).scrollTop,Ji=Ci>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=Ci;for(const so of Ze){if(!so.isIntersecting){this._activeTarget=null,this._clearActiveClass(Lt(so));continue}const Ao=so.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(Ji&&Ao){if(Hn(so),!Ci)return}else!Ji&&!Ao&&Hn(so)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const Ze=Ee.find(Ju,this._config.target);for(const Lt of Ze){if(!Lt.hash||b(Lt))continue;const Hn=Ee.findOne(decodeURI(Lt.hash),this._element);x(Hn)&&(this._targetLinks.set(decodeURI(Lt.hash),Lt),this._observableSections.set(Lt.hash,Hn))}}_process(Ze){this._activeTarget!==Ze&&(this._clearActiveClass(this._config.target),this._activeTarget=Ze,Ze.classList.add(Ka),this._activateParents(Ze),Ce.trigger(this._element,Sp,{relatedTarget:Ze}))}_activateParents(Ze){if(Ze.classList.contains("dropdown-item"))Ee.findOne(".dropdown-toggle",Ze.closest(".dropdown")).classList.add(Ka);else for(const Lt of Ee.parents(Ze,".nav, .list-group"))for(const Hn of Ee.prev(Lt,kh))Hn.classList.add(Ka)}_clearActiveClass(Ze){Ze.classList.remove(Ka);const Lt=Ee.find(`${Ju}.${Ka}`,Ze);for(const Hn of Lt)Hn.classList.remove(Ka)}static jQueryInterface(Ze){return this.each(function(){const Lt=Zc.getOrCreateInstance(this,Ze);if("string"==typeof Ze){if(void 0===Lt[Ze]||Ze.startsWith("_")||"constructor"===Ze)throw new TypeError(`No method named "${Ze}"`);Lt[Ze]()}})}}Ce.on(window,Qc,()=>{for(const Zt of Ee.find('[data-bs-spy="scroll"]'))Zc.getOrCreateInstance(Zt)}),M(Zc);const br=".bs.tab",eh=`hide${br}`,Ip=`hidden${br}`,Nh=`show${br}`,wd=`shown${br}`,Bc=`click${br}`,Sd=`keydown${br}`,uu=`load${br}`,Fc="ArrowLeft",ga="ArrowRight",Mp="ArrowUp",Nc="ArrowDown",hu="Home",Jc="End",qc="active",Il="show",th=".dropdown-toggle",ih=`:not(${th})`,pu='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Td=`.nav-link${ih}, .list-group-item${ih}, [role="tab"]${ih}, ${pu}`,Vh=`.${qc}[data-bs-toggle="tab"], .${qc}[data-bs-toggle="pill"], .${qc}[data-bs-toggle="list"]`;class Wl extends Ae{constructor(Ze){super(Ze),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ce.on(this._element,Sd,Lt=>this._keydown(Lt)))}static get NAME(){return"tab"}show(){const Ze=this._element;if(this._elemIsActive(Ze))return;const Lt=this._getActiveElem(),Hn=Lt?Ce.trigger(Lt,eh,{relatedTarget:Ze}):null;Ce.trigger(Ze,Nh,{relatedTarget:Lt}).defaultPrevented||Hn&&Hn.defaultPrevented||(this._deactivate(Lt,Ze),this._activate(Ze,Lt))}_activate(Ze,Lt){Ze&&(Ze.classList.add(qc),this._activate(Ee.getElementFromSelector(Ze)),this._queueCallback(()=>{"tab"===Ze.getAttribute("role")?(Ze.removeAttribute("tabindex"),Ze.setAttribute("aria-selected",!0),this._toggleDropDown(Ze,!0),Ce.trigger(Ze,wd,{relatedTarget:Lt})):Ze.classList.add(Il)},Ze,Ze.classList.contains("fade")))}_deactivate(Ze,Lt){Ze&&(Ze.classList.remove(qc),Ze.blur(),this._deactivate(Ee.getElementFromSelector(Ze)),this._queueCallback(()=>{"tab"===Ze.getAttribute("role")?(Ze.setAttribute("aria-selected",!1),Ze.setAttribute("tabindex","-1"),this._toggleDropDown(Ze,!1),Ce.trigger(Ze,Ip,{relatedTarget:Lt})):Ze.classList.remove(Il)},Ze,Ze.classList.contains("fade")))}_keydown(Ze){if(![Fc,ga,Mp,Nc,hu,Jc].includes(Ze.key))return;Ze.stopPropagation(),Ze.preventDefault();const Lt=this._getChildren().filter(Ci=>!b(Ci));let Hn;if([hu,Jc].includes(Ze.key))Hn=Lt[Ze.key===hu?0:Lt.length-1];else{const Ci=[ga,Nc].includes(Ze.key);Hn=R(Lt,Ze.target,Ci,!0)}Hn&&(Hn.focus({preventScroll:!0}),Wl.getOrCreateInstance(Hn).show())}_getChildren(){return Ee.find(Td,this._parent)}_getActiveElem(){return this._getChildren().find(Ze=>this._elemIsActive(Ze))||null}_setInitialAttributes(Ze,Lt){this._setAttributeIfNotExists(Ze,"role","tablist");for(const Hn of Lt)this._setInitialAttributesOnChild(Hn)}_setInitialAttributesOnChild(Ze){Ze=this._getInnerElement(Ze);const Lt=this._elemIsActive(Ze),Hn=this._getOuterElement(Ze);Ze.setAttribute("aria-selected",Lt),Hn!==Ze&&this._setAttributeIfNotExists(Hn,"role","presentation"),Lt||Ze.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(Ze,"role","tab"),this._setInitialAttributesOnTargetPanel(Ze)}_setInitialAttributesOnTargetPanel(Ze){const Lt=Ee.getElementFromSelector(Ze);Lt&&(this._setAttributeIfNotExists(Lt,"role","tabpanel"),Ze.id&&this._setAttributeIfNotExists(Lt,"aria-labelledby",`${Ze.id}`))}_toggleDropDown(Ze,Lt){const Hn=this._getOuterElement(Ze);if(!Hn.classList.contains("dropdown"))return;const Ci=(Ji,so)=>{const Ao=Ee.findOne(Ji,Hn);Ao&&Ao.classList.toggle(so,Lt)};Ci(th,qc),Ci(".dropdown-menu",Il),Hn.setAttribute("aria-expanded",Lt)}_setAttributeIfNotExists(Ze,Lt,Hn){Ze.hasAttribute(Lt)||Ze.setAttribute(Lt,Hn)}_elemIsActive(Ze){return Ze.classList.contains(qc)}_getInnerElement(Ze){return Ze.matches(Td)?Ze:Ee.findOne(Td,Ze)}_getOuterElement(Ze){return Ze.closest(".nav-item, .list-group-item")||Ze}static jQueryInterface(Ze){return this.each(function(){const Lt=Wl.getOrCreateInstance(this);if("string"==typeof Ze){if(void 0===Lt[Ze]||Ze.startsWith("_")||"constructor"===Ze)throw new TypeError(`No method named "${Ze}"`);Lt[Ze]()}})}}Ce.on(document,Bc,pu,function(Zt){["A","AREA"].includes(this.tagName)&&Zt.preventDefault(),!b(this)&&Wl.getOrCreateInstance(this).show()}),Ce.on(window,uu,()=>{for(const Zt of Ee.find(Vh))Wl.getOrCreateInstance(Zt)}),M(Wl);const zl=".bs.toast",Og=`mouseover${zl}`,Pp=`mouseout${zl}`,$h=`focusin${zl}`,Rp=`focusout${zl}`,oh=`hide${zl}`,sh=`hidden${zl}`,Cf=`show${zl}`,kp=`shown${zl}`,gu="show",Lc="showing",Va={animation:"boolean",autohide:"boolean",delay:"number"},Id={animation:!0,autohide:!0,delay:5e3};class fu extends Ae{constructor(Ze,Lt){super(Ze,Lt),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Id}static get DefaultType(){return Va}static get NAME(){return"toast"}show(){if(Ce.trigger(this._element,Cf).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove("hide"),this._element.classList.add(gu,Lc),this._queueCallback(()=>{this._element.classList.remove(Lc),Ce.trigger(this._element,kp),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this.isShown()||Ce.trigger(this._element,oh).defaultPrevented)return;this._element.classList.add(Lc),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(Lc,gu),Ce.trigger(this._element,sh)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(gu),super.dispose()}isShown(){return this._element.classList.contains(gu)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(Ze,Lt){switch(Ze.type){case"mouseover":case"mouseout":this._hasMouseInteraction=Lt;break;case"focusin":case"focusout":this._hasKeyboardInteraction=Lt}if(Lt)return void this._clearTimeout();const Hn=Ze.relatedTarget;this._element===Hn||this._element.contains(Hn)||this._maybeScheduleHide()}_setListeners(){Ce.on(this._element,Og,Ze=>this._onInteraction(Ze,!0)),Ce.on(this._element,Pp,Ze=>this._onInteraction(Ze,!1)),Ce.on(this._element,$h,Ze=>this._onInteraction(Ze,!0)),Ce.on(this._element,Rp,Ze=>this._onInteraction(Ze,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(Ze){return this.each(function(){const Lt=fu.getOrCreateInstance(this,Ze);if("string"==typeof Ze){if(typeof Lt[Ze]>"u")throw new TypeError(`No method named "${Ze}"`);Lt[Ze](this)}})}}return le(fu),M(fu),{Alert:Ve,Button:me,Carousel:ni,Collapse:Vs,Dropdown:lo,Modal:Tl,Offcanvas:Qr,Popover:Mh,ScrollSpy:Zc,Tab:Wl,Toast:fu,Tooltip:kc}}()},4017:(En,it,p)=>{"use strict";p.d(it,{Uq:()=>k,WV:()=>C,s$:()=>w});var S=p(5704),d=p(2720),m=p(8684);const T=d.A.add,C=(0,m.A)();let e=(0,S.A)();const k=function(){let P;return function(v){if(!arguments.length)return P;const x=(0,S.A)(v);e=x;const b=!!x.length,B=k();P=b?x:(0,S.A)("body"),C.fire(b?k():(0,S.A)(),B)}}();function w(){return e}T(function(){k(".dx-viewport")})},4050:(En,it,p)=>{"use strict";p.d(it,{v:()=>A});var S=p(4303),d=p(3425),m=p(3746),T=p(8025),C=p(656),e=p(5626),k=p(6449),w=p(8914),P=p(3349),v=p(4539),x=p(1983),b=p(6667);function B(M,H){if(1&M&&(S.j41(0,"dxi-item",3),S.nrm(1,"dxo-label",12)(2,"dxi-validation-rule",13),S.k0s()),2&M){const J=S.XpG();S.R7$(),S.Y8G("text",J.scope.network.getResourceOrKeyName("web_user_emailOrUsername")),S.R7$(),S.Y8G("message",J.scope.network.getResourceOrKeyName("web_user_emailError"))}}function j(M,H){if(1&M&&(S.j41(0,"dxi-item",3),S.nrm(1,"dxo-label",12)(2,"dxi-validation-rule",13),S.k0s()),2&M){const J=S.XpG();S.R7$(),S.Y8G("text",J.scope.network.getResourceOrKeyName("web_user_email")),S.R7$(),S.Y8G("message",J.scope.network.getResourceOrKeyName("web_user_emailError"))}}function F(M,H){if(1&M&&(S.j41(0,"div"),S.nrm(1,"dx-load-indicator",16),S.j41(2,"span",17),S.EFF(3),S.k0s()()),2&M){const J=S.XpG(2);S.R7$(),S.Y8G("visible",J.loadIndicatorVisible),S.R7$(2),S.JRh(J.scope.currentScope.network.getResourceOrKeyName("web_common_login"))}}function X(M,H){if(1&M){const J=S.RV6();S.j41(0,"div",14)(1,"dx-button",15),S.bIt("onClick",function(){C.eBV(J);const L=S.XpG();return C.Njj(L.onLoginButtonClicked())})("keydown.enter",function(){C.eBV(J);const L=S.XpG();return C.Njj(L.onLoginButtonClicked())})("keydown.space",function(){C.eBV(J);const L=S.XpG();return C.Njj(L.onLoginButtonClicked())}),S.DNE(2,F,4,2,"div",11),S.k0s()()}2&M&&(S.R7$(2),S.Y8G("dxTemplateOf","content"))}function U(M,H){if(1&M&&S.nrm(0,"div",18),2&M){const J=S.XpG(2);S.Y8G("innerHTML",J.loginErrorMessage,S.npT)}}function Z(M,H){if(1&M&&(S.j41(0,"div"),S.nVh(1,U,1,1,"div",18),S.k0s()),2&M){const J=S.XpG();S.R7$(),S.vxM(J.loginErrorMessage?1:-1)}}let A=(()=>{var M;class H{constructor(R,L,G){this.hybridTrackingService=L,this.authService=G,this.dismissPopup=new S.bkB,this.signInData={userName:"",password:""},this.loginErrorMessage="",this.loadIndicatorVisible=!1,this.passwordEditorOptions={},this.passwordVisible=!1,this.onLoginButtonClicked=()=>{this.loginErrorMessage="",this.loadIndicatorVisible=!0,this.authService.login(this.signInData).then(()=>{this.dismissPopup.emit(),this.authenticationCallback&&this.authenticationCallback()},Q=>{Q.error?(this.loadIndicatorVisible=!1,this.loginErrorMessage=Q.error):this.loginErrorMessage="An unknown error occurred"})},this.changePasswordMode=Q=>{const z=this.form.instance.getEditor(Q);if(!z)return;const ee=!("text"===z.option("mode"));z.option("mode",ee?"text":"password");const re=z.getButton&&z.getButton("password"),be=this.scope.network.getResourceOrKeyName(ee?"web_common_hide_password":"web_common_show_password");re?.option({icon:ee?"fa-solid fa-eye-slash":"fa-solid fa-eye"});const ce=re?.element?.();ce&&(ce.setAttribute("aria-label",be),ce.setAttribute("aria-pressed",String(ee)))},this.close=()=>{this.dismissPopup.emit()},this.scope=R.getScope(),this.passwordEditorOptions={mode:this.passwordVisible?"text":"password",valueChangeEvent:"input",onValueChanged:()=>{let Q=this.form.instance.getEditor("ConfirmPassword");Q&&Q.option("value")&&T.A.getInstance(Q.element()).validate()},onKeyDown:Q=>{"Enter"==Q.event.key&&this.onLoginButtonClicked()},buttons:[{name:"password",location:"after",options:{stylingMode:"text",icon:"fa-solid fa-eye",onClick:()=>this.changePasswordMode("Password"),elementAttr:{"aria-label":this.scope.network.getResourceOrKeyName(this.passwordVisible?"web_common_hide_password":"web_common_show_password"),"aria-pressed":this.passwordVisible}}}]}}ngOnInit(){}static#e=M=()=>(this.\u0275fac=function(L){return new(L||H)(S.rXU(m.A),S.rXU(e.o),S.rXU(k.u))},this.\u0275cmp=S.VBU({type:H,selectors:[["app-login-dialog"]],viewQuery:function(L,G){if(1&L&&S.GBs(d.o,5),2&L){let Q;S.mGM(Q=S.lsd())&&(G.form=Q.first)}},inputs:{authenticationCallback:"authenticationCallback"},outputs:{dismissPopup:"dismissPopup"},standalone:!1,decls:14,vars:9,consts:[["id","form-container",1,"login-dialog-base"],["id","form","labelMode","floating",3,"formDataChange","formData"],["template","loginHeader"],["dataField","userName","editorType","dxTextBox"],["name","Password","dataField","password",3,"editorOptions"],[3,"text"],["id","signUpError","type","required","message","Password is required"],[1,"d-flex","justify-content-end"],[1,"pull-right",3,"click","href"],["template","loginButton"],["style","display: flex; justify-content: center;",4,"dxTemplate","dxTemplateOf"],[4,"dxTemplate","dxTemplateOf"],[1,"login-label",3,"text"],["id","signUpError","type","required",3,"message"],[2,"display","flex","justify-content","center"],["useSubmitBehaviour","true",3,"onClick","keydown.enter","keydown.space"],["height","20","width","20","aria-hidden","true",1,"button-indicator",3,"visible"],[1,"dx-button-text"],["role","alert","aria-live","assertive","aria-atomic","true","tabindex","-1",1,"form-group","alert","alert-danger",3,"innerHTML"]],template:function(L,G){1&L&&(S.j41(0,"div",0)(1,"dx-form",1),S.mxI("formDataChange",function(z){return S.DH7(G.signInData,z)||(G.signInData=z),z}),S.nrm(2,"dxi-item",2),S.nVh(3,B,3,2,"dxi-item",3)(4,j,3,2,"dxi-item",3),S.j41(5,"dxi-item",4),S.nrm(6,"dxo-label",5)(7,"dxi-validation-rule",6),S.k0s(),S.j41(8,"dxi-item",7)(9,"a",8),S.bIt("click",function(){return G.close()}),S.EFF(10),S.k0s()(),S.nrm(11,"dxi-item",9),S.DNE(12,X,3,1,"div",10)(13,Z,2,1,"div",11),S.k0s()()),2&L&&(S.R7$(),S.R50("formData",G.signInData),S.R7$(2),S.vxM(G.scope.currentScope.network.settings.enableUserName?3:4),S.R7$(2),S.Y8G("editorOptions",G.passwordEditorOptions),S.R7$(),S.Y8G("text",G.scope.network.getResourceOrKeyName("web_user_password")),S.R7$(3),S.Y8G("href",S.VkB("",G.scope.currentScope.chapter.path,"/account/request-password"),S.B4B),S.R7$(),S.JRh(G.scope.currentScope.network.getResourceOrKeyName("web_authentication_passwordForgot")),S.R7$(2),S.Y8G("dxTemplateOf","loginButton"),S.R7$(),S.Y8G("dxTemplateOf","loginHeader"))},dependencies:[w.CVf,P.eC,v.e,w.rkl,w.Inh,d.o,x.B,b.B],styles:[".login-dialog-base[_ngcontent-%COMP%]{min-width:400px;display:block}@media (max-width: 768px){.login-dialog-base[_ngcontent-%COMP%]{min-width:unset}}.login-dialog-base[_ngcontent-%COMP%]   .button-indicator[_ngcontent-%COMP%]{margin-right:5px}.login-dialog-base[_ngcontent-%COMP%]   .pull-right[_ngcontent-%COMP%]{display:flex;justify-content:end;text-decoration:underline;color:var(--textColor60);width:fit-content}"]}))}return M(),H})()},4072:(En,it,p)=>{"use strict";p.d(it,{A:()=>Ye});var S=p(7110),d=p(3090),m=p(2432),T=p(6054),C=p(6110),e=p(1926),k=p(1830),w=p(8684),P=p(7251);const v=["pageX","pageY","screenX","screenY","clientX","clientY"];var B=p(4356);const j=(0,C.zk)(),F="dxEmptyEventType",X={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},U={focusin:"focus",focusout:"blur"},Z=["blur","focus","load"],A=["touchmove","wheel","mousewheel","touchstart"];function H(de,Ae){return!(0,k.l6)(de)&&"#document"!==de.nodeName&&T.A.elementMatches(de,Ae)}const J=new WeakMap;let L,R=0;const G=function(){const de={};return S.A.add(function(Ae,pe){de[Ae]=pe}),{getField:function(Ae,pe){return de[Ae]&&de[Ae][pe]},callMethod:function(Ae,pe,Ee,le){return de[Ae]&&de[Ae][pe]&&de[Ae][pe].apply(Ee,le)}}}(),Q=(0,e.A)({on:K(De(ie(function(de,Ae,pe,Ee,le){ce(de,Ae).addHandler(le,pe,Ee)}))),one:K(De(function(de,Ae,pe,Ee,le){const Ke=function(){Q.off(de,Ae,pe,Ke),le.apply(this,arguments)};Q.on(de,Ae,pe,Ee,Ke)})),off:K(function Pe(de){return function(Ae,pe,Ee,le){"function"==typeof Ee&&(le=Ee,Ee=void 0),de(Ae,pe,Ee,le)}}(ie(function(de,Ae,pe,Ee){ce(de,Ae).removeHandler(Ee,pe)}))),trigger:K(Ie(function(de,Ae,pe){const Ee=Ae.type,le=ce(de,Ae.type);if(G.callMethod(Ee,"trigger",de,[Ae,pe]),le.callHandlers(Ae,pe),!G.getField(Ee,"noBubble")&&!Ae.isPropagationStopped()&&-1===Z.indexOf(Ee)){const Be=[],q=function(fe){const We=fe.parentNode??((0,k.Gv)(fe.host)?fe.host:null);We&&(Be.push(We),q(We))};q(de),Be.push(j);let Oe=0;for(;Be[Oe]&&!Ae.isPropagationStopped();)ce(Be[Oe],Ae.type).callHandlers((0,d.X)(Ae,{currentTarget:Be[Oe]}),pe),Oe++}(de.nodeType||(0,k.l6)(de))&&(G.callMethod(Ee,"_default",de,[Ae,pe]),function he(de,Ae){const pe=U[de]||de;(function(Ee,le){return"click"===Ee&&"a"===le.localName})(de,Ae)||(0,k.Tn)(Ae[pe])&&(L=de,Ae[pe](),L=void 0)}(Ee,de))})),triggerHandler:K(Ie(function(de,Ae,pe){ce(de,Ae.type).callHandlers(Ae,pe)}))});function z(de,Ae){const pe=de[0];if(pe)if(T.A.isNode(pe)||(0,k.l6)(pe))Ae.apply(Q,de);else{if((0,k.Kg)(pe)||!("length"in pe))throw P.A.Error("E0025");{const Ee=Array.prototype.slice.call(de,0);Array.prototype.forEach.call(pe,function(le){Ee[0]=le,z(Ee,Ae)})}}}function K(de){return function(){z(arguments,de)}}const re=(0,B.A)(function ee(){let de=!1;try{const Ae=Object.defineProperty({},"passive",{get:function(){return de=!0,!0}});j.addEventListener("test",null,Ae)}catch{}return de}),be=(de,Ae)=>(0,k.l6)(de)?be(de.document,Ae):de.contains?de.contains(Ae):!!(Ae.compareDocumentPosition(de)&Ae.DOCUMENT_POSITION_CONTAINS);function ce(de,Ae){let pe=J.get(de);const Ee=(Ae=Ae||"").split("."),le=Ee.slice(1),Ke=!!Ee[0];Ae=Ee[0]||F,pe||(pe={},J.set(de,pe)),pe[Ae]||(pe[Ae]={handleObjects:[],nativeHandler:null});const Be=pe[Ae];return{addHandler:function(q,Oe,fe){const We=function(Vt,qe){const Nt=[Vt],et=Vt.currentTarget,ue=Vt.relatedTarget;let me,Te;Ae in X&&(me=ue&&et&&(ue===et||be(et,ue))),void 0!==qe&&Nt.push(qe),G.callMethod(Ae,"handle",de,[Vt,fe]),me||(Te=q.apply(et,Nt)),!1===Te&&(Vt.preventDefault(),Vt.stopPropagation())},Ue={handler:q,wrappedHandler:function(Vt,qe){if(!L||Vt.type!==L)if(Vt.data=fe,Vt.delegateTarget=de,Oe){let et=Vt.target;for(;et&&et!==de;)H(et,Oe)&&(Vt.currentTarget=et,We(Vt,qe)),et=et.parentNode}else{var Nt;if(Vt.currentTarget=Vt.delegateTarget||Vt.target,null!==(Nt=Vt.target)&&void 0!==Nt&&Nt.shadowRoot){const ue=(0,m.w)(Vt);Vt.target=ue}We(Vt,qe)}},selector:Oe,type:Ae,data:fe,namespace:le.join("."),namespaces:le,guid:++R};Be.handleObjects.push(Ue);let at,tt=1===Be.handleObjects.length&&Ke;tt&&(tt=!G.callMethod(Ae,"setup",de,[fe,le,q])),tt&&(Be.nativeHandler=function Re(de){return function(Ae,pe){const Ee=ce(this,de);Ae=Q.Event(Ae),Ee.callHandlers(Ae,pe)}}(Ae),re()&&A.indexOf(Ae)>-1&&(at={passive:!1}),Be.removeListener=T.A.listen(de,X[Ae]||Ae,Be.nativeHandler,at)),G.callMethod(Ae,"add",de,[Ue])},removeHandler:function(q,Oe){const fe=function(Ue){const Ve=pe[Ue];if(!Ve.handleObjects.length)return void delete pe[Ue];let tt;Ve.handleObjects=Ve.handleObjects.filter(function(qe){const Nt=le.length&&!Se(qe.namespaces,le)||q&&qe.handler!==q||Oe&&qe.selector!==Oe;return Nt||(tt=qe.handler,G.callMethod(Ue,"remove",de,[qe])),Nt}),!Ve.handleObjects.length&&Ue!==F&&(G.callMethod(Ue,"teardown",de,[le,tt]),Ve.nativeHandler&&Ve.removeListener(),delete pe[Ue])};if(Ke)fe(Ae);else for(const Ue in pe)fe(Ue);0===Object.keys(pe).length&&J.delete(de)},callHandlers:function(q,Oe){let fe=!1;const We=function(Ue){fe||(!le.length||Se(Ue.namespaces,le))&&(Ue.wrappedHandler(q,Oe),fe=q.isImmediatePropagationStopped())};Be.handleObjects.forEach(We),le.length&&pe[F]&&pe[F].handleObjects.forEach(We)}}}function Se(de,Ae){for(let pe=0;pe<Ae.length;pe++)if(de.indexOf(Ae[pe])<0)return!1;return!0}function De(de){return function(Ae,pe,Ee,le,Ke){Ke||(Ke=le,le=void 0),"string"!=typeof Ee&&(le=Ee,Ee=void 0),!Ke&&"string"==typeof pe&&(Ke=le||Ee,Ee=void 0,le=void 0),de(Ae,pe,Ee,le,Ke)}}function Ie(de){return function(Ae,pe,Ee){"string"==typeof pe&&(pe={type:pe}),pe.target||(pe.target=Ae),pe.currentTarget=Ae,pe.delegateTarget||(pe.delegateTarget=Ae),!pe.type&&pe.originalEvent&&(pe.type=pe.originalEvent.type),de(Ae,pe instanceof Q.Event?pe:Q.Event(pe),Ee)}}function ie(de){const Ae=function(pe,Ee){if(Ee&&Ee.indexOf(" ")>-1){const le=Array.prototype.slice.call(arguments,0);Ee.split(" ").forEach(function(Ke){le[1]=Ke,de.apply(this,le)})}else de.apply(this,arguments)};return function(pe,Ee){if("object"==typeof Ee){const le=Array.prototype.slice.call(arguments,0);for(const Ke in Ee)le[1]=Ke,le[le.length-1]=Ee[Ke],Ae.apply(this,le)}else Ae.apply(this,arguments)}}function Ce(de){return null==(Ae=de).which&&0===Ae.type.indexOf("key")?null!=de.charCode?de.charCode:de.keyCode:function(Ae){return!Ae.which&&void 0!==Ae.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(Ae.type)}(de)?{1:1,2:3,3:1,4:2}[de.button]:de.which;var Ae}function ye(de){de&&(Q.Event=de,Q.Event.prototype=de.prototype)}function Me(de,Ae,pe){Object.defineProperty(pe||Q.Event.prototype,de,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&Ae(this.originalEvent)},set:function(Ee){Object.defineProperty(this,de,{enumerable:!0,configurable:!0,writable:!0,value:Ee})}})}ye(function W(de){return Q.Event=function(Ae,pe){if(!(this instanceof Q.Event))return new Q.Event(Ae,pe);Ae||(Ae={}),"string"==typeof Ae&&(Ae={type:Ae}),pe||(pe={}),de.call(this,Ae,pe)},Object.assign(Q.Event.prototype,{_propagationStopped:!1,_immediatePropagationStopped:!1,_defaultPrevented:!1,isPropagationStopped:function(){return!!(this._propagationStopped||this.originalEvent&&this.originalEvent.propagationStopped)},stopPropagation:function(){this._propagationStopped=!0,this.originalEvent&&this.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return this._immediatePropagationStopped},stopImmediatePropagation:function(){this.stopPropagation(),this._immediatePropagationStopped=!0,this.originalEvent&&this.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(this._defaultPrevented||this.originalEvent&&this.originalEvent.defaultPrevented)},preventDefault:function(){this._defaultPrevented=!0,this.originalEvent&&this.originalEvent.preventDefault()}}),Q.Event}(function(de,Ae){var pe;de instanceof Q.Event||(0,C.Vd)()&&de instanceof j.Event||(null===(pe=de.view)||void 0===pe?void 0:pe.Event)&&de instanceof de.view.Event?(this.originalEvent=de,this.type=de.type,this.currentTarget=void 0,Object.prototype.hasOwnProperty.call(de,"isTrusted")&&(this.isTrusted=de.isTrusted),this.timeStamp=de.timeStamp||Date.now()):Object.assign(this,de),Me("which",Ce,this),0===de.type.indexOf("touch")&&(delete Ae.pageX,delete Ae.pageY),Object.assign(this,Ae),this.guid=++R})),["target","relatedTarget","delegateTarget","altKey","bubbles","cancelable","changedTouches","ctrlKey","detail","eventPhase","metaKey","shiftKey","view","char","code","charCode","key","keyCode","button","buttons","offsetX","offsetY","pointerId","pointerType","targetTouches","toElement","touches"].forEach(de=>Me(de,Ae=>Ae[de])),function b(de){v.forEach(function(Ae){de(Ae,function(pe){return function(de,Ae){if(Ae[de]&&!Ae.touches||!Ae.touches)return Ae[de];const pe=Ae.touches.length?Ae.touches:Ae.changedTouches;return pe.length?pe[0][de]:void 0}(Ae,pe)})},this)}(Me);const _e=(0,w.A)(),ke=(0,w.A)();Q.set=function(de){_e.fire(),Q.inject(de),ye(de.Event),ke.fire()},Q.subscribeGlobal=function(){z(arguments,De(function(){const de=arguments;Q.on.apply(this,de),_e.add(function(){const Ae=Array.prototype.slice.call(de,0);Ae.splice(3,1),Q.off.apply(this,Ae)}),ke.add(function(){Q.on.apply(this,de)})}))},Q.forcePassiveFalseEventNames=A,Q.passiveEventHandlersSupported=re;const Ye=Q},4077:(En,it,p)=>{"use strict";p.d(it,{p:()=>z});var S=p(7829),d=p(3349),m=p(9055),T=p(4539),C=p(4925),e=p(6553),k=p(444),w=p(339),P=p(6523),v=p(8892),x=p(3425),b=p(5455),B=p(1983),j=p(2333),F=p(3070),X=p(827),U=p(2390),Z=p(7866),A=p(5463),M=p(5947),H=p(2459),J=p(7248),R=p(239),L=p(862),G=p(656),Q=p(4303);let z=(()=>{var K;class ee{static#e=K=()=>(this.\u0275fac=function(ce){return new(ce||ee)},this.\u0275mod=Q.$C({type:ee}),this.\u0275inj=G.G2t({imports:[S.MD,m.Q,C.i,T.L,e.A,k.x,w.N,P.W,v.b,x.F,b.R,B.S,j.t,F.I,X.p,U.P,A.S,Z.t,M.d,H.B,J.u,d.xZ,L.Z,R.b]}))}return K(),ee})()},4083:(En,it,p)=>{"use strict";p.d(it,{A:()=>W});var S=p(5737),d=p(1973),m=p(9522),T=p(2925),C=p(5704),e=p(5645),k=p(4859),w=p(4270),P=p(6021),v=p(3090),x=p(8535),b=p(1830),B=p(1614),j=p(1221),F=p(5335);const Z=class X{constructor(he,Ce){let{key:ye}=Ce;this._isSharedDataSource=!1,this._keyExpr=ye,this.updateDataSource(he)}_updateDataSource(he){if(he)if(he instanceof j.q)this._isSharedDataSource=!0,this._dataSource=he;else{const Ce=(0,F.ho)(he);this._dataSource=new j.q((0,v.X)(!0,{},{},Ce))}}_updateDataSourceByItems(he){this._dataSource=new j.q({store:new B.A({key:this.key(),data:he}),pageSize:0})}_disposeDataSource(){this._dataSource&&(this._isSharedDataSource?this._isSharedDataSource=!1:this._dataSource.dispose(),delete this._dataSource)}load(){return this._dataSource.load()}loadSingle(he,Ce){if(!this._dataSource)return(new P.cY).reject();let ye=he,Me=Ce;return arguments.length<2&&(Me=he,ye=this.key()),this._dataSource.loadSingle(ye,Me)}loadFromStore(he){return this.store().load(he)}loadNextPage(){return this.pageIndex(1+this.pageIndex()),this.load()}loadOptions(){return this._dataSource.loadOptions()}userData(){return this._dataSource._userData}cancel(he){this._dataSource.cancel(he)}cancelAll(){this._dataSource.cancelAll()}filter(he){return this._dataSource.filter(he)}addSearchFilter(he){this._dataSource._addSearchFilter(he)}group(he){return this._dataSource.group(he)}paginate(){return this._dataSource.paginate()}pageSize(){return this._dataSource._pageSize}pageIndex(he){return this._dataSource.pageIndex(void 0===he?void 0:he)}resetDataSource(){this._disposeDataSource()}resetDataSourcePageIndex(){this.pageIndex()&&(this.pageIndex(0),this.load())}updateDataSource(he,Ce){const ye=he??this.items();Ce&&(this._keyExpr=Ce),this._disposeDataSource(),Array.isArray(ye)?this._updateDataSourceByItems(ye):this._updateDataSource(ye)}totalCount(){return this._dataSource.totalCount()}isLastPage(){return this._dataSource.isLastPage()||!this._dataSource._pageSize}isLoading(){return this._dataSource.isLoading()}isLoaded(){return this._dataSource.isLoaded()}searchValue(he){return this._dataSource.searchValue(he)}searchOperation(he){return this._dataSource.searchOperation(he)}searchExpr(he){return this._dataSource.searchExpr(he)}select(){for(var he=arguments.length,Ce=new Array(he),ye=0;ye<he;ye++)Ce[ye]=arguments[ye];return this._dataSource.select(Ce)}key(){var he;const Ce=null===(he=this._dataSource)||void 0===he?void 0:he.key();return(0,b.O9)(Ce)&&"this"===this._keyExpr?Ce:this._keyExpr}keyOf(he){return this.store().keyOf(he)}store(){return this._dataSource.store()}items(){var he;return null===(he=this._dataSource)||void 0===he?void 0:he.items()}applyMapFunction(he){return this._dataSource._applyMapFunction(he)}getDataSource(){return this._dataSource??null}reload(){return this._dataSource.reload()}on(he,Ce){this._dataSource.on(he,Ce)}off(he,Ce){this._dataSource.off(he,Ce)}};var A=p(8360),M=p(4308),H=p(2392),J=p(8628),R=p(7080),L=p(2773);const Pe=R.A.inherit({_getDefaultOptions(){return(0,v.X)(this.callBase(),{itemTemplate:"item",keyExpr:"this",displayExpr:void 0,selectedItem:null,selectedItemKey:null,stylingMode:"outlined",deferRendering:!0,noDataText:A.A.format("dxCollectionWidget-noDataText"),useSelectMode:!1,splitButton:!1,showArrowIcon:!0,template:null,text:"",type:"normal",icon:void 0,onButtonClick:null,onSelectionChanged:null,onItemClick:null,opened:!1,items:null,dataSource:null,focusStateEnabled:!0,hoverStateEnabled:!0,dropDownOptions:{},dropDownContentTemplate:"content",wrapItemText:!1,useItemTextAsTitle:!0,grouped:!1,groupTemplate:"group",buttonGroupOptions:{}})},_setOptionsByReference(){this.callBase(),(0,v.X)(this._optionsByReference,{selectedItem:!0})},_init(){this.callBase(),this._createItemClickAction(),this._createActionClickAction(),this._createSelectionChangedAction(),this._initDataController(),this._compileKeyGetter(),this._compileDisplayGetter(),this._options.cache("buttonGroupOptions",this.option("buttonGroupOptions")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_initDataController(){const ie=this.option("dataSource");this._dataController=new Z(ie??this.option("items"),{key:this.option("keyExpr")})},_initTemplates(){this._templateManager.addDefaultTemplates({content:new e.l(ie=>{const he=(0,C.A)(ie.container),Ce=(0,C.A)("<div>").appendTo(he);this._list=this._createComponent(Ce,H.A,this._listOptions()),this._list.registerKeyHandler("escape",this._escHandler.bind(this)),this._list.registerKeyHandler("tab",this._escHandler.bind(this)),this._list.registerKeyHandler("leftArrow",this._escHandler.bind(this)),this._list.registerKeyHandler("rightArrow",this._escHandler.bind(this))})}),this.callBase()},_compileKeyGetter(){this._keyGetter=(0,w.Hz)(this._dataController.key())},_compileDisplayGetter(){this._displayGetter=(0,w.Hz)(this.option("displayExpr"))},_initMarkup(){this.callBase(),this.$element().addClass("dx-dropdownbutton"),this._renderButtonGroup(),this._updateArrowClass(),(0,b.O9)(this.option("selectedItemKey"))&&this._loadSelectedItem().done(this._updateActionButton.bind(this))},_renderFocusTarget:k.lQ,_render(){(!this.option("deferRendering")||this.option("opened"))&&this._renderPopup(),this.callBase()},_renderContentImpl(){return this._popup&&this._renderPopupContent(),this.callBase()},_loadSelectedItem(){var ie;null===(ie=this._loadSingleDeferred)||void 0===ie||ie.reject();const he=(0,P.cY)();if(this._list&&void 0!==this._lastSelectedItemData){const ye=this.option("useSelectMode")?this._list.option("selectedItem"):this._lastSelectedItemData;return he.resolve(ye)}this._lastSelectedItemData=void 0;const Ce=this.option("selectedItemKey");return this._dataController.loadSingle(Ce).done(he.resolve).fail(()=>{he.reject(null)}),this._loadSingleDeferred=he,he.promise()},_createActionClickAction(){this._actionClickAction=this._createActionByOption("onButtonClick")},_createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_createItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")},_fireSelectionChangedAction(ie){let{previousValue:he,value:Ce}=ie;this._selectionChangedAction({item:Ce,previousItem:he})},_fireItemClickAction(ie){let{event:he,itemElement:Ce,itemData:ye}=ie;return this._itemClickAction({event:he,itemElement:Ce,itemData:this._actionItem||ye})},_getButtonTemplate(){const{template:ie,splitButton:he,showArrowIcon:Ce}=this.option();return ie||(he||!Ce?"content":(ye,Me)=>{let{text:_e,icon:ke}=ye;const Ye=(0,x.N)(ke),de=_e?(0,C.A)("<span>").text(_e).addClass("dx-button-text"):void 0,Ae=(0,x.N)("spindown").addClass("dx-icon-right");(0,C.A)(Me).append(Ye,de,Ae)})},_getActionButtonConfig(){const{icon:ie,text:he,type:Ce,splitButton:ye}=this.option(),Me={text:he,icon:ie,type:Ce,template:this._getButtonTemplate(),elementAttr:{class:"dx-dropdownbutton-action"}};return ye&&(Me.elementAttr.role="menuitem"),Me},_getSpinButtonConfig(){const{type:ie}=this.option();return{type:ie,icon:"spindown",elementAttr:{class:"dx-dropdownbutton-toggle",role:"menuitem"}}},_getButtonGroupItems(){const{splitButton:ie}=this.option(),he=[this._getActionButtonConfig()];return ie&&he.push(this._getSpinButtonConfig()),he},_buttonGroupItemClick(ie){let{event:he,itemData:Ce}=ie;const ye="dx-dropdownbutton-action"===Ce.elementAttr.class;"dx-dropdownbutton-toggle"===Ce.elementAttr.class?this.toggle():ye&&(this._actionClickAction({event:he,selectedItem:this.option("selectedItem")}),this.option("splitButton")||this.toggle())},_getButtonGroupOptions(){const{accessKey:ie,focusStateEnabled:he,hoverStateEnabled:Ce,splitButton:ye,stylingMode:Me,tabIndex:_e}=this.option();return(0,v.X)({items:this._getButtonGroupItems(),width:"100%",height:"100%",selectionMode:"none",focusStateEnabled:he,hoverStateEnabled:Ce,stylingMode:Me,accessKey:ie,tabIndex:_e,elementAttr:{role:ye?"menu":"group"},onItemClick:this._buttonGroupItemClick.bind(this),onKeyboardHandled:Ye=>this._keyboardHandler(Ye)},this._options.cache("buttonGroupOptions"))},_renderPopupContent(){const ie=this._popup.$content(),he=this._getTemplateByOption("dropDownContentTemplate");return ie.empty(),this._popupContentId=`dx-${new T.A}`,this.setAria("id",this._popupContentId,ie),he.render({container:(0,m.cc)(ie),model:this.option("items")||this._dataController.getDataSource()})},_popupOptions(){const ie=this.option("rtlEnabled")?"right":"left";return(0,v.X)({dragEnabled:!1,focusStateEnabled:!1,deferRendering:this.option("deferRendering"),hideOnOutsideClick:he=>{const Ce=this.$element();return!(0,C.A)(he.target).closest(".dx-dropdownbutton").is(Ce)},showTitle:!1,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},_ignoreFunctionValueDeprecation:!0,width:()=>(0,L.v)(this.$element()),height:"auto",shading:!1,position:{of:this.$element(),collision:"flipfit",my:`${ie} top`,at:`${ie} bottom`},_wrapperClassExternal:"dx-dropdowneditor-overlay"},this._options.cache("dropDownOptions"),{visible:this.option("opened")})},_listOptions(){const ie=this.option("selectedItemKey"),he=this.option("useSelectMode");return{selectionMode:he?"single":"none",wrapItemText:this.option("wrapItemText"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:()=>this._fireContentReadyAction(),selectedItemKeys:(0,b.O9)(ie)&&he?[ie]:[],grouped:this.option("grouped"),groupTemplate:this.option("groupTemplate"),keyExpr:this._dataController.key(),noDataText:this.option("noDataText"),displayExpr:this.option("displayExpr"),itemTemplate:this.option("itemTemplate"),items:this.option("items"),dataSource:this._dataController.getDataSource(),onItemClick:Ce=>{this.option("useSelectMode")||(this._lastSelectedItemData=Ce.itemData),this.option("selectedItemKey",this._keyGetter(Ce.itemData)),!1!==this._fireItemClickAction(Ce)&&(this.toggle(!1),this._buttonGroup.focus())}}},_upDownKeyHandler(){return this._popup&&this._popup.option("visible")&&this._list?this._list.focus():this.open(),!0},_escHandler(){return this.close(),this._buttonGroup.focus(),!0},_tabHandler(){return this.close(),!0},_renderPopup(){const ie=(0,C.A)("<div>");this.$element().append(ie),this._popup=this._createComponent(ie,J.A,this._popupOptions()),this._popup.$content().addClass("dx-dropdownbutton-content"),this._popup.$wrapper().addClass("dx-dropdownbutton-popup-wrapper"),this._popup.$overlayContent().attr("aria-label","Dropdown"),this._popup.on("hiding",this._popupHidingHandler.bind(this)),this._popup.on("showing",this._popupShowingHandler.bind(this)),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_popupHidingHandler(){this.option("opened",!1),this._updateAriaAttributes(!1)},_popupOptionChanged(ie){const he=R.A.getOptionsFromContainer(ie);this._setPopupOption(he);const Ce=Object.keys(he);(Ce.includes("width")||Ce.includes("height"))&&this._dimensionChanged()},_dimensionChanged(){void 0===(0,L.b)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",()=>(0,L.v)(this.$element()))},_setPopupOption(ie,he){this._setWidgetOption("_popup",arguments)},_popupShowingHandler(){this.option("opened",!0),this._updateAriaAttributes(!0)},_setElementAria(ie){this.setAria({owns:ie?this._popupContentId:void 0},this.$element())},_setButtonsAria(ie){const he={expanded:ie,haspopup:"listbox"},Ce={};this.option("text")||(Ce.label="dropdownbutton"),this._getButtons().each((ye,Me)=>{this.setAria(0===ye?(0,S.A)({},Ce,he):he,(0,C.A)(Me))})},_updateAriaAttributes(ie){this._setElementAria(ie),this._setButtonsAria(ie)},_getButtons(){return this._buttonGroup.$element().find(".dx-button")},_renderButtonGroup(){const ie=this._buttonGroup&&this._buttonGroup.$element()||(0,C.A)("<div>");this._buttonGroup||this.$element().append(ie),this._buttonGroup=this._createComponent(ie,M.A,this._getButtonGroupOptions()),this._buttonGroup.registerKeyHandler("downArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("tab",this._tabHandler.bind(this)),this._buttonGroup.registerKeyHandler("upArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("escape",this._escHandler.bind(this)),this._bindInnerWidgetOptions(this._buttonGroup,"buttonGroupOptions"),this._updateAriaAttributes(this.option("opened"))},_updateArrowClass(){const ie=this.option("splitButton")||this.option("showArrowIcon");this.$element().toggleClass("dx-dropdownbutton-has-arrow",ie)},toggle(ie){return this._popup||(this._renderPopup(),this._renderContent()),this._popup.toggle(ie)},open(){return this.toggle(!0)},close(){return this.toggle(!1)},_setListOption(ie,he){this._list&&this._list.option(ie,he)},_getDisplayValue(ie){const Ce=(0,b.Gv)(ie)?this._displayGetter(ie):ie;return(0,b.Gv)(Ce)?"":String((0,k.YD)(Ce,""))},_updateActionButton(ie){this.option("useSelectMode")&&this.option({text:this._getDisplayValue(ie),icon:(0,b.Qd)(ie)?ie.icon:void 0}),this._setOptionWithoutOptionChange("selectedItem",ie),this._setOptionWithoutOptionChange("selectedItemKey",this._keyGetter(ie))},_clean(){this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove()},_selectedItemKeyChanged(ie){this._setListOption("selectedItemKeys",this.option("useSelectMode")&&(0,b.O9)(ie)?[ie]:[]);const he=this.option("selectedItem");this._loadSelectedItem().always(Ce=>{this._updateActionButton(Ce),this._displayGetter(he)!==this._displayGetter(Ce)&&this._fireSelectionChangedAction({previousValue:he,value:Ce})})},_updateButtonGroup(ie,he){this._buttonGroup.option(ie,he),this._updateAriaAttributes(this.option("opened"))},_actionButtonOptionChanged(ie){let{name:he,value:Ce}=ie;const ye={};ye[he]=Ce,this._updateButtonGroup("items[0]",(0,v.X)({},this._getActionButtonConfig(),ye)),this._popup&&this._popup.repaint()},_selectModeChanged(ie){if(ie){this._setListOption("selectionMode","single");const he=this.option("selectedItemKey");this._setListOption("selectedItemKeys",(0,b.O9)(he)?[he]:[]),this._selectedItemKeyChanged(this.option("selectedItemKey"))}else this._setListOption("selectionMode","none"),this.option({selectedItemKey:void 0,selectedItem:void 0}),this._actionButtonOptionChanged({text:this.option("text")})},_updateItemCollection(ie){const he=this.option("selectedItemKey");this._setListOption("selectedItem",null),this._setWidgetOption("_list",[ie]),(0,b.O9)(he)&&this._loadSelectedItem().done(Ce=>{this._setListOption("selectedItemKeys",[he]),this._setListOption("selectedItem",Ce)}).fail(Ce=>{this._setListOption("selectedItemKeys",[])}).always(this._updateActionButton.bind(this))},_updateDataController(ie){this._dataController.updateDataSource(ie,this.option("keyExpr")),this._updateKeyExpr()},_updateKeyExpr(){this._compileKeyGetter(),this._setListOption("keyExpr",this._dataController.key())},focus(){this._buttonGroup.focus()},_optionChanged(ie){var he;const{name:Ce,value:ye}=ie;switch(Ce){case"useSelectMode":this._selectModeChanged(ye);break;case"splitButton":this._updateArrowClass(),this._renderButtonGroup();break;case"displayExpr":this._compileDisplayGetter(),this._setListOption(Ce,ye),this._updateActionButton(this.option("selectedItem"));break;case"keyExpr":this._updateDataController();break;case"buttonGroupOptions":this._innerWidgetOptionChanged(this._buttonGroup,ie);break;case"dropDownOptions":if("dropDownOptions.visible"===ie.fullName)break;void 0!==ie.value.visible&&delete ie.value.visible,this._popupOptionChanged(ie),this._innerWidgetOptionChanged(this._popup,ie);break;case"opened":this.toggle(ye);break;case"focusStateEnabled":case"hoverStateEnabled":this._setListOption(Ce,ye),this._updateButtonGroup(Ce,ye),this.callBase(ie);break;case"items":this._updateDataController(this.option("items")),this._updateItemCollection(Ce);break;case"dataSource":this._dataController.updateDataSource(ye),this._updateKeyExpr(),this._updateItemCollection(Ce);break;case"icon":case"text":this._actionButtonOptionChanged(ie);break;case"showArrowIcon":this._updateArrowClass(),this._renderButtonGroup(),this._popup&&this._popup.repaint();break;case"width":case"height":this.callBase(ie),null===(he=this._popup)||void 0===he||he.repaint();break;case"stylingMode":case"tabIndex":this._updateButtonGroup(Ce,ye);break;case"type":this._updateButtonGroup("items",this._getButtonGroupItems());break;case"itemTemplate":case"grouped":case"noDataText":case"groupTemplate":case"wrapItemText":case"useItemTextAsTitle":this._setListOption(Ce,ye);break;case"dropDownContentTemplate":this._renderContent();break;case"selectedItemKey":this._selectedItemKeyChanged(ye);break;case"selectedItem":break;case"onItemClick":this._createItemClickAction();break;case"onButtonClick":this._createActionClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"deferRendering":this.toggle(this.option("opened"));break;case"template":this._renderButtonGroup();break;default:this.callBase(ie)}},getDataSource(){return this._dataController.getDataSource()}});(0,d.A)("dxDropDownButton",Pe);const W=Pe},4129:(En,it,p)=>{"use strict";p.d(it,{s:()=>m});const d=(0,p(6110).zk)(),m=function(){let T;try{T=d.sessionStorage}catch{}return T}},4162:(En,it,p)=>{"use strict";p.d(it,{Xl:()=>re,SN:()=>K,zD:()=>H,jJ:()=>G,pK:()=>J,AY:()=>z,I3:()=>Q});var S=p(5737),d=p(3686),m=p(5973),T=p(9522),C=p(7251),e=p(5704),k=p(7591),w=p(8412),P=p(6776),v=p(1832),x=p(1830);const b={};let B;function X(){return B}(function j(be,ce){b[be]=ce})("default",{compile:be=>(0,v.ki)(be),render:(be,ce,Re)=>be.clone()}),function F(be){if((0,x.Kg)(be)){if(B=b[be],!B)throw C.A.Error("E0020",be)}else B=be}("default");class U extends P.o{constructor(ce){super(),this._element=ce}_renderCore(ce){const Re=ce.transclude;return!Re&&!this._compiledTemplate&&(this._compiledTemplate=X().compile(this._element)),(0,e.A)("<div>").append(Re?this._element:X().render(this._compiledTemplate,ce.model,ce.index)).contents()}source(){return(0,e.A)(this._element).clone()}}var Z=p(5345),A=p(4859),M=p(3090);const H=(be,ce)=>{const Re=(0,e.A)(be).contents().filter(`[data-options*="${ce}"]`);return[].slice.call(Re).map(Se=>{const De=(0,e.A)(Se).attr("data-options")||"";return{element:Se,options:(0,d.A)().optionsParser(De)[ce]}}).filter(Se=>!!Se.options)},J=be=>{const ce=(0,Z.$z)(be,Se=>Se.options.name);if(ce[void 0])throw C.A.Error("E0023");const Re={};return Object.keys(ce).forEach(Se=>{var De;const Pe=null===(De=(0,A.hm)(m.A.current(),ce[Se],Ie=>Ie.options)[0])||void 0===De?void 0:De.element;Pe&&(Re[Se]=Pe)}),Re},R=be=>{const ce=be.render.bind(be);return(0,M.X)({},be,{render(Re){const Se=ce(Re);return Re&&Re.onRendered&&Re.onRendered(),Se}})},G=be=>{const ce=[];return"model"in be&&ce.push(be.model),"index"in be&&ce.push(be.index),ce.push(be.container),ce},Q=be=>"string"==typeof be?(0,v.ki)(be):be,z=be=>(0,x.Kb)(be)&&be[0]||be,K=be=>new U(be),re=(be,ce,Re,Se,De,Pe)=>null==be?new w.A:be instanceof k.M?Pe[be.name]:be instanceof P.o?be:(0,x.Tn)(be.render)&&!(0,x.Kb)(be)?Se?be:R(be):be.nodeType||(0,x.Kb)(be)?ce((0,e.A)(be)):((be,ce,Re,Se)=>{let De=null;return(!Se||-1===Se.indexOf(be))&&(De=ce[be],De&&!(De instanceof P.o)&&((0,x.Tn)(De.render)&&(De=(be=>{const ce=be.render.bind(be);return(0,M.X)({},be,{render(Re){const Se=(0,e.A)(Re.container);return ce((0,S.A)({},Re,{container:(0,T.cc)(Se)}))}})})(De)),Re||(De=R(De)))),De})(be,Re,Se,De)||Pe[be]||ce(be)},4270:(En,it,p)=>{"use strict";p.d(it,{Hz:()=>X,ao:()=>M,u7:()=>x,vL:()=>A});var S=p(7251),d=p(3538),m=p(6509),T=p(1830),C=p(2660),e=p(6234);const k=e.A.unwrap,w=e.A.isWrapped,P=e.A.assign,x=function(H){return function(H){return H.replace(/\[/g,".").replace(/\]/g,"")}(H).split(".")},B=function(H,J,R,L){if("this"===J)throw new S.A.Error("E4016");const G=H[J];L.unwrapObservables&&w(G)?P(G,R):H[J]=R},j=function(H){return(H=H||{}).unwrapObservables=void 0===H.unwrapObservables||H.unwrapObservables,H};function F(H,J){return J.unwrapObservables?k(H):H}const X=function(H){if(arguments.length>1&&(H=[].slice.call(arguments)),!H||"this"===H)return function(J){return J};if("string"==typeof H){const J=x(H);return function(R,L){const G=(L=j(L)).functionsAsIs,Q="defaultValue"in L;let z=F(R,L);for(let K=0;K<J.length;K++){if(!z){if(null==z&&Q)return L.defaultValue;break}const ee=J[K];if(Q&&(0,T.Gv)(z)&&!(ee in z))return L.defaultValue;let re=F(z[ee],L);!G&&(0,T.Tn)(re)&&(re=re.call(z)),z=re}return z}}return Array.isArray(H)?function U(H){const J={};for(let R=0,L=H.length;R<L;R++){const G=H[R];J[G]=X(G)}return function(R,L){let G;return(0,C.__)(J,function(Q){const z=this(R,L);if(void 0===z)return;let K=G||(G={});const ee=Q.split("."),re=ee.length-1;for(let be=0;be<re;be++){const ce=ee[be];ce in K||(K[ce]={}),K=K[ce]}K[ee[re]]=z}),G}}(H):(0,T.Tn)(H)?H:void 0},Z=function(H,J,R,L){if((0,T.O9)(R))return R;const G={};return B(H,J,G,L),G},A=function(H){const J=(H=x(H||"this")).length-1;return function(R,L,G){let Q=F(R,G=j(G));H.forEach(function(z,K){let ee=function(H,J,R){return F("this"===J?H:H[J],R=R||{})}(Q,z,G);const re=!G.functionsAsIs&&(0,T.Tn)(ee)&&!w(ee);K===J?G.merge&&(0,T.Qd)(L)&&(!(0,T.O9)(ee)||(0,T.Qd)(ee))?(ee=Z(Q,z,ee,G),(0,m.tm)(ee,L,!1,!0)):re?Q[z](L):B(Q,z,L,G):(ee=Z(Q,z,ee,G),re&&(ee=ee.call(Q)),Q=ee)})}},M=function(H,J){var R;let L=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(H instanceof Date)return H.getTime();if(H&&H instanceof d.A&&H.valueOf)return H.valueOf();if("case"!==(null==L||null===(R=L.collatorOptions)||void 0===R?void 0:R.sensitivity)&&!J&&"string"==typeof H){var Q;if("base"===(null==L||null===(Q=L.collatorOptions)||void 0===Q?void 0:Q.sensitivity)){const z=/[\u0300-\u036f]/g;H=H.normalize("NFD").replace(z,"")}return null!=L&&L.locale?H.toLocaleLowerCase(L.locale):H.toLowerCase()}return H}},4303:(En,it,p)=>{"use strict";p.d(it,{$C:()=>Lv,$Ln:()=>ex,AVh:()=>Yo,Ab1:()=>Ng,Aen:()=>ps,Agw:()=>bo,B1s:()=>mp,B4B:()=>kr,BIS:()=>is,BMQ:()=>EC,C4Q:()=>ge,C5r:()=>wI,C7A:()=>Bb,Co$:()=>Bv,DG8:()=>px,DH7:()=>qA,DNE:()=>n_,DkB:()=>VC,Dyx:()=>Sw,E5c:()=>gS,EBC:()=>Aa,EFF:()=>VA,EJ8:()=>$v,FRM:()=>ce,FsC:()=>Hv,G5x:()=>bT,GBs:()=>nS,H1s:()=>ox,HbH:()=>_r,Hgh:()=>im,JRh:()=>hS,Jt5:()=>kx,Jv_:()=>lI,KA5:()=>hw,KED:()=>aP,LHq:()=>fS,Lme:()=>pS,NAR:()=>Xx,NCX:()=>pc,NOj:()=>Cg,NSC:()=>vc,NYb:()=>jT,OA$:()=>Se,OM3:()=>Hm,OR8:()=>Pg,Ocv:()=>KI,OfE:()=>mh,Ol2:()=>Lf,PLl:()=>io,PYC:()=>eu,PYt:()=>qm,QTQ:()=>pl,Ql9:()=>ap,R50:()=>vS,R7$:()=>xg,RPW:()=>tu,RV6:()=>Px,SKi:()=>aa,SdG:()=>eS,SdI:()=>IS,SpI:()=>t0,TFI:()=>m_,Ts$:()=>Ou,UQu:()=>AS,V5L:()=>GI,VBU:()=>Hg,VFN:()=>sI,VeQ:()=>Es,VkB:()=>iI,Vt3:()=>Hf,VwU:()=>am,VzW:()=>Fv,WPN:()=>to,XpG:()=>qw,Xx1:()=>X,Y8G:()=>Tx,YEm:()=>hn,Z7z:()=>Sx,ZXR:()=>mS,Zhj:()=>BE,_9s:()=>Wy,_9u:()=>Xt,_jY:()=>gl,_qm:()=>Bi,_ys:()=>iO,a5S:()=>rI,a8H:()=>r_,aCM:()=>Vl,aKT:()=>mo,ai1:()=>oI,bIt:()=>Kx,bMT:()=>xI,bVm:()=>Qg,bkB:()=>Cu,brH:()=>OI,c1b:()=>Km,cDI:()=>_O,cZr:()=>xc,cdK:()=>nx,czy:()=>Td,d80:()=>eg,dOL:()=>qb,e6s:()=>hA,eHC:()=>kf,eq3:()=>hI,eu8:()=>A_,eux:()=>Yg,f$h:()=>Qr,fX1:()=>tm,gXe:()=>Ma,giA:()=>zp,gil:()=>Yc,i5U:()=>EI,iLQ:()=>sx,iWE:()=>zc,j41:()=>kC,k0s:()=>BC,kBR:()=>Rx,kS0:()=>Fn,kdw:()=>Z,lJ4:()=>uI,lJT:()=>rx,l_i:()=>pI,lsd:()=>oS,mGM:()=>iS,mNQ:()=>nI,mal:()=>oO,mxI:()=>CS,myG:()=>iC,n$t:()=>yp,nI1:()=>bI,nVh:()=>bw,npT:()=>wo,nrm:()=>D_,o8S:()=>f_,ozJ:()=>Sv,p2i:()=>Sl,pJN:()=>Js,phd:()=>VO,pl0:()=>HO,qex:()=>om,rAh:()=>Bu,rXU:()=>uh,rj2:()=>nm,sFG:()=>bv,sMw:()=>gI,sZ2:()=>Wn,sdS:()=>Qx,sgu:()=>np,tSv:()=>kc,tvf:()=>Fe,uiO:()=>M,utN:()=>Pf,vDg:()=>Qy,vet:()=>Mf,vxM:()=>xw,w6W:()=>mb,wjB:()=>cI,wni:()=>tS,wr$:()=>gt,xGo:()=>ss,xc7:()=>no,xe9:()=>MS,yLl:()=>tx,ypd:()=>$O,ziG:()=>fI,zoo:()=>tO,zw6:()=>ir});var S=p(6394),d=p(656),m=p(1131),T=p(6104),C=p(2029),e=p(3527);function k(u){return{toString:u}.toString()}const w="__annotations__",P="__parameters__",v="__prop__metadata__";function x(u,f,_,O,V){return k(()=>{const se=b(f);function $e(...nt){if(this instanceof $e)return se.call(this,...nt),this;const ct=new $e(...nt);return function(fn){return V&&V(fn,...nt),(fn.hasOwnProperty(w)?fn[w]:Object.defineProperty(fn,w,{value:[]})[w]).push(ct),fn}}return _&&($e.prototype=Object.create(_.prototype)),$e.prototype.ngMetadataName=u,$e.annotationCls=$e,$e})}function b(u){return function(..._){if(u){const O=u(..._);for(const V in O)this[V]=O[V]}}}function B(u,f,_){return k(()=>{const O=b(f);function V(...se){if(this instanceof V)return O.apply(this,se),this;const $e=new V(...se);return nt.annotation=$e,nt;function nt(ct,tn,fn){const Nn=ct.hasOwnProperty(P)?ct[P]:Object.defineProperty(ct,P,{value:[]})[P];for(;Nn.length<=fn;)Nn.push(null);return(Nn[fn]=Nn[fn]||[]).push($e),ct}}return V.prototype.ngMetadataName=u,V.annotationCls=V,V})}const F=(0,d.z6V)(B("Inject",u=>({token:u})),-1),X=(0,d.z6V)(B("Optional"),8),U=(0,d.z6V)(B("Self"),2),Z=(0,d.z6V)(B("SkipSelf"),4),A=(0,d.z6V)(B("Host"),1);function M(u){const f=d.laP.ng;if(f&&f.\u0275compilerFacade)return f.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const H={\u0275\u0275defineInjectable:d.jDH,\u0275\u0275defineInjector:d.G2t,\u0275\u0275inject:d.KVO,\u0275\u0275invalidFactoryDep:d.dmw,resolveForwardRef:d.nl4},J=Function;function R(u){return"function"==typeof u}const L=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,G=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Q=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,z=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class ee{_reflect;constructor(f){this._reflect=f||d.laP.Reflect}factory(f){return(..._)=>new f(..._)}_zipTypesAndAnnotations(f,_){let O;O=(0,d.WfI)(typeof f>"u"?_.length:f.length);for(let V=0;V<O.length;V++)O[V]=typeof f>"u"?[]:f[V]&&f[V]!=Object?[f[V]]:[],_&&null!=_[V]&&(O[V]=O[V].concat(_[V]));return O}_ownParameters(f,_){if(function K(u){return L.test(u)||z.test(u)||G.test(u)&&!Q.test(u)}(f.toString()))return null;if(f.parameters&&f.parameters!==_.parameters)return f.parameters;const V=f.ctorParameters;if(V&&V!==_.ctorParameters){const nt="function"==typeof V?V():V,ct=nt.map(fn=>fn&&fn.type),tn=nt.map(fn=>fn&&re(fn.decorators));return this._zipTypesAndAnnotations(ct,tn)}const se=f.hasOwnProperty(P)&&f[P],$e=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",f);return $e||se?this._zipTypesAndAnnotations($e,se):(0,d.WfI)(f.length)}parameters(f){if(!R(f))return[];const _=be(f);let O=this._ownParameters(f,_);return!O&&_!==Object&&(O=this.parameters(_)),O||[]}_ownAnnotations(f,_){if(f.annotations&&f.annotations!==_.annotations){let O=f.annotations;return"function"==typeof O&&O.annotations&&(O=O.annotations),O}return f.decorators&&f.decorators!==_.decorators?re(f.decorators):f.hasOwnProperty(w)?f[w]:null}annotations(f){if(!R(f))return[];const _=be(f),O=this._ownAnnotations(f,_)||[];return(_!==Object?this.annotations(_):[]).concat(O)}_ownPropMetadata(f,_){if(f.propMetadata&&f.propMetadata!==_.propMetadata){let O=f.propMetadata;return"function"==typeof O&&O.propMetadata&&(O=O.propMetadata),O}if(f.propDecorators&&f.propDecorators!==_.propDecorators){const O=f.propDecorators,V={};return Object.keys(O).forEach(se=>{V[se]=re(O[se])}),V}return f.hasOwnProperty(v)?f[v]:null}propMetadata(f){if(!R(f))return{};const _=be(f),O={};if(_!==Object){const se=this.propMetadata(_);Object.keys(se).forEach($e=>{O[$e]=se[$e]})}const V=this._ownPropMetadata(f,_);return V&&Object.keys(V).forEach(se=>{const $e=[];O.hasOwnProperty(se)&&$e.push(...O[se]),$e.push(...V[se]),O[se]=$e}),O}ownPropMetadata(f){return R(f)&&this._ownPropMetadata(f,be(f))||{}}hasLifecycleHook(f,_){return f instanceof J&&_ in f.prototype}}function re(u){return u?u.map(f=>new(0,f.type.annotationCls)(...f.args?f.args:[])):[]}function be(u){const f=u.prototype?Object.getPrototypeOf(u.prototype):null;return(f?f.constructor:null)||Object}class ce{previousValue;currentValue;firstChange;constructor(f,_,O){this.previousValue=f,this.currentValue=_,this.firstChange=O}isFirstChange(){return this.firstChange}}function Re(u,f,_,O){null!==f?f.applyValueToInputSignal(f,O):u[_]=O}const Se=(()=>{const u=()=>De;return u.ngInherit=!0,u})();function De(u){return u.type.prototype.ngOnChanges&&(u.setInput=Ie),Pe}function Pe(){const u=ie(this),f=u?.current;if(f){const _=u.previous;if(_===d.MZA)u.previous=f;else for(let O in f)_[O]=f[O];u.current=null,this.ngOnChanges(f)}}function Ie(u,f,_,O,V){const se=this.declaredInputs[O],$e=ie(u)||function he(u,f){return u[W]=f}(u,{previous:d.MZA,current:null}),nt=$e.current||($e.current={}),ct=$e.previous,tn=ct[se];nt[se]=new ce(tn&&tn.currentValue,_,ct===d.MZA),Re(u,f,V,_)}const W="__ngSimpleChanges__";function ie(u){return u[W]||null}const Ce=[],ke=function(u,f=null,_){for(let O=0;O<Ce.length;O++)(0,Ce[O])(u,f,_)};function de(u,f){for(let _=f.directiveStart,O=f.directiveEnd;_<O;_++){const se=u.data[_].type.prototype,{ngAfterContentInit:$e,ngAfterContentChecked:nt,ngAfterViewInit:ct,ngAfterViewChecked:tn,ngOnDestroy:fn}=se;$e&&(u.contentHooks??=[]).push(-_,$e),nt&&((u.contentHooks??=[]).push(_,nt),(u.contentCheckHooks??=[]).push(_,nt)),ct&&(u.viewHooks??=[]).push(-_,ct),tn&&((u.viewHooks??=[]).push(_,tn),(u.viewCheckHooks??=[]).push(_,tn)),null!=fn&&(u.destroyHooks??=[]).push(_,fn)}}function Ae(u,f,_){le(u,f,3,_)}function pe(u,f,_,O){(3&u[d.Wg1])===_&&le(u,f,_,O)}function Ee(u,f){let _=u[d.Wg1];(3&_)===f&&(_&=16383,_+=1,u[d.Wg1]=_)}function le(u,f,_,O){const se=O??-1,$e=f.length-1;let nt=0;for(let ct=void 0!==O?65535&u[d.wVl]:0;ct<$e;ct++)if("number"==typeof f[ct+1]){if(nt=f[ct],null!=O&&nt>=O)break}else f[ct]<0&&(u[d.wVl]+=65536),(nt<se||-1==se)&&(Be(u,_,f,ct),u[d.wVl]=(4294901760&u[d.wVl])+ct+2),ct++}function Ke(u,f){ke(4,u,f);const _=(0,m.Ht)(null);try{f.call(u)}finally{(0,m.Ht)(_),ke(5,u,f)}}function Be(u,f,_,O){const V=_[O]<0,se=_[O+1],nt=u[V?-_[O]:_[O]];V?u[d.Wg1]>>14<u[d.wVl]>>16&&(3&u[d.Wg1])===f&&(u[d.Wg1]+=16384,Ke(nt,se)):Ke(nt,se)}const q=-1;class Oe{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(f,_,O,V){this.factory=f,this.name=V,this.canSeeViewProviders=_,this.injectImpl=O}}function We(u){return null!=u&&"object"==typeof u&&(null===u.insertBeforeIndex||"number"==typeof u.insertBeforeIndex||Array.isArray(u.insertBeforeIndex))}function Nt(u){return 3===u||4===u||6===u}function et(u){return 64===u.charCodeAt(0)}function ue(u,f){if(null!==f&&0!==f.length)if(null===u||0===u.length)u=f.slice();else{let _=-1;for(let O=0;O<f.length;O++){const V=f[O];"number"==typeof V?_=V:0===_||me(u,_,V,0,-1===_||2===_?f[++O]:null)}}return u}function me(u,f,_,O,V){let se=0,$e=u.length;if(-1===f)$e=-1;else for(;se<u.length;){const nt=u[se++];if("number"==typeof nt){if(nt===f){$e=-1;break}if(nt>f){$e=se-1;break}}}for(;se<u.length;){const nt=u[se];if("number"==typeof nt)break;if(nt===_)return void(null!==V&&(u[se+1]=V));se++,null!==V&&se++}-1!==$e&&(u.splice($e,0,f),se=$e+1),u.splice(se++,0,_),null!==V&&u.splice(se++,0,V)}function Te(u){return u!==q}function je(u){return 32767&u}function lt(u,f){let _=function Ne(u){return u>>16}(u),O=f;for(;_>0;)O=O[d.X5O],_--;return O}let Qe=!0;function Ct(u){const f=Qe;return Qe=u,f}const Gt=255,ft=5;let nn=0;const rn={};function On(u,f){const _=Mi(u,f);if(-1!==_)return _;const O=f[d.eDl];O.firstCreatePass&&(u.injectorIndex=f.length,ji(O.data,u),ji(f,null),ji(O.blueprint,null));const V=Vo(u,f),se=u.injectorIndex;if(Te(V)){const $e=je(V),nt=lt(V,f),ct=nt[d.eDl].data;for(let tn=0;tn<8;tn++)f[se+tn]=nt[$e+tn]|ct[$e+tn]}return f[se+8]=V,se}function ji(u,f){u.push(0,0,0,0,0,0,0,0,f)}function Mi(u,f){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===f[u.injectorIndex+8]?-1:u.injectorIndex}function Vo(u,f){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let _=0,O=null,V=f;for(;null!==V;){if(O=bs(V),null===O)return q;if(_++,V=V[d.X5O],-1!==O.injectorIndex)return O.injectorIndex|_<<16}return q}function Co(u,f,_){!function Mn(u,f,_){let O;"string"==typeof _?O=_.charCodeAt(0)||0:_.hasOwnProperty(d.p9y)&&(O=_[d.p9y]),null==O&&(O=_[d.p9y]=nn++);const V=O&Gt;f.data[u+(V>>ft)]|=1<<V}(u,f,_)}function Qn(u,f,_){if(8&_||void 0!==u)return u;(0,d.$Hz)(f,"NodeInjector")}function ei(u,f,_,O){if(8&_&&void 0===O&&(O=null),!(3&_)){const V=u[d.YEL],se=(0,d.a2B)(void 0);try{return V?V.get(f,O,8&_):(0,d.MzJ)(f,O,8&_)}finally{(0,d.a2B)(se)}}return Qn(O,f,_)}function Rt(u,f,_,O=0,V){if(null!==u){if(2048&f[d.Wg1]&&!(2&O)){const $e=function cs(u,f,_,O,V){let se=u,$e=f;for(;null!==se&&null!==$e&&2048&$e[d.Wg1]&&!(0,d.EFk)($e);){const nt=Jt(se,$e,_,2|O,rn);if(nt!==rn)return nt;let ct=se.parent;if(!ct){const tn=$e[d.oMQ];if(tn){const fn=tn.get(_,rn,O);if(fn!==rn)return fn}ct=bs($e),$e=$e[d.X5O]}se=ct}return V}(u,f,_,O,rn);if($e!==rn)return $e}const se=Jt(u,f,_,O,rn);if(se!==rn)return se}return ei(f,_,O,V)}function Jt(u,f,_,O,V){const se=function pi(u){if("string"==typeof u)return u.charCodeAt(0)||0;const f=u.hasOwnProperty(d.p9y)?u[d.p9y]:void 0;return"number"==typeof f?f>=0?f&Gt:Hs:f}(_);if("function"==typeof se){if(!(0,d.ihb)(f,u,O))return 1&O?Qn(V,_,O):ei(f,_,O,V);try{let $e;if($e=se(O),null!=$e||8&O)return $e;(0,d.$Hz)(_)}finally{(0,d.niQ)()}}else if("number"==typeof se){let $e=null,nt=Mi(u,f),ct=q,tn=1&O?f[d.b5C][d.qlT]:null;for((-1===nt||4&O)&&(ct=-1===nt?Vo(u,f):f[nt+8],ct!==q&&To(O,!1)?($e=f[d.eDl],nt=je(ct),f=lt(ct,f)):nt=-1);-1!==nt;){const fn=f[d.eDl];if(Wo(se,nt,fn.data)){const Nn=Pn(nt,f,_,$e,O,tn);if(Nn!==rn)return Nn}ct=f[nt+8],ct!==q&&To(O,f[d.eDl].data[nt+8]===tn)&&Wo(se,nt,f)?($e=fn,nt=je(ct),f=lt(ct,f)):nt=-1}}return V}function Pn(u,f,_,O,V,se){const $e=f[d.eDl],nt=$e.data[u+8],fn=Jn(nt,$e,_,null==O?(0,d.Qs1)(nt)&&Qe:O!=$e&&!!(3&nt.type),1&V&&se===nt);return null!==fn?vo(f,$e,fn,nt,V):rn}function Jn(u,f,_,O,V){const se=u.providerIndexes,$e=f.data,nt=1048575&se,ct=u.directiveStart,fn=se>>20,ui=V?nt+fn:u.directiveEnd;for(let _i=O?nt:nt+fn;_i<ui;_i++){const ao=$e[_i];if(_i<ct&&_===ao||_i>=ct&&ao.type===_)return _i}if(V){const _i=$e[ct];if(_i&&(0,d.JlV)(_i)&&_i.type===_)return ct}return null}function vo(u,f,_,O,V){let se=u[_];const $e=f.data;if(se instanceof Oe){const nt=se;if(nt.resolving){const _i=(0,d.PP7)($e[_]);throw(0,d.PQT)(_i)}const ct=Ct(nt.canSeeViewProviders);nt.resolving=!0;const Nn=nt.injectImpl?(0,d.a2B)(nt.injectImpl):null;(0,d.ihb)(u,O,0);try{se=u[_]=nt.factory(void 0,V,$e,u,O),f.firstCreatePass&&_>=O.directiveStart&&function Ye(u,f,_){const{ngOnChanges:O,ngOnInit:V,ngDoCheck:se}=f.type.prototype;if(O){const $e=De(f);(_.preOrderHooks??=[]).push(u,$e),(_.preOrderCheckHooks??=[]).push(u,$e)}V&&(_.preOrderHooks??=[]).push(0-u,V),se&&((_.preOrderHooks??=[]).push(u,se),(_.preOrderCheckHooks??=[]).push(u,se))}(_,$e[_],f)}finally{null!==Nn&&(0,d.a2B)(Nn),Ct(ct),nt.resolving=!1,(0,d.niQ)()}}return se}function Wo(u,f,_){return!!(_[f+(u>>ft)]&1<<u)}function To(u,f){return!(2&u||1&u&&f)}class ls{_tNode;_lView;constructor(f,_){this._tNode=f,this._lView=_}get(f,_,O){return Rt(this._tNode,this._lView,f,(0,d.hjC)(O),_)}}function Hs(){return new ls((0,d.Mx4)(),(0,d.OAn)())}function ss(u){return k(()=>{const f=u.prototype.constructor,_=f[d.zSs]||qo(f),O=Object.prototype;let V=Object.getPrototypeOf(u.prototype).constructor;for(;V&&V!==O;){const se=V[d.zSs]||qo(V);if(se&&se!==_)return se;V=Object.getPrototypeOf(V)}return se=>new se})}function qo(u){return(0,d.Jzi)(u)?()=>{const f=qo((0,d.nl4)(u));return f&&f()}:(0,d.wGu)(u)}function bs(u){const f=u[d.eDl],_=f.type;return 2===_?f.declTNode:1===_?u[d.qlT]:null}function Fn(u){return function ti(u,f){if("class"===f)return u.classes;if("style"===f)return u.styles;const _=u.attrs;if(_){const O=_.length;let V=0;for(;V<O;){const se=_[V];if(Nt(se))break;if(0===se)V+=2;else if("number"==typeof se)for(V++;V<O&&"string"==typeof _[V];)V++;else{if(se===f)return _[V+1];V+=2}}}return null}((0,d.Mx4)(),u)}const li=B("Attribute",u=>({attributeName:u,__NG_ELEMENT_ID__:()=>Fn(u)}));let si=null;function Yi(u){return Sn(function Ni(){return si=si||new ee}().parameters(u))}function Sn(u){return u.map(f=>function ri(u){const f={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(u)&&u.length>0)for(let _=0;_<u.length;_++){const O=u[_];if(void 0===O)continue;const V=Object.getPrototypeOf(O);if(O instanceof X||"Optional"===V.ngMetadataName)f.optional=!0;else if(O instanceof Z||"SkipSelf"===V.ngMetadataName)f.skipSelf=!0;else if(O instanceof U||"Self"===V.ngMetadataName)f.self=!0;else if(O instanceof A||"Host"===V.ngMetadataName)f.host=!0;else if(O instanceof F)f.token=O.token;else if(O instanceof li){if(void 0===O.attributeName)throw new d.buA(204,!1);f.attribute=O.attributeName}else f.token=O}else f.token=void 0===u||Array.isArray(u)&&0===u.length?null:u;return f}(f))}const Pt=(0,d.kLh)({provide:String,useValue:d.kLh});function dn(u){return void 0!==u.useClass}function Ot(u){return void 0!==u.useFactory}const Bi=x("Injectable",void 0,void 0,0,(u,f)=>function It(u,f){let _=null,O=null;u.hasOwnProperty(d.yAH)||Object.defineProperty(u,d.yAH,{get:()=>(null===_&&(_=M().compileInjectable(H,`ng:///${u.name}/\u0275prov.js`,function ni(u,f){const _=f||{providedIn:null},O={name:u.name,type:u,typeArgumentCount:0,providedIn:_.providedIn};return(dn(_)||Ot(_))&&void 0!==_.deps&&(O.deps=Sn(_.deps)),dn(_)?O.useClass=_.useClass:function jt(u){return Pt in u}(_)?O.useValue=_.useValue:Ot(_)?O.useFactory=_.useFactory:function Tn(u){return void 0!==u.useExisting}(_)&&(O.useExisting=_.useExisting),O}(u,f))),_)}),u.hasOwnProperty(d.zSs)||Object.defineProperty(u,d.zSs,{get:()=>{if(null===O){const V=M();O=V.compileFactory(H,`ng:///${u.name}/\u0275fac.js`,{name:u.name,type:u,typeArgumentCount:0,deps:Yi(u),target:V.FactoryTarget.Injectable})}return O},configurable:!0})}(u,f));function Zi(){return ro((0,d.Mx4)(),(0,d.OAn)())}function ro(u,f){return new mo((0,d.d31)(u,f))}let mo=(()=>class u{nativeElement;constructor(_){this.nativeElement=_}static __NG_ELEMENT_ID__=Zi})();function ho(u){return u instanceof mo?u.nativeElement:u}function St(){return this._results[Symbol.iterator]()}class Qt{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new T.B}constructor(f=!1){this._emitDistinctChangesOnly=f}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,_){return this._results.reduce(f,_)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,_){this.dirty=!1;const O=(0,d.Bqz)(f);(this._changesDetected=!(0,d.ng7)(this._results,O,_))&&(this._results=O,this.length=O.length,this.last=O[this.length-1],this.first=O[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(f){this._onDirty=f}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=St}function _o(u){return!(128&~u.flags)}var xn=function(u){return u[u.OnPush=0]="OnPush",u[u.Default=1]="Default",u}(xn||{});const Bn=new Map;let Gn=0;function Fo(u){Bn.delete(u[d.ID])}const An="__ngContext__";function fi(u,f){(0,d.q$2)(f)?(u[An]=f[d.ID],function Xi(u){Bn.set(u[d.ID],u)}(f)):u[An]=f}function gi(u){return ut(u[d.EJG])}function mi(u){return ut(u[d.K29])}function ut(u){for(;null!==u&&!(0,d.A0l)(u);)u=u[d.K29];return u}let gn;function Xt(u){gn=u}function hn(){if(void 0!==gn)return gn;if(typeof document<"u")return document;throw new d.buA(210,!1)}const Wn=new d.nKC("",{providedIn:"root",factory:()=>Fi}),Fi="ng",io=new d.nKC(""),bo=new d.nKC("",{providedIn:"platform",factory:()=>"unknown"}),is=new d.nKC("",{providedIn:"root",factory:()=>hn().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),$s={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},Es=new d.nKC("",{providedIn:"root",factory:()=>$s});function ir(u){return u}function Cr(){const u=new Js;return u.store=function Or(u,f){const _=u.getElementById(f+"-state");if(_?.textContent)try{return JSON.parse(_.textContent)}catch(O){console.warn("Exception while restoring TransferState for app "+f,O)}return{}}(hn(),(0,d.WQX)(Wn)),u}let Js=(()=>{class u{static \u0275prov=(0,d.jDH)({token:u,providedIn:"root",factory:Cr});store={};onSerializeCallbacks={};get(_,O){return void 0!==this.store[_]?this.store[_]:O}set(_,O){this.store[_]=O}remove(_){delete this.store[_]}hasKey(_){return this.store.hasOwnProperty(_)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(_,O){this.onSerializeCallbacks[_]=O}toJson(){for(const _ in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(_))try{this.store[_]=this.onSerializeCallbacks[_]()}catch(O){console.warn("Exception in onSerialize callback: ",O)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}}return u})();const Ir="r",Bt="di",co=new d.nKC("",{providedIn:"root",factory:()=>!1}),Wt=new d.nKC(""),Fe=new d.nKC(""),He={passive:!0,capture:!0},wt=new WeakMap,Ut=new WeakMap,cn=new WeakMap,Ln=["click","keydown"],$n=["mouseenter","mouseover","focusin"];let bi=null,vi=0;class ki{callbacks=new Set;listener=()=>{for(const f of this.callbacks)f()}}function Si(u,f){let _=Ut.get(u);if(!_){_=new ki,Ut.set(u,_);for(const O of Ln)u.addEventListener(O,_.listener,He)}return _.callbacks.add(f),()=>{const{callbacks:O,listener:V}=_;if(O.delete(f),0===O.size){Ut.delete(u);for(const se of Ln)u.removeEventListener(se,V,He)}}}function Wi(u,f){let _=wt.get(u);if(!_){_=new ki,wt.set(u,_);for(const O of $n)u.addEventListener(O,_.listener,He)}return _.callbacks.add(f),()=>{const{callbacks:O,listener:V}=_;if(O.delete(f),0===O.size){for(const se of $n)u.removeEventListener(se,V,He);wt.delete(u)}}}let eo=(u,f,_,O)=>{};const Os=new d.nKC("");function ht(u){return!(32&~u.flags)}let yl=()=>null;function xl(u,f,_=!1){return yl(u,f,_)}function ic(u){let f=u._lView;return 2===f[d.eDl].type?null:((0,d.EFk)(f)&&(f=f[d.Yw1]),f)}function Wa(u,f){const _=u.contentQueries;if(null!==_){const O=(0,m.Ht)(null);try{for(let V=0;V<_.length;V+=2){const $e=_[V+1];if(-1!==$e){const nt=u.data[$e];(0,d.GA0)(_[V]),nt.contentQueries(2,f[$e],$e)}}}finally{(0,m.Ht)(O)}}}function ac(u,f,_){(0,d.GA0)(0);const O=(0,m.Ht)(null);try{f(u,_)}finally{(0,m.Ht)(O)}}function wl(u,f,_){if((0,d.srX)(f)){const O=(0,m.Ht)(null);try{const se=f.directiveEnd;for(let $e=f.directiveStart;$e<se;$e++){const nt=u.data[$e];nt.contentQueries&&nt.contentQueries(1,_[$e],$e)}}finally{(0,m.Ht)(O)}}}var Ma=function(u){return u[u.Emulated=0]="Emulated",u[u.None=2]="None",u[u.ShadowDom=3]="ShadowDom",u}(Ma||{});let Wc,_d;function Zd(){if(void 0===Wc&&(Wc=null,d.laP.trustedTypes))try{Wc=d.laP.trustedTypes.createPolicy("angular",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return Wc}function lc(u){return Zd()?.createHTML(u)||u}function Jd(){if(void 0===_d&&(_d=null,d.laP.trustedTypes))try{_d=d.laP.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return _d}function Ru(u){return Jd()?.createHTML(u)||u}function Mc(u){return Jd()?.createScript(u)||u}function vd(u){return Jd()?.createScriptURL(u)||u}class cl{changingThisBreaksApplicationSecurity;constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${d.ok8})`}}class ku extends cl{getTypeName(){return"HTML"}}class qd extends cl{getTypeName(){return"Style"}}class fp extends cl{getTypeName(){return"Script"}}class pg extends cl{getTypeName(){return"URL"}}class za extends cl{getTypeName(){return"ResourceURL"}}function Vl(u){return u instanceof cl?u.changingThisBreaksApplicationSecurity:u}function zc(u,f){const _=function Dh(u){return u instanceof cl&&u.getTypeName()||null}(u);if(null!=_&&_!==f){if("ResourceURL"===_&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${_} (see ${d.ok8})`)}return _===f}function eu(u){return new ku(u)}function Bu(u){return new qd(u)}function Sl(u){return new fp(u)}function mp(u){return new pg(u)}function tu(u){return new za(u)}function Cd(u){const f=new Kc(u);return function Nu(){try{return!!(new window.DOMParser).parseFromString(lc(""),"text/html")}catch{return!1}}()?new Fu(f):f}class Fu{inertDocumentHelper;constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f="<body><remove></remove>"+f;try{const _=(new window.DOMParser).parseFromString(lc(f),"text/html").body;return null===_?this.inertDocumentHelper.getInertBodyElement(f):(_.firstChild?.remove(),_)}catch{return null}}}class Kc{defaultDoc;inertDocument;constructor(f){this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(f){const _=this.inertDocument.createElement("template");return _.innerHTML=lc(f),_}}const Xc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Yc(u){return(u=String(u)).match(Xc)?u:"unsafe:"+u}function dl(u){const f={};for(const _ of u.split(","))f[_]=!0;return f}function Dl(...u){const f={};for(const _ of u)for(const O in _)_.hasOwnProperty(O)&&(f[O]=!0);return f}const yd=dl("area,br,col,hr,img,wbr"),Lu=dl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),bd=dl("rp,rt"),Tl=Dl(yd,Dl(Lu,dl("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")),Dl(bd,dl("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")),Dl(bd,Lu)),$l=dl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pc=Dl($l,dl("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"),dl("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")),Vu=dl("script,style,template");class nu{sanitizedSomething=!1;buf=[];sanitizeChildren(f){let _=f.firstChild,O=!0,V=[];for(;_;)if(_.nodeType===Node.ELEMENT_NODE?O=this.startElement(_):_.nodeType===Node.TEXT_NODE?this.chars(_.nodeValue):this.sanitizedSomething=!0,O&&_.firstChild)V.push(_),_=iu(_);else for(;_;){_.nodeType===Node.ELEMENT_NODE&&this.endElement(_);let se=Ul(_);if(se){_=se;break}_=V.pop()}return this.buf.join("")}startElement(f){const _=Hu(f).toLowerCase();if(!Tl.hasOwnProperty(_))return this.sanitizedSomething=!0,!Vu.hasOwnProperty(_);this.buf.push("<"),this.buf.push(_);const O=f.attributes;for(let V=0;V<O.length;V++){const se=O.item(V),$e=se.name,nt=$e.toLowerCase();if(!Pc.hasOwnProperty(nt)){this.sanitizedSomething=!0;continue}let ct=se.value;$l[nt]&&(ct=Yc(ct)),this.buf.push(" ",$e,'="',ou(ct),'"')}return this.buf.push(">"),!0}endElement(f){const _=Hu(f).toLowerCase();Tl.hasOwnProperty(_)&&!yd.hasOwnProperty(_)&&(this.buf.push("</"),this.buf.push(_),this.buf.push(">"))}chars(f){this.buf.push(ou(f))}}function Ul(u){const f=u.nextSibling;if(f&&u!==f.previousSibling)throw Ed(f);return f}function iu(u){const f=u.firstChild;if(f&&function xd(u,f){return(u.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(u,f))throw Ed(f);return f}function Hu(u){const f=u.nodeName;return"string"==typeof f?f:"FORM"}function Ed(u){return new Error(`Failed to sanitize html because the element is clobbered: ${u.outerHTML}`)}const $u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Uu=/([^\#-~ |!])/g;function ou(u){return u.replace(/&/g,"&amp;").replace($u,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(Uu,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Rc;function gt(u,f){let _=null;try{Rc=Rc||Cd(u);let O=f?String(f):"";_=Rc.getInertBodyElement(O);let V=5,se=O;do{if(0===V)throw new Error("Failed to sanitize html because the input is unstable");V--,O=se,se=_.innerHTML,_=Rc.getInertBodyElement(O)}while(O!==se);return lc((new nu).sanitizeChildren(un(_)||_))}finally{if(_){const O=un(_)||_;for(;O.firstChild;)O.firstChild.remove()}}}function un(u){return"content"in u&&function Xn(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.content:null}var to=function(u){return u[u.NONE=0]="NONE",u[u.HTML=1]="HTML",u[u.STYLE=2]="STYLE",u[u.SCRIPT=3]="SCRIPT",u[u.URL=4]="URL",u[u.RESOURCE_URL=5]="RESOURCE_URL",u}(to||{});function wo(u){const f=ju();return f?Ru(f.sanitize(to.HTML,u)||""):zc(u,"HTML")?Ru(Vl(u)):gt(hn(),(0,d.eFE)(u))}function kr(u){const f=ju();return f?f.sanitize(to.URL,u)||"":zc(u,"URL")?Vl(u):Yc((0,d.eFE)(u))}function Qr(u){const f=ju();if(f)return vd(f.sanitize(to.RESOURCE_URL,u)||"");if(zc(u,"ResourceURL"))return vd(Vl(u));throw new d.buA(904,!1)}function yp(u,f,_){return function Cp(u,f){return"src"===f&&("embed"===u||"frame"===u||"iframe"===u||"media"===u||"script"===u)||"href"===f&&("base"===u||"link"===u)?Qr:kr}(f,_)(u)}function ju(){const u=(0,d.OAn)();return u&&u[d.M0L].sanitizer}const _f=/^>|^->|<!--|-->|--!>|<!-$/g,gg=/(<|>)/g;function kc(u){return u.ownerDocument.defaultView}function Aa(u){return u.ownerDocument}function Gl(u){return u instanceof Function?u():u}function Cg(u){if(!(0,d.xUg)(u))throw new d.buA(906,`The ${(0,d.PP7)(u)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}function Qc(u,f,_){let O=u.length;for(;;){const V=u.indexOf(f,_);if(-1===V)return V;if(0===V||u.charCodeAt(V-1)<=32){const se=f.length;if(V+se===O||u.charCodeAt(V+se)<=32)return V}_=V+1}}const Ph="ng-template";function Ka(u,f,_,O){let V=0;if(O){for(;V<f.length&&"string"==typeof f[V];V+=2)if("class"===f[V]&&-1!==Qc(f[V+1].toLowerCase(),_,0))return!0}else if(Rh(u))return!1;if(V=f.indexOf(1,V),V>-1){let se;for(;++V<f.length&&"string"==typeof(se=f[V]);)if(se.toLowerCase()===_)return!0}return!1}function Rh(u){return 4===u.type&&u.value!==Ph}function Ju(u,f,_){return f===(4!==u.type||_?u.value:Ph)}function Dp(u,f,_){let O=4;const V=u.attrs,se=null!==V?function Ap(u){for(let f=0;f<u.length;f++)if(Nt(u[f]))return f;return u.length}(V):0;let $e=!1;for(let nt=0;nt<f.length;nt++){const ct=f[nt];if("number"!=typeof ct){if(!$e)if(4&O){if(O=2|1&O,""!==ct&&!Ju(u,ct,_)||""===ct&&1===f.length){if(tl(O))return!1;$e=!0}}else if(8&O){if(null===V||!Ka(u,V,ct,_)){if(tl(O))return!1;$e=!0}}else{const tn=f[++nt],fn=Tp(ct,V,Rh(u),_);if(-1===fn){if(tl(O))return!1;$e=!0;continue}if(""!==tn){let Nn;if(Nn=fn>se?"":V[fn+1].toLowerCase(),2&O&&tn!==Nn){if(tl(O))return!1;$e=!0}}}}else{if(!$e&&!tl(O)&&!tl(ct))return!1;if($e&&tl(ct))continue;$e=!1,O=ct|1&O}}return tl(O)||$e}function tl(u){return!(1&u)}function Tp(u,f,_,O){if(null===f)return-1;let V=0;if(O||!_){let se=!1;for(;V<f.length;){const $e=f[V];if($e===u)return V;if(3===$e||6===$e)se=!0;else{if(1===$e||2===$e){let nt=f[++V];for(;"string"==typeof nt;)nt=f[++V];continue}if(4===$e)break;if(0===$e){V+=4;continue}}V+=se?1:2}return-1}return function qu(u,f){let _=u.indexOf(4);if(_>-1)for(_++;_<u.length;){const O=u[_];if("number"==typeof O)return-1;if(O===f)return _;_++}return-1}(f,u)}function nl(u,f,_=!1){for(let O=0;O<f.length;O++)if(Dp(u,f[O],_))return!0;return!1}function Bh(u,f){e:for(let _=0;_<f.length;_++){const O=f[_];if(u.length===O.length){for(let V=0;V<u.length;V++)if(u[V]!==O[V])continue e;return!0}}return!1}function Fh(u,f){return u?":not("+f.trim()+")":f}function Zc(u){let f=u[0],_=1,O=2,V="",se=!1;for(;_<u.length;){let $e=u[_];if("string"==typeof $e)if(2&O){const nt=u[++_];V+="["+$e+(nt.length>0?'="'+nt+'"':"")+"]"}else 8&O?V+="."+$e:4&O&&(V+=" "+$e);else""!==V&&!tl($e)&&(f+=Fh(se,V),V=""),O=$e,se=se||!tl(O);_++}return""!==V&&(f+=Fh(se,V)),f}const br={};function eh(u,f){return u.createText(f)}function Ip(u,f,_){u.setValue(f,_)}function Nh(u,f){return u.createComment(function mg(u){return u.replace(_f,f=>f.replace(gg,"\u200b$1\u200b"))}(f))}function wd(u,f,_){return u.createElement(f,_)}function Bc(u,f,_,O,V){u.insertBefore(f,_,O,V)}function Sd(u,f,_){u.appendChild(f,_)}function uu(u,f,_,O,V){null!==O?Bc(u,f,_,O,V):Sd(u,f,_)}function Fc(u,f,_){u.removeChild(null,f,_)}function hu(u,f,_){const{mergedAttrs:O,classes:V,styles:se}=_;null!==O&&function qe(u,f,_){let O=0;for(;O<_.length;){const V=_[O];if("number"==typeof V){if(0!==V)break;O++;const se=_[O++],$e=_[O++],nt=_[O++];u.setAttribute(f,$e,nt,se)}else{const se=V,$e=_[++O];et(se)?u.setProperty(f,se,$e):u.setAttribute(f,se,$e),O++}}}(u,f,O),null!==V&&function Nc(u,f,_){""===_?u.removeAttribute(f,"class"):u.setAttribute(f,"class",_)}(u,f,V),null!==se&&function Mp(u,f,_){u.setAttribute(f,"style",_)}(u,f,se)}function Jc(u,f,_,O,V,se,$e,nt,ct,tn,fn){const Nn=d.Yw1+O,ui=Nn+V,_i=function qc(u,f){const _=[];for(let O=0;O<f;O++)_.push(O<u?null:br);return _}(Nn,ui),ao="function"==typeof tn?tn():tn;return _i[d.eDl]={type:u,blueprint:_i,template:_,queries:null,viewQuery:nt,declTNode:f,data:_i.slice().fill(null,Nn),bindingStartIndex:Nn,expandoStartIndex:ui,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 se?se():se,pipeRegistry:"function"==typeof $e?$e():$e,firstChild:null,schemas:ct,consts:ao,incompleteFirstPass:!1,ssrId:fn}}function Dd(u){const f=u.tView;return null===f||f.incompleteFirstPass?u.tView=Jc(1,null,u.template,u.decls,u.vars,u.directiveDefs,u.pipeDefs,u.viewQuery,u.schemas,u.consts,u.id):f}function Il(u,f,_,O,V,se,$e,nt,ct,tn,fn){const Nn=f.blueprint.slice();return Nn[d.jgP]=V,Nn[d.Wg1]=1228|O,(null!==tn||u&&2048&u[d.Wg1])&&(Nn[d.Wg1]|=2048),(0,d.HUe)(Nn),Nn[d.f7T]=Nn[d.X5O]=u,Nn[d.SKP]=_,Nn[d.M0L]=$e||u&&u[d.M0L],Nn[d.GpT]=nt||u&&u[d.GpT],Nn[d.YEL]=ct||u&&u[d.YEL]||null,Nn[d.qlT]=se,Nn[d.ID]=function Ri(){return Gn++}(),Nn[d.tcA]=fn,Nn[d.oMQ]=tn,Nn[d.b5C]=2==f.type?u[d.b5C]:Nn,Nn}function th(u){let f=16;return u.signals?f=4096:u.onPush&&(f=64),f}function nh(u,f,_,O){if(0===_)return-1;const V=f.length;for(let se=0;se<_;se++)f.push(O),u.blueprint.push(O),u.data.push(null);return V}function ih(u,f){return u[d.EJG]?u[d.Yrj][d.K29]=f:u[d.EJG]=f,u[d.Yrj]=f,f}function xg(u=1){Eg((0,d.klJ)(),(0,d.OAn)(),(0,d._px)()+u,!1)}function Eg(u,f,_,O){if(!O)if(3&~f[d.Wg1]){const se=u.preOrderHooks;null!==se&&pe(f,se,0,_)}else{const se=u.preOrderCheckHooks;null!==se&&Ae(f,se,_)}(0,d.ypq)(_)}var Lh=function(u){return u[u.None=0]="None",u[u.SignalBased=1]="SignalBased",u[u.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",u}(Lh||{});function pu(u,f,_,O){const V=(0,m.Ht)(null);try{const[se,$e,nt]=u.inputs[_];let ct=null;0!==($e&Lh.SignalBased)&&(ct=f[se][m.bh]),null!==ct&&void 0!==ct.transformFn?O=ct.transformFn(O):null!==nt&&(O=nt.call(f,O)),null!==u.setInput?u.setInput(f,ct,O,_,se):Re(f,ct,se,O)}finally{(0,m.Ht)(V)}}var Td=function(u){return u[u.Important=1]="Important",u[u.DashCase=2]="DashCase",u}(Td||{});let Vh;function Wl(u,f){return Vh(u,f)}function Ad(u,f,_,O,V){if(null!=O){let se,$e=!1;(0,d.A0l)(O)?se=O:(0,d.q$2)(O)&&($e=!0,O=O[d.jgP]);const nt=(0,d.IvY)(O);0===u&&null!==_?null==V?Sd(f,_,nt):Bc(f,_,nt,V||null,!0):1===u&&null!==_?Bc(f,_,nt,V||null,!0):2===u?Fc(f,nt,$e):3===u&&f.destroyNode(nt),null!=se&&function Ao(u,f,_,O,V){const se=_[d.s6P];se!==(0,d.IvY)(_)&&Ad(f,u,O,se,V);for(let nt=d.Y20;nt<_.length;nt++){const ct=_[nt];Ci(ct[d.eDl],ct,u,f,O,se)}}(f,u,se,_,V)}}function zl(u,f){Pp(u,f),f[d.jgP]=null,f[d.qlT]=null}function Pp(u,f){f[d.M0L].changeDetectionScheduler?.notify(9),Ci(u,f,f[d.GpT],2,null,null)}function Rp(u,f){const _=u[d.nfM],O=_.indexOf(f);_.splice(O,1)}function oh(u,f){if((0,d.EPY)(f))return;const _=f[d.GpT];_.destroyNode&&Ci(u,f,_,3,null,null),function $h(u){let f=u[d.EJG];if(!f)return sh(u[d.eDl],u);for(;f;){let _=null;if((0,d.q$2)(f))_=f[d.EJG];else{const O=f[d.Y20];O&&(_=O)}if(!_){for(;f&&!f[d.K29]&&f!==u;)(0,d.q$2)(f)&&sh(f[d.eDl],f),f=f[d.f7T];null===f&&(f=u),(0,d.q$2)(f)&&sh(f[d.eDl],f),_=f&&f[d.K29]}f=_}}(f)}function sh(u,f){if((0,d.EPY)(f))return;const _=(0,m.Ht)(null);try{f[d.Wg1]&=-129,f[d.Wg1]|=256,f[d.Iaj]&&(0,m.XR)(f[d.Iaj]),function kp(u,f){let _;if(null!=u&&null!=(_=u.destroyHooks))for(let O=0;O<_.length;O+=2){const V=f[_[O]];if(!(V instanceof Oe)){const se=_[O+1];if(Array.isArray(se))for(let $e=0;$e<se.length;$e+=2){const nt=V[se[$e]],ct=se[$e+1];ke(4,nt,ct);try{ct.call(nt)}finally{ke(5,nt,ct)}}else{ke(4,V,se);try{se.call(V)}finally{ke(5,V,se)}}}}}(u,f),function Cf(u,f){const _=u.cleanup,O=f[d.VVG];if(null!==_)for(let $e=0;$e<_.length-1;$e+=2)if("string"==typeof _[$e]){const nt=_[$e+3];nt>=0?O[nt]():O[-nt].unsubscribe(),$e+=2}else _[$e].call(O[_[$e+1]]);null!==O&&(f[d.VVG]=null);const V=f[d.Czx];if(null!==V){f[d.Czx]=null;for(let $e=0;$e<V.length;$e++)(0,V[$e])()}const se=f[d.tQN];if(null!==se){f[d.tQN]=null;for(const $e of se)$e.destroy()}}(u,f),1===f[d.eDl].type&&f[d.GpT].destroy();const O=f[d.rQE];if(null!==O&&(0,d.A0l)(f[d.f7T])){O!==f[d.f7T]&&Rp(O,f);const V=f[d.Ds7];null!==V&&V.detachView(u)}Fo(f)}finally{(0,m.Ht)(_)}}function dc(u,f,_){return Ra(u,f.parent,_)}function Ra(u,f,_){let O=f;for(;null!==O&&168&O.type;)O=(f=O).parent;if(null===O)return _[d.jgP];if((0,d.Qs1)(O)){const{encapsulation:V}=u.data[O.directiveStart+O.componentOffset];if(V===Ma.None||V===Ma.Emulated)return null}return(0,d.d31)(O,_)}function gu(u,f,_){return Va(u,f,_)}function Lc(u,f,_){return 40&u.type?(0,d.d31)(u,_):null}let Id,Va=Lc;function fu(u,f){Va=u,Id=f}function Kl(u,f,_,O){const V=dc(u,O,f),se=f[d.GpT],nt=gu(O.parent||f[d.qlT],O,f);if(null!=V)if(Array.isArray(_))for(let ct=0;ct<_.length;ct++)uu(se,V,_[ct],nt,!1);else uu(se,V,_,nt,!1);void 0!==Id&&Id(se,O,f,_,V)}function Zt(u,f){if(null!==f){const _=f.type;if(3&_)return(0,d.d31)(f,u);if(4&_)return Lt(-1,u[f.index]);if(8&_){const O=f.child;if(null!==O)return Zt(u,O);{const V=u[f.index];return(0,d.A0l)(V)?Lt(-1,V):(0,d.IvY)(V)}}if(128&_)return Zt(u,f.next);if(32&_)return Wl(f,u)()||(0,d.IvY)(u[f.index]);{const O=Ze(u,f);return null!==O?Array.isArray(O)?O[0]:Zt((0,d._0$)(u[d.b5C]),O):Zt(u,f.next)}}return null}function Ze(u,f){return null!==f?u[d.b5C][d.qlT].projection[f.projection]:null}function Lt(u,f){const _=d.Y20+u+1;if(_<f.length){const O=f[_],V=O[d.eDl].firstChild;if(null!==V)return Zt(O,V)}return f[d.s6P]}function Hn(u,f,_,O,V,se,$e){for(;null!=_;){if(128===_.type){_=_.next;continue}const nt=O[_.index],ct=_.type;if($e&&0===f&&(nt&&fi((0,d.IvY)(nt),O),_.flags|=2),!ht(_))if(8&ct)Hn(u,f,_.child,O,V,se,!1),Ad(f,u,V,nt,se);else if(32&ct){const tn=Wl(_,O);let fn;for(;fn=tn();)Ad(f,u,V,fn,se);Ad(f,u,V,nt,se)}else 16&ct?so(u,f,O,_,V,se):Ad(f,u,V,nt,se);_=$e?_.projectionNext:_.next}}function Ci(u,f,_,O,V,se){Hn(_,O,u.firstChild,f,V,se,!1)}function so(u,f,_,O,V,se){const $e=_[d.b5C],ct=$e[d.qlT].projection[O.projection];if(Array.isArray(ct))for(let tn=0;tn<ct.length;tn++)Ad(f,u,V,ct[tn],se);else{let tn=ct;const fn=$e[d.f7T];_o(O)&&(tn.flags|=128),Hn(u,f,tn,fn,V,se,!0)}}function As(u,f,_,O,V){const se=(0,d._px)(),$e=2&O;try{(0,d.ypq)(-1),$e&&f.length>d.Yw1&&Eg(u,f,d.Yw1,!1),ke($e?2:0,V,_),_(O,V)}finally{(0,d.ypq)(se),ke($e?3:1,V,_)}}function Zo(u,f,_){(function da(u,f,_){const O=_.directiveStart,V=_.directiveEnd;(0,d.Qs1)(_)&&function ul(u,f,_){const O=(0,d.d31)(f,u),V=Dd(_),se=u[d.M0L].rendererFactory,$e=ih(u,Il(u,V,null,th(_),O,f,null,se.createRenderer(O,_),null,null,null));u[f.index]=$e}(f,_,u.data[O+_.componentOffset]),u.firstCreatePass||On(_,f);const se=_.initialInputs;for(let $e=O;$e<V;$e++){const nt=u.data[$e],ct=vo(f,u,$e,_);fi(ct,f),null!==se&&Xa(0,$e-O,ct,nt,0,se),(0,d.JlV)(nt)&&((0,d.KdJ)(_.index,f)[d.SKP]=vo(f,u,$e,_))}})(u,f,_),!(64&~_.flags)&&function ka(u,f,_){const O=_.directiveStart,V=_.directiveEnd,se=_.index,$e=(0,d.Z9v)();try{(0,d.ypq)(se);for(let nt=O;nt<V;nt++){const ct=u.data[nt],tn=f[nt];(0,d.RZ9)(nt),(null!==ct.hostBindings||0!==ct.hostVars||null!==ct.hostAttrs)&&Oa(ct,tn)}}finally{(0,d.ypq)(-1),(0,d.RZ9)($e)}}(u,f,_)}function qs(u,f,_=d.d31){const O=f.localNames;if(null!==O){let V=f.index+1;for(let se=0;se<O.length;se+=2){const $e=O[se+1],nt=-1===$e?_(f,u):u[$e];u[V++]=nt}}}let Lr=()=>null;function Wr(u,f,_,O,V,se){Yl(u,f[d.eDl],f,_,O)?(0,d.Qs1)(u)&&mr(f,u.index):(3&u.type&&(_=function Gr(u){return"class"===u?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u}(_)),na(u,f,_,O,V,se))}function na(u,f,_,O,V,se){if(3&u.type){const $e=(0,d.d31)(u,f);O=null!=se?se(O,u.value||"",_):O,V.setProperty($e,_,O)}}function mr(u,f){const _=(0,d.KdJ)(f,u);16&_[d.Wg1]||(_[d.Wg1]|=64)}function Oa(u,f){null!==u.hostBindings&&u.hostBindings(1,f)}function ua(u,f){const _=u.directiveRegistry;let O=null;if(_)for(let V=0;V<_.length;V++){const se=_[V];nl(f,se.selectors,!1)&&(O??=[],(0,d.JlV)(se)?O.unshift(se):O.push(se))}return O}function il(u,f,_,O,V,se,$e){if(null==se)u.removeAttribute(f,V,_);else{const nt=null==$e?(0,d.eFE)(se):$e(se,O||"",V);u.setAttribute(f,V,nt,_)}}function Xa(u,f,_,O,V,se){const $e=se[f];if(null!==$e)for(let nt=0;nt<$e.length;nt+=2)pu(O,_,$e[nt],$e[nt+1])}function Xl(u,f,_,O,V){const se=d.Yw1+_,$e=f[d.eDl],nt=V($e,f,u,O,_);f[se]=nt,(0,d.iMd)(u,!0);const ct=2===u.type;return ct?(hu(f[d.GpT],nt,u),(0===(0,d.znI)()||(0,d.yoD)(u))&&fi(nt,f),(0,d.Fje)()):fi(nt,f),(0,d.SX7)()&&(!ct||!ht(u))&&Kl($e,f,nt,u),u}function Ml(u){let f=u;return(0,d.YWB)()?(0,d.Pfq)():(f=f.parent,(0,d.iMd)(f,!1)),f}function Ya(u,f,_){return(null===u||(0,d.JlV)(u))&&(_=(0,d.zAe)(_[f.index])),_[d.GpT]}function Md(u,f){const _=u[d.YEL];if(!_)return;let O;try{O=_.get(d.ZTf,null)}catch{O=null}O?.(f)}function Yl(u,f,_,O,V){const se=u.inputs?.[O],$e=u.hostDirectiveInputs?.[O];let nt=!1;if($e)for(let ct=0;ct<$e.length;ct+=2){const tn=$e[ct];pu(f.data[tn],_[tn],$e[ct+1],V),nt=!0}if(se)for(const ct of se)pu(f.data[ct],_[ct],O,V),nt=!0;return nt}function ed(u,f){const _=(0,d.KdJ)(f,u),O=_[d.eDl];!function Pd(u,f){for(let _=f.length;_<u.blueprint.length;_++)f.push(u.blueprint[_])}(O,_);const V=_[d.jgP];null!==V&&null===_[d.tcA]&&(_[d.tcA]=xl(V,_[d.YEL])),ke(18),td(O,_,_[d.SKP]),ke(19,_[d.SKP])}function td(u,f,_){(0,d.ID8)(f);try{const O=u.viewQuery;null!==O&&ac(1,O,_);const V=u.template;null!==V&&As(u,f,V,1,_),u.firstCreatePass&&(u.firstCreatePass=!1),f[d.Ds7]?.finishViewCreation(u),u.staticContentQueries&&Wa(u,f),u.staticViewQueries&&ac(2,u.viewQuery,_);const se=u.components;null!==se&&function Ql(u,f){for(let _=0;_<f.length;_++)ed(u,f[_])}(f,se)}catch(O){throw u.firstCreatePass&&(u.incompleteFirstPass=!0,u.firstCreatePass=!1),O}finally{f[d.Wg1]&=-5,(0,d.bll)()}}function fa(u,f,_,O){const V=(0,m.Ht)(null);try{const se=f.tView,ct=Il(u,se,_,4096&u[d.Wg1]?4096:16,null,f,null,null,O?.injector??null,O?.embeddedViewInjector??null,O?.dehydratedView??null);ct[d.rQE]=u[f.index];const fn=u[d.Ds7];return null!==fn&&(ct[d.Ds7]=fn.createEmbeddedView(se)),td(se,ct,_),ct}finally{(0,m.Ht)(V)}}function Pl(u,f){return!f||null===f.firstChild||_o(u)}function Ia(u,f,_,O,V=!1){for(;null!==_;){if(128===_.type){_=V?_.projectionNext:_.next;continue}const se=f[_.index];null!==se&&O.push((0,d.IvY)(se)),(0,d.A0l)(se)&&hc(se,O);const $e=_.type;if(8&$e)Ia(u,f,_.child,O);else if(32&$e){const nt=Wl(_,f);let ct;for(;ct=nt();)O.push(ct)}else if(16&$e){const nt=Ze(f,_);if(Array.isArray(nt))O.push(...nt);else{const ct=(0,d._0$)(f[d.b5C]);Ia(ct[d.eDl],ct,nt,O,!0)}}_=V?_.projectionNext:_.next}return O}function hc(u,f){for(let _=d.Y20;_<u.length;_++){const O=u[_],V=O[d.eDl].firstChild;null!==V&&Ia(O[d.eDl],O,V,f)}u[d.s6P]!==u[d.jgP]&&f.push(u[d.s6P])}function Ba(u){if(null!==u[d.JEi]){for(const f of u[d.JEi])f.impl.addSequence(f);u[d.JEi].length=0}}let ah=[];const Uh={...m.pL,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:u=>{(0,d.blu)(u.lView)},consumerOnSignalRead(){this.lView[d.Iaj]=this}},jh={...m.pL,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:u=>{let f=(0,d._0$)(u.lView);for(;f&&!mu(f[d.eDl]);)f=(0,d._0$)(f);f&&(0,d.HAh)(f)},consumerOnSignalRead(){this.lView[d.Iaj]=this}};function mu(u){return 2!==u.type}function Bd(u){if(null===u[d.tQN])return;let f=!0;for(;f;){let _=!1;for(const O of u[d.tQN])O.dirty&&(_=!0,null===O.zone||Zone.current===O.zone?O.run():O.zone.run(()=>O.run()));f=_&&!!(8192&u[d.Wg1])}}function vn(u,f=0){const O=u[d.M0L].rendererFactory;O.begin?.();try{!function h(u,f){const _=(0,d.yP_)();try{(0,d.cBl)(!0),wg(u,f);let O=0;for(;(0,d.dMS)(u);){if(100===O)throw new d.buA(103,!1);O++,wg(u,1)}}finally{(0,d.cBl)(_)}}(u,f)}finally{O.end?.()}}function Cn(u,f,_,O){if((0,d.EPY)(f))return;const V=f[d.Wg1];(0,d.ID8)(f);let nt=!0,ct=null,tn=null;mu(u)?(tn=function sl(u){return u[d.Iaj]??function kd(u){const f=ah.pop()??Object.create(Uh);return f.lView=u,f}(u)}(f),ct=(0,m.Bg)(tn)):null===(0,m.nR)()?(nt=!1,tn=function lh(u){const f=u[d.Iaj]??Object.create(jh);return f.lView=u,f}(f),ct=(0,m.Bg)(tn)):f[d.Iaj]&&((0,m.XR)(f[d.Iaj]),f[d.Iaj]=null);try{(0,d.HUe)(f),(0,d.Kw3)(u.bindingStartIndex),null!==_&&As(u,f,_,2,O);const fn=!(3&~V);if(fn){const _i=u.preOrderCheckHooks;null!==_i&&Ae(f,_i,null)}else{const _i=u.preOrderHooks;null!==_i&&pe(f,_i,0,null),Ee(f,0)}if(function vs(u){for(let f=gi(u);null!==f;f=mi(f)){if(!(2&f[d.Wg1]))continue;const _=f[d.nfM];for(let O=0;O<_.length;O++)(0,d.HAh)(_[O])}}(f),Bd(f),Ns(f,0),null!==u.contentQueries&&Wa(u,f),fn){const _i=u.contentCheckHooks;null!==_i&&Ae(f,_i)}else{const _i=u.contentHooks;null!==_i&&pe(f,_i,1),Ee(f,1)}!function Gh(u,f){const _=u.hostBindingOpCodes;if(null!==_)try{for(let O=0;O<_.length;O++){const V=_[O];if(V<0)(0,d.ypq)(~V);else{const se=V,$e=_[++O],nt=_[++O];(0,d.vQI)($e,se);const ct=f[se];ke(24,ct),nt(2,ct),ke(25,ct)}}}finally{(0,d.ypq)(-1)}}(u,f);const Nn=u.components;null!==Nn&&id(f,Nn,0);const ui=u.viewQuery;if(null!==ui&&ac(2,ui,O),fn){const _i=u.viewCheckHooks;null!==_i&&Ae(f,_i)}else{const _i=u.viewHooks;null!==_i&&pe(f,_i,2),Ee(f,2)}if(!0===u.firstUpdatePass&&(u.firstUpdatePass=!1),f[d.pcR]){for(const _i of f[d.pcR])_i();f[d.pcR]=null}Ba(f),f[d.Wg1]&=-73}catch(fn){throw(0,d.blu)(f),fn}finally{null!==tn&&((0,m.Wu)(tn,ct),nt&&function Vc(u){u.lView[d.Iaj]!==u&&(u.lView=null,ah.push(u))}(tn)),(0,d.bll)()}}function Ns(u,f){for(let _=gi(u);null!==_;_=mi(_))for(let O=d.Y20;O<_.length;O++)yf(_[O],f)}function _u(u,f,_){ke(18);const O=(0,d.KdJ)(f,u);yf(O,_),ke(19,O[d.SKP])}function yf(u,f){(0,d.F1c)(u)&&wg(u,f)}function wg(u,f){const O=u[d.eDl],V=u[d.Wg1],se=u[d.Iaj];let $e=!!(0===f&&16&V);if($e||=!!(64&V&&0===f),$e||=!!(1024&V),$e||=!(!se?.dirty||!(0,m.si)(se)),$e||=!1,se&&(se.dirty=!1),u[d.Wg1]&=-9217,$e)Cn(O,u,O.template,u[d.SKP]);else if(8192&V){const nt=(0,m.Ht)(null);try{Bd(u),Ns(u,1);const ct=O.components;null!==ct&&id(u,ct,1),Ba(u)}finally{(0,m.Ht)(nt)}}}function id(u,f,_){for(let O=0;O<f.length;O++)_u(u,f[O],_)}function Wh(u,f){const _=(0,d.yP_)()?64:1088;for(u[d.M0L].changeDetectionScheduler?.notify(f);u;){u[d.Wg1]|=_;const O=(0,d._0$)(u);if((0,d.EFk)(u)&&!O)return u;u=O}return null}function Fd(u,f,_,O){return[u,!0,0,f,null,O,null,_,null,null]}function Sg(u,f){const _=d.Y20+f;if(_<u.length)return u[_]}function zh(u,f,_,O=!0){const V=f[d.eDl];if(function Im(u,f,_,O){const V=d.Y20+O,se=_.length;O>0&&(_[V-1][d.K29]=f),O<se-d.Y20?(f[d.K29]=_[V],(0,d.EYC)(_,d.Y20+O,f)):(_.push(f),f[d.K29]=null),f[d.f7T]=_;const $e=f[d.rQE];null!==$e&&_!==$e&&Rl($e,f);const nt=f[d.Ds7];null!==nt&&nt.insertView(u),(0,d._gW)(f),f[d.Wg1]|=128}(V,f,u,_),O){const $e=Lt(_,u),nt=f[d.GpT],ct=nt.parentNode(u[d.s6P]);null!==ct&&function Og(u,f,_,O,V,se){O[d.jgP]=V,O[d.qlT]=f,Ci(u,O,_,1,V,se)}(V,u[d.qlT],nt,f,ct,$e)}const se=f[d.tcA];null!==se&&null!==se.firstChild&&(se.firstChild=null)}function bf(u,f){const _=Bp(u,f);return void 0!==_&&oh(_[d.eDl],_),_}function Bp(u,f){if(u.length<=d.Y20)return;const _=d.Y20+f,O=u[_];if(O){const V=O[d.rQE];null!==V&&V!==u&&Rp(V,O),f>0&&(u[_-1][d.K29]=O[d.K29]);const se=(0,d.E6O)(u,d.Y20+f);zl(O[d.eDl],O);const $e=se[d.Ds7];null!==$e&&$e.detachView(se[d.eDl]),O[d.f7T]=null,O[d.K29]=null,O[d.Wg1]&=-129}return O}function Rl(u,f){const _=u[d.nfM],O=f[d.f7T];((0,d.q$2)(O)||f[d.b5C]!==O[d.f7T][d.b5C])&&(u[d.Wg1]|=2),null===_?u[d.nfM]=[f]:_.push(f)}class pc{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){const f=this._lView,_=f[d.eDl];return Ia(_,f,_.firstChild,[])}constructor(f,_){this._lView=f,this._cdRefInjectingView=_}get context(){return this._lView[d.SKP]}set context(f){this._lView[d.SKP]=f}get destroyed(){return(0,d.EPY)(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const f=this._lView[d.f7T];if((0,d.A0l)(f)){const _=f[d.bm_],O=_?_.indexOf(this):-1;O>-1&&(Bp(f,O),(0,d.E6O)(_,O))}this._attachedToViewContainer=!1}oh(this._lView[d.eDl],this._lView)}onDestroy(f){(0,d.ik5)(this._lView,f)}markForCheck(){Wh(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[d.Wg1]&=-129}reattach(){(0,d._gW)(this._lView),this._lView[d.Wg1]|=128}detectChanges(){this._lView[d.Wg1]|=1024,vn(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new d.buA(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const f=(0,d.EFk)(this._lView),_=this._lView[d.rQE];null!==_&&!f&&Rp(_,this._lView),Pp(this._lView[d.eDl],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new d.buA(902,!1);this._appRef=f;const _=(0,d.EFk)(this._lView),O=this._lView[d.rQE];null!==O&&!_&&Rl(O,this._lView),(0,d._gW)(this._lView)}}let ge=(()=>class u{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=oe;constructor(_,O,V){this._declarationLView=_,this._declarationTContainer=O,this.elementRef=V}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(_,O){return this.createEmbeddedViewImpl(_,O)}createEmbeddedViewImpl(_,O,V){const se=fa(this._declarationLView,this._declarationTContainer,_,{embeddedViewInjector:O,dehydratedView:V});return new pc(se)}})();function oe(){return te((0,d.Mx4)(),(0,d.OAn)())}function te(u,f){return 4&u.type?new ge(f,u,ro(u,f)):null}function eE(u,f,_){const O=f.insertBeforeIndex,V=Array.isArray(O)?O[0]:O;return null===V?Lc(u,0,_):(0,d.IvY)(_[V])}function Dg(u,f,_,O,V){const se=f.insertBeforeIndex;if(Array.isArray(se)){let $e=O,nt=null;if(3&f.type||(nt=$e,$e=V),null!==$e&&-1===f.componentOffset)for(let ct=1;ct<se.length;ct++)Bc(u,$e,_[se[ct]],nt,!1)}}function Kh(u,f,_,O,V){let se=u.data[f];if(null===se)se=Rm(u,f,_,O,V),(0,d.JjR)()&&(se.flags|=32);else if(64&se.type){se.type=_,se.value=O,se.attrs=V;const $e=(0,d.Ab)();se.injectorIndex=null===$e?-1:$e.injectorIndex}return(0,d.iMd)(se,!0),se}function Rm(u,f,_,O,V){const se=(0,d.veI)(),$e=(0,d.YWB)(),ct=u.data[f]=function uv(u,f,_,O,V,se){let $e=f?f.injectorIndex:-1,nt=0;return(0,d.KtD)()&&(nt|=128),{type:_,index:O,insertBeforeIndex:null,injectorIndex:$e,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:nt,providerIndexes:0,value:V,attrs:se,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:f,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,$e?se:se&&se.parent,_,f,O,V);return function tE(u,f,_,O){null===u.firstChild&&(u.firstChild=f),null!==_&&(O?null==_.child&&null!==f.parent&&(_.child=f):null===_.next&&(_.next=f,f.prev=_))}(u,ct,se,$e),ct}function Iy(u,f){if(u.push(f),u.length>1)for(let _=u.length-2;_>=0;_--){const O=u[_];Fp(O)||hv(O,f)&&null===nE(O)&&iE(O,f.index)}}function Fp(u){return!(64&u.type)}function hv(u,f){return Fp(f)||u.index>f.index}function nE(u){const f=u.insertBeforeIndex;return Array.isArray(f)?f[0]:f}function iE(u,f){const _=u.insertBeforeIndex;Array.isArray(_)?_[0]=f:(fu(eE,Dg),u.insertBeforeIndex=f)}function Tg(u,f){const _=u.data[f];return null===_||"string"==typeof _?null:_.hasOwnProperty("currentCaseLViewIndex")?_:_.value}function sE(u,f,_){const O=Rm(u,_,64,null,null);return Iy(f,O),O}function pv(u,f){const _=f[u.currentCaseLViewIndex];return null===_?_:_<0?~_:_}function km(u){return u>>>17}function Py(u){return(131070&u)>>>1}function fv(u,f,_){u.index=0;const O=pv(f,_);u.removes=null!==O?f.remove[O]:d.Mlv}function xf(u){if(u.index<u.removes.length){const f=u.removes[u.index++];return f>0?u.lView[f]:(u.stack.push(u.index,u.removes),fv(u,u.lView[d.eDl].data[~f],u.lView),xf(u))}return 0===u.stack.length?null:(u.removes=u.stack.pop(),u.index=u.stack.pop(),xf(u))}function SD(){const u={stack:[],index:-1};return function f(_,O){for(u.lView=O;u.stack.length;)u.stack.pop();return fv(u,_.value,O),xf.bind(null,u)}}function VD(u,f,_){for(const O of _.node.cases[_.case]){const V=f.get(O.index-d.Yw1);V&&Fc(u,V,!1)}}function Af(u){const f=u[d.qFA]??[],O=u[d.f7T][d.GpT],V=[];for(const se of f)void 0!==se.data[Bt]?V.push(se):Cv(se,O);u[d.qFA]=V}function vv(u){const{lContainer:f}=u,_=f[d.qFA];if(null===_)return;const V=f[d.f7T][d.GpT];for(const se of _)Cv(se,V)}function Cv(u,f){let _=0,O=u.firstChild;if(O){const V=u.data[Ir];for(;_<V;){const se=O.nextSibling;Fc(f,O,!1),O=se,_++}}}function Lp(u){Af(u);const f=u[d.jgP];(0,d.q$2)(f)&&Mg(f);for(let _=d.Y20;_<u.length;_++)Mg(u[_])}function Mg(u){!function LD(u){const f=u[d.tcA];if(f){const{i18nNodes:_,dehydratedIcuData:O}=f;if(_&&O){const V=u[d.GpT];for(const se of O.values())VD(V,_,se)}f.i18nNodes=void 0,f.dehydratedIcuData=void 0}}(u);const f=u[d.eDl];for(let _=d.Yw1;_<f.bindingStartIndex;_++)(0,d.A0l)(u[_])?Lp(u[_]):(0,d.q$2)(u[_])&&Mg(u[_])}let Vp=()=>null,$y=()=>null;function If(u,f){return Vp(u,f)}function fE(u,f,_){return $y(u,f,_)}let Gy=class{},Vm=class{};class UD{resolveComponentFactory(f){throw new d.buA(917,!1)}}let Hm=class{static NULL=new UD};class Wy{}let bv=(()=>class u{destroyNode=null;static __NG_ELEMENT_ID__=()=>function jD(){const u=(0,d.OAn)(),f=(0,d.Mx4)(),_=(0,d.KdJ)(f.index,u);return((0,d.q$2)(_)?_:u)[d.GpT]}()})(),GD=(()=>{class u{static \u0275prov=(0,d.jDH)({token:u,providedIn:"root",factory:()=>null})}return u})();function xv(u){return void 0!==u.ngModule}function Pg(u){return!!(0,d.phH)(u)}function Ev(u){return!!(0,d.oyA)(u)}function mE(u){return!!(0,d.HaV)(u)}function er(u){return!!(0,d.xUg)(u)}function _E(u,f){if((0,d.Jzi)(u)&&!(u=(0,d.nl4)(u)))throw new Error(`Expected forwardRef function, imported from "${(0,d.PP7)(f)}", to return a standalone entity or NgModule but got "${(0,d.PP7)(u)||u}".`);if(null==(0,d.phH)(u)){const _=(0,d.xUg)(u)||(0,d.HaV)(u)||(0,d.oyA)(u);if(null==_)throw xv(u)?new Error(`A module with providers was imported from "${(0,d.PP7)(f)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${(0,d.PP7)(u)}" type, imported from "${(0,d.PP7)(f)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!_.standalone)throw new Error(`The "${(0,d.PP7)(u)}" ${function WD(u){return(0,d.xUg)(u)?"component":(0,d.HaV)(u)?"directive":(0,d.oyA)(u)?"pipe":"type"}(u)}, imported from "${(0,d.PP7)(f)}", is not standalone. Did you forget to add the standalone: true flag?`)}}class kl{ownerNgModule=new Map;ngModulesWithSomeUnresolvedDecls=new Set;ngModulesScopeCache=new Map;standaloneComponentsScopeCache=new Map;resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const f of this.ngModulesWithSomeUnresolvedDecls){const _=(0,d.phH)(f);if(_?.declarations)for(const O of Gl(_.declarations))er(O)&&this.ownerNgModule.set(O,f)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(f,_){this.resolveNgModulesDecls();const O=(0,d.xUg)(f);if(null===O)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${f}`);if(O.standalone){const V=this.getStandaloneComponentScope(f,_);return V.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...V.compilation.directives,...V.compilation.pipes,...V.compilation.ngModules]}}{if(!this.ownerNgModule.has(f))return{dependencies:[]};const V=this.getNgModuleScope(this.ownerNgModule.get(f));return V.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...V.compilation.directives,...V.compilation.pipes]}}}registerNgModule(f,_){if(!Pg(f))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${f}`);this.ngModulesWithSomeUnresolvedDecls.add(f)}clearScopeCacheFor(f){this.ngModulesScopeCache.delete(f),this.standaloneComponentsScopeCache.delete(f)}getNgModuleScope(f){if(this.ngModulesScopeCache.has(f))return this.ngModulesScopeCache.get(f);const _=this.computeNgModuleScope(f);return this.ngModulesScopeCache.set(f,_),_}computeNgModuleScope(f){const _=(0,d.WbQ)(f),O={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const V of Gl(_.imports))if(Pg(V)){const se=this.getNgModuleScope(V);hl(se.exported.directives,O.compilation.directives),hl(se.exported.pipes,O.compilation.pipes)}else{if(!(0,d.QuC)(V)){O.compilation.isPoisoned=!0;break}if(mE(V)||er(V))O.compilation.directives.add(V);else{if(!Ev(V))throw new d.buA(980,"The standalone imported type is neither a component nor a directive nor a pipe");O.compilation.pipes.add(V)}}if(!O.compilation.isPoisoned)for(const V of Gl(_.declarations)){if(Pg(V)||(0,d.QuC)(V)){O.compilation.isPoisoned=!0;break}Ev(V)?O.compilation.pipes.add(V):O.compilation.directives.add(V)}for(const V of Gl(_.exports))if(Pg(V)){const se=this.getNgModuleScope(V);hl(se.exported.directives,O.exported.directives),hl(se.exported.pipes,O.exported.pipes),hl(se.exported.directives,O.compilation.directives),hl(se.exported.pipes,O.compilation.pipes)}else Ev(V)?O.exported.pipes.add(V):O.exported.directives.add(V);return O}getStandaloneComponentScope(f,_){if(this.standaloneComponentsScopeCache.has(f))return this.standaloneComponentsScopeCache.get(f);const O=this.computeStandaloneComponentScope(f,_);return this.standaloneComponentsScopeCache.set(f,O),O}computeStandaloneComponentScope(f,_){const O={compilation:{directives:new Set([f]),pipes:new Set,ngModules:new Set}};for(const V of(0,d.Bqz)(_??[])){const se=(0,d.nl4)(V);try{_E(se,f)}catch{return O.compilation.isPoisoned=!0,O}if(Pg(se)){O.compilation.ngModules.add(se);const $e=this.getNgModuleScope(se);if($e.exported.isPoisoned)return O.compilation.isPoisoned=!0,O;hl($e.exported.directives,O.compilation.directives),hl($e.exported.pipes,O.compilation.pipes)}else if(Ev(se))O.compilation.pipes.add(se);else{if(!mE(se)&&!er(se))return O.compilation.isPoisoned=!0,O;O.compilation.directives.add(se)}}return O}isOrphanComponent(f){const _=(0,d.xUg)(f);return!(!_||_.standalone||(this.resolveNgModulesDecls(),this.ownerNgModule.has(f)))}}function hl(u,f){for(const _ of u)f.add(_)}const Zl=new kl,Mf={};class dh{injector;parentInjector;constructor(f,_){this.injector=f,this.parentInjector=_}get(f,_,O){const V=this.injector.get(f,Mf,O);return V!==Mf||_===Mf?V:this.parentInjector.get(f,_,O)}}function $m(u,f,_){let O=_?u.styles:null,V=_?u.classes:null,se=0;if(null!==f)for(let $e=0;$e<f.length;$e++){const nt=f[$e];if("number"==typeof nt)se=nt;else if(1==se)V=(0,d.n$e)(V,nt);else if(2==se){const tn=f[++$e];O=(0,d.n$e)(O,nt+": "+tn+";")}}_?u.styles=O:u.stylesWithoutHost=O,_?u.classes=V:u.classesWithoutHost=V}function uh(u,f=0){const _=(0,d.OAn)();return null===_?(0,d.KVO)(u,f):Rt((0,d.Mx4)(),_,(0,d.nl4)(u),f)}function pl(){throw new Error("invalid")}function Ov(u,f,_,O,V){const se=null===O?null:{"":-1},$e=V(u,_);if(null!==$e){let nt=$e,ct=null,tn=null;for(const fn of $e)if(null!==fn.resolveHostDirectives){[nt,ct,tn]=fn.resolveHostDirectives($e);break}!function KD(u,f,_,O,V,se,$e){const nt=O.length;let ct=!1;for(let ui=0;ui<nt;ui++){const _i=O[ui];!ct&&(0,d.JlV)(_i)&&(ct=!0,zD(u,_,ui)),Co(On(_,f),u,_i.type)}!function JD(u,f,_){u.flags|=1,u.directiveStart=f,u.directiveEnd=f+_,u.providerIndexes=f}(_,u.data.length,nt);for(let ui=0;ui<nt;ui++){const _i=O[ui];_i.providersResolver&&_i.providersResolver(_i)}let tn=!1,fn=!1,Nn=nh(u,f,nt,null);nt>0&&(_.directiveToIndex=new Map);for(let ui=0;ui<nt;ui++){const _i=O[ui];if(_.mergedAttrs=ue(_.mergedAttrs,_i.hostAttrs),Ky(u,_,f,Nn,_i),ZD(Nn,_i,V),null!==$e&&$e.has(_i)){const[No,jo]=$e.get(_i);_.directiveToIndex.set(_i.type,[Nn,No+_.directiveStart,jo+_.directiveStart])}else(null===se||!se.has(_i))&&_.directiveToIndex.set(_i.type,Nn);null!==_i.contentQueries&&(_.flags|=4),(null!==_i.hostBindings||null!==_i.hostAttrs||0!==_i.hostVars)&&(_.flags|=64);const ao=_i.type.prototype;!tn&&(ao.ngOnChanges||ao.ngOnInit||ao.ngDoCheck)&&((u.preOrderHooks??=[]).push(_.index),tn=!0),!fn&&(ao.ngOnChanges||ao.ngDoCheck)&&((u.preOrderCheckHooks??=[]).push(_.index),fn=!0),Nn++}!function XD(u,f,_){for(let O=f.directiveStart;O<f.directiveEnd;O++){const V=u.data[O];if(null!==_&&_.has(V)){const se=_.get(V);zy(0,f,se,O),zy(1,f,se,O),Um(f,O,!0)}else Rg(0,f,V,O),Rg(1,f,V,O),Um(f,O,!1)}}(u,_,se)}(u,f,_,nt,se,ct,tn)}null!==se&&null!==O&&function vE(u,f,_){const O=u.localNames=[];for(let V=0;V<f.length;V+=2){const se=_[f[V+1]];if(null==se)throw new d.buA(-301,!1);O.push(f[V],se)}}(_,O,se)}function zD(u,f,_){f.componentOffset=_,(u.components??=[]).push(f.index)}function Rg(u,f,_,O){const V=0===u?_.inputs:_.outputs;for(const se in V)if(V.hasOwnProperty(se)){let $e;$e=0===u?f.inputs??={}:f.outputs??={},$e[se]??=[],$e[se].push(O),wv(f,se)}}function zy(u,f,_,O){const V=0===u?_.inputs:_.outputs;for(const se in V)if(V.hasOwnProperty(se)){const $e=V[se];let nt;nt=0===u?f.hostDirectiveInputs??={}:f.hostDirectiveOutputs??={},nt[$e]??=[],nt[$e].push(O,se),wv(f,$e)}}function wv(u,f){"class"===f?u.flags|=8:"style"===f&&(u.flags|=16)}function Um(u,f,_){const{attrs:O,inputs:V,hostDirectiveInputs:se}=u;if(null===O||!_&&null===V||_&&null===se||Rh(u))return u.initialInputs??=[],void u.initialInputs.push(null);let $e=null,nt=0;for(;nt<O.length;){const ct=O[nt];if(0!==ct)if(5!==ct){if("number"==typeof ct)break;if(!_&&V.hasOwnProperty(ct)){const tn=V[ct];for(const fn of tn)if(fn===f){$e??=[],$e.push(ct,O[nt+1]);break}}else if(_&&se.hasOwnProperty(ct)){const tn=se[ct];for(let fn=0;fn<tn.length;fn+=2)if(tn[fn]===f){$e??=[],$e.push(tn[fn+1],O[nt+1]);break}}nt+=2}else nt+=2;else nt+=4}u.initialInputs??=[],u.initialInputs.push($e)}function Ky(u,f,_,O,V){u.data[O]=V;const se=V.factory||(V.factory=(0,d.wGu)(V.type,!0)),$e=new Oe(se,(0,d.JlV)(V),uh,null);u.blueprint[O]=$e,_[O]=$e,function YD(u,f,_,O,V){const se=V.hostBindings;if(se){let $e=u.hostBindingOpCodes;null===$e&&($e=u.hostBindingOpCodes=[]);const nt=~f.index;(function QD(u){let f=u.length;for(;f>0;){const _=u[--f];if("number"==typeof _&&_<0)return _}return 0})($e)!=nt&&$e.push(nt),$e.push(_,O,se)}}(u,f,O,nh(u,_,V.hostVars,br),V)}function ZD(u,f,_){if(_){if(f.exportAs)for(let O=0;O<f.exportAs.length;O++)_[f.exportAs[O]]=u;(0,d.JlV)(f)&&(_[""]=u)}}function Xy(u,f,_,O,V,se,$e,nt){const ct=f[d.eDl],tn=ct.consts,Nn=Kh(ct,u,_,O,(0,d.db4)(tn,$e));return se&&Ov(ct,f,Nn,(0,d.db4)(tn,nt),V),Nn.mergedAttrs=ue(Nn.mergedAttrs,Nn.attrs),null!==Nn.attrs&&$m(Nn,Nn.attrs,!1),null!==Nn.mergedAttrs&&$m(Nn,Nn.mergedAttrs,!0),null!==ct.queries&&ct.queries.elementStart(ct,Nn),Nn}function Yy(u,f){de(u,f),(0,d.srX)(f)&&u.queries.elementEnd(f)}function CE(u,f,_,O,V,se){const $e=f.consts,ct=Kh(f,u,_,O,(0,d.db4)($e,V));if(ct.mergedAttrs=ue(ct.mergedAttrs,ct.attrs),null!=se){const tn=(0,d.db4)($e,se);ct.localNames=[];for(let fn=0;fn<tn.length;fn+=2)ct.localNames.push(tn[fn],-1)}return null!==ct.attrs&&$m(ct,ct.attrs,!1),null!==ct.mergedAttrs&&$m(ct,ct.mergedAttrs,!0),null!==f.queries&&f.queries.elementStart(f,ct),ct}function Sv(u){return!!Qy(u)&&(Array.isArray(u)||!(u instanceof Map)&&Symbol.iterator in u)}function Pf(u,f){if(Array.isArray(u))for(let _=0;_<u.length;_++)f(u[_]);else{const _=u[Symbol.iterator]();let O;for(;!(O=_.next()).done;)f(O.value)}}function Qy(u){return null!==u&&("function"==typeof u||"object"==typeof u)}function hh(u,f,_){return u[f]=_}function jm(u,f){return u[f]}function ya(u,f,_){return _!==br&&(!Object.is(u[f],_)&&(u[f]=_,!0))}function kg(u,f,_,O){const V=ya(u,f,_);return ya(u,f+1,O)||V}function Yh(u,f,_,O,V){const se=kg(u,f,_,O);return ya(u,f+2,V)||se}function od(u,f,_,O,V,se){const $e=kg(u,f,_,O);return kg(u,f+2,V,se)||$e}function Rf(u,f,_){return function O(V){Wh((0,d.Qs1)(u)?(0,d.KdJ)(u.index,f):f,5);const $e=f[d.SKP];let nt=Hp(f,$e,_,V),ct=O.__ngNextListenerFn__;for(;ct;)nt=Hp(f,$e,ct,V)&&nt,ct=ct.__ngNextListenerFn__;return nt}}function Hp(u,f,_,O){const V=(0,m.Ht)(null);try{return ke(6,f,_),!1!==_(O)}catch(se){return Md(u,se),!1}finally{ke(7,f,_),(0,m.Ht)(V)}}function Gm(u,f,_,O,V,se,$e,nt){const ct=(0,d.yoD)(u);let tn=!1,fn=null;if(!O&&ct&&(fn=function Dv(u,f,_,O){const V=u.cleanup;if(null!=V)for(let se=0;se<V.length-1;se+=2){const $e=V[se];if($e===_&&V[se+1]===O){const nt=f[d.VVG],ct=V[se+2];return nt&&nt.length>ct?nt[ct]:null}"string"==typeof $e&&(se+=2)}return null}(f,_,se,u.index)),null!==fn)(fn.__ngLastListenerFn__||fn).__ngNextListenerFn__=$e,fn.__ngLastListenerFn__=$e,tn=!0;else{const Nn=(0,d.d31)(u,_),ui=O?O(Nn):Nn;!function os(u,f,_,O){eo(u,f,_,O)}(_,ui,se,nt);const _i=V.listen(ui,se,nt);Wm(O?No=>O((0,d.IvY)(No[u.index])):u.index,f,_,se,nt,_i,!1)}return tn}function Wm(u,f,_,O,V,se,$e){const nt=f.firstCreatePass?(0,d.vNG)(f):null,ct=(0,d.d_l)(_),tn=ct.length;ct.push(V,se),nt&&nt.push(O,u,tn,(tn+1)*($e?-1:1))}function $p(u,f,_,O,V,se){const nt=f[d.eDl],Nn=f[_][nt.data[_].outputs[O]].subscribe(se);Wm(u.index,nt,f,V,se,Nn,!0)}const Qh=Symbol("BINDING");class Zy extends Hm{ngModule;constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const _=(0,d.xUg)(f);return new kf(_,this.ngModule)}}class kf extends Vm{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=function oT(u){return Object.keys(u).map(f=>{const[_,O,V]=u[f],se={propName:_,templateName:f,isSignal:0!==(O&Lh.SignalBased)};return V&&(se.transform=V),se})}(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=function sT(u){return Object.keys(u).map(f=>({propName:u[f],templateName:f}))}(this.componentDef.outputs),this.cachedOutputs}constructor(f,_){super(),this.componentDef=f,this.ngModule=_,this.componentType=f.type,this.selector=function yg(u){return u.map(Zc).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors??[],this.isBoundToModule=!!_}create(f,_,O,V,se,$e){ke(22);const nt=(0,m.Ht)(null);try{const ct=this.componentDef,tn=function qy(u,f,_,O){const V=u?["ng-version","20.2.4"]:function bg(u){const f=[],_=[];let O=1,V=2;for(;O<u.length;){let se=u[O];if("string"==typeof se)2===V?""!==se&&f.push(se,u[++O]):8===V&&_.push(se);else{if(!tl(V))break;V=se}O++}return _.length&&f.push(1,..._),f}(f.selectors[0]);let se=null,$e=null,nt=0;if(_)for(const fn of _)nt+=fn[Qh].requiredVars,fn.create&&(fn.targetIdx=0,(se??=[]).push(fn)),fn.update&&(fn.targetIdx=0,($e??=[]).push(fn));if(O)for(let fn=0;fn<O.length;fn++){const Nn=O[fn];if("function"!=typeof Nn)for(const ui of Nn.bindings){nt+=ui[Qh].requiredVars;const _i=fn+1;ui.create&&(ui.targetIdx=_i,(se??=[]).push(ui)),ui.update&&(ui.targetIdx=_i,($e??=[]).push(ui))}}const ct=[f];if(O)for(const fn of O){const ui=(0,d.HaV)("function"==typeof fn?fn:fn.type);ct.push(ui)}return Jc(0,null,function SE(u,f){return u||f?_=>{if(1&_&&u)for(const O of u)O.create();if(2&_&&f)for(const O of f)O.update()}:null}(se,$e),1,nt,ct,null,null,null,[V],null)}(O,ct,$e,se),fn=function rT(u,f,_){let O=f instanceof d.uvJ?f:f?.injector;return O&&null!==u.getStandaloneInjector&&(O=u.getStandaloneInjector(O)||O),O?new dh(_,O):_}(ct,V||this.ngModule,f),Nn=function aT(u){const f=u.get(Wy,null);if(null===f)throw new d.buA(407,!1);return{rendererFactory:f,sanitizer:u.get(GD,null),changeDetectionScheduler:u.get(d.hk6,null),ngReflect:!1}}(fn),ui=Nn.rendererFactory.createRenderer(null,ct),_i=O?function fr(u,f,_,O){const se=O.get(co,!1)||_===Ma.ShadowDom,$e=u.selectRootElement(f,se);return function or(u){Lr(u)}($e),$e}(ui,O,ct.encapsulation,fn):function lT(u,f){const _=function Jy(u){return(u.selectors[0][0]||"div").toLowerCase()}(u);return wd(f,_,"svg"===_?d.jNX:"math"===_?d.rJ1:null)}(ct,ui),ao=$e?.some(eb)||se?.some(us=>"function"!=typeof us&&us.bindings.some(eb)),No=Il(null,tn,null,512|th(ct),null,null,Nn,ui,fn,null,xl(_i,fn,!0));No[d.Yw1]=_i,(0,d.ID8)(No);let jo=null;try{const us=Xy(d.Yw1,No,2,"#host",()=>tn.directiveRegistry,!0,0);_i&&(hu(ui,_i,us),fi(_i,No)),Zo(tn,No,us),wl(tn,us,No),Yy(tn,us),void 0!==_&&function tb(u,f,_){const O=u.projection=[];for(let V=0;V<f.length;V++){const se=_[V];O.push(null!=se&&se.length?Array.from(se):null)}}(us,this.ngContentSelectors,_),jo=(0,d.KdJ)(us.index,No),No[d.SKP]=jo[d.SKP],td(tn,No,null)}catch(us){throw null!==jo&&Fo(jo),Fo(No),us}finally{ke(23),(0,d.bll)()}return new zm(this.componentType,No,!!ao)}finally{(0,m.Ht)(nt)}}}function eb(u){const f=u[Qh].kind;return"input"===f||"twoWay"===f}class zm extends Gy{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(f,_,O){super(),this._rootLView=_,this._hasInputBindings=O,this._tNode=(0,d.XRZ)(_[d.eDl],d.Yw1),this.location=ro(this._tNode,_),this.instance=(0,d.KdJ)(this._tNode.index,_)[d.SKP],this.hostView=this.changeDetectorRef=new pc(_,void 0),this.componentType=f}setInput(f,_){const O=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(f)&&Object.is(this.previousInputValues.get(f),_))return;const V=this._rootLView;Yl(O,V[d.eDl],V,f,_),this.previousInputValues.set(f,_),Wh((0,d.KdJ)(O.index,V),1)}get injector(){return new ls(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(f){this.hostView.onDestroy(f)}}let Km=(()=>class u{static __NG_ELEMENT_ID__=nb})();function nb(){return sb((0,d.Mx4)(),(0,d.OAn)())}const DE=Km,ib=class extends DE{_lContainer;_hostTNode;_hostLView;constructor(f,_,O){super(),this._lContainer=f,this._hostTNode=_,this._hostLView=O}get element(){return ro(this._hostTNode,this._hostLView)}get injector(){return new ls(this._hostTNode,this._hostLView)}get parentInjector(){const f=Vo(this._hostTNode,this._hostLView);if(Te(f)){const _=lt(f,this._hostLView),O=je(f);return new ls(_[d.eDl].data[O+8],_)}return new ls(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const _=ob(this._lContainer);return null!==_&&_[f]||null}get length(){return this._lContainer.length-d.Y20}createEmbeddedView(f,_,O){let V,se;"number"==typeof O?V=O:null!=O&&(V=O.index,se=O.injector);const $e=If(this._lContainer,f.ssrId),nt=f.createEmbeddedViewImpl(_||{},se,$e);return this.insertImpl(nt,V,Pl(this._hostTNode,$e)),nt}createComponent(f,_,O,V,se,$e,nt){const ct=f&&!R(f);let tn;if(ct)tn=_;else{const jo=_||{};tn=jo.index,O=jo.injector,V=jo.projectableNodes,se=jo.environmentInjector||jo.ngModuleRef,$e=jo.directives,nt=jo.bindings}const fn=ct?f:new kf((0,d.xUg)(f)),Nn=O||this.parentInjector;if(!se&&null==fn.ngModule){const us=(ct?Nn:this.parentInjector).get(d.uvJ,null);us&&(se=us)}const ui=(0,d.xUg)(fn.componentType??{}),_i=If(this._lContainer,ui?.id??null),No=fn.create(Nn,V,_i?.firstChild??null,se,$e,nt);return this.insertImpl(No.hostView,tn,Pl(this._hostTNode,_i)),No}insert(f,_){return this.insertImpl(f,_,!0)}insertImpl(f,_,O){const V=f._lView;if((0,d.ITl)(V)){const nt=this.indexOf(f);if(-1!==nt)this.detach(nt);else{const ct=V[d.f7T],tn=new ib(ct,ct[d.qlT],ct[d.f7T]);tn.detach(tn.indexOf(f))}}const se=this._adjustIndex(_),$e=this._lContainer;return zh($e,V,se,O),f.attachToViewContainerRef(),(0,d.EYC)(Tv($e),se,f),f}move(f,_){return this.insert(f,_)}indexOf(f){const _=ob(this._lContainer);return null!==_?_.indexOf(f):-1}remove(f){const _=this._adjustIndex(f,-1),O=Bp(this._lContainer,_);O&&((0,d.E6O)(Tv(this._lContainer),_),oh(O[d.eDl],O))}detach(f){const _=this._adjustIndex(f,-1),O=Bp(this._lContainer,_);return O&&null!=(0,d.E6O)(Tv(this._lContainer),_)?new pc(O):null}_adjustIndex(f,_=0){return f??this.length+_}};function ob(u){return u[d.bm_]}function Tv(u){return u[d.bm_]||(u[d.bm_]=[])}function sb(u,f){let _;const O=f[u.index];return(0,d.A0l)(O)?_=O:(_=Fd(O,f,null,u),f[u.index]=_,ih(f,_)),AE(_,f,u,O),new ib(_,u,f)}let AE=function Bf(u,f,_,O){if(u[d.s6P])return;let V;V=8&_.type?(0,d.IvY)(O):function TE(u,f){const _=u[d.GpT],O=_.createComment(""),V=(0,d.d31)(f,u),se=_.parentNode(V);return Bc(_,se,O,_.nextSibling(V),!1),O}(f,_),u[d.s6P]=V},Xm=()=>!1;function rb(u,f,_){return Xm(u,f,_)}class Ym{queryList;matches=null;constructor(f){this.queryList=f}clone(){return new Ym(this.queryList)}setDirty(){this.queryList.setDirty()}}class Av{queries;constructor(f=[]){this.queries=f}createEmbeddedView(f){const _=f.queries;if(null!==_){const O=null!==f.contentQueries?f.contentQueries[0]:_.length,V=[];for(let se=0;se<O;se++){const $e=_.getByIndex(se);V.push(this.queries[$e.indexInDeclarationView].clone())}return new Av(V)}return null}insertView(f){this.dirtyQueriesWithMatches(f)}detachView(f){this.dirtyQueriesWithMatches(f)}finishViewCreation(f){this.dirtyQueriesWithMatches(f)}dirtyQueriesWithMatches(f){for(let _=0;_<this.queries.length;_++)null!==ep(f,_).matches&&this.queries[_].setDirty()}}class Iv{flags;read;predicate;constructor(f,_,O=null){this.flags=_,this.read=O,this.predicate="string"==typeof f?function qh(u){return u.split(",").map(f=>f.trim())}(f):f}}class Mv{queries;constructor(f=[]){this.queries=f}elementStart(f,_){for(let O=0;O<this.queries.length;O++)this.queries[O].elementStart(f,_)}elementEnd(f){for(let _=0;_<this.queries.length;_++)this.queries[_].elementEnd(f)}embeddedTView(f){let _=null;for(let O=0;O<this.length;O++){const V=null!==_?_.length:0,se=this.getByIndex(O).embeddedTView(f,V);se&&(se.indexInDeclarationView=O,null!==_?_.push(se):_=[se])}return null!==_?new Mv(_):null}template(f,_){for(let O=0;O<this.queries.length;O++)this.queries[O].template(f,_)}getByIndex(f){return this.queries[f]}get length(){return this.queries.length}track(f){this.queries.push(f)}}class Pv{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(f,_=-1){this.metadata=f,this._declarationNodeIndex=_}elementStart(f,_){this.isApplyingToNode(_)&&this.matchTNode(f,_)}elementEnd(f){this._declarationNodeIndex===f.index&&(this._appliesToNextNode=!1)}template(f,_){this.elementStart(f,_)}embeddedTView(f,_){return this.isApplyingToNode(f)?(this.crossesNgTemplate=!0,this.addMatch(-f.index,_),new Pv(this.metadata)):null}isApplyingToNode(f){if(this._appliesToNextNode&&1&~this.metadata.flags){const _=this._declarationNodeIndex;let O=f.parent;for(;null!==O&&8&O.type&&O.index!==_;)O=O.parent;return _===(null!==O?O.index:-1)}return this._appliesToNextNode}matchTNode(f,_){const O=this.metadata.predicate;if(Array.isArray(O))for(let V=0;V<O.length;V++){const se=O[V];this.matchTNodeWithReadOption(f,_,ab(_,se)),this.matchTNodeWithReadOption(f,_,Jn(_,f,se,!1,!1))}else O===ge?4&_.type&&this.matchTNodeWithReadOption(f,_,-1):this.matchTNodeWithReadOption(f,_,Jn(_,f,O,!1,!1))}matchTNodeWithReadOption(f,_,O){if(null!==O){const V=this.metadata.read;if(null!==V)if(V===mo||V===Km||V===ge&&4&_.type)this.addMatch(_.index,-2);else{const se=Jn(_,f,V,!1,!1);null!==se&&this.addMatch(_.index,se)}else this.addMatch(_.index,O)}}addMatch(f,_){null===this.matches?this.matches=[f,_]:this.matches.push(f,_)}}function ab(u,f){const _=u.localNames;if(null!==_)for(let O=0;O<_.length;O+=2)if(_[O]===f)return _[O+1];return null}function Ff(u,f,_,O){return-1===_?function Qm(u,f){return 11&u.type?ro(u,f):4&u.type?te(u,f):null}(f,u):-2===_?function Zh(u,f,_){return _===mo?ro(f,u):_===ge?te(f,u):_===Km?sb(f,u):void 0}(u,f,O):vo(u,u[d.eDl],_,f)}function Zm(u,f,_,O){const V=f[d.Ds7].queries[O];if(null===V.matches){const se=u.data,$e=_.matches,nt=[];for(let ct=0;null!==$e&&ct<$e.length;ct+=2){const tn=$e[ct];nt.push(tn<0?null:Ff(f,se[tn],$e[ct+1],_.metadata.read))}V.matches=nt}return V.matches}function Jh(u,f,_,O){const V=u.queries.getByIndex(_),se=V.matches;if(null!==se){const $e=Zm(u,f,V,_);for(let nt=0;nt<se.length;nt+=2){const ct=se[nt];if(ct>0)O.push($e[nt/2]);else{const tn=se[nt+1],fn=f[-ct];for(let Nn=d.Y20;Nn<fn.length;Nn++){const ui=fn[Nn];ui[d.rQE]===ui[d.f7T]&&Jh(ui[d.eDl],ui,tn,O)}if(null!==fn[d.nfM]){const Nn=fn[d.nfM];for(let ui=0;ui<Nn.length;ui++){const _i=Nn[ui];Jh(_i[d.eDl],_i,tn,O)}}}}}return O}function Bg(u,f){return u[d.Ds7].queries[f].queryList}function Jm(u,f,_){const O=new Qt(!(4&~_));return(0,d.B22)(u,f,O,O.destroy),(f[d.Ds7]??=new Av).queries.push(new Ym(O))-1}function lb(u,f,_){const O=(0,d.klJ)();return O.firstCreatePass&&(PE(O,new Iv(u,f,_),-1),!(2&~f)&&(O.staticViewQueries=!0)),Jm(O,(0,d.OAn)(),f)}function cb(u,f,_,O){const V=(0,d.klJ)();if(V.firstCreatePass){const se=(0,d.Mx4)();PE(V,new Iv(f,_,O),se.index),function dT(u,f){const _=u.contentQueries||(u.contentQueries=[]);f!==(_.length?_[_.length-1]:-1)&&_.push(u.queries.length-1,f)}(V,u),!(2&~_)&&(V.staticContentQueries=!0)}return Jm(V,(0,d.OAn)(),_)}function PE(u,f,_){null===u.queries&&(u.queries=new Mv),u.queries.track(new Pv(f,_))}function ep(u,f){return u.queries.getByIndex(f)}function Rv(u,f){const _=u[d.eDl],O=ep(_,f);return O.crossesNgTemplate?Jh(_,u,f,[]):Zm(_,u,O,f)}function db(u,f){const _=u[m.bh];_._lView=(0,d.OAn)(),_._queryIndex=f,_._queryList=Bg(_._lView,f),_._queryList.onDirty(()=>_._dirtyCounter.update(O=>O+1))}function BE(u){const f=[],_=new Map;function O(V){let se=_.get(V);if(!se){const $e=u(V);_.set(V,se=$e.then(nt=>function NE(u,f){return"string"==typeof f?f:void 0!==f.status&&200!==f.status?Promise.reject(new d.buA(918,!1)):f.text()}(0,nt)))}return se}return Up.forEach((V,se)=>{const $e=[];V.templateUrl&&$e.push(O(V.templateUrl).then(tn=>{V.template=tn}));const nt="string"==typeof V.styles?[V.styles]:V.styles||[];if(V.styles=nt,V.styleUrl&&V.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(V.styleUrls?.length){const tn=V.styles.length,fn=V.styleUrls;V.styleUrls.forEach((Nn,ui)=>{nt.push(""),$e.push(O(Nn).then(_i=>{nt[tn+ui]=_i,fn.splice(fn.indexOf(Nn),1),0==fn.length&&(V.styleUrls=void 0)}))})}else V.styleUrl&&$e.push(O(V.styleUrl).then(tn=>{nt.push(tn),V.styleUrl=void 0}));const ct=Promise.all($e).then(()=>function hb(u){Nd.delete(u)}(se));f.push(ct)}),function kv(){const u=Up;Up=new Map}(),Promise.all(f).then(()=>{})}let Up=new Map;const Nd=new Set;function np(){return 0===Up.size}const pb=new Map;function pT(u,f){(function LE(u,f,_){if(f&&f!==_)throw new Error(`Duplicate module registered for ${u} - ${(0,d.AsM)(f)} vs ${(0,d.AsM)(f.name)}`)})(f,pb.get(f)||null,u),pb.set(f,u)}const Fa=new Set;function gl(u){Fa.has(u)||(Fa.add(u),performance?.mark?.("mark_feature_usage",{detail:{feature:u}}))}let Ng=class{},qm=class{};function mb(u,f){return new Lg(u,f??null,[])}class Lg extends Ng{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Zy(this);constructor(f,_,O,V=!0){super(),this.ngModuleType=f,this._parent=_;const se=(0,d.phH)(f);this._bootstrapComponents=Gl(se.bootstrap),this._r3Injector=(0,d.Pz9)(f,_,[{provide:Ng,useValue:this},{provide:Hm,useValue:this.componentFactoryResolver},...O],(0,d.AsM)(f),new Set(["environment"])),V&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(_=>_()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Bv extends qm{moduleType;constructor(f){super(),this.moduleType=f}create(f){return new Lg(this.moduleType,f,[])}}function Fv(u,f,_){return new Lg(u,f,_,!1)}class HE extends Ng{injector;componentFactoryResolver=new Zy(this);instance=null;constructor(f){super();const _=new d.e5P([...f.providers,{provide:Ng,useValue:this},{provide:Hm,useValue:this.componentFactoryResolver}],f.parent||(0,d.WB9)(),f.debugName,new Set(["environment"]));this.injector=_,f.runEnvironmentInitializers&&_.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(f){this.injector.onDestroy(f)}}function Lf(u,f,_=null){return new HE({providers:u,parent:f,debugName:_,runEnvironmentInitializers:!0}).injector}let Vg=(()=>{class u{_injector;cachedInjectors=new Map;constructor(_){this._injector=_}getOrCreateStandaloneInjector(_){if(!_.standalone)return null;if(!this.cachedInjectors.has(_)){const O=(0,d.jXY)(!1,_.type),V=O.length>0?Lf([O],this._injector,`Standalone[${_.type.name}]`):null;this.cachedInjectors.set(_,V)}return this.cachedInjectors.get(_)}ngOnDestroy(){try{for(const _ of this.cachedInjectors.values())null!==_&&_.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=(0,d.jDH)({token:u,providedIn:"environment",factory:()=>new u((0,d.KVO)(d.uvJ))})}return u})();function Hg(u){return k(()=>{const f=Uv(u),_={...f,decls:u.decls,vars:u.vars,template:u.template,consts:u.consts||null,ngContentSelectors:u.ngContentSelectors,onPush:u.changeDetection===xn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:f.standalone&&u.dependencies||null,getStandaloneInjector:f.standalone?V=>V.get(Vg).getOrCreateStandaloneInjector(_):null,getExternalStyles:null,signals:u.signals??!1,data:u.data||{},encapsulation:u.encapsulation||Ma.Emulated,styles:u.styles||d.Mlv,_:null,schemas:u.schemas||null,tView:null,id:""};f.standalone&&gl("NgStandalone"),jv(_);const O=u.dependencies;return _.directiveDefs=Vf(O,Nv),_.pipeDefs=Vf(O,d.oyA),_.id=function _b(u){let f=0;const O=[u.selectors,u.ngContentSelectors,u.hostVars,u.hostAttrs,"function"==typeof u.consts?"":u.consts,u.vars,u.decls,u.encapsulation,u.standalone,u.signals,u.exportAs,JSON.stringify(u.inputs),JSON.stringify(u.outputs),Object.getOwnPropertyNames(u.type.prototype),!!u.contentQueries,!!u.viewQuery];for(const se of O.join("|"))f=Math.imul(31,f)+se.charCodeAt(0)|0;return f+=2147483648,"c"+f}(_),_})}function Nv(u){return(0,d.xUg)(u)||(0,d.HaV)(u)}function Lv(u){return k(()=>({type:u.type,bootstrap:u.bootstrap||d.Mlv,declarations:u.declarations||d.Mlv,imports:u.imports||d.Mlv,exports:u.exports||d.Mlv,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null}))}function $E(u,f){if(null==u)return d.MZA;const _={};for(const O in u)if(u.hasOwnProperty(O)){const V=u[O];let se,$e,nt,ct;Array.isArray(V)?(nt=V[0],se=V[1],$e=V[2]??se,ct=V[3]||null):(se=V,$e=V,nt=Lh.None,ct=null),_[se]=[O,nt,ct],f[se]=$e}return _}function Vv(u){if(null==u)return d.MZA;const f={};for(const _ in u)u.hasOwnProperty(_)&&(f[u[_]]=_);return f}function Hv(u){return k(()=>{const f=Uv(u);return jv(f),f})}function $v(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,standalone:u.standalone??!0,onDestroy:u.type.prototype.ngOnDestroy||null}}function Uv(u){const f={};return{type:u.type,providersResolver:null,factory:null,hostBindings:u.hostBindings||null,hostVars:u.hostVars||0,hostAttrs:u.hostAttrs||null,contentQueries:u.contentQueries||null,declaredInputs:f,inputConfig:u.inputs||d.MZA,exportAs:u.exportAs||null,standalone:u.standalone??!0,signals:!0===u.signals,selectors:u.selectors||d.Mlv,viewQuery:u.viewQuery||null,features:u.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:$E(u.inputs,f),outputs:Vv(u.outputs),debugInfo:null}}function jv(u){u.features?.forEach(f=>f(u))}function Vf(u,f){return u?()=>{const _="function"==typeof u?u():u,O=[];for(const V of _){const se=f(V);null!==se&&O.push(se)}return O}:null}function Wv(u){return Object.getPrototypeOf(u.prototype).constructor}function Hf(u){let f=Wv(u.type),_=!0;const O=[u];for(;f;){let V;if((0,d.JlV)(u))V=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new d.buA(903,!1);V=f.\u0275dir}if(V){if(_){O.push(V);const $e=u;$e.inputs=zv(u.inputs),$e.declaredInputs=zv(u.declaredInputs),$e.outputs=zv(u.outputs);const nt=V.hostBindings;nt&&Cb(u,nt);const ct=V.viewQuery,tn=V.contentQueries;if(ct&&$f(u,ct),tn&&Kv(u,tn),vb(u,V),(0,d.dwj)(u.outputs,V.outputs),(0,d.JlV)(V)&&V.data.animation){const fn=u.data;fn.animation=(fn.animation||[]).concat(V.data.animation)}}const se=V.features;if(se)for(let $e=0;$e<se.length;$e++){const nt=se[$e];nt&&nt.ngInherit&&nt(u),nt===Hf&&(_=!1)}}f=Object.getPrototypeOf(f)}!function UE(u){let f=0,_=null;for(let O=u.length-1;O>=0;O--){const V=u[O];V.hostVars=f+=V.hostVars,V.hostAttrs=ue(V.hostAttrs,_=ue(_,V.hostAttrs))}}(O)}function vb(u,f){for(const _ in f.inputs){if(!f.inputs.hasOwnProperty(_)||u.inputs.hasOwnProperty(_))continue;const O=f.inputs[_];void 0!==O&&(u.inputs[_]=O,u.declaredInputs[_]=f.declaredInputs[_])}}function zv(u){return u===d.MZA?{}:u===d.Mlv?[]:u}function $f(u,f){const _=u.viewQuery;u.viewQuery=_?(O,V)=>{f(O,V),_(O,V)}:f}function Kv(u,f){const _=u.contentQueries;u.contentQueries=_?(O,V,se)=>{f(O,V,se),_(O,V,se)}:f}function Cb(u,f){const _=u.hostBindings;u.hostBindings=_?(O,V)=>{f(O,V),_(O,V)}:f}const yb=["providersResolver"],jE=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Xv(u){const f=[];let _=!1,O=null,V=null;for(let se=0;se<u.length;se++){const $e=u[se];if(null!==$e.hostDirectives){const nt=f.length;O??=new Map,V??=new Map,Ld($e,f,O),V.set($e,[nt,f.length-1])}0===se&&(0,d.JlV)($e)&&(_=!0,f.push($e))}for(let se=_?1:0;se<u.length;se++)f.push(u[se]);return[f,O,V]}function Ld(u,f,_){if(null!==u.hostDirectives)for(const O of u.hostDirectives)if("function"==typeof O){const V=O();for(const se of V)bb(Yv(se),f,_)}else bb(O,f,_)}function bb(u,f,_){const O=(0,d.HaV)(u.directive);(function gT(u,f){for(const _ in f)f.hasOwnProperty(_)&&(u[f[_]]=u[_])})(O.declaredInputs,u.inputs),Ld(O,f,_),_.set(O,u),f.push(O)}function Yv(u){return"function"==typeof u?{directive:(0,d.nl4)(u),inputs:d.MZA,outputs:d.MZA}:{directive:(0,d.nl4)(u.directive),inputs:GE(u.inputs),outputs:GE(u.outputs)}}function GE(u){if(void 0===u||0===u.length)return d.MZA;const f={};for(let _=0;_<u.length;_+=2)f[u[_]]=u[_+1];return f}function t_(u,f,_,O,V,se,$e,nt){if(_.firstCreatePass){u.mergedAttrs=ue(u.mergedAttrs,u.attrs);const fn=u.tView=Jc(2,u,V,se,$e,_.directiveRegistry,_.pipeRegistry,null,_.schemas,_.consts,null);null!==_.queries&&(_.queries.template(_,u),fn.queries=_.queries.embeddedTView(u))}nt&&(u.flags|=nt),(0,d.iMd)(u,!1);const ct=Zv(_,f,u,O);(0,d.SX7)()&&Kl(_,f,ct,u),fi(ct,f);const tn=Fd(ct,f,ct,u);f[O+d.Yw1]=tn,ih(f,tn),rb(tn,u,f)}function Gp(u,f,_,O,V,se,$e,nt,ct,tn,fn){const Nn=_+d.Yw1;let ui;if(f.firstCreatePass){if(ui=Kh(f,Nn,4,$e||null,nt||null),null!=tn){const _i=(0,d.db4)(f.consts,tn);ui.localNames=[];for(let ao=0;ao<_i.length;ao+=2)ui.localNames.push(_i[ao],-1)}}else ui=f.data[Nn];return t_(ui,u,f,_,O,V,se,ct),null!=tn&&qs(u,ui,fn),ui}function n_(u,f,_,O,V,se,$e,nt){const ct=(0,d.OAn)(),tn=(0,d.klJ)();return function Eb(u,f,_,O,V,se,$e,nt,ct,tn,fn){const Nn=_+d.Yw1;let ui;f.firstCreatePass?(ui=Kh(f,Nn,4,$e||null,nt||null),(0,d.ckz)()&&Ov(f,u,ui,(0,d.db4)(f.consts,tn),ua),de(f,ui)):ui=f.data[Nn],t_(ui,u,f,_,O,V,se,ct),(0,d.yoD)(ui)&&Zo(f,u,ui),null!=tn&&qs(u,ui,fn)}(ct,tn,u,f,_,O,V,(0,d.db4)(tn.consts,se),void 0,$e,nt),n_}let Zv=function Jv(u,f,_,O){return(0,d.m7n)(!0),f[d.GpT].createComment("")};var $a=function(u){return u[u.NOT_STARTED=0]="NOT_STARTED",u[u.IN_PROGRESS=1]="IN_PROGRESS",u[u.COMPLETE=2]="COMPLETE",u[u.FAILED=3]="FAILED",u}($a||{}),ra=function(u){return u[u.Placeholder=0]="Placeholder",u[u.Loading=1]="Loading",u[u.Complete=2]="Complete",u[u.Error=3]="Error",u}(ra||{}),Uf=function(u){return u[u.Initial=-1]="Initial",u}(Uf||{}),zE=function(u){return u[u.Manual=0]="Manual",u[u.Playthrough=1]="Playthrough",u}(zE||{});function s_(u,f,_){const O=XE(u);null===f[O]&&(f[O]=[]),f[O].push(_)}function eC(u,f){const _=XE(u),O=f[_];if(null!==O){for(const V of O)V();f[_]=null}}function KE(u){eC(1,u),eC(0,u),eC(2,u)}function XE(u){let f=4;return 1===u?f=5:2===u&&(f=9),f}var Sb=function(u){return u[u.CHANGE_DETECTION=0]="CHANGE_DETECTION",u[u.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",u}(Sb||{});const r_=new d.nKC(""),Wf=!1,Cu=class vT extends T.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(f=!1){super(),this.__isAsync=f,(0,d.M6u)()&&(this.destroyRef=(0,d.WQX)(d.abz,{optional:!0})??void 0,this.pendingTasks=(0,d.WQX)(d.rev,{optional:!0})??void 0)}emit(f){const _=(0,m.Ht)(null);try{super.next(f)}finally{(0,m.Ht)(_)}}subscribe(f,_,O){let V=f,se=_||(()=>null),$e=O;if(f&&"object"==typeof f){const ct=f;V=ct.next?.bind(ct),se=ct.error?.bind(ct),$e=ct.complete?.bind(ct)}this.__isAsync&&(se=this.wrapInTimeout(se),V&&(V=this.wrapInTimeout(V)),$e&&($e=this.wrapInTimeout($e)));const nt=super.subscribe({next:V,error:se,complete:$e});return f instanceof C.yU&&f.add(nt),nt}wrapInTimeout(f){return _=>{const O=this.pendingTasks?.add();setTimeout(()=>{try{f(_)}finally{void 0!==O&&this.pendingTasks?.remove(O)}})}}};function YE(u){let f,_;function O(){u=d.lQ1;try{void 0!==_&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(_),void 0!==f&&clearTimeout(f)}catch{}}return f=setTimeout(()=>{u(),O()}),"function"==typeof requestAnimationFrame&&(_=requestAnimationFrame(()=>{u(),O()})),()=>O()}function QE(u){return queueMicrotask(()=>u()),()=>{u=d.lQ1}}const Db="isAngularZone",a_=Db+"_ID";let Tb=0;class aa{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Cu(!1);onMicrotaskEmpty=new Cu(!1);onStable=new Cu(!1);onError=new Cu(!1);constructor(f){const{enableLongStackTrace:_=!1,shouldCoalesceEventChangeDetection:O=!1,shouldCoalesceRunChangeDetection:V=!1,scheduleInRootZone:se=Wf}=f;if(typeof Zone>"u")throw new d.buA(908,!1);Zone.assertZonePatched();const $e=this;$e._nesting=0,$e._outer=$e._inner=Zone.current,Zone.TaskTrackingZoneSpec&&($e._inner=$e._inner.fork(new Zone.TaskTrackingZoneSpec)),_&&Zone.longStackTraceZoneSpec&&($e._inner=$e._inner.fork(Zone.longStackTraceZoneSpec)),$e.shouldCoalesceEventChangeDetection=!V&&O,$e.shouldCoalesceRunChangeDetection=V,$e.callbackScheduled=!1,$e.scheduleInRootZone=se,function JE(u){const f=()=>{!function ZE(u){function f(){YE(()=>{u.callbackScheduled=!1,nC(u),u.isCheckStableRunning=!0,tC(u),u.isCheckStableRunning=!1})}u.isCheckStableRunning||u.callbackScheduled||(u.callbackScheduled=!0,u.scheduleInRootZone?Zone.root.run(()=>{f()}):u._outer.run(()=>{f()}),nC(u))}(u)},_=Tb++;u._inner=u._inner.fork({name:"angular",properties:{[Db]:!0,[a_]:_,[a_+_]:!0},onInvokeTask:(O,V,se,$e,nt,ct)=>{if(function CT(u){return eO(u,"__ignore_ng_zone__")}(ct))return O.invokeTask(se,$e,nt,ct);try{return Ib(u),O.invokeTask(se,$e,nt,ct)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===$e.type||u.shouldCoalesceRunChangeDetection)&&f(),qE(u)}},onInvoke:(O,V,se,$e,nt,ct,tn)=>{try{return Ib(u),O.invoke(se,$e,nt,ct,tn)}finally{u.shouldCoalesceRunChangeDetection&&!u.callbackScheduled&&!function yT(u){return eO(u,"__scheduler_tick__")}(ct)&&f(),qE(u)}},onHasTask:(O,V,se,$e)=>{O.hasTask(se,$e),V===se&&("microTask"==$e.change?(u._hasPendingMicrotasks=$e.microTask,nC(u),tC(u)):"macroTask"==$e.change&&(u.hasPendingMacrotasks=$e.macroTask))},onHandleError:(O,V,se,$e)=>(O.handleError(se,$e),u.runOutsideAngular(()=>u.onError.emit($e)),!1)})}($e)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(Db)}static assertInAngularZone(){if(!aa.isInAngularZone())throw new d.buA(909,!1)}static assertNotInAngularZone(){if(aa.isInAngularZone())throw new d.buA(909,!1)}run(f,_,O){return this._inner.run(f,_,O)}runTask(f,_,O,V){const se=this._inner,$e=se.scheduleEventTask("NgZoneEvent: "+V,f,Ab,d.lQ1,d.lQ1);try{return se.runTask($e,_,O)}finally{se.cancelTask($e)}}runGuarded(f,_,O){return this._inner.runGuarded(f,_,O)}runOutsideAngular(f){return this._outer.run(f)}}const Ab={};function tC(u){if(0==u._nesting&&!u.hasPendingMicrotasks&&!u.isStable)try{u._nesting++,u.onMicrotaskEmpty.emit(null)}finally{if(u._nesting--,!u.hasPendingMicrotasks)try{u.runOutsideAngular(()=>u.onStable.emit(null))}finally{u.isStable=!0}}}function nC(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&!0===u.callbackScheduled)}function Ib(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function qE(u){u._nesting--,tC(u)}class iC{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Cu;onMicrotaskEmpty=new Cu;onStable=new Cu;onError=new Cu;run(f,_,O){return f.apply(_,O)}runGuarded(f,_,O){return f.apply(_,O)}runOutsideAngular(f){return f()}runTask(f,_,O,V){return f.apply(_,O)}}function eO(u,f){return!(!Array.isArray(u)||1!==u.length)&&!0===u[0]?.data?.[f]}function bT(u="zone.js",f){return"noop"===u?new iC:"zone.js"===u?new aa(f):u}let Mb=(()=>{class u{impl=null;execute(){this.impl?.execute()}static \u0275prov=(0,d.jDH)({token:u,providedIn:"root",factory:()=>new u})}return u})();const tO=[0,1,2,3];let nO=(()=>{class u{ngZone=(0,d.WQX)(aa);scheduler=(0,d.WQX)(d.hk6);errorHandler=(0,d.WQX)(d.zcH,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){(0,d.WQX)(r_,{optional:!0})}execute(){const _=this.sequences.size>0;_&&ke(16),this.executing=!0;for(const O of tO)for(const V of this.sequences)if(!V.erroredOrDestroyed&&V.hooks[O])try{V.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>(0,V.hooks[O])(V.pipelinedValue),V.snapshot))}catch(se){V.erroredOrDestroyed=!0,this.errorHandler?.handleError(se)}this.executing=!1;for(const O of this.sequences)O.afterRun(),O.once&&(this.sequences.delete(O),O.destroy());for(const O of this.deferredRegistrations)this.sequences.add(O);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),_&&ke(17)}register(_){const{view:O}=_;void 0!==O?((O[d.JEi]??=[]).push(_),(0,d.blu)(O),O[d.Wg1]|=8192):this.executing?this.deferredRegistrations.add(_):this.addSequence(_)}addSequence(_){this.sequences.add(_),this.scheduler.notify(7)}unregister(_){this.executing&&this.sequences.has(_)?(_.erroredOrDestroyed=!0,_.pipelinedValue=void 0,_.once=!0):(this.sequences.delete(_),this.deferredRegistrations.delete(_))}maybeTrace(_,O){return O?O.run(Sb.AFTER_NEXT_RENDER,_):_()}static \u0275prov=(0,d.jDH)({token:u,providedIn:"root",factory:()=>new u})}return u})();class iO{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(f,_,O,V,se,$e=null){this.impl=f,this.hooks=_,this.view=O,this.once=V,this.snapshot=$e,this.unregisterOnDestroy=se?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();const f=this.view?.[d.JEi];f&&(this.view[d.JEi]=f.filter(_=>_!==this))}}function oO(u,f){const _=f?.injector??(0,d.WQX)(d.zZn);return gl("NgAfterNextRender"),oC(u,_,f,!0)}function oC(u,f,_,O){const V=f.get(Mb);V.impl??=f.get(nO);const se=f.get(r_,null,{optional:!0}),$e=!0!==_?.manualCleanup?f.get(d.abz):null,nt=f.get(d.r4V,null,{optional:!0}),ct=new iO(V.impl,function ET(u){return u instanceof Function?[void 0,void 0,u,void 0]:[u.earlyRead,u.write,u.mixedReadWrite,u.read]}(u),nt?.view,O,$e,se?.snapshot(null));return V.impl.register(ct),ct}function l_(u){return u+1}function Hc(u,f){return u[l_(f.index)]}function fl(u,f){const _=l_(f.index);return u.data[_]}function cr(u,f){return f===ra.Placeholder?u.placeholderBlockConfig?.[0]??null:f===ra.Loading?u.loadingBlockConfig?.[0]??null:null}function ha(u){return u.loadingBlockConfig?.[1]??null}function sC(u,f){if(!u||0===u.length)return f;const _=new Set(u);for(const O of f)_.add(O);return u.length===_.size?u:Array.from(_)}function c_(u,f,_){const O=_.get(aa);return function oo(u,f,_){let O=cn.get(u);return bi=bi||_(),O||(O=new ki,bi.observe(u),cn.set(u,O),vi++),O.callbacks.add(f),()=>{cn.has(u)&&(O.callbacks.delete(f),0===O.callbacks.size&&(bi?.unobserve(u),cn.delete(u),vi--),0===vi&&(bi?.disconnect(),bi=null))}}(u,()=>O.run(f),()=>O.runOutsideAngular(()=>function Pi(){return new IntersectionObserver(u=>{for(const f of u)f.isIntersecting&&cn.has(f.target)&&cn.get(f.target).listener()})}()))}function jg(u,f,_,O,V,se,$e){const nt=u[d.YEL],ct=nt.get(aa);let tn;tn=function xT(u,f){const _=f?.injector??(0,d.WQX)(d.zZn);return gl("NgAfterRender"),oC(u,_,f,!1)}({read:function fn(){if((0,d.EPY)(u))return void tn.destroy();const Nn=Hc(u,f),ui=Nn[1];if(ui!==Uf.Initial&&ui!==ra.Placeholder)return void tn.destroy();const _i=function cO(u,f,_){return null==_?u:_>=0?(0,d.jRZ)(_,u):u[f.index][d.Y20]??null}(u,f,O);if(!_i||(tn.destroy(),(0,d.EPY)(_i)))return;const ao=function dO(u,f){return(0,d.vaC)(d.Yw1+f,u)}(_i,_),No=V(ao,()=>{ct.run(()=>{u!==_i&&(0,d.DyX)(_i,No),se()})},nt);u!==_i&&(0,d.ik5)(_i,No),s_($e,Nn,No)}},{injector:nt})}function d_(u,f){const _=f.get(pO);return _.add(u),()=>_.remove(u)}let pO=(()=>{class u{executingCallbacks=!1;idleId=null;current=new Set;deferred=new Set;ngZone=(0,d.WQX)(aa);requestIdleCallbackFn=(()=>typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout)().bind(globalThis);cancelIdleCallbackFn=(()=>typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout)().bind(globalThis);add(_){(this.executingCallbacks?this.deferred:this.current).add(_),null===this.idleId&&this.scheduleIdleCallback()}remove(_){const{current:O,deferred:V}=this;O.delete(_),V.delete(_),0===O.size&&0===V.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const _=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const O of this.current)O();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const O of this.deferred)this.current.add(O);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(_))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static \u0275prov=(0,d.jDH)({token:u,providedIn:"root",factory:()=>new u})}return u})();function Gg(u){return(f,_)=>aC(u,f,_)}function aC(u,f,_){const O=_.get(u_),V=_.get(aa);return O.add(u,f,V),()=>O.remove(f)}let u_=(()=>{class u{executingCallbacks=!1;timeoutId=null;invokeTimerAt=null;current=[];deferred=[];add(_,O,V){this.addToQueue(this.executingCallbacks?this.deferred:this.current,Date.now()+_,O),this.scheduleTimer(V)}remove(_){const{current:O,deferred:V}=this;-1===this.removeFromQueue(O,_)&&this.removeFromQueue(V,_),0===O.length&&0===V.length&&this.clearTimeout()}addToQueue(_,O,V){let se=_.length;for(let $e=0;$e<_.length;$e+=2)if(_[$e]>O){se=$e;break}(0,d.llW)(_,se,O,V)}removeFromQueue(_,O){let V=-1;for(let se=0;se<_.length;se+=2)if(_[se+1]===O){V=se;break}return V>-1&&(0,d.gsJ)(_,V,2),V}scheduleTimer(_){const O=()=>{this.clearTimeout(),this.executingCallbacks=!0;const se=[...this.current],$e=Date.now();for(let ct=0;ct<se.length;ct+=2){const fn=se[ct+1];if(!(se[ct]<=$e))break;fn()}let nt=-1;for(let ct=0;ct<this.current.length&&this.current[ct]<=$e;ct+=2)nt=ct+1;if(nt>=0&&(0,d.gsJ)(this.current,0,nt+1),this.executingCallbacks=!1,this.deferred.length>0){for(let ct=0;ct<this.deferred.length;ct+=2)this.addToQueue(this.current,this.deferred[ct],this.deferred[ct+1]);this.deferred.length=0}this.scheduleTimer(_)};if(this.current.length>0){const se=Date.now(),$e=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-$e>16){this.clearTimeout();const nt=Math.max($e-se,16);this.invokeTimerAt=$e,this.timeoutId=_.runOutsideAngular(()=>setTimeout(()=>_.run(O),nt))}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static \u0275prov=(0,d.jDH)({token:u,providedIn:"root",factory:()=>new u})}return u})(),Za=(()=>{class u{cachedInjectors=new Map;getOrCreateInjector(_,O,V,se){if(!this.cachedInjectors.has(_)){const $e=V.length>0?Lf(V,O,se):null;this.cachedInjectors.set(_,$e)}return this.cachedInjectors.get(_)}ngOnDestroy(){try{for(const _ of this.cachedInjectors.values())null!==_&&_.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=(0,d.jDH)({token:u,providedIn:"environment",factory:()=>new u})}return u})();const gO=new d.nKC("");function lC(u,f,_){return u.get(Za).getOrCreateInjector(f,u,_,"")}function op(u,f,_,O=!1){const V=_[d.f7T],se=V[d.eDl];if((0,d.EPY)(V))return;const $e=Hc(V,f),ct=$e[7];if(!(null!==ct&&u<ct)&&kb($e[1],u)&&kb($e[0]??-1,u)){const tn=fl(se,f),Nn=O||null===ha(tn)&&null===cr(tn,ra.Loading)&&!cr(tn,ra.Placeholder)?Pb:cC;try{Nn(u,$e,_,f,V)}catch(ui){Md(V,ui)}}}function Pb(u,f,_,O,V){ke(20);const se=function aO(u,f,_){const V=fl(f[d.eDl],_);switch(u){case ra.Complete:return V.primaryTmplIndex;case ra.Loading:return V.loadingTmplIndex;case ra.Error:return V.errorTmplIndex;case ra.Placeholder:return V.placeholderTmplIndex;default:return null}}(u,V,O);if(null!==se){f[1]=u;const $e=V[d.eDl],ct=(0,d.XRZ)($e,se+d.Yw1),tn=0;let fn;if(bf(_,tn),u===ra.Complete){const ao=fl($e,O),No=ao.providers;No&&No.length>0&&(fn=function TT(u,f,_){if(u instanceof dh){const V=u.injector,$e=lC(u.parentInjector,f,_);return new dh(V,$e)}const O=u.get(d.uvJ);if(O!==u){const V=lC(O,f,_);return new dh(u,V)}return lC(u,f,_)}(V[d.YEL],ao,No))}const{dehydratedView:Nn,dehydratedViewIx:ui}=function fO(u,f){const _=u[d.qFA]?.findIndex(V=>V.data.s===f[1])??-1;return{dehydratedView:_>-1?u[d.qFA][_]:null,dehydratedViewIx:_}}(_,f),_i=fa(V,ct,null,{injector:fn,dehydratedView:Nn});if(zh(_,_i,tn,Pl(ct,Nn)),Wh(_i,2),ui>-1&&_[d.qFA]?.splice(ui,1),(u===ra.Complete||u===ra.Error)&&Array.isArray(f[8])){for(const ao of f[8])ao();f[8]=null}}ke(21)}function zf(u,f,_,O,V){const se=Date.now(),nt=fl(V[d.eDl],O);if(null===f[2]||f[2]<=se){f[2]=null;const ct=ha(nt),tn=null!==f[3];if(u!==ra.Loading||null===ct||tn){u>ra.Loading&&tn&&(f[3](),f[3]=null,f[0]=null),Pb(u,f,_,O,V);const fn=cr(nt,u);null!==fn&&(f[2]=se+fn,Rb(fn,f,O,_,V))}else{f[0]=u;const fn=Rb(ct,f,O,_,V);f[3]=fn}}else f[0]=u}function Rb(u,f,_,O,V){return aC(u,()=>{const $e=f[0];f[2]=null,f[0]=null,null!==$e&&op($e,_,O)},V[d.YEL])}function kb(u,f){return u<f}function Wg(u,f){op(ra.Placeholder,f,u[f.index])}function Kf(u,f,_){u.loadingPromise.then(()=>{u.loadingState===$a.COMPLETE?op(ra.Complete,f,_):u.loadingState===$a.FAILED&&op(ra.Error,f,_)})}let cC=null;function _O(u,f,_,O){return k(()=>{const V=u;null!==f&&(V.hasOwnProperty("decorators")&&void 0!==V.decorators?V.decorators.push(...f):V.decorators=f),null!==_&&(V.ctorParameters=_),null!==O&&(V.propDecorators=V.hasOwnProperty("propDecorators")&&void 0!==V.propDecorators?{...V.propDecorators,...O}:O)})}let Bb=(()=>{class u{log(_){console.log(_)}warn(_){console.warn(_)}static \u0275fac=function(O){return new(O||u)};static \u0275prov=(0,d.jDH)({token:u,factory:u.\u0275fac,providedIn:"platform"})}return u})();const qb=new d.nKC(""),ex=new d.nKC("");let hC,jT=(()=>{class u{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(_,O,V){this._ngZone=_,this.registry=O,(0,d.M6u)()&&(this._destroyRef=(0,d.WQX)(d.abz,{optional:!0})??void 0),hC||(function LO(u){hC=u}(V),V.addToWindow(O)),this._watchAngularEvents(),_.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){const _=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),O=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{aa.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{_.unsubscribe(),O.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let _=this._callbacks.pop();clearTimeout(_.timeoutId),_.doneCb()}});else{let _=this.getPendingTasks();this._callbacks=this._callbacks.filter(O=>!O.updateCb||!O.updateCb(_)||(clearTimeout(O.timeoutId),!1))}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(_=>({source:_.source,creationLocation:_.creationLocation,data:_.data})):[]}addCallback(_,O,V){let se=-1;O&&O>0&&(se=setTimeout(()=>{this._callbacks=this._callbacks.filter($e=>$e.timeoutId!==se),_()},O)),this._callbacks.push({doneCb:_,timeoutId:se,updateCb:V})}whenStable(_,O,V){if(V&&!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(_,O,V),this._runCallbacksIfReady()}registerApplication(_){this.registry.registerApplication(_,this)}unregisterApplication(_){this.registry.unregisterApplication(_)}findProviders(_,O,V){return[]}static \u0275fac=function(O){return new(O||u)((0,d.KVO)(aa),(0,d.KVO)(zp),(0,d.KVO)(ex))};static \u0275prov=(0,d.jDH)({token:u,factory:u.\u0275fac})}return u})(),zp=(()=>{class u{_applications=new Map;registerApplication(_,O){this._applications.set(_,O)}unregisterApplication(_){this._applications.delete(_)}unregisterAllApplications(){this._applications.clear()}getTestability(_){return this._applications.get(_)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(_,O=!0){return hC?.findTestabilityInTree(this,_,O)??null}static \u0275fac=function(O){return new(O||u)};static \u0275prov=(0,d.jDH)({token:u,factory:u.\u0275fac,providedIn:"platform"})}return u})();function tx(u){return!!u&&"function"==typeof u.then}function nx(u){return!!u&&"function"==typeof u.subscribe}const ix=new d.nKC("");function VO(u){return(0,d.EmA)([{provide:ix,multi:!0,useValue:u}])}let ox=(()=>{class u{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((_,O)=>{this.resolve=_,this.reject=O});appInits=(0,d.WQX)(ix,{optional:!0})??[];injector=(0,d.WQX)(d.zZn);constructor(){}runInitializers(){if(this.initialized)return;const _=[];for(const V of this.appInits){const se=(0,d.N4e)(this.injector,V);if(tx(se))_.push(se);else if(nx(se)){const $e=new Promise((nt,ct)=>{se.subscribe({complete:nt,error:ct})});_.push($e)}}const O=()=>{this.done=!0,this.resolve()};Promise.all(_).then(()=>{O()}).catch(V=>{this.reject(V)}),0===_.length&&O(),this.initialized=!0}static \u0275fac=function(O){return new(O||u)};static \u0275prov=(0,d.jDH)({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();const sx=new d.nKC("");function HO(){}function $O(){(0,m.KO)(()=>{throw new d.buA(600,"")})}function rx(u,f){return Array.isArray(f)?f.reduce(rx,u):{...u,...f}}let f_=(()=>{class u{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=(0,d.WQX)(d.ZTf);afterRenderManager=(0,d.WQX)(Mb);zonelessEnabled=(0,d.WQX)(d.Evm);rootEffectScheduler=(0,d.WQX)(d.VML);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new T.B;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=(0,d.WQX)(d.rev);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe((0,e.T)(_=>!_))}constructor(){(0,d.WQX)(r_,{optional:!0})}whenStable(){let _;return new Promise(O=>{_=this.isStable.subscribe({next:V=>{V&&O()}})}).finally(()=>{_.unsubscribe()})}_injector=(0,d.WQX)(d.uvJ);_rendererFactory=null;get injector(){return this._injector}bootstrap(_,O){return this.bootstrapImpl(_,O)}bootstrapImpl(_,O,V=d.zZn.NULL){return this._injector.get(aa).run(()=>{ke(10);const $e=_ instanceof Vm;if(!this._injector.get(ox).done)throw new d.buA(405,"");let ct;ct=$e?_:this._injector.get(Hm).resolveComponentFactory(_),this.componentTypes.push(ct.componentType);const tn=function UO(u){return u.isBoundToModule}(ct)?void 0:this._injector.get(Ng),Nn=ct.create(V,[],O||ct.selector,tn),ui=Nn.location.nativeElement,_i=Nn.injector.get(qb,null);return _i?.registerApplication(ui),Nn.onDestroy(()=>{this.detachView(Nn.hostView),m_(this.components,Nn),_i?.unregisterApplication(ui)}),this._loadComponent(Nn),ke(11,Nn),Nn})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ke(12),null!==this.tracingSnapshot?this.tracingSnapshot.run(Sb.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new d.buA(101,!1);const _=(0,m.Ht)(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,(0,m.Ht)(_),this.afterTick.next(),ke(13)}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Wy,null,{optional:!0}));let _=0;for(;0!==this.dirtyFlags&&_++<10;)ke(14),this.synchronizeOnce(),ke(15)}synchronizeOnce(){16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let _=!1;if(7&this.dirtyFlags){const O=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:V}of this.allViews)(O||(0,d.dMS)(V))&&(vn(V,O&&!this.zonelessEnabled?0:1),_=!0);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}_||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:_})=>(0,d.dMS)(_))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(_){const O=_;this._views.push(O),O.attachToAppRef(this)}detachView(_){const O=_;m_(this._views,O),O.detachFromAppRef()}_loadComponent(_){this.attachView(_.hostView);try{this.tick()}catch(V){this.internalErrorHandler(V)}this.components.push(_),this._injector.get(sx,[]).forEach(V=>V(_))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(_=>_()),this._views.slice().forEach(_=>_.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(_){return this._destroyListeners.push(_),()=>m_(this._destroyListeners,_)}destroy(){if(this._destroyed)throw new d.buA(406,!1);const _=this._injector;_.destroy&&!_.destroyed&&_.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(O){return new(O||u)};static \u0275prov=(0,d.jDH)({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();function m_(u,f){const _=u.indexOf(f);_>-1&&u.splice(_,1)}function WO(u){const f=(0,d.OAn)(),_=(0,d.Mx4)();if(Wg(f,_),!fC(0,f))return;const O=f[d.YEL];s_(0,Hc(f,_),u(()=>sd(0,f,_),O))}function zO(u,f){const _=(0,d.OAn)(),O=_[d.YEL],V=(0,d.Mx4)(),$e=fl(_[d.eDl],V);$e.loadingState===$a.NOT_STARTED&&s_(1,Hc(_,V),u(()=>Qf($e,_,V),O))}function pC(u,f,_){const O=f[d.YEL],V=Hc(f,_),se=V[6];s_(2,V,u(()=>Kp(O,se),O))}function Qf(u,f,_){gC(u,f,_)}function gC(u,f,_){const O=f[d.YEL],V=f[d.eDl];if(u.loadingState!==$a.NOT_STARTED)return u.loadingPromise??Promise.resolve();const se=Hc(f,_),$e=function lO(u,f){return(0,d.XRZ)(u,f.primaryTmplIndex+d.Yw1)}(V,u);u.loadingState=$a.IN_PROGRESS,eC(1,se);let nt=u.dependencyResolverFn;const ct=O.get(d.u5s).add();return nt?(u.loadingPromise=Promise.allSettled(nt()).then(tn=>{let fn=!1;const Nn=[],ui=[];for(const _i of tn){if("fulfilled"!==_i.status){fn=!0;break}{const ao=_i.value,No=(0,d.xUg)(ao)||(0,d.HaV)(ao);if(No)Nn.push(No);else{const jo=(0,d.oyA)(ao);jo&&ui.push(jo)}}}if(fn){if(u.loadingState=$a.FAILED,null===u.errorTmplIndex){const ao=new d.buA(-750,!1);Md(f,ao)}}else{u.loadingState=$a.COMPLETE;const _i=$e.tView;if(Nn.length>0){_i.directiveRegistry=sC(_i.directiveRegistry,Nn);const ao=Nn.map(jo=>jo.type),No=(0,d.jXY)(!1,...ao);u.providers=No}ui.length>0&&(_i.pipeRegistry=sC(_i.pipeRegistry,ui))}}),u.loadingPromise.finally(()=>{u.loadingPromise=null,ct()})):(u.loadingPromise=Promise.resolve().then(()=>{u.loadingPromise=null,u.loadingState=$a.COMPLETE,ct()}),u.loadingPromise)}function fC(u,f){return f[d.YEL].get(gO,null,{optional:!0})?.behavior!==zE.Manual}function sd(u,f,_){const O=f[d.eDl],V=f[_.index];if(!fC(0,f))return;const se=Hc(f,_),$e=fl(O,_);switch(KE(se),$e.loadingState){case $a.NOT_STARTED:op(ra.Loading,_,V),gC($e,f,_),$e.loadingState===$a.IN_PROGRESS&&Kf($e,_,V);break;case $a.IN_PROGRESS:op(ra.Loading,_,V),Kf($e,_,V);break;case $a.COMPLETE:op(ra.Complete,_,V);break;case $a.FAILED:op(ra.Error,_,V)}}function Kp(u,f,_){return ax.apply(this,arguments)}function ax(){return(ax=(0,S.A)(function*(u,f,_){const O=u.get(Os);if(O.hydrating.has(f))return;const{parentBlockPromise:se,hydrationQueue:$e}=function At(u,f){const _=f.get(Os),V=f.get(Js).get("__nghDeferData__",{});let se=!1,$e=u,nt=null;const ct=[];for(;!se&&$e;){se=_.has($e);const tn=_.hydrating.get($e);if(null===nt&&null!=tn){nt=tn.promise;break}ct.unshift($e),$e=V[$e].p}return{parentBlockPromise:nt,hydrationQueue:ct}}(f,u);if(0===$e.length)return;null!==se&&$e.shift(),function KT(u,f){for(let _ of f)u.hydrating.set(_,Promise.withResolvers())}(O,$e),null!==se&&(yield se);const nt=$e[0];O.has(nt)?yield mC(u,$e,_):O.awaitParentBlock(nt,(0,S.A)(function*(){return yield mC(u,$e,_)}))})).apply(this,arguments)}function mC(u,f,_){return _C.apply(this,arguments)}function _C(){return(_C=(0,S.A)(function*(u,f,_){const O=u.get(Os),V=O.hydrating,se=u.get(d.rev),$e=se.add();for(let ct=0;ct<f.length;ct++){const tn=f[ct],fn=O.get(tn);if(null==fn){zT(ct,f,O),KO(f.slice(ct),O);break}if(yield YT(fn),yield XT(u),WT(fn)){vv(fn),KO(f.slice(ct),O);break}V.get(tn).resolve()}const nt=f[f.length-1];yield V.get(nt)?.promise,se.remove($e),_&&_(f),function Hy(u,f,_,O){null!==u&&(_.cleanup(f),Lp(u.lContainer),function Lm(u){const f=u._views;for(const _ of f){const O=ic(_);null!==O&&null!==O[d.jgP]&&((0,d.q$2)(O)?Mg(O):Lp(O))}}(O))}(O.get(nt),f,O,u.get(f_))})).apply(this,arguments)}function WT(u){return Hc(u.lView,u.tNode)[1]===ra.Error}function zT(u,f,_){const O=u-1,V=O>-1?_.get(f[O]):null;V&&Lp(V.lContainer)}function KO(u,f){const _=f.hydrating;for(const O in u)_.get(O)?.reject();f.cleanup(u)}function XT(u){return new Promise(f=>oO(f,{injector:u}))}function YT(u){return lx.apply(this,arguments)}function lx(){return(lx=(0,S.A)(function*(u){const{tNode:f,lView:_}=u,O=Hc(_,f);return new Promise(V=>{(function QT(u,f){Array.isArray(u[8])||(u[8]=[]),u[8].push(f)})(O,V),sd(0,_,f)})})).apply(this,arguments)}function Br(u,f,_){return 0===u?XO(f,_):2!==u||!XO(f,_)}function XO(u,f){const _=u[d.YEL],O=fl(u[d.eDl],f),V=function Yd(u){return u.get(Wt,!1,{optional:!0})}(_),se=function ZT(u){return null!=u&&!(1&~u)}(O.flags),nt=null!==Hc(u,f)[6];return!(se&&nt&&V)}function Xp(u,f){const _=fl(u,f);return _.hydrateTriggers??=new Map}function EC(u,f,_,O){const V=(0,d.OAn)();return ya(V,(0,d.xbp)(),f)&&((0,d.klJ)(),function Ha(u,f,_,O,V,se){const $e=(0,d.d31)(u,f);il(f[d.GpT],$e,se,u.value,_,O,V)}((0,d.CpD)(),V,u,f,_,O)),EC}const px=new d.nKC("",{providedIn:"root",factory:()=>!1}),hw=new d.nKC("",{providedIn:"root",factory:()=>gx}),gx=4e3;class fx{outElements=new WeakMap;remove(f){this.outElements.delete(f)}trackClasses(f,_){const O=OC(_);if(O)for(let V of O)f.classes?.add(V)}trackResolver(f,_){f.classFns?f.classFns.push(_):f.classFns=[_]}addCallback(f,_,O){const V=this.outElements.get(f)??{classes:null,animateFn:()=>{},isEventBinding:!0};V.animateFn=O(f,_),this.outElements.set(f,V)}add(f,_,O){const V=this.outElements.get(f)??{classes:new Set,animateFn:()=>{},isEventBinding:!1};"function"==typeof _?this.trackResolver(V,_):this.trackClasses(V,_),V.animateFn=O(f,V.classes,V.classFns),this.outElements.set(f,V)}has(f){return this.outElements.has(f)}animate(f,_,O){if(!this.outElements.has(f))return _();const V=this.outElements.get(f);let se,$e=!1;const nt=()=>{$e||($e=!0,clearTimeout(se),this.remove(f),_())};V.isEventBinding&&(se=setTimeout(nt,O)),V.animateFn(nt)}}function OC(u){const f="function"==typeof u?u():u;let _=Array.isArray(f)?f:null;return"string"==typeof f&&(_=f.trim().split(/\s+/).filter(O=>O)),_}function Xg(u){const f=u.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(u)*f}function Zf(u,f){return u.getPropertyValue(f).split(",").map(O=>O.trim())}function mx(u,f){return void 0!==u&&u.duration>f.duration}function wC(u){return(null!=u.animationName||null!=u.propertyName)&&u.duration>0}function SC(u,f,_){if(!_)return;const O=u.getAnimations();return 0===O.length?function _x(u,f){const _=getComputedStyle(u),O=function v_(u){const f=Zf(u,"animation-name"),_=Zf(u,"animation-delay"),O=Zf(u,"animation-duration"),V={animationName:"",propertyName:void 0,duration:0};for(let se=0;se<f.length;se++){const $e=Xg(_[se])+Xg(O[se]);$e>V.duration&&(V.animationName=f[se],V.duration=$e)}return V}(_),V=function pw(u){const f=Zf(u,"transition-property"),_=Zf(u,"transition-duration"),O=Zf(u,"transition-delay"),V={propertyName:"",duration:0,animationName:void 0};for(let se=0;se<f.length;se++){const $e=Xg(O[se])+Xg(_[se]);$e>V.duration&&(V.propertyName=f[se],V.duration=$e)}return V}(_),se=O.duration>V.duration?O:V;mx(f.get(u),se)||wC(se)&&f.set(u,se)}(u,f):function C_(u,f,_){let O={animationName:void 0,propertyName:void 0,duration:0};for(const V of _){const se=V.effect?.getTiming(),$e="number"==typeof se?.duration?se.duration:0;let ct,tn,nt=(se?.delay??0)+$e;V.animationName?tn=V.animationName:ct=V.transitionProperty,nt>=O.duration&&(O={animationName:tn,propertyName:ct,duration:nt})}mx(f.get(u),O)||wC(O)&&f.set(u,O)}(u,f,O)}const sp=typeof document<"u"&&"function"==typeof document?.documentElement?.getAnimations;function y_(u){return u[d.YEL].get(px,!1)}function vx(u,f,_,O){8&f[d.Wg1]&&(0,d.B22)(_,f,O,V=>{u.elements.remove(V)})}function b_(u){const f=xu.get(u);if(f){for(const _ of f.cleanupFns)_();xu.delete(u)}fh.delete(u)}const DC=()=>{},xu=new WeakMap,fh=new WeakMap,Jf=new WeakMap;function x_(u,f){const _=Jf.get(u);if(_&&_.length>0){const O=_.findIndex(V=>V===f);O>-1&&_.splice(O,1)}0===_?.length&&Jf.delete(u)}function TC(u,f){const _=Jf.get(u)?.shift(),O=f[d.rQE];if(O){const se=Lt(u.index,O)?.previousSibling;_&&se&&_===se&&_.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))}}function AC(u,f){Jf.has(u)?Jf.get(u)?.push(f):Jf.set(u,[f])}function bx(u,f){const _=fh.get(f);return f===u.target&&void 0!==_&&(void 0!==_.animationName&&u.animationName===_.animationName||void 0!==_.propertyName&&u.propertyName===_.propertyName)}class rd{destroy(f){}updateValue(f,_){}swap(f,_){const O=Math.min(f,_),V=Math.max(f,_),se=this.detach(V);if(V-O>1){const $e=this.detach(O);this.attach(O,se),this.attach(V,$e)}else this.attach(O,se)}move(f,_){this.attach(_,this.detach(f))}}function em(u,f,_,O,V){return u===_&&Object.is(f,O)?1:Object.is(V(u,f),V(_,O))?-1:0}function IC(u,f,_,O){return!(void 0===f||!f.has(O)||(u.attach(_,f.get(O)),f.delete(O),0))}function Ex(u,f,_,O,V){if(IC(u,f,O,_(O,V)))u.updateValue(O,V);else{const se=u.create(O,V);u.attach(O,se)}}function Ox(u,f,_,O){const V=new Set;for(let se=f;se<=_;se++)V.add(O(se,u.at(se)));return V}class yw{kvMap=new Map;_vMap=void 0;has(f){return this.kvMap.has(f)}delete(f){if(!this.has(f))return!1;const _=this.kvMap.get(f);return void 0!==this._vMap&&this._vMap.has(_)?(this.kvMap.set(f,this._vMap.get(_)),this._vMap.delete(_)):this.kvMap.delete(f),!0}get(f){return this.kvMap.get(f)}set(f,_){if(this.kvMap.has(f)){let O=this.kvMap.get(f);void 0===this._vMap&&(this._vMap=new Map);const V=this._vMap;for(;V.has(O);)O=V.get(O);V.set(O,_)}else this.kvMap.set(f,_)}forEach(f){for(let[_,O]of this.kvMap)if(f(O,_),void 0!==this._vMap){const V=this._vMap;for(;V.has(O);)O=V.get(O),f(O,_)}}}function bw(u,f,_,O,V,se,$e,nt){gl("NgControlFlow");const ct=(0,d.OAn)(),tn=(0,d.klJ)();return Gp(ct,tn,u,f,_,O,V,(0,d.db4)(tn.consts,se),256,$e,nt),wx}function wx(u,f,_,O,V,se,$e,nt){gl("NgControlFlow");const ct=(0,d.OAn)(),tn=(0,d.klJ)();return Gp(ct,tn,u,f,_,O,V,(0,d.db4)(tn.consts,se),512,$e,nt),wx}function xw(u,f){gl("NgControlFlow");const _=(0,d.OAn)(),O=(0,d.xbp)(),V=_[O]!==br?_[O]:-1,se=-1!==V?PC(_,d.Yw1+V):void 0;if(ya(_,O,u)){const nt=(0,m.Ht)(null);try{if(void 0!==se&&bf(se,0),-1!==u){const ct=d.Yw1+u,tn=PC(_,ct),fn=Dx(_[d.eDl],ct),Nn=fE(tn,fn,_);zh(tn,fa(_,fn,f,{dehydratedView:Nn}),0,Pl(fn,Nn))}}finally{(0,m.Ht)(nt)}}else if(void 0!==se){const nt=Sg(se,0);void 0!==nt&&(nt[d.SKP]=f)}}class Ew{lContainer;$implicit;$index;constructor(f,_,O){this.lContainer=f,this.$implicit=_,this.$index=O}get $count(){return this.lContainer.length-d.Y20}}function tm(u,f){return f}class Ow{hasEmptyBlock;trackByFn;liveCollection;constructor(f,_,O){this.hasEmptyBlock=f,this.trackByFn=_,this.liveCollection=O}}function Sx(u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui){gl("NgControlFlow");const _i=(0,d.OAn)(),ao=(0,d.klJ)(),No=void 0!==ct,jo=(0,d.OAn)(),us=nt?$e.bind(jo[d.b5C][d.SKP]):$e,zo=new Ow(No,us);jo[d.Yw1+u]=zo,Gp(_i,ao,u+1,f,_,O,V,(0,d.db4)(ao.consts,se),256),No&&Gp(_i,ao,u+2,ct,tn,fn,Nn,(0,d.db4)(ao.consts,ui),512)}class sA extends rd{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(f,_,O){super(),this.lContainer=f,this.hostLView=_,this.templateTNode=O}get length(){return this.lContainer.length-d.Y20}at(f){return this.getLView(f)[d.SKP].$implicit}attach(f,_){const O=_[d.tcA];this.needsIndexUpdate||=f!==this.length,zh(this.lContainer,_,f,Pl(this.templateTNode,O))}detach(f){return this.needsIndexUpdate||=f!==this.length-1,function rA(u,f){return Bp(u,f)}(this.lContainer,f)}create(f,_){const O=If(this.lContainer,this.templateTNode.tView.ssrId),V=fa(this.hostLView,this.templateTNode,new Ew(this.lContainer,_,f),{dehydratedView:O});return this.operationsCounter?.recordCreate(),V}destroy(f){oh(f[d.eDl],f),this.operationsCounter?.recordDestroy()}updateValue(f,_){this.getLView(f)[d.SKP].$implicit=_}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let f=0;f<this.length;f++)this.getLView(f)[d.SKP].$index=f}getLView(f){return function aA(u,f){return Sg(u,f)}(this.lContainer,f)}}function Sw(u){const f=(0,m.Ht)(null),_=(0,d._px)();try{const O=(0,d.OAn)(),V=O[d.eDl],se=O[_],$e=_+1,nt=PC(O,$e);if(void 0===se.liveCollection){const tn=Dx(V,$e);se.liveCollection=new sA(nt,O,tn)}else se.liveCollection.reset();const ct=se.liveCollection;if(function Cw(u,f,_){let O,V,se=0,$e=u.length-1;if(Array.isArray(f)){let ct=f.length-1;for(;se<=$e&&se<=ct;){const tn=u.at(se),fn=f[se],Nn=em(se,tn,se,fn,_);if(0!==Nn){Nn<0&&u.updateValue(se,fn),se++;continue}const ui=u.at($e),_i=f[ct],ao=em($e,ui,ct,_i,_);if(0!==ao){ao<0&&u.updateValue($e,_i),$e--,ct--;continue}const No=_(se,tn),jo=_($e,ui),us=_(se,fn);if(Object.is(us,jo)){const zo=_(ct,_i);Object.is(zo,No)?(u.swap(se,$e),u.updateValue($e,_i),ct--,$e--):u.move($e,se),u.updateValue(se,fn),se++;continue}if(O??=new yw,V??=Ox(u,se,$e,_),IC(u,O,se,us))u.updateValue(se,fn),se++,$e++;else if(V.has(us))O.set(No,u.detach(se)),$e--;else{const zo=u.create(se,f[se]);u.attach(se,zo),se++,$e++}}for(;se<=ct;)Ex(u,O,_,se,f[se]),se++}else if(null!=f){const ct=f[Symbol.iterator]();let tn=ct.next();for(;!tn.done&&se<=$e;){const fn=u.at(se),Nn=tn.value,ui=em(se,fn,se,Nn,_);if(0!==ui)ui<0&&u.updateValue(se,Nn),se++,tn=ct.next();else{O??=new yw,V??=Ox(u,se,$e,_);const _i=_(se,Nn);if(IC(u,O,se,_i))u.updateValue(se,Nn),se++,$e++,tn=ct.next();else if(V.has(_i)){const ao=_(se,fn);O.set(ao,u.detach(se)),$e--}else u.attach(se,u.create(se,Nn)),se++,$e++,tn=ct.next()}}for(;!tn.done;)Ex(u,O,_,u.length,tn.value),tn=ct.next()}for(;se<=$e;)u.destroy(u.detach($e--));O?.forEach(ct=>{u.destroy(ct)})}(ct,u,se.trackByFn),ct.updateIndexes(),se.hasEmptyBlock){const tn=(0,d.xbp)(),fn=0===ct.length;if(ya(O,tn,fn)){const Nn=_+2,ui=PC(O,Nn);if(fn){const _i=Dx(V,Nn),ao=fE(ui,_i,O);zh(ui,fa(O,_i,void 0,{dehydratedView:ao}),0,Pl(_i,ao))}else V.firstUpdatePass&&Af(ui),bf(ui,0)}}}finally{(0,m.Ht)(f)}}function PC(u,f){return u[f]}function Dx(u,f){return(0,d.XRZ)(u,f)}function Tx(u,f,_){const O=(0,d.OAn)();return ya(O,(0,d.xbp)(),f)&&((0,d.klJ)(),Wr((0,d.CpD)(),O,u,f,O[d.GpT],_)),Tx}function RC(u,f,_,O,V){Yl(f,u,_,V?"class":"style",O)}function kC(u,f,_,O){const V=(0,d.OAn)(),se=V[d.eDl],$e=u+d.Yw1,nt=se.firstCreatePass?Xy($e,V,2,f,ua,(0,d.ckz)(),_,O):se.data[$e];if(Xl(nt,V,u,f,T_),(0,d.yoD)(nt)){const ct=V[d.eDl];Zo(ct,V,nt),wl(ct,nt,V)}return null!=O&&qs(V,nt),kC}function BC(){const u=(0,d.klJ)(),_=Ml((0,d.Mx4)());return u.firstCreatePass&&Yy(u,_),(0,d.UhH)(_)&&(0,d.krE)(),(0,d.N79)(),null!=_.classesWithoutHost&&function Ve(u){return!!(8&u.flags)}(_)&&RC(u,_,(0,d.OAn)(),_.classesWithoutHost,!0),null!=_.stylesWithoutHost&&function tt(u){return!!(16&u.flags)}(_)&&RC(u,_,(0,d.OAn)(),_.stylesWithoutHost,!1),BC}function D_(u,f,_,O){return kC(u,f,_,O),BC(),D_}function nm(u,f,_,O){const V=(0,d.OAn)(),se=V[d.eDl],$e=u+d.Yw1,nt=se.firstCreatePass?CE($e,se,2,f,_,O):se.data[$e];return Xl(nt,V,u,f,T_),null!=O&&qs(V,nt),nm}function Yg(){const f=Ml((0,d.Mx4)());return(0,d.UhH)(f)&&(0,d.krE)(),(0,d.N79)(),Yg}function im(u,f,_,O){return nm(u,f,_,O),Yg(),im}let T_=(u,f,_,O,V)=>((0,d.m7n)(!0),wd(f[d.GpT],O,(0,d.UaU)()));function om(u,f,_){const O=(0,d.OAn)(),V=O[d.eDl],se=u+d.Yw1,$e=V.firstCreatePass?Xy(se,O,8,"ng-container",ua,(0,d.ckz)(),f,_):V.data[se];if(Xl($e,O,u,"ng-container",NC),(0,d.yoD)($e)){const nt=O[d.eDl];Zo(nt,O,$e),wl(nt,$e,O)}return null!=_&&qs(O,$e),om}function Qg(){const u=(0,d.klJ)(),_=Ml((0,d.Mx4)());return u.firstCreatePass&&Yy(u,_),Qg}function A_(u,f,_){return om(u,f,_),Qg(),A_}function FC(u,f,_){const O=(0,d.OAn)(),V=O[d.eDl],se=u+d.Yw1,$e=V.firstCreatePass?CE(se,V,8,"ng-container",f,_):V.data[se];return Xl($e,O,u,"ng-container",NC),null!=_&&qs(O,$e),FC}function Ix(){return Ml((0,d.Mx4)()),Qg}let NC=(u,f,_,O,V)=>((0,d.m7n)(!0),Nh(f[d.GpT],""));function Px(){return(0,d.OAn)()}const Zg=void 0;var dA=["en",[["a","p"],["AM","PM"],Zg],[["AM","PM"],Zg,Zg],[["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"]],Zg,[["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"]],Zg,[["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}",Zg,"{1} 'at' {0}",Zg],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function cA(u){const f=Math.floor(Math.abs(u)),_=u.toString().replace(/^[^.]*\.?/,"").length;return 1===f&&0===_?1:5}];let sm={};function Rx(u){const f=function Fx(u){return u.toLowerCase().replace(/_/g,"-")}(u);let _=Bx(f);if(_)return _;const O=f.split("-")[0];if(_=Bx(O),_)return _;if("en"===O)return dA;throw new d.buA(701,!1)}function kx(u){return Rx(u)[vc.PluralCase]}function Bx(u){return u in sm||(sm[u]=d.laP.ng&&d.laP.ng.common&&d.laP.ng.common.locales&&d.laP.ng.common.locales[u]),sm[u]}var vc=function(u){return u[u.LocaleId=0]="LocaleId",u[u.DayPeriodsFormat=1]="DayPeriodsFormat",u[u.DayPeriodsStandalone=2]="DayPeriodsStandalone",u[u.DaysFormat=3]="DaysFormat",u[u.DaysStandalone=4]="DaysStandalone",u[u.MonthsFormat=5]="MonthsFormat",u[u.MonthsStandalone=6]="MonthsStandalone",u[u.Eras=7]="Eras",u[u.FirstDayOfWeek=8]="FirstDayOfWeek",u[u.WeekendRange=9]="WeekendRange",u[u.DateFormat=10]="DateFormat",u[u.TimeFormat=11]="TimeFormat",u[u.DateTimeFormat=12]="DateTimeFormat",u[u.NumberSymbols=13]="NumberSymbols",u[u.NumberFormats=14]="NumberFormats",u[u.CurrencyCode=15]="CurrencyCode",u[u.CurrencySymbol=16]="CurrencySymbol",u[u.CurrencyName=17]="CurrencyName",u[u.Currencies=18]="Currencies",u[u.Directionality=19]="Directionality",u[u.PluralCase=20]="PluralCase",u[u.ExtraData=21]="ExtraData",u}(vc||{});const LC=["zero","one","two","few","many"],VC="en-US",I_={marker:"element"},HC={marker:"ICU"};var Cc=function(u){return u[u.SHIFT=2]="SHIFT",u[u.APPEND_EAGERLY=1]="APPEND_EAGERLY",u[u.COMMENT=2]="COMMENT",u}(Cc||{});let Pw=VC;function hA(u){"string"==typeof u&&(Pw=u.toLowerCase().replace(/_/g,"-"))}let M_=0,Qp=0;let P_=(u,f,_,O)=>((0,d.m7n)(!0),function Lx(u,f,_){const O=u[d.GpT];switch(_){case Node.COMMENT_NODE:return Nh(O,f);case Node.TEXT_NODE:return eh(O,f);case Node.ELEMENT_NODE:return wd(O,f,null)}}(u,_,O));function Vx(u,f,_,O){const V=_[d.GpT];let $e,se=null;for(let nt=0;nt<f.length;nt++){const ct=f[nt];if("string"==typeof ct){const tn=f[++nt];null===_[tn]&&(_[tn]=P_(_,0,ct,Node.TEXT_NODE))}else if("number"==typeof ct)switch(1&ct){case 0:const tn=km(ct);let fn,Nn;if(null===se&&(se=tn,$e=V.parentNode(O)),tn===se?(fn=O,Nn=$e):(fn=null,Nn=(0,d.IvY)(_[tn])),null!==Nn){const No=Py(ct);Bc(V,Nn,_[No],fn,!1);const us=Tg(u,No);if(null!==us&&"object"==typeof us){const zo=pv(us,_);null!==zo&&Vx(u,us.create[zo],_,_[us.anchorIdx])}}break;case 1:const _i=f[++nt],ao=f[++nt];il(V,(0,d.vaC)(ct>>>1,_),null,null,_i,ao,null)}else switch(ct){case HC:const tn=f[++nt],fn=f[++nt];null===_[fn]&&fi(_[fn]=P_(_,0,tn,Node.COMMENT_NODE),_);break;case I_:const Nn=f[++nt],ui=f[++nt];null===_[ui]&&fi(_[ui]=P_(_,0,Nn,Node.ELEMENT_NODE),_)}}}function Bw(u,f,_,O,V){for(let se=0;se<_.length;se++){const $e=_[se],nt=_[++se];if($e&V){let ct="";for(let tn=se+1;tn<=se+nt;tn++){const fn=_[tn];if("string"==typeof fn)ct+=fn;else if("number"==typeof fn)if(fn<0)ct+=(0,d.eFE)(f[O-fn]);else{const Nn=fn>>>2;switch(3&fn){case 1:const ui=_[++tn],_i=_[++tn],ao=u.data[Nn];"string"==typeof ao?il(f[d.GpT],f[Nn],null,ao,ui,ct,_i):Wr(ao,f,ui,ct,f[d.GpT],_i);break;case 0:const No=f[Nn];null!==No&&Ip(f[d.GpT],No,ct);break;case 2:fA(u,Tg(u,Nn),f,ct);break;case 3:Fw(u,Tg(u,Nn),O,f)}}}}else{const ct=_[se+1];if(ct>0&&!(3&~ct)){const fn=Tg(u,ct>>>2);f[fn.currentCaseLViewIndex]<0&&Fw(u,fn,O,f)}}se+=nt}}function Fw(u,f,_,O){let V=O[f.currentCaseLViewIndex];if(null!==V){let se=M_;V<0&&(V=O[f.currentCaseLViewIndex]=~V,se=-1),Bw(u,O,f.update[V],_,se)}}function fA(u,f,_,O){const V=function mA(u,f){let _=u.cases.indexOf(f);if(-1===_)switch(u.type){case 1:{const O=function Nx(u,f){const _=kx(f)(parseInt(u,10)),O=LC[_];return void 0!==O?O:"other"}(f,function Rw(){return Pw}());_=u.cases.indexOf(O),-1===_&&"other"!==O&&(_=u.cases.indexOf("other"));break}case 0:_=u.cases.indexOf("other")}return-1===_?null:_}(f,O);if(pv(f,_)!==V&&(Nw(u,f,_),_[f.currentCaseLViewIndex]=null===V?null:~V,null!==V)){const $e=_[f.anchorIdx];$e&&Vx(u,f.create[V],_,$e)}}function Nw(u,f,_){let O=pv(f,_);if(null!==O){const V=f.remove[O];for(let se=0;se<V.length;se++){const $e=V[se];if($e>0){const nt=(0,d.vaC)($e,_);null!==nt&&Fc(_[d.GpT],nt)}else Nw(u,Tg(u,~$e),_)}}}const UC=/\ufffd(\d+):?\d*\ufffd/gi,_A=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,vA=/\ufffd(\d+)\ufffd/,$x=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ux=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Lw=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Vw=/\uE500/g;function B_(u,f,_,O,V,se,$e){const nt=nh(u,O,1,null);let ct=nt<<Cc.SHIFT,tn=(0,d.Ab)();f===tn&&(tn=null),null===tn&&(ct|=Cc.APPEND_EAGERLY),$e&&(ct|=Cc.COMMENT,function Hh(u){void 0===Vh&&(Vh=u())}(SD)),V.push(ct,null===se?"":se);const fn=Rm(u,nt,$e?32:1,null===se?"":se,null);Iy(_,fn);const Nn=fn.index;return(0,d.iMd)(fn,!1),null!==tn&&f!==tn&&function My(u,f){let _=u.insertBeforeIndex;null===_?(fu(eE,Dg),_=u.insertBeforeIndex=[null,f]):((0,d.Xln)(Array.isArray(_),!0,"Expecting array here"),_.push(f))}(tn,Nn),fn}function $w(u,f,_,O,V,se,$e,nt){const ct=nt.match(UC),fn=B_(f,_,O,$e,V,ct?null:nt,!1).index;ct&&F_(se,nt,fn,null,0,null),u.push({kind:0,index:fn})}function F_(u,f,_,O,V,se){const $e=u.length,nt=$e+1;u.push(null,null);const ct=$e+2,tn=f.split(UC);let fn=0;for(let Nn=0;Nn<tn.length;Nn++){const ui=tn[Nn];if(1&Nn){const _i=V+parseInt(ui,10);u.push(-1-_i),fn|=Uw(_i)}else""!==ui&&u.push(ui)}return u.push(_<<2|(O?1:0)),O&&u.push(O,se),u[$e]=fn,u[nt]=u.length-ct,fn}function bA(u){let f=0;for(let _=0;_<u.length;_++){const O=u[_];"number"==typeof O&&O<0&&f++}return f}function Uw(u){return 1<<Math.min(u,31)}function jw(u){let f,se,_="",O=0,V=!1;for(;null!==(f=Ux.exec(u));)V?f[0]===`\ufffd/*${se}\ufffd`&&(O=f.index,V=!1):(_+=u.substring(O,f.index+f[0].length),se=f[1],V=!0);return _+=u.slice(O),_}function Gw(u,f,_,O,V,se,$e){let nt=0;const ct={type:se.type,currentCaseLViewIndex:nh(f,_,1,null),anchorIdx:$e,cases:[],create:[],remove:[],update:[]};(function wA(u,f,_){u.push(Uw(f.mainBinding),2,-1-f.mainBinding,_<<2|2)})(O,se,$e),function oE(u,f,_){const O=u.data[f];null===O?u.data[f]=_:O.value=_}(f,$e,ct);const tn=se.values,fn=[];for(let Nn=0;Nn<tn.length;Nn++){const ui=tn[Nn],_i=[];for(let No=0;No<ui.length;No++){const jo=ui[No];if("string"!=typeof jo){const us=_i.push(jo)-1;ui[No]=`\x3c!--\ufffd${us}\ufffd--\x3e`}}const ao=[];fn.push(ao),nt=OA(ao,f,ct,_,O,V,se.cases[Nn],ui.join(""),_i)|nt}nt&&function Wx(u,f,_){u.push(f,1,_<<2|3)}(O,nt,$e),u.push({kind:3,index:$e,cases:fn,currentCaseLViewIndex:ct.currentCaseLViewIndex})}function EA(u){const f=[],_=[];let O=1,V=0;const se=jx(u=u.replace($x,function($e,nt,ct){return O="select"===ct?0:1,V=parseInt(nt.slice(1),10),""}));for(let $e=0;$e<se.length;){let nt=se[$e++].trim();1===O&&(nt=nt.replace(/\s*(?:=)?(\w+)\s*/,"$1")),nt.length&&f.push(nt);const ct=jx(se[$e++]);f.length>_.length&&_.push(ct)}return{type:O,mainBinding:V,cases:f,values:_}}function jx(u){if(!u)return[];let f=0;const _=[],O=[],V=/[{}]/g;let se;for(V.lastIndex=0;se=V.exec(u);){const nt=se.index;if("}"==se[0]){if(_.pop(),0==_.length){const ct=u.substring(f,nt);$x.test(ct)?O.push(EA(ct)):O.push(ct),f=nt+1}}else{if(0==_.length){const ct=u.substring(f,nt);O.push(ct),f=nt+1}_.push("{")}}const $e=u.substring(f);return O.push($e),O}function OA(u,f,_,O,V,se,$e,nt,ct){const tn=[],fn=[],Nn=[];_.cases.push($e),_.create.push(tn),_.remove.push(fn),_.update.push(Nn);const _i=Cd(hn()).getInertBodyElement(nt),ao=un(_i)||_i;return ao?Gx(u,f,_,O,V,tn,fn,Nn,ao,se,ct,0):0}function Gx(u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn){let ui=0,_i=ct.firstChild;for(;_i;){const ao=nh(f,O,1,null);switch(_i.nodeType){case Node.ELEMENT_NODE:const No=_i,jo=No.tagName.toLowerCase();if(Tl.hasOwnProperty(jo)){WC(se,I_,jo,tn,ao),f.data[ao]=jo;const Ua=No.attributes;for(let G_=0;G_<Ua.length;G_++){const cd=Ua.item(G_),PS=cd.name.toLowerCase();cd.value.match(UC)?Pc.hasOwnProperty(PS)&&F_(nt,cd.value,ao,cd.name,0,$l[PS]?Yc:null):Ww(se,ao,cd)}const Rr={kind:1,index:ao,children:[]};u.push(Rr),ui=Gx(Rr.children,f,_,O,V,se,$e,nt,_i,ao,fn,Nn+1)|ui,jC($e,ao,Nn)}break;case Node.TEXT_NODE:const us=_i.textContent||"",zo=us.match(UC);WC(se,null,zo?"":us,tn,ao),jC($e,ao,Nn),zo&&(ui=F_(nt,us,ao,null,0,null)|ui),u.push({kind:0,index:ao});break;case Node.COMMENT_NODE:const Er=vA.exec(_i.textContent||"");if(Er){const Rr=fn[parseInt(Er[1],10)];WC(se,HC,"",tn,ao),Gw(u,f,O,V,tn,Rr,ao),GC($e,ao,Nn)}}_i=_i.nextSibling}return ui}function jC(u,f,_){0===_&&u.push(f)}function GC(u,f,_){0===_&&(u.push(~f),u.push(f))}function WC(u,f,_,O,V){null!==f&&u.push(f),u.push(_,V,function wD(u,f,_){return u|f<<17|_<<1}(0,O,V))}function Ww(u,f,_){u.push(f<<1|1,_.name,_.value)}const SA=/\[(\ufffd.+?\ufffd?)\]/,zw=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,DA=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Kw=/{([A-Z0-9_]+)}/g,TA=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,AA=/\/\*/,IA=/\d+\:(\d+)/;function Xw(u,f,_=-1){const O=(0,d.klJ)(),V=(0,d.OAn)(),se=d.Yw1+u,$e=(0,d.db4)(O.consts,f),nt=(0,d.Ab)();O.firstCreatePass&&function Hw(u,f,_,O,V,se){const $e=(0,d.Ab)(),nt=[],ct=[],tn=[[]],fn=[[]];V=function xA(u,f){if(function rE(u){return-1===u}(f))return jw(u);{const _=u.indexOf(`:${f}\ufffd`)+2+f.toString().length,O=u.search(new RegExp(`\ufffd\\/\\*\\d+:${f}\ufffd`));return jw(u.substring(_,O))}}(V,se);const Nn=function k_(u){return u.replace(Vw," ")}(V).split(Lw);for(let ui=0;ui<Nn.length;ui++){let _i=Nn[ui];if(1&ui){const ao=47===_i.charCodeAt(0),No=_i.charCodeAt(ao?1:0),jo=d.Yw1+Number.parseInt(_i.substring(ao?2:1));if(ao)tn.shift(),fn.shift(),(0,d.iMd)((0,d.Ab)(),!1);else{const us=sE(u,tn[0],jo);tn.unshift([]),(0,d.iMd)(us,!0);const zo={kind:2,index:jo,children:[],type:35===No?0:1};fn[0].push(zo),fn.unshift(zo.children)}}else{const ao=jx(_i);for(let No=0;No<ao.length;No++){let jo=ao[No];if(1&No){const us=jo;if("object"!=typeof us)throw new Error(`Unable to parse ICU expression in "${V}" message.`);const Er=B_(u,$e,tn[0],_,nt,"",!0).index;Gw(fn[0],u,_,ct,f,us,Er)}else""!==jo&&$w(fn[0],u,$e,tn[0],nt,ct,_,jo)}}}u.data[O]={create:nt,update:ct,ast:fn[0],parentTNodeIndex:f}}(O,null===nt?0:nt.index,V,se,$e,_),2===O.type?V[d.b5C][d.Wg1]|=32:V[d.Wg1]|=32;const ct=O.data[se],fn=Ra(O,nt===V[d.qlT]?null:nt,V);(function gA(u,f,_,O){const V=u[d.GpT];for(let se=0;se<f.length;se++){const $e=f[se++],tn=($e&Cc.APPEND_EAGERLY)===Cc.APPEND_EAGERLY,fn=$e>>>Cc.SHIFT;let Nn=u[fn],ui=!1;null===Nn&&(Nn=u[fn]=P_(u,0,f[se],($e&Cc.COMMENT)===Cc.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),ui=(0,d.SX7)()),tn&&null!==_&&ui&&Bc(V,_,Nn,O,!1)}})(V,ct.create,fn,nt&&8&nt.type?V[nt.index]:null),(0,d.xyx)(!0)}function Yw(){(0,d.xyx)(!1)}function Kx(u,f,_){const O=(0,d.OAn)(),V=(0,d.klJ)(),se=(0,d.Mx4)();return zC(V,O,O[d.GpT],se,u,f,_),Kx}function am(u,f,_){const O=(0,d.OAn)(),V=(0,d.klJ)(),se=(0,d.Mx4)();return(3&se.type||_)&&Gm(se,V,O,_,O[d.GpT],u,f,Rf(se,O,f)),am}function zC(u,f,_,O,V,se,$e){let nt=!0,ct=null;if((3&O.type||$e)&&(ct??=Rf(O,f,se),Gm(O,u,f,$e,_,V,se,ct)&&(nt=!1)),nt){const tn=O.outputs?.[V],fn=O.hostDirectiveOutputs?.[V];if(fn&&fn.length)for(let Nn=0;Nn<fn.length;Nn+=2){const ui=fn[Nn],_i=fn[Nn+1];ct??=Rf(O,f,se),$p(O,f,ui,_i,V,ct)}if(tn&&tn.length)for(const Nn of tn)ct??=Rf(O,f,se),$p(O,f,Nn,V,V,ct)}}function qw(u=1){return(0,d.jvu)(u)}function RA(u,f){let _=null;const O=function kh(u){const f=u.attrs;if(null!=f){const _=f.indexOf(5);if(!(1&_))return f[_+1]}return null}(u);for(let V=0;V<f.length;V++){const se=f[V];if("*"!==se){if(null===O?nl(u,se,!0):Bh(O,se))return V}else _=V}return _}function Xx(u){const f=(0,d.OAn)()[d.b5C][d.qlT];if(!f.projection){const O=f.projection=(0,d.WfI)(u?u.length:1,null),V=O.slice();let se=f.child;for(;null!==se;){if(128!==se.type){const $e=u?RA(se,u):0;null!==$e&&(V[$e]?V[$e].projectionNext=se:O[$e]=se,V[$e]=se)}se=se.next}}}function eS(u,f=0,_,O,V,se){const $e=(0,d.OAn)(),nt=(0,d.klJ)(),ct=O?u+1:null;null!==ct&&Gp($e,nt,ct,O,V,se,null,_);const tn=Kh(nt,d.Yw1+u,16,null,_||null);null===tn.projection&&(tn.projection=f),(0,d.Pfq)();const Nn=!$e[d.tcA]||(0,d.KtD)();null===$e[d.b5C][d.qlT].projection[tn.projection]&&null!==ct?function kA(u,f,_){const O=d.Yw1+_,V=f.data[O],se=u[O],$e=If(se,V.tView.ssrId);zh(se,fa(u,V,void 0,{dehydratedView:$e}),0,Pl(V,$e))}($e,nt,ct):Nn&&!ht(tn)&&function Ji(u,f,_){so(f[d.GpT],0,f,_,dc(u,_,f),gu(_.parent||f[d.qlT],_,f))}(nt,$e,tn)}function tS(u,f,_,O){cb(u,f,_,O)}function nS(u,f,_){lb(u,f,_)}function iS(u){const f=(0,d.OAn)(),_=(0,d.klJ)(),O=(0,d.w7Z)();(0,d.GA0)(O+1);const V=ep(_,O);if(u.dirty&&(0,d.vOT)(f)===!(2&~V.metadata.flags)){if(null===V.matches)u.reset([]);else{const se=Rv(f,O);u.reset(se,ho),u.notifyOnChanges()}return!0}return!1}function oS(){return Bg((0,d.OAn)(),(0,d.w7Z)())}function Qx(u){const f=(0,d.VPL)();return(0,d.Hh6)(f,d.Yw1+u)}function V_(u,f){return u<<17|f<<2}function yc(u){return u>>17&32767}function Zx(u){return 2|u}function Jg(u){return(131068&u)>>2}function Jx(u,f){return-131069&u|f<<2}function bc(u){return 1|u}function KC(u,f,_,O){const V=u[_+1],se=null===f;let $e=O?yc(V):Jg(V),nt=!1;for(;0!==$e&&(!1===nt||se);){const tn=u[$e+1];I(u[$e],f)&&(nt=!0,u[$e+1]=O?bc(tn):Zx(tn)),$e=O?yc(tn):Jg(tn)}nt&&(u[_+1]=O?Zx(V):bc(V))}function I(u,f){return null===u||null==f||(Array.isArray(u)?u[1]:u)===f||!(!Array.isArray(u)||"string"!=typeof f)&&(0,d.FRF)(u,f)>=0}const i={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function a(u){return u.substring(i.key,i.keyEnd)}function c(u){return u.substring(i.value,i.valueEnd)}function y(u,f){const _=i.textEnd;return _===f?-1:(f=i.keyEnd=function st(u,f,_){for(;f<_&&u.charCodeAt(f)>32;)f++;return f}(u,i.key=f,_),Le(u,f,_))}function Y(u,f){const _=i.textEnd;let O=i.key=Le(u,f,_);return _===O?-1:(O=i.keyEnd=function mt(u,f,_){let O;for(;f<_&&(45===(O=u.charCodeAt(f))||95===O||(-33&O)>=65&&(-33&O)<=90||O>=48&&O<=57);)f++;return f}(u,O,_),O=on(u,O,_),O=i.value=Le(u,O,_),O=i.valueEnd=function wn(u,f,_){let O=-1,V=-1,se=-1,$e=f,nt=$e;for(;$e<_;){const ct=u.charCodeAt($e++);if(59===ct)return nt;34===ct||39===ct?nt=$e=Kn(u,ct,$e,_):f===$e-4&&85===se&&82===V&&76===O&&40===ct?nt=$e=Kn(u,41,$e,_):ct>32&&(nt=$e),se=V,V=O,O=-33&ct}return nt}(u,O,_),on(u,O,_))}function xe(u){i.key=0,i.keyEnd=0,i.value=0,i.valueEnd=0,i.textEnd=u.length}function Le(u,f,_){for(;f<_&&u.charCodeAt(f)<=32;)f++;return f}function on(u,f,_,O){return(f=Le(u,f,_))<_&&f++,f}function Kn(u,f,_,O){let V=-1,se=_;for(;se<O;){const $e=u.charCodeAt(se++);if($e==f&&92!==V)return se;V=92==$e&&92===V?0:$e}throw new Error}function no(u,f,_){return Dr(u,f,_,!1),no}function Yo(u,f){return Dr(u,f,null,!0),Yo}function ps(u){ia(FA,Ls,u,!1)}function Ls(u,f){for(let _=function D(u){return xe(u),Y(u,Le(u,0,i.textEnd))}(f);_>=0;_=Y(f,_))FA(u,a(f),c(f))}function _r(u){ia(w1,Sr,u,!0)}function Sr(u,f){for(let _=function g(u){return xe(u),y(u,Le(u,0,i.textEnd))}(f);_>=0;_=y(f,_))(0,d.ezK)(u,a(f),!0)}function Dr(u,f,_,O){const V=(0,d.OAn)(),se=(0,d.klJ)(),$e=(0,d.b$O)(2);se.firstUpdatePass&&Hd(se,u,$e,O),f!==br&&ya(V,$e,f)&&NA(se,se.data[(0,d._px)()],V,V[d.GpT],u,V[$e+1]=function D1(u,f){return null==u||""===u||("string"==typeof f?u+=f:"object"==typeof u&&(u=(0,d.AsM)(Vl(u)))),u}(f,_),O,$e)}function ia(u,f,_,O){const V=(0,d.klJ)(),se=(0,d.b$O)(2);V.firstUpdatePass&&Hd(V,null,se,O);const $e=(0,d.OAn)();if(_!==br&&ya($e,se,_)){const nt=V.data[(0,d._px)()];if(e0(nt,O)&&!rl(V,se)){let ct=O?nt.classesWithoutHost:nt.stylesWithoutHost;null!==ct&&(_=(0,d.n$e)(ct,_||"")),RC(V,nt,$e,_,O)}else!function S1(u,f,_,O,V,se,$e,nt){V===br&&(V=d.Mlv);let ct=0,tn=0,fn=0<V.length?V[0]:null,Nn=0<se.length?se[0]:null;for(;null!==fn||null!==Nn;){const ui=ct<V.length?V[ct+1]:void 0,_i=tn<se.length?se[tn+1]:void 0;let No,ao=null;fn===Nn?(ct+=2,tn+=2,ui!==_i&&(ao=Nn,No=_i)):null===Nn||null!==fn&&fn<Nn?(ct+=2,ao=fn):(tn+=2,ao=Nn,No=_i),null!==ao&&NA(u,f,_,O,ao,No,$e,nt),fn=ct<V.length?V[ct]:null,Nn=tn<se.length?se[tn]:null}}(V,nt,$e,$e[d.GpT],$e[se+1],$e[se+1]=function O1(u,f,_){if(null==_||""===_)return d.Mlv;const O=[],V=Vl(_);if(Array.isArray(V))for(let se=0;se<V.length;se++)u(O,V[se],!0);else if("object"==typeof V)for(const se in V)V.hasOwnProperty(se)&&u(O,se,V[se]);else"string"==typeof V&&f(O,V);return O}(u,f,_),O,se)}}function rl(u,f){return f>=u.expandoStartIndex}function Hd(u,f,_,O){const V=u.data;if(null===V[_+1]){const se=V[(0,d._px)()],$e=rl(u,_);e0(se,O)&&null===f&&!$e&&(f=!1),f=function cS(u,f,_,O){const V=(0,d.MT)(u);let se=O?f.residualClasses:f.residualStyles;if(null===V)0===(O?f.classBindings:f.styleBindings)&&(_=XC(_=uS(null,u,f,_,O),f.attrs,O),se=null);else{const $e=f.directiveStylingLast;if(-1===$e||u[$e]!==V)if(_=uS(V,u,f,_,O),null===se){let ct=function dS(u,f,_){const O=_?f.classBindings:f.styleBindings;if(0!==Jg(O))return u[yc(O)]}(u,f,O);void 0!==ct&&Array.isArray(ct)&&(ct=uS(null,u,f,ct[1],O),ct=XC(ct,f.attrs,O),function x1(u,f,_,O){u[yc(_?f.classBindings:f.styleBindings)]=O}(u,f,O,ct))}else se=function E1(u,f,_){let O;const V=f.directiveEnd;for(let se=1+f.directiveStylingLast;se<V;se++)O=XC(O,u[se].hostAttrs,_);return XC(O,f.attrs,_)}(u,f,O)}return void 0!==se&&(O?f.residualClasses=se:f.residualStyles=se),_}(V,se,f,O),function xo(u,f,_,O,V,se){let $e=se?f.classBindings:f.styleBindings,nt=yc($e),ct=Jg($e);u[O]=_;let fn,tn=!1;if(Array.isArray(_)?(fn=_[1],(null===fn||(0,d.FRF)(_,fn)>0)&&(tn=!0)):fn=_,V)if(0!==ct){const ui=yc(u[nt+1]);u[O+1]=V_(ui,nt),0!==ui&&(u[ui+1]=Jx(u[ui+1],O)),u[nt+1]=function rS(u,f){return 131071&u|f<<17}(u[nt+1],O)}else u[O+1]=V_(nt,0),0!==nt&&(u[nt+1]=Jx(u[nt+1],O)),nt=O;else u[O+1]=V_(ct,0),0===nt?nt=O:u[ct+1]=Jx(u[ct+1],O),ct=O;tn&&(u[O+1]=Zx(u[O+1])),KC(u,fn,O,!0),KC(u,fn,O,!1),function lS(u,f,_,O,V){const se=V?u.residualClasses:u.residualStyles;null!=se&&"string"==typeof f&&(0,d.FRF)(se,f)>=0&&(_[O+1]=bc(_[O+1]))}(f,fn,u,O,se),$e=V_(nt,ct),se?f.classBindings=$e:f.styleBindings=$e}(V,se,f,_,$e,O)}}function uS(u,f,_,O,V){let se=null;const $e=_.directiveEnd;let nt=_.directiveStylingLast;for(-1===nt?nt=_.directiveStart:nt++;nt<$e&&(se=f[nt],O=XC(O,se.hostAttrs,V),se!==u);)nt++;return null!==u&&(_.directiveStylingLast=nt),O}function XC(u,f,_){const O=_?1:2;let V=-1;if(null!==f)for(let se=0;se<f.length;se++){const $e=f[se];"number"==typeof $e?V=$e:V===O&&(Array.isArray(u)||(u=void 0===u?[]:["",u]),(0,d.ezK)(u,$e,!!_||f[++se]))}return void 0===u?null:u}function FA(u,f,_){(0,d.ezK)(u,f,Vl(_))}function w1(u,f,_){const O=String(f);""!==O&&!O.includes(" ")&&(0,d.ezK)(u,O,_)}function NA(u,f,_,O,V,se,$e,nt){if(!(3&f.type))return;const ct=u.data,tn=ct[nt+1],fn=function aS(u){return!(1&~u)}(tn)?LA(ct,f,_,V,Jg(tn),$e):void 0;qx(fn)||(qx(se)||function BA(u){return!(2&~u)}(tn)&&(se=LA(ct,null,_,V,nt,$e)),function Xo(u,f,_,O,V){if(f)V?u.addClass(_,O):u.removeClass(_,O);else{let se=-1===O.indexOf("-")?void 0:Td.DashCase;null==V?u.removeStyle(_,O,se):("string"==typeof V&&V.endsWith("!important")&&(V=V.slice(0,-10),se|=Td.Important),u.setStyle(_,O,V,se))}}(O,$e,(0,d.vaC)((0,d._px)(),_),V,se))}function LA(u,f,_,O,V,se){const $e=null===f;let nt;for(;V>0;){const ct=u[V],tn=Array.isArray(ct),fn=tn?ct[1]:ct,Nn=null===fn;let ui=_[V+1];ui===br&&(ui=Nn?d.Mlv:void 0);let _i=Nn?(0,d.K7h)(ui,O):fn===O?ui:void 0;if(tn&&!qx(_i)&&(_i=(0,d.K7h)(ct,O)),qx(_i)&&(nt=_i,$e))return nt;const ao=u[V+1];V=$e?yc(ao):Jg(ao)}if(null!==f){let ct=se?f.residualClasses:f.residualStyles;null!=ct&&(nt=(0,d.K7h)(ct,O))}return nt}function qx(u){return void 0!==u}function e0(u,f){return!!(u.flags&(f?8:16))}function VA(u,f=""){const _=(0,d.OAn)(),O=(0,d.klJ)(),V=u+d.Yw1,se=O.firstCreatePass?Kh(O,V,1,f,null):O.data[V],$e=HA(O,_,se,f,u);_[V]=$e,(0,d.SX7)()&&Kl(O,_,$e,se),(0,d.iMd)(se,!1)}let HA=(u,f,_,O,V)=>((0,d.m7n)(!0),eh(f[d.GpT],O));function $A(u,f){let _=!1,O=(0,d.c$7)();for(let se=1;se<f.length;se+=2)_=ya(u,O++,f[se])||_;if((0,d.Kw3)(O),!_)return br;let V=f[0];for(let se=1;se<f.length;se+=2)V+=(0,d.eFE)(f[se])+(se+1!==f.length?f[se+1]:"");return V}function UA(u,f,_,O=""){return ya(u,(0,d.xbp)(),_)?f+(0,d.eFE)(_)+O:br}function jA(u,f,_,O,V,se=""){const nt=kg(u,(0,d.c$7)(),_,V);return(0,d.b$O)(2),nt?f+(0,d.eFE)(_)+O+(0,d.eFE)(V)+se:br}function GA(u,f,_,O,V,se,$e,nt=""){const tn=Yh(u,(0,d.c$7)(),_,V,$e);return(0,d.b$O)(3),tn?f+(0,d.eFE)(_)+O+(0,d.eFE)(V)+se+(0,d.eFE)($e)+nt:br}function WA(u,f,_,O,V,se,$e,nt,ct,tn=""){const Nn=od(u,(0,d.c$7)(),_,V,$e,ct);return(0,d.b$O)(4),Nn?f+(0,d.eFE)(_)+O+(0,d.eFE)(V)+se+(0,d.eFE)($e)+nt+(0,d.eFE)(ct)+tn:br}function zA(u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn=""){const ui=(0,d.c$7)();let _i=od(u,ui,_,V,$e,ct);return _i=ya(u,ui+4,fn)||_i,(0,d.b$O)(5),_i?f+(0,d.eFE)(_)+O+(0,d.eFE)(V)+se+(0,d.eFE)($e)+nt+(0,d.eFE)(ct)+tn+(0,d.eFE)(fn)+Nn:br}function KA(u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui,_i=""){const ao=(0,d.c$7)();let No=od(u,ao,_,V,$e,ct);return No=kg(u,ao+4,fn,ui)||No,(0,d.b$O)(6),No?f+(0,d.eFE)(_)+O+(0,d.eFE)(V)+se+(0,d.eFE)($e)+nt+(0,d.eFE)(ct)+tn+(0,d.eFE)(fn)+Nn+(0,d.eFE)(ui)+_i:br}function XA(u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui,_i,ao,No=""){const jo=(0,d.c$7)();let us=od(u,jo,_,V,$e,ct);return us=Yh(u,jo+4,fn,ui,ao)||us,(0,d.b$O)(7),us?f+(0,d.eFE)(_)+O+(0,d.eFE)(V)+se+(0,d.eFE)($e)+nt+(0,d.eFE)(ct)+tn+(0,d.eFE)(fn)+Nn+(0,d.eFE)(ui)+_i+(0,d.eFE)(ao)+No:br}function YA(u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui,_i,ao,No,jo,us=""){const zo=(0,d.c$7)();let Er=od(u,zo,_,V,$e,ct);return Er=od(u,zo+4,fn,ui,ao,jo)||Er,(0,d.b$O)(8),Er?f+(0,d.eFE)(_)+O+(0,d.eFE)(V)+se+(0,d.eFE)($e)+nt+(0,d.eFE)(ct)+tn+(0,d.eFE)(fn)+Nn+(0,d.eFE)(ui)+_i+(0,d.eFE)(ao)+No+(0,d.eFE)(jo)+us:br}function hS(u){return t0("",u),hS}function t0(u,f,_){const O=(0,d.OAn)(),V=UA(O,u,f,_);return V!==br&&Zp(O,(0,d._px)(),V),t0}function pS(u,f,_,O,V){const se=(0,d.OAn)(),$e=jA(se,u,f,_,O,V);return $e!==br&&Zp(se,(0,d._px)(),$e),pS}function gS(u,f,_,O,V,se,$e){const nt=(0,d.OAn)(),ct=GA(nt,u,f,_,O,V,se,$e);return ct!==br&&Zp(nt,(0,d._px)(),ct),gS}function fS(u,f,_,O,V,se,$e,nt,ct){const tn=(0,d.OAn)(),fn=WA(tn,u,f,_,O,V,se,$e,nt,ct);return fn!==br&&Zp(tn,(0,d._px)(),fn),fS}function mS(u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui){const _i=(0,d.OAn)(),ao=KA(_i,u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui);return ao!==br&&Zp(_i,(0,d._px)(),ao),mS}function Zp(u,f,_){const O=(0,d.vaC)(f,u);Ip(u[d.GpT],O,_)}function vS(u,f,_){(0,d.n$r)(f)&&(f=f());const O=(0,d.OAn)();return ya(O,(0,d.xbp)(),f)&&((0,d.klJ)(),Wr((0,d.CpD)(),O,u,f,O[d.GpT],_)),vS}function qA(u,f){const _=(0,d.n$r)(u);return _&&u.set(f),_}function CS(u,f){const _=(0,d.OAn)(),O=(0,d.klJ)(),V=(0,d.Mx4)();return zC(O,_,_[d.GpT],V,u,f),CS}const eI={};function nI(u){return ya((0,d.OAn)(),(0,d.xbp)(),u)?(0,d.eFE)(u):br}function iI(u,f,_=""){return UA((0,d.OAn)(),u,f,_)}function oI(u,f,_,O,V=""){return jA((0,d.OAn)(),u,f,_,O,V)}function sI(u,f,_,O,V,se,$e=""){return GA((0,d.OAn)(),u,f,_,O,V,se,$e)}function rI(u,f,_,O,V,se,$e,nt,ct=""){return WA((0,d.OAn)(),u,f,_,O,V,se,$e,nt,ct)}function yS(u,f,_,O,V){if(u=(0,d.nl4)(u),Array.isArray(u))for(let se=0;se<u.length;se++)yS(u[se],f,_,O,V);else{const se=(0,d.klJ)(),$e=(0,d.OAn)(),nt=(0,d.Mx4)();let ct=(0,d.Y3W)(u)?u:(0,d.nl4)(u.provide);const tn=(0,d.Rc9)(u),fn=1048575&nt.providerIndexes,Nn=nt.directiveStart,ui=nt.providerIndexes>>20;if((0,d.Y3W)(u)||!u.multi){const _i=new Oe(tn,V,uh,null),ao=xS(ct,f,V?fn:fn+ui,Nn);-1===ao?(Co(On(nt,$e),se,ct),bS(se,u,f.length),f.push(ct),nt.directiveStart++,nt.directiveEnd++,V&&(nt.providerIndexes+=1048576),_.push(_i),$e.push(_i)):(_[ao]=_i,$e[ao]=_i)}else{const _i=xS(ct,f,fn+ui,Nn),ao=xS(ct,f,fn,fn+ui),jo=ao>=0&&_[ao];if(V&&!jo||!V&&!(_i>=0&&_[_i])){Co(On(nt,$e),se,ct);const us=function H1(u,f,_,O,V){const $e=new Oe(u,_,uh,null);return $e.multi=[],$e.index=f,$e.componentProviders=0,aI($e,V,O&&!_),$e}(V?V1:L1,_.length,V,O,tn);!V&&jo&&(_[ao].providerFactory=us),bS(se,u,f.length,0),f.push(ct),nt.directiveStart++,nt.directiveEnd++,V&&(nt.providerIndexes+=1048576),_.push(us),$e.push(us)}else bS(se,u,_i>-1?_i:ao,aI(_[V?ao:_i],tn,!V&&O));!V&&O&&jo&&_[ao].componentProviders++}}}function bS(u,f,_,O){const V=(0,d.Y3W)(f),se=(0,d.MME)(f);if(V||se){const ct=(se?(0,d.nl4)(f.useClass):f).prototype.ngOnDestroy;if(ct){const tn=u.destroyHooks||(u.destroyHooks=[]);if(!V&&f.multi){const fn=tn.indexOf(_);-1===fn?tn.push(_,[O,ct]):tn[fn+1].push(O,ct)}else tn.push(_,ct)}}}function aI(u,f,_){return _&&u.componentProviders++,u.multi.push(f)-1}function xS(u,f,_,O){for(let V=_;V<O;V++)if(f[V]===u)return V;return-1}function L1(u,f,_,O,V){return ES(this.multi,[])}function V1(u,f,_,O,V){const se=this.multi;let $e;if(this.providerFactory){const nt=this.providerFactory.componentProviders,ct=vo(O,O[d.eDl],this.providerFactory.index,V);$e=ct.slice(0,nt),ES(se,$e);for(let tn=nt;tn<ct.length;tn++)$e.push(ct[tn])}else $e=[],ES(se,$e);return $e}function ES(u,f){for(let _=0;_<u.length;_++)f.push((0,u[_])());return f}function lI(u,f=[]){return _=>{_.providersResolver=(O,V)=>function N1(u,f,_){const O=(0,d.klJ)();if(O.firstCreatePass){const V=(0,d.JlV)(u);yS(_,O.data,O.blueprint,V,!0),yS(f,O.data,O.blueprint,V,!1)}}(O,V?V(u):u,f)}}function cI(u,f,_){const O=u.\u0275cmp;O.directiveDefs=Vf(f,Nv),O.pipeDefs=Vf(_,d.oyA)}function n0(u){if("function"==typeof u)return u;const f=(0,d.Bqz)(u);return f.some(d.Jzi)?()=>f.map(d.nl4).map(dI):f.map(dI)}function dI(u){return xv(u)?u.ngModule:u}function uI(u,f,_){const O=(0,d.gxQ)()+u,V=(0,d.OAn)();return V[O]===br?hh(V,O,_?f.call(_):f()):jm(V,O)}function hI(u,f,_,O){return mI((0,d.OAn)(),(0,d.gxQ)(),u,f,_,O)}function pI(u,f,_,O,V){return _I((0,d.OAn)(),(0,d.gxQ)(),u,f,_,O,V)}function gI(u,f,_,O,V,se){return vI((0,d.OAn)(),(0,d.gxQ)(),u,f,_,O,V,se)}function fI(u,f,_,O,V,se,$e){return CI((0,d.OAn)(),(0,d.gxQ)(),u,f,_,O,V,se,$e)}function YC(u,f){const _=u[f];return _===br?void 0:_}function mI(u,f,_,O,V,se){const $e=f+_;return ya(u,$e,V)?hh(u,$e+1,se?O.call(se,V):O(V)):YC(u,$e+1)}function _I(u,f,_,O,V,se,$e){const nt=f+_;return kg(u,nt,V,se)?hh(u,nt+2,$e?O.call($e,V,se):O(V,se)):YC(u,nt+2)}function vI(u,f,_,O,V,se,$e,nt){const ct=f+_;return Yh(u,ct,V,se,$e)?hh(u,ct+3,nt?O.call(nt,V,se,$e):O(V,se,$e)):YC(u,ct+3)}function CI(u,f,_,O,V,se,$e,nt,ct){const tn=f+_;return od(u,tn,V,se,$e,nt)?hh(u,tn+4,ct?O.call(ct,V,se,$e,nt):O(V,se,$e,nt)):YC(u,tn+4)}function yI(u,f,_,O,V,se){let $e=f+_,nt=!1;for(let ct=0;ct<V.length;ct++)ya(u,$e++,V[ct])&&(nt=!0);return nt?hh(u,$e,O.apply(se,V)):YC(u,$e)}function bI(u,f){const _=(0,d.klJ)();let O;const V=u+d.Yw1;_.firstCreatePass?(O=function Y1(u,f){if(f)for(let _=f.length-1;_>=0;_--){const O=f[_];if(u===O.name)return O}}(f,_.pipeRegistry),_.data[V]=O,O.onDestroy&&(_.destroyHooks??=[]).push(V,O.onDestroy)):O=_.data[V];const se=O.factory||(O.factory=(0,d.wGu)(O.type,!0)),nt=(0,d.a2B)(uh);try{const ct=Ct(!1),tn=se();return Ct(ct),(0,d.M_e)(_,(0,d.OAn)(),V,tn),tn}finally{(0,d.a2B)(nt)}}function xI(u,f,_){const O=u+d.Yw1,V=(0,d.OAn)(),se=(0,d.Hh6)(V,O);return QC(V,O)?mI(V,(0,d.gxQ)(),f,se.transform,_,se):se.transform(_)}function EI(u,f,_,O){const V=u+d.Yw1,se=(0,d.OAn)(),$e=(0,d.Hh6)(se,V);return QC(se,V)?_I(se,(0,d.gxQ)(),f,$e.transform,_,O,$e):$e.transform(_,O)}function OI(u,f,_,O,V){const se=u+d.Yw1,$e=(0,d.OAn)(),nt=(0,d.Hh6)($e,se);return QC($e,se)?vI($e,(0,d.gxQ)(),f,nt.transform,_,O,V,nt):nt.transform(_,O,V)}function QC(u,f){return u[d.eDl].data[f].pure}function wI(u,f){return te(u,f)}function o0(u,f,_,O,V){const se=V[d.eDl];if(se!==O.tView)for(let $e=d.Yw1;$e<se.bindingStartIndex;$e++){const nt=V[$e];if((0,d.A0l)(nt)){(0,d.q$2)(nt[d.jgP])&&o0(u,f,_,O,nt[d.jgP]);for(let ct=d.Y20;ct<nt.length;ct++)o0(u,f,_,O,nt[ct])}else(0,d.q$2)(nt)&&o0(u,f,_,O,nt)}else!function oP(u,f,_,O,V){const se=V[d.SKP];let $e=V[d.jgP];const nt=V[d.f7T],ct=V[d.qlT],tn=V[d.YEL].get(aa,null),fn=()=>{if(O.encapsulation===Ma.ShadowDom){const ao=$e.cloneNode(!1);$e.replaceWith(ao),$e=ao}const Nn=Dd(_),ui=Il(nt,Nn,se,th(_),$e,ct,null,null,null,null,null);(function sP(u,f,_,O){for(let V=d.Yw1;V<u[d.eDl].bindingStartIndex;V++){const se=u[V];if(((0,d.q$2)(se)||(0,d.A0l)(se))&&se[d.K29]===f){se[d.K29]=_;break}}u[d.EJG]===f&&(u[d.EJG]=_),u[d.Yrj]===f&&(u[d.Yrj]=_),_[d.K29]=f[d.K29],f[d.K29]=null,u[O]=_})(nt,V,ui,ct.index),oh(V[d.eDl],V);const _i=V[d.M0L].rendererFactory;(function iP(u,f){u.componentReplaced?.(f.id)})(_i,O),ui[d.GpT]=_i.createRenderer($e,_),zl(V[d.eDl],V),function rP(u){if(null!==u.projection){for(const f of u.projection)We(f)&&(f.projectionNext=null,f.flags&=-3);u.projection=null}}(ct),td(Nn,ui,se),Cn(Nn,ui,Nn.template,se)};null===tn?SI(u,f,fn):tn.run(()=>SI(u,f,fn))}(u,f,_,O,V)}function SI(u,f,_){try{_()}catch(O){if(null!==f&&O.message){const se=O.message+(O.stack?"\n"+O.stack:"");u?.hot?.send?.("angular:invalidate",{id:f,message:se,error:!0})}throw O}}const qg={\u0275\u0275animateEnter:function E_(u){if(gl("NgAnimateEnter"),!sp)return E_;const f=(0,d.OAn)();if(y_(f))return E_;const _=(0,d.Mx4)(),O=(0,d.d31)(_,f),V=f[d.GpT],se=f[d.YEL].get(aa),$e=OC(u),nt=[],ct=fn=>{const Nn=fn instanceof AnimationEvent?"animationend":"transitionend";se.runOutsideAngular(()=>{nt.push(V.listen(O,Nn,tn))})},tn=fn=>{!function mw(u,f,_){const O=xu.get(f);if(O&&bx(u,f)){u.stopImmediatePropagation();for(const V of O.classList)_.removeClass(f,V);b_(f)}}(fn,O,V)};if($e&&$e.length>0){se.runOutsideAngular(()=>{nt.push(V.listen(O,"animationstart",ct)),nt.push(V.listen(O,"transitionstart",ct))}),TC(_,f),function fw(u,f,_){const O=xu.get(u);if(O){for(const V of f)O.classList.push(V);for(const V of _)O.cleanupFns.push(V)}else xu.set(u,{classList:f,cleanupFns:_})}(O,$e,nt);for(const fn of $e)V.addClass(O,fn);se.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(SC(O,fh,sp),!fh.has(O)){for(const fn of $e)V.removeClass(O,fn);b_(O)}})})}return E_},\u0275\u0275animateEnterListener:function O_(u){if(gl("NgAnimateEnter"),!sp)return O_;const f=(0,d.OAn)();if(y_(f))return O_;const _=(0,d.Mx4)(),O=(0,d.d31)(_,f);return TC(_,f),u.call(f[d.SKP],{target:O,animationComplete:DC}),O_},\u0275\u0275animateLeave:function w_(u){if(gl("NgAnimateLeave"),!sp)return w_;const f=(0,d.OAn)(),_=y_(f);if(_)return w_;const O=(0,d.klJ)(),V=(0,d.Mx4)(),se=(0,d.d31)(V,f),$e=f[d.GpT],nt=(0,d.kRk)(),ct=f[d.YEL].get(aa);return vx(nt,f,O,se),nt.elements.add(se,u,(fn,Nn,ui)=>_i=>{!function _w(u,f,_,O,V,se,$e){if(se)return fh.delete(u),void O();!function nA(u,f){if(!sp)return;const _=xu.get(u);if(_&&_.classList.length>0&&function qf(u,f){for(const _ of f)if(u.classList.contains(_))return!0;return!1}(u,_.classList))for(const O of _.classList)f.removeClass(u,O);b_(u)}(u,V);const nt=ct=>{(ct instanceof CustomEvent||bx(ct,u))&&(ct.stopImmediatePropagation(),fh.delete(u),x_(f,u),O())};$e.runOutsideAngular(()=>{V.listen(u,"animationend",nt),V.listen(u,"transitionend",nt)}),AC(f,u);for(const ct of _)V.addClass(u,ct);$e.runOutsideAngular(()=>{requestAnimationFrame(()=>{SC(u,fh,sp),fh.has(u)||(x_(f,u),O())})})}(fn,V,function yx(u,f){const _=new Set(u);if(f&&f.length)for(const O of f){const V=OC(O);if(V)for(const se of V)_.add(se)}return _}(Nn,ui),_i,$e,_,ct)}),w_},\u0275\u0275animateLeaveListener:function Cx(u){if(gl("NgAnimateLeave"),!sp)return Cx;const f=(0,d.OAn)(),_=(0,d.Mx4)(),O=(0,d.klJ)(),V=(0,d.d31)(_,f),se=(0,d.kRk)(),$e=f[d.GpT],nt=y_(f),ct=f[d.YEL].get(aa);return vx(se,f,O,V),se.elements.addCallback(V,u,(fn,Nn)=>ui=>{if(nt)ui();else{const _i={target:V,animationComplete:()=>{x_(_,fn),ui()}};AC(_,fn),ct.runOutsideAngular(()=>{$e.listen(fn,"animationend",()=>ui(),{once:!0})}),Nn.call(f[d.SKP],_i)}}),Cx},\u0275\u0275attribute:EC,\u0275\u0275defineComponent:Hg,\u0275\u0275defineDirective:Hv,\u0275\u0275defineInjectable:d.jDH,\u0275\u0275defineInjector:d.G2t,\u0275\u0275defineNgModule:Lv,\u0275\u0275definePipe:$v,\u0275\u0275directiveInject:uh,\u0275\u0275getInheritedFactory:ss,\u0275\u0275inject:d.KVO,\u0275\u0275injectAttribute:Fn,\u0275\u0275invalidFactory:pl,\u0275\u0275invalidFactoryDep:d.dmw,\u0275\u0275templateRefExtractor:wI,\u0275\u0275resetView:d.Njj,\u0275\u0275HostDirectivesFeature:function e_(u){const f=_=>{const O=Array.isArray(u);null===_.hostDirectives?(_.resolveHostDirectives=Xv,_.hostDirectives=O?u.map(Yv):[u]):O?_.hostDirectives.unshift(...u.map(Yv)):_.hostDirectives.unshift(u)};return f.ngInherit=!0,f},\u0275\u0275NgOnChangesFeature:Se,\u0275\u0275ProvidersFeature:lI,\u0275\u0275CopyDefinitionFeature:function mc(u){let _,f=Wv(u.type);_=(0,d.JlV)(u)?f.\u0275cmp:f.\u0275dir;const O=u;for(const V of yb)O[V]=_[V];if((0,d.JlV)(_))for(const V of jE)O[V]=_[V]},\u0275\u0275InheritDefinitionFeature:Hf,\u0275\u0275ExternalStylesFeature:function $1(u){return f=>{u.length<1||(f.getExternalStyles=_=>u.map(V=>V+"?ngcomp"+(_?"="+encodeURIComponent(_):"")+"&e="+f.encapsulation))}},\u0275\u0275AnimationsFeature:function U1(){return()=>{(0,d.YXz)(new fx)}},\u0275\u0275nextContext:qw,\u0275\u0275namespaceHTML:d.joV,\u0275\u0275namespaceMathML:d.By9,\u0275\u0275namespaceSVG:d.qSk,\u0275\u0275enableBindings:d.cSN,\u0275\u0275disableBindings:d.fuf,\u0275\u0275elementStart:kC,\u0275\u0275elementEnd:BC,\u0275\u0275element:D_,\u0275\u0275elementContainerStart:om,\u0275\u0275elementContainerEnd:Qg,\u0275\u0275domElement:im,\u0275\u0275domElementStart:nm,\u0275\u0275domElementEnd:Yg,\u0275\u0275domElementContainer:function Mx(u,f,_){return FC(u,f,_),Ix(),Mx},\u0275\u0275domElementContainerStart:FC,\u0275\u0275domElementContainerEnd:Ix,\u0275\u0275domTemplate:function Qv(u,f,_,O,V,se,$e,nt){const ct=(0,d.OAn)(),tn=(0,d.klJ)();return Gp(ct,tn,u,f,_,O,V,(0,d.db4)(tn.consts,se),void 0,$e,nt),Qv},\u0275\u0275domListener:am,\u0275\u0275elementContainer:A_,\u0275\u0275pureFunction0:uI,\u0275\u0275pureFunction1:hI,\u0275\u0275pureFunction2:pI,\u0275\u0275pureFunction3:gI,\u0275\u0275pureFunction4:fI,\u0275\u0275pureFunction5:function G1(u,f,_,O,V,se,$e,nt){const ct=(0,d.gxQ)()+u,tn=(0,d.OAn)(),fn=od(tn,ct,_,O,V,se);return ya(tn,ct+4,$e)||fn?hh(tn,ct+5,nt?f.call(nt,_,O,V,se,$e):f(_,O,V,se,$e)):jm(tn,ct+5)},\u0275\u0275pureFunction6:function W1(u,f,_,O,V,se,$e,nt,ct){const tn=(0,d.gxQ)()+u,fn=(0,d.OAn)(),Nn=od(fn,tn,_,O,V,se);return kg(fn,tn+4,$e,nt)||Nn?hh(fn,tn+6,ct?f.call(ct,_,O,V,se,$e,nt):f(_,O,V,se,$e,nt)):jm(fn,tn+6)},\u0275\u0275pureFunction7:function z1(u,f,_,O,V,se,$e,nt,ct,tn){const fn=(0,d.gxQ)()+u,Nn=(0,d.OAn)();let ui=od(Nn,fn,_,O,V,se);return Yh(Nn,fn+4,$e,nt,ct)||ui?hh(Nn,fn+7,tn?f.call(tn,_,O,V,se,$e,nt,ct):f(_,O,V,se,$e,nt,ct)):jm(Nn,fn+7)},\u0275\u0275pureFunction8:function K1(u,f,_,O,V,se,$e,nt,ct,tn,fn){const Nn=(0,d.gxQ)()+u,ui=(0,d.OAn)(),_i=od(ui,Nn,_,O,V,se);return od(ui,Nn+4,$e,nt,ct,tn)||_i?hh(ui,Nn+8,fn?f.call(fn,_,O,V,se,$e,nt,ct,tn):f(_,O,V,se,$e,nt,ct,tn)):jm(ui,Nn+8)},\u0275\u0275pureFunctionV:function X1(u,f,_,O){return yI((0,d.OAn)(),(0,d.gxQ)(),u,f,_,O)},\u0275\u0275getCurrentView:Px,\u0275\u0275restoreView:d.eBV,\u0275\u0275listener:Kx,\u0275\u0275projection:eS,\u0275\u0275syntheticHostProperty:function Iw(u,f,_){const O=(0,d.OAn)();if(ya(O,(0,d.xbp)(),f)){const se=(0,d.klJ)(),$e=(0,d.CpD)();na($e,O,u,f,Ya((0,d.MT)(se.data),$e,O),_)}return Iw},\u0275\u0275syntheticHostListener:function N_(u,f){const _=(0,d.Mx4)(),O=(0,d.OAn)(),V=(0,d.klJ)();return zC(V,O,Ya((0,d.MT)(V.data),_,O),_,u,f),N_},\u0275\u0275pipeBind1:xI,\u0275\u0275pipeBind2:EI,\u0275\u0275pipeBind3:OI,\u0275\u0275pipeBind4:function Q1(u,f,_,O,V,se){const $e=u+d.Yw1,nt=(0,d.OAn)(),ct=(0,d.Hh6)(nt,$e);return QC(nt,$e)?CI(nt,(0,d.gxQ)(),f,ct.transform,_,O,V,se,ct):ct.transform(_,O,V,se)},\u0275\u0275pipeBindV:function Z1(u,f,_){const O=u+d.Yw1,V=(0,d.OAn)(),se=(0,d.Hh6)(V,O);return QC(V,O)?yI(V,(0,d.gxQ)(),f,se.transform,_,se):se.transform.apply(se,_)},\u0275\u0275projectionDef:Xx,\u0275\u0275domProperty:function Aw(u,f,_){const O=(0,d.OAn)();return ya(O,(0,d.xbp)(),f)&&((0,d.klJ)(),na((0,d.CpD)(),O,u,f,O[d.GpT],_)),Aw},\u0275\u0275ariaProperty:function uw(u,f){const _=(0,d.OAn)();if(ya(_,(0,d.xbp)(),f)){const V=(0,d.klJ)(),se=(0,d.CpD)();if(Yl(se,V,_,u,f))(0,d.Qs1)(se)&&mr(_,se.index);else{const nt=(0,d.d31)(se,_),ct=function Vd(u){return"-"!==u.charAt(4)?"aria-"+u.slice(4).toLowerCase():u}(u);il(_[d.GpT],nt,null,se.value,ct,f,null)}}return uw},\u0275\u0275property:Tx,\u0275\u0275pipe:bI,\u0275\u0275queryRefresh:iS,\u0275\u0275queryAdvance:function Yx(u=1){(0,d.GA0)((0,d.w7Z)()+u)},\u0275\u0275viewQuery:nS,\u0275\u0275viewQuerySignal:function sS(u,f,_,O){db(u,lb(f,_,O))},\u0275\u0275loadQuery:oS,\u0275\u0275contentQuery:tS,\u0275\u0275contentQuerySignal:function L_(u,f,_,O,V){db(f,cb(u,_,O,V))},\u0275\u0275reference:Qx,\u0275\u0275classMap:_r,\u0275\u0275styleMap:ps,\u0275\u0275styleProp:no,\u0275\u0275classProp:Yo,\u0275\u0275advance:xg,\u0275\u0275template:n_,\u0275\u0275conditional:xw,\u0275\u0275conditionalCreate:bw,\u0275\u0275conditionalBranchCreate:wx,\u0275\u0275defer:function vC(u,f,_,O,V,se,$e,nt,ct,tn){const fn=(0,d.OAn)(),Nn=(0,d.klJ)(),ui=u+d.Yw1,_i=Gp(fn,Nn,u,null,0,0),ao=fn[d.YEL];if(Nn.firstCreatePass){gl("NgDefer");const Rr={primaryTmplIndex:f,loadingTmplIndex:O??null,placeholderTmplIndex:V??null,errorTmplIndex:se??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:_??null,loadingState:$a.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:tn??0};ct?.(Nn,Rr,nt,$e),function rO(u,f,_){const O=l_(f);u.data[O]=_}(Nn,ui,Rr)}const No=fn[ui];rb(No,_i,fn);let jo=null,us=null;if(No[d.qFA]?.length>0){const Rr=No[d.qFA][0].data;us=Rr[Bt]??null,jo=Rr.s}const zo=[null,Uf.Initial,null,null,null,null,us,jo,null,null];!function OT(u,f,_){u[l_(f)]=_}(fn,ui,zo);let Er=null;null!==us&&(Er=ao.get(Os),Er.add(us,{lView:fn,tNode:_i,lContainer:No}));const Ua=()=>{KE(zo),null!==us&&Er?.cleanup([us])};s_(0,zo,()=>(0,d.DyX)(fn,Ua)),(0,d.ik5)(fn,Ua)},\u0275\u0275deferWhen:function ZO(u){const f=(0,d.OAn)(),_=(0,d.CpD)();if(Br(0,f,_)&&ya(f,(0,d.xbp)(),u)){const V=(0,m.Ht)(null);try{const se=!!u,nt=Hc(f,_)[1];!1===se&&nt===Uf.Initial?Wg(f,_):!0===se&&(nt===Uf.Initial||nt===ra.Placeholder)&&sd(0,f,_)}finally{(0,m.Ht)(V)}}},\u0275\u0275deferOnIdle:function eA(){Br(0,(0,d.OAn)(),(0,d.Mx4)())&&WO(d_)},\u0275\u0275deferOnImmediate:function tw(){const u=(0,d.OAn)(),f=(0,d.Mx4)();Br(0,u,f)&&(null===fl(u[d.eDl],f).loadingTmplIndex&&Wg(u,f),sd(0,u,f))},\u0275\u0275deferOnTimer:function ow(u){Br(0,(0,d.OAn)(),(0,d.Mx4)())&&WO(Gg(u))},\u0275\u0275deferOnHover:function CC(u,f){const _=(0,d.OAn)(),O=(0,d.Mx4)();Br(0,_,O)&&(Wg(_,O),jg(_,O,u,f,Wi,()=>sd(0,_,O),0))},\u0275\u0275deferOnInteraction:function lw(u,f){const _=(0,d.OAn)(),O=(0,d.Mx4)();Br(0,_,O)&&(Wg(_,O),jg(_,O,u,f,Si,()=>sd(0,_,O),0))},\u0275\u0275deferOnViewport:function yC(u,f){const _=(0,d.OAn)(),O=(0,d.Mx4)();Br(0,_,O)&&(Wg(_,O),jg(_,O,u,f,c_,()=>sd(0,_,O),0))},\u0275\u0275deferPrefetchWhen:function JO(u){const f=(0,d.OAn)();if(Br(1,f,(0,d.CpD)())&&ya(f,(0,d.xbp)(),u)){const V=(0,m.Ht)(null);try{const se=!!u,$e=f[d.eDl],nt=(0,d.CpD)(),ct=fl($e,nt);!0===se&&ct.loadingState===$a.NOT_STARTED&&Qf(ct,f,nt)}finally{(0,m.Ht)(V)}}},\u0275\u0275deferPrefetchOnIdle:function Yp(){Br(1,(0,d.OAn)(),(0,d.Mx4)())&&zO(d_)},\u0275\u0275deferPrefetchOnImmediate:function nw(){const u=(0,d.OAn)(),f=(0,d.Mx4)();if(!Br(1,u,f))return;const O=fl(u[d.eDl],f);O.loadingState===$a.NOT_STARTED&&gC(O,u,f)},\u0275\u0275deferPrefetchOnTimer:function sw(u){Br(1,(0,d.OAn)(),(0,d.Mx4)())&&zO(Gg(u))},\u0275\u0275deferPrefetchOnHover:function rw(u,f){const _=(0,d.OAn)(),O=(0,d.Mx4)();if(!Br(1,_,O))return;const se=fl(_[d.eDl],O);se.loadingState===$a.NOT_STARTED&&jg(_,O,u,f,Wi,()=>Qf(se,_,O),1)},\u0275\u0275deferPrefetchOnInteraction:function cw(u,f){const _=(0,d.OAn)(),O=(0,d.Mx4)();if(!Br(1,_,O))return;const se=fl(_[d.eDl],O);se.loadingState===$a.NOT_STARTED&&jg(_,O,u,f,Si,()=>Qf(se,_,O),1)},\u0275\u0275deferPrefetchOnViewport:function bC(u,f){const _=(0,d.OAn)(),O=(0,d.Mx4)();if(!Br(1,_,O))return;const se=fl(_[d.eDl],O);se.loadingState===$a.NOT_STARTED&&jg(_,O,u,f,c_,()=>Qf(se,_,O),1)},\u0275\u0275deferHydrateWhen:function qO(u){const f=(0,d.OAn)(),_=(0,d.CpD)();if(!Br(2,f,_))return;const O=(0,d.xbp)();if(Xp((0,d.klJ)(),_).set(6,null),ya(f,O,u)){const $e=f[d.YEL],nt=(0,m.Ht)(null);try{1==!!u&&Kp($e,Hc(f,_)[6])}finally{(0,m.Ht)(nt)}}},\u0275\u0275deferHydrateNever:function qT(){const u=(0,d.OAn)(),f=(0,d.Mx4)();Br(2,u,f)&&Xp((0,d.klJ)(),f).set(7,null)},\u0275\u0275deferHydrateOnIdle:function ew(){const u=(0,d.OAn)(),f=(0,d.Mx4)();Br(2,u,f)&&(Xp((0,d.klJ)(),f).set(0,null),pC(d_,u,f))},\u0275\u0275deferHydrateOnImmediate:function iw(){const u=(0,d.OAn)(),f=(0,d.Mx4)();Br(2,u,f)&&(Xp((0,d.klJ)(),f).set(1,null),Kp(u[d.YEL],Hc(u,f)[6]))},\u0275\u0275deferHydrateOnTimer:function tA(u){const f=(0,d.OAn)(),_=(0,d.Mx4)();Br(2,f,_)&&(Xp((0,d.klJ)(),_).set(5,{delay:u}),pC(Gg(u),f,_))},\u0275\u0275deferHydrateOnHover:function aw(){const u=(0,d.OAn)(),f=(0,d.Mx4)();Br(2,u,f)&&Xp((0,d.klJ)(),f).set(4,null)},\u0275\u0275deferHydrateOnInteraction:function hx(){const u=(0,d.OAn)(),f=(0,d.Mx4)();Br(2,u,f)&&Xp((0,d.klJ)(),f).set(3,null)},\u0275\u0275deferHydrateOnViewport:function dw(){const u=(0,d.OAn)(),f=(0,d.Mx4)();Br(2,u,f)&&Xp((0,d.klJ)(),f).set(2,null)},\u0275\u0275deferEnableTimerScheduling:function mO(u,f,_,O){const V=u.consts;null!=_&&(f.placeholderBlockConfig=(0,d.db4)(V,_)),null!=O&&(f.loadingBlockConfig=(0,d.db4)(V,O)),null===cC&&(cC=zf)},\u0275\u0275repeater:Sw,\u0275\u0275repeaterCreate:Sx,\u0275\u0275repeaterTrackByIndex:function MC(u){return u},\u0275\u0275repeaterTrackByIdentity:tm,\u0275\u0275componentInstance:function xx(){return(0,d.OAn)()[d.b5C][d.SKP]},\u0275\u0275text:VA,\u0275\u0275textInterpolate:hS,\u0275\u0275textInterpolate1:t0,\u0275\u0275textInterpolate2:pS,\u0275\u0275textInterpolate3:gS,\u0275\u0275textInterpolate4:fS,\u0275\u0275textInterpolate5:function QA(u,f,_,O,V,se,$e,nt,ct,tn,fn){const Nn=(0,d.OAn)(),ui=zA(Nn,u,f,_,O,V,se,$e,nt,ct,tn,fn);return ui!==br&&Zp(Nn,(0,d._px)(),ui),QA},\u0275\u0275textInterpolate6:mS,\u0275\u0275textInterpolate7:function ZA(u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui,_i,ao){const No=(0,d.OAn)(),jo=XA(No,u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui,_i,ao);return jo!==br&&Zp(No,(0,d._px)(),jo),ZA},\u0275\u0275textInterpolate8:function JA(u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui,_i,ao,No,jo){const us=(0,d.OAn)(),zo=YA(us,u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui,_i,ao,No,jo);return zo!==br&&Zp(us,(0,d._px)(),zo),JA},\u0275\u0275textInterpolateV:function _S(u){const f=(0,d.OAn)(),_=$A(f,u);return _!==br&&Zp(f,(0,d._px)(),_),_S},\u0275\u0275i18n:function PA(u,f,_){Xw(u,f,_),Yw()},\u0275\u0275i18nAttributes:function Qw(u,f){const _=(0,d.klJ)(),O=(0,d.db4)(_.consts,f);!function yA(u,f,_){const V=(0,d.Mx4)().index,se=[];if(u.firstCreatePass&&null===u.data[f]){for(let $e=0;$e<_.length;$e+=2){const nt=_[$e],ct=_[$e+1];if(""!==ct){if(_A.test(ct))throw new Error(`ICU expressions are not supported in attributes. Message: "${ct}".`);F_(se,ct,V,nt,bA(se),null)}}u.data[f]=se}}(_,u+d.Yw1,O)},\u0275\u0275i18nExp:function zx(u){return function kw(u){u&&(M_|=1<<Math.min(Qp,31)),Qp++}(ya((0,d.OAn)(),(0,d.xbp)(),u)),zx},\u0275\u0275i18nStart:Xw,\u0275\u0275i18nEnd:Yw,\u0275\u0275i18nApply:function Zw(u){!function $C(u,f,_){if(Qp>0){const O=u.data[_];Bw(u,f,Array.isArray(O)?O:O.update,(0,d.c$7)()-Qp-1,M_)}M_=0,Qp=0}((0,d.klJ)(),(0,d.OAn)(),u+d.Yw1)},\u0275\u0275i18nPostprocess:function Jw(u,f={}){return function MA(u,f={}){let _=u;if(SA.test(u)){const O={},V=[0];_=_.replace(zw,(se,$e,nt)=>{const ct=$e||nt,tn=O[ct]||[];if(tn.length||(ct.split("|").forEach(No=>{const jo=No.match(IA),us=jo?parseInt(jo[1],10):0,zo=AA.test(No);tn.push([us,zo,No])}),O[ct]=tn),!tn.length)throw new Error(`i18n postprocess: unmatched placeholder - ${ct}`);const fn=V[V.length-1];let Nn=0;for(let No=0;No<tn.length;No++)if(tn[No][0]===fn){Nn=No;break}const[ui,_i,ao]=tn[Nn];return _i?V.pop():fn!==ui&&V.push(ui),tn.splice(Nn,1),ao})}return Object.keys(f).length&&(_=_.replace(DA,(O,V,se,$e,nt,ct)=>f.hasOwnProperty(se)?`${V}${f[se]}${ct}`:O),_=_.replace(Kw,(O,V)=>f.hasOwnProperty(V)?f[V]:O),_=_.replace(TA,(O,V)=>{if(f.hasOwnProperty(V)){const se=f[V];if(!se.length)throw new Error(`i18n postprocess: unmatched ICU - ${O} with key: ${V}`);return se.shift()}return O})),_}(u,f)},\u0275\u0275resolveWindow:kc,\u0275\u0275resolveDocument:Aa,\u0275\u0275resolveBody:function Ep(u){return u.ownerDocument.body},\u0275\u0275setComponentScope:cI,\u0275\u0275setNgModuleScope:function j1(u,f){return k(()=>{const _=(0,d.WbQ)(u);_.declarations=n0(f.declarations||d.Mlv),_.imports=n0(f.imports||d.Mlv),_.exports=n0(f.exports||d.Mlv),f.bootstrap&&(_.bootstrap=n0(f.bootstrap)),Zl.registerNgModule(u,f)})},\u0275\u0275registerNgModuleType:pT,\u0275\u0275getComponentDepsFactory:function J1(u,f){return()=>{try{return Zl.getComponentDependencies(u,f).dependencies}catch(_){throw console.error(`Computing dependencies in local compilation mode for the component "${u.name}" failed with the exception:`,_),_}}},\u0275setClassDebugInfo:function q1(u,f){const _=(0,d.xUg)(u);null!==_&&(_.debugInfo=f)},\u0275\u0275declareLet:function tI(u){const f=(0,d.klJ)(),_=(0,d.OAn)(),O=u+d.Yw1,V=Kh(f,O,128,null,null);return(0,d.iMd)(V,!1),(0,d.M_e)(f,_,O,eI),tI},\u0275\u0275storeLet:function A1(u){gl("NgLet");const f=(0,d.klJ)(),_=(0,d.OAn)(),O=(0,d._px)();return(0,d.M_e)(f,_,O,u),u},\u0275\u0275readContextLet:function I1(u){const f=(0,d.VPL)(),_=(0,d.Hh6)(f,d.Yw1+u);if(_===eI)throw new d.buA(314,!1);return _},\u0275\u0275attachSourceLocations:function M1(u,f){const _=(0,d.klJ)(),O=(0,d.OAn)(),V=O[d.GpT],se="data-ng-source-location";for(const[$e,nt,ct,tn]of f){(0,d.XRZ)(_,$e+d.Yw1);const Nn=(0,d.vaC)($e+d.Yw1,O);Nn.hasAttribute(se)||V.setAttribute(Nn,se,`${u}@o:${nt},l:${ct},c:${tn}`)}},\u0275\u0275interpolate:nI,\u0275\u0275interpolate1:iI,\u0275\u0275interpolate2:oI,\u0275\u0275interpolate3:sI,\u0275\u0275interpolate4:rI,\u0275\u0275interpolate5:function P1(u,f,_,O,V,se,$e,nt,ct,tn,fn=""){return zA((0,d.OAn)(),u,f,_,O,V,se,$e,nt,ct,tn,fn)},\u0275\u0275interpolate6:function R1(u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui=""){return KA((0,d.OAn)(),u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui)},\u0275\u0275interpolate7:function k1(u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui,_i,ao=""){return XA((0,d.OAn)(),u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui,_i,ao)},\u0275\u0275interpolate8:function B1(u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui,_i,ao,No,jo=""){return YA((0,d.OAn)(),u,f,_,O,V,se,$e,nt,ct,tn,fn,Nn,ui,_i,ao,No,jo)},\u0275\u0275interpolateV:function F1(u){return $A((0,d.OAn)(),u)},\u0275\u0275sanitizeHtml:wo,\u0275\u0275sanitizeStyle:function Ds(u){const f=ju();return f?f.sanitize(to.STYLE,u)||"":zc(u,"Style")?Vl(u):(0,d.eFE)(u)},\u0275\u0275sanitizeResourceUrl:Qr,\u0275\u0275sanitizeScript:function sa(u){const f=ju();if(f)return Mc(f.sanitize(to.SCRIPT,u)||"");if(zc(u,"Script"))return Mc(Vl(u));throw new d.buA(905,!1)},\u0275\u0275sanitizeUrl:kr,\u0275\u0275sanitizeUrlOrResourceUrl:yp,\u0275\u0275trustConstantHtml:function Zr(u){return lc(u[0])},\u0275\u0275trustConstantResourceUrl:function cc(u){return function Pu(u){return Zd()?.createScriptURL(u)||u}(u[0])},\u0275\u0275validateIframeAttribute:function jp(u,f,_){const O=(0,d.OAn)(),V=(0,d.CpD)(),se=(0,d.d31)(V,O);if(2===V.type&&"iframe"===f.toLowerCase()){const $e=se;throw $e.src="",$e.srcdoc=lc(""),Fc(O[d.GpT],$e),new d.buA(-910,!1)}return u},forwardRef:d.Rfq,resolveForwardRef:d.nl4,\u0275\u0275twoWayProperty:vS,\u0275\u0275twoWayBindingSet:qA,\u0275\u0275twoWayListener:CS,\u0275\u0275replaceMetadata:function tP(u,f,_,O,V=null,se=null){const $e=(0,d.xUg)(u);f.apply(null,[u,_,...O]);const{newDef:nt,oldDef:ct}=function nP(u,f){const _={...u};return{newDef:Object.assign(u,f,{directiveDefs:_.directiveDefs,pipeDefs:_.pipeDefs,setInput:_.setInput,type:_.type}),oldDef:_}}($e,(0,d.xUg)(u));if(u[d.CQl]=nt,ct.tView){const tn=function Vs(){return Bn}().values();for(const fn of tn)(0,d.EFk)(fn)&&null===fn[d.f7T]&&o0(V,se,nt,ct,fn)}},\u0275\u0275getReplaceMetadataURL:function eP(u,f,_){const O=`./@ng/component?c=${u}&t=${encodeURIComponent(f)}`;return new URL(O,_).href}};let H_=null;function aP(u){null!==H_&&(u.defaultEncapsulation!==H_.defaultEncapsulation||u.preserveWhitespaces!==H_.preserveWhitespaces)||(H_=u)}const ZC=[];function MI(u){return xv(u)?u.ngModule:u}const AS=x("NgModule",u=>u,void 0,0,(u,f)=>function dP(u,f={}){(function uP(u,f){const O=(0,d.Bqz)(f.declarations||d.Mlv);let V=null;Object.defineProperty(u,d.hmW,{configurable:!0,get:()=>(null===V&&(V=M().compileNgModule(qg,`ng:///${u.name}/\u0275mod.js`,{type:u,bootstrap:(0,d.Bqz)(f.bootstrap||d.Mlv).map(d.nl4),declarations:O.map(d.nl4),imports:(0,d.Bqz)(f.imports||d.Mlv).map(d.nl4).map(MI),exports:(0,d.Bqz)(f.exports||d.Mlv).map(d.nl4).map(MI),schemas:f.schemas?(0,d.Bqz)(f.schemas):null,id:f.id||null}),V.schemas||(V.schemas=[])),V)});let se=null;Object.defineProperty(u,d.zSs,{get:()=>{if(null===se){const nt=M();se=nt.compileFactory(qg,`ng:///${u.name}/\u0275fac.js`,{name:u.name,type:u,deps:Yi(u),target:nt.FactoryTarget.NgModule,typeArgumentCount:0})}return se},configurable:!1});let $e=null;Object.defineProperty(u,d.ONQ,{get:()=>{if(null===$e){const nt={name:u.name,type:u,providers:f.providers||d.Mlv,imports:[(f.imports||d.Mlv).map(d.nl4),(f.exports||d.Mlv).map(d.nl4)]};$e=M().compileInjector(qg,`ng:///${u.name}/\u0275inj.js`,nt)}return $e},configurable:!1})})(u,f),void 0!==f.id&&pT(u,f.id),function cP(u,f){ZC.push({moduleType:u,ngModule:f})}(u,f)}(u,f));class U_{ngModuleFactory;componentFactories;constructor(f,_){this.ngModuleFactory=f,this.componentFactories=_}}let ap=(()=>{class u{compileModuleSync(_){return new Bv(_)}compileModuleAsync(_){return Promise.resolve(this.compileModuleSync(_))}compileModuleAndAllComponentsSync(_){const O=this.compileModuleSync(_),se=Gl((0,d.phH)(_).declarations).reduce(($e,nt)=>{const ct=(0,d.xUg)(nt);return ct&&$e.push(new kf(ct)),$e},[]);return new U_(O,se)}compileModuleAndAllComponentsAsync(_){return Promise.resolve(this.compileModuleAndAllComponentsSync(_))}clearCache(){}clearCacheFor(_){}getModuleId(_){}static \u0275fac=function(O){return new(O||u)};static \u0275prov=(0,d.jDH)({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();const eg=new d.nKC("");class mh{}let mP=(()=>{class u{zone=(0,d.WQX)(aa);changeDetectionScheduler=(0,d.WQX)(d.hk6);applicationRef=(0,d.WQX)(f_);applicationErrorHandler=(0,d.WQX)(d.ZTf);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(_){this.applicationErrorHandler(_)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(O){return new(O||u)};static \u0275prov=(0,d.jDH)({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();const GI=new d.nKC("",{factory:()=>!1});function IS({ngZoneFactory:u,ignoreChangesOutsideZone:f,scheduleInRootZone:_}){return u??=()=>new aa({...xc(),scheduleInRootZone:_}),[{provide:aa,useFactory:u},{provide:d.Z63,multi:!0,useFactory:()=>{const O=(0,d.WQX)(mP,{optional:!0});return()=>O.initialize()}},{provide:d.Z63,multi:!0,useFactory:()=>{const O=(0,d.WQX)(WI);return()=>{O.initialize()}}},!0===f?{provide:d.Jy$,useValue:!0}:[],{provide:d.AQb,useValue:_??Wf},{provide:d.ZTf,useFactory:()=>{const O=(0,d.WQX)(aa),V=(0,d.WQX)(d.uvJ);let se;return $e=>{O.runOutsideAngular(()=>{V.destroyed&&!se?setTimeout(()=>{throw $e}):(se??=V.get(d.zcH),se.handleError($e))})}}}]}function xc(u){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:u?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:u?.runCoalescing??!1}}let WI=(()=>{class u{subscription=new C.yU;initialized=!1;zone=(0,d.WQX)(aa);pendingTasks=(0,d.WQX)(d.rev);initialize(){if(this.initialized)return;this.initialized=!0;let _=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(_=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{aa.assertNotInAngularZone(),queueMicrotask(()=>{null!==_&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(_),_=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{aa.assertInAngularZone(),_??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(O){return new(O||u)};static \u0275prov=(0,d.jDH)({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),Ou=(()=>{class u{applicationErrorHandler=(0,d.WQX)(d.ZTf);appRef=(0,d.WQX)(f_);taskService=(0,d.WQX)(d.rev);ngZone=(0,d.WQX)(aa);zonelessEnabled=(0,d.WQX)(d.Evm);tracing=(0,d.WQX)(r_,{optional:!0});disableScheduling=(0,d.WQX)(d.Jy$,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new C.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(a_):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&((0,d.WQX)(d.AQb,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof iC||!this.zoneIsDefined)}notify(_){if(!this.zonelessEnabled&&5===_)return;let O=!1;switch(_){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:case 13:this.appRef.dirtyFlags|=2,O=!0;break;case 12:this.appRef.dirtyFlags|=16,O=!0;break;case 11:O=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(O))return;const V=this.useMicrotaskScheduler?QE:YE;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>V(()=>this.tick())):this.ngZone.runOutsideAngular(()=>V(()=>this.tick()))}shouldScheduleTick(_){return!(this.disableScheduling&&!_||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(a_+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const _=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(O){this.taskService.remove(_),this.applicationErrorHandler(O)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,QE(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(_)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const _=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(_)}}static \u0275fac=function(O){return new(O||u)};static \u0275prov=(0,d.jDH)({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();const MS=new d.nKC("",{providedIn:"root",factory:()=>(0,d.WQX)(MS,{optional:!0,skipSelf:!0})||function Uo(){return typeof $localize<"u"&&$localize.locale||VC}()}),KI=new d.nKC("",{providedIn:"root",factory:()=>"USD"})},4308:(En,it,p)=>{"use strict";p.d(it,{A:()=>M});var S=p(1973),d=p(5704),m=p(5944),T=p(3090),C=p(1830),e=p(9012),k=p(4481),w=p(7080);const j="dx-buttongroup-item-has-width",X={contained:"dx-buttongroup-mode-contained",outlined:"dx-buttongroup-mode-outlined",text:"dx-buttongroup-mode-text"},U=k.A.inherit({_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({item:new m.U((H,J,R)=>{this._prepareItemStyles(H);const L=this.option("buttonTemplate");this._createComponent(H,e.A,(0,T.X)({},R,J,this._getBasicButtonOptions(),{_templateData:this._hasCustomTemplate(L)?R:{},template:R.template||L}))},["text","type","icon","disabled","visible","hint"],this.option("integrationOptions.watchMethod"))})},_getBasicButtonOptions(){return{focusStateEnabled:!1,onClick:null,hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode")}},_getDefaultOptions(){return(0,T.X)(this.callBase(),{itemTemplateProperty:null})},_hasCustomTemplate(H){return(0,C.Tn)(H)||this.option("integrationOptions.templates")[H]},_selectedItemClass:()=>"dx-item-selected dx-state-selected",_prepareItemStyles(H){const J=H.data("dxItemIndex");0===J&&H.addClass("dx-buttongroup-first-item");const R=this.option("items");R&&J===R.length-1&&H.addClass("dx-buttongroup-last-item"),H.addClass("dx-shape-standard")},_renderItemContent(H){return H.container=(0,d.A)(H.container).parent(),this.callBase(H)},_setAriaSelectionAttribute(H,J){this.setAria("pressed",J,H)},_renderItemContentByNode(H,J){return H.container=(0,d.A)(H.container.children().first()),this.callBase(H,J)},_focusTarget(){return this.$element().parent()},_keyboardEventBindingTarget(){return this._focusTarget()},_refreshContent(){this._prepareContent(),this._renderContent()},_itemClass:()=>"dx-buttongroup-item",_itemSelectHandler(H){"single"===this.option("selectionMode")&&this.isItemSelected(H.currentTarget)||this.callBase(H)}}),Z=w.A.inherit({_getDefaultOptions(){return(0,T.X)(this.callBase(),{hoverStateEnabled:!0,focusStateEnabled:!0,selectionMode:"single",selectedItems:[],selectedItemKeys:[],stylingMode:"contained",keyExpr:"text",items:[],buttonTemplate:"content",onSelectionChanged:null,onItemClick:null})},_init(){this.callBase(),this._createItemClickAction()},_createItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")},_initMarkup(){this.setAria("role","group"),this.$element().addClass("dx-buttongroup"),this._renderStylingMode(),this._renderButtons(),this._syncSelectionOptions(),this.callBase()},_renderStylingMode(){const{stylingMode:H}=this.option();for(const J in X)this.$element().removeClass(X[J]);this.$element().addClass(X[H]??X.contained)},_fireSelectionChangeEvent(H,J){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:H,removedItems:J})},_renderButtons(){const H=(0,d.A)("<div>").addClass("dx-buttongroup-wrapper").appendTo(this.$element()),J=this.option("selectedItems"),R={selectionMode:this.option("selectionMode"),items:this.option("items"),keyExpr:this.option("keyExpr"),buttonTemplate:this.option("buttonTemplate"),scrollingEnabled:!1,selectedItemKeys:this.option("selectedItemKeys"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode"),accessKey:this.option("accessKey"),tabIndex:this.option("tabIndex"),noDataText:"",selectionRequired:!1,onItemRendered:L=>{const G=this.option("width");(0,C.O9)(G)&&(0,d.A)(L.itemElement).addClass(j)},onSelectionChanged:L=>{this._syncSelectionOptions(),this._fireSelectionChangeEvent(L.addedItems,L.removedItems)},onItemClick:L=>{this._itemClickAction(L)}};(0,C.O9)(J)&&J.length&&(R.selectedItems=J),this._buttonsCollection=this._createComponent(H,U,R)},_syncSelectionOptions(){this._setOptionWithoutOptionChange("selectedItems",this._buttonsCollection.option("selectedItems")),this._setOptionWithoutOptionChange("selectedItemKeys",this._buttonsCollection.option("selectedItemKeys"))},_optionChanged(H){switch(H.name){case"stylingMode":case"selectionMode":case"keyExpr":case"buttonTemplate":case"items":case"activeStateEnabled":case"focusStateEnabled":case"hoverStateEnabled":case"tabIndex":this._invalidate();break;case"selectedItemKeys":case"selectedItems":this._buttonsCollection.option(H.name,H.value);break;case"onItemClick":this._createItemClickAction();break;case"onSelectionChanged":break;case"width":this.callBase(H),this._buttonsCollection.itemElements().toggleClass(j,!!H.value);break;default:this.callBase(H)}}});(0,S.A)("dxButtonGroup",Z);const M=Z},4312:(En,it,p)=>{"use strict";p.d(it,{D:()=>B});var S=p(2925),d=p(1614),m=p(6104),T=p(3176),C=p(5340),e=p(5050),k=p(3746),w=p(656),P=p(65),v=p(3008),x=p(7543),b=p(8375);let B=(()=>{var j;class F{constructor(U,Z,A,M,H,J,R){this.chatRoomService=U,this.propertyConverter=Z,this.scopeService=A,this.http=M,this.chatRelayService=H,this.authenticationService=J,this.keepAliveService=R,this.firstRun=!0,this.cacheUpdatedSource=new m.B,this.cacheUpdated$=this.cacheUpdatedSource.asObservable(),this.subscriptions=[],this.fetchingRoomsDataPromise=null,this.fetchingCacheDataPromise=null,this.scope=this.scopeService.getScope(),this.database=new T.h(this.scope.currentScope.chapter.id,this.scope.network.id),this.registerSubscriptions(new Date),F.instanceCount++}getArrayStore(){return null!=this.store?(this.isCorrupted().then(U=>{U&&this.rebuildCacheAndGetArrayStore(this,"Corrupt on init")}),this.cacheUpdatedSource.next(this.store),new Promise((U,Z)=>{U(this.store)})):this.database.chatRooms.count().then(U=>{if(U>0)return this.isCorrupted().then(A=>{A&&this.rebuildCacheAndGetArrayStore(this,"Corrupt on crc check")}),this.database.chatRooms.toArray().then(A=>{var M=A.map(H=>JSON.parse(H.jsonValue));return this.store=new d.A({key:"id",data:M,onLoaded:H=>this.propertyConverter.convert(H)}),this.cacheUpdatedSource.next(this.store),this.store});{let A=`${this.scope.apiEndpoint}chatRoomsFast/GetChatRoomList`;var Z=new Date;return this.http.get(A).toPromise().then(M=>{let H=[];return M?.value.map(J=>H.push({value:J,id:J.id.valueOf(),synchStartedOn:Z,synchCompletedOn:new Date,jsonValue:JSON.stringify(J),hashGuid:J.hashGuid?.valueOf()})),H.forEach(J=>{J.value.id=J.value.id.toString()}),H}).then(M=>this.database.chatRooms.bulkAdd(M).then(H=>{var J=M.map(R=>JSON.parse(R.jsonValue));return this.store=new d.A({key:"id",data:J,onLoaded:R=>this.propertyConverter.convert(R)}),this.cacheUpdatedSource.next(this.store),this.store}))}})}registerSubscriptions(U){this.subscriptions.push(this.authenticationService.isAuthenticated$.subscribe(Z=>{Z&&this.firstRun?(this.firstRun=!1,this.rebuildCacheAndGetArrayStore(this,"authenticationService.isAuthenticated$ auth & this.firstRun").then(A=>console.log("resolved rebuildCacheAndGetArrayStore()",A))):this.isCorrupted().then(A=>{A&&this.rebuildCacheAndGetArrayStore(this,"authenticationService.isAuthenticated$ not auth & this.firstRun but corrupt")})})),this.subscriptions.push(this.keepAliveService.isResumed$.subscribe(Z=>{Z&&this.isCorrupted().then(A=>{A&&this.rebuildCacheAndGetArrayStore(this.keepAliveService,"resume").then()})})),this.subscriptions.push(this.chatRelayService.roomDeleted$.subscribe(Z=>{this.store.push([{type:"remove",key:Z.id}]),this.database.chatRooms.delete(Z.id).then(A=>{console.log("Room deleted")}),this.database.chatMessages.where("parentId").equals(Z.id).delete()}),this.chatRelayService.roomCreated$.subscribe(Z=>{this.store.byKey(new S.A(Z.id)).then(A=>{A||(console.log("User is likely added",Z,this),this.rebuildCacheAndGetArrayStore(this,"chatRelayService.roomCreated$ on room created message"))})}),this.chatRelayService.msgReceived$.subscribe(Z=>{try{this.chatRoomService.getRoom(Z.roomId).toPromise().then(A=>{A&&(this.propertyConverter.convert(A),this.store.load().then(M=>{try{M.any(H=>H?.id.toString()==A?.id.toString())?(this.store.push([{type:"update",data:A,key:A.id}]),this.database.chatRooms.update(Z.roomId,{value:A,id:A.id.valueOf(),synchStartedOn:U,synchCompletedOn:new Date,jsonValue:JSON.stringify(A)})):(this.store.push([{type:"insert",data:A}]),this.database.chatRooms.add({value:A,id:A.id.valueOf(),synchStartedOn:U,synchCompletedOn:new Date,jsonValue:JSON.stringify(A)},Z.roomId))}catch{console.error("Error on msg receive",Z,A,M,this)}}))})}catch(A){console.error("cRoomCache msg received error",Z,A,this),this.rebuildCacheAndGetArrayStore(this,"chatRelayService.msgReceived$ error updating local stores")}}),this.chatRelayService.msgUpdated$.subscribe(Z=>{try{this.chatRoomService.getRoom(Z.roomId).subscribe(A=>{this.store.push([{type:"update",data:A,key:Z.roomId}]),this.database.chatRooms.update(Z.roomId,{value:A,id:A.id.valueOf(),synchStartedOn:U,synchCompletedOn:new Date,jsonValue:JSON.stringify(A)})})}catch(A){console.error(this,A),this.isCorrupted().then(M=>{M&&this.rebuildCacheAndGetArrayStore(this,"chatRelayService.msgUpdated$ error abd corrupt local store")})}}),this.chatRelayService.msgDeleted$.subscribe(Z=>{this.chatRoomService.getRoom(Z.roomId).subscribe(A=>{this.store.push([{type:"update",data:A,key:Z.roomId}]),this.database.chatRooms.update(Z.roomId,{value:A,id:A.id.valueOf(),synchStartedOn:U,synchCompletedOn:new Date,jsonValue:JSON.stringify(A)})})}))}rebuildCacheAndGetArrayStore(U,Z=null){console.log("Rebuild cache called from",U,Z);let A=`${this.scope.apiEndpoint}chatRoomsFast/GetChatRoomList`;const M=new Date;return this.fetchingCacheDataPromise||(this.fetchingCacheDataPromise=this.http.get(A).toPromise().then(H=>{let J=[];return H?.value.forEach(R=>{J.push({value:R,id:R.id.valueOf(),synchStartedOn:M,synchCompletedOn:new Date,jsonValue:JSON.stringify(R),hashGuid:R.hashGuid?.valueOf()})}),J.forEach(R=>{R.value.id=R.value.id.toString()}),J}).then(H=>this.authenticationService.expireToken(this).then(()=>this.database.chatRooms.clear()).then(()=>this.database.chatRooms.bulkAdd(H)).then(()=>{const J=H.map(R=>JSON.parse(R.jsonValue));return this.store=new d.A({key:"id",data:J,onLoaded:R=>this.propertyConverter.convert(R)}),this.cacheUpdatedSource.next(this.store),this.fetchingCacheDataPromise=null,this.store}))),this.fetchingCacheDataPromise}isCorrupted(){return this.fetchingRoomsDataPromise||(this.fetchingRoomsDataPromise=this.http.get(`${this.scope.apiEndpoint}chatRoomsFast/GetChatRoomList`).toPromise().then(Z=>{let A=Z?.value.length;return this.getArrayStore().then(M=>M.load().then(H=>{this.fetchingRoomsDataPromise=null;let J=new Set(Z?.value.select(z=>z.lastMessage?.id?.valueOf()??"")),L=new Set(H.select(z=>z.lastMessage?.id?.valueOf()??"")).except(J).any();return H.length!=A||L}))})),this.fetchingRoomsDataPromise}dropBackendCache(U){return this.http.get(this.scopeService.getScope().apiEndpoint+"chatMessagesFast/IsMyMembershipActive/"+U.toString()).toPromise().then(Z=>(Z&&console.log("Cache eviction call"),Z))}static#e=j=()=>(this.instanceCount=0,this.\u0275fac=function(Z){return new(Z||F)(w.KVO(C.A),w.KVO(e.A),w.KVO(k.A),w.KVO(P.Qq),w.KVO(v.p),w.KVO(x.u),w.KVO(b.S))},this.\u0275prov=w.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}))}return j(),F})()},4356:(En,it,p)=>{"use strict";p.d(it,{A:()=>d});const d=function(m){let T,C=function(){return T=m.apply(this,arguments),C=function(){return T},T};return function(){return C.apply(this,arguments)}}},4418:(En,it,p)=>{"use strict";function S(d){return"function"==typeof d}p.d(it,{T:()=>S})},4451:(En,it,p)=>{"use strict";p.d(it,{s2:()=>X,vu:()=>P});var S=p(3538),d=p(4859),m=p(1832),T=p(5973),C=p(9293),e=p(9209),k=p(1208),w=p(6211);const P="dxactive",B=S.A.inherit({ctor:function(U,Z){this._timeout=U,this._fire=Z},start:function(){const U=this;this._schedule(function(){U.force()})},_schedule:function(U){this.stop(),this._timer=setTimeout(U,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}});let j;const F=k.A.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new B(0,d.lQ),this._inactive=new B(0,d.lQ)},configure:function(U,Z){switch(Z){case"dxactive":U.activeTimeout=U.timeout;break;case"dxinactive":U.inactiveTimeout=U.timeout}this.callBase(U)},start:function(U){if(j){const Z=(0,m.gR)(this.getElement().get(0),j.getElement().get(0)),A=!j._active.fired();if(Z&&A)return void this._cancel();j._inactive.force()}j=this,this._initEvents(U),this._active.start()},_initEvents:function(U){const Z=this,A=this._getEmitterTarget(U),M=(0,C.Er)(U),J=T.A.isSimulator()||!M,R=(0,d.YD)(this.activeTimeout,30),L=(0,d.YD)(this.inactiveTimeout,400);this._active=new B(J?R:0,function(){Z._fireEvent("dxactive",U,{target:A})}),this._inactive=new B(J?L:0,function(){Z._fireEvent("dxinactive",U,{target:A}),j=null})},cancel:function(U){this.end(U)},end:function(U){const Z=U.type!==e.A.up;Z?this._active.stop():this._active.force(),this._inactive.start(),Z&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),j===this&&(j=null),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),j=null,this._cancel(),this._inactive.force.bind(this._inactive)}});F.lock=function(U){const Z=j?j.lockInactive():d.lQ;U.done(Z)},(0,w.A)({emitter:F,events:["dxactive","dxinactive"]});const X=F.lock},4481:(En,it,p)=>{"use strict";p.d(it,{A:()=>d});const d=p(1129).A},4500:(En,it,p)=>{"use strict";p.d(it,{Ms:()=>X,vU:()=>b});var S=p(4418),d=p(2029),m=p(2493),T=p(6379),C=p(262);const e=P("C",void 0,void 0);function P(H,J,R){return{kind:H,value:J,error:R}}var v=p(6171),x=p(2895);class b extends d.yU{constructor(J){super(),this.isStopped=!1,J?(this.destination=J,(0,d.Uv)(J)&&J.add(this)):this.destination=M}static create(J,R,L){return new X(J,R,L)}next(J){this.isStopped?A(function w(H){return P("N",H,void 0)}(J),this):this._next(J)}error(J){this.isStopped?A(function k(H){return P("E",void 0,H)}(J),this):(this.isStopped=!0,this._error(J))}complete(){this.isStopped?A(e,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(J){this.destination.next(J)}_error(J){try{this.destination.error(J)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const B=Function.prototype.bind;function j(H,J){return B.call(H,J)}class F{constructor(J){this.partialObserver=J}next(J){const{partialObserver:R}=this;if(R.next)try{R.next(J)}catch(L){U(L)}}error(J){const{partialObserver:R}=this;if(R.error)try{R.error(J)}catch(L){U(L)}else U(J)}complete(){const{partialObserver:J}=this;if(J.complete)try{J.complete()}catch(R){U(R)}}}class X extends b{constructor(J,R,L){let G;if(super(),(0,S.T)(J)||!J)G={next:J??void 0,error:R??void 0,complete:L??void 0};else{let Q;this&&m.$.useDeprecatedNextContext?(Q=Object.create(J),Q.unsubscribe=()=>this.unsubscribe(),G={next:J.next&&j(J.next,Q),error:J.error&&j(J.error,Q),complete:J.complete&&j(J.complete,Q)}):G=J}this.destination=new F(G)}}function U(H){m.$.useDeprecatedSynchronousErrorHandling?(0,x.l)(H):(0,T.m)(H)}function A(H,J){const{onStoppedNotification:R}=m.$;R&&v.f.setTimeout(()=>R(H,J))}const M={closed:!0,next:C.l,error:function Z(H){throw H},complete:C.l}},4520:(En,it,p)=>{"use strict";function S(d){const T=d(C=>{Error.call(C),C.stack=(new Error).stack});return T.prototype=Object.create(Error.prototype),T.prototype.constructor=T,T}p.d(it,{L:()=>S})},4526:(En,it,p)=>{"use strict";p.d(it,{W:()=>T});var S=p(8621),d=p(6111),m=p(9867);function T(C){return(0,m.N)((e,k)=>{let v,w=null,P=!1;w=e.subscribe((0,d._)(k,void 0,void 0,x=>{v=(0,S.Tg)(C(x,T(C)(e))),w?(w.unsubscribe(),w=null,v.subscribe(k)):P=!0})),P&&(w.unsubscribe(),w=null,v.subscribe(k))})}},4539:(En,it,p)=>{"use strict";p.d(it,{L:()=>k,e:()=>e});var S=p(656),d=p(4303),m=p(9012),T=p(3349);const C=["*"];let e=(()=>{class w extends T.ic{instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(v){this._setOption("accessKey",v)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(v){this._setOption("activeStateEnabled",v)}get disabled(){return this._getOption("disabled")}set disabled(v){this._setOption("disabled",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(v){this._setOption("focusStateEnabled",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get hint(){return this._getOption("hint")}set hint(v){this._setOption("hint",v)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(v){this._setOption("hoverStateEnabled",v)}get icon(){return this._getOption("icon")}set icon(v){this._setOption("icon",v)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(v){this._setOption("rtlEnabled",v)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(v){this._setOption("stylingMode",v)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(v){this._setOption("tabIndex",v)}get template(){return this._getOption("template")}set template(v){this._setOption("template",v)}get text(){return this._getOption("text")}set text(v){this._setOption("text",v)}get type(){return this._getOption("type")}set type(v){this._setOption("type",v)}get useSubmitBehavior(){return this._getOption("useSubmitBehavior")}set useSubmitBehavior(v){this._setOption("useSubmitBehavior",v)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(v){this._setOption("validationGroup",v)}get visible(){return this._getOption("visible")}set visible(v){this._setOption("visible",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}onClick;onContentReady;onDisposing;onInitialized;onOptionChanged;accessKeyChange;activeStateEnabledChange;disabledChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;iconChange;rtlEnabledChange;stylingModeChange;tabIndexChange;templateChange;textChange;typeChange;useSubmitBehaviorChange;validationGroupChange;visibleChange;widthChange;constructor(v,x,b,B,j,F,X){super(v,x,b,B,F,X),this._createEventEmitters([{subscribe:"click",emit:"onClick"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"iconChange"},{emit:"rtlEnabledChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"templateChange"},{emit:"textChange"},{emit:"typeChange"},{emit:"useSubmitBehaviorChange"},{emit:"validationGroupChange"},{emit:"visibleChange"},{emit:"widthChange"}]),j.setHost(this)}_createInstance(v,x){return new m.A(v,x)}ngOnDestroy(){this._destroyWidget()}static \u0275fac=function(x){return new(x||w)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:w,selectors:[["dx-button"]],inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",icon:"icon",rtlEnabled:"rtlEnabled",stylingMode:"stylingMode",tabIndex:"tabIndex",template:"template",text:"text",type:"type",useSubmitBehavior:"useSubmitBehavior",validationGroup:"validationGroup",visible:"visible",width:"width"},outputs:{onClick:"onClick",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",iconChange:"iconChange",rtlEnabledChange:"rtlEnabledChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",templateChange:"templateChange",textChange:"textChange",typeChange:"typeChange",useSubmitBehaviorChange:"useSubmitBehaviorChange",validationGroupChange:"validationGroupChange",visibleChange:"visibleChange",widthChange:"widthChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH]),d.Vt3],ngContentSelectors:C,decls:1,vars:0,template:function(x,b){1&x&&(d.NAR(),d.SdG(0))},encapsulation:2})}return w})(),k=(()=>{class w{static \u0275fac=function(x){return new(x||w)};static \u0275mod=d.$C({type:w});static \u0275inj=S.G2t({imports:[T.p_,T.xZ,T.xZ]})}return w})()},4602:(En,it,p)=>{"use strict";p.d(it,{A:()=>d});const d=p(1037).A},4636:(En,it,p)=>{"use strict";p.d(it,{E:()=>w,p:()=>P});var S=p(656),d=p(4303),m=p(9810),T=p(8832),C=p(3349),e=p(8914);const k={provide:T.kq,useExisting:(0,S.Rfq)(()=>w),multi:!0};let w=(()=>{class v extends C.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(b){this._setOption("accessKey",b)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(b){this._setOption("activeStateEnabled",b)}get buttons(){return this._getOption("buttons")}set buttons(b){this._setOption("buttons",b)}get disabled(){return this._getOption("disabled")}set disabled(b){this._setOption("disabled",b)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(b){this._setOption("elementAttr",b)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(b){this._setOption("focusStateEnabled",b)}get format(){return this._getOption("format")}set format(b){this._setOption("format",b)}get height(){return this._getOption("height")}set height(b){this._setOption("height",b)}get hint(){return this._getOption("hint")}set hint(b){this._setOption("hint",b)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(b){this._setOption("hoverStateEnabled",b)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(b){this._setOption("inputAttr",b)}get invalidValueMessage(){return this._getOption("invalidValueMessage")}set invalidValueMessage(b){this._setOption("invalidValueMessage",b)}get isDirty(){return this._getOption("isDirty")}set isDirty(b){this._setOption("isDirty",b)}get isValid(){return this._getOption("isValid")}set isValid(b){this._setOption("isValid",b)}get label(){return this._getOption("label")}set label(b){this._setOption("label",b)}get labelMode(){return this._getOption("labelMode")}set labelMode(b){this._setOption("labelMode",b)}get max(){return this._getOption("max")}set max(b){this._setOption("max",b)}get min(){return this._getOption("min")}set min(b){this._setOption("min",b)}get mode(){return this._getOption("mode")}set mode(b){this._setOption("mode",b)}get name(){return this._getOption("name")}set name(b){this._setOption("name",b)}get placeholder(){return this._getOption("placeholder")}set placeholder(b){this._setOption("placeholder",b)}get readOnly(){return this._getOption("readOnly")}set readOnly(b){this._setOption("readOnly",b)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(b){this._setOption("rtlEnabled",b)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(b){this._setOption("showClearButton",b)}get showSpinButtons(){return this._getOption("showSpinButtons")}set showSpinButtons(b){this._setOption("showSpinButtons",b)}get step(){return this._getOption("step")}set step(b){this._setOption("step",b)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(b){this._setOption("stylingMode",b)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(b){this._setOption("tabIndex",b)}get text(){return this._getOption("text")}set text(b){this._setOption("text",b)}get useLargeSpinButtons(){return this._getOption("useLargeSpinButtons")}set useLargeSpinButtons(b){this._setOption("useLargeSpinButtons",b)}get validationError(){return this._getOption("validationError")}set validationError(b){this._setOption("validationError",b)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(b){this._setOption("validationErrors",b)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(b){this._setOption("validationMessageMode",b)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(b){this._setOption("validationMessagePosition",b)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(b){this._setOption("validationStatus",b)}get value(){return this._getOption("value")}set value(b){this._setOption("value",b)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(b){this._setOption("valueChangeEvent",b)}get visible(){return this._getOption("visible")}set visible(b){this._setOption("visible",b)}get width(){return this._getOption("width")}set width(b){this._setOption("width",b)}onChange;onContentReady;onCopy;onCut;onDisposing;onEnterKey;onFocusIn;onFocusOut;onInitialized;onInput;onKeyDown;onKeyUp;onOptionChanged;onPaste;onValueChanged;accessKeyChange;activeStateEnabledChange;buttonsChange;disabledChange;elementAttrChange;focusStateEnabledChange;formatChange;heightChange;hintChange;hoverStateEnabledChange;inputAttrChange;invalidValueMessageChange;isDirtyChange;isValidChange;labelChange;labelModeChange;maxChange;minChange;modeChange;nameChange;placeholderChange;readOnlyChange;rtlEnabledChange;showClearButtonChange;showSpinButtonsChange;stepChange;stylingModeChange;tabIndexChange;textChange;useLargeSpinButtonsChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;valueChangeEventChange;visibleChange;widthChange;onBlur;change(b){}touched=b=>{};get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(b){this.setChildren("buttons",b)}constructor(b,B,j,F,X,U,Z,A){super(b,B,j,F,Z,A),this._watcherHelper=F,this._idh=X,this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"formatChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"invalidValueMessageChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxChange"},{emit:"minChange"},{emit:"modeChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showSpinButtonsChange"},{emit:"stepChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useLargeSpinButtonsChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),U.setHost(this)}_createInstance(b,B){return new m.A(b,B)}writeValue(b){this.eventHelper.lockedValueChangeEvent=!0,this.value=b,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(b){this.disabled=b}registerOnChange(b){this.change=b}registerOnTouched(b){this.touched=b}_createWidget(b){super._createWidget(b),this.instance.on("focusOut",B=>{this.eventHelper.fireNgEvent("onBlur",[B])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(b){super.ngOnChanges(b),this.setupChanges("buttons",b),this.setupChanges("validationErrors",b)}setupChanges(b,B){b in this._optionsToUpdate||this._idh.setup(b,B)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(b,B){let j=this._idh.setupSingle(b,B),F=null!==this._idh.getChanges(b,B);(j||F)&&super._setOption(b,B)}static \u0275fac=function(B){return new(B||v)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(C.zF),d.rXU(C.jS),d.rXU(C.$M),d.rXU(C.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:v,selectors:[["dx-number-box"]],contentQueries:function(B,j,F){if(1&B&&d.wni(F,e.BrI,4),2&B){let X;d.mGM(X=d.lsd())&&(j.buttonsChildren=X)}},hostBindings:function(B,j){1&B&&d.bIt("valueChange",function(X){return j.change(X)})("onBlur",function(X){return j.touched(X)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",format:"format",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",invalidValueMessage:"invalidValueMessage",isDirty:"isDirty",isValid:"isValid",label:"label",labelMode:"labelMode",max:"max",min:"min",mode:"mode",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showSpinButtons:"showSpinButtons",step:"step",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useLargeSpinButtons:"useLargeSpinButtons",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",formatChange:"formatChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",invalidValueMessageChange:"invalidValueMessageChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxChange:"maxChange",minChange:"minChange",modeChange:"modeChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showSpinButtonsChange:"showSpinButtonsChange",stepChange:"stepChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useLargeSpinButtonsChange:"useLargeSpinButtonsChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[d.Jv_([C.zF,C.jS,k,C.fH,C.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(B,j){},encapsulation:2})}return v})(),P=(()=>{class v{static \u0275fac=function(B){return new(B||v)};static \u0275mod=d.$C({type:v});static \u0275inj=S.G2t({imports:[e.GIV,e.u4t,e.Pxf,C.p_,C.xZ,e.GIV,e.u4t,e.Pxf,C.xZ]})}return v})()},4647:(En,it,p)=>{"use strict";p.d(it,{N:()=>T,f:()=>m});var S=p(5704),d=p(9293);const m=function(C,e,k){const w=(0,S.A)(C),P=k?w.scrollLeft():w.scrollTop(),v=k?"Width":"Height",B=w.prop(`scroll${v}`)-w.prop(`client${v}`)-P|0;return(0!==P||0!==B)&&(!!(0===P&&e>=0||0===B&&e<=0||P>0&&B>0)||void 0)},T=function(C,e){const k=(0,S.A)(C);return{validate(w){if((0,d.X1)(w)&&(!e||(0,S.A)(w.target).is(C)))return!!m(k,-w.delta,w.shiftKey)&&(w._needSkipEvent=!0,!0)}}}},4660:(En,it,p)=>{"use strict";p.d(it,{G:()=>d});var S=p(656);let d=(()=>{var m;class T{constructor(){this.navVisible=(0,S.vPA)(!0)}hide(){this.navVisible.set(!1)}show(){this.navVisible.set(!0)}static#e=m=()=>(this.\u0275fac=function(k){return new(k||T)},this.\u0275prov=S.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}))}return m(),T})()},4686:(En,it,p)=>{"use strict";p.d(it,{A:()=>ri});var S=p(4859),d=p(676),m=p(3090),T=p(1830),C=p(8360),e=p(5737),k=p(2583),w=p(2123),P=p(1973),v=p(5973),x=p(2925),b=p(5704),B=p(5645),j=p(4761),F=p(3012),X=p(1363),U=p(6110),Z=p(4072),A=p(6790),M=p(1134),H=p(9293),J=p(9061),R=p(9012),L=p(6620),G=p(9212);const z=class Q{constructor(Pt){this.calendar=Pt}dateOption(Pt){return this.calendar._dateOption(Pt)}dateValue(Pt,dn){this.calendar._dateValue(Pt,dn)}skipNavigate(){this.calendar._skipNavigate=!0}updateAriaSelected(Pt,dn){this.calendar._updateAriaSelected(Pt,dn),Pt[0]&&this.calendar.option("currentDate").getTime()===Pt[0].getTime()&&this.calendar._updateAriaId(Pt[0])}processValueChanged(Pt,dn){var jt,Ot;(0,T.O9)(Pt)&&!Array.isArray(Pt)&&(Pt=[Pt]),(0,T.O9)(dn)&&!Array.isArray(dn)&&(dn=[dn]),Pt=(null===(jt=Pt)||void 0===jt?void 0:jt.map(Tn=>this._convertToDate(Tn)))||[],dn=(null===(Ot=dn)||void 0===Ot?void 0:Ot.map(Tn=>this._convertToDate(Tn)))||[],this._updateViewsValue(Pt),this.updateAriaSelected(Pt,dn),this._currentDateChanged||this.calendar._initCurrentDate(),this._currentDateChanged=!1}_isDateDisabled(Pt){const dn=this.calendar._dateOption("min"),jt=this.calendar._dateOption("max"),Ot=(0,T.O9)(dn)&&Pt<dn&&!d.A.sameDate(dn,Pt),Tn=(0,T.O9)(jt)&&Pt>jt&&!d.A.sameDate(jt,Pt);return this.calendar._view.isDateDisabled(Pt)||Ot||Tn}_getLowestDateInArray(Pt){if(Pt.length)return new Date(Math.min(...Pt))}_convertToDate(Pt){return this.calendar._convertToDate(Pt)}_isMaxZoomLevel(){return this.calendar._isMaxZoomLevel()}_updateViewsOption(Pt,dn){this.calendar._updateViewsOption(Pt,dn)}_updateViewsValue(Pt){this._updateViewsOption("value",Pt)}_updateCurrentDate(Pt){this.calendar.option("currentDate",Pt??new Date)}_shouldHandleWeekNumberClick(){const{selectionMode:Pt,selectWeekOnClick:dn}=this.calendar.option();return dn&&"single"!==Pt}};var re=p(1609);const he=class ie extends re.A{_getDefaultOptions(){return(0,e.A)({},super._getDefaultOptions(),{onClick:void 0,onCaptionClick:void 0,type:"normal",stylingMode:"outlined",text:""})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>(0,G.gx)(),options:{type:"default",stylingMode:"text"}},{device:()=>(0,G.Ft)(),options:{type:"normal",stylingMode:"text"}}])}_init(){super._init(),this._initActions()}_initActions(){this._clickAction=this._createActionByOption("onClick"),this._captionClickAction=this._createActionByOption("onCaptionClick")}_initMarkup(){super._initMarkup(),(0,b.A)(this.element()).addClass("dx-calendar-navigator"),this._renderButtons(),this._renderCaption()}_renderButtons(){const{rtlEnabled:Pt,type:dn,stylingMode:jt,focusStateEnabled:Ot}=this.option();this._prevButton=this._createComponent((0,b.A)("<div>"),R.A,{focusStateEnabled:Ot,icon:Pt?"chevronright":"chevronleft",onClick:Zi=>{this._clickAction({direction:-1,event:Zi})},type:dn,stylingMode:jt,integrationOptions:{}});const Tn=(0,b.A)(this._prevButton.element()).addClass("dx-calendar-navigator-previous-view").addClass("dx-calendar-navigator-previous-month");this._nextButton=this._createComponent((0,b.A)("<div>"),R.A,{focusStateEnabled:Ot,icon:Pt?"chevronleft":"chevronright",onClick:Zi=>{this._clickAction({direction:1,event:Zi})},type:dn,stylingMode:jt,integrationOptions:{}});const ni=(0,b.A)(this._nextButton.element()).addClass("dx-calendar-navigator-next-view").addClass("dx-calendar-navigator-next-month");this._caption=this._createComponent((0,b.A)("<div>").addClass("dx-calendar-caption-button"),R.A,{focusStateEnabled:Ot,onClick:Zi=>{this._captionClickAction({event:Zi})},type:dn,stylingMode:jt,template:(Zi,ro)=>{const{text:mo}=this.option();mo.split(" - ").forEach(St=>{(0,b.A)(ro).append((0,b.A)("<span>").addClass("dx-button-text").text(St))})},integrationOptions:{}});const Bi=this._caption.$element();this.$element().append(Tn,Bi,ni)}_renderCaption(){var Pt;null===(Pt=this._caption)||void 0===Pt||Pt.option("text",this.option("text"))}toggleButton(Pt,dn){const Ot=this[`_${Pt}Button`];Ot&&(Ot.option("disabled",dn),Ot.$element().toggleClass("dx-calendar-disabled-navigator-link",dn))}_optionChanged(Pt){"text"===Pt.name?this._renderCaption():super._optionChanged(Pt)}};var Ye=p(6054),de=p(9522),Ae=p(5397),pe=p(778),Ee=p(7080);const{abstract:le}=Ee.A,je="td:not(.dx-calendar-week-number-cell)",Ne=(0,H.b4)(pe.U,"dxCalendar"),lt=(0,H.b4)(M.n,"dxCalendar"),yt={month:C.A.format("dxCalendar-currentDay"),year:C.A.format("dxCalendar-currentMonth"),decade:C.A.format("dxCalendar-currentYear"),century:C.A.format("dxCalendar-currentYearRange")},rn=Ee.A.inherit({_getViewName:()=>"base",_getDefaultOptions(){return(0,m.X)(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,disabledDates:null,onCellClick:null,onCellHover:null,onWeekNumberClick:null,rowCount:3,colCount:4,allowValueSelection:!0,_todayDate:()=>new Date})},_initMarkup(){this.callBase(),this._renderImpl()},_renderImpl(){this.$element().append(this._createTable()),this._createDisabledDatesHandler(),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderRange(),this._renderEvents(),this._updateTableAriaLabel()},_getLocalizedWidgetName:()=>C.A.format("dxCalendar-ariaWidgetName"),_getSingleModeAriaLabel(){const{value:It}=this.option(),Pt=this._getLocalizedWidgetName(),dn=J.A.format(It,"date");return`${Pt}. ${C.A.format("dxCalendar-selectedDate",dn)}`},_getRangeModeAriaLabel(){const{value:It}=this.option(),Pt=this._getLocalizedWidgetName(),[dn,jt]=It,Ot=J.A.format(dn,"date"),Tn=J.A.format(jt,"date");return`${Pt}. ${dn&&jt?C.A.format("dxCalendar-selectedDateRange",Ot,Tn):C.A.format("dxCalendar-selectedDate",Ot??Tn)}`},_getMultipleModeAriaLabel(){return this._getLocalizedWidgetName()},_getTableAriaLabel(){const{value:It,selectionMode:Pt}=this.option();if(!It||Array.isArray(It)&&!It.filter(Boolean).length)return this._getLocalizedWidgetName();switch(Pt){case"single":return this._getSingleModeAriaLabel();case"range":return this._getRangeModeAriaLabel();case"multiple":return this._getMultipleModeAriaLabel()}},_updateTableAriaLabel(){const It=this._getTableAriaLabel();this.setAria({label:It},this._$table)},_createTable(){return this._$table=(0,b.A)("<table>"),this.setAria({role:"grid"},this._$table),this._$table},_renderBody(){this.$body=(0,b.A)("<tbody>").appendTo(this._$table);const It={cellDate:this._getFirstCellData(),prevCellDate:null};for(let Pt=0,dn=this.option("rowCount");Pt<dn;Pt++){It.row=this._createRow();for(let jt=0,Ot=this.option("colCount");jt<Ot;jt++)this._renderCell(It,jt);this._renderWeekNumberCell(It)}},_createRow(){const It=Ye.A.createElement("tr");return this.setAria("role","row",(0,b.A)(It)),this.$body.get(0).appendChild(It),It},_createCell(It,Pt){const dn=Ye.A.createElement("td"),jt=(0,b.A)(dn);return dn.className=this._getClassNameByDate(It,Pt),dn.setAttribute("data-value",j.A.serializeDate(It,d.A.getShortDateFormat())),(0,Ae.p)(dn,"dxDateValueKey",It),this.setAria({role:"gridcell",selected:!1,label:this.getCellAriaLabel(It)},jt),{cell:dn,$cell:jt}},_renderCell(It,Pt){const{cellDate:dn,prevCellDate:jt,row:Ot}=It;jt&&d.A.fixTimezoneGap(jt,dn),It.prevCellDate=dn;const{cell:Tn,$cell:ni}=this._createCell(dn,Pt),Bi=this.option("cellTemplate");(0,b.A)(Ot).append(Tn),Bi?Bi.render(this._prepareCellTemplateData(dn,Pt,ni)):Tn.innerHTML=this._getCellText(dn),It.cellDate=this._getNextCellData(dn)},_getClassNameByDate(It,Pt){let dn="dx-calendar-cell";return this._isTodayCell(It)&&(dn+=" dx-calendar-today"),(this._isDateOutOfRange(It)||this.isDateDisabled(It))&&(dn+=" dx-calendar-empty-cell"),this._isOtherView(It)&&(dn+=" dx-calendar-other-view"),"range"===this.option("selectionMode")&&(0===Pt&&(dn+=" dx-calendar-cell-start-in-row"),Pt===this.option("colCount")-1&&(dn+=" dx-calendar-cell-end-in-row"),this._isStartDayOfMonth(It)&&(dn+=" dx-calendar-cell-start"),this._isEndDayOfMonth(It)&&(dn+=" dx-calendar-cell-end")),dn},_prepareCellTemplateData(It,Pt,dn){const jt=It instanceof Date;return{model:{text:jt?this._getCellText(It):It,date:jt?It:void 0,view:this._getViewName()},container:(0,de.cc)(dn),index:Pt}},_renderEvents(){this._createCellClickAction(),Z.A.off(this._$table,Ne),Z.A.on(this._$table,Ne,je,Pt=>{(0,b.A)(Pt.currentTarget).hasClass("dx-calendar-empty-cell")||this._cellClickAction({event:Pt,value:(0,b.A)(Pt.currentTarget).data("dxDateValueKey")})});const{selectionMode:It}=this.option();Z.A.off(this._$table,lt),"range"===It&&(this._createCellHoverAction(),Z.A.on(this._$table,lt,je,Pt=>{(0,b.A)(Pt.currentTarget).hasClass("dx-calendar-empty-cell")||this._cellHoverAction({event:Pt,value:(0,b.A)(Pt.currentTarget).data("dxDateValueKey")})})),"single"!==It&&(this._createWeekNumberCellClickAction(),Z.A.on(this._$table,Ne,".dx-calendar-week-number-cell",Pt=>{const dn=(0,b.A)(Pt.currentTarget).closest("tr"),jt=dn.find(".dx-calendar-cell").first().data("dxDateValueKey"),Ot=dn.find(".dx-calendar-cell").last().data("dxDateValueKey"),Tn=[...d.A.getDatesOfInterval(jt,Ot,864e5),Ot];this._weekNumberCellClickAction({event:Pt,rowDates:Tn})}))},_createCellClickAction(){this._cellClickAction=this._createActionByOption("onCellClick")},_createCellHoverAction(){this._cellHoverAction=this._createActionByOption("onCellHover")},_createWeekNumberCellClickAction(){this._weekNumberCellClickAction=this._createActionByOption("onWeekNumberClick")},_createDisabledDatesHandler(){const It=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(It)?this._getDefaultDisabledDatesHandler(It):It||S.lQ},_getDefaultDisabledDatesHandler:()=>S.lQ,_isTodayCell:le,_isDateOutOfRange:le,isDateDisabled(It){const Pt={date:It,view:this._getViewName()};return this._disabledDatesHandler(Pt)},_isOtherView:le,_isStartDayOfMonth:le,_isEndDayOfMonth:le,_getCellText:le,_getFirstCellData:le,_getNextCellData:le,_renderContouredDate(It){if(!this.option("focusStateEnabled"))return;It=It||this.option("contouredDate");const Pt=this._getContouredCell(),dn=this._getCellByDate(It);Pt.removeClass("dx-calendar-contoured-date"),It&&dn.addClass("dx-calendar-contoured-date")},_getContouredCell(){return this._$table.find(".dx-calendar-contoured-date")},_renderValue(){if(!this.option("allowValueSelection"))return;let It=this.option("value");Array.isArray(It)||(It=[It]),this._updateSelectedClass(It)},_updateSelectedClass(It){var Pt;this._isRangeMode()&&!this._isMonthView()||(null===(Pt=this._$selectedCells)||void 0===Pt||Pt.forEach(dn=>{dn.removeClass("dx-calendar-selected-date")}),this._$selectedCells=It.map(dn=>this._getCellByDate(dn)),this._$selectedCells.forEach(dn=>{dn.addClass("dx-calendar-selected-date")}))},_renderRange(){var It,Pt,dn,jt,Ot,Tn,ni,Bi;const{allowValueSelection:Zi,value:ro,range:mo}=this.option();!Zi||!this._isRangeMode()||!this._isMonthView()||(null===(It=this._$rangeCells)||void 0===It||It.forEach(ho=>{ho.removeClass("dx-calendar-cell-in-range")}),null===(Pt=this._$hoveredRangeCells)||void 0===Pt||Pt.forEach(ho=>{ho.removeClass("dx-calendar-cell-range-hover")}),null===(dn=this._$rangeStartHoverCell)||void 0===dn||dn.removeClass("dx-calendar-cell-range-hover-start"),null===(jt=this._$rangeEndHoverCell)||void 0===jt||jt.removeClass("dx-calendar-cell-range-hover-end"),null===(Ot=this._$rangeStartDateCell)||void 0===Ot||Ot.removeClass("dx-calendar-range-start-date"),null===(Tn=this._$rangeEndDateCell)||void 0===Tn||Tn.removeClass("dx-calendar-range-end-date"),this._$rangeCells=mo.map(ho=>this._getCellByDate(ho)),this._$rangeStartDateCell=this._getCellByDate(ro[0]),this._$rangeEndDateCell=this._getCellByDate(ro[1]),this._$rangeCells.forEach(ho=>{ho.addClass("dx-calendar-cell-in-range")}),null===(ni=this._$rangeStartDateCell)||void 0===ni||ni.addClass("dx-calendar-range-start-date"),null===(Bi=this._$rangeEndDateCell)||void 0===Bi||Bi.addClass("dx-calendar-range-end-date"))},_renderHoveredRange(){var It,Pt,dn,jt,Ot;const{allowValueSelection:Tn,hoveredRange:ni}=this.option();!Tn||!this._isRangeMode()||!this._isMonthView()||(null===(It=this._$hoveredRangeCells)||void 0===It||It.forEach(Bi=>{Bi.removeClass("dx-calendar-cell-range-hover")}),null===(Pt=this._$rangeStartHoverCell)||void 0===Pt||Pt.removeClass("dx-calendar-cell-range-hover-start"),null===(dn=this._$rangeEndHoverCell)||void 0===dn||dn.removeClass("dx-calendar-cell-range-hover-end"),this._$hoveredRangeCells=ni.map(Bi=>this._getCellByDate(Bi)),this._$rangeStartHoverCell=this._getCellByDate(ni[0]),this._$rangeEndHoverCell=this._getCellByDate(ni[ni.length-1]),this._$hoveredRangeCells.forEach(Bi=>{Bi.addClass("dx-calendar-cell-range-hover")}),null===(jt=this._$rangeStartHoverCell)||void 0===jt||jt.addClass("dx-calendar-cell-range-hover-start"),null===(Ot=this._$rangeEndHoverCell)||void 0===Ot||Ot.addClass("dx-calendar-cell-range-hover-end"))},_isMonthView(){return"month"===this.option("zoomLevel")},_isRangeMode(){return"range"===this.option("selectionMode")},_getCurrentDateFormat:()=>null,getCellAriaLabel(It){const Pt=this._getViewName(),dn=this._isTodayCell(It),jt=this._getCurrentDateFormat(),Ot=jt?J.A.format(It,jt):this._getCellText(It);return dn?`${Ot}. ${yt[Pt]}`:Ot},_getFirstAvailableDate(){let It=this.option("date");const Pt=this.option("min");return It=d.A.getViewFirstCellDate(this._getViewName(),It),new Date(Pt&&It<Pt?Pt:It)},_getCellByDate:le,isBoundary:le,_optionChanged(It){const{name:Pt,value:dn}=It;switch(Pt){case"value":this._renderValue(),this._updateTableAriaLabel();break;case"range":this._renderRange();break;case"hoveredRange":this._renderHoveredRange();break;case"contouredDate":this._renderContouredDate(dn);break;case"onCellClick":this._createCellClickAction();break;case"onCellHover":this._createCellHoverAction();break;case"min":case"max":case"disabledDates":case"cellTemplate":case"selectionMode":this._invalidate();break;case"_todayDate":this._renderBody();break;default:this.callBase(It)}}}),Co={month:rn.inherit({_getViewName:()=>"month",_getCurrentDateFormat:()=>"longdate",_getDefaultOptions(){return(0,m.X)(this.callBase(),{firstDayOfWeek:0,rowCount:6,colCount:7})},_renderImpl(){this.callBase(),this._renderHeader()},_renderBody(){this.callBase(),this._$table.find(".dx-calendar-other-view").addClass("dx-calendar-other-month")},_renderFocusTarget:S.lQ,_renderHeader(){const It=(0,b.A)("<tr>"),Pt=(0,b.A)("<thead>").append(It);this._$table.prepend(Pt);for(let dn=0,jt=this.option("colCount");dn<jt;dn++)this._renderHeaderCell(dn,It);this.option("showWeekNumbers")&&this._renderWeekHeaderCell(It)},_renderHeaderCell(It,Pt){const{firstDayOfWeek:dn}=this.option(),{full:jt,abbreviated:Ot}=this._getDayCaption(dn+It),Tn=(0,b.A)("<th>").attr({scope:"col",abbr:jt}).text(Ot);Pt.append(Tn)},_renderWeekHeaderCell(It){const Pt=(0,b.A)("<th>").attr({scope:"col",abbr:"WeekNumber",class:"dx-week-number-header"});It.prepend(Pt)},_renderWeekNumberCell(It){const{showWeekNumbers:Pt,cellTemplate:dn,selectionMode:jt,selectWeekOnClick:Ot}=this.option();if(!Pt)return;const Tn=this._getWeekNumber(It.prevCellDate),ni=Ye.A.createElement("td"),Bi=(0,b.A)(ni);ni.className="dx-calendar-week-number-cell","single"!==jt&&Ot&&Bi.addClass("dx-calendar-week-selection"),dn?dn.render(this._prepareCellTemplateData(Tn,-1,Bi)):ni.innerHTML=Tn,It.row.prepend(ni),this.setAria({role:"gridcell",label:`Week ${Tn}`},Bi)},_getWeekNumber(It){const{weekNumberRule:Pt,firstDayOfWeek:dn}=this.option();return d.A.getWeekNumber(It,dn,"auto"===Pt?1===dn?"firstFourDays":"firstDay":Pt)},getNavigatorCaption(){return J.A.format(this.option("date"),"monthandyear")},_isTodayCell(It){const Pt=this.option("_todayDate")();return d.A.sameDate(It,Pt)},_isDateOutOfRange(It){const Pt=this.option("min"),dn=this.option("max");return!d.A.dateInRange(It,Pt,dn,"date")},_isOtherView(It){return It.getMonth()!==this.option("date").getMonth()},_isStartDayOfMonth(It){return d.A.sameDate(It,d.A.getFirstMonthDate(this.option("date")))},_isEndDayOfMonth(It){return d.A.sameDate(It,d.A.getLastMonthDate(this.option("date")))},_getCellText:It=>J.A.format(It,"d"),_getDayCaption(It){const dn=It%this.option("colCount");return{full:J.A.getDayNames()[dn],abbreviated:J.A.getDayNames("abbreviated")[dn]}},_getFirstCellData(){const{firstDayOfWeek:It}=this.option(),Pt=d.A.getFirstMonthDate(this.option("date"));let dn=It-Pt.getDay();const jt=this.option("colCount");return dn>=0&&(dn-=jt),Pt.setDate(Pt.getDate()+dn),Pt},_getNextCellData:It=>((It=new Date(It)).setDate(It.getDate()+1),It),_getCellByDate(It){return this._$table.find(`td[data-value='${j.A.serializeDate(It,d.A.getShortDateFormat())}']`)},isBoundary(It){return d.A.sameMonthAndYear(It,this.option("min"))||d.A.sameMonthAndYear(It,this.option("max"))},_getDefaultDisabledDatesHandler:It=>function(Pt){if(It.some(jt=>d.A.sameDate(jt,Pt.date)))return!0}}),year:rn.inherit({_getViewName:()=>"year",_getCurrentDateFormat:()=>"monthandyear",_isTodayCell(It){const Pt=this.option("_todayDate")();return d.A.sameMonthAndYear(It,Pt)},_isDateOutOfRange(It){return!d.A.dateInRange(It,d.A.getFirstMonthDate(this.option("min")),d.A.getLastMonthDate(this.option("max")))},_isOtherView:()=>!1,_isStartDayOfMonth:()=>!1,_isEndDayOfMonth:()=>!1,_getCellText:It=>J.A.getMonthNames("abbreviated")[It.getMonth()],_getFirstCellData(){const It=this.option("date"),Pt=new Date(It);return Pt.setDate(1),Pt.setMonth(0),Pt},_getNextCellData:It=>((It=new Date(It)).setMonth(It.getMonth()+1),It),_getCellByDate(It){const Pt=new Date(It);return Pt.setDate(1),this._$table.find(`td[data-value='${j.A.serializeDate(Pt,d.A.getShortDateFormat())}']`)},getNavigatorCaption(){return J.A.format(this.option("date"),"yyyy")},isBoundary(It){return d.A.sameYear(It,this.option("min"))||d.A.sameYear(It,this.option("max"))},_renderWeekNumberCell:S.lQ}),decade:rn.inherit({_getViewName:()=>"decade",_isTodayCell(It){const Pt=this.option("_todayDate")();return d.A.sameYear(It,Pt)},_isDateOutOfRange(It){const Pt=this.option("min"),dn=this.option("max");return!d.A.dateInRange(It.getFullYear(),Pt&&Pt.getFullYear(),dn&&dn.getFullYear())},_isOtherView(It){const Pt=new Date(It);return Pt.setMonth(1),!d.A.sameDecade(Pt,this.option("date"))},_isStartDayOfMonth:()=>!1,_isEndDayOfMonth:()=>!1,_getCellText:It=>J.A.format(It,"yyyy"),_getFirstCellData(){const It=d.A.getFirstYearInDecade(this.option("date"))-1;return d.A.createDateWithFullYear(It,0,1)},_getNextCellData:It=>((It=new Date(It)).setFullYear(It.getFullYear()+1),It),getNavigatorCaption(){const It=this.option("date"),Pt=d.A.getFirstYearInDecade(It),dn=new Date(It),jt=new Date(It);return dn.setFullYear(Pt),jt.setFullYear(Pt+9),`${J.A.format(dn,"yyyy")}-${J.A.format(jt,"yyyy")}`},_isValueOnCurrentView:(It,Pt)=>d.A.sameDecade(It,Pt),_getCellByDate(It){const Pt=new Date(It);return Pt.setDate(1),Pt.setMonth(0),this._$table.find(`td[data-value='${j.A.serializeDate(Pt,d.A.getShortDateFormat())}']`)},isBoundary(It){return d.A.sameDecade(It,this.option("min"))||d.A.sameDecade(It,this.option("max"))},_renderWeekNumberCell:S.lQ}),century:rn.inherit({_getViewName:()=>"century",_isTodayCell(It){const Pt=this.option("_todayDate")();return d.A.sameDecade(It,Pt)},_isDateOutOfRange(It){const Pt=d.A.getFirstYearInDecade(It),dn=d.A.getFirstYearInDecade(this.option("min")),jt=d.A.getFirstYearInDecade(this.option("max"));return!d.A.dateInRange(Pt,dn,jt)},_isOtherView(It){const Pt=new Date(It);return Pt.setMonth(1),!d.A.sameCentury(Pt,this.option("date"))},_isStartDayOfMonth:()=>!1,_isEndDayOfMonth:()=>!1,_getCellText(It){const Pt=J.A.format(It,"yyyy"),dn=new Date(It);return dn.setFullYear(dn.getFullYear()+9),`${Pt} - ${J.A.format(dn,"yyyy")}`},_getFirstCellData(){const It=d.A.getFirstDecadeInCentury(this.option("date"))-10;return d.A.createDateWithFullYear(It,0,1)},_getNextCellData:It=>((It=new Date(It)).setFullYear(It.getFullYear()+10),It),_getCellByDate(It){const Pt=new Date(It);return Pt.setDate(1),Pt.setMonth(0),Pt.setFullYear(d.A.getFirstYearInDecade(Pt)),this._$table.find(`td[data-value='${j.A.serializeDate(Pt,d.A.getShortDateFormat())}']`)},getNavigatorCaption(){const It=this.option("date"),Pt=d.A.getFirstDecadeInCentury(It),dn=new Date(It),jt=new Date(It);return dn.setFullYear(Pt),jt.setFullYear(Pt+99),`${J.A.format(dn,"yyyy")}-${J.A.format(jt,"yyyy")}`},isBoundary(It){return d.A.sameCentury(It,this.option("min"))||d.A.sameCentury(It,this.option("max"))},_renderWeekNumberCell:S.lQ})},ss=(0,H.b4)(M._,"dxCalendar"),qo={month:3,year:2,decade:1,century:0},bs={SingleSelection:class _e extends z{constructor(Pt){super(Pt),this.NAME="SingleSelection"}getViewOptions(){return{value:this.dateOption("value"),range:[],selectionMode:"single"}}selectValue(Pt,dn){this.skipNavigate(),this.dateValue(Pt,dn)}updateAriaSelected(Pt,dn){Pt??(Pt=[this.dateOption("value")]),dn??(dn=[]),super.updateAriaSelected(Pt,dn)}getDefaultCurrentDate(){return this.dateOption("value")}restoreValue(){this.calendar.option("value",null)}_updateViewsValue(Pt){this._updateViewsOption("value",Pt[0])}},MultipleSelection:class K extends z{constructor(Pt){super(Pt),this.NAME="MultiSelection"}getViewOptions(){return{value:this.dateOption("value"),range:[],selectionMode:"multiple",onWeekNumberClick:this._shouldHandleWeekNumberClick()?this._weekNumberClickHandler.bind(this):null}}selectValue(Pt,dn){const jt=[...this.dateOption("value")],Ot=jt.findIndex(Tn=>Tn?.toDateString()===Pt.toDateString());Ot>-1?jt.splice(Ot,1):jt.push(Pt),this.skipNavigate(),this._updateCurrentDate(Pt),this._currentDateChanged=!0,this.dateValue(jt,dn)}updateAriaSelected(Pt,dn){Pt??(Pt=this.dateOption("value")),dn??(dn=[]),super.updateAriaSelected(Pt,dn)}getDefaultCurrentDate(){const Pt=this.dateOption("value").filter(dn=>dn);return this._getLowestDateInArray(Pt)}restoreValue(){this.calendar.option("value",[])}_weekNumberClickHandler(Pt){let{rowDates:dn,event:jt}=Pt;const Ot=dn.filter(Tn=>!this._isDateDisabled(Tn));this.dateValue(Ot,jt)}},RangeSelection:class ye extends z{constructor(Pt){super(Pt),this.NAME="RangeSelection"}getViewOptions(){const Pt=this._getValue();return{value:Pt,range:this._getDaysInRange(Pt[0],Pt[1]),selectionMode:"range",onCellHover:this._cellHoverHandler.bind(this),onWeekNumberClick:this._shouldHandleWeekNumberClick()?this._weekNumberClickHandler.bind(this):null}}selectValue(Pt,dn){const[jt,Ot]=this._getValue();this.skipNavigate(),this._updateCurrentDate(Pt),this._currentDateChanged=!0,!0===this.calendar.option("_allowChangeSelectionOrder")?(this.calendar._valueSelected=!0,"startDate"===this.calendar.option("_currentSelection")?this.calendar._convertToDate(Pt)>this.calendar._convertToDate(Ot)?this.dateValue([Pt,null],dn):this.dateValue([Pt,Ot],dn):this.calendar._convertToDate(Pt)>=this.calendar._convertToDate(jt)?this.dateValue([jt,Pt],dn):this.dateValue([Pt,null],dn)):this.dateValue(!jt||Ot?[Pt,null]:jt<Pt?[jt,Pt]:[Pt,jt],dn)}updateAriaSelected(Pt,dn){Pt??(Pt=this._getValue()),dn??(dn=[]),super.updateAriaSelected(Pt,dn)}processValueChanged(Pt,dn){super.processValueChanged(Pt,dn);const jt=this._getRange();this._updateViewsOption("range",jt)}getDefaultCurrentDate(){const{_allowChangeSelectionOrder:Pt,_currentSelection:dn}=this.calendar.option(),jt=this.dateOption("value");if(Pt){if("startDate"===dn&&jt[0])return jt[0];if("endDate"===dn&&jt[1])return jt[1]}const Ot=jt.filter(Tn=>Tn);return this._getLowestDateInArray(Ot)}restoreValue(){this.calendar.option("value",[null,null])}_getValue(){const Pt=this.dateOption("value");if(!Pt.length)return Pt;let[dn,jt]=Pt;return dn&&jt&&dn>jt&&([dn,jt]=[jt,dn]),[dn,jt]}_getRange(){const[Pt,dn]=this._getValue();return this._getDaysInRange(Pt,dn)}_getDaysInRange(Pt,dn){if(!Pt||!dn)return[];const{currentDate:jt,viewsCount:Ot}=this.calendar.option(),Tn=this.calendar._isAdditionalViewDate(jt),ni=d.A.getFirstMonthDate(d.A.addDateInterval(jt,"month",Tn?-2:-1)),Bi=d.A.getLastMonthDate(d.A.addDateInterval(jt,"month",Tn?1:Ot)),Zi=new Date(Math.max(ni,Pt)),ro=new Date(Math.min(Bi,dn));return[...d.A.getDatesOfInterval(Zi,ro,864e5),ro]}_cellHoverHandler(Pt){const dn=this._isMaxZoomLevel(),[jt,Ot]=this._getValue(),{_allowChangeSelectionOrder:Tn,_currentSelection:ni}=this.calendar.option();if(dn){if(!jt||Ot||Tn&&"startDate"===ni){if(jt||!Ot||Tn&&"endDate"===ni){if(jt&&Ot){if("startDate"===ni&&Pt.value<jt)return void this._updateViewsOption("hoveredRange",this._getDaysInRange(Pt.value,jt));if("endDate"===ni&&Pt.value>Ot)return void this._updateViewsOption("hoveredRange",this._getDaysInRange(Ot,Pt.value))}}else if(Pt.value<Ot)return void this._updateViewsOption("hoveredRange",this._getDaysInRange(Pt.value,Ot))}else if(Pt.value>jt)return void this._updateViewsOption("hoveredRange",this._getDaysInRange(jt,Pt.value));this._updateViewsOption("hoveredRange",[])}}_weekNumberClickHandler(Pt){let{rowDates:dn,event:jt}=Pt;const Ot=dn.filter(ni=>!this._isDateDisabled(ni));this.dateValue(Ot.length?[Ot[0],Ot[Ot.length-1]]:[null,null],jt)}}},Fn=L.A.inherit({_activeStateUnit:".dx-calendar-cell",_getDefaultOptions(){return(0,m.X)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,currentDate:new Date,value:null,dateSerializationFormat:void 0,min:new Date(1e3,0),max:new Date(3e3,0),firstDayOfWeek:void 0,viewsCount:1,zoomLevel:"month",maxZoomLevel:"month",minZoomLevel:"century",selectionMode:"single",selectWeekOnClick:!0,showTodayButton:!1,showWeekNumbers:!1,weekNumberRule:"auto",cellTemplate:"cell",disabledDates:null,onCellClick:null,onContouredChanged:null,skipFocusCheck:!1,_todayDate:()=>new Date})},_defaultOptionsRules(){return this.callBase().concat([{device:()=>"desktop"===v.A.real().deviceType&&!v.A.isSimulator(),options:{focusStateEnabled:!0}}])},_supportedKeys(){return(0,m.X)(this.callBase(),{rightArrow(It){It.preventDefault(),(0,H.By)(It)?this._waitRenderView(1):this._moveCurrentDateByOffset(1*this._getRtlCorrection())},leftArrow(It){It.preventDefault(),(0,H.By)(It)?this._waitRenderView(-1):this._moveCurrentDateByOffset(-1*this._getRtlCorrection())},upArrow(It){if(It.preventDefault(),(0,H.By)(It))this._navigateUp();else{if(k.A.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(-1*this._view.option("colCount"))}},downArrow(It){if(It.preventDefault(),(0,H.By)(It))this._navigateDown();else{if(k.A.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(1*this._view.option("colCount"))}},home(It){It.preventDefault();const Pt=this.option("zoomLevel"),dn=this.option("currentDate"),jt=this._dateOption("min");if(this._view.isDateDisabled(dn))return;const Ot=d.A.sameView(Pt,dn,jt)?jt:d.A.getViewFirstCellDate(Pt,dn);this._moveToClosestAvailableDate(Ot)},end(It){It.preventDefault();const Pt=this.option("zoomLevel"),dn=this.option("currentDate"),jt=this._dateOption("max");if(this._view.isDateDisabled(dn))return;const Ot=d.A.sameView(Pt,dn,jt)?jt:d.A.getViewLastCellDate(Pt,dn);this._moveToClosestAvailableDate(Ot)},pageUp(It){It.preventDefault(),this._waitRenderView(-1*this._getRtlCorrection())},pageDown(It){It.preventDefault(),this._waitRenderView(1*this._getRtlCorrection())},tab:S.lQ,enter:this._enterKeyHandler})},_enterKeyHandler(It){if(this._isMaxZoomLevel()){if(!this._view.isDateDisabled(this.option("currentDate"))){const Pt=this._updateTimeComponent(this.option("currentDate"));this._selectionStrategy.selectValue(Pt,It)}}else this._navigateDown()},_getSerializationFormat(It){const Pt=this.option(It||"value");return this.option("dateSerializationFormat")?this.option("dateSerializationFormat"):(0,T.kf)(Pt)?"number":(0,T.Kg)(Pt)?j.A.getDateSerializationFormat(Pt):void 0},_convertToDate:It=>j.A.deserializeDate(It),_dateValue(It,Pt){if(Pt){if("keydown"===Pt.type){const dn=this._view._getContouredCell().get(0);Pt.target=dn}this._saveValueChangeEvent(Pt)}this._dateOption("value",It)},_dateOption(It,Pt){const dn="value"===It&&!this._isSingleMode(),jt=this.option("value");if(1===arguments.length)return dn?(jt??[]).map(ni=>this._convertToDate(ni)):this._convertToDate(this.option(It));const Ot=this._getSerializationFormat(It),Tn=dn?Pt?.map(ni=>j.A.serializeDate(ni,Ot))||[]:j.A.serializeDate(Pt,Ot);this.option(It,Tn)},_isSingleMode(){return"single"===this.option("selectionMode")},_shiftDate(It,Pt,dn,jt){switch(It){case"month":Pt.setDate(Pt.getDate()+dn*jt);break;case"year":Pt.setMonth(Pt.getMonth()+dn*jt);break;case"decade":Pt.setFullYear(Pt.getFullYear()+dn*jt);break;case"century":Pt.setFullYear(Pt.getFullYear()+10*dn*jt)}},_moveCurrentDateByOffset(It){const Pt=this.option("currentDate");let dn=new Date(Pt);const jt=this.option("zoomLevel");this._shiftDate(jt,dn,It,1);const Ot=this._getMaxDate(),Tn=this._getMinDate();let ni=this._areDatesInNeighborView(jt,dn,Pt),Bi=(0,F.r4)(dn,Tn,Ot)&&ni;const Zi=new Date(dn);for(;Bi;){if(!this._view.isDateDisabled(Zi)){dn=Zi;break}this._shiftDate(jt,Zi,It,1),ni=this._areDatesInNeighborView(jt,Zi,Pt),Bi=(0,F.r4)(Zi,Tn,Ot)&&ni}if(this._view.isDateDisabled(Pt)||this._view.isDateDisabled(dn)){const ro=It>0?1:-1;(1===ro?this._isNextViewDisabled():this._isPrevViewDisabled())?this._moveToClosestAvailableDate(dn):this._waitRenderView(ro)}else this._skipNavigate=!0,this.option("currentDate",dn)},_isNextViewDisabled(){return this._navigator._nextButton.option("disabled")},_isPrevViewDisabled(){return this._navigator._prevButton.option("disabled")},_areDatesInSameView(It,Pt,dn){switch(It){case"month":return Pt.getMonth()===dn.getMonth();case"year":return Pt.getYear()===dn.getYear();case"decade":return parseInt(Pt.getYear()/10)===parseInt(dn.getYear()/10);case"century":return parseInt(Pt.getYear()/100)===parseInt(dn.getYear()/100)}},_areDatesInNeighborView(It,Pt,dn){switch(It){case"month":return((jt,Ot)=>{const Tn=Math.abs(jt-Ot);return Math.min(Tn,12-Tn)})(Pt.getMonth(),dn.getMonth())<=1;case"year":return Math.abs(Pt.getYear()-dn.getYear())<=1;case"decade":return Math.abs(Pt.getYear()-dn.getYear())<=10;case"century":return Math.abs(Pt.getYear()-dn.getYear())<=100}},_moveToClosestAvailableDate(){let It=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("currentDate"),Pt=new Date(It);const dn=this.option("zoomLevel"),jt=!this._isDateNotAvailable(Pt);let ni,Bi,Ot=jt,Tn=jt;const Zi=new Date(Pt),ro=new Date(Pt);do{if(Ot){Pt=Zi;break}if(Tn){Pt=ro;break}this._shiftDate(dn,Zi,1,1),this._shiftDate(dn,ro,1,-1),ni=this._areDatesInSameView(dn,Zi,It),Bi=this._areDatesInSameView(dn,ro,It),Ot=ni&&!this._isDateNotAvailable(Zi),Tn=Bi&&!this._isDateNotAvailable(ro)}while(ni||Bi);this.option("currentDate",Pt)},_isDateNotAvailable(It){const Pt=this._getMaxDate(),dn=this._getMinDate();return!(0,F.r4)(It,dn,Pt)||this._view.isDateDisabled(It)},_init(){this.callBase(),this._initSelectionStrategy(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_initSelectionStrategy(){const It=this._getSelectionStrategyName();(!this._selectionStrategy||this._selectionStrategy.NAME!==It)&&(this._selectionStrategy=new(0,bs[It])(this))},_refreshSelectionStrategy(){this._initSelectionStrategy(),this._selectionStrategy.restoreValue(),this._refresh()},_getSelectionStrategyName(){switch(this.option("selectionMode")){case"multiple":return"MultipleSelection";case"range":return"RangeSelection";default:return"SingleSelection"}},_correctZoomLevel(){const It=this.option("minZoomLevel"),Pt=this.option("maxZoomLevel"),dn=this.option("zoomLevel");qo[Pt]<qo[It]||(qo[dn]>qo[Pt]?this.option("zoomLevel",Pt):qo[dn]<qo[It]&&this.option("zoomLevel",It))},_initCurrentDate(){const It=this._getNormalizedDate(this._selectionStrategy.getDefaultCurrentDate())??this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",It)},_getNormalizedDate(It){return It=d.A.normalizeDate(It,this._getMinDate(),this._getMaxDate()),(0,T.O9)(It)?this._getDate(It):It},_initActions(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates(){this._templateManager.addDefaultTemplates({cell:new B.l(It=>{const Pt=It.model;(0,b.A)(It.container).append((0,b.A)("<span>").text(Pt&&Pt.text||String(Pt)))})}),this.callBase()},_updateCurrentDate(It){if(k.A.isAnimating(this._$viewsWrapper)&&k.A.stop(this._$viewsWrapper,!0),this._getMinDate()>this._getMaxDate())return void this.option("currentDate",new Date);const jt=this._getNormalizedDate(It);if(It.getTime()!==jt.getTime())return void this.option("currentDate",new Date(jt));let Ot=this._getViewsOffset(this._view.option("date"),jt);0!==Ot&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(Ot=0),this._view&&0!==Ot&&!this._suppressNavigation?this._additionalView?Ot>2||Ot<-1?(this._refreshViews(),this._setViewContoured(jt),this._updateAriaId(jt),this._renderNavigator()):1===Ot&&this._skipNavigate?(this._setViewContoured(jt),this._updateAriaId(jt)):this._navigate(Ot,jt):this._navigate(Ot,jt):(this._renderNavigator(),this._setViewContoured(jt),this._updateAriaId(jt)),this._skipNavigate=!1},_isAdditionalViewDate(It){return!!this._additionalView&&It>=this._additionalView._getFirstAvailableDate()},_getActiveView(It){return this._isAdditionalViewDate(It)?this._additionalView:this._view},_setViewContoured(It){var Pt;(this.option("skipFocusCheck")||(0,b.A)(this._$viewsWrapper).is(":focus"))&&(this._view.option("contouredDate",null),null===(Pt=this._additionalView)||void 0===Pt||Pt.option("contouredDate",null),(this._isAdditionalViewDate(It)?this._additionalView:this._view).option("contouredDate",It))},_getMinDate(){return this.option("_rangeMin")||(this.min||(this.min=this._dateOption("min")||new Date(1e3,0)),this.min)},_getMaxDate(){return this.option("_rangeMax")||(this.max||(this.max=this._dateOption("max")||new Date(3e3,0)),this.max)},_getViewsOffset(It,Pt){const dn=this.option("zoomLevel");if("month"===dn)return this._getMonthsOffset(It,Pt);let jt;switch(dn){case"century":jt=100;break;case"decade":jt=10;break;default:jt=1}return parseInt(Pt.getFullYear()/jt)-parseInt(It.getFullYear()/jt)},_getMonthsOffset:(It,Pt)=>12*(Pt.getFullYear()-It.getFullYear())+(Pt.getMonth()-It.getMonth()),_waitRenderView(It){if(this._alreadyViewRender)return;this._alreadyViewRender=!0;const Pt=this._getDateByOffset(It*this._getRtlCorrection());this._moveToClosestAvailableDate(Pt),this._waitRenderViewTimeout=setTimeout(()=>{this._alreadyViewRender=!1})},_getRtlCorrection(){return this.option("rtlEnabled")?-1:1},_getDateByOffset(It,Pt){const dn=(Pt=this._getDate(Pt??this.option("currentDate"))).getDate(),jt=d.A.getDifferenceInMonth(this.option("zoomLevel"))*It;Pt.setDate(1),Pt.setMonth(Pt.getMonth()+jt);const Ot=d.A.getLastMonthDate(Pt).getDate();return Pt.setDate(dn>Ot?Ot:dn),Pt},_focusTarget(){return this._$viewsWrapper},_focusEventTarget(){return this.$element()},_initMarkup(){this._renderSubmitElement();const It=this.$element();It.addClass("dx-calendar"),It.toggleClass("dx-calendar-range","range"===this.option("selectionMode")),this._renderBody(),It.append(this.$body),this._renderViews(),this._renderNavigator(),this.callBase(),this._renderEvents(),It.prepend(this._navigator.$element()),this._renderSwipeable(),this._renderFooter(),this._selectionStrategy.updateAriaSelected(),this._updateAriaId(),this._updateNavigatorLabels(),this.setAria("role","application"),this._moveToClosestAvailableDate()},_render(){this.callBase(),this._setViewContoured(this.option("currentDate"))},_renderBody(){this._$viewsWrapper||(this.$body=(0,b.A)("<div>").addClass("dx-calendar-body"),this._$viewsWrapper=(0,b.A)("<div>").addClass("dx-calendar-views-wrapper"),this.$body.append(this._$viewsWrapper))},_setAriaReadonly:S.lQ,_getKeyboardListeners(){return this.callBase().concat([this._view])},_renderViews(){this.$element().addClass(`dx-calendar-view-${this.option("zoomLevel")}`);const{currentDate:It,viewsCount:Pt}=this.option();if(this.$element().toggleClass("dx-calendar-multiview",Pt>1),this._view=this._renderSpecificView(It),(0,U.Vd)()){const dn=this._getDateByOffset(-1,It);this._beforeView=this._isViewAvailable(dn)?this._renderSpecificView(dn):null;const jt=this._getDateByOffset(Pt,It);jt.setDate(1),this._afterView=this._isViewAvailable(jt)?this._renderSpecificView(jt):null}Pt>1&&(this._additionalView=this._renderSpecificView(this._getDateByOffset(1,It))),this._translateViews()},_renderSpecificView(It){const{zoomLevel:Pt}=this.option(),dn=Co[Pt],jt=(0,b.A)("<div>").appendTo(this._$viewsWrapper),Ot=this._viewConfig(It);return this._createComponent(jt,dn,Ot)},_viewConfig(It){let Pt=this.option("disabledDates");return Pt=(0,T.Tn)(Pt)?this._injectComponent(Pt.bind(this)):Pt,(0,e.A)({},this._selectionStrategy.getViewOptions(),{date:It,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:this.option("firstDayOfWeek")??J.A.firstDayOfWeekIndex(),showWeekNumbers:this.option("showWeekNumbers"),selectWeekOnClick:this.option("selectWeekOnClick"),weekNumberRule:this.option("weekNumberRule"),zoomLevel:this.option("zoomLevel"),tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),disabledDates:Pt,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel(),_todayDate:this.option("_todayDate")})},_renderEvents(){Z.A.off(this._$viewsWrapper,ss),"range"===this.option("selectionMode")&&Z.A.on(this._$viewsWrapper,ss,null,()=>{this._updateViewsOption("hoveredRange",[])})},_injectComponent(It){const Pt=this;return function(dn){return(0,m.X)(dn,{component:Pt}),It(dn)}},_isViewAvailable(It){const Pt=this.option("zoomLevel"),dn=d.A.getViewMinBoundaryDate(Pt,this._getMinDate()),jt=d.A.getViewMaxBoundaryDate(Pt,this._getMaxDate());return d.A.dateInRange(It,dn,jt)},_translateViews(){const{viewsCount:It}=this.option();(0,w.Cy)(this._view.$element(),{left:0,top:0}),this._moveViewElement(this._beforeView,-1),this._moveViewElement(this._afterView,It),this._moveViewElement(this._additionalView,1)},_moveViewElement(It,Pt){It&&(0,w.Cy)(It.$element(),{left:this._getViewPosition(Pt),top:0})},_getViewPosition(It){return 100*It*(this.option("rtlEnabled")?-1:1)+"%"},_cellClickHandler(It){const Pt=this.option("zoomLevel"),dn=d.A.getViewDown(Pt),jt=this._isMaxZoomLevel();if(dn&&!jt)this._navigateDown(It.event.currentTarget);else{const Ot=this._updateTimeComponent(It.value);this._selectionStrategy.selectValue(Ot,It.event),this._cellClickAction(It)}},_updateTimeComponent(It){const Pt=new Date(It),dn=this._dateOption("value");return dn&&this._isSingleMode()&&(Pt.setHours(dn.getHours()),Pt.setMinutes(dn.getMinutes()),Pt.setSeconds(dn.getSeconds()),Pt.setMilliseconds(dn.getMilliseconds())),Pt},_isMaxZoomLevel(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown(It){const Pt=this.option("zoomLevel");if(this._isMaxZoomLevel())return;const dn=d.A.getViewDown(Pt);if(!dn)return;let jt=this._view.option("contouredDate")||this._view.option("date");It&&(jt=(0,b.A)(It).data("dxDateValueKey")),this._isOtherViewCellClicked=!0,this.option("currentDate",jt),this.option("zoomLevel",dn),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate")))},_renderNavigator(){this._navigator||(this._navigator=new he((0,b.A)("<div>"),this._navigatorConfig())),this._navigator.option("text",this._getViewsCaption(this._view,this._additionalView)),this._updateButtonsVisibility()},_navigatorConfig(){const{focusStateEnabled:It,rtlEnabled:Pt}=this.option();return{text:this._getViewsCaption(this._view,this._additionalView),onClick:this._navigatorClickHandler.bind(this),onCaptionClick:this._navigateUp.bind(this),focusStateEnabled:It,rtlEnabled:Pt,tabIndex:void 0}},_navigatorClickHandler(It){const{currentDate:Pt,viewsCount:dn}=this.option();let jt=It.direction;if(dn>1){const Tn=this._isAdditionalViewDate(Pt);(Tn&&jt<0||!Tn&&jt>0)&&(jt*=2)}const Ot=this._getDateByOffset(jt,Pt);this._moveToClosestAvailableDate(Ot)},_navigateUp(){const It=this.option("zoomLevel"),Pt=d.A.getViewUp(It);!Pt||this._isMinZoomLevel(It)||(this.option("zoomLevel",Pt),this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate"))))},_isMinZoomLevel(It){const Pt=this._getMinDate(),dn=this._getMaxDate();return d.A.sameView(It,Pt,dn)||this.option("minZoomLevel")===It},_updateButtonsVisibility(){this._navigator.toggleButton("next",!(0,T.O9)(this._afterView)),this._navigator.toggleButton("prev",!(0,T.O9)(this._beforeView))},_renderSwipeable(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),A.A,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler(It){k.A.stop(this._$viewsWrapper,!0);const{viewsCount:Pt}=this.option();this._toggleGestureCoverCursor("grabbing"),It.event.maxLeftOffset=this._getRequiredView("next")?1/Pt:0,It.event.maxRightOffset=this._getRequiredView("prev")?1/Pt:0},_toggleGestureCoverCursor(It){(0,b.A)(".dx-gesture-cover").css("cursor",It)},_getRequiredView(It){let Pt;const dn=this.option("rtlEnabled");return"next"===It?Pt=dn?this._beforeView:this._afterView:"prev"===It&&(Pt=dn?this._afterView:this._beforeView),Pt},_swipeUpdateHandler(It){const{offset:Pt}=It.event;(0,w.Cy)(this._$viewsWrapper,{left:Pt*this._viewWidth(),top:0}),this._updateNavigatorCaption(Pt)},_swipeEndHandler(It){this._toggleGestureCoverCursor("auto");const{currentDate:Pt,rtlEnabled:dn}=this.option(),{targetOffset:jt}=It.event,Ot=jt?jt/Math.abs(jt):0,ni=this._isAdditionalViewDate(Pt)&&(dn?-1===Ot:1===Ot);if(0===Ot)return void this._animateWrapper(0,250);const Bi=-Ot*this._getRtlCorrection()*(ni?2:1);let Zi=this._getDateByOffset(Bi);this._isDateInInvalidRange(Zi)&&(Zi=Ot>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",Zi)},_viewWidth(){return this._viewWidthValue||(this._viewWidthValue=(0,X.RG)(this.$element())/this.option("viewsCount")),this._viewWidthValue},_updateNavigatorCaption(It){It*=this._getRtlCorrection();const Pt=this.option("viewsCount")>1;let dn,jt;It>.5&&this._beforeView?(dn=this._beforeView,jt=Pt&&this._view):It<-.5&&this._afterView?(dn=Pt?this._additionalView:this._afterView,jt=Pt?this._afterView:null):(dn=this._view,jt=Pt?this._additionalView:null),this._navigator.option("text",this._getViewsCaption(dn,jt))},_getViewsCaption(It,Pt){let dn=It.getNavigatorCaption();const{viewsCount:jt}=this.option();return jt>1&&Pt&&(dn=`${dn} - ${Pt.getNavigatorCaption()}`),dn},_isDateInInvalidRange(It){if(this._view.isBoundary(It))return;const Pt=this._getMinDate(),dn=this._getMaxDate(),jt=d.A.normalizeDate(It,Pt,dn);return jt===Pt||jt===dn},_renderFooter(){const It=this.option("showTodayButton");if(It){const Pt=this._createComponent((0,b.A)("<div>"),R.A,{focusStateEnabled:this.option("focusStateEnabled"),text:C.A.format("dxCalendar-todayButtonText"),onClick:dn=>{this._toTodayView(dn)},type:(0,G.Ft)()?"normal":"default",stylingMode:(0,G.Ft)()?"outlined":"text",integrationOptions:{}}).$element().addClass("dx-calendar-today-button");this._$footer=(0,b.A)("<div>").addClass("dx-calendar-footer").append(Pt),this.$element().append(this._$footer)}this.$element().toggleClass("dx-calendar-with-footer",It)},_renderSubmitElement(){this._$submitElement=(0,b.A)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue(It){const Pt=this._convertToDate(It);this._getSubmitElement().val(j.A.serializeDate(Pt,"yyyy-MM-dd"))},_getSubmitElement(){return this._$submitElement},_animateShowView(){k.A.stop(this._view.$element(),!0),this._popAnimationView(this._view,.6,1,250),this.option("viewsCount")>1&&(k.A.stop(this._additionalView.$element(),!0),this._popAnimationView(this._additionalView,.6,1,250))},_popAnimationView:(It,Pt,dn,jt)=>k.A.animate(It.$element(),{type:"pop",from:{scale:Pt,opacity:Pt},to:{scale:dn,opacity:dn},duration:jt}),_navigate(It,Pt){if(0!==It&&1!==Math.abs(It)&&this._isViewAvailable(Pt)){const ni=this._renderSpecificView(Pt);It>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=ni):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=ni),this._translateViews()}const Ot=-this._getRtlCorrection()*(It>0?1:It<0?-1:0)*this._viewWidth();this._$viewsWrapper.position().left!==Ot&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(It,Pt):this._animateWrapper(Ot,250).done(this._wrapperAnimationEndHandler.bind(this,It,Pt)))},_animateWrapper(It,Pt){return k.A.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:It},duration:Pt})},_getDate:It=>new Date(It),_toTodayView(It){const Pt=new Date;this._isMaxZoomLevel()?this._selectionStrategy.selectValue(Pt,It.event):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._selectionStrategy.selectValue(Pt,It.event),this._animateShowView(),this._preventViewChangeAnimation=!1)},_wrapperAnimationEndHandler(It,Pt){this._rearrangeViews(It),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(Pt),this._updateAriaId(Pt),this._selectionStrategy.updateAriaSelected()},_rearrangeViews(It){var Pt;if(0===It)return;const{viewsCount:dn}=this.option();let jt,Ot,Tn,ni,Bi;if(It<0?(jt=1,Ot="_beforeView",Tn="_afterView",ni="_view",Bi=1===dn?"_view":"_additionalView"):(jt=-1,Ot="_afterView",Tn="_beforeView",ni=1===dn?"_view":"_additionalView",Bi="_view"),!this[Ot])return;const Zi=this[Ot].option("date");null===(Pt=this[Tn])||void 0===Pt||Pt.$element().remove(),this[Tn]=this._renderSpecificView(this._getDateByOffset(jt*dn,Zi)),this[Bi].$element().remove(),1===dn?this[Bi]=this[Ot]:(this[Bi]=this[ni],this[ni]=this[Ot]);const ro=this._getDateByOffset(-jt,Zi);this[Ot]=this._isViewAvailable(ro)?this._renderSpecificView(ro):null},_resetLocation(){(0,w.Cy)(this._$viewsWrapper,{left:0,top:0})},_clean(){this.callBase(),this._clearViewWidthCache(),delete this._$viewsWrapper,delete this._navigator,delete this._$footer},_clearViewWidthCache(){delete this._viewWidthValue},_disposeViews(){this._view.$element().remove(),this._beforeView&&this._beforeView.$element().remove(),this._additionalView&&this._additionalView.$element().remove(),this._afterView&&this._afterView.$element().remove(),delete this._view,delete this._additionalView,delete this._beforeView,delete this._afterView,delete this._skipNavigate},_dispose(){clearTimeout(this._waitRenderViewTimeout),this.callBase()},_refreshViews(){this._resetActiveState(),this._disposeViews(),this._renderViews()},_visibilityChanged(){this._translateViews()},_shouldSkipFocusEvent(It){const{target:Pt,relatedTarget:dn}=It;return(0,b.A)(Pt).parents(".dx-calendar").length&&(0,b.A)(dn).parents(".dx-calendar").length},_focusInHandler(It){(0,b.A)(It.target).is(this._$viewsWrapper)&&this._setViewContoured(this.option("currentDate")),!this._shouldSkipFocusEvent(It)&&(this.callBase.apply(this,arguments),this._toggleFocusClass(!0,this.$element()))},_focusOutHandler(It){var Pt;(0,b.A)(It.target).is(this._$viewsWrapper)&&(this._view.option("contouredDate",null),null===(Pt=this._additionalView)||void 0===Pt||Pt.option("contouredDate",null)),this._shouldSkipFocusEvent(It)||(this.callBase.apply(this,arguments),this._toggleFocusClass(!1,this.$element()))},_updateViewsOption(It,Pt){var dn,jt,Ot;this._view.option(It,Pt),null===(dn=this._additionalView)||void 0===dn||dn.option(It,Pt),null===(jt=this._beforeView)||void 0===jt||jt.option(It,Pt),null===(Ot=this._afterView)||void 0===Ot||Ot.option(It,Pt)},_setViewsMinOption(It){this._restoreViewsMinMaxOptions(),this.option("_rangeMin",this._convertToDate(It)),this._updateViewsOption("min",this._getMinDate())},_setViewsMaxOption(It){this._restoreViewsMinMaxOptions(),this.option("_rangeMax",this._convertToDate(It)),this._updateViewsOption("max",this._getMaxDate())},_restoreViewsMinMaxOptions(){this._resetActiveState(),this.option({_rangeMin:null,_rangeMax:null}),this._updateViewsOption("min",this._getMinDate()),this._updateViewsOption("max",this._getMaxDate())},_updateNavigatorLabels(){let It=this.option("zoomLevel");It=It.charAt(0).toUpperCase()+It.slice(1);const Pt=this._navigator._caption.option("text"),dn=C.A.format(`dxCalendar-previous${It}ButtonLabel`),jt=C.A.format(`dxCalendar-caption${It}Label`),Ot=C.A.format(`dxCalendar-next${It}ButtonLabel`);this.setAria("label",dn,this._navigator._prevButton.$element()),this.setAria("label",`${Pt}. ${jt}`,this._navigator._caption.$element()),this.setAria("label",Ot,this._navigator._nextButton.$element())},_updateAriaSelected(It,Pt){Pt.forEach(dn=>{this.setAria("selected",!1,this._view._getCellByDate(dn))}),It.forEach(dn=>{this.setAria("selected",!0,this._view._getCellByDate(dn))}),this.option("viewsCount")>1&&(Pt.forEach(dn=>{this.setAria("selected",!1,this._additionalView._getCellByDate(dn))}),It.forEach(dn=>{this.setAria("selected",!0,this._additionalView._getCellByDate(dn))}))},_updateAriaId(It){It=It??this.option("currentDate");const Pt=`dx-${new x.A}`,jt=this._getActiveView(It)._getCellByDate(It);this.setAria("id",Pt,jt),this.setAria("activedescendant",Pt),this._onContouredChanged(Pt)},_suppressingNavigation(It,Pt){this._suppressNavigation=!0,It.apply(this,Pt),delete this._suppressNavigation},_optionChanged(It){const{value:Pt,previousValue:dn}=It;switch(It.name){case"width":this.callBase(It),this._clearViewWidthCache();break;case"min":case"max":this.min=void 0,this.max=void 0,this._suppressingNavigation(this._updateCurrentDate,[this.option("currentDate")]),this._refreshViews(),this._renderNavigator();break;case"selectionMode":this._refreshSelectionStrategy(),this._initCurrentDate();break;case"selectWeekOnClick":case"_todayDate":case"showWeekNumbers":case"weekNumberRule":this._refreshViews();break;case"firstDayOfWeek":this._refreshViews(),this._updateButtonsVisibility();break;case"focusStateEnabled":case"disabledDates":case"dateSerializationFormat":case"cellTemplate":case"showTodayButton":this._invalidate();break;case"currentDate":this.setAria("id",void 0,this._view._getCellByDate(dn)),this._updateCurrentDate(Pt);break;case"zoomLevel":this.$element().removeClass(`dx-calendar-view-${dn}`),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId(),this._updateNavigatorLabels();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":this._selectionStrategy.processValueChanged(Pt,dn),this._setSubmitValue(Pt),this.callBase(It);break;case"viewsCount":this._refreshViews(),this._renderNavigator();break;case"onCellClick":this._view.option("onCellClick",Pt);break;case"onContouredChanged":this._onContouredChanged=this._createActionByOption("onContouredChanged");break;case"skipFocusCheck":break;default:this.callBase(It)}},getContouredDate(){return this._view.option("contouredDate")}});(0,P.A)("dxCalendar",Fn);const si=Fn,ri=p(6717).A.inherit({NAME:"Calendar",getDefaultOptions(){return(0,m.X)(this.callBase(),{todayButtonText:C.A.format("dxCalendar-todayButtonText")})},supportedKeys(){const It=function(Pt){return!!this.option("opened")&&(Pt.preventDefault(),!0)};return{rightArrow(){if(this.option("opened"))return!0},leftArrow(){if(this.option("opened"))return!0},enter:function(Pt){if(this.dateBox.option("opened")){if(Pt.preventDefault(),this._widget.option("zoomLevel")===this._widget.option("maxZoomLevel")){const dn=this._getContouredValue(),jt=this._lastActionElement,Ot=this._closeDropDownByEnter();return Ot&&dn&&"calendar"===jt&&this.dateBoxValue(dn,Pt),Ot&&this.dateBox.close(),this.dateBox._valueChangeEventHandler(Pt),!Ot}return!0}this.dateBox._valueChangeEventHandler(Pt)}.bind(this),home:It,end:It}},getDisplayFormat:It=>It||"shortdate",_closeDropDownByEnter:()=>!0,_getWidgetName:()=>si,_getContouredValue(){return this._widget._view.option("contouredDate")},getKeyboardListener(){return this._widget},_getWidgetOptions(){const It=this.dateBox.option("disabledDates");return(0,m.X)(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,selectionMode:"single",dateSerializationFormat:null,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),disabledDates:(0,T.Tn)(It)?this._injectComponent(It.bind(this.dateBox)):It,onContouredChanged:this._refreshActiveDescendant.bind(this),skipFocusCheck:!0})},_injectComponent(It){const Pt=this;return function(dn){return(0,m.X)(dn,{component:Pt.dateBox}),It(dn)}},_refreshActiveDescendant(It){this._lastActionElement="calendar",this.dateBox.setAria("activedescendant",It.actionValue)},_getTodayButtonConfig(){const It=this.dateBox.option("buttonsLocation"),dn="default"===It?["bottom","center"]:(0,S.T6)(It),jt=(0,G.gx)()?"text":"outlined";return{widget:"dxButton",toolbar:dn[0],location:"after"===dn[1]?"before":dn[1],options:{onClick:Ot=>{this._widget._toTodayView(Ot)},text:this.dateBox.option("todayButtonText"),elementAttr:{class:"dx-button-today"},stylingMode:jt}}},_isCalendarVisible(){const{calendarOptions:It}=this.dateBox.option();return(0,T.RI)(It)||!1!==It.visible},_getPopupToolbarItems(It){return"useButtons"===this.dateBox.option("applyValueMode")&&this._isCalendarVisible()?[this._getTodayButtonConfig(),...It]:It},popupConfig:It=>(0,m.X)(!0,It,{position:{collision:"flipfit flip"},width:"auto"}),_valueChangedHandler(It){const{value:Pt}=It,dn=It.previousValue;d.A.sameDate(Pt,dn)&&d.A.sameHoursAndMinutes(Pt,dn)||"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(this.getValue(),It.event)},_updateValue(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler(){this._lastActionElement="input",this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler(It){const{dateBox:Pt}=this;"instantly"===Pt.option("applyValueMode")&&(Pt.option("opened",!1),this.dateBoxValue(this.getValue(),It.event))}})},4757:(En,it,p)=>{"use strict";p.d(it,{N:()=>T,n:()=>m});var S=p(3686),d=p(1830);const m=C=>C??(0,S.A)().rtlEnabled?"right":"left",T=C=>(0,d.l6)(C)?{width:C.outerWidth,height:C.outerHeight}:C.getBoundingClientRect()},4761:(En,it,p)=>{"use strict";p.d(it,{A:()=>H});var S=p(3686),d=p(5870),m=p(5259),T=p(1830);const w=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,P=/^(\d{2}):(\d{2})(:(\d{2}))?$/,v=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],x=/^(\d{4})\/(\d{2})\/(\d{2})$/,B=function(J,R){let L;return(0,T.Kg)(J)&&!R&&(L=function X(J){let R=J.match(w);if(!R)return R=J.match(P),R?new Date(0,0,0,j(R[1]),j(R[2]),j(R[4])):void 0;const L=j(R[1]),G=--R[3],Q=R[5];let z=0,K=0;z=j(R[14]),K=j(R[16]),"-"===R[13]&&(z=-z,K=-K);const re=j(R[6])-z,be=j(R[8])-K,ce=j(R[10]),Re=j(Se=(Se=R[11])||"")*Math.pow(10,3-Se.length);var Se;return(Se=>(L<100&&Se.setFullYear(L),Se))(R[12]?new Date(Date.UTC(L,G,Q,re,be,ce,Re)):new Date(L,G,Q,re,be,ce,Re))}(J)),L||function F(J){const R="yyyy/MM/dd"===M(J),L=!(0,T.$P)(J)&&Date.parse(J);if(!L&&R){const G=J.match(x);if(G){const Q=new Date(j(G[1]),j(G[2]),j(G[3]));return Q.setFullYear(j(G[1])),Q.setMonth(j(G[2])-1),Q.setDate(j(G[3])),Q}}return(0,T.kf)(L)?new Date(L):J}(J)};function j(J){return+J||0}const M=function(J){if("number"==typeof J)return"number";if((0,T.Kg)(J)){let R;return(0,S.A)().forceIsoDateParsing&&(R=function(J){let L=J.match(w),G="";if(!L)return L=J.match(P),L?L[3]?"HH:mm:ss":"HH:mm":void 0;for(let Q=1;Q<v.length;Q++)L[Q]&&(G+=v[Q]||L[Q]);return"Z"===L[12]&&(G+="'Z'"),L[14]&&(G+=L[15]?"xxx":L[16]?"xx":"x"),G}(J)),R||(J.indexOf(":")>=0?"yyyy/MM/dd HH:mm:ss":"yyyy/MM/dd")}return J?null:void 0},H={dateParser:B,deserializeDate:function(J){return"number"==typeof J?new Date(J):B(J,!(0,S.A)().forceIsoDateParsing)},serializeDate:function(J,R){return R?(0,T.$P)(J)?"number"===R?J&&J.valueOf?J.valueOf():null:(0,d.f)(R,m.A)(J):null:J},getDateSerializationFormat:M}},4773:(En,it,p)=>{"use strict";p.d(it,{A:()=>P});var w,S=p(6285),d=p(756),m=p(5050),T=p(3746),C=p(656),e=p(65),k=p(3008);class P{constructor(b,B,j,F){this.http=b,this.scopeService=B,this.propertyConverter=j,this.chatRelayService=F,this.apiEndpoint=`${this.scopeService.getScope().apiEndpoint}chatMessages`}postMessage(b,B,j,F){return this.http.post(`${this.apiEndpoint}`,{id:b,chatRoomId:B,displayContent:j,replyId:F})}postAttachmentMessage(b,B,j,F){return this.http.post(`${this.apiEndpoint}`,{id:b,chatRoomId:B,displayContent:j,chatMessageAttachments:[F]})}updateMessage(b,B){return this.http.patch(`${this.apiEndpoint}/${b}`,{displayContent:B})}deleteMessage(b){return this.http.delete(`${this.apiEndpoint}/${b}`)}static#e=w=()=>(this.DUMMY_LOADER={dataSource:new S.A([]),pageSize:20,totalCount:0,nextPage:()=>(0,d.of)(),previousPage:()=>(0,d.of)(),onDestroy:()=>{},addMessage:()=>{}},this.\u0275fac=function(B){return new(B||P)(C.KVO(e.Qq),C.KVO(T.A),C.KVO(m.A),C.KVO(k.p))},this.\u0275prov=C.jDH({token:P,factory:P.\u0275fac}))}w()},4775:(En,it,p)=>{"use strict";p.d(it,{A:()=>z});var S=p(2583),d=p(1973),m=p(5973),T=p(5704),C=p(6021),e=p(3090),k=p(4757),w=p(1363),P=p(778),v=p(4451),x=p(4072),b=p(6790),B=p(9293),j=p(8360);const G=p(6620).A.inherit({_supportedKeys(){const K=this.option("rtlEnabled"),ee=function(be){be.preventDefault(),this._clickAction({event:be})},re=function(be,ce){ce.preventDefault(),ce.stopPropagation(),this._saveValueChangeEvent(ce),this._animateValue(be)};return(0,e.X)(this.callBase(),{space:ee,enter:ee,leftArrow:re.bind(this,!!K),rightArrow:re.bind(this,!K)})},_useTemplates:()=>!1,_getDefaultOptions(){return(0,e.X)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,switchedOnText:j.A.format("dxSwitch-switchedOnText"),switchedOffText:j.A.format("dxSwitch-switchedOffText"),value:!1})},_defaultOptionsRules(){return this.callBase().concat([{device:()=>"desktop"===m.A.real().deviceType&&!m.A.isSimulator(),options:{focusStateEnabled:!0}}])},_feedbackHideTimeout:0,_animating:!1,_initMarkup(){this._renderContainers(),this.$element().addClass("dx-switch").append(this._$switchWrapper),this._renderSubmitElement(),this._renderClick(),this.setAria("role","switch"),this._renderSwipeable(),this.callBase(),this._renderSwitchInner(),this._renderLabels(),this._renderValue()},_getInnerOffset(K,ee){return(ee-this._offsetDirection()*+!K)/2*100+"%"},_getHandleOffset(K,ee){return this.option("rtlEnabled")&&(K=!K),K?100*-ee-100+"%":100*-ee+"%"},_renderSwitchInner(){this._$switchInner=(0,T.A)("<div>").addClass("dx-switch-inner").appendTo(this._$switchContainer),this._$handle=(0,T.A)("<div>").addClass("dx-switch-handle").appendTo(this._$switchInner)},_renderLabels(){this._$labelOn=(0,T.A)("<div>").addClass("dx-switch-on").prependTo(this._$switchInner),this._$labelOff=(0,T.A)("<div>").addClass("dx-switch-off").appendTo(this._$switchInner),this._setLabelsText()},_renderContainers(){this._$switchContainer=(0,T.A)("<div>").addClass("dx-switch-container"),this._$switchWrapper=(0,T.A)("<div>").addClass("dx-switch-wrapper").append(this._$switchContainer)},_renderSwipeable(){this._createComponent(this.$element(),b.A,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getItemSizeFunc.bind(this)})},_getItemSizeFunc(){return(0,w.Ot)(this._$switchContainer,!0)-(0,k.N)(this._$handle.get(0)).width},_renderSubmitElement(){this._$submitElement=(0,T.A)("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement(){return this._$submitElement},_offsetDirection(){return this.option("rtlEnabled")?-1:1},_renderPosition(K,ee){const re=this._getInnerOffset(K,ee),be=this._getHandleOffset(K,ee);this._$switchInner.css("transform",` translateX(${re})`),this._$handle.css("transform",` translateX(${be})`)},_validateValue(){const K=this.option("value");"boolean"!=typeof K&&this._options.silent("value",!!K)},_renderClick(){const K=(0,B.b4)(P.U,this.NAME),ee=this.$element();this._clickAction=this._createAction(this._clickHandler.bind(this)),x.A.off(ee,K),x.A.on(ee,K,re=>{this._clickAction({event:re})})},_clickHandler(K){this._saveValueChangeEvent(K.event),!this._animating&&!this._swiping&&this._animateValue(!this.option("value"))},_animateValue(K){const ee=this.option("value"),re=K;if(ee===re)return;this._animating=!0;const be=this._getInnerOffset(ee,0),ce=this._getInnerOffset(re,0),Re=this._getHandleOffset(ee,0),Se=this._getHandleOffset(re,0),De=this,Pe={},Ie={},W={},ie={};Pe.transform=` translateX(${be})`,Ie.transform=` translateX(${ce})`,W.transform=` translateX(${Re})`,ie.transform=` translateX(${Se})`,this.$element().toggleClass("dx-switch-on-value",re),S.A.animate(this._$handle,{from:W,to:ie,duration:100}),S.A.animate(this._$switchInner,{from:Pe,to:Ie,duration:100,complete(){De._animating=!1,De.option("value",re)}})},_swipeStartHandler(K){const ee=this.option("value"),re=this.option("rtlEnabled"),be=re?0:1,ce=re?1:0;K.event.maxLeftOffset=ee?be:ce,K.event.maxRightOffset=ee?ce:be,this._swiping=!0,this._feedbackDeferred=(0,C.cY)(),(0,v.s2)(this._feedbackDeferred),this._toggleActiveState(this.$element(),this.option("activeStateEnabled"))},_swipeUpdateHandler(K){this._renderPosition(this.option("value"),K.event.offset)},_swipeEndHandler(K){const ee=this,re=this._offsetDirection(),be={},ce={},Re=this._getInnerOffset(ee.option("value"),K.event.targetOffset),Se=this._getHandleOffset(ee.option("value"),K.event.targetOffset);be.transform=` translateX(${Re})`,ce.transform=` translateX(${Se})`,S.A.animate(this._$handle,{to:ce,duration:100}),S.A.animate(this._$switchInner,{to:be,duration:100,complete(){ee._swiping=!1;const De=ee.option("value")+re*K.event.targetOffset;ee._saveValueChangeEvent(K.event),ee.option("value",!!De),ee._feedbackDeferred.resolve(),ee._toggleActiveState(ee.$element(),!1)}})},_renderValue(){this._validateValue();const K=this.option("value");this._renderPosition(K,0),this.$element().toggleClass("dx-switch-on-value",K),this._getSubmitElement().val(K),this.setAria({checked:K,label:this.option(K?"switchedOnText":"switchedOffText")})},_setLabelsText(){this._$labelOn&&this._$labelOn.text(this.option("switchedOnText")),this._$labelOff&&this._$labelOff.text(this.option("switchedOffText"))},_visibilityChanged(K){K&&this.repaint()},_optionChanged(K){switch(K.name){case"width":delete this._marginBound,this._refresh();break;case"switchedOnText":case"switchedOffText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(K);break;default:this.callBase(K)}}});(0,d.A)("dxSwitch",G);const z=G},4781:(En,it,p)=>{"use strict";p.d(it,{B:()=>T,a:()=>C});var S=p(6054);const d=/<([a-z][^/\0>\x20\t\r\n\f]+)/i,m={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};m.tbody=m.colgroup=m.caption=m.tfoot=m.thead,m.th=m.td;const T=function(e){if("string"!=typeof e)return null;let w=S.A.createDocumentFragment().appendChild(S.A.createElement("div"));const P=d.exec(e),v=P&&P[1].toLowerCase(),x=m[v]||m.default;w.innerHTML=x.startTags+e+x.endTags;for(let b=0;b<x.tagsCount;b++)w=w.lastChild;return[...w.childNodes]},C=function(e){const k=d.exec(e);return k&&k[1]in m}},4807:(En,it,p)=>{"use strict";p.d(it,{H:()=>m});var S=p(3422),d=p(4418);function m(T,C){return(0,d.T)(C)?(0,S.Z)(T,C,1):(0,S.Z)(T,1)}},4808:(En,it,p)=>{"use strict";p.d(it,{U:()=>S});const S={now:()=>(S.delegate||Date).now(),delegate:void 0}},4859:(En,it,p)=>{"use strict";p.d(it,{EG:()=>z,GP:()=>G,Li:()=>L,Mb:()=>U,Nt:()=>Q,OX:()=>X,RL:()=>De,T6:()=>H,TA:()=>ee,VM:()=>re,YD:()=>w,a0:()=>Z,hm:()=>A,lQ:()=>K,uG:()=>P,zE:()=>F});var S=p(5737),d=p(3686),m=p(2925),T=p(6021),C=p(4270),e=p(2660),k=p(1830);const w=function(Pe,Ie){return(0,k.O9)(Pe)?Pe:Ie},P=function(Pe,Ie){const W=new T.cY,ie=Ie||this,he={promise:W.promise(),abort:function(){clearTimeout(Ce),W.rejectWith(ie)}},Ce=(arguments[2]||setTimeout)(function(){const ye=Pe.call(ie);ye&&ye.done&&(0,k.Tn)(ye.done)?ye.done(function(){W.resolveWith(ie)}):W.resolveWith(ie)},"number"==typeof Ie?Ie:0);return he},v=[],x=[],b=[];let B;const j=function(Pe,Ie,W){if(B&&B!==Pe)return v.push(Ie),x.push(Pe),W=W||new T.cY,b.push(W),W;{const ie=B,he=b.length;B=Pe;let Ce=Ie();return Ce||(b.length>he?Ce=T.z7.apply(this,b.slice(he)):W&&W.resolve()),B=ie,W&&Ce&&Ce.done&&Ce.done(W.resolve).fail(W.reject),!B&&v.length&&("render"===x.shift()?F:X)(v.shift(),b.shift()),Ce||(0,T.z7)()}},F=function(Pe,Ie){return j("render",Pe,Ie)},X=function(Pe,Ie){return j("update",Pe,Ie)},U=function(Pe){return function(){const Ie=this;return j("render",function(){return Pe.call(Ie)})}},Z=function(Pe){return function(){const Ie=this;return j("update",function(){return Pe.call(Ie)})}},A=function(Pe,Ie,W){const ie=[];let he=0;return(0,e.__)(Ie,(Ce,ye)=>{let Me=0;const _e=W?W(ye):ye;(0,e.__)(Pe,(ke,Ye)=>{const de=_e[ke];if(void 0!==de)return M(de,Ye)?void Me++:(Me=-1,!1)}),!(Me<he)&&(Me>he&&(ie.length=0,he=Me),ie.push(ye))}),ie},M=function(Pe,Ie){if(Array.isArray(Pe)&&Array.isArray(Ie)){let W=!1;return(0,e.__)(Pe,(ie,he)=>{if(he!==Ie[ie])return W=!0,!1}),!W}return Pe===Ie},H=function(Pe){switch((0,k.NW)(Pe)){case"string":return Pe.split(/\s+/,2);case"object":return[Pe.x??Pe.h,Pe.y??Pe.v];case"number":return[Pe];case"array":return Pe;default:return null}},L=function(Pe,Ie){const W=H(Pe);let ie=Ie?parseFloat(W&&W[0]):parseInt(W&&W[0],10),he=Ie?parseFloat(W&&W[1]):parseInt(W&&W[1],10);return isFinite(ie)||(ie=0),isFinite(he)||(he=ie),{h:ie,v:he}},G=function(Pe){if(Pe instanceof m.A)return Pe.toString();if((0,k.Gv)(Pe)||Array.isArray(Pe))try{const Ie=JSON.stringify(Pe);return"{}"===Ie?Pe:Ie}catch{return Pe}return Pe},Q=function(Pe){return Pe.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},z=function(Pe){const Ie=(0,d.A)().serverDecimalSeparator;return(0,k.O9)(Pe)&&(Pe=Pe.toString().replace(".",Ie)),Pe},K=function(){},ee=function(){return(new T.cY).resolve().promise()},re=function(Pe,Ie,W){const ie=[];let he;const Ce=!W;for(let ye=0;ye<Pe.length;ye++)he=!!Ie(Pe[ye],ye),he===Ce&&ie.push(Pe[ye]);return ie},Re={maxDepth:3,strict:!0},Se=(Pe,Ie,W,ie)=>{const{strict:he,maxDepth:Ce}=ie,ye=(0,C.ao)(Pe,!0),Me=(0,C.ao)(Ie,!0);switch(!0){case he?ye===Me:ye==Me:case W>=Ce:return!0;case(0,k.Gv)(ye)&&(0,k.Gv)(Me):return((Pe,Ie,W,ie)=>{const he=Object.keys(Pe),Ce=Object.keys(Ie);if(he.length!==Ce.length)return!1;const ye=new Set(Ce);return!he.some(Me=>!ye.has(Me)||!Se(Pe[Me],Ie[Me],W+1,ie))})(ye,Me,W,ie);case Array.isArray(ye)&&Array.isArray(Me):return((Pe,Ie,W,ie)=>Pe.length===Ie.length&&!Pe.some((he,Ce)=>!Se(he,Ie[Ce],W+1,(0,S.A)({},ie,{strict:!0}))))(ye,Me,W,ie);default:return!1}},De=function(Pe,Ie){const ie=(0,S.A)({},Re,arguments.length>2&&void 0!==arguments[2]?arguments[2]:Re);return Se(Pe,Ie,0,ie)}},4882:(En,it,p)=>{"use strict";p.d(it,{nX:()=>Yn,Pu:()=>Xd,Zp:()=>en,nU:()=>ft,wU:()=>mo,c1:()=>Us,XR:()=>Ll,wF:()=>jn,lW:()=>_o,mo:()=>$i,Z:()=>Qt,J2:()=>gd,J_:()=>xl,bw:()=>ic,b:()=>Mu,tD:()=>Qs,Ix:()=>Ac,D$:()=>oc,n3:()=>ws,OY:()=>zn,Sd:()=>Gt,bK:()=>pd,gk:()=>Tc,Lg:()=>rc,wO:()=>ss,Us:()=>qi,we:()=>nr});var S=p(656),d=p(5732),m=p(4303),T=p(2978),C=p(3038),e=p(9406),k=p(4418),P=p(8399),v=p(756),x=p(5981),b=p(199),B=p(943),j=p(3806),X=p(2363);function U(...rt){return function F(){return(0,j.U)(1)}()((0,P.H)(rt,(0,X.lI)(rt)))}var Z=p(8621);function A(rt){return new e.c(At=>{(0,Z.Tg)(rt()).subscribe(At)})}var M=p(6106),H=p(8823),J=p(8448),R=p(2029),L=p(9867),G=p(6111);function Q(){return(0,L.N)((rt,At)=>{let vt=null;rt._refCount++;const kt=(0,G._)(At,void 0,void 0,void 0,()=>{if(!rt||rt._refCount<=0||0<--rt._refCount)return void(vt=null);const ln=rt._connection,Rn=vt;vt=null,ln&&(!Rn||ln===Rn)&&ln.unsubscribe(),At.unsubscribe()});rt.subscribe(kt),kt.closed||(vt=rt.connect())})}class z extends e.c{constructor(At,vt){super(),this.source=At,this.subjectFactory=vt,this._subject=null,this._refCount=0,this._connection=null,(0,L.S)(At)&&(this.lift=At.lift)}_subscribe(At){return this.getSubject().subscribe(At)}getSubject(){const At=this._subject;return(!At||At.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:At}=this;this._subject=this._connection=null,At?.unsubscribe()}connect(){let At=this._connection;if(!At){At=this._connection=new R.yU;const vt=this.getSubject();At.add(this.source.subscribe((0,G._)(vt,void 0,()=>{this._teardown(),vt.complete()},kt=>{this._teardown(),vt.error(kt)},()=>this._teardown()))),At.closed&&(this._connection=null,At=R.yU.EMPTY)}return At}refCount(){return Q()(this)}}var K=p(6104),ee=p(3527),re=p(2831),be=p(8486),Re=p(8503),Se=p(3422),De=p(6715),Pe=p(4807),Ie=p(7236),W=p(4526);var Ce=p(2290);function ye(rt){return rt<=0?()=>J.w:(0,L.N)((At,vt)=>{let kt=[];At.subscribe((0,G._)(vt,ln=>{kt.push(ln),rt<kt.length&&kt.shift()},()=>{for(const ln of kt)vt.next(ln);vt.complete()},void 0,()=>{kt=null}))})}var Me=p(7101),_e=p(9656),Ye=p(6347),de=p(6340),Ae=p(6098);const pe="primary",Ee=Symbol("RouteTitle");class le{params;constructor(At){this.params=At||{}}has(At){return Object.prototype.hasOwnProperty.call(this.params,At)}get(At){if(this.has(At)){const vt=this.params[At];return Array.isArray(vt)?vt[0]:vt}return null}getAll(At){if(this.has(At)){const vt=this.params[At];return Array.isArray(vt)?vt:[vt]}return[]}get keys(){return Object.keys(this.params)}}function Ke(rt){return new le(rt)}function Be(rt,At,vt){const kt=vt.path.split("/");if(kt.length>rt.length||"full"===vt.pathMatch&&(At.hasChildren()||kt.length<rt.length))return null;const ln={};for(let Rn=0;Rn<kt.length;Rn++){const ii=kt[Rn],Gi=rt[Rn];if(":"===ii[0])ln[ii.substring(1)]=Gi;else if(ii!==Gi.path)return null}return{consumed:rt.slice(0,kt.length),posParams:ln}}function Oe(rt,At){const vt=rt?fe(rt):void 0,kt=At?fe(At):void 0;if(!vt||!kt||vt.length!=kt.length)return!1;let ln;for(let Rn=0;Rn<vt.length;Rn++)if(ln=vt[Rn],!We(rt[ln],At[ln]))return!1;return!0}function fe(rt){return[...Object.keys(rt),...Object.getOwnPropertySymbols(rt)]}function We(rt,At){if(Array.isArray(rt)&&Array.isArray(At)){if(rt.length!==At.length)return!1;const vt=[...rt].sort(),kt=[...At].sort();return vt.every((ln,Rn)=>kt[Rn]===ln)}return rt===At}function Ue(rt){return rt.length>0?rt[rt.length-1]:null}function Ve(rt){return function w(rt){return!!rt&&(rt instanceof e.c||(0,k.T)(rt.lift)&&(0,k.T)(rt.subscribe))}(rt)?rt:(0,m.yLl)(rt)?(0,P.H)(Promise.resolve(rt)):(0,v.of)(rt)}const tt={exact:function Nt(rt,At,vt){if(!Ct(rt.segments,At.segments)||!Te(rt.segments,At.segments,vt)||rt.numberOfChildren!==At.numberOfChildren)return!1;for(const kt in At.children)if(!rt.children[kt]||!Nt(rt.children[kt],At.children[kt],vt))return!1;return!0},subset:ue},at={exact:function qe(rt,At){return Oe(rt,At)},subset:function et(rt,At){return Object.keys(At).length<=Object.keys(rt).length&&Object.keys(At).every(vt=>We(rt[vt],At[vt]))},ignored:()=>!0};function Vt(rt,At,vt){return tt[vt.paths](rt.root,At.root,vt.matrixParams)&&at[vt.queryParams](rt.queryParams,At.queryParams)&&!("exact"===vt.fragment&&rt.fragment!==At.fragment)}function ue(rt,At,vt){return me(rt,At,At.segments,vt)}function me(rt,At,vt,kt){if(rt.segments.length>vt.length){const ln=rt.segments.slice(0,vt.length);return!(!Ct(ln,vt)||At.hasChildren()||!Te(ln,vt,kt))}if(rt.segments.length===vt.length){if(!Ct(rt.segments,vt)||!Te(rt.segments,vt,kt))return!1;for(const ln in At.children)if(!rt.children[ln]||!ue(rt.children[ln],At.children[ln],kt))return!1;return!0}{const ln=vt.slice(0,rt.segments.length),Rn=vt.slice(rt.segments.length);return!!(Ct(rt.segments,ln)&&Te(rt.segments,ln,kt)&&rt.children[pe])&&me(rt.children[pe],At,Rn,kt)}}function Te(rt,At,vt){return At.every((kt,ln)=>at[vt](rt[ln].parameters,kt.parameters))}class je{root;queryParams;fragment;_queryParamMap;constructor(At=new Ne([],{}),vt={},kt=null){this.root=At,this.queryParams=vt,this.fragment=kt}get queryParamMap(){return this._queryParamMap??=Ke(this.queryParams),this._queryParamMap}toString(){return nn.serialize(this)}}class Ne{segments;children;parent=null;constructor(At,vt){this.segments=At,this.children=vt,Object.values(vt).forEach(kt=>kt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rn(this)}}class lt{path;parameters;_parameterMap;constructor(At,vt){this.path=At,this.parameters=vt}get parameterMap(){return this._parameterMap??=Ke(this.parameters),this._parameterMap}toString(){return Qn(this)}}function Ct(rt,At){return rt.length===At.length&&rt.every((vt,kt)=>vt.path===At[kt].path)}let Gt=(()=>{class rt{static \u0275fac=function(kt){return new(kt||rt)};static \u0275prov=S.jDH({token:rt,factory:()=>new ft,providedIn:"root"})}return rt})();class ft{parse(At){const vt=new hs(At);return new je(vt.parseRootSegment(),vt.parseQueryParams(),vt.parseFragment())}serialize(At){const vt=`/${Mn(At.root,!0)}`,kt=function Rt(rt){const At=Object.entries(rt).map(([vt,kt])=>Array.isArray(kt)?kt.map(ln=>`${ji(vt)}=${ji(ln)}`).join("&"):`${ji(vt)}=${ji(kt)}`).filter(vt=>vt);return At.length?`?${At.join("&")}`:""}(At.queryParams);return`${vt}${kt}${"string"==typeof At.fragment?`#${function Mi(rt){return encodeURI(rt)}(At.fragment)}`:""}`}}const nn=new ft;function rn(rt){return rt.segments.map(At=>Qn(At)).join("/")}function Mn(rt,At){if(!rt.hasChildren())return rn(rt);if(At){const vt=rt.children[pe]?Mn(rt.children[pe],!1):"",kt=[];return Object.entries(rt.children).forEach(([ln,Rn])=>{ln!==pe&&kt.push(`${ln}:${Mn(Rn,!1)}`)}),kt.length>0?`${vt}(${kt.join("//")})`:vt}{const vt=function yt(rt,At){let vt=[];return Object.entries(rt.children).forEach(([kt,ln])=>{kt===pe&&(vt=vt.concat(At(ln,kt)))}),Object.entries(rt.children).forEach(([kt,ln])=>{kt!==pe&&(vt=vt.concat(At(ln,kt)))}),vt}(rt,(kt,ln)=>ln===pe?[Mn(rt.children[pe],!1)]:[`${ln}:${Mn(kt,!1)}`]);return 1===Object.keys(rt.children).length&&null!=rt.children[pe]?`${rn(rt)}/${vt[0]}`:`${rn(rt)}/(${vt.join("//")})`}}function On(rt){return encodeURIComponent(rt).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ji(rt){return On(rt).replace(/%3B/gi,";")}function Vo(rt){return On(rt).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Co(rt){return decodeURIComponent(rt)}function ti(rt){return Co(rt.replace(/\+/g,"%20"))}function Qn(rt){return`${Vo(rt.path)}${function ei(rt){return Object.entries(rt).map(([At,vt])=>`;${Vo(At)}=${Vo(vt)}`).join("")}(rt.parameters)}`}const Jt=/^[^\/()?;#]+/;function Pn(rt){const At=rt.match(Jt);return At?At[0]:""}const Jn=/^[^\/()?;=#]+/,vo=/^[^=?&#]+/,Wo=/^[^&#]+/;class hs{url;remaining;constructor(At){this.url=At,this.remaining=At}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ne([],{}):new Ne([],this.parseChildren())}parseQueryParams(){const At={};if(this.consumeOptional("?"))do{this.parseQueryParam(At)}while(this.consumeOptional("&"));return At}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const At=[];for(this.peekStartsWith("(")||At.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),At.push(this.parseSegment());let vt={};this.peekStartsWith("/(")&&(this.capture("/"),vt=this.parseParens(!0));let kt={};return this.peekStartsWith("(")&&(kt=this.parseParens(!1)),(At.length>0||Object.keys(vt).length>0)&&(kt[pe]=new Ne(At,vt)),kt}parseSegment(){const At=Pn(this.remaining);if(""===At&&this.peekStartsWith(";"))throw new S.buA(4009,!1);return this.capture(At),new lt(Co(At),this.parseMatrixParams())}parseMatrixParams(){const At={};for(;this.consumeOptional(";");)this.parseParam(At);return At}parseParam(At){const vt=function Ii(rt){const At=rt.match(Jn);return At?At[0]:""}(this.remaining);if(!vt)return;this.capture(vt);let kt="";if(this.consumeOptional("=")){const ln=Pn(this.remaining);ln&&(kt=ln,this.capture(kt))}At[Co(vt)]=Co(kt)}parseQueryParam(At){const vt=function pi(rt){const At=rt.match(vo);return At?At[0]:""}(this.remaining);if(!vt)return;this.capture(vt);let kt="";if(this.consumeOptional("=")){const ii=function To(rt){const At=rt.match(Wo);return At?At[0]:""}(this.remaining);ii&&(kt=ii,this.capture(kt))}const ln=ti(vt),Rn=ti(kt);if(At.hasOwnProperty(ln)){let ii=At[ln];Array.isArray(ii)||(ii=[ii],At[ln]=ii),ii.push(Rn)}else At[ln]=Rn}parseParens(At){const vt={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const kt=Pn(this.remaining),ln=this.remaining[kt.length];if("/"!==ln&&")"!==ln&&";"!==ln)throw new S.buA(4010,!1);let Rn;kt.indexOf(":")>-1?(Rn=kt.slice(0,kt.indexOf(":")),this.capture(Rn),this.capture(":")):At&&(Rn=pe);const ii=this.parseChildren();vt[Rn]=1===Object.keys(ii).length?ii[pe]:new Ne([],ii),this.consumeOptional("//")}return vt}peekStartsWith(At){return this.remaining.startsWith(At)}consumeOptional(At){return!!this.peekStartsWith(At)&&(this.remaining=this.remaining.substring(At.length),!0)}capture(At){if(!this.consumeOptional(At))throw new S.buA(4011,!1)}}function Ps(rt){return rt.segments.length>0?new Ne([],{[pe]:rt}):rt}function ls(rt){const At={};for(const[kt,ln]of Object.entries(rt.children)){const Rn=ls(ln);if(kt===pe&&0===Rn.segments.length&&Rn.hasChildren())for(const[ii,Gi]of Object.entries(Rn.children))At[ii]=Gi;else(Rn.segments.length>0||Rn.hasChildren())&&(At[kt]=Rn)}return function Hs(rt){if(1===rt.numberOfChildren&&rt.children[pe]){const At=rt.children[pe];return new Ne(rt.segments.concat(At.segments),At.children)}return rt}(new Ne(rt.segments,At))}function ss(rt){return rt instanceof je}function cs(rt){let At;const ln=Ps(function vt(Rn){const ii={};for(const lo of Rn.children){const Cs=vt(lo);ii[lo.outlet]=Cs}const Gi=new Ne(Rn.url,ii);return Rn===rt&&(At=Gi),Gi}(rt.root));return At??ln}function bs(rt,At,vt,kt){let ln=rt;for(;ln.parent;)ln=ln.parent;if(0===At.length)return si(ln,ln,ln,vt,kt);const Rn=function Sn(rt){if("string"==typeof rt[0]&&1===rt.length&&"/"===rt[0])return new Yi(!0,0,rt);let At=0,vt=!1;const kt=rt.reduce((ln,Rn,ii)=>{if("object"==typeof Rn&&null!=Rn){if(Rn.outlets){const Gi={};return Object.entries(Rn.outlets).forEach(([lo,Cs])=>{Gi[lo]="string"==typeof Cs?Cs.split("/"):Cs}),[...ln,{outlets:Gi}]}if(Rn.segmentPath)return[...ln,Rn.segmentPath]}return"string"!=typeof Rn?[...ln,Rn]:0===ii?(Rn.split("/").forEach((Gi,lo)=>{0==lo&&"."===Gi||(0==lo&&""===Gi?vt=!0:".."===Gi?At++:""!=Gi&&ln.push(Gi))}),ln):[...ln,Rn]},[]);return new Yi(vt,At,kt)}(At);if(Rn.toRoot())return si(ln,ln,new Ne([],{}),vt,kt);const ii=function It(rt,At,vt){if(rt.isAbsolute)return new ri(At,!0,0);if(!vt)return new ri(At,!1,NaN);if(null===vt.parent)return new ri(vt,!0,0);const kt=Fn(rt.commands[0])?0:1;return function Pt(rt,At,vt){let kt=rt,ln=At,Rn=vt;for(;Rn>ln;){if(Rn-=ln,kt=kt.parent,!kt)throw new S.buA(4005,!1);ln=kt.segments.length}return new ri(kt,!1,ln-Rn)}(vt,vt.segments.length-1+kt,rt.numberOfDoubleDots)}(Rn,ln,rt),Gi=ii.processChildren?Ot(ii.segmentGroup,ii.index,Rn.commands):jt(ii.segmentGroup,ii.index,Rn.commands);return si(ln,ii.segmentGroup,Gi,vt,kt)}function Fn(rt){return"object"==typeof rt&&null!=rt&&!rt.outlets&&!rt.segmentPath}function li(rt){return"object"==typeof rt&&null!=rt&&rt.outlets}function si(rt,At,vt,kt,ln){let ii,Rn={};kt&&Object.entries(kt).forEach(([lo,Cs])=>{Rn[lo]=Array.isArray(Cs)?Cs.map(lr=>`${lr}`):`${Cs}`}),ii=rt===At?vt:Ni(rt,At,vt);const Gi=Ps(ls(ii));return new je(Gi,Rn,ln)}function Ni(rt,At,vt){const kt={};return Object.entries(rt.children).forEach(([ln,Rn])=>{kt[ln]=Rn===At?vt:Ni(Rn,At,vt)}),new Ne(rt.segments,kt)}class Yi{isAbsolute;numberOfDoubleDots;commands;constructor(At,vt,kt){if(this.isAbsolute=At,this.numberOfDoubleDots=vt,this.commands=kt,At&&kt.length>0&&Fn(kt[0]))throw new S.buA(4003,!1);const ln=kt.find(li);if(ln&&ln!==Ue(kt))throw new S.buA(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ri{segmentGroup;processChildren;index;constructor(At,vt,kt){this.segmentGroup=At,this.processChildren=vt,this.index=kt}}function jt(rt,At,vt){if(rt??=new Ne([],{}),0===rt.segments.length&&rt.hasChildren())return Ot(rt,At,vt);const kt=function Tn(rt,At,vt){let kt=0,ln=At;const Rn={match:!1,pathIndex:0,commandIndex:0};for(;ln<rt.segments.length;){if(kt>=vt.length)return Rn;const ii=rt.segments[ln],Gi=vt[kt];if(li(Gi))break;const lo=`${Gi}`,Cs=kt<vt.length-1?vt[kt+1]:null;if(ln>0&&void 0===lo)break;if(lo&&Cs&&"object"==typeof Cs&&void 0===Cs.outlets){if(!ro(lo,Cs,ii))return Rn;kt+=2}else{if(!ro(lo,{},ii))return Rn;kt++}ln++}return{match:!0,pathIndex:ln,commandIndex:kt}}(rt,At,vt),ln=vt.slice(kt.commandIndex);if(kt.match&&kt.pathIndex<rt.segments.length){const Rn=new Ne(rt.segments.slice(0,kt.pathIndex),{});return Rn.children[pe]=new Ne(rt.segments.slice(kt.pathIndex),rt.children),Ot(Rn,0,ln)}return kt.match&&0===ln.length?new Ne(rt.segments,{}):kt.match&&!rt.hasChildren()?ni(rt,At,vt):kt.match?Ot(rt,0,ln):ni(rt,At,vt)}function Ot(rt,At,vt){if(0===vt.length)return new Ne(rt.segments,{});{const kt=function dn(rt){return li(rt[0])?rt[0].outlets:{[pe]:rt}}(vt),ln={};if(Object.keys(kt).some(Rn=>Rn!==pe)&&rt.children[pe]&&1===rt.numberOfChildren&&0===rt.children[pe].segments.length){const Rn=Ot(rt.children[pe],At,vt);return new Ne(rt.segments,Rn.children)}return Object.entries(kt).forEach(([Rn,ii])=>{"string"==typeof ii&&(ii=[ii]),null!==ii&&(ln[Rn]=jt(rt.children[Rn],At,ii))}),Object.entries(rt.children).forEach(([Rn,ii])=>{void 0===kt[Rn]&&(ln[Rn]=ii)}),new Ne(rt.segments,ln)}}function ni(rt,At,vt){const kt=rt.segments.slice(0,At);let ln=0;for(;ln<vt.length;){const Rn=vt[ln];if(li(Rn)){const lo=Bi(Rn.outlets);return new Ne(kt,lo)}if(0===ln&&Fn(vt[0])){kt.push(new lt(rt.segments[At].path,Zi(vt[0]))),ln++;continue}const ii=li(Rn)?Rn.outlets[pe]:`${Rn}`,Gi=ln<vt.length-1?vt[ln+1]:null;ii&&Gi&&Fn(Gi)?(kt.push(new lt(ii,Zi(Gi))),ln+=2):(kt.push(new lt(ii,{})),ln++)}return new Ne(kt,{})}function Bi(rt){const At={};return Object.entries(rt).forEach(([vt,kt])=>{"string"==typeof kt&&(kt=[kt]),null!==kt&&(At[vt]=ni(new Ne([],{}),0,kt))}),At}function Zi(rt){const At={};return Object.entries(rt).forEach(([vt,kt])=>At[vt]=`${kt}`),At}function ro(rt,At,vt){return rt==vt.path&&Oe(At,vt.parameters)}const mo="imperative";var ho=function(rt){return rt[rt.NavigationStart=0]="NavigationStart",rt[rt.NavigationEnd=1]="NavigationEnd",rt[rt.NavigationCancel=2]="NavigationCancel",rt[rt.NavigationError=3]="NavigationError",rt[rt.RoutesRecognized=4]="RoutesRecognized",rt[rt.ResolveStart=5]="ResolveStart",rt[rt.ResolveEnd=6]="ResolveEnd",rt[rt.GuardsCheckStart=7]="GuardsCheckStart",rt[rt.GuardsCheckEnd=8]="GuardsCheckEnd",rt[rt.RouteConfigLoadStart=9]="RouteConfigLoadStart",rt[rt.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",rt[rt.ChildActivationStart=11]="ChildActivationStart",rt[rt.ChildActivationEnd=12]="ChildActivationEnd",rt[rt.ActivationStart=13]="ActivationStart",rt[rt.ActivationEnd=14]="ActivationEnd",rt[rt.Scroll=15]="Scroll",rt[rt.NavigationSkipped=16]="NavigationSkipped",rt}(ho||{});class St{id;url;constructor(At,vt){this.id=At,this.url=vt}}class Qt extends St{type=ho.NavigationStart;navigationTrigger;restoredState;constructor(At,vt,kt="imperative",ln=null){super(At,vt),this.navigationTrigger=kt,this.restoredState=ln}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class jn extends St{urlAfterRedirects;type=ho.NavigationEnd;constructor(At,vt,kt){super(At,vt),this.urlAfterRedirects=kt}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ai=function(rt){return rt[rt.Redirect=0]="Redirect",rt[rt.SupersededByNewNavigation=1]="SupersededByNewNavigation",rt[rt.NoDataFromResolver=2]="NoDataFromResolver",rt[rt.GuardRejected=3]="GuardRejected",rt[rt.Aborted=4]="Aborted",rt}(ai||{}),$i=function(rt){return rt[rt.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",rt[rt.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",rt}($i||{});class zi extends St{reason;code;type=ho.NavigationCancel;constructor(At,vt,kt,ln){super(At,vt),this.reason=kt,this.code=ln}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class _o extends St{reason;code;type=ho.NavigationSkipped;constructor(At,vt,kt,ln){super(At,vt),this.reason=kt,this.code=ln}}class $o extends St{error;target;type=ho.NavigationError;constructor(At,vt,kt,ln){super(At,vt),this.error=kt,this.target=ln}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gs extends St{urlAfterRedirects;state;type=ho.RoutesRecognized;constructor(At,vt,kt,ln){super(At,vt),this.urlAfterRedirects=kt,this.state=ln}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xn extends St{urlAfterRedirects;state;type=ho.GuardsCheckStart;constructor(At,vt,kt,ln){super(At,vt),this.urlAfterRedirects=kt,this.state=ln}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bn extends St{urlAfterRedirects;state;shouldActivate;type=ho.GuardsCheckEnd;constructor(At,vt,kt,ln,Rn){super(At,vt),this.urlAfterRedirects=kt,this.state=ln,this.shouldActivate=Rn}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Gn extends St{urlAfterRedirects;state;type=ho.ResolveStart;constructor(At,vt,kt,ln){super(At,vt),this.urlAfterRedirects=kt,this.state=ln}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ri extends St{urlAfterRedirects;state;type=ho.ResolveEnd;constructor(At,vt,kt,ln){super(At,vt),this.urlAfterRedirects=kt,this.state=ln}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xi{route;type=ho.RouteConfigLoadStart;constructor(At){this.route=At}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Oo{route;type=ho.RouteConfigLoadEnd;constructor(At){this.route=At}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Fo{snapshot;type=ho.ChildActivationStart;constructor(At){this.snapshot=At}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vs{snapshot;type=ho.ChildActivationEnd;constructor(At){this.snapshot=At}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fs{snapshot;type=ho.ActivationStart;constructor(At){this.snapshot=At}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zt{snapshot;type=ho.ActivationEnd;constructor(At){this.snapshot=At}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zn{routerEvent;position;anchor;type=ho.Scroll;constructor(At,vt,kt){this.routerEvent=At,this.position=vt,this.anchor=kt}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class pn{}class An{url;navigationBehaviorOptions;constructor(At,vt){this.url=At,this.navigationBehaviorOptions=vt}}function qi(rt){switch(rt.type){case ho.ActivationEnd:return`ActivationEnd(path: '${rt.snapshot.routeConfig?.path||""}')`;case ho.ActivationStart:return`ActivationStart(path: '${rt.snapshot.routeConfig?.path||""}')`;case ho.ChildActivationEnd:return`ChildActivationEnd(path: '${rt.snapshot.routeConfig?.path||""}')`;case ho.ChildActivationStart:return`ChildActivationStart(path: '${rt.snapshot.routeConfig?.path||""}')`;case ho.GuardsCheckEnd:return`GuardsCheckEnd(id: ${rt.id}, url: '${rt.url}', urlAfterRedirects: '${rt.urlAfterRedirects}', state: ${rt.state}, shouldActivate: ${rt.shouldActivate})`;case ho.GuardsCheckStart:return`GuardsCheckStart(id: ${rt.id}, url: '${rt.url}', urlAfterRedirects: '${rt.urlAfterRedirects}', state: ${rt.state})`;case ho.NavigationCancel:return`NavigationCancel(id: ${rt.id}, url: '${rt.url}')`;case ho.NavigationSkipped:return`NavigationSkipped(id: ${rt.id}, url: '${rt.url}')`;case ho.NavigationEnd:return`NavigationEnd(id: ${rt.id}, url: '${rt.url}', urlAfterRedirects: '${rt.urlAfterRedirects}')`;case ho.NavigationError:return`NavigationError(id: ${rt.id}, url: '${rt.url}', error: ${rt.error})`;case ho.NavigationStart:return`NavigationStart(id: ${rt.id}, url: '${rt.url}')`;case ho.ResolveEnd:return`ResolveEnd(id: ${rt.id}, url: '${rt.url}', urlAfterRedirects: '${rt.urlAfterRedirects}', state: ${rt.state})`;case ho.ResolveStart:return`ResolveStart(id: ${rt.id}, url: '${rt.url}', urlAfterRedirects: '${rt.urlAfterRedirects}', state: ${rt.state})`;case ho.RouteConfigLoadEnd:return`RouteConfigLoadEnd(path: ${rt.route.path})`;case ho.RouteConfigLoadStart:return`RouteConfigLoadStart(path: ${rt.route.path})`;case ho.RoutesRecognized:return`RoutesRecognized(id: ${rt.id}, url: '${rt.url}', urlAfterRedirects: '${rt.urlAfterRedirects}', state: ${rt.state})`;case ho.Scroll:return`Scroll(anchor: '${rt.anchor}', position: '${rt.position?`${rt.position[0]}, ${rt.position[1]}`:null}')`}}function _s(rt){return rt.outlet||pe}function Ss(rt){if(!rt)return null;if(rt.routeConfig?._injector)return rt.routeConfig._injector;for(let At=rt.parent;At;At=At.parent){const vt=At.routeConfig;if(vt?._loadedInjector)return vt._loadedInjector;if(vt?._injector)return vt._injector}return null}class Et{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ss(this.route?.snapshot)??this.rootInjector}constructor(At){this.rootInjector=At,this.children=new en(this.rootInjector)}}let en=(()=>{class rt{rootInjector;contexts=new Map;constructor(vt){this.rootInjector=vt}onChildOutletCreated(vt,kt){const ln=this.getOrCreateContext(vt);ln.outlet=kt,this.contexts.set(vt,ln)}onChildOutletDestroyed(vt){const kt=this.getContext(vt);kt&&(kt.outlet=null,kt.attachRef=null)}onOutletDeactivated(){const vt=this.contexts;return this.contexts=new Map,vt}onOutletReAttached(vt){this.contexts=vt}getOrCreateContext(vt){let kt=this.getContext(vt);return kt||(kt=new Et(this.rootInjector),this.contexts.set(vt,kt)),kt}getContext(vt){return this.contexts.get(vt)||null}static \u0275fac=function(kt){return new(kt||rt)(S.KVO(S.uvJ))};static \u0275prov=S.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();class Dn{_root;constructor(At){this._root=At}get root(){return this._root.value}parent(At){const vt=this.pathFromRoot(At);return vt.length>1?vt[vt.length-2]:null}children(At){const vt=Zn(At,this._root);return vt?vt.children.map(kt=>kt.value):[]}firstChild(At){const vt=Zn(At,this._root);return vt&&vt.children.length>0?vt.children[0].value:null}siblings(At){const vt=gi(At,this._root);return vt.length<2?[]:vt[vt.length-2].children.map(ln=>ln.value).filter(ln=>ln!==At)}pathFromRoot(At){return gi(At,this._root).map(vt=>vt.value)}}function Zn(rt,At){if(rt===At.value)return At;for(const vt of At.children){const kt=Zn(rt,vt);if(kt)return kt}return null}function gi(rt,At){if(rt===At.value)return[At];for(const vt of At.children){const kt=gi(rt,vt);if(kt.length)return kt.unshift(At),kt}return[]}class mi{value;children;constructor(At,vt){this.value=At,this.children=vt}toString(){return`TreeNode(${this.value})`}}function ut(rt){const At={};return rt&&rt.children.forEach(vt=>At[vt.value.outlet]=vt),At}class Yt extends Dn{snapshot;constructor(At,vt){super(At),this.snapshot=vt,yo(this,At)}toString(){return this.snapshot.toString()}}function Dt(rt){const At=function mn(rt){const Rn=new Ki([],{},{},"",{},pe,rt,null,{});return new Ro("",new mi(Rn,[]))}(rt),vt=new x.t([new lt("",{})]),kt=new x.t({}),ln=new x.t({}),Rn=new x.t({}),ii=new x.t(""),Gi=new Yn(vt,kt,Rn,ii,ln,pe,rt,At.root);return Gi.snapshot=At.root,new Yt(new mi(Gi,[]),At)}class Yn{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(At,vt,kt,ln,Rn,ii,Gi,lo){this.urlSubject=At,this.paramsSubject=vt,this.queryParamsSubject=kt,this.fragmentSubject=ln,this.dataSubject=Rn,this.outlet=ii,this.component=Gi,this._futureSnapshot=lo,this.title=this.dataSubject?.pipe((0,ee.T)(Cs=>Cs[Ee]))??(0,v.of)(void 0),this.url=At,this.params=vt,this.queryParams=kt,this.fragment=ln,this.data=Rn}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.params.pipe((0,ee.T)(At=>Ke(At))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,ee.T)(At=>Ke(At))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xi(rt,At,vt="emptyOnly"){let kt;const{routeConfig:ln}=rt;return kt=null===At||"always"!==vt&&""!==ln?.path&&(At.component||At.routeConfig?.loadComponent)?{params:{...rt.params},data:{...rt.data},resolve:{...rt.data,...rt._resolvedData??{}}}:{params:{...At.params,...rt.params},data:{...At.data,...rt.data},resolve:{...rt.data,...At.data,...ln?.data,...rt._resolvedData}},ln&&ds(ln)&&(kt.resolve[Ee]=ln.title),kt}class Ki{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ee]}constructor(At,vt,kt,ln,Rn,ii,Gi,lo,Cs){this.url=At,this.params=vt,this.queryParams=kt,this.fragment=ln,this.data=Rn,this.outlet=ii,this.component=Gi,this.routeConfig=lo,this._resolve=Cs}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??=Ke(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ke(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(kt=>kt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ro extends Dn{url;constructor(At,vt){super(vt),this.url=At,yo(this,vt)}toString(){return ko(this._root)}}function yo(rt,At){At.value._routerState=rt,At.children.forEach(vt=>yo(rt,vt))}function ko(rt){const At=rt.children.length>0?` { ${rt.children.map(ko).join(", ")} } `:"";return`${rt.value}${At}`}function Ho(rt){if(rt.snapshot){const At=rt.snapshot,vt=rt._futureSnapshot;rt.snapshot=vt,Oe(At.queryParams,vt.queryParams)||rt.queryParamsSubject.next(vt.queryParams),At.fragment!==vt.fragment&&rt.fragmentSubject.next(vt.fragment),Oe(At.params,vt.params)||rt.paramsSubject.next(vt.params),function q(rt,At){if(rt.length!==At.length)return!1;for(let vt=0;vt<rt.length;++vt)if(!Oe(rt[vt],At[vt]))return!1;return!0}(At.url,vt.url)||rt.urlSubject.next(vt.url),Oe(At.data,vt.data)||rt.dataSubject.next(vt.data)}else rt.snapshot=rt._futureSnapshot,rt.dataSubject.next(rt._futureSnapshot.data)}function ms(rt,At){const vt=Oe(rt.params,At.params)&&function Qe(rt,At){return Ct(rt,At)&&rt.every((vt,kt)=>Oe(vt.parameters,At[kt].parameters))}(rt.url,At.url);return vt&&!(!rt.parent!=!At.parent)&&(!rt.parent||ms(rt.parent,At.parent))}function ds(rt){return"string"==typeof rt.title||null===rt.title}const Bo=new S.nKC("");let ws=(()=>{class rt{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=pe;activateEvents=new m.bkB;deactivateEvents=new m.bkB;attachEvents=new m.bkB;detachEvents=new m.bkB;routerOutletData=(0,T.hFB)(void 0);parentContexts=(0,S.WQX)(en);location=(0,S.WQX)(m.c1b);changeDetector=(0,S.WQX)(T.gRc);inputBinder=(0,S.WQX)(Us,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(vt){if(vt.name){const{firstChange:kt,previousValue:ln}=vt.name;if(kt)return;this.isTrackedInParentContexts(ln)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ln)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(vt){return this.parentContexts.getContext(vt)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const vt=this.parentContexts.getContext(this.name);vt?.route&&(vt.attachRef?this.attach(vt.attachRef,vt.route):this.activateWith(vt.route,vt.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S.buA(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S.buA(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S.buA(4012,!1);this.location.detach();const vt=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(vt.instance),vt}attach(vt,kt){this.activated=vt,this._activatedRoute=kt,this.location.insert(vt.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(vt.instance)}deactivate(){if(this.activated){const vt=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(vt)}}activateWith(vt,kt){if(this.isActivated)throw new S.buA(4013,!1);this._activatedRoute=vt;const ln=this.location,ii=vt.snapshot.component,Gi=this.parentContexts.getOrCreateContext(this.name).children,lo=new Ys(vt,Gi,ln.injector,this.routerOutletData);this.activated=ln.createComponent(ii,{index:ln.length,injector:lo,environmentInjector:kt}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(kt){return new(kt||rt)};static \u0275dir=m.FsC({type:rt,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[m.OA$]})}return rt})();class Ys{route;childContexts;parent;outletData;constructor(At,vt,kt,ln){this.route=At,this.childContexts=vt,this.parent=kt,this.outletData=ln}get(At,vt){return At===Yn?this.route:At===en?this.childContexts:At===Bo?this.outletData:this.parent.get(At,vt)}}const Us=new S.nKC("");let Qs=(()=>{class rt{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(vt){this.unsubscribeFromRouteData(vt),this.subscribeToRouteData(vt)}unsubscribeFromRouteData(vt){this.outletDataSubscriptions.get(vt)?.unsubscribe(),this.outletDataSubscriptions.delete(vt)}subscribeToRouteData(vt){const{activatedRoute:kt}=vt,ln=(0,b.z)([kt.queryParams,kt.params,kt.data]).pipe((0,re.n)(([Rn,ii,Gi],lo)=>(Gi={...Rn,...ii,...Gi},0===lo?(0,v.of)(Gi):Promise.resolve(Gi)))).subscribe(Rn=>{if(!vt.isActivated||!vt.activatedComponentRef||vt.activatedRoute!==kt||null===kt.component)return void this.unsubscribeFromRouteData(vt);const ii=(0,T.HJs)(kt.component);if(ii)for(const{templateName:Gi}of ii.inputs)vt.activatedComponentRef.setInput(Gi,Rn[Gi]);else this.unsubscribeFromRouteData(vt)});this.outletDataSubscriptions.set(vt,ln)}static \u0275fac=function(kt){return new(kt||rt)};static \u0275prov=S.jDH({token:rt,factory:rt.\u0275fac})}return rt})(),nr=(()=>{class rt{static \u0275fac=function(kt){return new(kt||rt)};static \u0275cmp=m.VBU({type:rt,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(kt,ln){1&kt&&m.nrm(0,"router-outlet")},dependencies:[ws],encapsulation:2})}return rt})();function gn(rt){const At=rt.children&&rt.children.map(gn),vt=At?{...rt,children:At}:{...rt};return!vt.component&&!vt.loadComponent&&(At||vt.loadChildren)&&vt.outlet&&vt.outlet!==pe&&(vt.component=nr),vt}function hn(rt,At,vt){if(vt&&rt.shouldReuseRoute(At.value,vt.value.snapshot)){const kt=vt.value;kt._futureSnapshot=At.value;const ln=function Wn(rt,At,vt){return At.children.map(kt=>{for(const ln of vt.children)if(rt.shouldReuseRoute(kt.value,ln.value.snapshot))return hn(rt,kt,ln);return hn(rt,kt)})}(rt,At,vt);return new mi(kt,ln)}{if(rt.shouldAttach(At.value)){const Rn=rt.retrieve(At.value);if(null!==Rn){const ii=Rn.route;return ii.value._futureSnapshot=At.value,ii.children=At.children.map(Gi=>hn(rt,Gi)),ii}}const kt=function Fi(rt){return new Yn(new x.t(rt.url),new x.t(rt.params),new x.t(rt.queryParams),new x.t(rt.fragment),new x.t(rt.data),rt.outlet,rt.component,rt)}(At.value),ln=At.children.map(Rn=>hn(rt,Rn));return new mi(kt,ln)}}class io{redirectTo;navigationBehaviorOptions;constructor(At,vt){this.redirectTo=At,this.navigationBehaviorOptions=vt}}const bo="ngNavigationCancelingError";function Mo(rt,At){const{redirectTo:vt,navigationBehaviorOptions:kt}=ss(At)?{redirectTo:At,navigationBehaviorOptions:void 0}:At,ln=rs(!1,ai.Redirect);return ln.url=vt,ln.navigationBehaviorOptions=kt,ln}function rs(rt,At){const vt=new Error(`NavigationCancelingError: ${rt||""}`);return vt[bo]=!0,vt.cancellationCode=At,vt}function $s(rt){return!!rt&&rt[bo]}class Cr{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(At,vt,kt,ln,Rn){this.routeReuseStrategy=At,this.futureState=vt,this.currState=kt,this.forwardEvent=ln,this.inputBindingEnabled=Rn}activate(At){const vt=this.futureState._root,kt=this.currState?this.currState._root:null;this.deactivateChildRoutes(vt,kt,At),Ho(this.futureState.root),this.activateChildRoutes(vt,kt,At)}deactivateChildRoutes(At,vt,kt){const ln=ut(vt);At.children.forEach(Rn=>{const ii=Rn.value.outlet;this.deactivateRoutes(Rn,ln[ii],kt),delete ln[ii]}),Object.values(ln).forEach(Rn=>{this.deactivateRouteAndItsChildren(Rn,kt)})}deactivateRoutes(At,vt,kt){const ln=At.value,Rn=vt?vt.value:null;if(ln===Rn)if(ln.component){const ii=kt.getContext(ln.outlet);ii&&this.deactivateChildRoutes(At,vt,ii.children)}else this.deactivateChildRoutes(At,vt,kt);else Rn&&this.deactivateRouteAndItsChildren(vt,kt)}deactivateRouteAndItsChildren(At,vt){At.value.component&&this.routeReuseStrategy.shouldDetach(At.value.snapshot)?this.detachAndStoreRouteSubtree(At,vt):this.deactivateRouteAndOutlet(At,vt)}detachAndStoreRouteSubtree(At,vt){const kt=vt.getContext(At.value.outlet),ln=kt&&At.value.component?kt.children:vt,Rn=ut(At);for(const ii of Object.values(Rn))this.deactivateRouteAndItsChildren(ii,ln);if(kt&&kt.outlet){const ii=kt.outlet.detach(),Gi=kt.children.onOutletDeactivated();this.routeReuseStrategy.store(At.value.snapshot,{componentRef:ii,route:At,contexts:Gi})}}deactivateRouteAndOutlet(At,vt){const kt=vt.getContext(At.value.outlet),ln=kt&&At.value.component?kt.children:vt,Rn=ut(At);for(const ii of Object.values(Rn))this.deactivateRouteAndItsChildren(ii,ln);kt&&(kt.outlet&&(kt.outlet.deactivate(),kt.children.onOutletDeactivated()),kt.attachRef=null,kt.route=null)}activateChildRoutes(At,vt,kt){const ln=ut(vt);At.children.forEach(Rn=>{this.activateRoutes(Rn,ln[Rn.value.outlet],kt),this.forwardEvent(new zt(Rn.value.snapshot))}),At.children.length&&this.forwardEvent(new Vs(At.value.snapshot))}activateRoutes(At,vt,kt){const ln=At.value,Rn=vt?vt.value:null;if(Ho(ln),ln===Rn)if(ln.component){const ii=kt.getOrCreateContext(ln.outlet);this.activateChildRoutes(At,vt,ii.children)}else this.activateChildRoutes(At,vt,kt);else if(ln.component){const ii=kt.getOrCreateContext(ln.outlet);if(this.routeReuseStrategy.shouldAttach(ln.snapshot)){const Gi=this.routeReuseStrategy.retrieve(ln.snapshot);this.routeReuseStrategy.store(ln.snapshot,null),ii.children.onOutletReAttached(Gi.contexts),ii.attachRef=Gi.componentRef,ii.route=Gi.route.value,ii.outlet&&ii.outlet.attach(Gi.componentRef,Gi.route.value),Ho(Gi.route.value),this.activateChildRoutes(At,null,ii.children)}else ii.attachRef=null,ii.route=ln,ii.outlet&&ii.outlet.activateWith(ln,ii.injector),this.activateChildRoutes(At,null,ii.children)}else this.activateChildRoutes(At,null,kt)}}class Js{path;route;constructor(At){this.path=At,this.route=this.path[this.path.length-1]}}class Or{component;route;constructor(At,vt){this.component=At,this.route=vt}}function rr(rt,At,vt){const kt=rt._root;return Ar(kt,At?At._root:null,vt,[kt.value])}function ur(rt,At){const vt=Symbol(),kt=At.get(rt,vt);return kt===vt?"function"!=typeof rt||(0,S.muV)(rt)?At.get(rt):rt:kt}function Ar(rt,At,vt,kt,ln={canDeactivateChecks:[],canActivateChecks:[]}){const Rn=ut(At);return rt.children.forEach(ii=>{(function ea(rt,At,vt,kt,ln={canDeactivateChecks:[],canActivateChecks:[]}){const Rn=rt.value,ii=At?At.value:null,Gi=vt?vt.getContext(rt.value.outlet):null;if(ii&&Rn.routeConfig===ii.routeConfig){const lo=function Vr(rt,At,vt){if("function"==typeof vt)return vt(rt,At);switch(vt){case"pathParamsChange":return!Ct(rt.url,At.url);case"pathParamsOrQueryParamsChange":return!Ct(rt.url,At.url)||!Oe(rt.queryParams,At.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ms(rt,At)||!Oe(rt.queryParams,At.queryParams);default:return!ms(rt,At)}}(ii,Rn,Rn.routeConfig.runGuardsAndResolvers);lo?ln.canActivateChecks.push(new Js(kt)):(Rn.data=ii.data,Rn._resolvedData=ii._resolvedData),Ar(rt,At,Rn.component?Gi?Gi.children:null:vt,kt,ln),lo&&Gi&&Gi.outlet&&Gi.outlet.isActivated&&ln.canDeactivateChecks.push(new Or(Gi.outlet.component,ii))}else ii&&Hr(At,Gi,ln),ln.canActivateChecks.push(new Js(kt)),Ar(rt,null,Rn.component?Gi?Gi.children:null:vt,kt,ln)})(ii,Rn[ii.value.outlet],vt,kt.concat([ii.value]),ln),delete Rn[ii.value.outlet]}),Object.entries(Rn).forEach(([ii,Gi])=>Hr(Gi,vt.getContext(ii),ln)),ln}function Hr(rt,At,vt){const kt=ut(rt),ln=rt.value;Object.entries(kt).forEach(([Rn,ii])=>{Hr(ii,ln.component?At?At.children.getContext(Rn):null:At,vt)}),vt.canDeactivateChecks.push(new Or(ln.component&&At&&At.outlet&&At.outlet.isActivated?At.outlet.component:null,ln))}function jr(rt){return"function"==typeof rt}function qt(rt){return rt instanceof B.G||"EmptyError"===rt?.name}const bn=Symbol("INITIAL_VALUE");function kn(){return(0,re.n)(rt=>(0,b.z)(rt.map(At=>At.pipe((0,be.s)(1),function ce(...rt){const At=(0,X.lI)(rt);return(0,L.N)((vt,kt)=>{(At?U(rt,vt,At):U(rt,vt)).subscribe(kt)})}(bn)))).pipe((0,ee.T)(At=>{for(const vt of At)if(!0!==vt){if(vt===bn)return bn;if(!1===vt||yi(vt))return vt}return!0}),(0,Re.p)(At=>At!==bn),(0,be.s)(1)))}function yi(rt){return ss(rt)||rt instanceof io}function wt(rt){return(0,M.F)((0,Ie.M)(At=>{if("boolean"!=typeof At)throw Mo(0,At)}),(0,ee.T)(At=>!0===At))}class cn{segmentGroup;constructor(At){this.segmentGroup=At||null}}class Ln extends Error{urlTree;constructor(At){super(),this.urlTree=At}}function $n(rt){return(0,H.$)(new cn(rt))}function bi(rt){return(0,H.$)(new S.buA(4e3,!1))}class ki{urlSerializer;urlTree;constructor(At,vt){this.urlSerializer=At,this.urlTree=vt}lineralizeSegments(At,vt){let kt=[],ln=vt.root;for(;;){if(kt=kt.concat(ln.segments),0===ln.numberOfChildren)return(0,v.of)(kt);if(ln.numberOfChildren>1||!ln.children[pe])return bi();ln=ln.children[pe]}}applyRedirectCommands(At,vt,kt,ln,Rn){return function Si(rt,At,vt){if("string"==typeof rt)return(0,v.of)(rt);const kt=rt,{queryParams:ln,fragment:Rn,routeConfig:ii,url:Gi,outlet:lo,params:Cs,data:lr,title:Xr}=At;return Ve((0,S.N4e)(vt,()=>kt({params:Cs,data:lr,queryParams:ln,fragment:Rn,routeConfig:ii,url:Gi,outlet:lo,title:Xr})))}(vt,ln,Rn).pipe((0,ee.T)(ii=>{if(ii instanceof je)throw new Ln(ii);const Gi=this.applyRedirectCreateUrlTree(ii,this.urlSerializer.parse(ii),At,kt);if("/"===ii[0])throw new Ln(Gi);return Gi}))}applyRedirectCreateUrlTree(At,vt,kt,ln){const Rn=this.createSegmentGroup(At,vt.root,kt,ln);return new je(Rn,this.createQueryParams(vt.queryParams,this.urlTree.queryParams),vt.fragment)}createQueryParams(At,vt){const kt={};return Object.entries(At).forEach(([ln,Rn])=>{if("string"==typeof Rn&&":"===Rn[0]){const Gi=Rn.substring(1);kt[ln]=vt[Gi]}else kt[ln]=Rn}),kt}createSegmentGroup(At,vt,kt,ln){const Rn=this.createSegments(At,vt.segments,kt,ln);let ii={};return Object.entries(vt.children).forEach(([Gi,lo])=>{ii[Gi]=this.createSegmentGroup(At,lo,kt,ln)}),new Ne(Rn,ii)}createSegments(At,vt,kt,ln){return vt.map(Rn=>":"===Rn.path[0]?this.findPosParam(At,Rn,ln):this.findOrReturn(Rn,kt))}findPosParam(At,vt,kt){const ln=kt[vt.path.substring(1)];if(!ln)throw new S.buA(4001,!1);return ln}findOrReturn(At,vt){let kt=0;for(const ln of vt){if(ln.path===At.path)return vt.splice(kt),ln;kt++}return At}}const Wi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Pi(rt,At,vt,kt,ln){const Rn=oo(rt,At,vt);return Rn.matched?(kt=function So(rt,At){return rt.providers&&!rt._injector&&(rt._injector=(0,m.Ol2)(rt.providers,At,`Route: ${rt.path}`)),rt._injector??At}(At,kt),function Ut(rt,At,vt,kt){const ln=At.canMatch;if(!ln||0===ln.length)return(0,v.of)(!0);const Rn=ln.map(ii=>{const Gi=ur(ii,rt);return Ve(function Bt(rt){return rt&&jr(rt.canMatch)}(Gi)?Gi.canMatch(At,vt):(0,S.N4e)(rt,()=>Gi(At,vt)))});return(0,v.of)(Rn).pipe(kn(),wt())}(kt,At,vt).pipe((0,ee.T)(ii=>!0===ii?Rn:{...Wi}))):(0,v.of)(Rn)}function oo(rt,At,vt){if("**"===At.path)return function Do(rt){return{matched:!0,parameters:rt.length>0?Ue(rt).parameters:{},consumedSegments:rt,remainingSegments:[],positionalParamSegments:{}}}(vt);if(""===At.path)return"full"===At.pathMatch&&(rt.hasChildren()||vt.length>0)?{...Wi}:{matched:!0,consumedSegments:[],remainingSegments:vt,parameters:{},positionalParamSegments:{}};const ln=(At.matcher||Be)(vt,rt,At);if(!ln)return{...Wi};const Rn={};Object.entries(ln.posParams??{}).forEach(([Gi,lo])=>{Rn[Gi]=lo.path});const ii=ln.consumed.length>0?{...Rn,...ln.consumed[ln.consumed.length-1].parameters}:Rn;return{matched:!0,consumedSegments:ln.consumed,remainingSegments:vt.slice(ln.consumed.length),parameters:ii,positionalParamSegments:ln.posParams??{}}}function Ht(rt,At,vt,kt){return vt.length>0&&function an(rt,At,vt){return vt.some(kt=>di(rt,At,kt)&&_s(kt)!==pe)}(rt,vt,kt)?{segmentGroup:new Ne(At,bt(kt,new Ne(vt,rt.children))),slicedSegments:[]}:0===vt.length&&function Un(rt,At,vt){return vt.some(kt=>di(rt,At,kt))}(rt,vt,kt)?{segmentGroup:new Ne(rt.segments,Mt(rt,vt,kt,rt.children)),slicedSegments:vt}:{segmentGroup:new Ne(rt.segments,rt.children),slicedSegments:vt}}function Mt(rt,At,vt,kt){const ln={};for(const Rn of vt)if(di(rt,At,Rn)&&!kt[_s(Rn)]){const ii=new Ne([],{});ln[_s(Rn)]=ii}return{...kt,...ln}}function bt(rt,At){const vt={};vt[pe]=At;for(const kt of rt)if(""===kt.path&&_s(kt)!==pe){const ln=new Ne([],{});vt[_s(kt)]=ln}return vt}function di(rt,At,vt){return(!(rt.hasChildren()||At.length>0)||"full"!==vt.pathMatch)&&""===vt.path}class Ti{}class eo{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(At,vt,kt,ln,Rn,ii,Gi){this.injector=At,this.configLoader=vt,this.rootComponentType=kt,this.config=ln,this.urlTree=Rn,this.paramsInheritanceStrategy=ii,this.urlSerializer=Gi,this.applyRedirects=new ki(this.urlSerializer,this.urlTree)}noMatchError(At){return new S.buA(4002,`'${At.segmentGroup}'`)}recognize(){const At=Ht(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(At).pipe((0,ee.T)(({children:vt,rootSnapshot:kt})=>{const ln=new mi(kt,vt),Rn=new Ro("",ln),ii=function qo(rt,At,vt=null,kt=null){return bs(cs(rt),At,vt,kt)}(kt,[],this.urlTree.queryParams,this.urlTree.fragment);return ii.queryParams=this.urlTree.queryParams,Rn.url=this.urlSerializer.serialize(ii),{state:Rn,tree:ii}}))}match(At){const vt=new Ki([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),pe,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,At,pe,vt).pipe((0,ee.T)(kt=>({children:kt,rootSnapshot:vt})),(0,W.W)(kt=>{if(kt instanceof Ln)return this.urlTree=kt.urlTree,this.match(kt.urlTree.root);throw kt instanceof cn?this.noMatchError(kt):kt}))}processSegmentGroup(At,vt,kt,ln,Rn){return 0===kt.segments.length&&kt.hasChildren()?this.processChildren(At,vt,kt,Rn):this.processSegment(At,vt,kt,kt.segments,ln,!0,Rn).pipe((0,ee.T)(ii=>ii instanceof mi?[ii]:[]))}processChildren(At,vt,kt,ln){const Rn=[];for(const ii of Object.keys(kt.children))"primary"===ii?Rn.unshift(ii):Rn.push(ii);return(0,P.H)(Rn).pipe((0,Pe.H)(ii=>{const Gi=kt.children[ii],lo=function Bs(rt,At){const vt=rt.filter(kt=>_s(kt)===At);return vt.push(...rt.filter(kt=>_s(kt)!==At)),vt}(vt,ii);return this.processSegmentGroup(At,lo,Gi,ii,ln)}),function he(rt,At){return(0,L.N)(function ie(rt,At,vt,kt,ln){return(Rn,ii)=>{let Gi=vt,lo=At,Cs=0;Rn.subscribe((0,G._)(ii,lr=>{const Xr=Cs++;lo=Gi?rt(lo,lr,Xr):(Gi=!0,lr),kt&&ii.next(lo)},ln&&(()=>{Gi&&ii.next(lo),ii.complete()})))}}(rt,At,arguments.length>=2,!0))}((ii,Gi)=>(ii.push(...Gi),ii)),(0,Ce.U)(null),function ke(rt,At){const vt=arguments.length>=2;return kt=>kt.pipe(rt?(0,Re.p)((ln,Rn)=>rt(ln,Rn,kt)):_e.D,ye(1),vt?(0,Ce.U)(At):(0,Me.v)(()=>new B.G))}(),(0,Se.Z)(ii=>{if(null===ii)return $n(kt);const Gi=Os(ii);return function os(rt){rt.sort((At,vt)=>At.value.outlet===pe?-1:vt.value.outlet===pe?1:At.value.outlet.localeCompare(vt.value.outlet))}(Gi),(0,v.of)(Gi)}))}processSegment(At,vt,kt,ln,Rn,ii,Gi){return(0,P.H)(vt).pipe((0,Pe.H)(lo=>this.processSegmentAgainstRoute(lo._injector??At,vt,lo,kt,ln,Rn,ii,Gi).pipe((0,W.W)(Cs=>{if(Cs instanceof cn)return(0,v.of)(null);throw Cs}))),(0,De.$)(lo=>!!lo),(0,W.W)(lo=>{if(qt(lo))return function qn(rt,At,vt){return 0===At.length&&!rt.children[vt]}(kt,ln,Rn)?(0,v.of)(new Ti):$n(kt);throw lo}))}processSegmentAgainstRoute(At,vt,kt,ln,Rn,ii,Gi,lo){return _s(kt)===ii||ii!==pe&&di(ln,Rn,kt)?void 0===kt.redirectTo?this.matchSegmentAgainstRoute(At,ln,kt,Rn,ii,lo):this.allowRedirects&&Gi?this.expandSegmentAgainstRouteUsingRedirect(At,ln,vt,kt,Rn,ii,lo):$n(ln):$n(ln)}expandSegmentAgainstRouteUsingRedirect(At,vt,kt,ln,Rn,ii,Gi){const{matched:lo,parameters:Cs,consumedSegments:lr,positionalParamSegments:Xr,remainingSegments:ta}=oo(vt,ln,Rn);if(!lo)return $n(vt);"string"==typeof ln.redirectTo&&"/"===ln.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Ga=new Ki(Rn,Cs,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ht(ln),_s(ln),ln.component??ln._loadedComponent??null,ln,_t(ln)),Ca=xi(Ga,Gi,this.paramsInheritanceStrategy);return Ga.params=Object.freeze(Ca.params),Ga.data=Object.freeze(Ca.data),this.applyRedirects.applyRedirectCommands(lr,ln.redirectTo,Xr,Ga,At).pipe((0,re.n)(Wa=>this.applyRedirects.lineralizeSegments(ln,Wa)),(0,Se.Z)(Wa=>this.processSegment(At,kt,vt,Wa.concat(ta),ii,!1,Gi)))}matchSegmentAgainstRoute(At,vt,kt,ln,Rn,ii){const Gi=Pi(vt,kt,ln,At);return"**"===kt.path&&(vt.children={}),Gi.pipe((0,re.n)(lo=>lo.matched?this.getChildConfig(At=kt._injector??At,kt,ln).pipe((0,re.n)(({routes:Cs})=>{const lr=kt._loadedInjector??At,{parameters:Xr,consumedSegments:ta,remainingSegments:Ga}=lo,Ca=new Ki(ta,Xr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ht(kt),_s(kt),kt.component??kt._loadedComponent??null,kt,_t(kt)),Ol=xi(Ca,ii,this.paramsInheritanceStrategy);Ca.params=Object.freeze(Ol.params),Ca.data=Object.freeze(Ol.data);const{segmentGroup:Wa,slicedSegments:ac}=Ht(vt,ta,Ga,Cs);if(0===ac.length&&Wa.hasChildren())return this.processChildren(lr,Cs,Wa,Ca).pipe((0,ee.T)(Ma=>new mi(Ca,Ma)));if(0===Cs.length&&0===ac.length)return(0,v.of)(new mi(Ca,[]));const wl=_s(kt)===Rn;return this.processSegment(lr,Cs,Wa,ac,wl?pe:Rn,!0,Ca).pipe((0,ee.T)(Ma=>new mi(Ca,Ma instanceof mi?[Ma]:[])))})):$n(vt)))}getChildConfig(At,vt,kt){return vt.children?(0,v.of)({routes:vt.children,injector:At}):vt.loadChildren?void 0!==vt._loadedRoutes?(0,v.of)({routes:vt._loadedRoutes,injector:vt._loadedInjector}):function He(rt,At,vt,kt){const ln=At.canLoad;if(void 0===ln||0===ln.length)return(0,v.of)(!0);const Rn=ln.map(ii=>{const Gi=ur(ii,rt);return Ve(function va(rt){return rt&&jr(rt.canLoad)}(Gi)?Gi.canLoad(At,vt):(0,S.N4e)(rt,()=>Gi(At,vt)))});return(0,v.of)(Rn).pipe(kn(),wt())}(At,vt,kt).pipe((0,Se.Z)(ln=>ln?this.configLoader.loadChildren(At,vt).pipe((0,Ie.M)(Rn=>{vt._loadedRoutes=Rn.routes,vt._loadedInjector=Rn.injector})):function vi(){return(0,H.$)(rs(!1,ai.GuardRejected))}())):(0,v.of)({routes:[],injector:At})}}function as(rt){const At=rt.value.routeConfig;return At&&""===At.path}function Os(rt){const At=[],vt=new Set;for(const kt of rt){if(!as(kt)){At.push(kt);continue}const ln=At.find(Rn=>kt.value.routeConfig===Rn.value.routeConfig);void 0!==ln?(ln.children.push(...kt.children),vt.add(ln)):At.push(kt)}for(const kt of vt){const ln=Os(kt.children);At.push(new mi(kt.value,ln))}return At.filter(kt=>!vt.has(kt))}function ht(rt){return rt.data||{}}function _t(rt){return rt.resolve||{}}function Oi(rt){const At=rt.children.map(vt=>Oi(vt)).flat();return[rt,...At]}function yl(rt){return(0,re.n)(At=>{const vt=rt(At);return vt?(0,P.H)(vt).pipe((0,ee.T)(()=>At)):(0,v.of)(At)})}let Ea=(()=>{class rt{buildTitle(vt){let kt,ln=vt.root;for(;void 0!==ln;)kt=this.getResolvedTitleForRoute(ln)??kt,ln=ln.children.find(Rn=>Rn.outlet===pe);return kt}getResolvedTitleForRoute(vt){return vt.data[Ee]}static \u0275fac=function(kt){return new(kt||rt)};static \u0275prov=S.jDH({token:rt,factory:()=>(0,S.WQX)(bl),providedIn:"root"})}return rt})(),bl=(()=>{class rt extends Ea{title;constructor(vt){super(),this.title=vt}updateTitle(vt){const kt=this.buildTitle(vt);void 0!==kt&&this.title.setTitle(kt)}static \u0275fac=function(kt){return new(kt||rt)(S.KVO(Ae.hE))};static \u0275prov=S.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();const xl=new S.nKC("",{providedIn:"root",factory:()=>({})}),ic=new S.nKC("");let oc=(()=>{class rt{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=(0,S.WQX)(m.Ql9);loadComponent(vt,kt){if(this.componentLoaders.get(kt))return this.componentLoaders.get(kt);if(kt._loadedComponent)return(0,v.of)(kt._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(kt);const ln=Ve((0,S.N4e)(vt,()=>kt.loadComponent())).pipe((0,ee.T)(Sc),(0,re.n)(sc),(0,Ie.M)(ii=>{this.onLoadEndListener&&this.onLoadEndListener(kt),kt._loadedComponent=ii}),(0,Ye.j)(()=>{this.componentLoaders.delete(kt)})),Rn=new z(ln,()=>new K.B).pipe(Q());return this.componentLoaders.set(kt,Rn),Rn}loadChildren(vt,kt){if(this.childrenLoaders.get(kt))return this.childrenLoaders.get(kt);if(kt._loadedRoutes)return(0,v.of)({routes:kt._loadedRoutes,injector:kt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(kt);const Rn=function js(rt,At,vt,kt){return Ve((0,S.N4e)(vt,()=>rt.loadChildren())).pipe((0,ee.T)(Sc),(0,re.n)(sc),(0,Se.Z)(ln=>ln instanceof m.PYt||Array.isArray(ln)?(0,v.of)(ln):(0,P.H)(At.compileModuleAsync(ln))),(0,ee.T)(ln=>{kt&&kt(rt);let Rn,ii,Gi=!1;return Array.isArray(ln)?(ii=ln,!0):(Rn=ln.create(vt).injector,ii=Rn.get(ic,[],{optional:!0,self:!0}).flat()),{routes:ii.map(gn),injector:Rn}}))}(kt,this.compiler,vt,this.onLoadEndListener).pipe((0,Ye.j)(()=>{this.childrenLoaders.delete(kt)})),ii=new z(Rn,()=>new K.B).pipe(Q());return this.childrenLoaders.set(kt,ii),ii}static \u0275fac=function(kt){return new(kt||rt)};static \u0275prov=S.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();function Sc(rt){return function El(rt){return rt&&"object"==typeof rt&&"default"in rt}(rt)?rt.default:rt}function sc(rt){return(0,v.of)(rt)}let hd=(()=>{class rt{static \u0275fac=function(kt){return new(kt||rt)};static \u0275prov=S.jDH({token:rt,factory:()=>(0,S.WQX)(Sh),providedIn:"root"})}return rt})(),Sh=(()=>{class rt{shouldProcessUrl(vt){return!0}extract(vt){return vt}merge(vt,kt){return vt}static \u0275fac=function(kt){return new(kt||rt)};static \u0275prov=S.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();const Xd=new S.nKC(""),pd=new S.nKC("");function rc(rt,At,vt){const kt=rt.get(pd),ln=rt.get(S.qQL);if(!ln.startViewTransition||kt.skipNextTransition)return kt.skipNextTransition=!1,new Promise(Cs=>setTimeout(Cs));let Rn;const ii=new Promise(Cs=>{Rn=Cs}),Gi=ln.startViewTransition(()=>(Rn(),function Nl(rt){return new Promise(At=>{(0,m.mal)({read:()=>setTimeout(At)},{injector:rt})})}(rt)));Gi.ready.catch(Cs=>{});const{onViewTransitionCreated:lo}=kt;return lo&&(0,S.N4e)(rt,()=>lo({transition:Gi,from:At,to:vt})),ii}const Ll=new S.nKC("");let gd=(()=>{class rt{currentNavigation=(0,S.vPA)(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new K.B;transitionAbortWithErrorSubject=new K.B;configLoader=(0,S.WQX)(oc);environmentInjector=(0,S.WQX)(S.uvJ);destroyRef=(0,S.WQX)(S.abz);urlSerializer=(0,S.WQX)(Gt);rootContexts=(0,S.WQX)(en);location=(0,S.WQX)(d.aZ);inputBindingEnabled=null!==(0,S.WQX)(Us,{optional:!0});titleStrategy=(0,S.WQX)(Ea);options=(0,S.WQX)(xl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=(0,S.WQX)(hd);createViewTransition=(0,S.WQX)(Xd,{optional:!0});navigationErrorHandler=(0,S.WQX)(Ll,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>(0,v.of)(void 0);rootComponentType=null;destroyed=!1;constructor(){this.configLoader.onLoadEndListener=ln=>this.events.next(new Oo(ln)),this.configLoader.onLoadStartListener=ln=>this.events.next(new Xi(ln)),this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(vt){const kt=++this.navigationId;(0,C.O8)(()=>{this.transitions?.next({...vt,extractedUrl:this.urlHandlingStrategy.extract(vt.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:kt})})}setupNavigations(vt){return this.transitions=new x.t(null),this.transitions.pipe((0,Re.p)(kt=>null!==kt),(0,re.n)(kt=>{let ln=!1;return(0,v.of)(kt).pipe((0,re.n)(Rn=>{if(this.navigationId>kt.id)return this.cancelNavigationTransition(kt,"",ai.SupersededByNewNavigation),J.w;this.currentTransition=kt,this.currentNavigation.set({id:Rn.id,initialUrl:Rn.rawUrl,extractedUrl:Rn.extractedUrl,targetBrowserUrl:"string"==typeof Rn.extras.browserUrl?this.urlSerializer.parse(Rn.extras.browserUrl):Rn.extras.browserUrl,trigger:Rn.source,extras:Rn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null,abort:()=>Rn.abortController.abort()});const ii=!vt.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!ii&&"reload"!==(Rn.extras.onSameUrlNavigation??vt.onSameUrlNavigation))return this.events.next(new _o(Rn.id,this.urlSerializer.serialize(Rn.rawUrl),"",$i.IgnoredSameUrlNavigation)),Rn.resolve(!1),J.w;if(this.urlHandlingStrategy.shouldProcessUrl(Rn.rawUrl))return(0,v.of)(Rn).pipe((0,re.n)(lo=>(this.events.next(new Qt(lo.id,this.urlSerializer.serialize(lo.extractedUrl),lo.source,lo.restoredState)),lo.id!==this.navigationId?J.w:Promise.resolve(lo))),function _n(rt,At,vt,kt,ln,Rn){return(0,Se.Z)(ii=>function Qi(rt,At,vt,kt,ln,Rn,ii="emptyOnly"){return new eo(rt,At,vt,kt,ln,ii,Rn).recognize()}(rt,At,vt,kt,ii.extractedUrl,ln,Rn).pipe((0,ee.T)(({state:Gi,tree:lo})=>({...ii,targetSnapshot:Gi,urlAfterRedirects:lo}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,vt.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Ie.M)(lo=>{kt.targetSnapshot=lo.targetSnapshot,kt.urlAfterRedirects=lo.urlAfterRedirects,this.currentNavigation.update(lr=>(lr.finalUrl=lo.urlAfterRedirects,lr));const Cs=new gs(lo.id,this.urlSerializer.serialize(lo.extractedUrl),this.urlSerializer.serialize(lo.urlAfterRedirects),lo.targetSnapshot);this.events.next(Cs)}));if(ii&&this.urlHandlingStrategy.shouldProcessUrl(Rn.currentRawUrl)){const{id:lo,extractedUrl:Cs,source:lr,restoredState:Xr,extras:ta}=Rn,Ga=new Qt(lo,this.urlSerializer.serialize(Cs),lr,Xr);this.events.next(Ga);const Ca=Dt(this.rootComponentType).snapshot;return this.currentTransition=kt={...Rn,targetSnapshot:Ca,urlAfterRedirects:Cs,extras:{...ta,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.update(Ol=>(Ol.finalUrl=Cs,Ol)),(0,v.of)(kt)}return this.events.next(new _o(Rn.id,this.urlSerializer.serialize(Rn.extractedUrl),"",$i.IgnoredByUrlHandlingStrategy)),Rn.resolve(!1),J.w}),(0,Ie.M)(Rn=>{const ii=new xn(Rn.id,this.urlSerializer.serialize(Rn.extractedUrl),this.urlSerializer.serialize(Rn.urlAfterRedirects),Rn.targetSnapshot);this.events.next(ii)}),(0,ee.T)(Rn=>(this.currentTransition=kt={...Rn,guards:rr(Rn.targetSnapshot,Rn.currentSnapshot,this.rootContexts)},kt)),function Hi(rt,At){return(0,Se.Z)(vt=>{const{targetSnapshot:kt,currentSnapshot:ln,guards:{canActivateChecks:Rn,canDeactivateChecks:ii}}=vt;return 0===ii.length&&0===Rn.length?(0,v.of)({...vt,guardsResult:!0}):function co(rt,At,vt,kt){return(0,P.H)(rt).pipe((0,Se.Z)(ln=>function Fe(rt,At,vt,kt,ln){const Rn=At&&At.routeConfig?At.routeConfig.canDeactivate:null;if(!Rn||0===Rn.length)return(0,v.of)(!0);const ii=Rn.map(Gi=>{const lo=Ss(At)??ln,Cs=ur(Gi,lo);return Ve(function ot(rt){return rt&&jr(rt.canDeactivate)}(Cs)?Cs.canDeactivate(rt,At,vt,kt):(0,S.N4e)(lo,()=>Cs(rt,At,vt,kt))).pipe((0,De.$)())});return(0,v.of)(ii).pipe(kn())}(ln.component,ln.route,vt,At,kt)),(0,De.$)(ln=>!0!==ln,!0))}(ii,kt,ln,rt).pipe((0,Se.Z)(Gi=>Gi&&function Ir(rt){return"boolean"==typeof rt}(Gi)?function Po(rt,At,vt,kt){return(0,P.H)(At).pipe((0,Pe.H)(ln=>U(function Ft(rt,At){return null!==rt&&At&&At(new Fo(rt)),(0,v.of)(!0)}(ln.route.parent,kt),function Ko(rt,At){return null!==rt&&At&&At(new fs(rt)),(0,v.of)(!0)}(ln.route,kt),function xt(rt,At,vt){const kt=At[At.length-1],Rn=At.slice(0,At.length-1).reverse().map(ii=>function Tr(rt){const At=rt.routeConfig?rt.routeConfig.canActivateChild:null;return At&&0!==At.length?{node:rt,guards:At}:null}(ii)).filter(ii=>null!==ii).map(ii=>A(()=>{const Gi=ii.guards.map(lo=>{const Cs=Ss(ii.node)??vt,lr=ur(lo,Cs);return Ve(function oa(rt){return rt&&jr(rt.canActivateChild)}(lr)?lr.canActivateChild(kt,rt):(0,S.N4e)(Cs,()=>lr(kt,rt))).pipe((0,De.$)())});return(0,v.of)(Gi).pipe(kn())}));return(0,v.of)(Rn).pipe(kn())}(rt,ln.path,vt),function Wt(rt,At,vt){const kt=At.routeConfig?At.routeConfig.canActivate:null;if(!kt||0===kt.length)return(0,v.of)(!0);const ln=kt.map(Rn=>A(()=>{const ii=Ss(At)??vt,Gi=ur(Rn,ii);return Ve(function ca(rt){return rt&&jr(rt.canActivate)}(Gi)?Gi.canActivate(At,rt):(0,S.N4e)(ii,()=>Gi(At,rt))).pipe((0,De.$)())}));return(0,v.of)(ln).pipe(kn())}(rt,ln.route,vt))),(0,De.$)(ln=>!0!==ln,!0))}(kt,Rn,rt,At):(0,v.of)(Gi)),(0,ee.T)(Gi=>({...vt,guardsResult:Gi})))})}(this.environmentInjector,Rn=>this.events.next(Rn)),(0,Ie.M)(Rn=>{if(kt.guardsResult=Rn.guardsResult,Rn.guardsResult&&"boolean"!=typeof Rn.guardsResult)throw Mo(0,Rn.guardsResult);const ii=new Bn(Rn.id,this.urlSerializer.serialize(Rn.extractedUrl),this.urlSerializer.serialize(Rn.urlAfterRedirects),Rn.targetSnapshot,!!Rn.guardsResult);this.events.next(ii)}),(0,Re.p)(Rn=>!!Rn.guardsResult||(this.cancelNavigationTransition(Rn,"",ai.GuardRejected),!1)),yl(Rn=>{if(0!==Rn.guards.canActivateChecks.length)return(0,v.of)(Rn).pipe((0,Ie.M)(ii=>{const Gi=new Gn(ii.id,this.urlSerializer.serialize(ii.extractedUrl),this.urlSerializer.serialize(ii.urlAfterRedirects),ii.targetSnapshot);this.events.next(Gi)}),(0,re.n)(ii=>{let Gi=!1;return(0,v.of)(ii).pipe(function In(rt,At){return(0,Se.Z)(vt=>{const{targetSnapshot:kt,guards:{canActivateChecks:ln}}=vt;if(!ln.length)return(0,v.of)(vt);const Rn=new Set(ln.map(lo=>lo.route)),ii=new Set;for(const lo of Rn)if(!ii.has(lo))for(const Cs of Oi(lo))ii.add(Cs);let Gi=0;return(0,P.H)(ii).pipe((0,Pe.H)(lo=>Rn.has(lo)?function po(rt,At,vt,kt){const ln=rt.routeConfig,Rn=rt._resolve;return void 0!==ln?.title&&!ds(ln)&&(Rn[Ee]=ln.title),A(()=>(rt.data=xi(rt,rt.parent,vt).resolve,function Zs(rt,At,vt,kt){const ln=fe(rt);if(0===ln.length)return(0,v.of)({});const Rn={};return(0,P.H)(ln).pipe((0,Se.Z)(ii=>function xa(rt,At,vt,kt){const ln=Ss(At)??kt,Rn=ur(rt,ln);return Ve(Rn.resolve?Rn.resolve(At,vt):(0,S.N4e)(ln,()=>Rn(At,vt)))}(rt[ii],At,vt,kt).pipe((0,De.$)(),(0,Ie.M)(Gi=>{if(Gi instanceof io)throw Mo(new ft,Gi);Rn[ii]=Gi}))),ye(1),(0,ee.T)(()=>Rn),(0,W.W)(ii=>qt(ii)?J.w:(0,H.$)(ii)))}(Rn,rt,At,kt).pipe((0,ee.T)(ii=>(rt._resolvedData=ii,rt.data={...rt.data,...ii},null)))))}(lo,kt,rt,At):(lo.data=xi(lo,lo.parent,rt).resolve,(0,v.of)(void 0))),(0,Ie.M)(()=>Gi++),ye(1),(0,Se.Z)(lo=>Gi===ii.size?(0,v.of)(vt):J.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Ie.M)({next:()=>Gi=!0,complete:()=>{Gi||this.cancelNavigationTransition(ii,"",ai.NoDataFromResolver)}}))}),(0,Ie.M)(ii=>{const Gi=new Ri(ii.id,this.urlSerializer.serialize(ii.extractedUrl),this.urlSerializer.serialize(ii.urlAfterRedirects),ii.targetSnapshot);this.events.next(Gi)}))}),yl(Rn=>{const ii=Gi=>{const lo=[];if(Gi.routeConfig?.loadComponent){const Cs=Ss(Gi)??this.environmentInjector;lo.push(this.configLoader.loadComponent(Cs,Gi.routeConfig).pipe((0,Ie.M)(lr=>{Gi.component=lr}),(0,ee.T)(()=>{})))}for(const Cs of Gi.children)lo.push(...ii(Cs));return lo};return(0,b.z)(ii(Rn.targetSnapshot.root)).pipe((0,Ce.U)(null),(0,be.s)(1))}),yl(()=>this.afterPreactivation()),(0,re.n)(()=>{const{currentSnapshot:Rn,targetSnapshot:ii}=kt,Gi=this.createViewTransition?.(this.environmentInjector,Rn.root,ii.root);return Gi?(0,P.H)(Gi).pipe((0,ee.T)(()=>kt)):(0,v.of)(kt)}),(0,ee.T)(Rn=>{const ii=function Xt(rt,At,vt){const kt=hn(rt,At._root,vt?vt._root:void 0);return new Yt(kt,At)}(vt.routeReuseStrategy,Rn.targetSnapshot,Rn.currentRouterState);return this.currentTransition=kt={...Rn,targetRouterState:ii},this.currentNavigation.update(Gi=>(Gi.targetRouterState=ii,Gi)),kt}),(0,Ie.M)(()=>{this.events.next(new pn)}),((rt,At,vt,kt)=>(0,ee.T)(ln=>(new Cr(At,ln.targetRouterState,ln.currentRouterState,vt,kt).activate(rt),ln)))(this.rootContexts,vt.routeReuseStrategy,Rn=>this.events.next(Rn),this.inputBindingEnabled),(0,be.s)(1),(0,de.Q)(new e.c(Rn=>{const ii=kt.abortController.signal,Gi=()=>Rn.next();return ii.addEventListener("abort",Gi),()=>ii.removeEventListener("abort",Gi)}).pipe((0,Re.p)(()=>!ln&&!kt.targetRouterState),(0,Ie.M)(()=>{this.cancelNavigationTransition(kt,kt.abortController.signal.reason+"",ai.Aborted)}))),(0,Ie.M)({next:Rn=>{ln=!0,this.lastSuccessfulNavigation=(0,C.O8)(this.currentNavigation),this.events.next(new jn(Rn.id,this.urlSerializer.serialize(Rn.extractedUrl),this.urlSerializer.serialize(Rn.urlAfterRedirects))),this.titleStrategy?.updateTitle(Rn.targetRouterState.snapshot),Rn.resolve(!0)},complete:()=>{ln=!0}}),(0,de.Q)(this.transitionAbortWithErrorSubject.pipe((0,Ie.M)(Rn=>{throw Rn}))),(0,Ye.j)(()=>{ln||this.cancelNavigationTransition(kt,"",ai.SupersededByNewNavigation),this.currentTransition?.id===kt.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),(0,W.W)(Rn=>{if(this.destroyed)return kt.resolve(!1),J.w;if(ln=!0,$s(Rn))this.events.next(new zi(kt.id,this.urlSerializer.serialize(kt.extractedUrl),Rn.message,Rn.cancellationCode)),function is(rt){return $s(rt)&&ss(rt.url)}(Rn)?this.events.next(new An(Rn.url,Rn.navigationBehaviorOptions)):kt.resolve(!1);else{const ii=new $o(kt.id,this.urlSerializer.serialize(kt.extractedUrl),Rn,kt.targetSnapshot??void 0);try{const Gi=(0,S.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(ii));if(!(Gi instanceof io))throw this.events.next(ii),Rn;{const{message:lo,cancellationCode:Cs}=Mo(0,Gi);this.events.next(new zi(kt.id,this.urlSerializer.serialize(kt.extractedUrl),lo,Cs)),this.events.next(new An(Gi.redirectTo,Gi.navigationBehaviorOptions))}}catch(Gi){this.options.resolveNavigationPromiseOnError?kt.resolve(!1):kt.reject(Gi)}}return J.w}))}))}cancelNavigationTransition(vt,kt,ln){const Rn=new zi(vt.id,this.urlSerializer.serialize(vt.extractedUrl),kt,ln);this.events.next(Rn),vt.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const vt=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),kt=(0,C.O8)(this.currentNavigation),ln=kt?.targetBrowserUrl??kt?.extractedUrl;return vt.toString()!==ln?.toString()&&!kt?.extras.skipLocationChange}static \u0275fac=function(kt){return new(kt||rt)};static \u0275prov=S.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();function Yd(rt){return rt!==mo}let Mu=(()=>{class rt{static \u0275fac=function(kt){return new(kt||rt)};static \u0275prov=S.jDH({token:rt,factory:()=>(0,S.WQX)(Sa),providedIn:"root"})}return rt})();class fd{shouldDetach(At){return!1}store(At,vt){}shouldAttach(At){return!1}retrieve(At){return null}shouldReuseRoute(At,vt){return At.routeConfig===vt.routeConfig}}let Sa=(()=>{class rt extends fd{static \u0275fac=(()=>{let vt;return function(ln){return(vt||(vt=m.xGo(rt)))(ln||rt)}})();static \u0275prov=S.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})(),Qd=(()=>{class rt{urlSerializer=(0,S.WQX)(Gt);options=(0,S.WQX)(xl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=(0,S.WQX)(d.aZ);urlHandlingStrategy=(0,S.WQX)(hd);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new je;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:vt,initialUrl:kt,targetBrowserUrl:ln}){const Rn=void 0!==vt?this.urlHandlingStrategy.merge(vt,kt):kt,ii=ln??Rn;return ii instanceof je?this.urlSerializer.serialize(ii):ii}commitTransition({targetRouterState:vt,finalUrl:kt,initialUrl:ln}){kt&&vt?(this.currentUrlTree=kt,this.rawUrlTree=this.urlHandlingStrategy.merge(kt,ln),this.routerState=vt):this.rawUrlTree=ln}routerState=Dt(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:vt}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,vt??this.rawUrlTree)}static \u0275fac=function(kt){return new(kt||rt)};static \u0275prov=S.jDH({token:rt,factory:()=>(0,S.WQX)(Dc),providedIn:"root"})}return rt})(),Dc=(()=>{class rt extends Qd{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(vt){return this.location.subscribe(kt=>{"popstate"===kt.type&&setTimeout(()=>{vt(kt.url,kt.state,"popstate")})})}handleRouterEvent(vt,kt){vt instanceof Qt?this.updateStateMemento():vt instanceof _o?this.commitTransition(kt):vt instanceof gs?"eager"===this.urlUpdateStrategy&&(kt.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(kt),kt)):vt instanceof pn?(this.commitTransition(kt),"deferred"===this.urlUpdateStrategy&&!kt.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(kt),kt)):vt instanceof zi&&vt.code!==ai.SupersededByNewNavigation&&vt.code!==ai.Redirect?this.restoreHistory(kt):vt instanceof $o?this.restoreHistory(kt,!0):vt instanceof jn&&(this.lastSuccessfulId=vt.id,this.currentPageId=this.browserPageId)}setBrowserUrl(vt,{extras:kt,id:ln}){const{replaceUrl:Rn,state:ii}=kt;if(this.location.isCurrentPathEqualTo(vt)||Rn){const Gi=this.browserPageId,lo={...ii,...this.generateNgRouterState(ln,Gi)};this.location.replaceState(vt,"",lo)}else{const Gi={...ii,...this.generateNgRouterState(ln,this.browserPageId+1)};this.location.go(vt,"",Gi)}}restoreHistory(vt,kt=!1){if("computed"===this.canceledNavigationResolution){const Rn=this.currentPageId-this.browserPageId;0!==Rn?this.location.historyGo(Rn):this.getCurrentUrlTree()===vt.finalUrl&&0===Rn&&(this.resetInternalState(vt),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(kt&&this.resetInternalState(vt),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(vt,kt){return"computed"===this.canceledNavigationResolution?{navigationId:vt,\u0275routerPageId:kt}:{navigationId:vt}}static \u0275fac=(()=>{let vt;return function(ln){return(vt||(vt=m.xGo(rt)))(ln||rt)}})();static \u0275prov=S.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();function Tc(rt,At){rt.events.pipe((0,Re.p)(vt=>vt instanceof jn||vt instanceof zi||vt instanceof $o||vt instanceof _o),(0,ee.T)(vt=>vt instanceof jn||vt instanceof _o?0:vt instanceof zi&&(vt.code===ai.Redirect||vt.code===ai.SupersededByNewNavigation)?2:1),(0,Re.p)(vt=>2!==vt),(0,be.s)(1)).subscribe(()=>{At()})}const md={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ac=(()=>{class rt{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,S.WQX)(m.C7A);stateManager=(0,S.WQX)(Qd);options=(0,S.WQX)(xl,{optional:!0})||{};pendingTasks=(0,S.WQX)(S.rev);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=(0,S.WQX)(gd);urlSerializer=(0,S.WQX)(Gt);location=(0,S.WQX)(d.aZ);urlHandlingStrategy=(0,S.WQX)(hd);injector=(0,S.WQX)(S.uvJ);_events=new K.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,S.WQX)(Mu);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,S.WQX)(ic,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!(0,S.WQX)(Us,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:vt=>{this.console.warn(vt)}}),this.subscribeToNavigationEvents()}eventsSubscription=new R.yU;subscribeToNavigationEvents(){const vt=this.navigationTransitions.events.subscribe(kt=>{try{const ln=this.navigationTransitions.currentTransition,Rn=(0,C.O8)(this.navigationTransitions.currentNavigation);if(null!==ln&&null!==Rn)if(this.stateManager.handleRouterEvent(kt,Rn),kt instanceof zi&&kt.code!==ai.Redirect&&kt.code!==ai.SupersededByNewNavigation)this.navigated=!0;else if(kt instanceof jn)this.navigated=!0;else if(kt instanceof An){const ii=kt.navigationBehaviorOptions,Gi=this.urlHandlingStrategy.merge(kt.url,ln.currentRawUrl),lo={browserUrl:ln.extras.browserUrl,info:ln.extras.info,skipLocationChange:ln.extras.skipLocationChange,replaceUrl:ln.extras.replaceUrl||"eager"===this.urlUpdateStrategy||Yd(ln.source),...ii};this.scheduleNavigation(Gi,mo,null,lo,{resolve:ln.resolve,reject:ln.reject,promise:ln.promise})}(function fi(rt){return!(rt instanceof pn||rt instanceof An)})(kt)&&this._events.next(kt)}catch(ln){this.navigationTransitions.transitionAbortWithErrorSubject.next(ln)}});this.eventsSubscription.add(vt)}resetRootComponentType(vt){this.routerState.root.component=vt,this.navigationTransitions.rootComponentType=vt}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),mo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((vt,kt,ln)=>{this.navigateToSyncWithBrowser(vt,ln,kt)})}navigateToSyncWithBrowser(vt,kt,ln){const Rn={replaceUrl:!0},ii=ln?.navigationId?ln:null;if(ln){const lo={...ln};delete lo.navigationId,delete lo.\u0275routerPageId,0!==Object.keys(lo).length&&(Rn.state=lo)}const Gi=this.parseUrl(vt);this.scheduleNavigation(Gi,kt,ii,Rn).catch(lo=>{this.disposed||this.injector.get(S.ZTf)(lo)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return(0,C.O8)(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(vt){this.config=vt.map(gn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(vt,kt={}){const{relativeTo:ln,queryParams:Rn,fragment:ii,queryParamsHandling:Gi,preserveFragment:lo}=kt,Cs=lo?this.currentUrlTree.fragment:ii;let Xr,lr=null;switch(Gi??this.options.defaultQueryParamsHandling){case"merge":lr={...this.currentUrlTree.queryParams,...Rn};break;case"preserve":lr=this.currentUrlTree.queryParams;break;default:lr=Rn||null}null!==lr&&(lr=this.removeEmptyProps(lr));try{Xr=cs(ln?ln.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof vt[0]||"/"!==vt[0][0])&&(vt=[]),Xr=this.currentUrlTree.root}return bs(Xr,vt,lr,Cs??null)}navigateByUrl(vt,kt={skipLocationChange:!1}){const ln=ss(vt)?vt:this.parseUrl(vt),Rn=this.urlHandlingStrategy.merge(ln,this.rawUrlTree);return this.scheduleNavigation(Rn,mo,null,kt)}navigate(vt,kt={skipLocationChange:!1}){return function Ic(rt){for(let At=0;At<rt.length;At++)if(null==rt[At])throw new S.buA(4008,!1)}(vt),this.navigateByUrl(this.createUrlTree(vt,kt),kt)}serializeUrl(vt){return this.urlSerializer.serialize(vt)}parseUrl(vt){try{return this.urlSerializer.parse(vt)}catch{return this.urlSerializer.parse("/")}}isActive(vt,kt){let ln;if(ln=!0===kt?{...md}:!1===kt?{...Gc}:kt,ss(vt))return Vt(this.currentUrlTree,vt,ln);const Rn=this.parseUrl(vt);return Vt(this.currentUrlTree,Rn,ln)}removeEmptyProps(vt){return Object.entries(vt).reduce((kt,[ln,Rn])=>(null!=Rn&&(kt[ln]=Rn),kt),{})}scheduleNavigation(vt,kt,ln,Rn,ii){if(this.disposed)return Promise.resolve(!1);let Gi,lo,Cs;ii?(Gi=ii.resolve,lo=ii.reject,Cs=ii.promise):Cs=new Promise((Xr,ta)=>{Gi=Xr,lo=ta});const lr=this.pendingTasks.add();return Tc(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(lr))}),this.navigationTransitions.handleNavigationRequest({source:kt,restoredState:ln,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:vt,extras:Rn,resolve:Gi,reject:lo,promise:Cs,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Cs.catch(Xr=>Promise.reject(Xr))}static \u0275fac=function(kt){return new(kt||rt)};static \u0275prov=S.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})()},4912:(En,it,p)=>{"use strict";p.d(it,{b:()=>v,E:()=>P});var S=p(2029);class d extends S.yU{constructor(b,B){super()}schedule(b,B=0){return this}}const m={setInterval(x,b,...B){const{delegate:j}=m;return j?.setInterval?j.setInterval(x,b,...B):setInterval(x,b,...B)},clearInterval(x){const{delegate:b}=m;return(b?.clearInterval||clearInterval)(x)},delegate:void 0};var T=p(9583),e=p(4808);class k{constructor(b,B=k.now){this.schedulerActionCtor=b,this.now=B}schedule(b,B=0,j){return new this.schedulerActionCtor(this,b).schedule(j,B)}}k.now=e.U.now;const P=new class w extends k{constructor(b,B=k.now){super(b,B),this.actions=[],this._active=!1}flush(b){const{actions:B}=this;if(this._active)return void B.push(b);let j;this._active=!0;do{if(j=b.execute(b.state,b.delay))break}while(b=B.shift());if(this._active=!1,j){for(;b=B.shift();)b.unsubscribe();throw j}}}(class C extends d{constructor(b,B){super(b,B),this.scheduler=b,this.work=B,this.pending=!1}schedule(b,B=0){var j;if(this.closed)return this;this.state=b;const F=this.id,X=this.scheduler;return null!=F&&(this.id=this.recycleAsyncId(X,F,B)),this.pending=!0,this.delay=B,this.id=null!==(j=this.id)&&void 0!==j?j:this.requestAsyncId(X,this.id,B),this}requestAsyncId(b,B,j=0){return m.setInterval(b.flush.bind(b,this),j)}recycleAsyncId(b,B,j=0){if(null!=j&&this.delay===j&&!1===this.pending)return B;null!=B&&m.clearInterval(B)}execute(b,B){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const j=this._execute(b,B);if(j)return j;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(b,B){let F,j=!1;try{this.work(b)}catch(X){j=!0,F=X||new Error("Scheduled action threw falsy error")}if(j)return this.unsubscribe(),F}unsubscribe(){if(!this.closed){const{id:b,scheduler:B}=this,{actions:j}=B;this.work=this.state=this.scheduler=null,this.pending=!1,(0,T.o)(j,this),null!=b&&(this.id=this.recycleAsyncId(B,b,null)),this.delay=null,super.unsubscribe()}}}),v=P},4925:(En,it,p)=>{"use strict";p.d(it,{D:()=>e,i:()=>k});var S=p(656),d=p(4303),m=p(4308),T=p(3349),C=p(8914);let e=(()=>{class w extends T.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(v){this._setOption("accessKey",v)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(v){this._setOption("activeStateEnabled",v)}get buttonTemplate(){return this._getOption("buttonTemplate")}set buttonTemplate(v){this._setOption("buttonTemplate",v)}get disabled(){return this._getOption("disabled")}set disabled(v){this._setOption("disabled",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(v){this._setOption("focusStateEnabled",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get hint(){return this._getOption("hint")}set hint(v){this._setOption("hint",v)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(v){this._setOption("hoverStateEnabled",v)}get items(){return this._getOption("items")}set items(v){this._setOption("items",v)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(v){this._setOption("keyExpr",v)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(v){this._setOption("rtlEnabled",v)}get selectedItemKeys(){return this._getOption("selectedItemKeys")}set selectedItemKeys(v){this._setOption("selectedItemKeys",v)}get selectedItems(){return this._getOption("selectedItems")}set selectedItems(v){this._setOption("selectedItems",v)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(v){this._setOption("selectionMode",v)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(v){this._setOption("stylingMode",v)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(v){this._setOption("tabIndex",v)}get visible(){return this._getOption("visible")}set visible(v){this._setOption("visible",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}onContentReady;onDisposing;onInitialized;onItemClick;onOptionChanged;onSelectionChanged;accessKeyChange;activeStateEnabledChange;buttonTemplateChange;disabledChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;itemsChange;keyExprChange;rtlEnabledChange;selectedItemKeysChange;selectedItemsChange;selectionModeChange;stylingModeChange;tabIndexChange;visibleChange;widthChange;get itemsChildren(){return this._getOption("items")}set itemsChildren(v){this.setChildren("items",v)}constructor(v,x,b,B,j,F,X,U){super(v,x,b,B,X,U),this._watcherHelper=B,this._idh=j,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonTemplateChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemsChange"},{emit:"keyExprChange"},{emit:"rtlEnabledChange"},{emit:"selectedItemKeysChange"},{emit:"selectedItemsChange"},{emit:"selectionModeChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),F.setHost(this)}_createInstance(v,x){return new m.A(v,x)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(v){super.ngOnChanges(v),this.setupChanges("items",v),this.setupChanges("selectedItemKeys",v),this.setupChanges("selectedItems",v)}setupChanges(v,x){v in this._optionsToUpdate||this._idh.setup(v,x)}ngDoCheck(){this._idh.doCheck("items"),this._idh.doCheck("selectedItemKeys"),this._idh.doCheck("selectedItems"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(v,x){let b=this._idh.setupSingle(v,x),B=null!==this._idh.getChanges(v,x);(b||B)&&super._setOption(v,x)}static \u0275fac=function(x){return new(x||w)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.$M),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:w,selectors:[["dx-button-group"]],contentQueries:function(x,b,B){if(1&x&&d.wni(B,C.CVf,4),2&x){let j;d.mGM(j=d.lsd())&&(b.itemsChildren=j)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttonTemplate:"buttonTemplate",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",items:"items",keyExpr:"keyExpr",rtlEnabled:"rtlEnabled",selectedItemKeys:"selectedItemKeys",selectedItems:"selectedItems",selectionMode:"selectionMode",stylingMode:"stylingMode",tabIndex:"tabIndex",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onOptionChanged:"onOptionChanged",onSelectionChanged:"onSelectionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonTemplateChange:"buttonTemplateChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",itemsChange:"itemsChange",keyExprChange:"keyExprChange",rtlEnabledChange:"rtlEnabledChange",selectedItemKeysChange:"selectedItemKeysChange",selectedItemsChange:"selectedItemsChange",selectionModeChange:"selectionModeChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",visibleChange:"visibleChange",widthChange:"widthChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH,T.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(x,b){},encapsulation:2})}return w})(),k=(()=>{class w{static \u0275fac=function(x){return new(x||w)};static \u0275mod=d.$C({type:w});static \u0275inj=S.G2t({imports:[C.POb,T.p_,T.xZ,C.POb,T.xZ]})}return w})()},4972:(En,it,p)=>{"use strict";p.d(it,{A:()=>w});var S=p(4481);p(8732),p(1609);const w=S.A},5050:(En,it,p)=>{"use strict";p.d(it,{A:()=>m});var S=p(2925),d=p(656);let m=(()=>{var T;class C{constructor(){this.guidRegex=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i}convert(k){if(k&&"object"==typeof k&&!(k instanceof S.A)){if(k instanceof Array)for(const w of k)this.convert(w);for(const w of Object.keys(k)){const P=k[w];if(P instanceof Array)for(const v of P)this.convert(v);P instanceof Object&&this.convert(P),"string"==typeof P&&(C.dateRegex.test(P)?k[w]=new Date(P):this.guidRegex.test(P)?k[w]=new S.A(P):"avatarImageUrl"===w&&!P.includes("?preset=profile-avatar")&&(k[w]=`${P}?preset=profile-avatar`))}}}static#e=T=()=>(this.dateRegex=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:\+|-)\d{2}:\d{2})?)?$/,this.\u0275fac=function(w){return new(w||C)},this.\u0275prov=d.jDH({token:C,factory:C.\u0275fac}))}return T(),C})()},5102:(En,it,p)=>{"use strict";p.d(it,{b:()=>B,k:()=>j});var S=p(4303),d=p(656),T=(p(3651),p(1973)),C=p(3090),e=p(3608);let k=(()=>{class F extends e.A{_getDefaultOptions(){return(0,C.X)(super._getDefaultOptions(),{preventScrollEvents:!1})}_getToolbarName(){return"dxToolbar"}}return F.defaultOptions=function(X){e.A.defaultOptions(X)},F})();(0,T.A)("dxPopover",k);const P=k;var v=p(3349),x=p(8914);const b=["*"];let B=(()=>{class F extends v.ic{_watcherHelper;_idh;instance=null;get animation(){return this._getOption("animation")}set animation(U){this._setOption("animation",U)}get closeOnOutsideClick(){return this._getOption("closeOnOutsideClick")}set closeOnOutsideClick(U){this._setOption("closeOnOutsideClick",U)}get container(){return this._getOption("container")}set container(U){this._setOption("container",U)}get contentTemplate(){return this._getOption("contentTemplate")}set contentTemplate(U){this._setOption("contentTemplate",U)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(U){this._setOption("deferRendering",U)}get disabled(){return this._getOption("disabled")}set disabled(U){this._setOption("disabled",U)}get enableBodyScroll(){return this._getOption("enableBodyScroll")}set enableBodyScroll(U){this._setOption("enableBodyScroll",U)}get height(){return this._getOption("height")}set height(U){this._setOption("height",U)}get hideEvent(){return this._getOption("hideEvent")}set hideEvent(U){this._setOption("hideEvent",U)}get hideOnOutsideClick(){return this._getOption("hideOnOutsideClick")}set hideOnOutsideClick(U){this._setOption("hideOnOutsideClick",U)}get hideOnParentScroll(){return this._getOption("hideOnParentScroll")}set hideOnParentScroll(U){this._setOption("hideOnParentScroll",U)}get hint(){return this._getOption("hint")}set hint(U){this._setOption("hint",U)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(U){this._setOption("hoverStateEnabled",U)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(U){this._setOption("maxHeight",U)}get maxWidth(){return this._getOption("maxWidth")}set maxWidth(U){this._setOption("maxWidth",U)}get minHeight(){return this._getOption("minHeight")}set minHeight(U){this._setOption("minHeight",U)}get minWidth(){return this._getOption("minWidth")}set minWidth(U){this._setOption("minWidth",U)}get position(){return this._getOption("position")}set position(U){this._setOption("position",U)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(U){this._setOption("rtlEnabled",U)}get shading(){return this._getOption("shading")}set shading(U){this._setOption("shading",U)}get shadingColor(){return this._getOption("shadingColor")}set shadingColor(U){this._setOption("shadingColor",U)}get showCloseButton(){return this._getOption("showCloseButton")}set showCloseButton(U){this._setOption("showCloseButton",U)}get showEvent(){return this._getOption("showEvent")}set showEvent(U){this._setOption("showEvent",U)}get showTitle(){return this._getOption("showTitle")}set showTitle(U){this._setOption("showTitle",U)}get target(){return this._getOption("target")}set target(U){this._setOption("target",U)}get title(){return this._getOption("title")}set title(U){this._setOption("title",U)}get titleTemplate(){return this._getOption("titleTemplate")}set titleTemplate(U){this._setOption("titleTemplate",U)}get toolbarItems(){return this._getOption("toolbarItems")}set toolbarItems(U){this._setOption("toolbarItems",U)}get visible(){return this._getOption("visible")}set visible(U){this._setOption("visible",U)}get width(){return this._getOption("width")}set width(U){this._setOption("width",U)}get wrapperAttr(){return this._getOption("wrapperAttr")}set wrapperAttr(U){this._setOption("wrapperAttr",U)}onContentReady;onDisposing;onHidden;onHiding;onInitialized;onOptionChanged;onShowing;onShown;onTitleRendered;animationChange;closeOnOutsideClickChange;containerChange;contentTemplateChange;deferRenderingChange;disabledChange;enableBodyScrollChange;heightChange;hideEventChange;hideOnOutsideClickChange;hideOnParentScrollChange;hintChange;hoverStateEnabledChange;maxHeightChange;maxWidthChange;minHeightChange;minWidthChange;positionChange;rtlEnabledChange;shadingChange;shadingColorChange;showCloseButtonChange;showEventChange;showTitleChange;targetChange;titleChange;titleTemplateChange;toolbarItemsChange;visibleChange;widthChange;wrapperAttrChange;get toolbarItemsChildren(){return this._getOption("toolbarItems")}set toolbarItemsChildren(U){this.setChildren("toolbarItems",U)}constructor(U,Z,A,M,H,J,R,L){super(U,Z,A,M,R,L),this._watcherHelper=M,this._idh=H,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"hidden",emit:"onHidden"},{subscribe:"hiding",emit:"onHiding"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"showing",emit:"onShowing"},{subscribe:"shown",emit:"onShown"},{subscribe:"titleRendered",emit:"onTitleRendered"},{emit:"animationChange"},{emit:"closeOnOutsideClickChange"},{emit:"containerChange"},{emit:"contentTemplateChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"enableBodyScrollChange"},{emit:"heightChange"},{emit:"hideEventChange"},{emit:"hideOnOutsideClickChange"},{emit:"hideOnParentScrollChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"maxHeightChange"},{emit:"maxWidthChange"},{emit:"minHeightChange"},{emit:"minWidthChange"},{emit:"positionChange"},{emit:"rtlEnabledChange"},{emit:"shadingChange"},{emit:"shadingColorChange"},{emit:"showCloseButtonChange"},{emit:"showEventChange"},{emit:"showTitleChange"},{emit:"targetChange"},{emit:"titleChange"},{emit:"titleTemplateChange"},{emit:"toolbarItemsChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapperAttrChange"}]),this._idh.setHost(this),J.setHost(this)}_createInstance(U,Z){return new P(U,Z)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(U){super.ngOnChanges(U),this.setupChanges("toolbarItems",U)}setupChanges(U,Z){U in this._optionsToUpdate||this._idh.setup(U,Z)}ngDoCheck(){this._idh.doCheck("toolbarItems"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(U,Z){let A=this._idh.setupSingle(U,Z),M=null!==this._idh.getChanges(U,Z);(A||M)&&super._setOption(U,Z)}static \u0275fac=function(Z){return new(Z||F)(S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(v.zF),S.rXU(v.jS),S.rXU(v.$M),S.rXU(v.fH),S.rXU(S.pJN),S.rXU(S.Agw))};static \u0275cmp=S.VBU({type:F,selectors:[["dx-popover"]],contentQueries:function(Z,A,M){if(1&Z&&S.wni(M,x.JjR,4),2&Z){let H;S.mGM(H=S.lsd())&&(A.toolbarItemsChildren=H)}},inputs:{animation:"animation",closeOnOutsideClick:"closeOnOutsideClick",container:"container",contentTemplate:"contentTemplate",deferRendering:"deferRendering",disabled:"disabled",enableBodyScroll:"enableBodyScroll",height:"height",hideEvent:"hideEvent",hideOnOutsideClick:"hideOnOutsideClick",hideOnParentScroll:"hideOnParentScroll",hint:"hint",hoverStateEnabled:"hoverStateEnabled",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",position:"position",rtlEnabled:"rtlEnabled",shading:"shading",shadingColor:"shadingColor",showCloseButton:"showCloseButton",showEvent:"showEvent",showTitle:"showTitle",target:"target",title:"title",titleTemplate:"titleTemplate",toolbarItems:"toolbarItems",visible:"visible",width:"width",wrapperAttr:"wrapperAttr"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onHidden:"onHidden",onHiding:"onHiding",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onShowing:"onShowing",onShown:"onShown",onTitleRendered:"onTitleRendered",animationChange:"animationChange",closeOnOutsideClickChange:"closeOnOutsideClickChange",containerChange:"containerChange",contentTemplateChange:"contentTemplateChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",enableBodyScrollChange:"enableBodyScrollChange",heightChange:"heightChange",hideEventChange:"hideEventChange",hideOnOutsideClickChange:"hideOnOutsideClickChange",hideOnParentScrollChange:"hideOnParentScrollChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",maxHeightChange:"maxHeightChange",maxWidthChange:"maxWidthChange",minHeightChange:"minHeightChange",minWidthChange:"minWidthChange",positionChange:"positionChange",rtlEnabledChange:"rtlEnabledChange",shadingChange:"shadingChange",shadingColorChange:"shadingColorChange",showCloseButtonChange:"showCloseButtonChange",showEventChange:"showEventChange",showTitleChange:"showTitleChange",targetChange:"targetChange",titleChange:"titleChange",titleTemplateChange:"titleTemplateChange",toolbarItemsChange:"toolbarItemsChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapperAttrChange:"wrapperAttrChange"},standalone:!1,features:[S.Jv_([v.zF,v.jS,v.fH,v.$M]),S.Vt3,S.OA$],ngContentSelectors:b,decls:1,vars:0,template:function(Z,A){1&Z&&(S.NAR(),S.SdG(0))},encapsulation:2})}return F})(),j=(()=>{class F{static \u0275fac=function(Z){return new(Z||F)};static \u0275mod=S.$C({type:F});static \u0275inj=d.G2t({imports:[x.YLo,x.YaD,x.eNx,x.Bkf,x.nwt,x.hXw,x.YGc,x.gf0,x.rvW,x.Tob,x.$Ql,x.i9t,x.TBD,x.isg,v.p_,v.xZ,x.YLo,x.YaD,x.eNx,x.Bkf,x.nwt,x.hXw,x.YGc,x.gf0,x.rvW,x.Tob,x.$Ql,x.i9t,x.TBD,x.isg,v.xZ]})}return F})()},5107:(En,it,p)=>{"use strict";p.d(it,{A:()=>v});var S=p(3538),d=p(5704),m=p(2660),T=p(8879);const P=S.A.inherit({ctor(x,b,B){this._$element=x,this._options=b,this._rawData=B,(0,T.UK)(x,this,this._dispose),this._render()},_render(){const x=(0,d.A)("<div>").addClass("dx-item-content-placeholder");this._$element.append(x),this._watchers=[],this._renderWatchers()},_renderWatchers(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher(x,b){const B=this._rawData,j=this._options.fieldGetter(x),F=function(x,b,B){const j=function(){let F;return function(X){F!==X&&(B(X,F),F=X)}}();return{dispose:x(b,j),force(){j(b())}}}(this._options.watchMethod(),()=>j(B),(X,U)=>{this._dirty=!0,b(X,U)});this._watchers.push(F)},setDataField(){if(this._dirty=!1,(0,m.__)(this._watchers,(x,b)=>{b.force()}),this._dirty)return!0},_renderDisabled(x,b){this._$element.toggleClass("dx-state-disabled",!!x),this._$element.attr("aria-disabled",!!x),this._updateOwnerFocus(x)},_updateOwnerFocus(x){const b=this._options.owner;b&&x&&b._resetItemFocus(this._$element)},_renderVisible(x,b){this._$element.toggleClass("dx-state-invisible",void 0!==x&&!x)},_dispose(){(0,m.__)(this._watchers,(x,b)=>{b.dispose()})}});P.getInstance=function(x){return(0,T.pV)(x,this)};const v=P},5169:(En,it,p)=>{"use strict";p.d(it,{A:()=>k}),p(3651);var d=p(1973),m=p(3090),T=p(8628);let C=(()=>{class w extends T.A{_getDefaultOptions(){return(0,m.X)(super._getDefaultOptions(),{preventScrollEvents:!1})}_getToolbarName(){return"dxToolbar"}}return w.defaultOptions=function(P){T.A.defaultOptions(P)},w})();(0,d.A)("dxPopup",C);const k=C},5170:(En,it,p)=>{"use strict";p.d(it,{E1:()=>x,MO:()=>v,Ov:()=>b,a5:()=>w,a6:()=>k,gO:()=>B});var S=p(5973),d=p(1830),m=p(4859),T=p(3090),C=p(4270);const e={},k=j=>{const F=S.A.current();return j.reduce((X,U)=>{let{device:Z,options:A}=U;const M=Z||{};return((0,d.Tn)(M)?M(F):P(F,M))&&(0,T.X)(!0,X,A),X},{})},w=(j,F)=>"string"!=typeof j?j:{[j]:F},P=(j,F)=>(0,d.RI)(F)||(0,m.hm)(j,[F]).length>0,v=j=>j.substr(j.lastIndexOf(".")+1),x=j=>j.substr(0,j.lastIndexOf(".")),b=function(j,F){return e[F]=e[F]||(0,C.Hz)(F),e[F](j,{functionsAsIs:!0})},B=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}},5206:(En,it,p)=>{"use strict";p.d(it,{X:()=>S});const S=d=>d&&"number"==typeof d.length&&"function"!=typeof d},5213:(En,it,p)=>{"use strict";p.d(it,{A:()=>Ye});var S=p(5737),d=p(6870),m=p(2123),T=p(1973),C=p(6054),e=p(8569),k=p(9522),w=p(5704),P=p(8412),v=p(4859),x=p(6021),b=p(3090),B=p(6946),j=p(4757),F=p(1363),X=p(9495),U=p(1830),Z=p(4017),A=p(6110),M=p(4072),H=p(8664),J=p(9209),R=p(9293),L=p(912);const G=(0,A.zk)(),z="dxDraggable",K=(0,R.b4)(H.ni,z),ee=(0,R.b4)(H.Cy,z),re=(0,R.b4)(H._N,z),be=(0,R.b4)(H.Ve,z),ce=(0,R.b4)(H.qG,z),Re=(0,R.b4)(J.A.down,z),Se=(0,R.b4)("keydown",z);let Pe,Ie;const ie=de=>({x:de.pageX-(0,w.A)(G).scrollLeft(),y:de.pageY-(0,w.A)(G).scrollTop()});class Me{constructor(Ae,pe){this._$scrollableAtPointer=null,this._preventScroll=!0,this._component=pe,"vertical"===Ae?(this._scrollValue="scrollTop",this._overFlowAttr="overflowY",this._sizeAttr="height",this._scrollSizeProp="scrollHeight",this._clientSizeProp="clientHeight",this._limitProps={start:"top",end:"bottom"}):(this._scrollValue="scrollLeft",this._overFlowAttr="overflowX",this._sizeAttr="width",this._scrollSizeProp="scrollWidth",this._clientSizeProp="clientWidth",this._limitProps={start:"left",end:"right"})}updateScrollable(Ae,pe){let Ee=!1;Ae.some(le=>{const Ke=(0,w.A)(le),Be=Ke.hasClass("dx-overlay-wrapper"),q=Ke.hasClass("dx-overlay-content");return!(!Be&&!q)||(Ee=this._trySetScrollable(le,pe),Ee)}),Ee||(this._$scrollableAtPointer=null,this._scrollSpeed=0)}isScrolling(){return!!this._scrollSpeed}isScrollable(Ae){return("auto"===Ae.css(this._overFlowAttr)||Ae.hasClass("dx-scrollable-container"))&&Ae.prop(this._scrollSizeProp)>Math.ceil("width"===this._sizeAttr?(0,F.RG)(Ae):(0,F.Oq)(Ae))}_trySetScrollable(Ae,pe){const Ee=this,le=(0,w.A)(Ae);let Ke;const Be=Ee._component.option("scrollSensitivity");let q=Ee.isScrollable(le);return q&&(Ke=Ee._calculateDistanceToBorders(le,pe),Be>Ke[Ee._limitProps.start]?Ee._preventScroll||(Ee._scrollSpeed=-Ee._calculateScrollSpeed(Ke[Ee._limitProps.start]),Ee._$scrollableAtPointer=le):Be>Ke[Ee._limitProps.end]?Ee._preventScroll||(Ee._scrollSpeed=Ee._calculateScrollSpeed(Ke[Ee._limitProps.end]),Ee._$scrollableAtPointer=le):(q=!1,Ee._preventScroll=!1)),q}_calculateDistanceToBorders(Ae,pe){const Ee=Ae.get(0);let le;return Ee?(le=(0,j.N)(Ee),{left:pe.x-le.left,top:pe.y-le.top,right:le.right-pe.x,bottom:le.bottom-pe.y}):{}}_calculateScrollSpeed(Ae){const pe=this._component,Ee=pe.option("scrollSensitivity"),le=pe.option("scrollSpeed");return Math.ceil(((Ee-Ae)/Ee)**2*le)}scrollByStep(){const Ae=this;if(Ae._$scrollableAtPointer&&Ae._scrollSpeed){if(Ae._$scrollableAtPointer.hasClass("dx-scrollable-container")){const Ee=Ae._$scrollableAtPointer.closest(".dx-scrollable"),le=Ee.data("dxScrollable")||Ee.data("dxScrollView");if(le){const Ke=le.scrollOffset()[Ae._limitProps.start]+Ae._scrollSpeed;le.scrollTo({[Ae._limitProps.start]:Ke})}}else{const Ee=Ae._$scrollableAtPointer[Ae._scrollValue]()+Ae._scrollSpeed;Ae._$scrollableAtPointer[Ae._scrollValue](Ee)}const pe=Ae._component._dragMoveArgs;pe&&Ae._component._dragMoveHandler(pe)}}reset(){this._$scrollableAtPointer=null,this._scrollSpeed=0,this._preventScroll=!0}isOutsideScrollable(Ae,pe){if(!Ae)return!1;const Ee=(0,j.N)(Ae.get(0)),le=Ee[this._limitProps.start],Ke=Ee[this._sizeAttr],Be=ie(pe),q="width"===this._sizeAttr?Be.x:Be.y;return q<le||q>le+Ke}}const _e=L.A.inherit({ctor(de){this.callBase(),this._strategy=de},_step(){const de=this._strategy._horizontalScrollHelper,Ae=this._strategy._verticalScrollHelper;de&&de.scrollByStep(),Ae&&Ae.scrollByStep()}}),ke=e.A.inherit({reset:v.lQ,dragMove:v.lQ,dragEnter:v.lQ,dragLeave:v.lQ,dragEnd(de){return this._getSourceDraggable()._fireRemoveEvent(de),(0,x.cY)().resolve()},_fireRemoveEvent:v.lQ,_getDefaultOptions(){return(0,b.X)(this.callBase(),{onDragStart:null,onDragMove:null,onDragEnd:null,onDragEnter:null,onDragLeave:null,onDragCancel:null,onCancelByEsc:!1,onDrop:null,immediate:!0,dragDirection:"both",boundary:void 0,boundOffset:0,allowMoveByClick:!1,itemData:null,container:void 0,dragTemplate:void 0,contentTemplate:"content",handle:"",filter:"",clone:!1,autoScroll:!0,scrollSpeed:30,scrollSensitivity:60,group:void 0,data:void 0})},_setOptionsByReference(){this.callBase.apply(this,arguments),(0,b.X)(this._optionsByReference,{component:!0,group:!0,itemData:!0,data:!0})},_init(){this.callBase(),this._attachEventHandlers(),this._scrollAnimator=new _e(this),this._horizontalScrollHelper=new Me("horizontal",this),this._verticalScrollHelper=new Me("vertical",this),this._initScrollTop=0,this._initScrollLeft=0},_normalizeCursorOffset:de=>((0,U.Gv)(de)&&(de={h:de.x,v:de.y}),{left:(de=(0,v.T6)(de).map(Ae=>parseFloat(Ae)))[0],top:1===de.length?de[0]:de[1]}),_getNormalizedCursorOffset(de,Ae){return(0,U.Tn)(de)&&(de=de.call(this,Ae)),this._normalizeCursorOffset(de)},_calculateElementOffset(de){let Ae,pe;const{event:Ee}=de,le=(0,w.A)(de.itemElement),Ke=(0,w.A)(de.dragElement),Be=this._dragElementIsCloned(),q=this.option("cursorOffset");let Oe={left:0,top:0};const fe=this._initialLocate=(0,m.x5)(Ke);return(Be||de.initialOffset||q)&&(Ae=de.initialOffset||le.offset(),q&&(Oe=this._getNormalizedCursorOffset(q,de),isFinite(Oe.left)&&(Ae.left=Ee.pageX),isFinite(Oe.top)&&(Ae.top=Ee.pageY)),pe=Ke.offset(),Ae.top-=pe.top+(Oe.top||0)-fe.top,Ae.left-=pe.left+(Oe.left||0)-fe.left),Ae},_initPosition(de){const Ae=(0,w.A)(de.dragElement),pe=this._calculateElementOffset(de);pe&&this._move(pe,Ae),this._startPosition=(0,m.x5)(Ae)},_startAnimator(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator(){this._scrollAnimator.stop()},_addWidgetPrefix(de){return(0,B._k)(this.NAME)+(de?`-${de}`:"")},_getItemsSelector(){return this.option("filter")||""},_$content(){const de=this.$element(),Ae=de.children(".dx-template-wrapper");return Ae.length?Ae:de},_attachEventHandlers(){if(this.option("disabled"))return;let de=this._$content(),Ae=this._getItemsSelector();const pe=this.option("allowMoveByClick"),Ee={direction:this.option("dragDirection"),immediate:this.option("immediate"),checkDropTarget:(le,Ke)=>{const Be=this.option("group"),q=this._getSourceDraggable().option("group"),Oe=this._getScrollable(le);return!this._verticalScrollHelper.isOutsideScrollable(Oe,Ke)&&!this._horizontalScrollHelper.isOutsideScrollable(Oe,Ke)&&q&&q===Be}};pe&&(de=this._getArea(),M.A.on(de,Re,Ee,this._pointerDownHandler.bind(this))),">"===Ae[0]&&(Ae=Ae.slice(1)),M.A.on(de,K,Ae,Ee,this._dragStartHandler.bind(this)),M.A.on(de,ee,Ee,this._dragMoveHandler.bind(this)),M.A.on(de,re,Ee,this._dragEndHandler.bind(this)),M.A.on(de,be,Ee,this._dragEnterHandler.bind(this)),M.A.on(de,ce,Ee,this._dragLeaveHandler.bind(this)),this.option("onCancelByEsc")&&M.A.on(de,Se,this._keydownHandler.bind(this))},_dragElementIsCloned(){return this._$dragElement&&this._$dragElement.hasClass(this._addWidgetPrefix("clone"))},_getDragTemplateArgs(de,Ae){return{container:(0,k.cc)(Ae),model:{itemData:this.option("itemData"),itemElement:(0,k.cc)(de)}}},_createDragElement(de){let Ae=de;const pe=this.option("clone"),Ee=this._getContainer();let le=this.option("dragTemplate");return le?(le=this._getTemplate(le),Ae=(0,w.A)("<div>").appendTo(Ee),le.render(this._getDragTemplateArgs(de,Ae))):pe&&(Ae=(0,w.A)("<div>").appendTo(Ee),de.clone().css({width:de.css("width"),height:de.css("height")}).appendTo(Ae)),Ae.toggleClass(this._addWidgetPrefix("clone"),Ae.get(0)!==de.get(0)).toggleClass("dx-rtl",this.option("rtlEnabled"))},_resetDragElement(){this._dragElementIsCloned()?this._$dragElement.remove():this._toggleDraggingClass(!1),this._$dragElement=null},_resetSourceElement(){this._toggleDragSourceClass(!1),this._$sourceElement=null},_detachEventHandlers(){M.A.off(this._$content(),`.${z}`),M.A.off(this._getArea(),`.${z}`)},_move(de,Ae){(0,m.Cy)(Ae||this._$dragElement,de)},_getDraggableElement(de){const Ae=this._getSourceElement();if(Ae)return Ae;if(this.option("allowMoveByClick"))return this.$element();let Ee=(0,w.A)(de&&de.target);const le=this._getItemsSelector();if(">"===le[0]){const Ke=this._$content().find(le);Ke.is(Ee)||(Ee=Ee.closest(Ke))}return Ee},_getSourceElement(){return this._getSourceDraggable()._$sourceElement},_pointerDownHandler(de){if((0,R.eT)(de))return;const Ae={},pe=this.$element(),Ee=this.option("dragDirection");("horizontal"===Ee||"both"===Ee)&&(Ae.left=de.pageX-pe.offset().left+(0,m.x5)(pe).left-(0,F.RG)(pe)/2),("vertical"===Ee||"both"===Ee)&&(Ae.top=de.pageY-pe.offset().top+(0,m.x5)(pe).top-(0,F.Oq)(pe)/2),this._move(Ae,pe),this._getAction("onDragMove")(this._getEventArgs(de))},_isValidElement(de,Ae){const pe=this.option("handle"),Ee=(0,w.A)(de.originalEvent&&de.originalEvent.target);return!(pe&&!Ee.closest(pe).length||!Ae.length||Ae.is(".dx-state-disabled, .dx-state-disabled *"))},_dragStartHandler(de){const Ae=this._getDraggableElement(de);if(this.dragInProgress=!0,!this._isValidElement(de,Ae))return void(de.cancel=!0);if(this._$sourceElement)return;const pe=this._getDragStartArgs(de,Ae);if(this._getAction("onDragStart")(pe),pe.cancel)return void(de.cancel=!0);this.option("itemData",pe.itemData),this._setSourceDraggable(),this._$sourceElement=Ae;let Ee=Ae.offset();!this._hasClonedDraggable()&&this.option("autoScroll")&&(this._initScrollTop=this._getScrollableScrollTop(),this._initScrollLeft=this._getScrollableScrollLeft(),Ee=this._getDraggableElementOffset(Ee.left,Ee.top));const le=this._$dragElement=this._createDragElement(Ae);this._toggleDraggingClass(!0),this._toggleDragSourceClass(!0),this._setGestureCoverCursor(le.children());const Ke="fixed"===le.css("position");this._initPosition((0,b.X)({},pe,{dragElement:le.get(0),initialOffset:Ke&&Ee})),this._getAction("onDraggableElementShown")((0,S.A)({},pe,{dragElement:le}));const Be=this._getArea(),q=this._getAreaOffset(Be),Oe=this._getBoundOffset(),fe=(0,F.Ot)(Be),We=(0,F.P$)(Be),Ue=(0,F.RG)(le),Ve=(0,F.Oq)(le),tt=le.offset().left-q.left,at=le.offset().top-q.top;Be.length&&(de.maxLeftOffset=tt-Oe.left,de.maxRightOffset=fe-tt-Ue-Oe.right,de.maxTopOffset=at-Oe.top,de.maxBottomOffset=We-at-Ve-Oe.bottom),this.option("autoScroll")&&this._startAnimator()},_getAreaOffset:de=>de&&d.A.offset(de)||{left:0,top:0},_toggleDraggingClass(de){this._$dragElement&&this._$dragElement.toggleClass(this._addWidgetPrefix("dragging"),de)},_toggleDragSourceClass(de,Ae){const pe=Ae||this._$sourceElement;pe&&pe.toggleClass(this._addWidgetPrefix("source"),de)},_setGestureCoverCursor(de){(0,w.A)(".dx-gesture-cover").css("cursor",de.css("cursor"))},_getBoundOffset(){let de=this.option("boundOffset");return(0,U.Tn)(de)&&(de=de.call(this)),(0,X.oN)(de)},_getArea(){let de=this.option("boundary");return(0,U.Tn)(de)&&(de=de.call(this)),(0,w.A)(de)},_getContainer(){let de=this.option("container");return void 0===de&&(de=(0,Z.Uq)()),(0,w.A)(de)},_getDraggableElementOffset(de,Ae){var pe,Ee;const le=this._initScrollTop,Ke=this._initScrollLeft,Be=this._getScrollableScrollTop(),q=this._getScrollableScrollLeft(),fe="fixed"===(0,w.A)(this.element()).css("position"),We={left:((null===(pe=this._startPosition)||void 0===pe?void 0:pe.left)??0)+de,top:((null===(Ee=this._startPosition)||void 0===Ee?void 0:Ee.top)??0)+Ae};return fe||this._hasClonedDraggable()?We:{left:(0,U.kf)(q)?We.left+q-Ke:We.left,top:(0,U.kf)(Be)?We.top+Be-le:We.top}},_hasClonedDraggable(){return this.option("clone")||this.option("dragTemplate")},_dragMoveHandler(de){if(this._dragMoveArgs=de,!this._$dragElement)return void(de.cancel=!0);const Ae=this._getDraggableElementOffset(de.offset.x,de.offset.y);this._move(Ae),this._updateScrollable(de);const pe=this._getEventArgs(de);this._getAction("onDragMove")(pe),!0!==pe.cancel&&this._getTargetDraggable().dragMove(de,scrollBy)},_updateScrollable(de){const Ae=this;if(Ae.option("autoScroll")){const pe=ie(de),Ee=C.A.elementsFromPoint(pe.x,pe.y,this.$element().get(0));Ae._verticalScrollHelper.updateScrollable(Ee,pe),Ae._horizontalScrollHelper.updateScrollable(Ee,pe)}},_getScrollable(de){let Ae;return de.parents().toArray().some(pe=>{const Ee=(0,w.A)(pe);return!(!this._horizontalScrollHelper.isScrollable(Ee)&&!this._verticalScrollHelper.isScrollable(Ee)||(Ae=Ee,0))}),Ae},_getScrollableScrollTop(){var de;return(null===(de=this._getScrollable((0,w.A)(this.element())))||void 0===de?void 0:de.scrollTop())??0},_getScrollableScrollLeft(){var de;return(null===(de=this._getScrollable((0,w.A)(this.element())))||void 0===de?void 0:de.scrollLeft())??0},_defaultActionArgs(){const de=this.callBase.apply(this,arguments),Ae=this.option("component");return Ae&&(de.component=Ae,de.element=Ae.element()),de},_getEventArgs(de){const Ae=this._getSourceDraggable(),pe=this._getTargetDraggable();return{event:de,itemData:Ae.option("itemData"),itemElement:(0,k.cc)(Ae._$sourceElement),fromComponent:Ae.option("component")||Ae,toComponent:pe.option("component")||pe,fromData:Ae.option("data"),toData:pe.option("data")}},_getDragStartArgs(de,Ae){const pe=this._getEventArgs(de);return{event:pe.event,itemData:pe.itemData,itemElement:Ae,fromData:pe.fromData}},_revertItemToInitialPosition(){!this._dragElementIsCloned()&&this._move(this._initialLocate,this._$sourceElement)},_dragEndHandler(de){const Ae=(0,x.cY)(),pe=this._getEventArgs(de),Ee=this._getEventArgs(de),le=this._getTargetDraggable();let Ke=!0;this.dragInProgress=!1;try{this._getAction("onDragEnd")(pe)}finally{(0,x.z7)((0,x.Sx)(pe.cancel)).done(Be=>{if(!Be&&(le!==this&&le._getAction("onDrop")(Ee),!Ee.cancel))return Ke=!1,void(0,x.z7)((0,x.Sx)(le.dragEnd(pe))).always(Ae.resolve);Ae.resolve()}).fail(Ae.resolve),Ae.done(()=>{Ke&&this._revertItemToInitialPosition(),this._resetDragOptions(le)})}},_isTargetOverAnotherDraggable(de){const Ae=this._getSourceDraggable();if(this===Ae)return!1;const pe=Ae._$dragElement,Ee=Ae.$element(),le=this.$element(),Ke=ie(de),q=C.A.elementsFromPoint(Ke.x,Ke.y,this.element()).filter(Ue=>{const Ve=(0,w.A)(Ue);return!!Ve.hasClass(this._addWidgetPrefix())&&!Ve.closest(pe).length})[0],Oe=this._getSourceElement(),fe=q===Ee.get(0),We=(0,w.A)(q).closest(Oe).length;return!q||q===le.get(0)&&!fe&&!We},_dragEnterHandler(de){this._fireDragEnterEvent(de),this._isTargetOverAnotherDraggable(de)&&this._setTargetDraggable(),this._getSourceDraggable().dragEnter(de)},_dragLeaveHandler(de){this._fireDragLeaveEvent(de),this._resetTargetDraggable(),this!==this._getSourceDraggable()&&this.reset(),this._getSourceDraggable().dragLeave(de)},_keydownHandler(de){this.dragInProgress&&"Escape"===de.key&&this._keydownEscapeHandler(de)},_keydownEscapeHandler(de){var Ae;if(!this._getSourceElement())return;const Ee=this._getEventArgs(de);if(this._getAction("onDragCancel")(Ee),Ee.cancel)return;this.dragInProgress=!1,null===(Ae=Ie)||void 0===Ae||Ae._toggleDraggingClass(!1),this._detachEventHandlers(),this._revertItemToInitialPosition();const le=this._getTargetDraggable();this._resetDragOptions(le),this._attachEventHandlers()},_getAction(de){return this[`_${de}Action`]||this._createActionByOption(de)},_getAnonymousTemplateName:()=>"content",_initTemplates(){this.option("contentTemplate")&&(this._templateManager.addDefaultTemplates({content:new P.A}),this.callBase.apply(this,arguments))},_render(){this.callBase(),this.$element().addClass(this._addWidgetPrefix());const de=this._templateManager.anonymousTemplateName===this.option("contentTemplate"),Ae=this._getTemplateByOption("contentTemplate");Ae&&(0,w.A)(Ae.render({container:this.element(),transclude:de}))},_optionChanged(de){const{name:Ae}=de;switch(Ae){case"onDragStart":case"onDragMove":case"onDragEnd":case"onDrop":case"onDragEnter":case"onDragLeave":case"onDragCancel":case"onDraggableElementShown":this[`_${Ae}Action`]=this._createActionByOption(Ae);break;case"dragTemplate":case"contentTemplate":case"container":case"clone":case"scrollSensitivity":case"scrollSpeed":case"boundOffset":case"handle":case"group":case"data":case"itemData":break;case"allowMoveByClick":case"dragDirection":case"disabled":case"boundary":case"filter":case"immediate":this._resetDragElement(),this._detachEventHandlers(),this._attachEventHandlers();break;case"onCancelByEsc":this._keydownHandler();break;case"autoScroll":this._verticalScrollHelper.reset(),this._horizontalScrollHelper.reset();break;default:this.callBase(de)}},_getTargetDraggable(){return Pe||this},_getSourceDraggable(){return Ie||this},_setTargetDraggable(){const de=this.option("group"),Ae=this._getSourceDraggable();de&&de===Ae.option("group")&&(Pe=this)},_setSourceDraggable(){Ie=this},_resetSourceDraggable(){Ie=null},_resetTargetDraggable(){Pe=null},_resetDragOptions(de){this.reset(),de.reset(),this._stopAnimator(),this._horizontalScrollHelper.reset(),this._verticalScrollHelper.reset(),this._resetDragElement(),this._resetSourceElement(),this._resetTargetDraggable(),this._resetSourceDraggable()},_dispose(){this.callBase(),this._detachEventHandlers(),this._resetDragElement(),this._resetTargetDraggable(),this._resetSourceDraggable(),this._$sourceElement=null,this._stopAnimator()},_fireDragEnterEvent(de){const Ae=this._getEventArgs(de);this._getAction("onDragEnter")(Ae)},_fireDragLeaveEvent(de){const Ae=this._getEventArgs(de);this._getAction("onDragLeave")(Ae)}});(0,T.A)(z,ke);const Ye=ke},5257:(En,it,p)=>{"use strict";p.d(it,{A:()=>v});var S=p(5704),d=p(3090),m=p(4072),T=p(8360),C=p(9012),e=p(974);class v extends e.A{constructor(b,B,j){super(b,B,j),this.currentTemplate=null}_attachEvents(b){const{editor:B}=this;b.option("onClick",j=>{var F;(null!==(F=B._shouldCallOpenHandler)&&void 0!==F&&F.call(B)||!B.option("openOnFieldClick"))&&B._openHandler(j)}),m.A.on(b.$element(),"mousedown",j=>{B.$element().is(".dx-state-focused")&&j.preventDefault()})}_create(){const{editor:b}=this,B=(0,S.A)("<div>"),j=this._getOptions();this._addToContainer(B);const F=b._createComponent(B,C.A,(0,d.X)({},j,{elementAttr:{"aria-label":T.A.format("dxDropDownEditor-selectLabel")}}));return this._legacyRender(b.$element(),B,j.visible),{$element:B,instance:F}}_getOptions(){const{editor:b}=this,B=this._isVisible(),F={focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:b.option("readOnly"),visible:B};return this._addTemplate(F),F}_isVisible(){const{editor:b}=this;return super._isVisible()&&b.option("showDropDownButton")}_legacyRender(b,B,j){b.toggleClass("dx-dropdowneditor-button-visible",j),B&&B.removeClass("dx-button").removeClass("dx-button-mode-contained").addClass("dx-dropdowneditor-button")}_isSameTemplate(){return this.editor.option("dropDownButtonTemplate")===this.currentTemplate}_addTemplate(b){this._isSameTemplate()||(b.template=this.editor._getTemplateByOption("dropDownButtonTemplate"),this.currentTemplate=this.editor.option("dropDownButtonTemplate"))}update(){if(super.update()){const{editor:B,instance:j}=this,F=B.$element(),X=this._getOptions();j?.option(X),this._legacyRender(F,j?.$element(),X.visible)}}}},5259:(En,it,p)=>{"use strict";p.d(it,{A:()=>k});var S=p(2660);const d=["January","February","March","April","May","June","July","August","September","October","November","December"],m=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],T=["AM","PM"],C=["Q1","Q2","Q3","Q4"],e=(w,P)=>{const v={abbreviated:3,short:2,narrow:1};return(0,S.Tj)(w,x=>x.substr(0,v[P]))},k={getMonthNames:function(w){return e(d,w)},getDayNames:function(w){return e(m,w)},getQuarterNames:function(w){return C},getPeriodNames:function(w){return T}}},5267:(En,it,p)=>{"use strict";p.d(it,{A:()=>b});var S=p(4859),d=p(4270),m=p(6021),T=p(3090),C=p(1830),e=p(6234),k=p(1614),w=p(1221),P=p(5801);const b=(0,T.X)({},P.A,{_dataExpressionDefaultOptions:()=>({items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}),_initDataExpressions(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource(){this.option("dataSource")||(this._dataSource=new w.q({store:new k.A(this.option("items")),pageSize:0}),this._initDataController())},_compileDisplayGetter(){this._displayGetter=(0,d.Hz)(this._displayGetterExpr())},_displayGetterExpr(){return this.option("displayExpr")},_compileValueGetter(){this._valueGetter=(0,d.Hz)(this._valueGetterExpr())},_valueGetterExpr(){return this.option("valueExpr")||"this"},_loadValue(B){const j=(0,m.cY)();return B=this._unwrappedValue(B),(0,C.O9)(B)?(this._loadSingle(this._valueGetterExpr(),B).done(F=>{this._isValueEquals(this._valueGetter(F),B)?j.resolve(F):j.reject()}).fail(()=>{j.reject()}),this._loadValueDeferred=j,j.promise()):j.reject().promise()},_rejectValueLoading(){var B;null===(B=this._loadValueDeferred)||void 0===B||B.reject({shouldSkipCallback:!0})},_getCurrentValue(){return this.option("value")},_unwrappedValue(B){return(B=B??this._getCurrentValue())&&this._dataSource&&"this"===this._valueGetterExpr()&&(B=this._getItemKey(B)),e.A.unwrap(B)},_getItemKey(B){const j=this._dataSource.key();if(Array.isArray(j)){const F={};for(let X=0,U=j.length;X<U;X++)F[j[X]]=B[j[X]];return F}return j&&"object"==typeof B&&(B=B[j]),B},_isValueEquals(B,j){const F=this._dataSource&&this._dataSource.key();let X=this._compareValues(B,j);return!X&&F&&(0,C.O9)(B)&&(0,C.O9)(j)&&(X=Array.isArray(F)?this._compareByCompositeKey(B,j,F):this._compareByKey(B,j,F)),X},_compareByCompositeKey(B,j,F){const X=C.Gv;if(!X(B)||!X(j))return!1;for(let U=0,Z=F.length;U<Z;U++)if(B[F[U]]!==j[F[U]])return!1;return!0},_compareByKey(B,j,F){const X=e.A.unwrap,U=(0,S.YD)(X(B[F]),B),Z=(0,S.YD)(X(j[F]),j);return this._compareValues(U,Z)},_compareValues:(B,j)=>(0,d.ao)(B,!0)===(0,d.ao)(j,!0),_initDynamicTemplates:S.lQ,_setCollectionWidgetItemTemplate(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this.option("itemTemplate"))},_getCollectionKeyExpr(){const B=this.option("valueExpr");return(0,C.Kg)(B)&&"this"!==B||(0,C.Tn)(B)?B:null},_dataExpressionOptionChanged(B){switch(B.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._initDynamicTemplates(),this._setCollectionWidgetOption("displayExpr")}}})},5328:(En,it,p)=>{"use strict";p.d(it,{uA:()=>Bs,MZ:()=>B,EW:()=>Ni,zF:()=>Ee,_M:()=>Sn,Gg:()=>Bi,C4:()=>dn,Hq:()=>ro,vI:()=>li,J4:()=>Wo,F1:()=>Yi,sO:()=>ie,nl:()=>Ce,_3:()=>Ii,bF:()=>De,UV:()=>R,$_:()=>Ae,_B:()=>ye,XX:()=>An,mM:()=>ks});var S=Array.isArray;function d(Et){var en=typeof Et;return"string"===en||"number"===en}function m(Et){return null==Et}function T(Et){return null===Et||!1===Et||!0===Et||void 0===Et}function C(Et){return"function"==typeof Et}function e(Et){return"string"==typeof Et}function w(Et){return null===Et}function P(Et){return void 0===Et}function v(Et,en){var Dn={};if(Et)for(var Zn in Et)Dn[Zn]=Et[Zn];if(en)for(var gi in en)Dn[gi]=en[gi];return Dn}function b(Et){return!w(Et)&&"object"==typeof Et}var B={},j="$F";function F(Et){return Et.substr(2).toLowerCase()}function X(Et,en){Et.appendChild(en)}function U(Et,en,Dn){w(Dn)?X(Et,en):Et.insertBefore(en,Dn)}function M(Et,en){Et.removeChild(en)}function H(Et){for(var en=0;en<Et.length;en++)Et[en]()}function J(Et,en,Dn){var Zn=Et.children;return 4&Dn?Zn.$LI:8192&Dn?2===Et.childFlags?Zn:Zn[en?0:Zn.length-1]:Zn}function R(Et,en){for(var Dn;Et;){if(2033&(Dn=Et.flags))return Et.dom;Et=J(Et,en,Dn)}return null}function L(Et,en){do{var Dn=Et.flags;if(2033&Dn)return void M(en,Et.dom);var Zn=Et.children;if(4&Dn&&(Et=Zn.$LI),8&Dn&&(Et=Zn),8192&Dn){if(2!==Et.childFlags){for(var gi=0,mi=Zn.length;gi<mi;++gi)L(Zn[gi],en);return}Et=Zn}}while(Et)}function G(Et,en,Dn){do{var Zn=Et.flags;if(2033&Zn)return void U(en,Et.dom,Dn);var gi=Et.children;if(4&Zn&&(Et=gi.$LI),8&Zn&&(Et=gi),8192&Zn){if(2!==Et.childFlags){for(var mi=0,ut=gi.length;mi<ut;++mi)G(gi[mi],en,Dn);return}Et=gi}}while(Et)}function Q(Et,en,Dn){return Et.constructor.getDerivedStateFromProps?v(Dn,Et.constructor.getDerivedStateFromProps(en,Dn)):Dn}var z={v:!1},K={componentComparator:null,createVNode:null,renderComplete:null};function ee(Et,en){Et.textContent=en}function re(Et,en){return b(Et)&&Et.event===en.event&&Et.data===en.data}function be(Et,en){for(var Dn in en)P(Et[Dn])&&(Et[Dn]=en[Dn]);return Et}function ce(Et,en){return!!C(Et)&&(Et(en),!0)}var Re="$";function Se(Et,en,Dn,Zn,gi,mi,ut,Yt){this.childFlags=Et,this.children=en,this.className=Dn,this.dom=null,this.flags=Zn,this.key=void 0===gi?null:gi,this.props=void 0===mi?null:mi,this.ref=void 0===ut?null:ut,this.type=Yt}function De(Et,en,Dn,Zn,gi,mi,ut,Yt){var Dt=void 0===gi?1:gi,mn=new Se(Dt,Zn,Dn,Et,ut,mi,Yt,en);return K.createVNode&&K.createVNode(mn),0===Dt&&pe(mn,mn.children),mn}function ie(Et,en,Dn,Zn,gi){Et=function W(Et,en){return 12&Et?Et:en.prototype&&en.prototype.render?4:en.render?32776:8}(Et,en);var mi=new Se(1,null,null,Et,Zn,function Ie(Et,en,Dn){var Zn=(32768&Et?en.render:en).defaultProps;return m(Zn)?Dn:m(Dn)?v(Zn,null):be(Dn,Zn)}(Et,en,Dn),function Pe(Et,en,Dn){if(4&Et)return Dn;var Zn=(32768&Et?en.render:en).defaultHooks;return m(Zn)?Dn:m(Dn)?Zn:be(Dn,Zn)}(Et,en,gi),en);return K.createVNode&&K.createVNode(mi),mi}function he(Et,en){return new Se(1,m(Et)||!0===Et||!1===Et?"":Et,null,16,en,null,null,null)}function Ce(Et,en,Dn){var Zn=De(8192,8192,null,Et,en,null,Dn,null);switch(Zn.childFlags){case 1:Zn.children=ke(),Zn.childFlags=2;break;case 16:Zn.children=[he(Et)],Zn.childFlags=4}return Zn}function ye(Et){var en=Et.props;if(en){var Dn=Et.flags;481&Dn&&(void 0!==en.children&&m(Et.children)&&pe(Et,en.children),void 0!==en.className&&(m(Et.className)&&(Et.className=en.className||null),en.className=void 0)),void 0!==en.key&&(Et.key=en.key,en.key=void 0),void 0!==en.ref&&(Et.ref=8&Dn?v(Et.ref,en.ref):en.ref,en.ref=void 0)}return Et}function _e(Et){var en=-16385&Et.flags,Dn=Et.props;if(14&en&&!w(Dn)){var Zn=Dn;for(var gi in Dn={},Zn)Dn[gi]=Zn[gi]}return 8192&en?function Me(Et){var en=Et.children,Dn=Et.childFlags;return Ce(2===Dn?_e(en):en.map(_e),Dn,Et.key)}(Et):new Se(Et.childFlags,Et.children,Et.className,en,Et.key,Dn,Et.ref,Et.type)}function ke(){return he("",null)}function de(Et,en,Dn,Zn){for(var gi=Et.length;Dn<gi;Dn++){var mi=Et[Dn];if(!T(mi)){var ut=Zn+Re+Dn;if(S(mi))de(mi,en,0,ut);else{if(d(mi))mi=he(mi,ut);else{var Yt=mi.key,Dt=e(Yt)&&Yt[0]===Re;(81920&mi.flags||Dt)&&(mi=_e(mi)),mi.flags|=65536,Dt?Yt.substring(0,Zn.length)!==Zn&&(mi.key=Zn+Yt):mi.key=w(Yt)?ut:Zn+Yt}en.push(mi)}}}}function Ae(Et){switch(Et){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case j:return 8192;default:return 1}}function pe(Et,en){var Dn,Zn=1;if(T(en))Dn=en;else if(d(en))Zn=16,Dn=en;else if(S(en)){for(var gi=en.length,mi=0;mi<gi;++mi){var ut=en[mi];if(T(ut)||S(ut)){Dn=Dn||en.slice(0,mi),de(en,Dn,mi,"");break}if(d(ut))(Dn=Dn||en.slice(0,mi)).push(he(ut,Re+mi));else{var Yt=ut.key,Dt=(81920&ut.flags)>0,mn=w(Yt),Yn=e(Yt)&&Yt[0]===Re;Dt||mn||Yn?(Dn=Dn||en.slice(0,mi),(Dt||Yn)&&(ut=_e(ut)),(mn||Yn)&&(ut.key=Re+mi),Dn.push(ut)):Dn&&Dn.push(ut),ut.flags|=65536}}Zn=0===(Dn=Dn||en).length?1:8}else(Dn=en).flags|=65536,81920&en.flags&&(Dn=_e(en)),Zn=2;return Et.children=Dn,Et.childFlags=Zn,Et}function Ee(Et){return T(Et)||d(Et)?he(Et,null):S(Et)?Ce(Et,0,null):16384&Et.flags?_e(Et):Et}var le="http://www.w3.org/1999/xlink",Ke="http://www.w3.org/XML/1998/namespace",Be={"xlink:actuate":le,"xlink:arcrole":le,"xlink:href":le,"xlink:role":le,"xlink:show":le,"xlink:title":le,"xlink:type":le,"xml:base":Ke,"xml:lang":Ke,"xml:space":Ke};function q(Et){return{onClick:Et,onDblClick:Et,onFocusIn:Et,onFocusOut:Et,onKeyDown:Et,onKeyPress:Et,onKeyUp:Et,onMouseDown:Et,onMouseMove:Et,onMouseUp:Et,onTouchEnd:Et,onTouchMove:Et,onTouchStart:Et}}var Oe=q(0),fe=q(null),We=q(!0);function Ue(Et,en){var Dn=en.$EV;return Dn||(Dn=en.$EV=q(null)),Dn[Et]||1===++Oe[Et]&&(fe[Et]=function je(Et){var en="onClick"===Et||"onDblClick"===Et?function me(Et){return function(en){0===en.button?Vt(en,!0,Et,ue(en)):en.stopPropagation()}}(Et):function Te(Et){return function(en){Vt(en,!1,Et,ue(en))}}(Et);return document.addEventListener(F(Et),en),en}(Et)),Dn}function Ve(Et,en){var Dn=en.$EV;Dn&&Dn[Et]&&(0===--Oe[Et]&&(document.removeEventListener(F(Et),fe[Et]),fe[Et]=null),Dn[Et]=null)}function Vt(Et,en,Dn,Zn){var gi=function at(Et){return C(Et.composedPath)?Et.composedPath()[0]:Et.target}(Et);do{if(en&&gi.disabled)return;var mi=gi.$EV;if(mi){var ut=mi[Dn];if(ut&&(Zn.dom=gi,ut.event?ut.event(ut.data,Et):ut(Et),Et.cancelBubble))return}gi=gi.parentNode}while(!w(gi))}function qe(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Nt(){return this.defaultPrevented}function et(){return this.cancelBubble}function ue(Et){var en={dom:document};return Et.isDefaultPrevented=Nt,Et.isPropagationStopped=et,Et.stopPropagation=qe,Object.defineProperty(Et,"currentTarget",{configurable:!0,get:function(){return en.dom}}),en}function lt(Et,en,Dn){if(Et[en]){var Zn=Et[en];Zn.event?Zn.event(Zn.data,Dn):Zn(Dn)}else{var gi=en.toLowerCase();Et[gi]&&Et[gi](Dn)}}function Qe(Et,en){var Dn=function(Zn){var gi=this.$V;if(gi){var mi=gi.props||B,ut=gi.dom;if(e(Et))lt(mi,Et,Zn);else for(var Yt=0;Yt<Et.length;++Yt)lt(mi,Et[Yt],Zn);if(C(en)){var Dt=this.$V;en(Dt.props||B,ut,!1,Dt)}}};return Object.defineProperty(Dn,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),Dn}function Ct(Et,en,Dn){var Zn="$"+en,gi=Et[Zn];if(gi){if(gi[1].wrapped)return;Et.removeEventListener(gi[0],gi[1]),Et[Zn]=null}C(Dn)&&(Et.addEventListener(en,Dn),Et[Zn]=[en,Dn])}function yt(Et){return"checkbox"===Et||"radio"===Et}var Gt=Qe("onInput",Mn),ft=Qe(["onClick","onChange"],Mn);function nn(Et){Et.stopPropagation()}function Mn(Et,en){var Dn=Et.type,Zn=Et.value,gi=Et.checked,mi=Et.multiple,ut=Et.defaultValue,Yt=!m(Zn);Dn&&Dn!==en.type&&en.setAttribute("type",Dn),!m(mi)&&mi!==en.multiple&&(en.multiple=mi),!m(ut)&&!Yt&&(en.defaultValue=ut+""),yt(Dn)?(Yt&&(en.value=Zn),m(gi)||(en.checked=gi)):Yt&&en.value!==Zn?(en.defaultValue=Zn,en.value=Zn):m(gi)||(en.checked=gi)}function On(Et,en){if("option"===Et.type)!function ji(Et,en){var Dn=Et.props||B,Zn=Et.dom;Zn.value=Dn.value,Dn.value===en||S(en)&&-1!==en.indexOf(Dn.value)?Zn.selected=!0:(!m(en)||!m(Dn.selected))&&(Zn.selected=Dn.selected||!1)}(Et,en);else{var Dn=Et.children,Zn=Et.flags;if(4&Zn)On(Dn.$LI,en);else if(8&Zn)On(Dn,en);else if(2===Et.childFlags)On(Dn,en);else if(12&Et.childFlags)for(var gi=0,mi=Dn.length;gi<mi;++gi)On(Dn[gi],en)}}nn.wrapped=!0;var Mi=Qe("onChange",Co);function Co(Et,en,Dn,Zn){var gi=!!Et.multiple;!m(Et.multiple)&&gi!==en.multiple&&(en.multiple=gi);var mi=Et.selectedIndex;if(-1===mi&&(en.selectedIndex=-1),1!==Zn.childFlags){var Yt=Et.value;(function k(Et){return"number"==typeof Et})(mi)&&mi>-1&&en.options[mi]&&(Yt=en.options[mi].value),Dn&&m(Yt)&&(Yt=Et.defaultValue),On(Zn,Yt)}}var ti=Qe("onInput",Rt),Qn=Qe("onChange");function Rt(Et,en,Dn){var Zn=Et.value,gi=en.value;if(m(Zn)){if(Dn){var mi=Et.defaultValue;!m(mi)&&mi!==gi&&(en.defaultValue=mi,en.value=mi)}}else gi!==Zn&&(en.defaultValue=Zn,en.value=Zn)}function Jt(Et,en,Dn,Zn,gi,mi){64&Et?Mn(Zn,Dn):256&Et?Co(Zn,Dn,gi,en):128&Et&&Rt(Zn,Dn,gi),mi&&(Dn.$V=en)}function Jn(Et){return Et.type&&yt(Et.type)?!m(Et.checked):!m(Et.value)}function Ii(){return{current:null}}function pi(Et){Et&&!ce(Et,null)&&Et.current&&(Et.current=null)}function Wo(Et,en,Dn){Et&&(C(Et)||void 0!==Et.current)&&Dn.push(function(){!ce(Et,en)&&void 0!==Et.current&&(Et.current=en)})}function To(Et,en){hs(Et),L(Et,en)}function hs(Et){var Zn,en=Et.flags,Dn=Et.children;if(481&en){var gi=Et.props;pi(Zn=Et.ref);var mi=Et.childFlags;if(!w(gi))for(var ut=Object.keys(gi),Yt=0,Dt=ut.length;Yt<Dt;Yt++){var mn=ut[Yt];We[mn]&&Ve(mn,Et.dom)}12&mi?Ps(Dn):2===mi&&hs(Dn)}else Dn&&(4&en?(C(Dn.componentWillUnmount)&&Dn.componentWillUnmount(),pi(Et.ref),Dn.$UN=!0,hs(Dn.$LI)):8&en?(!m(Zn=Et.ref)&&C(Zn.onComponentWillUnmount)&&Zn.onComponentWillUnmount(R(Et,!0),Et.props||B),hs(Dn)):1024&en?To(Dn,Et.ref):8192&en&&12&Et.childFlags&&Ps(Dn))}function Ps(Et){for(var en=0,Dn=Et.length;en<Dn;++en)hs(Et[en])}function ls(Et){Et.textContent=""}function Hs(Et,en,Dn){Ps(Dn),8192&en.flags?L(en,Et):ls(Et)}function Fn(Et,en,Dn,Zn,gi,mi,ut){switch(Et){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":Zn.autofocus=!!Dn;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":Zn[Et]=!!Dn;break;case"defaultChecked":case"value":case"volume":if(mi&&"value"===Et)break;var Yt=m(Dn)?"":Dn;Zn[Et]!==Yt&&(Zn[Et]=Yt);break;case"style":!function cs(Et,en,Dn){if(m(en))Dn.removeAttribute("style");else{var gi,mi,Zn=Dn.style;if(e(en))Zn.cssText=en;else if(m(Et)||e(Et))for(gi in en)Zn.setProperty(gi,mi=en[gi]);else{for(gi in en)(mi=en[gi])!==Et[gi]&&Zn.setProperty(gi,mi);for(gi in Et)m(en[gi])&&Zn.removeProperty(gi)}}}(en,Dn,Zn);break;case"dangerouslySetInnerHTML":!function bs(Et,en,Dn,Zn){var mi=en&&en.__html||"";(Et&&Et.__html||"")!==mi&&!m(mi)&&!function Ne(Et,en){var Dn=document.createElement("i");return Dn.innerHTML=en,Dn.innerHTML===Et.innerHTML}(Zn,mi)&&(w(Dn)||(12&Dn.childFlags?Ps(Dn.children):2===Dn.childFlags&&hs(Dn.children),Dn.children=null,Dn.childFlags=1),Zn.innerHTML=mi)}(en,Dn,ut,Zn);break;default:We[Et]?function tt(Et,en,Dn,Zn){if(C(Dn))Ue(Et,Zn)[Et]=Dn;else if(b(Dn)){if(re(en,Dn))return;Ue(Et,Zn)[Et]=Dn}else Ve(Et,Zn)}(Et,en,Dn,Zn):111===Et.charCodeAt(0)&&110===Et.charCodeAt(1)?function qo(Et,en,Dn,Zn){if(b(Dn)){if(re(en,Dn))return;Dn=function ss(Et){var en=Et.event;return function(Dn){en(Et.data,Dn)}}(Dn)}Ct(Zn,F(Et),Dn)}(Et,en,Dn,Zn):m(Dn)?Zn.removeAttribute(Et):gi&&Be[Et]?Zn.setAttributeNS(Be[Et],Et,Dn):Zn.setAttribute(Et,Dn)}}function li(Et,en,Dn,Zn,gi){var mi=!1,ut=(448&en)>0;for(var Yt in ut&&(mi=Jn(Dn))&&function Pn(Et,en,Dn){64&Et?function rn(Et,en){yt(en.type)?(Ct(Et,"change",ft),Ct(Et,"click",nn)):Ct(Et,"input",Gt)}(en,Dn):256&Et?function Vo(Et){Ct(Et,"change",Mi)}(en):128&Et&&function ei(Et,en){Ct(Et,"input",ti),en.onChange&&Ct(Et,"change",Qn)}(en,Dn)}(en,Zn,Dn),Dn)Fn(Yt,null,Dn[Yt],Zn,gi,mi,null);ut&&Jt(en,Et,Zn,Dn,!0,mi)}function si(Et,en,Dn){var Zn=Ee(Et.render(en,Et.state,Dn)),gi=Dn;return C(Et.getChildContext)&&(gi=v(Dn,Et.getChildContext())),Et.$CX=gi,Zn}function Ni(Et,en,Dn,Zn,gi,mi){var ut=new en(Dn,Zn),Yt=ut.$N=!(!en.getDerivedStateFromProps&&!ut.getSnapshotBeforeUpdate);if(ut.$SVG=gi,ut.$L=mi,Et.children=ut,ut.$BS=!1,ut.context=Zn,ut.props===B&&(ut.props=Dn),Yt)ut.state=Q(ut,Dn,ut.state);else if(C(ut.componentWillMount)){ut.$BR=!0,ut.componentWillMount();var Dt=ut.$PS;if(!w(Dt)){var mn=ut.state;if(w(mn))ut.state=Dt;else for(var Yn in Dt)mn[Yn]=Dt[Yn];ut.$PS=null}ut.$BR=!1}return ut.$LI=si(ut,Dn,Zn),ut}function Yi(Et,en){var Dn=Et.props||B;return 32768&Et.flags?Et.type.render(Dn,Et.ref,en):Et.type(Dn,en)}function Sn(Et,en,Dn,Zn,gi,mi){var ut=Et.flags|=16384;481&ut?dn(Et,en,Dn,Zn,gi,mi):4&ut?function Ot(Et,en,Dn,Zn,gi,mi){var ut=Ni(Et,Et.type,Et.props||B,Dn,Zn,mi);Sn(ut.$LI,en,ut.$CX,Zn,gi,mi),Bi(Et.ref,ut,mi)}(Et,en,Dn,Zn,gi,mi):8&ut?(function Tn(Et,en,Dn,Zn,gi,mi){Sn(Et.children=Ee(Yi(Et,Dn)),en,Dn,Zn,gi,mi)}(Et,en,Dn,Zn,gi,mi),ro(Et,mi)):512&ut||16&ut?Pt(Et,en,gi):8192&ut?function It(Et,en,Dn,Zn,gi,mi){var ut=Et.children,Yt=Et.childFlags;12&Yt&&0===ut.length&&(Yt=Et.childFlags=2,ut=Et.children=ke()),2===Yt?Sn(ut,Dn,en,Zn,gi,mi):jt(ut,Dn,en,Zn,gi,mi)}(Et,Dn,en,Zn,gi,mi):1024&ut&&function ri(Et,en,Dn,Zn,gi){Sn(Et.children,Et.ref,en,!1,null,gi);var mi=ke();Pt(mi,Dn,Zn),Et.dom=mi.dom}(Et,Dn,en,gi,mi)}function Pt(Et,en,Dn){var Zn=Et.dom=document.createTextNode(Et.children);w(en)||U(en,Zn,Dn)}function dn(Et,en,Dn,Zn,gi,mi){var ut=Et.flags,Yt=Et.props,Dt=Et.className,mn=Et.childFlags,Yn=Et.dom=function Z(Et,en){return en?document.createElementNS("http://www.w3.org/2000/svg",Et):document.createElement(Et)}(Et.type,Zn=Zn||(32&ut)>0),xi=Et.children;if(!m(Dt)&&""!==Dt&&(Zn?Yn.setAttribute("class",Dt):Yn.className=Dt),16===mn)ee(Yn,xi);else if(1!==mn){var Ki=Zn&&"foreignObject"!==Et.type;2===mn?(16384&xi.flags&&(Et.children=xi=_e(xi)),Sn(xi,Yn,Dn,Ki,null,mi)):(8===mn||4===mn)&&jt(xi,Yn,Dn,Ki,null,mi)}w(en)||U(en,Yn,gi),w(Yt)||li(Et,ut,Yt,Yn,Zn),Wo(Et.ref,Yn,mi)}function jt(Et,en,Dn,Zn,gi,mi){for(var ut=0;ut<Et.length;++ut){var Yt=Et[ut];16384&Yt.flags&&(Et[ut]=Yt=_e(Yt)),Sn(Yt,en,Dn,Zn,gi,mi)}}function Bi(Et,en,Dn){Wo(Et,en,Dn),C(en.componentDidMount)&&Dn.push(function ni(Et){return function(){Et.componentDidMount()}}(en))}function ro(Et,en){var Dn=Et.ref;m(Dn)||(ce(Dn.onComponentWillMount,Et.props||B),C(Dn.onComponentDidMount)&&en.push(function Zi(Et,en){return function(){Et.onComponentDidMount(R(en,!0),en.props||B)}}(Dn,Et)))}function ho(Et,en,Dn,Zn,gi,mi,ut){var Yt=en.flags|=16384;Et.flags!==Yt||Et.type!==en.type||Et.key!==en.key||2048&Yt?16384&Et.flags?function mo(Et,en,Dn,Zn,gi,mi){hs(Et),en.flags&Et.flags&2033?(Sn(en,null,Zn,gi,null,mi),function A(Et,en,Dn){Et.replaceChild(en,Dn)}(Dn,en.dom,Et.dom)):(Sn(en,Dn,Zn,gi,R(Et,!0),mi),L(Et,Dn))}(Et,en,Dn,Zn,gi,ut):Sn(en,Dn,Zn,gi,mi,ut):481&Yt?function $i(Et,en,Dn,Zn,gi,mi){var xi,ut=en.dom=Et.dom,Yt=Et.props,Dt=en.props,mn=!1,Yn=!1;if(Zn=Zn||(32&gi)>0,Yt!==Dt){var Ki=Yt||B;if((xi=Dt||B)!==B)for(var Ro in(mn=(448&gi)>0)&&(Yn=Jn(xi)),xi){var yo=Ki[Ro],ko=xi[Ro];yo!==ko&&Fn(Ro,yo,ko,ut,Zn,Yn,Et)}if(Ki!==B)for(var Ho in Ki)m(xi[Ho])&&!m(Ki[Ho])&&Fn(Ho,Ki[Ho],null,ut,Zn,Yn,Et)}var ms=en.children,ds=en.className;Et.className!==ds&&(m(ds)?ut.removeAttribute("class"):Zn?ut.setAttribute("class",ds):ut.className=ds),4096&gi?function Qt(Et,en){Et.textContent!==en&&(Et.textContent=en)}(ut,ms):_o(Et.childFlags,en.childFlags,Et.children,ms,ut,Dn,Zn&&"foreignObject"!==en.type,null,Et,mi),mn&&Jt(gi,en,ut,xi,!1,Yn);var Bo=en.ref,ws=Et.ref;ws!==Bo&&(pi(ws),Wo(Bo,ut,mi))}(Et,en,Zn,gi,Yt,ut):4&Yt?function xn(Et,en,Dn,Zn,gi,mi,ut){var Yt=en.children=Et.children;if(!w(Yt)){Yt.$L=ut;var Dt=en.props||B,mn=en.ref,Yn=Et.ref,xi=Yt.state;if(!Yt.$N){if(C(Yt.componentWillReceiveProps)){if(Yt.$BR=!0,Yt.componentWillReceiveProps(Dt,Zn),Yt.$UN)return;Yt.$BR=!1}w(Yt.$PS)||(xi=v(xi,Yt.$PS),Yt.$PS=null)}gs(Yt,xi,Dt,Dn,Zn,gi,!1,mi,ut),Yn!==mn&&(pi(Yn),Wo(mn,Yt,ut))}}(Et,en,Dn,Zn,gi,mi,ut):8&Yt?function Bn(Et,en,Dn,Zn,gi,mi,ut){var Yt=!0,Dt=en.props||B,mn=en.ref,Yn=Et.props,xi=!m(mn),Ki=Et.children;if(xi&&C(mn.onComponentShouldUpdate)&&(Yt=mn.onComponentShouldUpdate(Yn,Dt)),!1!==Yt){xi&&C(mn.onComponentWillUpdate)&&mn.onComponentWillUpdate(Yn,Dt);var Ro=Ee(Yi(en,Zn));ho(Ki,Ro,Dn,Zn,gi,mi,ut),en.children=Ro,xi&&C(mn.onComponentDidUpdate)&&mn.onComponentDidUpdate(Yn,Dt)}else en.children=Ki}(Et,en,Dn,Zn,gi,mi,ut):16&Yt?function Gn(Et,en){var Dn=en.children,Zn=en.dom=Et.dom;Dn!==Et.children&&(Zn.nodeValue=Dn)}(Et,en):512&Yt?en.dom=Et.dom:8192&Yt?function jn(Et,en,Dn,Zn,gi,mi){var ut=Et.children,Yt=en.children,Dt=Et.childFlags,mn=en.childFlags,Yn=null;12&mn&&0===Yt.length&&(mn=en.childFlags=2,Yt=en.children=ke());var xi=!!(2&mn);if(12&Dt){var Ki=ut.length;(8&Dt&&8&mn||xi||!xi&&Yt.length>Ki)&&(Yn=R(ut[Ki-1],!1).nextSibling)}_o(Dt,mn,ut,Yt,Dn,Zn,gi,Yn,Et,mi)}(Et,en,Dn,Zn,gi,ut):function ai(Et,en,Dn,Zn){var gi=Et.ref,mi=en.ref,ut=en.children;if(_o(Et.childFlags,en.childFlags,Et.children,ut,gi,Dn,!1,null,Et,Zn),en.dom=Et.dom,gi!==mi&&!T(ut)){var Yt=ut.dom;M(gi,Yt),X(mi,Yt)}}(Et,en,Zn,ut)}function _o(Et,en,Dn,Zn,gi,mi,ut,Yt,Dt,mn){switch(Et){case 2:switch(en){case 2:ho(Dn,Zn,gi,mi,ut,Yt,mn);break;case 1:To(Dn,gi);break;case 16:hs(Dn),ee(gi,Zn);break;default:!function zi(Et,en,Dn,Zn,gi,mi){hs(Et),jt(en,Dn,Zn,gi,R(Et,!0),mi),L(Et,Dn)}(Dn,Zn,gi,mi,ut,mn)}break;case 1:switch(en){case 2:Sn(Zn,gi,mi,ut,Yt,mn);break;case 1:break;case 16:ee(gi,Zn);break;default:jt(Zn,gi,mi,ut,Yt,mn)}break;case 16:switch(en){case 16:!function St(Et,en,Dn){Et!==en&&(""!==Et?Dn.firstChild.nodeValue=en:ee(Dn,en))}(Dn,Zn,gi);break;case 2:ls(gi),Sn(Zn,gi,mi,ut,Yt,mn);break;case 1:ls(gi);break;default:ls(gi),jt(Zn,gi,mi,ut,Yt,mn)}break;default:switch(en){case 16:Ps(Dn),ee(gi,Zn);break;case 2:Hs(gi,Dt,Dn),Sn(Zn,gi,mi,ut,Yt,mn);break;case 1:Hs(gi,Dt,Dn);break;default:var Yn=0|Dn.length,xi=0|Zn.length;0===Yn?xi>0&&jt(Zn,gi,mi,ut,Yt,mn):0===xi?Hs(gi,Dt,Dn):8===en&&8===Et?function Xi(Et,en,Dn,Zn,gi,mi,ut,Yt,Dt,mn){var ko,Ho,Yn=mi-1,xi=ut-1,Ki=0,Ro=Et[Ki],yo=en[Ki];e:{for(;Ro.key===yo.key;){if(16384&yo.flags&&(en[Ki]=yo=_e(yo)),ho(Ro,yo,Dn,Zn,gi,Yt,mn),Et[Ki]=yo,++Ki>Yn||Ki>xi)break e;Ro=Et[Ki],yo=en[Ki]}for(Ro=Et[Yn],yo=en[xi];Ro.key===yo.key;){if(16384&yo.flags&&(en[xi]=yo=_e(yo)),ho(Ro,yo,Dn,Zn,gi,Yt,mn),Et[Yn]=yo,xi--,Ki>--Yn||Ki>xi)break e;Ro=Et[Yn],yo=en[xi]}}if(Ki>Yn){if(Ki<=xi)for(Ho=(ko=xi+1)<ut?R(en[ko],!0):Yt;Ki<=xi;)16384&(yo=en[Ki]).flags&&(en[Ki]=yo=_e(yo)),++Ki,Sn(yo,Dn,Zn,gi,Ho,mn)}else if(Ki>xi)for(;Ki<=Yn;)To(Et[Ki++],Dn);else!function Oo(Et,en,Dn,Zn,gi,mi,ut,Yt,Dt,mn,Yn,xi,Ki){var Ro,yo,ko,Ho=0,ms=Yt,ds=Yt,Bo=mi-Yt+1,ws=ut-Yt+1,Ys=new Int32Array(ws+1),Us=Bo===Zn,Qs=!1,nr=0,gn=0;if(gi<4||(Bo|ws)<32)for(Ho=ms;Ho<=mi;++Ho)if(Ro=Et[Ho],gn<ws){for(Yt=ds;Yt<=ut;Yt++)if(Ro.key===(yo=en[Yt]).key){if(Ys[Yt-ds]=Ho+1,Us)for(Us=!1;ms<Ho;)To(Et[ms++],Dt);nr>Yt?Qs=!0:nr=Yt,16384&yo.flags&&(en[Yt]=yo=_e(yo)),ho(Ro,yo,Dt,Dn,mn,Yn,Ki),++gn;break}!Us&&Yt>ut&&To(Ro,Dt)}else Us||To(Ro,Dt);else{var Xt={};for(Ho=ds;Ho<=ut;++Ho)Xt[en[Ho].key]=Ho;for(Ho=ms;Ho<=mi;++Ho)if(Ro=Et[Ho],gn<ws)if(void 0!==(Yt=Xt[Ro.key])){if(Us)for(Us=!1;Ho>ms;)To(Et[ms++],Dt);Ys[Yt-ds]=Ho+1,nr>Yt?Qs=!0:nr=Yt,16384&(yo=en[Yt]).flags&&(en[Yt]=yo=_e(yo)),ho(Ro,yo,Dt,Dn,mn,Yn,Ki),++gn}else Us||To(Ro,Dt);else Us||To(Ro,Dt)}if(Us)Hs(Dt,xi,Et),jt(en,Dt,Dn,mn,Yn,Ki);else if(Qs){var hn=function zt(Et){var en=0,Dn=0,Zn=0,gi=0,mi=0,ut=0,Yt=0,Dt=Et.length;for(Dt>fs&&(fs=Dt,Fo=new Int32Array(Dt),Vs=new Int32Array(Dt));Dn<Dt;++Dn)if(0!==(en=Et[Dn])){if(Et[Zn=Fo[gi]]<en){Vs[Dn]=Zn,Fo[++gi]=Dn;continue}for(mi=0,ut=gi;mi<ut;)Et[Fo[Yt=mi+ut>>1]]<en?mi=Yt+1:ut=Yt;en<Et[Fo[mi]]&&(mi>0&&(Vs[Dn]=Fo[mi-1]),Fo[mi]=Dn)}mi=gi+1;var mn=new Int32Array(mi);for(ut=Fo[mi-1];mi-- >0;)mn[mi]=ut,ut=Vs[ut],Fo[mi]=0;return mn}(Ys);for(Yt=hn.length-1,Ho=ws-1;Ho>=0;Ho--)0===Ys[Ho]?(16384&(yo=en[nr=Ho+ds]).flags&&(en[nr]=yo=_e(yo)),Sn(yo,Dt,Dn,mn,(ko=nr+1)<gi?R(en[ko],!0):Yn,Ki)):Yt<0||Ho!==hn[Yt]?G(yo=en[nr=Ho+ds],Dt,(ko=nr+1)<gi?R(en[ko],!0):Yn):Yt--}else if(gn!==ws)for(Ho=ws-1;Ho>=0;Ho--)0===Ys[Ho]&&(16384&(yo=en[nr=Ho+ds]).flags&&(en[nr]=yo=_e(yo)),Sn(yo,Dt,Dn,mn,(ko=nr+1)<gi?R(en[ko],!0):Yn,Ki))}(Et,en,Zn,mi,ut,Yn,xi,Ki,Dn,gi,Yt,Dt,mn)}(Dn,Zn,gi,mi,ut,Yn,xi,Yt,Dt,mn):function Ri(Et,en,Dn,Zn,gi,mi,ut,Yt,Dt){for(var xi,Ki,mn=mi>ut?ut:mi,Yn=0;Yn<mn;++Yn)Ki=Et[Yn],16384&(xi=en[Yn]).flags&&(xi=en[Yn]=_e(xi)),ho(Ki,xi,Dn,Zn,gi,Yt,Dt),Et[Yn]=xi;if(mi<ut)for(Yn=mn;Yn<ut;++Yn)16384&(xi=en[Yn]).flags&&(xi=en[Yn]=_e(xi)),Sn(xi,Dn,Zn,gi,Yt,Dt);else if(mi>ut)for(Yn=mn;Yn<mi;++Yn)To(Et[Yn],Dn)}(Dn,Zn,gi,mi,ut,Yn,xi,Yt,mn)}}}function gs(Et,en,Dn,Zn,gi,mi,ut,Yt,Dt){var mn=Et.state,Yn=Et.props,xi=!!Et.$N,Ki=C(Et.shouldComponentUpdate);if(xi&&(en=Q(Et,Dn,en!==mn?v(mn,en):en)),ut||!Ki||Ki&&Et.shouldComponentUpdate(Dn,en,gi)){!xi&&C(Et.componentWillUpdate)&&Et.componentWillUpdate(Dn,en,gi),Et.props=Dn,Et.state=en,Et.context=gi;var Ro=null,yo=si(Et,Dn,gi);xi&&C(Et.getSnapshotBeforeUpdate)&&(Ro=Et.getSnapshotBeforeUpdate(Yn,mn)),ho(Et.$LI,yo,Zn,Et.$CX,mi,Yt,Dt),Et.$LI=yo,C(Et.componentDidUpdate)&&function $o(Et,en,Dn,Zn,gi){gi.push(function(){Et.componentDidUpdate(en,Dn,Zn)})}(Et,Yn,mn,Ro,Dt)}else Et.props=Dn,Et.state=en,Et.context=gi}var Fo,Vs,fs=0;function An(Et,en,Dn,Zn){void 0===Dn&&(Dn=null),void 0===Zn&&(Zn=B),function pn(Et,en,Dn,Zn){var gi=[],mi=en.$V;z.v=!0,m(mi)?m(Et)||(16384&Et.flags&&(Et=_e(Et)),Sn(Et,en,Zn,!1,null,gi),en.$V=Et,mi=Et):m(Et)?(To(mi,en),en.$V=null):(16384&Et.flags&&(Et=_e(Et)),ho(mi,Et,en,Zn,!1,null,gi),mi=en.$V=Et),H(gi),z.v=!1,C(Dn)&&Dn(),C(K.renderComplete)&&K.renderComplete(mi,en)}(Et,en,Dn,Zn)}typeof document<"u"&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var qi=[],So=typeof Promise<"u"?Promise.resolve().then.bind(Promise.resolve()):function(Et){window.setTimeout(Et,0)},Go=!1;function xs(Et,en,Dn,Zn){var gi=Et.$PS;if(C(en)&&(en=en(gi?v(Et.state,gi):Et.state,Et.props,Et.context)),m(gi))Et.$PS=en;else for(var mi in en)gi[mi]=en[mi];if(Et.$BR)C(Dn)&&Et.$L.push(Dn.bind(Et));else{if(!z.v&&0===qi.length)return _s(Et,Zn),void(C(Dn)&&Dn.call(Et));if(-1===qi.indexOf(Et)&&qi.push(Et),Zn&&(Et.$F=!0),Go||(Go=!0,So(ks)),C(Dn)){var ut=Et.$QU;ut||(ut=Et.$QU=[]),ut.push(Dn)}}}function Rs(Et){for(var en=Et.$QU,Dn=0;Dn<en.length;++Dn)en[Dn].call(Et);Et.$QU=null}function ks(){var Et;for(Go=!1;Et=qi.shift();)if(!Et.$UN){var en=Et.$F;Et.$F=!1,_s(Et,en),Et.$QU&&Rs(Et)}}function _s(Et,en){if(en||!Et.$BR){var Dn=Et.$PS;Et.$PS=null;var Zn=[];z.v=!0,gs(Et,v(Et.state,Dn),Et.props,R(Et.$LI,!0).parentNode,Et.context,Et.$SVG,en,null,Zn),H(Zn),z.v=!1}else Et.state=Et.$PS,Et.$PS=null}var Bs=function(en,Dn){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=en||B,this.context=Dn||B};Bs.prototype.forceUpdate=function(en){this.$UN||xs(this,{},en,!0)},Bs.prototype.setState=function(en,Dn){this.$UN||this.$BS||xs(this,en,Dn,!1)},Bs.prototype.render=function(en,Dn,Zn){return null}},5335:(En,it,p)=>{"use strict";p.d(it,{Kl:()=>U,Rc:()=>j,Xp:()=>Z,ho:()=>J,mm:()=>B,uK:()=>b});var S=p(5737),d=p(9144),m=p(1113),T=p(6569),C=p(1614),e=p(2660),k=p(2440),w=p(3090),P=p(1830),v=p(9916);const x=["items"],b="canceled",B=R=>"pending"===R.state(),j=R=>{switch(R.length){case 0:return;case 1:return R[0]}return[].slice.call(R)},X=(R,L,G)=>Array.isArray(R)?L?((R,L,G)=>(0,e.Tj)(R,Q=>{const z=(0,d.A)(Q,x);return(0,S.A)({},z,{items:X(Q.items,L-1,G)})}))(R,L,G):(0,e.Tj)(R,G):R,U=(R,L,G)=>{const Q=G?(0,v.st)(G).length:0;return X(R,Q,L)},Z=(R,L)=>{var G;return null!==(G=R)&&void 0!==G&&G.data&&(L=R,R=R.data),Array.isArray(R)||(R=[R]),{data:R,extra:L}},A=R=>{const L={};return(0,e.__)(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){L[this]=R[this],delete R[this]}),new k.A(L)},H=(R,L)=>new k.A({load:()=>m.A.sendRequest({url:R,dataType:"json"}),loadMode:L?.fromUrlLoadMode}),J=(R,L)=>{let G;return"string"==typeof R&&(R={paginate:!1,store:H(R,L)}),void 0===R&&(R=[]),void 0===(R=Array.isArray(R)||R instanceof T.A?{store:R}:(0,w.X)({},R)).store&&(R.store=[]),G=R.store,"load"in R?G=A(R):Array.isArray(G)?G=new C.A(G):(0,P.Qd)(G)&&(G=(R=>{const L=R.type;return delete R.type,T.A.create(L,R)})((0,w.X)({},G))),R.store=G,R}},5340:(En,it,p)=>{"use strict";p.d(it,{A:()=>T});var S=p(3746),d=p(656),m=p(65);let T=(()=>{var C;class e{constructor(w,P){this.http=w,this.scopeService=P,this.scope=P.getScope()}createOneToOneChat(w){return this.http.post(`${this.scope.apiEndpoint}chatRooms`,{users:[{userGuid:w.toString(),isAdmin:!0}],type:"Private",isNetworkWide:!1})}getRoom(w){return this.http.get(`${this.scope.apiEndpoint}chatRoomsFast/getById/${w.toString()}`)}delete(w){return this.http.delete(`${this.scope.apiEndpoint}chatRooms/${w}`)}createGroupChat(w){return this.http.post(`${this.scope.apiEndpoint}chatRooms`,w)}joinSubscription(w){return this.http.post(`${this.scope.apiEndpoint}chatRooms/${w}/join`,null)}put(w,P){return this.http.put(`${this.scope.apiEndpoint}chatRooms/${w}`,P)}updateImage(w,P){return this.http.post(`${this.scope.apiEndpoint}chatRooms/${w}/UpdateImage/${P}`,null)}static#e=C=()=>(this.\u0275fac=function(P){return new(P||e)(d.KVO(m.Qq),d.KVO(S.A))},this.\u0275prov=d.jDH({token:e,factory:e.\u0275fac}))}return C(),e})()},5345:(En,it,p)=>{"use strict";p.d(it,{$z:()=>v,BO:()=>C,Gn:()=>e,Il:()=>P,R3:()=>w,_N:()=>k});var S=p(1830),d=p(6509),m=p(3686);function T(x){return x.reduce((b,B)=>{const j=(b.get(B)??0)+1;return b.set(B,j),b},new Map)}const C=function(x){return Array.isArray(x)?x:[x]},e=function(x){return[...new Set(x)]},k=function(x,b){const B=T(b);return x.filter(j=>{const F=B.get(j);return F&&B.set(j,F-1),F})},w=function(){let x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const B=T(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]);return x.filter(j=>{const F=B.get(j);return F&&B.set(j,F-1),!F})},P=function(x,b,B,j){const F={},{useLegacyVisibleIndex:X}=(0,m.A)();let U=0;const Z=A=>!(0,S.O9)(A[b])&&(!j||j(A));x.forEach(A=>{const M=A[b];M>=0?(F[M]=F[M]||[],A===B?F[M].unshift(A):F[M].push(A)):A[b]=void 0}),X||x.forEach(A=>{if(Z(A)){for(;F[U];)U++;F[U]=[A],U++}}),U=0,(0,d.ap)(F,function(A,M){M.forEach(H=>{A>=0&&(H[b]=U++)})}),X&&x.forEach(A=>{Z(A)&&(A[b]=U++)})},v=(x,b)=>x.reduce((B,j)=>{const F=b(j);return B[F]=B[F]??[],B[F].push(j),B},{})},5397:(En,it,p)=>{"use strict";p.d(it,{Gf:()=>X,jf:()=>F,p:()=>x,z:()=>b});var S=p(6054),d=p(4072),m=p(8167);const T=new WeakMap;let C;const e=new m.A;let k=function(){};function x(){return C.data.apply(this,arguments)}function b(U){k=U}function F(U,Z){return C.removeData.call(this,U,Z)}function X(U,Z){if(!S.A.isElementNode(U))return;const A=U.getElementsByTagName("*");C.cleanData(A),Z&&C.cleanData([U])}!function(U){e.fire(U),C=U;const Z=C.cleanData;C.cleanData=function(A){k(A);return Z.call(this,A)}}({data:function(){const U=arguments[0],Z=arguments[1],A=arguments[2];if(!U)return;let M=T.get(U);return M||(M={},T.set(U,M)),void 0===Z?M:2===arguments.length?M[Z]:(M[Z]=A,A)},removeData:function(U,Z){if(U)if(void 0===Z)T.delete(U);else{const A=T.get(U);A&&delete A[Z]}},cleanData:function(U){for(let Z=0;Z<U.length;Z++)d.A.off(U[Z]),T.delete(U[Z])}})},5417:(En,it,p)=>{"use strict";p.d(it,{A:()=>x,g:()=>P});var S=p(6870),d=p(2123),m=p(5704),T=p(3090),C=p(1830),e=p(6110),k=p(7358);const w=(0,e.zk)(),P={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},v={h:0,v:0};class x{constructor(B){let{position:j,container:F,visualContainer:X,$root:U,$content:Z,$wrapper:A,onPositioned:M,onVisualPositionChanged:H,restorePosition:J,_fixWrapperPosition:R,_skipContentPositioning:L}=B;this._props={position:j,container:F,visualContainer:X,restorePosition:J,onPositioned:M,onVisualPositionChanged:H,_fixWrapperPosition:R,_skipContentPositioning:L},this._$root=U,this._$content=Z,this._$wrapper=A,this._$markupContainer=void 0,this._$visualContainer=void 0,this._shouldRenderContentInitialPosition=!0,this._visualPosition=void 0,this._initialPosition=void 0,this._previousVisualPosition=void 0,this.updateContainer(F),this.updatePosition(j),this.updateVisualContainer(X)}get $container(){return this.updateContainer(),this._$markupContainer}get $visualContainer(){return this._$visualContainer}get position(){return this._position}set fixWrapperPosition(B){this._props._fixWrapperPosition=B,this.styleWrapperPosition()}set restorePosition(B){this._props.restorePosition=B}restorePositionOnNextRender(B){this._shouldRenderContentInitialPosition=B||!this._visualPosition}openingHandled(){this.restorePositionOnNextRender(this._props.restorePosition)}updatePosition(B){this._props.position=B,this._position=this._normalizePosition(B),this.updateVisualContainer()}updateContainer(){let B=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.container;this._props.container=B,this._$markupContainer=B?(0,m.A)(B):k.A.getSwatchContainer(this._$root),this.updateVisualContainer(this._props.visualContainer)}updateVisualContainer(){this._props.visualContainer=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.visualContainer,this._$visualContainer=this._getVisualContainer()}detectVisualPositionChange(B){this._updateVisualPositionValue(),this._raisePositionedEvents(B)}positionContent(){this._shouldRenderContentInitialPosition?this._renderContentInitialPosition():((0,d.Cy)(this._$content,this._visualPosition),this.detectVisualPositionChange())}positionWrapper(){this._$visualContainer&&S.A.setup(this._$wrapper,{my:"top left",at:"top left",of:this._$visualContainer})}styleWrapperPosition(){const j=(0,C.l6)(this.$visualContainer.get(0))||this._props._fixWrapperPosition?"fixed":"absolute";this._$wrapper.css("position",j)}_updateVisualPositionValue(){this._previousVisualPosition=this._visualPosition,this._visualPosition=(0,d.x5)(this._$content)}_renderContentInitialPosition(){this._renderBoundaryOffset(),(0,d.fw)(this._$content);const B=this._$wrapper.css("overflow");if(this._$wrapper.css("overflow","hidden"),!this._props._skipContentPositioning){const j=S.A.setup(this._$content,this._position);this._initialPosition=j}this._$wrapper.css("overflow",B),this.detectVisualPositionChange()}_raisePositionedEvents(B){const j=this._previousVisualPosition,F=this._visualPosition;(j?.top!==F.top||j?.left!==F.left)&&this._props.onVisualPositionChanged({previousPosition:j,position:F,event:B}),this._props.onPositioned({position:this._initialPosition})}_renderBoundaryOffset(){const B=this._position??{boundaryOffset:v};this._$content.css("margin",`${B.v}px ${B.h}px`)}_getVisualContainer(){var B,j;const F=this._props.container,X=this._props.visualContainer,U=(0,C.xH)(null===(B=this._props.position)||void 0===B?void 0:B.of)?this._props.position.of.target:null===(j=this._props.position)||void 0===j?void 0:j.of;return(0,m.A)(X||F||U||w)}_normalizePosition(B){const j={boundaryOffset:v};return(0,C.O9)(B)?(0,T.X)(!0,{},j,this._positionToObject(B)):j}_positionToObject(B){return(0,C.Kg)(B)?(0,T.X)({},P[B]):B}}},5452:(En,it,p)=>{"use strict";p.d(it,{g:()=>m});var S=p(3746),d=p(656);let m=(()=>{var T;class C{constructor(k){this.scopeService=k,this.chapterChatEnabled=!1,this.networkChatEnabled=!1,this.scope=this.scopeService.getScope(),this.chapterChatEnabled=this.scope.currentChapter.settings.configurations?.chatChapterConfiguration?.ChatEnabled,this.networkChatEnabled=this.scope.network.settings.configurations.enableChat}canLoad(k,w){return this.canUseChat()}canActivateChild(k,w){return this.canUseChat()}canActivate(k,w){return this.canUseChat()}canUseChat(){return this.networkChatEnabled&&this.chapterChatEnabled||(window.location.href="/"),this.networkChatEnabled&&this.chapterChatEnabled}static#e=T=()=>(this.\u0275fac=function(w){return new(w||C)(d.KVO(S.A))},this.\u0275prov=d.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}))}return T(),C})()},5455:(En,it,p)=>{"use strict";p.d(it,{a:()=>ft,R:()=>nn});var S=p(4303),d=p(656),m=p(2392),C=(p(5470),p(5704)),e=p(1363),k=p(8360),w=p(3949),P=p(8073),v=p(5651);const b={_menuEnabled(){return!!this._menuItems().length},_menuItems(){return this._list.option("menuItems")},_deleteEnabled(){return this._list.option("allowItemDeleting")},_fireMenuAction(rn,Mn){this._list._itemEventHandlerByHandler(rn,Mn,{},{excludeValidators:["disabled","readOnly"]})}};var B=p(1605);const j="dx-list-context-menu";(0,B.k)("menu","context",v.A.inherit({_init(){const rn=(0,C.A)("<div>").addClass(j);this._list.$element().append(rn),this._menu=this._renderOverlay(rn)},_renderOverlay(rn){return this._list._createComponent(rn,w.A,{shading:!1,deferRendering:!0,hideOnParentScroll:!0,hideOnOutsideClick:Mn=>!(0,C.A)(Mn.target).closest(`.${j}`).length,animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:function(){return(0,e.P$)(this._$menuList)}.bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},_ignoreFunctionValueDeprecation:!0,height:function(){return this._$menuList?(0,e.P$)(this._$menuList):0}.bind(this),width:function(){return(0,e.Ot)(this._list.$element())}.bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent(rn){const Mn=rn.component.$content(),On=this._menuItems().slice();this._deleteEnabled()&&On.push({text:k.A.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=(0,C.A)("<div>"),this._list._createComponent(this._$menuList,P.i,{items:On,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),Mn.addClass("dx-list-context-menucontent"),Mn.append(this._$menuList)},_menuItemClickHandler(rn){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,rn.itemData.action)},_deleteItem(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu(rn){return this._$itemWithMenu=rn,this._menu.option({position:{my:"top",at:"bottom",of:rn,collision:"flip"}}),this._menu.show(),!0},dispose(){this._menu&&this._menu.$element().remove(),this.callBase.apply(this,arguments)}}).include(b));var X=p(2583),U=p(9012),Z=p(9212),A=p(4859),M=p(4451),H=p(4072),J=p(9209),R=p(9293);const{abstract:L}=v.A,G="dxListEditDecorator",Q=(0,R.b4)(J.A.down,G),z=(0,R.b4)(M.vu,G),ee="dx-list-switchable-delete-ready",Re="dx-list-switchable-menu-item-shield-positioning",Ie=v.A.inherit({_init(){this._$topShield=(0,C.A)("<div>").addClass("dx-list-switchable-delete-top-shield"),this._$bottomShield=(0,C.A)("<div>").addClass("dx-list-switchable-delete-bottom-shield"),this._$itemContentShield=(0,C.A)("<div>").addClass("dx-list-switchable-delete-item-content-shield"),H.A.on(this._$topShield,Q,this._cancelDeleteReadyItem.bind(this)),H.A.on(this._$bottomShield,Q,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete(rn){this._toggleDeleteReady(rn,!1)},_toggleDeleteReady(rn,Mn){void 0===Mn&&(Mn=!this._isReadyToDelete(rn)),this._toggleShields(rn,Mn),this._toggleScrolling(Mn),this._cacheReadyToDeleteItem(rn,Mn),this._animateToggleDelete(rn,Mn)},_isReadyToDelete:rn=>rn.hasClass(ee),_toggleShields(rn,Mn){this._list.$element().toggleClass("dx-list-switchable-menu-shield-positioning",Mn),this._$topShield.toggle(Mn),this._$bottomShield.toggle(Mn),Mn&&this._updateShieldsHeight(rn),this._toggleContentShield(rn,Mn)},_updateShieldsHeight(rn){const Mn=this._list.$element(),On=Mn.offset().top,ji=(0,e.P$)(Mn),Co=rn.offset().top-On,ti=ji-(0,e.P$)(rn)-Co;(0,e.k$)(this._$topShield,Math.max(Co,0)),(0,e.k$)(this._$bottomShield,Math.max(ti,0))},_toggleContentShield(rn,Mn){Mn?rn.find(".dx-list-item-content").first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling(rn){const Mn=this._list.$element().dxScrollView("instance");rn?Mn.on("start",this._cancelScrolling):Mn.off("start",this._cancelScrolling)},_cancelScrolling(rn){rn.event.cancel=!0},_cacheReadyToDeleteItem(rn,Mn){Mn?this._$readyToDeleteItem=rn:delete this._$readyToDeleteItem},_animateToggleDelete(rn,Mn){Mn?(this._enablePositioning(rn),this._prepareDeleteReady(rn),this._animatePrepareDeleteReady(rn),H.A.off(rn,J.A.up)):(this._forgetDeleteReady(rn),this._animateForgetDeleteReady(rn).done(this._disablePositioning.bind(this,rn)))},_enablePositioning(rn){rn.addClass(Re),H.A.on(rn,z,A.lQ),H.A.one(rn,J.A.up,this._disablePositioning.bind(this,rn))},_disablePositioning(rn){rn.removeClass(Re),H.A.off(rn,z)},_prepareDeleteReady(rn){rn.addClass(ee)},_forgetDeleteReady(rn){rn.removeClass(ee)},_animatePrepareDeleteReady:L,_animateForgetDeleteReady:L,_getDeleteButtonContainer(rn){return(rn=rn||this._$readyToDeleteItem).children(".dx-list-switchable-delete-button-container")},_deleteItem(rn){this._getDeleteButtonContainer(rn=rn||this._$readyToDeleteItem).detach(),!rn.is(".dx-state-disabled, .dx-state-disabled *")&&this._list.deleteItem(rn).always(this._cancelDelete.bind(this,rn))},_isRtlEnabled(){return this._list.option("rtlEnabled")},dispose(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}}),Me=Ie.inherit({_init(){this.callBase.apply(this,arguments);const rn=(0,C.A)("<div>").addClass("dx-list-switchable-delete-button-container"),Mn=(0,C.A)("<div>").addClass("dx-list-switchable-delete-button-wrapper"),On=(0,C.A)("<div>").addClass("dx-list-switchable-delete-button-inner-wrapper"),ji=(0,C.A)("<div>").addClass("dx-list-switchable-delete-button");this._list._createComponent(ji,U.A,{text:k.A.format("dxListEditDecorator-delete"),type:"danger",stylingMode:(0,Z.Nt)()?"text":"contained",onClick:function(Mi){this._deleteItem(),Mi.event.stopPropagation()}.bind(this),integrationOptions:{},elementAttr:{role:null,"aria-label":null},tabIndex:-1}),rn.append(Mn),Mn.append(On),On.append(ji),this._$buttonContainer=rn},_enablePositioning(rn){this.callBase.apply(this,arguments),X.A.stop(this._$buttonContainer,!0),this._$buttonContainer.appendTo(rn)},_disablePositioning(){this.callBase.apply(this,arguments),this._$buttonContainer.detach()},_animatePrepareDeleteReady(){const rn=this._isRtlEnabled(),Mn=(0,e.RG)(this._list.$element()),On=this._buttonWidth();return X.A.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:rn?Mn:-On},to:{right:rn?Mn-On:0}})},_animateForgetDeleteReady(){const rn=this._isRtlEnabled(),Mn=(0,e.RG)(this._list.$element()),On=this._buttonWidth();return X.A.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:rn?Mn-On:0},to:{right:rn?Mn:-On}})},_buttonWidth(){return this._buttonContainerWidth||(this._buttonContainerWidth=(0,e.Ot)(this._$buttonContainer)),this._buttonContainerWidth},dispose(){this._$buttonContainer&&this._$buttonContainer.remove(),this.callBase.apply(this,arguments)}});(0,B.k)("delete","toggle",Me.inherit({beforeBag(rn){const{$itemElement:Mn}=rn,{$container:On}=rn,ji=(0,C.A)("<div>").addClass("dx-list-toggle-delete-switch");this._list._createComponent(ji,U.A,{icon:"toggle-delete",onClick:function(Mi){X.A.stop(this._$buttonContainer,!1),this._toggleDeleteReady(Mn),Mi.event.stopPropagation()}.bind(this),integrationOptions:{},elementAttr:{role:null,"aria-label":null},tabIndex:-1}),On.addClass("dx-list-toggle-delete-switch-container"),On.append(ji)}})),(0,B.k)("delete","slideButton",Me.inherit({_shouldHandleSwipe:!0,_swipeEndHandler(rn,Mn){return 0!==Mn.targetOffset&&(X.A.stop(this._$buttonContainer,!1),this._toggleDeleteReady(rn)),!0}}));var de=p(2123),Ae=p(778),pe=p(6362);const Ee="dxListEditDecorator",le=(0,R.b4)(Ae.U,Ee),Ke=(0,R.b4)(M.vu,Ee),Oe="dx-list-slide-menu-content",Ue="dx-list-slide-menu-button";(0,B.k)("menu","slide",Ie.inherit({_shouldHandleSwipe:!0,_init(){this.callBase.apply(this,arguments),this._$buttonsContainer=(0,C.A)("<div>").addClass("dx-list-slide-menu-buttons-container"),H.A.on(this._$buttonsContainer,Ke,A.lQ),this._$buttons=(0,C.A)("<div>").addClass("dx-list-slide-menu-buttons").appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu(){if(!this._menuEnabled())return;const rn=this._menuItems();if(1===rn.length){const Mn=rn[0];this._renderMenuButton(Mn.text,On=>{On.stopPropagation(),this._fireAction(Mn)})}else{const Mn=(0,C.A)("<div>").addClass("dx-list-slide-menu");this._menu=this._list._createComponent(Mn,pe.A,{showTitle:!1,items:rn,onItemClick:function(ji){this._fireAction(ji.itemData)}.bind(this),integrationOptions:{}}),Mn.appendTo(this._list.$element());const On=this._renderMenuButton(k.A.format("dxListEditDecorator-more"),ji=>{ji.stopPropagation(),this._menu.show()});this._menu.option("target",On)}},_renderMenuButton(rn,Mn){const On=(0,C.A)("<div>").addClass(Ue).addClass("dx-list-slide-menu-button-menu").text(rn);return this._$buttons.append(On),H.A.on(On,le,Mn),On},_renderDeleteButton(){if(!this._deleteEnabled())return;const rn=(0,C.A)("<div>").addClass(Ue).addClass("dx-list-slide-menu-button-delete").text((0,Z.Nt)()?"":k.A.format("dxListEditDecorator-delete"));H.A.on(rn,le,Mn=>{Mn.stopPropagation(),this._deleteItem()}),this._$buttons.append(rn)},_fireAction(rn){this._fireMenuAction((0,C.A)(this._cachedNode),rn.action),this._cancelDeleteReadyItem()},modifyElement(rn){this.callBase.apply(this,arguments);const{$itemElement:Mn}=rn;Mn.addClass("dx-list-slide-menu-wrapper");const On=(0,C.A)("<div>").addClass(Oe);Mn.wrapInner(On)},_getDeleteButtonContainer(){return this._$buttonsContainer},handleClick(rn,Mn){return!!(0,C.A)(Mn.target).closest(`.${Oe}`).length&&this.callBase.apply(this,arguments)},_swipeStartHandler(rn){this._enablePositioning(rn),this._cacheItemData(rn),this._setPositions(this._getPositions(0))},_swipeUpdateHandler(rn,Mn){const ji=this._isRtlEnabled()?-1:1,Mi=this._isReadyToDelete(rn);if(this._getCurrentPositions().content===this._getStartPositions().content&&!Mi&&Mn.offset*ji>0)return void(Mn.cancel=!0);const Co=this._cachedItemWidth*Mn.offset,ti=Mi?-this._cachedButtonWidth*ji:0,ei=(Co+ti)*ji<0?Math.abs((Co+ti)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(ei)),!0},_getStartPositions(){const rn=this._isRtlEnabled();return{content:0,buttonsContainer:rn?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*(rn?-1:1)}},_getPositions(rn){const On=this._isRtlEnabled()?-1:1,ji=this._getStartPositions();return{content:ji.content-rn*this._cachedButtonWidth*On,buttonsContainer:ji.buttonsContainer-Math.min(rn,1)*this._cachedButtonWidth*On,buttons:ji.buttons+Math.min(rn,1)*this._cachedButtonWidth*On}},_getCurrentPositions(){return{content:(0,de.x5)(this._$cachedContent).left,buttonsContainer:(0,de.x5)(this._$buttonsContainer).left,buttons:(0,de.x5)(this._$buttons).left}},_setPositions(rn){(0,de.Cy)(this._$cachedContent,{left:rn.content}),(0,de.Cy)(this._$buttonsContainer,{left:rn.buttonsContainer}),(0,de.Cy)(this._$buttons,{left:rn.buttons})},_cacheItemData(rn){rn[0]!==this._cachedNode&&(this._$cachedContent=rn.find(`.${Oe}`),this._cachedItemWidth=(0,e.Ot)(rn),this._cachedButtonWidth=this._cachedButtonWidth||(0,e.Ot)(this._$buttons),(0,e.zj)(this._$buttonsContainer,this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=rn[0]))},_minButtonContainerLeftOffset(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler(rn,Mn){this._cacheItemData(rn);const On=this._isRtlEnabled()?1:-1,ji=this._cachedItemWidth*Mn.offset,Mi=!this._isReadyToDelete(rn)&&ji*On>.2*this._cachedButtonWidth;return this._toggleDeleteReady(rn,Mn.targetOffset===On&&Mi),!0},_enablePositioning(rn){X.A.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(rn)},_disablePositioning(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady(rn){return this._cacheItemData(rn),this._animateToPositions(this._getPositions(0))},_animateToPositions(rn){const Mn=this,On=this._getCurrentPositions(),ji=Math.min(Math.abs(On.content-rn.content)/this._cachedButtonWidth,1);return X.A.animate(this._$cachedContent,{from:On,to:rn,easing:"cubic-bezier(0.075, 0.82, 0.165, 1)",duration:400*ji,strategy:"frame",draw(Mi){Mn._setPositions(Mi)}})},dispose(){this._menu&&this._menu.$element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include(b)),(0,B.k)("delete","static",v.A.inherit({afterBag(rn){const{$itemElement:Mn}=rn,{$container:On}=rn,ji=(0,C.A)("<div>").addClass("dx-list-static-delete-button");this._list._createComponent(ji,U.A,{icon:"remove",onClick:function(Mi){Mi.event.stopPropagation(),this._deleteItem(Mn)}.bind(this),integrationOptions:{},elementAttr:{role:null,"aria-label":null},tabIndex:-1}),On.addClass("dx-list-static-delete-button-container").append(ji)},_deleteItem(rn){rn.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(rn)}}));var et=p(6021);(0,B.k)("delete","swipe",v.A.inherit({_shouldHandleSwipe:!0,_renderItemPosition(rn,Mn,On){const ji=(0,et.cY)(),Mi=Mn*this._itemElementWidth;return On?X.A.animate(rn,{to:{left:Mi},type:"slide",complete(){ji.resolve(rn,Mn)}}):((0,de.Cy)(rn,{left:Mi}),ji.resolve()),ji.promise()},_swipeStartHandler(rn){return this._itemElementWidth=(0,e.RG)(rn),!0},_swipeUpdateHandler(rn,Mn){return this._renderItemPosition(rn,Mn.offset),!0},_swipeEndHandler(rn,Mn){return this._renderItemPosition(rn,Mn.targetOffset,!0).done((ji,Mi)=>{Math.abs(Mi)&&this._list.deleteItem(ji).fail(()=>{this._renderItemPosition(ji,0,!0)})}),!0}}));var ue=p(3090),me=p(3125);const je="dx-list-reorder-handle";(0,B.k)("reorder","default",v.A.inherit({_init(){const rn=this._list;this._groupedEnabled=this._list.option("grouped"),this._lockedDrag=!1;const Mn=this._groupedEnabled?"> .dx-list-items > .dx-list-group > .dx-list-group-body > .dx-list-item":"> .dx-list-items > .dx-list-item";this._sortable=rn._createComponent(rn._scrollView.content(),me.A,(0,ue.X)({component:rn,contentTemplate:null,allowReordering:!1,filter:Mn,container:rn.$element(),dragDirection:rn.option("itemDragging.group")?"both":"vertical",handle:`.${je}`,dragTemplate:this._dragTemplate,onDragStart:this._dragStartHandler.bind(this),onDragChange:this._dragChangeHandler.bind(this),onReorder:this._reorderHandler.bind(this)},rn.option("itemDragging")))},afterRender(){this._sortable.update()},_dragTemplate(rn){const Mn=(0,C.A)(rn.itemElement).clone().addClass("dx-list-item-ghost-reordering").addClass("dx-state-hover");return(0,e.zj)(Mn,(0,e.RG)(rn.itemElement)),Mn},_dragStartHandler(rn){this._lockedDrag&&(rn.cancel=!0)},_dragChangeHandler(rn){this._groupedEnabled&&!this._sameParent(rn.fromIndex,rn.toIndex)&&(rn.cancel=!0)},_sameParent(rn,Mn){const On=this._list.getItemElementByFlatIndex(rn);return this._list.getItemElementByFlatIndex(Mn).parent().get(0)===On.parent().get(0)},_reorderHandler(rn){const Mn=this._list.getItemElementByFlatIndex(rn.toIndex);this._list.reorderItem((0,C.A)(rn.itemElement),Mn)},afterBag(rn){const Mn=(0,C.A)("<div>").addClass(je);H.A.on(Mn,"dxpointerdown",On=>{this._lockedDrag=!(0,R.Er)(On)}),H.A.on(Mn,"dxhold",{timeout:30},On=>{On.cancel=!0,this._lockedDrag=!1}),rn.$container.addClass("dx-list-reorder-handle-container").append(Mn)}})),p(6998);const Ct=m.A;var yt=p(3349),Gt=p(8914);let ft=(()=>{class rn extends yt.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(On){this._setOption("accessKey",On)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(On){this._setOption("activeStateEnabled",On)}get allowItemDeleting(){return this._getOption("allowItemDeleting")}set allowItemDeleting(On){this._setOption("allowItemDeleting",On)}get bounceEnabled(){return this._getOption("bounceEnabled")}set bounceEnabled(On){this._setOption("bounceEnabled",On)}get collapsibleGroups(){return this._getOption("collapsibleGroups")}set collapsibleGroups(On){this._setOption("collapsibleGroups",On)}get dataSource(){return this._getOption("dataSource")}set dataSource(On){this._setOption("dataSource",On)}get disabled(){return this._getOption("disabled")}set disabled(On){this._setOption("disabled",On)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(On){this._setOption("displayExpr",On)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(On){this._setOption("elementAttr",On)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(On){this._setOption("focusStateEnabled",On)}get grouped(){return this._getOption("grouped")}set grouped(On){this._setOption("grouped",On)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(On){this._setOption("groupTemplate",On)}get height(){return this._getOption("height")}set height(On){this._setOption("height",On)}get hint(){return this._getOption("hint")}set hint(On){this._setOption("hint",On)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(On){this._setOption("hoverStateEnabled",On)}get indicateLoading(){return this._getOption("indicateLoading")}set indicateLoading(On){this._setOption("indicateLoading",On)}get itemDeleteMode(){return this._getOption("itemDeleteMode")}set itemDeleteMode(On){this._setOption("itemDeleteMode",On)}get itemDragging(){return this._getOption("itemDragging")}set itemDragging(On){this._setOption("itemDragging",On)}get itemHoldTimeout(){return this._getOption("itemHoldTimeout")}set itemHoldTimeout(On){this._setOption("itemHoldTimeout",On)}get items(){return this._getOption("items")}set items(On){this._setOption("items",On)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(On){this._setOption("itemTemplate",On)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(On){this._setOption("keyExpr",On)}get menuItems(){return this._getOption("menuItems")}set menuItems(On){this._setOption("menuItems",On)}get menuMode(){return this._getOption("menuMode")}set menuMode(On){this._setOption("menuMode",On)}get nextButtonText(){return this._getOption("nextButtonText")}set nextButtonText(On){this._setOption("nextButtonText",On)}get noDataText(){return this._getOption("noDataText")}set noDataText(On){this._setOption("noDataText",On)}get pageLoadingText(){return this._getOption("pageLoadingText")}set pageLoadingText(On){this._setOption("pageLoadingText",On)}get pageLoadMode(){return this._getOption("pageLoadMode")}set pageLoadMode(On){this._setOption("pageLoadMode",On)}get pulledDownText(){return this._getOption("pulledDownText")}set pulledDownText(On){this._setOption("pulledDownText",On)}get pullingDownText(){return this._getOption("pullingDownText")}set pullingDownText(On){this._setOption("pullingDownText",On)}get pullRefreshEnabled(){return this._getOption("pullRefreshEnabled")}set pullRefreshEnabled(On){this._setOption("pullRefreshEnabled",On)}get refreshingText(){return this._getOption("refreshingText")}set refreshingText(On){this._setOption("refreshingText",On)}get repaintChangesOnly(){return this._getOption("repaintChangesOnly")}set repaintChangesOnly(On){this._setOption("repaintChangesOnly",On)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(On){this._setOption("rtlEnabled",On)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(On){this._setOption("scrollByContent",On)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(On){this._setOption("scrollByThumb",On)}get scrollingEnabled(){return this._getOption("scrollingEnabled")}set scrollingEnabled(On){this._setOption("scrollingEnabled",On)}get searchEditorOptions(){return this._getOption("searchEditorOptions")}set searchEditorOptions(On){this._setOption("searchEditorOptions",On)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(On){this._setOption("searchEnabled",On)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(On){this._setOption("searchExpr",On)}get searchMode(){return this._getOption("searchMode")}set searchMode(On){this._setOption("searchMode",On)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(On){this._setOption("searchTimeout",On)}get searchValue(){return this._getOption("searchValue")}set searchValue(On){this._setOption("searchValue",On)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(On){this._setOption("selectAllMode",On)}get selectAllText(){return this._getOption("selectAllText")}set selectAllText(On){this._setOption("selectAllText",On)}get selectByClick(){return this._getOption("selectByClick")}set selectByClick(On){this._setOption("selectByClick",On)}get selectedItemKeys(){return this._getOption("selectedItemKeys")}set selectedItemKeys(On){this._setOption("selectedItemKeys",On)}get selectedItems(){return this._getOption("selectedItems")}set selectedItems(On){this._setOption("selectedItems",On)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(On){this._setOption("selectionMode",On)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(On){this._setOption("showScrollbar",On)}get showSelectionControls(){return this._getOption("showSelectionControls")}set showSelectionControls(On){this._setOption("showSelectionControls",On)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(On){this._setOption("tabIndex",On)}get useNativeScrolling(){return this._getOption("useNativeScrolling")}set useNativeScrolling(On){this._setOption("useNativeScrolling",On)}get visible(){return this._getOption("visible")}set visible(On){this._setOption("visible",On)}get width(){return this._getOption("width")}set width(On){this._setOption("width",On)}onContentReady;onDisposing;onGroupRendered;onInitialized;onItemClick;onItemContextMenu;onItemDeleted;onItemDeleting;onItemHold;onItemRendered;onItemReordered;onItemSwipe;onOptionChanged;onPageLoading;onPullRefresh;onScroll;onSelectAllValueChanged;onSelectionChanged;accessKeyChange;activeStateEnabledChange;allowItemDeletingChange;bounceEnabledChange;collapsibleGroupsChange;dataSourceChange;disabledChange;displayExprChange;elementAttrChange;focusStateEnabledChange;groupedChange;groupTemplateChange;heightChange;hintChange;hoverStateEnabledChange;indicateLoadingChange;itemDeleteModeChange;itemDraggingChange;itemHoldTimeoutChange;itemsChange;itemTemplateChange;keyExprChange;menuItemsChange;menuModeChange;nextButtonTextChange;noDataTextChange;pageLoadingTextChange;pageLoadModeChange;pulledDownTextChange;pullingDownTextChange;pullRefreshEnabledChange;refreshingTextChange;repaintChangesOnlyChange;rtlEnabledChange;scrollByContentChange;scrollByThumbChange;scrollingEnabledChange;searchEditorOptionsChange;searchEnabledChange;searchExprChange;searchModeChange;searchTimeoutChange;searchValueChange;selectAllModeChange;selectAllTextChange;selectByClickChange;selectedItemKeysChange;selectedItemsChange;selectionModeChange;showScrollbarChange;showSelectionControlsChange;tabIndexChange;useNativeScrollingChange;visibleChange;widthChange;get itemsChildren(){return this._getOption("items")}set itemsChildren(On){this.setChildren("items",On)}get menuItemsChildren(){return this._getOption("menuItems")}set menuItemsChildren(On){this.setChildren("menuItems",On)}constructor(On,ji,Mi,Vo,Co,ti,Qn,ei){super(On,ji,Mi,Vo,Qn,ei),this._watcherHelper=Vo,this._idh=Co,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"groupRendered",emit:"onGroupRendered"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemDeleted",emit:"onItemDeleted"},{subscribe:"itemDeleting",emit:"onItemDeleting"},{subscribe:"itemHold",emit:"onItemHold"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"itemReordered",emit:"onItemReordered"},{subscribe:"itemSwipe",emit:"onItemSwipe"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"pageLoading",emit:"onPageLoading"},{subscribe:"pullRefresh",emit:"onPullRefresh"},{subscribe:"scroll",emit:"onScroll"},{subscribe:"selectAllValueChanged",emit:"onSelectAllValueChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowItemDeletingChange"},{emit:"bounceEnabledChange"},{emit:"collapsibleGroupsChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"indicateLoadingChange"},{emit:"itemDeleteModeChange"},{emit:"itemDraggingChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"keyExprChange"},{emit:"menuItemsChange"},{emit:"menuModeChange"},{emit:"nextButtonTextChange"},{emit:"noDataTextChange"},{emit:"pageLoadingTextChange"},{emit:"pageLoadModeChange"},{emit:"pulledDownTextChange"},{emit:"pullingDownTextChange"},{emit:"pullRefreshEnabledChange"},{emit:"refreshingTextChange"},{emit:"repaintChangesOnlyChange"},{emit:"rtlEnabledChange"},{emit:"scrollByContentChange"},{emit:"scrollByThumbChange"},{emit:"scrollingEnabledChange"},{emit:"searchEditorOptionsChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"searchValueChange"},{emit:"selectAllModeChange"},{emit:"selectAllTextChange"},{emit:"selectByClickChange"},{emit:"selectedItemKeysChange"},{emit:"selectedItemsChange"},{emit:"selectionModeChange"},{emit:"showScrollbarChange"},{emit:"showSelectionControlsChange"},{emit:"tabIndexChange"},{emit:"useNativeScrollingChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),ti.setHost(this)}_createInstance(On,ji){return new Ct(On,ji)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(On){super.ngOnChanges(On),this.setupChanges("dataSource",On),this.setupChanges("items",On),this.setupChanges("menuItems",On),this.setupChanges("searchExpr",On),this.setupChanges("selectedItemKeys",On),this.setupChanges("selectedItems",On)}setupChanges(On,ji){On in this._optionsToUpdate||this._idh.setup(On,ji)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("menuItems"),this._idh.doCheck("searchExpr"),this._idh.doCheck("selectedItemKeys"),this._idh.doCheck("selectedItems"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(On,ji){let Mi=this._idh.setupSingle(On,ji),Vo=null!==this._idh.getChanges(On,ji);(Mi||Vo)&&super._setOption(On,ji)}static \u0275fac=function(ji){return new(ji||rn)(S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(yt.zF),S.rXU(yt.jS),S.rXU(yt.$M),S.rXU(yt.fH),S.rXU(S.pJN),S.rXU(S.Agw))};static \u0275cmp=S.VBU({type:rn,selectors:[["dx-list"]],contentQueries:function(ji,Mi,Vo){if(1&ji&&(S.wni(Vo,Gt.CVf,4),S.wni(Vo,Gt.T0t,4)),2&ji){let Co;S.mGM(Co=S.lsd())&&(Mi.itemsChildren=Co),S.mGM(Co=S.lsd())&&(Mi.menuItemsChildren=Co)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowItemDeleting:"allowItemDeleting",bounceEnabled:"bounceEnabled",collapsibleGroups:"collapsibleGroups",dataSource:"dataSource",disabled:"disabled",displayExpr:"displayExpr",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",indicateLoading:"indicateLoading",itemDeleteMode:"itemDeleteMode",itemDragging:"itemDragging",itemHoldTimeout:"itemHoldTimeout",items:"items",itemTemplate:"itemTemplate",keyExpr:"keyExpr",menuItems:"menuItems",menuMode:"menuMode",nextButtonText:"nextButtonText",noDataText:"noDataText",pageLoadingText:"pageLoadingText",pageLoadMode:"pageLoadMode",pulledDownText:"pulledDownText",pullingDownText:"pullingDownText",pullRefreshEnabled:"pullRefreshEnabled",refreshingText:"refreshingText",repaintChangesOnly:"repaintChangesOnly",rtlEnabled:"rtlEnabled",scrollByContent:"scrollByContent",scrollByThumb:"scrollByThumb",scrollingEnabled:"scrollingEnabled",searchEditorOptions:"searchEditorOptions",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",searchValue:"searchValue",selectAllMode:"selectAllMode",selectAllText:"selectAllText",selectByClick:"selectByClick",selectedItemKeys:"selectedItemKeys",selectedItems:"selectedItems",selectionMode:"selectionMode",showScrollbar:"showScrollbar",showSelectionControls:"showSelectionControls",tabIndex:"tabIndex",useNativeScrolling:"useNativeScrolling",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onGroupRendered:"onGroupRendered",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemContextMenu:"onItemContextMenu",onItemDeleted:"onItemDeleted",onItemDeleting:"onItemDeleting",onItemHold:"onItemHold",onItemRendered:"onItemRendered",onItemReordered:"onItemReordered",onItemSwipe:"onItemSwipe",onOptionChanged:"onOptionChanged",onPageLoading:"onPageLoading",onPullRefresh:"onPullRefresh",onScroll:"onScroll",onSelectAllValueChanged:"onSelectAllValueChanged",onSelectionChanged:"onSelectionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowItemDeletingChange:"allowItemDeletingChange",bounceEnabledChange:"bounceEnabledChange",collapsibleGroupsChange:"collapsibleGroupsChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",indicateLoadingChange:"indicateLoadingChange",itemDeleteModeChange:"itemDeleteModeChange",itemDraggingChange:"itemDraggingChange",itemHoldTimeoutChange:"itemHoldTimeoutChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",keyExprChange:"keyExprChange",menuItemsChange:"menuItemsChange",menuModeChange:"menuModeChange",nextButtonTextChange:"nextButtonTextChange",noDataTextChange:"noDataTextChange",pageLoadingTextChange:"pageLoadingTextChange",pageLoadModeChange:"pageLoadModeChange",pulledDownTextChange:"pulledDownTextChange",pullingDownTextChange:"pullingDownTextChange",pullRefreshEnabledChange:"pullRefreshEnabledChange",refreshingTextChange:"refreshingTextChange",repaintChangesOnlyChange:"repaintChangesOnlyChange",rtlEnabledChange:"rtlEnabledChange",scrollByContentChange:"scrollByContentChange",scrollByThumbChange:"scrollByThumbChange",scrollingEnabledChange:"scrollingEnabledChange",searchEditorOptionsChange:"searchEditorOptionsChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",searchValueChange:"searchValueChange",selectAllModeChange:"selectAllModeChange",selectAllTextChange:"selectAllTextChange",selectByClickChange:"selectByClickChange",selectedItemKeysChange:"selectedItemKeysChange",selectedItemsChange:"selectedItemsChange",selectionModeChange:"selectionModeChange",showScrollbarChange:"showScrollbarChange",showSelectionControlsChange:"showSelectionControlsChange",tabIndexChange:"tabIndexChange",useNativeScrollingChange:"useNativeScrollingChange",visibleChange:"visibleChange",widthChange:"widthChange"},standalone:!1,features:[S.Jv_([yt.zF,yt.jS,yt.fH,yt.$M]),S.Vt3,S.OA$],decls:0,vars:0,template:function(ji,Mi){},encapsulation:2})}return rn})(),nn=(()=>{class rn{static \u0275fac=function(ji){return new(ji||rn)};static \u0275mod=S.$C({type:rn});static \u0275inj=d.G2t({imports:[Gt.iiR,Gt.XUe,Gt.POb,Gt.S2P,Gt.B9H,Gt.GIV,Gt.u4t,yt.p_,yt.xZ,Gt.iiR,Gt.XUe,Gt.POb,Gt.S2P,Gt.B9H,Gt.GIV,Gt.u4t,yt.xZ]})}return rn})()},5463:(En,it,p)=>{"use strict";p.d(it,{S:()=>P,l:()=>w});var S=p(656),d=p(4303),m=p(6520),T=p(8832),C=p(3349),e=p(8914);const k={provide:T.kq,useExisting:(0,S.Rfq)(()=>w),multi:!0};let w=(()=>{class v extends C.ic{_watcherHelper;_idh;instance=null;get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(b){this._setOption("acceptCustomValue",b)}get accessKey(){return this._getOption("accessKey")}set accessKey(b){this._setOption("accessKey",b)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(b){this._setOption("activeStateEnabled",b)}get buttons(){return this._getOption("buttons")}set buttons(b){this._setOption("buttons",b)}get customItemCreateEvent(){return this._getOption("customItemCreateEvent")}set customItemCreateEvent(b){this._setOption("customItemCreateEvent",b)}get dataSource(){return this._getOption("dataSource")}set dataSource(b){this._setOption("dataSource",b)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(b){this._setOption("deferRendering",b)}get disabled(){return this._getOption("disabled")}set disabled(b){this._setOption("disabled",b)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(b){this._setOption("displayExpr",b)}get displayValue(){return this._getOption("displayValue")}set displayValue(b){this._setOption("displayValue",b)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(b){this._setOption("dropDownButtonTemplate",b)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(b){this._setOption("dropDownOptions",b)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(b){this._setOption("elementAttr",b)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(b){this._setOption("fieldTemplate",b)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(b){this._setOption("focusStateEnabled",b)}get grouped(){return this._getOption("grouped")}set grouped(b){this._setOption("grouped",b)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(b){this._setOption("groupTemplate",b)}get height(){return this._getOption("height")}set height(b){this._setOption("height",b)}get hint(){return this._getOption("hint")}set hint(b){this._setOption("hint",b)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(b){this._setOption("hoverStateEnabled",b)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(b){this._setOption("inputAttr",b)}get isDirty(){return this._getOption("isDirty")}set isDirty(b){this._setOption("isDirty",b)}get isValid(){return this._getOption("isValid")}set isValid(b){this._setOption("isValid",b)}get items(){return this._getOption("items")}set items(b){this._setOption("items",b)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(b){this._setOption("itemTemplate",b)}get label(){return this._getOption("label")}set label(b){this._setOption("label",b)}get labelMode(){return this._getOption("labelMode")}set labelMode(b){this._setOption("labelMode",b)}get maxLength(){return this._getOption("maxLength")}set maxLength(b){this._setOption("maxLength",b)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(b){this._setOption("minSearchLength",b)}get name(){return this._getOption("name")}set name(b){this._setOption("name",b)}get noDataText(){return this._getOption("noDataText")}set noDataText(b){this._setOption("noDataText",b)}get opened(){return this._getOption("opened")}set opened(b){this._setOption("opened",b)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(b){this._setOption("openOnFieldClick",b)}get placeholder(){return this._getOption("placeholder")}set placeholder(b){this._setOption("placeholder",b)}get readOnly(){return this._getOption("readOnly")}set readOnly(b){this._setOption("readOnly",b)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(b){this._setOption("rtlEnabled",b)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(b){this._setOption("searchEnabled",b)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(b){this._setOption("searchExpr",b)}get searchMode(){return this._getOption("searchMode")}set searchMode(b){this._setOption("searchMode",b)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(b){this._setOption("searchTimeout",b)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(b){this._setOption("selectedItem",b)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(b){this._setOption("showClearButton",b)}get showDataBeforeSearch(){return this._getOption("showDataBeforeSearch")}set showDataBeforeSearch(b){this._setOption("showDataBeforeSearch",b)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(b){this._setOption("showDropDownButton",b)}get showSelectionControls(){return this._getOption("showSelectionControls")}set showSelectionControls(b){this._setOption("showSelectionControls",b)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(b){this._setOption("spellcheck",b)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(b){this._setOption("stylingMode",b)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(b){this._setOption("tabIndex",b)}get text(){return this._getOption("text")}set text(b){this._setOption("text",b)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(b){this._setOption("useItemTextAsTitle",b)}get validationError(){return this._getOption("validationError")}set validationError(b){this._setOption("validationError",b)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(b){this._setOption("validationErrors",b)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(b){this._setOption("validationMessageMode",b)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(b){this._setOption("validationMessagePosition",b)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(b){this._setOption("validationStatus",b)}get value(){return this._getOption("value")}set value(b){this._setOption("value",b)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(b){this._setOption("valueChangeEvent",b)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(b){this._setOption("valueExpr",b)}get visible(){return this._getOption("visible")}set visible(b){this._setOption("visible",b)}get width(){return this._getOption("width")}set width(b){this._setOption("width",b)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(b){this._setOption("wrapItemText",b)}onChange;onClosed;onContentReady;onCopy;onCustomItemCreating;onCut;onDisposing;onEnterKey;onFocusIn;onFocusOut;onInitialized;onInput;onItemClick;onKeyDown;onKeyUp;onOpened;onOptionChanged;onPaste;onSelectionChanged;onValueChanged;acceptCustomValueChange;accessKeyChange;activeStateEnabledChange;buttonsChange;customItemCreateEventChange;dataSourceChange;deferRenderingChange;disabledChange;displayExprChange;displayValueChange;dropDownButtonTemplateChange;dropDownOptionsChange;elementAttrChange;fieldTemplateChange;focusStateEnabledChange;groupedChange;groupTemplateChange;heightChange;hintChange;hoverStateEnabledChange;inputAttrChange;isDirtyChange;isValidChange;itemsChange;itemTemplateChange;labelChange;labelModeChange;maxLengthChange;minSearchLengthChange;nameChange;noDataTextChange;openedChange;openOnFieldClickChange;placeholderChange;readOnlyChange;rtlEnabledChange;searchEnabledChange;searchExprChange;searchModeChange;searchTimeoutChange;selectedItemChange;showClearButtonChange;showDataBeforeSearchChange;showDropDownButtonChange;showSelectionControlsChange;spellcheckChange;stylingModeChange;tabIndexChange;textChange;useItemTextAsTitleChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;valueChangeEventChange;valueExprChange;visibleChange;widthChange;wrapItemTextChange;onBlur;change(b){}touched=b=>{};get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(b){this.setChildren("buttons",b)}get itemsChildren(){return this._getOption("items")}set itemsChildren(b){this.setChildren("items",b)}constructor(b,B,j,F,X,U,Z,A){super(b,B,j,F,Z,A),this._watcherHelper=F,this._idh=X,this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"customItemCreating",emit:"onCustomItemCreating"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"customItemCreateEventChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"displayValueChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxLengthChange"},{emit:"minSearchLengthChange"},{emit:"nameChange"},{emit:"noDataTextChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"selectedItemChange"},{emit:"showClearButtonChange"},{emit:"showDataBeforeSearchChange"},{emit:"showDropDownButtonChange"},{emit:"showSelectionControlsChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useItemTextAsTitleChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),this._idh.setHost(this),U.setHost(this)}_createInstance(b,B){return new m.A(b,B)}writeValue(b){this.eventHelper.lockedValueChangeEvent=!0,this.value=b,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(b){this.disabled=b}registerOnChange(b){this.change=b}registerOnTouched(b){this.touched=b}_createWidget(b){super._createWidget(b),this.instance.on("focusOut",B=>{this.eventHelper.fireNgEvent("onBlur",[B])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(b){super.ngOnChanges(b),this.setupChanges("buttons",b),this.setupChanges("dataSource",b),this.setupChanges("items",b),this.setupChanges("searchExpr",b),this.setupChanges("validationErrors",b)}setupChanges(b,B){b in this._optionsToUpdate||this._idh.setup(b,B)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(b,B){let j=this._idh.setupSingle(b,B),F=null!==this._idh.getChanges(b,B);(j||F)&&super._setOption(b,B)}static \u0275fac=function(B){return new(B||v)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(C.zF),d.rXU(C.jS),d.rXU(C.$M),d.rXU(C.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:v,selectors:[["dx-select-box"]],contentQueries:function(B,j,F){if(1&B&&(d.wni(F,e.BrI,4),d.wni(F,e.CVf,4)),2&B){let X;d.mGM(X=d.lsd())&&(j.buttonsChildren=X),d.mGM(X=d.lsd())&&(j.itemsChildren=X)}},hostBindings:function(B,j){1&B&&d.bIt("valueChange",function(X){return j.change(X)})("onBlur",function(X){return j.touched(X)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",customItemCreateEvent:"customItemCreateEvent",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",displayValue:"displayValue",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isDirty:"isDirty",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",label:"label",labelMode:"labelMode",maxLength:"maxLength",minSearchLength:"minSearchLength",name:"name",noDataText:"noDataText",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",selectedItem:"selectedItem",showClearButton:"showClearButton",showDataBeforeSearch:"showDataBeforeSearch",showDropDownButton:"showDropDownButton",showSelectionControls:"showSelectionControls",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useItemTextAsTitle:"useItemTextAsTitle",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCopy:"onCopy",onCustomItemCreating:"onCustomItemCreating",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onItemClick:"onItemClick",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onSelectionChanged:"onSelectionChanged",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",customItemCreateEventChange:"customItemCreateEventChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",displayValueChange:"displayValueChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxLengthChange:"maxLengthChange",minSearchLengthChange:"minSearchLengthChange",nameChange:"nameChange",noDataTextChange:"noDataTextChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",selectedItemChange:"selectedItemChange",showClearButtonChange:"showClearButtonChange",showDataBeforeSearchChange:"showDataBeforeSearchChange",showDropDownButtonChange:"showDropDownButtonChange",showSelectionControlsChange:"showSelectionControlsChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},standalone:!1,features:[d.Jv_([C.zF,C.jS,k,C.fH,C.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(B,j){},encapsulation:2})}return v})(),P=(()=>{class v{static \u0275fac=function(B){return new(B||v)};static \u0275mod=d.$C({type:v});static \u0275inj=S.G2t({imports:[e.GIV,e.u4t,e.df_,e.YLo,e.YaD,e.eNx,e.Bkf,e.nwt,e.hXw,e.YGc,e.gf0,e.rvW,e.Tob,e.$Ql,e.isg,e.POb,C.p_,C.xZ,e.GIV,e.u4t,e.df_,e.YLo,e.YaD,e.eNx,e.Bkf,e.nwt,e.hXw,e.YGc,e.gf0,e.rvW,e.Tob,e.$Ql,e.isg,e.POb,C.xZ]})}return v})()},5470:(En,it,p)=>{"use strict";var S=p(5704),d=p(3090),m=p(778),T=p(4072),C=p(9293),e=p(8360),k=p(3480),w=p(1973),P=p(5973);const X=p(6620).A.inherit({_supportedKeys(){return(0,d.X)(this.callBase(),{space:function(ce){ce.preventDefault(),this._clickAction({event:ce})}})},_getDefaultOptions(){return(0,d.X)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1})},_canValueBeChangedByClick:()=>!0,_defaultOptionsRules(){return this.callBase().concat([{device:()=>"desktop"===P.A.real().deviceType&&!P.A.isSimulator(),options:{focusStateEnabled:!0}}])},_init(){this.callBase(),this.$element().addClass("dx-radiobutton")},_initMarkup(){this.callBase(),this._renderIcon(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderIcon(){this._$icon=(0,S.A)("<div>").addClass("dx-radiobutton-icon"),(0,S.A)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState(ce){this.$element().toggleClass("dx-radiobutton-checked",ce).find(".dx-radiobutton-icon").toggleClass("dx-radiobutton-icon-checked",ce),this.setAria("checked",ce)},_renderClick(){const ce=(0,C.b4)(m.U,this.NAME);this._clickAction=this._createAction(Re=>{this._clickHandler(Re.event)}),T.A.off(this.$element(),ce),T.A.on(this.$element(),ce,Re=>{this._clickAction({event:Re})})},_clickHandler(ce){this._saveValueChangeEvent(ce),this.option("value",!0)},_optionChanged(ce){"value"===ce.name?(this._renderCheckedState(ce.value),this.callBase(ce)):this.callBase(ce)}});(0,w.A)("dxRadioButton",X);const Z=X;var A=p(127),M=p(5651),H=p(1605);const J="dx-list-select-decorator-enabled",be=(0,C.b4)(m.U,"dxListEditDecorator");(0,H.k)("selection","default",M.A.inherit({_init(){this.callBase.apply(this,arguments);const ce=this._list.option("selectionMode");this._singleStrategy="single"===ce,this._containerClass=this._singleStrategy?"dx-list-select-radiobutton-container":"dx-list-select-checkbox-container",this._controlClass=this._singleStrategy?"dx-list-select-radiobutton":"dx-list-select-checkbox",this._controlWidget=this._singleStrategy?Z:k.A,this._list.$element().addClass(J)},beforeBag(ce){const{$itemElement:Re}=ce,Se=ce.$container.addClass(this._containerClass),De=(0,S.A)("<div>").addClass(this._controlClass).appendTo(Se);new this._controlWidget(De,(0,d.X)(this._commonOptions(),{value:this._isSelected(Re),elementAttr:{"aria-label":"Check State"},focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(Pe){Pe.event&&this._list._saveSelectionChangeEvent(Pe.event),this._processCheckedState(Re,Pe.value),Pe.event&&Pe.event.stopPropagation()}.bind(this)}))},modifyElement(ce){this.callBase.apply(this,arguments);const{$itemElement:Re}=ce,Se=this._controlWidget.getInstance(Re.find(`.${this._controlClass}`));T.A.on(Re,"stateChanged",(De,Pe)=>{Se.option("value",Pe)})},_updateSelectAllState(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},handleKeyboardEvents(ce,Re){const Se=!Re,De=this._list,Pe=this._$selectAll,Ie=De._getLastItemIndex();return!(!Pe||!(Re&&0===ce||Se&&ce===Ie)||(De.option("focusedElement",Pe),De.scrollToItem(De.option("focusedElement")),0))},handleEnterPressing(ce){if(this._$selectAll&&this._$selectAll.hasClass("dx-state-focused"))return ce.target=this._$selectAll.get(0),this._list._saveSelectionChangeEvent(ce),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll(){this._$selectAll=(0,S.A)("<div>").addClass("dx-list-select-all");const ce=this._list._supportedKeys().downArrow.bind(this._list),Re=(0,S.A)("<div>").addClass("dx-list-select-all-checkbox").appendTo(this._$selectAll);this._selectAllCheckBox=this._list._createComponent(Re,k.A,{elementAttr:{"aria-label":e.A.format("dxList-selectAll")},focusStateEnabled:!1,hoverStateEnabled:!1}),this._selectAllCheckBox.registerKeyHandler("downArrow",ce),(0,S.A)("<div>").addClass("dx-list-select-all-label").text(this._list.option("selectAllText")).appendTo(this._$selectAll),this._list.itemsContainer().prepend(this._$selectAll),this._updateSelectAllState(),this._updateSelectAllAriaLabel(),this._attachSelectAllHandler()},_attachSelectAllHandler(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),T.A.off(this._$selectAll,be),T.A.on(this._$selectAll,be,this._selectAllClickHandler.bind(this))},_updateSelectAllAriaLabel(){if(!this._$selectAll)return;const{value:ce}=this._selectAllCheckBox.option(),Se=void 0===ce?"half checked":ce?"checked":"not checked",De=`${e.A.format("dxList-selectAll")}, ${Se}`;this._$selectAll.attr({"aria-label":De})},_selectAllHandler(ce){ce.event&&ce.event.stopPropagation(),ce.event&&this._list._saveSelectionChangeEvent(ce.event);const{value:Re}=this._selectAllCheckBox.option();Re?this._selectAllItems():!1===Re&&this._unselectAllItems(),this._updateSelectAllAriaLabel(),this._list._createActionByOption("onSelectAllValueChanged")({value:Re})},_checkSelectAllCapability(){const ce=this._list,Re=ce._dataController;return!("allPages"===ce.option("selectAllMode")&&ce.option("grouped")&&!Re.group()&&(A.A.log("W1010"),1))},_selectAllItems(){this._checkSelectAllCapability()&&this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems(){this._checkSelectAllCapability()&&this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler(ce){this._list._saveSelectionChangeEvent(ce),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected(ce){return this._list.isItemSelected(ce)},_processCheckedState(ce,Re){Re?this._list.selectItem(ce):this._list.unselectItem(ce)},dispose(){this._disposeSelectAll(),this._list.$element().removeClass(J),this.callBase.apply(this,arguments)},_disposeSelectAll(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}))},5480:(En,it,p)=>{"use strict";p.d(it,{A:()=>oa});var S=p(5737),k=(p(8910),p(9810),p(3480),p(8638),p(9012),p(1973)),w=p(5704),P=p(5345),v=p(4270),x=p(3090),b=p(2660),B=p(1363),j=p(1830),F=p(6234),X=p(6110),U=p(4072),Z=p(1110),A=p(8360),M=p(4859),H=p(625),J=p(4481),R=p(127);const G="dx-responsivebox-screen-",ee=J.A.inherit({_getDefaultOptions(){return(0,x.X)(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0})},_init(){this.option("screenByWidth")||this._options.silent("screenByWidth",X.zY),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:()=>"dx-box-item",_itemDataKey:()=>"dxBoxItemData",_initMarkup(){this.callBase(),this.$element().addClass("dx-responsivebox")},_renderItems(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged(ot){const Bt=this._findItemElementByItem(ot);Bt.length&&(this._refreshItem(Bt,ot),this._clearItemNodeTemplates(),this._update(!0))},_setScreenSize(){const ot=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(G+ot),this.option("currentScreenFactor",ot)},_removeScreenSizeClass(){const ot=this.option("currentScreenFactor");ot&&this.$element().removeClass(G+ot)},_prepareGrid(){const ot=this._grid=[];this._prepareRowsAndCols(),(0,b.__)(this._rows,()=>{const Bt=[];ot.push(Bt),(0,b.__)(this._cols,()=>{Bt.push(this._createEmptyCell())})})},getSingleColumnRows(){const ot=this.option("rows"),Bt=this._screenItems.length;if(ot.length){const qt=this._filterByScreen(ot),bn=[];for(let kn=0;kn<Bt;kn++){const yi=this._defaultSizeConfig();kn<qt.length&&(0,j.O9)(qt[kn].shrink)&&(yi.shrink=qt[kn].shrink),bn.push(yi)}return bn}return this._defaultSizeConfig(Bt)},_prepareRowsAndCols(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this.getSingleColumnRows(),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems(){this._screenItems.sort((ot,Bt)=>ot.location.row-Bt.location.row||ot.location.col-Bt.location.col),(0,b.__)(this._screenItems,(ot,Bt)=>{(0,x.X)(Bt.location,{row:ot,col:0,rowspan:1,colspan:1})})},_sizesByScreen(ot){return(0,b.Tj)(this._filterByScreen(ot),Bt=>(0,x.X)(this._defaultSizeConfig(),Bt))},_createDefaultSizeConfig:()=>({ratio:1,baseSize:0,minSize:0,maxSize:0}),_defaultSizeConfig(ot){const Bt=this._createDefaultSizeConfig();if(!arguments.length)return Bt;const qt=[];for(let bn=0;bn<ot;bn++)qt.push(Bt);return qt},_filterByScreen(ot){const Bt=this._screenRegExp();return(0,M.VM)(ot,qt=>!qt.screen||Bt.test(qt.screen))},_screenRegExp(){const ot=this._getCurrentScreen();return new RegExp(`(^|\\s)${ot}($|\\s)`,"i")},_getCurrentScreen(){const ot=this._screenWidth();return this.option("screenByWidth")(ot)},_screenWidth:()=>(0,X.Vd)()?(0,B.RG)((0,X.zk)()):1920,_createEmptyCell:()=>({item:{},location:{colspan:1,rowspan:1}}),_spreadItems(){(0,b.__)(this._screenItems,(ot,Bt)=>{const qt=Bt.location||{},yi=this._grid[qt.row];this._occupyCells(yi&&yi[qt.col],Bt)})},_itemsByScreen(){return this.option("items").reduce((ot,Bt)=>{let qt=Bt.location||{};return qt=(0,j.Qd)(qt)?[qt]:qt,this._filterByScreen(qt).forEach(bn=>{ot.push({item:Bt,location:(0,x.X)({rowspan:1,colspan:1},bn)})}),ot},[])},_occupyCells(ot,Bt){!ot||this._isItemCellOccupied(ot,Bt)||((0,x.X)(ot,Bt),this._markSpanningCell(ot))},_isItemCellOccupied(ot,Bt){if(!(0,j.RI)(ot.item))return!0;let qt=!1;return this._loopOverSpanning(Bt.location,bn=>{qt=qt||!(0,j.RI)(bn.item)}),qt},_loopOverSpanning(ot,Bt){const qt=ot.row+ot.rowspan-1,bn=ot.col+ot.colspan-1,kn=Math.min(qt,this._rows.length-1),yi=Math.min(bn,this._cols.length-1);ot.rowspan-=qt-kn,ot.colspan-=bn-yi;for(let Hi=ot.row;Hi<=kn;Hi++)for(let co=ot.col;co<=yi;co++)(Hi!==ot.row||co!==ot.col)&&Bt(this._grid[Hi][co])},_markSpanningCell(ot){this._loopOverSpanning(ot.location,Bt=>{(0,x.X)(Bt,{item:ot.item,spanningCell:ot})})},_linkNodeToItem(){(0,b.__)(this._itemElements(),(ot,Bt)=>{const qt=(0,w.A)(Bt),bn=qt.data("dxBoxItemData");bn.box||(bn.node=qt.children())})},_layoutItems(){const ot=this._grid.length,Bt=ot&&this._grid[0].length;if(!ot&&!Bt)return;const qt=this._layoutBlock({direction:"col",row:{start:0,end:ot-1},col:{start:0,end:Bt-1}}),bn=this._prepareBoxConfig(qt.box||{direction:"row",items:[(0,x.X)(qt,{ratio:1})]});(0,x.X)(bn,this._rootBoxConfig(bn.items)),this._$root=(0,w.A)("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,H.A,bn)},_rootBoxConfig(ot){return{width:"100%",height:"100%",items:(0,b.__)(ot,(qt,bn)=>{this._needApplyAutoBaseSize(bn)&&(0,x.X)(bn,{baseSize:"auto"})}),itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")}},_needApplyAutoBaseSize:ot=>!(ot.baseSize||ot.minSize&&"auto"!==ot.minSize||ot.maxSize&&"auto"!==ot.maxSize),_prepareBoxConfig(ot){return(0,x.X)(ot||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock(ot){return this._isSingleItem(ot)?this._itemByCell(ot.row.start,ot.col.start):this._layoutDirection(ot)},_isSingleItem(ot){const Bt=this._grid[ot.row.start][ot.col.start].location;return ot.row.end-ot.row.start===Bt.rowspan-1&&ot.col.end-ot.col.start===Bt.colspan-1},_itemByCell(ot,Bt){const qt=this._grid[ot][Bt];return qt.spanningCell?null:qt.item},_layoutDirection(ot){const Bt=[],{direction:qt}=ot,bn=this._crossDirection(qt);let kn;for(;kn=this._nextBlock(ot);){if(this._isBlockIndivisible(ot.prevBlockOptions,kn))throw R.A.Error("E1025");const yi=this._layoutBlock({direction:bn,row:kn.row,col:kn.col,prevBlockOptions:ot});yi&&((0,x.X)(yi,this._blockSize(kn,bn)),Bt.push(yi)),ot[bn].start=kn[bn].end+1}return{box:this._prepareBoxConfig({direction:qt,items:Bt})}},_isBlockIndivisible:(ot,Bt)=>ot&&ot.col.start===Bt.col.start&&ot.col.end===Bt.col.end&&ot.row.start===Bt.row.start&&ot.row.end===Bt.row.end,_crossDirection:ot=>"col"===ot?"row":"col",_nextBlock(ot){const{direction:Bt}=ot,qt=this._crossDirection(Bt),bn=ot[Bt].start,kn=ot[Bt].end,yi=ot[qt].start;if(yi>ot[qt].end)return null;let Hi=1;for(let Po=yi;Po<yi+Hi;Po++){let Ko=1;for(let xt=bn;xt<=kn;xt++){const Fe=this._cellByDirection(Bt,xt,Po);Ko=Math.max(Ko,Fe.location[`${qt}span`])}const Ft=Po+Ko,Wt=yi+Hi;Ft>Wt&&(Hi+=Ft-Wt)}const co={};return co[Bt]={start:bn,end:kn},co[qt]={start:yi,end:yi+Hi-1},co},_cellByDirection(ot,Bt,qt){return"col"===ot?this._grid[qt][Bt]:this._grid[Bt][qt]},_blockSize(ot,Bt){const qt="row"===Bt?"auto":0,bn="row"===Bt?this._rows:this._cols,kn=(0,x.X)(this._createDefaultSizeConfig(),{ratio:0});for(let yi=ot[Bt].start;yi<=ot[Bt].end;yi++){const Hi=bn[yi];kn.ratio+=Hi.ratio,kn.baseSize+=Hi.baseSize,kn.minSize+=Hi.minSize,kn.maxSize+=Hi.maxSize,(0,j.O9)(Hi.shrink)&&(kn.shrink=Hi.shrink)}return kn.minSize=kn.minSize?kn.minSize:qt,kn.maxSize=kn.maxSize?kn.maxSize:"auto",this._isSingleColumnScreen()&&(kn.baseSize="auto"),kn},_update(ot){const Bt=this._$root;this._renderItems(),Bt&&(ot?Bt.remove():(Bt.detach(),this._saveAssistantRoot(Bt))),this._layoutChangedAction()},_saveAssistantRoot(ot){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(ot)},_dispose(){this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots(){this._assistantRoots&&(0,b.__)(this._assistantRoots,(ot,Bt)=>{(0,w.A)(Bt).remove()})},_clearItemNodeTemplates(){(0,b.__)(this.option("items"),function(){delete this.node})},_attachClickEvent:M.lQ,_optionChanged(ot){switch(ot.name){case"rows":case"cols":case"screenByWidth":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(ot),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(ot);break;case"currentScreenFactor":break;default:this.callBase(ot)}},_dimensionChanged(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint(){this._update()}});(0,k.A)("dxResponsiveBox",ee);const be=ee;var ce=p(7080);function W(ot){let{$parent:Bt,rootElementCssClassList:qt}=ot;return(0,w.A)("<div>").addClass("dx-field-empty-item").html("&nbsp;").addClass(qt.join(" ")).appendTo(Bt)}var ie=p(9522),he=p(6946),Ce=p(9495),ye=p(778),Me=p(9212),_e=p(8025);const de="dx-form-group",Ee="dx-col-",le="dx-field-item",Ke="dx-layout-manager-one-col",Be="dx-field-item-label-content",Oe="dx-field-item-label",fe="dx-field-item-content",Ue="dx-root-simple-item",qe="dx-field-item-tab",Nt="dx-group-colcount-",et="group-col-count",Te="simple";var je=p(2925);const Ne=["dxTagBox","dxRangeSlider","dxDateRangeBox"],lt=["dxRangeSlider","dxSlider"],Qe=["dxCalendar","dxCheckBox","dxHtmlEditor","dxRadioGroup","dxRangeSlider","dxSlider","dxSwitch"];function Gt(ot,Bt){let{showRequiredMark:qt,requiredMark:bn,showOptionalMark:kn,optionalMark:yi}=ot;return{showRequiredMark:qt&&Bt,requiredMark:bn,showOptionalMark:kn&&!Bt,optionalMark:yi}}function ei(ot){let Bt=0;const qt=ot.children.length;for(let bn=0;bn<qt;bn++)Bt+=ot.children[bn].offsetWidth;return Bt}const Jn="dx-field-item-content-wrapper",ls="dx-validation-target";function ss(ot){let{$parent:Bt,rootElementCssClassList:qt,formOrLayoutManager:bn,createComponentCallback:kn,labelOptions:yi,labelNeedBaselineAlign:Hi,labelLocation:co,needRenderLabel:Po,formLabelLocation:Ko,item:Ft,editorOptions:Wt,isSimpleItem:xt,isRequired:Fe,template:He,helpID:wt,labelID:Ut,name:cn,helpText:Ln,requiredMessageTemplate:$n,validationGroup:bi}=ot;const vi=(0,w.A)("<div>").addClass(qt.join(" ")).appendTo(Bt);vi.addClass(Fe?"dx-field-item-required":"dx-field-item-optional"),xt&&vi.addClass("dx-flex-layout"),xt&&Hi&&vi.addClass("dx-field-item-label-align");const ki=(0,w.A)("<div>");ki.data("dx-form-item",Ft),ki.addClass(fe).addClass("dx-field-item-content-location-"+{right:"left",left:"right",top:"bottom"}[Ko]);let Wi,Si=null;if(Po&&(yi.labelTemplate&&(yi.labelTemplateData=Fn(Ft,Wt,bn)),Si=function Co(ot){let{text:Bt,id:qt,location:bn,alignment:kn,labelID:yi=null,markOptions:Hi={},labelTemplate:co,labelTemplateData:Po,onLabelTemplateRendered:Ko}=ot;if((!(0,j.O9)(Bt)||Bt.length<=0)&&!(0,j.O9)(co))return null;const Ft=(0,w.A)("<label>").addClass(`${Oe} dx-field-item-label-location-${bn}`).attr("for",qt).attr("id",yi).css("textAlign",kn),Wt=(0,w.A)("<span>").addClass(Be);let xt=(0,w.A)("<span>").addClass("dx-field-item-label-text").text(Bt);return co&&(xt=(0,w.A)("<div>").addClass("dx-field-item-custom-label-content"),Po.text=Bt,co.render({container:(0,ie.cc)(xt),model:Po,onRendered(){Ko?.()}})),Ft.append(Wt.append(xt,function ti(ot){const Bt=function yt(ot){let{showRequiredMark:Bt,requiredMark:qt,showOptionalMark:bn,optionalMark:kn}=ot;return Bt||bn?"\xa0"+(Bt?qt:kn):""}(ot);return""===Bt?null:(0,w.A)("<span>").addClass(ot.showRequiredMark?"dx-field-item-required-mark":"dx-field-item-optional-mark").text(Bt)}(Hi)))}(yi)),Si){const{editorType:Do}=Ft;vi.append(Si),("top"===co||"left"===co)&&vi.append(ki),"right"===co&&vi.prepend(ki),vi.addClass("top"===co?"dx-label-v-align":"dx-label-h-align"),("dxCheckBox"===Do||"dxSwitch"===Do)&&U.A.on(Si,ye.U,()=>{U.A.trigger(ki.children(),ye.U)});const Mt=["dxCheckBox","dxSwitch","dxRadioGroup"].includes(Do),bt=yi.alignment;!He&&Mt&&"top"===co&&("left"===bt||!bt)&&ki.addClass("dx-toggle-controls-paddings")}else vi.append(ki);if(He)He.render({container:(0,ie.cc)(ki),model:Fn(Ft,Wt,bn),onRendered(){const Ht=function cs(ot){var Bt;return ot?.data(ls)||(null==ot||null===(Bt=ot.parent)||void 0===Bt||null===(Bt=Bt.call(ot))||void 0===Bt?void 0:Bt.data(ls))}(qo(ki));bs(Ht)}});else{const Do=(0,w.A)("<div>").appendTo(ki);try{Wi=kn(Do,Ft.editorType,Wt),Wi.setAria("describedby",wt),Ut&&Wi.setAria("labelledby",Ut),Wi.setAria("required",Fe)}catch(Ht){R.A.log("E1035",Ht.message)}}const Pi=qo(ki),oo=Pi&&Pi.data(ls);if(oo){const Do=Ft.label&&Ft.label.text,Ht=Do?null:cn,Mt=Do?Ft.label.text:Ht&&(0,he.Bc)(Ht);let bt;if(xt)if(Ft.validationRules)bt=Ft.validationRules;else{const an=(0,Ce.GP)($n,Mt||"");bt=Ft.isRequired?[{type:"required",message:an}]:null}Array.isArray(bt)&&bt.length&&kn(Pi,_e.A,{validationRules:bt,validationGroup:bi,dataGetter:()=>({formItem:Ft})}),bs(oo)}return Ln&&xt&&ki.parent().append((0,w.A)("<div>").addClass(Jn).append(ki).append((0,w.A)("<div>").addClass("dx-field-item-help-text").attr("id",wt).text(Ln))),{$fieldEditorContainer:ki,$rootElement:vi,widgetInstance:Wi}}function qo(ot){const Bt=ot.children().first();return Bt.hasClass("dx-template-wrapper")?Bt.children().first():Bt}function bs(ot){if(ot&&(0,Me.Nt)()){const Bt=`.${Jn}`,qt=bn=>{let{element:kn,component:yi}=bn;const{isValid:Hi,validationMessageMode:co}=yi.option();(0,w.A)(kn).parents(Bt).toggleClass("dx-invalid",!1===Hi&&(yi._isFocused()||"always"===co))};ot.on("optionChanged",bn=>{"isValid"===bn.name&&qt(bn)}),ot.on("focusIn",qt).on("focusOut",qt).on("enterKey",qt)}}function Fn(ot,Bt,qt){return{dataField:ot.dataField,editorType:ot.editorType,editorOptions:Bt,component:qt,name:ot.name}}class li{constructor(){this._map={}}_findWidgetInstance(Bt){let qt;return(0,b.__)(this._map,(bn,kn)=>{let{widgetInstance:yi,item:Hi}=kn;if(Bt(Hi))return qt=yi,!1}),qt}_findFieldByCondition(Bt,qt){let bn;return(0,b.__)(this._map,(kn,yi)=>{if(Bt(yi))return bn="guid"===qt?kn:yi[qt],!1}),bn}clear(){this._map={}}removeItemsByItems(Bt){(0,b.__)(Bt.getItems(),qt=>this.removeItemByKey(qt))}removeItemByKey(Bt){delete this._map[Bt]}add(Bt){const qt=Bt.guid||new je.A;return this._map[qt]=Bt,qt}addItemsOrExtendFrom(Bt){Bt.each((qt,bn)=>{this._map[qt]?(bn.widgetInstance&&(this._map[qt].widgetInstance=bn.widgetInstance),this._map[qt].$itemContainer=bn.$itemContainer):this.add({item:bn.item,widgetInstance:bn.widgetInstance,guid:qt,$itemContainer:bn.$itemContainer})})}extendRunTimeItemInfoByKey(Bt,qt){this._map[Bt]&&(this._map[Bt]=(0,x.X)(this._map[Bt],qt))}findWidgetInstanceByItem(Bt){return this._findWidgetInstance(qt=>qt===Bt)}findGroupOrTabLayoutManagerByPath(Bt){return this._findFieldByCondition(qt=>{let{path:bn}=qt;return bn===Bt},"layoutManager")}findKeyByPath(Bt){return this._findFieldByCondition(qt=>{let{path:bn}=qt;return bn===Bt},"guid")}findWidgetInstanceByName(Bt){return this._findWidgetInstance(qt=>Bt===qt.name)}findWidgetInstanceByDataField(Bt){return this._findWidgetInstance(qt=>Bt===((0,j.Kg)(qt)?qt:qt.dataField))}findItemContainerByItem(Bt){for(const qt in this._map)if(this._map[qt].item===Bt)return this._map[qt].$itemContainer;return null}findItemIndexByItem(Bt){return this._findFieldByCondition(qt=>{let{item:bn}=qt;return bn===Bt},"itemIndex")}findPreparedItemByItem(Bt){return this._findFieldByCondition(qt=>{let{item:bn}=qt;return bn===Bt},"preparedItem")}getItems(){return this._map}each(Bt){(0,b.__)(this._map,(qt,bn)=>{Bt(qt,bn)})}removeItemsByPathStartWith(Bt){Object.keys(this._map).filter(kn=>!!this._map[kn].path&&this._map[kn].path.indexOf(Bt,0)>-1).forEach(kn=>this.removeItemByKey(kn))}}const It=ce.A.inherit({_getDefaultOptions(){return(0,x.X)(this.callBase(),{layoutData:{},readOnly:!1,colCount:1,colCountByScreen:void 0,labelLocation:"left",onFieldDataChanged:null,onEditorEnterKey:null,customizeItem:null,alignItemLabels:!0,minColWidth:200,showRequiredMark:!0,screenByWidth:null,showOptionalMark:!1,requiredMark:"*",labelMode:"outside",optionalMark:A.A.format("dxForm-optionalMark"),requiredMessage:A.A.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference(){this.callBase(),(0,x.X)(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init(){const ot=this.option("layoutData");this.callBase(),this._itemWatchers=[],this._itemsRunTimeInfo=new li,this._updateReferencedOptions(ot),this._initDataAndItems(ot)},_dispose(){this.callBase(),this._cleanItemWatchers()},_initDataAndItems(ot){this._syncDataWithItems(),this._updateItems(ot)},_syncDataWithItems(){const ot=this.option("layoutData"),Bt=this.option("items");(0,j.O9)(Bt)&&Bt.forEach(qt=>{if(qt.dataField&&void 0===this._getDataByField(qt.dataField)){let bn;qt.editorOptions&&(bn=qt.editorOptions.value),((0,j.O9)(bn)||qt.dataField in ot)&&this._updateFieldValue(qt.dataField,bn)}})},_getDataByField(ot){return ot?this.option(`layoutData.${ot}`):null},_isCheckboxUndefinedStateEnabled(ot){let{allowIndeterminateState:Bt,editorType:qt,dataField:bn}=ot;if(!0===Bt&&"dxCheckBox"===qt){const kn=["layoutData",...bn.split(".")],yi=kn.pop(),Hi=this.option(kn.join("."));return Hi&&yi in Hi}return!1},_updateFieldValue(ot,Bt){const qt=this.option("layoutData");let bn=Bt;!F.A.isWrapped(qt[ot])&&(0,j.O9)(ot)?this.option(`layoutData.${ot}`,bn):F.A.isWritableWrapped(qt[ot])&&(bn=(0,j.Tn)(bn)?bn():bn,qt[ot](bn)),this._triggerOnFieldDataChanged({dataField:ot,value:bn})},_triggerOnFieldDataChanged(ot){this._createActionByOption("onFieldDataChanged")(ot)},_updateItems(ot){const Bt=this,qt=this.option("items"),bn=(0,j.O9)(qt),kn=Bt.option("customizeItem"),yi=bn?qt:this._generateItemsByData(ot);if((0,j.O9)(yi)){const Hi=[];(0,b.__)(yi,(co,Po)=>{Bt._isAcceptableItem(Po)&&(Po=Bt._processItem(Po),kn&&kn(Po),(0,j.Gv)(Po)&&!1!==F.A.unwrap(Po.visible)&&Hi.push(Po))}),(!Bt._itemWatchers.length||!bn)&&Bt._updateItemWatchers(yi),this._setItems(Hi),this._sortItems()}},_cleanItemWatchers(){this._itemWatchers.forEach(ot=>{ot()}),this._itemWatchers=[]},_updateItemWatchers(ot){const Bt=this,qt=Bt._getWatch();ot.forEach(bn=>{(0,j.Gv)(bn)&&(0,j.O9)(bn.visible)&&(0,j.Tn)(qt)&&Bt._itemWatchers.push(qt(()=>F.A.unwrap(bn.visible),()=>{Bt._updateItems(Bt.option("layoutData")),Bt.repaint()},{skipImmediate:!0}))})},_generateItemsByData(ot){const Bt=[];return(0,j.O9)(ot)&&(0,b.__)(ot,qt=>{Bt.push({dataField:qt})}),Bt},_isAcceptableItem(ot){const qt=this._getDataByField(ot.dataField||ot);return!((0,j.Tn)(qt)&&!F.A.isWrapped(qt))},_processItem(ot){if("string"==typeof ot&&(ot={dataField:ot}),"object"==typeof ot&&!ot.itemType&&(ot.itemType=Te),!(0,j.O9)(ot.editorType)&&(0,j.O9)(ot.dataField)){const Bt=this._getDataByField(ot.dataField);ot.editorType=(0,j.O9)(Bt)?this._getEditorTypeByDataType((0,j.NW)(Bt)):"dxTextBox"}return"dxCheckBox"===ot.editorType&&(ot.allowIndeterminateState=ot.allowIndeterminateState??!0),ot},_getEditorTypeByDataType(ot){switch(ot){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems(){(0,P.Il)(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes(){this._items.sort((ot,Bt)=>{const qt=ot.visibleIndex,bn=Bt.visibleIndex;let kn;return kn=qt>bn?1:qt<bn?-1:0,kn})},_initMarkup(){this._itemsRunTimeInfo.clear(),this.$element().addClass("dx-layout-manager"),this.callBase(),this._renderResponsiveBox()},_renderResponsiveBox(){const ot=this,Bt=[];if(ot._items&&ot._items.length){const qt=ot._getColCount(),bn=(0,w.A)("<div>").appendTo(ot.$element());ot._prepareItemsWithMerging(qt);const kn=ot._generateLayoutItems();ot._responsiveBox=ot._createComponent(bn,be,ot._getResponsiveBoxConfig(kn,qt,Bt)),(0,X.Vd)()||ot._renderTemplates(Bt)}},_itemStateChangedHandler(ot){this._refresh()},_renderTemplates(ot){const Bt=this;let qt=0;ot.forEach(bn=>{var kn;let{item:yi}=bn;null!=yi&&null!==(kn=yi.label)&&void 0!==kn&&kn.template&&qt++}),(0,b.__)(ot,(bn,kn)=>{switch(kn.itemType){case"empty":W(kn);break;case"button":Bt._renderButtonItem(kn);break;default:Bt._renderFieldItem(kn,qt)}})},_getResponsiveBoxConfig(ot,Bt,qt){const bn=this,kn=bn.option("colCountByScreen"),yi=kn&&kn.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),onLayoutChanged(){const Hi=bn.option("onLayoutChanged"),co=bn.isSingleColumnMode();Hi&&(bn.$element().toggleClass(Ke,co),Hi(co))},onContentReady(Hi){(0,X.Vd)()&&bn._renderTemplates(qt),bn.option("onLayoutChanged")&&bn.$element().toggleClass(Ke,bn.isSingleColumnMode(Hi.component))},itemTemplate(Hi,co,Po){if(!Hi.location)return;const Ko=(0,w.A)(Po),Wt=bn._items[Hi.location.col+Hi.location.row*Bt];if(!Wt)return;const xt=[Wt.cssClass];Ko.toggleClass("dx-single-column-item-content",bn.isSingleColumnMode(this)),0===Hi.location.row&&xt.push("dx-first-row"),0===Hi.location.col&&xt.push("dx-first-col"),Wt.itemType===Te&&bn.option("isRoot")&&Ko.addClass(Ue);const Fe=Hi.location.col===Bt-1||Hi.location.col+Hi.location.colspan===Bt,He=bn._getRowsCount(),wt=Hi.location.row===He-1;Fe&&xt.push("dx-last-col"),wt&&xt.push("dx-last-row"),"empty"!==Wt.itemType&&(xt.push(le),xt.push(bn.option("cssItemClass")),(0,j.O9)(Wt.col)&&xt.push(`dx-col-${Wt.col}`)),qt.push({itemType:Wt.itemType,item:Wt,$parent:Ko,rootElementCssClassList:xt})},cols:bn._generateRatio(Bt),rows:bn._generateRatio(bn._getRowsCount(),!0),dataSource:ot,screenByWidth:bn.option("screenByWidth"),singleColumnScreen:!yi&&"xs"}},_getColCount(){let ot=this.option("colCount");const Bt=this.option("colCountByScreen");if(Bt){let qt=this.option("form").getTargetScreenFactor();qt||(qt=(0,X.Vd)()?(0,X.ne)(this.option("screenByWidth")):"lg"),ot=Bt[qt]||ot}if("auto"===ot){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=ot=this._getMaxColCount()}return ot<1?1:ot},_getMaxColCount(){if(!(0,X.Vd)())return 1;const ot=this.option("minColWidth"),Bt=(0,B.RG)(this.$element()),qt=this._items.length,bn=Math.floor(Bt/ot)||1;return qt<bn?qt:bn},isCachedColCountObsolete(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging(ot){const Bt=this._items.slice(0);let qt,bn,yi,Hi,kn=[];for(Hi=0;Hi<Bt.length;Hi++)if(qt=Bt[Hi],kn.push(qt),(this.option("alignItemLabels")||qt.alignItemLabels||qt.colSpan)&&(qt.col=this._getColByIndex(kn.length-1,ot)),qt.colSpan>1&&qt.col+qt.colSpan<=ot){for(bn=[],yi=0;yi<qt.colSpan-1;yi++)bn.push({merged:!0});kn=kn.concat(bn)}else delete qt.colSpan;this._setItems(kn)},_getColByIndex:(ot,Bt)=>ot%Bt,_setItems(ot){this._items=ot,this._cashedColCount=null},_generateLayoutItems(){const ot=this._items,Bt=this._getColCount(),qt=[];let bn,kn;for(kn=0;kn<ot.length;kn++)if(bn=ot[kn],!bn.merged){const yi={location:{row:parseInt(kn/Bt),col:this._getColByIndex(kn,Bt)}};(0,j.O9)(bn.disabled)&&(yi.disabled=bn.disabled),(0,j.O9)(bn.visible)&&(yi.visible=bn.visible),(0,j.O9)(bn.colSpan)&&(yi.location.colspan=bn.colSpan),(0,j.O9)(bn.rowSpan)&&(yi.location.rowspan=bn.rowSpan),qt.push(yi)}return qt},_renderEmptyItem(ot){W({$container:ot})},_renderButtonItem(ot){let{item:Bt,$parent:qt,rootElementCssClassList:bn}=ot;const{$rootElement:kn,buttonInstance:yi}=function Se(ot){let{item:Bt,$parent:qt,rootElementCssClassList:bn,validationGroup:kn,createComponentCallback:yi}=ot;const Hi=(0,w.A)("<div>").appendTo(qt).addClass(bn.join(" ")).addClass("dx-field-button-item").css("textAlign",function De(ot){return(0,j.O9)(ot)?ot:"right"}(Bt.horizontalAlignment));return qt.css("justifyContent",function Pe(ot){switch(ot){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}}(Bt.verticalAlignment)),{$rootElement:Hi,buttonInstance:yi((0,w.A)("<div>").appendTo(Hi),"dxButton",(0,x.X)({validationGroup:kn},Bt.buttonOptions))}}({item:Bt,$parent:qt,rootElementCssClassList:bn,validationGroup:this.option("validationGroup"),createComponentCallback:this._createComponent.bind(this)});this._itemsRunTimeInfo.add({item:Bt,widgetInstance:yi,guid:Bt.guid,$itemContainer:kn})},_renderFieldItem(ot,Bt){var qt,bn;let{item:kn,$parent:yi,rootElementCssClassList:Hi}=ot;const co=this._getDataByField(kn.dataField);let Po=!1;if(void 0===co){const{allowIndeterminateState:He,editorType:wt,dataField:Ut}=kn;Po=this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:He,editorType:wt,dataField:Ut})}const Ko=kn.dataField||kn.name,Ft=this._getFormOrThis(),{$fieldEditorContainer:Wt,widgetInstance:xt,$rootElement:Fe}=ss(function Ct(ot){let{$parent:Bt,rootElementCssClassList:qt,formOrLayoutManager:bn,createComponentCallback:kn,item:yi,template:Hi,labelTemplate:co,name:Po,formLabelLocation:Ko,requiredMessageTemplate:Ft,validationGroup:Wt,editorValue:xt,canAssignUndefinedValueToEditor:Fe,editorValidationBoundary:He,editorStylingMode:wt,showColonAfterLabel:Ut,managerLabelLocation:cn,itemId:Ln,managerMarkOptions:$n,labelMode:bi,onLabelTemplateRendered:vi}=ot;const ki=(0,j.O9)(yi.isRequired)?yi.isRequired:!!function nn(ot){let Bt;return ot&&ot.length&&(0,b.__)(ot,(qt,bn)=>{if("required"===bn.type)return Bt=!0,!1}),Bt}(yi.validationRules),Si=yi.itemType===Te,Wi=yi.helpText?`dx-${new je.A}`:null,Pi=function rn(ot){let{item:Bt,id:qt,isRequired:bn,managerMarkOptions:kn,showColonAfterLabel:yi,labelLocation:Hi,labelTemplate:co,formLabelMode:Po,onLabelTemplateRendered:Ko}=ot;const Ft=Qe.includes(Bt.editorType),Wt=(0,x.X)({showColon:yi,location:Hi,id:qt,visible:"outside"===Po||Ft&&"hidden"!==Po,isRequired:bn},Bt?Bt.label:{},{markOptions:Gt(kn,bn),labelTemplate:co,onLabelTemplateRendered:Ko});return["dxRadioGroup","dxCheckBox","dxLookup","dxSlider","dxRangeSlider","dxSwitch","dxHtmlEditor","dxDateRangeBox"].includes(Bt.editorType)&&(Wt.labelID=`dx-label-${new je.A}`),!Wt.text&&Bt.dataField&&(Wt.text=(0,he.Bc)(Bt.dataField)),Wt.text&&(Wt.textWithoutColon=Wt.text,Wt.text+=Wt.showColon?":":""),Wt}({item:yi,id:Ln,isRequired:ki,managerMarkOptions:$n,showColonAfterLabel:Ut,labelLocation:cn,formLabelMode:bi,labelTemplate:co,onLabelTemplateRendered:vi}),oo=Pi.visible&&(Pi.text||Pi.labelTemplate&&Si),{location:Do,labelID:Ht}=Pi,Mt="top"!==Do&&["dxTextArea","dxRadioGroup","dxCalendar","dxHtmlEditor"].includes(yi.editorType),bt=function ft(ot){let{editorType:Bt,defaultEditorName:qt,editorValue:bn,canAssignUndefinedValueToEditor:kn,externalEditorOptions:yi,editorInputId:Hi,editorValidationBoundary:co,editorStylingMode:Po,formLabelMode:Ko,labelText:Ft,labelMark:Wt}=ot;const xt={};(void 0!==bn||kn)&&(xt.value=bn),Ne.includes(Bt)&&(xt.value=xt.value||[]);let Fe=yi?.labelMode;(0,j.O9)(Fe)||(Fe="outside"===Ko?"hidden":Ko);const He=yi?.stylingMode||Po,wt=lt.includes(Bt),Ut=(0,x.X)(!0,xt,yi,{inputAttr:{id:Hi},validationBoundary:co,stylingMode:He,label:wt?yi?.label:Ft,labelMode:Fe,labelMark:Wt});return yi&&(Ut.dataSource&&(Ut.dataSource=yi.dataSource),Ut.items&&(Ut.items=yi.items)),qt&&!Ut.name&&(Ut.name=qt),Ut}({editorType:yi.editorType,editorValue:xt,defaultEditorName:yi.dataField,canAssignUndefinedValueToEditor:Fe,externalEditorOptions:yi.editorOptions,editorInputId:Ln,editorValidationBoundary:He,editorStylingMode:wt,formLabelMode:bi,labelText:Pi.textWithoutColon,labelMark:Pi.markOptions.showRequiredMark?"\xa0"+Pi.markOptions.requiredMark:""});return{$parent:Bt,rootElementCssClassList:qt,formOrLayoutManager:bn,createComponentCallback:kn,labelOptions:Pi,labelNeedBaselineAlign:Mt,labelLocation:Do,needRenderLabel:oo,item:yi,isSimpleItem:Si,isRequired:ki,template:Hi,helpID:Wi,labelID:Ht,name:Po,helpText:!Pi.markOptions.showOptionalMark||Pi.visible||"hidden"===bt.labelMode||(0,j.O9)(yi.helpText)?yi.helpText:Pi.markOptions.optionalMark,formLabelLocation:Ko,requiredMessageTemplate:Ft,validationGroup:Wt,editorOptions:bt}}({$parent:yi,rootElementCssClassList:Hi,item:kn,name:Ko,editorValue:co,canAssignUndefinedValueToEditor:Po,formOrLayoutManager:this._getFormOrThis(),createComponentCallback:this._createComponent.bind(this),formLabelLocation:this.option("labelLocation"),requiredMessageTemplate:this.option("requiredMessage"),validationGroup:this.option("validationGroup"),editorValidationBoundary:this.option("validationBoundary"),editorStylingMode:this.option("form")&&this.option("form").option("stylingMode"),showColonAfterLabel:this.option("showColonAfterLabel"),managerLabelLocation:this.option("labelLocation"),template:kn.template?this._getTemplate(kn.template):null,labelTemplate:null!==(qt=kn.label)&&void 0!==qt&&qt.template?this._getTemplate(kn.label.template):null,itemId:this.option("form")&&this.option("form").getItemID(Ko),managerMarkOptions:this._getMarkOptions(),labelMode:this.option("labelMode"),onLabelTemplateRendered:()=>{this._incTemplateRenderedCallCount(),this._shouldAlignLabelsOnTemplateRendered(Ft,Bt)&&Ft._alignLabels(this,this.isSingleColumnMode(Ft))}}));null===(bn=this.option("onFieldItemRendered"))||void 0===bn||bn(),xt&&kn.dataField&&this._bindDataField(xt,kn.dataField,kn.editorType,Wt),this._itemsRunTimeInfo.add({item:kn,widgetInstance:xt,guid:kn.guid,$itemContainer:Fe})},_incTemplateRenderedCallCount(){this._labelTemplateRenderedCallCount=(this._labelTemplateRenderedCallCount??0)+1},_shouldAlignLabelsOnTemplateRendered(ot,Bt){return ot.option("templatesRenderAsynchronously")&&this._labelTemplateRenderedCallCount===Bt},_getMarkOptions(){return{showRequiredMark:this.option("showRequiredMark"),requiredMark:this.option("requiredMark"),showOptionalMark:this.option("showOptionalMark"),optionalMark:this.option("optionalMark")}},_getFormOrThis(){return this.option("form")||this},_bindDataField(ot,Bt,qt,bn){const kn=this._getFormOrThis();ot.on("enterKey",yi=>{kn._createActionByOption("onEditorEnterKey")((0,x.X)(yi,{dataField:Bt}))}),this._createWatcher(ot,bn,Bt),this.linkEditorToDataField(ot,Bt,qt)},_createWatcher(ot,Bt,qt){const bn=this,kn=bn._getWatch();if(!(0,j.Tn)(kn))return;const yi=kn(()=>bn._getDataByField(qt),()=>{const Hi=bn._getDataByField(qt);if("dxTagBox"===ot.NAME){const co=ot.option("value");if(Hi!==co&&function(Po,Ko){if(!Array.isArray(Po)||!Array.isArray(Ko)||Po.length!==Ko.length)return!1;for(let Ft=0;Ft<Po.length;Ft++)if(Po[Ft]!==Ko[Ft])return!1;return!0}(Hi,co))return}ot.option("value",Hi)},{deep:!0,skipImmediate:!0},{createWatcherDataField:qt});U.A.on(Bt,Z.N,yi)},_getWatch(){if(!(0,j.O9)(this._watch)){const ot=this.option("form");this._watch=ot&&ot.option("integrationOptions.watchMethod")}return this._watch},_createComponent(ot,Bt,qt){const bn=this.option("readOnly");let kn=Object.hasOwn(qt,"readOnly");const yi=this.callBase(ot,Bt,(0,S.A)({},qt,{readOnly:kn?qt.readOnly:bn}));let Hi=!1;return yi.on("optionChanged",co=>{"readOnly"===co.name&&!Hi&&(kn=!0)}),this.on("optionChanged",co=>{"readOnly"===co.name&&!kn&&(Hi=!0,yi.option(co.name,co.value),Hi=!1)}),yi},_generateRatio(ot,Bt){const qt=[];let bn,kn;for(kn=0;kn<ot;kn++)bn={ratio:1},Bt&&(bn.baseSize="auto"),qt.push(bn);return qt},_getRowsCount(){return Math.ceil(this._items.length/this._getColCount())},_updateReferencedOptions(ot){const Bt=this.option("layoutData");(0,j.Gv)(Bt)&&Object.getOwnPropertyNames(Bt).forEach(qt=>delete this._optionsByReference[`layoutData.${qt}`]),(0,j.Gv)(ot)&&Object.getOwnPropertyNames(ot).forEach(qt=>this._optionsByReference[`layoutData.${qt}`]=!0)},_clearWidget(ot){this._disableEditorValueChangedHandler=!0,ot.clear(),this._disableEditorValueChangedHandler=!1,ot.option("isValid",!0)},_optionChanged(ot){if(0!==ot.fullName.search("layoutData."))switch(ot.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this._updateReferencedOptions(ot.value),this.option("items")?(0,j.RI)(ot.value)||this._itemsRunTimeInfo.each((Bt,qt)=>{if((0,j.O9)(qt.item)){const{dataField:bn}=qt.item;if(bn&&(0,j.O9)(qt.widgetInstance)){const yi=(0,v.Hz)(bn)(ot.value),{allowIndeterminateState:Hi,editorType:co}=qt.item;void 0!==yi||this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:Hi,editorType:co,dataField:bn})?qt.widgetInstance.option("value",yi):this._clearWidget(qt.widgetInstance)}}}):(this._initDataAndItems(ot.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(ot.value),this._invalidate();break;case"alignItemLabels":case"labelLocation":case"labelMode":case"requiredMessage":this._invalidate();break;case"customizeItem":this._updateItems(this.option("layoutData")),this._invalidate();break;case"colCount":case"colCountByScreen":this._resetColCount();break;case"minColWidth":"auto"===this.option("colCount")&&this._resetColCount();break;case"readOnly":case"onFieldDataChanged":break;case"width":this.callBase(ot),"auto"===this.option("colCount")&&this._resetColCount();break;default:this.callBase(ot)}},_resetColCount(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField(ot,Bt){this.on("optionChanged",qt=>{qt.fullName===`layoutData.${Bt}`&&ot._setOptionWithoutOptionChange("value",qt.value)}),ot.on("valueChanged",qt=>{const bn=(0,j.Gv)(qt.value)||Array.isArray(qt.value);!this._disableEditorValueChangedHandler&&(!bn||qt.value!==qt.previousValue)&&this._updateFieldValue(Bt,qt.value)})},_dimensionChanged(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this._eventsStrategy.fireEvent("autoColCountChanged")},updateData(ot,Bt){const qt=this;(0,j.Gv)(ot)?(0,b.__)(ot,(bn,kn)=>{qt._updateFieldValue(bn,kn)}):"string"==typeof ot&&qt._updateFieldValue(ot,Bt)},getEditor(ot){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(ot)||this._itemsRunTimeInfo.findWidgetInstanceByName(ot)},isSingleColumnMode(ot){const Bt=this._responsiveBox||ot;if(Bt)return Bt.option("currentScreenFactor")===Bt.option("singleColumnScreen")},getItemsRunTimeInfo(){return this._itemsRunTimeInfo}});(0,k.A)("dxLayoutManager",It);var dn=p(5811);const ni=J.A.inherit({_getDefaultOptions(){return(0,x.X)(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference(){this.callBase(),(0,x.X)(this._optionsByReference,{validationGroup:!0})},_init(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration(){const ot=this.$element(),Bt=this.option("validationGroup")||dn.A.findGroup(ot,this._modelByElement(ot)),qt=dn.A.addGroup(Bt,!0);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=Bt,this.groupSubscription=this._groupValidationHandler.bind(this),qt.on("validated",this.groupSubscription)},_unsubscribeGroup(){const ot=dn.A.getGroupConfig(this._validationGroup);ot&&ot.off("validated",this.groupSubscription)},_getOrderedItems(ot,Bt){let qt=[];return(0,b.__)(ot,(bn,kn)=>{const yi=(0,M.VM)(Bt,Hi=>{if(Hi.validator===kn)return!0});yi.length&&(qt=qt.concat(yi))}),qt},_groupValidationHandler(ot){const Bt=this._getOrderedItems(ot.validators,(0,b.Tj)(ot.brokenRules,qt=>({text:qt.message,validator:qt.validator,index:qt.index})));this.validators=ot.validators,(0,b.__)(this.validators,(qt,bn)=>{if(bn._validationSummary!==this){let kn=this._itemValidationHandler.bind(this);const yi=function(){bn.off("validated",kn),bn._validationSummary=null,kn=null};bn.on("validated",kn),bn.on("disposing",yi),bn._validationSummary=this}}),this.option("items",Bt)},_itemValidationHandler(ot){let{isValid:Bt,validator:qt,brokenRules:bn}=ot,kn=this.option("items"),yi=!1,Hi=0;for(;Hi<kn.length;){const co=kn[Hi];if(co.validator===qt){const Po=(0,M.VM)(bn||[],Ko=>Ko.index===co.index)[0];if(Bt||!Po){kn.splice(Hi,1),yi=!0;continue}Po.message!==co.text&&(co.text=Po.message,yi=!0)}Hi++}(0,b.__)(bn,(co,Po)=>{(0,M.VM)(kn,Ft=>Ft.validator===qt&&Ft.index===Po.index)[0]||(kn.push({text:Po.message,validator:qt,index:Po.index}),yi=!0)}),yi&&(kn=this._getOrderedItems(this.validators,kn),this.option("items",kn))},_initMarkup(){this.$element().addClass("dx-validationsummary"),this.callBase()},_optionChanged(ot){"validationGroup"===ot.name?this._initGroupRegistration():this.callBase(ot)},_itemClass:()=>"dx-validationsummary-item",_itemDataKey:()=>"dx-validationsummary-item-data",_postprocessRenderItem(ot){U.A.on(ot.itemElement,"click",()=>{ot.itemData.validator&&ot.itemData.validator.focus&&ot.itemData.validator.focus()})},_dispose(){this.callBase(),this._unsubscribeGroup()},refreshValidationGroup(){this._initGroupRegistration()}});(0,k.A)("dxValidationSummary",ni);const Bi=ni;var ro=p(8569),mo=p(597);(0,k.A)("dxValidationGroup",class jn extends ro.A{_getDefaultOptions(){return super._getDefaultOptions()}_init(){super._init(),dn.A.addGroup(this,!1)}_initMarkup(){const Bt=this.$element();Bt.addClass("dx-validationgroup"),Bt.find(".dx-validator").each((qt,bn)=>{mo.A.getInstance((0,w.A)(bn))._initGroupRegistration()}),Bt.find(".dx-validationsummary").each((qt,bn)=>{Bi.getInstance((0,w.A)(bn)).refreshValidationGroup()}),super._initMarkup()}validate(){return dn.A.validateGroup(this)}reset(){return dn.A.resetGroup(this)}_dispose(){dn.A.removeGroup(this),this.$element().removeClass("dx-validationgroup"),super._dispose()}_useTemplates(){return!1}});var zi=p(3686),_o=p(2013),$o=p(6021),gs=p(9229),xn=p(6620),Bn=p(4602),Gn=p(5973),Ri=p(6054),Xi=p(5944),Oo=p(8535),Fo=p(7007),Vs=p(2123),fs=p(3012),zt=p(6790),zn=p(6067),pn=p(2583);const An={move(ot,Bt){(0,Vs.Cy)(ot,{left:Bt})}},fi={moveTo(ot,Bt,qt,bn){pn.A.animate(ot,{type:"slide",to:{left:Bt},duration:qt,complete:bn})},complete(ot){pn.A.stop(ot,!0)}},Bs=ot=>+ot,Et=zn.A.inherit({_activeStateUnit:".dx-multiview-item",_supportedKeys(){return(0,x.X)(this.callBase(),{pageUp:M.lQ,pageDown:M.lQ})},_getDefaultOptions(){return(0,x.X)(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectByClick:!1})},_defaultOptionsRules(){return this.callBase().concat([{device:()=>"desktop"===Gn.A.real().deviceType&&!Gn.A.isSimulator(),options:{focusStateEnabled:!0}}])},_itemClass:()=>"dx-multiview-item",_itemDataKey:()=>"dxMultiViewItemData",_itemContainer(){return this._$itemContainer},_itemElements(){return this._itemContainer().children(this._itemSelector())},_itemWidth(){return this._itemWidthValue||(this._itemWidthValue=(0,B.RG)(this._$wrapper)),this._itemWidthValue},_clearItemWidthCache(){delete this._itemWidthValue},_itemsCount(){return this.option("items").length},_normalizeIndex(ot){const Bt=this._itemsCount();return ot<0&&(ot+=Bt),ot>=Bt&&(ot-=Bt),ot},_getRTLSignCorrection(){return this.option("rtlEnabled")?-1:1},_init(){this.callBase.apply(this,arguments);const ot=this.$element();ot.addClass("dx-multiview"),this._$wrapper=(0,w.A)("<div>").addClass("dx-multiview-wrapper"),this._$wrapper.appendTo(ot),this._$itemContainer=(0,w.A)("<div>").addClass("dx-multiview-item-container"),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._findBoundaryIndices(),this._initSwipeable()},_initMarkup(){this._deferredItems=[],this.callBase();const ot=this._getSelectedItemIndices();this._updateItemsVisibility(ot[0]),this._setElementAria(),this._setItemsAria()},_afterItemElementDeleted(ot,Bt){this.callBase(ot,Bt),this._deferredItems&&this._deferredItems.splice(Bt.itemIndex,1)},_beforeItemElementInserted(ot){this.callBase.apply(this,arguments),this._deferredItems&&this._deferredItems.splice(ot.index,0,null)},_executeItemRenderAction(ot,Bt,qt){ot=(this.option("items")||[]).indexOf(Bt),this.callBase(ot,Bt,qt)},_renderItemContent(ot){const Bt=(0,$o.cY)(),qt=this,{callBase:bn}=this,kn=(0,$o.cY)();return kn.done(()=>{const yi=bn.call(qt,ot);Bt.resolve(yi)}),this._deferredItems[ot.index]=kn,this.option("deferRendering")||kn.resolve(),Bt.promise()},_render(){this.callBase(),(0,M.zE)(()=>{const ot=this._getSelectedItemIndices();this._updateItems(ot[0])})},_getElementAria:()=>({role:"group",roledescription:A.A.format("dxMultiView-elementAriaRoleDescription"),label:A.A.format("dxMultiView-elementAriaLabel")}),_setElementAria(){const ot=this._getElementAria();this.setAria(ot,this.$element())},_setItemsAria(){const ot=this._itemElements(),Bt=this._itemsCount();ot.each((qt,bn)=>{const kn=this._getItemAria({itemIndex:qt,itemsCount:Bt});this.setAria(kn,(0,w.A)(bn))})},_getItemAria(ot){let{itemIndex:Bt,itemsCount:qt}=ot;return{role:"group",roledescription:A.A.format("dxMultiView-itemAriaRoleDescription"),label:A.A.format("dxMultiView-itemAriaLabel",Bt+1,qt)}},_updateItems(ot,Bt){this._updateItemsPosition(ot,Bt),this._updateItemsVisibility(ot,Bt)},_modifyByChanges(){this.callBase.apply(this,arguments);const ot=this._getSelectedItemIndices();this._updateItemsVisibility(ot[0])},_updateItemsPosition(ot,Bt){const qt=this._itemElements(),bn=(0,j.O9)(Bt)?-this._animationDirection(Bt,ot):void 0,kn=qt.eq(ot);An.move(kn,0),(0,j.O9)(Bt)&&An.move(qt.eq(Bt),100*bn+"%")},_updateItemsVisibility(ot,Bt){this._itemElements().each((bn,kn)=>{const yi=(0,w.A)(kn),Hi=bn!==ot&&bn!==Bt;Hi||this._renderSpecificItem(bn),yi.toggleClass("dx-multiview-item-hidden",Hi),this.setAria("hidden",Hi||void 0,yi)})},_renderSpecificItem(ot){const Bt=this._itemElements().eq(ot),qt=Bt.find(this._itemContentClass()).length>0;(0,j.O9)(ot)&&!qt&&(this._deferredItems[ot].resolve(),(0,gs.ho)(Bt))},_refreshItem(ot,Bt){this.callBase(ot,Bt),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelectionAttribute:M.lQ,_updateSelection(ot,Bt){const qt=ot[0],bn=Bt[0];fi.complete(this._$itemContainer),this._updateItems(bn,qt);const kn=this._animationDirection(qt,bn);this._animateItemContainer(kn*this._itemWidth(),()=>{An.move(this._$itemContainer,0),this._updateItems(qt),(0,B.RG)(this._$itemContainer)})},_animateItemContainer(ot,Bt){const qt=this.option("animationEnabled")?200:0;fi.moveTo(this._$itemContainer,ot,qt,Bt)},_animationDirection(ot,Bt){const qt=(()=>(0,Vs.x5)(this._$itemContainer).left)(),bn=(Bt-ot)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection();return(0,fs._S)(0!==qt?qt:bn)},_getSwipeDisabledState(){return!this.option("swipeEnabled")||this._itemsCount()<=1},_initSwipeable(){this._createComponent(this.$element(),zt.A,{disabled:this._getSwipeDisabledState(),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:ot=>this._swipeStartHandler(ot.event),onUpdated:ot=>this._swipeUpdateHandler(ot.event),onEnd:ot=>this._swipeEndHandler(ot.event)})},_findBoundaryIndices(){const ot=this.option("items");let Bt,qt;ot.forEach((bn,kn)=>{bn?.disabled||(Bt??(Bt=kn),qt=kn)}),this._boundaryIndices={firstAvailableIndex:Bt??0,lastAvailableIndex:qt??ot.length-1,firstTrueIndex:0,lastTrueIndex:ot.length-1}},_swipeStartHandler(ot){fi.complete(this._$itemContainer);const Bt=this.option("selectedIndex"),qt=this.option("loop"),{firstAvailableIndex:bn,lastAvailableIndex:kn}=this._boundaryIndices,yi=this.option("rtlEnabled");ot.maxLeftOffset=Bs(qt||(yi?Bt>bn:Bt<kn)),ot.maxRightOffset=Bs(qt||(yi?Bt<kn:Bt>bn)),this._swipeDirection=null},_swipeUpdateHandler(ot){const{offset:Bt}=ot,qt=(0,fs._S)(Bt)*this._getRTLSignCorrection();if(An.move(this._$itemContainer,Bt*this._itemWidth()),qt!==this._swipeDirection){this._swipeDirection=qt;const bn=this.option("selectedIndex"),kn=this._normalizeIndex(bn-qt);this._updateItems(bn,kn)}},_findNextAvailableIndex(ot,Bt){const{items:qt,loop:bn}=this.option(),{firstAvailableIndex:kn,lastAvailableIndex:yi,firstTrueIndex:Hi,lastTrueIndex:co}=this._boundaryIndices,Po=[Hi,kn].includes(ot),Ko=[co,yi].includes(ot);if(bn){if(Po&&Bt<0)return yi;if(Ko&&Bt>0)return kn}for(let Ft=ot+Bt;Ft>=kn&&Ft<=yi;Ft+=Bt)if(!qt[Ft].disabled)return Ft;return ot},_swipeEndHandler(ot){const Bt=ot.targetOffset*this._getRTLSignCorrection();if(Bt){const qt=this._findNextAvailableIndex(this.option("selectedIndex"),-Bt);this.option("selectedIndex",qt);const bn=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",(0,ie.cc)(bn))}else this._animateItemContainer(0,M.lQ)},_getItemFocusLoopSignCorrection(){return this._itemFocusLooped?-1:1},_moveFocus(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem(ot){const Bt=this.callBase.apply(this,arguments);return this._itemFocusLooped=Bt.is(ot.last()),Bt},_nextItem(ot){const Bt=this.callBase.apply(this,arguments);return this._itemFocusLooped=Bt.is(ot.first()),Bt},_dimensionChanged(){this._clearItemWidthCache()},_visibilityChanged(ot){ot&&this._dimensionChanged()},_updateSwipeDisabledState(){const ot=this._getSwipeDisabledState();zt.A.getInstance(this.$element()).option("disabled",ot)},_dispose(){delete this._boundaryIndices,this.callBase()},_optionChanged(ot){const{value:Bt}=ot;switch(ot.name){case"loop":this.option("loopItemFocus",Bt);break;case"animationEnabled":break;case"swipeEnabled":this._updateSwipeDisabledState();break;case"deferRendering":this._invalidate();break;case"items":this._updateSwipeDisabledState(),this._findBoundaryIndices(),this.callBase(ot);break;default:this.callBase(ot)}}});(0,k.A)("dxMultiView",Et);const Dn=Et;var Zn=p(6942),gi=p(5107);const yo={top:"dx-tabpanel-tabs-position-top",right:"dx-tabpanel-tabs-position-right",bottom:"dx-tabpanel-tabs-position-bottom",left:"dx-tabpanel-tabs-position-left"},ko={top:"top",right:"right",bottom:"bottom",left:"left"},Ho={top:"bottom",right:"left",bottom:"top",left:"right"},ws=Dn.inherit({_getDefaultOptions(){return(0,x.X)(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,tabsPosition:ko.top,iconPosition:"start",stylingMode:"primary",onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:ot=>ot?ot.badge:void 0,_tabsIndicatorPosition:null})},_defaultOptionsRules(){const ot=(0,Me.ss)();return this.callBase().concat([{device:()=>"desktop"===Gn.A.real().deviceType&&!Gn.A.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>!Fo.touch,options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}},{device:()=>(0,Me.Ft)(ot),options:{stylingMode:"secondary"}},{device:()=>(0,Me.Nt)(ot),options:{iconPosition:"top"}}])},_init(){this.callBase(),this.$element().addClass("dx-tabpanel"),this._toggleTabPanelTabsPositionClass()},_getElementAria:()=>({role:"tabpanel"}),_getItemAria:()=>({role:"tabpanel"}),_initMarkup(){this.callBase(),this._createTitleActions(),this._renderLayout()},_prepareTabsItemTemplate(ot,Bt){const qt=(0,Oo.N)(ot?.icon);qt&&Bt.append(qt);const bn=(0,j.Qd)(ot)?ot?.title:ot;if((0,j.O9)(bn)&&!(0,j.Qd)(bn)){const kn=(0,w.A)("<span>").addClass("dx-tab-text-span");kn.append(Ri.A.createTextNode(bn));const yi=(0,w.A)("<span>").addClass("dx-tab-text-span-pseudo");yi.append(Ri.A.createTextNode(bn)),yi.appendTo(kn),kn.appendTo(Bt)}},_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({title:new Xi.U((ot,Bt)=>{this._prepareTabsItemTemplate(Bt,ot);const qt=(0,w.A)("<div>").addClass("dx-tab-text");ot.wrapInner(qt)},["title","icon"],this.option("integrationOptions.watchMethod"))})},_createTitleActions(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderLayout(){if(this._tabs)return;const ot=this.$element();this._$tabContainer=(0,w.A)("<div>").addClass("dx-tabpanel-tabs").appendTo(ot);const Bt=(0,w.A)("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(Bt,Zn.A,this._tabConfig()),this._$container=(0,w.A)("<div>").addClass("dx-tabpanel-container").appendTo(ot),this._$container.append(this._$wrapper)},_refreshActiveDescendant(){if(!this._tabs)return;const ot=this._tabs,Bt=ot.itemElements(),qt=(0,w.A)(Bt[ot.option("selectedIndex")]),bn=this.getFocusedItemId();this.setAria("controls",void 0,(0,w.A)(Bt)),this.setAria("controls",bn,qt)},_getTabsIndicatorPosition(){const{_tabsIndicatorPosition:ot,tabsPosition:Bt}=this.option();return ot??Ho[Bt]},_tabConfig(){const ot=this._getTabsIndicatorPosition();return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),repaintChangesOnly:this.option("repaintChangesOnly"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),badgeExpr:this.option("badgeExpr"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(Bt){this.option("selectedIndex",Bt.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(Bt){if("focusedElement"===Bt.name)if(Bt.value){const qt=(0,w.A)(Bt.value),bn=this._itemElements().eq(qt.index());this.option("focusedElement",(0,ie.cc)(bn))}else this.option("focusedElement",Bt.value)}.bind(this),onFocusIn:function(Bt){this._focusInHandler(Bt.event)}.bind(this),onFocusOut:function(Bt){this._isFocusOutHandlerExecuting||this._focusOutHandler(Bt.event)}.bind(this),orientation:this._getTabsOrientation(),iconPosition:this.option("iconPosition"),stylingMode:this.option("stylingMode"),_itemAttributes:{class:"dx-tabpanel-tab"},_indicatorPosition:ot}},_renderFocusTarget(){this._focusTarget().attr("tabIndex",-1)},_getTabsOrientation(){const{tabsPosition:ot}=this.option();return[ko.right,ko.left].includes(ot)?"vertical":"horizontal"},_getTabPanelTabsPositionClass(){switch(this.option("tabsPosition")){case ko.right:return yo.right;case ko.bottom:return yo.bottom;case ko.left:return yo.left;default:return yo.top}},_toggleTabPanelTabsPositionClass(){for(const Bt in yo)this.$element().removeClass(yo[Bt]);const ot=this._getTabPanelTabsPositionClass();this.$element().addClass(ot)},_updateTabsOrientation(){const ot=this._getTabsOrientation();this._setTabsOption("orientation",ot)},_toggleWrapperFocusedClass(ot){this._toggleFocusClass(ot,this._$wrapper)},_toggleDisabledFocusedClass(ot){this._focusTarget().toggleClass("dx-disabled-focused-tab",ot)},_updateFocusState(ot,Bt){this.callBase(ot,Bt);const qt=ot.target===this._tabs._focusTarget().get(0),bn=ot.target===this._focusTarget().get(0);if(qt&&this._toggleFocusClass(Bt,this._focusTarget()),qt||bn){const kn=this._isDisabled(this.option("focusedElement"));this._toggleWrapperFocusedClass(Bt&&!kn),this._toggleDisabledFocusedClass(Bt&&kn)}bn&&this._toggleFocusClass(Bt,this._tabs.option("focusedElement"))},_focusOutHandler(ot){this._isFocusOutHandlerExecuting=!0,this.callBase.apply(this,arguments),this._tabs._focusOutHandler(ot),this._isFocusOutHandlerExecuting=!1},_setTabsOption(ot,Bt){this._tabs&&this._tabs.option(ot,Bt)},_visibilityChanged(ot){ot&&this._tabs._dimensionChanged()},registerKeyHandler(ot,Bt){this.callBase(ot,Bt),this._tabs&&this._tabs.registerKeyHandler(ot,Bt)},repaint(){this.callBase(),this._tabs.repaint()},_updateTabsIndicatorPosition(){const ot=this._getTabsIndicatorPosition();this._setTabsOption("_indicatorPosition",ot)},_optionChanged(ot){const{name:Bt,value:qt,fullName:bn}=ot;switch(Bt){case"dataSource":default:this.callBase(ot);break;case"items":this._setTabsOption(Bt,this.option(Bt)),this.option("repaintChangesOnly")||this._tabs.repaint(),this.callBase(ot);break;case"width":this.callBase(ot),this._tabs.repaint();break;case"selectedIndex":case"selectedItem":if(this._setTabsOption(bn,qt),this.callBase(ot),!0===this.option("focusStateEnabled")){const kn=this.option("selectedIndex"),yi=this._itemElements().eq(kn);this.option("focusedElement",(0,ie.cc)(yi))}break;case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(bn,qt),this.callBase(ot);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(bn,qt);break;case"focusedElement":{const kn=qt&&(0,w.A)(qt).index(),yi=qt&&this._tabs._itemElements().eq(kn);if(this._setTabsOption("focusedElement",(0,ie.cc)(yi)),qt){const Hi=this._isDisabled(qt);this._toggleWrapperFocusedClass(!Hi),this._toggleDisabledFocusedClass(Hi)}this.callBase(ot);break}case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",qt);break;case"badgeExpr":this._invalidate();break;case"tabsPosition":this._toggleTabPanelTabsPositionClass(),this._updateTabsIndicatorPosition(),this._updateTabsOrientation();break;case"iconPosition":this._setTabsOption("iconPosition",qt);break;case"stylingMode":this._setTabsOption("stylingMode",qt);break;case"_tabsIndicatorPosition":this._setTabsOption("_indicatorPosition",qt)}}});ws.ItemClass=class mi extends gi.A{_renderWatchers(){return this._startWatcher("badge",M.lQ),super._renderWatchers()}},(0,k.A)("dxTabPanel",ws);const Us=ws;var Qs=p(3777),nr=p(6148),gn=p(5397),Xt=p(3538);class hn{constructor(Bt){this._options=Bt,this._itemsRunTimeInfo=this._options.itemsRunTimeInfo}findInstance(){return this._itemsRunTimeInfo.findWidgetInstanceByItem(this._options.item)}findItemContainer(){return this._itemsRunTimeInfo.findItemContainerByItem(this._options.item)}findPreparedItem(){return this._itemsRunTimeInfo.findPreparedItemByItem(this._options.item)}tryExecute(){Xt.A.abstract()}}const Wn=(ot,Bt)=>`${Bt?"tabs":"items"}[${ot}]`,Fi=(ot,Bt)=>(0,j.O9)(ot)&&(0,j.O9)(Bt)?`${ot}.${Bt}`:ot||Bt,io=ot=>ot?ot.replace(/\s/g,""):void 0,Mo=(ot,Bt)=>`${ot}.${Bt}`,rs=ot=>{const Bt=ot.split(".");return Bt[Bt.length-1].replace(/\[\d+]/,"")},$s=ot=>ot.indexOf("tabs")>-1,Es=(ot,Bt,qt)=>{const bn=ot.indexOf(Bt);if(bn>-1)return Wn(bn,qt);for(let kn=0;kn<ot.length;kn++){const yi=ot[kn],Hi=yi.tabs||yi.items;if(Hi){const co=Es(Hi,Bt,yi.tabs);if(co)return Fi(Wn(kn,qt),co)}}};class Cr extends hn{tryExecute(){const{value:Bt}=this._options,qt=this.findInstance();return!!qt&&(qt.option(Bt),!0)}}class Js extends hn{tryExecute(){const Bt=this.findInstance();if(Bt){const{optionName:qt,item:bn,value:kn}=this._options,yi=this._itemsRunTimeInfo.findItemIndexByItem(bn);if(yi>=0)return Bt.option(Mo(`items[${yi}]`,qt),kn),!0}return!1}}class Or extends hn{tryExecute(){return!1}}class rr extends hn{tryExecute(){const Bt=this.findPreparedItem();return!(null==Bt||!Bt._prepareGroupItemTemplate||!Bt._renderGroupContentTemplate||(Bt._prepareGroupItemTemplate(this._options.item.template),Bt._renderGroupContentTemplate(),0))}}class Tr extends hn{tryExecute(){const Bt=this.findInstance();if(Bt){const{value:qt}=this._options;return Bt.option("dataSource",qt),!0}return!1}}class ur extends hn{tryExecute(){const{item:Bt}=this._options,qt=this.findInstance(),bn=qt&&(0,gn.p)(qt.$element()[0],"dxValidator");if(bn&&Bt){const kn=co=>"required"===co.type,yi=(bn.option("validationRules")||[]).some(kn),Hi=(Bt.validationRules||[]).some(kn);if(!yi&&!Hi||yi&&Hi)return bn.option("validationRules",Bt.validationRules),!0}return!1}}class Ar extends hn{tryExecute(){const Bt=this.findItemContainer(),{previousValue:qt,value:bn}=this._options;return!!Bt&&(Bt.removeClass(qt).addClass(bn),!0)}}const jr=["items","isRequired","validationRules","visible"],Ir=ce.A.inherit({_init(){this.callBase(),this._dirtyFields=new Set,this._cachedColCountOptions=[],this._itemsRunTimeInfo=new li,this._groupsColCount=[],this._attachSyncSubscriptions()},_getDefaultOptions(){return(0,x.X)(this.callBase(),{formID:`dx-${new je.A}`,formData:{},colCount:1,screenByWidth:X.zY,colCountByScreen:void 0,labelLocation:"left",readOnly:!1,onFieldDataChanged:null,customizeItem:null,onEditorEnterKey:null,minColWidth:200,alignItemLabels:!0,alignItemLabelsInAllGroups:!0,alignRootItemLabels:!0,showColonAfterLabel:!0,showRequiredMark:!0,showOptionalMark:!1,requiredMark:"*",optionalMark:A.A.format("dxForm-optionalMark"),requiredMessage:A.A.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0,stylingMode:(0,zi.A)().editorStylingMode,labelMode:"outside",isDirty:!1})},_defaultOptionsRules(){return this.callBase().concat([{device:()=>(0,Me.Nt)(),options:{labelLocation:"top"}},{device:()=>(0,Me.gx)(),options:{showColonAfterLabel:!1}}])},_setOptionsByReference(){this.callBase(),(0,x.X)(this._optionsByReference,{formData:!0,validationGroup:!0})},_getGroupColCount:ot=>parseInt(ot.attr(et)),_applyLabelsWidthByCol(ot,Bt){let qt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function Qn(ot,Bt){const kn=ot.find(`${Bt} > .${Oe}:not(.dx-field-item-label-location-top) > .${Be}`),yi=kn.length;let Hi,co,Po=0;for(co=0;co<yi;co++)Hi=ei(kn[co]),Hi>Po&&(Po=Hi);for(co=0;co<yi;co++)kn[co].style.width=`${Po}px`}(ot,`.${qt.inOneColumn?le:Ee+Bt}${qt.excludeTabbed?`:not(.${qe})`:""}`)},_applyLabelsWidth(ot,Bt,qt,bn,kn){bn=qt?1:bn||this._getGroupColCount(ot);const yi={excludeTabbed:Bt,inOneColumn:qt};let Hi;for(Hi=0;Hi<bn;Hi++)this._applyLabelsWidthByCol(ot,Hi,yi,kn)},_getGroupElementsInColumn(ot,Bt,qt){const bn=(0,j.O9)(qt)?`.${Nt}${qt}`:"";return ot.find(`.${Ee}${Bt} > .${fe} > .${de}${bn}`)},_applyLabelsWidthWithGroups(ot,Bt,qt,bn){if(!0===this.option("alignRootItemLabels")){const yi=ot.find(`.${Ue}`);for(let Hi=0;Hi<Bt;Hi++)this._applyLabelsWidthByCol(yi,Hi,qt,bn)}if(this.option("alignItemLabelsInAllGroups"))this._applyLabelsWidthWithNestedGroups(ot,Bt,qt,bn);else{const yi=this.$element().find(`.${de}`);let Hi;for(Hi=0;Hi<yi.length;Hi++)this._applyLabelsWidth(yi.eq(Hi),qt,void 0,void 0,bn)}},_applyLabelsWidthWithNestedGroups(ot,Bt,qt,bn){const kn={excludeTabbed:qt};let yi,Hi,co,Po;for(yi=0;yi<Bt;yi++)for(Po=this._getGroupElementsInColumn(ot,yi),this._applyLabelsWidthByCol(Po,0,kn,bn),Hi=0;Hi<this._groupsColCount.length;Hi++){Po=this._getGroupElementsInColumn(ot,yi,this._groupsColCount[Hi]);const Ko=this._getGroupColCount(Po);for(co=1;co<Ko;co++)this._applyLabelsWidthByCol(Po,co,kn,bn)}},_labelLocation(){return this.option("labelLocation")},_alignLabelsInColumn(ot){let{layoutManager:Bt,inOneColumn:qt,$container:bn,excludeTabbed:kn,items:yi}=ot;if(!(0,X.Vd)()||"top"===this._labelLocation())return;const Hi=Gt(Bt._getMarkOptions());qt?this._applyLabelsWidth(bn,kn,!0,void 0,Hi):this._checkGrouping(yi)?this._applyLabelsWidthWithGroups(bn,Bt._getColCount(),kn,Hi):this._applyLabelsWidth(bn,kn,!1,Bt._getColCount(),Hi)},_prepareFormData(){(0,j.O9)(this.option("formData"))||this.option("formData",{})},_setStylingModeClass(){"underlined"===this.option("stylingMode")&&this.$element().addClass("dx-form-styling-mode-underlined")},_initMarkup(){Qs.A.addGroup(this._getValidationGroup(),!1),this._clearCachedInstances(),this._prepareFormData(),this.$element().addClass("dx-form"),this._setStylingModeClass(),this.callBase(),this.setAria("role","form",this.$element()),this.option("scrollingEnabled")&&this._renderScrollable(),this._renderLayout(),this._renderValidationSummary(),this._lastMarkupScreenFactor=this._targetScreenFactor||this._getCurrentScreenFactor(),this._attachResizeObserverSubscription()},_attachResizeObserverSubscription(){if((0,X.Vd)()){const ot=this.$element().get(0);_o.A.unobserve(ot),_o.A.observe(ot,()=>{this._resizeHandler()})}},_resizeHandler(){this._cachedLayoutManagers.length&&(0,b.__)(this._cachedLayoutManagers,(ot,Bt)=>{var qt;null===(qt=Bt.option("onLayoutChanged"))||void 0===qt||qt(Bt.isSingleColumnMode())})},_getCurrentScreenFactor(){return(0,X.Vd)()?(0,X.ne)(this.option("screenByWidth")):"lg"},_clearCachedInstances(){this._itemsRunTimeInfo.clear(),this._cachedLayoutManagers=[]},_alignLabels(ot,Bt){this._alignLabelsInColumn({$container:this.$element(),layoutManager:ot,excludeTabbed:!0,items:this.option("items"),inOneColumn:Bt}),(0,gs.ho)(this.$element().find(`.${nr.l}`))},_clean(){this._clearValidationSummary(),this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],this._lastMarkupScreenFactor=void 0,_o.A.unobserve(this.$element().get(0))},_renderScrollable(){const ot=this.option("useNativeScrolling");this._scrollable=new Bn.A(this.$element(),{useNative:!!ot,useSimulatedScrollbar:!ot,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent(){return this.option("scrollingEnabled")?(0,w.A)(this._scrollable.content()):this.$element()},_clearValidationSummary(){var ot;null===(ot=this._$validationSummary)||void 0===ot||ot.remove(),this._$validationSummary=void 0,this._validationSummary=void 0},_renderValidationSummary(){this._clearValidationSummary(),this.option("showValidationSummary")&&(this._$validationSummary=(0,w.A)("<div>").addClass("dx-form-validation-summary").appendTo(this._getContent()),this._validationSummary=this._$validationSummary.dxValidationSummary({validationGroup:this._getValidationGroup()}).dxValidationSummary("instance"))},_prepareItems(ot,Bt,qt,bn){if(ot){const kn=[];for(let yi=0;yi<ot.length;yi++){let Hi=ot[yi];const co=Fi(qt,Wn(yi,bn)),Po={item:Hi,itemIndex:yi,path:co},Ko=this._itemsRunTimeInfo.add(Po);if((0,j.Kg)(Hi)&&(Hi={dataField:Hi}),(0,j.Gv)(Hi)){const Ft=(0,S.A)({},Hi);Po.preparedItem=Ft,Ft.guid=Ko,this._tryPrepareGroupItemCaption(Ft),this._tryPrepareGroupItem(Ft),this._tryPrepareTabbedItem(Ft,co),this._tryPrepareItemTemplate(Ft),Bt&&(Ft.cssItemClass=qe),Ft.items&&(Ft.items=this._prepareItems(Ft.items,Bt,co)),kn.push(Ft)}else kn.push(Hi)}return kn}},_tryPrepareGroupItemCaption(ot){"group"===ot.itemType&&(ot._prepareGroupCaptionTemplate=Bt=>{ot.captionTemplate&&(ot.groupCaptionTemplate=this._getTemplate(Bt)),ot.captionTemplate=this._itemGroupTemplate.bind(this,ot)},ot._prepareGroupCaptionTemplate(ot.captionTemplate))},_tryPrepareGroupItem(ot){"group"===ot.itemType&&(ot.alignItemLabels=(0,M.YD)(ot.alignItemLabels,!0),ot._prepareGroupItemTemplate=Bt=>{ot.template&&(ot.groupContentTemplate=this._getTemplate(Bt)),ot.template=this._itemGroupTemplate.bind(this,ot)},ot._prepareGroupItemTemplate(ot.template))},_tryPrepareTabbedItem(ot,Bt){"tabbed"===ot.itemType&&(ot.template=this._itemTabbedTemplate.bind(this,ot),ot.tabs=this._prepareItems(ot.tabs,!0,Bt,!0))},_tryPrepareItemTemplate(ot){ot.template&&(ot.template=this._getTemplate(ot.template))},_checkGrouping(ot){if(ot)for(let Bt=0;Bt<ot.length;Bt++)if("group"===ot[Bt].itemType)return!0},_renderLayout(){const ot=this;let Bt=ot.option("items");const qt=ot._getContent();Bt=ot._prepareItems(Bt),ot._rootLayoutManager=ot._renderLayoutManager(qt,this._createLayoutManagerOptions(Bt,{isRoot:!0,colCount:ot.option("colCount"),alignItemLabels:ot.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged(bn){ot._alignLabels.bind(ot)(ot._rootLayoutManager,bn)},onContentReady(bn){ot._alignLabels(bn.component,bn.component.isSingleColumnMode())}}))},_tryGetItemsForTemplate:ot=>ot.items||[],_itemTabbedTemplate(ot,Bt,qt){const bn=(0,w.A)("<div>").appendTo(qt),kn=(0,x.X)({},ot.tabPanelOptions,{dataSource:ot.tabs,onItemRendered:co=>{var Po,Ko;null===(Po=ot.tabPanelOptions)||void 0===Po||null===(Ko=Po.onItemRendered)||void 0===Ko||Ko.call(Po,co),(0,gs.I9)(co.itemElement)},itemTemplate:(co,Po,Ko)=>{const Ft=(0,w.A)(Ko),Wt=(0,M.YD)(co.alignItemLabels,!0),xt=this._renderLayoutManager(Ft,this._createLayoutManagerOptions(this._tryGetItemsForTemplate(co),{colCount:co.colCount,alignItemLabels:Wt,screenByWidth:this.option("screenByWidth"),colCountByScreen:co.colCountByScreen,cssItemClass:co.cssItemClass,onLayoutChanged:Fe=>{this._alignLabelsInColumn({$container:Ft,layoutManager:xt,items:co.items,inOneColumn:Fe})}}));this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(co.guid,{layoutManager:xt}),Wt&&this._alignLabelsInColumn({$container:Ft,layoutManager:xt,items:co.items,inOneColumn:xt.isSingleColumnMode()})}}),yi=(co,Po)=>{Array.isArray(co)&&co.forEach(Ko=>this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(Ko.guid,{widgetInstance:Po}))},Hi=this._createComponent(bn,Us,kn);(0,w.A)(qt).parent().addClass("dx-field-item-has-tabs"),Hi.on("optionChanged",co=>{"dataSource"===co.fullName&&yi(co.value,co.component)}),yi([{guid:ot.guid},...ot.tabs??[]],Hi)},_itemGroupCaptionTemplate(ot,Bt,qt){if(ot.groupCaptionTemplate){const bn=(0,w.A)("<div>").addClass("dx-form-group-custom-caption").attr("id",qt).appendTo(Bt);return ot._renderGroupCaptionTemplate=()=>{ot.groupCaptionTemplate.render({model:{component:this,caption:ot.caption,name:ot.name},container:(0,ie.cc)(bn)})},void ot._renderGroupCaptionTemplate()}ot.caption&&(0,w.A)("<span>").addClass("dx-form-group-caption").text(ot.caption).attr("id",qt).appendTo(Bt)},_itemGroupContentTemplate(ot,Bt){const qt=(0,w.A)("<div>").addClass("dx-form-group-content").appendTo(Bt);if(ot.groupContentTemplate)ot._renderGroupContentTemplate=()=>{qt.empty();const bn={formData:this.option("formData"),component:this};ot.groupContentTemplate.render({model:bn,container:(0,ie.cc)(qt)})},ot._renderGroupContentTemplate();else{const bn=this._renderLayoutManager(qt,this._createLayoutManagerOptions(this._tryGetItemsForTemplate(ot),{colCount:ot.colCount,colCountByScreen:ot.colCountByScreen,alignItemLabels:ot.alignItemLabels,cssItemClass:ot.cssItemClass}));this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(ot.guid,{layoutManager:bn});const kn=bn._getColCount();this._groupsColCount.includes(kn)||this._groupsColCount.push(kn),Bt.addClass(Nt+kn),Bt.attr(et,kn)}},_itemGroupTemplate(ot,Bt,qt){const{id:bn}=Bt.editorOptions.inputAttr,kn=(0,w.A)("<div>").toggleClass("dx-form-group-with-caption",(0,j.O9)(ot.caption)&&ot.caption.length).addClass(de).appendTo(qt);this.setAria({role:"group",labelledby:bn},kn),(0,w.A)(qt).parent().addClass("dx-field-item-has-group"),this._itemGroupCaptionTemplate(ot,kn,bn),this._itemGroupContentTemplate(ot,kn)},_createLayoutManagerOptions(ot,Bt){return function ir(ot){let{form:Bt,$formElement:qt,formOptions:bn,items:kn,validationGroup:yi,extendedLayoutManagerOptions:Hi,onFieldDataChanged:co,onContentReady:Po,onDisposing:Ko,onFieldItemRendered:Ft}=ot;return(0,x.X)({form:Bt,items:kn,$formElement:qt,validationGroup:yi,onFieldDataChanged:co,onContentReady:Po,onDisposing:Ko,onFieldItemRendered:Ft,validationBoundary:bn.scrollingEnabled?qt:void 0,scrollingEnabled:bn.scrollingEnabled,showRequiredMark:bn.showRequiredMark,showOptionalMark:bn.showOptionalMark,requiredMark:bn.requiredMark,optionalMark:bn.optionalMark,requiredMessage:bn.requiredMessage,screenByWidth:bn.screenByWidth,layoutData:bn.formData,labelLocation:bn.labelLocation,customizeItem:bn.customizeItem,minColWidth:bn.minColWidth,showColonAfterLabel:bn.showColonAfterLabel,onEditorEnterKey:bn.onEditorEnterKey,labelMode:bn.labelMode},{isRoot:Hi.isRoot,colCount:Hi.colCount,alignItemLabels:Hi.alignItemLabels,cssItemClass:Hi.cssItemClass,colCountByScreen:Hi.colCountByScreen,onLayoutChanged:Hi.onLayoutChanged,width:Hi.width})}({form:this,formOptions:this.option(),$formElement:this.$element(),items:ot,validationGroup:this._getValidationGroup(),extendedLayoutManagerOptions:Bt,onFieldDataChanged:qt=>{this._isDataUpdating||this._triggerOnFieldDataChanged(qt)},onContentReady:qt=>{this._itemsRunTimeInfo.addItemsOrExtendFrom(qt.component._itemsRunTimeInfo),Bt.onContentReady&&Bt.onContentReady(qt)},onDisposing:qt=>{let{component:bn}=qt;const kn=bn.getItemsRunTimeInfo();this._itemsRunTimeInfo.removeItemsByItems(kn)},onFieldItemRendered:()=>{var qt;null===(qt=this._validationSummary)||void 0===qt||qt.refreshValidationGroup()}})},_renderLayoutManager(ot,Bt){this._cachedColCountOptions.push({colCountByScreen:(0,x.X)({lg:Bt.colCount,md:Bt.colCount,sm:Bt.colCount,xs:1},Bt.colCountByScreen)});const bn=(0,w.A)("<div>");bn.appendTo(ot);const kn=this._createComponent(bn,"dxLayoutManager",Bt);return kn.on("autoColCountChanged",()=>{this._clearAutoColCountChangedTimeout(),this.autoColCountChangedTimeoutId=setTimeout(()=>!this._disposed&&this._refresh(),0)}),this._cachedLayoutManagers.push(kn),kn},_getValidationGroup(){return this.option("validationGroup")||this},_createComponent(ot,Bt,qt){return this._extendConfig(qt=qt||{},{readOnly:this.option("readOnly")}),this.callBase(ot,Bt,qt)},_attachSyncSubscriptions(){const ot=this;ot.on("optionChanged",Bt=>{const qt=Bt.fullName;"formData"===qt&&((0,j.O9)(Bt.value)||ot._options.silent("formData",Bt.value={}),ot._triggerOnFieldDataChangedByDataSet(Bt.value)),ot._cachedLayoutManagers.length&&(0,b.__)(ot._cachedLayoutManagers,(bn,kn)=>{"formData"===qt&&(ot._isDataUpdating=!0,kn.option("layoutData",Bt.value),ot._isDataUpdating=!1),("readOnly"===Bt.name||"disabled"===Bt.name)&&kn.option(qt,Bt.value)})})},_optionChanged(ot){const Bt=ot.fullName.split(".");Bt.length>1&&-1!==Bt[0].search("items")&&this._itemsOptionChangedHandler(ot)||Bt.length>1&&-1!==Bt[0].search("formData")&&this._formDataOptionChangedHandler(ot)||this._defaultOptionChangedHandler(ot)},_defaultOptionChangedHandler(ot){switch(ot.name){case"formData":this.option("items")?(0,j.RI)(ot.value)&&this._clear():this._invalidate();break;case"onFieldDataChanged":case"alignRootItemLabels":case"readOnly":case"isDirty":break;case"items":case"colCount":case"onEditorEnterKey":case"labelLocation":case"labelMode":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":case"stylingMode":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"width":this.callBase(ot),this._rootLayoutManager.option(ot.name,ot.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"validationGroup":Qs.A.removeGroup(ot.previousValue||this),this._invalidate();break;default:this.callBase(ot)}},_itemsOptionChangedHandler(ot){const Bt=ot.fullName.split("."),{value:qt}=ot,bn=this._getItemPath(Bt),kn=this.option(bn),yi=ot.fullName.replace(`${bn}.`,""),Hi=yi.split(".")[0].replace(/\[\d+]/,""),co=this._tryCreateItemOptionAction(Hi,kn,kn[Hi],ot.previousValue,bn);let Po=this._tryExecuteItemOptionAction(co)||this._tryChangeLayoutManagerItemOption(ot.fullName,qt);if(!Po&&kn){this._changeItemOption(kn,yi,qt);const Ko=this._generateItemsFromData(this.option("items"));this.option("items",Ko),Po=!0}return Po},_formDataOptionChangedHandler(ot){const Bt=ot.fullName.split("."),{value:qt}=ot,bn=Bt.slice(1).join("."),kn=this.getEditor(bn);return kn?kn.option("value",qt):this._triggerOnFieldDataChanged({dataField:bn,value:qt}),!0},_tryCreateItemOptionAction(ot,Bt,qt,bn,kn){return"tabs"===ot&&(this._itemsRunTimeInfo.removeItemsByPathStartWith(`${kn}.tabs`),qt=this._prepareItems(qt,!0,kn,!0)),((ot,Bt)=>{switch(ot){case"editorOptions":case"buttonOptions":return new Cr(Bt);case"validationRules":return new ur(Bt);case"cssClass":return new Ar(Bt);case"badge":case"disabled":case"icon":case"tabTemplate":case"title":return new Js((0,x.X)(Bt,{optionName:ot}));case"tabs":return new Tr(Bt);case"template":{var qt,bn;const kn=(null==Bt||null===(qt=Bt.item)||void 0===qt?void 0:qt.itemType)??(null===(bn=Bt.itemsRunTimeInfo.findPreparedItemByItem(Bt?.item))||void 0===bn?void 0:bn.itemType);return"simple"===kn?new Or(Bt):"group"===kn?new rr(Bt):new Js((0,x.X)(Bt,{optionName:ot}))}default:return null}})(ot,{item:Bt,value:qt,previousValue:bn,itemsRunTimeInfo:this._itemsRunTimeInfo})},_tryExecuteItemOptionAction:ot=>ot&&ot.tryExecute(),_updateValidationGroupAndSummaryIfNeeded(ot){const Bt=rs(ot);var qt;jr.includes(Bt)&&(Qs.A.addGroup(this._getValidationGroup(),!1),this.option("showValidationSummary"))&&(null===(qt=this._validationSummary)||void 0===qt||qt.refreshValidationGroup())},_setLayoutManagerItemOption(ot,Bt,qt,bn){if(this._updateLockCount>0){!ot._updateLockCount&&ot.beginUpdate();const yi=this._itemsRunTimeInfo.findKeyByPath(bn);this.postponedOperations.add(yi,()=>(!ot._disposed&&ot.endUpdate(),(0,$o.cY)().resolve()))}const kn=yi=>{if(yi.component.off("contentReady",kn),$s(bn)){const Hi=(ot=>{const Bt=ot.split("."),qt=[...Bt];for(let bn=Bt.length-1;bn>=0;bn--){if($s(Bt[bn]))return qt.join(".");qt.splice(bn,1)}return""})(bn),co=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(Hi);co&&this._alignLabelsInColumn({items:co.option("items"),layoutManager:co,$container:co.$element(),inOneColumn:co.isSingleColumnMode()})}else this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode())};ot.on("contentReady",kn),ot.option(Bt,qt),this._updateValidationGroupAndSummaryIfNeeded(Bt)},_tryChangeLayoutManagerItemOption(ot,Bt){const qt=ot.split("."),bn=rs(ot);if("items"===bn&&qt.length>1){const kn=this._getItemPath(qt),yi=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(kn);if(yi){this._itemsRunTimeInfo.removeItemsByItems(yi.getItemsRunTimeInfo());const Hi=this._prepareItems(Bt,!1,kn);return this._setLayoutManagerItemOption(yi,bn,Hi,kn),!0}}else if(qt.length>2){const kn=qt.length-2,yi=this._getItemPath(qt.slice(0,kn)),Hi=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(yi);if(Hi){const co=Mo(qt[kn],bn);if("editorType"===bn&&Hi.option(co)!==Bt)return!1;if("visible"===bn){const Po=this.option(Mo(yi,"items"));if(Po&&Po.length){const Ko=Hi.option("items");Po.forEach((Ft,Wt)=>{Ko[Wt].visibleIndex=Ft.visibleIndex})}}return this._setLayoutManagerItemOption(Hi,co,Bt,yi),!0}}return!1},_tryChangeLayoutManagerItemOptions(ot,Bt){let qt;return this.beginUpdate(),(0,b.__)(Bt,(bn,kn)=>{if(qt=this._tryChangeLayoutManagerItemOption(Mo(ot,bn),kn),!qt)return!1}),this.endUpdate(),qt},_getItemPath(ot){let qt,Bt=ot[0];for(qt=1;qt<ot.length&&-1!==ot[qt].search(/items\[\d+]|tabs\[\d+]/);qt++)Bt+=`.${ot[qt]}`;return Bt},_triggerOnFieldDataChanged(ot){this._updateIsDirty(ot.dataField),this._createActionByOption("onFieldDataChanged")(ot)},_triggerOnFieldDataChangedByDataSet(ot){ot&&(0,j.Gv)(ot)&&Object.keys(ot).forEach(Bt=>{this._triggerOnFieldDataChanged({dataField:Bt,value:ot[Bt]})})},_updateFieldValue(ot,Bt){if((0,j.O9)(this.option("formData"))){const qt=this.getEditor(ot);this.option(`formData.${ot}`,Bt),qt&&qt.option("value")!==Bt&&qt.option("value",Bt)}},_generateItemsFromData(ot){const Bt=this.option("formData"),qt=[];return!ot&&(0,j.O9)(Bt)&&(0,b.__)(Bt,bn=>{qt.push({dataField:bn})}),ot&&(0,b.__)(ot,(bn,kn)=>{(0,j.Gv)(kn)?qt.push(kn):qt.push({dataField:kn})}),qt},_getItemByField(ot,Bt){const qt=this,bn=(0,j.Gv)(ot)?ot:qt._getFieldParts(ot),{fieldName:kn}=bn,{fieldPath:yi}=bn;let Hi;return Bt.length&&(0,b.__)(Bt,(co,Po)=>{const{itemType:Ko}=Po;if(yi.length){const Ft=yi.slice();Po=qt._getItemByFieldPath(Ft,kn,Po)}else if("group"===Ko&&!Po.caption&&!Po.name||"tabbed"===Ko&&!Po.name){const Ft=qt._getSubItemField(Ko);Po.items=qt._generateItemsFromData(Po.items),Po=qt._getItemByField({fieldName:kn,fieldPath:yi},Po[Ft])}if(((ot,Bt)=>!!ot&&(ot.dataField===Bt||ot.name===Bt||io(ot.title)===Bt||"group"===ot.itemType&&io(ot.caption)===Bt))(Po,kn))return Hi=Po,!1}),Hi},_getFieldParts(ot){let Bt=ot,qt=Bt.indexOf(".");const bn=[];for(;-1!==qt;)bn.push(Bt.substr(0,qt)),Bt=Bt.substr(qt+1),qt=Bt.indexOf(".");return{fieldName:Bt,fieldPath:bn.reverse()}},_getItemByFieldPath(ot,Bt,qt){const bn=this,{itemType:kn}=qt,yi=bn._getSubItemField(kn),Hi="group"===kn||"tabbed"===kn||qt.title;let co;do{if(!Hi)break;{const Po=qt.name||qt.caption||qt.title,Ko=(0,j.O9)(Po),Ft=io(Po);let Wt;if(qt[yi]=bn._generateItemsFromData(qt[yi]),Ko&&(Wt=ot.pop()),!ot.length&&(co=bn._getItemByField(Bt,qt[yi]),co))break;(!Ko||Ko&&Ft===Wt)&&ot.length&&(co=bn._searchItemInEverySubItem(ot,Bt,qt[yi]))}}while(ot.length&&!(0,j.O9)(co));return co},_getSubItemField:ot=>"tabbed"===ot?"tabs":"items",_searchItemInEverySubItem(ot,Bt,qt){const bn=this;let kn;return(0,b.__)(qt,(yi,Hi)=>{if(kn=bn._getItemByFieldPath(ot.slice(),Bt,Hi),kn)return!1}),kn||(kn=!1),kn},_changeItemOption(ot,Bt,qt){(0,j.Gv)(ot)&&(ot[Bt]=qt)},_dimensionChanged(){const ot=this._getCurrentScreenFactor();this._lastMarkupScreenFactor!==ot&&(this._isColCountChanged(this._lastMarkupScreenFactor,ot)&&(this._targetScreenFactor=ot,this._refresh(),this._targetScreenFactor=void 0),this._lastMarkupScreenFactor=ot)},_isColCountChanged(ot,Bt){let qt=!1;return(0,b.__)(this._cachedColCountOptions,(bn,kn)=>{if(kn.colCountByScreen[ot]!==kn.colCountByScreen[Bt])return qt=!0,!1}),qt},_refresh(){U.A.trigger(this.$element().find(".dx-state-focused > :not(.dx-dropdowneditor-input-wrapper) input, .dx-state-focused textarea"),"change"),this.callBase()},_updateIsDirty(ot){const Bt=this.getEditor(ot);Bt&&(Bt.option("isDirty")?this._dirtyFields.add(ot):this._dirtyFields.delete(ot),this.option("isDirty",!!this._dirtyFields.size))},updateRunTimeInfoForEachEditor(ot){this._itemsRunTimeInfo.each((Bt,qt)=>{const{widgetInstance:bn}=qt;(0,j.O9)(bn)&&xn.A.isEditor(bn)&&ot(bn)})},_clear(){this.updateRunTimeInfoForEachEditor(ot=>{ot.clear(),ot.option("isValid",!0)}),Qs.A.resetGroup(this._getValidationGroup())},_updateData(ot,Bt,qt){const bn=this,kn=qt?Bt:ot;(0,j.Gv)(kn)?(0,b.__)(kn,(yi,Hi)=>{bn._updateData(qt?`${ot}.${yi}`:yi,Hi,(0,j.Gv)(Hi))}):(0,j.Kg)(ot)&&bn._updateFieldValue(ot,Bt)},registerKeyHandler(ot,Bt){this.callBase(ot,Bt),this._itemsRunTimeInfo.each((qt,bn)=>{(0,j.O9)(bn.widgetInstance)&&bn.widgetInstance.registerKeyHandler(ot,Bt)})},_focusTarget(){return this.$element().find(`.${fe} [tabindex]`).first()},_visibilityChanged(){this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode())},_clearAutoColCountChangedTimeout(){this.autoColCountChangedTimeoutId&&(clearTimeout(this.autoColCountChangedTimeoutId),this.autoColCountChangedTimeoutId=void 0)},_dispose(){this._clearAutoColCountChangedTimeout(),Qs.A.removeGroup(this._getValidationGroup()),this.callBase()},clear(){this._clear()},resetValues(){this._clear()},reset(ot){this.updateRunTimeInfoForEachEditor(Bt=>{const qt=Bt.option("name");ot&&qt in ot?Bt.reset(ot[qt]):Bt.reset()}),this._renderValidationSummary()},updateData(ot,Bt){this._updateData(ot,Bt)},getEditor(ot){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(ot)||this._itemsRunTimeInfo.findWidgetInstanceByName(ot)},getButton(ot){return this._itemsRunTimeInfo.findWidgetInstanceByName(ot)},updateDimensions(){const ot=this,Bt=(0,$o.cY)();return ot._scrollable?ot._scrollable.update().done(()=>{Bt.resolveWith(ot)}):Bt.resolveWith(ot),Bt.promise()},itemOption(ot,Bt,qt){const bn=this._generateItemsFromData(this.option("items")),kn=this._getItemByField(ot,bn),yi=Es(bn,kn);if(kn)switch(arguments.length){case 1:return kn;case 3:{const Hi=this._tryCreateItemOptionAction(Bt,kn,qt,kn[Bt],yi);this._changeItemOption(kn,Bt,qt);const co=Mo(yi,Bt);!this._tryExecuteItemOptionAction(Hi)&&!this._tryChangeLayoutManagerItemOption(co,qt)&&this.option("items",bn);break}default:if((0,j.Gv)(Bt)&&!this._tryChangeLayoutManagerItemOptions(yi,Bt)){let Hi;(0,b.__)(Bt,(co,Po)=>{const Ko=this._tryCreateItemOptionAction(co,kn,Po,kn[co],yi);this._changeItemOption(kn,co,Po),!Hi&&!this._tryExecuteItemOptionAction(Ko)&&(Hi=!0)}),Hi&&this.option("items",bn)}}},validate(){return Qs.A.validateGroup(this._getValidationGroup())},getItemID(ot){return`dx_${this.option("formID")}_${ot||new je.A}`},getTargetScreenFactor(){return this._targetScreenFactor}});(0,k.A)("dxForm",Ir);const oa=Ir},5503:(En,it,p)=>{"use strict";function S(){throw new Error("AngularJS v1.x is not loaded!")}p.d(it,{$F:()=>Ie,A6:()=>Se,C2:()=>F,DT:()=>Re,Dq:()=>X,Eq:()=>H,F0:()=>be,FJ:()=>M,Je:()=>Q,KU:()=>L,Ke:()=>R,ND:()=>v,Nw:()=>w,TH:()=>ee,UU:()=>J,_e:()=>U,a4:()=>W,a_:()=>A,k5:()=>Pe,mG:()=>G,oE:()=>P,sK:()=>ie,yq:()=>z});const d=()=>S();d.cleanData=S;let m={bootstrap:S,module:S,element:d,injector:S,version:void 0,resumeBootstrap:S,getTestability:S};try{window.hasOwnProperty("angular")&&(m=window.angular)}catch{}const w=(Ce,ye,Me)=>m.bootstrap(Ce,ye,Me),P=(Ce,ye)=>m.module(Ce,ye),v=Ce=>m.element(Ce);v.cleanData=Ce=>m.element.cleanData(Ce);const F="$compile",X="$controller",U="$delegate",A="$httpBackend",M="$injector",H="$interval",J="$parse",R="$provide",L="$rootElement",G="$rootScope",Q="$scope",z="$templateCache",ee="$$testability",be="$$angularDowngradedModuleCount",Re="$$angularInjector",Se="$$angularLazyModuleRef",Pe="$$angularUpgradeAppType",Ie="?^^"+Re,W="?ngModel",ie="$$UpgradeModule"},5530:(En,it,p)=>{"use strict";p.d(it,{A:()=>Me});var S=p(5704),d=p(3090),m=p(1830),T=p(4017),C=p(6110),e=p(5737),k=p(1973),w=p(6054),P=p(2720),v=p(4072),x=p(9209),b=p(3949),B=p(9212);const J=["info","warning","error","success"],R=[],G={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left",of:null,offset:"0 0"}},Q={h:0,v:0};(0,P.A.add)(()=>{v.A.subscribeGlobal(w.A.getDocument(),x.A.down,_e=>{for(let ke=R.length-1;ke>=0;ke--)if(!R[ke]._proxiedDocumentDownHandler(_e))return})});const K=b.A.inherit({_getDefaultOptions(){return(0,d.X)(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},shading:!1,height:"auto",hideTopOverlayHandler:null,preventScrollEvents:!1,closeOnSwipe:!0,closeOnClick:!1})},_defaultOptionsRules(){const _e={displayTime:(0,B.Nt)()?4e3:2e3,hideOnOutsideClick:!0,animation:{show:{type:"fade",duration:200,from:0,to:1},hide:{type:"fade",duration:200,from:1,to:0}}};return this.callBase().concat([{device:ke=>"phone"===ke.deviceType,options:(0,e.A)({width:"calc(100vw - 40px)"},_e)},{device:ke=>"tablet"===ke.deviceType,options:(0,e.A)({width:"auto",maxWidth:"80vw"},_e)},{device:ke=>(0,B.Nt)()&&"desktop"===ke.deviceType,options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init(){this.callBase(),this._posStringToObject()},_renderContentImpl(){this._message=(0,S.A)("<div>").addClass("dx-toast-message").text(this.option("message")).appendTo(this.$content()),this.setAria("role","alert",this._message),J.includes(this.option("type").toLowerCase())&&this.$content().prepend((0,S.A)("<div>").addClass("dx-toast-icon")),this.callBase()},_render(){this.callBase(),this.$element().addClass("dx-toast"),this.$wrapper().addClass("dx-toast-wrapper"),this.$content().addClass("dx-toast-"+String(this.option("type")).toLowerCase()),this.$content().addClass("dx-toast-content"),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_toggleCloseEvents(_e){const ke=`dx${_e.toLowerCase()}`;v.A.off(this.$content(),ke),this.option(`closeOn${_e}`)&&v.A.on(this.$content(),ke,this.hide.bind(this))},_posStringToObject(){if(!(0,m.Kg)(this.option("position")))return;const _e=this.option("position").split(" ")[0],ke=this.option("position").split(" ")[1];switch(this.option("position",(0,d.X)({boundaryOffset:Q},G[_e])),ke){case"center":case"left":case"right":this.option("position").at+=` ${ke}`,this.option("position").my+=` ${ke}`}},_show(){return this.callBase.apply(this,arguments).always(()=>{clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))})},_overlayStack:()=>R,_zIndexInitValue(){return this.callBase()+8e3},_dispose(){clearTimeout(this._hideTimeout),this.callBase()},_optionChanged(_e){switch(_e.name){case"type":this.$content().removeClass("dx-toast-"+_e.previousValue),this.$content().addClass("dx-toast-"+String(_e.value).toLowerCase());break;case"message":this._message&&this._message.text(_e.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":break;default:this.callBase(_e)}}});(0,k.A)("dxToast",K);const re=K,be=(0,C.zk)();let ce=null;const Re={},he=(_e,ke)=>{let{toastWidth:Ye,toastHeight:de,windowHeight:Ae,windowWidth:pe}=ke;switch(_e){case"top left":return{top:10,left:10};case"top right":return{top:10,right:10};case"bottom left":return{bottom:10,left:10};case"bottom right":return{bottom:10,right:10};case"top center":return{top:10,left:Math.round(pe/2-Ye/2)};case"left center":return{top:Math.round(Ae/2-de/2),left:10};case"right center":return{top:Math.round(Ae/2-de/2),right:10};case"center":return{top:Math.round(Ae/2-de/2),left:Math.round(pe/2-Ye/2)};default:return{bottom:10,left:Math.round(pe/2-Ye/2)}}},Ce=(_e,ke,Ye)=>{const{toastWidth:de,toastHeight:Ae,windowHeight:pe,windowWidth:Ee}=Ye;switch(_e.replace(/-push|-stack/g,"")){case"up":return{bottom:ke.bottom??pe-Ae-ke.top,top:"",left:ke.left??"",right:ke.right??""};case"down":return{top:ke.top??pe-Ae-ke.bottom,bottom:"",left:ke.left??"",right:ke.right??""};case"left":return{right:ke.right??Ee-de-ke.left,left:"",top:ke.top??"",bottom:ke.bottom??""};case"right":return{left:ke.left??Ee-de-ke.right,right:"",top:ke.top??"",bottom:ke.bottom??""}}},Me=function Se(_e,ke,Ye){const de=(0,m.Qd)(_e)?_e:{message:_e},Ae=(0,m.Qd)(ke)?ke:void 0,pe=(0,m.Qd)(ke)?void 0:ke,{onHidden:Ee}=de;if(null!=Ae&&Ae.position){const{position:le}=Ae,Ke=Ae.direction||(_e=>(0,m.Kg)(_e)&&_e.includes("top")?"down-push":"up-push")(le),Be=(0,m.Kg)(le)?le:`${le.top}-${le.left}-${le.bottom}-${le.right}`,{onShowing:q}=de,Oe=(_e=>Re[_e]||(_e=>{const ke=(0,S.A)("<div>").appendTo((0,T.Uq)());return Re[_e]=ke,ke})(_e))(Be);((_e,ke)=>{const Ye=`dx-toast-stack dx-toast-stack-${ke}-direction`;_e.removeAttr("class").addClass(Ye)})(Oe,Ke),(0,d.X)(de,{container:Oe,_skipContentPositioning:!0,onShowing(fe){((_e,ke,Ye)=>{const{offsetWidth:de,offsetHeight:Ae}=_e.children().first().get(0),pe={toastWidth:de,toastHeight:Ae,windowHeight:be.innerHeight,windowWidth:be.innerWidth},Ee=(0,m.Kg)(Ye)?he(Ye,pe):Ye,le=Ce(ke,Ee,pe);_e.css(le)})(Oe,Ke,le),q?.(fe)}})}(0,d.X)(de,{type:pe,displayTime:Ye,onHidden(le){(0,S.A)(le.element).remove(),Ee?.(le)}}),ce=(0,S.A)("<div>").appendTo((0,T.Uq)()),new re(ce,de).show()}},5574:(En,it,p)=>{"use strict";p.d(it,{$:()=>S});var S=function(d){return d[d.Trace=0]="Trace",d[d.Debug=1]="Debug",d[d.Information=2]="Information",d[d.Warning=3]="Warning",d[d.Error=4]="Error",d[d.Critical=5]="Critical",d[d.None=6]="None",d}(S||{})},5626:(En,it,p)=>{"use strict";p.d(it,{o:()=>k});var S=p(4882),d=p(2198),m=p(5981),T=p(8503),C=p(656),e=p(1714);let k=(()=>{var w;class P{constructor(x,b,B){this.router=x,this.upgrade=b,this.backButtonService=B,this.currentRoute$=new m.t({angularRoute:"",angularJsState:"",fromAngularJs:!1}),this.switchState=(j,F)=>{this.upgrade.injector.get("$rootScope").$state.go(j,F)},this.trackAngularRouteChanges()}trackAngularRouteChanges(){this.router.events.pipe((0,T.p)(x=>x instanceof S.wF)).subscribe(x=>{this.currentRoute$.next({angularRoute:x.urlAfterRedirects,angularJsState:this.currentRoute$.value.angularJsState,fromAngularJs:!1})})}trackAngularJsStateChange(x){this.currentRoute$.next({angularRoute:this.currentRoute$.value.angularRoute,angularJsState:x,fromAngularJs:!0}),this.backButtonService.setState(x)}getCurrentRouteState(){return this.currentRoute$.value}getRouteState$(){return this.currentRoute$.asObservable()}triggerApplyInAngularJs(){try{const b=this.upgrade.injector.get("$rootScope");b?b.$apply():console.error("AngularJS $rootScope not found.")}catch(x){console.error("Error accessing AngularJS services:",x)}}static#e=w=()=>(this.\u0275fac=function(b){return new(b||P)(C.KVO(S.Ix),C.KVO(d.be),C.KVO(e.D))},this.\u0275prov=C.jDH({token:P,factory:P.\u0275fac,providedIn:"root"}))}return w(),P})()},5634:(En,it,p)=>{"use strict";p.d(it,{q:()=>m});var S=p(3746),d=p(656);let m=(()=>{var T;class C{constructor(k){this.scopeService=k,this.isCordovaReady=!1,this.scope=this.scopeService.getScope(),document.addEventListener("deviceready",()=>{this.isCordovaReady=!0,this.cordova=window.cordova,console.log("Cordova is ready")},!1)}isCordovaAvailable(){return this.isCordovaReady&&this.cordova}openInAppBrowser(k){this.isCordovaReady&&this.cordova&&this.cordova.InAppBrowser?"android"===this.cordova.platformId&&k.isPdf?this.cordova.InAppBrowser.open("/Content/pdfview/web/?file="+k.uri,"_blank","location=yes,hidenavigationbuttons=yes,hideurlbar=yes,closebuttoncaption="+this.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")):this.cordova.InAppBrowser.open(k.uri,"_system","location=yes,closebuttoncaption="+this.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")):console.error("Cordova is not ready or InAppBrowser is not available")}openUrlInAppBrowser(k){if(!this.isCordovaAvailable())return console.error("Cordova is not available, using window.open instead"),void window.open(k,"_blank");const w=this.scope.currentScope.network.settings.configurations.inAppBrowserOnly,v=this.getIabOptions(this.cordova.platformId),x=this.getIabTarget(k,w);this.cordova.InAppBrowser.open(k,x,v)}getIabOptions(k){return"android"===k?`location=yes,hideurlbar=yes,zoom=no,closebuttoncaption=${this.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")}`:"location=no,toolbarposition=top,toolbartranslucent=no"}getIabTarget(k,w){return!w||this.isMailtoOrTelLink(k)?"_system":"_blank"}isMailtoOrTelLink(k){return!!k.match(/^mailto:|^tel:/)}static#e=T=()=>(this.\u0275fac=function(w){return new(w||C)(d.KVO(S.A))},this.\u0275prov=d.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}))}return T(),C})()},5645:(En,it,p)=>{"use strict";p.d(it,{l:()=>m});var S=p(6776),d=p(1832);class m extends S.o{constructor(C){super(),this._render=C}_renderCore(C){return(0,d.ki)(this._render(C))}}},5651:(En,it,p)=>{"use strict";p.d(it,{A:()=>B});var S=p(3538),d=p(5704),m=p(4859),T=p(1363),C=p(4072),e=p(8842),k=p(9293);const w="dxListEditDecorator",P=(0,k.b4)(e.ni,w),v=(0,k.b4)(e.By,w),x=(0,k.b4)(e._N,w),B=S.A.inherit({ctor(j){this._list=j,this._init()},_init:m.lQ,_shouldHandleSwipe:!1,_attachSwipeEvent(j){const F={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=(0,T.RG)(this._list.$element()),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};C.A.on(j.$itemElement,P,F,this._itemSwipeStartHandler.bind(this)),C.A.on(j.$itemElement,v,this._itemSwipeUpdateHandler.bind(this)),C.A.on(j.$itemElement,x,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler(j){const F=(0,d.A)(j.currentTarget);F.is(".dx-state-disabled, .dx-state-disabled *")?j.cancel=!0:(clearTimeout(this._list._inkRippleTimer),this._swipeStartHandler(F,j))},_itemSwipeUpdateHandler(j){const F=(0,d.A)(j.currentTarget);this._swipeUpdateHandler(F,j)},_itemSwipeEndHandler(j){const F=(0,d.A)(j.currentTarget);this._swipeEndHandler(F,j),this._clearSwipeCache=!0},beforeBag:m.lQ,afterBag:m.lQ,_commonOptions(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement(j){this._shouldHandleSwipe&&(this._attachSwipeEvent(j),this._clearSwipeCache=!0)},afterRender:m.lQ,handleClick:m.lQ,handleKeyboardEvents:m.lQ,handleEnterPressing:m.lQ,handleContextMenu:m.lQ,_swipeStartHandler:m.lQ,_swipeUpdateHandler:m.lQ,_swipeEndHandler:m.lQ,visibilityChange:m.lQ,getExcludedSelectors:m.lQ,dispose:m.lQ})},5652:(En,it,p)=>{"use strict";p.d(it,{eh:()=>T,JP:()=>C,Lt:()=>P,R3:()=>d,oe:()=>e,q6:()=>w,h2:()=>x,rJ:()=>be,Qv:()=>z,gs:()=>Ie,Xm:()=>re});var S=p(5328);const d={lockCount:0,lock(){this.lockCount++},callbacks:[],callEffects(){if(this.lockCount--,this.lockCount<0)throw new Error("Unexpected Effect Call");if(0===this.lockCount){const W=this.callbacks;this.callbacks=[],W.forEach(ie=>ie())}}},m=(W,ie)=>{if(!(W instanceof Object&&ie instanceof Object))return W===ie;const Ce=Object.keys(W),ye=Object.keys(ie);return Ce.length===ye.length&&!Ce.some(_e=>W[_e]!==ie[_e])};class T extends S.uA{constructor(){super(...arguments),this._pendingContext=this.context}componentWillReceiveProps(ie,he){this._pendingContext=he??{}}shouldComponentUpdate(ie,he){return!m(this.props,ie)||!m(this.state,he)||!m(this.context,this._pendingContext)}}class C extends T{constructor(){super(...arguments),this._effects=[]}createEffects(){return[]}updateEffects(){}componentWillMount(){d.lock()}componentWillUpdate(ie,he,Ce){d.lock()}componentDidMount(){d.callbacks.push(()=>{this._effects=this.createEffects()}),d.callEffects()}componentDidUpdate(){d.callbacks.push(()=>this.updateEffects()),d.callEffects()}destroyEffects(){this._effects.forEach(ie=>ie.dispose())}componentWillUnmount(){this.destroyEffects()}}class e extends C{constructor(){super(...arguments),this.vDomElement=null}vDomUpdateClasses(){const ie=this.vDomElement,he=ie.className.length?ie.className.split(" "):[],Ce=he.filter(Me=>ie.dxClasses.previous.indexOf(Me)<0),ye=ie.dxClasses.previous.filter(Me=>he.indexOf(Me)<0);Ce.forEach(Me=>{const _e=ie.dxClasses.removed.indexOf(Me);_e>-1?ie.dxClasses.removed.splice(_e,1):ie.dxClasses.added.includes(Me)||ie.dxClasses.added.push(Me)}),ye.forEach(Me=>{const _e=ie.dxClasses.added.indexOf(Me);_e>-1?ie.dxClasses.added.splice(_e,1):ie.dxClasses.removed.includes(Me)||ie.dxClasses.removed.push(Me)})}componentDidMount(){const ie=(0,S.UV)(this.$LI,!0);this.vDomElement=ie,super.componentDidMount(),ie.dxClasses=ie.dxClasses||{removed:[],added:[],previous:[]},ie.dxClasses.previous=ie?.className.length?ie.className.split(" "):[]}componentDidUpdate(){super.componentDidUpdate();const ie=this.vDomElement;null!==ie&&(ie.dxClasses.added.forEach(he=>ie.classList.add(he)),ie.dxClasses.removed.forEach(he=>ie.classList.remove(he)),ie.dxClasses.previous=ie.className.length?ie.className.split(" "):[])}shouldComponentUpdate(ie,he){const Ce=super.shouldComponentUpdate(ie,he);return Ce&&this.vDomUpdateClasses(),Ce}}let k=0;const w=function(W){const ie=k++;return{id:ie,defaultValue:W,Provider:class extends S.uA{getChildContext(){return Object.assign(Object.assign({},this.context),{[ie]:this.props.value||W})}render(){return this.props.children}}}};class P{constructor(ie,he){this.dependency=he,this.effect=ie,this.destroy=ie()}update(ie){const he=this.dependency;ie&&(this.dependency=ie),(!ie||ie.some((Ce,ye)=>he[ye]!==Ce))&&(this.dispose(),this.destroy=this.effect())}dispose(){this.destroy&&this.destroy()}}const x=()=>new P(()=>{(0,S.mM)()},[]),b="a runtime error occured! Use Inferno in development environment to find the error.";function X(W){return null===W}function J(W,ie,he,Ce,ye,Me){const _e=W.childFlags,ke=W.children,Ye=W.props,de=W.flags;if(1!==_e){if(2===_e)X(he)?(0,S._M)(ke,ie,Ce,ye,null,Me):he=(he=Q(ke,ie,he,Ce,ye,Me))?he.nextSibling:null;else if(16===_e)X(he)?ie.appendChild(document.createTextNode(ke)):1!==ie.childNodes.length||3!==he.nodeType?ie.textContent=ke:he.nodeValue!==ke&&(he.nodeValue=ke),he=null;else if(12&_e){let Ae=!1;for(let pe=0,Ee=ke.length;pe<Ee;++pe){const le=ke[pe];X(he)||Ae&&(16&le.flags)>0?(0,S._M)(le,ie,Ce,ye,he,Me):he=(he=Q(le,ie,he,Ce,ye,Me))?he.nextSibling:null,Ae=(16&le.flags)>0}}if(!(8192&de)){let Ae=null;for(;he;)Ae=he.nextSibling,ie.removeChild(he),he=Ae}}else!X(ie.firstChild)&&!function M(W,ie){return!!(ie&&ie.dangerouslySetInnerHTML&&ie.dangerouslySetInnerHTML.__html&&function Z(W,ie){const he=document.createElement("i");return he.innerHTML=ie,he.innerHTML===W.innerHTML}(W,ie.dangerouslySetInnerHTML.__html))}(ie,Ye)&&(ie.textContent="",448&de&&(ie.defaultValue=""))}function L(W,ie,he){if(3!==he.nodeType)ie.replaceChild(W.dom=document.createTextNode(W.children),he);else{const Ce=W.children;he.nodeValue!==Ce&&(he.nodeValue=Ce),W.dom=he}return W.dom}function Q(W,ie,he,Ce,ye,Me){const _e=W.flags|=16384;return 14&_e?function H(W,ie,he,Ce,ye,Me,_e){const Ye=W.ref;let Ae;if(Me){const pe=(0,S.EW)(W,W.type,W.props||S.MZ,Ce,ye,_e);Ae=Q(pe.$LI,ie,he,pe.$CX,ye,_e),(0,S.Gg)(Ye,pe,_e)}else{const pe=(0,S.zF)((0,S.F1)(W,Ce));Ae=Q(pe,ie,he,Ce,ye,_e),W.children=pe,(0,S.Hq)(W,_e)}return Ae}(W,ie,he,Ce,ye,(4&_e)>0,Me):481&_e?function R(W,ie,he,Ce,ye,Me){const _e=W.props,ke=W.className,Ye=W.flags,de=W.ref;return ye=ye||(32&Ye)>0,1!==he.nodeType?((0,S.C4)(W,null,Ce,ye,null,Me),ie.replaceChild(W.dom,he)):(W.dom=he,J(W,he,he.firstChild,Ce,ye,Me),X(_e)||(0,S.vI)(W,Ye,_e,he,ye),function B(W){return null==W}(ke)?""!==he.className&&he.removeAttribute("class"):ye?he.setAttribute("class",ke):he.className=ke,(0,S.J4)(de,he,Me)),W.dom}(W,ie,he,Ce,ye,Me):16&_e?L(W,ie,he):512&_e?W.dom=he:8192&_e?function G(W,ie,he,Ce,ye,Me){const _e=W.children;return 2===W.childFlags?(L(_e,ie,he),_e.dom):(J(W,ie,he,Ce,ye,Me),function A(W){let ie,he;for(;W;){if(ie=W.flags,2033&ie)return W.dom;he=W.children,W=8192&ie?2===W.childFlags?he:he[he.length-1]:4&ie?he.$LI:he}return null}(_e[_e.length-1]))}(W,ie,he,Ce,ye,Me):(function U(W){throw W||(W=b),new Error(`Inferno Error: ${W}`)}(),null)}function z(W,ie,he){let Ce=ie.firstChild;if(X(Ce))(0,S.XX)(W,ie,he);else{const ye=[];for(function j(W){return null===W||!1===W||!0===W||void 0===W}(W)||(Ce=Q(W,ie,Ce,{},!1,ye));Ce&&(Ce=Ce.nextSibling);)ie.removeChild(Ce);if(ye.length>0){let Me;for(;void 0!==(Me=ye.shift());)Me()}}ie.$V=W,function F(W){return"function"==typeof W}(he)&&he()}var K=p(9446);const ee=W=>{var ie,he;return(null===(ie=W.container)||void 0===ie?void 0:ie.get(0))||(null===(he=W.item)||void 0===he?void 0:he.get(0))};function re(W,ie,he){setTimeout(()=>{(0,S.XX)((0,K.n)(W,ie),ee(ie))},0)}const be=(W,ie,he)=>{const Ce=ie[W];return!!Ce&&"string"!=typeof Ce},ce=new Set(["animationIterationCount","borderImageOutset","borderImageSlice","border-imageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","fillOpacity","flex","flexGrow","flexNegative","flexOrder","flexPositive","flexShrink","floodOpacity","fontWeight","gridColumn","gridRow","lineClamp","lineHeight","opacity","order","orphans","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),Re=W=>"number"==typeof W||!Number.isNaN(Number(W)),Se=(W,ie)=>ce.has(W)?ie:`${ie}px`,De=/[A-Z]/g,Pe=W=>W.replace(De,"-$&").toLowerCase();function Ie(W){if(W instanceof Object)return Object.entries(W).reduce((ie,[he,Ce])=>(ie[Pe(he)]=Re(Ce)?Se(he,Ce):Ce,ie),{})}},5656:(En,it,p)=>{"use strict";p.d(it,{U:()=>j});var S=p(5704),d=p(4072),m=p(7007),T=p(5973),C=p(3538),e=p(9961),k=p(9293),w=p(3535);const v=(0,k.b4)("contextmenu","dxContexMenu"),x=(0,k.b4)(w.A.name,"dxContexMenu"),B=C.A.inherit({setup:function(F){const X=(0,S.A)(F);d.A.on(X,v,this._contextMenuHandler.bind(this)),(m.touch||T.A.isSimulator())&&d.A.on(X,x,this._holdHandler.bind(this))},_holdHandler:function(F){(0,k.Er)(F)&&!T.A.isSimulator()||this._fireContextMenu(F)},_contextMenuHandler:function(F){this._fireContextMenu(F)},_fireContextMenu:function(F){return(0,k.rC)({type:"dxcontextmenu",originalEvent:F})},teardown:function(F){d.A.off(F,".dxContexMenu")}});(0,e.A)("dxcontextmenu",new B);const j="dxcontextmenu"},5685:(En,it,p)=>{"use strict";p.d(it,{A:()=>B});var S=p(5704),d=p(778),m=p(4072),T=p(9209),C=p(9293),e=p(974);const k=T.A.down;class B extends e.A{_create(){const F=(0,S.A)("<span>").addClass("dx-clear-button-area").append((0,S.A)("<span>").addClass("dx-icon").addClass("dx-icon-clear"));return this._addToContainer(F),this.update(!0),{instance:F,$element:F}}_isVisible(){const{editor:F}=this;return F._isClearButtonVisible()}_attachEvents(F,X){const{editor:U}=this,Z=U.NAME;m.A.on(X,(0,C.b4)(k,Z),A=>{A.preventDefault(),"mouse"!==A.pointerType&&U._clearValueHandler(A)}),m.A.on(X,(0,C.b4)(d.U,Z),A=>U._clearValueHandler(A))}_legacyRender(F,X){F.toggleClass("dx-show-clear-button",X)}update(){!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&super.update();const{editor:X,instance:U}=this,Z=X.$element(),A=this._isVisible();U&&U.toggleClass("dx-state-invisible",!A),this._legacyRender(Z,A)}}},5690:(En,it,p)=>{"use strict";p.d(it,{A:()=>C});var S=p(6110),d=p(1926);const m=(0,S.zk)(),C=(0,d.A)({getXhr:function(){return new m.XMLHttpRequest}})},5704:(En,it,p)=>{"use strict";p.d(it,{A:()=>A});var S=p(5397),d=p(6054),m=p(6110),T=p(1830),C=p(8649),e=p(1363),k=p(4781);const w=(0,m.zk)();let P;const v=function(M,H){return M?"string"==typeof M?"body"===M?(this[0]=H?H.body:d.A.getBody(),this.length=1,this):(H=H||d.A.getDocument(),"<"===M[0]?(this[0]=d.A.createElement(M.slice(1,-1),H),this.length=1,this):([].push.apply(this,d.A.querySelectorAll(H,M)),this)):d.A.isNode(M)||(0,T.l6)(M)?(this[0]=M,this.length=1,this):Array.isArray(M)?([].push.apply(this,M),this):P(M.toArray?M.toArray():[M]):(this.length=0,this)};P=function(M,H){return new v(M,H)},P.fn={dxRenderer:!0};const x=function(M,H){for(let J=0;J<this.length;J++){const R=P(this[J]);R[M].apply(R,H)}return this},b=function(M,H,J){null!=J&&!1!==J?d.A.setAttribute(M,H,J):d.A.removeAttribute(M,H)};(v.prototype=P.fn).show=function(){return this.toggle(!0)},v.prototype.hide=function(){return this.toggle(!1)},v.prototype.toggle=function(M){return this[0]&&this.toggleClass("dx-state-invisible",!M),this},v.prototype.attr=function(M,H){if(this.length>1&&arguments.length>1)return x.call(this,"attr",arguments);if(!this[0])return(0,T.Gv)(M)||void 0!==H?this:void 0;if(!this[0].getAttribute)return this.prop(M,H);if("string"==typeof M&&1===arguments.length)return this[0].getAttribute(M)??void 0;if((0,T.Qd)(M))for(const J in M)this.attr(J,M[J]);else b(this[0],M,H);return this},v.prototype.removeAttr=function(M){return this[0]&&d.A.removeAttribute(this[0],M),this},v.prototype.prop=function(M,H){if(!this[0])return this;if("string"==typeof M&&1===arguments.length)return this[0][M];if((0,T.Qd)(M))for(const J in M)this.prop(J,M[J]);else d.A.setProperty(this[0],M,H);return this},v.prototype.addClass=function(M){return this.toggleClass(M,!0)},v.prototype.removeClass=function(M){return this.toggleClass(M,!1)},v.prototype.hasClass=function(M){if(!this[0]||void 0===this[0].className)return!1;const H=M.split(" ");for(let J=0;J<H.length;J++)if(this[0].classList){if(this[0].classList.contains(H[J]))return!0}else if((((0,T.Kg)(this[0].className)?this[0].className:d.A.getAttribute(this[0],"class"))||"").split(" ").indexOf(H[J])>=0)return!0;return!1},v.prototype.toggleClass=function(M,H){if(this.length>1)return x.call(this,"toggleClass",arguments);if(!this[0]||!M)return this;H=void 0===H?!this.hasClass(M):H;const J=M.split(" ");for(let R=0;R<J.length;R++)d.A.setClass(this[0],J[R],H);return this},v.prototype.html=function(M){return arguments.length?(this.empty(),"string"==typeof M&&!(0,k.a)(M)||"number"==typeof M?(this[0].innerHTML=M,this):this.append((0,k.B)(M))):this[0].innerHTML};const B=function(M,H){if(this[0]&&M){"string"==typeof M?M=(0,k.B)(M):M.nodeType?M=[M]:(0,T.kf)(M)&&(M=[d.A.createTextNode(M)]);for(let J=0;J<M.length;J++){const R=M[J];let L=this[0];"TABLE"===L.tagName&&"TR"===R.tagName&&L.tBodies&&L.tBodies.length&&(L=L.tBodies[0]),d.A.insertElement(L,R.nodeType?R:R[0],H)}}},j=function(M,H){if(this[0]&&this[0].style&&!(null===H||"number"==typeof H&&isNaN(H))){M=(0,C.jA)(M);for(let J=0;J<this.length;J++)this[J].style[M]=(0,C.CC)(M,H)}};v.prototype.css=function(M,H){if((0,T.Kg)(M)){if(2!==arguments.length){if(!this[0])return;M=(0,C.jA)(M);const J=w.getComputedStyle(this[0])[M]||this[0].style[M];return(0,T.kf)(J)?J.toString():J}j.call(this,M,H)}else if((0,T.Qd)(M))for(const J in M)j.call(this,J,M[J]);return this},v.prototype.prepend=function(M){if(arguments.length>1){for(let H=0;H<arguments.length;H++)this.prepend(arguments[H]);return this}return B.apply(this,[M,this[0].firstChild]),this},v.prototype.append=function(M){if(arguments.length>1){for(let H=0;H<arguments.length;H++)this.append(arguments[H]);return this}return B.apply(this,[M]),this},v.prototype.prependTo=function(M){if(this.length>1){for(let H=this.length-1;H>=0;H--)P(this[H]).prependTo(M);return this}return(M=P(M))[0]&&d.A.insertElement(M[0],this[0],M[0].firstChild),this},v.prototype.appendTo=function(M){return this.length>1?x.call(this,"appendTo",arguments):(d.A.insertElement(P(M)[0],this[0]),this)},v.prototype.insertBefore=function(M){return M&&M[0]&&d.A.insertElement(M[0].parentNode,this[0],M[0]),this},v.prototype.insertAfter=function(M){return M&&M[0]&&d.A.insertElement(M[0].parentNode,this[0],M[0].nextSibling),this},v.prototype.before=function(M){return this[0]&&d.A.insertElement(this[0].parentNode,M[0],this[0]),this},v.prototype.after=function(M){return this[0]&&d.A.insertElement(this[0].parentNode,M[0],this[0].nextSibling),this},v.prototype.wrap=function(M){if(this[0]){const H=P(M);H.insertBefore(this),H.append(this)}return this},v.prototype.wrapInner=function(M){const H=this.contents();return H.length?H.wrap(M):this.append(M),this},v.prototype.replaceWith=function(M){if(M&&M[0])return M.is(this)?this:(M.insertBefore(this),this.remove(),M)},v.prototype.remove=function(){return this.length>1?x.call(this,"remove",arguments):((0,S.Gf)(this[0],!0),d.A.removeElement(this[0]),this)},v.prototype.detach=function(){return this.length>1?x.call(this,"detach",arguments):(d.A.removeElement(this[0]),this)},v.prototype.empty=function(){return this.length>1?x.call(this,"empty",arguments):((0,S.Gf)(this[0]),d.A.setText(this[0],""),this)},v.prototype.clone=function(){const M=[];for(let H=0;H<this.length;H++)M.push(this[H].cloneNode(!0));return P(M)},v.prototype.text=function(M){if(!arguments.length){let J="";for(let R=0;R<this.length;R++)J+=this[R]&&this[R].textContent||"";return J}const H=(0,T.Tn)(M)?M():M;return(0,S.Gf)(this[0],!1),d.A.setText(this[0],(0,T.O9)(H)?H:""),this},v.prototype.val=function(M){return 1===arguments.length?this.prop("value",(0,T.O9)(M)?M:""):this.prop("value")},v.prototype.contents=function(){if(!this[0])return P();const M=[];return M.push.apply(M,this[0].childNodes),P(M)},v.prototype.find=function(M){const H=P();if(!M)return H;const J=[];let R;if("string"==typeof M)for(M=M.trim(),R=0;R<this.length;R++){const L=this[R];if(d.A.isElementNode(L)){const G=L.getAttribute("id");let Q=G||"dx-query-children";G||b(L,"id",Q),Q="[id='"+Q+"'] ";const z=Q+M.replace(/([^\\])(,)/g,"$1, "+Q);J.push.apply(J,d.A.querySelectorAll(L,z)),b(L,"id",G)}else(d.A.isDocument(L)||d.A.isDocumentFragment(L))&&J.push.apply(J,d.A.querySelectorAll(L,M))}else for(R=0;R<this.length;R++)M=d.A.isNode(M)?M:M[0],this[R]!==M&&this[R].contains(M)&&J.push(M);return H.add(J)};const F=function(M,H){return!(H=H.host??H).nodeType||!!(H.offsetWidth||H.offsetHeight||H.getClientRects().length)};v.prototype.filter=function(M){if(!M)return P();if(":visible"===M)return this.filter(F);if(":hidden"===M)return this.filter(function(J,R){return!F(0,R)});const H=[];for(let J=0;J<this.length;J++){const R=this[J];if(d.A.isElementNode(R)&&"string"===(0,T.NW)(M))d.A.elementMatches(R,M)&&H.push(R);else if(d.A.isNode(M)||(0,T.l6)(M))M===R&&H.push(R);else if((0,T.Tn)(M))M.call(R,J,R)&&H.push(R);else for(let L=0;L<M.length;L++)M[L]===R&&H.push(R)}return P(H)},v.prototype.not=function(M){const H=[],J=this.filter(M).toArray();for(let R=0;R<this.length;R++)-1===J.indexOf(this[R])&&H.push(this[R]);return P(H)},v.prototype.is=function(M){return!!this.filter(M).length},v.prototype.children=function(M){let H=[];for(let J=0;J<this.length;J++){const R=this[J]?this[J].childNodes:[];for(let L=0;L<R.length;L++)d.A.isElementNode(R[L])&&H.push(R[L])}return H=P(H),M?H.filter(M):H},v.prototype.siblings=function(){const M=this[0];if(!M||!M.parentNode)return P();const H=[],J=M.parentNode.childNodes||[];for(let R=0;R<J.length;R++){const L=J[R];d.A.isElementNode(L)&&L!==M&&H.push(L)}return P(H)},v.prototype.each=function(M){for(let H=0;H<this.length&&!1!==M.call(this[H],H,this[H]);H++);},v.prototype.index=function(M){return M?(M=P(M),this.toArray().indexOf(M[0])):this.parent().children().index(this)},v.prototype.get=function(M){return this[M<0?this.length+M:M]},v.prototype.eq=function(M){return P(this[M=M<0?this.length+M:M])},v.prototype.first=function(){return this.eq(0)},v.prototype.last=function(){return this.eq(-1)},v.prototype.select=function(){for(let M=0;M<this.length;M+=1)this[M].select&&this[M].select();return this},v.prototype.parent=function(M){if(!this[0])return P();const H=P(this[0].parentNode);return!M||H.is(M)?H:P()},v.prototype.parents=function(M){const H=[];let J=this.parent();for(;J&&J[0]&&!d.A.isDocument(J[0]);)d.A.isElementNode(J[0])&&(!M||J.is(M))&&H.push(J.get(0)),J=J.parent();return P(H)},v.prototype.closest=function(M){if(this.is(M))return this;let H=this.parent();for(;H&&H.length;){if(H.is(M))return H;H=H.parent()}return P()},v.prototype.next=function(M){if(!this[0])return P();let H=P(this[0].nextSibling);if(!arguments.length)return H;for(;H&&H.length;){if(H.is(M))return H;H=H.next()}return P()},v.prototype.prev=function(){return this[0]?P(this[0].previousSibling):P()},v.prototype.add=function(M){const H=P(M),J=this.toArray();for(let R=0;R<H.length;R++){const L=H[R];-1===J.indexOf(L)&&J.push(L)}return P(J)};const X=[];v.prototype.splice=function(){return P(X.splice.apply(this,arguments))},v.prototype.slice=function(){return P(X.slice.apply(this,arguments))},v.prototype.toArray=function(){return X.slice.call(this)},v.prototype.offset=function(){if(this[0])return(0,e.A3)(this[0])},v.prototype.offsetParent=function(){if(!this[0])return P();let M=P(this[0].offsetParent);for(;M[0]&&"static"===M.css("position");)M=P(M[0].offsetParent);return M=M[0]?M:P(d.A.getDocumentElement()),M},v.prototype.position=function(){if(!this[0])return;let M;const H=parseFloat(this.css("marginTop")),J=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return M=this[0].getBoundingClientRect(),{top:M.top-H,left:M.left-J};M=this.offset();const R=this.offsetParent();let L={top:0,left:0};return"HTML"!==R[0].nodeName&&(L=R.offset()),L={top:L.top+parseFloat(R.css("borderTopWidth")),left:L.left+parseFloat(R.css("borderLeftWidth"))},{top:M.top-L.top-H,left:M.left-L.left-J}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(M,H){M.scrollTo(H,M.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(M,H){M.scrollTo(M.pageXOffset,H)}}].forEach(function(M){const H=M.name;v.prototype[H]=function(J){if(!this[0])return;const R=(0,e.OP)(this[0]);return void 0===J?R?R[M.offsetProp]:this[0][H]:(R?M.scrollWindow(R,J):this[0][H]=J,this)}}),v.prototype.data=function(M,H){if(this[0])return arguments.length<2?S.p.call(P,this[0],M):(S.p.call(P,this[0],M,H),this)},v.prototype.removeData=function(M){return this[0]&&(0,S.jf)(this[0],M),this};const U=function(){return P.apply(this,arguments)};Object.defineProperty(U,"fn",{enumerable:!0,configurable:!0,get:function(){return P.fn},set:function(M){P.fn=M}});const A=U},5717:(En,it,p)=>{"use strict";p.d(it,{y:()=>d});var S=p(4418);function d(m){return(0,S.T)(m?.then)}},5730:(En,it,p)=>{"use strict";p.d(it,{A:()=>at});var S=p(1973),d=p(5973),m=p(6054),T=p(2925),C=p(5704),e=p(1113),k=p(8684),w=p(6021),P=p(3090),v=p(2660),x=p(1363),b=p(1830),B=p(6110),j=p(778),F=p(4072),X=p(9293),U=p(8360),Z=p(9012),A=p(357),M=p(9212),H=p(8496);const J=(0,B.zk)(),Ee=()=>!!J.FormData;class le extends H.A{_supportedKeys(){const qe=Nt=>{Nt.preventDefault();const et=this._selectButton.$element();F.A.trigger(et,j.U)};return(0,P.X)(super._supportedKeys(),{space:qe,enter:qe})}_setOptionsByReference(){super._setOptionsByReference(),(0,P.X)(this._optionsByReference,{value:!0})}_getDefaultOptions(){return(0,P.X)(super._getDefaultOptions(),{chunkSize:0,value:[],selectButtonText:U.A.format("dxFileUploader-selectFile"),uploadButtonText:U.A.format("dxFileUploader-upload"),labelText:U.A.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,dialogTrigger:void 0,dropZone:void 0,readyToUploadMessage:U.A.format("dxFileUploader-readyToUpload"),uploadedMessage:U.A.format("dxFileUploader-uploaded"),uploadFailedMessage:U.A.format("dxFileUploader-uploadFailedMessage"),uploadAbortedMessage:U.A.format("dxFileUploader-uploadAbortedMessage"),uploadMode:"instantly",uploadMethod:"POST",uploadHeaders:{},uploadCustomData:{},onBeforeSend:null,onUploadStarted:null,onUploaded:null,onFilesUploaded:null,onProgress:null,onUploadError:null,onUploadAborted:null,onDropZoneEnter:null,onDropZoneLeave:null,allowedFileExtensions:[],maxFileSize:0,minFileSize:0,inputAttr:{},invalidFileExtensionMessage:U.A.format("dxFileUploader-invalidFileExtension"),invalidMaxFileSizeMessage:U.A.format("dxFileUploader-invalidMaxFileSize"),invalidMinFileSizeMessage:U.A.format("dxFileUploader-invalidMinFileSize"),extendSelection:!0,validationMessageMode:"always",uploadFile:null,uploadChunk:null,abortUpload:null,validationMessageOffset:{h:0,v:0},hoverStateEnabled:!0,useNativeInputClick:!1,useDragOver:!0,nativeDropSupported:!0,_uploadButtonType:"normal",_buttonStylingMode:"contained"})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>"desktop"===d.A.real().deviceType&&!d.A.isSimulator(),options:{focusStateEnabled:!0}},{device:[{platform:"android"}],options:{validationMessageOffset:{v:0}}},{device:()=>"desktop"!==d.A.real().deviceType,options:{useDragOver:!1}},{device:()=>!Ee(),options:{uploadMode:"useForm"}},{device:()=>"desktop"!==d.A.real().deviceType,options:{nativeDropSupported:!1}},{device:()=>(0,M.gx)(),options:{_uploadButtonType:"default"}},{device:()=>(0,M.Ft)(),options:{_buttonStylingMode:"text"}}])}_initOptions(qe){const Nt="labelText"in qe;super._initOptions(qe),!Nt&&!this._shouldDragOverBeRendered()&&this.option("labelText","")}_init(){super._init(),this._initFileInput(),this._initLabel(),this._setUploadStrategy(),this._createFiles(),this._createBeforeSendAction(),this._createUploadStartedAction(),this._createUploadedAction(),this._createFilesUploadedAction(),this._createProgressAction(),this._createUploadErrorAction(),this._createUploadAbortedAction(),this._createDropZoneEnterAction(),this._createDropZoneLeaveAction()}_setUploadStrategy(){if(this.option("chunkSize")>0){const qe=this.option("uploadChunk");this._uploadStrategy=qe&&(0,b.Tn)(qe)?new fe(this):new Oe(this)}else{const qe=this.option("uploadFile");this._uploadStrategy=qe&&(0,b.Tn)(qe)?new Ve(this):new Ue(this)}}_initFileInput(){this._isCustomClickEvent=!1;const{multiple:qe,accept:Nt,hint:et}=this.option();this._$fileInput||(this._$fileInput=(0,C.A)("<input>").attr("type","file"),F.A.on(this._$fileInput,"change",this._inputChangeHandler.bind(this)),F.A.on(this._$fileInput,"click",me=>(me.stopPropagation(),this._resetInputValue(),this.option("useNativeInputClick")||this._isCustomClickEvent)));const ue={multiple:qe,accept:Nt,tabIndex:-1};(0,b.O9)(et)&&(ue.title=et),this._$fileInput.prop(ue)}_inputChangeHandler(){if(this._doPreventInputChange)return;const qe=this._$fileInput.val().replace(/^.*\\/,""),Nt=this._$fileInput.prop("files");if(Nt&&!Nt.length&&"useForm"!==this.option("uploadMode"))return;const et=Nt?this._getFiles(Nt):[{name:qe}];this._changeValue(et),"instantly"===this.option("uploadMode")&&this._uploadFiles()}_shouldFileListBeExtended(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")}_changeValue(qe){const Nt=this._shouldFileListBeExtended()?this.option("value").slice():[];this.option("value",Nt.concat(qe))}_getFiles(qe){const Nt=[];return(0,v.__)(qe,(et,ue)=>Nt.push(ue)),Nt}_getFile(qe){const Nt=(0,b.kf)(qe)?this.option("value")[qe]:qe;return this._files.filter(et=>et.value===Nt)[0]}_initLabel(){this._$inputLabel||(this._$inputLabel=(0,C.A)("<div>")),this._updateInputLabelText()}_updateInputLabelText(){const qe=this._isInteractionDisabled()?"":this.option("labelText");this._$inputLabel.text(qe)}_focusTarget(){return this.$element().find(".dx-fileuploader-button")}_getSubmitElement(){return this._$fileInput}_initMarkup(){super._initMarkup(),this.$element().addClass("dx-fileuploader"),this._renderWrapper(),this._renderInputWrapper(),this._renderSelectButton(),this._renderInputContainer(),this._renderUploadButton(),this._preventRecreatingFiles=!0,this._activeDropZone=null}_render(){this._preventRecreatingFiles=!1,this._attachDragEventHandlers(this._$inputWrapper),this._attachDragEventHandlers(this.option("dropZone")),this._renderFiles(),super._render()}_createFileProgressBar(qe){qe.progressBar=this._createProgressBar(qe.value.size),qe.progressBar.$element().appendTo(qe.$file),this._initStatusMessage(qe),this._ensureCancelButtonInitialized(qe)}_setStatusMessage(qe,Nt){setTimeout(()=>{this.option("showFileList")&&qe.$statusMessage&&(qe.$statusMessage.text(Nt),qe.$statusMessage.css("display",""),qe.progressBar.$element().remove())},400)}_getUploadAbortedStatusMessage(){return"instantly"===this.option("uploadMode")?this.option("uploadAbortedMessage"):this.option("readyToUploadMessage")}_createFiles(){const qe=this.option("value");this._files&&(0===qe?.length||!this._shouldFileListBeExtended())&&(this._preventFilesUploading(this._files),this._files=null),this._files||(this._files=[]),(0,v.__)(qe?.slice(this._files.length),(Nt,et)=>{const ue=this._createFile(et);this._validateFile(ue),this._files.push(ue)})}_preventFilesUploading(qe){qe.forEach(Nt=>this._uploadStrategy.abortUpload(Nt))}_validateFile(qe){qe.isValidFileExtension=this._validateFileExtension(qe),qe.isValidMinSize=this._validateMinFileSize(qe),qe.isValidMaxSize=this._validateMaxFileSize(qe)}_validateFileExtension(qe){const Nt=this.option("allowedFileExtensions"),et=this.option("accept"),ue=this._getAllowedFileTypes(et),me=qe.value.name.substring(qe.value.name.lastIndexOf(".")).toLowerCase();if(0!==et?.length&&!this._isFileTypeAllowed(qe.value,ue))return!1;if(0===Nt?.length)return!0;for(let Te=0;Te<Nt.length;Te++)if(me===Nt[Te].toLowerCase())return!0;return!1}_validateMaxFileSize(qe){const Nt=qe.value.size,et=this.option("maxFileSize");return!(et>0)||Nt<=et}_validateMinFileSize(qe){const Nt=qe.value.size,et=this.option("minFileSize");return!(et>0)||Nt>=et}_createBeforeSendAction(){this._beforeSendAction=this._createActionByOption("onBeforeSend",{excludeValidators:["readOnly"]})}_createUploadStartedAction(){this._uploadStartedAction=this._createActionByOption("onUploadStarted",{excludeValidators:["readOnly"]})}_createUploadedAction(){this._uploadedAction=this._createActionByOption("onUploaded",{excludeValidators:["readOnly"]})}_createFilesUploadedAction(){this._filesUploadedAction=this._createActionByOption("onFilesUploaded",{excludeValidators:["readOnly"]})}_createProgressAction(){this._progressAction=this._createActionByOption("onProgress",{excludeValidators:["readOnly"]})}_createUploadAbortedAction(){this._uploadAbortedAction=this._createActionByOption("onUploadAborted",{excludeValidators:["readOnly"]})}_createUploadErrorAction(){this._uploadErrorAction=this._createActionByOption("onUploadError",{excludeValidators:["readOnly"]})}_createDropZoneEnterAction(){this._dropZoneEnterAction=this._createActionByOption("onDropZoneEnter")}_createDropZoneLeaveAction(){this._dropZoneLeaveAction=this._createActionByOption("onDropZoneLeave")}_createFile(qe){return{value:qe,loadedSize:0,onProgress:(0,k.A)(),onAbort:(0,k.A)(),onLoad:(0,k.A)(),onError:(0,k.A)(),onLoadStart:(0,k.A)(),isValidFileExtension:!0,isValidMaxSize:!0,isValidMinSize:!0,isValid(){return this.isValidFileExtension&&this.isValidMaxSize&&this.isValidMinSize},isInitialized:!1}}_resetFileState(qe){qe.isAborted=!1,qe.uploadStarted=!1,qe.isStartLoad=!1,qe.loadedSize=0,qe.chunksData=void 0,qe.request=void 0}_renderFiles(){var qe;const Nt=this.option("value");this._$filesContainer?(!this._shouldFileListBeExtended()||0===Nt?.length)&&this._$filesContainer.empty():this._$filesContainer=(0,C.A)("<div>").addClass("dx-fileuploader-files-container").appendTo(this._$content);const et=this.option("showFileList");et&&(0,v.__)(this._files,(ue,me)=>{me.$file||this._renderFile(me)}),this.$element().toggleClass("dx-fileuploader-show-file-list",et),this._toggleFileUploaderEmptyClassName(),this._updateFileNameMaxWidth(),null===(qe=this._validationMessage)||void 0===qe||qe.repaint()}_renderFile(qe){const{value:Nt}=qe,et=(0,C.A)("<div>").addClass("dx-fileuploader-file-container").appendTo(this._$filesContainer);this._renderFileButtons(qe,et),qe.$file=(0,C.A)("<div>").addClass("dx-fileuploader-file").appendTo(et);const ue=(0,C.A)("<div>").addClass("dx-fileuploader-file-info").appendTo(qe.$file);qe.$statusMessage=(0,C.A)("<div>").addClass("dx-fileuploader-file-status-message").appendTo(qe.$file),(0,C.A)("<div>").addClass("dx-fileuploader-file-name").text(Nt.name).appendTo(ue),(0,b.O9)(Nt.size)&&(0,C.A)("<div>").addClass("dx-fileuploader-file-size").text(this._getFileSize(Nt.size)).appendTo(ue),qe.isValid()?qe.$statusMessage.text(this.option("readyToUploadMessage")):(qe.isValidFileExtension||qe.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")),qe.isValidMaxSize||qe.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")),qe.isValidMinSize||qe.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")),et.addClass("dx-fileuploader-invalid"))}_createValidationElement(qe){return(0,C.A)("<span>").text(this.option(qe))}_updateFileNameMaxWidth(){const qe=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,Nt="useButtons"===this.option("uploadMode")?1:0,et=(0,x.RG)(this._$filesContainer.find(".dx-fileuploader-file-container").first())||(0,x.RG)(this._$filesContainer),ue=this._$filesContainer.find(".dx-fileuploader-button-container").eq(0),me=(0,x.RG)(ue)*(qe+Nt),Te=this._$filesContainer.find(".dx-fileuploader-file-size").eq(0),je=Te.text();Te.text("1000 Mb");const Ne=(0,x.RG)(Te);Te.text(je),this._$filesContainer.find(".dx-fileuploader-file-name").css("maxWidth",et-me-Ne)}_renderFileButtons(qe,Nt){const et=this._getCancelButton(qe);et&&Nt.append(et);const ue=this._getUploadButton(qe);ue&&Nt.append(ue)}_getCancelButton(qe){if("useForm"===this.option("uploadMode"))return null;const{allowCanceling:Nt,readOnly:et,hoverStateEnabled:ue,_buttonStylingMode:me}=this.option();return qe.cancelButton=this._createComponent((0,C.A)("<div>").addClass("dx-fileuploader-button dx-fileuploader-cancel-button"),Z.A,{onClick:()=>this._removeFile(qe),icon:"close",visible:Nt,disabled:et,integrationOptions:{},hoverStateEnabled:ue,stylingMode:me}),(0,C.A)("<div>").addClass("dx-fileuploader-button-container").append(qe.cancelButton.$element())}_getUploadButton(qe){if(!qe.isValid()||"useButtons"!==this.option("uploadMode"))return null;const{hoverStateEnabled:Nt,_buttonStylingMode:et}=this.option();return qe.uploadButton=this._createComponent((0,C.A)("<div>").addClass("dx-fileuploader-button dx-fileuploader-upload-button"),Z.A,{onClick:()=>this._uploadFile(qe),icon:"upload",hoverStateEnabled:Nt,stylingMode:et}),qe.onLoadStart.add(()=>qe.uploadButton.option({visible:!1,disabled:!0})),qe.onAbort.add(()=>qe.uploadButton.option({visible:!0,disabled:!1})),(0,C.A)("<div>").addClass("dx-fileuploader-button-container").append(qe.uploadButton.$element())}_removeFile(qe){var Nt;null===(Nt=qe.$file)||void 0===Nt||Nt.parent().remove(),this._files.splice(this._files.indexOf(qe),1);const et=this.option("value").slice();et.splice(et.indexOf(qe.value),1),this._preventRecreatingFiles=!0,this.option("value",et),this._preventRecreatingFiles=!1,this._toggleFileUploaderEmptyClassName(),this._resetInputValue(!0)}removeFile(qe){if("useForm"===this.option("uploadMode")||!(0,b.O9)(qe))return;const Nt=this._getFile(qe);Nt&&(Nt.uploadStarted&&this._preventFilesUploading([Nt]),this._removeFile(Nt))}_toggleFileUploaderEmptyClassName(){this.$element().toggleClass("dx-fileuploader-empty",!this._files.length||this._hasInvalidFile(this._files))}_hasInvalidFile(qe){for(let Nt=0;Nt<qe.length;Nt++)if(!qe[Nt].isValid())return!0;return!1}_getFileSize(qe){let Nt=0;const et=[U.A.format("dxFileUploader-bytes"),U.A.format("dxFileUploader-kb"),U.A.format("dxFileUploader-Mb"),U.A.format("dxFileUploader-Gb")],ue=et.length-1;for(;Nt<ue&&qe>=1024;)qe/=1024,Nt++;return`${Math.round(qe)} ${et[Nt]}`}_renderSelectButton(){const qe=(0,C.A)("<div>").addClass("dx-fileuploader-button").appendTo(this._$inputWrapper);this._selectButton=this._createComponent(qe,Z.A,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{},disabled:this.option("readOnly"),hoverStateEnabled:this.option("hoverStateEnabled")}),this._selectFileDialogHandler=this._selectButtonClickHandler.bind(this),"desktop"===d.A.real().deviceType?this._selectButton.option("onClick",this._selectFileDialogHandler):this._attachSelectFileDialogHandler(this._selectButton.$element()),this._attachSelectFileDialogHandler(this.option("dialogTrigger"))}_selectButtonClickHandler(){if(!this.option("useNativeInputClick")){if(this._isInteractionDisabled())return!1;this._isCustomClickEvent=!0,F.A.trigger(this._$fileInput,"click"),this._isCustomClickEvent=!1}}_attachSelectFileDialogHandler(qe){(0,b.O9)(qe)&&(this._detachSelectFileDialogHandler(qe),F.A.on((0,C.A)(qe),"click",this._selectFileDialogHandler))}_detachSelectFileDialogHandler(qe){(0,b.O9)(qe)&&F.A.off((0,C.A)(qe),"click",this._selectFileDialogHandler)}_renderUploadButton(){if("useButtons"!==this.option("uploadMode"))return;const qe=(0,C.A)("<div>").addClass("dx-fileuploader-button").addClass("dx-fileuploader-upload-button").appendTo(this._$content);this._uploadButton=this._createComponent(qe,Z.A,{text:this.option("uploadButtonText"),onClick:this._uploadButtonClickHandler.bind(this),type:this.option("_uploadButtonType"),integrationOptions:{},hoverStateEnabled:this.option("hoverStateEnabled")})}_uploadButtonClickHandler(){this._uploadFiles()}_shouldDragOverBeRendered(){return!this.option("readOnly")&&("useForm"!==this.option("uploadMode")||this.option("nativeDropSupported"))}_isInteractionDisabled(){return this.option("readOnly")||this.option("disabled")}_renderInputContainer(){this._$inputContainer=(0,C.A)("<div>").addClass("dx-fileuploader-input-container").appendTo(this._$inputWrapper),this._$fileInput.addClass("dx-fileuploader-input"),this._renderInput();const qe=`dx-fileuploader-input-label-${new T.A}`;this._$inputLabel.attr("id",qe).addClass("dx-fileuploader-input-label").appendTo(this._$inputContainer),this.setAria("labelledby",qe,this._$fileInput)}_renderInput(){this.option("useNativeInputClick")?this._selectButton.option("template",this._selectButtonInputTemplate.bind(this)):(this._$fileInput.appendTo(this._$inputContainer),this._selectButton.option("template","content")),this._applyInputAttributes(this.option("inputAttr"))}_selectButtonInputTemplate(qe,Nt){const et=(0,C.A)(Nt),ue=(0,C.A)("<span>").addClass("dx-button-text").text(qe.text);return et.append(ue).append(this._$fileInput),et}_renderInputWrapper(){this._$inputWrapper=(0,C.A)("<div>").addClass("dx-fileuploader-input-wrapper").appendTo(this._$content)}_detachDragEventHandlers(qe){(0,b.O9)(qe)&&F.A.off((0,C.A)(qe),(0,X.b4)("",this.NAME))}_attachDragEventHandlers(qe){const Nt=qe!==this._$inputWrapper;!(0,b.O9)(qe)||!this._shouldDragOverBeRendered()||(this._detachDragEventHandlers(qe),qe=(0,C.A)(qe),F.A.on(qe,(0,X.b4)("dragenter",this.NAME),this._dragEnterHandler.bind(this,Nt)),F.A.on(qe,(0,X.b4)("dragover",this.NAME),this._dragOverHandler.bind(this,Nt)),F.A.on(qe,(0,X.b4)("dragleave",this.NAME),this._dragLeaveHandler.bind(this,Nt)),F.A.on(qe,(0,X.b4)("drop",this.NAME),this._dropHandler.bind(this,Nt)))}_applyInputAttributes(qe){this._$fileInput.attr(qe)}_useInputForDrop(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")}_getDropZoneElement(qe,Nt){let et=qe?Array.from((0,C.A)(this.option("dropZone"))):[this._$inputWrapper];return et=et.map(ue=>(0,C.A)(ue).get(0)),et[et.indexOf(Nt.currentTarget)]}_dragEnterHandler(qe,Nt){if(this.option("disabled"))return!1;this._useInputForDrop()||Nt.preventDefault();const et=this._getDropZoneElement(qe,Nt);(0,b.O9)(et)&&this._shouldRaiseDragOver(Nt,et)&&(this._activeDropZone=et,this._tryToggleDropZoneActive(!0,qe,Nt))}_shouldRaiseDragOver(qe,Nt){return null===this._activeDropZone&&this.isMouseOverElement(qe,Nt,!1)&&qe.originalEvent.dataTransfer.types.find(et=>"Files"===et)}_dragOverHandler(qe,Nt){if(this._useInputForDrop()||Nt.preventDefault(),Nt.originalEvent.dataTransfer.dropEffect="copy",!qe){const et=this._getDropZoneElement(!1,Nt);this._shouldRaiseDragOver(Nt,et)&&this._dragEnterHandler(!1,Nt),this._shouldRaiseDragLeave(Nt,!1)&&this._dragLeaveHandler(!1,Nt)}}_dragLeaveHandler(qe,Nt){this._useInputForDrop()||Nt.preventDefault(),this._shouldRaiseDragLeave(Nt,qe)&&(this._tryToggleDropZoneActive(!1,qe,Nt),this._activeDropZone=null)}_shouldRaiseDragLeave(qe,Nt){return null!==this._activeDropZone&&!this.isMouseOverElement(qe,this._activeDropZone,!Nt,-1)}_tryToggleDropZoneActive(qe,Nt,et){const ue=qe?"addClass":"removeClass";this[qe?"_dropZoneEnterAction":"_dropZoneLeaveAction"]({event:et,dropZoneElement:this._activeDropZone}),Nt||this.$element()[ue]("dx-fileuploader-dragover")}_dropHandler(qe,Nt){if(this._activeDropZone=null,qe||this.$element().removeClass("dx-fileuploader-dragover"),this._useInputForDrop()||qe&&this._isInteractionDisabled())return;Nt.preventDefault();const ue=this._getFiles(Nt.originalEvent.dataTransfer.files);!this.option("multiple")&&ue.length>1||0===ue.length||(this._changeValue(ue),"instantly"===this.option("uploadMode")&&this._uploadFiles())}_areAllFilesLoaded(){return this._files.every(qe=>!qe.isValid()||qe._isError||qe._isLoaded||qe.isAborted)}_handleAllFilesUploaded(){this._recalculateProgress(),this._areAllFilesLoaded()&&this._filesUploadedAction()}_getAllowedFileTypes(qe){return qe.length?qe.split(",").map(Nt=>Nt.trim()):[]}_isFileTypeAllowed(qe,Nt){for(let et=0,ue=Nt.length;et<ue;et++){let me=Nt[et];if("."===me[0]){if(me=me.replace(".","\\."),qe.name.match(new RegExp(`${me}$`,"i")))return!0}else if(me=me.replace(new RegExp("\\*","g"),""),qe.type.match(new RegExp(me,"i")))return!0}return!1}_renderWrapper(){const qe=(0,C.A)("<div>").addClass("dx-fileuploader-wrapper").appendTo(this.$element()),Nt=(0,C.A)("<div>").addClass("dx-fileuploader-container").appendTo(qe);this._$content=(0,C.A)("<div>").addClass("dx-fileuploader-content").appendTo(Nt)}_clean(){this._$fileInput.detach(),delete this._$filesContainer,this._detachSelectFileDialogHandler(this.option("dialogTrigger")),this._detachDragEventHandlers(this.option("dropZone")),this._files&&this._files.forEach(qe=>{qe.$file=null,qe.$statusMessage=null}),super._clean()}abortUpload(qe){if("useForm"!==this.option("uploadMode"))if((0,b.O9)(qe)){const Nt=this._getFile(qe);Nt&&this._preventFilesUploading([Nt])}else this._preventFilesUploading(this._files)}upload(qe){if("useForm"!==this.option("uploadMode"))if((0,b.O9)(qe)){const Nt=this._getFile(qe);Nt&&Ee()&&this._uploadFile(Nt)}else this._uploadFiles()}_uploadFiles(){Ee()&&(0,v.__)(this._files,(qe,Nt)=>this._uploadFile(Nt))}_uploadFile(qe){this._uploadStrategy.upload(qe)}_updateProgressBar(qe,Nt){qe.progressBar&&qe.progressBar.option({value:Nt.loaded,showStatus:!0}),this._progressAction({file:qe.value,segmentSize:Nt.currentSegmentSize,bytesLoaded:Nt.loaded,bytesTotal:Nt.total,event:Nt.event,request:qe.request})}_updateTotalProgress(qe,Nt){let et=0;(0,b.O9)(qe)&&(this._files.length>0&&this._areAllFilesLoaded()&&0===qe&&0===Nt?et=this._getProgressValue(1):qe&&(et=this._getProgressValue(Nt/qe))),this.option("progress",et),this._setLoadedSize(Nt)}_getProgressValue(qe){return Math.floor(100*qe)}_initStatusMessage(qe){qe.$statusMessage.css("display","none")}_ensureCancelButtonInitialized(qe){if(qe.isInitialized)return;qe.cancelButton.option("onClick",()=>{this._preventFilesUploading([qe]),this._removeFile(qe)});const Nt=()=>{setTimeout(()=>{qe.cancelButton.option({visible:!1})},400)};qe.onLoad.add(Nt),qe.onError.add(Nt)}_createProgressBar(qe){return this._createComponent((0,C.A)("<div>"),A.A,{value:void 0,min:0,max:qe,statusFormat:Nt=>`${this._getProgressValue(Nt)}%`,showStatus:!1,statusPosition:"right"})}_getTotalFilesSize(){return this._totalFilesSize||(this._totalFilesSize=0,(0,v.__)(this._files,(qe,Nt)=>{this._totalFilesSize+=Nt.value.size})),this._totalFilesSize}_getTotalLoadedFilesSize(){return this._totalLoadedFilesSize||(this._totalLoadedFilesSize=0,(0,v.__)(this._files,(qe,Nt)=>{this._totalLoadedFilesSize+=Nt.loadedSize})),this._totalLoadedFilesSize}_setLoadedSize(qe){this._totalLoadedFilesSize=qe}_recalculateProgress(){this._totalFilesSize=0,this._totalLoadedFilesSize=0,this._updateTotalProgress(this._getTotalFilesSize(),this._getTotalLoadedFilesSize())}isMouseOverElement(qe,Nt,et){let ue=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!Nt)return!1;const me=et?parseFloat(J.getComputedStyle(Nt,":before").height):0,Te=et?parseFloat(J.getComputedStyle(Nt,":after").height):0,je=(0,x.A3)(Nt).left,Ne=(0,x.A3)(Nt).top+me,lt=Nt.offsetWidth,Qe=Nt.offsetHeight-me-Te,Ct=this._getEventX(qe),yt=this._getEventY(qe);return Ct+ue>=je&&Ct-ue<je+lt&&yt+ue>=Ne&&yt-ue<Ne+Qe}_getEventX(qe){return(0,X.kH)(qe)?this._getTouchEventX(qe):qe.clientX+this._getDocumentScrollLeft()}_getEventY(qe){return(0,X.kH)(qe)?this._getTouchEventY(qe):qe.clientY+this._getDocumentScrollTop()}_getTouchEventX(qe){let Nt=null;return qe.changedTouches.length>0?Nt=qe.changedTouches:qe.targetTouches.length>0&&(Nt=qe.targetTouches),Nt?Nt[0].pageX:0}_getTouchEventY(qe){let Nt=null;return qe.changedTouches.length>0?Nt=qe.changedTouches:qe.targetTouches.length>0&&(Nt=qe.targetTouches),Nt?Nt[0].pageY:0}_getDocumentScrollTop(){const qe=m.A.getDocument();return qe.documentElement.scrollTop||qe.body.scrollTop}_getDocumentScrollLeft(){const qe=m.A.getDocument();return qe.documentElement.scrollLeft||qe.body.scrollLeft}_updateReadOnlyState(){const qe=this.option("readOnly");this._selectButton.option("disabled",qe),this._files.forEach(Nt=>{var et;return null===(et=Nt.cancelButton)||void 0===et?void 0:et.option("disabled",qe)}),this._updateInputLabelText(),this._attachDragEventHandlers(this._$inputWrapper)}_updateHoverState(){var qe,Nt;const et=this.option("hoverStateEnabled");null===(qe=this._selectButton)||void 0===qe||qe.option("hoverStateEnabled",et),null===(Nt=this._uploadButton)||void 0===Nt||Nt.option("hoverStateEnabled",et),this._files.forEach(ue=>{var me,Te;null===(me=ue.uploadButton)||void 0===me||me.option("hoverStateEnabled",et),null===(Te=ue.cancelButton)||void 0===Te||Te.option("hoverStateEnabled",et)})}_optionChanged(qe){const{name:Nt,value:et,previousValue:ue}=qe;switch(Nt){case"height":case"width":this._updateFileNameMaxWidth(),super._optionChanged(qe);break;case"value":!et.length&&this._$fileInput.val(""),this._preventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),super._optionChanged(qe);break;case"name":case"hint":this._initFileInput(),super._optionChanged(qe);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),qe.value||this.clear();break;case"readOnly":this._updateReadOnlyState(),super._optionChanged(qe);break;case"disabled":this._updateInputLabelText(),super._optionChanged(qe);break;case"selectButtonText":this._selectButton.option("text",et);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",et);break;case"_uploadButtonType":this._uploadButton&&this._uploadButton.option("type",et);break;case"_buttonStylingMode":this._files.forEach(me=>{var Te,je;null===(Te=me.uploadButton)||void 0===Te||Te.option("stylingMode",et),null===(je=me.cancelButton)||void 0===je||je.option("stylingMode",et)});break;case"dialogTrigger":this._detachSelectFileDialogHandler(ue),this._attachSelectFileDialogHandler(et);break;case"dropZone":this._detachDragEventHandlers(ue),this._attachDragEventHandlers(et);break;case"maxFileSize":case"minFileSize":case"allowedFileExtensions":case"invalidFileExtensionMessage":case"invalidMaxFileSizeMessage":case"invalidMinFileSizeMessage":case"readyToUploadMessage":case"uploadedMessage":case"uploadFailedMessage":case"uploadAbortedMessage":case"nativeDropSupported":this._invalidate();break;case"labelText":this._updateInputLabelText();break;case"showFileList":this._preventRecreatingFiles||this._renderFiles();break;case"uploadFile":case"uploadChunk":case"chunkSize":this._setUploadStrategy();break;case"abortUpload":case"uploadUrl":case"progress":case"uploadMethod":case"uploadHeaders":case"uploadCustomData":case"extendSelection":break;case"hoverStateEnabled":this._updateHoverState(),super._optionChanged(qe);break;case"allowCanceling":case"uploadMode":this.clear(),this._invalidate();break;case"onBeforeSend":this._createBeforeSendAction();break;case"onUploadStarted":this._createUploadStartedAction();break;case"onUploaded":this._createUploadedAction();break;case"onFilesUploaded":this._createFilesUploadedAction();break;case"onProgress":this._createProgressAction();break;case"onUploadError":this._createUploadErrorAction();break;case"onUploadAborted":this._createUploadAbortedAction();break;case"onDropZoneEnter":this._createDropZoneEnterAction();break;case"onDropZoneLeave":this._createDropZoneLeaveAction();break;case"useNativeInputClick":this._renderInput();break;case"useDragOver":this._attachDragEventHandlers(this._$inputWrapper);break;case"inputAttr":this._applyInputAttributes(this.option(Nt));break;default:super._optionChanged(qe)}}_resetInputValue(qe){"useForm"===this.option("uploadMode")&&!qe||(this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1)}clear(){this.option("value",[])}}class Ke{constructor(qe,Nt){this.file=qe,this.chunkSize=Nt,this.index=0}read(){if(!this.file)return null;const qe=this.createBlobResult(this.file,this.index,this.chunkSize);return qe.isCompleted&&(this.file=null),this.index++,qe}createBlobResult(qe,Nt,et){const ue=Nt*et;return{blob:this.sliceFile(qe,ue,et),index:Nt,isCompleted:ue+et>=qe.size}}sliceFile(qe,Nt,et){return qe.slice?qe.slice(Nt,Nt+et):qe.webkitSlice?qe.webkitSlice(Nt,Nt+et):null}}class Be{constructor(qe){this.fileUploader=qe}upload(qe){qe.isInitialized&&qe.isAborted&&this.fileUploader._resetFileState(qe),qe.isValid()&&!qe.uploadStarted&&(this._prepareFileBeforeUpload(qe),this._uploadCore(qe))}abortUpload(qe){if(!(qe._isError||qe._isLoaded||qe.isAborted)&&qe.uploadStarted&&(qe.isAborted=!0,qe.request&&qe.request.abort(),this._isCustomCallback("abortUpload"))){const Nt=this.fileUploader.option("abortUpload"),et=this._createUploadArgument(qe);let ue=null;try{const me=Nt(qe.value,et);ue=(0,w.Sx)(me)}catch(me){ue=(0,w.cY)().reject(me).promise()}ue.done(()=>qe.onAbort.fire()).fail(me=>this._handleFileError(qe,me))}}_beforeSend(qe,Nt){const et=this._createUploadArgument(Nt);this.fileUploader._beforeSendAction({request:qe,file:Nt.value,uploadInfo:et}),Nt.request=qe}_createUploadArgument(qe){}_uploadCore(qe){}_isCustomCallback(qe){const Nt=this.fileUploader.option(qe);return Nt&&(0,b.Tn)(Nt)}_handleProgress(qe,Nt){qe._isError||(qe._isProgressStarted=!0,this._handleProgressCore(qe,Nt))}_handleProgressCore(qe,Nt){}_handleFileError(qe,Nt){qe._isError=!0,qe.onError.fire(Nt)}_prepareFileBeforeUpload(qe){var Nt;qe.$file&&(null===(Nt=qe.progressBar)||void 0===Nt||Nt.dispose(),this.fileUploader._createFileProgressBar(qe)),qe.isInitialized||(qe.onLoadStart.add(this._onUploadStarted.bind(this,qe)),qe.onLoad.add(this._onLoadedHandler.bind(this,qe)),qe.onError.add(this._onErrorHandler.bind(this,qe)),qe.onAbort.add(this._onAbortHandler.bind(this,qe)),qe.onProgress.add(this._onProgressHandler.bind(this,qe)),qe.isInitialized=!0)}_shouldHandleError(qe,Nt){return(this._isStatusError(Nt.status)||!qe._isProgressStarted)&&!qe.isAborted}_isStatusError(qe){return qe>=400&&qe<500||qe>=500&&qe<600}_onUploadStarted(qe,Nt){qe.uploadStarted=!0,this.fileUploader._uploadStartedAction({file:qe.value,event:Nt,request:qe.request})}_onAbortHandler(qe,Nt){const et={file:qe.value,event:Nt,request:qe.request,message:this.fileUploader._getUploadAbortedStatusMessage()};this.fileUploader._uploadAbortedAction(et),this.fileUploader._setStatusMessage(qe,et.message),this.fileUploader._handleAllFilesUploaded()}_onErrorHandler(qe,Nt){const et={file:qe.value,event:void 0,request:qe.request,error:Nt,message:this.fileUploader.option("uploadFailedMessage")};this.fileUploader._uploadErrorAction(et),this.fileUploader._setStatusMessage(qe,et.message),this.fileUploader._handleAllFilesUploaded()}_onLoadedHandler(qe,Nt){const et={file:qe.value,event:Nt,request:qe.request,message:this.fileUploader.option("uploadedMessage")};qe._isLoaded=!0,this.fileUploader._uploadedAction(et),this.fileUploader._setStatusMessage(qe,et.message),this.fileUploader._handleAllFilesUploaded()}_onProgressHandler(qe,Nt){if(qe){const et=this.fileUploader._getTotalFilesSize(),ue=this.fileUploader._getTotalLoadedFilesSize(),me=Math.min(Nt.loaded,qe.value.size),Te=me-qe.loadedSize;qe.loadedSize=me,this.fileUploader._updateTotalProgress(et,ue+Te),this.fileUploader._updateProgressBar(qe,this._getLoadedData(me,Nt.total,Te,Nt))}}_getLoadedData(qe,Nt,et,ue){return{loaded:qe,total:Nt,currentSegmentSize:et}}_extendFormData(qe){const Nt=this.fileUploader.option("uploadCustomData");for(const et in Nt)Object.prototype.hasOwnProperty.call(Nt,et)&&(0,b.O9)(Nt[et])&&qe.append(et,Nt[et])}}class q extends Be{constructor(qe){super(qe),this.chunkSize=this.fileUploader.option("chunkSize")}_uploadCore(qe){const Nt=qe.value,et={name:Nt.name,loadedBytes:0,type:Nt.type,blobReader:new Ke(Nt,this.chunkSize),guid:new T.A,fileSize:Nt.size,count:this._getFileChunksCount(Nt),customData:{}};qe.chunksData=et,this._sendChunk(qe,et)}_getFileChunksCount(qe){return 0===qe.size?1:Math.ceil(qe.size/this.chunkSize)}_sendChunk(qe,Nt){const et=Nt.blobReader.read();Nt.currentChunk=et,et&&this._sendChunkCore(qe,Nt,et).done(()=>{qe.isAborted||(Nt.loadedBytes+=et.blob.size,qe.onProgress.fire({loaded:Nt.loadedBytes,total:qe.value.size}),et.isCompleted&&qe.onLoad.fire(),setTimeout(()=>this._sendChunk(qe,Nt)))}).fail(ue=>{this._shouldHandleError(qe,ue)&&this._handleFileError(qe,ue)})}_sendChunkCore(qe,Nt,et){}_tryRaiseStartLoad(qe){qe.isStartLoad||(qe.isStartLoad=!0,qe.onLoadStart.fire())}_getEvent(qe){return null}_createUploadArgument(qe){return this._createChunksInfo(qe.chunksData)}_createChunksInfo(qe){return{bytesUploaded:qe.loadedBytes,chunkCount:qe.count,customData:qe.customData,chunkBlob:qe.currentChunk.blob,chunkIndex:qe.currentChunk.index}}}class Oe extends q{_sendChunkCore(qe,Nt,et){return e.A.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:ue=>this._beforeSend(ue,qe),upload:{onprogress:ue=>this._handleProgress(qe,ue),onloadstart:()=>this._tryRaiseStartLoad(qe),onabort:()=>qe.onAbort.fire()},data:this._createFormData({fileName:Nt.name,blobName:this.fileUploader.option("name"),blob:et.blob,index:et.index,count:Nt.count,type:Nt.type,guid:Nt.guid,size:Nt.fileSize})})}_createFormData(qe){const Nt=new J.FormData;return Nt.append(qe.blobName,qe.blob),Nt.append("chunkMetadata",JSON.stringify({FileName:qe.fileName,Index:qe.index,TotalCount:qe.count,FileSize:qe.size,FileType:qe.type,FileGuid:qe.guid})),this._extendFormData(Nt),Nt}}class fe extends q{_sendChunkCore(qe,Nt){this._tryRaiseStartLoad(qe);const et=this._createChunksInfo(Nt),ue=this.fileUploader.option("uploadChunk");try{const me=ue(qe.value,et);return(0,w.Sx)(me)}catch(me){return(0,w.cY)().reject(me).promise()}}_shouldHandleError(qe,Nt){return!0}}class We extends Be{_uploadCore(qe){qe.loadedSize=0,this._uploadFile(qe).done(()=>{qe.isAborted||qe.onLoad.fire()}).fail(Nt=>{this._shouldHandleError(qe,Nt)&&this._handleFileError(qe,Nt)})}_uploadFile(qe){}_handleProgressCore(qe,Nt){qe.onProgress.fire(Nt)}_getLoadedData(qe,Nt,et,ue){const me=super._getLoadedData(qe,Nt,et,ue);return me.event=ue,me}}class Ue extends We{_uploadFile(qe){return e.A.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:Nt=>this._beforeSend(Nt,qe),upload:{onprogress:Nt=>this._handleProgress(qe,Nt),onloadstart:()=>qe.onLoadStart.fire(),onabort:()=>qe.onAbort.fire()},data:this._createFormData(this.fileUploader.option("name"),qe.value)})}_createFormData(qe,Nt){const et=new J.FormData;return et.append(qe,Nt,Nt.name),this._extendFormData(et),et}}class Ve extends We{_uploadFile(qe){qe.onLoadStart.fire();const Nt=ue=>{this._handleProgress(qe,{loaded:ue,total:qe.value.size})},et=this.fileUploader.option("uploadFile");try{const ue=et(qe.value,Nt);return(0,w.Sx)(ue)}catch(ue){return(0,w.cY)().reject(ue).promise()}}_shouldHandleError(qe,Nt){return!0}}(0,S.A)("dxFileUploader",le);const at=le},5732:(En,it,p)=>{"use strict";p.d(it,{Q:()=>b,Sm:()=>F,Vw:()=>k,aZ:()=>X,hb:()=>B,hj:()=>w,ig:()=>C,kB:()=>j,om:()=>v,qj:()=>e,rb:()=>T});var S=p(656),d=p(6104);let m=null;function T(){return m}function C(H){m??=H}class e{}let k=(()=>{class H{historyGo(R){throw new Error("")}static \u0275fac=function(L){return new(L||H)};static \u0275prov=S.jDH({token:H,factory:()=>(0,S.WQX)(P),providedIn:"platform"})}return H})();const w=new S.nKC("");let P=(()=>{class H extends k{_location;_history;_doc=(0,S.WQX)(S.qQL);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return T().getBaseHref(this._doc)}onPopState(R){const L=T().getGlobalEventTarget(this._doc,"window");return L.addEventListener("popstate",R,!1),()=>L.removeEventListener("popstate",R)}onHashChange(R){const L=T().getGlobalEventTarget(this._doc,"window");return L.addEventListener("hashchange",R,!1),()=>L.removeEventListener("hashchange",R)}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(R){this._location.pathname=R}pushState(R,L,G){this._history.pushState(R,L,G)}replaceState(R,L,G){this._history.replaceState(R,L,G)}forward(){this._history.forward()}back(){this._history.back()}historyGo(R=0){this._history.go(R)}getState(){return this._history.state}static \u0275fac=function(L){return new(L||H)};static \u0275prov=S.jDH({token:H,factory:()=>new H,providedIn:"platform"})}return H})();function v(H,J){return H?J?H.endsWith("/")?J.startsWith("/")?H+J.slice(1):H+J:J.startsWith("/")?H+J:`${H}/${J}`:H:J}function x(H){const J=H.search(/#|\?|$/);return"/"===H[J-1]?H.slice(0,J-1)+H.slice(J):H}function b(H){return H&&"?"!==H[0]?`?${H}`:H}let B=(()=>{class H{historyGo(R){throw new Error("")}static \u0275fac=function(L){return new(L||H)};static \u0275prov=S.jDH({token:H,factory:()=>(0,S.WQX)(F),providedIn:"root"})}return H})();const j=new S.nKC("");let F=(()=>{class H extends B{_platformLocation;_baseHref;_removeListenerFns=[];constructor(R,L){super(),this._platformLocation=R,this._baseHref=L??this._platformLocation.getBaseHrefFromDOM()??(0,S.WQX)(S.qQL).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.onHashChange(R))}getBaseHref(){return this._baseHref}prepareExternalUrl(R){return v(this._baseHref,R)}path(R=!1){const L=this._platformLocation.pathname+b(this._platformLocation.search),G=this._platformLocation.hash;return G&&R?`${L}${G}`:L}pushState(R,L,G,Q){const z=this.prepareExternalUrl(G+b(Q));this._platformLocation.pushState(R,L,z)}replaceState(R,L,G,Q){const z=this.prepareExternalUrl(G+b(Q));this._platformLocation.replaceState(R,L,z)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(R=0){this._platformLocation.historyGo?.(R)}static \u0275fac=function(L){return new(L||H)(S.KVO(k),S.KVO(j,8))};static \u0275prov=S.jDH({token:H,factory:H.\u0275fac,providedIn:"root"})}return H})(),X=(()=>{class H{_subject=new d.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(R){this._locationStrategy=R;const L=this._locationStrategy.getBaseHref();this._basePath=function M(H){if(new RegExp("^(https?:)?//").test(H)){const[,R]=H.split(/\/\/[^\/]+/);return R}return H}(x(A(L))),this._locationStrategy.onPopState(G=>{this._subject.next({url:this.path(!0),pop:!0,state:G.state,type:G.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(R=!1){return this.normalize(this._locationStrategy.path(R))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(R,L=""){return this.path()==this.normalize(R+b(L))}normalize(R){return H.stripTrailingSlash(function Z(H,J){if(!H||!J.startsWith(H))return J;const R=J.substring(H.length);return""===R||["/",";","?","#"].includes(R[0])?R:J}(this._basePath,A(R)))}prepareExternalUrl(R){return R&&"/"!==R[0]&&(R="/"+R),this._locationStrategy.prepareExternalUrl(R)}go(R,L="",G=null){this._locationStrategy.pushState(G,"",R,L),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+b(L)),G)}replaceState(R,L="",G=null){this._locationStrategy.replaceState(G,"",R,L),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+b(L)),G)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(R=0){this._locationStrategy.historyGo?.(R)}onUrlChange(R){return this._urlChangeListeners.push(R),this._urlChangeSubscription??=this.subscribe(L=>{this._notifyUrlChangeListeners(L.url,L.state)}),()=>{const L=this._urlChangeListeners.indexOf(R);this._urlChangeListeners.splice(L,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(R="",L){this._urlChangeListeners.forEach(G=>G(R,L))}subscribe(R,L,G){return this._subject.subscribe({next:R,error:L??void 0,complete:G??void 0})}static normalizeQueryParams=b;static joinWithSlash=v;static stripTrailingSlash=x;static \u0275fac=function(L){return new(L||H)(S.KVO(B))};static \u0275prov=S.jDH({token:H,factory:()=>function U(){return new X((0,S.KVO)(B))}(),providedIn:"root"})}return H})();function A(H){return H.replace(/\/index.html$/,"")}},5737:(En,it,p)=>{"use strict";function S(){return S=Object.assign?Object.assign.bind():function(d){for(var m=1;m<arguments.length;m++){var T=arguments[m];for(var C in T)({}).hasOwnProperty.call(T,C)&&(d[C]=T[C])}return d},S.apply(null,arguments)}p.d(it,{A:()=>S})},5742:(En,it,p)=>{"use strict";p.d(it,{X:()=>A,B:()=>H});var S=p(5737),d=p(9144),m=p(6870),T=p(4859),C=p(3090),e=p(1363),k=p(1830);const w={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"};var X=p(5417);const U=["shading","target","$arrow"],Z={left:-1,top:-1,center:0,right:1,bottom:1},A={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},M={h:10,v:10};class H extends X.A{constructor(R){let{shading:L,target:G,$arrow:Q}=R;super((0,d.A)(R,U)),this._props=(0,S.A)({},this._props,{shading:L,target:G}),this._$arrow=Q,this._positionSide=void 0,this.updatePosition(this._props.position)}positionWrapper(){this._props.shading&&this._$wrapper.css({top:0,left:0})}updateTarget(R){this._props.target=R,this.updatePosition(this._props.position)}_renderBoundaryOffset(){}_getContainerPosition(){const R=(0,T.Li)(this._position.offset||"");let{h:L,v:G}=R;const Q=this._isVerticalSide(),z=this._isHorizontalSide();if(Q||z){const ce=(this._isPopoverInside()?-1:1)*Z[this._positionSide]*((Q?(0,e.Oq)(this._$arrow):(0,e.RG)(this._$arrow))-this._getContentBorderWidth(this._positionSide));Q?G+=ce:L+=ce}return(0,C.X)({},this._position,{offset:`${L} ${G}`})}_getContentBorderWidth(R){const L=this._$content.css(w[R]);return parseInt(L)||0}_isPopoverInside(){const R=m.A.setup.normalizeAlign(this._position.my),L=m.A.setup.normalizeAlign(this._position.at);return R.h===L.h&&R.v===L.v}_isVerticalSide(){let R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"top"===R||"bottom"===R}_isHorizontalSide(){let R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"left"===R||"right"===R}_getDisplaySide(R){const L=m.A.setup.normalizeAlign(R.my),G=m.A.setup.normalizeAlign(R.at),Q=Z[L.h]===Z[G.h]&&Z[L.v]===Z[G.v]?-1:1;return Math.abs(Z[L.h]-Q*Z[G.h])>Math.abs(Z[L.v]-Q*Z[G.v])?G.h:G.v}_normalizePosition(R){const L={of:this._props.target,boundaryOffset:M};let G;return G=(0,k.O9)(R)?(0,C.X)(!0,{},L,this._positionToObject(R)):L,this._positionSide=this._getDisplaySide(G),G}_positionToObject(R){return(0,k.Kg)(R)?(0,C.X)({},A[R]):R}}},5801:(En,it,p)=>{"use strict";p.d(it,{A:()=>B});var S=p(1221),d=p(3090),m=p(5335),T=p(8299);const e="_dataSourceChangedHandler",v="_getSpecificDataSourceOption",x="_normalizeDataSource",B={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){let F,X,j=v in this?this[v]():this.option("dataSource");this._disposeDataSource(),j&&(j instanceof S.q?(this._isSharedDataSource=!0,this._dataSource=j):(F="_dataSourceOptions"in this?this._dataSourceOptions():{},X=this._dataSourceType?this._dataSourceType():S.q,j=(0,m.ho)(j,{fromUrlLoadMode:"_dataSourceFromUrlLoadMode"in this&&this._dataSourceFromUrlLoadMode()}),this._dataSource=new X((0,d.X)(!0,{},F,j))),x in this&&(this._dataSource=this[x](this._dataSource)),this._addDataSourceHandlers(),this._initDataController())},_initDataController:function(){var j;const F=null===(j=this.option)||void 0===j?void 0:j.call(this,"_dataController");this._dataController=F||new T.A(this._dataSource)},_addDataSourceHandlers:function(){e in this&&this._addDataSourceChangeHandler(),"_dataSourceLoadErrorHandler"in this&&this._addDataSourceLoadErrorHandler(),"_dataSourceLoadingChangedHandler"in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this.readyWatcher=function(j){this._ready&&this._ready(!j)}.bind(this),this._dataSource.on("loadingChanged",this.readyWatcher)},_addDataSourceChangeHandler:function(){const j=this._dataSource;this._proxiedDataSourceChangedHandler=function(F){this[e](j.items(),F)}.bind(this),j.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this._dataSourceLoadErrorHandler.bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this._dataSourceLoadingChangedHandler.bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){const j=this._dataSource;j&&(j.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():j.load())},_loadSingle:function(j,F){return j="this"===j?this._dataSource.key()||"this":j,this._dataSource.loadSingle(j,F)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler),this._dataSource._eventsStrategy&&this._dataSource._eventsStrategy.off("loadingChanged",this.readyWatcher)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}}},5804:(En,it,p)=>{"use strict";p.d(it,{_:()=>m});var S=p(943),d=p(4500);function m(T,C){const e="object"==typeof C;return new Promise((k,w)=>{const P=new d.Ms({next:v=>{k(v),P.unsubscribe()},error:w,complete:()=>{e?k(C.defaultValue):w(new S.G)}});T.subscribe(P)})}},5811:(En,it,p)=>{"use strict";p.d(it,{A:()=>Q});var S=p(3538),d=p(7251),m=p(6101),T=p(4859),C=p(6021),e=p(3090),k=p(2660),w=p(1830),P=p(8360),v=p(1520);const x=/^[\d\w.+_-]+@[\d\w._-]+\.[\w]+$/i;class B{constructor(){this.NAME="base"}defaultMessage(K){return P.A.getFormatter(`validation-${this.NAME}`)(K)}defaultFormattedMessage(K){return P.A.getFormatter(`validation-${this.NAME}-formatted`)(K)}_isValueEmpty(K){return!R.required.validate(K,{})}validate(K,ee){const re=Array.isArray(K)?K:[K];let be=!0;return re.length?re.every(ce=>(be=this._validate(ce,ee),be)):be=this._validate(null,ee),be}}class Z extends B{constructor(){super(),this.NAME="custom"}validate(K,ee){if(ee.ignoreEmptyValue&&this._isValueEmpty(K))return!0;const{validator:re}=ee,be=re&&(0,w.Tn)(re.option)&&re.option("dataGetter"),ce=(0,w.Tn)(be)&&be(),Re={value:K,validator:re,rule:ee};return ce&&(0,e.X)(Re,ce),ee.validationCallback(Re)}}const R={required:new class j extends B{constructor(){super(),this.NAME="required"}_validate(K,ee){return!(!(0,w.O9)(K)||!1===K)&&(K=String(K),(ee.trim||!(0,w.O9)(ee.trim))&&(K=K.trim()),""!==K)}},numeric:new class F extends B{constructor(){super(),this.NAME="numeric"}_validate(K,ee){return!(!1===ee.ignoreEmptyValue||!this._isValueEmpty(K))||(ee.useCultureSettings&&(0,w.Kg)(K)?!isNaN(v.A.parse(K)):(0,w.kf)(K))}},range:new class X extends B{constructor(){super(),this.NAME="range"}_validate(K,ee){if(!1!==ee.ignoreEmptyValue&&this._isValueEmpty(K))return!0;const re=R.numeric.validate(K,ee),be=(0,w.O9)(K)&&""!==K,ce=re?parseFloat(K):be&&K.valueOf(),{min:Re}=ee,{max:Se}=ee;if(!re&&!(0,w.$P)(K)&&!be)return!1;if((0,w.O9)(Re))return(0,w.O9)(Se)?ce>=Re&&ce<=Se:ce>=Re;if((0,w.O9)(Se))return ce<=Se;throw d.A.Error("E0101")}},stringLength:new class U extends B{constructor(){super(),this.NAME="stringLength"}_validate(K,ee){return K=String(K??""),(ee.trim||!(0,w.O9)(ee.trim))&&(K=K.trim()),!(!ee.ignoreEmptyValue||!this._isValueEmpty(K))||R.range.validate(K.length,(0,e.X)({},ee))}},custom:new Z,async:new class A extends Z{constructor(){super(),this.NAME="async"}validate(K,ee){if((0,w.O9)(ee.reevaluate)||(0,e.X)(ee,{reevaluate:!0}),ee.ignoreEmptyValue&&this._isValueEmpty(K))return!0;const{validator:re}=ee,be=re&&(0,w.Tn)(re.option)&&re.option("dataGetter"),ce=(0,w.Tn)(be)&&be(),Re={value:K,validator:re,rule:ee};ce&&(0,e.X)(Re,ce);const Se=ee.validationCallback(Re);if(!(0,w.yL)(Se))throw d.A.Error("E0103");return this._getWrappedPromise((0,C.Sx)(Se).promise())}_getWrappedPromise(K){const ee=(0,C.cY)();return K.then(re=>{ee.resolve(re)},re=>{const be={isValid:!1};(0,w.O9)(re)&&((0,w.Kg)(re)?be.message=re:(0,w.Gv)(re)&&(0,w.O9)(re.message)&&(0,w.Kg)(re.message)&&(be.message=re.message)),ee.resolve(be)}),ee.promise()}},compare:new class M extends B{constructor(){super(),this.NAME="compare"}_validate(K,ee){if(!ee.comparisonTarget)throw d.A.Error("E0102");if(ee.ignoreEmptyValue&&this._isValueEmpty(K))return!0;(0,e.X)(ee,{reevaluate:!0});const re=ee.comparisonTarget();switch(ee.comparisonType||"=="){case"==":return K==re;case"!=":return K!=re;case"===":return K===re;case"!==":return K!==re;case">":return K>re;case">=":return K>=re;case"<":return K<re;case"<=":return K<=re}}},pattern:new class H extends B{constructor(){super(),this.NAME="pattern"}_validate(K,ee){if(!1!==ee.ignoreEmptyValue&&this._isValueEmpty(K))return!0;let{pattern:re}=ee;return(0,w.Kg)(re)&&(re=new RegExp(re)),re.test(K)}},email:new class J extends B{constructor(){super(),this.NAME="email"}_validate(K,ee){return!(!1===ee.ignoreEmptyValue||!this._isValueEmpty(K))||R.pattern.validate(K,(0,e.X)({},ee,{pattern:x}))}}},L=S.A.inherit({ctor(z,K){this.group=z,this.validators=[],this._isRemovable=K,this._pendingValidators=[],this._onValidatorStatusChanged=this._onValidatorStatusChanged.bind(this),this._resetValidationInfo(),this._eventsStrategy=new m.h(this)},validate(){const z={isValid:!0,brokenRules:[],validators:[],status:"valid",complete:null};return this._unsubscribeFromAllChangeEvents(),this._pendingValidators=[],this._resetValidationInfo(),(0,k.__)(this.validators,(K,ee)=>{const re=ee.validate();z.isValid=z.isValid&&re.isValid,re.brokenRules&&(z.brokenRules=z.brokenRules.concat(re.brokenRules)),z.validators.push(ee),"pending"===re.status&&this._addPendingValidator(ee),this._subscribeToChangeEvents(ee)}),this._pendingValidators.length?z.status="pending":(z.status=z.isValid?"valid":"invalid",this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(z)),this._updateValidationInfo(z),(0,e.X)({},this._validationInfo.result)},_subscribeToChangeEvents(z){z.on("validating",this._onValidatorStatusChanged),z.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents(z){z.off("validating",this._onValidatorStatusChanged),z.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents(){(0,k.__)(this.validators,(z,K)=>{this._unsubscribeFromChangeEvents(K)})},_updateValidationInfo(z){this._validationInfo.result=z,"pending"===z.status&&(this._validationInfo.deferred||(this._validationInfo.deferred=(0,C.cY)(),this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator(z){(0,T.VM)(this._pendingValidators,ee=>ee===z)[0]||this._pendingValidators.push(z)},_removePendingValidator(z){const K=this._pendingValidators.indexOf(z);K>=0&&this._pendingValidators.splice(K,1)},_orderBrokenRules(z){let K=[];return(0,k.__)(this.validators,(ee,re)=>{const be=(0,T.VM)(z,ce=>ce.validator===re);be.length&&(K=K.concat(be))}),K},_updateBrokenRules(z){if(!this._validationInfo.result)return;let{brokenRules:K}=this._validationInfo.result;const ee=(0,T.VM)(K,re=>re.validator!==z.validator);z.brokenRules&&(K=ee.concat(z.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(K)},_onValidatorStatusChanged(z){"pending"!==z.status?this._resolveIfComplete(z):this._addPendingValidator(z.validator)},_resolveIfComplete(z){if(this._removePendingValidator(z.validator),this._updateBrokenRules(z),!this._pendingValidators.length){if(this._unsubscribeFromAllChangeEvents(),!this._validationInfo.result)return;this._validationInfo.result.status=0===this._validationInfo.result.brokenRules.length?"valid":"invalid",this._validationInfo.result.isValid="valid"===this._validationInfo.result.status;const K=(0,e.X)({},this._validationInfo.result,{complete:null}),{deferred:ee}=this._validationInfo;this._validationInfo.deferred=null,this._raiseValidatedEvent(K),ee&&setTimeout(()=>{ee.resolve(K)})}},_raiseValidatedEvent(z){this._eventsStrategy.fireEvent("validated",[z])},_resetValidationInfo(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator(z){const K=this.validators.indexOf(z);K>-1&&(this.validators.splice(K,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:z}))},registerValidator(z){this.validators.includes(z)||(this.validators.push(z),this._synchronizeValidationInfo())},reset(){(0,k.__)(this.validators,(z,K)=>{K.reset()}),this._pendingValidators=[],this._resetValidationInfo()},on(z,K){return this._eventsStrategy.on(z,K),this},off(z,K){return this._eventsStrategy.off(z,K),this}}),G={groups:[],getGroupConfig(z){const K=(0,T.VM)(this.groups,ee=>ee.group===z);if(K.length)return K[0]},findGroup(z,K){var ee;const be=(null===(ee=z.data())||void 0===ee||null===(ee=ee.dxComponents)||void 0===ee?void 0:ee.includes("dxValidationGroup"))&&z.dxValidationGroup("instance");if(be)return be;const ce=z.parents(".dx-validationgroup").first();return ce.length?ce.dxValidationGroup("instance"):K},initGroups(){this.groups=[],this.addGroup(void 0,!1)},addGroup(z){let K=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ee=this.getGroupConfig(z);return ee||(ee=new L(z,K),this.groups.push(ee)),ee},removeGroup(z){const K=this.getGroupConfig(z),ee=this.groups.indexOf(K);return ee>-1&&this.groups.splice(ee,1),K},_setDefaultMessage(z){const{rule:K,validator:ee,name:re}=z;(0,w.O9)(K.message)||(K.message=ee.defaultFormattedMessage&&(0,w.O9)(re)?ee.defaultFormattedMessage(re):ee.defaultMessage())},_addBrokenRule(z){const{result:K,rule:ee}=z;K.brokenRule||(K.brokenRule=ee),K.brokenRules||(K.brokenRules=[]),K.brokenRules.push(ee)},validate(z,K,ee){var re;let be={name:ee,value:z,brokenRule:null,brokenRules:null,isValid:!0,validationRules:K,pendingRules:null,status:"valid",complete:null};const ce=null==K||null===(re=K[0])||void 0===re?void 0:re.validator,Re=[];return(0,k.__)(K||[],(Se,De)=>{const Pe=R[De.type];let Ie;if(!Pe)throw d.A.Error("E0100");return(0,w.O9)(De.isValid)&&De.value===z&&!De.reevaluate?!!De.isValid||(be.isValid=!1,this._addBrokenRule({result:be,rule:De}),!1):(De.value=z,"async"===De.type?(Re.push({rule:De,ruleValidator:Pe}),!0):(Ie=Pe.validate(z,De),De.isValid=Ie,Ie||(be.isValid=!1,this._setDefaultMessage({rule:De,validator:Pe,name:ee}),this._addBrokenRule({result:be,rule:De})),!!De.isValid&&void 0))}),be.isValid&&!be.brokenRules&&Re.length&&(be=this._validateAsyncRules({value:z,items:Re,result:be,name:ee})),this._synchronizeGroupValidationInfo(ce,be),be.status=be.pendingRules?"pending":be.isValid?"valid":"invalid",be},_synchronizeGroupValidationInfo(z,K){if(!z)return;const ee=G.getGroupConfig(z._validationGroup);ee._updateBrokenRules.call(ee,{validator:z,brokenRules:K.brokenRules??[]})},_validateAsyncRules(z){let{result:K,value:ee,items:re,name:be}=z;const ce=[];return(0,k.__)(re,(Re,Se)=>{const De=Se.ruleValidator.validate(ee,Se.rule);if((0,w.yL)(De)){K.pendingRules||(K.pendingRules=[]),K.pendingRules.push(Se.rule);const Pe=De.then(Ie=>{const W=this._getPatchedRuleResult(Ie);return this._updateRuleConfig({rule:Se.rule,ruleResult:W,validator:Se.ruleValidator,name:be}),W});ce.push(Pe)}else this._updateRuleConfig({rule:Se.rule,ruleResult:this._getPatchedRuleResult(De),validator:Se.ruleValidator,name:be})}),ce.length&&(K.complete=Promise.all(ce).then(Re=>this._getAsyncRulesResult({result:K,values:Re}))),K},_updateRuleConfig(z){let{rule:K,ruleResult:ee,validator:re,name:be}=z;K.isValid=ee.isValid,ee.isValid||((0,w.O9)(ee.message)&&(0,w.Kg)(ee.message)&&ee.message.length?K.message=ee.message:this._setDefaultMessage({rule:K,validator:re,name:be}))},_getPatchedRuleResult(z){let K;return(0,w.Gv)(z)?(K=(0,e.X)({},z),(0,w.O9)(K.isValid)||(K.isValid=!0)):K={isValid:!(0,w.Lm)(z)||z},K},_getAsyncRulesResult(z){let{values:K,result:ee}=z;return(0,k.__)(K,(re,be)=>{!1===be.isValid&&(ee.isValid=be.isValid,this._addBrokenRule({result:ee,rule:ee.pendingRules[re]}))}),ee.pendingRules=null,ee.complete=null,ee.status=ee.isValid?"valid":"invalid",ee},registerValidatorInGroup(z,K){const ee=G.addGroup(z);ee.registerValidator.call(ee,K)},removeRegisteredValidator(z,K){const ee=G.getGroupConfig(z);ee&&(ee.removeRegisteredValidator.call(ee,K),0===ee.validators.length&&ee._isRemovable&&this.removeGroup(z))},initValidationOptions(z){const K={};return z&&["isValid","validationStatus","validationError","validationErrors"].forEach(re=>{re in z&&(0,e.X)(K,this.synchronizeValidationOptions({name:re,value:z[re]},z))}),K},synchronizeValidationOptions(z,K){let{name:ee,value:re}=z;switch(ee){case"validationStatus":{const be="valid"===re||"pending"===re;return K.isValid!==be?{isValid:be}:{}}case"isValid":{const{validationStatus:be}=K;let ce=be;return re&&"invalid"===be?ce="valid":!re&&"invalid"!==be&&(ce="invalid"),ce!==be?{validationStatus:ce}:{}}case"validationErrors":{const be=re&&re.length?re[0]:null;return K.validationError!==be?{validationError:be}:{}}case"validationError":{const{validationErrors:be}=K;if(!re&&be)return{validationErrors:null};if(re&&!be)return{validationErrors:[re]};if(re&&be&&re!==be[0])return be[0]=re,{validationErrors:be.slice()}}}return{}},validateGroup(z){const K=G.getGroupConfig(z);if(!K)throw d.A.Error("E0110");return K.validate()},resetGroup(z){const K=G.getGroupConfig(z);if(!K)throw d.A.Error("E0110");return K.reset()}};G.initGroups();const Q=G},5870:(En,it,p)=>{"use strict";function S(C,e){for(;C.length<e;)C="0"+C;return C}p.d(it,{f:()=>T});const d={3:"abbreviated",4:"wide",5:"narrow"},m={y:function(C,e,k){let w=C[k?"getUTCFullYear":"getFullYear"]();return 2===e&&(w%=100),S(w.toString(),e)},M:function(C,e,k,w){const P=C[k?"getUTCMonth":"getMonth"](),v=d[e];return v?w.getMonthNames(v,"format")[P]:S((P+1).toString(),Math.min(e,2))},L:function(C,e,k,w){const P=C[k?"getUTCMonth":"getMonth"](),v=d[e];return v?w.getMonthNames(v,"standalone")[P]:S((P+1).toString(),Math.min(e,2))},Q:function(C,e,k,w){const P=C[k?"getUTCMonth":"getMonth"](),v=Math.floor(P/3),x=d[e];return x?w.getQuarterNames(x)[v]:S((v+1).toString(),Math.min(e,2))},E:function(C,e,k,w){const P=C[k?"getUTCDay":"getDay"]();return w.getDayNames(d[e<3?3:e])[P]},a:function(C,e,k,w){const v=C[k?"getUTCHours":"getHours"]()<12?0:1;return w.getPeriodNames(d[e])[v]},d:function(C,e,k){return S(C[k?"getUTCDate":"getDate"]().toString(),Math.min(e,2))},H:function(C,e,k){return S(C[k?"getUTCHours":"getHours"]().toString(),Math.min(e,2))},h:function(C,e,k){return S((C[k?"getUTCHours":"getHours"]()%12||12).toString(),Math.min(e,2))},m:function(C,e,k){return S(C[k?"getUTCMinutes":"getMinutes"]().toString(),Math.min(e,2))},s:function(C,e,k){return S(C[k?"getUTCSeconds":"getSeconds"]().toString(),Math.min(e,2))},S:function(C,e,k){return S(C[k?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,e)},x:function(C,e,k){const w=k?0:C.getTimezoneOffset(),P=w>0?"-":"+",v=Math.abs(w),b=v%60,B=S(Math.floor(v/60).toString(),2),j=S(b.toString(),2);return P+B+(e>=3?":":"")+(e>1||b?j:"")},X:function(C,e,k){return k||!C.getTimezoneOffset()?"Z":m.x(C,e,k)},Z:function(C,e,k){return m.X(C,e>=5?3:2,k)}},T=function(C,e){return function(k){let w,P,v,B,x=0,b=!1,j="";if(!k)return null;if(!C)return k;const F="Z"===C[C.length-1]||"'Z'"===C.slice(-3);for(w=0;w<C.length;w++)v=C[w],P=m[v],B=v===C[w+1],x++,B||(P&&!b&&(j+=P(k,x,F,e)),x=0),"'"!==v||B?(b||!P)&&(j+=v):b=!b,"'"===v&&B&&w++;return j}}},5908:(En,it,p)=>{"use strict";p.d(it,{M:()=>C});var S=p(6394),d=p(3746),m=p(656),T=p(65);let C=(()=>{var e;class k{constructor(P,v){this.http=P,this.scopeService=v,this.apiEndpoint="",this.translationCache=new Map,this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint}getAvailableTargetLanguages(){return this.availableTargetLanguagesCache?Promise.resolve(this.availableTargetLanguagesCache):this.http.get(`${this.apiEndpoint}translations/targetLanguages`).toPromise().then(P=>(this.availableTargetLanguagesCache=P,P)).catch(P=>Promise.reject(P))}canTranslate(){if(!0===this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled){const v=this.scope.profile,x=this.scope.network.settings.languagePack.split("-")[0];if(null!==v.activeUserLanguage?.vendorLanguageCode&&x!==v.activeUserLanguage?.vendorLanguageCode)return!0}return!1}translateInternal(P,v){var x=this;return(0,S.A)(function*(){if(!0===x.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled&&null!==v){const j=x.scope.profile,F=x.scope.network.settings.languagePack.split("-")[0];if(null!==j.activeUserLanguage?.vendorLanguageCode&&F!==j.activeUserLanguage?.vendorLanguageCode){const X=x.scope.globalSettings.configurations.translationEndpointInfo;return x.http.post(`${X.baseUrl}/api/Translations/vendorbatch`,{TenantId:"ab1c0d0b-c2d1-d0ab-1c0d-0ab1c0d0ab1c",Sources:P,IgnoreReplacements:!0,ToVendorLanguageId:v},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${X.token}`}}).toPromise().then(H=>H.translations).catch(H=>{console.error("TRANS FETCH FAIL",H);const J=P.map(R=>({source:R,translation:R}));return Promise.resolve(J)})}}return{translations:P.map(j=>({source:j,translation:j}))}})()}getCachedOrTranslate(P,v){var x=this;return(0,S.A)(function*(){if(null==v)return P.map(F=>({source:F,translation:F}));const b=JSON.stringify({textEntries:P,targetVendorLanguageId:v});if(x.translationCache.has(b))return x.translationCache.get(b);const B=x.translateInternal(P,v);return x.translationCache.set(b,B),B})()}translateByUserLanguageCode(P){if(this.canTranslate()){const v=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration.VendorId,b=this.scope.profile.activeUserLanguage?.vendorLanguageCode,j=this.scope.globalSettings.configurations.availableVendorLanguages.find(F=>F.id===v).supportedVendorLanguages.find(F=>F.languageCode===b||F.languageISO639Code===b);return this.getCachedOrTranslate(P,j?.id)}return this.getCachedOrTranslate(P,null)}translateToOrigin(P){if(this.canTranslate()){const v=this.scope.network.settings.languagePack.split("-")[0],x=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration.VendorId,B=this.scope.globalSettings.configurations.availableVendorLanguages.find(j=>j.id===x).supportedVendorLanguages.find(j=>j.languageCode===v||j.languageISO639Code===v);return this.getCachedOrTranslate(P,B?.id)}return this.getCachedOrTranslate(P,null)}getTranslatedArticleDetails(P,v,x){let b=this.scope.apiEndpoint+"articles/"+P+"/translate/"+v;return x&&(b=b+"?v="+x),this.http.post(b,null).toPromise().then(B=>B).catch(B=>Promise.reject(B))}getTranslatedEventDetails(P,v){return this.http.get(`${this.scope.apiEndpoint}eventcalendar/${P}/translate/${v}`).toPromise().catch(b=>Promise.reject(b))}static#e=e=()=>(this.\u0275fac=function(v){return new(v||k)(m.KVO(T.Qq),m.KVO(d.A))},this.\u0275prov=m.jDH({token:k,factory:k.\u0275fac,providedIn:"root"}))}return e(),k})()},5944:(En,it,p)=>{"use strict";p.d(it,{U:()=>k});var S=p(5704),d=p(6776),m=p(4072),T=p(1110),C=p(1830);class k extends d.o{constructor(P,v,x,b){super(),this._render=P,this._fields=v,this._fieldsMap=b||{},this._watchMethod=x}_renderCore(P){const v=(0,S.A)(P.container),x=function(w,P,v,x,b){let B;const j=(F=w,P(()=>F,function(F){B&&B(),(0,C.sO)(F)?b(F):B=function(X,U,Z,A,M){const H={},J=Z.slice(),R=Z.map(function(L){const G=A[L];return U(G?()=>G(X):()=>X[L],function(Q){if(H[L]=Q,J.length){const z=J.indexOf(L);z>=0&&J.splice(z,1)}J.length||M(H)})});return function(){R.forEach(L=>L())}}(F,P,v,x,b)}));var F;return function(){B&&B(),j&&j()}}(P.model,this._watchMethod,this._fields,this._fieldsMap,b=>{v.empty(),this._render(v,b,P.model)});return m.A.on(v,T.N,x),v.contents()}}},5947:(En,it,p)=>{"use strict";p.d(it,{Y:()=>k,d:()=>w});var S=p(656),d=p(4303),m=p(4775),T=p(8832),C=p(3349);const e={provide:T.kq,useExisting:(0,S.Rfq)(()=>k),multi:!0};let k=(()=>{class P extends C.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(x){this._setOption("accessKey",x)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(x){this._setOption("activeStateEnabled",x)}get disabled(){return this._getOption("disabled")}set disabled(x){this._setOption("disabled",x)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(x){this._setOption("elementAttr",x)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(x){this._setOption("focusStateEnabled",x)}get height(){return this._getOption("height")}set height(x){this._setOption("height",x)}get hint(){return this._getOption("hint")}set hint(x){this._setOption("hint",x)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(x){this._setOption("hoverStateEnabled",x)}get isDirty(){return this._getOption("isDirty")}set isDirty(x){this._setOption("isDirty",x)}get isValid(){return this._getOption("isValid")}set isValid(x){this._setOption("isValid",x)}get name(){return this._getOption("name")}set name(x){this._setOption("name",x)}get readOnly(){return this._getOption("readOnly")}set readOnly(x){this._setOption("readOnly",x)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(x){this._setOption("rtlEnabled",x)}get switchedOffText(){return this._getOption("switchedOffText")}set switchedOffText(x){this._setOption("switchedOffText",x)}get switchedOnText(){return this._getOption("switchedOnText")}set switchedOnText(x){this._setOption("switchedOnText",x)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(x){this._setOption("tabIndex",x)}get validationError(){return this._getOption("validationError")}set validationError(x){this._setOption("validationError",x)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(x){this._setOption("validationErrors",x)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(x){this._setOption("validationMessageMode",x)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(x){this._setOption("validationMessagePosition",x)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(x){this._setOption("validationStatus",x)}get value(){return this._getOption("value")}set value(x){this._setOption("value",x)}get visible(){return this._getOption("visible")}set visible(x){this._setOption("visible",x)}get width(){return this._getOption("width")}set width(x){this._setOption("width",x)}onContentReady;onDisposing;onInitialized;onOptionChanged;onValueChanged;accessKeyChange;activeStateEnabledChange;disabledChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;isDirtyChange;isValidChange;nameChange;readOnlyChange;rtlEnabledChange;switchedOffTextChange;switchedOnTextChange;tabIndexChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;visibleChange;widthChange;onBlur;change(x){}touched=x=>{};constructor(x,b,B,j,F,X,U,Z){super(x,b,B,j,U,Z),this._watcherHelper=j,this._idh=F,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"switchedOffTextChange"},{emit:"switchedOnTextChange"},{emit:"tabIndexChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),X.setHost(this)}_createInstance(x,b){return new m.A(x,b)}writeValue(x){this.eventHelper.lockedValueChangeEvent=!0,this.value=x,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(x){this.disabled=x}registerOnChange(x){this.change=x}registerOnTouched(x){this.touched=x}_createWidget(x){super._createWidget(x),this.instance.on("focusOut",b=>{this.eventHelper.fireNgEvent("onBlur",[b])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(x){super.ngOnChanges(x),this.setupChanges("validationErrors",x)}setupChanges(x,b){x in this._optionsToUpdate||this._idh.setup(x,b)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(x,b){let B=this._idh.setupSingle(x,b),j=null!==this._idh.getChanges(x,b);(B||j)&&super._setOption(x,b)}static \u0275fac=function(b){return new(b||P)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(C.zF),d.rXU(C.jS),d.rXU(C.$M),d.rXU(C.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:P,selectors:[["dx-switch"]],hostBindings:function(b,B){1&b&&d.bIt("valueChange",function(F){return B.change(F)})("onBlur",function(F){return B.touched(F)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isDirty:"isDirty",isValid:"isValid",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",switchedOffText:"switchedOffText",switchedOnText:"switchedOnText",tabIndex:"tabIndex",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",switchedOffTextChange:"switchedOffTextChange",switchedOnTextChange:"switchedOnTextChange",tabIndexChange:"tabIndexChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[d.Jv_([C.zF,C.jS,e,C.fH,C.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(b,B){},encapsulation:2})}return P})(),w=(()=>{class P{static \u0275fac=function(b){return new(b||P)};static \u0275mod=d.$C({type:P});static \u0275inj=S.G2t({imports:[C.p_,C.xZ,C.xZ]})}return P})()},5973:(En,it,p)=>{"use strict";p.d(it,{A:()=>J});var S=p(1363),d=p(5704),m=p(6110),T=p(3090),C=p(1830),e=p(7251),k=p(8684),w=p(2720),P=p(1773),v=p(6101),x=p(4129),b=p(4017),B=p(3686);const j=(0,m.zk)(),F={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},X={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},U={generic(R){const L=/windows phone/i.test(R)||R.match(/WPDesktop/),G=!L&&/Windows(.*)arm(.*)Tablet PC/i.test(R),Q=!L&&!G&&/msapphost/i.test(R),z=/((intel|ppc) mac os x)/.test(R.toLowerCase());return L||G||Q||z?{deviceType:L?"phone":G?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:z}:null},appleTouchDevice(R){const L=(0,m.w3)(),G=/Macintosh/i.test(R)&&L?.maxTouchPoints>2;if(!/ip(hone|od|ad)/i.test(R)&&!G)return null;const z=/ip(hone|od)/i.test(R),K=R.match(/os\s{0,}X? (\d+)_(\d+)_?(\d+)?/i);return{deviceType:z?"phone":"tablet",platform:"ios",version:K?[parseInt(K[1],10),parseInt(K[2],10),parseInt(K[3]||0,10)]:[],grade:480===j.screen.height?"B":"A"}},android(R){const L=/android|htc_|silk/i.test(R),G=/windows phone/i.test(R);if(!L||G)return null;const Q=/mobile/i.test(R),z=R.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),K=z?[parseInt(z[1],10),parseInt(z[2]||0,10),parseInt(z[3]||0,10)]:[];return{deviceType:Q?"phone":"tablet",platform:"android",version:K,grade:K.length>1&&(K[0]<4||4===K[0]&&K[1]<4)?"B":"A"}}},Z=[U.appleTouchDevice,U.android,U.generic],M=new class A{constructor(L){this._window=L?.window||j,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new v.h(this),this.changed=(0,k.A)(),(0,m.Vd)()&&(w.A.add(this._recalculateOrientation.bind(this)),P.A.add(this._recalculateOrientation.bind(this)))}current(L){if(L)return this._currentDevice=this._getDevice(L),this._forced=!0,void this.changed.fire();if(!this._currentDevice){L=void 0;try{L=this._getDeviceOrNameFromWindowScope()}catch{L=this._getDeviceNameFromSessionStorage()}finally{L||(L=this._getDeviceNameFromSessionStorage()),L&&(this._forced=!0)}this._currentDevice=this._getDevice(L)}return this._currentDevice}real(L){return(0,T.X)({},this._realDevice)}orientation(){return this._currentOrientation}isForced(){return this._forced}isRippleEmulator(){return!!this._window.tinyHippos}_getCssClasses(L){const G=[],Q=this._realDevice;return(L=L||this.current()).deviceType&&(G.push(`dx-device-${L.deviceType}`),"desktop"!==L.deviceType&&G.push("dx-device-mobile")),G.push(`dx-device-${Q.platform}`),Q.version&&Q.version.length&&G.push(`dx-device-${Q.platform}-${Q.version[0]}`),this.isSimulator()&&G.push("dx-simulator"),(0,B.A)().rtlEnabled&&G.push("dx-rtl"),G}attachCssClasses(L,G){this._deviceClasses=this._getCssClasses(G).join(" "),(0,d.A)(L).addClass(this._deviceClasses)}detachCssClasses(L){(0,d.A)(L).removeClass(this._deviceClasses)}isSimulator(){try{return this._isSimulator||(0,m.Vd)()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch{return!1}}forceSimulator(){this._isSimulator=!0}_getDevice(L){if("genericPhone"===L&&(L={deviceType:"phone",platform:"generic",generic:!0}),(0,C.Qd)(L))return this._fromConfig(L);{let G;if(L){if(G=F[L],!G)throw e.A.Error("E0005")}else G=(0,m.w3)().userAgent;return this._fromUA(G)}}_getDeviceOrNameFromWindowScope(){let L;return(0,m.Vd)()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(L=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),L}_getDeviceNameFromSessionStorage(){const L=(0,x.s)();if(!L)return;const G=L.getItem("dx-force-device");try{return JSON.parse(G)}catch{return G}}_fromConfig(L){const G=(0,T.X)({},X,this._currentDevice,L);return(0,T.X)(G,{phone:"phone"===G.deviceType,tablet:"tablet"===G.deviceType,android:"android"===G.platform,ios:"ios"===G.platform,generic:"generic"===G.platform})}_fromUA(L){for(let G=0;G<Z.length;G+=1){const z=(0,Z[G])(L);if(z)return this._fromConfig(z)}return X}_changeOrientation(){const L=(0,d.A)(this._window),G=(0,S.Oq)(L)>(0,S.RG)(L)?"portrait":"landscape";this._currentOrientation!==G&&(this._currentOrientation=G,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:G}]))}_recalculateOrientation(){const L=(0,S.RG)(this._window);this._currentWidth!==L&&(this._currentWidth=L,this._changeOrientation())}on(L,G){return this._eventsStrategy.on(L,G),this}off(L,G){return this._eventsStrategy.off(L,G),this}},H=(0,b.Uq)();H&&M.attachCssClasses(H),b.WV.add((R,L)=>{M.detachCssClasses(L),M.attachCssClasses(R)});const J=M},5981:(En,it,p)=>{"use strict";p.d(it,{t:()=>d});var S=p(6104);class d extends S.B{constructor(T){super(),this._value=T}get value(){return this.getValue()}_subscribe(T){const C=super._subscribe(T);return!C.closed&&T.next(this._value),C}getValue(){const{hasError:T,thrownError:C,_value:e}=this;if(T)throw C;return this._throwIfClosed(),e}next(T){super.next(this._value=T)}}},6016:(En,it,p)=>{"use strict";p.d(it,{v:()=>J});var S=p(3746),d=p(4303),m=p(3486),T=p(281),C=p(9026),e=p(1486),k=p(668),w=p(7829),P=p(6358);const v=()=>({width:150}),x=R=>({"aria-label":R});function b(R,L){if(1&R&&d.nrm(0,"img",17),2&R){const G=d.XpG();d.Y8G("lazy-img",G.avatarUrl)("alt","")}}function B(R,L){if(1&R&&(d.j41(0,"div",18),d.EFF(1),d.k0s()),2&R){const G=d.XpG();d.R7$(),d.JRh(G.initials)}}function j(R,L){if(1&R&&(d.j41(0,"div",4),d.nVh(1,b,1,2,"img",17),d.nVh(2,B,2,1,"div",18),d.k0s()),2&R){const G=L;d.R7$(),d.vxM(G.avatarUrl?1:-1),d.R7$(),d.vxM(G.useInitials?2:-1)}}function F(R,L){if(1&R&&(d.j41(0,"div"),d.nrm(1,"app-chat-one-to-one-action-button",19),d.k0s()),2&R){const G=d.XpG();d.R7$(),d.Y8G("otherUserGuid",G.targetUserProfile.guid)}}function X(R,L){1&R&&d.nrm(0,"i",10)}function U(R,L){if(1&R&&(d.j41(0,"span",11),d.EFF(1),d.k0s()),2&R){const G=d.XpG();d.R7$(),d.SpI(" , ",G.userRole," ")}}function Z(R,L){if(1&R&&(d.j41(0,"span",20),d.nrm(1,"i",21),d.EFF(2),d.nI1(3,"date"),d.k0s()),2&R){const G=d.XpG(3);d.R7$(2),d.JRh(d.i5U(3,1,G.targetUserProfile.birthdayCalendarData.birthday,"mediumDate"))}}function A(R,L){if(1&R&&(d.j41(0,"span",20),d.nrm(1,"i",21),d.EFF(2),d.nI1(3,"date"),d.k0s()),2&R){const G=d.XpG(3);d.R7$(2),d.JRh(d.i5U(3,1,G.targetUserProfile.birthdayCalendarData.birthday,"dd.MM."))}}function M(R,L){if(1&R&&(d.j41(0,"div"),d.nVh(1,Z,4,4,"span",20)(2,A,4,4,"span",20),d.k0s()),2&R){const G=d.XpG(2);d.R7$(),d.vxM(G.targetUserProfile.birthdayCalendarData.consentAgeDisclosure?1:2)}}function H(R,L){if(1&R&&(d.j41(0,"div",14),d.nVh(1,M,3,1,"div"),d.nrm(2,"br"),d.k0s()),2&R){const G=d.XpG();d.R7$(),d.vxM(null!=G.targetUserProfile&&null!=G.targetUserProfile.birthdayCalendarData&&G.targetUserProfile.birthdayCalendarData.consentToEventCalendar?1:-1)}}let J=(()=>{var R;class L{constructor(Q){this.scopeService=Q,this.userRole="",this.enableVerifiedUsers=!1,this.userIsVerified=!1,this.chatEnabled=!1,this.dropDownButtonOptions=[],this.enableUserReports=!1,this.enableBlockUsers=!1,this.showReportDialog=!1,this.showBlockDialog=!1,this.coverImageUrl="",this.oneToOneChatEnabled=!1,this.generateUserRoleText=()=>{this.targetUserProfile.isJournalist&&(this.userRole=this.scope.network.getResourceOrKeyName("web_common_freelanceAuthorMale"))},this.dropDownButtonMenuItemClick=z=>{switch(z){case"report":this.showReportDialog=!0;break;case"block":this.showBlockDialog=!0}},this.generatedropDownButtonOptions=()=>{this.enableUserReports&&this.dropDownButtonOptions.push({icon:"fa-regular fa-flag",text:this.scope.currentScope.network.resources.web_chat_message_report,iconType:"report"}),this.enableBlockUsers&&this.dropDownButtonOptions.push({icon:"fa-solid fa-user-xmark",text:this.scope.currentScope.network.resources.web_block_user_dialog_block_button,iconType:"block"})},this.scope=this.scopeService.getScope()}ngOnInit(){this.generateUserRoleText(),this.enableVerifiedUsers=this.scope.currentScope.chapter.settings.configurations.enableVerifiedUsers,this.userIsVerified=this.targetUserProfile.isVerifiedUser,this.chatEnabled=eval?.(this.scope.currentChapter.settings.configurations?.chatChapterConfiguration?.ChatEnabled),this.oneToOneChatEnabled=this.scope.currentChapter.settings.configurations?.chatChapterConfiguration?.OneToOneEnabled,this.enableUserReports=this.scope.currentScope.chapter.settings.configurations.enableUserReports,this.enableBlockUsers=this.scope.currentScope.chapter.settings.configurations.enableBlockUsers,this.generatedropDownButtonOptions(),this.coverImageUrl=this.targetUserProfile.coverImageUrl+(this.targetUserProfile.coverImageUrl.includes("?cache=")?"&preset=profile-cover":"?preset=profile-cover")}fixAriaLabel(Q){const z=Q.element;let K=z.querySelector(".dx-dropdownbutton-action.dx-button");K||(K=z.querySelector('.dx-buttongroup [role="button"]')),K&&K.setAttribute("aria-label",this.scope.currentScope.network.getResourceOrKeyName("web_common_further_options"))}static#e=R=()=>(this.\u0275fac=function(z){return new(z||L)(d.rXU(S.A))},this.\u0275cmp=d.VBU({type:L,selectors:[["app-user-info"]],inputs:{targetUserProfile:"targetUserProfile"},standalone:!1,decls:21,vars:25,consts:[[1,"public-profile-user-info-base"],[1,"public-profile-cover-base"],[1,"public-profile-cover"],[1,"public-profile-cover-image",3,"lazy-img"],[1,"public-profile-avatar"],[1,"public-profile-user-toolbar"],["text","","icon","overflow","stylingMode","text","type","normal",1,"public-profile-menu-button",3,"onItemClick","onContentReady","dropDownOptions","items","showArrowIcon","useItemTextAsTitle","elementAttr"],[1,"public-profile-user-text-container"],[1,"public-profile-user-name-container"],[1,"public-profile-user-name-text"],[1,"fas","fa-check-square","verified-icon"],[1,"public-profile-user-role-text"],[1,"public-profile-user-about",3,"innerHTML"],[1,"public-profile-user-additionalText",3,"innerHTML"],[1,"public-profile-user-birthday-container"],[3,"visibleChange","visible","reportedUserGuid"],[3,"visibleChange","isBlockedChange","visible","reportedUserGuid","isBlocked"],[1,"public-profile-avatar-image",3,"lazy-img","alt"],[1,"avatar-initials","public-profile-avatar-image"],[3,"otherUserGuid"],[2,"padding","5px 5px","font-weight","600"],[1,"fas","fa-birthday-cake","mr-2"]],template:function(z,K){if(1&z&&(d.j41(0,"div",0)(1,"div",1)(2,"div",2),d.nrm(3,"img",3),d.k0s(),d.nVh(4,j,3,2,"div",4),d.nI1(5,"createAvatar"),d.k0s(),d.j41(6,"div",5),d.nVh(7,F,2,1,"div"),d.j41(8,"div")(9,"dx-drop-down-button",6),d.bIt("onItemClick",function(re){return K.dropDownButtonMenuItemClick(re.itemData.iconType)})("onContentReady",function(re){return K.fixAriaLabel(re)}),d.k0s()()(),d.j41(10,"div",7)(11,"h2",8)(12,"span",9),d.EFF(13),d.nVh(14,X,1,0,"i",10),d.k0s(),d.nVh(15,U,2,1,"span",11),d.k0s(),d.nrm(16,"div",12)(17,"div",13),d.k0s(),d.nVh(18,H,3,1,"div",14),d.k0s(),d.j41(19,"app-profile-report-dialog",15),d.mxI("visibleChange",function(re){return d.DH7(K.showReportDialog,re)||(K.showReportDialog=re),re}),d.k0s(),d.j41(20,"app-profile-block-dialog",16),d.mxI("visibleChange",function(re){return d.DH7(K.showBlockDialog,re)||(K.showBlockDialog=re),re})("isBlockedChange",function(re){return d.DH7(K.targetUserProfile.isBlockedByCurrentUser,re)||(K.targetUserProfile.isBlockedByCurrentUser=re),re}),d.k0s()),2&z){let ee;d.R7$(3),d.Y8G("lazy-img",K.coverImageUrl),d.R7$(),d.vxM((ee=d.bMT(5,20,K.targetUserProfile))?4:-1,ee),d.R7$(3),d.vxM(K.chatEnabled&&K.oneToOneChatEnabled?7:-1),d.R7$(2),d.Y8G("dropDownOptions",d.lJ4(22,v))("items",K.dropDownButtonOptions)("showArrowIcon",!1)("useItemTextAsTitle",!1)("elementAttr",d.eq3(23,x,K.scope.currentScope.network.getResourceOrKeyName("web_common_further_options"))),d.R7$(4),d.Lme(" ",K.targetUserProfile.firstName," ",K.targetUserProfile.lastName," "),d.R7$(),d.vxM(K.enableVerifiedUsers&&K.userIsVerified?14:-1),d.R7$(),d.vxM(K.userRole?15:-1),d.R7$(),d.Y8G("innerHTML",K.targetUserProfile.about,d.npT),d.R7$(),d.Y8G("innerHTML",K.targetUserProfile.additionalTextContent,d.npT),d.R7$(),d.vxM(K.scope.currentScope.chapter.settings.configurations.enableBirthdayCalendar?18:-1),d.R7$(),d.R50("visible",K.showReportDialog),d.Y8G("reportedUserGuid",K.targetUserProfile.guid),d.R7$(),d.R50("visible",K.showBlockDialog),d.Y8G("reportedUserGuid",K.targetUserProfile.guid),d.R50("isBlocked",K.targetUserProfile.isBlockedByCurrentUser)}},dependencies:[m.h,T.D,C.L,e.R,k.Q,w.vh,P._],styles:[".public-profile-user-info-base[_ngcontent-%COMP%]{position:relative;padding-bottom:50px}@media (max-width: 768px){.public-profile-user-info-base[_ngcontent-%COMP%]{padding-bottom:30px}}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-menu-button[_ngcontent-%COMP%]     i{font-size:2rem!important;color:var(--textColor)}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-cover-base[_ngcontent-%COMP%]{position:relative}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-cover[_ngcontent-%COMP%]{position:relative;width:100%;height:380px;overflow:hidden}@media (max-width: 768px){.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-cover[_ngcontent-%COMP%]{height:270px}}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-cover-image[_ngcontent-%COMP%]{width:100%;position:absolute;top:50%;bottom:50%;transform:translateY(-50%)}@media (max-width: 768px){.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-cover-image[_ngcontent-%COMP%]{width:100vw}}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:end;margin-top:10px}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-text-container[_ngcontent-%COMP%]{color:var(--textColor);font-family:var(--fontPrimary)}@media (max-width: 768px){.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-text-container[_ngcontent-%COMP%]{padding:2rem}}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-text-container[_ngcontent-%COMP%]   .public-profile-user-name-text[_ngcontent-%COMP%]{font-size:2rem;font-weight:700}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-text-container[_ngcontent-%COMP%]   .public-profile-user-role-text[_ngcontent-%COMP%]{font-size:2rem;font-style:italic;font-weight:initial}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-text-container[_ngcontent-%COMP%]   .public-profile-user-about[_ngcontent-%COMP%]{font-size:1.2rem;word-wrap:break-word}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-text-container[_ngcontent-%COMP%]   .public-profile-user-additionalText[_ngcontent-%COMP%]{margin-top:1rem;font-size:1.1rem;word-wrap:break-word}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-text-container[_ngcontent-%COMP%]   .public-profile-user-additionalText[_ngcontent-%COMP%]     p{color:var(--textColor)}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-text-container[_ngcontent-%COMP%]   .verified-icon[_ngcontent-%COMP%]{color:#00acee;font-size:.8em;transform:translateY(-25%)}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-birthday-container[_ngcontent-%COMP%]{color:var(--textColor);font-family:var(--fontPrimary);font-size:1rem}@media (max-width: 768px){.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-birthday-container[_ngcontent-%COMP%]{padding:0 2rem}}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-avatar[_ngcontent-%COMP%]{position:absolute;bottom:-15%;left:9%}@media (max-width: 768px){.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-avatar[_ngcontent-%COMP%]{bottom:-25%;left:2%}}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-avatar-image[_ngcontent-%COMP%]{border-radius:50%;border:5px solid var(--backgroundColor);transform:scale(1.5);width:10rem;height:10rem}@media (max-width: 768px){.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-avatar-image[_ngcontent-%COMP%]{transform:scale(1)}}.public-profile-user-info-base[_ngcontent-%COMP%]   .avatar-initials[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;font-weight:700;background-color:#ccc;color:var(--textColor);font-size:5rem}.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-name-container[_ngcontent-%COMP%]{display:flex;margin-top:95px}@media (max-width: 768px){.public-profile-user-info-base[_ngcontent-%COMP%]   .public-profile-user-name-container[_ngcontent-%COMP%]{display:unset}}.public-profile-user-info-base[_ngcontent-%COMP%]     .public-profile-menu-button.dx-widget.dx-dropdownbutton.dx-state-hover{outline:none}"]}))}return R(),L})()},6021:(En,it,p)=>{"use strict";p.d(it,{Sx:()=>e,cY:()=>P,z7:()=>v});var S=p(1830),d=p(3090),m=p(8684);const T=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}];let C=function(){const x=this;this._state="pending",this._promise={},T.forEach(function(b){const B=b.method;this[B+"Callbacks"]=(0,m.A)(),this[B]=function(){return this[B+"With"](this._promise,arguments)}.bind(this),this._promise[b.handler]=function(j){if(!j)return this;const F=x[B+"Callbacks"];return F.fired()?j.apply(x[B+"Context"],x[B+"Args"]):F.add(function(X,U){j.apply(X,U)}.bind(this)),this}}.bind(this)),this._promise.always=function(b){return this.done(b).fail(b)},this._promise.catch=function(b){return this.then(null,b)},this._promise.then=function(b,B){const j=new C;return["done","fail"].forEach(function(F){const X="done"===F?b:B;this[F](function(){if(!X)return void j["done"===F?"resolve":"reject"].apply(this,arguments);const U=X&&X.apply(this,arguments);(0,S.uF)(U)?U.done(j.resolve).fail(j.reject):(0,S.yL)(U)?U.then(j.resolve,j.reject):j.resolve.apply(this,(0,S.O9)(U)?[U]:arguments)})}.bind(this)),j.promise()},this._promise.state=function(){return x._state},this._promise.promise=function(b){return b?(0,d.X)(b,x._promise):x._promise},this._promise.promise(this)};function e(x,b){if((0,S.uF)(x))return x;if((0,S.yL)(x)){const B=new C;return x.then(function(){B.resolveWith.apply(B,[b].concat([[].slice.call(arguments)]))},function(){B.rejectWith.apply(B,[b].concat([[].slice.call(arguments)]))}),B}return(new C).resolveWith(b,[x])}T.forEach(function(x){const b=x.method,B=x.state;C.prototype[b+"With"]=function(j,F){const X=this[b+"Callbacks"];return"pending"===this.state()&&(this[b+"Args"]=F,this[b+"Context"]=j,B&&(this._state=B),X.fire(j,F),"pending"!==B&&(this.resolveCallbacks.empty(),this.rejectCallbacks.empty())),this}});let k=function(){if(1===arguments.length)return e(arguments[0]);const x=[].slice.call(arguments),b=[];let B=0;const j=new C,F=function(X){return function(U){b[X]=this,x[X]=arguments.length>1?[].slice.call(arguments):U,B++,B===x.length&&j.resolveWith(b,x)}};for(let X=0;X<x.length;X++)(0,S.uF)(x[X])?x[X].promise().done(F(X)).fail(j.reject):B++;return B===x.length&&j.resolveWith(b,x),j.promise()};function P(){return new C}function v(){return k.apply(this,arguments)}},6054:(En,it,p)=>{"use strict";p.d(it,{A:()=>P});var S=p(1926),d=p(4859),m=p(7713);const w={querySelectorAll:(v,x)=>v.querySelectorAll(x),elementMatches(v,x){return(v.matches||v.matchesSelector||v.mozMatchesSelector||v.msMatchesSelector||v.oMatchesSelector||v.webkitMatchesSelector||(B=>{const j=v.document||v.ownerDocument;if(!j)return!1;const F=this.querySelectorAll(j,B);for(let X=0;X<F.length;X++)if(F[X]===v)return!0})).call(v,x)},createElement(v,x){return(x=x||this._document).createElement(v)},createElementNS(v,x,b){return(b=b||this._document).createElementNS(v,x)},createTextNode(v,x){return(x=x||this._document).createTextNode(v)},createAttribute(v,x){return(x=x||this._document).createAttribute(v)},isNode:v=>v&&"object"==typeof v&&"nodeType"in v&&"nodeName"in v,isElementNode:v=>v&&1===v.nodeType,isTextNode:v=>v&&3===v.nodeType,isDocument:v=>v&&9===v.nodeType,isDocumentFragment:v=>v&&11===v.nodeType,removeElement(v){const x=v&&v.parentNode;x&&x.removeChild(v)},insertElement(v,x,b){v&&x&&v!==x&&(b?v.insertBefore(x,b):v.appendChild(x))},getAttribute:(v,x)=>v.getAttribute(x),setAttribute(v,x,b){"style"===x?v.style.cssText=b:v.setAttribute(x,b)},removeAttribute(v,x){v.removeAttribute(x)},setProperty(v,x,b){v[x]=b},setText(v,x){v&&(v.textContent=x)},setClass(v,x,b){1===v.nodeType&&x&&(b?v.classList.add(x):v.classList.remove(x))},setStyle(v,x,b){v.style[x]=b||""},_document:typeof document>"u"?void 0:document,getDocument(){return this._document},getActiveElement(v){return this.getRootNode(v).activeElement},getRootNode(v){var x;return(null==v||null===(x=v.getRootNode)||void 0===x?void 0:x.call(v))??this._document},getBody(){return this._document.body},createDocumentFragment(){return this._document.createDocumentFragment()},getDocumentElement(){return this._document.documentElement},getLocation(){return this._document.location},getSelection(){return this._document.selection},getReadyState(){return this._document.readyState},getHead(){return this._document.head},hasDocumentProperty(v){return v in this._document},listen:(v,x,b,B)=>v&&"addEventListener"in v?(v.addEventListener(x,b,B),()=>{v.removeEventListener(x,b)}):d.lQ,elementsFromPoint(v,x,b){const B=this.getRootNode(b);return B.host?(0,m.c)(v,x,B):B.elementsFromPoint(v,x)}},P=(0,S.A)(w)},6067:(En,it,p)=>{"use strict";p.d(it,{A:()=>B});var S=p(6054),d=p(5704),m=p(9965),T=p(4859),C=p(6021),e=p(3090),k=p(2660),w=p(2946),P=p(9916),v=p(1129);const x="__dx_key__",B=v.A.inherit({_getDefaultOptions(){return(0,e.X)(this.callBase(),{repaintChangesOnly:!1})},ctor(){var j;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=F=>{this._dataController.getDataSource()&&!this._dataController.isLoaded()&&(this._correctionIndex=0),this._correctionIndex&&F.storeLoadOptions&&(F.storeLoadOptions.skip+=this._correctionIndex)},null===(j=this._dataController)||void 0===j||j.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload(){this._correctionIndex=0},_init(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey(j){let F=(0,d.A)();const X=this.key();return this.itemElements().each((U,Z)=>{const A=(0,d.A)(Z),M=this._getItemData(A);if(X?(0,P.t7)(X,this.keyOf(M),j):this._isItemEquals(M,j))return F=A,!1}),F},_dataSourceChangedHandler(j,F){null!=F&&F.changes?this._modifyByChanges(F.changes):(this.callBase(j,F),this._refreshItemsCache())},_isItemEquals(j,F){j&&j.__dx_key__&&(j=j.data);try{return JSON.stringify(j)===JSON.stringify(F)}catch{return j===F}},_isItemStrictEquals(j,F){return this._isItemEquals(j,F)},_shouldAddNewGroup(j,F){let X=!1;return this.option("grouped")&&(j.length||(X=!0),(0,k.__)(j,(U,Z)=>{"insert"===Z.type&&(X=!0,(0,k.__)(F,(A,M)=>{if(void 0!==Z.data.key&&Z.data.key===M.key)return X=!1,!1}))})),X},_partialRefresh(){if(this.option("repaintChangesOnly")){const j=X=>X&&void 0!==X.__dx_key__?X.__dx_key__:this.keyOf(X),F=(0,m.p)(this._itemsCache,this._editStrategy.itemsGetter(),j,this._isItemStrictEquals.bind(this));if(F&&this._itemsCache.length&&!this._shouldAddNewGroup(F,this._itemsCache))return this._modifyByChanges(F,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache(){if(this.option("repaintChangesOnly")){const j=this._editStrategy.itemsGetter();try{this._itemsCache=(0,e.X)(!0,[],j),this.key()||(this._itemsCache=this._itemsCache.map((F,X)=>({[x]:j[X],data:F})))}catch{this._itemsCache=(0,e.X)([],j)}}},_dispose(){this._dataController.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange(j,F,X,U){if(U)this._renderItem(X.index,X.data,null,this._findItemElementByKey(X.key));else{const Z=F[(0,w.Xb)(j,F,X.key)];Z&&(0,w.yo)(j,F,X.key,X.data).done(()=>{this._renderItem(F.indexOf(Z),Z,null,this._findItemElementByKey(X.key))})}},_insertByChange(j,F,X,U){(0,C.z7)(U||(0,w.Yr)(j,F,X.data,X.index)).done(()=>{this._beforeItemElementInserted(X),this._renderItem(X.index??F.length,X.data),this._afterItemElementInserted(),this._correctionIndex++})},_updateSelectionAfterRemoveByChange(j){const F=this.option("selectedIndex");F>j?this.option("selectedIndex",F-1):F===j&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted(j){const F=this.option("selectedIndex");j.index<=F&&this.option("selectedIndex",F+1)},_afterItemElementInserted:T.lQ,_removeByChange(j,F,X,U){const Z=U?X.index:(0,w.Xb)(j,F,X.key);if(U?X.oldItem:F[Z]){const M=this._findItemElementByKey(X.key),H=this._extendActionArgs(M);this._waitDeletingPrepare(M).done(()=>{U?(this._updateIndicesAfterIndex(Z-1),this._afterItemElementDeleted(M,H),this._updateSelectionAfterRemoveByChange(Z)):(this._deleteItemElementByIndex(Z),this._afterItemElementDeleted(M,H))}),this._correctionIndex--}},_modifyByChanges(j,F){const X=this._editStrategy.itemsGetter(),U={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},Z=this._dataController,A=Z.paginate(),M=Z.group();(A||M)&&(j=j.filter(H=>"insert"!==H.type||void 0!==H.index)),j.forEach(H=>this[`_${H.type}ByChange`](U,X,H,F)),this._renderedItemsCount=X.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer(j,F,X){const U=j.children(this._itemSelector()).get(X);S.A.insertElement(j.get(0),F.get(0),U)},_optionChanged(j){switch(j.name){case"items":this._partialRefresh(j.value)||this.callBase(j);break;case"dataSource":(!this.option("repaintChangesOnly")||!j.value)&&this.option("items",[]),this.callBase(j);break;case"repaintChangesOnly":break;default:this.callBase(j)}}})},6078:(En,it,p)=>{"use strict";p.d(it,{_:()=>e});var S=p(6394),d=p(3746),m=p(656),T=p(65),C=p(5634);let e=(()=>{var k;class w{constructor(v,x,b){this.http=v,this.scopeService=x,this.cordovaService=b,this.apiEndpoint="",this.pendingClicks={},this.scope=x.getScope(),this.apiEndpoint=this.scope.apiEndpoint}guard(v,x){var b=this;return(0,S.A)(function*(){if(!b.pendingClicks[v]){b.pendingClicks[v]=!0;try{return yield x()}catch(B){return b.handleError(B)}finally{setTimeout(()=>b.pendingClicks[v]=!1,300)}}})()}callClickServer(v,x,b){const j=`${this.apiEndpoint}${v}${x}${b?"/"+b:""}`;return this.guard(`GET:${v}:${x??""}:${b??""}`,()=>this.http.get(j).toPromise())}post(v,x,b){const j=`${this.apiEndpoint}${v}${x}${b?"/"+b:""}`;return this.guard(`POST:${v}:${x}:${b??""}`,()=>this.http.post(j,{}).toPromise())}handleError(v){return Promise.reject(v.message||v)}clickPremium(v,x){return this.callClickServer("click/premiumBanner/",v,x)}clickPremiumPost(v,x){return this.post("click/premiumBanner/",v,x)}clickAssetReference(v,x){return this.callClickServer("click/assetReference/",v,x)}clickDocument(v){return this.callClickServer("click/document/",v)}clickFile(v){return this.callClickServer("click/file/",v)}clickSpecial(v,x){return this.callClickServer("click/special/",v,x)}clickSpecialPost(v,x){return this.post("click/special/",v,x)}clickBanner(v,x){return this.callClickServer("click/banner/",v,x)}clickBannerPost(v,x){return this.post("click/banner/",v,x)}clickArticle(v,x){return this.callClickServer("click/article/",v,x)}clickSnip(v,x){return this.callClickServer("click/snip/",v,x)}clickSponsoredArticle(v,x){return this.callClickServer("click/sponsoredarticle/",v,x)}clickSuper(v,x){return this.callClickServer("click/superBanner/",v,x)}clickSuperPost(v,x){return this.post("click/superBanner/",v,x)}clickSurveyBanner(v){return this.callClickServer("click/surveyBanner/",v)}clickSurveyBannerPost(v,x){return this.post("click/surveyBanner/",v,x)}clickNotification(v){return this.callClickServer("click/notification/",v)}clickBreaking(v){return this.callClickServer("click/breaking/",v)}downloadFile(v){return this.clickFile(v).then(x=>{if(this.cordovaService.isCordovaAvailable()){const b=this.cordovaService.cordova;"android"===b.platformId&&x.isPdf?b.InAppBrowser.open("/Content/pdfview/web/?file="+x.uri,"_blank","location=yes,hidenavigationbuttons=yes,hideurlbar=yes,closebuttoncaption="+this.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")):b.InAppBrowser.open(x.uri,"_system","location=yes,closebuttoncaption="+this.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"))}else console.warn("Cordova is not available");return x}).catch(x=>(console.error("Download error",x),Promise.reject(x)))}static#e=k=()=>(this.\u0275fac=function(x){return new(x||w)(m.KVO(T.Qq),m.KVO(d.A),m.KVO(C.q))},this.\u0275prov=m.jDH({token:w,factory:w.\u0275fac,providedIn:"root"}))}return k(),w})()},6098:(En,it,p)=>{"use strict";p.d(it,{EZ:()=>A,fM:()=>H,hE:()=>k,kQ:()=>U,up:()=>J});var S=p(656),d=p(4303),T=(p(2978),p(2746));let k=(()=>{class De{_doc;constructor(Ie){this._doc=Ie}getTitle(){return this._doc.title}setTitle(Ie){this._doc.title=Ie||""}static \u0275fac=function(W){return new(W||De)(S.KVO(S.qQL))};static \u0275prov=S.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}return De})();const X={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},U=new S.nKC(""),Z=new S.nKC("");let A=(()=>{class De{events=[];overrides={};options;buildHammer(Ie){const W=new Hammer(Ie,this.options);W.get("pinch").set({enable:!0}),W.get("rotate").set({enable:!0});for(const ie in this.overrides)W.get(ie).set(this.overrides[ie]);return W}static \u0275fac=function(W){return new(W||De)};static \u0275prov=S.jDH({token:De,factory:De.\u0275fac})}return De})(),M=(()=>{class De extends T.Hl{_config;_injector;loader;_loaderPromise=null;constructor(Ie,W,ie,he){super(Ie),this._config=W,this._injector=ie,this.loader=he}supports(Ie){return!(!X.hasOwnProperty(Ie.toLowerCase())&&!this.isCustomEvent(Ie)||!window.Hammer&&!this.loader)}addEventListener(Ie,W,ie){const he=this.manager.getZone();if(W=W.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||he.runOutsideAngular(()=>this.loader());let Ce=!1,ye=()=>{Ce=!0};return he.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Ce||(ye=this.addEventListener(Ie,W,ie)):ye=()=>{}}).catch(()=>{ye=()=>{}})),()=>{ye()}}return he.runOutsideAngular(()=>{const Ce=this._config.buildHammer(Ie),ye=function(Me){he.runGuarded(function(){ie(Me)})};return Ce.on(W,ye),()=>{Ce.off(W,ye),"function"==typeof Ce.destroy&&Ce.destroy()}})}isCustomEvent(Ie){return this._config.events.indexOf(Ie)>-1}static \u0275fac=function(W){return new(W||De)(S.KVO(S.qQL),S.KVO(U),S.KVO(S.zZn),S.KVO(Z,8))};static \u0275prov=S.jDH({token:De,factory:De.\u0275fac})}return De})(),H=(()=>{class De{static \u0275fac=function(W){return new(W||De)};static \u0275mod=d.$C({type:De});static \u0275inj=S.G2t({providers:[{provide:T.Q5,useClass:M,multi:!0,deps:[S.qQL,U,S.zZn,[new d.Xx1,Z]]},{provide:U,useClass:A}]})}return De})(),J=(()=>{class De{static \u0275fac=function(W){return new(W||De)};static \u0275prov=S.jDH({token:De,factory:function(W){let ie=null;return ie=W?new(W||De):S.KVO(R),ie},providedIn:"root"})}return De})(),R=(()=>{class De extends J{_doc;constructor(Ie){super(),this._doc=Ie}sanitize(Ie,W){if(null==W)return null;switch(Ie){case d.WPN.NONE:return W;case d.WPN.HTML:return(0,d.iWE)(W,"HTML")?(0,d.aCM)(W):(0,d.wr$)(this._doc,String(W)).toString();case d.WPN.STYLE:return(0,d.iWE)(W,"Style")?(0,d.aCM)(W):W;case d.WPN.SCRIPT:if((0,d.iWE)(W,"Script"))return(0,d.aCM)(W);throw new S.buA(5200,!1);case d.WPN.URL:return(0,d.iWE)(W,"URL")?(0,d.aCM)(W):(0,d.gil)(String(W));case d.WPN.RESOURCE_URL:if((0,d.iWE)(W,"ResourceURL"))return(0,d.aCM)(W);throw new S.buA(5201,!1);default:throw new S.buA(5202,!1)}}bypassSecurityTrustHtml(Ie){return(0,d.PYC)(Ie)}bypassSecurityTrustStyle(Ie){return(0,d.rAh)(Ie)}bypassSecurityTrustScript(Ie){return(0,d.p2i)(Ie)}bypassSecurityTrustUrl(Ie){return(0,d.B1s)(Ie)}bypassSecurityTrustResourceUrl(Ie){return(0,d.RPW)(Ie)}static \u0275fac=function(W){return new(W||De)(S.KVO(S.qQL))};static \u0275prov=S.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}return De})()},6101:(En,it,p)=>{"use strict";p.d(it,{h:()=>T});var S=p(8684),d=p(2660),m=p(1830);class T{constructor(e){let k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._events={},this._owner=e,this._options=k}static create(e,k){return k?(0,m.Tn)(k)?k(e):k:new T(e)}hasEvent(e){const k=this._events[e];return!!k&&k.has()}fireEvent(e,k){const w=this._events[e];return w&&w.fireWith(this._owner,k),this._owner}on(e,k){if((0,m.Qd)(e))(0,d.__)(e,(w,P)=>{this.on(w,P)});else{let w=this._events[e];w||(w=(0,S.A)({syncStrategy:this._options.syncStrategy}),this._events[e]=w),(w.originalAdd||w.add).call(w,k)}}off(e,k){const w=this._events[e];w&&((0,m.Tn)(k)?w.remove(k):w.empty())}dispose(){(0,d.__)(this._events,(e,k)=>{k.empty()})}}},6104:(En,it,p)=>{"use strict";p.d(it,{B:()=>k});var S=p(9406),d=p(2029);const T=(0,p(4520).L)(P=>function(){P(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var C=p(9583),e=p(2895);let k=(()=>{class P extends S.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(x){const b=new w(this,this);return b.operator=x,b}_throwIfClosed(){if(this.closed)throw new T}next(x){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const b of this.currentObservers)b.next(x)}})}error(x){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=x;const{observers:b}=this;for(;b.length;)b.shift().error(x)}})}complete(){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:x}=this;for(;x.length;)x.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var x;return(null===(x=this.observers)||void 0===x?void 0:x.length)>0}_trySubscribe(x){return this._throwIfClosed(),super._trySubscribe(x)}_subscribe(x){return this._throwIfClosed(),this._checkFinalizedStatuses(x),this._innerSubscribe(x)}_innerSubscribe(x){const{hasError:b,isStopped:B,observers:j}=this;return b||B?d.Kn:(this.currentObservers=null,j.push(x),new d.yU(()=>{this.currentObservers=null,(0,C.o)(j,x)}))}_checkFinalizedStatuses(x){const{hasError:b,thrownError:B,isStopped:j}=this;b?x.error(B):j&&x.complete()}asObservable(){const x=new S.c;return x.source=this,x}}return P.create=(v,x)=>new w(v,x),P})();class w extends k{constructor(v,x){super(),this.destination=v,this.source=x}next(v){var x,b;null===(b=null===(x=this.destination)||void 0===x?void 0:x.next)||void 0===b||b.call(x,v)}error(v){var x,b;null===(b=null===(x=this.destination)||void 0===x?void 0:x.error)||void 0===b||b.call(x,v)}complete(){var v,x;null===(x=null===(v=this.destination)||void 0===v?void 0:v.complete)||void 0===x||x.call(v)}_subscribe(v){var x,b;return null!==(b=null===(x=this.source)||void 0===x?void 0:x.subscribe(v))&&void 0!==b?b:d.Kn}}},6106:(En,it,p)=>{"use strict";p.d(it,{F:()=>d,m:()=>m});var S=p(9656);function d(...T){return m(T)}function m(T){return 0===T.length?S.D:1===T.length?T[0]:function(e){return T.reduce((k,w)=>w(k),e)}}},6110:(En,it,p)=>{"use strict";p.d(it,{Vd:()=>m,i5:()=>k,ne:()=>P,w3:()=>v,zY:()=>w,zk:()=>C});var S=p(6054);let d=typeof window<"u";const m=()=>d;let T=m()?window:void 0;T||(T={},T.window=T);const C=()=>T,k=x=>m()&&x in T,w=x=>x<768?"xs":x<992?"sm":x<1200?"md":"lg",P=x=>(x||w)(S.A.getDocumentElement().clientWidth),v=()=>m()?T.navigator:{userAgent:""}},6111:(En,it,p)=>{"use strict";p.d(it,{_:()=>d});var S=p(4500);function d(T,C,e,k,w){return new m(T,C,e,k,w)}class m extends S.vU{constructor(C,e,k,w,P,v){super(C),this.onFinalize=P,this.shouldUnsubscribe=v,this._next=e?function(x){try{e(x)}catch(b){C.error(b)}}:super._next,this._error=w?function(x){try{w(x)}catch(b){C.error(b)}finally{this.unsubscribe()}}:super._error,this._complete=k?function(){try{k()}catch(x){C.error(x)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var C;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(C=this.onFinalize)||void 0===C||C.call(this))}}}},6117:(En,it,p)=>{"use strict";p.d(it,{u:()=>m});var S=p(3746),d=p(656);let m=(()=>{var T;class C{constructor(k){this.scopeService=k,this.scope=this.scopeService.getScope()}getDefaultSourceTypes(){return{1:{name:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType1,sourceType:1,riskLevel:1,expirationDays:0,checkRequired:!1},2:{name:this.scope.currentScope.network.name,sourceType:2,riskLevel:1,expirationDays:0,checkRequired:!1},3:{name:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType3,sourceType:3,riskLevel:1,expirationDays:0,checkRequired:!1},4:{name:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType4,sourceType:4,riskLevel:2,expirationDays:30,checkRequired:!1},5:{name:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType5,sourceType:5,riskLevel:1,expirationDays:0,checkRequired:!1},7:{name:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7,sourceType:7,riskLevel:2,expirationDays:30,checkRequired:!0},8:{name:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType8,sourceType:8,riskLevel:2,expirationDays:30,checkRequired:!1},9:{name:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType9,sourceType:9,riskLevel:3,expirationDays:14,checkRequired:!0},12:{name:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType12,sourceType:12,riskLevel:3,expirationDays:14,checkRequired:!0},14:{name:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType14,sourceType:14,riskLevel:3,expirationDays:14,checkRequired:!0},15:{name:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType15,sourceType:15,riskLevel:1,expirationDays:0,checkRequired:!1}}}getCreativeCommonsLicenses(){return{1:{name:"CC0 1.0",value:"https://creativecommons.org/publicdomain/zero/1.0/deed.de",validity:!0},2:{name:"BY 1.0",value:"https://creativecommons.org/licenses/by/1.0/legalcode",validity:!0},3:{name:"BY 2.0",value:"https://creativecommons.org/licenses/by/2.0/de/legalcode",validity:!0},4:{name:"BY 2.5",value:"https://creativecommons.org/licenses/by/2.5/legalcode",validity:!0},5:{name:"BY 3.0",value:"https://creativecommons.org/licenses/by/3.0/de/legalcode",validity:!0},6:{name:"BY 4.0",value:"https://creativecommons.org/licenses/by/4.0/legalcode",validity:!0},7:{name:"BY-SA 1.0",value:"https://creativecommons.org/licenses/by-sa/1.0/legalcode",validity:!0},8:{name:"BY-SA 2.0",value:"https://creativecommons.org/licenses/by-sa/2.0/de/legalcode",validity:!0},9:{name:"BY-SA 2.5",value:"https://creativecommons.org/licenses/by-sa/2.5/legalcode",validity:!0},10:{name:"BY-SA 3.0",value:"https://creativecommons.org/licenses/by-sa/3.0/de/legalcode",validity:!0},11:{name:"BY-SA 4.0",value:"https://creativecommons.org/licenses/by-sa/4.0/legalcode",validity:!0},12:{name:"BY-ND",value:"",validity:!1},13:{name:"BY-NC",value:"",validity:!1},14:{name:"BY-NC-SA",value:"",validity:!1},15:{name:"BY-ND-NC",value:"",validity:!1},16:{name:"BY-NC-ND",value:"",validity:!1}}}getAgencys(){return[{name:"Shutterstock",url:"Shutterstock.com"},{name:"Fotolia",url:"Fotolia.de"},{name:"Adobe Stock",url:"stock.adobe.com"}]}getsocialMediaProfileTypes(){return[{name:"private",display:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType9_selectPrivate},{name:"commercial",display:this.scope.currentScope.network.resources.web_assetDialog_createImage_sourceType9_selectCommercial}]}static#e=T=()=>(this.\u0275fac=function(w){return new(w||C)(d.KVO(S.A))},this.\u0275prov=d.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}))}return T(),C})()},6148:(En,it,p)=>{"use strict";p.d(it,{l:()=>S});const S="dx-toolbar"},6163:(En,it,p)=>{"use strict";p.d(it,{J:()=>e});var S=p(5704),d=p(1363),m=p(1830),T=p(6110);const e=(k,w)=>{const P=(0,S.A)((0,T.zk)()),{top:v}=k.offset();let x;if((0,m.kf)(w)){if(w<v)return v-w;x=(0,d.yV)(P)-w+P.scrollTop()}else{const b=v-P.scrollTop(),B=(0,d.yV)(P)-b-(0,d.P$)(k);x=Math.max(b,B)}return.9*x}},6171:(En,it,p)=>{"use strict";p.d(it,{f:()=>S});const S={setTimeout(d,m,...T){const{delegate:C}=S;return C?.setTimeout?C.setTimeout(d,m,...T):setTimeout(d,m,...T)},clearTimeout(d){const{delegate:m}=S;return(m?.clearTimeout||clearTimeout)(d)},delegate:void 0}},6211:(En,it,p)=>{"use strict";p.d(it,{A:()=>A});var S=p(5704),d=p(2720),m=p(6054),T=p(4072),C=p(5397),e=p(3538),k=p(3090),w=p(2660),P=p(9961),v=p(9293),x=p(9209),b=p(8573);const B="dxEventManager",X=new(e.A.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){d.A.add(function(){const M=m.A.getDocument();T.A.subscribeGlobal(M,(0,v.b4)(x.A.down,B),this._pointerDownHandler.bind(this)),T.A.subscribeGlobal(M,(0,v.b4)(x.A.move,B),this._pointerMoveHandler.bind(this)),T.A.subscribeGlobal(M,(0,v.b4)([x.A.up,x.A.cancel].join(" "),B),this._pointerUpHandler.bind(this)),T.A.subscribeGlobal(M,(0,v.b4)(b.U,B),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(M){const H=this._activeEmitters||[];let J=0;for(;H.length>J;){const R=H[J];if(!1===M(R))break;H[J]===R&&J++}},_applyToEmitters:function(M,H){this._eachEmitter(function(J){J[M].call(J,H)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(M){this._proxiedCancelHandler(M)},_pointerDownHandler:function(M){(0,v.Er)(M)&&M.which>1||this._updateEmitters(M)},_updateEmitters:function(M){this._isSetChanged(M)&&(this._cleanEmitters(M),this._fetchEmitters(M))},_isSetChanged:function(M){const H=this._closestEmitter(M),J=this._emittersSet||[];let R=H.length!==J.length;return(0,w.__)(H,function(L,G){return R=R||J[L]!==G,!R}),this._emittersSet=H,R},_closestEmitter:function(M){const H=this,J=[];let R=(0,S.A)(M.target);function L(G,Q){Q&&Q.validatePointers(M)&&Q.validate(M)&&(Q.addCancelCallback(H._proxiedCancelHandler),Q.addAcceptCallback(H._proxiedAcceptHandler),J.push(Q))}for(;R.length;){const G=(0,C.p)(R.get(0),"dxEmitter")||[];(0,w.__)(G,L),R=R.parent()}return J},_acceptHandler:function(M,H){const J=this;this._eachEmitter(function(R){R!==M&&J._cancelEmitter(R,H)})},_cancelHandler:function(M,H){this._cancelEmitter(M,H)},_cancelEmitter:function(M,H){const J=this._activeEmitters;H?M.cancel(H):M.reset(),M.removeCancelCallback(),M.removeAcceptCallback();const R=J.indexOf(M);R>-1&&J.splice(R,1)},_cleanEmitters:function(M){this._applyToEmitters("end",M),this.reset(M)},_fetchEmitters:function(M){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",M)},_pointerMoveHandler:function(M){this._applyToEmitters("move",M)},_pointerUpHandler:function(M){this._updateEmitters(M)},_mouseWheelHandler:function(M){this._allowInterruptionByMouseWheel()&&(M.pointers=[null],this._pointerDownHandler(M),this._adjustWheelEvent(M),this._pointerMoveHandler(M),M.pointers=[],this._pointerUpHandler(M))},_allowInterruptionByMouseWheel:function(){let M=!0;return this._eachEmitter(function(H){return M=H.allowInterruptionByMouseWheel()&&M,M}),M},_adjustWheelEvent:function(M){let H=null;if(this._eachEmitter(function(G){if(!G.gesture)return;const Q=G.getDirection(M);return"horizontal"!==Q&&!M.shiftKey||"vertical"!==Q&&M.shiftKey?(H=G,!1):void 0}),!H)return;const J=H.getDirection(M);M["both"===J&&!M.shiftKey||"vertical"===J?"pageY":"pageX"]+=M.delta},isActive:function(M){let H=!1;return this._eachEmitter(function(J){H=H||J.getElement().is(M)}),H}})),A=function(M){const H=M.emitter,J=M.events[0],R=M.events;(0,w.__)(R,function(L,G){(0,P.A)(G,{noBubble:!M.bubble,setup:function(Q){const z=(0,C.p)(Q,"dxEmitterSubscription")||{},K=(0,C.p)(Q,"dxEmitter")||{},ee=K[J]||new H(Q);z[G]=!0,K[J]=ee,(0,C.p)(Q,"dxEmitter",K),(0,C.p)(Q,"dxEmitterSubscription",z)},add:function(Q,z){(0,C.p)(Q,"dxEmitter")[J].configure((0,k.X)({delegateSelector:z.selector},z.data),z.type)},teardown:function(Q){const z=(0,C.p)(Q,"dxEmitterSubscription"),K=(0,C.p)(Q,"dxEmitter"),ee=K[J];delete z[G];let re=!0;(0,w.__)(R,function(be,ce){return re=re&&!z[ce],re}),re&&(X.isActive(Q)&&X.resetEmitter(ee),ee&&ee.dispose(),delete K[J])}})})}},6219:(En,it,p)=>{"use strict";p.d(it,{I:()=>T});var S=p(3527);const{isArray:d}=Array;function T(C){return(0,S.T)(e=>function m(C,e){return d(e)?C(...e):C(e)}(C,e))}},6234:(En,it,p)=>{"use strict";p.d(it,{A:()=>m});var S=p(8181);const m=(0,p(1926).A)({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(T){return T},unwrap:function(T){return T},assign:function(){S.v.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},6285:(En,it,p)=>{"use strict";p.d(it,{A:()=>d});const d=p(1221).q},6314:(En,it,p)=>{"use strict";p.d(it,{A:()=>Ke});var S=p(1973),d=p(9522),m=p(5704),T=p(4859),C=p(3090),e=p(2660),k=p(1363),w=p(1830),P=p(4072),v=p(1134),x=p(9209),b=p(9293),B=p(9012),j=p(3949),F=p(1757),X=p(6410),U=p(6163),A=(p(784),p(6870)),M=p(8630);const L=class R extends M.A{_getDefaultOptions(){return(0,C.X)(super._getDefaultOptions(),{orientation:"horizontal",tabIndex:null,onHoverStart:T.lQ})}_initDataAdapter(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||super._initDataAdapter()}_renderContentImpl(){this._renderContextMenuOverlay(),super._renderContentImpl();const q=this._dataAdapter.getNodeByKey(this.option("_parentKey"));q&&this._renderItems(this._getChildNodes(q)),this._renderDelimiter()}_renderDelimiter(){this.$contentDelimiter=(0,m.A)("<div>").appendTo(this._itemContainer()).addClass("dx-context-menu-content-delimiter")}_getOverlayOptions(){return(0,C.X)(!0,super._getOverlayOptions(),{onPositioned:this._overlayPositionedActionHandler.bind(this),position:{precise:!0}})}_overlayPositionedActionHandler(q){this._showDelimiter(q)}_hoverEndHandler(q){super._hoverEndHandler(q),this._toggleFocusClass(!1,q.currentTarget)}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_hoverStartHandler(q){this.option("onHoverStart")(q),super._hoverStartHandler(q),this._toggleFocusClass(!0,q.currentTarget)}_drawSubmenu(q){this._actions.onShowing({rootItem:(0,d.cc)(q),submenu:this}),super._drawSubmenu(q),this._actions.onShown({rootItem:(0,d.cc)(q),submenu:this})}_hideSubmenu(q){this._actions.onHiding({cancel:!0,rootItem:(0,d.cc)(q),submenu:this}),super._hideSubmenu(q),this._actions.onHidden({rootItem:(0,d.cc)(q),submenu:this})}_showDelimiter(q){if(!this.$contentDelimiter)return;const Oe=this._itemContainer().children(".dx-submenu").eq(0),fe=this.option("position").of.find(".dx-context-menu-container-border"),We={of:Oe,precise:!0},Ue=q.position,Ve=Ue.v.location,tt=Ue.h.location,at=fe.offset(),Vt=Math.round(at.left),qe=Math.round(at.top),Nt=(0,k.RG)(fe),et=(0,k.Oq)(fe),ue=(0,k.RG)(Oe),me=(0,k.Oq)(Oe);this.$contentDelimiter.css("display","block"),(0,k.zj)(this.$contentDelimiter,this._isMenuHorizontal()?Nt<ue?Nt:ue:3),(0,k.k$)(this.$contentDelimiter,this._isMenuHorizontal()?3:et<me?et:me),this._isMenuHorizontal()?Ve>qe?Math.round(tt)===Vt?(We.offset="0 -2.5",We.at=We.my="left top"):(We.offset="0 -2.5",We.at=We.my="right top"):((0,k.k$)(this.$contentDelimiter,5),Math.round(tt)===Vt?(We.offset="0 5",We.at=We.my="left bottom"):(We.offset="0 5",We.at=We.my="right bottom")):tt>Vt?Math.round(Ve)===qe?(We.offset="-2.5 0",We.at=We.my="left top"):(We.offset="-2.5 0",We.at=We.my="left bottom"):Math.round(Ve)===qe?(We.offset="2.5 0",We.at=We.my="right top"):(We.offset="2.5 0",We.at=We.my="right bottom"),A.A.setup(this.$contentDelimiter,We)}_getContextMenuPosition(){return this.option("position")}isOverlayVisible(){return this._overlay.option("visible")}getOverlayContent(){return this._overlay.$content()}},W="dx-menu-adaptive-mode",he=`${W}-overlay-wrapper`,Ae={show:50,hide:300},pe=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged","onItemRendered"];class Ee extends X.A{_getDefaultOptions(){return(0,C.X)(super._getDefaultOptions(),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})}_setOptionsByReference(){super._setOptionsByReference(),(0,C.X)(this._optionsByReference,{animation:!0,selectedItem:!0})}_itemElements(){const q=super._itemElements(),Oe=this._submenuItemElements();return q.add(Oe)}_submenuItemElements(){let q=[];const Oe=this._submenus.length&&this._submenus[0];return Oe&&Oe.itemsContainer()&&(q=Oe.itemsContainer().find(".dx-menu-item")),q}_focusTarget(){return this.$element()}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_moveFocus(q){const Oe=this._getAvailableItems(),fe=this._isMenuHorizontal(),We=this._getActiveItem(!0);let Ue,Ve,tt,at;switch(q){case"up":Ve=fe?"showSubmenu":this._getItemsNavigationOperation("prevItem"),Ue=fe?We:Oe,tt=this._getKeyboardNavigationAction(Ve,Ue),at=tt();break;case"down":Ve=fe?"showSubmenu":this._getItemsNavigationOperation("nextItem"),Ue=fe?We:Oe,tt=this._getKeyboardNavigationAction(Ve,Ue),at=tt();break;case"right":Ve=fe?this._getItemsNavigationOperation("nextItem"):"showSubmenu",Ue=fe?Oe:We,tt=this._getKeyboardNavigationAction(Ve,Ue),at=tt();break;case"left":Ve=fe?this._getItemsNavigationOperation("prevItem"):"showSubmenu",Ue=fe?Oe:We,tt=this._getKeyboardNavigationAction(Ve,Ue),at=tt();break;default:return super._moveFocus(q)}at&&0!==at.length&&this.option("focusedElement",(0,d.cc)(at))}_getItemsNavigationOperation(q){let Oe=q;return this.option("rtlEnabled")&&(Oe="prevItem"===q?"nextItem":"prevItem"),Oe}_getKeyboardNavigationAction(q,Oe){let fe=T.lQ;switch(q){case"showSubmenu":Oe.hasClass("dx-state-disabled")||(fe=this._showSubmenu.bind(this,Oe));break;case"nextItem":fe=this._nextItem.bind(this,Oe);break;case"prevItem":fe=this._prevItem.bind(this,Oe)}return fe}_clean(){super._clean(),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)}_visibilityChanged(q){q&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())}_isAdaptivityEnabled(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")}_updateItemsWidthCache(){const q=this.$element().find("ul").first().children("li").children(".dx-menu-item");this._menuItemsWidth=this._getSummaryItemsSize("width",q,!0)}_dimensionChanged(){if(!this._isAdaptivityEnabled())return;const q=(0,k.Ot)(this.$element());this._toggleAdaptiveMode(this._menuItemsWidth>q)}_init(){super._init(),this._submenus=[]}_initActions(){this._actions={},(0,e.__)(pe,(q,Oe)=>{this._actions[Oe]=this._createActionByOption(Oe)})}_initMarkup(){this._visibleSubmenu=null,this.$element().addClass("dx-menu"),super._initMarkup(),this._addCustomCssClass(this.$element()),this.setAria("role","menubar")}_render(){super._render(),this._initAdaptivity()}_isTargetOutOfComponent(q){const Oe=0!==(0,m.A)(q).closest(".dx-menu").length,fe=0!==(0,m.A)(q).closest(".dx-context-menu").length;return!(Oe||fe)}_focusOutHandler(q){const{relatedTarget:Oe}=q;Oe&&this._isTargetOutOfComponent(Oe)&&this._hideVisibleSubmenu(),super._focusOutHandler(q)}_renderHamburgerButton(){return this._hamburger=new B.A((0,m.A)("<div>").addClass("dx-menu-hamburger-button"),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()}_toggleTreeView(q){(0,w.Qd)(q)&&(q=!this._overlay.option("visible")),this._overlay.option("visible",q),q&&this._treeView.focus(),this._toggleHamburgerActiveState(q)}_toggleHamburgerActiveState(q){this._hamburger&&this._hamburger.$element().toggleClass("dx-state-active",q)}_toggleAdaptiveMode(q){const Oe=this.$element().find(".dx-menu-horizontal"),fe=this.$element().find(`.${W}`);q?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(q)),Oe.toggle(!q),fe.toggle(q)}_removeAdaptivity(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)}_treeviewItemClickHandler(q){this._actions.onItemClick(q),q.node.children.length||this._toggleTreeView(!1)}_getAdaptiveOverlayOptions(){const Oe=this.option("rtlEnabled")?"right":"left";return{_ignoreFunctionValueDeprecation:!0,maxHeight:()=>(0,U.J)(this.$element()),deferRendering:!1,shading:!1,animation:!1,hideOnParentScroll:!0,onHidden:()=>{this._toggleHamburgerActiveState(!1)},height:"auto",hideOnOutsideClick:fe=>!(0,m.A)(fe.target).closest(".dx-menu-hamburger-button").length,position:{collision:"flipfit",at:`bottom ${Oe}`,my:`top ${Oe}`,of:this._hamburger.$element()}}}_getTreeViewOptions(){const q={};return(0,e.__)(["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],(Oe,fe)=>{q[fe]=this.option(fe)}),(0,e.__)(["onItemContextMenu","onSelectionChanged","onItemRendered"],(Oe,fe)=>{q[fe]=We=>{this._actions[fe](We)}}),(0,C.X)(q,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:Oe=>{this._overlay.repaint(),this._actions.onSubmenuShown(Oe)},onItemCollapsed:Oe=>{this._overlay.repaint(),this._actions.onSubmenuHidden(Oe)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click",_supportItemUrl:!0})}_initAdaptivity(){if(!this._isAdaptivityEnabled())return;this._$adaptiveContainer=(0,m.A)("<div>").addClass(W);const q=this._renderHamburgerButton();this._treeView=this._createComponent((0,m.A)("<div>"),F.A,this._getTreeViewOptions()),this._overlay=this._createComponent((0,m.A)("<div>"),j.A,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(W).addClass(this.option("cssClass")),this._overlay.$wrapper().addClass(he),this._$adaptiveContainer.append(q),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}_getDelay(q){const{delay:Oe}=this.option("showFirstSubmenuMode");return(0,w.O9)(Oe)?(0,w.Gv)(Oe)?Oe[q]:Oe:Ae[q]}_keyboardHandler(q){return super._keyboardHandler(q,!!this._visibleSubmenu)}_renderContainer(){const q=(0,m.A)("<div>");return q.appendTo(this.$element()).addClass(this._isMenuHorizontal()?"dx-menu-horizontal":"dx-menu-vertical"),super._renderContainer(q)}_renderSubmenuItems(q,Oe){const fe=this._createSubmenu(q,Oe);return this._submenus.push(fe),this._renderBorderElement(Oe),fe}_getKeyboardListeners(){return super._getKeyboardListeners().concat(this._visibleSubmenu)}_createSubmenu(q,Oe){const fe=(0,m.A)("<div>").addClass("dx-context-menu").appendTo(Oe),We=this._getChildNodes(q),Ue=this._createComponent(fe,L,(0,C.X)(this._getSubmenuOptions(),{_dataAdapter:this._dataAdapter,_parentKey:q.internalFields.key,items:We,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(Oe)}));return this._attachSubmenuHandlers(Oe,Ue),Ue}_getSubmenuOptions(){const q=(0,m.A)("<div>"),Oe=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:q,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:fe=>{fe.component.option("visible")&&this.option("focusedElement",fe.component.option("focusedElement"))},onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this._nestedItemOnItemRenderedHandler.bind(this),onLeftFirstItem:Oe?null:this._moveMainMenuFocus.bind(this,"prevItem"),onLeftLastItem:Oe?null:this._moveMainMenuFocus.bind(this,"nextItem"),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,Oe?"prevItem":null),onExpandLastSubmenu:Oe?this._moveMainMenuFocus.bind(this,"nextItem"):null}}_getShowFirstSubmenuMode(){if(!this._isDesktopDevice())return"onClick";const q=this.option("showFirstSubmenuMode");return(0,w.Gv)(q)?q.name:q}_moveMainMenuFocus(q){const Oe=this._getAvailableItems(),fe=Oe.length,We=Oe.filter(".dx-menu-item-expanded").eq(0);let Ue=Oe.index(We);this._hideSubmenu(this._visibleSubmenu),Ue+="prevItem"===q?-1:1,Ue>=fe?Ue=0:Ue<0&&(Ue=fe-1);const Ve=Oe.eq(Ue);this.option("focusedElement",(0,d.cc)(Ve))}_nestedItemOnSelectionChangedHandler(q){const Oe=q.addedItems.length&&q.addedItems[0],fe=L.getInstance(q.element),{onSelectionChanged:We}=this._actions;We(q),Oe&&this._clearSelectionInSubmenus(Oe[0],fe),this._clearRootSelection(),this._setOptionWithoutOptionChange("selectedItem",Oe)}_clearSelectionInSubmenus(q,Oe){const fe=!arguments.length;(0,e.__)(this._submenus,(We,Ue)=>{const Ve=Ue._itemContainer(),tt=!Ve.is(Oe&&Oe._itemContainer()),at=Ve.find(`.${this._selectedItemClass()}`);if(tt&&at.length||fe){at.removeClass(this._selectedItemClass());const Vt=this._getItemData(at);Vt&&(Vt.selected=!1),Ue._clearSelectedItems()}})}_clearRootSelection(){const q=this.$element().find(".dx-menu-items-container").first().children().children().filter(`.${this._selectedItemClass()}`);q.length&&(this._getItemData(q).selected=!1,q.removeClass(this._selectedItemClass()))}_nestedItemOnItemClickHandler(q){this._actions.onItemClick(q)}_nestedItemOnItemRenderedHandler(q){this._actions.onItemRendered(q)}_attachSubmenuHandlers(q,Oe){const We=Oe.getOverlayContent().find(".dx-submenu"),Ue=(0,b.b4)(v._,`${this.NAME}_submenu`);Oe.option({onShowing:this._submenuOnShowingHandler.bind(this,q,Oe),onShown:this._submenuOnShownHandler.bind(this,q,Oe),onHiding:this._submenuOnHidingHandler.bind(this,q,Oe),onHidden:this._submenuOnHiddenHandler.bind(this,q,Oe)}),(0,e.__)(We,(Ve,tt)=>{P.A.off(tt,Ue),P.A.on(tt,Ue,null,this._submenuMouseLeaveHandler.bind(this,q))})}_submenuOnShowingHandler(q,Oe,fe){let{rootItem:We}=fe;const Ue=q.children(".dx-context-menu-container-border"),Ve=this._getVisibilityChangeEventParams(We,Oe,q);this._actions.onSubmenuShowing(Ve),Ue.show(),q.addClass("dx-menu-item-expanded")}_submenuOnShownHandler(q,Oe,fe){let{rootItem:We}=fe;const Ue=this._getVisibilityChangeEventParams(We,Oe,q);this._actions.onSubmenuShown(Ue)}_submenuOnHidingHandler(q,Oe,fe){const We=q.children(".dx-context-menu-container-border"),Ue=this._getVisibilityChangeEventParams(fe.rootItem,Oe,q,!0);fe.itemData=Ue.itemData,fe.rootItem=Ue.rootItem,fe.submenuContainer=Ue.submenuContainer,fe.submenu=Ue.submenu,this._actions.onSubmenuHiding(fe),fe.cancel||(this._visibleSubmenu===Oe&&(this._visibleSubmenu=null),We.hide(),q.removeClass("dx-menu-item-expanded"))}_submenuOnHiddenHandler(q,Oe,fe){let{rootItem:We}=fe;const Ue=this._getVisibilityChangeEventParams(We,Oe,q,!0);this._actions.onSubmenuHidden(Ue)}_getVisibilityChangeEventParams(q,Oe,fe,We){let Ue,Ve;if(q){const tt=We?(0,m.A)(q).closest(".dx-menu-item")[0]:q;Ue=this._getItemData(tt),Ve=(0,m.A)(tt).find(".dx-submenu").first()}else{const tt=(0,m.A)(Oe._overlay.content());Ue=this._getItemData(fe),Ve=tt.find(".dx-submenu").first()}return{itemData:Ue,rootItem:(0,d.cc)(fe),submenuContainer:(0,d.cc)(Ve),submenu:Oe}}_submenuMouseLeaveHandler(q,Oe){const fe=(0,m.A)(Oe.relatedTarget).parents(".dx-context-menu")[0],We=this._getSubmenuByRootElement(q).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&fe!==We&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))}_hideSubmenuAfterTimeout(){if(!this._visibleSubmenu)return;const q=(0,m.A)(this._visibleSubmenu.$element().context).hasClass("dx-state-hover"),Oe=this._visibleSubmenu.getOverlayContent().find(".dx-state-hover").length;!this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover")&&!Oe&&!q&&this._visibleSubmenu.hide()}_getSubmenuByRootElement(q){if(!q)return!1;const Oe=q.children(".dx-context-menu");return Oe.length&&L.getInstance(Oe)}getSubmenuPosition(q){const Oe=this._isMenuHorizontal(),fe=this.option("submenuDirection").toLowerCase(),We=this.option("rtlEnabled"),Ue={collision:"flip",of:q,precise:!0};switch(fe){case"leftortop":Ue.at="left top",Ue.my=Oe?"left bottom":"right top";break;case"rightorbottom":Ue.at=Oe?"left bottom":"right top",Ue.my="left top";break;default:Oe?(Ue.at=We?"right bottom":"left bottom",Ue.my=We?"right top":"left top"):(Ue.at=We?"left top":"right top",Ue.my=We?"right top":"left top")}return Ue}_renderBorderElement(q){(0,m.A)("<div>").appendTo(q).addClass("dx-context-menu-container-border").hide()}_itemPointerDownHandler(q){(0,m.A)(q.target).closest(this._itemElements()).hasClass("dx-menu-item-has-submenu")?this.option("focusedElement",null):super._itemPointerDownHandler(q)}_hoverStartHandler(q){const Oe=(0,b.b4)(x.A.move,this.NAME),fe=this._getItemElementByEventArgs(q),We=this._dataAdapter.getNodeByItem(this._getItemData(fe)),Ue=(0,w.O9)(q.buttons)&&1===q.buttons||!(0,w.O9)(q.buttons)&&1===q.which;if(!this._isItemDisabled(fe)){if(P.A.off(fe,Oe),!this._hasChildren(We))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!Ue){const Ve=this._getSubmenuByElement(fe);this._clearTimeouts(),Ve.isOverlayVisible()||(P.A.on(fe,Oe,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}}_hoverEndHandler(q){const Oe=this._getItemElementByEventArgs(q),fe=(0,m.A)(q.relatedTarget);super._hoverEndHandler(q),this._clearTimeouts(),!this._isItemDisabled(Oe)&&(fe.hasClass("dx-context-menu-content-delimiter")||this.option("hideSubmenuOnMouseLeave")&&!fe.hasClass("dx-menu-items-container")&&(this._hideSubmenuTimer=setTimeout(()=>{this._hideSubmenuAfterTimeout()},this._getDelay("hide"))))}_hideVisibleSubmenu(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)}_showSubmenu(q){const Oe=this._getSubmenuByElement(q);this._visibleSubmenu!==Oe&&this._hideVisibleSubmenu(),Oe&&(this._clearTimeouts(),this.focus(),Oe.show(),this.option("focusedElement",Oe.option("focusedElement"))),this._visibleSubmenu=Oe,this._hoveredRootItem=q}_hideSubmenu(q){q&&q.hide(),this._visibleSubmenu===q&&(this._visibleSubmenu=null),this._hoveredRootItem=null}_itemMouseMoveHandler(q){if(q.pointers&&q.pointers.length)return;const Oe=(0,m.A)(q.currentTarget);(0,w.O9)(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout(()=>{const fe=this._getSubmenuByElement(Oe);fe&&!fe.isOverlayVisible()&&this._showSubmenu(Oe)},this._getDelay("show")))}_clearTimeouts(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)}_getSubmenuByElement(q,Oe){const fe=this._getSubmenuByRootElement(q);if(fe)return fe;Oe=Oe??this._getItemData(q);const We=this._dataAdapter.getNodeByItem(Oe);return this._hasChildren(We)&&this._renderSubmenuItems(We,q)}_updateSubmenuVisibilityOnClick(q){const Oe=q.args.length&&q.args[0];if(!Oe||this._disabledGetter(Oe.itemData))return;const fe=(0,m.A)(Oe.itemElement),We=this._getSubmenuByElement(fe,Oe.itemData);if(this._updateSelectedItemOnClick(q),this._visibleSubmenu){if(this._visibleSubmenu===We)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}We&&(We.isOverlayVisible()||this._showSubmenu(fe))}_optionChanged(q){if(pe.includes(q.name))this._initActions();else switch(q.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(q.name,q.value);break;case"adaptivityEnabled":q.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(q.name,q.value),this._overlay.option(q.name,q.value)),super._optionChanged(q),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!q.value),super._optionChanged(q);break;default:this._isAdaptivityEnabled()&&(q.name===q.fullName||"items"===q.name)&&this._treeView.option(q.fullName,q.value),super._optionChanged(q)}}_changeSubmenusOption(q,Oe){(0,e.__)(this._submenus,(fe,We)=>{We.option(q,Oe)})}selectItem(q){this._hideSubmenu(this._visibleSubmenu),super.selectItem(q)}unselectItem(q){this._hideSubmenu(this._visibleSubmenu),super.selectItem(q)}}(0,S.A)("dxMenu",Ee);const Ke=Ee},6340:(En,it,p)=>{"use strict";p.d(it,{Q:()=>C});var S=p(9867),d=p(6111),m=p(8621),T=p(262);function C(e){return(0,S.N)((k,w)=>{(0,m.Tg)(e).subscribe((0,d._)(w,()=>w.complete(),T.l)),!w.closed&&k.subscribe(w)})}},6347:(En,it,p)=>{"use strict";p.d(it,{j:()=>d});var S=p(9867);function d(m){return(0,S.N)((T,C)=>{try{T.subscribe(C)}finally{C.add(m)}})}},6358:(En,it,p)=>{"use strict";p.d(it,{_:()=>m});var S=p(3746),d=p(4303);let m=(()=>{var T;class C{constructor(k){this.scopeService=k}transform(k){const w=this.scopeService.getScope().globalSettings.blobStorageCdnUrl;let P=null,v=!1,x="";return k?.avatarGuid?P=`${w}/avatar/${k.avatarGuid}?preset=cover-1x1`:k?.firstName&&k.lastName?(v=!0,x=`${k.firstName[0]||""}${k.lastName[0]||""}`.toUpperCase()):P=`${w}/avatar/${1===k?.gender?"male.png":"female.png"}?preset=cover-1x1`,{avatarUrl:P,useInitials:v,initials:x}}static#e=T=()=>(this.\u0275fac=function(w){return new(w||C)(d.rXU(S.A,16))},this.\u0275pipe=d.EJ8({name:"createAvatar",type:C,pure:!0,standalone:!1}))}return T(),C})()},6362:(En,it,p)=>{"use strict";p.d(it,{A:()=>G});var S=p(1973),d=p(5704),m=p(5944),T=p(4859),C=p(6021),e=p(3090),k=p(6110),w=p(8360),P=p(9012),v=p(4481),x=p(3608),b=p(8628);const B=(0,k.zk)(),R=v.A.inherit({_getDefaultOptions(){return(0,e.X)(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:w.A.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectByClick:!1})},_defaultOptionsRules(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({item:new m.U((Q,z)=>{const K=new P.A((0,d.A)("<div>"),(0,e.X)({onClick:z&&z.click,stylingMode:z&&z.stylingMode||"outlined"},z));Q.append(K.$element())},["disabled","icon","text","type","onClick","click","stylingMode"],this.option("integrationOptions.watchMethod"))})},_itemContainer(){return this._$itemContainer},_itemClass:()=>"dx-actionsheet-item",_itemDataKey:()=>"dxActionSheetItemData",_toggleVisibility:T.lQ,_renderDimensions:T.lQ,_initMarkup(){this.callBase(),this.$element().addClass("dx-actionsheet"),this._createItemContainer()},_render(){this._renderPopup()},_createItemContainer(){this._$itemContainer=(0,d.A)("<div>").addClass("dx-actionsheet-container"),this._renderDisabled()},_renderDisabled(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup(){this._$popup=(0,d.A)("<div>").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption(Q){this._popup&&this._popup.option(Q,this.option(Q))},_isPopoverMode(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle(){this._mapPopupOption("showTitle"),this._popup&&this._popup.$wrapper().toggleClass("dx-actionsheet-without-title",!this.option("showTitle"))},_clean(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig(){return{onInitialized:function(Q){this._popup=Q.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!0,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover(){this._createComponent(this._$popup,x.A,(0,e.X)(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup.$overlayContent().attr("role","dialog"),this._popup.$wrapper().addClass("dx-actionsheet-popover-wrapper")},_createPopup(){this._createComponent(this._$popup,b.A,(0,e.X)(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:B},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:B}},to:{position:{my:"bottom",at:"bottom",of:B}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:B}},to:{position:{my:"top",at:"bottom",of:B}}}}})),this._popup.$wrapper().addClass("dx-actionsheet-popup-wrapper")},_popupContentReadyAction(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){const Q=this._createActionByOption("onCancelClick")||T.lQ,z=this;this._$cancelButton=(0,d.A)("<div>").addClass("dx-actionsheet-cancel").appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,P.A,{disabled:!1,stylingMode:"outlined",text:this.option("cancelText"),onClick(K){const ee={event:K,cancel:!1};Q(ee),ee.cancel||z.hide()},integrationOptions:{}})}},_attachItemClickEvent:T.lQ,_itemClickHandler(Q){this.callBase(Q),(0,d.A)(Q.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler(Q){this.callBase(Q),(0,d.A)(Q.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged(Q){switch(Q.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(Q.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(Q)}},toggle(Q){const z=this,K=(0,C.cY)();return z._popup.toggle(Q).done(()=>{z.option("visible",Q),K.resolveWith(z)}),K.promise()},show(){return this.toggle(!0)},hide(){return this.toggle(!1)}});(0,S.A)("dxActionSheet",R);const G=R},6379:(En,it,p)=>{"use strict";p.d(it,{m:()=>m});var S=p(2493),d=p(6171);function m(T){d.f.setTimeout(()=>{const{onUnhandledError:C}=S.$;if(!C)throw T;C(T)})}},6394:(En,it,p)=>{"use strict";function S(m,T,C,e,k,w,P){try{var v=m[w](P),x=v.value}catch(b){return void C(b)}v.done?T(x):Promise.resolve(x).then(e,k)}function d(m){return function(){var T=this,C=arguments;return new Promise(function(e,k){var w=m.apply(T,C);function P(x){S(w,e,k,P,v,"next",x)}function v(x){S(w,e,k,P,v,"throw",x)}P(void 0)})}}p.d(it,{A:()=>d})},6405:(En,it,p)=>{"use strict";function S(d,m){return d.reduce((T,C,e)=>(T[C]=m[e],T),{})}p.d(it,{e:()=>S})},6409:(En,it,p)=>{"use strict";p.d(it,{A:()=>m});var S=p(1830);const m={_getSpecificDataSourceOption(){let T=this.option("dataSource"),C=!1,e={};return this._getGroupedOption()&&(T=>Array.isArray(T)&&T.every(C=>2===Object.keys(C).length&&"key"in C&&"items"in C&&Array.isArray(C.items)))(T)&&(e=T.reduce((k,w)=>{const P=w.items.map(v=>((0,S.Gv)(v)||(v={text:v},C=!0),"key"in v||(v.key=w.key),v));return k.concat(P)},[]),T={store:{type:"array",data:e},group:{selector:"key",keepInitialKeyOrder:!0}},C&&(T.searchExpr="text")),T}}},6410:(En,it,p)=>{"use strict";p.d(it,{A:()=>ie});var S=p(5973),d=p(5704),m=p(4859),T=p(3090),C=p(2660),e=p(1830),k=p(9524),w=p(7794);p(4972);const x=w.A;var b=p(5107),B=p(1694);const F=class j extends B.A{_getPlainItems(){return(0,C.Tj)(this._collectionWidget.option("items"),function Ce(ye){return ye.items?[ye].concat((0,C.Tj)(ye.items,Ce)):ye})}_stringifyItem(Ce){return JSON.stringify(Ce,(ye,Me)=>"template"===ye?this._getTemplateString(Me):Me)}_getTemplateString(Ce){let ye;return ye="object"==typeof Ce?(0,d.A)(Ce).text():Ce.toString(),ye}},A="dx-menu-item",M=`${A}-content`,H=`${A}-selected`,J=`${A}-wrapper`,L=`${A}-expanded`,z=`${A}-has-text`,K=`${A}-has-icon`,ee=`${A}-has-submenu`,re=`${A}-popout`,be=`${re}-container`,ce=`${A}-text`,Se={show:50,hide:300},De=`${ce}-with-url`,ie=(()=>{class he extends x{_getDefaultOptions(){return(0,T.X)(super._getDefaultOptions(),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})}_itemDataKey(){return"dxMenuItemDataKey"}_itemClass(){return A}_setAriaSelectionAttribute(ye,Me){}_selectedItemClass(){return H}_widgetClass(){return"dx-menu-base"}_focusTarget(){return this._itemContainer()}_clean(){this.option("focusedElement",null),super._clean()}_supportedKeys(){return(0,T.X)(super._supportedKeys(),{space:()=>{const ye=(0,d.A)(this.option("focusedElement"));!ye.length||!this._isSelectionEnabled()||this.selectItem(ye[0])},pageUp:m.lQ,pageDown:m.lQ})}_isSelectionEnabled(){return"single"===this.option("selectionMode")}_init(){this._activeStateUnit=`.${A}`,super._init(),this._renderSelectedItem(),this._initActions()}_getLinkContainer(ye,Me,_e){const{linkAttr:ke,url:Ye}=_e;return ye?.addClass("dx-icon-with-url"),Me?.addClass(De),super._getLinkContainer(ye,Me,{linkAttr:ke,url:Ye})}_addContent(ye,Me){const{html:_e,url:ke}=Me;if(ke){ye.html(_e);const Ye=this._getLinkContainer(this._getIconContainer(Me),this._getTextContainer(Me),Me);ye.append(Ye)}else super._addContent(ye,Me);ye.append(this._getPopoutContainer(Me)),this._addContentClasses(Me,ye.parent())}_getTextContainer(ye){const{text:Me}=ye;if(!Me)return;const _e=(0,d.A)("<span>").addClass(ce),ke=(0,e.Qd)(ye)?Me:String(ye);return _e.text(ke)}_getItemExtraPropNames(){return["url","linkAttr"]}_getPopoutContainer(ye){const{items:Me}=ye;let _e;if(Me&&Me.length){const ke=(0,d.A)("<div>").addClass(re);_e=(0,d.A)("<span>").addClass(be).append(ke)}return _e}_getDataAdapterOptions(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}}_selectByItem(ye){if(!ye)return;const Me=this._dataAdapter.getNodeByItem(ye);this._dataAdapter.toggleSelection(Me.internalFields.key,!0)}_renderSelectedItem(){const ye=this._dataAdapter.getSelectedNodesKeys(),Me=ye.length&&ye[0],_e=this.option("selectedItem");if(!Me)return void this._selectByItem(_e);const ke=this._dataAdapter.getNodeByKey(Me);if(!1!==ke.selectable){if(!_e)return void this.option("selectedItem",ke.internalFields.item);_e!==ke.internalFields.item&&(this._dataAdapter.toggleSelection(Me,!1),this._selectByItem(_e))}}_initActions(){}_initMarkup(){super._initMarkup(),this.option("useInkRipple")&&this._renderInkRipple()}_renderInkRipple(){this._inkRipple=(0,k.XX)()}_toggleActiveState(ye,Me,_e){if(super._toggleActiveState.apply(this,arguments),!this._inkRipple)return;const ke={element:ye,event:_e};Me?this._inkRipple.showWave(ke):this._inkRipple.hideWave(ke)}_getShowSubmenuMode(){let ye=this.option("showSubmenuMode");return ye=(0,e.Gv)(ye)?ye.name:ye,this._isDesktopDevice()?ye:"onClick"}_initSelectedItems(){}_isDesktopDevice(){return"desktop"===S.A.real().deviceType}_initEditStrategy(){this._editStrategy=new F(this)}_addCustomCssClass(ye){ye.addClass(this.option("cssClass"))}_itemWrapperSelector(){return`.${J}`}_hoverStartHandler(ye){const Me=this._getItemElementByEventArgs(ye);!Me||this._isItemDisabled(Me)||(ye.stopPropagation(),"onHover"===this._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(this._showSubmenu.bind(this,Me),this._getSubmenuDelay("show"))))}_getAvailableItems(ye){return super._getAvailableItems(ye).filter(function(){return"hidden"!==(0,d.A)(this).css("visibility")})}_isItemDisabled(ye){return this._disabledGetter(ye.data(this._itemDataKey()))}_showSubmenu(ye){this._addExpandedClass(ye)}_addExpandedClass(ye){(0,d.A)(ye).addClass(L)}_getSubmenuDelay(ye){const{delay:Me}=this.option("showSubmenuMode");return(0,e.O9)(Me)?(0,e.Gv)(Me)?Me[ye]:Me:Se[ye]}_getItemElementByEventArgs(ye){let Me=(0,d.A)(ye.target);if(Me.hasClass(this._itemClass())||Me.get(0)===ye.currentTarget)return Me;for(;!Me.hasClass(this._itemClass());)if(Me=Me.parent(),Me.hasClass("dx-submenu"))return null;return Me}_hoverEndHandler(ye){clearTimeout(this._showSubmenusTimeout)}_hasSubmenu(ye){return ye&&ye.internalFields.childrenKeys.length}_renderContentImpl(){this._renderItems(this._dataAdapter.getRootNodes())}_renderItems(ye,Me){if(!ye.length)return;this.hasIcons=!1;const _e=this._renderContainer(this.$element(),Me);let ke=-1,Ye=-1;(0,C.__)(ye,(de,Ae)=>{const pe=!1!==Ae.visible;pe&&ke<0&&(ke=de),ke<de&&(Ae.beginGroup||de===Ye)&&(Ye=pe?de:de+1),de===Ye&&ke<de&&this._renderSeparator(_e),this._renderItem(de,Ae,_e)}),this.hasIcons||_e.addClass("dx-menu-no-icons")}_renderContainer(ye,Me){const _e=(0,d.A)("<ul>");return this.setAria("role","none",_e),_e.appendTo(ye).addClass("dx-menu-items-container")}_createDOMElement(ye){const Me=(0,d.A)("<li>");return this.setAria("role","none",Me),Me.appendTo(ye).addClass(J)}_renderItem(ye,Me,_e,ke){const{items:Ye=[]}=this.option(),de=ke??this._createDOMElement(_e);Ye[ye+1]&&Ye[ye+1].beginGroup&&de.addClass("dx-menu-last-group-item");const Ae=super._renderItem(ye,Me.internalFields.item,de);Me.internalFields.item===this.option("selectedItem")&&Ae.addClass(H),Ae.attr("tabIndex",-1),this._hasSubmenu(Me)&&this.setAria("haspopup","true",Ae)}_renderItemFrame(ye,Me,_e){const ke=_e.children(`.${A}`);return ke.length?ke:super._renderItemFrame.apply(this,arguments)}_refreshItem(ye,Me){const _e=this._dataAdapter.getNodeByItem(Me),ke=ye.data(this._itemIndexKey()),Ye=ye.closest("ul"),de=ye.closest("li");this._renderItem(ke,_e,Ye,de)}_addContentClasses(ye,Me){const ke=!!ye.icon,Ye=!!ye.items&&!!ye.items.length;Me.toggleClass(z,!!ye.text&&!!ye.text.length),Me.toggleClass(K,ke),this.hasIcons||(this.hasIcons=ke),Me.toggleClass(ee,Ye)}_getItemContent(ye){let Me=super._getItemContent(ye);return Me.length||(Me=ye.children(`.${M}`)),Me}_postprocessRenderItem(ye){const Me=(0,d.A)(ye.itemElement),_e=this._dataAdapter.getSelectedNodesKeys();_e.length&&this._selectedGetter(ye.itemData)&&this._isItemSelectable(ye.itemData)&&this._dataAdapter.getNodeByItem(ye.itemData).internalFields.key===_e[0]?(Me.addClass(this._selectedItemClass()),this._setAriaSelectionAttribute(Me,"true")):this._setAriaSelectionAttribute(Me,"false")}_isItemSelectable(ye){return!1!==ye.selectable}_renderSeparator(ye){(0,d.A)("<li>").appendTo(ye).addClass("dx-menu-separator")}_itemClickHandler(ye){if(ye._skipHandling)return;const Me=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(ye,"onItemClick",{},{beforeExecute:this._itemClick,afterExecute:Me.bind(this)}),ye._skipHandling=!0}_itemClick(ye){const{event:Me,itemData:_e}=ye.args[0],ke=this._getItemElementByEventArgs(Me),Ye=ke&&ke.find(".dx-item-url").get(0);_e.url&&Ye&&Ye.click()}_updateSubmenuVisibilityOnClick(ye){this._updateSelectedItemOnClick(ye),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(ye.args[0].itemElement)}_updateSelectedItemOnClick(ye){const Me=ye.args?ye.args[0]:ye;if(!this._isItemSelectAllowed(Me.itemData))return;const _e=this._dataAdapter.getSelectedNodesKeys(),ke=_e.length&&this._dataAdapter.getNodeByKey(_e[0]);ke&&this._toggleItemSelection(ke,!1),ke&&ke.internalFields.item===Me.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionWithoutOptionChange("selectedItem",null)):this.selectItem(Me.itemData)}_isItemSelectAllowed(ye){const Me=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&Me&&this._isItemSelectable(ye)&&!this._itemsGetter(ye)}_isContainerEmpty(){return this._itemContainer().is(":empty")}_syncSelectionOptions(){return(0,m.TA)()}_optionChanged(ye){switch(ye.name){case"showSubmenuMode":break;case"selectedItem":{const Me=this._dataAdapter.getNodeByItem(ye.value),_e=this._dataAdapter.getSelectedNodesKeys()[0];if(Me&&Me.internalFields.key!==_e){if(!1===Me.selectable)break;_e&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(_e),!1),this._toggleItemSelection(Me,!0),this._updateSelectedItems()}break}case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:super._optionChanged(ye)}}_toggleItemSelection(ye,Me){const _e=this._getElementByItem(ye.internalFields.item);_e&&(0,d.A)(_e).toggleClass(H),this._dataAdapter.toggleSelection(ye.internalFields.key,Me)}_getElementByItem(ye){let Me;return(0,C.__)(this._itemElements(),(_e,ke)=>(0,d.A)(ke).data(this._itemDataKey())!==ye||(Me=ke,!1)),Me}_updateSelectedItems(ye,Me){(ye||Me)&&this._fireSelectionChangeEvent(Me,ye)}_fireSelectionChangeEvent(ye,Me){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[ye],removedItems:[Me]})}selectItem(ye){const Me=ye.nodeType?this._getItemData(ye):ye,_e=this._dataAdapter.getSelectedNodesKeys()[0],ke=this.option("selectedItem"),Ye=this._dataAdapter.getNodeByItem(Me);Ye.internalFields.key!==_e&&(_e&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(_e),!1),this._toggleItemSelection(Ye,!0),this._updateSelectedItems(ke,Me),this._setOptionWithoutOptionChange("selectedItem",Me))}unselectItem(ye){const Me=ye.nodeType?this._getItemData(ye):ye,_e=this._dataAdapter.getNodeByItem(Me),ke=this.option("selectedItem");_e.internalFields.selected&&(this._toggleItemSelection(_e,!1),this._updateSelectedItems(ke,null),this._setOptionWithoutOptionChange("selectedItem",null))}}return he.ItemClass=b.A,he})()},6449:(En,it,p)=>{"use strict";p.d(it,{u:()=>k});var S=p(3746),d=p(2198),m=p(5981),T=p(5804),C=p(656),e=p(65);let k=(()=>{var w;class P{constructor(x,b,B){this.http=x,this.scopeService=b,this.upgrade=B,this.apiEndpoint="",this.profile={loginInfo:{}},this.loginState=new m.t(!1),this.loginState$=this.loginState.asObservable(),this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint,this.mediaApiBase={url:this.scope.globalSettings.configurations.apicodoMediaBaseUrl}}noop(){return this.http.get(`${this.apiEndpoint}/account/noop`).toPromise()}register(x){return this.noop().then(()=>this.http.post(`${this.apiEndpoint}account/register`,x).toPromise()).catch(b=>Promise.reject(b))}externalRegister(x){return this.logout().then(()=>this.noop()).then(()=>this.http.post(`${this.apiEndpoint}account/registerexternal`,x).toPromise().then(b=>{this.emitAuthenticationStateChanged(!0)})).catch(b=>Promise.reject(b))}login(x){return this.noop().then(()=>this.http.post(`${this.apiEndpoint}account/login`,x).toPromise().then(b=>(this.emitAuthenticationStateChanged(!0),b))).catch(b=>Promise.reject(b))}loginSaml2(x){return this.noop().then(()=>this.http.post(`${this.apiEndpoint}account/loginSaml2`,x).toPromise().then(b=>(this.emitAuthenticationStateChanged(!0),b))).catch(b=>Promise.reject(b))}logout(){return this.noop().then(()=>this.http.get(`${this.apiEndpoint}account/logout`).toPromise()).then(x=>new Promise((b,B)=>{this.emitAuthenticationStateChanged(!1);const F=window.indexedDB.deleteDatabase(`chatDb-${this.scope.network.id}-${this.scope.currentChapter.id}`);F.onsuccess=()=>{console.log("Database deleted successfully."),b(x)},F.onerror=X=>{console.error("Error deleting database.",X),B(new Error("Error deleting database."))},F.onblocked=()=>{console.warn("Database deletion is blocked."),B(new Error("Database deletion is blocked."))}})).catch(x=>Promise.reject(x))}resolveProfile(x,b,B){let j=null;"male"===x.gender?j=1:"female"===x.gender&&(j=0);let F=null;x.birthday&&x.birthday.replace(/\d\d\/\d\d\/(\d\d\d\d)/g,(U,Z)=>{F=Z});const X=x.email&&x.email.match(/[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/)?x.email:null;b({loginProvider:"Facebook",token:x.id,email:X,emailConfirmed:!!X,firstName:x.first_name,lastName:x.last_name,gender:j,genderConfirmed:!!j,yearOfBirth:F,yearOfBirthConfirmed:!!F})}validateEmail(x){return this.http.put(`${this.apiEndpoint}account/email/${x}`,{}).toPromise().catch(b=>Promise.reject(b))}setPassword(x){return this.http.post(`${this.apiEndpoint}account/password`,x).toPromise().catch(b=>Promise.reject(b))}requestPassword(x){return(0,T._)(this.http.put(`${this.apiEndpoint}account/RequestPassword`,x,{observe:"response"}))}changePassword(x){return(0,T._)(this.http.put(`${this.apiEndpoint}account/Password`,x,{observe:"response"}))}validateCredentials(x){return this.http.post(`${this.apiEndpoint}account/ValidateCredentials`,x).toPromise().catch(b=>Promise.reject(b))}deleteAccount(){return this.noop().then(()=>this.http.get(`${this.apiEndpoint}account/delete`).toPromise()).then(x=>new Promise((b,B)=>{this.emitAuthenticationStateChanged(!1);const F=window.indexedDB.deleteDatabase(`chatDb-${this.scope.network.id}-${this.scope.currentChapter.id}`);F.onsuccess=()=>{console.log("Database deleted successfully."),b(x)},F.onerror=X=>{console.error("Error deleting database.",X),B(new Error("Error deleting database."))},F.onblocked=()=>{console.warn("Database deletion is blocked."),B(new Error("Database deletion is blocked."))}})).catch(x=>Promise.reject(x))}changeEmail(x){return this.http.post(`${this.apiEndpoint}account/email`,x).toPromise().catch(b=>Promise.reject(b))}sendEmailVerification(x){return this.http.post(`${this.apiEndpoint}account/email/${x}/sendVerification`,{}).toPromise().catch(b=>Promise.reject(b))}getEmails(){return this.http.get(`${this.apiEndpoint}account/emails/`).toPromise().catch(()=>Promise.reject("Error fetching emails"))}deleteEmail(x){return this.http.post(`${this.apiEndpoint}account/email/${x}/delete`,{}).toPromise().catch(()=>Promise.reject("Error deleting email"))}updateActiveEmail(x){return this.http.post(`${this.apiEndpoint}account/email/${x}/updateActive`,{}).toPromise().catch(()=>Promise.reject("Error updating email"))}getApicodoMediaToken(){return this.http.get(`${this.apiEndpoint}media/token`).toPromise().catch(()=>Promise.reject("Error fetching media token"))}triggerApplyInAngularJs(){try{const b=this.upgrade.injector.get("$rootScope");b?b.$apply():console.error("AngularJS $rootScope not found.")}catch(x){console.error("Error accessing AngularJS services:",x)}}emitAuthenticationStateChanged(x){this.upgrade.injector.get("$rootScope").$emit("authenticationStateChanged"),this.loginState.next(x)}static#e=w=()=>(this.\u0275fac=function(b){return new(b||P)(C.KVO(e.Qq),C.KVO(S.A),C.KVO(d.be))},this.\u0275prov=C.jDH({token:P,factory:P.\u0275fac,providedIn:"root"}))}return w(),P})()},6472:(En,it,p)=>{"use strict";p.d(it,{x:()=>m});var S=p(7028),d=p(4418);function m(T){return(0,d.T)(T?.[S.l])}},6509:(En,it,p)=>{"use strict";p.d(it,{ap:()=>T,tm:()=>e});var S=p(1830),d=p(6234);const T=function(k,w){const P=[];let v,x;for(v in k)Object.prototype.hasOwnProperty.call(k,v)&&P.push(v);for(P.sort(function(b,B){const j=(0,S.kf)(b),F=(0,S.kf)(B);return j&&F?b-B:j&&!F?-1:!j&&F?1:b<B?-1:b>B?1:0}),x=0;x<P.length;x++)v=P[x],w(v,k[v])},C=function(k,w,P,v){!v&&d.A.isWrapped(k[w])?d.A.assign(k[w],P):k[w]=P},e=function(k,w,P,v){let x,b;for(const B in w)if(x=k[B],b=w[B],"__proto__"!==B&&"constructor"!==B&&k!==b){if((0,S.Qd)(b)){const j=P?(0,S.Gv)(x):(0,S.Qd)(x);b=e(j?x:{},b,P,v)}void 0!==b&&x!==b&&C(k,B,b,v)}return k}},6520:(En,it,p)=>{"use strict";p.d(it,{A:()=>J}),p(5470);var d=p(1973),m=p(6054),T=p(9522),C=p(7251),e=p(5704),k=p(4859),w=p(6021),P=p(3090),v=p(2660),x=p(1830),b=p(9293),B=p(8360);const M=p(1010).A.inherit({_supportedKeys(){const R=this,L=this.callBase(),G=function(z){this._isEditable()?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(z.preventDefault(),this.clear()),this._savedTextRemoveEvent=z,this._preventSubstitution=!0},Q=function(){R.option("searchEnabled")&&R._valueSubstituted()&&R._searchHandler()};return(0,P.X)({},L,{tab(){this.option("opened")&&!this._popup.getFocusableElements().length&&this._resetCaretPosition(!0),L.tab&&L.tab.apply(this,arguments),this._cancelSearchIfNeed()},upArrow(z){if(L.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(z),!0},downArrow(z){if(L.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(z),!0},leftArrow(){var z;Q(),null===(z=L.leftArrow)||void 0===z||z.apply(this,arguments)},rightArrow(){Q(),L.rightArrow&&L.rightArrow.apply(this,arguments)},home(){Q(),L.home&&L.home.apply(this,arguments)},end(){Q(),L.end&&L.end.apply(this,arguments)},escape(){const z=L.escape&&L.escape.apply(this,arguments);return this._cancelEditing(),z??!0},enter(z){const K=this.option("opened"),ee=this._input().val().trim(),re=ee&&this._list&&!this._list.option("focusedElement");if(!ee&&(0,x.O9)(this.option("value"))&&this.option("allowClearing"))this._saveValueChangeEvent(z),this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return z.preventDefault(),re&&(K&&this._toggleOpenState(),this._valueChangeEventHandler(z)),K;if(L.enter&&L.enter.apply(this,arguments))return K}},space(z){const K=this.option("opened"),ee=this.option("searchEnabled"),re=this.option("acceptCustomValue");if(K&&!ee&&!re)return z.preventDefault(),this._valueChangeEventHandler(z),!0},backspace:G,del:G})},_getDefaultOptions(){return(0,P.X)(this.callBase(),{placeholder:B.A.format("Select"),fieldTemplate:null,customItemCreateEvent:"change",valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating(R){(0,x.O9)(R.customItem)||(R.customItem=R.text)},showSelectionControls:!1,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,useHiddenSubmitElement:!0})},_init(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup(){this.$element().addClass("dx-selectbox"),this._renderTooltip(),this.callBase(),this._$container.addClass("dx-selectbox-container")},_createPopup(){this.callBase(),this._popup.$element().addClass("dx-selectbox-popup"),this._popup.$overlayContent().attr("tabindex",-1)},_popupWrapperClass(){return`${this.callBase()} dx-selectbox-popup-wrapper`},_setDeprecatedOptions(){this.callBase(),(0,P.X)(this._deprecatedOptions,{valueChangeEvent:{since:"22.2",alias:"customItemCreateEvent"}})},_cancelEditing(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement(){if(!this._searchValue())return void this._focusListElement(null);const{items:L,selectedItem:G}=this.option(),Q=this._list._itemElements(),z=L?.indexOf(G)??-1,K=-1===z||this._isCustomItemSelected()?null:Q.eq(z);this._focusListElement(K)},_renderFocusedElement(){if(!this._list)return;if(!this._searchValue()||this.option("acceptCustomValue"))return void this._focusListElement(null);const G=this._list._itemElements().not(".dx-state-disabled").eq(0);this._focusListElement(G)},_focusListElement(R){this._preventInputValueRender=!0,this._list.option("focusedElement",(0,T.cc)(R)),delete this._preventInputValueRender},_scrollToSelectedItem(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler(){this.callBase(),(!this._dataController.paginate()||!this._needPopupRepaint())&&this._scrollToSelectedItem()},_renderValue(){return this._renderInputValue(),this._setSubmitValue(),(0,w.cY)().resolve()},_renderInputValue(){return this.callBase().always(()=>{this._renderInputValueAsync()})},_renderInputValueAsync(){this._renderTooltip(),this._renderInputValueImpl().always(()=>{this._refreshSelected()})},_renderInputValueImpl(){return this._renderField(),(0,w.cY)().resolve()},_setNextItem(R){const L=this._calcNextItem(R),G=this._valueGetter(L);this._setValue(G)},_setNextValue(R){(this._dataController.isLoaded()?(0,w.cY)().resolve():this._dataController.load()).done(()=>{const G=this._getSelectedIndex(),Q=this._dataController.pageSize(),z=this._dataController.isLastPage(),K=G===this._items().length-1;this._saveValueChangeEvent(R);const ee="downArrow"===(0,b.YD)(R)?1:-1;Q&&!z&&K&&ee>0?(this._popup||this._createPopup(),this._dataController.isLoading()||this._list._loadNextPage().done(this._setNextItem.bind(this,ee))):this._setNextItem(ee)})},_setSelectedItem(R){const L=!this._isCustomValueAllowed()&&void 0===R;this.callBase(L?null:R),!L&&(!this._isEditable()||this._isCustomItemSelected())&&this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed(){return this.option("acceptCustomValue")||this.callBase()},_displayValue(R){return R=!(0,x.O9)(R)&&this._isCustomValueAllowed()?this.option("value"):R,this.callBase(R)},_listConfig(){const R=(0,P.X)(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&(0,P.X)(R,{showSelectionControls:!0,selectByClick:!0}),R},_listFocusedItemChangeHandler(R){if(this._preventInputValueRender)return;const L=R.component,G=(0,e.A)(L.option("focusedElement")),Q=L._getItemData(G);this._updateField(Q)},_updateField(R){if(!this._getTemplateByOption("fieldTemplate")||!this.option("fieldTemplate")){const G=this._displayGetter(R);return this.option("text",G),void this._renderDisplayText(G)}this._renderField()},_getSelectionChangeHandler(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):k.lQ},_selectionChangeHandler(R){(0,v.__)(R.addedItems||[],(L,G)=>{this._setValue(this._valueGetter(G))})},_getActualSearchValue(){return this._dataController.searchValue()},_isInlineAutocompleteEnabled(){return this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_getAriaAutocomplete(){const{disabled:R,readOnly:L,searchEnabled:G}=this.option();return!G||L||R?"none":this._isInlineAutocompleteEnabled()?"both":"list"},_toggleOpenState(R){if(!this.option("disabled")){if(!(R=arguments.length?R:!this.option("opened"))&&!this._shouldClearFilter()&&this._restoreInputText(!0),this._wasSearch()&&R)if(this._wasSearch(!1),(this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded())&&this._dataController.getDataSource()){if(this._searchTimer)return;const G=this._getActualSearchValue();G&&this._wasSearch(!0),this._filterDataSource(G||null)}else this._setListOption("items",[]);R&&this._scrollToSelectedItem(),this.callBase(R)}},_renderTooltip(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions(){this.callBase(),this._updatePopupWidth(),this._updateListDimensions()},_isValueEqualInputText(){const R=this.option("selectedItem");if(null===R)return!1;const L=this._displayGetter(R);return(L?String(L):"")===this._searchValue()},_popupHidingHandler(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_popupHiddenHandler(){this.callBase(),this._shouldCancelSearch()&&(this._wasSearch(!1),this._searchCanceled(),this._shouldCancelSearch(!1))},_restoreInputText(R){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(()=>{const{acceptCustomValue:L,text:G,selectedItem:Q}=this.option();L?!R&&!this._isValueChanging&&(this._updateField(Q??this._createCustomItem(G)),this._clearFilter()):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?this._clearTextValue():this._isValueEqualInputText()||this._renderInputValue().always(z=>{const K=(0,k.YD)(z,Q);this._setSelectedItem(K),this._updateField(K),this._clearFilter()})})},_valueChangeEventIncludesBlur(){return this.option(this._getValueChangeEventOptionName()).includes("blur")},_isPreventedFocusOutEvent(R){return this._preventNestedFocusEvent(R)||this._valueChangeEventIncludesBlur()},_focusOutHandler(R){this._isPreventedFocusOutEvent(R)||(this._isOverlayNestedTarget(R.relatedTarget)||(this._restoreInputText(),this._clearSearchTimer()),this._cancelSearchIfNeed(R)),R.target=this._input().get(0),this.callBase(R)},_cancelSearchIfNeed(R){const{searchEnabled:L}=this.option(),G=this._isOverlayNestedTarget(R?.relatedTarget);if(this._wasSearch()&&L&&!G){var z;const K=null===(z=this._popup)||void 0===z?void 0:z._hideAnimationProcessing;this._clearSearchTimer(),K?this._shouldCancelSearch(!0):(this._wasSearch(!1),this._searchCanceled())}},_shouldCancelSearch(R){if(!arguments.length)return this._shouldCancelSearchValue;this._shouldCancelSearchValue=R},_isOverlayNestedTarget:R=>!!(0,e.A)(R).closest(".dx-selectbox-popup-wrapper").length,_clearTextValue(){const R=this.option("selectedItem"),L=this._displayGetter(R);R&&""!==L&&(this._savedTextRemoveEvent&&this._saveValueChangeEvent(this._savedTextRemoveEvent),this.option("value",null)),delete this._savedTextRemoveEvent},_shouldOpenPopup(){return this._needPassDataSourceToList()&&this._wasSearch()},_isFocused(){const R=m.A.getActiveElement(this.element());return this.callBase()&&(0,e.A)(R).closest(this._input()).length>0},_getValueChangeEventOptionName:()=>"customItemCreateEvent",_renderValueChangeEvent(){this._isEditable()&&this.callBase()},_fieldRenderData(){const R=this._list&&this.option("opened")&&(0,e.A)(this._list.option("focusedElement"));return R&&R.length?this._list._getItemData(R):this.option("selectedItem")},_isSelectedValue(R){return this._isValueEquals(R,this.option("value"))},_shouldCloseOnItemClick(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler(R){const L=this._getCurrentValue();this._focusListElement((0,e.A)(R.itemElement)),this._saveValueChangeEvent(R.event),this._completeSelection(this._valueGetter(R.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&L===this._valueGetter(R.itemData)&&this._updateField(R.itemData),this._shouldClearFilter()&&this._cancelSearchIfNeed()},_shouldClearFilter(){return this._wasSearch()},_completeSelection(R){this._setValue(R)},_loadItem(R,L){const G=this,Q=(0,w.cY)();return this.callBase(R,L).done(z=>{Q.resolve(z)}).fail(z=>{if(null!=z&&z.shouldSkipCallback)return;const K=G.option("selectedItem");G.option("acceptCustomValue")&&R===G._valueGetter(K)?Q.resolve(K):Q.reject()}),Q.promise()},_loadInputValue(R,L){return this._loadItemDeferred=this._loadItem(R).always(L),this._loadItemDeferred},_isCustomItemSelected(){const R=this.option("selectedItem"),L=this._searchValue(),G=this._displayGetter(R);return!G||L!==G.toString()},_valueChangeEventHandler(R){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&!this._isValueChanging&&(this._isValueChanging=!0,this._customItemAddedHandler(R))},_initCustomItemCreatingAction(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem(R){const L={text:R},G=this._customItemCreatingAction(L),Q=(0,k.YD)(G,L.customItem);return(0,x.O9)(G)&&C.A.log("W0015","onCustomItemCreating","customItem"),Q},_customItemAddedHandler(R){const L=this._searchValue(),G=this._createCustomItem(L);if(this._saveValueChangeEvent(R),void 0===G)throw this._renderValue(),C.A.Error("E0121");(0,x.yL)(G)?(0,w.Sx)(G).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(G)},_setCustomItem(R){this._disposed||(this.option("selectedItem",R=R||null),this._cancelSearchIfNeed(),this._setValue(this._valueGetter(R)),this._renderDisplayText(this._displayGetter(R)),this._isValueChanging=!1)},_clearValueHandler(R){return this._preventFiltering=!0,this.callBase(R),this._searchCanceled(),!1},_wasSearch(R){if(!arguments.length)return!!this._wasSearchValue;this._wasSearchValue=R},_searchHandler(){this._preventFiltering?delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),this.callBase(arguments))},_dataSourceFiltered(R){this.callBase(),null!==R&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted(){const R=this._input().get(0),L=this._searchValue().length,G=0===R.selectionStart&&R.selectionEnd===L,Q=R.selectionStart!==R.selectionEnd,z=L===R.selectionEnd;return this._wasSearch()&&Q&&!G&&z&&this._shouldSubstitutionBeRendered()},_shouldSubstitutionBeRendered(){return!this._preventSubstitution&&this._isInlineAutocompleteEnabled()},_renderInputSubstitution(){if(!this._shouldSubstitutionBeRendered())return void delete this._preventSubstitution;const R=this._list&&this._getPlainItems(this._list.option("items"))[0];if(!R)return;const L=this._input(),G=L.val().length;if(0===G)return;const Q=L.get(0),z=this._displayGetter(R).toString();Q.value=z,this._caret({start:G,end:z.length})},_dispose(){this._renderInputValueAsync=k.lQ,delete this._loadItemDeferred,this.callBase()},_optionChanged(R){switch(R.name){case"customItemCreateEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"readOnly":case"disabled":case"searchMode":this.callBase(R),this._setDefaultAria();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":this._invalidate();break;case"allowClearing":break;default:this.callBase(R)}}});(0,d.A)("dxSelectBox",M);const J=M},6523:(En,it,p)=>{"use strict";p.d(it,{W:()=>P,z:()=>w});var S=p(656),d=p(4303),m=p(8638),T=p(8832),C=p(3349),e=p(8914);const k={provide:T.kq,useExisting:(0,S.Rfq)(()=>w),multi:!0};let w=(()=>{class v extends C.ic{_watcherHelper;_idh;instance=null;get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(b){this._setOption("acceptCustomValue",b)}get accessKey(){return this._getOption("accessKey")}set accessKey(b){this._setOption("accessKey",b)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(b){this._setOption("activeStateEnabled",b)}get adaptivityEnabled(){return this._getOption("adaptivityEnabled")}set adaptivityEnabled(b){this._setOption("adaptivityEnabled",b)}get applyButtonText(){return this._getOption("applyButtonText")}set applyButtonText(b){this._setOption("applyButtonText",b)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(b){this._setOption("applyValueMode",b)}get buttons(){return this._getOption("buttons")}set buttons(b){this._setOption("buttons",b)}get calendarOptions(){return this._getOption("calendarOptions")}set calendarOptions(b){this._setOption("calendarOptions",b)}get cancelButtonText(){return this._getOption("cancelButtonText")}set cancelButtonText(b){this._setOption("cancelButtonText",b)}get dateOutOfRangeMessage(){return this._getOption("dateOutOfRangeMessage")}set dateOutOfRangeMessage(b){this._setOption("dateOutOfRangeMessage",b)}get dateSerializationFormat(){return this._getOption("dateSerializationFormat")}set dateSerializationFormat(b){this._setOption("dateSerializationFormat",b)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(b){this._setOption("deferRendering",b)}get disabled(){return this._getOption("disabled")}set disabled(b){this._setOption("disabled",b)}get disabledDates(){return this._getOption("disabledDates")}set disabledDates(b){this._setOption("disabledDates",b)}get displayFormat(){return this._getOption("displayFormat")}set displayFormat(b){this._setOption("displayFormat",b)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(b){this._setOption("dropDownButtonTemplate",b)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(b){this._setOption("dropDownOptions",b)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(b){this._setOption("elementAttr",b)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(b){this._setOption("focusStateEnabled",b)}get height(){return this._getOption("height")}set height(b){this._setOption("height",b)}get hint(){return this._getOption("hint")}set hint(b){this._setOption("hint",b)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(b){this._setOption("hoverStateEnabled",b)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(b){this._setOption("inputAttr",b)}get interval(){return this._getOption("interval")}set interval(b){this._setOption("interval",b)}get invalidDateMessage(){return this._getOption("invalidDateMessage")}set invalidDateMessage(b){this._setOption("invalidDateMessage",b)}get isDirty(){return this._getOption("isDirty")}set isDirty(b){this._setOption("isDirty",b)}get isValid(){return this._getOption("isValid")}set isValid(b){this._setOption("isValid",b)}get label(){return this._getOption("label")}set label(b){this._setOption("label",b)}get labelMode(){return this._getOption("labelMode")}set labelMode(b){this._setOption("labelMode",b)}get max(){return this._getOption("max")}set max(b){this._setOption("max",b)}get maxLength(){return this._getOption("maxLength")}set maxLength(b){this._setOption("maxLength",b)}get min(){return this._getOption("min")}set min(b){this._setOption("min",b)}get name(){return this._getOption("name")}set name(b){this._setOption("name",b)}get opened(){return this._getOption("opened")}set opened(b){this._setOption("opened",b)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(b){this._setOption("openOnFieldClick",b)}get pickerType(){return this._getOption("pickerType")}set pickerType(b){this._setOption("pickerType",b)}get placeholder(){return this._getOption("placeholder")}set placeholder(b){this._setOption("placeholder",b)}get readOnly(){return this._getOption("readOnly")}set readOnly(b){this._setOption("readOnly",b)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(b){this._setOption("rtlEnabled",b)}get showAnalogClock(){return this._getOption("showAnalogClock")}set showAnalogClock(b){this._setOption("showAnalogClock",b)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(b){this._setOption("showClearButton",b)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(b){this._setOption("showDropDownButton",b)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(b){this._setOption("spellcheck",b)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(b){this._setOption("stylingMode",b)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(b){this._setOption("tabIndex",b)}get text(){return this._getOption("text")}set text(b){this._setOption("text",b)}get todayButtonText(){return this._getOption("todayButtonText")}set todayButtonText(b){this._setOption("todayButtonText",b)}get type(){return this._getOption("type")}set type(b){this._setOption("type",b)}get useMaskBehavior(){return this._getOption("useMaskBehavior")}set useMaskBehavior(b){this._setOption("useMaskBehavior",b)}get validationError(){return this._getOption("validationError")}set validationError(b){this._setOption("validationError",b)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(b){this._setOption("validationErrors",b)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(b){this._setOption("validationMessageMode",b)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(b){this._setOption("validationMessagePosition",b)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(b){this._setOption("validationStatus",b)}get value(){return this._getOption("value")}set value(b){this._setOption("value",b)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(b){this._setOption("valueChangeEvent",b)}get visible(){return this._getOption("visible")}set visible(b){this._setOption("visible",b)}get width(){return this._getOption("width")}set width(b){this._setOption("width",b)}onChange;onClosed;onContentReady;onCopy;onCut;onDisposing;onEnterKey;onFocusIn;onFocusOut;onInitialized;onInput;onKeyDown;onKeyUp;onOpened;onOptionChanged;onPaste;onValueChanged;acceptCustomValueChange;accessKeyChange;activeStateEnabledChange;adaptivityEnabledChange;applyButtonTextChange;applyValueModeChange;buttonsChange;calendarOptionsChange;cancelButtonTextChange;dateOutOfRangeMessageChange;dateSerializationFormatChange;deferRenderingChange;disabledChange;disabledDatesChange;displayFormatChange;dropDownButtonTemplateChange;dropDownOptionsChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;inputAttrChange;intervalChange;invalidDateMessageChange;isDirtyChange;isValidChange;labelChange;labelModeChange;maxChange;maxLengthChange;minChange;nameChange;openedChange;openOnFieldClickChange;pickerTypeChange;placeholderChange;readOnlyChange;rtlEnabledChange;showAnalogClockChange;showClearButtonChange;showDropDownButtonChange;spellcheckChange;stylingModeChange;tabIndexChange;textChange;todayButtonTextChange;typeChange;useMaskBehaviorChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;valueChangeEventChange;visibleChange;widthChange;onBlur;change(b){}touched=b=>{};get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(b){this.setChildren("buttons",b)}constructor(b,B,j,F,X,U,Z,A){super(b,B,j,F,Z,A),this._watcherHelper=F,this._idh=X,this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"adaptivityEnabledChange"},{emit:"applyButtonTextChange"},{emit:"applyValueModeChange"},{emit:"buttonsChange"},{emit:"calendarOptionsChange"},{emit:"cancelButtonTextChange"},{emit:"dateOutOfRangeMessageChange"},{emit:"dateSerializationFormatChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"disabledDatesChange"},{emit:"displayFormatChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"intervalChange"},{emit:"invalidDateMessageChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxChange"},{emit:"maxLengthChange"},{emit:"minChange"},{emit:"nameChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"pickerTypeChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showAnalogClockChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"todayButtonTextChange"},{emit:"typeChange"},{emit:"useMaskBehaviorChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),U.setHost(this)}_createInstance(b,B){return new m.A(b,B)}writeValue(b){this.eventHelper.lockedValueChangeEvent=!0,this.value=b,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(b){this.disabled=b}registerOnChange(b){this.change=b}registerOnTouched(b){this.touched=b}_createWidget(b){super._createWidget(b),this.instance.on("focusOut",B=>{this.eventHelper.fireNgEvent("onBlur",[B])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(b){super.ngOnChanges(b),this.setupChanges("buttons",b),this.setupChanges("disabledDates",b),this.setupChanges("validationErrors",b)}setupChanges(b,B){b in this._optionsToUpdate||this._idh.setup(b,B)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("disabledDates"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(b,B){let j=this._idh.setupSingle(b,B),F=null!==this._idh.getChanges(b,B);(j||F)&&super._setOption(b,B)}static \u0275fac=function(B){return new(B||v)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(C.zF),d.rXU(C.jS),d.rXU(C.$M),d.rXU(C.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:v,selectors:[["dx-date-box"]],contentQueries:function(B,j,F){if(1&B&&d.wni(F,e.BrI,4),2&B){let X;d.mGM(X=d.lsd())&&(j.buttonsChildren=X)}},hostBindings:function(B,j){1&B&&d.bIt("valueChange",function(X){return j.change(X)})("onBlur",function(X){return j.touched(X)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",adaptivityEnabled:"adaptivityEnabled",applyButtonText:"applyButtonText",applyValueMode:"applyValueMode",buttons:"buttons",calendarOptions:"calendarOptions",cancelButtonText:"cancelButtonText",dateOutOfRangeMessage:"dateOutOfRangeMessage",dateSerializationFormat:"dateSerializationFormat",deferRendering:"deferRendering",disabled:"disabled",disabledDates:"disabledDates",displayFormat:"displayFormat",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",interval:"interval",invalidDateMessage:"invalidDateMessage",isDirty:"isDirty",isValid:"isValid",label:"label",labelMode:"labelMode",max:"max",maxLength:"maxLength",min:"min",name:"name",opened:"opened",openOnFieldClick:"openOnFieldClick",pickerType:"pickerType",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showAnalogClock:"showAnalogClock",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",todayButtonText:"todayButtonText",type:"type",useMaskBehavior:"useMaskBehavior",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",adaptivityEnabledChange:"adaptivityEnabledChange",applyButtonTextChange:"applyButtonTextChange",applyValueModeChange:"applyValueModeChange",buttonsChange:"buttonsChange",calendarOptionsChange:"calendarOptionsChange",cancelButtonTextChange:"cancelButtonTextChange",dateOutOfRangeMessageChange:"dateOutOfRangeMessageChange",dateSerializationFormatChange:"dateSerializationFormatChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",disabledDatesChange:"disabledDatesChange",displayFormatChange:"displayFormatChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",intervalChange:"intervalChange",invalidDateMessageChange:"invalidDateMessageChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxChange:"maxChange",maxLengthChange:"maxLengthChange",minChange:"minChange",nameChange:"nameChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",pickerTypeChange:"pickerTypeChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showAnalogClockChange:"showAnalogClockChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",todayButtonTextChange:"todayButtonTextChange",typeChange:"typeChange",useMaskBehaviorChange:"useMaskBehaviorChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[d.Jv_([C.zF,C.jS,k,C.fH,C.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(B,j){},encapsulation:2})}return v})(),P=(()=>{class v{static \u0275fac=function(B){return new(B||v)};static \u0275mod=d.$C({type:v});static \u0275inj=S.G2t({imports:[e.GIV,e.u4t,e.QWP,e.f8z,e.df_,e.YLo,e.YaD,e.eNx,e.Bkf,e.nwt,e.hXw,e.YGc,e.gf0,e.rvW,e.Tob,e.$Ql,e.isg,C.p_,C.xZ,e.GIV,e.u4t,e.QWP,e.f8z,e.df_,e.YLo,e.YaD,e.eNx,e.Bkf,e.nwt,e.hXw,e.YGc,e.gf0,e.rvW,e.Tob,e.$Ql,e.isg,C.xZ]})}return v})()},6548:(En,it,p)=>{"use strict";function S(d,m,T){function C(k){return"string"==typeof k?k.split("."):"number"==typeof k?[k]:k}d=C(d),m=C(m);let e=Math.max(d.length,m.length);isFinite(T)&&(e=Math.min(e,T));for(let k=0;k<e;k++){const w=parseInt(d[k]||0,10),P=parseInt(m[k]||0,10);if(w<P)return-1;if(w>P)return 1}return 0}p.d(it,{U:()=>S})},6553:(En,it,p)=>{"use strict";p.d(it,{A:()=>w,F:()=>k});var S=p(656),d=p(4303),m=p(3480),T=p(8832),C=p(3349);const e={provide:T.kq,useExisting:(0,S.Rfq)(()=>k),multi:!0};let k=(()=>{class P extends C.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(x){this._setOption("accessKey",x)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(x){this._setOption("activeStateEnabled",x)}get disabled(){return this._getOption("disabled")}set disabled(x){this._setOption("disabled",x)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(x){this._setOption("elementAttr",x)}get enableThreeStateBehavior(){return this._getOption("enableThreeStateBehavior")}set enableThreeStateBehavior(x){this._setOption("enableThreeStateBehavior",x)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(x){this._setOption("focusStateEnabled",x)}get height(){return this._getOption("height")}set height(x){this._setOption("height",x)}get hint(){return this._getOption("hint")}set hint(x){this._setOption("hint",x)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(x){this._setOption("hoverStateEnabled",x)}get iconSize(){return this._getOption("iconSize")}set iconSize(x){this._setOption("iconSize",x)}get isDirty(){return this._getOption("isDirty")}set isDirty(x){this._setOption("isDirty",x)}get isValid(){return this._getOption("isValid")}set isValid(x){this._setOption("isValid",x)}get name(){return this._getOption("name")}set name(x){this._setOption("name",x)}get readOnly(){return this._getOption("readOnly")}set readOnly(x){this._setOption("readOnly",x)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(x){this._setOption("rtlEnabled",x)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(x){this._setOption("tabIndex",x)}get text(){return this._getOption("text")}set text(x){this._setOption("text",x)}get validationError(){return this._getOption("validationError")}set validationError(x){this._setOption("validationError",x)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(x){this._setOption("validationErrors",x)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(x){this._setOption("validationMessageMode",x)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(x){this._setOption("validationMessagePosition",x)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(x){this._setOption("validationStatus",x)}get value(){return this._getOption("value")}set value(x){this._setOption("value",x)}get visible(){return this._getOption("visible")}set visible(x){this._setOption("visible",x)}get width(){return this._getOption("width")}set width(x){this._setOption("width",x)}onContentReady;onDisposing;onInitialized;onOptionChanged;onValueChanged;accessKeyChange;activeStateEnabledChange;disabledChange;elementAttrChange;enableThreeStateBehaviorChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;iconSizeChange;isDirtyChange;isValidChange;nameChange;readOnlyChange;rtlEnabledChange;tabIndexChange;textChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;visibleChange;widthChange;onBlur;change(x){}touched=x=>{};constructor(x,b,B,j,F,X,U,Z){super(x,b,B,j,U,Z),this._watcherHelper=j,this._idh=F,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"enableThreeStateBehaviorChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"iconSizeChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),X.setHost(this)}_createInstance(x,b){return new m.A(x,b)}writeValue(x){this.eventHelper.lockedValueChangeEvent=!0,this.value=x,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(x){this.disabled=x}registerOnChange(x){this.change=x}registerOnTouched(x){this.touched=x}_createWidget(x){super._createWidget(x),this.instance.on("focusOut",b=>{this.eventHelper.fireNgEvent("onBlur",[b])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(x){super.ngOnChanges(x),this.setupChanges("validationErrors",x)}setupChanges(x,b){x in this._optionsToUpdate||this._idh.setup(x,b)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(x,b){let B=this._idh.setupSingle(x,b),j=null!==this._idh.getChanges(x,b);(B||j)&&super._setOption(x,b)}static \u0275fac=function(b){return new(b||P)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(C.zF),d.rXU(C.jS),d.rXU(C.$M),d.rXU(C.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:P,selectors:[["dx-check-box"]],hostBindings:function(b,B){1&b&&d.bIt("valueChange",function(F){return B.change(F)})("onBlur",function(F){return B.touched(F)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",enableThreeStateBehavior:"enableThreeStateBehavior",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",iconSize:"iconSize",isDirty:"isDirty",isValid:"isValid",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",enableThreeStateBehaviorChange:"enableThreeStateBehaviorChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",iconSizeChange:"iconSizeChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[d.Jv_([C.zF,C.jS,e,C.fH,C.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(b,B){},encapsulation:2})}return P})(),w=(()=>{class P{static \u0275fac=function(b){return new(b||P)};static \u0275mod=d.$C({type:P});static \u0275inj=S.G2t({imports:[C.p_,C.xZ,C.xZ]})}return P})()},6569:(En,it,p)=>{"use strict";p.d(it,{A:()=>X});var S=p(5737),d=p(3538),m=p(6101),T=p(2660),C=p(2614),e=p(9916),k=p(4270),w=p(1435),P=p(6021),v=p(4859),x=p(1830);const b=d.A.abstract,B=w.A.queryByOptions,j={},F=d.A.inherit({_langParams:{},ctor:function(U){const Z=this;U=U||{},this._eventsStrategy=new m.h(this),(0,T.__)(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],function(A,M){M in U&&Z.on(M.slice(2).toLowerCase(),U[M])}),this._key=U.key,this._errorHandler=U.errorHandler,this._useDefaultSearch=!0},_clearCache:v.lQ,_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(U){return this._keyGetter||(this._keyGetter=(0,k.Hz)(this.key())),this._keyGetter(U)},_requireKey:function(){if(!this.key())throw C.sO.Error("E4005")},load:function(U){const Z=this;return this._eventsStrategy.fireEvent("loading",[U=U||{}]),this._withLock(this._loadImpl(U)).done(function(A){Z._eventsStrategy.fireEvent("loaded",[A,U])})},_loadImpl:function(U){return(0,x.RI)(this._langParams)||((U=U||{})._langParams=(0,S.A)({},this._langParams,U._langParams)),B(this.createQuery(U),U).enumerate()},_withLock:function(U){const Z=new P.cY;return U.done(function(){const A=this,M=arguments;e.D9.promise().done(function(){Z.resolveWith(A,M)})}).fail(function(){Z.rejectWith(this,arguments)}),Z},createQuery:b,totalCount:function(U){return this._totalCountImpl(U)},_totalCountImpl:function(U){return B(this.createQuery(U),U,!0).count()},byKey:function(U,Z){return this._addFailHandlers(this._withLock(this._byKeyImpl(U,Z)))},_byKeyImpl:b,insert:function(U){const Z=this;return Z._eventsStrategy.fireEvent("modifying"),Z._eventsStrategy.fireEvent("inserting",[U]),Z._addFailHandlers(Z._insertImpl(U).done(function(A,M){Z._eventsStrategy.fireEvent("inserted",[A,M]),Z._eventsStrategy.fireEvent("modified")}))},_insertImpl:b,update:function(U,Z){const A=this;return A._eventsStrategy.fireEvent("modifying"),A._eventsStrategy.fireEvent("updating",[U,Z]),A._addFailHandlers(A._updateImpl(U,Z).done(function(){A._eventsStrategy.fireEvent("updated",[U,Z]),A._eventsStrategy.fireEvent("modified")}))},_updateImpl:b,push:function(U){const Z={changes:U,waitFor:[]};this._eventsStrategy.fireEvent("beforePushAggregation",[Z]),(0,P.z7)(...Z.waitFor).done(()=>{this._pushImpl(U),this._eventsStrategy.fireEvent("beforePush",[{changes:U}]),this._eventsStrategy.fireEvent("push",[U])})},_pushImpl:v.lQ,remove:function(U){const Z=this;return Z._eventsStrategy.fireEvent("modifying"),Z._eventsStrategy.fireEvent("removing",[U]),Z._addFailHandlers(Z._removeImpl(U).done(function(A){Z._eventsStrategy.fireEvent("removed",[A]),Z._eventsStrategy.fireEvent("modified")}))},_removeImpl:b,_addFailHandlers:function(U){return U.fail(this._errorHandler).fail(C.H4)},on(U,Z){return this._eventsStrategy.on(U,Z),this},off(U,Z){return this._eventsStrategy.off(U,Z),this}});F.create=function(U,Z){if(!(U in j))throw C.sO.Error("E4020",U);return new j[U](Z)},F.registerClass=function(U,Z){return Z&&(j[Z]=U),U},F.inherit=function(U){return function(Z,A){const M=U.apply(this,[Z]);return F.registerClass(M,A),M}}(F.inherit);const X=F},6610:(En,it,p)=>{"use strict";p.d(it,{AJ:()=>T,UE:()=>e,Vy:()=>k,Xr:()=>P});var S=p(656);p(2978);const T="browser",C="server";function e(Sn){return Sn===T}function k(Sn){return Sn===C}let P=(()=>{class Sn{static \u0275prov=(0,S.jDH)({token:Sn,providedIn:"root",factory:()=>new v((0,S.WQX)(S.qQL),window)})}return Sn})();class v{document;window;offset=()=>[0,0];constructor(ri,It){this.document=ri,this.window=It}setOffset(ri){this.offset=Array.isArray(ri)?()=>ri:ri}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(ri,It){this.window.scrollTo({...It,left:ri[0],top:ri[1]})}scrollToAnchor(ri,It){const Pt=function x(Sn,ri){const It=Sn.getElementById(ri)||Sn.getElementsByName(ri)[0];if(It)return It;if("function"==typeof Sn.createTreeWalker&&Sn.body&&"function"==typeof Sn.body.attachShadow){const Pt=Sn.createTreeWalker(Sn.body,NodeFilter.SHOW_ELEMENT);let dn=Pt.currentNode;for(;dn;){const jt=dn.shadowRoot;if(jt){const Ot=jt.getElementById(ri)||jt.querySelector(`[name="${ri}"]`);if(Ot)return Ot}dn=Pt.nextNode()}}return null}(this.document,ri);Pt&&(this.scrollToElement(Pt,It),Pt.focus())}setHistoryScrollRestoration(ri){try{this.window.history.scrollRestoration=ri}catch{console.warn((0,S.OsK)(2400,!1))}}scrollToElement(ri,It){const Pt=ri.getBoundingClientRect(),dn=Pt.left+this.window.pageXOffset,jt=Pt.top+this.window.pageYOffset,Ot=this.offset();this.window.scrollTo({...It,left:dn-Ot[0],top:jt-Ot[1]})}}},6620:(En,it,p)=>{"use strict";p.d(it,{A:()=>Q});var S=p(5397),d=p(2925),m=p(5704),T=p(8684),C=p(4859),e=p(1832),k=p(3090),w=p(6110),P=p(4072),v=p(9293),x=p(3777),b=p(1144),B=p(7080);const j="dx-invalid-message-auto",Z="dx-validation-target",J=["outlined","filled","underlined"],R={validationMessageMode:"mode",validationMessagePosition:"positionSide",validationMessageOffset:"offset",validationBoundary:"boundary"},L=B.A.inherit({ctor(){this.showValidationMessageTimeout=null,this.validationRequest=(0,T.A)(),this.callBase.apply(this,arguments)},_createElement(z){this.callBase(z);const K=this.$element();K&&(0,S.p)(K[0],Z,this)},_initOptions(z){this.callBase.apply(this,arguments),this.option(x.A.initValidationOptions(z))},_init(){this._initialValue=this.option("value"),this.callBase(),this._options.cache("validationTooltipOptions",this.option("validationTooltipOptions")),this.$element().addClass("dx-show-invalid-badge")},_getDefaultOptions(){return(0,k.X)(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationErrors:null,validationStatus:"valid",validationMessageMode:"auto",validationMessagePosition:"bottom",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{},_showValidationMessage:!0,isDirty:!1})},_attachKeyboardEvents(){this.option("readOnly")||this.callBase()},_setOptionsByReference(){this.callBase(),(0,k.X)(this._optionsByReference,{validationError:!0})},_createValueChangeAction(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction(){this._valueChangeActionSuppressed=!1},_initMarkup(){var z;this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState(),null===(z=this.option("_onMarkupRendered"))||void 0===z||z()},_raiseValueChangeAction(z,K){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(z,K))},_valueChangeArgs(z,K){return{value:z,previousValue:K,event:this._valueChangeEventInstance}},_saveValueChangeEvent(z){this._valueChangeEventInstance=z},_focusInHandler(z){const K="auto"===this.option("validationMessageMode");if(this._canValueBeChangedByClick()&&K){var ee;const re=null===(ee=this._validationMessage)||void 0===ee?void 0:ee.$wrapper();re?.removeClass(j),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(()=>re?.addClass(j),150)}return this.callBase(z)},_canValueBeChangedByClick:()=>!1,_getStylingModePrefix:()=>"dx-editor-",_renderStylingMode(){const z=this.option("stylingMode"),K=this._getStylingModePrefix(),ee=J.map(be=>K+be);ee.forEach(be=>this.$element().removeClass(be));let re=K+z;if(!ee.includes(re)){const be=this._getDefaultOptions().stylingMode,ce=this._convertRulesToOptions(this._defaultOptionsRules()).stylingMode;re=K+(ce||be)}this.$element().addClass(re)},_getValidationErrors(){let z=this.option("validationErrors");return!z&&this.option("validationError")&&(z=[this.option("validationError")]),z},_disposeValidationMessage(){this._$validationMessage&&(this._$validationMessage.remove(),this.setAria("describedby",null),this._$validationMessage=void 0,this._validationMessage=void 0)},_toggleValidationClasses(z){this.$element().toggleClass("dx-invalid",z),this.setAria("invalid",z||void 0)},_renderValidationState(){const z=this.option("isValid")&&"invalid"!==this.option("validationStatus"),K=this._getValidationErrors(),ee=this.$element();if(this._toggleValidationClasses(!z),(0,w.Vd)()&&!1!==this.option("_showValidationMessage")&&(this._disposeValidationMessage(),!z&&K)){const{validationMessageMode:re,validationMessageOffset:be,validationBoundary:ce,rtlEnabled:Re}=this.option();this._$validationMessage=(0,m.A)("<div>").appendTo(ee);const Se=`dx-${new d.A}`;this.setAria("describedby",Se),this._validationMessage=new b.A(this._$validationMessage,(0,k.X)({validationErrors:K,rtlEnabled:Re,target:this._getValidationMessageTarget(),visualContainer:ee,mode:re,positionSide:this._getValidationMessagePosition(),offset:be,boundary:ce,contentId:Se},this._options.cache("validationTooltipOptions"))),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}},_getValidationMessagePosition(){return this.option("validationMessagePosition")},_getValidationMessageTarget(){return this.$element()},_toggleReadOnlyState(){const z=this.option("readOnly");this._toggleBackspaceHandler(z),this.$element().toggleClass("dx-state-readonly",!!z),this._setAriaReadonly(z)},_setAriaReadonly(z){this.setAria("readonly",z||void 0)},_toggleBackspaceHandler(z){const K=this._keyboardEventBindingTarget(),ee=(0,v.b4)("keydown","editorReadOnly");P.A.off(K,ee),z&&P.A.on(K,ee,re=>{"backspace"===(0,v.YD)(re)&&re.preventDefault()})},_dispose(){const z=this.$element()[0];(0,S.p)(z,Z,null),clearTimeout(this.showValidationMessageTimeout),this._disposeValidationMessage(),this.callBase()},_setSubmitElementName(z){const K=this._getSubmitElement();K&&(z.length>0?K.attr("name",z):K.removeAttr("name"))},_getSubmitElement:()=>null,_setValidationMessageOption(z){var K;let{name:ee,value:re}=z;null===(K=this._validationMessage)||void 0===K||K.option(R[ee]?R[ee]:ee,re)},_hasActiveElement:C.lQ,_optionChanged(z){var K;switch(z.name){case"onValueChanged":this._createValueChangeAction();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":z.value!=z.previousValue&&(this.option("isDirty",this._initialValue!==z.value),this.validationRequest.fire({value:z.value,editor:this})),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(z.value,z.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(z),null===(K=this._validationMessage)||void 0===K||K.updateMaxWidth();break;case"name":this._setSubmitElementName(z.value);break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(x.A.synchronizeValidationOptions(z,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":case"validationMessagePosition":case"validationMessageOffset":this._setValidationMessageOption(z);break;case"rtlEnabled":this._setValidationMessageOption(z),this.callBase(z);break;case"validationTooltipOptions":this._innerWidgetOptionChanged(this._validationMessage,z);break;case"_showValidationMessage":case"isDirty":break;default:this.callBase(z)}},_resetToInitialValue(){this.option("value",this._initialValue)},blur(){this._hasActiveElement()&&(0,e.GX)()},clear(){const z=this._getDefaultOptions();this.option("value",z.value)},reset(){arguments.length&&(this._initialValue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0),this._resetToInitialValue(),this.option("isDirty",!1),this.option("isValid",!0)}});L.isEditor=z=>z instanceof L;const Q=L},6628:(En,it,p)=>{"use strict";function S(d){return Object.keys(d).filter(m=>d[m]).join(" ")}p.d(it,{g:()=>S})},6667:(En,it,p)=>{"use strict";p.d(it,{B:()=>P});var S=p(656),d=p(3746),m=p(4303),T=p(4882),C=p(5634),e=p(242),k=p(5626),w=p(6078);let P=(()=>{var v;class x{constructor(B,j,F,X,U,Z,A,M){this.el=B,this.router=j,this.document=F,this.scopeService=X,this.cordovaService=U,this.deviceInfoService=Z,this.hybridRoutingService=A,this.clickService=M,this.isApp=!1,this.scope=this.scopeService.getScope(),this.isApp=this.deviceInfoService.getUserAgentInfo().isApp,this.cordovaService.isCordovaAvailable()&&(this.cordova=this.cordovaService.cordova)}ngOnInit(){}onClick(B){const j=this.el.nativeElement;if(this.isApp&&(console.info("Anchor directiv"),"_blank"===j.getAttribute("target"))){B.preventDefault(),B.stopPropagation();const U=j.getAttribute("href");if(!U)return;let Z=!1;if(U.match(new RegExp("https?:\\/\\/(.*\\/)?"+location.hostname+".*")))Z=!0;else try{new URL(U),Z=!1}catch{U.match("^(?:https?:)?\\/\\/.*")||(Z=!0)}if(Z)if(console.info("Internal link: ",U),U.startsWith("/click/"))setTimeout(()=>{this.router.navigateByUrl(U)});else if(-1!==U.indexOf("/document/")||-1!==U.indexOf("/pdf/")){const A=/[^/]*$/.exec(U)?.[0];A&&this.clickService.downloadFile(A)}else if(-1!==U.indexOf("/file/")){const A=/[^/]*$/.exec(U)?.[0];A&&this.clickService.downloadFile(A)}else console.info("Internal and no file"),this.scope.currentChapter.path.length>1?U.startsWith(this.scope.currentScope.network.path+this.scope.currentChapter.path)?setTimeout(()=>{const A=U.replace(this.scope.currentScope.network.path,"");window.history.pushState({},"",A),window.dispatchEvent(new PopStateEvent("popstate",{state:{}}))}):window.location.href=U:(this.scope.chapters.filter(A=>2===A.managementState&&A.path!=this.scope.currentChapter.path).forEach(A=>{U.startsWith(this.scope.currentScope.network.path+A.path)&&(window.location.href=U)}),setTimeout(()=>{const A=U.replace("https://"+location.hostname,"");window.history.pushState({},"",A),window.dispatchEvent(new PopStateEvent("popstate",{state:{}}))}));else if(console.info("External link"),this.cordova){const A=this.scope.currentScope.network.settings.configurations.inAppBrowserOnly;let M="location=no,toolbarposition=top,toolbartranslucent=no";"android"===this.cordova.platformId&&(M="location=yes,hideurlbar=yes,zoom=no,closebuttoncaption="+this.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"));var X="_blank";(!A||U.match("mailto:.*")||U.match("tel:.*"))&&(X="_system"),this.cordova.InAppBrowser.open(U,X,M)}else console.log("external link: error while calling in app browser"),window.open(U,"_blank")}}static#e=v=()=>(this.\u0275fac=function(j){return new(j||x)(m.rXU(m.aKT),m.rXU(T.Ix),m.rXU(S.qQL),m.rXU(d.A),m.rXU(C.q),m.rXU(e.E),m.rXU(k.o),m.rXU(w._))},this.\u0275dir=m.FsC({type:x,selectors:[["a"]],hostBindings:function(j,F){1&j&&m.bIt("click",function(U){return F.onClick(U)})},standalone:!1}))}return v(),x})()},6715:(En,it,p)=>{"use strict";p.d(it,{$:()=>k});var S=p(943),d=p(8503),m=p(8486),T=p(2290),C=p(7101),e=p(9656);function k(w,P){const v=arguments.length>=2;return x=>x.pipe(w?(0,d.p)((b,B)=>w(b,B,x)):e.D,(0,m.s)(1),v?(0,T.U)(P):(0,C.v)(()=>new S.G))}},6716:(En,it,p)=>{var S;!function(d,m,T,C){"use strict";var X,e=["","webkit","Moz","MS","ms","o"],k=m.createElement("div"),P=Math.round,v=Math.abs,x=Date.now;function b(xn,Bn,Gn){return setTimeout(M(xn,Gn),Bn)}function B(xn,Bn,Gn){return!!Array.isArray(xn)&&(j(xn,Gn[Bn],Gn),!0)}function j(xn,Bn,Gn){var Ri;if(xn)if(xn.forEach)xn.forEach(Bn,Gn);else if(xn.length!==C)for(Ri=0;Ri<xn.length;)Bn.call(Gn,xn[Ri],Ri,xn),Ri++;else for(Ri in xn)xn.hasOwnProperty(Ri)&&Bn.call(Gn,xn[Ri],Ri,xn)}function F(xn,Bn,Gn){var Ri="DEPRECATED METHOD: "+Bn+"\n"+Gn+" AT \n";return function(){var Xi=new Error("get-stack-trace"),Oo=Xi&&Xi.stack?Xi.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Fo=d.console&&(d.console.warn||d.console.log);return Fo&&Fo.call(d.console,Ri,Oo),xn.apply(this,arguments)}}X="function"!=typeof Object.assign?function(Bn){if(Bn===C||null===Bn)throw new TypeError("Cannot convert undefined or null to object");for(var Gn=Object(Bn),Ri=1;Ri<arguments.length;Ri++){var Xi=arguments[Ri];if(Xi!==C&&null!==Xi)for(var Oo in Xi)Xi.hasOwnProperty(Oo)&&(Gn[Oo]=Xi[Oo])}return Gn}:Object.assign;var U=F(function(Bn,Gn,Ri){for(var Xi=Object.keys(Gn),Oo=0;Oo<Xi.length;)(!Ri||Ri&&Bn[Xi[Oo]]===C)&&(Bn[Xi[Oo]]=Gn[Xi[Oo]]),Oo++;return Bn},"extend","Use `assign`."),Z=F(function(Bn,Gn){return U(Bn,Gn,!0)},"merge","Use `assign`.");function A(xn,Bn,Gn){var Xi,Ri=Bn.prototype;(Xi=xn.prototype=Object.create(Ri)).constructor=xn,Xi._super=Ri,Gn&&X(Xi,Gn)}function M(xn,Bn){return function(){return xn.apply(Bn,arguments)}}function H(xn,Bn){return"function"==typeof xn?xn.apply(Bn&&Bn[0]||C,Bn):xn}function J(xn,Bn){return xn===C?Bn:xn}function R(xn,Bn,Gn){j(z(Bn),function(Ri){xn.addEventListener(Ri,Gn,!1)})}function L(xn,Bn,Gn){j(z(Bn),function(Ri){xn.removeEventListener(Ri,Gn,!1)})}function G(xn,Bn){for(;xn;){if(xn==Bn)return!0;xn=xn.parentNode}return!1}function Q(xn,Bn){return xn.indexOf(Bn)>-1}function z(xn){return xn.trim().split(/\s+/g)}function K(xn,Bn,Gn){if(xn.indexOf&&!Gn)return xn.indexOf(Bn);for(var Ri=0;Ri<xn.length;){if(Gn&&xn[Ri][Gn]==Bn||!Gn&&xn[Ri]===Bn)return Ri;Ri++}return-1}function ee(xn){return Array.prototype.slice.call(xn,0)}function re(xn,Bn,Gn){for(var Ri=[],Xi=[],Oo=0;Oo<xn.length;){var Fo=Bn?xn[Oo][Bn]:xn[Oo];K(Xi,Fo)<0&&Ri.push(xn[Oo]),Xi[Oo]=Fo,Oo++}return Gn&&(Ri=Bn?Ri.sort(function(fs,zt){return fs[Bn]>zt[Bn]}):Ri.sort()),Ri}function be(xn,Bn){for(var Gn,Ri,Xi=Bn[0].toUpperCase()+Bn.slice(1),Oo=0;Oo<e.length;){if((Ri=(Gn=e[Oo])?Gn+Xi:Bn)in xn)return Ri;Oo++}return C}var ce=1;function Se(xn){var Bn=xn.ownerDocument||xn;return Bn.defaultView||Bn.parentWindow||d}var Pe="ontouchstart"in d,Ie=be(d,"PointerEvent")!==C,W=Pe&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ie="touch",Ce="mouse",fe=["x","y"],We=["clientX","clientY"];function Ue(xn,Bn){var Gn=this;this.manager=xn,this.callback=Bn,this.element=xn.element,this.target=xn.options.inputTarget,this.domHandler=function(Ri){H(xn.options.enable,[xn])&&Gn.handler(Ri)},this.init()}function tt(xn,Bn,Gn){var Ri=Gn.pointers.length,Xi=Gn.changedPointers.length,Oo=1&Bn&&Ri-Xi===0,Fo=12&Bn&&Ri-Xi===0;Gn.isFirst=!!Oo,Gn.isFinal=!!Fo,Oo&&(xn.session={}),Gn.eventType=Bn,function at(xn,Bn){var Gn=xn.session,Ri=Bn.pointers,Xi=Ri.length;Gn.firstInput||(Gn.firstInput=Nt(Bn)),Xi>1&&!Gn.firstMultiple?Gn.firstMultiple=Nt(Bn):1===Xi&&(Gn.firstMultiple=!1);var Oo=Gn.firstInput,Fo=Gn.firstMultiple,Vs=Fo?Fo.center:Oo.center,fs=Bn.center=et(Ri);Bn.timeStamp=x(),Bn.deltaTime=Bn.timeStamp-Oo.timeStamp,Bn.angle=je(Vs,fs),Bn.distance=Te(Vs,fs),function Vt(xn,Bn){var Gn=Bn.center,Ri=xn.offsetDelta||{},Xi=xn.prevDelta||{},Oo=xn.prevInput||{};(1===Bn.eventType||4===Oo.eventType)&&(Xi=xn.prevDelta={x:Oo.deltaX||0,y:Oo.deltaY||0},Ri=xn.offsetDelta={x:Gn.x,y:Gn.y}),Bn.deltaX=Xi.x+(Gn.x-Ri.x),Bn.deltaY=Xi.y+(Gn.y-Ri.y)}(Gn,Bn),Bn.offsetDirection=me(Bn.deltaX,Bn.deltaY);var zt=ue(Bn.deltaTime,Bn.deltaX,Bn.deltaY);Bn.overallVelocityX=zt.x,Bn.overallVelocityY=zt.y,Bn.overallVelocity=v(zt.x)>v(zt.y)?zt.x:zt.y,Bn.scale=Fo?function lt(xn,Bn){return Te(Bn[0],Bn[1],We)/Te(xn[0],xn[1],We)}(Fo.pointers,Ri):1,Bn.rotation=Fo?function Ne(xn,Bn){return je(Bn[1],Bn[0],We)+je(xn[1],xn[0],We)}(Fo.pointers,Ri):0,Bn.maxPointers=Gn.prevInput?Bn.pointers.length>Gn.prevInput.maxPointers?Bn.pointers.length:Gn.prevInput.maxPointers:Bn.pointers.length,function qe(xn,Bn){var Xi,Oo,Fo,Vs,Gn=xn.lastInterval||Bn,Ri=Bn.timeStamp-Gn.timeStamp;if(8!=Bn.eventType&&(Ri>25||Gn.velocity===C)){var fs=Bn.deltaX-Gn.deltaX,zt=Bn.deltaY-Gn.deltaY,zn=ue(Ri,fs,zt);Oo=zn.x,Fo=zn.y,Xi=v(zn.x)>v(zn.y)?zn.x:zn.y,Vs=me(fs,zt),xn.lastInterval=Bn}else Xi=Gn.velocity,Oo=Gn.velocityX,Fo=Gn.velocityY,Vs=Gn.direction;Bn.velocity=Xi,Bn.velocityX=Oo,Bn.velocityY=Fo,Bn.direction=Vs}(Gn,Bn);var zn=xn.element;G(Bn.srcEvent.target,zn)&&(zn=Bn.srcEvent.target),Bn.target=zn}(xn,Gn),xn.emit("hammer.input",Gn),xn.recognize(Gn),xn.session.prevInput=Gn}function Nt(xn){for(var Bn=[],Gn=0;Gn<xn.pointers.length;)Bn[Gn]={clientX:P(xn.pointers[Gn].clientX),clientY:P(xn.pointers[Gn].clientY)},Gn++;return{timeStamp:x(),pointers:Bn,center:et(Bn),deltaX:xn.deltaX,deltaY:xn.deltaY}}function et(xn){var Bn=xn.length;if(1===Bn)return{x:P(xn[0].clientX),y:P(xn[0].clientY)};for(var Gn=0,Ri=0,Xi=0;Xi<Bn;)Gn+=xn[Xi].clientX,Ri+=xn[Xi].clientY,Xi++;return{x:P(Gn/Bn),y:P(Ri/Bn)}}function ue(xn,Bn,Gn){return{x:Bn/xn||0,y:Gn/xn||0}}function me(xn,Bn){return xn===Bn?1:v(xn)>=v(Bn)?xn<0?2:4:Bn<0?8:16}function Te(xn,Bn,Gn){Gn||(Gn=fe);var Ri=Bn[Gn[0]]-xn[Gn[0]],Xi=Bn[Gn[1]]-xn[Gn[1]];return Math.sqrt(Ri*Ri+Xi*Xi)}function je(xn,Bn,Gn){return Gn||(Gn=fe),180*Math.atan2(Bn[Gn[1]]-xn[Gn[1]],Bn[Gn[0]]-xn[Gn[0]])/Math.PI}Ue.prototype={handler:function(){},init:function(){this.evEl&&R(this.element,this.evEl,this.domHandler),this.evTarget&&R(this.target,this.evTarget,this.domHandler),this.evWin&&R(Se(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&L(this.element,this.evEl,this.domHandler),this.evTarget&&L(this.target,this.evTarget,this.domHandler),this.evWin&&L(Se(this.element),this.evWin,this.domHandler)}};var Qe={mousedown:1,mousemove:2,mouseup:4};function Gt(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,Ue.apply(this,arguments)}A(Gt,Ue,{handler:function(Bn){var Gn=Qe[Bn.type];1&Gn&&0===Bn.button&&(this.pressed=!0),2&Gn&&1!==Bn.which&&(Gn=4),this.pressed&&(4&Gn&&(this.pressed=!1),this.callback(this.manager,Gn,{pointers:[Bn],changedPointers:[Bn],pointerType:Ce,srcEvent:Bn}))}});var ft={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},nn={2:ie,3:"pen",4:Ce,5:"kinect"},rn="pointerdown",Mn="pointermove pointerup pointercancel";function On(){this.evEl=rn,this.evWin=Mn,Ue.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}d.MSPointerEvent&&!d.PointerEvent&&(rn="MSPointerDown",Mn="MSPointerMove MSPointerUp MSPointerCancel"),A(On,Ue,{handler:function(Bn){var Gn=this.store,Ri=!1,Xi=Bn.type.toLowerCase().replace("ms",""),Oo=ft[Xi],Fo=nn[Bn.pointerType]||Bn.pointerType,Vs=Fo==ie,fs=K(Gn,Bn.pointerId,"pointerId");1&Oo&&(0===Bn.button||Vs)?fs<0&&(Gn.push(Bn),fs=Gn.length-1):12&Oo&&(Ri=!0),!(fs<0)&&(Gn[fs]=Bn,this.callback(this.manager,Oo,{pointers:Gn,changedPointers:[Bn],pointerType:Fo,srcEvent:Bn}),Ri&&Gn.splice(fs,1))}});var ji={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function Co(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Ue.apply(this,arguments)}function ti(xn,Bn){var Gn=ee(xn.touches),Ri=ee(xn.changedTouches);return 12&Bn&&(Gn=re(Gn.concat(Ri),"identifier",!0)),[Gn,Ri]}A(Co,Ue,{handler:function(Bn){var Gn=ji[Bn.type];if(1===Gn&&(this.started=!0),this.started){var Ri=ti.call(this,Bn,Gn);12&Gn&&Ri[0].length-Ri[1].length===0&&(this.started=!1),this.callback(this.manager,Gn,{pointers:Ri[0],changedPointers:Ri[1],pointerType:ie,srcEvent:Bn})}}});var Qn={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function Rt(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},Ue.apply(this,arguments)}function Jt(xn,Bn){var Gn=ee(xn.touches),Ri=this.targetIds;if(3&Bn&&1===Gn.length)return Ri[Gn[0].identifier]=!0,[Gn,Gn];var Xi,Oo,Fo=ee(xn.changedTouches),Vs=[],fs=this.target;if(Oo=Gn.filter(function(zt){return G(zt.target,fs)}),1===Bn)for(Xi=0;Xi<Oo.length;)Ri[Oo[Xi].identifier]=!0,Xi++;for(Xi=0;Xi<Fo.length;)Ri[Fo[Xi].identifier]&&Vs.push(Fo[Xi]),12&Bn&&delete Ri[Fo[Xi].identifier],Xi++;return Vs.length?[re(Oo.concat(Vs),"identifier",!0),Vs]:void 0}function Ii(){Ue.apply(this,arguments);var xn=M(this.handler,this);this.touch=new Rt(this.manager,xn),this.mouse=new Gt(this.manager,xn),this.primaryTouch=null,this.lastTouches=[]}function vo(xn,Bn){1&xn?(this.primaryTouch=Bn.changedPointers[0].identifier,pi.call(this,Bn)):12&xn&&pi.call(this,Bn)}function pi(xn){var Bn=xn.changedPointers[0];if(Bn.identifier===this.primaryTouch){var Gn={x:Bn.clientX,y:Bn.clientY};this.lastTouches.push(Gn);var Ri=this.lastTouches;setTimeout(function(){var Oo=Ri.indexOf(Gn);Oo>-1&&Ri.splice(Oo,1)},2500)}}function Wo(xn){for(var Bn=xn.srcEvent.clientX,Gn=xn.srcEvent.clientY,Ri=0;Ri<this.lastTouches.length;Ri++){var Xi=this.lastTouches[Ri],Oo=Math.abs(Bn-Xi.x),Fo=Math.abs(Gn-Xi.y);if(Oo<=25&&Fo<=25)return!0}return!1}A(Rt,Ue,{handler:function(Bn){var Gn=Qn[Bn.type],Ri=Jt.call(this,Bn,Gn);Ri&&this.callback(this.manager,Gn,{pointers:Ri[0],changedPointers:Ri[1],pointerType:ie,srcEvent:Bn})}}),A(Ii,Ue,{handler:function(Bn,Gn,Ri){var Oo=Ri.pointerType==Ce;if(!(Oo&&Ri.sourceCapabilities&&Ri.sourceCapabilities.firesTouchEvents)){if(Ri.pointerType==ie)vo.call(this,Gn,Ri);else if(Oo&&Wo.call(this,Ri))return;this.callback(Bn,Gn,Ri)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var To=be(k.style,"touchAction"),hs=To!==C,Ps="compute",Hs="manipulation",ss="none",qo="pan-x",cs="pan-y",bs=function si(){if(!hs)return!1;var xn={},Bn=d.CSS&&d.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(Gn){xn[Gn]=!Bn||d.CSS.supports("touch-action",Gn)}),xn}();function Fn(xn,Bn){this.manager=xn,this.set(Bn)}function jt(xn){this.options=X({},this.defaults,xn||{}),this.id=function Re(){return ce++}(),this.manager=null,this.options.enable=J(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Ot(xn){return 16&xn?"cancel":8&xn?"end":4&xn?"move":2&xn?"start":""}function Tn(xn){return 16==xn?"down":8==xn?"up":2==xn?"left":4==xn?"right":""}function ni(xn,Bn){var Gn=Bn.manager;return Gn?Gn.get(xn):xn}function Bi(){jt.apply(this,arguments)}function Zi(){Bi.apply(this,arguments),this.pX=null,this.pY=null}function ro(){Bi.apply(this,arguments)}function mo(){jt.apply(this,arguments),this._timer=null,this._input=null}function ho(){Bi.apply(this,arguments)}function St(){Bi.apply(this,arguments)}function Qt(){jt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function jn(xn,Bn){return(Bn=Bn||{}).recognizers=J(Bn.recognizers,jn.defaults.preset),new zi(xn,Bn)}function zi(xn,Bn){this.options=X({},jn.defaults,Bn||{}),this.options.inputTarget=this.options.inputTarget||xn,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=xn,this.input=function Ve(xn){return new(xn.options.inputClass||(Ie?On:W?Rt:Pe?Ii:Gt))(xn,tt)}(this),this.touchAction=new Fn(this,this.options.touchAction),_o(this,!0),j(this.options.recognizers,function(Gn){var Ri=this.add(new Gn[0](Gn[1]));Gn[2]&&Ri.recognizeWith(Gn[2]),Gn[3]&&Ri.requireFailure(Gn[3])},this)}function _o(xn,Bn){var Ri,Gn=xn.element;Gn.style&&(j(xn.options.cssProps,function(Xi,Oo){Ri=be(Gn.style,Oo),Bn?(xn.oldCssProps[Ri]=Gn.style[Ri],Gn.style[Ri]=Xi):Gn.style[Ri]=xn.oldCssProps[Ri]||""}),Bn||(xn.oldCssProps={}))}Fn.prototype={set:function(xn){xn==Ps&&(xn=this.compute()),hs&&this.manager.element.style&&bs[xn]&&(this.manager.element.style[To]=xn),this.actions=xn.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var xn=[];return j(this.manager.recognizers,function(Bn){H(Bn.options.enable,[Bn])&&(xn=xn.concat(Bn.getTouchAction()))}),function li(xn){if(Q(xn,ss))return ss;var Bn=Q(xn,qo),Gn=Q(xn,cs);return Bn&&Gn?ss:Bn||Gn?Bn?qo:cs:Q(xn,Hs)?Hs:"auto"}(xn.join(" "))},preventDefaults:function(xn){var Bn=xn.srcEvent,Gn=xn.offsetDirection;if(!this.manager.session.prevented){var Ri=this.actions,Xi=Q(Ri,ss)&&!bs[ss],Oo=Q(Ri,cs)&&!bs[cs],Fo=Q(Ri,qo)&&!bs[qo];if(Xi&&1===xn.pointers.length&&xn.distance<2&&xn.deltaTime<250)return;return Fo&&Oo||!(Xi||Oo&&6&Gn||Fo&&24&Gn)?void 0:this.preventSrc(Bn)}Bn.preventDefault()},preventSrc:function(xn){this.manager.session.prevented=!0,xn.preventDefault()}},jt.prototype={defaults:{},set:function(xn){return X(this.options,xn),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(xn){if(B(xn,"recognizeWith",this))return this;var Bn=this.simultaneous;return Bn[(xn=ni(xn,this)).id]||(Bn[xn.id]=xn,xn.recognizeWith(this)),this},dropRecognizeWith:function(xn){return B(xn,"dropRecognizeWith",this)||(xn=ni(xn,this),delete this.simultaneous[xn.id]),this},requireFailure:function(xn){if(B(xn,"requireFailure",this))return this;var Bn=this.requireFail;return-1===K(Bn,xn=ni(xn,this))&&(Bn.push(xn),xn.requireFailure(this)),this},dropRequireFailure:function(xn){if(B(xn,"dropRequireFailure",this))return this;xn=ni(xn,this);var Bn=K(this.requireFail,xn);return Bn>-1&&this.requireFail.splice(Bn,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(xn){return!!this.simultaneous[xn.id]},emit:function(xn){var Bn=this,Gn=this.state;function Ri(Xi){Bn.manager.emit(Xi,xn)}Gn<8&&Ri(Bn.options.event+Ot(Gn)),Ri(Bn.options.event),xn.additionalEvent&&Ri(xn.additionalEvent),Gn>=8&&Ri(Bn.options.event+Ot(Gn))},tryEmit:function(xn){if(this.canEmit())return this.emit(xn);this.state=32},canEmit:function(){for(var xn=0;xn<this.requireFail.length;){if(!(33&this.requireFail[xn].state))return!1;xn++}return!0},recognize:function(xn){var Bn=X({},xn);if(!H(this.options.enable,[this,Bn]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(Bn),30&this.state&&this.tryEmit(Bn)},process:function(xn){},getTouchAction:function(){},reset:function(){}},A(Bi,jt,{defaults:{pointers:1},attrTest:function(xn){var Bn=this.options.pointers;return 0===Bn||xn.pointers.length===Bn},process:function(xn){var Bn=this.state,Gn=xn.eventType,Ri=6&Bn,Xi=this.attrTest(xn);return Ri&&(8&Gn||!Xi)?16|Bn:Ri||Xi?4&Gn?8|Bn:2&Bn?4|Bn:2:32}}),A(Zi,Bi,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var xn=this.options.direction,Bn=[];return 6&xn&&Bn.push(cs),24&xn&&Bn.push(qo),Bn},directionTest:function(xn){var Bn=this.options,Gn=!0,Ri=xn.distance,Xi=xn.direction,Oo=xn.deltaX,Fo=xn.deltaY;return Xi&Bn.direction||(6&Bn.direction?(Xi=0===Oo?1:Oo<0?2:4,Gn=Oo!=this.pX,Ri=Math.abs(xn.deltaX)):(Xi=0===Fo?1:Fo<0?8:16,Gn=Fo!=this.pY,Ri=Math.abs(xn.deltaY))),xn.direction=Xi,Gn&&Ri>Bn.threshold&&Xi&Bn.direction},attrTest:function(xn){return Bi.prototype.attrTest.call(this,xn)&&(2&this.state||!(2&this.state)&&this.directionTest(xn))},emit:function(xn){this.pX=xn.deltaX,this.pY=xn.deltaY;var Bn=Tn(xn.direction);Bn&&(xn.additionalEvent=this.options.event+Bn),this._super.emit.call(this,xn)}}),A(ro,Bi,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ss]},attrTest:function(xn){return this._super.attrTest.call(this,xn)&&(Math.abs(xn.scale-1)>this.options.threshold||2&this.state)},emit:function(xn){1!==xn.scale&&(xn.additionalEvent=this.options.event+(xn.scale<1?"in":"out")),this._super.emit.call(this,xn)}}),A(mo,jt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(xn){var Bn=this.options,Gn=xn.pointers.length===Bn.pointers,Ri=xn.distance<Bn.threshold,Xi=xn.deltaTime>Bn.time;if(this._input=xn,!Ri||!Gn||12&xn.eventType&&!Xi)this.reset();else if(1&xn.eventType)this.reset(),this._timer=b(function(){this.state=8,this.tryEmit()},Bn.time,this);else if(4&xn.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(xn){8===this.state&&(xn&&4&xn.eventType?this.manager.emit(this.options.event+"up",xn):(this._input.timeStamp=x(),this.manager.emit(this.options.event,this._input)))}}),A(ho,Bi,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ss]},attrTest:function(xn){return this._super.attrTest.call(this,xn)&&(Math.abs(xn.rotation)>this.options.threshold||2&this.state)}}),A(St,Bi,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Zi.prototype.getTouchAction.call(this)},attrTest:function(xn){var Gn,Bn=this.options.direction;return 30&Bn?Gn=xn.overallVelocity:6&Bn?Gn=xn.overallVelocityX:24&Bn&&(Gn=xn.overallVelocityY),this._super.attrTest.call(this,xn)&&Bn&xn.offsetDirection&&xn.distance>this.options.threshold&&xn.maxPointers==this.options.pointers&&v(Gn)>this.options.velocity&&4&xn.eventType},emit:function(xn){var Bn=Tn(xn.offsetDirection);Bn&&this.manager.emit(this.options.event+Bn,xn),this.manager.emit(this.options.event,xn)}}),A(Qt,jt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Hs]},process:function(xn){var Bn=this.options,Gn=xn.pointers.length===Bn.pointers,Ri=xn.distance<Bn.threshold,Xi=xn.deltaTime<Bn.time;if(this.reset(),1&xn.eventType&&0===this.count)return this.failTimeout();if(Ri&&Xi&&Gn){if(4!=xn.eventType)return this.failTimeout();var Oo=!this.pTime||xn.timeStamp-this.pTime<Bn.interval,Fo=!this.pCenter||Te(this.pCenter,xn.center)<Bn.posThreshold;if(this.pTime=xn.timeStamp,this.pCenter=xn.center,Fo&&Oo?this.count+=1:this.count=1,this._input=xn,0===this.count%Bn.taps)return this.hasRequireFailures()?(this._timer=b(function(){this.state=8,this.tryEmit()},Bn.interval,this),2):8}return 32},failTimeout:function(){return this._timer=b(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),jn.VERSION="2.0.7",jn.defaults={domEvents:!1,touchAction:Ps,enable:!0,inputTarget:null,inputClass:null,preset:[[ho,{enable:!1}],[ro,{enable:!1},["rotate"]],[St,{direction:6}],[Zi,{direction:6},["swipe"]],[Qt],[Qt,{event:"doubletap",taps:2},["tap"]],[mo]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},zi.prototype={set:function(xn){return X(this.options,xn),xn.touchAction&&this.touchAction.update(),xn.inputTarget&&(this.input.destroy(),this.input.target=xn.inputTarget,this.input.init()),this},stop:function(xn){this.session.stopped=xn?2:1},recognize:function(xn){var Bn=this.session;if(!Bn.stopped){this.touchAction.preventDefaults(xn);var Gn,Ri=this.recognizers,Xi=Bn.curRecognizer;(!Xi||Xi&&8&Xi.state)&&(Xi=Bn.curRecognizer=null);for(var Oo=0;Oo<Ri.length;)Gn=Ri[Oo],2===Bn.stopped||Xi&&Gn!=Xi&&!Gn.canRecognizeWith(Xi)?Gn.reset():Gn.recognize(xn),!Xi&&14&Gn.state&&(Xi=Bn.curRecognizer=Gn),Oo++}},get:function(xn){if(xn instanceof jt)return xn;for(var Bn=this.recognizers,Gn=0;Gn<Bn.length;Gn++)if(Bn[Gn].options.event==xn)return Bn[Gn];return null},add:function(xn){if(B(xn,"add",this))return this;var Bn=this.get(xn.options.event);return Bn&&this.remove(Bn),this.recognizers.push(xn),xn.manager=this,this.touchAction.update(),xn},remove:function(xn){if(B(xn,"remove",this))return this;if(xn=this.get(xn)){var Bn=this.recognizers,Gn=K(Bn,xn);-1!==Gn&&(Bn.splice(Gn,1),this.touchAction.update())}return this},on:function(xn,Bn){if(xn!==C&&Bn!==C){var Gn=this.handlers;return j(z(xn),function(Ri){Gn[Ri]=Gn[Ri]||[],Gn[Ri].push(Bn)}),this}},off:function(xn,Bn){if(xn!==C){var Gn=this.handlers;return j(z(xn),function(Ri){Bn?Gn[Ri]&&Gn[Ri].splice(K(Gn[Ri],Bn),1):delete Gn[Ri]}),this}},emit:function(xn,Bn){this.options.domEvents&&function $o(xn,Bn){var Gn=m.createEvent("Event");Gn.initEvent(xn,!0,!0),Gn.gesture=Bn,Bn.target.dispatchEvent(Gn)}(xn,Bn);var Gn=this.handlers[xn]&&this.handlers[xn].slice();if(Gn&&Gn.length){Bn.type=xn,Bn.preventDefault=function(){Bn.srcEvent.preventDefault()};for(var Ri=0;Ri<Gn.length;)Gn[Ri](Bn),Ri++}},destroy:function(){this.element&&_o(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},X(jn,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:zi,Input:Ue,TouchAction:Fn,TouchInput:Rt,MouseInput:Gt,PointerEventInput:On,TouchMouseInput:Ii,SingleTouchInput:Co,Recognizer:jt,AttrRecognizer:Bi,Tap:Qt,Pan:Zi,Swipe:St,Pinch:ro,Rotate:ho,Press:mo,on:R,off:L,each:j,merge:Z,extend:U,assign:X,inherit:A,bindFn:M,prefixed:be}),(typeof d<"u"?d:typeof self<"u"?self:{}).Hammer=jn,(S=function(){return jn}.call(it,p,it,En))!==C&&(En.exports=S)}(window,document)},6717:(En,it,p)=>{"use strict";p.d(it,{A:()=>w});var S=p(3538),d=p(5704),m=p(4859),T=p(4072),C=p(9061);const{abstract:e}=S.A,w=S.A.inherit({ctor(P){this.dateBox=P},widgetOption(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget(P){P=P||(0,d.A)("<div>"),this._widget=this._createWidget(P),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget(P){const v=this._getWidgetName(),x=this._getWidgetOptions();return this.dateBox._createComponent(P,v,x)},_getWidgetOptions:e,_getWidgetName:e,getDefaultOptions:()=>({mode:"text"}),getDisplayFormat:e,supportedKeys:m.lQ,getKeyboardListener:m.lQ,customizeButtons:m.lQ,getParsedText:(P,v)=>C.A.parse(P,v)||C.A.parse(P),renderInputMinMax:m.lQ,renderOpenedState(){this._updateValue()},popupConfig:e,_dimensionChanged(){var P;null===(P=this._getPopup())||void 0===P||P.repaint()},renderPopupContent(){const P=this._getPopup();this._renderWidget();const v=P.$content().parent();T.A.off(v,"mousedown"),T.A.on(v,"mousedown",this._preventFocusOnPopup.bind(this))},_preventFocusOnPopup(P){P.preventDefault()},_getWidgetContainer(){return this._getPopup().$content()},_getPopup(){return this.dateBox._popup},popupShowingHandler:m.lQ,popupHiddenHandler:m.lQ,_updateValue(){this._widget&&this._widget.option("value",this.dateBoxValue())},useCurrentDateByDefault:m.lQ,getDefaultDate:()=>new Date,textChangedHandler:m.lQ,renderValue(){this.dateBox.option("opened")&&this._updateValue()},getValue(){return this._widget.option("value")},isAdaptivityChanged:()=>!1,dispose(){const P=this._getPopup();P&&P.$content().empty()},dateBoxValue(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}})},6761:(En,it,p)=>{"use strict";p.d(it,{e:()=>qe,B:()=>Nt});var S=p(4303),d=p(656),m=p(5737),T=p(1973),C=p(3686),e=p(5973),k=p(6054),w=p(5704),P=p(5645),v=p(3090),x=p(8535),b=p(6946),B=p(2660),j=p(4072),F=p(9293),X=p(8360),U=p(6620),Z=p(9212),A=p(5257),M=p(5685),H=p(7525),J=p(676),R=p(4761);const L=et=>R.A.deserializeDate(et),G=(et,ue)=>!et&&!ue||J.A.sameDate(L(et),L(ue)),Q=(et,ue)=>{const[me,Te]=et,[je,Ne]=ue;return G(me,je)&&G(Te,Ne)};var ee=p(1363),re=p(8638),be=p(1830),ce=p(4686);const Se=class Re extends ce.A{constructor(ue){super(),this._dateSelectedCounter=0,this.dateBox=ue,this.dateRangeBox=ue.option("_dateRangeBoxInstance")}popupConfig(ue){return(0,v.X)(!0,super.popupConfig(ue),{position:{of:this.getDateRangeBox().$element()}})}popupShowingHandler(){this.getWidget()._restoreViewsMinMaxOptions(),this._dateSelectedCounter=0}_getPopup(){return super._getPopup()||this.getDateRangeBox().getStartDateBox()._popup}supportedKeys(){const ue=this.getDateRangeBox();return(0,m.A)({},super.supportedKeys(),{rightArrow:()=>{if(ue.option("opened"))return!0},leftArrow:()=>{if(ue.option("opened"))return!0},enter:me=>{if(ue.option("opened")){const Te=this.dateBox.dateOption("value");this.dateBox._valueChangeEventHandler(me);const je=this.dateBox.dateOption("value");return G(Te,je)?ue.getStartDateBox().getStrategy().getWidget()._enterKeyHandler(me):ue.getStartDateBox().getStrategy().getWidget().option("value",ue.option("value")),!1}},tab:me=>{if(!ue.option("opened"))return;if(!this._getPopup().getFocusableElements().length)return void((!me.shiftKey&&ue._isEndDateActiveElement()||me.shiftKey&&ue._isStartDateActiveElement())&&ue.close());if(!me.shiftKey&&ue._isStartDateActiveElement()||me.shiftKey&&ue._isEndDateActiveElement())return;const Te=me.shiftKey?ue.getStartDateBox()._getLastPopupElement():ue.getStartDateBox()._getFirstPopupElement();Te&&(j.A.trigger(Te,"focus"),Te.select()),me.preventDefault()}})}_getWidgetOptions(){const{disabledDates:ue,value:me,multiView:Te}=this.dateRangeBox.option(),je=(0,be.Tn)(ue)?this._injectComponent(ue):ue??void 0;return(0,v.X)(super._getWidgetOptions(),{disabledDates:je,value:me,selectionMode:"range",viewsCount:Te?2:1,_allowChangeSelectionOrder:!0,_currentSelection:this.getCurrentSelection()})}_refreshActiveDescendant(ue){this.getDateRangeBox().setAria("activedescendant",ue.actionValue)}_injectComponent(ue){return me=>ue((0,v.X)(me,{component:this.getDateRangeBox()}))}getKeyboardListener(){const ue=this.getDateRangeBox();return ue.getStartDateBox()?ue.getStartDateBox().getStrategy().getWidget():this.getWidget()}getValue(){return this.getWidget().option("value")}_updateValue(){const{value:ue}=this.getDateRangeBox().option();this.getWidget()&&(this._shouldPreventFocusChange=!0,this.getWidget().option("value",ue))}_isInstantlyMode(){return"instantly"===this.getDateRangeBox().option("applyValueMode")}_valueChangedHandler(ue){let{value:me,previousValue:Te,event:je}=ue;if(Q(me,Te)&&!this.getWidget()._valueSelected)return void(this._shouldPreventFocusChange=!1);this.getWidget()._valueSelected=!1;const Ne=this.getDateRangeBox();if(this._isInstantlyMode()){if(!Ne.option("disableOutOfRangeSelection"))if("startDate"===this._getCalendarCurrentSelection())this._dateSelectedCounter=0;else if(this._dateSelectedCounter=1,me[0]){if(L(me[0])>L(me[1]))return void Ne.updateValue([me[0],null],je)}else this._dateSelectedCounter=-1;if(Ne.updateValue(me,je),this._dateSelectedCounter+=1,2===this._dateSelectedCounter)return void Ne.close()}else if("endDate"===this._getCalendarCurrentSelection()&&me[0]&&L(me[0])>L(me[1]))return;this._shouldPreventFocusChange||this._moveFocusToNextInput(),this._shouldPreventFocusChange=!1}_moveFocusToNextInput(){const ue="startDate"===this._getCalendarCurrentSelection()?this.getDateRangeBox().getEndDateBox():this.getDateRangeBox().getStartDateBox();ue.focus(),j.A.trigger(ue.field(),"dxclick")}getCurrentSelection(){return this.getDateRangeBox().option("_currentSelection")}_getCalendarCurrentSelection(){return this.getWidget().option("_currentSelection")}_closeDropDownByEnter(){return"startDate"!==this._getCalendarCurrentSelection()}dateBoxValue(){const{dateBox:ue}=this;return arguments.length?ue.dateValue.apply(ue,arguments):ue.dateOption.apply(ue,["value"])}_cellClickHandler(){}setActiveStartDateBox(){this.dateBox=this.getDateRangeBox().getStartDateBox()}setActiveEndDateBox(){this.dateBox=this.getDateRangeBox().getEndDateBox()}getDateRangeBox(){return this.dateRangeBox}getWidget(){return this._widget}},Pe=re.A,W=class Ie extends Pe{_initStrategy(){this._strategy=new Se(this)}_initMarkup(){super._initMarkup(),this._renderInputClickEvent()}_renderInputClickEvent(){const ue=(0,F.b4)("dxclick",this.NAME);j.A.off(this._input(),ue),j.A.on(this._input(),ue,me=>{this._processValueChange(me)})}_applyButtonHandler(ue){let{event:me}=ue;const Te=this.getStrategy(),je=Te.getValue();Te.getDateRangeBox().updateValue(je,me),this.close(),this.option("focusStateEnabled")&&this.focus()}_openHandler(ue){this.getStrategy().getDateRangeBox().option("opened")||super._openHandler(ue)}_renderOpenedState(){const{opened:ue}=this.option();this._getDateRangeBox().option("opened",ue),this._isStartDateBox()&&(ue&&this._createPopup(),this._getDateRangeBox()._popupContentIdentifier(this._getControlsAria()),this._setPopupOption("visible",ue),this._getDateRangeBox()._setAriaAttributes())}_getDateRangeBox(){return this.getStrategy().getDateRangeBox()}_isStartDateBox(){return(0,w.A)(this.element()).hasClass("dx-start-datebox")}_renderPopup(){super._renderPopup(),this._isStartDateBox()&&this._getDateRangeBox()._bindInnerWidgetOptions(this._popup,"dropDownOptions")}_popupShownHandler(){var ue;super._popupShownHandler(),null===(ue=this._getDateRangeBox()._validationMessage)||void 0===ue||ue.option("positionSide",this._getValidationMessagePositionSide())}_popupHiddenHandler(){var ue;super._popupHiddenHandler(),null===(ue=this._getDateRangeBox()._validationMessage)||void 0===ue||ue.option("positionSide",this._getValidationMessagePositionSide())}_focusInHandler(ue){super._focusInHandler(ue),this._processValueChange(ue)}_popupTabHandler(ue){const me=(0,w.A)(ue.target);ue.shiftKey&&me.is(this._getFirstPopupElement())&&(this._getDateRangeBox().getEndDateBox().focus(),ue.preventDefault()),!ue.shiftKey&&me.is(this._getLastPopupElement())&&(this._getDateRangeBox().getStartDateBox().focus(),ue.preventDefault())}_processValueChange(ue){const{target:me}=ue,Te=this._getDateRangeBox(),[je,Ne]=Te.field();if((0,w.A)(me).is((0,w.A)(je))&&Te.option("_currentSelection","startDate"),(0,w.A)(me).is((0,w.A)(Ne))&&Te.option("_currentSelection","endDate"),!Te.getStartDateBox().getStrategy().getWidget())return;const lt=Te.getStartDateBox().getStrategy().getWidget(),{value:Qe}=lt.option(),Ct=L(Qe?.[0]),yt=L(Qe?.[1]);(0,w.A)(me).is((0,w.A)(je))&&(Ct&&(lt._skipNavigate=!0,lt.option("currentDate",Ct)),this.getStrategy().setActiveStartDateBox(),lt.option("_currentSelection","startDate"),Te.option("disableOutOfRangeSelection")&&lt._setViewsMaxOption(yt)),(0,w.A)(me).is((0,w.A)(Ne))&&(yt&&(Ct&&((et,ue)=>12*(ue.getFullYear()-et.getFullYear())-et.getMonth()+ue.getMonth())(Ct,yt)>1&&(lt.option("currentDate",lt._getDateByOffset(null,yt)),lt.option("currentDate",lt._getDateByOffset(-1,yt))),lt._skipNavigate=!0,lt.option("currentDate",yt)),Te.getStartDateBox().getStrategy().setActiveEndDateBox(),lt.option("_currentSelection","endDate"),Te.option("disableOutOfRangeSelection")&&lt._setViewsMinOption(Ct))}_invalidate(){super._invalidate(),this._refreshStrategy()}_updateInternalValidationState(ue,me){this.option({isValid:ue,validationError:ue?null:{message:me}})}_recallInternalValidation(ue){this._applyInternalValidation(ue)}_isTargetOutOfComponent(ue){const me=(0,w.A)(this._getDateRangeBox().element()),Te=0===(0,w.A)(ue).closest(me).length;return super._isTargetOutOfComponent(ue)&&Te}_updateLabelWidth(){const ue=this._getDateRangeBox()._$beforeButtonsContainer,{labelMode:me}=this.option();"outside"===me&&ue&&this._isStartDateBox()?this._label._updateLabelTransform((0,ee.RG)(ue)):super._updateLabelWidth()}_optionChanged(ue){switch(ue.name){case"isValid":{const me=this._getDateRangeBox().option("isValid");if(this._skipIsValidOptionChange||me===ue.value)return void super._optionChanged(ue);this._skipIsValidOptionChange=!0,this.option({isValid:me}),this._skipIsValidOptionChange=!1;break}default:super._optionChanged(ue)}}close(){this.getStrategy().getDateRangeBox().getStartDateBox().option("opened",!1)}getStrategy(){return this._strategy}},ye="dx-texteditor-with-floating-label",Oe=["KeyDown","KeyUp","Change","Cut","Copy","Paste","Input","EnterKey"];class fe extends U.A{_getDefaultOptions(){return(0,v.X)(super._getDefaultOptions(),{acceptCustomValue:!0,activeStateEnabled:!0,applyButtonText:X.A.format("OK"),applyValueMode:"instantly",buttons:void 0,calendarOptions:{},cancelButtonText:X.A.format("Cancel"),endDateOutOfRangeMessage:X.A.format("dxDateRangeBox-endDateOutOfRangeMessage"),dateSerializationFormat:void 0,deferRendering:!0,disableOutOfRangeSelection:!1,disabledDates:null,displayFormat:null,dropDownButtonTemplate:"dropDownButton",dropDownOptions:{},endDate:null,endDateInputAttr:{},endDateLabel:X.A.format("dxDateRangeBox-endDateLabel"),endDateName:"",endDatePlaceholder:"",endDateText:void 0,focusStateEnabled:!0,hoverStateEnabled:!0,invalidStartDateMessage:X.A.format("dxDateRangeBox-invalidStartDateMessage"),invalidEndDateMessage:X.A.format("dxDateRangeBox-invalidEndDateMessage"),isValid:!0,labelMode:"static",max:void 0,min:void 0,multiView:!0,onChange:null,onClosed:null,onCopy:null,onCut:null,onEnterKey:null,onInput:null,onKeyDown:null,onKeyUp:null,onOpened:null,onPaste:null,onValueChanged:null,openOnFieldClick:!0,opened:!1,pickerType:"calendar",readOnly:!1,showClearButton:!1,showDropDownButton:!0,spellcheck:!1,startDate:null,startDateInputAttr:{},startDateLabel:X.A.format("dxDateRangeBox-startDateLabel"),startDateName:"",startDateOutOfRangeMessage:X.A.format("dxDateRangeBox-startDateOutOfRangeMessage"),startDatePlaceholder:"",startDateText:void 0,stylingMode:(0,C.A)().editorStylingMode??"outlined",todayButtonText:X.A.format("dxCalendar-todayButtonText"),useHiddenSubmitElement:!1,useMaskBehavior:!1,validationError:null,validationErrors:null,validationMessageMode:"auto",validationMessagePosition:"auto",validationStatus:"valid",value:[null,null],valueChangeEvent:"change",_internalValidationErrors:[],_currentSelection:"startDate"})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device(){const ue=(0,Z.ss)();return(0,Z.gx)(ue)},options:{labelMode:"floating",stylingMode:(0,C.A)().editorStylingMode??"filled"}},{device(){const ue=(0,Z.ss)();return(0,Z.Ft)(ue)},options:{labelMode:"outside"}},{device(){const ue=e.A.real(),{platform:me}=ue;return"ios"===me||"android"===me},options:{multiView:!1}}])}_initOptions(ue){super._initOptions(ue);const{value:me}=this.initialOption();let{value:Te,startDate:je,endDate:Ne}=this.option();Te[0]&&Te[1]&&L(Te[0])>L(Te[1])&&(Te=[Te[1],Te[0]]),je&&Ne&&L(je)>L(Ne)&&([je,Ne]=[Ne,je]),Q(me,Te)?Te=[je,Ne]:[je,Ne]=Te,this.option({startDate:je,endDate:Ne,value:Te})}_createOpenAction(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]})}_raiseOpenAction(){this._openAction||this._createOpenAction(),this._openAction()}_createCloseAction(){this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})}_raiseCloseAction(){this._closeAction||this._createCloseAction(),this._closeAction()}_createEventAction(ue){this[`_${(0,b.PT)(ue)}Action`]=this._createActionByOption(`on${ue}`,{excludeValidators:["readOnly"]})}_raiseAction(ue,me){this[`_${(0,b.PT)(ue)}Action`]||this._createEventAction(ue),this[`_${(0,b.PT)(ue)}Action`]({event:me})}_initTemplates(){this._templateManager.addDefaultTemplates({dropDownButton:new P.l(ue=>{const me=(0,w.A)("<div>").addClass("dx-dropdowneditor-icon");(0,w.A)(ue.container).append(me)})}),super._initTemplates()}_getDefaultButtons(){return[{name:"clear",Ctor:M.A},{name:"dropDown",Ctor:A.A}]}_initMarkup(){(0,w.A)(this.element()).addClass("dx-daterangebox").addClass("dx-texteditor").addClass("dx-dropdowneditor"),this._toggleDropDownEditorActiveClass(),this._toggleEditorLabelClass(),this._toggleReadOnlyState(),this._renderStylingMode(),this._renderEndDateBox(),this._renderSeparator(),this._renderStartDateBox(),this._toggleEmptinessState(),this._renderEmptinessEvent(),this._renderButtonsContainer(),super._initMarkup(),(0,w.A)(this.element()).removeClass("dx-show-invalid-badge")}_renderEmptinessEvent(){const ue=(0,F.b4)("input blur",this.NAME);j.A.off(this._focusTarget(),ue),j.A.on(this._focusTarget(),ue,this._toggleEmptinessState.bind(this))}_toggleEmptinessState(){const ue=(0,w.A)(this.getStartDateBox().element()).hasClass("dx-texteditor-empty")&&(0,w.A)(this.getEndDateBox().element()).hasClass("dx-texteditor-empty");(0,w.A)(this.element()).toggleClass("dx-texteditor-empty",ue)}_attachKeyboardEvents(){this.option("readOnly")||super._attachKeyboardEvents()}_toggleReadOnlyState(){const{readOnly:ue}=this.option();(0,w.A)(this.element()).toggleClass("dx-state-readonly",!!ue)}_toggleDropDownEditorActiveClass(){const{opened:ue}=this.option();(0,w.A)(this.element()).toggleClass("dx-dropdowneditor-active",ue)}_toggleEditorLabelClass(){const{startDateLabel:ue,endDateLabel:me,labelMode:Te}=this.option(),je=!(!ue&&!me||"hidden"===Te);(0,w.A)(this.element()).removeClass(ye).removeClass("dx-texteditor-label-outside").removeClass("dx-texteditor-with-label"),je&&((0,w.A)(this.element()).addClass("floating"===Te?ye:"dx-texteditor-with-label"),"outside"===Te&&(0,w.A)(this.element()).addClass("dx-texteditor-label-outside"))}_renderStartDateBox(){this._$startDateBox=(0,w.A)("<div>").addClass("dx-start-datebox").prependTo(this.$element()),this._startDateBox=this._createComponent(this._$startDateBox,W,this._getStartDateBoxConfig()),this._startDateBox.NAME="_StartDateBox"}_renderEndDateBox(){this._$endDateBox=(0,w.A)("<div>").addClass("dx-end-datebox").appendTo(this.$element()),this._endDateBox=this._createComponent(this._$endDateBox,W,this._getEndDateBoxConfig()),this._endDateBox.NAME="_EndDateBox"}_renderSeparator(){const ue=(0,x.N)("to");this._$separator=(0,w.A)("<div>").addClass("dx-daterangebox-separator").prependTo(this.$element()),this._renderPreventBlurOnSeparatorClick(),ue?.appendTo(this._$separator)}_renderPreventBlurOnSeparatorClick(){const ue=(0,F.b4)("mousedown",this.NAME);j.A.off(this._$separator,ue),j.A.on(this._$separator,ue,me=>{this._hasActiveElement()||this.focus(),me.preventDefault()})}_renderButtonsContainer(){this._buttonCollection=new H.A(this,this._getDefaultButtons()),this._$beforeButtonsContainer=void 0,this._$afterButtonsContainer=void 0;const{buttons:ue}=this.option();this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(ue,this.$element()),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(ue,this.$element())}_updateButtons(ue){this._buttonCollection.updateButtons(ue)}_openHandler(){this._toggleOpenState()}_shouldCallOpenHandler(){return!0}_toggleOpenState(){const{opened:ue}=this.option();ue||this.getStartDateBox()._focusInput(),this.option("readOnly")||this.option("opened",!this.option("opened"))}_clearValueHandler(ue){ue.stopPropagation(),this._saveValueChangeEvent(ue),this.clear(),!this._isStartDateActiveElement()&&this.focus(),j.A.trigger((0,w.A)(this.startDateField()),"input")}_isClearButtonVisible(){return this.option("showClearButton")&&!this.option("readOnly")}_focusInHandler(ue){this._shouldSkipFocusEvent(ue)||super._focusInHandler(ue)}_focusOutHandler(ue){this._shouldSkipFocusEvent(ue)||super._focusOutHandler(ue)}_shouldSkipFocusEvent(ue){const{target:me,relatedTarget:Te}=ue;return(0,w.A)(me).is((0,w.A)(this.startDateField()))&&(0,w.A)(Te).is((0,w.A)(this.endDateField()))||(0,w.A)(me).is((0,w.A)(this.endDateField()))&&(0,w.A)(Te).is((0,w.A)(this.startDateField()))}_getPickerType(){const{pickerType:ue}=this.option();return["calendar","native"].includes(ue)?ue:"calendar"}_getRestErrors(ue,me){return ue.filter(Te=>!me.some(je=>Te.message===je.message))}_syncValidationErrors(ue,me,Te){me||(me=[]),Te||(Te=[]);const je=this.option(ue)||[],Ne=this._getRestErrors(je,Te);this.option(ue,[...Ne,...me])}_getDateBoxConfig(){const ue=this.option(),me={acceptCustomValue:ue.acceptCustomValue,activeStateEnabled:ue.activeStateEnabled,applyValueMode:ue.applyValueMode,dateSerializationFormat:ue.dateSerializationFormat,deferRendering:ue.deferRendering,disabled:ue.disabled,displayFormat:ue.displayFormat,focusStateEnabled:ue.focusStateEnabled,isValid:ue.isValid,tabIndex:ue.tabIndex,height:ue.height,hoverStateEnabled:ue.hoverStateEnabled,labelMode:ue.labelMode,max:ue.max,min:ue.min,openOnFieldClick:ue.openOnFieldClick,pickerType:this._getPickerType(),readOnly:ue.readOnly,rtlEnabled:ue.rtlEnabled,spellcheck:ue.spellcheck,stylingMode:ue.stylingMode,type:"date",useMaskBehavior:ue.useMaskBehavior,validationMessageMode:ue.validationMessageMode,validationMessagePosition:ue.validationMessagePosition,valueChangeEvent:ue.valueChangeEvent,onKeyDown:ue.onKeyDown,onKeyUp:ue.onKeyUp,onChange:ue.onChange,onInput:ue.onInput,onCut:ue.onCut,onCopy:ue.onCopy,onPaste:ue.onPaste,onEnterKey:ue.onEnterKey,_dateRangeBoxInstance:this,_showValidationMessage:!1};return(0,B.__)(Oe,(Te,je)=>{const Ne=`on${je}`;this.hasActionSubscription(Ne)&&(me[Ne]=lt=>{this._raiseAction(je,lt.event)})}),me}_hideOnOutsideClickHandler(ue){let{target:me}=ue;const Te=(0,w.A)(me),je=this.getButton("dropDown"),Ne=je?.$element(),lt=!!Te.closest((0,w.A)(this.element())).length,Qe=!!Te.closest(Ne).length;return!lt&&!Qe}_getStartDateBoxConfig(){var ue;const me=this.option();return(0,m.A)({},this._getDateBoxConfig(),{applyButtonText:me.applyButtonText,calendarOptions:me.calendarOptions,cancelButtonText:me.cancelButtonText,dateOutOfRangeMessage:me.startDateOutOfRangeMessage,deferRendering:me.deferRendering,disabledDates:null===(ue=me.dropDownOptions)||void 0===ue?void 0:ue.disabledDates,dropDownOptions:(0,m.A)({showTitle:!1,title:"",hideOnOutsideClick:Te=>this._hideOnOutsideClickHandler(Te),hideOnParentScroll:!1,preventScrollEvents:!1},me.dropDownOptions),invalidDateMessage:me.invalidStartDateMessage,onValueChanged:Te=>{let{value:je,event:Ne}=Te;const lt=[je,this.option("value")[1]];this.updateValue(lt,Ne)},opened:me.opened,onOpened:()=>{this._raiseOpenAction()},onClosed:()=>{this._raiseCloseAction()},onOptionChanged:Te=>{const{name:je,value:Ne,previousValue:lt}=Te;"text"===je&&this.option("startDateText",Ne),"validationErrors"===je&&this._syncValidationErrors("_internalValidationErrors",Ne,lt)},todayButtonText:me.todayButtonText,showClearButton:!1,showDropDownButton:!1,value:this.option("value")[0],label:me.startDateLabel,placeholder:me.startDatePlaceholder,inputAttr:me.startDateInputAttr,name:me.startDateName,_showValidationIcon:!1})}_getEndDateBoxConfig(){const ue=this.option();return(0,m.A)({},this._getDateBoxConfig(),{invalidDateMessage:ue.invalidEndDateMessage,dateOutOfRangeMessage:ue.endDateOutOfRangeMessage,onValueChanged:me=>{let{value:Te,event:je}=me;const Ne=[this.option("value")[0],Te];this.updateValue(Ne,je)},onOptionChanged:me=>{const{name:Te,value:je,previousValue:Ne}=me;"text"===Te&&this.option("endDateText",je),"validationErrors"===Te&&this._syncValidationErrors("_internalValidationErrors",je,Ne)},opened:ue.opened,showClearButton:!1,showDropDownButton:!1,value:this.option("value")[1],label:ue.endDateLabel,placeholder:ue.endDatePlaceholder,deferRendering:!0,inputAttr:ue.endDateInputAttr,name:ue.endDateName})}_getValidationMessagePosition(){const{validationMessagePosition:ue}=this.option();return"auto"===ue?this.option("opened")?"top":"bottom":ue}_getSerializedDates(ue){let[me,Te]=ue;return[this.getStartDateBox()._serializeDate(L(me)),this.getStartDateBox()._serializeDate(L(Te))]}updateValue(ue,me){Q(ue,this.option("value"))||(me&&this._saveValueChangeEvent(me),this.option("value",this._getSerializedDates(ue)))}_updateDateBoxesValue(ue){const me=this.getStartDateBox(),Te=this.getEndDateBox(),[je,Ne]=ue,lt=me.option("value"),Qe=Te.option("value");G(je,lt)||me.option("value",je),G(Ne,Qe)||Te.option("value",Ne)}_renderAccessKey(){const ue=(0,w.A)(this.field()[0]),{accessKey:me}=this.option();ue.attr("accesskey",me)}_focusTarget(){return(0,w.A)(this.element()).find(".dx-texteditor-input")}_focusEventTarget(){return this.element()}_focusClassTarget(){return this.$element()}_toggleFocusClass(ue,me){super._toggleFocusClass(ue,this._focusClassTarget(me))}_hasActiveElement(){return this._isStartDateActiveElement()||this._isEndDateActiveElement()}_isStartDateActiveElement(){return this._isActiveElement(this.startDateField())}_isEndDateActiveElement(){return this._isActiveElement(this.endDateField())}_isActiveElement(ue){return(0,w.A)(ue).is((0,w.A)(k.A.getActiveElement(ue)))}_popupContentIdentifier(ue){return ue&&(this._popupContentId=ue),this._popupContentId}_setAriaAttributes(){const{opened:ue}=this.option(),me={expanded:ue,controls:this._popupContentIdentifier()},Te=ue?this._popupContentIdentifier():void 0;this.setAria(me),this.setAria("owns",Te,this.$element())}_cleanButtonContainers(){var ue,me;null===(ue=this._$beforeButtonsContainer)||void 0===ue||ue.remove(),null===(me=this._$afterButtonsContainer)||void 0===me||me.remove(),this._buttonCollection.clean(),this._$beforeButtonsContainer=void 0,this._$afterButtonsContainer=void 0}_applyCustomValidation(ue){this.validationRequest.fire({editor:this,value:ue})}_clean(){var ue,me,Te;this._cleanButtonContainers(),null===(ue=this._$startDateBox)||void 0===ue||ue.remove(),null===(me=this._$endDateBox)||void 0===me||me.remove(),null===(Te=this._$separator)||void 0===Te||Te.remove(),super._clean()}_optionChanged(ue){const{name:me,fullName:Te,value:je,previousValue:Ne}=ue;switch(me){case"acceptCustomValue":case"dateSerializationFormat":case"displayFormat":case"max":case"min":case"openOnFieldClick":case"spellcheck":case"useMaskBehavior":case"valueChangeEvent":this.getStartDateBox().option(me,je),this.getEndDateBox().option(me,je);break;case"rtlEnabled":default:super._optionChanged(ue);break;case"labelMode":this._toggleEditorLabelClass(),this.getStartDateBox().option(me,je),this.getEndDateBox().option(me,je);break;case"applyButtonText":case"applyValueMode":case"cancelButtonText":case"deferRendering":case"disabledDates":case"todayButtonText":this.getStartDateBox().option(me,je);break;case"opened":this._toggleDropDownEditorActiveClass(),this.getStartDateBox().option(me,je),this.getEndDateBox()._setOptionWithoutOptionChange(me,je);break;case"buttons":this._cleanButtonContainers(),this._renderButtonsContainer();break;case"calendarOptions":case"dropDownOptions":this.getStartDateBox().option(Te,je);break;case"pickerType":{const lt=this._getPickerType();this.getStartDateBox().option(me,lt),this.getEndDateBox().option(me,lt);break}case"height":this.getStartDateBox().option(me,je),this.getEndDateBox().option(me,je),super._optionChanged(ue);break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"showClearButton":this._updateButtons(["clear"]);break;case"endDate":this.updateValue([this.option("value")[0],je]);break;case"startDateLabel":this._toggleEditorLabelClass(),this.getStartDateBox().option("label",je);break;case"endDateLabel":this._toggleEditorLabelClass(),this.getEndDateBox().option("label",je);break;case"startDatePlaceholder":this.getStartDateBox().option("placeholder",je);break;case"endDatePlaceholder":this.getEndDateBox().option("placeholder",je);break;case"startDateInputAttr":this.getStartDateBox().option("inputAttr",je);break;case"startDateName":this.getStartDateBox().option("name",je);break;case"endDateInputAttr":this.getEndDateBox().option("inputAttr",je);break;case"endDateName":this.getEndDateBox().option("name",je);break;case"multiView":this.getStartDateBox().option("calendarOptions.viewsCount",je?2:1);break;case"tabIndex":case"activeStateEnabled":case"focusStateEnabled":case"hoverStateEnabled":super._optionChanged(ue),this.getStartDateBox().option(me,je),this.getEndDateBox().option(me,je);break;case"onValueChanged":this._createValueChangeAction();break;case"onOpened":this._createOpenAction();break;case"onClosed":this._createCloseAction();break;case"onKeyDown":case"onKeyUp":case"onChange":case"onInput":case"onCut":case"onCopy":case"onPaste":case"onEnterKey":this._createEventAction(me.replace("on",""));break;case"readOnly":case"disabled":this._updateButtons(),super._optionChanged(ue),this.getStartDateBox().option(me,je),this.getEndDateBox().option(me,je);break;case"disableOutOfRangeSelection":case"startDateText":case"endDateText":case"useHiddenSubmitElement":case"_currentSelection":break;case"startDate":this.updateValue([je,this.option("value")[1]]);break;case"stylingMode":this._renderStylingMode(),this.getStartDateBox().option(me,je),this.getEndDateBox().option(me,je);break;case"invalidStartDateMessage":this.getStartDateBox().option("invalidDateMessage",je);break;case"invalidEndDateMessage":this.getEndDateBox().option("invalidDateMessage",je);break;case"startDateOutOfRangeMessage":this.getStartDateBox().option("dateOutOfRangeMessage",je);break;case"endDateOutOfRangeMessage":this.getEndDateBox().option("dateOutOfRangeMessage",je);break;case"validationMessagePosition":this.getStartDateBox().option(me,je),super._optionChanged(ue);break;case"_internalValidationErrors":{this._syncValidationErrors("validationErrors",je,Ne);const lt=this.option("validationErrors");this.option("isValid",!(null!=lt&&lt.length));break}case"isValid":{this.getStartDateBox().option(me,je),this.getEndDateBox().option(me,je);const lt=je&&!this.option("_internalValidationErrors").length;if(this._shouldSkipIsValidChange||lt===je)return void super._optionChanged(ue);this._shouldSkipIsValidChange=!0,this.option("isValid",lt),this._shouldSkipIsValidChange=!1;break}case"validationErrors":{const lt=this.option("_internalValidationErrors")||[],yt=[...this._getRestErrors(je||[],lt),...lt],Gt=yt.length?yt:null;this._options.silent("validationErrors",Gt),super._optionChanged((0,m.A)({},ue,{value:Gt}));break}case"value":{const lt=(et=>{const[ue,me]=et;return ue&&me&&L(ue)>L(me)?[me,ue]:et})(je);if(!Q(lt,Ne)){const Qe=!Q(lt,this._initialValue);this.option("isDirty",Qe),this._setOptionWithoutOptionChange("value",lt),this._setOptionWithoutOptionChange("startDate",lt[0]),this._setOptionWithoutOptionChange("endDate",lt[1]),this._applyCustomValidation(lt),this._updateDateBoxesValue(lt),this.getStartDateBox().getStrategy().renderValue(),this._toggleEmptinessState(),this._raiseValueChangeAction(lt,Ne),this._saveValueChangeEvent(void 0)}break}}}getStartDateBox(){return this._startDateBox}getEndDateBox(){return this._endDateBox}getButton(ue){return this._buttonCollection.getButton(ue)}open(){this.option("opened",!0)}close(){this.option("opened",!1)}content(){return this.getStartDateBox().content()}field(){return[this.startDateField(),this.endDateField()]}startDateField(){return this.getStartDateBox().field()}endDateField(){return this.getEndDateBox().field()}focus(){this.getStartDateBox().focus()}reset(){super.reset();const ue=this.getStartDateBox(),me=this.getEndDateBox();ue.reset(),me.reset(),ue._updateInternalValidationState(!0),me._updateInternalValidationState(!0)}clear(){super.clear(),this.getEndDateBox().clear(),this.getStartDateBox().clear()}}(0,T.A)("dxDateRangeBox",fe);const Ue=fe;var Ve=p(8832),tt=p(3349),at=p(8914);const Vt={provide:Ve.kq,useExisting:(0,d.Rfq)(()=>qe),multi:!0};let qe=(()=>{class et extends tt.ic{_watcherHelper;_idh;instance=null;get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(me){this._setOption("acceptCustomValue",me)}get accessKey(){return this._getOption("accessKey")}set accessKey(me){this._setOption("accessKey",me)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(me){this._setOption("activeStateEnabled",me)}get applyButtonText(){return this._getOption("applyButtonText")}set applyButtonText(me){this._setOption("applyButtonText",me)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(me){this._setOption("applyValueMode",me)}get buttons(){return this._getOption("buttons")}set buttons(me){this._setOption("buttons",me)}get calendarOptions(){return this._getOption("calendarOptions")}set calendarOptions(me){this._setOption("calendarOptions",me)}get cancelButtonText(){return this._getOption("cancelButtonText")}set cancelButtonText(me){this._setOption("cancelButtonText",me)}get dateSerializationFormat(){return this._getOption("dateSerializationFormat")}set dateSerializationFormat(me){this._setOption("dateSerializationFormat",me)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(me){this._setOption("deferRendering",me)}get disabled(){return this._getOption("disabled")}set disabled(me){this._setOption("disabled",me)}get disableOutOfRangeSelection(){return this._getOption("disableOutOfRangeSelection")}set disableOutOfRangeSelection(me){this._setOption("disableOutOfRangeSelection",me)}get displayFormat(){return this._getOption("displayFormat")}set displayFormat(me){this._setOption("displayFormat",me)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(me){this._setOption("dropDownButtonTemplate",me)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(me){this._setOption("dropDownOptions",me)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(me){this._setOption("elementAttr",me)}get endDate(){return this._getOption("endDate")}set endDate(me){this._setOption("endDate",me)}get endDateInputAttr(){return this._getOption("endDateInputAttr")}set endDateInputAttr(me){this._setOption("endDateInputAttr",me)}get endDateLabel(){return this._getOption("endDateLabel")}set endDateLabel(me){this._setOption("endDateLabel",me)}get endDateName(){return this._getOption("endDateName")}set endDateName(me){this._setOption("endDateName",me)}get endDateOutOfRangeMessage(){return this._getOption("endDateOutOfRangeMessage")}set endDateOutOfRangeMessage(me){this._setOption("endDateOutOfRangeMessage",me)}get endDatePlaceholder(){return this._getOption("endDatePlaceholder")}set endDatePlaceholder(me){this._setOption("endDatePlaceholder",me)}get endDateText(){return this._getOption("endDateText")}set endDateText(me){this._setOption("endDateText",me)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(me){this._setOption("focusStateEnabled",me)}get height(){return this._getOption("height")}set height(me){this._setOption("height",me)}get hint(){return this._getOption("hint")}set hint(me){this._setOption("hint",me)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(me){this._setOption("hoverStateEnabled",me)}get invalidEndDateMessage(){return this._getOption("invalidEndDateMessage")}set invalidEndDateMessage(me){this._setOption("invalidEndDateMessage",me)}get invalidStartDateMessage(){return this._getOption("invalidStartDateMessage")}set invalidStartDateMessage(me){this._setOption("invalidStartDateMessage",me)}get isDirty(){return this._getOption("isDirty")}set isDirty(me){this._setOption("isDirty",me)}get isValid(){return this._getOption("isValid")}set isValid(me){this._setOption("isValid",me)}get labelMode(){return this._getOption("labelMode")}set labelMode(me){this._setOption("labelMode",me)}get max(){return this._getOption("max")}set max(me){this._setOption("max",me)}get min(){return this._getOption("min")}set min(me){this._setOption("min",me)}get multiView(){return this._getOption("multiView")}set multiView(me){this._setOption("multiView",me)}get opened(){return this._getOption("opened")}set opened(me){this._setOption("opened",me)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(me){this._setOption("openOnFieldClick",me)}get readOnly(){return this._getOption("readOnly")}set readOnly(me){this._setOption("readOnly",me)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(me){this._setOption("rtlEnabled",me)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(me){this._setOption("showClearButton",me)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(me){this._setOption("showDropDownButton",me)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(me){this._setOption("spellcheck",me)}get startDate(){return this._getOption("startDate")}set startDate(me){this._setOption("startDate",me)}get startDateInputAttr(){return this._getOption("startDateInputAttr")}set startDateInputAttr(me){this._setOption("startDateInputAttr",me)}get startDateLabel(){return this._getOption("startDateLabel")}set startDateLabel(me){this._setOption("startDateLabel",me)}get startDateName(){return this._getOption("startDateName")}set startDateName(me){this._setOption("startDateName",me)}get startDateOutOfRangeMessage(){return this._getOption("startDateOutOfRangeMessage")}set startDateOutOfRangeMessage(me){this._setOption("startDateOutOfRangeMessage",me)}get startDatePlaceholder(){return this._getOption("startDatePlaceholder")}set startDatePlaceholder(me){this._setOption("startDatePlaceholder",me)}get startDateText(){return this._getOption("startDateText")}set startDateText(me){this._setOption("startDateText",me)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(me){this._setOption("stylingMode",me)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(me){this._setOption("tabIndex",me)}get todayButtonText(){return this._getOption("todayButtonText")}set todayButtonText(me){this._setOption("todayButtonText",me)}get useMaskBehavior(){return this._getOption("useMaskBehavior")}set useMaskBehavior(me){this._setOption("useMaskBehavior",me)}get validationError(){return this._getOption("validationError")}set validationError(me){this._setOption("validationError",me)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(me){this._setOption("validationErrors",me)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(me){this._setOption("validationMessageMode",me)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(me){this._setOption("validationMessagePosition",me)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(me){this._setOption("validationStatus",me)}get value(){return this._getOption("value")}set value(me){this._setOption("value",me)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(me){this._setOption("valueChangeEvent",me)}get visible(){return this._getOption("visible")}set visible(me){this._setOption("visible",me)}get width(){return this._getOption("width")}set width(me){this._setOption("width",me)}onChange;onClosed;onContentReady;onCopy;onCut;onDisposing;onEnterKey;onFocusIn;onFocusOut;onInitialized;onInput;onKeyDown;onKeyUp;onOpened;onOptionChanged;onPaste;onValueChanged;acceptCustomValueChange;accessKeyChange;activeStateEnabledChange;applyButtonTextChange;applyValueModeChange;buttonsChange;calendarOptionsChange;cancelButtonTextChange;dateSerializationFormatChange;deferRenderingChange;disabledChange;disableOutOfRangeSelectionChange;displayFormatChange;dropDownButtonTemplateChange;dropDownOptionsChange;elementAttrChange;endDateChange;endDateInputAttrChange;endDateLabelChange;endDateNameChange;endDateOutOfRangeMessageChange;endDatePlaceholderChange;endDateTextChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;invalidEndDateMessageChange;invalidStartDateMessageChange;isDirtyChange;isValidChange;labelModeChange;maxChange;minChange;multiViewChange;openedChange;openOnFieldClickChange;readOnlyChange;rtlEnabledChange;showClearButtonChange;showDropDownButtonChange;spellcheckChange;startDateChange;startDateInputAttrChange;startDateLabelChange;startDateNameChange;startDateOutOfRangeMessageChange;startDatePlaceholderChange;startDateTextChange;stylingModeChange;tabIndexChange;todayButtonTextChange;useMaskBehaviorChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;valueChangeEventChange;visibleChange;widthChange;onBlur;change(me){}touched=me=>{};get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(me){this.setChildren("buttons",me)}constructor(me,Te,je,Ne,lt,Qe,Ct,yt){super(me,Te,je,Ne,Ct,yt),this._watcherHelper=Ne,this._idh=lt,this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"applyButtonTextChange"},{emit:"applyValueModeChange"},{emit:"buttonsChange"},{emit:"calendarOptionsChange"},{emit:"cancelButtonTextChange"},{emit:"dateSerializationFormatChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"disableOutOfRangeSelectionChange"},{emit:"displayFormatChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"endDateChange"},{emit:"endDateInputAttrChange"},{emit:"endDateLabelChange"},{emit:"endDateNameChange"},{emit:"endDateOutOfRangeMessageChange"},{emit:"endDatePlaceholderChange"},{emit:"endDateTextChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"invalidEndDateMessageChange"},{emit:"invalidStartDateMessageChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"labelModeChange"},{emit:"maxChange"},{emit:"minChange"},{emit:"multiViewChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"spellcheckChange"},{emit:"startDateChange"},{emit:"startDateInputAttrChange"},{emit:"startDateLabelChange"},{emit:"startDateNameChange"},{emit:"startDateOutOfRangeMessageChange"},{emit:"startDatePlaceholderChange"},{emit:"startDateTextChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"todayButtonTextChange"},{emit:"useMaskBehaviorChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),Qe.setHost(this)}_createInstance(me,Te){return new Ue(me,Te)}writeValue(me){this.eventHelper.lockedValueChangeEvent=!0,this.value=me,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(me){this.disabled=me}registerOnChange(me){this.change=me}registerOnTouched(me){this.touched=me}_createWidget(me){super._createWidget(me),this.instance.on("focusOut",Te=>{this.eventHelper.fireNgEvent("onBlur",[Te])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(me){super.ngOnChanges(me),this.setupChanges("buttons",me),this.setupChanges("validationErrors",me),this.setupChanges("value",me)}setupChanges(me,Te){me in this._optionsToUpdate||this._idh.setup(me,Te)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("validationErrors"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(me,Te){let je=this._idh.setupSingle(me,Te),Ne=null!==this._idh.getChanges(me,Te);(je||Ne)&&super._setOption(me,Te)}static \u0275fac=function(Te){return new(Te||et)(S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(tt.zF),S.rXU(tt.jS),S.rXU(tt.$M),S.rXU(tt.fH),S.rXU(S.pJN),S.rXU(S.Agw))};static \u0275cmp=S.VBU({type:et,selectors:[["dx-date-range-box"]],contentQueries:function(Te,je,Ne){if(1&Te&&S.wni(Ne,at.BrI,4),2&Te){let lt;S.mGM(lt=S.lsd())&&(je.buttonsChildren=lt)}},hostBindings:function(Te,je){1&Te&&S.bIt("valueChange",function(lt){return je.change(lt)})("onBlur",function(lt){return je.touched(lt)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",applyButtonText:"applyButtonText",applyValueMode:"applyValueMode",buttons:"buttons",calendarOptions:"calendarOptions",cancelButtonText:"cancelButtonText",dateSerializationFormat:"dateSerializationFormat",deferRendering:"deferRendering",disabled:"disabled",disableOutOfRangeSelection:"disableOutOfRangeSelection",displayFormat:"displayFormat",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",endDate:"endDate",endDateInputAttr:"endDateInputAttr",endDateLabel:"endDateLabel",endDateName:"endDateName",endDateOutOfRangeMessage:"endDateOutOfRangeMessage",endDatePlaceholder:"endDatePlaceholder",endDateText:"endDateText",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",invalidEndDateMessage:"invalidEndDateMessage",invalidStartDateMessage:"invalidStartDateMessage",isDirty:"isDirty",isValid:"isValid",labelMode:"labelMode",max:"max",min:"min",multiView:"multiView",opened:"opened",openOnFieldClick:"openOnFieldClick",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",spellcheck:"spellcheck",startDate:"startDate",startDateInputAttr:"startDateInputAttr",startDateLabel:"startDateLabel",startDateName:"startDateName",startDateOutOfRangeMessage:"startDateOutOfRangeMessage",startDatePlaceholder:"startDatePlaceholder",startDateText:"startDateText",stylingMode:"stylingMode",tabIndex:"tabIndex",todayButtonText:"todayButtonText",useMaskBehavior:"useMaskBehavior",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",applyButtonTextChange:"applyButtonTextChange",applyValueModeChange:"applyValueModeChange",buttonsChange:"buttonsChange",calendarOptionsChange:"calendarOptionsChange",cancelButtonTextChange:"cancelButtonTextChange",dateSerializationFormatChange:"dateSerializationFormatChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",disableOutOfRangeSelectionChange:"disableOutOfRangeSelectionChange",displayFormatChange:"displayFormatChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",endDateChange:"endDateChange",endDateInputAttrChange:"endDateInputAttrChange",endDateLabelChange:"endDateLabelChange",endDateNameChange:"endDateNameChange",endDateOutOfRangeMessageChange:"endDateOutOfRangeMessageChange",endDatePlaceholderChange:"endDatePlaceholderChange",endDateTextChange:"endDateTextChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",invalidEndDateMessageChange:"invalidEndDateMessageChange",invalidStartDateMessageChange:"invalidStartDateMessageChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",labelModeChange:"labelModeChange",maxChange:"maxChange",minChange:"minChange",multiViewChange:"multiViewChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",spellcheckChange:"spellcheckChange",startDateChange:"startDateChange",startDateInputAttrChange:"startDateInputAttrChange",startDateLabelChange:"startDateLabelChange",startDateNameChange:"startDateNameChange",startDateOutOfRangeMessageChange:"startDateOutOfRangeMessageChange",startDatePlaceholderChange:"startDatePlaceholderChange",startDateTextChange:"startDateTextChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",todayButtonTextChange:"todayButtonTextChange",useMaskBehaviorChange:"useMaskBehaviorChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[S.Jv_([tt.zF,tt.jS,Vt,tt.fH,tt.$M]),S.Vt3,S.OA$],decls:0,vars:0,template:function(Te,je){},encapsulation:2})}return et})(),Nt=(()=>{class et{static \u0275fac=function(Te){return new(Te||et)};static \u0275mod=S.$C({type:et});static \u0275inj=d.G2t({imports:[at.GIV,at.u4t,at.QWP,at.f8z,at.df_,at.YLo,at.YaD,at.eNx,at.Bkf,at.nwt,at.hXw,at.YGc,at.gf0,at.rvW,at.Tob,at.$Ql,at.isg,tt.p_,tt.xZ,at.GIV,at.u4t,at.QWP,at.f8z,at.df_,at.YLo,at.YaD,at.eNx,at.Bkf,at.nwt,at.hXw,at.YGc,at.gf0,at.rvW,at.Tob,at.$Ql,at.isg,tt.xZ]})}return et})()},6776:(En,it,p)=>{"use strict";p.d(it,{o:()=>w});var S=p(5704),d=p(6054),m=p(8684),T=p(1832),C=p(9229),e=p(7251);const k=(0,m.A)({syncStrategy:!0});class w{render(v){const x=(v=v||{}).onRendered;let b;return delete v.onRendered,b=v.renovated&&v.transclude&&this._element?(0,S.A)("<div>").append(this._element).contents():this._renderCore(v),this._ensureResultInContainer(b,v.container),k.fire(b,v.container),x&&x(),b}_ensureResultInContainer(v,x){if(!x)return;const b=(0,S.A)(x),B=(0,T.gR)(b.get(0),v.get(0));b.append(v),!B&&(0,T.gR)(d.A.getBody(),b.get(0))&&(0,C.I9)(v)}_renderCore(){throw e.A.Error("E0001")}}},6790:(En,it,p)=>{"use strict";p.d(it,{A:()=>B});var S=p(8842),d=p(4072),m=p(8569),T=p(2660),C=p(9293),e=p(3090),k=p(8879);const v={onStart:S.ni,onUpdated:S.By,onEnd:S._N,onCancel:"dxswipecancel"},b=m.A.inherit({_getDefaultOptions:function(){return(0,e.X)(this.callBase(),{elastic:!0,immediate:!1,immediateTimeout:180,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass("dx-swipeable"),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),this.option("disabled"))return;const j=this.NAME;this._createEventData(),(0,T.__)(v,function(F,X){const U=this._createActionByOption(F,{context:this});X=(0,C.b4)(X,j),d.A.on(this.$element(),X,this._eventData,function(Z){return U({event:Z})})}.bind(this))},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate"),immediateTimeout:this.option("immediateTimeout")}},_detachEventHandlers:function(){d.A.off(this.$element(),".dxSwipeable")},_optionChanged:function(j){switch(j.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(j)}},_useTemplates:function(){return!1}});(0,k.UU)(b,"dxSwipeable");const B=b},6847:(En,it,p)=>{"use strict";function S(d){return d?Number(d.replace("px","")):0}p.d(it,{R:()=>S})},6853:(En,it,p)=>{"use strict";p.d(it,{A:()=>w});var S=p(5704),d=p(3090),m=p(8360),T=p(127),C=p(6021);let k=function e(P){return class{constructor(){throw new Error(`Module '${P}' not found`)}static getInstance(){}}}("TextBox");const w={_getDefaultOptions:function(){return(0,d.X)(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){const P=this.$element(),v=this.option("searchEnabled"),x=this._addWidgetPrefix("search"),b=this._addWidgetPrefix("with-search");if(!v)return P.removeClass(b),void this._removeSearchBox();const B=this._getSearchEditorOptions();this._searchEditor?this._searchEditor.option(B):(P.addClass(b),this._$searchEditorElement=(0,S.A)("<div>").addClass(x).prependTo(P),this._searchEditor=this._createComponent(this._$searchEditorElement,k,B))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){const P=this,v=P.option("searchEditorOptions"),x=m.A.format("Search");return(0,d.X)({mode:"search",placeholder:x,tabIndex:P.option("tabIndex"),value:P.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":x},onValueChanged:function(b){const B=P.option("searchTimeout");P._valueChangeDeferred=new C.cY,clearTimeout(P._valueChangeTimeout),P._valueChangeDeferred.done(function(){this.option("searchValue",b.value)}.bind(P)),b.event&&"input"===b.event.type&&B?P._valueChangeTimeout=setTimeout(function(){P._valueChangeDeferred.resolve()},B):P._valueChangeDeferred.resolve()}},v)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(P,v){this.option("searchEnabled")&&this._toggleFocusClass(v,this.$element()),this.callBase(P,v)},getOperationBySearchMode:function(P){return"equals"===P?"=":P},_optionChanged:function(P){switch(P.name){case"searchEnabled":case"searchEditorOptions":this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void T.A.log("W1009");"searchMode"===P.name?this._dataSource.searchOperation(this.getOperationBySearchMode(P.value)):this._dataSource[P.name](P.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(P)}},focus:function(){this.option("focusedElement")||!this.option("searchEnabled")?this.callBase():this._searchEditor&&this._searchEditor.focus()},_cleanAria:function(){const P=this.$element();this.setAria({role:null,activedescendant:null},P),P.attr("tabIndex",null)},_clean(){this.callBase(),this._cleanAria()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()},setEditorClass:function(P){k=P}}},6870:(En,it,p)=>{"use strict";p.d(it,{A:()=>W});var S=p(1363),d=p(5704),m=p(4859),T=p(2660),C=p(6110),e=p(6054),k=p(1830),w=p(3090),P=p(4757),v=p(36),x=p(2123),b=p(7007),B=p(5973),j=p(8649);const F=(0,C.zk)(),X=/left|right/,U=/top|bottom/,Z=/fit|flip|none/,A=/scale\(.+?\)/,M=v.A.safari,H=function(ie){const he={h:"center",v:"center"},Ce=(0,m.T6)(ie);return Ce&&(0,T.__)(Ce,function(){const ye=String(this).toLowerCase();X.test(ye)?he.h=ye:U.test(ye)&&(he.v=ye)}),he},J=function(ie,he){return(0,m.Li)(ie,he)},L=function(ie){switch(ie){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},G=function(ie){switch(ie){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return ie}},Q=function(ie,he){let Ce=0;return ie.myLocation<he.min&&(Ce+=he.min-ie.myLocation),ie.myLocation>he.max&&(Ce+=ie.myLocation-he.max),Ce},z=function(ie,he,Ce){return he.myLocation<Ce.min?"h"===ie?"left":"top":he.myLocation>Ce.max?"h"===ie?"right":"bottom":"none"},K=function(ie){ie.myLocation=ie.atLocation+L(ie.atAlign)*ie.atSize-L(ie.myAlign)*ie.mySize+ie.offset},ee={fit:function(ie,he){let Ce=!1;ie.myLocation>he.max&&(ie.myLocation=he.max,Ce=!0),ie.myLocation<he.min&&(ie.myLocation=he.min,Ce=!0),ie.fit=Ce},flip:function(ie,he){if(ie.flip=!1,("center"!==ie.myAlign||"center"!==ie.atAlign)&&(ie.myLocation<he.min||ie.myLocation>he.max)){const Ce=(0,w.X)({},ie,{myAlign:G(ie.myAlign),atAlign:G(ie.atAlign),offset:-ie.offset});K(Ce),Ce.oversize=Q(Ce,he),(Ce.myLocation>=he.min&&Ce.myLocation<=he.max||ie.oversize>Ce.oversize)&&(ie.myLocation=Ce.myLocation,ie.oversize=Ce.oversize,ie.flip=!0)}},flipfit:function(ie,he){this.flip(ie,he),this.fit(ie,he)},none:function(ie){ie.oversize=0}};let re;const be=function(){const ie=(0,d.A)("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo((0,d.A)("body")),he=ie.get(0).offsetWidth-ie.get(0).clientWidth;ie.remove(),re=he},ce={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},Re=function(ie,he){const Ce=(0,d.A)(ie),ye=Ce.offset(),Me=(0,w.X)(!0,{},ce,{h:{location:ye.left},v:{location:ye.top}});if(!he)return Me;const _e=H(he.my),ke=H(he.at);let Ye=(0,d.A)(he.of).length&&he.of||F;const de=J(he.offset,he.precise),Ae=function(ie){const he=(0,m.T6)(ie);let Ce=String(he&&he[0]).toLowerCase(),ye=String(he&&he[1]).toLowerCase();return Z.test(Ce)||(Ce="none"),Z.test(ye)||(ye=Ce),{h:Ce,v:ye}}(he.collision),pe=he.boundary,Ee=J(he.boundaryOffset,he.precise),le={mySize:(0,S.Ot)(Ce),myAlign:_e.h,atAlign:ke.h,offset:de.h,collision:Ae.h,boundaryOffset:Ee.h},Ke={mySize:(0,S.P$)(Ce),myAlign:_e.v,atAlign:ke.v,offset:de.v,collision:Ae.v,boundaryOffset:Ee.v};if(Ye.preventDefault)le.atLocation=Ye.pageX,Ke.atLocation=Ye.pageY,le.atSize=0,Ke.atSize=0;else if(Ye=(0,d.A)(Ye),(0,k.l6)(Ye[0]))le.atLocation=Ye.scrollLeft(),Ke.atLocation=Ye.scrollTop(),"phone"===B.A.real().deviceType&&Ye[0].visualViewport?(le.atLocation=Math.max(le.atLocation,Ye[0].visualViewport.offsetLeft),Ke.atLocation=Math.max(Ke.atLocation,Ye[0].visualViewport.offsetTop),le.atSize=Ye[0].visualViewport.width,Ke.atSize=Ye[0].visualViewport.height):(le.atSize=Ye[0].innerWidth>Ye[0].outerWidth?Ye[0].innerWidth:(0,S.RG)(Ye),Ke.atSize=Ye[0].innerHeight>Ye[0].outerHeight||M?Ye[0].innerHeight:(0,S.Oq)(Ye));else if(9===Ye[0].nodeType)le.atLocation=0,Ke.atLocation=0,le.atSize=(0,S.RG)(Ye),Ke.atSize=(0,S.Oq)(Ye);else{const Oe=(0,P.N)(Ye.get(0)),fe=De(Ye);le.atLocation=fe.left,Ke.atLocation=fe.top,le.atSize=Math.max(Oe.width,(0,S.Ot)(Ye)),Ke.atSize=Math.max(Oe.height,(0,S.P$)(Ye))}K(le),K(Ke);const Be=function(){const Oe=(0,d.A)(F),fe=(0,S.RG)(Oe),We=(0,S.Oq)(Oe);let Ue=Oe.scrollLeft(),Ve=Oe.scrollTop();const tt=e.A.getDocumentElement(),at=b.touch?tt.clientWidth/fe:1,Vt=b.touch?tt.clientHeight/We:1;void 0===re&&be();let qe=fe,Nt=We;if(pe&&!(0,k.l6)(pe)){const et=(0,d.A)(pe),ue=et.offset();Ue=ue.left,Ve=ue.top,qe=(0,S.RG)(et),Nt=(0,S.Oq)(et)}return{h:{min:Ue+le.boundaryOffset,max:Ue+qe/at-le.mySize-le.boundaryOffset},v:{min:Ve+Ke.boundaryOffset,max:Ve+Nt/Vt-Ke.mySize-Ke.boundaryOffset}}}();le.oversize=Q(le,Be.h),Ke.oversize=Q(Ke,Be.v),le.collisionSide=z("h",le,Be.h),Ke.collisionSide=z("v",Ke,Be.v),ee[le.collision]&&ee[le.collision](le,Be.h),ee[Ke.collision]&&ee[Ke.collision](Ke,Be.v);const q=function(Oe){return he.precise?Oe:Math.round(Oe)};return(0,w.X)(!0,Me,{h:{location:q(le.myLocation),oversize:q(le.oversize),fit:le.fit,flip:le.flip,collisionSide:le.collisionSide},v:{location:q(Ke.myLocation),oversize:q(Ke.oversize),fit:Ke.fit,flip:Ke.flip,collisionSide:Ke.collisionSide},precise:he.precise}),Me},Se=function(ie,he,Ce,ye){const Me=(0,k.O9)(ie.style)&&!e.A.isNode(ie.style),_e=ye?Ce.replace(he,""):Ce;if(Me)(0,j.eC)(ie,_e,!1);else{const ke=e.A.createAttribute("style");ke.value=_e,ie.setAttributeNode(ke)}},De=function(ie){var he,Ce;let ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie;const Me=ye.get(0);if(!Me)return ie.offset();const _e=(null===(he=Me.getAttribute)||void 0===he?void 0:he.call(Me,"style"))||"",ke=null===(Ce=_e.match(A))||void 0===Ce?void 0:Ce[0];let Ye;return ke?(Se(Me,ke,_e,!0),Ye=De(ie,ye.parent()),Se(Me,ke,_e,!1)):Ye=De(ie,ye.parent()),Ye},Pe=function(ie,he){const Ce=(0,d.A)(ie);if(!he)return Ce.offset();(0,x.fw)(Ce,!0);const ye=De(Ce),Me=he.h&&he.v?he:Re(Ce,he),_e=function(ke){return he.precise?ke:Math.round(ke)};return(0,x.Cy)(Ce,{left:Me.h.location-_e(ye.left),top:Me.v.location-_e(ye.top)}),Me};Pe.inverseAlign||(Pe.inverseAlign=G),Pe.normalizeAlign||(Pe.normalizeAlign=H);const W={calculateScrollbarWidth:be,calculate:Re,setup:Pe,offset:function(ie){return ie=(0,d.A)(ie).get(0),(0,k.l6)(ie)?null:ie&&"pageY"in ie&&"pageX"in ie?{top:ie.pageY,left:ie.pageX}:(0,d.A)(ie).offset()}}},6872:(En,it,p)=>{"use strict";p.d(it,{D:()=>C});const{isArray:S}=Array,{getPrototypeOf:d,prototype:m,keys:T}=Object;function C(k){if(1===k.length){const w=k[0];if(S(w))return{args:w,keys:null};if(function e(k){return k&&"object"==typeof k&&d(k)===m}(w)){const P=T(w);return{args:P.map(v=>w[v]),keys:P}}}return{args:k,keys:null}}},6942:(En,it,p)=>{"use strict";p.d(it,{A:()=>lt});var S=p(1973),d=p(5973),m=p(5704),T=p(5944),C=p(6021),e=p(3090),k=p(8535),w=p(2660),P=p(1363),v=p(1830),x=p(6110),b=p(4072),B=p(3535),j=p(9209),F=p(9293);function X(Qe){return Qe.scrollWidth-Qe.clientWidth}p(662);var L=p(9012),G=p(6067),Q=p(4602),z=p(9212),K=p(9524);const ee="dx-tabs-expanded",Se=p(5107).A.inherit({_renderWatchers(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge(Qe){if(this._$element.children(".dx-badge").remove(),!Qe)return;const Ct=(0,m.A)("<div>").addClass("dx-tabs-item-badge").addClass("dx-badge").text(Qe);this._$element.append(Ct)}}),q={top:"dx-tab-indicator-position-top",right:"dx-tab-indicator-position-right",bottom:"dx-tab-indicator-position-bottom",left:"dx-tab-indicator-position-left"},Oe={top:"dx-tabs-icon-position-top",end:"dx-tabs-icon-position-end",bottom:"dx-tabs-icon-position-bottom",start:"dx-tabs-icon-position-start"},fe={primary:"dx-tabs-styling-mode-primary",secondary:"dx-tabs-styling-mode-secondary"},je=G.A.inherit({_activeStateUnit:".dx-tab",_getDefaultOptions(){return(0,e.X)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",orientation:"horizontal",iconPosition:"start",stylingMode:"primary",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:Qe=>Qe?Qe.badge:void 0,_itemAttributes:{role:"tab"},_indicatorPosition:null})},_defaultOptionsRules(){const Qe=(0,z.ss)();return this.callBase().concat([{device:()=>"desktop"!==d.A.real().deviceType,options:{showNavButtons:!1}},{device:{deviceType:"desktop"},options:{scrollByContent:!1}},{device:()=>"desktop"===d.A.real().deviceType&&!d.A.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>(0,z.Ft)(Qe),options:{iconPosition:"top",stylingMode:"secondary"}},{device:()=>(0,z.gx)(Qe),options:{useInkRipple:!0,selectOnFocus:!1,iconPosition:"top"}}])},_init(){const{orientation:Qe,stylingMode:Ct,scrollingEnabled:yt}=this.option(),Gt=this._getIndicatorPosition();this.callBase(),this.setAria("role","tablist"),this.$element().addClass("dx-tabs"),this._toggleScrollingEnabledClass(yt),this._toggleOrientationClass(Qe),this._toggleIndicatorPositionClass(Gt),this._toggleIconPositionClass(),this._toggleStylingModeClass(Ct),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=100},_prepareDefaultItemTemplate(Qe,Ct){const yt=(0,v.Qd)(Qe)?Qe?.text:Qe;if((0,v.O9)(yt)){const Gt=(0,m.A)("<span>").addClass("dx-tab-text-span");Gt.text(yt);const ft=(0,m.A)("<span>").addClass("dx-tab-text-span-pseudo");ft.text(yt),ft.appendTo(Gt),Gt.appendTo(Ct)}(0,v.O9)(Qe.html)&&Ct.html(Qe.html)},_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({item:new T.U((Qe,Ct)=>{this._prepareDefaultItemTemplate(Ct,Qe);const yt=(0,k.N)(Ct.icon);yt&&yt.prependTo(Qe);const Gt=(0,m.A)("<div>").addClass("dx-tab-text");Qe.wrapInner(Gt)},["text","html","icon"],this.option("integrationOptions.watchMethod"))})},_createItemByTemplate:function(Qe,Ct){const{itemData:yt,container:Gt,index:ft}=Ct;return this._deferredTemplates[ft]=(0,C.cY)(),Qe.render({model:yt,container:Gt,index:ft,onRendered:()=>this._deferredTemplates[ft].resolve()})},_itemClass:()=>"dx-tab",_selectedItemClass:()=>"dx-tab-selected",_itemDataKey:()=>"dxTabData",_initMarkup(){this._deferredTemplates=[],this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass("dx-overflow-hidden")},_render(){this.callBase(),this._deferRenderScrolling()},_deferRenderScrolling(){C.z7.apply(this,this._deferredTemplates).done(()=>this._renderScrolling())},_renderScrolling(){const Qe=["dx-tabs-stretched",ee,"dx-overflow-hidden"];if(this.$element().removeClass(Qe.join(" ")),this.option("scrollingEnabled")&&this._isItemsSizeExceeded()){this._scrollable||(this._renderScrollable(),this._renderNavButtons());const Ct=this.getScrollable();if(Ct.update(),this.option("rtlEnabled")){const yt=X((0,m.A)(this.getScrollable().container()).get(0));Ct.scrollTo({left:yt})}this._updateNavButtonsState(),this._scrollToItem(this.option("selectedItem"))}this.option("scrollingEnabled")&&this._isItemsSizeExceeded()||(this._cleanScrolling(),this._needStretchItems()&&this.$element().addClass("dx-tabs-stretched"),this.$element().removeClass("dx-tabs-nav-buttons").addClass(ee))},_isVertical(){return"vertical"===this.option("orientation")},_isItemsSizeExceeded(){return this._isVertical()?this._isItemsHeightExceeded():this._isItemsWidthExceeded()},_isItemsWidthExceeded(){const Qe=this._getVisibleItems(),Ct=this._getSummaryItemsSize("width",Qe,!0),yt=(0,P.RG)(this.$element());return![Ct,yt].includes(0)&&Ct>yt-1},_isItemsHeightExceeded(){const Qe=this._getVisibleItems();return this._getSummaryItemsSize("height",Qe,!0)-1>(0,P.Oq)(this.$element())},_needStretchItems(){const Qe=this._getVisibleItems(),Ct=(0,P.RG)(this.$element()),yt=[];return(0,w.__)(Qe,(rn,Mn)=>{yt.push((0,P.Ot)(Mn,!0))}),Math.max.apply(null,yt)>Ct/Qe.length+1},_cleanNavButtons(){!this._leftButton||!this._rightButton||(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple(){this._inkRipple=(0,K.XX)()},_getPointerEvent:()=>j.A.up,_toggleActiveState(Qe,Ct,yt){if(this.callBase.apply(this,arguments),!this._inkRipple)return;const Gt={element:Qe,event:yt};Ct?this._inkRipple.showWave(Gt):this._inkRipple.hideWave(Gt)},_renderMultiple(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper(){this._$wrapper=(0,m.A)("<div>").addClass("dx-tabs-wrapper"),this.$element().append(this._$wrapper)},_itemContainer(){return this._$wrapper},_getScrollableDirection(){return this._isVertical()?"vertical":"horizontal"},_updateScrollable(){this.getScrollable()&&this._cleanScrolling(),this._renderScrolling()},_renderScrollable(){const Qe=this.$element().wrapInner((0,m.A)("<div>").addClass("dx-tabs-scrollable")).children();this._scrollable=this._createComponent(Qe,Q.A,{direction:this._getScrollableDirection(),showScrollbar:"never",useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:()=>{this._updateNavButtonsState()}}),this.$element().append(this._scrollable.$element())},_scrollToItem(Qe){if(!this._scrollable)return;const Ct=this._editStrategy.getItemElement(Qe);this._scrollable.scrollToElement(Ct)},_renderNavButtons(){const{showNavButtons:Qe,rtlEnabled:Ct}=this.option();if(this.$element().toggleClass("dx-tabs-nav-buttons",Qe),!Qe)return;this._leftButton=this._createNavButton(-30,Ct?"chevronnext":"chevronprev");const yt=this._leftButton.$element();yt.addClass("dx-tabs-nav-button-left"),this.$element().prepend(yt),this._rightButton=this._createNavButton(30,Ct?"chevronprev":"chevronnext");const Gt=this._rightButton.$element();Gt.addClass("dx-tabs-nav-button-right"),this.$element().append(Gt)},_updateNavButtonsAriaDisabled(){[this._leftButton,this._rightButton].forEach(Ct=>{Ct?.$element().attr({"aria-disabled":null})})},_updateNavButtonsState(){const Qe=this._isVertical(),Ct=this.getScrollable();var yt,Gt,ft,nn;Qe?(null===(yt=this._leftButton)||void 0===yt||yt.option("disabled",function H(Qe,Ct){return Math.round(Qe)<=Ct}(Ct.scrollTop(),1)),null===(Gt=this._rightButton)||void 0===Gt||Gt.option("disabled",function J(Qe,Ct,yt,Gt){return Math.round(function U(Qe){return Qe.scrollHeight-Qe.clientHeight}(Qe)-Ct-yt)<=Gt}((0,m.A)(Ct.container()).get(0),Ct.scrollTop(),0,1))):(null===(ft=this._leftButton)||void 0===ft||ft.option("disabled",function A(Qe,Ct){return Math.round(Qe)<=Ct}(Ct.scrollLeft(),1)),null===(nn=this._rightButton)||void 0===nn||nn.option("disabled",function M(Qe,Ct,yt){return Math.round(X(Qe)-Ct)<=yt}((0,m.A)(Ct.container()).get(0),Ct.scrollLeft(),1))),this._updateNavButtonsAriaDisabled()},_updateScrollPosition(Qe,Ct){this._scrollable.update(),this._scrollable.scrollBy(Qe/Ct)},_createNavButton(Qe,Ct){const yt=this._createAction(()=>{this._holdInterval=setInterval(()=>{this._updateScrollPosition(Qe,5)},5)}),Gt=(0,F.b4)(B.A.name,"dxNavButton"),ft=(0,F.b4)(j.A.up,"dxNavButton"),nn=(0,F.b4)(j.A.out,"dxNavButton"),rn=this._createComponent((0,m.A)("<div>").addClass("dx-tabs-nav-button"),L.A,{focusStateEnabled:!1,icon:Ct,integrationOptions:{},elementAttr:{role:null,"aria-label":null,"aria-disabled":null},onClick:()=>{this._updateScrollPosition(Qe,1)}}),Mn=rn.$element();return b.A.on(Mn,Gt,{timeout:300},On=>{yt({event:On})}),b.A.on(Mn,ft,()=>{this._clearInterval()}),b.A.on(Mn,nn,()=>{this._clearInterval()}),rn},_clearInterval(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection(Qe){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(Qe[0]))},_visibilityChanged(Qe){Qe&&this._dimensionChanged()},_dimensionChanged(){this._renderScrolling()},_itemSelectHandler(Qe){"single"===this.option("selectionMode")&&this.isItemSelected(Qe.currentTarget)||this.callBase(Qe)},_clean(){this._deferredTemplates=[],this._cleanScrolling(),this.callBase()},_toggleTabsVerticalClass(Qe){this.$element().toggleClass("dx-tabs-vertical",Qe)},_toggleTabsHorizontalClass(Qe){this.$element().toggleClass("dx-tabs-horizontal",Qe)},_getIndicatorPositionClass:Qe=>q[Qe],_getIndicatorPosition(){const{_indicatorPosition:Qe,rtlEnabled:Ct}=this.option();if(Qe)return Qe;const yt=this._isVertical();return Ct?yt?"left":"bottom":yt?"right":"bottom"},_toggleIndicatorPositionClass(Qe){const Ct=this._getIndicatorPositionClass(Qe);this._toggleElementClasses(q,Ct)},_toggleScrollingEnabledClass(Qe){this.$element().toggleClass("dx-tabs-scrolling-enabled",!!Qe)},_toggleOrientationClass(Qe){const Ct="vertical"===Qe;this._toggleTabsVerticalClass(Ct),this._toggleTabsHorizontalClass(!Ct)},_getTabsIconPositionClass(){switch(this.option("iconPosition")){case"top":return Oe.top;case"end":return Oe.end;case"bottom":return Oe.bottom;default:return Oe.start}},_toggleIconPositionClass(){const Qe=this._getTabsIconPositionClass();this._toggleElementClasses(Oe,Qe)},_toggleStylingModeClass(Qe){this._toggleElementClasses(fe,fe[Qe]??fe.primary)},_toggleElementClasses(Qe,Ct){for(const yt in Qe)this.$element().removeClass(Qe[yt]);this.$element().addClass(Ct)},_toggleFocusedDisabledNextClass(Qe,Ct){this._itemElements().eq(Qe).toggleClass("dx-focused-disabled-next-tab",Ct)},_toggleFocusedDisabledPrevClass(Qe,Ct){this._itemElements().eq(Qe).toggleClass("dx-focused-disabled-prev-tab",Ct)},_toggleFocusedDisabledClasses(Qe){const{selectedIndex:Ct}=this.option();this._itemElements().removeClass("dx-focused-disabled-next-tab").removeClass("dx-focused-disabled-prev-tab");const yt=Ct-1,Gt=Ct+1,ft=(0,m.A)(Qe).index(),nn=this._itemElements().eq(Gt).hasClass("dx-state-disabled"),On=this._itemElements().eq(yt).hasClass("dx-state-disabled")&&ft===yt;this._toggleFocusedDisabledNextClass(Ct,nn&&ft===Gt),this._toggleFocusedDisabledPrevClass(Ct,On)},_updateFocusedElement(){const{focusStateEnabled:Qe,selectedIndex:Ct}=this.option(),yt=this._itemElements();if(Qe&&yt.length){const Gt=yt.get(Ct);this.option({focusedElement:Gt})}},_optionChanged(Qe){switch(Qe.name){case"useInkRipple":case"scrollingEnabled":this._toggleScrollingEnabledClass(Qe.value),this._invalidate();break;case"showNavButtons":case"badgeExpr":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(Qe.name,Qe.value);break;case"width":case"height":this.callBase(Qe),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(Qe);break;case"focusedElement":this._toggleFocusedDisabledClasses(Qe.value),this.callBase(Qe),this._scrollToItem(Qe.value);break;case"rtlEnabled":{this.callBase(Qe);const Ct=this._getIndicatorPosition();this._toggleIndicatorPositionClass(Ct);break}case"orientation":{this._toggleOrientationClass(Qe.value);const Ct=this._getIndicatorPosition();this._toggleIndicatorPositionClass(Ct),(0,x.Vd)()&&this._updateScrollable();break}case"iconPosition":this._toggleIconPositionClass(),(0,x.Vd)()&&this._dimensionChanged();break;case"stylingMode":this._toggleStylingModeClass(Qe.value),(0,x.Vd)()&&this._dimensionChanged();break;case"_indicatorPosition":this._toggleIndicatorPositionClass(Qe.value);break;case"selectedIndex":case"selectedItem":case"selectedItems":this.callBase(Qe),this._updateFocusedElement();break;default:this.callBase(Qe)}},_afterItemElementInserted(){this.callBase(),this._deferRenderScrolling()},_afterItemElementDeleted(Qe,Ct){this.callBase(Qe,Ct),this._renderScrolling()},getScrollable(){return this._scrollable}});je.ItemClass=Se,(0,S.A)("dxTabs",je);const lt=je},6946:(En,it,p)=>{"use strict";p.d(it,{Bc:()=>x,I3:()=>w,Ns:()=>P,PT:()=>k,_k:()=>C});var S=p(2660);const d=function(b){return null==b?"":String(b)},m=function(b){return d(b).charAt(0).toUpperCase()+b.substr(1)},T=function(b){return d(b).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},C=function(b){return(0,S.Tj)(T(b),function(B){return B.toLowerCase()}).join("-")},k=function(b,B){return(0,S.Tj)(T(b),function(j,F){return j=j.toLowerCase(),(B||F>0)&&(j=m(j)),j}).join("")},w=function(b){return m(C(b).replace(/-/g," "))},P=function(b){return(0,S.Tj)(T(b),function(B){return m(B.toLowerCase())}).join(" ")},v=["0","1","2","3","4","5","6","7","8","9"],x=function(b){const B=[];let j,F,X=!1,U=!1;for(j=0;j<b.length;j++)F=b.charAt(j),U=F===F.toUpperCase()&&"-"!==F&&")"!==F&&"/"!==F||F in v,"_"===F||"."===F?(F=" ",U=!0):0===j?(F=F.toUpperCase(),U=!0):!X&&U&&B.length>0&&B.push(" "),B.push(F),X=U;return B.join("")}},6998:(En,it,p)=>{"use strict";var S=p(8910);p(6853).A.setEditorClass(S.A)},7007:(En,it,p)=>{"use strict";p.r(it),p.d(it,{animation:()=>A,inputType:()=>v,nativeScrolling:()=>M,pointerEvents:()=>j,styleProp:()=>C.jA,stylePropPrefix:()=>C.Rb,supportProp:()=>w,touch:()=>X,touchEvents:()=>B,transition:()=>U,transitionEndEventName:()=>Z});var S=p(6054),d=p(4356),m=p(6110),T=p(5973),C=p(8649);const{maxTouchPoints:e}=(0,m.w3)(),k={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},w=function(H){return!!(0,C.jA)(H)},v=function(H){if("text"===H)return!0;const J=S.A.createElement("input");try{return J.setAttribute("type",H),J.value="wrongValue",!J.value}catch{return!1}},B=(J=e,((H=m.i5)("ontouchstart")||!!J)&&!H("callPhantom")),j=function(H){return H("PointerEvent")}(m.i5),X=B||j&&!!e,U=(0,d.A)(function(){return w("transition")}),Z=(0,d.A)(function(){return k[(0,C.jA)("transition")]}),A=(0,d.A)(function(){return w("animation")}),M=function(){const{platform:H,mac:J}=T.A.real();return"ios"===H||"android"===H||J}();var H,J},7028:(En,it,p)=>{"use strict";p.d(it,{l:()=>d});const d=function S(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},7080:(En,it,p)=>{"use strict";p.d(it,{A:()=>U});var S=p(5704),d=p(9510),m=p(8569),T=p(1294),C=p(4859),e=p(2660),k=p(3090),w=p(402),P=p(1830),v=p(5973),x=p(6548);function F(Z,A,M){Z="role"===Z||"id"===Z?Z:`aria-${Z}`,A=(0,P.O9)(A)?A.toString():null,M.attr(Z,A)}p(778),p(4451),p(1134);const X=m.A.inherit({_feedbackHideTimeout:400,_feedbackShowTimeout:30,_supportedKeys:()=>({}),_getDefaultOptions(){return(0,k.X)(this.callBase(),{hoveredElement:null,isActive:!1,disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:void 0,onFocusIn:null,onFocusOut:null,onKeyboardHandled:null,ignoreParentReadOnly:!1,useResizeObserver:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){const Z=v.A.real();return"ios"===Z.platform&&(0,x.U)(Z.version,"13.3")<=0},options:{useResizeObserver:!1}}])},_init(){this.callBase(),this._initContentReadyAction()},_innerWidgetOptionChanged:function(Z,A){const M=X.getOptionsFromContainer(A);Z&&Z.option(M),this._options.cache(A.name,M)},_bindInnerWidgetOptions(Z,A){const M=()=>this._options.silent(A,(0,k.X)({},Z.option()));M(),Z.on("optionChanged",M)},_getAriaTarget(){return this._focusTarget()},_initContentReadyAction(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup(){const{disabled:Z,visible:A}=this.option();this.$element().addClass("dx-widget"),this._toggleDisabledState(Z),this._toggleVisibility(A),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents(),this._toggleIndependentState()},_renderHint(){const{hint:Z}=this.option();this.$element().attr("title",Z||null)},_renderContent(){(0,C.zE)(()=>this._disposed?void 0:this._renderContentImpl()).done(()=>this._disposed?void 0:this._fireContentReadyAction())},_renderContentImpl:C.lQ,_fireContentReadyAction:(0,C.Mb)(function(){return this._contentReadyAction()}),_dispose(){this._contentReadyAction=null,this._detachKeyboardEvents(),this.callBase()},_resetActiveState(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility(Z){this.$element().toggleClass("dx-state-invisible",!Z)},_renderFocusState(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey(){const Z=this._focusTarget(),{accessKey:A}=this.option();Z.attr("accesskey",A)},_isFocusable(){const{focusStateEnabled:Z,disabled:A}=this.option();return Z&&!A},_eventBindingTarget(){return this.$element()},_focusTarget(){return this._getActiveElement()},_isFocusTarget:function(Z){return(0,S.A)(this._focusTarget()).toArray().includes(Z)},_findActiveTarget(Z){return Z.find(this._activeStateUnit).not(".dx-state-disabled")},_getActiveElement(){const Z=this._eventBindingTarget();return this._activeStateUnit?this._findActiveTarget(Z):Z},_renderFocusTarget(){const{tabIndex:Z}=this.option();this._focusTarget().attr("tabIndex",Z)},_keyboardEventBindingTarget(){return this._eventBindingTarget()},_refreshFocusEvent(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget(){return this._focusTarget()},_focusInHandler(Z){Z.isDefaultPrevented()||this._createActionByOption("onFocusIn",{beforeExecute:()=>this._updateFocusState(Z,!0),excludeValidators:["readOnly"]})({event:Z})},_focusOutHandler(Z){Z.isDefaultPrevented()||this._createActionByOption("onFocusOut",{beforeExecute:()=>this._updateFocusState(Z,!1),excludeValidators:["readOnly","disabled"]})({event:Z})},_updateFocusState(Z,A){let{target:M}=Z;this._isFocusTarget(M)&&this._toggleFocusClass(A,(0,S.A)(M))},_toggleFocusClass(Z,A){(A&&A.length?A:this._focusTarget()).toggleClass("dx-state-focused",Z)},_hasFocusClass(Z){return(0,S.A)(Z||this._focusTarget()).hasClass("dx-state-focused")},_isFocused(){return this._hasFocusClass()},_getKeyboardListeners:()=>[],_attachKeyboardEvents(){this._detachKeyboardEvents();const{focusStateEnabled:Z,onKeyboardHandled:A}=this.option(),M=this._getKeyboardListeners().length;(Z||M||A)&&(this._keyboardListenerId=T.QJ.on(this._keyboardEventBindingTarget(),this._focusTarget(),R=>this._keyboardHandler(R)))},_keyboardHandler(Z,A){if(!A){const{originalEvent:J,keyName:R,which:L}=Z,G=this._supportedKeys(J),Q=G[R]||G[L];if(void 0!==Q&&!Q.bind(this)(J,Z))return!1}const M=this._getKeyboardListeners(),{onKeyboardHandled:H}=this.option();return M.forEach(J=>J&&J._keyboardHandler(Z)),H&&H(Z),!0},_refreshFocusState(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState(){this._focusTarget().removeAttr("tabIndex"),this._toggleFocusClass(!1),this._detachFocusEvents(),this._detachKeyboardEvents()},_detachKeyboardEvents(){T.QJ.off(this._keyboardListenerId),this._keyboardListenerId=null},_attachHoverEvents(){const{hoverStateEnabled:Z}=this.option(),A=this._activeStateUnit,M=this._eventBindingTarget();T.PT.off(M,{selector:A,namespace:"UIFeedback"}),Z&&T.PT.on(M,new d.A(H=>{let{event:J,element:R}=H;this._hoverStartHandler(J),this.option("hoveredElement",(0,S.A)(R))},{excludeValidators:["readOnly"]}),H=>{this.option("hoveredElement",null),this._hoverEndHandler(H)},{selector:A,namespace:"UIFeedback"})},_attachFeedbackEvents(){const{activeStateEnabled:Z}=this.option(),A=this._activeStateUnit,M=this._eventBindingTarget();T.vu.off(M,{namespace:"UIFeedback",selector:A}),Z&&T.vu.on(M,new d.A(H=>{let{event:J,element:R}=H;return this._toggleActiveState((0,S.A)(R),!0,J)}),new d.A(H=>{let{event:J,element:R}=H;return this._toggleActiveState((0,S.A)(R),!1,J)},{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:A,namespace:"UIFeedback"})},_detachFocusEvents(){const Z=this._focusEventTarget();T.XC.off(Z,{namespace:`${this.NAME}Focus`})},_attachFocusEvents(){const Z=this._focusEventTarget();T.XC.on(Z,A=>this._focusInHandler(A),A=>this._focusOutHandler(A),{namespace:`${this.NAME}Focus`,isFocusable:(A,M)=>(0,S.A)(M).is(w.nq)})},_hoverStartHandler:C.lQ,_hoverEndHandler:C.lQ,_toggleActiveState(Z,A){this.option("isActive",A),Z.toggleClass("dx-state-active",A)},_updatedHover(){const Z=this._options.silent("hoveredElement");this._hover(Z,Z)},_findHoverTarget(Z){return Z&&Z.closest(this._activeStateUnit||this._eventBindingTarget())},_hover(Z,A){const{hoverStateEnabled:M,disabled:H,isActive:J}=this.option();if((A=this._findHoverTarget(A))&&A.toggleClass("dx-state-hover",!1),Z&&M&&!H&&!J){const R=this._findHoverTarget(Z);R&&R.toggleClass("dx-state-hover",!0)}},_toggleDisabledState(Z){this.$element().toggleClass("dx-state-disabled",!!Z),this.setAria("disabled",Z||void 0)},_toggleIndependentState(){this.$element().toggleClass("dx-state-independent",this.option("ignoreParentReadOnly"))},_setWidgetOption(Z,A){if(!this[Z])return;if((0,P.Qd)(A[0]))return void(0,e.__)(A[0],(R,L)=>this._setWidgetOption(Z,[R,L]));const M=A[0];let H=A[1];1===A.length&&(H=this.option(M));const J=this[`${Z}OptionMap`];this[Z].option(J?J(M):M,H)},_optionChanged(Z){const{name:A,value:M,previousValue:H}=Z;switch(A){case"disabled":this._toggleDisabledState(M),this._updatedHover(),this._refreshFocusState();break;case"hint":this._renderHint();break;case"ignoreParentReadOnly":this._toggleIndependentState();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents(),this._updatedHover();break;case"tabIndex":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":case"useResizeObserver":break;case"accessKey":this._renderAccessKey();break;case"hoveredElement":this._hover(M,H);break;case"isActive":this._updatedHover();break;case"visible":this._toggleVisibility(M),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(M?"shown":"hiding");break;case"onKeyboardHandled":this._attachKeyboardEvents();break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(Z)}},_isVisible(){const{visible:Z}=this.option();return this.callBase()&&Z},beginUpdate(){this._ready(!1),this.callBase()},endUpdate(){this.callBase(),this._initialized&&this._ready(!0)},_ready(Z){if(0===arguments.length)return this._isReady;this._isReady=Z},setAria(){if((0,P.Qd)(arguments.length<=0?void 0:arguments[0])){const Z=(arguments.length<=1?void 0:arguments[1])||this._getAriaTarget();(0,e.__)(arguments.length<=0?void 0:arguments[0],(A,M)=>F(A,M,Z))}else F(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],(arguments.length<=2?void 0:arguments[2])||this._getAriaTarget())},isReady(){return this._ready()},repaint(){this._refresh()},focus(){T.XC.trigger(this._focusTarget())},registerKeyHandler(Z,A){const M=this._supportedKeys();this._supportedKeys=()=>(0,k.X)(M,{[Z]:A})}});X.getOptionsFromContainer=Z=>{let{name:A,fullName:M,value:H}=Z,J={};return A===M?J=H:J[M.split(".").pop()]=H,J};const U=X},7096:(En,it,p)=>{"use strict";p.d(it,{a:()=>k});var S=p(3746),d=p(65),m=p(4526),T=p(6347),C=p(3527),e=p(656);let k=(()=>{var w;class P{constructor(x,b){this.http=b,this.scope=x.getScope(),this.apiEndpoint=this.scope.apiEndpoint}uploadAsset(x){const b=new FormData;return b.append("file",x),this.http.post(this.apiEndpoint+"upload",b,{reportProgress:!0,observe:"events",headers:new d.Lr({enctype:"multipart/form-data"})}).pipe((0,C.T)(B=>{switch(B.type){case d.hv.UploadProgress:return Math.round(B.loaded/(B.total||1)*100);case d.hv.Response:return B.body;default:return 0}}),(0,m.W)(B=>{throw new Error("Error: "+B.message)}),(0,T.j)(()=>{this.checkImageTypeSupport(x)}))}checkImageTypeSupport(x){const b=["image/gif","image/exif","image/png","image/tif","image/tiff","image/tff","image/jpg","image/jpeg","image/jpe","image/jif","image/jfif","image/jfi","image/webp"];return x.size<=this.scope.globalSettings.uploadMaxFileSizeInBytes&&b.includes(x.type)?b.includes(x.type):(alert("Wrong type or filesize"),!1)}static#e=w=()=>(this.\u0275fac=function(b){return new(b||P)(e.KVO(S.A),e.KVO(d.Qq))},this.\u0275prov=e.jDH({token:P,factory:P.\u0275fac,providedIn:"root"}))}return w(),P})()},7101:(En,it,p)=>{"use strict";p.d(it,{v:()=>T});var S=p(943),d=p(9867),m=p(6111);function T(e=C){return(0,d.N)((k,w)=>{let P=!1;k.subscribe((0,m._)(w,v=>{P=!0,w.next(v)},()=>P?w.complete():w.error(e())))})}function C(){return new S.G}},7110:(En,it,p)=>{"use strict";p.d(it,{A:()=>d});const d=new(p(8167).A)},7236:(En,it,p)=>{"use strict";p.d(it,{M:()=>C});var S=p(4418),d=p(9867),m=p(6111),T=p(9656);function C(e,k,w){const P=(0,S.T)(e)||k||w?{next:e,error:k,complete:w}:e;return P?(0,d.N)((v,x)=>{var b;null===(b=P.subscribe)||void 0===b||b.call(P);let B=!0;v.subscribe((0,m._)(x,j=>{var F;null===(F=P.next)||void 0===F||F.call(P,j),x.next(j)},()=>{var j;B=!1,null===(j=P.complete)||void 0===j||j.call(P),x.complete()},j=>{var F;B=!1,null===(F=P.error)||void 0===F||F.call(P,j),x.error(j)},()=>{var j,F;B&&(null===(j=P.unsubscribe)||void 0===j||j.call(P)),null===(F=P.finalize)||void 0===F||F.call(P)}))}):T.D}},7248:(En,it,p)=>{"use strict";p.d(it,{T:()=>Ke,u:()=>Be});var S=p(4303),d=p(656),m=p(1973),T=p(5973),C=p(9522),e=p(5397),k=p(2925),w=p(5704),P=p(5944),v=p(5345),x=p(4859),b=p(6021),B=p(1832),j=p(3090),F=p(2660),X=p(7271),U=p(1363),Z=p(1830),A=p(6110),M=p(5335),H=p(778),J=p(4072),R=p(9293),L=p(8360),G=p(6520),Q=p(127),z=p(699),K=p(4647);function ee(q,Oe){return(q||Oe)&&!(q&&Oe)}const ke=G.A.inherit({_supportedKeys(){const q=this.callBase(),Oe=We=>this._list._keyboardHandler(We),fe=this.option("rtlEnabled");return(0,j.X)({},q,{backspace(We){if(!this._isCaretAtTheStart())return;this._processKeyboardEvent(We),this._isTagRemoved=!0;const Ue=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==Ue.length&&(this._preserveFocusedTag=!0,this._removeTagElement(Ue),delete this._preserveFocusedTag)},upArrow:(We,Ue)=>We.altKey||!this._list?q.upArrow.call(this,We):Oe(Ue),downArrow:(We,Ue)=>We.altKey||!this._list?q.downArrow.call(this,We):Oe(Ue),del(We){if(!this._$focusedTag||!this._isCaretAtTheStart())return;this._processKeyboardEvent(We),this._isTagRemoved=!0;const Ue=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(Ue),delete this._preserveFocusedTag},enter(We,Ue){const Ve=this._list&&null!==this._list.option("focusedElement");if(this.option("acceptCustomValue")&&!Ve)return We.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler(We));this.option("opened")&&(this._saveValueChangeEvent(We),Oe(Ue),We.preventDefault())},space(We,Ue){const Ve=this.option("opened"),tt=this._shouldRenderSearchEvent();Ve&&!tt&&(this._saveValueChangeEvent(We),Oe(Ue),We.preventDefault())},leftArrow(We){if(!this._isCaretAtTheStart()||this._isEmpty()||this._isEditable()&&fe&&!this._$focusedTag)return;We.preventDefault();const Ue=fe?"next":"prev";this._moveTagFocus(Ue),!this.option("multiline")&&this._scrollContainer(Ue)},rightArrow(We){if(!this._isCaretAtTheStart()||this._isEmpty()||this._isEditable()&&!fe&&!this._$focusedTag)return;We.preventDefault();const Ue=fe?"prev":"next";this._moveTagFocus(Ue),!this.option("multiline")&&this._scrollContainer(Ue)}})},_processKeyboardEvent(q){q.preventDefault(),q.stopPropagation(),this._saveValueChangeEvent(q)},_isEmpty(){return 0===this._getValue().length},_updateTagsContainer(q){this._$tagsContainer=q.addClass("dx-tag-container")},_allowSelectItemByTab:()=>!1,_isCaretAtTheStart(){const q=(0,z.A)(this._input());return 0===q?.start&&0===q.end},_updateInputAriaActiveDescendant(q){this.setAria("activedescendant",q,this._input())},_moveTagFocus(q,Oe){if(!this._$focusedTag){const We=this._tagElements();return this._$focusedTag="next"===q?We.first():We.last(),this._toggleFocusClass(!0,this._$focusedTag),void this._updateInputAriaActiveDescendant(this._$focusedTag.attr("id"))}const fe=this._$focusedTag[q](".dx-tag");fe.length>0?(this._replaceFocusedTag(fe),this._updateInputAriaActiveDescendant(fe.attr("id"))):(Oe||"next"===q&&this._isEditable())&&(this._clearTagFocus(),this._updateInputAriaActiveDescendant())},_replaceFocusedTag(q){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=q,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),this._updateInputAriaActiveDescendant(),delete this._$focusedTag)},_focusClassTarget(q){return q&&q.length&&q[0]!==this._focusTarget()[0]?q:this.callBase()},_getLabelContainer(){return this._$tagsContainer},_getFieldElement(){return this._input()},_scrollContainer(q){if(this.option("multiline")||!(0,A.Vd)()||!this._$tagsContainer)return;const Oe=this._getScrollPosition(q);this._$tagsContainer.scrollLeft(Oe)},_getScrollPosition(q){return"start"===q||"end"===q?this._getBorderPosition(q):this._$focusedTag?this._getFocusedTagPosition(q):this._getBorderPosition("end")},_getBorderPosition(q){const Oe=this.option("rtlEnabled"),fe=ee("end"===q,Oe),We=Oe?-1:1;return ee(fe,!Oe)?0:We*(this._$tagsContainer.get(0).scrollWidth-(0,U.Ot)(this._$tagsContainer))},_getFocusedTagPosition(q){const fe=ee("next"===q,this.option("rtlEnabled"));let{left:We}=this._$focusedTag.position(),Ue=this._$tagsContainer.scrollLeft();return fe&&(We+=(0,U.Ot)(this._$focusedTag,!0)-(0,U.Ot)(this._$tagsContainer)),ee(fe,We<0)&&(Ue+=We),Ue},_setNextValue:x.lQ,_getDefaultOptions(){return(0,j.X)(this.callBase(),{value:[],showDropDownButton:!1,maxFilterQueryLength:1500,tagTemplate:"tag",selectAllText:L.A.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:q=>{this._multiTagPreparingHandler(q.args[0])},excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler(q){const{length:Oe}=this._getValue();q.text=this.option("showMultiTagOnly")?L.A.getFormatter("dxTagBox-selected")(Oe):L.A.getFormatter("dxTagBox-moreSelected")(Oe-this.option("maxDisplayedTags")+1)},_initDynamicTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({tag:new P.U((q,Oe)=>{const fe=(0,w.A)("<div>").addClass("dx-tag-content");(0,w.A)("<span>").text(Oe.text??Oe).appendTo(fe),(0,w.A)("<div>").addClass("dx-tag-remove-button").appendTo(fe),q.append(fe)},["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})})},_toggleSubmitElement(q){q?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement(){this.option("useSubmitBehavior")&&(this._$submitElement=(0,w.A)("<select>").attr({multiple:"multiple","aria-label":"Selected items"}).css("display","none").appendTo(this.$element()))},_setSubmitValue(){if(!this.option("useSubmitBehavior"))return;const q=this._getValue(),Oe=[];for(let fe=0,We=q.length;fe<We;fe++){const Ue=this._shouldUseDisplayValue(q[fe]);Oe.push((0,w.A)("<option>").val(Ue?this._displayGetter(q[fe]):q[fe]).attr("selected","selected"))}this._getSubmitElement().empty().append(Oe)},_initMarkup(){this._tagElementsCache=(0,w.A)();const q=!this.option("multiline");this.$element().addClass("dx-tagbox").toggleClass("dx-tagbox-only-select",!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass("dx-tagbox-single-line",q),this.setAria({role:"application",roledescription:"tagbox"},this.$element()),this._initTagTemplate(),this.callBase()},_getNewLabelId:(q,Oe,fe)=>q?fe?q===Oe?void 0:q.split(" ").filter(We=>We!==Oe).join(" "):`${q} ${Oe}`:Oe,_updateElementAria(q,Oe){if(!q)return void this.setAria("labelledby",void 0,this.$element());const We=this.$element().attr("aria-labelledby"),Ue=this._getNewLabelId(We,q,Oe);this.setAria("labelledby",Ue,this.$element())},_render(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField(){const q=!(0,Z.O9)(this.option("fieldTemplate"));this.$element().toggleClass("dx-tagbox-default-template",q).toggleClass("dx-tagbox-custom-template",!q),this.callBase()},_renderTagRemoveAction(){const q=this._createAction(this._removeTagHandler.bind(this)),Oe=(0,R.b4)(H.U,"dxTagBoxTagRemove");J.A.off(this._$tagsContainer,Oe),J.A.on(this._$tagsContainer,Oe,".dx-tag-remove-button",fe=>{q({event:fe})})},_renderSingleLineScroll(){const q=(0,R.b4)("dxmousewheel",this.NAME),Oe=this.$element(),fe=this.option("multiline");J.A.off(Oe,q),"desktop"===T.A.real().deviceType?fe||J.A.on(Oe,q,this._tagContainerMouseWheelHandler.bind(this)):this._$tagsContainer&&this._$tagsContainer.css("overflowX",fe?"":"auto")},_tagContainerMouseWheelHandler(q){const Oe=this._$tagsContainer.scrollLeft(),fe=-.3*q.delta;if(!(0,R.By)(q)&&(0,K.f)(this._$tagsContainer,fe,!0))return this._$tagsContainer.scrollLeft(Oe+fe),!1},_renderEvents(){this.callBase();const q=this._input(),Oe=(0,R.b4)("keydown",this.NAME);J.A.on(q,Oe,fe=>{const We=(0,R.YD)(fe);!this._isControlKey(We)&&this._isEditable()&&this._clearTagFocus()})},_popupWrapperClass(){return`${this.callBase()} dx-tagbox-popup-wrapper`},_renderInput(){this.callBase(),this._renderPreventBlurOnInputClick()},_renderPreventBlurOnInputClick(){const q=(0,R.b4)("mousedown","dxTagBox");J.A.off(this._inputWrapper(),q),J.A.on(this._inputWrapper(),q,Oe=>{Oe.target!==this._input()[0]&&this._isFocused()&&Oe.preventDefault()})},_renderInputValueImpl(){return this._renderMultiSelect()},_loadInputValue:()=>(0,b.z7)(),_clearTextValue(){this._input().val(""),this._toggleEmptinessEventHandler(),this.option("text","")},_focusInHandler(q){this._preventNestedFocusEvent(q)||this._scrollContainer("end"),this.callBase(q)},_renderInputValue(){return this.option("displayValue",this._searchValue()),this.callBase()},_restoreInputText(q){q||this._clearTextValue()},_focusOutHandler(q){this._preventNestedFocusEvent(q)||(this._clearTagFocus(),this._scrollContainer("start")),this.callBase(q)},_initSelectAllValueChangedAction(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList(){this.callBase(),this._setListDataSourceFilter()},_canListHaveFocus(){return"useButtons"===this.option("applyValueMode")},_listConfig(){const q=this.option("showSelectionControls")?"all":"multiple";return(0,j.X)(this.callBase(),{maxFilterLengthInRequest:this.option("maxFilterQueryLength"),selectionMode:q,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:Oe=>{let{value:fe}=Oe;this._selectAllValueChangeAction({value:fe})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect(){const q=(0,b.cY)();return this._updateTagsContainer(this._$textEditorInputContainer),this._renderInputSize(),this._renderTags().done(()=>{this._popup&&this._popup.refreshPosition(),q.resolve()}).fail(q.reject),q.promise()},_listItemClickHandler(q){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&(this.callBase(q),this._saveValueChangeEvent(void 0))},_shouldClearFilter(){const q=this.callBase();return!this.option("showSelectionControls")&&q},_renderInputSize(){const q=this._input(),Oe=q.val(),fe=(0,Z.Kg)(Oe)&&Oe;let Ue,We="";const Ve=this.option("searchEnabled")||this.option("acceptCustomValue");if(fe&&Ve){const tt=(0,B.D2)(q,Oe,{includePaddings:!0});tt.insertAfter(q),We=(0,U.Ot)(tt)+5,tt.remove()}else Oe||(Ue=1);q.css("width",We),q.attr("size",Ue??"")},_renderInputSubstitution(){this.callBase(),this._updateWidgetHeight()},_getValue(){return this.option("value")||[]},_multiTagRequired(){const q=this._getValue(),Oe=this.option("maxDisplayedTags");return(0,Z.O9)(Oe)&&q.length>Oe},_renderMultiTag(q){const Oe=`dx-${new k.A}`,fe=(0,w.A)("<div>").attr("id",Oe).addClass("dx-tag").addClass("dx-tagbox-multi-tag"),We={multiTagElement:(0,C.cc)(fe),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(We),!We.cancel&&(fe.data("dxTagData",We.text),fe.insertBefore(q),this._tagTemplate.render({model:We.text,container:(0,C.cc)(fe)}),this._setTagAria(fe,We.text),this._updateElementAria(Oe),fe)},_getFilter(q){const Oe=this._dataController.filter(),fe=q.getCombinedFilter(this.option("valueExpr"),Oe),We=encodeURI(JSON.stringify(fe)).length,Ue=this.option("maxFilterQueryLength");if(We<=Ue)return fe;Q.A.log("W1019",Ue)},_getFilteredItems(q){var Oe,fe;null===(Oe=this._loadFilteredItemsPromise)||void 0===Oe||Oe.reject();const We=new X.H(q),Ue=null===(fe=this._list)||void 0===fe?void 0:fe.option("selectedItems"),Ve=!!Ue&&this._list._dataController.isLoaded(),tt=Ue||this.option("selectedItems"),at=We.getLocalFilter(this._valueGetter),Vt=tt.filter(at),qe=Vt.length===q.length,Nt=(0,b.cY)(),et=this._dataController;if((!this._isDataSourceChanged||Ve)&&qe)return Nt.resolve(Vt).promise();const{customQueryParams:ue,expand:me,select:Te}=et.loadOptions(),je=this._getFilter(We);return et.loadFromStore({filter:je,customQueryParams:ue,expand:me,select:Te}).done((Ne,lt)=>{if(this._isDataSourceChanged=!1,this._disposed)return void Nt.reject();const{data:Qe}=(0,M.Xp)(Ne,lt),Ct=et.applyMapFunction(Qe);Nt.resolve(Ct.filter(at))}).fail(Nt.reject),this._loadFilteredItemsPromise=Nt,Nt.promise()},_createTagsData(q,Oe){const fe=[],We={},Ue="this"===this._valueGetterExpr(),Ve={};Oe.forEach(Vt=>{const qe=Ue?JSON.stringify(Vt):this._valueGetter(Vt);Ve[qe]=Vt});const tt=[];q.forEach((Vt,qe)=>{const Nt=Ve[Ue?JSON.stringify(Vt):Vt];if(Ue&&!(0,Z.O9)(Nt))tt.push(this._loadItem(Vt,We).always(et=>{const ue=this._createTagData(et,Vt);fe.splice(qe,0,ue)}));else{const et=this._createTagData(Nt,Vt);fe.splice(qe,0,et)}});const at=(0,b.cY)();return b.z7.apply(this,tt).always(()=>{at.resolve(fe)}),at.promise()},_createTagData(q,Oe){if((0,Z.O9)(q))return this._selectedItems.push(q),q;const fe=this.option("selectedItem");return this._valueGetter(fe)===Oe?fe:Oe},_isGroupedData(){return this.option("grouped")&&!this._dataController.group()},_getItemsByValues(q){const Oe=[];return q.forEach(fe=>{const We=this._getItemFromPlain(fe);(0,Z.O9)(We)&&Oe.push(We)}),Oe},_getFilteredGroupedItems(q){const Oe=(0,b.cY)();return this._filteredGroupedItemsLoadPromise&&this._dataController.cancel(this._filteredGroupedItemsLoadPromise.operationId),this._dataController.items().length?Oe.resolve(this._getItemsByValues(q)):this._filteredGroupedItemsLoadPromise=this._dataController.load().done(()=>{Oe.resolve(this._getItemsByValues(q))}).fail(()=>{Oe.resolve([])}).always(()=>{this._filteredGroupedItemsLoadPromise=void 0}),Oe.promise()},_loadTagsData(){const q=this._getValue(),Oe=(0,b.cY)();return this._selectedItems=[],(this._isGroupedData()?this._getFilteredGroupedItems(q):this._getFilteredItems(q)).done(We=>{this._createTagsData(q,We).always(Ve=>{Oe.resolve(Ve)})}).fail(Oe.reject.bind(this)),Oe.promise()},_renderTags(){const q=(0,b.cY)();let Oe=!1;return this._shouldGetItemsFromPlain(this._valuesToUpdate)&&(this._selectedItems=this._getItemsFromPlain(this._valuesToUpdate),this._selectedItems.length===this._valuesToUpdate.length&&(this._renderTagsImpl(this._selectedItems),Oe=!0,q.resolve())),Oe||this._loadTagsData().done(fe=>{this._disposed?q.reject():(this._renderTagsImpl(fe),q.resolve())}).fail(q.reject),q.promise()},_renderTagsImpl(q){this._renderTagsCore(q),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus()},_shouldGetItemsFromPlain(q){return q&&this._dataController.isLoaded()&&q.length<=this._getPlainItems().length},_getItemsFromPlain(q){let Oe=this._getSelectedItemsFromList(q);if(0===Oe.length&&q.length>0||Oe.length<q.length){const We=this._getPlainItems();Oe=this._filterSelectedItems(We,q)}return Oe},_getSelectedItemsFromList(q){var Oe;const fe=null===(Oe=this._list)||void 0===Oe?void 0:Oe.option("selectedItems");let We=[];return q.length===fe?.length&&(We=this._filterSelectedItems(fe,q)),We},_filterSelectedItems(q,Oe){return q.filter(We=>{let Ue;for(let Ve=0;Ve<Oe.length;Ve++)if(Ue=Oe[Ve],(0,Z.Gv)(Ue)){if(this._isValueEquals(We,Ue))return!0}else if(this._isValueEquals(this._valueGetter(We),Ue))return!0;return!1},this)},_integrateInput(){this._isInputReady.resolve(),this.callBase();const q=this.$element().find(".dx-texteditor-input-container");this._updateTagsContainer(q),this._renderTagRemoveAction()},_renderTagsCore(q){var Oe;null===(Oe=this._isInputReady)||void 0===Oe||Oe.reject(),this._isInputReady=(0,b.cY)(),this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags(),this._input().length>0&&this._isInputReady.resolve(),(0,b.z7)(this._isInputReady).done(()=>{this._renderTagsElements(q)})},_renderTagsElements(q){const Oe=this._multiTagRequired()&&this._renderMultiTag(this._input()),fe=this.option("showMultiTagOnly"),We=this.option("maxDisplayedTags");q.forEach((Ue,Ve)=>{if(Oe&&fe||Oe&&!fe&&Ve-We>=-1)return!1;this._renderTag(Ue,Oe||this._input())}),this._isFocused()&&this._scrollContainer("end"),this._refreshTagElements()},_cleanTags(){if(this._multiTagRequired())this._tagElements().remove();else{const q=this._tagElements(),Oe=this._getValue();(0,F.__)(q,(fe,We)=>{const Ue=(0,w.A)(We),Ve=Ue.data("dxTagData");null!=Oe&&Oe.includes(Ve)||Ue.remove()})}this._updateElementAria()},_renderEmptyState(){const q=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(q),this._renderDisplayText()},_renderDisplayText(){this._renderInputSize()},_refreshTagElements(){this._tagElementsCache=this.$element().find(".dx-tag")},_tagElements(){return this._tagElementsCache},_applyTagTemplate(q,Oe){this._tagTemplate.render({model:q,container:(0,C.cc)(Oe)})},_renderTag(q,Oe){const fe=this._valueGetter(q);if(!(0,Z.O9)(fe))return;let We=this._getTag(fe);const Ue=this._displayGetter(q),Ve=this._getItemModel(q,Ue);if(We)(0,Z.O9)(Ue)&&(We.empty(),this._applyTagTemplate(Ve,We)),We.removeClass("dx-tag-custom"),this._updateElementAria(We.attr("id"));else{const tt=`dx-${new k.A}`;We=this._createTag(fe,Oe,tt),this._setTagAria(We,(0,Z.O9)(Ue)?Ue:fe),(0,Z.O9)(q)?this._applyTagTemplate(Ve,We):(We.addClass("dx-tag-custom"),this._applyTagTemplate(fe,We)),this._updateElementAria(tt)}},_setTagAria(q,Oe){const fe={role:"button",label:Oe,roledescription:L.A.format("dxTagBox-tagRoleDescription")};this.setAria(fe,q)},_getItemModel:(q,Oe)=>(0,Z.Gv)(q)&&(0,Z.O9)(Oe)?q:(0,x.YD)(Oe,""),_getTag(q){const Oe=this._tagElements(),fe=Oe.length;let We=!1;for(let Ue=0;Ue<fe;Ue++){const Ve=Oe[Ue],tt=(0,e.p)(Ve,"dxTagData");if(q===tt||(0,x.RL)(q,tt)){We=(0,w.A)(Ve);break}}return We},_createTag:(q,Oe,fe)=>(0,w.A)("<div>").attr("id",fe).addClass("dx-tag").data("dxTagData",q).insertBefore(Oe),_toggleEmptinessEventHandler(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler(q){this.callBase(q),this._clearTextValue()},_removeTagHandler(q){const Oe=q.event;Oe.stopPropagation(),this._saveValueChangeEvent(Oe);const fe=(0,w.A)(Oe.target).closest(".dx-tag");this._removeTagElement(fe)},_removeTagElement(q){if(q.hasClass("dx-tagbox-multi-tag"))return void(this.option("showMultiTagOnly")?this.clear():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags"))));const Oe=q.data("dxTagData"),fe=q.attr("id");this._removeTagWithUpdate(Oe),this._updateElementAria(fe,!0),this._refreshTagElements()},_updateField:x.lQ,_removeTagWithUpdate(q){const Oe=this._getValue().slice();this._removeTag(Oe,q),this.option("value",Oe),this.option("selectedItem",null),0===Oe.length&&this._clearTagFocus()},_getCurrentValue(){return this._lastValue()},_selectionChangeHandler(q){if("useButtons"===this.option("applyValueMode"))return;const Oe=this._getValue().slice();if((0,F.__)(q.removedItems||[],(fe,We)=>{this._removeTag(Oe,this._valueGetter(We))}),(0,F.__)(q.addedItems||[],(fe,We)=>{this._addTag(Oe,this._valueGetter(We))}),this._updateWidgetHeight(),!(0,x.RL)(this._list.option("selectedItemKeys"),this.option("value"))){const fe=this._list._getSelectionChangeEvent();fe&&this._saveValueChangeEvent(fe),this.option("value",Oe)}this._list._saveSelectionChangeEvent(void 0)},_removeTag(q,Oe){const fe=this._valueIndex(Oe,q);fe>=0&&q.splice(fe,1)},_addTag(q,Oe){this._valueIndex(Oe)<0&&q.push(Oe)},_fieldRenderData(){return this._selectedItems.slice()},_completeSelection(q){this.option("showSelectionControls")||this._setValue(q)},_setValue(q){var Oe;if(null===q)return;const fe="useButtons"===this.option("applyValueMode"),We=this._valueIndex(q),Ue=(fe?(null===(Oe=this._list)||void 0===Oe?void 0:Oe.option("selectedItemKeys"))||[]:this._getValue()).slice();var Ve;We>=0?Ue.splice(We,1):Ue.push(q),fe?null===(Ve=this._list)||void 0===Ve||Ve.option("selectedItemKeys",Ue):this.option("value",Ue)},_isSelectedValue(q,Oe){return this._valueIndex(q,null,Oe)>-1},_valueIndex(q,Oe,fe){let We=-1;return fe&&"object"!=typeof q&&(fe.indexByValues||(fe.indexByValues={},(Oe=Oe||this._getValue()).forEach((Ue,Ve)=>{fe.indexByValues[Ue]=Ve})),q in fe.indexByValues)?fe.indexByValues[q]:(Oe=Oe||this._getValue(),(0,F.__)(Oe,(Ue,Ve)=>{if(this._isValueEquals(q,Ve))return We=Ue,!1}),We)},_lastValue(){const q=this._getValue();return q[q.length-1]??null},_shouldRenderSearchEvent(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler(q){this.option("searchEnabled")&&q&&!this._isTagRemoved&&(this.callBase(arguments),this._setListDataSourceFilter()),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight(){const q=this.$element(),Oe=(0,U.Oq)(q);this._renderInputSize();const fe=(0,U.Oq)(q);this._popup&&this.option("opened")&&this._isEditable()&&fe!==Oe&&this._popup.repaint()},_refreshSelected(){var q;null!==(q=this._list)&&void 0!==q&&q.getDataSource()&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter(){const q=this._dataController;delete this._userFilter,q.filter(null),q.reload()},_setListDataSourceFilter(){if(!this.option("hideSelectedItems")||!this._list)return;const q=this._dataController,Oe=this._valueGetterExpr();if((0,Z.Kg)(Oe)&&"this"!==Oe){const fe=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=q.filter()||null),this._userFilter&&fe.push(this._userFilter),q.filter(fe.length?fe:null)}else q.filter(this._dataSourceFilterFunction.bind(this));q.load()},_dataSourceFilterExpr(){const q=[];return this._getValue().forEach(Oe=>q.push(["!",[this._valueGetterExpr(),Oe]])),q},_dataSourceFilterFunction(q){const Oe=this._valueGetter(q);let fe=!0;return(0,F.__)(this._getValue(),(We,Ue)=>{if(this._isValueEquals(Ue,Oe))return fe=!1,!1}),fe},_dataSourceChangedHandler(){this._isDataSourceChanged=!0,this.callBase.apply(this,arguments)},_applyButtonHandler(q){this._saveValueChangeEvent(q.event),this.option("value",this._getSortedListValues()),this._clearTextValue(),this.callBase(),this._cancelSearchIfNeed()},_getSortedListValues(){const q=this._getListValues(),Oe=this.option("value")||[],fe=q.length?(0,v._N)(Oe,q):[],We=fe.length?(0,v.R3)(q,Oe):q;return fe.concat(We)},_getListValues(){return this._list?this._getPlainItems(this._list.option("selectedItems")).map(q=>this._valueGetter(q)):[]},_setListDataSource(){const q=this._getValue();this.callBase(),q!==this.option("value")&&this.option("value",q),this._refreshSelected()},_renderOpenedState(){this.callBase(),"useButtons"===this.option("applyValueMode")&&!this.option("opened")&&this._refreshSelected()},clear(){this._restoreInputText();const q=this._getDefaultOptions().value,Oe=this.option("value");q&&0===q.length&&Oe&&q.length===Oe.length||this.callBase()},_clean(){this.callBase(),delete this._defaultTagTemplate,delete this._valuesToUpdate,delete this._tagTemplate},_getSelectedItemsDifference(q,Oe){if(!q.length)return{addedItems:[],removedItems:Oe.slice()};if(!Oe.length)return{addedItems:q.slice(),removedItems:[]};const fe=Oe.reduce((Ue,Ve)=>(Ue[this._valueGetter(Ve)]=Ve,Ue),{}),We=[];return q.forEach(Ue=>{const Ve=this._valueGetter(Ue);fe[Ve]||We.push(Ue),delete fe[Ve]}),{addedItems:We,removedItems:Object.values(fe)}},_optionChanged(q){const{name:Oe,value:fe,previousValue:We}=q;switch(Oe){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":fe?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(fe);break;case"displayExpr":this.callBase(q),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"readOnly":case"disabled":this.callBase(q),!fe&&this._refreshEvents();break;case"value":this._valuesToUpdate=fe,this.callBase(q),this._valuesToUpdate=void 0,this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(Oe,fe);break;case"selectedItem":case"maxFilterQueryLength":break;case"selectedItems":this._selectionChangedAction(this._getSelectedItemsDifference(fe,We));break;case"multiline":this.$element().toggleClass("dx-tagbox-single-line",!fe),this._renderSingleLineScroll();break;default:this.callBase(q)}},_getActualSearchValue(){return this.callBase()||this._searchValue()},_popupHidingHandler(){this.callBase(),this._clearFilter()}});(0,m.A)("dxTagBox",ke);const de=ke;var Ae=p(8832),pe=p(3349),Ee=p(8914);const le={provide:Ae.kq,useExisting:(0,d.Rfq)(()=>Ke),multi:!0};let Ke=(()=>{class q extends pe.ic{_watcherHelper;_idh;instance=null;get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(fe){this._setOption("acceptCustomValue",fe)}get accessKey(){return this._getOption("accessKey")}set accessKey(fe){this._setOption("accessKey",fe)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(fe){this._setOption("activeStateEnabled",fe)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(fe){this._setOption("applyValueMode",fe)}get buttons(){return this._getOption("buttons")}set buttons(fe){this._setOption("buttons",fe)}get customItemCreateEvent(){return this._getOption("customItemCreateEvent")}set customItemCreateEvent(fe){this._setOption("customItemCreateEvent",fe)}get dataSource(){return this._getOption("dataSource")}set dataSource(fe){this._setOption("dataSource",fe)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(fe){this._setOption("deferRendering",fe)}get disabled(){return this._getOption("disabled")}set disabled(fe){this._setOption("disabled",fe)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(fe){this._setOption("displayExpr",fe)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(fe){this._setOption("dropDownButtonTemplate",fe)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(fe){this._setOption("dropDownOptions",fe)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(fe){this._setOption("elementAttr",fe)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(fe){this._setOption("fieldTemplate",fe)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(fe){this._setOption("focusStateEnabled",fe)}get grouped(){return this._getOption("grouped")}set grouped(fe){this._setOption("grouped",fe)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(fe){this._setOption("groupTemplate",fe)}get height(){return this._getOption("height")}set height(fe){this._setOption("height",fe)}get hideSelectedItems(){return this._getOption("hideSelectedItems")}set hideSelectedItems(fe){this._setOption("hideSelectedItems",fe)}get hint(){return this._getOption("hint")}set hint(fe){this._setOption("hint",fe)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(fe){this._setOption("hoverStateEnabled",fe)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(fe){this._setOption("inputAttr",fe)}get isDirty(){return this._getOption("isDirty")}set isDirty(fe){this._setOption("isDirty",fe)}get isValid(){return this._getOption("isValid")}set isValid(fe){this._setOption("isValid",fe)}get items(){return this._getOption("items")}set items(fe){this._setOption("items",fe)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(fe){this._setOption("itemTemplate",fe)}get label(){return this._getOption("label")}set label(fe){this._setOption("label",fe)}get labelMode(){return this._getOption("labelMode")}set labelMode(fe){this._setOption("labelMode",fe)}get maxDisplayedTags(){return this._getOption("maxDisplayedTags")}set maxDisplayedTags(fe){this._setOption("maxDisplayedTags",fe)}get maxFilterQueryLength(){return this._getOption("maxFilterQueryLength")}set maxFilterQueryLength(fe){this._setOption("maxFilterQueryLength",fe)}get maxLength(){return this._getOption("maxLength")}set maxLength(fe){this._setOption("maxLength",fe)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(fe){this._setOption("minSearchLength",fe)}get multiline(){return this._getOption("multiline")}set multiline(fe){this._setOption("multiline",fe)}get name(){return this._getOption("name")}set name(fe){this._setOption("name",fe)}get noDataText(){return this._getOption("noDataText")}set noDataText(fe){this._setOption("noDataText",fe)}get opened(){return this._getOption("opened")}set opened(fe){this._setOption("opened",fe)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(fe){this._setOption("openOnFieldClick",fe)}get placeholder(){return this._getOption("placeholder")}set placeholder(fe){this._setOption("placeholder",fe)}get readOnly(){return this._getOption("readOnly")}set readOnly(fe){this._setOption("readOnly",fe)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(fe){this._setOption("rtlEnabled",fe)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(fe){this._setOption("searchEnabled",fe)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(fe){this._setOption("searchExpr",fe)}get searchMode(){return this._getOption("searchMode")}set searchMode(fe){this._setOption("searchMode",fe)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(fe){this._setOption("searchTimeout",fe)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(fe){this._setOption("selectAllMode",fe)}get selectAllText(){return this._getOption("selectAllText")}set selectAllText(fe){this._setOption("selectAllText",fe)}get selectedItems(){return this._getOption("selectedItems")}set selectedItems(fe){this._setOption("selectedItems",fe)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(fe){this._setOption("showClearButton",fe)}get showDataBeforeSearch(){return this._getOption("showDataBeforeSearch")}set showDataBeforeSearch(fe){this._setOption("showDataBeforeSearch",fe)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(fe){this._setOption("showDropDownButton",fe)}get showMultiTagOnly(){return this._getOption("showMultiTagOnly")}set showMultiTagOnly(fe){this._setOption("showMultiTagOnly",fe)}get showSelectionControls(){return this._getOption("showSelectionControls")}set showSelectionControls(fe){this._setOption("showSelectionControls",fe)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(fe){this._setOption("stylingMode",fe)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(fe){this._setOption("tabIndex",fe)}get tagTemplate(){return this._getOption("tagTemplate")}set tagTemplate(fe){this._setOption("tagTemplate",fe)}get text(){return this._getOption("text")}set text(fe){this._setOption("text",fe)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(fe){this._setOption("useItemTextAsTitle",fe)}get validationError(){return this._getOption("validationError")}set validationError(fe){this._setOption("validationError",fe)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(fe){this._setOption("validationErrors",fe)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(fe){this._setOption("validationMessageMode",fe)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(fe){this._setOption("validationMessagePosition",fe)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(fe){this._setOption("validationStatus",fe)}get value(){return this._getOption("value")}set value(fe){this._setOption("value",fe)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(fe){this._setOption("valueChangeEvent",fe)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(fe){this._setOption("valueExpr",fe)}get visible(){return this._getOption("visible")}set visible(fe){this._setOption("visible",fe)}get width(){return this._getOption("width")}set width(fe){this._setOption("width",fe)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(fe){this._setOption("wrapItemText",fe)}onChange;onClosed;onContentReady;onCustomItemCreating;onDisposing;onEnterKey;onFocusIn;onFocusOut;onInitialized;onInput;onItemClick;onKeyDown;onKeyUp;onMultiTagPreparing;onOpened;onOptionChanged;onSelectAllValueChanged;onSelectionChanged;onValueChanged;acceptCustomValueChange;accessKeyChange;activeStateEnabledChange;applyValueModeChange;buttonsChange;customItemCreateEventChange;dataSourceChange;deferRenderingChange;disabledChange;displayExprChange;dropDownButtonTemplateChange;dropDownOptionsChange;elementAttrChange;fieldTemplateChange;focusStateEnabledChange;groupedChange;groupTemplateChange;heightChange;hideSelectedItemsChange;hintChange;hoverStateEnabledChange;inputAttrChange;isDirtyChange;isValidChange;itemsChange;itemTemplateChange;labelChange;labelModeChange;maxDisplayedTagsChange;maxFilterQueryLengthChange;maxLengthChange;minSearchLengthChange;multilineChange;nameChange;noDataTextChange;openedChange;openOnFieldClickChange;placeholderChange;readOnlyChange;rtlEnabledChange;searchEnabledChange;searchExprChange;searchModeChange;searchTimeoutChange;selectAllModeChange;selectAllTextChange;selectedItemsChange;showClearButtonChange;showDataBeforeSearchChange;showDropDownButtonChange;showMultiTagOnlyChange;showSelectionControlsChange;stylingModeChange;tabIndexChange;tagTemplateChange;textChange;useItemTextAsTitleChange;validationErrorChange;validationErrorsChange;validationMessageModeChange;validationMessagePositionChange;validationStatusChange;valueChange;valueChangeEventChange;valueExprChange;visibleChange;widthChange;wrapItemTextChange;onBlur;change(fe){}touched=fe=>{};get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(fe){this.setChildren("buttons",fe)}get itemsChildren(){return this._getOption("items")}set itemsChildren(fe){this.setChildren("items",fe)}constructor(fe,We,Ue,Ve,tt,at,Vt,qe){super(fe,We,Ue,Ve,Vt,qe),this._watcherHelper=Ve,this._idh=tt,this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"customItemCreating",emit:"onCustomItemCreating"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"multiTagPreparing",emit:"onMultiTagPreparing"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectAllValueChanged",emit:"onSelectAllValueChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"applyValueModeChange"},{emit:"buttonsChange"},{emit:"customItemCreateEventChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hideSelectedItemsChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxDisplayedTagsChange"},{emit:"maxFilterQueryLengthChange"},{emit:"maxLengthChange"},{emit:"minSearchLengthChange"},{emit:"multilineChange"},{emit:"nameChange"},{emit:"noDataTextChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"selectAllModeChange"},{emit:"selectAllTextChange"},{emit:"selectedItemsChange"},{emit:"showClearButtonChange"},{emit:"showDataBeforeSearchChange"},{emit:"showDropDownButtonChange"},{emit:"showMultiTagOnlyChange"},{emit:"showSelectionControlsChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"tagTemplateChange"},{emit:"textChange"},{emit:"useItemTextAsTitleChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),this._idh.setHost(this),at.setHost(this)}_createInstance(fe,We){return new de(fe,We)}writeValue(fe){this.eventHelper.lockedValueChangeEvent=!0,this.value=fe,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(fe){this.disabled=fe}registerOnChange(fe){this.change=fe}registerOnTouched(fe){this.touched=fe}_createWidget(fe){super._createWidget(fe),this.instance.on("focusOut",We=>{this.eventHelper.fireNgEvent("onBlur",[We])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(fe){super.ngOnChanges(fe),this.setupChanges("buttons",fe),this.setupChanges("dataSource",fe),this.setupChanges("items",fe),this.setupChanges("searchExpr",fe),this.setupChanges("selectedItems",fe),this.setupChanges("validationErrors",fe),this.setupChanges("value",fe)}setupChanges(fe,We){fe in this._optionsToUpdate||this._idh.setup(fe,We)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("selectedItems"),this._idh.doCheck("validationErrors"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(fe,We){let Ue=this._idh.setupSingle(fe,We),Ve=null!==this._idh.getChanges(fe,We);(Ue||Ve)&&super._setOption(fe,We)}static \u0275fac=function(We){return new(We||q)(S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(pe.zF),S.rXU(pe.jS),S.rXU(pe.$M),S.rXU(pe.fH),S.rXU(S.pJN),S.rXU(S.Agw))};static \u0275cmp=S.VBU({type:q,selectors:[["dx-tag-box"]],contentQueries:function(We,Ue,Ve){if(1&We&&(S.wni(Ve,Ee.BrI,4),S.wni(Ve,Ee.CVf,4)),2&We){let tt;S.mGM(tt=S.lsd())&&(Ue.buttonsChildren=tt),S.mGM(tt=S.lsd())&&(Ue.itemsChildren=tt)}},hostBindings:function(We,Ue){1&We&&S.bIt("valueChange",function(tt){return Ue.change(tt)})("onBlur",function(tt){return Ue.touched(tt)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",applyValueMode:"applyValueMode",buttons:"buttons",customItemCreateEvent:"customItemCreateEvent",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hideSelectedItems:"hideSelectedItems",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isDirty:"isDirty",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",label:"label",labelMode:"labelMode",maxDisplayedTags:"maxDisplayedTags",maxFilterQueryLength:"maxFilterQueryLength",maxLength:"maxLength",minSearchLength:"minSearchLength",multiline:"multiline",name:"name",noDataText:"noDataText",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",selectAllMode:"selectAllMode",selectAllText:"selectAllText",selectedItems:"selectedItems",showClearButton:"showClearButton",showDataBeforeSearch:"showDataBeforeSearch",showDropDownButton:"showDropDownButton",showMultiTagOnly:"showMultiTagOnly",showSelectionControls:"showSelectionControls",stylingMode:"stylingMode",tabIndex:"tabIndex",tagTemplate:"tagTemplate",text:"text",useItemTextAsTitle:"useItemTextAsTitle",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCustomItemCreating:"onCustomItemCreating",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onItemClick:"onItemClick",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onMultiTagPreparing:"onMultiTagPreparing",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onSelectAllValueChanged:"onSelectAllValueChanged",onSelectionChanged:"onSelectionChanged",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",applyValueModeChange:"applyValueModeChange",buttonsChange:"buttonsChange",customItemCreateEventChange:"customItemCreateEventChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hideSelectedItemsChange:"hideSelectedItemsChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxDisplayedTagsChange:"maxDisplayedTagsChange",maxFilterQueryLengthChange:"maxFilterQueryLengthChange",maxLengthChange:"maxLengthChange",minSearchLengthChange:"minSearchLengthChange",multilineChange:"multilineChange",nameChange:"nameChange",noDataTextChange:"noDataTextChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",selectAllModeChange:"selectAllModeChange",selectAllTextChange:"selectAllTextChange",selectedItemsChange:"selectedItemsChange",showClearButtonChange:"showClearButtonChange",showDataBeforeSearchChange:"showDataBeforeSearchChange",showDropDownButtonChange:"showDropDownButtonChange",showMultiTagOnlyChange:"showMultiTagOnlyChange",showSelectionControlsChange:"showSelectionControlsChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",tagTemplateChange:"tagTemplateChange",textChange:"textChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},standalone:!1,features:[S.Jv_([pe.zF,pe.jS,le,pe.fH,pe.$M]),S.Vt3,S.OA$],decls:0,vars:0,template:function(We,Ue){},encapsulation:2})}return q})(),Be=(()=>{class q{static \u0275fac=function(We){return new(We||q)};static \u0275mod=S.$C({type:q});static \u0275inj=d.G2t({imports:[Ee.GIV,Ee.u4t,Ee.df_,Ee.YLo,Ee.YaD,Ee.eNx,Ee.Bkf,Ee.nwt,Ee.hXw,Ee.YGc,Ee.gf0,Ee.rvW,Ee.Tob,Ee.$Ql,Ee.isg,Ee.POb,pe.p_,pe.xZ,Ee.GIV,Ee.u4t,Ee.df_,Ee.YLo,Ee.YaD,Ee.eNx,Ee.Bkf,Ee.nwt,Ee.hXw,Ee.YGc,Ee.gf0,Ee.rvW,Ee.Tob,Ee.$Ql,Ee.isg,Ee.POb,pe.xZ]})}return q})()},7251:(En,it,p)=>{"use strict";p.d(it,{A:()=>d});const d=(0,p(7754).A)({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0103:"validationCallback of an asynchronous rule should return a jQuery or a native promise",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' parameter of the 'onCustomItemCreating' function is empty or contains invalid data. Assign a custom object or a Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v{2}. {3}.',W0017:'Setting the "{0}" property with a function is deprecated since v21.2',W0018:'Setting the "position" property with a function is deprecated since v21.2',W0019:"DevExtreme: Unable to Locate a Valid License Key.\n\nIf you are using a 30-day trial version of DevExtreme, you must uninstall all copies of DevExtreme once your 30-day trial period expires. For terms and conditions that govern use of DevExtreme UI components/libraries, please refer to the DevExtreme End User License Agreement: https://js.devexpress.com/EULAs/DevExtremeComplete.\n\nTo use DevExtreme in a commercial project, you must purchase a license. For pricing/licensing options, please visit: https://js.devexpress.com/Buy.\n\nIf you have licensing-related questions or need help with a purchase, please email clientservices@devexpress.com.\n\n",W0020:"DevExtreme: License Key Has Expired.\n\nA mismatch exists between the license key used and the DevExtreme version referenced in this project.\n\nTo proceed, you can:\n\u2022 use a version of DevExtreme linked to your license key: https://www.devexpress.com/ClientCenter/DownloadManager\n\u2022 renew your DevExpress Subscription: https://www.devexpress.com/buy/renew (once you renew your subscription, you will be entitled to product updates and support service as defined in the DevExtreme End User License Agreement)\n\nIf you have licensing-related questions or need help with a renewal, please email clientservices@devexpress.com.\n\n",W0021:"DevExtreme: License Key Verification Has Failed.\n\nTo verify your DevExtreme license, make certain to specify a correct key in the GlobalConfig. If you continue to encounter this error, please visit https://www.devexpress.com/ClientCenter/DownloadManager to obtain a valid license key.\n\nIf you have a valid license and this problem persists, please submit a support ticket via the DevExpress Support Center. We will be happy to follow-up: https://supportcenter.devexpress.com/ticket/create.\n\n",W0022:"DevExtreme: Pre-release software. Not suitable for commercial use.\n\nPre-release software may contain deficiencies and as such, should not be considered for use or integrated in any mission critical application.\n\n",W0023:"DevExtreme: the following 'devextreme' package version does not match versions of other DevExpress products used in this application:\n\n{0}\n\nInteroperability between different versions of the products listed herein cannot be guaranteed.\n\n"})},7270:(En,it,p)=>{"use strict";p.d(it,{AQ:()=>J,C6:()=>d,Cl:()=>m,N3:()=>H,sH:()=>b,xN:()=>L});var S=function(W,ie){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(he,Ce){he.__proto__=Ce}||function(he,Ce){for(var ye in Ce)Object.prototype.hasOwnProperty.call(Ce,ye)&&(he[ye]=Ce[ye])})(W,ie)};function d(W,ie){if("function"!=typeof ie&&null!==ie)throw new TypeError("Class extends value "+String(ie)+" is not a constructor or null");function he(){this.constructor=W}S(W,ie),W.prototype=null===ie?Object.create(ie):(he.prototype=ie.prototype,new he)}var m=function(){return m=Object.assign||function(ie){for(var he,Ce=1,ye=arguments.length;Ce<ye;Ce++)for(var Me in he=arguments[Ce])Object.prototype.hasOwnProperty.call(he,Me)&&(ie[Me]=he[Me]);return ie},m.apply(this,arguments)};function b(W,ie,he,Ce){return new(he||(he=Promise))(function(Me,_e){function ke(Ae){try{de(Ce.next(Ae))}catch(pe){_e(pe)}}function Ye(Ae){try{de(Ce.throw(Ae))}catch(pe){_e(pe)}}function de(Ae){Ae.done?Me(Ae.value):function ye(Me){return Me instanceof he?Me:new he(function(_e){_e(Me)})}(Ae.value).then(ke,Ye)}de((Ce=Ce.apply(W,ie||[])).next())})}function H(W){return this instanceof H?(this.v=W,this):new H(W)}function J(W,ie,he){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ye,Ce=he.apply(W,ie||[]),Me=[];return ye=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),ke("next"),ke("throw"),ke("return",function _e(le){return function(Ke){return Promise.resolve(Ke).then(le,pe)}}),ye[Symbol.asyncIterator]=function(){return this},ye;function ke(le,Ke){Ce[le]&&(ye[le]=function(Be){return new Promise(function(q,Oe){Me.push([le,Be,q,Oe])>1||Ye(le,Be)})},Ke&&(ye[le]=Ke(ye[le])))}function Ye(le,Ke){try{!function de(le){le.value instanceof H?Promise.resolve(le.value.v).then(Ae,pe):Ee(Me[0][2],le)}(Ce[le](Ke))}catch(Be){Ee(Me[0][3],Be)}}function Ae(le){Ye("next",le)}function pe(le){Ye("throw",le)}function Ee(le,Ke){le(Ke),Me.shift(),Me.length&&Ye(Me[0][0],Me[0][1])}}function L(W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var he,ie=W[Symbol.asyncIterator];return ie?ie.call(W):(W=function X(W){var ie="function"==typeof Symbol&&Symbol.iterator,he=ie&&W[ie],Ce=0;if(he)return he.call(W);if(W&&"number"==typeof W.length)return{next:function(){return W&&Ce>=W.length&&(W=void 0),{value:W&&W[Ce++],done:!W}}};throw new TypeError(ie?"Object is not iterable.":"Symbol.iterator is not defined.")}(W),he={},Ce("next"),Ce("throw"),Ce("return"),he[Symbol.asyncIterator]=function(){return this},he);function Ce(Me){he[Me]=W[Me]&&function(_e){return new Promise(function(ke,Ye){!function ye(Me,_e,ke,Ye){Promise.resolve(Ye).then(function(de){Me({value:de,done:ke})},_e)}(ke,Ye,(_e=W[Me](_e)).done,_e.value)})}}}"function"==typeof SuppressedError&&SuppressedError},7271:(En,it,p)=>{"use strict";p.d(it,{H:()=>T});var S=p(4859),d=p(1830),m=p(4270);const T=function(C,e){let k;this.getLocalFilter=function(b,B,j,F){return v.bind(this,B=void 0===B?S.RL:B,b,j,F)},this.getExpr=function(b){if(!b)return;let B;return C.forEach(function(j,F){let X;B=B||[],F>0&&B.push(e?"and":"or"),X=(0,d.Kg)(b)?x(b,j):function(U,Z){const A=[];for(let M=0,H=U.length;M<H;M++){const J=U[M],R=(0,m.Hz)(J),G=x(J,Z&&R(Z));if(!G)break;M>0&&A.push(e?"or":"and"),A.push(G)}return A}(b,j),B.push(X)}),B&&1===B.length&&(B=B[0]),B},this.getCombinedFilter=function(b,B){let j=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const F=this.getExpr(b);let X=F;return(j||e)&&B&&(F?(X=[],X.push(F),X.push(B)):X=B),X};const w=function(b,B){if(!k){k={};const j=P(C,b,B);for(let F=0;F<j.length;F++)k[(0,S.GP)(j[F])]=!0}return k},P=function(b,B,j){return Array.isArray(j)?b.map(F=>B(F)):b};function v(b,B,j,F,X){const U=B(X);let Z,A;if(!j&&(Z=(0,S.GP)(U),!(0,d.Gv)(Z)))return w(B,F)[Z]?!e:!!e;for(A=0;A<C.length;A++)if(b(C[A],U))return!e;return!!e}function x(b,B){if(void 0!==B)return[b,e?"<>":"=",B]}}},7280:(En,it,p)=>{"use strict";p.d(it,{A:()=>e});var S=p(1926);const d={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MV":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","hi-Latn":"en-IN","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"},T=(k,w)=>{const P=k[w];return P?"root"!==P&&P:w.substr(0,w.lastIndexOf("-"))},e=(0,S.A)({locale:(()=>{let k="en";return w=>{if(!w)return k;k=w}})(),getValueByClosestLocale:function(k){let v,w=this.locale(),P=k(w);for(;!P&&!v;)w=T(d,w),w?P=k(w):v=!0;return void 0===P&&"en"!==w?k("en"):P}})},7281:(En,it,p)=>{"use strict";p.d(it,{A:()=>A});var S=p(1973),d=p(5704),m=p(4859),T=p(6021),C=p(3090),e=p(8360),k=p(2359),w=p(3949),P=p(9212);const U=w.A.inherit({_supportedKeys(){return(0,C.X)(this.callBase(),{escape:m.lQ})},_getDefaultOptions(){return(0,C.X)(this.callBase(),{message:e.A.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,templatesRenderAsynchronously:!1,hideTopOverlayHandler:null,focusStateEnabled:!1,propagateOutsideClick:!0,preventScrollEvents:!1})},_defaultOptionsRules(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:()=>(0,P.gx)(),options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}},{device:()=>(0,P.Ft)(),options:{width:"auto",height:"auto"}}])},_init(){this.callBase.apply(this,arguments)},_render(){this.callBase(),this.$element().addClass("dx-loadpanel"),this.$wrapper().addClass("dx-loadpanel-wrapper"),this._updateWrapperAria()},_updateWrapperAria(){if(this.$wrapper().removeAttr("aria-label").removeAttr("role"),!this.option("showIndicator")){const H=this._getAriaAttributes();this.$wrapper().attr(H)}},_getAriaAttributes(){const{message:M}=this.option();return{role:"alert","aria-label":M||e.A.format("Loading")}},_renderContentImpl(){this.callBase(),this.$content().addClass("dx-loadpanel-content"),this._$loadPanelContentWrapper=(0,d.A)("<div>").addClass("dx-loadpanel-content-wrapper"),this._$loadPanelContentWrapper.appendTo(this.$content()),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show(){const M=this.option("delay");if(!M)return this.callBase();const H=(0,T.cY)(),J=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(()=>{J().done(()=>{H.resolve()})},M),H.promise()},_hide(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout(){clearTimeout(this._showTimeout)},_renderMessage(){if(!this._$loadPanelContentWrapper)return;const M=this.option("message");if(!M)return;const H=(0,d.A)("<div>").addClass("dx-loadpanel-message").text(M);this._$loadPanelContentWrapper.append(H)},_renderLoadIndicator(){!this._$loadPanelContentWrapper||!this.option("showIndicator")||(this._$indicator||(this._$indicator=(0,d.A)("<div>").addClass("dx-loadpanel-indicator").appendTo(this._$loadPanelContentWrapper)),this._createComponent(this._$indicator,k.A,{elementAttr:this._getAriaAttributes(),indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent(){this.$content().find(".dx-loadpanel-message").remove(),this.$content().find(".dx-loadpanel-indicator").remove(),delete this._$indicator},_togglePaneVisible(){this.$content().toggleClass("dx-loadpanel-pane-hidden",!this.option("showPane"))},_optionChanged(M){switch(M.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage(),this._updateWrapperAria();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._renderLoadIndicator();break;default:this.callBase(M)}},_dispose(){this._clearShowTimeout(),this.callBase()}});(0,S.A)("dxLoadPanel",U);const A=U},7358:(En,it,p)=>{"use strict";p.d(it,{A:()=>C});var S=p(5704),d=p(4017);const C={getSwatchContainer:e=>{const w=(0,S.A)(e).closest('[class^="dx-swatch-"], [class*=" dx-swatch-"]'),P=(0,d.Uq)();if(!w.length)return P;const v=new RegExp("(\\s|^)(dx-swatch-.*?)(\\s|$)"),x=w[0].className.match(v)[2];let b=P.children("."+x);return b.length||(b=(0,S.A)("<div>").addClass(x).appendTo(P)),b}}},7421:(En,it,p)=>{"use strict";p.d(it,{O:()=>pe,L:()=>Ee});var S=p(4303),d=p(656),m=p(2583),T=p(2123),C=p(1973),e=p(5973),k=p(9522),w=p(5704),P=p(5944),v=p(4859),x=p(6021),b=p(3090),B=p(1363),j=p(1830),F=p(6110),X=p(778),U=p(4072),Z=p(6790),A=p(9293),M=p(9229),H=p(8360),J=p(4481);const Me=p(7080).A.inherit({_supportedKeys(){return(0,b.X)(this.callBase(),{pageUp:v.lQ,pageDown:v.lQ})},_getDefaultOptions(){return(0,b.X)(this.callBase(),{direction:"next",onClick:null,hoverStateEnabled:!0,activeStateEnabled:!0})},_render(){this.callBase();const le=this,Ke=this.$element(),Be=(0,A.b4)(X.U,this.NAME);Ke.addClass(`dx-gallery-nav-button-${this.option("direction")}`),U.A.off(Ke,Be),U.A.on(Ke,Be,q=>{le._createActionByOption("onClick")({event:q})})},_optionChanged(le){switch(le.name){case"onClick":case"direction":this._invalidate();break;default:this.callBase(le)}}}),_e=J.A.inherit({_activeStateUnit:".dx-gallery-item",_wasAnyItemTemplateRendered:!1,_getDefaultOptions(){return(0,b.X)(this.callBase(),{activeStateEnabled:!1,animationDuration:400,animationEnabled:!0,loop:!1,swipeEnabled:!0,indicatorEnabled:!0,showIndicator:!0,selectedIndex:0,slideshowDelay:0,showNavButtons:!1,wrapAround:!1,initialItemWidth:void 0,stretchImages:!1,_itemAttributes:{role:"option","aria-label":H.A.format("dxGallery-itemName")},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectByClick:!1})},_defaultOptionsRules(){return this.callBase().concat([{device:()=>"desktop"===e.A.real().deviceType&&!e.A.isSimulator(),options:{focusStateEnabled:!0}}])},_init(){this.callBase(),this.option("loopItemFocus",this.option("loop"))},_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({item:new P.U((le,Ke)=>{const Be=(0,w.A)("<img>").addClass("dx-gallery-item-image");(0,j.Qd)(Ke)?(this._prepareDefaultItemTemplate(Ke,le),Be.attr({src:Ke.imageSrc,alt:Ke.imageAlt}).appendTo(le)):Be.attr("src",String(Ke)).appendTo(le)},["imageSrc","imageAlt","text","html"],this.option("integrationOptions.watchMethod"))})},_dataSourceOptions:()=>({paginate:!1}),_itemContainer(){return this._$container},_itemClass:()=>"dx-gallery-item",_itemDataKey:()=>"dxGalleryItemData",_actualItemWidth(){const le=this.option("wrapAround");return this.option("stretchImages")?1/(le?this._itemsPerPage()+1:this._itemsPerPage()):le?this._itemPercentWidth()*this._itemsPerPage()/(this._itemsPerPage()+1):this._itemPercentWidth()},_itemPercentWidth(){let le;const Ke=(0,B.Ot)(this.$element()),Be=this.option("initialItemWidth");return le=Be&&Be<=Ke?Be/Ke:1,le},_itemsPerPage(){const le=(0,F.Vd)()?Math.floor(1/this._itemPercentWidth()):1;return Math.min(le,this._itemsCount())},_pagesCount(){return Math.ceil(this._itemsCount()/this._itemsPerPage())},_itemsCount(){return(this.option("items")||[]).length},_offsetDirection(){return this.option("rtlEnabled")?-1:1},_initMarkup(){this._renderWrapper(),this._renderItemsContainer(),this.$element().addClass("dx-gallery"),this.$element().toggleClass("dx-gallery-loop",this.option("loop")),this.callBase();const Ke={role:this._itemsCount()>0?"listbox":void 0,label:"gallery"};this.setAria(Ke)},_render(){this._renderDragHandler(),this._renderContainerPosition(),this._renderItemSizes(),this._renderItemPositions(),this._renderNavButtons(),this._renderIndicator(),this._renderSelectedItem(),this._renderItemVisibility(),this._renderUserInteraction(),this._setupSlideShow(),this._reviseDimensions(),this.callBase()},_dimensionChanged(){const le=this.option("selectedIndex")||0;this._stopItemAnimations(),this._clearCacheWidth(),this._cloneDuplicateItems(),this._renderItemSizes(),this._renderItemPositions(),this._renderIndicator(),this._renderContainerPosition(this._calculateIndexOffset(le),!0),this._renderItemVisibility()},_renderDragHandler(){const le=(0,A.b4)("dragstart",this.NAME);U.A.off(this.$element(),le),U.A.on(this.$element(),le,"img",()=>!1)},_renderWrapper(){this._$wrapper||(this._$wrapper=(0,w.A)("<div>").addClass("dx-gallery-wrapper").appendTo(this.$element()))},_renderItems(le){if(!(0,F.Vd)()){const Ke=this.option("selectedIndex");le=le.length>Ke?le.slice(Ke,Ke+1):le.slice(0,1)}this.callBase(le),this._loadNextPageIfNeeded()},_onItemTemplateRendered(){return()=>{this._wasAnyItemTemplateRendered||(this._wasAnyItemTemplateRendered=!0,(0,M.ho)(this.$element()))}},_renderItemsContainer(){this._$container||(this._$container=(0,w.A)("<div>").addClass("dx-gallery-container").appendTo(this._$wrapper))},_cloneDuplicateItems(){if(!this.option("loop"))return;const Ke=(this.option("items")||[]).length,Be=Ke-1;let q;if(!Ke)return;this._getLoopedItems().remove();const Oe=Math.min(this._itemsPerPage(),Ke),fe=this._getRealItems(),We=this._itemContainer();for(q=0;q<Oe;q++)this._cloneItemForDuplicate(fe[q],We);for(q=0;q<Oe;q++)this._cloneItemForDuplicate(fe[Be-q],We)},_cloneItemForDuplicate(le,Ke){if(le){const Be=(0,w.A)(le).clone(!1).addClass("dx-gallery-item-loop").removeAttr("id").css("margin",0).appendTo(Ke);this.setAria({hidden:!0},Be)}},_getRealItems(){return this.$element().find(".dx-gallery-item:not(.dx-gallery-item-loop)")},_getLoopedItems(){return this.$element().find(".dx-gallery-item-loop")},_emptyMessageContainer(){return this._$wrapper},_renderItemSizes(le){let Ke=this._itemElements();const Be=this._actualItemWidth();void 0!==le&&(Ke=Ke.slice(le)),Ke.each(q=>{(0,B.iT)((0,w.A)(Ke[q]),100*Be+"%")})},_renderItemPositions(){const le=this._actualItemWidth(),Ke=this._itemsCount(),Be=this._itemsPerPage(),q=this.$element().find(".dx-gallery-item-loop").length,Oe=Ke+q-1,fe=this.option("wrapAround")?.5:0,We=this._itemFreeSpace(),Ue=!!We,Ve=this.option("rtlEnabled"),tt=this.option("selectedIndex"),at=Ve?"Right":"Left";this._itemElements().each(function(Vt){let qe=Vt;const Nt=(0,w.A)(this).hasClass("dx-gallery-item-loop");if(Vt>Ke+Be-1&&(qe=Oe-qe-Be),!Nt&&0!==qe)return void(Ue&&(0,w.A)(this).css(`margin${at}`,100*We+"%"));const et=le*(qe+fe)+We*(qe+1-fe),ue=Nt?at.toLowerCase():`margin${at}`;(0,w.A)(this).css(ue,100*et+"%")}),this._relocateItems(tt,tt,!0)},_itemFreeSpace(){let le=this._itemsPerPage();return this.option("wrapAround")&&(le+=1),(1-this._actualItemWidth()*le)/(le+1)},_renderContainerPosition(le,Ke,Be){this._releaseInvisibleItems(),le=le||0;const q=this,Oe=this._actualItemWidth(),fe=le,We=this._offsetDirection()*fe*(Oe+this._itemFreeSpace());let Ue;return(0,j.O9)(this._animationOverride)&&(Be=this._animationOverride,delete this._animationOverride),Be?(q._startSwipe(),Ue=q._animate(We).done(q._endSwipe.bind(q))):((0,T.Cy)(this._$container,{left:We*this._elementWidth(),top:0}),Ue=(0,x.cY)().resolveWith(q)),Ue.done(function(){this._deferredAnimate&&q._deferredAnimate.resolveWith(q),Ke&&this._renderItemVisibility()}),Ue.promise()},_startSwipe(){this.$element().addClass("dx-gallery-active")},_endSwipe(){this.$element().removeClass("dx-gallery-active")},_animate(le,Ke){const Be=this,q=this._$container,Oe=(0,x.cY)();return m.A.animate(this._$container,(0,b.X)({type:"slide",to:{left:le*this._elementWidth()},duration:Be.option("animationDuration"),complete(){Be._needMoveContainerForward()&&(0,T.Cy)(q,{left:0,top:0}),Be._needMoveContainerBack()&&(0,T.Cy)(q,{left:Be._maxContainerOffset()*Be._elementWidth(),top:0}),Oe.resolveWith(Be)}},Ke||{})),Oe},_needMoveContainerForward(){return this._$container.position().left*this._offsetDirection()<=-this._maxItemWidth()*this._elementWidth()*this._itemsCount()+1},_needMoveContainerBack(){return this._$container.position().left*this._offsetDirection()>=this._actualItemWidth()*this._elementWidth()-1},_maxContainerOffset(){return-this._maxItemWidth()*(this._itemsCount()-this._itemsPerPage())*this._offsetDirection()},_maxItemWidth(){return this._actualItemWidth()+this._itemFreeSpace()},_reviseDimensions(){const le=this,Ke=le._itemElements().first().find(".dx-item-content");!Ke||Ke.is(":hidden")||(le.option("height")||le.option("height",(0,B.P$)(Ke)),le.option("width")||le.option("width",(0,B.Ot)(Ke)),this._dimensionChanged())},_renderIndicator(){const{showIndicator:le}=this.option();if(this._cleanIndicators(),this.$element().toggleClass("dx-gallery-indicator-visible",le),!le)return;const Ke=this._$indicator=(0,w.A)("<div>").addClass("dx-gallery-indicator").appendTo(this._$wrapper),Be=this.option("indicatorEnabled");for(let q=0;q<this._pagesCount();q++){const Oe=(0,w.A)("<div>").addClass("dx-gallery-indicator-item").appendTo(Ke);Be&&this._attachIndicatorClickHandler(Oe,q)}this._renderSelectedPageIndicator()},_attachIndicatorClickHandler(le,Ke){U.A.on(le,(0,A.b4)(X.U,this.NAME),Be=>{this._indicatorSelectHandler(Be,Ke)})},_detachIndicatorClickHandler(le){U.A.off(le,(0,A.b4)(X.U,this.NAME))},_toggleIndicatorInteraction(le){var Ke;const Be=(null===(Ke=this._$indicator)||void 0===Ke?void 0:Ke.find(".dx-gallery-indicator-item"))||[];Be.length&&Be.each((q,Oe)=>{le?this._attachIndicatorClickHandler((0,w.A)(Oe),q):this._detachIndicatorClickHandler((0,w.A)(Oe))})},_cleanIndicators(){this._$indicator&&this._$indicator.remove()},_renderSelectedItem(){const le=this.option("selectedIndex");this._itemElements().removeClass("dx-gallery-item-selected").eq(le).addClass("dx-gallery-item-selected")},_renderItemVisibility(){if(this.option("initialItemWidth")||this.option("wrapAround"))return void this._releaseInvisibleItems();const le=this.option("selectedIndex");this._itemElements().each((Ke,Be)=>{le!==Ke&&(0,w.A)(Be).find(".dx-item-content").addClass("dx-gallery-item-invisible")})},_releaseInvisibleItems(){this._itemElements().find(".dx-item-content").removeClass("dx-gallery-item-invisible")},_renderSelectedPageIndicator(){if(!this._$indicator)return;const le=this.option("selectedIndex"),Ke=this._pagesCount()-1;let Be=Math.ceil(le/this._itemsPerPage());Be=Math.min(Ke,Be),this._$indicator.find(".dx-gallery-indicator-item").removeClass("dx-gallery-indicator-item-selected").eq(Be).addClass("dx-gallery-indicator-item-selected")},_renderUserInteraction(){const le=this.$element(),Ke=this.option("swipeEnabled")&&this._itemsCount()>1;this._createComponent(le,Z.A,{disabled:this.option("disabled")||!Ke,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._elementWidth.bind(this)})},_indicatorSelectHandler(le,Ke){if(!this.option("indicatorEnabled"))return;const Be=this._fitPaginatedIndex(Ke*this._itemsPerPage());this._needLongMove=!0,this.option("selectedIndex",Be),this._loadNextPageIfNeeded(Be)},_renderNavButtons(){const le=this;le.option("showNavButtons")?(le._prevNavButton=(0,w.A)("<div>").appendTo(this._$wrapper),le._createComponent(le._prevNavButton,Me,{direction:"prev",onClick(){le._prevPage()}}),le._nextNavButton=(0,w.A)("<div>").appendTo(this._$wrapper),le._createComponent(le._nextNavButton,Me,{direction:"next",onClick(){le._nextPage()}}),this._renderNavButtonsVisibility()):le._cleanNavButtons()},_prevPage(){const le=this._itemsPerPage(),Ke=this.option("selectedIndex")-le;return Ke===-le&&le===this._itemsCount()?this._relocateItems(Ke,0):this.goToItem(this._fitPaginatedIndex(Ke))},_nextPage(){const le=this._itemsPerPage(),Ke=this.option("selectedIndex")+le;return Ke===le&&le===this._itemsCount()?this._relocateItems(Ke,0):this.goToItem(this._fitPaginatedIndex(Ke)).done(this._loadNextPageIfNeeded)},_loadNextPageIfNeeded(le){le=void 0===le?this.option("selectedIndex"):le,this._dataSource&&this._dataSource.paginate()&&this._shouldLoadNextPage(le)&&!this._isDataSourceLoading()&&!this._isLastPage()&&this._loadNextPage().done(()=>{this._renderIndicator(),this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility(),this._renderItemSizes(le)})},_shouldLoadNextPage(le){return le+2*this._itemsPerPage()>this.option("items").length},_allowDynamicItemsAppend:()=>!0,_fitPaginatedIndex(le){const Ke=this._itemsPerPage(),Be=le<0?Ke+le:this._itemsCount()-le;return le>this._itemsCount()-1?(le=0,this._goToGhostItem=!0):Be<Ke&&Be>0&&(le>0?le-=Ke-Be:le+=Ke-Be),le},_cleanNavButtons(){this._prevNavButton&&(this._prevNavButton.remove(),delete this._prevNavButton),this._nextNavButton&&(this._nextNavButton.remove(),delete this._nextNavButton)},_renderNavButtonsVisibility(){if(!this.option("showNavButtons")||!this._prevNavButton||!this._nextNavButton)return;const le=this.option("selectedIndex"),Ke=this.option("loop"),Be=this._itemsCount();if(this._prevNavButton.show(),this._nextNavButton.show(),0===Be&&(this._prevNavButton.hide(),this._nextNavButton.hide()),Ke)return;let q=le===Be-this._itemsPerPage();const Oe=Be<2||0===le;q=this._dataSource&&this._dataSource.paginate()?q&&this._isLastPage():q||Be<2,Oe&&this._prevNavButton.hide(),q&&this._nextNavButton.hide()},_setupSlideShow(){const le=this,Ke=le.option("slideshowDelay");clearTimeout(le._slideshowTimer),Ke&&(le._slideshowTimer=setTimeout(()=>{le._userInteraction?le._setupSlideShow():le.nextItem(!0).done(le._setupSlideShow)},Ke))},_elementWidth(){return this._cacheElementWidth||(this._cacheElementWidth=(0,B.RG)(this.$element())),this._cacheElementWidth},_clearCacheWidth(){delete this._cacheElementWidth},_swipeStartHandler(le){this._releaseInvisibleItems(),this._clearCacheWidth(),this._elementWidth();const Ke=this._itemsCount();if(Ke){if(this._stopItemAnimations(),this._startSwipe(),this._userInteraction=!0,!this.option("loop")){const Be=this.option("selectedIndex"),q=Ke-Be-this._itemsPerPage(),Oe=Be,fe=this.option("rtlEnabled");le.event.maxLeftOffset=fe?Oe:q,le.event.maxRightOffset=fe?q:Oe}}else le.event.cancel=!0},_stopItemAnimations(){m.A.stop(this._$container,!0)},_swipeUpdateHandler(le){const Ke=this.option("wrapAround")?1:0,Be=this._offsetDirection()*le.event.offset*(this._itemsPerPage()+Ke)-this.option("selectedIndex");Be<0&&this._loadNextPageIfNeeded(Math.ceil(Math.abs(Be))),this._renderContainerPosition(Be)},_swipeEndHandler(le){const Ke=le.event.targetOffset*this._offsetDirection()*this._itemsPerPage(),Be=this.option("selectedIndex"),q=this._fitIndex(Be-Ke),Oe=this._fitPaginatedIndex(q);Math.abs(Ke)<this._itemsPerPage()?this._relocateItems(Be):this._itemsPerPage()!==this._itemsCount()?this.option("selectedIndex",Oe):this._relocateItems(Ke>0?-Ke:0)},_setFocusOnSelect(){this._userInteraction=!0;const le=this._getRealItems().filter(".dx-gallery-item-selected");this.option("focusedElement",(0,k.cc)(le)),this._userInteraction=!1},_flipIndex(le){const Ke=this._itemsCount();return(le%=Ke)>(Ke+1)/2&&(le-=Ke),le<-(Ke-1)/2&&(le+=Ke),le},_fitIndex(le){if(!this.option("loop"))return le;const Ke=this._itemsCount();return(le>=Ke||le<0)&&(this._goToGhostItem=!0),le>=Ke&&(le=Ke-le),(le%=Ke)<0&&(le+=Ke),le},_clean(){this.callBase(),this._cleanIndicators(),this._cleanNavButtons()},_dispose(){this._wasAnyItemTemplateRendered=null,clearTimeout(this._slideshowTimer),this.callBase()},_updateSelection(le,Ke){this._stopItemAnimations(),this._renderNavButtonsVisibility(),this._renderSelectedItem(),this._relocateItems(le[0],Ke[0]),this._renderSelectedPageIndicator()},_relocateItems(le,Ke,Be){void 0===Ke&&(Ke=le);const q=this._calculateIndexOffset(le,Ke);this._renderContainerPosition(q,!0,this.option("animationEnabled")&&!Be).done(function(){this._setFocusOnSelect(),this._userInteraction=!1,this._setupSlideShow()})},_focusInHandler(){m.A.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_focusOutHandler(){m.A.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_selectFocusedItem:v.lQ,_moveFocus(){this._stopItemAnimations(),this.callBase.apply(this,arguments);const le=this.itemElements().index((0,w.A)(this.option("focusedElement")));this.goToItem(le,this.option("animationEnabled"))},_visibilityChanged(le){le&&this._reviseDimensions()},_calculateIndexOffset(le,Ke){void 0===Ke&&(Ke=le);let Be=Ke-le;return this.option("loop")&&!this._needLongMove&&this._goToGhostItem&&(this._isItemOnFirstPage(le)&&this._isItemOnLastPage(Ke)?Be=-this._itemsPerPage():this._isItemOnLastPage(le)&&this._isItemOnFirstPage(Ke)&&(Be=this._itemsPerPage()),this._goToGhostItem=!1),this._needLongMove=!1,Be-=Ke,Be},_isItemOnLastPage(le){return le>=this._itemsCount()-this._itemsPerPage()},_isItemOnFirstPage(le){return le<=this._itemsPerPage()},_optionChanged(le){switch(le.name){case"width":case"initialItemWidth":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"animationDuration":this._renderNavButtonsVisibility();break;case"animationEnabled":break;case"loop":this.$element().toggleClass("dx-gallery-loop",le.value),this.option("loopItemFocus",le.value),(0,F.Vd)()&&(this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility());break;case"showIndicator":this._renderIndicator();break;case"showNavButtons":this._renderNavButtons();break;case"slideshowDelay":this._setupSlideShow();break;case"wrapAround":case"stretchImages":(0,F.Vd)()&&(this._renderItemSizes(),this._renderItemPositions(),this._renderItemVisibility());break;case"swipeEnabled":this._renderUserInteraction();break;case"indicatorEnabled":this._toggleIndicatorInteraction(le.value);break;default:this.callBase(le)}},goToItem(le,Ke){const Be=this.option("selectedIndex"),q=this._itemsCount();return void 0!==Ke&&(this._animationOverride=Ke),le=this._fitIndex(le),this._deferredAnimate=(0,x.cY)(),le>q-1||le<0||Be===le?this._deferredAnimate.resolveWith(this).promise():(this.option("selectedIndex",le),this._deferredAnimate.promise())},prevItem(le){return this.goToItem(this.option("selectedIndex")-1,le)},nextItem(le){return this.goToItem(this.option("selectedIndex")+1,le)}});(0,C.A)("dxGallery",_e);const Ye=_e;var de=p(3349),Ae=p(8914);let pe=(()=>{class le extends de.ic{_watcherHelper;_idh;instance=null;get accessKey(){return this._getOption("accessKey")}set accessKey(Be){this._setOption("accessKey",Be)}get animationDuration(){return this._getOption("animationDuration")}set animationDuration(Be){this._setOption("animationDuration",Be)}get animationEnabled(){return this._getOption("animationEnabled")}set animationEnabled(Be){this._setOption("animationEnabled",Be)}get dataSource(){return this._getOption("dataSource")}set dataSource(Be){this._setOption("dataSource",Be)}get disabled(){return this._getOption("disabled")}set disabled(Be){this._setOption("disabled",Be)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(Be){this._setOption("elementAttr",Be)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(Be){this._setOption("focusStateEnabled",Be)}get height(){return this._getOption("height")}set height(Be){this._setOption("height",Be)}get hint(){return this._getOption("hint")}set hint(Be){this._setOption("hint",Be)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(Be){this._setOption("hoverStateEnabled",Be)}get indicatorEnabled(){return this._getOption("indicatorEnabled")}set indicatorEnabled(Be){this._setOption("indicatorEnabled",Be)}get initialItemWidth(){return this._getOption("initialItemWidth")}set initialItemWidth(Be){this._setOption("initialItemWidth",Be)}get itemHoldTimeout(){return this._getOption("itemHoldTimeout")}set itemHoldTimeout(Be){this._setOption("itemHoldTimeout",Be)}get items(){return this._getOption("items")}set items(Be){this._setOption("items",Be)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(Be){this._setOption("itemTemplate",Be)}get loop(){return this._getOption("loop")}set loop(Be){this._setOption("loop",Be)}get noDataText(){return this._getOption("noDataText")}set noDataText(Be){this._setOption("noDataText",Be)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(Be){this._setOption("rtlEnabled",Be)}get selectedIndex(){return this._getOption("selectedIndex")}set selectedIndex(Be){this._setOption("selectedIndex",Be)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(Be){this._setOption("selectedItem",Be)}get showIndicator(){return this._getOption("showIndicator")}set showIndicator(Be){this._setOption("showIndicator",Be)}get showNavButtons(){return this._getOption("showNavButtons")}set showNavButtons(Be){this._setOption("showNavButtons",Be)}get slideshowDelay(){return this._getOption("slideshowDelay")}set slideshowDelay(Be){this._setOption("slideshowDelay",Be)}get stretchImages(){return this._getOption("stretchImages")}set stretchImages(Be){this._setOption("stretchImages",Be)}get swipeEnabled(){return this._getOption("swipeEnabled")}set swipeEnabled(Be){this._setOption("swipeEnabled",Be)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(Be){this._setOption("tabIndex",Be)}get visible(){return this._getOption("visible")}set visible(Be){this._setOption("visible",Be)}get width(){return this._getOption("width")}set width(Be){this._setOption("width",Be)}get wrapAround(){return this._getOption("wrapAround")}set wrapAround(Be){this._setOption("wrapAround",Be)}onContentReady;onDisposing;onInitialized;onItemClick;onItemContextMenu;onItemHold;onItemRendered;onOptionChanged;onSelectionChanged;accessKeyChange;animationDurationChange;animationEnabledChange;dataSourceChange;disabledChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;indicatorEnabledChange;initialItemWidthChange;itemHoldTimeoutChange;itemsChange;itemTemplateChange;loopChange;noDataTextChange;rtlEnabledChange;selectedIndexChange;selectedItemChange;showIndicatorChange;showNavButtonsChange;slideshowDelayChange;stretchImagesChange;swipeEnabledChange;tabIndexChange;visibleChange;widthChange;wrapAroundChange;get itemsChildren(){return this._getOption("items")}set itemsChildren(Be){this.setChildren("items",Be)}constructor(Be,q,Oe,fe,We,Ue,Ve,tt){super(Be,q,Oe,fe,Ve,tt),this._watcherHelper=fe,this._idh=We,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemHold",emit:"onItemHold"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"accessKeyChange"},{emit:"animationDurationChange"},{emit:"animationEnabledChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"indicatorEnabledChange"},{emit:"initialItemWidthChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"loopChange"},{emit:"noDataTextChange"},{emit:"rtlEnabledChange"},{emit:"selectedIndexChange"},{emit:"selectedItemChange"},{emit:"showIndicatorChange"},{emit:"showNavButtonsChange"},{emit:"slideshowDelayChange"},{emit:"stretchImagesChange"},{emit:"swipeEnabledChange"},{emit:"tabIndexChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapAroundChange"}]),this._idh.setHost(this),Ue.setHost(this)}_createInstance(Be,q){return new Ye(Be,q)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(Be){super.ngOnChanges(Be),this.setupChanges("dataSource",Be),this.setupChanges("items",Be)}setupChanges(Be,q){Be in this._optionsToUpdate||this._idh.setup(Be,q)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(Be,q){let Oe=this._idh.setupSingle(Be,q),fe=null!==this._idh.getChanges(Be,q);(Oe||fe)&&super._setOption(Be,q)}static \u0275fac=function(q){return new(q||le)(S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(de.zF),S.rXU(de.jS),S.rXU(de.$M),S.rXU(de.fH),S.rXU(S.pJN),S.rXU(S.Agw))};static \u0275cmp=S.VBU({type:le,selectors:[["dx-gallery"]],contentQueries:function(q,Oe,fe){if(1&q&&S.wni(fe,Ae.CVf,4),2&q){let We;S.mGM(We=S.lsd())&&(Oe.itemsChildren=We)}},inputs:{accessKey:"accessKey",animationDuration:"animationDuration",animationEnabled:"animationEnabled",dataSource:"dataSource",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",indicatorEnabled:"indicatorEnabled",initialItemWidth:"initialItemWidth",itemHoldTimeout:"itemHoldTimeout",items:"items",itemTemplate:"itemTemplate",loop:"loop",noDataText:"noDataText",rtlEnabled:"rtlEnabled",selectedIndex:"selectedIndex",selectedItem:"selectedItem",showIndicator:"showIndicator",showNavButtons:"showNavButtons",slideshowDelay:"slideshowDelay",stretchImages:"stretchImages",swipeEnabled:"swipeEnabled",tabIndex:"tabIndex",visible:"visible",width:"width",wrapAround:"wrapAround"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemContextMenu:"onItemContextMenu",onItemHold:"onItemHold",onItemRendered:"onItemRendered",onOptionChanged:"onOptionChanged",onSelectionChanged:"onSelectionChanged",accessKeyChange:"accessKeyChange",animationDurationChange:"animationDurationChange",animationEnabledChange:"animationEnabledChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",indicatorEnabledChange:"indicatorEnabledChange",initialItemWidthChange:"initialItemWidthChange",itemHoldTimeoutChange:"itemHoldTimeoutChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",loopChange:"loopChange",noDataTextChange:"noDataTextChange",rtlEnabledChange:"rtlEnabledChange",selectedIndexChange:"selectedIndexChange",selectedItemChange:"selectedItemChange",showIndicatorChange:"showIndicatorChange",showNavButtonsChange:"showNavButtonsChange",slideshowDelayChange:"slideshowDelayChange",stretchImagesChange:"stretchImagesChange",swipeEnabledChange:"swipeEnabledChange",tabIndexChange:"tabIndexChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapAroundChange:"wrapAroundChange"},standalone:!1,features:[S.Jv_([de.zF,de.jS,de.fH,de.$M]),S.Vt3,S.OA$],decls:0,vars:0,template:function(q,Oe){},encapsulation:2})}return le})(),Ee=(()=>{class le{static \u0275fac=function(q){return new(q||le)};static \u0275mod=S.$C({type:le});static \u0275inj=d.G2t({imports:[Ae.POb,de.p_,de.xZ,Ae.POb,de.xZ]})}return le})()},7426:(En,it,p)=>{"use strict";p.d(it,{A:()=>x});var S=p(5704),d=p(4072),m=p(3538),T=p(9293);const w="KeyboardProcessor",P=b=>({keyName:(0,T.YD)(b),key:b.key,code:b.code,ctrl:b.ctrlKey,location:b.location,metaKey:b.metaKey,shift:b.shiftKey,alt:b.altKey,which:b.which,originalEvent:b}),v=m.A.inherit({_keydown:(0,T.b4)("keydown",w),_compositionStart:(0,T.b4)("compositionstart",w),_compositionEnd:(0,T.b4)("compositionend",w),ctor:function(b){(b=b||{}).element&&(this._element=(0,S.A)(b.element)),b.focusTarget&&(this._focusTarget=b.focusTarget),this._handler=b.handler,this._element&&(this._processFunction=B=>{const j=(0,S.A)(this._focusTarget).toArray(),F=this._focusTarget&&this._focusTarget!==B.target&&!j.includes(B.target),X=this._isComposingJustFinished&&229===B.which||this._isComposing||F;this._isComposingJustFinished=!1,X||this.process(B)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),d.A.on(this._element,this._keydown,this._processFunction),d.A.on(this._element,this._compositionStart,this._toggleProcessingWithContext),d.A.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(d.A.off(this._element,this._keydown,this._processFunction),d.A.off(this._element,this._compositionStart,this._toggleProcessingWithContext),d.A.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0},process:function(b){this._handler(P(b))},toggleProcessing:function(b){let{type:B}=b;this._isComposing="compositionstart"===B,this._isComposingJustFinished=!this._isComposing}});v.createKeyDownOptions=P;const x=v},7462:(En,it,p)=>{"use strict";p.d(it,{T:()=>d});var S=p(4418);function d(m){return Symbol.asyncIterator&&(0,S.T)(m?.[Symbol.asyncIterator])}},7508:(En,it,p)=>{"use strict";function S(d,m){const T={left:0,top:0};let C=m;for(;null!==(e=C)&&void 0!==e&&e.offsetParent&&!C.classList.contains(d);){var e;const k=C.offsetParent,w=C.getBoundingClientRect(),P=k.getBoundingClientRect();T.left+=w.left-P.left,T.top+=w.top-P.top,C=C.offsetParent}return T}p.d(it,{Y:()=>S})},7525:(En,it,p)=>{"use strict";p.d(it,{A:()=>F});var S=p(5704),d=p(3090),m=p(127),T=p(778),C=p(4072),e=p(1134),k=p(9012),w=p(974);class v extends w.A{_attachEvents(U,Z){const{editor:A}=this;C.A.on(Z,e.n,()=>{A.$element().addClass("dx-custom-button-hovered")}),C.A.on(Z,e._,()=>{A.$element().removeClass("dx-custom-button-hovered")}),C.A.on(Z,T.U,M=>{M.stopPropagation()})}_create(){const{editor:U}=this,Z=(0,S.A)("<div>");return this._addToContainer(Z),{$element:Z,instance:U._createComponent(Z,k.A,(0,d.X)({},this.options,{ignoreParentReadOnly:!0,disabled:this._isDisabled(),integrationOptions:this._prepareIntegrationOptions(U)}))}}_prepareIntegrationOptions(U){return(0,d.X)({},U.option("integrationOptions"),{skipTemplates:["content"]})}update(){const U=super.update();return this.instance&&this.instance.option("disabled",this._isDisabled()),U}_isVisible(){const{editor:U}=this;return U.option("visible")}_isDisabled(){return void 0!==this.options.disabled?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}function B(X,U){if(-1!==X.indexOf(U))throw m.A.Error("E1055",U);X.push(U)}class F{constructor(U,Z){this.buttons=[],this.defaultButtonsInfo=Z,this.editor=U}_compileButtonInfo(U){const Z=[];return U.map(A=>{const M="string"==typeof A;if(M||function b(X){(()=>{if(!X||"object"!=typeof X||Array.isArray(X))throw m.A.Error("E1053")})(),(()=>{if(!("name"in X))throw m.A.Error("E1054")})(),(()=>{const{name:U}=X;if("string"!=typeof U)throw m.A.Error("E1055")})(),(()=>{const{location:U}=X;"location"in X&&"after"!==U&&"before"!==U&&(X.location="after")})()}(A),M||function j(X,U){return!!U.find(Z=>Z.name===X)}(A.name,this.defaultButtonsInfo)){const R=this.defaultButtonsInfo.find(L=>{let{name:G}=L;return G===A||G===A.name});if(!R)throw m.A.Error("E1056",this.editor.NAME,A);return B(Z,A),R}const{name:J}=A;return B(Z,J),(0,d.X)(A,{Ctor:v})})}_createButton(U){const{Ctor:Z,options:A,name:M}=U,H=new Z(M,this.editor,A);return this.buttons.push(H),H}_renderButtons(U,Z,A){let M=null;return(U?this._compileButtonInfo(U):this.defaultButtonsInfo).forEach(J=>{const{location:R="after"}=J;R===A&&this._createButton(J).render((M=M??(0,S.A)("<div>").addClass("dx-texteditor-buttons-container"),"before"===A?Z.prepend(M):Z.append(M),M))}),M}clean(){this.buttons.forEach(U=>U.dispose()),this.buttons=[]}getButton(U){const Z=this.buttons.find(A=>{let{name:M}=A;return M===U});return Z&&Z.instance}renderAfterButtons(U,Z){return this._renderButtons(U,Z,"after")}renderBeforeButtons(U,Z){return this._renderButtons(U,Z,"before")}updateButtons(U){this.buttons.forEach(Z=>{(!U||-1!==U.indexOf(Z.name))&&Z.update()})}}},7543:(En,it,p)=>{"use strict";p.d(it,{u:()=>k});var S=p(6394),d=p(65),m=p(6104),T=p(2928),C=p(3746),e=p(656);let k=(()=>{var w;class P{constructor(x,b){this.scopeService=b,this.tokenData={token:"",expiresOn:new Date(1,1,1),fileTokens:null},this.sourceTimes=(0,T.Y)(5e3),this.isAuthenticatedSource=new m.B,this.isAuthenticated$=this.isAuthenticatedSource.asObservable(),this.fetchingTokenPromise=null,this.http=new d.Qq(x),this.scope=this.scopeService}getToken(){var x=this;return(0,S.A)(function*(){return x.tokenData=yield x.getTokenData(),x.tokenData.token})()}getTokenData(){var x=this;return(0,S.A)(function*(){return x.tokenData.token&&(new Date).getTime()<x.tokenData.expiresOn.getTime()?x.tokenData:(x.fetchingTokenPromise||(x.fetchingTokenPromise=new Promise(function(){var B=(0,S.A)(function*(j){const F=yield x.http.get(x.scope.getMiniScope().apiEndpoint+"chatAuthentication/token").pipe().toPromise();F&&(F.expiresOn=new Date(F.expiresOn),x.tokenData=F,x.isAuthenticatedSource.next(x.tokenData),x.fetchingTokenPromise=null,j(x.tokenData))});return function(j){return B.apply(this,arguments)}}())),x.fetchingTokenPromise)})()}expireToken(x){var b=this;return(0,S.A)(function*(){b.tokenData.expiresOn=new Date(1,1,1),yield b.getToken()})()}static#e=w=()=>(this.\u0275fac=function(b){return new(b||P)(e.KVO(d.JV),e.KVO(C.A))},this.\u0275prov=e.jDH({token:P,factory:P.\u0275fac,providedIn:"root"}))}return w(),P})()},7569:(En,it,p)=>{"use strict";p.d(it,{Wk:()=>U,iI:()=>pe});var S=p(6394),d=p(5732),m=p(7829),T=p(6610),C=p(656),e=p(4303),k=p(2978),w=p(3038),P=p(4882),v=p(6104),x=p(8399),b=p(756),B=p(4807),j=p(8503),F=p(3806),X=p(3422);let U=(()=>{class We{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=(0,C.vPA)(null);get href(){return(0,w.O8)(this.reactiveHref)}set href(Ve){this.reactiveHref.set(Ve)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new v.B;applicationErrorHandler=(0,C.WQX)(C.ZTf);options=(0,C.WQX)(P.J_,{optional:!0});constructor(Ve,tt,at,Vt,qe,Nt){this.router=Ve,this.route=tt,this.tabIndexAttribute=at,this.renderer=Vt,this.el=qe,this.locationStrategy=Nt,this.reactiveHref.set((0,C.WQX)(new k.ES_("href"),{optional:!0}));const et=qe.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===et||"area"===et||!("object"!=typeof customElements||!customElements.get(et)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(void 0!==this.subscription||!this.isAnchorElement)return;let Ve=this.preserveFragment;const tt=at=>"merge"===at||"preserve"===at;Ve||=tt(this.queryParamsHandling),Ve||=!this.queryParamsHandling&&!tt(this.options?.defaultQueryParamsHandling),Ve&&(this.subscription=this.router.events.subscribe(at=>{at instanceof P.wF&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(Ve){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",Ve)}ngOnChanges(Ve){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(Ve){null==Ve?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=(0,P.wO)(Ve)||Array.isArray(Ve)?Ve:[Ve],this.setTabIndexIfNotOnNativeEl("0"))}onClick(Ve,tt,at,Vt,qe){const Nt=this.urlTree;if(null===Nt||this.isAnchorElement&&(0!==Ve||tt||at||Vt||qe||"string"==typeof this.target&&"_self"!=this.target))return!0;const et={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(Nt,et)?.catch(ue=>{this.applicationErrorHandler(ue)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const Ve=this.urlTree;this.reactiveHref.set(null!==Ve&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(Ve))??"":null)}applyAttributeValue(Ve,tt){const at=this.renderer,Vt=this.el.nativeElement;null!==tt?at.setAttribute(Vt,Ve,tt):at.removeAttribute(Vt,Ve)}get urlTree(){return null===this.routerLinkInput?null:(0,P.wO)(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(tt){return new(tt||We)(e.rXU(P.Ix),e.rXU(P.nX),e.kS0("tabindex"),e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(d.hb))};static \u0275dir=e.FsC({type:We,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(tt,at){1&tt&&e.bIt("click",function(qe){return at.onClick(qe.button,qe.ctrlKey,qe.shiftKey,qe.altKey,qe.metaKey)}),2&tt&&e.BMQ("href",at.reactiveHref(),e.n$t)("target",at.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",k.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",k.L39],replaceUrl:[2,"replaceUrl","replaceUrl",k.L39],routerLink:"routerLink"},features:[e.OA$]})}return We})();class M{}let R=(()=>{class We{router;injector;preloadingStrategy;loader;subscription;constructor(Ve,tt,at,Vt){this.router=Ve,this.injector=tt,this.preloadingStrategy=at,this.loader=Vt}setUpPreloading(){this.subscription=this.router.events.pipe((0,j.p)(Ve=>Ve instanceof P.wF),(0,B.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Ve,tt){const at=[];for(const Vt of tt){Vt.providers&&!Vt._injector&&(Vt._injector=(0,e.Ol2)(Vt.providers,Ve,`Route: ${Vt.path}`));const qe=Vt._injector??Ve,Nt=Vt._loadedInjector??qe;(Vt.loadChildren&&!Vt._loadedRoutes&&void 0===Vt.canLoad||Vt.loadComponent&&!Vt._loadedComponent)&&at.push(this.preloadConfig(qe,Vt)),(Vt.children||Vt._loadedRoutes)&&at.push(this.processRoutes(Nt,Vt.children??Vt._loadedRoutes))}return(0,x.H)(at).pipe((0,F.U)())}preloadConfig(Ve,tt){return this.preloadingStrategy.preload(tt,()=>{let at;at=tt.loadChildren&&void 0===tt.canLoad?this.loader.loadChildren(Ve,tt):(0,b.of)(null);const Vt=at.pipe((0,X.Z)(qe=>null===qe?(0,b.of)(void 0):(tt._loadedRoutes=qe.routes,tt._loadedInjector=qe.injector,this.processRoutes(qe.injector??Ve,qe.routes))));if(tt.loadComponent&&!tt._loadedComponent){const qe=this.loader.loadComponent(Ve,tt);return(0,x.H)([Vt,qe]).pipe((0,F.U)())}return Vt})}static \u0275fac=function(tt){return new(tt||We)(C.KVO(P.Ix),C.KVO(C.uvJ),C.KVO(M),C.KVO(P.D$))};static \u0275prov=C.jDH({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();const L=new C.nKC("");let G=(()=>{class We{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=P.wU;restoredId=0;store={};constructor(Ve,tt,at,Vt,qe={}){this.urlSerializer=Ve,this.transitions=tt,this.viewportScroller=at,this.zone=Vt,this.options=qe,qe.scrollPositionRestoration||="disabled",qe.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(Ve=>{Ve instanceof P.Z?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Ve.navigationTrigger,this.restoredId=Ve.restoredState?Ve.restoredState.navigationId:0):Ve instanceof P.wF?(this.lastId=Ve.id,this.scheduleScrollEvent(Ve,this.urlSerializer.parse(Ve.urlAfterRedirects).fragment)):Ve instanceof P.lW&&Ve.code===P.mo.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(Ve,this.urlSerializer.parse(Ve.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(Ve=>{Ve instanceof P.OY&&(Ve.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Ve.position):Ve.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Ve.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(Ve,tt){var at=this;this.zone.runOutsideAngular((0,S.A)(function*(){yield new Promise(Vt=>{setTimeout(Vt),typeof requestAnimationFrame<"u"&&requestAnimationFrame(Vt)}),at.zone.run(()=>{at.transitions.events.next(new P.OY(Ve,"popstate"===at.lastSource?at.store[at.restoredId]:null,tt))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(tt){e.QTQ()};static \u0275prov=C.jDH({token:We,factory:We.\u0275fac})}return We})();function K(We,Ue){return{\u0275kind:We,\u0275providers:Ue}}function Re(){const We=(0,C.WQX)(C.zZn);return Ue=>{const Ve=We.get(e.o8S);if(Ue!==Ve.components[0])return;const tt=We.get(P.Ix),at=We.get(Se);1===We.get(De)&&tt.initialNavigation(),We.get(ie,null,{optional:!0})?.setUpPreloading(),We.get(L,null,{optional:!0})?.init(),tt.resetRootComponentType(Ve.componentTypes[0]),at.closed||(at.next(),at.complete(),at.unsubscribe())}}const Se=new C.nKC("",{factory:()=>new v.B}),De=new C.nKC("",{providedIn:"root",factory:()=>1}),ie=new C.nKC("");function he(We){return K(0,[{provide:ie,useExisting:R},{provide:M,useExisting:We}])}function ke(We){return(0,e._jY)("NgRouterViewTransitions"),K(9,[{provide:P.Pu,useValue:P.Lg},{provide:P.bK,useValue:{skipNextTransition:!!We?.skipInitialTransition,...We}}])}const Ae=[d.aZ,{provide:P.Sd,useClass:P.nU},P.Ix,P.Zp,{provide:P.nX,useFactory:function z(We){return We.routerState.root},deps:[P.Ix]},P.D$,[]];let pe=(()=>{class We{constructor(){}static forRoot(Ve,tt){return{ngModule:We,providers:[Ae,[],{provide:P.bw,multi:!0,useValue:Ve},[],tt?.errorHandler?{provide:P.XR,useValue:tt.errorHandler}:[],{provide:P.J_,useValue:tt||{}},tt?.useHash?{provide:d.hb,useClass:m.fw}:{provide:d.hb,useClass:d.Sm},{provide:L,useFactory:()=>{const We=(0,C.WQX)(T.Xr),Ue=(0,C.WQX)(e.SKi),Ve=(0,C.WQX)(P.J_),tt=(0,C.WQX)(P.J2),at=(0,C.WQX)(P.Sd);return Ve.scrollOffset&&We.setOffset(Ve.scrollOffset),new G(at,tt,We,Ue,Ve)}},tt?.preloadingStrategy?he(tt.preloadingStrategy).\u0275providers:[],tt?.initialNavigation?q(tt):[],tt?.bindToComponentInputs?K(8,[P.tD,{provide:P.c1,useExisting:P.tD}]).\u0275providers:[],tt?.enableViewTransitions?ke().\u0275providers:[],[{provide:Oe,useFactory:Re},{provide:e.iLQ,multi:!0,useExisting:Oe}]]}}static forChild(Ve){return{ngModule:We,providers:[{provide:P.bw,multi:!0,useValue:Ve}]}}static \u0275fac=function(tt){return new(tt||We)};static \u0275mod=e.$C({type:We});static \u0275inj=C.G2t({})}return We})();function q(We){return["disabled"===We.initialNavigation?K(3,[(0,e.phd)(()=>{(0,C.WQX)(P.Ix).setUpLocationChangeListener()}),{provide:De,useValue:2}]).\u0275providers:[],"enabledBlocking"===We.initialNavigation?K(2,[{provide:e.tvf,useValue:!0},{provide:De,useValue:0},(0,e.phd)(()=>{const Ue=(0,C.WQX)(C.zZn);return Ue.get(d.hj,Promise.resolve()).then(()=>new Promise(tt=>{const at=Ue.get(P.Ix),Vt=Ue.get(Se);(0,P.gk)(at,()=>{tt(!0)}),Ue.get(P.J2).afterPreactivation=()=>(tt(!0),Vt.closed?(0,b.of)(void 0):Vt),at.initialNavigation()}))})]).\u0275providers:[]]}const Oe=new C.nKC("")},7591:(En,it,p)=>{"use strict";p.d(it,{M:()=>d});var S=p(6776);class d extends S.o{constructor(T){super(),this.name=T}}},7713:(En,it,p)=>{"use strict";p.d(it,{c:()=>P,m:()=>e});const S="dx-";let d=null;function m(v){try{return new CSSStyleSheet}catch{const b=v.ownerDocument.createElement("style");return v.appendChild(b),b.sheet}}function T(v,x,b){for(let B=0;B<x.length;B++){const j=x[B];try{for(let F=0;F<j.cssRules.length;F++)C(v,j.cssRules[F],b)}catch{}}}function C(v,x,b){var B,j,F,X;(b||(null===(B=x.selectorText)||void 0===B?void 0:B.includes(S))||(null===(j=x.cssRules)||void 0===j||null===(j=j[0])||void 0===j||null===(j=j.selectorText)||void 0===j?void 0:j.includes(S))||(null===(F=x.name)||void 0===F?void 0:F.startsWith(S))||"DXIcons"===(null===(X=x.style)||void 0===X?void 0:X.fontFamily))&&v.insertRule(x.cssText,v.cssRules.length)}function e(v){var x;const b=v.get(0),B=null===(x=b.getRootNode)||void 0===x?void 0:x.call(b);if(null==B||!B.host)return;d||(d=m(B),T(d,b.ownerDocument.styleSheets,!1));const j=m(B);T(j,B.styleSheets,!0),B.adoptedStyleSheets=[d,j]}function k(v,x,b){const B=v.getBoundingClientRect();return B&&x>=B.left&&x<B.right&&b>=B.top&&b<B.bottom}function P(v,x,b){const B=function w(){let v=0;const x=[];return{push(b){return x.push(b),this},shift:()=>(v++,x[v-1]),get length(){return x.length-v},get items(){return x}}}().push(b);for(;B.length;){const F=B.shift();for(let X=0;X<F.childNodes.length;X++){const U=F.childNodes[X];U.nodeType===Node.ELEMENT_NODE&&k(U,v,x)&&"none"!==getComputedStyle(U).pointerEvents&&B.push(U)}}const j=B.items.reverse();return j.pop(),j}},7754:(En,it,p)=>{"use strict";p.d(it,{A:()=>e});var S=p(3090),d=p(8181),m=p(9495);const C="https://js.devexpress.com/error/"+p(9274).r.split(".").slice(0,2).join("_")+"/";function e(k,w){const P={ERROR_MESSAGES:(0,S.X)(w,k),Error:function(){return function(B){const j=B[0],F=v(j,B=B.slice(1)),X=b(j),U=x(j,F);return(0,S.X)(new Error(U),{__id:j,__details:F,url:X})}([].slice.call(arguments))},log:function(B){let j="log";/^E\d+$/.test(B)?j="error":/^W\d+$/.test(B)&&(j="warn"),d.v[j]("log"===j?B:function(F){const X=F[0];return x(X,v(X,F=F.slice(1)))}([].slice.call(arguments)))}};function v(B,j){return j=[P.ERROR_MESSAGES[B]].concat(j),m.GP.apply(this,j).replace(/\.*\s*?$/,"")}function x(B,j){const F=null!=B&&B.startsWith("W")?"warning":"error";return m.GP.apply(this,["{0} - {1}.\n\nFor additional information on this {2} message, see: {3}",B,j,F,b(B)])}function b(B){return C+B}return P}},7794:(En,it,p)=>{"use strict";p.d(it,{A:()=>ee});var S=p(5737),d=p(5973),m=p(5704),T=p(5944),C=p(4859),e=p(4270),k=p(3090),w=p(8535),P=p(2660),v=p(1830),x=p(4481),b=p(3538),B=p(1541),j=p(1435),F=p(8910),X=p(127),U=p(6853);const A=b.A.inherit({ctor(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes(re,be){const ce=this;(0,P.__)(re,(Re,Se)=>{const De=(0,v.O9)(be)?be:ce._getParentId(Se),Pe=ce._convertItemToNode(Se,De);ce._dataStructure.push(Pe),ce._checkForDuplicateId(Pe.internalFields.key),ce._indexByKey[Pe.internalFields.key]=ce._dataStructure.length-1,ce._itemHasChildren(Se)&&ce._convertItemsToNodes(ce._dataAccessors.getters.items(Se),Pe.internalFields.key)})},_checkForDuplicateId(re){if((0,v.O9)(this._indexByKey[re]))throw X.A.Error("E1040",re)},_getParentId(re){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(re):void 0},_itemHasChildren(re){if("plain"===this._dataType)return;const be=this._dataAccessors.getters.items(re);return be&&be.length},_getUniqueKey(re){const be=this._dataAccessors.getters.key,ce=be(re);return be&&(ce||0===ce)&&(0,v.sO)(ce)?ce:this.getItemsCount()},_convertItemToNode(re,be){this._itemsCount++,!1!==re.visible&&this._visibleItemsCount++;const ce={internalFields:{disabled:this._dataAccessors.getters.disabled(re,{defaultValue:!1}),expanded:this._dataAccessors.getters.expanded(re,{defaultValue:!1}),selected:this._dataAccessors.getters.selected(re,{defaultValue:!1}),key:this._getUniqueKey(re),parentKey:(0,v.O9)(be)?be:this._rootValue,item:this._makeObjectFromPrimitive(re),childrenKeys:[]}};return(0,k.X)(ce,re),delete ce.items,ce},setChildrenKeys(){const re=this;(0,P.__)(this._dataStructure,(be,ce)=>{if(ce.internalFields.parentKey===re._rootValue)return;const Re=re.getParentNode(ce);Re&&Re.internalFields.childrenKeys.push(ce.internalFields.key)})},_makeObjectFromPrimitive(re){if((0,v.sO)(re)){const be=re;this._dataAccessors.setters.key(re={},be)}return re},_convertToPublicNode(re,be){if(!re)return null;const ce={text:this._dataAccessors.getters.display(re),key:re.internalFields.key,selected:re.internalFields.selected,expanded:re.internalFields.expanded,disabled:re.internalFields.disabled,parent:be||null,itemData:re.internalFields.item,children:[],items:[]};return ce.parent&&(ce.parent.children.push(ce),ce.parent.items.push(ce)),ce},convertToPublicNodes(re,be){if(!re.length)return[];const ce=this,Re=[];return(0,P.__)(re,(Se,De)=>{De=(0,v.sO)(De)?ce._getByKey(De):De;const Pe=ce._convertToPublicNode(De,be);Pe.children=ce.convertToPublicNodes(De.internalFields.childrenKeys,Pe),Re.push(Pe),De.internalFields.publicNode=Pe}),Re},setDataAccessors(re){this._dataAccessors=re},_getByKey(re){return this._dataStructure[this.getIndexByKey(re)]||null},getParentNode(re){return this._getByKey(re.internalFields.parentKey)},getByKey(re,be){if(null==be)return null;let ce=null;const Re=this;return De=be,(0,P.__)(re,(Pe,Ie)=>{if((Ie.internalFields&&Ie.internalFields.key||Re._dataAccessors.getters.key(Ie)).toString()===De.toString())return ce=Ie,!1}),ce;var De},getItemsCount(){return this._itemsCount},getVisibleItemsCount(){return this._visibleItemsCount},updateIndexByKey(){const re=this;this._indexByKey={},(0,P.__)(this._dataStructure,(be,ce)=>{re._checkForDuplicateId(ce.internalFields.key),re._indexByKey[ce.internalFields.key]=be})},updateChildrenKeys(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys(){this._indexByKey={},(0,P.__)(this._dataStructure,(re,be)=>{be.internalFields.childrenKeys=[]})},getIndexByKey(re){return this._indexByKey[re]},createPlainStructure(re,be,ce){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=be,this._dataType=ce,this._indexByKey={},this._convertItemsToNodes(re),this.setChildrenKeys(),this._dataStructure}}),M="expanded",H="selected";U.A.setEditorClass(F.A);const L=b.A.inherit({ctor(re){this.options={},(0,k.X)(this.options,this._defaultOptions(),re),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption(re,be){this.options[re]=be,"recursiveSelection"===re&&this._updateSelection()},_defaultOptions:()=>({dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new A,onNodeChanged:C.lQ,sort:null}),_createInternalDataStructure(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(H)},_updateExpansion(re){this.options.recursiveExpansion&&(re?this._updateOneBranch(re):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(M)},_updateNodesKeysArray(re){const be=this;let ce=[];return(0,P.__)(be._getDataBySelectionMode(),(Re,Se)=>{be._isNodeVisible(Se)&&Se.internalFields[re]&&(re===M||be.options.multipleSelection?ce.push(Se.internalFields.key):(ce.length&&be.toggleSelection(ce[0],!1,!0),ce=[Se.internalFields.key]))}),ce},_getDataBySelectionMode(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:re=>!1!==re.internalFields.item.visible,_getByKey(re,be){return re===this._dataStructure?this.options.dataConverter._getByKey(be):this.options.dataConverter.getByKey(re,be)},_setChildrenSelection(){const re=this;(0,P.__)(this._dataStructure,(be,ce)=>{if(!ce.internalFields.childrenKeys.length)return;const Re=ce.internalFields.selected;!0===Re&&re._toggleChildrenSelection(ce,Re)})},_setParentSelection(){const re=this;(0,P.__)(this._dataStructure,(be,ce)=>{re.options.dataConverter.getParentNode(ce)&&ce.internalFields.parentKey!==re.options.rootValue&&re._iterateParents(ce,Se=>{const De=re._calculateSelectedState(Se);re._setFieldState(Se,H,De)})})},_setParentExpansion(){const re=this;(0,P.__)(this._dataStructure,(be,ce)=>{ce.internalFields.expanded&&re._updateOneBranch(ce.internalFields.key)})},_updateOneBranch(re){const be=this,ce=this.getNodeByKey(re);be._iterateParents(ce,Re=>{be._setFieldState(Re,M,!0)})},_iterateChildren(re,be,ce,Re){if(!(0,v.Tn)(ce))return;const Se=this,De=re.internalFields.key;-1===(Re=Re||[]).indexOf(De)&&(Re.push(De),(0,P.__)(re.internalFields.childrenKeys,(Pe,Ie)=>{const W=Se.getNodeByKey(Ie);ce(W),W.internalFields.childrenKeys.length&&be&&Se._iterateChildren(W,be,ce,Re)}))},_iterateParents(re,be,ce){if(re.internalFields.parentKey===this.options.rootValue||!(0,v.Tn)(be))return;ce=ce||[];const{key:Re}=re.internalFields;if(-1===ce.indexOf(Re)){ce.push(Re);const Se=this.options.dataConverter.getParentNode(re);Se&&(be(Se),Se.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(Se,be,ce))}},_calculateSelectedState(re){const be=re.internalFields.childrenKeys.length;let ce=0,Re=0,Se=!1;for(let De=0;De<=be-1;De++){const Pe=this.getNodeByKey(re.internalFields.childrenKeys[De]),W=Pe.internalFields.selected;!1===Pe.internalFields.item.visible?Re++:W?ce++:void 0===W&&(ce+=.5)}return ce&&(Se=ce===be-Re||void 0),Se},_toggleChildrenSelection(re,be){const ce=this;this._iterateChildren(re,!0,Re=>{ce._isNodeVisible(Re)&&ce._setFieldState(Re,H,be)})},_setFieldState(re,be,ce){re.internalFields[be]!==ce&&(re.internalFields[be]=ce,re.internalFields.publicNode&&(re.internalFields.publicNode[be]=ce),this.options.dataAccessors.setters[be](re.internalFields.item,ce),this.options.onNodeChanged(re))},_markChildren(re){const be=this;(0,P.__)(re,(ce,Re)=>{const Se=be.getIndexByKey(Re),De=be.getNodeByKey(Re);be._dataStructure[Se]=0,De.internalFields.childrenKeys.length&&be._markChildren(De.internalFields.childrenKeys)})},_removeNode(re){const be=this.getNodeByKey(re);this._dataStructure[this.getIndexByKey(re)]=0,this._markChildren(be.internalFields.childrenKeys);const ce=this;let Re=0;const Se=(0,k.X)([],this._dataStructure);(0,P.__)(Se,(De,Pe)=>{Pe||(ce._dataStructure.splice(De-Re,1),Re++)})},_addNode(re){const{dataConverter:be}=this.options,ce=be._convertItemToNode(re,this.options.dataAccessors.getters.parentKey(re));this._dataStructure=this._dataStructure.concat(ce),this._initialDataStructure=this._initialDataStructure.concat(ce),be._dataStructure=be._dataStructure.concat(ce)},_updateFields(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys(){return this._selectedNodesKeys},getExpandedNodesKeys(){return this._expandedNodesKeys},getData(){return this._dataStructure},getFullData(){return this._initialDataStructure},getNodeByItem(re){let be=null;return(0,P.__)(this._dataStructure,(ce,Re)=>{if(Re.internalFields.item===re)return be=Re,!1}),be},getNodesByItems(re){const be=this,ce=[];return(0,P.__)(re,(Re,Se)=>{const De=be.getNodeByItem(Se);De&&ce.push(De)}),ce},getNodeByKey(re,be){return this._getByKey(be||this._getDataBySelectionMode(),re)},getTreeNodes(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:re=>re.internalFields.publicNode,getRootNodes(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes(re){return(0,B.A)(this._dataStructure,{langParams:this.options.langParams}).filter(["internalFields.parentKey",re]).toArray()},getIndexByKey(re){return this.options.dataConverter.getIndexByKey(re)},addItem(re){this._addNode(re),this._updateFields()},removeItem(re){this._removeNode(re),this._updateFields()},toggleSelection(re,be,ce){const Re=this._isSingleModeUnselect(be),Se=this._getByKey(ce||Re?this._initialDataStructure:this._dataStructure,re);this._setFieldState(Se,H,be),this.options.recursiveSelection&&!ce&&(be?this._setChildrenSelection():this._toggleChildrenSelection(Se,be),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(H)},_isSingleModeUnselect(re){return!this.options.multipleSelection&&!re},toggleNodeDisabledState(re,be){const ce=this.getNodeByKey(re);this._setFieldState(ce,"disabled",be)},toggleSelectAll(re){if(!(0,v.O9)(re))return;const be=this,ce=be._selectedNodesKeys[be._selectedNodesKeys.length-1],Re=be._isSingleModeUnselect(re)?this._initialDataStructure:this._dataStructure;(0,P.__)(Re,(Se,De)=>{be._isNodeVisible(De)&&be._setFieldState(De,H,re)}),be._selectedNodesKeys=be._updateNodesKeysArray(H),!re&&be.options.selectionRequired&&be.toggleSelection(ce,!0)},isAllSelected(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion(re,be){const ce=this.getNodeByKey(re);this._setFieldState(ce,M,be),be&&this._updateExpansion(re),this._expandedNodesKeys=this._updateNodesKeysArray(M)},isFiltered(re){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[re]).length},_createCriteria(re,be,ce){const Re=[];return Array.isArray(re)?((0,P.__)(re,(Se,De)=>{Re.push([De,ce,be],"or")}),Re.pop(),Re):[re,ce,be]},_filterDataStructure(re,be){const ce=this.options.searchExpr||this.options.dataAccessors.getters.display,Re=U.A.getOperationBySearchMode(this.options.searchMode),Se=this._createCriteria(ce,re,Re);return(0,B.A)(be=be||this._initialDataStructure,{langParams:this.options.langParams}).filter(Se).toArray()},search(re){const be=this;let ce=this._filterDataStructure(re);const{dataConverter:Re}=this.options;return function Se(De,Pe){const{length:Ie}=De;for(;Pe<Ie;){const W=De[Pe];if(W.internalFields.parentKey===be.options.rootValue){Pe++;continue}const ie=Re.getParentNode(W);ie?(ie.internalFields.expanded||be._setFieldState(ie,M,!0),De.includes(ie)?Pe++:(De.splice(Pe,0,ie),Se(De,Pe))):(X.A.log("W1007",W.internalFields.parentKey,W.internalFields.key),Pe++)}}(ce,0),this.options.sort&&(ce=j.A.queryByOptions((0,B.A)(ce),{sort:this.options.sort,langParams:this.options.langParams}).toArray()),Re._indexByKey={},(0,P.__)(ce,(Se,De)=>{De.internalFields.childrenKeys=[],Re._indexByKey[De.internalFields.key]=Se}),Re._dataStructure=ce,Re.setChildrenKeys(),Re._dataStructure}}),ee=x.A.inherit({_getDefaultOptions(){return(0,k.X)(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules(){return this.callBase().concat([{device:()=>"desktop"===d.A.real().deviceType&&!d.A.isSimulator(),options:{focusStateEnabled:!0}}])},_init(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter(){const re=this._createDataAdapterAccessors();this._dataAdapter=new L((0,k.X)({dataAccessors:{getters:re.getters,setters:re.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:C.lQ,_getItemExtraPropNames:C.lQ,_initDynamicTemplates(){const re=["text","html","items","icon"].concat(this._getItemExtraPropNames());this._templateManager.addDefaultTemplates({item:new T.U(this._addContent.bind(this),re,this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})})},_addContent(re,be){re.html(be.html).append(this._getIconContainer(be)).append(this._getTextContainer(be))},_getLinkContainer(re,be,ce){let{linkAttr:Re,url:Se}=ce;const De=(0,v.Gv)(Re)?Re:{};return(0,m.A)("<a>").addClass("dx-item-url").attr((0,S.A)({},De,{href:Se})).append(re).append(be)},_getIconContainer(re){if(!re.icon)return;const be=(0,w.N)(re.icon);if(be.is("img")){const ce=this.NAME.startsWith("dxPrivateComponent")?"":`${this.NAME} `;be.attr("alt",`${ce}item icon`)}return be},_getTextContainer:re=>(0,m.A)("<span>").text(re.text),_initAccessors(){const re=this;(0,P.__)(this._getAccessors(),(be,ce)=>{re._compileAccessor(ce)}),this._compileDisplayGetter()},_getAccessors:()=>["key","selected","items","disabled","parentId","expanded"],_getChildNodes(re){const be=this,ce=[];return(0,P.__)(re.internalFields.childrenKeys,(Re,Se)=>{const De=be._dataAdapter.getNodeByKey(Se);ce.push(De)}),ce},_hasChildren:re=>re&&re.internalFields.childrenKeys.length,_compileAccessor(re){const be=`_${re}Getter`,ce=`_${re}Setter`,Re=this.option(`${re}Expr`);return Re?(0,v.Tn)(Re)?(this[ce]=function(Se,De){Se[Re()]=De},void(this[be]=function(Se){return Se[Re()]})):(this[be]=(0,e.Hz)(Re),void(this[ce]=(0,e.vL)(Re))):(this[be]=C.lQ,void(this[ce]=C.lQ))},_createDataAdapterAccessors(){const re=this,be={getters:{},setters:{}};return(0,P.__)(this._getAccessors(),(ce,Re)=>{const De=`_${Re}Setter`,Pe="parentId"===Re?"parentKey":Re;be.getters[Pe]=re[`_${Re}Getter`],be.setters[Pe]=re[De]}),be.getters.display=this._displayGetter?this._displayGetter:ce=>ce.text,be},_initMarkup(){this.callBase(),this._addWidgetClass()},_addWidgetClass(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:C.lQ,_renderItemFrame(re,be){const ce=this.callBase.apply(this,arguments);return ce.toggleClass("dx-state-disabled",!!this._disabledGetter(be)),ce},_optionChanged(re){switch(re.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(re);break;default:this.callBase(re)}}})},7829:(En,it,p)=>{"use strict";p.d(it,{B3:()=>Sn,Jj:()=>ni,MD:()=>fs,OI:()=>pi,P9:()=>Fo,Sq:()=>hs,T3:()=>ri,YU:()=>vo,bT:()=>Hs,e1:()=>Fn,fw:()=>e,lG:()=>gs,ux:()=>bs,vh:()=>jn});var S=p(656),d=p(4303),m=p(2978),T=p(3038),C=p(5732);let e=(()=>{class zt extends C.hb{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(pn,An){super(),this._platformLocation=pn,null!=An&&(this._baseHref=An)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(pn){this._removeListenerFns.push(this._platformLocation.onPopState(pn),this._platformLocation.onHashChange(pn))}getBaseHref(){return this._baseHref}path(pn=!1){const An=this._platformLocation.hash??"#";return An.length>0?An.substring(1):An}prepareExternalUrl(pn){const An=(0,C.om)(this._baseHref,pn);return An.length>0?"#"+An:An}pushState(pn,An,fi,qi){const So=this.prepareExternalUrl(fi+(0,C.Q)(qi))||this._platformLocation.pathname;this._platformLocation.pushState(pn,An,So)}replaceState(pn,An,fi,qi){const So=this.prepareExternalUrl(fi+(0,C.Q)(qi))||this._platformLocation.pathname;this._platformLocation.replaceState(pn,An,So)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(pn=0){this._platformLocation.historyGo?.(pn)}static \u0275fac=function(An){return new(An||zt)(S.KVO(C.Vw),S.KVO(C.kB,8))};static \u0275prov=S.jDH({token:zt,factory:zt.\u0275fac})}return zt})();var v=function(zt){return zt[zt.Format=0]="Format",zt[zt.Standalone=1]="Standalone",zt}(v||{}),x=function(zt){return zt[zt.Narrow=0]="Narrow",zt[zt.Abbreviated=1]="Abbreviated",zt[zt.Wide=2]="Wide",zt[zt.Short=3]="Short",zt}(x||{}),b=function(zt){return zt[zt.Short=0]="Short",zt[zt.Medium=1]="Medium",zt[zt.Long=2]="Long",zt[zt.Full=3]="Full",zt}(b||{});function J(zt,zn){return Pe((0,d.kBR)(zt)[d.NSC.DateFormat],zn)}function R(zt,zn){return Pe((0,d.kBR)(zt)[d.NSC.TimeFormat],zn)}function L(zt,zn){return Pe((0,d.kBR)(zt)[d.NSC.DateTimeFormat],zn)}function G(zt,zn){const pn=(0,d.kBR)(zt),An=pn[d.NSC.NumberSymbols][zn];if(typeof An>"u"){if(12===zn)return pn[d.NSC.NumberSymbols][0];if(13===zn)return pn[d.NSC.NumberSymbols][1]}return An}function ce(zt){if(!zt[d.NSC.ExtraData])throw new S.buA(2303,!1)}function Pe(zt,zn){for(let pn=zn;pn>-1;pn--)if(typeof zt[pn]<"u")return zt[pn];throw new S.buA(2304,!1)}function Ie(zt){const[zn,pn]=zt.split(":");return{hours:+zn,minutes:+pn}}const Ce=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ye={},Me=/((?:[^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]*)/;function _e(zt,zn,pn,An){let fi=function me(zt){if(je(zt))return zt;if("number"==typeof zt&&!isNaN(zt))return new Date(zt);if("string"==typeof zt){if(zt=zt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(zt)){const[fi,qi=1,So=1]=zt.split("-").map(Go=>+Go);return Ye(fi,qi-1,So)}const pn=parseFloat(zt);if(!isNaN(zt-pn))return new Date(pn);let An;if(An=zt.match(Ce))return function Te(zt){const zn=new Date(0);let pn=0,An=0;const fi=zt[8]?zn.setUTCFullYear:zn.setFullYear,qi=zt[8]?zn.setUTCHours:zn.setHours;zt[9]&&(pn=Number(zt[9]+zt[10]),An=Number(zt[9]+zt[11])),fi.call(zn,Number(zt[1]),Number(zt[2])-1,Number(zt[3]));const So=Number(zt[4]||0)-pn,Go=Number(zt[5]||0)-An,xs=Number(zt[6]||0),Rs=Math.floor(1e3*parseFloat("0."+(zt[7]||0)));return qi.call(zn,So,Go,xs,Rs),zn}(An)}const zn=new Date(zt);if(!je(zn))throw new S.buA(2302,!1);return zn}(zt);zn=de(pn,zn)||zn;let Go,So=[];for(;zn;){if(Go=Me.exec(zn),!Go){So.push(zn);break}{So=So.concat(Go.slice(1));const ks=So.pop();if(!ks)break;zn=ks}}let xs=fi.getTimezoneOffset();An&&(xs=Nt(An,xs),fi=function ue(zt,zn){const fi=zt.getTimezoneOffset();return function et(zt,zn){return(zt=new Date(zt.getTime())).setMinutes(zt.getMinutes()+zn),zt}(zt,-1*(Nt(zn,fi)-fi))}(fi,An));let Rs="";return So.forEach(ks=>{const _s=function qe(zt){if(Vt[zt])return Vt[zt];let zn;switch(zt){case"G":case"GG":case"GGG":zn=Be(3,x.Abbreviated);break;case"GGGG":zn=Be(3,x.Wide);break;case"GGGGG":zn=Be(3,x.Narrow);break;case"y":zn=le(0,1,0,!1,!0);break;case"yy":zn=le(0,2,0,!0,!0);break;case"yyy":zn=le(0,3,0,!1,!0);break;case"yyyy":zn=le(0,4,0,!1,!0);break;case"Y":zn=at(1);break;case"YY":zn=at(2,!0);break;case"YYY":zn=at(3);break;case"YYYY":zn=at(4);break;case"M":case"L":zn=le(1,1,1);break;case"MM":case"LL":zn=le(1,2,1);break;case"MMM":zn=Be(2,x.Abbreviated);break;case"MMMM":zn=Be(2,x.Wide);break;case"MMMMM":zn=Be(2,x.Narrow);break;case"LLL":zn=Be(2,x.Abbreviated,v.Standalone);break;case"LLLL":zn=Be(2,x.Wide,v.Standalone);break;case"LLLLL":zn=Be(2,x.Narrow,v.Standalone);break;case"w":zn=tt(1);break;case"ww":zn=tt(2);break;case"W":zn=tt(1,!0);break;case"d":zn=le(2,1);break;case"dd":zn=le(2,2);break;case"c":case"cc":zn=le(7,1);break;case"ccc":zn=Be(1,x.Abbreviated,v.Standalone);break;case"cccc":zn=Be(1,x.Wide,v.Standalone);break;case"ccccc":zn=Be(1,x.Narrow,v.Standalone);break;case"cccccc":zn=Be(1,x.Short,v.Standalone);break;case"E":case"EE":case"EEE":zn=Be(1,x.Abbreviated);break;case"EEEE":zn=Be(1,x.Wide);break;case"EEEEE":zn=Be(1,x.Narrow);break;case"EEEEEE":zn=Be(1,x.Short);break;case"a":case"aa":case"aaa":zn=Be(0,x.Abbreviated);break;case"aaaa":zn=Be(0,x.Wide);break;case"aaaaa":zn=Be(0,x.Narrow);break;case"b":case"bb":case"bbb":zn=Be(0,x.Abbreviated,v.Standalone,!0);break;case"bbbb":zn=Be(0,x.Wide,v.Standalone,!0);break;case"bbbbb":zn=Be(0,x.Narrow,v.Standalone,!0);break;case"B":case"BB":case"BBB":zn=Be(0,x.Abbreviated,v.Format,!0);break;case"BBBB":zn=Be(0,x.Wide,v.Format,!0);break;case"BBBBB":zn=Be(0,x.Narrow,v.Format,!0);break;case"h":zn=le(3,1,-12);break;case"hh":zn=le(3,2,-12);break;case"H":zn=le(3,1);break;case"HH":zn=le(3,2);break;case"m":zn=le(4,1);break;case"mm":zn=le(4,2);break;case"s":zn=le(5,1);break;case"ss":zn=le(5,2);break;case"S":zn=le(6,1);break;case"SS":zn=le(6,2);break;case"SSS":zn=le(6,3);break;case"Z":case"ZZ":case"ZZZ":zn=Oe(0);break;case"ZZZZZ":zn=Oe(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":zn=Oe(1);break;case"OOOO":case"ZZZZ":case"zzzz":zn=Oe(2);break;default:return null}return Vt[zt]=zn,zn}(ks);Rs+=_s?_s(fi,pn,xs):"''"===ks?"'":ks.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Rs}function Ye(zt,zn,pn){const An=new Date(0);return An.setFullYear(zt,zn,pn),An.setHours(0,0,0),An}function de(zt,zn){const pn=function F(zt){return(0,d.kBR)(zt)[d.NSC.LocaleId]}(zt);if(ye[pn]??={},ye[pn][zn])return ye[pn][zn];let An="";switch(zn){case"shortDate":An=J(zt,b.Short);break;case"mediumDate":An=J(zt,b.Medium);break;case"longDate":An=J(zt,b.Long);break;case"fullDate":An=J(zt,b.Full);break;case"shortTime":An=R(zt,b.Short);break;case"mediumTime":An=R(zt,b.Medium);break;case"longTime":An=R(zt,b.Long);break;case"fullTime":An=R(zt,b.Full);break;case"short":const fi=de(zt,"shortTime"),qi=de(zt,"shortDate");An=Ae(L(zt,b.Short),[fi,qi]);break;case"medium":const So=de(zt,"mediumTime"),Go=de(zt,"mediumDate");An=Ae(L(zt,b.Medium),[So,Go]);break;case"long":const xs=de(zt,"longTime"),Rs=de(zt,"longDate");An=Ae(L(zt,b.Long),[xs,Rs]);break;case"full":const ks=de(zt,"fullTime"),_s=de(zt,"fullDate");An=Ae(L(zt,b.Full),[ks,_s])}return An&&(ye[pn][zn]=An),An}function Ae(zt,zn){return zn&&(zt=zt.replace(/\{([^}]+)}/g,function(pn,An){return null!=zn&&An in zn?zn[An]:pn})),zt}function pe(zt,zn,pn="-",An,fi){let qi="";(zt<0||fi&&zt<=0)&&(fi?zt=1-zt:(zt=-zt,qi=pn));let So=String(zt);for(;So.length<zn;)So="0"+So;return An&&(So=So.slice(So.length-zn)),qi+So}function le(zt,zn,pn=0,An=!1,fi=!1){return function(qi,So){let Go=function Ke(zt,zn){switch(zt){case 0:return zn.getFullYear();case 1:return zn.getMonth();case 2:return zn.getDate();case 3:return zn.getHours();case 4:return zn.getMinutes();case 5:return zn.getSeconds();case 6:return zn.getMilliseconds();case 7:return zn.getDay();default:throw new S.buA(2301,!1)}}(zt,qi);if((pn>0||Go>-pn)&&(Go+=pn),3===zt)0===Go&&-12===pn&&(Go=12);else if(6===zt)return function Ee(zt,zn){return pe(zt,3).substring(0,zn)}(Go,zn);const xs=G(So,5);return pe(Go,zn,xs,An,fi)}}function Be(zt,zn,pn=v.Format,An=!1){return function(fi,qi){return function q(zt,zn,pn,An,fi,qi){switch(pn){case 2:return function Z(zt,zn,pn){const An=(0,d.kBR)(zt),qi=Pe([An[d.NSC.MonthsFormat],An[d.NSC.MonthsStandalone]],zn);return Pe(qi,pn)}(zn,fi,An)[zt.getMonth()];case 1:return function U(zt,zn,pn){const An=(0,d.kBR)(zt),qi=Pe([An[d.NSC.DaysFormat],An[d.NSC.DaysStandalone]],zn);return Pe(qi,pn)}(zn,fi,An)[zt.getDay()];case 0:const So=zt.getHours(),Go=zt.getMinutes();if(qi){const Rs=function Re(zt){const zn=(0,d.kBR)(zt);return ce(zn),(zn[d.NSC.ExtraData][2]||[]).map(An=>"string"==typeof An?Ie(An):[Ie(An[0]),Ie(An[1])])}(zn),ks=function Se(zt,zn,pn){const An=(0,d.kBR)(zt);ce(An);const qi=Pe([An[d.NSC.ExtraData][0],An[d.NSC.ExtraData][1]],zn)||[];return Pe(qi,pn)||[]}(zn,fi,An),_s=Rs.findIndex(Bs=>{if(Array.isArray(Bs)){const[Ss,Et]=Bs,en=So>=Ss.hours&&Go>=Ss.minutes,Dn=So<Et.hours||So===Et.hours&&Go<Et.minutes;if(Ss.hours<Et.hours){if(en&&Dn)return!0}else if(en||Dn)return!0}else if(Bs.hours===So&&Bs.minutes===Go)return!0;return!1});if(-1!==_s)return ks[_s]}return function X(zt,zn,pn){const An=(0,d.kBR)(zt),qi=Pe([An[d.NSC.DayPeriodsFormat],An[d.NSC.DayPeriodsStandalone]],zn);return Pe(qi,pn)}(zn,fi,An)[So<12?0:1];case 3:return function A(zt,zn){return Pe((0,d.kBR)(zt)[d.NSC.Eras],zn)}(zn,An)[zt.getFullYear()<=0?0:1];default:throw new S.buA(2302,!1)}}(fi,qi,zt,zn,pn,An)}}function Oe(zt){return function(zn,pn,An){const fi=-1*An,qi=G(pn,5),So=fi>0?Math.floor(fi/60):Math.ceil(fi/60);switch(zt){case 0:return(fi>=0?"+":"")+pe(So,2,qi)+pe(Math.abs(fi%60),2,qi);case 1:return"GMT"+(fi>=0?"+":"")+pe(So,1,qi);case 2:return"GMT"+(fi>=0?"+":"")+pe(So,2,qi)+":"+pe(Math.abs(fi%60),2,qi);case 3:return 0===An?"Z":(fi>=0?"+":"")+pe(So,2,qi)+":"+pe(Math.abs(fi%60),2,qi);default:throw new S.buA(2302,!1)}}}const fe=0,We=4;function Ve(zt){const zn=zt.getDay(),pn=0===zn?-3:We-zn;return Ye(zt.getFullYear(),zt.getMonth(),zt.getDate()+pn)}function tt(zt,zn=!1){return function(pn,An){let fi;if(zn){const qi=new Date(pn.getFullYear(),pn.getMonth(),1).getDay()-1,So=pn.getDate();fi=1+Math.floor((So+qi)/7)}else{const qi=Ve(pn),So=function Ue(zt){const zn=Ye(zt,fe,1).getDay();return Ye(zt,0,1+(zn<=We?We:We+7)-zn)}(qi.getFullYear()),Go=qi.getTime()-So.getTime();fi=1+Math.round(Go/6048e5)}return pe(fi,zt,G(An,5))}}function at(zt,zn=!1){return function(pn,An){return pe(Ve(pn).getFullYear(),zt,G(An,5),zn)}}const Vt={};function Nt(zt,zn){zt=zt.replace(/:/g,"");const pn=Date.parse("Jan 01, 1970 00:00:00 "+zt)/6e4;return isNaN(pn)?zn:pn}function je(zt){return zt instanceof Date&&!isNaN(zt.valueOf())}const Jn=/\s+/,Ii=[];let vo=(()=>{class zt{_ngEl;_renderer;initialClasses=Ii;rawClass;stateMap=new Map;constructor(pn,An){this._ngEl=pn,this._renderer=An}set klass(pn){this.initialClasses=null!=pn?pn.trim().split(Jn):Ii}set ngClass(pn){this.rawClass="string"==typeof pn?pn.trim().split(Jn):pn}ngDoCheck(){for(const An of this.initialClasses)this._updateState(An,!0);const pn=this.rawClass;if(Array.isArray(pn)||pn instanceof Set)for(const An of pn)this._updateState(An,!0);else if(null!=pn)for(const An of Object.keys(pn))this._updateState(An,!!pn[An]);this._applyStateDiff()}_updateState(pn,An){const fi=this.stateMap.get(pn);void 0!==fi?(fi.enabled!==An&&(fi.changed=!0,fi.enabled=An),fi.touched=!0):this.stateMap.set(pn,{enabled:An,changed:!0,touched:!0})}_applyStateDiff(){for(const pn of this.stateMap){const An=pn[0],fi=pn[1];fi.changed?(this._toggleClass(An,fi.enabled),fi.changed=!1):fi.touched||(fi.enabled&&this._toggleClass(An,!1),this.stateMap.delete(An)),fi.touched=!1}}_toggleClass(pn,An){(pn=pn.trim()).length>0&&pn.split(Jn).forEach(fi=>{An?this._renderer.addClass(this._ngEl.nativeElement,fi):this._renderer.removeClass(this._ngEl.nativeElement,fi)})}static \u0275fac=function(An){return new(An||zt)(d.rXU(d.aKT),d.rXU(d.sFG))};static \u0275dir=d.FsC({type:zt,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return zt})(),pi=(()=>{class zt{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletEnvironmentInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(pn){this._viewContainerRef=pn}_needToReCreateNgModuleInstance(pn){return void 0!==pn.ngComponentOutletNgModule||void 0!==pn.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(pn){return void 0!==pn.ngComponentOutlet||void 0!==pn.ngComponentOutletContent||void 0!==pn.ngComponentOutletInjector||void 0!==pn.ngComponentOutletEnvironmentInjector||this._needToReCreateNgModuleInstance(pn)}ngOnChanges(pn){if(this._needToReCreateComponentInstance(pn)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const An=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(pn)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?(0,d.w6W)(this.ngComponentOutletNgModule,Wo(An)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(Wo(An)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:An,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent,environmentInjector:this.ngComponentOutletEnvironmentInjector})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const pn of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(pn,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(pn){for(const[An,fi]of this._inputsUsed)fi?(pn.setInput(An,this.ngComponentOutletInputs[An]),this._inputsUsed.set(An,!1)):(pn.setInput(An,void 0),this._inputsUsed.delete(An))}static \u0275fac=function(An){return new(An||zt)(d.rXU(d.c1b))};static \u0275dir=d.FsC({type:zt,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletEnvironmentInjector:"ngComponentOutletEnvironmentInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],features:[d.OA$]})}return zt})();function Wo(zt){return zt.get(d.Ab1).injector}class To{$implicit;ngForOf;index;count;constructor(zn,pn,An,fi){this.$implicit=zn,this.ngForOf=pn,this.index=An,this.count=fi}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 hs=(()=>{class zt{_viewContainer;_template;_differs;set ngForOf(pn){this._ngForOf=pn,this._ngForOfDirty=!0}set ngForTrackBy(pn){this._trackByFn=pn}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(pn,An,fi){this._viewContainer=pn,this._template=An,this._differs=fi}set ngForTemplate(pn){pn&&(this._template=pn)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const pn=this._ngForOf;!this._differ&&pn&&(this._differ=this._differs.find(pn).create(this.ngForTrackBy))}if(this._differ){const pn=this._differ.diff(this._ngForOf);pn&&this._applyChanges(pn)}}_applyChanges(pn){const An=this._viewContainer;pn.forEachOperation((fi,qi,So)=>{if(null==fi.previousIndex)An.createEmbeddedView(this._template,new To(fi.item,this._ngForOf,-1,-1),null===So?void 0:So);else if(null==So)An.remove(null===qi?void 0:qi);else if(null!==qi){const Go=An.get(qi);An.move(Go,So),Ps(Go,fi)}});for(let fi=0,qi=An.length;fi<qi;fi++){const Go=An.get(fi).context;Go.index=fi,Go.count=qi,Go.ngForOf=this._ngForOf}pn.forEachIdentityChange(fi=>{Ps(An.get(fi.currentIndex),fi)})}static ngTemplateContextGuard(pn,An){return!0}static \u0275fac=function(An){return new(An||zt)(d.rXU(d.c1b),d.rXU(d.C4Q),d.rXU(m._q3))};static \u0275dir=d.FsC({type:zt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return zt})();function Ps(zt,zn){zt.context.$implicit=zn.item}let Hs=(()=>{class zt{_viewContainer;_context=new ss;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(pn,An){this._viewContainer=pn,this._thenTemplateRef=An}set ngIf(pn){this._context.$implicit=this._context.ngIf=pn,this._updateView()}set ngIfThen(pn){qo(pn),this._thenTemplateRef=pn,this._thenViewRef=null,this._updateView()}set ngIfElse(pn){qo(pn),this._elseTemplateRef=pn,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(pn,An){return!0}static \u0275fac=function(An){return new(An||zt)(d.rXU(d.c1b),d.rXU(d.C4Q))};static \u0275dir=d.FsC({type:zt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return zt})();class ss{$implicit=null;ngIf=null}function qo(zt,zn){if(zt&&!zt.createEmbeddedView)throw new S.buA(2020,!1)}class cs{_viewContainerRef;_templateRef;_created=!1;constructor(zn,pn){this._viewContainerRef=zn,this._templateRef=pn}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(zn){zn&&!this._created?this.create():!zn&&this._created&&this.destroy()}}let bs=(()=>{class zt{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(pn){this._ngSwitch=pn,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(pn){this._defaultViews.push(pn)}_matchCase(pn){const An=pn===this._ngSwitch;return this._lastCasesMatched||=An,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),An}_updateDefaultCases(pn){if(this._defaultViews.length>0&&pn!==this._defaultUsed){this._defaultUsed=pn;for(const An of this._defaultViews)An.enforceState(pn)}}static \u0275fac=function(An){return new(An||zt)};static \u0275dir=d.FsC({type:zt,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return zt})(),Fn=(()=>{class zt{ngSwitch;_view;ngSwitchCase;constructor(pn,An,fi){this.ngSwitch=fi,fi._addCase(),this._view=new cs(pn,An)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(An){return new(An||zt)(d.rXU(d.c1b),d.rXU(d.C4Q),d.rXU(bs,9))};static \u0275dir=d.FsC({type:zt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return zt})(),Sn=(()=>{class zt{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(pn,An,fi){this._ngEl=pn,this._differs=An,this._renderer=fi}set ngStyle(pn){this._ngStyle=pn,!this._differ&&pn&&(this._differ=this._differs.find(pn).create())}ngDoCheck(){if(this._differ){const pn=this._differ.diff(this._ngStyle);pn&&this._applyChanges(pn)}}_setStyle(pn,An){const[fi,qi]=pn.split("."),So=-1===fi.indexOf("-")?void 0:d.czy.DashCase;null!=An?this._renderer.setStyle(this._ngEl.nativeElement,fi,qi?`${An}${qi}`:An,So):this._renderer.removeStyle(this._ngEl.nativeElement,fi,So)}_applyChanges(pn){pn.forEachRemovedItem(An=>this._setStyle(An.key,null)),pn.forEachAddedItem(An=>this._setStyle(An.key,An.currentValue)),pn.forEachChangedItem(An=>this._setStyle(An.key,An.currentValue))}static \u0275fac=function(An){return new(An||zt)(d.rXU(d.aKT),d.rXU(m.MKu),d.rXU(d.sFG))};static \u0275dir=d.FsC({type:zt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return zt})(),ri=(()=>{class zt{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(pn){this._viewContainerRef=pn}ngOnChanges(pn){if(this._shouldRecreateView(pn)){const An=this._viewContainerRef;if(this._viewRef&&An.remove(An.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const fi=this._createContextForwardProxy();this._viewRef=An.createEmbeddedView(this.ngTemplateOutlet,fi,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(pn){return!!pn.ngTemplateOutlet||!!pn.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(pn,An,fi)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,An,fi),get:(pn,An,fi)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,An,fi)}})}static \u0275fac=function(An){return new(An||zt)(d.rXU(d.c1b))};static \u0275dir=d.FsC({type:zt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[d.OA$]})}return zt})();function Pt(zt,zn){return new S.buA(2100,!1)}class dn{createSubscription(zn,pn,An){return(0,T.O8)(()=>zn.subscribe({next:pn,error:An}))}dispose(zn){(0,T.O8)(()=>zn.unsubscribe())}}class jt{createSubscription(zn,pn,An){return zn.then(fi=>pn?.(fi),fi=>An?.(fi)),{unsubscribe:()=>{pn=null,An=null}}}dispose(zn){zn.unsubscribe()}}const Ot=new jt,Tn=new dn;let ni=(()=>{class zt{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=(0,S.WQX)(S.ZTf);constructor(pn){this._ref=pn}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(pn){if(!this._obj){if(pn)try{this.markForCheckOnValueUpdate=!1,this._subscribe(pn)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return pn!==this._obj?(this._dispose(),this.transform(pn)):this._latestValue}_subscribe(pn){this._obj=pn,this._strategy=this._selectStrategy(pn),this._subscription=this._strategy.createSubscription(pn,An=>this._updateLatestValue(pn,An),An=>this.applicationErrorHandler(An))}_selectStrategy(pn){if((0,d.yLl)(pn))return Ot;if((0,d.cdK)(pn))return Tn;throw Pt()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(pn,An){pn===this._obj&&(this._latestValue=An,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(An){return new(An||zt)(d.rXU(m.gRc,16))};static \u0275pipe=d.EJ8({name:"async",type:zt,pure:!1})}return zt})();const St=new S.nKC(""),Qt=new S.nKC("");let jn=(()=>{class zt{locale;defaultTimezone;defaultOptions;constructor(pn,An,fi){this.locale=pn,this.defaultTimezone=An,this.defaultOptions=fi}transform(pn,An,fi,qi){if(null==pn||""===pn||pn!=pn)return null;try{return _e(pn,An??this.defaultOptions?.dateFormat??"mediumDate",qi||this.locale,fi??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(So){throw Pt()}}static \u0275fac=function(An){return new(An||zt)(d.rXU(d.xe9,16),d.rXU(St,24),d.rXU(Qt,24))};static \u0275pipe=d.EJ8({name:"date",type:zt,pure:!0})}return zt})(),gs=(()=>{class zt{differs;constructor(pn){this.differs=pn}differ;keyValues=[];compareFn=xn;transform(pn,An=xn){if(!pn||!(pn instanceof Map)&&"object"!=typeof pn)return null;this.differ??=this.differs.find(pn).create();const fi=this.differ.diff(pn),qi=An!==this.compareFn;return fi&&(this.keyValues=[],fi.forEachItem(So=>{this.keyValues.push(function $o(zt,zn){return{key:zt,value:zn}}(So.key,So.currentValue))})),(fi||qi)&&(An&&this.keyValues.sort(An),this.compareFn=An),this.keyValues}static \u0275fac=function(An){return new(An||zt)(d.rXU(m.MKu,16))};static \u0275pipe=d.EJ8({name:"keyvalue",type:zt,pure:!1})}return zt})();function xn(zt,zn){const pn=zt.key,An=zn.key;if(pn===An)return 0;if(null==pn)return 1;if(null==An)return-1;if("string"==typeof pn&&"string"==typeof An)return pn<An?-1:1;if("number"==typeof pn&&"number"==typeof An)return pn-An;if("boolean"==typeof pn&&"boolean"==typeof An)return pn<An?-1:1;const fi=String(pn),qi=String(An);return fi==qi?0:fi<qi?-1:1}let Fo=(()=>{class zt{transform(pn,An,fi){if(null==pn)return null;if("string"!=typeof pn&&!Array.isArray(pn))throw Pt();return pn.slice(An,fi)}static \u0275fac=function(An){return new(An||zt)};static \u0275pipe=d.EJ8({name:"slice",type:zt,pure:!1})}return zt})(),fs=(()=>{class zt{static \u0275fac=function(An){return new(An||zt)};static \u0275mod=d.$C({type:zt});static \u0275inj=S.G2t({})}return zt})()},7866:(En,it,p)=>{"use strict";p.d(it,{e:()=>e,t:()=>k});var S=p(656),d=p(4303),m=p(9994),T=p(3349);const C=["*"];let e=(()=>{class w extends T.ic{instance=null;get bounceEnabled(){return this._getOption("bounceEnabled")}set bounceEnabled(v){this._setOption("bounceEnabled",v)}get direction(){return this._getOption("direction")}set direction(v){this._setOption("direction",v)}get disabled(){return this._getOption("disabled")}set disabled(v){this._setOption("disabled",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get pulledDownText(){return this._getOption("pulledDownText")}set pulledDownText(v){this._setOption("pulledDownText",v)}get pullingDownText(){return this._getOption("pullingDownText")}set pullingDownText(v){this._setOption("pullingDownText",v)}get reachBottomText(){return this._getOption("reachBottomText")}set reachBottomText(v){this._setOption("reachBottomText",v)}get refreshingText(){return this._getOption("refreshingText")}set refreshingText(v){this._setOption("refreshingText",v)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(v){this._setOption("rtlEnabled",v)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(v){this._setOption("scrollByContent",v)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(v){this._setOption("scrollByThumb",v)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(v){this._setOption("showScrollbar",v)}get useNative(){return this._getOption("useNative")}set useNative(v){this._setOption("useNative",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}onDisposing;onInitialized;onOptionChanged;onPullDown;onReachBottom;onScroll;onUpdated;bounceEnabledChange;directionChange;disabledChange;elementAttrChange;heightChange;pulledDownTextChange;pullingDownTextChange;reachBottomTextChange;refreshingTextChange;rtlEnabledChange;scrollByContentChange;scrollByThumbChange;showScrollbarChange;useNativeChange;widthChange;constructor(v,x,b,B,j,F,X){super(v,x,b,B,F,X),this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"pullDown",emit:"onPullDown"},{subscribe:"reachBottom",emit:"onReachBottom"},{subscribe:"scroll",emit:"onScroll"},{subscribe:"updated",emit:"onUpdated"},{emit:"bounceEnabledChange"},{emit:"directionChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"pulledDownTextChange"},{emit:"pullingDownTextChange"},{emit:"reachBottomTextChange"},{emit:"refreshingTextChange"},{emit:"rtlEnabledChange"},{emit:"scrollByContentChange"},{emit:"scrollByThumbChange"},{emit:"showScrollbarChange"},{emit:"useNativeChange"},{emit:"widthChange"}]),j.setHost(this)}_createInstance(v,x){return new m.A(v,x)}ngOnDestroy(){this._destroyWidget()}static \u0275fac=function(x){return new(x||w)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:w,selectors:[["dx-scroll-view"]],inputs:{bounceEnabled:"bounceEnabled",direction:"direction",disabled:"disabled",elementAttr:"elementAttr",height:"height",pulledDownText:"pulledDownText",pullingDownText:"pullingDownText",reachBottomText:"reachBottomText",refreshingText:"refreshingText",rtlEnabled:"rtlEnabled",scrollByContent:"scrollByContent",scrollByThumb:"scrollByThumb",showScrollbar:"showScrollbar",useNative:"useNative",width:"width"},outputs:{onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onPullDown:"onPullDown",onReachBottom:"onReachBottom",onScroll:"onScroll",onUpdated:"onUpdated",bounceEnabledChange:"bounceEnabledChange",directionChange:"directionChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",pulledDownTextChange:"pulledDownTextChange",pullingDownTextChange:"pullingDownTextChange",reachBottomTextChange:"reachBottomTextChange",refreshingTextChange:"refreshingTextChange",rtlEnabledChange:"rtlEnabledChange",scrollByContentChange:"scrollByContentChange",scrollByThumbChange:"scrollByThumbChange",showScrollbarChange:"showScrollbarChange",useNativeChange:"useNativeChange",widthChange:"widthChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH]),d.Vt3],ngContentSelectors:C,decls:1,vars:0,template:function(x,b){1&x&&(d.NAR(),d.SdG(0))},encapsulation:2})}return w})(),k=(()=>{class w{static \u0275fac=function(x){return new(x||w)};static \u0275mod=d.$C({type:w});static \u0275inj=S.G2t({imports:[T.p_,T.xZ,T.xZ]})}return w})()},7940:(En,it,p)=>{"use strict";p.d(it,{A:()=>J});var S=p(4072),d=p(3538),m=p(9293),T=p(9659),C=p(6211),e=p(608),k=p(5973);const w=d.A.abstract,P=k.A.real(),U=d.A.inherit(function(){const R=(0,m.b4)("scroll","dxScrollEmitter");return{ctor:function(L){this._element=L,this._locked=!1,this._proxiedScroll=G=>{this._disposed||this._scroll(G)},S.A.on(this._element,R,this._proxiedScroll)},_scroll:w,check:function(L,G){this._locked&&G()},dispose:function(){this._disposed=!0,S.A.off(this._element,R,this._proxiedScroll)}}}()),Z=U.inherit({ctor:function(R,L){this.callBase(R),this._timeout=L},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){const R=this;this._timer=setTimeout(function(){R._clearTimer()},this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}),A=Z.inherit({ctor:function(R){this.callBase(R,400),this._lastWheelDirection=null},check:function(R,L){this._checkDirectionChanged(R),this.callBase(R,L)},_checkDirectionChanged:function(R){if(!(0,m.X1)(R))return void(this._lastWheelDirection=null);const L=R.shiftKey||!1,G=null!==this._lastWheelDirection&&L!==this._lastWheelDirection;this._lastWheelDirection=L,this._locked=this._locked&&!G}});let M=Z.inherit({ctor:function(R){this.callBase(R,400)}});!function(){const{ios:R,android:L}=P;(R||L)&&(M=U.inherit({_scroll:function(){this._locked=!0;const G=this;(0,e.u)(this._scrollFrame),this._scrollFrame=(0,e.x)(function(){G._locked=!1})},check:function(G,Q){(0,e.u)(this._scrollFrame),(0,e.u)(this._checkFrame);const z=this,K=this.callBase;this._checkFrame=(0,e.x)(function(){K.call(z,G,Q),z._locked=!1})},dispose:function(){this.callBase(),(0,e.u)(this._scrollFrame),(0,e.u)(this._checkFrame)}}))}();const H=T.A.inherit(function(){const R=Math.round(16.666666666666668);return{ctor:function(L){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new M(L),this._wheelLocker=new A(L)},validate:function(){return!0},configure:function(L){L.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new M(L.scrollTarget),this._wheelLocker=new A(L.scrollTarget)),this.callBase(L)},_init:function(L){this._wheelLocker.check(L,function(){(0,m.X1)(L)&&this._accept(L)}.bind(this)),this._pointerLocker.check(L,function(){const G=this.isNative&&(0,m.Er)(L);!(0,m.X1)(L)&&!G&&this._accept(L)}.bind(this)),this._fireEvent("dxscrollinit",L),this._prevEventData=(0,m.rw)(L)},move:function(L){this.callBase.apply(this,arguments),L.isScrollingEvent=this.isNative||L.isScrollingEvent},_start:function(L){this._savedEventData=(0,m.rw)(L),this._fireEvent("dxscrollstart",L),this._prevEventData=(0,m.rw)(L)},_move:function(L){const G=(0,m.rw)(L);this._fireEvent("dxscroll",L,{delta:(0,m.nm)(this._prevEventData,G)}),(0,m.nm)(this._savedEventData,G).time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=(0,m.rw)(L)},_end:function(L){const G=(0,m.nm)(this._prevEventData,(0,m.rw)(L));let Q={x:0,y:0};if(!(0,m.X1)(L)&&G.time<100){const z=(0,m.nm)(this._savedEventData,this._prevEventData),K=R/z.time;Q={x:z.x*K,y:z.y*K}}this._fireEvent("dxscrollend",L,{velocity:Q})},_stop:function(L){this._fireEvent("dxscrollstop",L)},cancel:function(L){this.callBase.apply(this,arguments),this._fireEvent("dxscrollcancel",L)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}}());(0,C.A)({emitter:H,events:["dxscrollinit","dxscrollstart","dxscroll","dxscrollend","dxscrollstop","dxscrollcancel"]});const J={init:"dxscrollinit",start:"dxscrollstart",move:"dxscroll",end:"dxscrollend",stop:"dxscrollstop",cancel:"dxscrollcancel",scroll:"scroll"}},7995:(En,it,p)=>{"use strict";p.d(it,{B:()=>d,K:()=>S});const S={light:"LIGHT",dark:"DARK"},d=992},8025:(En,it,p)=>{"use strict";p.d(it,{A:()=>d});const d=p(597).A},8030:(En,it,p)=>{"use strict";p.d(it,{L:()=>b});var S=p(4882),d=p(6104),m=p(2928),T=p(8503),C=p(1023),e=p(3746),k=p(656),w=p(3008),P=p(8375),v=p(7543),x=p(65);let b=(()=>{var B;class j{constructor(X,U,Z,A,M,H,J){this.chatRelayService=X,this.globalService=U,this.keepAliveService=Z,this.router=A,this.authenticationService=M,this.http=H,this.scope=J,this.routeActive=!1,this.badge=0,this.sourceTimes=(0,m.Y)(500),this.chatIsEnabled=!1,this.roomBadges={},this.connected=!1,this.activeRoomId="",this.badgesSource=new d.B,this.badgeUpdates$=this.badgesSource.asObservable(),this.isResumedSource=new d.B,this.isResumed$=this.isResumedSource.asObservable(),this.subscriptions=[],this.updateLastVisitPromise=null,this.userSettings={notificationsDisabled:!1,readStatusDisabled:!1},this.tokenReceived=!1,this.badgePromise=null,this.scopeModel=this.scope.getScope(),this.chatIsEnabled=this.scopeModel.currentChapter.settings.configurations?.chatChapterConfiguration?.ChatEnabled,this.router.events.pipe((0,T.p)(R=>R instanceof S.wF)).subscribe(R=>{const G=R.url.match(/room\/([0-9a-fA-F-]{36})$/);this.activeRoomId=G?G[1]:"",this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})}),this.chatIsEnabled&&(this.subscriptions.push(this.keepAliveService.isResumed$.subscribe(R=>{this.isResumedSource.next(R),R&&this.loadBadges().then(L=>{this.badge=L.totalCount,this.roomBadges=L.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})})}),this.subs=this.sourceTimes.subscribe(R=>{this.routeActive=!!window.location.href.endsWith(this.activeRoomId)})),this.globalService.getSettings().then(R=>{R&&(this.userSettings=R,this.subscriptions.push(this.chatRelayService.roomCreated$.subscribe(L=>{}),this.chatRelayService.msgReceived$.subscribe(L=>this.onMessageReceived(L)),this.chatRelayService.isConnected$.subscribe(L=>{this.connected=L})))}),this.authenticationService.isAuthenticated$.subscribe(R=>{this.tokenReceived=!0,this.isResumedSource.next(!0),this.loadBadges().then(L=>{this.badge=L.totalCount,this.roomBadges=L.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})})}))}ngOnDestroy(){this.subscriptions.forEach(X=>X.unsubscribe())}onMessageReceived(X){if(!this.userSettings?.notificationsDisabled){if(!this.roomBadges[X.roomId])return void this.loadBadges().then(U=>{this.badge=U.totalCount,this.roomBadges=U.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})});if(X.fromChatMemberId===this.roomBadges[X.roomId].myMembershipId.toString())return void this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge});if(X.roomId===this.activeRoomId&&this.routeActive)return this.roomBadges[X.roomId].active=!0,void this.updateLastVisit(this.roomBadges[X.roomId].myMembershipId).then(U=>{this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})});if(this.roomBadges[X.roomId].count=this.roomBadges[X.roomId].count+1,this.roomBadges[X.roomId].active=!1,this.routeActive||(this.activeRoomId=""),this.roomBadges){let U=0;Object.values(this.roomBadges).forEach(Z=>{U+=Z.count}),this.badge=U}this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})}}loadBadges(){return this.badgePromise||(this.badgePromise=this.http.get(`${this.scope.getScope().apiEndpoint}chatMembers/GetInitialBadgeCount`).toPromise().then(X=>X??{}),this.badgePromise.finally(()=>{this.badgePromise=null})),this.badgePromise}updateLastVisit(X){return this.updateLastVisitPromise||(this.updateLastVisitPromise=this.http.post(this.scope.getScope().apiEndpoint+"chatMembers("+X+")/UpdateLastVisit",null).toPromise().then(U=>this.loadBadges()).then(U=>(this.badge=U.totalCount,this.roomBadges=U.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge}),this.updateLastVisitPromise=null,U)).catch(U=>{throw this.updateLastVisitPromise=null,U})),this.updateLastVisitPromise}setActiveRoom(X){this.activeRoomId=X}static#e=B=()=>(this.\u0275fac=function(U){return new(U||j)(k.KVO(w.p),k.KVO(C.A),k.KVO(P.S),k.KVO(S.Ix),k.KVO(v.u),k.KVO(x.Qq),k.KVO(e.A))},this.\u0275prov=k.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}))}return B(),j})()},8041:(En,it,p)=>{"use strict";p.d(it,{b:()=>Ye,i:()=>de});var S=p(4303),d=p(656),m=p(2583),T=p(1973),C=p(9522),e=p(5704),k=p(8412),w=p(6021),P=p(3090),v=p(4757),x=p(1830),b=p(6110),B=p(778),j=p(4072),F=p(9229),X=p(7080),U=p(6946);const Z={moveTo(Ae){const{$element:pe}=Ae,{position:Ee}=Ae,Ke={};let Be;switch(Ae.direction||"left"){case"right":Ke.transform=`translate(${Ee}px, 0px)`,Be="custom";break;case"left":Ke.left=Ee,Be="slide";break;case"top":case"bottom":Ke.top=Ee,Be="slide"}m.A.animate(pe,{type:Be,to:Ke,duration:Ae.duration,complete:Ae.complete})},margin(Ae){const{$element:pe}=Ae,{margin:Ee}=Ae,Ke={};Ke[`margin${(0,U.PT)(Ae.direction||"left",!0)}`]=Ee,m.A.animate(pe,{to:Ke,duration:Ae.duration,complete:Ae.complete})},fade(Ae,pe,Ee,le){m.A.animate(Ae,{type:"fade",to:pe.to,from:pe.from,duration:Ee,complete:le})},size(Ae){const{$element:pe}=Ae,{size:Ee}=Ae,le=Ae.direction||"left",Ke=Ae.marginTop||0,{duration:Be}=Ae,q={};"right"===le||"left"===le?q.width=Ee:q.height=Ee,"bottom"===le&&(q.marginTop=Ke),m.A.animate(pe,{to:q,duration:Be,complete:Ae.complete})},complete(Ae){m.A.stop(Ae,!0)}};var A=p(2123),M=p(4859),H=p(1363),J=p(3949);const L=class R{constructor(pe){this._drawer=pe}getDrawerInstance(){return this._drawer}renderPanelContent(pe){const Ee=this.getDrawerInstance(),le=Ee._getTemplate(Ee.option("template"));le&&le.render({container:Ee.content(),onRendered:()=>{pe.resolve()}})}renderPosition(pe,Ee){const le=(0,w.cY)(),Ke=(0,w.cY)(),Be=this.getDrawerInstance();pe&&w.z7.apply(e.A,[le,Ke]).done(()=>{Be._animationCompleteHandler()}),this._internalRenderPosition(pe,le),pe||Be.resizeViewContent(),this.renderShaderVisibility(pe,Ee,Ke)}_getPanelOffset(pe){const Ee=this.getDrawerInstance(),le=Ee.isHorizontalDirection()?Ee.getRealPanelWidth():Ee.getRealPanelHeight();return pe?-(le-Ee.getMaxSize()):-(le-Ee.getMinSize())}_getPanelSize(pe){return pe?this.getDrawerInstance().getMaxSize():this.getDrawerInstance().getMinSize()}renderShaderVisibility(pe,Ee,le){const Ke=this.getDrawerInstance(),Be=Ke.option("opened"),q=Be?{from:0,to:1}:{from:1,to:0};pe?Z.fade((0,e.A)(Ke._$shader),q,Ee,()=>{this._drawer._toggleShaderVisibility(Be),le.resolve()}):(Ke._toggleShaderVisibility(Be),Ke._$shader.css("opacity",q.to))}getPanelContent(){return(0,e.A)(this.getDrawerInstance().content())}setPanelSize(pe){this.refreshPanelElementSize(pe)}refreshPanelElementSize(pe){const Ee=this.getDrawerInstance(),le=this._getPanelSize(Ee.option("opened"));Ee.isHorizontalDirection()?(0,H.zj)((0,e.A)(Ee.content()),pe?Ee.getRealPanelWidth():le):(0,H.k$)((0,e.A)(Ee.content()),pe?Ee.getRealPanelHeight():le)}isViewContentFirst(){return!1}onPanelContentRendered(){}},Q=class G extends L{renderPanelContent(pe){delete this._initialPosition;const Ee=this.getDrawerInstance(),{opened:le,minSize:Ke}=Ee.option();Ee._overlay=Ee._createComponent(Ee.content(),J.A,{shading:!1,container:Ee.content(),visualContainer:Ee.getOverlayTarget(),position:this._getOverlayPosition(),width:le?"auto":Ke||0,height:"100%",templatesRenderAsynchronously:Ee.option("templatesRenderAsynchronously"),animation:{show:{duration:0}},onPositioned:function(Be){this._fixOverlayPosition(Be.component.$content())}.bind(this),contentTemplate:Ee.option("template"),onContentReady:Be=>{pe.resolve(),this._processOverlayZIndex(Be.component.content())},visible:!0,propagateOutsideClick:!0})}_fixOverlayPosition(pe){const Ee=(0,M.YD)(this._initialPosition,{left:0,top:0});(0,A.Cy)(pe,Ee),"right"===this.getDrawerInstance().calcTargetPosition()&&pe.css("left","auto"),"bottom"===this.getDrawerInstance().calcTargetPosition()&&(pe.css("top","auto"),pe.css("bottom","0px"))}_getOverlayPosition(){const pe=this.getDrawerInstance(),Ee=pe.calcTargetPosition();let le={};switch(Ee){case"left":le={my:"top left",at:"top left"};break;case"right":le={my:pe.option("rtlEnabled")?"top left":"top right",at:"top right"};break;case"top":case"bottom":le={my:Ee,at:Ee}}return le.of=pe.getOverlayTarget(),le}refreshPanelElementSize(pe){const Ee=this.getDrawerInstance(),le=Ee.getOverlay();Ee.isHorizontalDirection()?(le.option("height","100%"),le.option("width",pe?Ee.getRealPanelWidth():this._getPanelSize(Ee.option("opened")))):(le.option("width",(0,H.RG)(Ee.getOverlayTarget())),le.option("height",pe?Ee.getRealPanelHeight():this._getPanelSize(Ee.option("opened"))))}onPanelContentRendered(){this._updateViewContentStyles()}_updateViewContentStyles(){const pe=this.getDrawerInstance();(0,e.A)(pe.viewContent()).css(`padding${(0,U.PT)(pe.calcTargetPosition(),!0)}`,pe.option("minSize")),(0,e.A)(pe.viewContent()).css("transform","inherit")}_internalRenderPosition(pe,Ee){const le=this.getDrawerInstance(),Ke=(0,e.A)(le.content()),Be=le.getOverlay().$content(),q=le.option("revealMode"),Oe=le.calcTargetPosition(),fe=this._getPanelSize(le.option("opened")),We=this._getPanelOffset(le.option("opened"))*le._getPositionCorrection(),Ue=le.getRealPanelHeight()-fe;this._updateViewContentStyles(),pe?"slide"===q?(this._initialPosition=le.isHorizontalDirection()?{left:We}:{top:We},Z.moveTo({complete:()=>{Ee.resolve()},duration:le.option("animationDuration"),direction:Oe,$element:Ke,position:We})):"expand"===q&&(this._initialPosition=le.isHorizontalDirection()?{left:0}:{top:0},(0,A.Cy)(Be,this._initialPosition),Z.size({complete:()=>{Ee.resolve()},duration:le.option("animationDuration"),direction:Oe,$element:Be,size:fe,marginTop:Ue})):"slide"===q?(this._initialPosition=le.isHorizontalDirection()?{left:We}:{top:We},(0,A.Cy)(Ke,this._initialPosition)):"expand"===q&&(this._initialPosition=le.isHorizontalDirection()?{left:0}:{top:0},(0,A.Cy)(Be,this._initialPosition),le.isHorizontalDirection()?(0,e.A)(Be).css("width",fe):((0,e.A)(Be).css("height",fe),"bottom"===Oe&&(0,e.A)(Be).css("marginTop",Ue)))}getPanelContent(){return(0,e.A)(this.getDrawerInstance().getOverlay().content())}_processOverlayZIndex(pe){const le=(0,e.A)(pe).get(0).style.zIndex||1;this.getDrawerInstance().setZIndex(le)}isViewContentFirst(pe){return"right"===pe||"bottom"===pe}},K=class z extends L{_internalRenderPosition(pe,Ee){const le=this.getDrawerInstance(),Ke=this._getPanelSize(!0),Be=this._getPanelSize(le.option("opened"))*le._getPositionCorrection();if((0,e.A)(le.content()).css(le.isHorizontalDirection()?"width":"height",Ke),le.getMinSize()){let q="padding";switch(le.calcTargetPosition()){case"left":q+="Right";break;case"right":q+="Left";break;case"top":q+="Bottom";break;case"bottom":q+="Top"}(0,e.A)(le.viewContent()).css(q,le.getMinSize())}pe?Z.moveTo({$element:(0,e.A)(le.viewContent()),position:Be,direction:le.calcTargetPosition(),duration:le.option("animationDuration"),complete:()=>{Ee.resolve()}}):le.isHorizontalDirection()?(0,A.Cy)((0,e.A)(le.viewContent()),{left:Be}):(0,A.Cy)((0,e.A)(le.viewContent()),{top:Be})}onPanelContentRendered(){(0,e.A)(this.getDrawerInstance().viewContent()).addClass("dx-theme-background-color")}},re=class ee extends L{_internalRenderPosition(pe,Ee){const le=this.getDrawerInstance(),Ke=le.calcTargetPosition(),Be=(0,e.A)(le.content()),q=this._getPanelSize(le.option("opened")),Oe=this._getPanelOffset(le.option("opened")),fe=le.option("revealMode");pe?"slide"===fe?Z.margin({complete:()=>{Ee.resolve()},$element:Be,duration:le.option("animationDuration"),direction:Ke,margin:Oe}):"expand"===fe&&Z.size({complete:()=>{Ee.resolve()},$element:Be,duration:le.option("animationDuration"),direction:Ke,size:q}):"slide"===fe?Be.css(`margin${(0,U.PT)(Ke,!0)}`,Oe):"expand"===fe&&Be.css(le.isHorizontalDirection()?"width":"height",q)}isViewContentFirst(pe,Ee){return(Ee?"left"===pe:"right"===pe)||"bottom"===pe}},Ce=X.A.inherit({_getDefaultOptions(){return(0,P.X)(this.callBase(),{position:"left",opened:!1,minSize:null,maxSize:null,shading:!1,template:"panel",openedStateMode:"shrink",revealMode:"slide",animationEnabled:!0,animationDuration:400,closeOnOutsideClick:!1,contentTemplate:"content"})},_init(){this.callBase(),this._initStrategy(),this.$element().addClass("dx-drawer"),this._whenAnimationCompleted=void 0,this._whenPanelContentRendered=void 0,this._whenPanelContentRefreshed=void 0,this._$wrapper=(0,e.A)("<div>").addClass("dx-drawer-wrapper"),this._$viewContentWrapper=(0,e.A)("<div>").addClass("dx-drawer-content"),this._$wrapper.append(this._$viewContentWrapper),this.$element().append(this._$wrapper)},_initStrategy(){switch(this.option("openedStateMode")){case"push":default:this._strategy=new K(this);break;case"shrink":this._strategy=new re(this);break;case"overlap":this._strategy=new Q(this)}},_getAnonymousTemplateName:()=>"content",_initTemplates(){const Ae={};Ae.panel=new k.A,Ae.content=new k.A,this._templateManager.addDefaultTemplates(Ae),this.callBase()},_viewContentWrapperClickHandler(Ae){let pe=this.option("closeOnOutsideClick");(0,x.Tn)(pe)&&(pe=pe(Ae)),pe&&this.option("opened")&&(this.stopAnimations(),this.option("shading")&&Ae.preventDefault(),this.hide())},_initMarkup(){this.callBase(),this._toggleOpenedStateClass(this.option("opened")),this._renderPanelContentWrapper(),this._refreshOpenedStateModeClass(),this._refreshRevealModeClass(),this._renderShader(),this._refreshPositionClass(),this._whenPanelContentRendered=(0,w.cY)(),this._strategy.renderPanelContent(this._whenPanelContentRendered),this._strategy.onPanelContentRendered(),this._renderViewContent(),j.A.off(this._$viewContentWrapper,B.U),j.A.on(this._$viewContentWrapper,B.U,this._viewContentWrapperClickHandler.bind(this)),this._refreshWrapperChildrenOrder()},_render(){this._initMinMaxSize(),this.callBase(),this._whenPanelContentRendered.always(()=>{this._initMinMaxSize(),this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")),this._renderPosition(this.option("opened"),!0),this._removePanelManualPosition()})},_removePanelManualPosition(){this._$panelContentWrapper.attr("manualposition")&&(this._$panelContentWrapper.removeAttr("manualPosition"),this._$panelContentWrapper.css({position:"",top:"",left:"",right:"",bottom:""}))},_togglePanelContentHiddenClass(){const Ae=()=>{const{minSize:pe,opened:Ee}=this.option();this._$panelContentWrapper.toggleClass("dx-drawer-panel-content-hidden",!pe&&!Ee)};this._whenAnimationCompleted&&!this.option("opened")?(0,w.z7)(this._whenAnimationCompleted).done(Ae):Ae()},_renderPanelContentWrapper(){const{openedStateMode:Ae,opened:pe,minSize:Ee}=this.option();this._$panelContentWrapper=(0,e.A)("<div>").addClass("dx-drawer-panel-content"),this._togglePanelContentHiddenClass();const le=this.calcTargetPosition();"push"===Ae&&["top","bottom"].includes(le)&&this._$panelContentWrapper.addClass("dx-drawer-panel-content-push-top-or-bottom"),"overlap"!==Ae&&!pe&&!Ee&&(this._$panelContentWrapper.attr("manualposition",!0),this._$panelContentWrapper.css({position:"absolute",top:"-10000px",left:"-10000px",right:"auto",bottom:"auto"})),this._$wrapper.append(this._$panelContentWrapper)},_refreshOpenedStateModeClass(Ae){Ae&&this.$element().removeClass(`dx-drawer-${Ae}`),this.$element().addClass(`dx-drawer-${this.option("openedStateMode")}`)},_refreshPositionClass(Ae){Ae&&this.$element().removeClass(`dx-drawer-${Ae}`),this.$element().addClass(`dx-drawer-${this.calcTargetPosition()}`)},_refreshWrapperChildrenOrder(){const Ae=this.calcTargetPosition();this._strategy.isViewContentFirst(Ae,this.option("rtlEnabled"))?this._$wrapper.prepend(this._$viewContentWrapper):this._$wrapper.prepend(this._$panelContentWrapper)},_refreshRevealModeClass(Ae){Ae&&this.$element().removeClass(`dx-drawer-${Ae}`),this.$element().addClass(`dx-drawer-${this.option("revealMode")}`)},_renderViewContent(){const Ae=this.option("contentTemplate"),pe=this._getTemplate(Ae);if(pe){const Ee=pe.render({container:this.viewContent(),noModel:!0,transclude:this._templateManager.anonymousTemplateName===Ae});Ee.hasClass("ng-scope")&&(0,e.A)(this._$viewContentWrapper).children().not(".dx-drawer-shader").replaceWith(Ee)}},_renderShader(){this._$shader=this._$shader||(0,e.A)("<div>").addClass("dx-drawer-shader"),this._$shader.appendTo(this.viewContent()),this._toggleShaderVisibility(this.option("opened"))},_initSize(){this._initMinMaxSize()},_initMinMaxSize(){const Ae=this.isHorizontalDirection()?this.getRealPanelWidth():this.getRealPanelHeight();this._maxSize=this.option("maxSize")||Ae,this._minSize=this.option("minSize")||0},calcTargetPosition(){const Ae=this.option("position"),pe=this.option("rtlEnabled");let Ee=Ae;return"before"===Ae?Ee=pe?"right":"left":"after"===Ae&&(Ee=pe?"left":"right"),Ee},getOverlayTarget(){return this._$wrapper},getOverlay(){return this._overlay},getMaxSize(){return this._maxSize},getMinSize(){return this._minSize},getRealPanelWidth(){return(0,b.Vd)()?(0,x.O9)(this.option("templateSize"))?this.option("templateSize"):(0,v.N)(this._getPanelTemplateElement()).width:0},getRealPanelHeight(){return(0,b.Vd)()?(0,x.O9)(this.option("templateSize"))?this.option("templateSize"):(0,v.N)(this._getPanelTemplateElement()).height:0},_getPanelTemplateElement(){const Ae=this._strategy.getPanelContent();let pe=Ae;return Ae.children().length&&(pe=Ae.children().eq(0),Ae.hasClass("dx-overlay-content")&&pe.hasClass("dx-template-wrapper")&&pe.children().length&&(pe=pe.children().eq(0))),pe.get(0)},getElementHeight(Ae){const pe=Ae.children();return pe.length?(0,v.N)(pe.eq(0).get(0)).height:(0,v.N)(Ae.get(0)).height},isHorizontalDirection(){const Ae=this.calcTargetPosition();return"left"===Ae||"right"===Ae},stopAnimations(Ae){m.A.stop(this._$shader,Ae),m.A.stop((0,e.A)(this.content()),Ae),m.A.stop((0,e.A)(this.viewContent()),Ae);const pe=this.getOverlay();pe&&m.A.stop((0,e.A)(pe.$content()),Ae)},setZIndex(Ae){this._$shader.css("zIndex",Ae-1),this._$panelContentWrapper.css("zIndex",Ae)},resizeContent(){},resizeViewContent(){(0,F.ho)(this.viewContent())},_isInvertedPosition(){const Ae=this.calcTargetPosition();return"right"===Ae||"bottom"===Ae},_renderPosition(Ae,pe,Ee){if(this.stopAnimations(Ee),!(0,b.Vd)())return;(0,e.A)(this.viewContent()).css("paddingLeft",0),(0,e.A)(this.viewContent()).css("paddingRight",0),(0,e.A)(this.viewContent()).css("paddingTop",0),(0,e.A)(this.viewContent()).css("paddingBottom",0);let le=this.option("animationEnabled");!0===pe&&(le=!1),Ae&&this._toggleShaderVisibility(Ae),this._strategy.renderPosition(le,this.option("animationDuration"))},_animationCompleteHandler(){this.resizeViewContent(),this._whenAnimationCompleted&&this._whenAnimationCompleted.resolve()},_getPositionCorrection(){return this._isInvertedPosition()?-1:1},_dispose(){Z.complete((0,e.A)(this.viewContent())),this.callBase()},_visibilityChanged(Ae){Ae&&this._dimensionChanged()},_dimensionChanged(){this._initMinMaxSize(),this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")),this._renderPosition(this.option("opened"),!0)},_toggleShaderVisibility(Ae){this.option("shading")?(this._$shader.toggleClass("dx-state-invisible",!Ae),this._$shader.css("visibility",Ae?"visible":"hidden")):this._$shader.toggleClass("dx-state-invisible",!0)},_toggleOpenedStateClass(Ae){this.$element().toggleClass("dx-drawer-opened",Ae)},_refreshPanel(){(0,e.A)(this.viewContent()).css("left",0),(0,e.A)(this.viewContent()).css("transform","translate(0px, 0px)"),(0,e.A)(this.viewContent()).removeClass("dx-theme-background-color"),this._removePanelContentWrapper(),this._removeOverlay(),this._renderPanelContentWrapper(),this._refreshWrapperChildrenOrder(),this._whenPanelContentRefreshed=(0,w.cY)(),this._strategy.renderPanelContent(this._whenPanelContentRefreshed),this._strategy.onPanelContentRendered(),(0,b.Vd)()&&this._whenPanelContentRefreshed.always(()=>{this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")),this._renderPosition(this.option("opened"),!0,!0),this._removePanelManualPosition()})},_clean(){this._cleanFocusState(),this._removePanelContentWrapper(),this._removeOverlay()},_removePanelContentWrapper(){this._$panelContentWrapper&&this._$panelContentWrapper.remove()},_removeOverlay(){this._overlay&&(this._overlay.dispose(),delete this._overlay,delete this._$panelContentWrapper)},_optionChanged(Ae){switch(Ae.name){case"width":this.callBase(Ae),this._dimensionChanged();break;case"opened":this._renderPosition(this.option("opened")),this._toggleOpenedStateClass(Ae.value),this._togglePanelContentHiddenClass();break;case"position":this._refreshPositionClass(Ae.previousValue),this._refreshWrapperChildrenOrder(),this._invalidate();break;case"contentTemplate":case"template":this._invalidate();break;case"openedStateMode":this._initStrategy(),this._refreshOpenedStateModeClass(Ae.previousValue),this._refreshPanel();break;case"minSize":this._initMinMaxSize(),this._renderPosition(this.option("opened"),!0),this._togglePanelContentHiddenClass();break;case"maxSize":this._initMinMaxSize(),this._renderPosition(this.option("opened"),!0);break;case"revealMode":this._refreshRevealModeClass(Ae.previousValue),this._refreshPanel();break;case"shading":this._toggleShaderVisibility(this.option("opened"));break;case"animationEnabled":case"animationDuration":case"closeOnOutsideClick":break;default:this.callBase(Ae)}},content(){return(0,C.cc)(this._$panelContentWrapper)},viewContent(){return(0,C.cc)(this._$viewContentWrapper)},show(){return this.toggle(!0)},hide(){return this.toggle(!1)},toggle(Ae){const pe=void 0===Ae?!this.option("opened"):Ae;return this._whenAnimationCompleted=(0,w.cY)(),this.option("opened",pe),this._whenAnimationCompleted.promise()}});(0,T.A)("dxDrawer",Ce);const Me=Ce;var _e=p(3349);const ke=["*"];let Ye=(()=>{class Ae extends _e.ic{instance=null;get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(Ee){this._setOption("activeStateEnabled",Ee)}get animationDuration(){return this._getOption("animationDuration")}set animationDuration(Ee){this._setOption("animationDuration",Ee)}get animationEnabled(){return this._getOption("animationEnabled")}set animationEnabled(Ee){this._setOption("animationEnabled",Ee)}get closeOnOutsideClick(){return this._getOption("closeOnOutsideClick")}set closeOnOutsideClick(Ee){this._setOption("closeOnOutsideClick",Ee)}get disabled(){return this._getOption("disabled")}set disabled(Ee){this._setOption("disabled",Ee)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(Ee){this._setOption("elementAttr",Ee)}get height(){return this._getOption("height")}set height(Ee){this._setOption("height",Ee)}get hint(){return this._getOption("hint")}set hint(Ee){this._setOption("hint",Ee)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(Ee){this._setOption("hoverStateEnabled",Ee)}get maxSize(){return this._getOption("maxSize")}set maxSize(Ee){this._setOption("maxSize",Ee)}get minSize(){return this._getOption("minSize")}set minSize(Ee){this._setOption("minSize",Ee)}get opened(){return this._getOption("opened")}set opened(Ee){this._setOption("opened",Ee)}get openedStateMode(){return this._getOption("openedStateMode")}set openedStateMode(Ee){this._setOption("openedStateMode",Ee)}get position(){return this._getOption("position")}set position(Ee){this._setOption("position",Ee)}get revealMode(){return this._getOption("revealMode")}set revealMode(Ee){this._setOption("revealMode",Ee)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(Ee){this._setOption("rtlEnabled",Ee)}get shading(){return this._getOption("shading")}set shading(Ee){this._setOption("shading",Ee)}get template(){return this._getOption("template")}set template(Ee){this._setOption("template",Ee)}get visible(){return this._getOption("visible")}set visible(Ee){this._setOption("visible",Ee)}get width(){return this._getOption("width")}set width(Ee){this._setOption("width",Ee)}onDisposing;onInitialized;onOptionChanged;activeStateEnabledChange;animationDurationChange;animationEnabledChange;closeOnOutsideClickChange;disabledChange;elementAttrChange;heightChange;hintChange;hoverStateEnabledChange;maxSizeChange;minSizeChange;openedChange;openedStateModeChange;positionChange;revealModeChange;rtlEnabledChange;shadingChange;templateChange;visibleChange;widthChange;constructor(Ee,le,Ke,Be,q,Oe,fe){super(Ee,le,Ke,Be,Oe,fe),this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"activeStateEnabledChange"},{emit:"animationDurationChange"},{emit:"animationEnabledChange"},{emit:"closeOnOutsideClickChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"maxSizeChange"},{emit:"minSizeChange"},{emit:"openedChange"},{emit:"openedStateModeChange"},{emit:"positionChange"},{emit:"revealModeChange"},{emit:"rtlEnabledChange"},{emit:"shadingChange"},{emit:"templateChange"},{emit:"visibleChange"},{emit:"widthChange"}]),q.setHost(this)}_createInstance(Ee,le){return new Me(Ee,le)}ngOnDestroy(){this._destroyWidget()}static \u0275fac=function(le){return new(le||Ae)(S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(_e.zF),S.rXU(_e.jS),S.rXU(_e.fH),S.rXU(S.pJN),S.rXU(S.Agw))};static \u0275cmp=S.VBU({type:Ae,selectors:[["dx-drawer"]],inputs:{activeStateEnabled:"activeStateEnabled",animationDuration:"animationDuration",animationEnabled:"animationEnabled",closeOnOutsideClick:"closeOnOutsideClick",disabled:"disabled",elementAttr:"elementAttr",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",maxSize:"maxSize",minSize:"minSize",opened:"opened",openedStateMode:"openedStateMode",position:"position",revealMode:"revealMode",rtlEnabled:"rtlEnabled",shading:"shading",template:"template",visible:"visible",width:"width"},outputs:{onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",activeStateEnabledChange:"activeStateEnabledChange",animationDurationChange:"animationDurationChange",animationEnabledChange:"animationEnabledChange",closeOnOutsideClickChange:"closeOnOutsideClickChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",maxSizeChange:"maxSizeChange",minSizeChange:"minSizeChange",openedChange:"openedChange",openedStateModeChange:"openedStateModeChange",positionChange:"positionChange",revealModeChange:"revealModeChange",rtlEnabledChange:"rtlEnabledChange",shadingChange:"shadingChange",templateChange:"templateChange",visibleChange:"visibleChange",widthChange:"widthChange"},standalone:!1,features:[S.Jv_([_e.zF,_e.jS,_e.fH]),S.Vt3],ngContentSelectors:ke,decls:1,vars:0,template:function(le,Ke){1&le&&(S.NAR(),S.SdG(0))},encapsulation:2})}return Ae})(),de=(()=>{class Ae{static \u0275fac=function(le){return new(le||Ae)};static \u0275mod=S.$C({type:Ae});static \u0275inj=d.G2t({imports:[_e.p_,_e.xZ,_e.xZ]})}return Ae})()},8073:(En,it,p)=>{"use strict";p.d(it,{i:()=>et});var S=p(2583),d=p(5973),m=p(9522),T=p(2925),C=p(5704),e=p(5944),k=p(4859),w=p(4270),P=p(6021),v=p(3090),x=p(8535),b=p(2660),B=p(1363),j=p(7007),F=p(1830),X=p(6110),U=p(778),Z=p(4072),A=p(8842),M=p(9293),H=p(8360),J=p(6946),R=p(6847);function G(Te,je){const Ne=function L(Te){var je,Ne;return Te&&(0,X.Vd)()?null===(je=(Ne=(0,X.zk)()).getComputedStyle)||void 0===je?void 0:je.call(Ne,Te):null}(Te);return Ne?(0,R.R)(Ne[`margin${(0,J.Ns)(je)}`]):0}var re=p(9012),be=p(6067),ce=p(9994),Re=p(9212),Se=p(9524),De=p(2170),Pe=p(6409);const _e=p(5107).A.inherit({_renderWatchers(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge(Te){if(this._$element.children(".dx-list-item-badge-container").remove(),!Te)return;const je=(0,C.A)("<div>").addClass("dx-list-item-badge-container").append((0,C.A)("<div>").addClass("dx-list-item-badge").addClass("dx-badge").text(Te)),Ne=this._$element.children(".dx-list-item-chevron-container").first();Ne.length>0?je.insertBefore(Ne):je.appendTo(this._$element)},_renderShowChevron(Te){if(this._$element.children(".dx-list-item-chevron-container").remove(),!Te)return;const je=(0,C.A)("<div>").addClass("dx-list-item-chevron-container"),Ne=(0,C.A)("<div>").addClass("dx-list-item-chevron");je.append(Ne).appendTo(this._$element)}}),qe=(0,w.Hz)("items");const et=be.A.inherit({_activeStateUnit:[".dx-list-item",".dx-list-select-all"].join(","),_supportedKeys(){const Te=this,je=function(lt){let Qe=Ne(lt);Qe.is(Te.option("focusedElement"))&&(function(yt,Gt){let ft=yt.position().top;"prev"===Gt&&(ft=yt.position().top-(0,B.Oq)(Te.$element())+(0,B.P$)(yt)),Te.scrollTo(ft)}(Qe,lt),Qe=Ne(lt)),Te.option("focusedElement",(0,m.cc)(Qe)),Te.scrollToItem(Qe)};function Ne(lt){const Qe=Te.scrollTop(),Ct=(0,B.Oq)(Te.$element());let yt=(0,C.A)(Te.option("focusedElement")),Gt=!0;if(!yt.length)return(0,C.A)();for(;Gt;){const ft=yt[lt]();if(!ft.length)break;const nn=ft.position().top+(0,B.P$)(ft)/2;Gt=nn<Ct+Qe&&nn>Qe,Gt&&(yt=ft)}return yt}return(0,v.X)(this.callBase(),{leftArrow:k.lQ,rightArrow:k.lQ,pageUp:()=>(je("prev"),!1),pageDown:()=>(je("next"),!1)})},_getDefaultOptions(){return(0,v.X)(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,selectByClick:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:H.A.format("dxList-pullingDownText"),pulledDownText:H.A.format("dxList-pulledDownText"),refreshingText:H.A.format("dxList-refreshingText"),pageLoadingText:H.A.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:H.A.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},useInkRipple:!1,wrapItemText:!1,_swipeEnabled:!0,showChevronExpr:Te=>Te?Te.showChevron:void 0,badgeExpr:Te=>Te?Te.badge:void 0})},_defaultOptionsRules(){const Te=(0,Re.ss)();return this.callBase().concat((0,De.M)(),[{device:()=>!j.nativeScrolling,options:{useNativeScrolling:!1}},{device:je=>!j.nativeScrolling&&!d.A.isSimulator()&&"desktop"===d.A.real().deviceType&&"generic"===je.platform,options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:()=>"desktop"===d.A.real().deviceType&&!d.A.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>(0,Re.gx)(Te),options:{useInkRipple:!0}},{device:()=>(0,Re.Nt)(Te),options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:""}}])},_visibilityChanged(Te){Te&&this._updateLoadingState(!0)},_itemClass:()=>"dx-list-item",_itemDataKey:()=>"dxListItemData",_itemContainer(){return this._$container},_getItemsContainer(){return this._$listContainer},_cleanItemContainer(){this.callBase();const Te=this._getItemsContainer();(0,C.A)(Te).empty(),Te.appendTo(this._$container)},_saveSelectionChangeEvent(Te){this._selectionChangeEventInstance=Te},_getSelectionChangeEvent(){return this._selectionChangeEventInstance},_refreshItemElements(){this._itemElementsCache=this.option("grouped")?this._getItemsContainer().children(".dx-list-group").children(".dx-list-group-body").children(this._itemSelector()):this._getItemsContainer().children(this._itemSelector())},_modifyByChanges(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},reorderItem(Te,je){return this.callBase(Te,je).done(function(){this._refreshItemElements()})},deleteItem(Te){return this.callBase(Te).done(function(){this._refreshItemElements()})},_itemElements(){return this._itemElementsCache},_itemSelectHandler(Te){if("single"!==this.option("selectionMode")||!this.isItemSelected(Te.currentTarget))return this.callBase(Te)},_allowDynamicItemsAppend:()=>!0,_init(){this.callBase(),this._dataController.resetDataSourcePageIndex(),this._$container=this.$element(),this._$listContainer=(0,C.A)("<div>").addClass("dx-list-items"),this._initScrollView(),this._feedbackShowTimeout=70,this._createGroupRenderAction()},_scrollBottomMode(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions(){const Te=this._scrollBottomMode(),je=this._nextButtonMode();return(0,v.X)(this.callBase(),{paginate:(0,k.YD)(Te||je,!0)})},_getGroupedOption(){return this.option("grouped")},_getGroupContainerByIndex(Te){return this._getItemsContainer().find(".dx-list-group").eq(Te).find(".dx-list-group-body")},_dataSourceFromUrlLoadMode:()=>"raw",_initScrollView(){const Te=this.option("scrollingEnabled"),je=Te&&this.option("pullRefreshEnabled"),Ne=Te&&this._scrollBottomMode()&&!!this._dataController.getDataSource();this._scrollView=this._createComponent(this.$element(),function ue(){return ce.A}(),{height:this.option("height"),width:this.option("width"),disabled:this.option("disabled")||!Te,onScroll:this._scrollHandler.bind(this),onPullDown:je?this._pullDownHandler.bind(this):null,onReachBottom:Ne?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=(0,C.A)(this._scrollView.content()),this._$listContainer.appendTo(this._$container),this._toggleWrapItemText(this.option("wrapItemText")),this._createScrollViewActions()},_toggleWrapItemText(Te){this._$listContainer.toggleClass("dx-wrap-item-text",Te)},_createScrollViewActions(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler(Te){this._scrollAction&&this._scrollAction(Te)},_initTemplates(){this._templateManager.addDefaultTemplates({group:new e.U((Te,je)=>{(0,F.Qd)(je)?je.key&&Te.text(je.key):Te.text(String(je))},["key"],this.option("integrationOptions.watchMethod"))}),this.callBase()},_prepareDefaultItemTemplate(Te,je){if(this.callBase(Te,je),Te.icon){const Ne=(0,x.N)(Te.icon).addClass("dx-list-item-icon"),lt=(0,C.A)("<div>").addClass("dx-list-item-icon-container");lt.append(Ne),je.prepend(lt)}},_getBindableFields:()=>["text","html","icon"],_updateLoadingState(Te){const je=this._dataController,Ne=this._scrollBottomMode()&&Te&&!je.isLoading()&&!this._isLastPage();this._shouldContinueLoading(Ne)?this._infiniteDataLoading():(this._scrollView.release(!Ne&&!je.isLoading()),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1))},_shouldRenderNextButton(){return this._nextButtonMode()&&this._dataController.isLoaded()},_isDataSourceFirstLoadCompleted(Te){return(0,F.O9)(Te)&&(this._isFirstLoadCompleted=Te),this._isFirstLoadCompleted},_dataSourceLoadingChangedHandler(Te){this._loadIndicationSuppressed()||(Te&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(()=>{var lt;(this._itemElements().length||this._isDataSourceFirstLoadCompleted())&&(null===(lt=this._scrollView)||void 0===lt||lt.startLoading())}):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()),Te||this._isDataSourceFirstLoadCompleted(!1))},_dataSourceChangedHandler(){!this._shouldAppendItems()&&(0,X.Vd)()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments),this._isDataSourceFirstLoadCompleted(!0)},_refreshContent(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed(Te){if(!arguments.length)return this._isLoadIndicationSuppressed;this._isLoadIndicationSuppressed=Te},_scrollViewIsFull(){const Te=this._scrollView;return!Te||(0,B.Oq)(Te.content())>(0,B.Oq)(Te.container())},_pullDownHandler(Te){this._pullRefreshAction(Te);const je=this._dataController;je.getDataSource()&&!je.isLoading()?(this._clearSelectedItems(),je.pageIndex(0),je.reload()):this._updateLoadingState()},_shouldContinueLoading(Te){var je;const Ne=(0,B.Oq)(this._scrollView.content())-(0,B.Oq)(this._scrollView.container())<((null===(je=this._scrollView.scrollOffset())||void 0===je?void 0:je.top)??0);return Te&&(!this._scrollViewIsFull()||Ne)},_infiniteDataLoading(){this.$element().is(":visible")&&(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(()=>{this._loadNextPage()}))},_scrollBottomHandler(Te){this._pageLoadingAction(Te),this._dataController.isLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems(Te){this.option("grouped")?((0,b.__)(Te,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),(0,Re.gx)()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent(){const Te=(0,M.b4)(U.U,this.NAME),je=this.$element(),Ne=this.option("collapsibleGroups");je.toggleClass("dx-list-collapsible-groups",Ne),Z.A.off(je,Te,".dx-list-group-header"),Ne&&Z.A.on(je,Te,".dx-list-group-header",lt=>{this._createAction(Qe=>{const Ct=(0,C.A)(Qe.event.currentTarget).parent();this._collapseGroupHandler(Ct),this.option("focusStateEnabled")&&this.option("focusedElement",(0,m.cc)(Ct.find(".dx-list-item").eq(0)))},{validatingTargetName:"element"})({event:lt})})},_collapseGroupHandler(Te,je){const Ne=(0,P.cY)();if(Te.hasClass("dx-list-group-collapsed")===je)return Ne.resolve();const lt=Te.children(".dx-list-group-body"),Qe=(0,B.P$)(lt);let Ct=0;return 0===Qe&&((0,B.k$)(lt,"auto"),Ct=(0,B.P$)(lt)),Te.toggleClass("dx-list-group-collapsed",je),S.A.animate(lt,{type:"custom",from:{height:Qe},to:{height:Ct},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(!0),Ne.resolve()}.bind(this)}),Ne.promise()},_dataSourceLoadErrorHandler(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup(){this._itemElementsCache=(0,C.A)(),this.$element().addClass("dx-list"),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria({role:"group",roledescription:"list"},this.$element()),this.setAria({role:"application"},this._focusTarget()),this._setListAria()},_setListAria(){const{items:Te,allowItemDeleting:je}=this.option(),Ne=H.A.format(je?"dxList-listAriaLabel-deletable":"dxList-listAriaLabel");this.setAria(null!=Te&&Te.length?{role:"listbox",label:Ne}:{role:void 0,label:void 0},this._$listContainer)},_focusTarget(){return this._itemContainer()},_renderInkRipple(){this._inkRipple=(0,Se.XX)()},_toggleActiveState(Te,je,Ne){this.callBase.apply(this,arguments);const lt=this;if(!this._inkRipple)return;const Qe={element:Te,event:Ne};je?(0,Re.gx)()?this._inkRippleTimer=setTimeout(()=>{lt._inkRipple.showWave(Qe)},35):lt._inkRipple.showWave(Qe):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(Qe))},_postprocessRenderItem(Te){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("_swipeEnabled")&&this._attachSwipeEvent((0,C.A)(Te.itemElement))},_attachSwipeEvent(Te){const je=(0,M.b4)(A._N,this.NAME);Z.A.on(Te,je,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler(Te){this._itemDXEventHandler(Te,"onItemSwipe",{direction:Te.offset<0?"left":"right"})},_nextButtonHandler(Te){this._pageLoadingAction(Te);const je=this._dataController;je.getDataSource()&&!je.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup(Te,je){const Ne=(0,C.A)("<div>").addClass("dx-list-group").appendTo(this._getItemsContainer()),lt=`dx-${(new T.A).toString()}`;this.setAria({role:"group",labelledby:lt},Ne);const Ct=(0,C.A)("<div>").addClass("dx-list-group-header").attr("id",lt).appendTo(Ne),yt=this.option("groupTemplate"),Gt=this._getTemplate(je.template||yt,je,Te,Ct),ft={index:Te,itemData:je,container:(0,m.cc)(Ct)};this._createItemByTemplate(Gt,ft),(0,C.A)("<div>").addClass("dx-list-group-header-indicator").prependTo(Ct),this._renderingGroupIndex=Te;const nn=(0,C.A)("<div>").addClass("dx-list-group-body").appendTo(Ne);(0,b.__)(qe(je)||[],(rn,Mn)=>{this._renderItem({group:Te,item:rn},Mn,nn)}),this._groupRenderAction({groupElement:(0,m.cc)(Ne),groupIndex:Te,groupData:je})},downInkRippleHandler(Te){this._toggleActiveState((0,C.A)(Te.currentTarget),!0,Te)},upInkRippleHandler(Te){this._toggleActiveState((0,C.A)(Te.currentTarget),!1)},attachGroupHeaderInkRippleEvents(){const Te=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);const je=[Te,"dxpointerdown",".dx-list-group-header",this._downInkRippleHandler],Ne=[Te,"dxpointerup dxpointerout",".dx-list-group-header",this._upInkRippleHandler];Z.A.off(...je),Z.A.on(...je),Z.A.off(...Ne),Z.A.on(...Ne)},_createGroupRenderAction(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose(){this._isDataSourceFirstLoadCompleted(!1),clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState(Te){this.callBase(Te),this._scrollView.option("disabled",Te||!this.option("scrollingEnabled"))},_toggleNextButton(Te){const je=this._dataController,Ne=this._getNextButton();this.$element().toggleClass("dx-has-next",Te),Te&&je.isLoaded()&&Ne.appendTo(this._itemContainer()),Te||Ne.detach()},_getNextButton(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton(){const Te=(0,C.A)("<div>").addClass("dx-list-next-button"),je=(0,C.A)("<div>").appendTo(Te);return this._createComponent(je,re.A,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:(0,Re.Nt)()?"default":void 0,integrationOptions:{}}),Te},_moveFocus(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh(){if((0,X.Vd)()){const Te=this._scrollView.scrollTop();this.callBase(),Te&&this._scrollView.scrollTo(Te)}else this.callBase()},_optionChanged(Te){switch(Te.name){case"pageLoadMode":this._toggleNextButton(Te.value),this._initScrollView();break;case"dataSource":this.callBase(Te),this._initScrollView(),this._isDataSourceFirstLoadCompleted(!1);break;case"items":this.callBase(Te),this._isDataSourceFirstLoadCompleted(!1);break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"useNativeScrolling":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState(!0);break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":case"grouped":case"collapsibleGroups":case"groupTemplate":case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions();break;case"wrapItemText":this._toggleWrapItemText(Te.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(Te),this._scrollView.option(Te.name,Te.value),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(Te),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(Te);break;case"_swipeEnabled":case"selectByClick":break;default:this.callBase(Te)}},_extendActionArgs(Te){if(!this.option("grouped"))return this.callBase(Te);const je=Te.closest(".dx-list-group"),Ne=je.find(".dx-list-item");return(0,v.X)(this.callBase(Te),{itemIndex:{group:je.index(),item:Ne.index(Te)}})},expandGroup(Te){const je=(0,P.cY)(),Ne=this._getItemsContainer().find(".dx-list-group").eq(Te);return this._collapseGroupHandler(Ne,!1).done(()=>{je.resolveWith(this)}),je.promise()},collapseGroup(Te){const je=(0,P.cY)(),Ne=this._getItemsContainer().find(".dx-list-group").eq(Te);return this._collapseGroupHandler(Ne,!0).done(()=>{je.resolveWith(this)}),je},updateDimensions(){const Te=this,je=(0,P.cY)();return Te._scrollView?Te._scrollView.update().done(()=>{!Te._scrollViewIsFull()&&Te._updateLoadingState(!0),je.resolveWith(Te)}):je.resolveWith(Te),je.promise()},reload(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint(){this.scrollTo(0),this.callBase()},scrollTop(){return this._scrollView.scrollOffset().top},clientHeight(){return this._scrollView.clientHeight()},scrollHeight(){return this._scrollView.scrollHeight()},scrollBy(Te){this._scrollView.scrollBy(Te)},scrollTo(Te){this._scrollView.scrollTo(Te)},scrollToItem(Te){const je=this._editStrategy.getItemElement(Te),Ne=je?.get(0);this._scrollView.scrollToElement(Ne,{bottom:G(Ne,"bottom")})},_dimensionChanged(){this.updateDimensions()}}).include(Pe.A);et.ItemClass=_e},8129:(En,it,p)=>{"use strict";p.d(it,{R:()=>v});var S=p(8621),d=p(9406),m=p(3422),T=p(5206),C=p(4418),e=p(6219);const k=["addListener","removeListener"],w=["addEventListener","removeEventListener"],P=["on","off"];function v(F,X,U,Z){if((0,C.T)(U)&&(Z=U,U=void 0),Z)return v(F,X,U).pipe((0,e.I)(Z));const[A,M]=function j(F){return(0,C.T)(F.addEventListener)&&(0,C.T)(F.removeEventListener)}(F)?w.map(H=>J=>F[H](X,J,U)):function b(F){return(0,C.T)(F.addListener)&&(0,C.T)(F.removeListener)}(F)?k.map(x(F,X)):function B(F){return(0,C.T)(F.on)&&(0,C.T)(F.off)}(F)?P.map(x(F,X)):[];if(!A&&(0,T.X)(F))return(0,m.Z)(H=>v(H,X,U))((0,S.Tg)(F));if(!A)throw new TypeError("Invalid event target");return new d.c(H=>{const J=(...R)=>H.next(1<R.length?R:R[0]);return A(J),()=>M(J)})}function x(F,X){return U=>Z=>F[U](X,Z)}},8167:(En,it,p)=>{"use strict";p.d(it,{A:()=>m});var S=p(2660),d=p(8684);class m{constructor(){this.memory=[],this.callbacks=(0,d.A)()}add(C){(0,S.__)(this.memory,(e,k)=>C.apply(C,k)),this.callbacks.add(C)}remove(C){this.callbacks.remove(C)}fire(){for(var C=arguments.length,e=new Array(C),k=0;k<C;k++)e[k]=arguments[k];this.memory.push(e),this.callbacks.fire.apply(this.callbacks,e)}}},8181:(En,it,p)=>{"use strict";p.d(it,{v:()=>T});var S=p(1830);const d=function(){},m=function(e){return typeof console>"u"||!(0,S.Tn)(console[e])?d:console[e].bind(console)},T={log:m("log"),info:m("info"),warn:m("warn"),error:m("error")}},8189:(En,it,p)=>{"use strict";p.d(it,{$:()=>qe});const S=[0,2e3,1e4,3e4,null];class d{constructor(ue){this._retryDelays=void 0!==ue?[...ue,null]:S}nextRetryDelayInMilliseconds(ue){return this._retryDelays[ue.previousRetryCount]}}var m=p(6394);let T=(()=>{class et{}return et.Authorization="Authorization",et.Cookie="Cookie",et})();class C{constructor(ue,me,Te){this.statusCode=ue,this.statusText=me,this.content=Te}}class e{get(ue,me){return this.send({...me,method:"GET",url:ue})}post(ue,me){return this.send({...me,method:"POST",url:ue})}delete(ue,me){return this.send({...me,method:"DELETE",url:ue})}getCookieString(ue){return""}}class k extends e{constructor(ue,me){super(),this._innerClient=ue,this._accessTokenFactory=me}send(ue){var me=this;return(0,m.A)(function*(){let Te=!0;me._accessTokenFactory&&(!me._accessToken||ue.url&&ue.url.indexOf("/negotiate?")>0)&&(Te=!1,me._accessToken=yield me._accessTokenFactory()),me._setAuthorizationHeader(ue);const je=yield me._innerClient.send(ue);return Te&&401===je.statusCode&&me._accessTokenFactory?(me._accessToken=yield me._accessTokenFactory(),me._setAuthorizationHeader(ue),yield me._innerClient.send(ue)):je})()}_setAuthorizationHeader(ue){ue.headers||(ue.headers={}),this._accessToken?ue.headers[T.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&ue.headers[T.Authorization]&&delete ue.headers[T.Authorization]}getCookieString(ue){return this._innerClient.getCookieString(ue)}}class w extends Error{constructor(ue,me){const Te=new.target.prototype;super(`${ue}: Status code '${me}'`),this.statusCode=me,this.__proto__=Te}}class P extends Error{constructor(ue="A timeout occurred."){const me=new.target.prototype;super(ue),this.__proto__=me}}class v extends Error{constructor(ue="An abort occurred."){const me=new.target.prototype;super(ue),this.__proto__=me}}class x extends Error{constructor(ue,me){const Te=new.target.prototype;super(ue),this.transport=me,this.errorType="UnsupportedTransportError",this.__proto__=Te}}class b extends Error{constructor(ue,me){const Te=new.target.prototype;super(ue),this.transport=me,this.errorType="DisabledTransportError",this.__proto__=Te}}class B extends Error{constructor(ue,me){const Te=new.target.prototype;super(ue),this.transport=me,this.errorType="FailedToStartTransportError",this.__proto__=Te}}class j extends Error{constructor(ue){const me=new.target.prototype;super(ue),this.errorType="FailedToNegotiateWithServerError",this.__proto__=me}}class F extends Error{constructor(ue,me){const Te=new.target.prototype;super(ue),this.innerErrors=me,this.__proto__=Te}}var X=p(5574);class U{constructor(){}log(ue,me){}}U.instance=new U;class A{static isRequired(ue,me){if(null==ue)throw new Error(`The '${me}' argument is required.`)}static isNotEmpty(ue,me){if(!ue||ue.match(/^\s*$/))throw new Error(`The '${me}' argument should not be empty.`)}static isIn(ue,me,Te){if(!(ue in me))throw new Error(`Unknown ${Te} value: ${ue}.`)}}class M{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&typeof window.document>"u"}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function H(et,ue){let me="";return R(et)?(me=`Binary data of length ${et.byteLength}`,ue&&(me+=`. Content: '${function J(et){const ue=new Uint8Array(et);let me="";return ue.forEach(Te=>{me+=`0x${Te<16?"0":""}${Te.toString(16)} `}),me.substr(0,me.length-1)}(et)}'`)):"string"==typeof et&&(me=`String data of length ${et.length}`,ue&&(me+=`. Content: '${et}'`)),me}function R(et){return et&&typeof ArrayBuffer<"u"&&(et instanceof ArrayBuffer||et.constructor&&"ArrayBuffer"===et.constructor.name)}function L(et,ue,me,Te,je,Ne){return G.apply(this,arguments)}function G(){return(G=(0,m.A)(function*(et,ue,me,Te,je,Ne){const lt={},[Qe,Ct]=ee();lt[Qe]=Ct,et.log(X.$.Trace,`(${ue} transport) sending data. ${H(je,Ne.logMessageContent)}.`);const yt=R(je)?"arraybuffer":"text",Gt=yield me.post(Te,{content:je,headers:{...lt,...Ne.headers},responseType:yt,timeout:Ne.timeout,withCredentials:Ne.withCredentials});et.log(X.$.Trace,`(${ue} transport) request complete. Response status: ${Gt.statusCode}.`)})).apply(this,arguments)}class z{constructor(ue,me){this._subject=ue,this._observer=me}dispose(){const ue=this._subject.observers.indexOf(this._observer);ue>-1&&this._subject.observers.splice(ue,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(me=>{})}}class K{constructor(ue){this._minLevel=ue,this.out=console}log(ue,me){if(ue>=this._minLevel){const Te=`[${(new Date).toISOString()}] ${X.$[ue]}: ${me}`;switch(ue){case X.$.Critical:case X.$.Error:this.out.error(Te);break;case X.$.Warning:this.out.warn(Te);break;case X.$.Information:this.out.info(Te);break;default:this.out.log(Te)}}}}function ee(){let et="X-SignalR-User-Agent";return M.isNode&&(et="User-Agent"),[et,re("7.0.14",be(),M.isNode?"NodeJS":"Browser",ce())]}function re(et,ue,me,Te){let je="Microsoft SignalR/";const Ne=et.split(".");return je+=`${Ne[0]}.${Ne[1]}`,je+=` (${et}; `,je+=ue&&""!==ue?`${ue}; `:"Unknown OS; ",je+=`${me}`,je+=Te?`; ${Te}`:"; Unknown Runtime Version",je+=")",je}function be(){if(!M.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function ce(){if(M.isNode)return process.versions.node}function Se(et){return et.stack?et.stack:et.message?et.message:`${et}`}class Pe extends e{constructor(ue){if(super(),this._logger=ue,typeof fetch>"u"){const me=require;this._jar=new(me("tough-cookie").CookieJar),this._fetchType=me("node-fetch"),this._fetchType=me("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function De(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}());if(typeof AbortController>"u"){const me=require;this._abortControllerType=me("abort-controller")}else this._abortControllerType=AbortController}send(ue){var me=this;return(0,m.A)(function*(){if(ue.abortSignal&&ue.abortSignal.aborted)throw new v;if(!ue.method)throw new Error("No method defined.");if(!ue.url)throw new Error("No url defined.");const Te=new me._abortControllerType;let je;ue.abortSignal&&(ue.abortSignal.onabort=()=>{Te.abort(),je=new v});let lt,Ne=null;ue.timeout&&(Ne=setTimeout(()=>{Te.abort(),me._logger.log(X.$.Warning,"Timeout from HTTP request."),je=new P},ue.timeout)),""===ue.content&&(ue.content=void 0),ue.content&&(ue.headers=ue.headers||{},ue.headers["Content-Type"]=R(ue.content)?"application/octet-stream":"text/plain;charset=UTF-8");try{lt=yield me._fetchType(ue.url,{body:ue.content,cache:"no-cache",credentials:!0===ue.withCredentials?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...ue.headers},method:ue.method,mode:"cors",redirect:"follow",signal:Te.signal})}catch(yt){throw je||(me._logger.log(X.$.Warning,`Error from HTTP request. ${yt}.`),yt)}finally{Ne&&clearTimeout(Ne),ue.abortSignal&&(ue.abortSignal.onabort=null)}if(!lt.ok){const yt=yield Ie(lt,"text");throw new w(yt||lt.statusText,lt.status)}const Ct=yield Ie(lt,ue.responseType);return new C(lt.status,lt.statusText,Ct)})()}getCookieString(ue){let me="";return M.isNode&&this._jar&&this._jar.getCookies(ue,(Te,je)=>me=je.join("; ")),me}}function Ie(et,ue){let me;switch(ue){case"arraybuffer":me=et.arrayBuffer();break;case"text":default:me=et.text();break;case"blob":case"document":case"json":throw new Error(`${ue} is not supported.`)}return me}class W extends e{constructor(ue){super(),this._logger=ue}send(ue){return ue.abortSignal&&ue.abortSignal.aborted?Promise.reject(new v):ue.method?ue.url?new Promise((me,Te)=>{const je=new XMLHttpRequest;je.open(ue.method,ue.url,!0),je.withCredentials=void 0===ue.withCredentials||ue.withCredentials,je.setRequestHeader("X-Requested-With","XMLHttpRequest"),""===ue.content&&(ue.content=void 0),ue.content&&(R(ue.content)?je.setRequestHeader("Content-Type","application/octet-stream"):je.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const Ne=ue.headers;Ne&&Object.keys(Ne).forEach(lt=>{je.setRequestHeader(lt,Ne[lt])}),ue.responseType&&(je.responseType=ue.responseType),ue.abortSignal&&(ue.abortSignal.onabort=()=>{je.abort(),Te(new v)}),ue.timeout&&(je.timeout=ue.timeout),je.onload=()=>{ue.abortSignal&&(ue.abortSignal.onabort=null),je.status>=200&&je.status<300?me(new C(je.status,je.statusText,je.response||je.responseText)):Te(new w(je.response||je.responseText||je.statusText,je.status))},je.onerror=()=>{this._logger.log(X.$.Warning,`Error from HTTP request. ${je.status}: ${je.statusText}.`),Te(new w(je.statusText,je.status))},je.ontimeout=()=>{this._logger.log(X.$.Warning,"Timeout from HTTP request."),Te(new P)},je.send(ue.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class ie extends e{constructor(ue){if(super(),typeof fetch<"u"||M.isNode)this._httpClient=new Pe(ue);else{if(!(typeof XMLHttpRequest<"u"))throw new Error("No usable HttpClient found.");this._httpClient=new W(ue)}}send(ue){return ue.abortSignal&&ue.abortSignal.aborted?Promise.reject(new v):ue.method?ue.url?this._httpClient.send(ue):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(ue){return this._httpClient.getCookieString(ue)}}var he=function(et){return et[et.None=0]="None",et[et.WebSockets=1]="WebSockets",et[et.ServerSentEvents=2]="ServerSentEvents",et[et.LongPolling=4]="LongPolling",et}(he||{}),Ce=function(et){return et[et.Text=1]="Text",et[et.Binary=2]="Binary",et}(Ce||{});class ye{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class Me{constructor(ue,me,Te){this._httpClient=ue,this._logger=me,this._pollAbort=new ye,this._options=Te,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}connect(ue,me){var Te=this;return(0,m.A)(function*(){if(A.isRequired(ue,"url"),A.isRequired(me,"transferFormat"),A.isIn(me,Ce,"transferFormat"),Te._url=ue,Te._logger.log(X.$.Trace,"(LongPolling transport) Connecting."),me===Ce.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[je,Ne]=ee(),lt={[je]:Ne,...Te._options.headers},Qe={abortSignal:Te._pollAbort.signal,headers:lt,timeout:1e5,withCredentials:Te._options.withCredentials};me===Ce.Binary&&(Qe.responseType="arraybuffer");const Ct=`${ue}&_=${Date.now()}`;Te._logger.log(X.$.Trace,`(LongPolling transport) polling: ${Ct}.`);const yt=yield Te._httpClient.get(Ct,Qe);200!==yt.statusCode?(Te._logger.log(X.$.Error,`(LongPolling transport) Unexpected response code: ${yt.statusCode}.`),Te._closeError=new w(yt.statusText||"",yt.statusCode),Te._running=!1):Te._running=!0,Te._receiving=Te._poll(Te._url,Qe)})()}_poll(ue,me){var Te=this;return(0,m.A)(function*(){try{for(;Te._running;)try{const je=`${ue}&_=${Date.now()}`;Te._logger.log(X.$.Trace,`(LongPolling transport) polling: ${je}.`);const Ne=yield Te._httpClient.get(je,me);204===Ne.statusCode?(Te._logger.log(X.$.Information,"(LongPolling transport) Poll terminated by server."),Te._running=!1):200!==Ne.statusCode?(Te._logger.log(X.$.Error,`(LongPolling transport) Unexpected response code: ${Ne.statusCode}.`),Te._closeError=new w(Ne.statusText||"",Ne.statusCode),Te._running=!1):Ne.content?(Te._logger.log(X.$.Trace,`(LongPolling transport) data received. ${H(Ne.content,Te._options.logMessageContent)}.`),Te.onreceive&&Te.onreceive(Ne.content)):Te._logger.log(X.$.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(je){Te._running?je instanceof P?Te._logger.log(X.$.Trace,"(LongPolling transport) Poll timed out, reissuing."):(Te._closeError=je,Te._running=!1):Te._logger.log(X.$.Trace,`(LongPolling transport) Poll errored after shutdown: ${je.message}`)}}finally{Te._logger.log(X.$.Trace,"(LongPolling transport) Polling complete."),Te.pollAborted||Te._raiseOnClose()}})()}send(ue){var me=this;return(0,m.A)(function*(){return me._running?L(me._logger,"LongPolling",me._httpClient,me._url,ue,me._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){var ue=this;return(0,m.A)(function*(){ue._logger.log(X.$.Trace,"(LongPolling transport) Stopping polling."),ue._running=!1,ue._pollAbort.abort();try{yield ue._receiving,ue._logger.log(X.$.Trace,`(LongPolling transport) sending DELETE request to ${ue._url}.`);const me={},[Te,je]=ee();me[Te]=je;const Ne={headers:{...me,...ue._options.headers},timeout:ue._options.timeout,withCredentials:ue._options.withCredentials};yield ue._httpClient.delete(ue._url,Ne),ue._logger.log(X.$.Trace,"(LongPolling transport) DELETE request sent.")}finally{ue._logger.log(X.$.Trace,"(LongPolling transport) Stop finished."),ue._raiseOnClose()}})()}_raiseOnClose(){if(this.onclose){let ue="(LongPolling transport) Firing onclose event.";this._closeError&&(ue+=" Error: "+this._closeError),this._logger.log(X.$.Trace,ue),this.onclose(this._closeError)}}}class _e{constructor(ue,me,Te,je){this._httpClient=ue,this._accessToken=me,this._logger=Te,this._options=je,this.onreceive=null,this.onclose=null}connect(ue,me){var Te=this;return(0,m.A)(function*(){return A.isRequired(ue,"url"),A.isRequired(me,"transferFormat"),A.isIn(me,Ce,"transferFormat"),Te._logger.log(X.$.Trace,"(SSE transport) Connecting."),Te._url=ue,Te._accessToken&&(ue+=(ue.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(Te._accessToken)}`),new Promise((je,Ne)=>{let Qe,lt=!1;if(me===Ce.Text){if(M.isBrowser||M.isWebWorker)Qe=new Te._options.EventSource(ue,{withCredentials:Te._options.withCredentials});else{const Ct=Te._httpClient.getCookieString(ue),yt={};yt.Cookie=Ct;const[Gt,ft]=ee();yt[Gt]=ft,Qe=new Te._options.EventSource(ue,{withCredentials:Te._options.withCredentials,headers:{...yt,...Te._options.headers}})}try{Qe.onmessage=Ct=>{if(Te.onreceive)try{Te._logger.log(X.$.Trace,`(SSE transport) data received. ${H(Ct.data,Te._options.logMessageContent)}.`),Te.onreceive(Ct.data)}catch(yt){return void Te._close(yt)}},Qe.onerror=Ct=>{lt?Te._close():Ne(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},Qe.onopen=()=>{Te._logger.log(X.$.Information,`SSE connected to ${Te._url}`),Te._eventSource=Qe,lt=!0,je()}}catch(Ct){return void Ne(Ct)}}else Ne(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})()}send(ue){var me=this;return(0,m.A)(function*(){return me._eventSource?L(me._logger,"SSE",me._httpClient,me._url,ue,me._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){return this._close(),Promise.resolve()}_close(ue){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(ue))}}class ke{constructor(ue,me,Te,je,Ne,lt){this._logger=Te,this._accessTokenFactory=me,this._logMessageContent=je,this._webSocketConstructor=Ne,this._httpClient=ue,this.onreceive=null,this.onclose=null,this._headers=lt}connect(ue,me){var Te=this;return(0,m.A)(function*(){let je;return A.isRequired(ue,"url"),A.isRequired(me,"transferFormat"),A.isIn(me,Ce,"transferFormat"),Te._logger.log(X.$.Trace,"(WebSockets transport) Connecting."),Te._accessTokenFactory&&(je=yield Te._accessTokenFactory()),new Promise((Ne,lt)=>{let Qe;ue=ue.replace(/^http/,"ws");const Ct=Te._httpClient.getCookieString(ue);let yt=!1;if(M.isNode||M.isReactNative){const Gt={},[ft,nn]=ee();Gt[ft]=nn,je&&(Gt[T.Authorization]=`Bearer ${je}`),Ct&&(Gt[T.Cookie]=Ct),Qe=new Te._webSocketConstructor(ue,void 0,{headers:{...Gt,...Te._headers}})}else je&&(ue+=(ue.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(je)}`);Qe||(Qe=new Te._webSocketConstructor(ue)),me===Ce.Binary&&(Qe.binaryType="arraybuffer"),Qe.onopen=Gt=>{Te._logger.log(X.$.Information,`WebSocket connected to ${ue}.`),Te._webSocket=Qe,yt=!0,Ne()},Qe.onerror=Gt=>{let ft=null;ft=typeof ErrorEvent<"u"&&Gt instanceof ErrorEvent?Gt.error:"There was an error with the transport",Te._logger.log(X.$.Information,`(WebSockets transport) ${ft}.`)},Qe.onmessage=Gt=>{if(Te._logger.log(X.$.Trace,`(WebSockets transport) data received. ${H(Gt.data,Te._logMessageContent)}.`),Te.onreceive)try{Te.onreceive(Gt.data)}catch(ft){return void Te._close(ft)}},Qe.onclose=Gt=>{if(yt)Te._close(Gt);else{let ft=null;ft=typeof ErrorEvent<"u"&&Gt instanceof ErrorEvent?Gt.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",lt(new Error(ft))}}})})()}send(ue){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(X.$.Trace,`(WebSockets transport) sending data. ${H(ue,this._logMessageContent)}.`),this._webSocket.send(ue),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(ue){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(X.$.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(ue)||!1!==ue.wasClean&&1e3===ue.code?ue instanceof Error?this.onclose(ue):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${ue.code} (${ue.reason||"no reason given"}).`)))}_isCloseEvent(ue){return ue&&"boolean"==typeof ue.wasClean&&"number"==typeof ue.code}}class de{constructor(ue,me={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,A.isRequired(ue,"url"),this._logger=function Q(et){return void 0===et?new K(X.$.Information):null===et?U.instance:void 0!==et.log?et:new K(et)}(me.logger),this.baseUrl=this._resolveUrl(ue),(me=me||{}).logMessageContent=void 0!==me.logMessageContent&&me.logMessageContent,"boolean"!=typeof me.withCredentials&&void 0!==me.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");me.withCredentials=void 0===me.withCredentials||me.withCredentials,me.timeout=void 0===me.timeout?1e5:me.timeout;let Te=null,je=null;if(M.isNode){const Ne=require;Te=Ne("ws"),je=Ne("eventsource")}!M.isNode&&typeof WebSocket<"u"&&!me.WebSocket?me.WebSocket=WebSocket:M.isNode&&!me.WebSocket&&Te&&(me.WebSocket=Te),!M.isNode&&typeof EventSource<"u"&&!me.EventSource?me.EventSource=EventSource:M.isNode&&!me.EventSource&&typeof je<"u"&&(me.EventSource=je),this._httpClient=new k(me.httpClient||new ie(this._logger),me.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=me,this.onreceive=null,this.onclose=null}start(ue){var me=this;return(0,m.A)(function*(){if(A.isIn(ue=ue||Ce.Binary,Ce,"transferFormat"),me._logger.log(X.$.Debug,`Starting connection with transfer format '${Ce[ue]}'.`),"Disconnected"!==me._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(me._connectionState="Connecting",me._startInternalPromise=me._startInternal(ue),yield me._startInternalPromise,"Disconnecting"===me._connectionState){const Te="Failed to start the HttpConnection before stop() was called.";return me._logger.log(X.$.Error,Te),yield me._stopPromise,Promise.reject(new v(Te))}if("Connected"!==me._connectionState){const Te="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return me._logger.log(X.$.Error,Te),Promise.reject(new v(Te))}me._connectionStarted=!0})()}send(ue){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new pe(this.transport)),this._sendQueue.send(ue))}stop(ue){var me=this;return(0,m.A)(function*(){return"Disconnected"===me._connectionState?(me._logger.log(X.$.Debug,`Call to HttpConnection.stop(${ue}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===me._connectionState?(me._logger.log(X.$.Debug,`Call to HttpConnection.stop(${ue}) ignored because the connection is already in the disconnecting state.`),me._stopPromise):(me._connectionState="Disconnecting",me._stopPromise=new Promise(Te=>{me._stopPromiseResolver=Te}),yield me._stopInternal(ue),void(yield me._stopPromise))})()}_stopInternal(ue){var me=this;return(0,m.A)(function*(){me._stopError=ue;try{yield me._startInternalPromise}catch{}if(me.transport){try{yield me.transport.stop()}catch(Te){me._logger.log(X.$.Error,`HttpConnection.transport.stop() threw error '${Te}'.`),me._stopConnection()}me.transport=void 0}else me._logger.log(X.$.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})()}_startInternal(ue){var me=this;return(0,m.A)(function*(){let Te=me.baseUrl;me._accessTokenFactory=me._options.accessTokenFactory,me._httpClient._accessTokenFactory=me._accessTokenFactory;try{if(me._options.skipNegotiation){if(me._options.transport!==he.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");me.transport=me._constructTransport(he.WebSockets),yield me._startTransport(Te,ue)}else{let je=null,Ne=0;do{if(je=yield me._getNegotiationResponse(Te),"Disconnecting"===me._connectionState||"Disconnected"===me._connectionState)throw new v("The connection was stopped during negotiation.");if(je.error)throw new Error(je.error);if(je.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(je.url&&(Te=je.url),je.accessToken){const lt=je.accessToken;me._accessTokenFactory=()=>lt,me._httpClient._accessToken=lt,me._httpClient._accessTokenFactory=void 0}Ne++}while(je.url&&Ne<100);if(100===Ne&&je.url)throw new Error("Negotiate redirection limit exceeded.");yield me._createTransport(Te,me._options.transport,je,ue)}me.transport instanceof Me&&(me.features.inherentKeepAlive=!0),"Connecting"===me._connectionState&&(me._logger.log(X.$.Debug,"The HttpConnection connected successfully."),me._connectionState="Connected")}catch(je){return me._logger.log(X.$.Error,"Failed to start the connection: "+je),me._connectionState="Disconnected",me.transport=void 0,me._stopPromiseResolver(),Promise.reject(je)}})()}_getNegotiationResponse(ue){var me=this;return(0,m.A)(function*(){const Te={},[je,Ne]=ee();Te[je]=Ne;const lt=me._resolveNegotiateUrl(ue);me._logger.log(X.$.Debug,`Sending negotiation request: ${lt}.`);try{const Qe=yield me._httpClient.post(lt,{content:"",headers:{...Te,...me._options.headers},timeout:me._options.timeout,withCredentials:me._options.withCredentials});if(200!==Qe.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${Qe.statusCode}'`));const Ct=JSON.parse(Qe.content);return(!Ct.negotiateVersion||Ct.negotiateVersion<1)&&(Ct.connectionToken=Ct.connectionId),Ct}catch(Qe){let Ct="Failed to complete negotiation with the server: "+Qe;return Qe instanceof w&&404===Qe.statusCode&&(Ct+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),me._logger.log(X.$.Error,Ct),Promise.reject(new j(Ct))}})()}_createConnectUrl(ue,me){return me?ue+(-1===ue.indexOf("?")?"?":"&")+`id=${me}`:ue}_createTransport(ue,me,Te,je){var Ne=this;return(0,m.A)(function*(){let lt=Ne._createConnectUrl(ue,Te.connectionToken);if(Ne._isITransport(me))return Ne._logger.log(X.$.Debug,"Connection was provided an instance of ITransport, using that directly."),Ne.transport=me,yield Ne._startTransport(lt,je),void(Ne.connectionId=Te.connectionId);const Qe=[],Ct=Te.availableTransports||[];let yt=Te;for(const Gt of Ct){const ft=Ne._resolveTransportOrError(Gt,me,je);if(ft instanceof Error)Qe.push(`${Gt.transport} failed:`),Qe.push(ft);else if(Ne._isITransport(ft)){if(Ne.transport=ft,!yt){try{yt=yield Ne._getNegotiationResponse(ue)}catch(nn){return Promise.reject(nn)}lt=Ne._createConnectUrl(ue,yt.connectionToken)}try{return yield Ne._startTransport(lt,je),void(Ne.connectionId=yt.connectionId)}catch(nn){if(Ne._logger.log(X.$.Error,`Failed to start the transport '${Gt.transport}': ${nn}`),yt=void 0,Qe.push(new B(`${Gt.transport} failed: ${nn}`,he[Gt.transport])),"Connecting"!==Ne._connectionState){const rn="Failed to select transport before stop() was called.";return Ne._logger.log(X.$.Debug,rn),Promise.reject(new v(rn))}}}}return Promise.reject(Qe.length>0?new F(`Unable to connect to the server with any of the available transports. ${Qe.join(" ")}`,Qe):new Error("None of the transports supported by the client are supported by the server."))})()}_constructTransport(ue){switch(ue){case he.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new ke(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case he.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new _e(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case he.LongPolling:return new Me(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${ue}.`)}}_startTransport(ue,me){return this.transport.onreceive=this.onreceive,this.transport.onclose=Te=>this._stopConnection(Te),this.transport.connect(ue,me)}_resolveTransportOrError(ue,me,Te){const je=he[ue.transport];if(null==je)return this._logger.log(X.$.Debug,`Skipping transport '${ue.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${ue.transport}' because it is not supported by this client.`);if(!function Ae(et,ue){return!et||0!==(ue&et)}(me,je))return this._logger.log(X.$.Debug,`Skipping transport '${he[je]}' because it was disabled by the client.`),new b(`'${he[je]}' is disabled by the client.`,je);if(!(ue.transferFormats.map(lt=>Ce[lt]).indexOf(Te)>=0))return this._logger.log(X.$.Debug,`Skipping transport '${he[je]}' because it does not support the requested transfer format '${Ce[Te]}'.`),new Error(`'${he[je]}' does not support ${Ce[Te]}.`);if(je===he.WebSockets&&!this._options.WebSocket||je===he.ServerSentEvents&&!this._options.EventSource)return this._logger.log(X.$.Debug,`Skipping transport '${he[je]}' because it is not supported in your environment.'`),new x(`'${he[je]}' is not supported in your environment.`,je);this._logger.log(X.$.Debug,`Selecting transport '${he[je]}'.`);try{return this._constructTransport(je)}catch(lt){return lt}}_isITransport(ue){return ue&&"object"==typeof ue&&"connect"in ue}_stopConnection(ue){if(this._logger.log(X.$.Debug,`HttpConnection.stopConnection(${ue}) called while in state ${this._connectionState}.`),this.transport=void 0,ue=this._stopError||ue,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(X.$.Warning,`Call to HttpConnection.stopConnection(${ue}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${ue}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),ue?this._logger.log(X.$.Error,`Connection disconnected with error '${ue}'.`):this._logger.log(X.$.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(me=>{this._logger.log(X.$.Error,`TransportSendQueue.stop() threw error '${me}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(ue)}catch(me){this._logger.log(X.$.Error,`HttpConnection.onclose(${ue}) threw error '${me}'.`)}}}else this._logger.log(X.$.Debug,`Call to HttpConnection.stopConnection(${ue}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(ue){if(0===ue.lastIndexOf("https://",0)||0===ue.lastIndexOf("http://",0))return ue;if(!M.isBrowser)throw new Error(`Cannot resolve '${ue}'.`);const me=window.document.createElement("a");return me.href=ue,this._logger.log(X.$.Information,`Normalizing '${ue}' to '${me.href}'.`),me.href}_resolveNegotiateUrl(ue){const me=ue.indexOf("?");let Te=ue.substring(0,-1===me?ue.length:me);return"/"!==Te[Te.length-1]&&(Te+="/"),Te+="negotiate",Te+=-1===me?"":ue.substring(me),-1===Te.indexOf("negotiateVersion")&&(Te+=-1===me?"?":"&",Te+="negotiateVersion="+this._negotiateVersion),Te}}class pe{constructor(ue){this._transport=ue,this._buffer=[],this._executing=!0,this._sendBufferedData=new Ee,this._transportResult=new Ee,this._sendLoopPromise=this._sendLoop()}send(ue){return this._bufferData(ue),this._transportResult||(this._transportResult=new Ee),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(ue){if(this._buffer.length&&typeof this._buffer[0]!=typeof ue)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof ue}`);this._buffer.push(ue),this._sendBufferedData.resolve()}_sendLoop(){var ue=this;return(0,m.A)(function*(){for(;;){if(yield ue._sendBufferedData.promise,!ue._executing){ue._transportResult&&ue._transportResult.reject("Connection stopped.");break}ue._sendBufferedData=new Ee;const me=ue._transportResult;ue._transportResult=void 0;const Te="string"==typeof ue._buffer[0]?ue._buffer.join(""):pe._concatBuffers(ue._buffer);ue._buffer.length=0;try{yield ue._transport.send(Te),me.resolve()}catch(je){me.reject(je)}}})()}static _concatBuffers(ue){const me=ue.map(Ne=>Ne.byteLength).reduce((Ne,lt)=>Ne+lt),Te=new Uint8Array(me);let je=0;for(const Ne of ue)Te.set(new Uint8Array(Ne),je),je+=Ne.byteLength;return Te.buffer}}class Ee{constructor(){this.promise=new Promise((ue,me)=>[this._resolver,this._rejecter]=[ue,me])}resolve(){this._resolver()}reject(ue){this._rejecter(ue)}}class le{static write(ue){return`${ue}${le.RecordSeparator}`}static parse(ue){if(ue[ue.length-1]!==le.RecordSeparator)throw new Error("Message is incomplete.");const me=ue.split(le.RecordSeparator);return me.pop(),me}}le.RecordSeparatorCode=30,le.RecordSeparator=String.fromCharCode(le.RecordSeparatorCode);class Ke{writeHandshakeRequest(ue){return le.write(JSON.stringify(ue))}parseHandshakeResponse(ue){let me,Te;if(R(ue)){const Qe=new Uint8Array(ue),Ct=Qe.indexOf(le.RecordSeparatorCode);if(-1===Ct)throw new Error("Message is incomplete.");const yt=Ct+1;me=String.fromCharCode.apply(null,Array.prototype.slice.call(Qe.slice(0,yt))),Te=Qe.byteLength>yt?Qe.slice(yt).buffer:null}else{const Qe=ue,Ct=Qe.indexOf(le.RecordSeparator);if(-1===Ct)throw new Error("Message is incomplete.");const yt=Ct+1;me=Qe.substring(0,yt),Te=Qe.length>yt?Qe.substring(yt):null}const je=le.parse(me),Ne=JSON.parse(je[0]);if(Ne.type)throw new Error("Expected a handshake response from the server.");return[Te,Ne]}}var Be=function(et){return et[et.Invocation=1]="Invocation",et[et.StreamItem=2]="StreamItem",et[et.Completion=3]="Completion",et[et.StreamInvocation=4]="StreamInvocation",et[et.CancelInvocation=5]="CancelInvocation",et[et.Ping=6]="Ping",et[et.Close=7]="Close",et}(Be||{});class q{constructor(){this.observers=[]}next(ue){for(const me of this.observers)me.next(ue)}error(ue){for(const me of this.observers)me.error&&me.error(ue)}complete(){for(const ue of this.observers)ue.complete&&ue.complete()}subscribe(ue){return this.observers.push(ue),new z(this,ue)}}var We=function(et){return et.Disconnected="Disconnected",et.Connecting="Connecting",et.Connected="Connected",et.Disconnecting="Disconnecting",et.Reconnecting="Reconnecting",et}(We||{});class Ue{constructor(ue,me,Te,je){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(X.$.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},A.isRequired(ue,"connection"),A.isRequired(me,"logger"),A.isRequired(Te,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this._logger=me,this._protocol=Te,this.connection=ue,this._reconnectPolicy=je,this._handshakeProtocol=new Ke,this.connection.onreceive=Ne=>this._processIncomingData(Ne),this.connection.onclose=Ne=>this._connectionClosed(Ne),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=We.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:Be.Ping})}static create(ue,me,Te,je){return new Ue(ue,me,Te,je)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(ue){if(this._connectionState!==We.Disconnected&&this._connectionState!==We.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!ue)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=ue}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){var ue=this;return(0,m.A)(function*(){if(ue._connectionState!==We.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));ue._connectionState=We.Connecting,ue._logger.log(X.$.Debug,"Starting HubConnection.");try{yield ue._startInternal(),M.isBrowser&&window.document.addEventListener("freeze",ue._freezeEventListener),ue._connectionState=We.Connected,ue._connectionStarted=!0,ue._logger.log(X.$.Debug,"HubConnection connected successfully.")}catch(me){return ue._connectionState=We.Disconnected,ue._logger.log(X.$.Debug,`HubConnection failed to start successfully because of error '${me}'.`),Promise.reject(me)}})()}_startInternal(){var ue=this;return(0,m.A)(function*(){ue._stopDuringStartError=void 0,ue._receivedHandshakeResponse=!1;const me=new Promise((Te,je)=>{ue._handshakeResolver=Te,ue._handshakeRejecter=je});yield ue.connection.start(ue._protocol.transferFormat);try{const Te={protocol:ue._protocol.name,version:ue._protocol.version};if(ue._logger.log(X.$.Debug,"Sending handshake request."),yield ue._sendMessage(ue._handshakeProtocol.writeHandshakeRequest(Te)),ue._logger.log(X.$.Information,`Using HubProtocol '${ue._protocol.name}'.`),ue._cleanupTimeout(),ue._resetTimeoutPeriod(),ue._resetKeepAliveInterval(),yield me,ue._stopDuringStartError)throw ue._stopDuringStartError;ue.connection.features.inherentKeepAlive||(yield ue._sendMessage(ue._cachedPingMessage))}catch(Te){throw ue._logger.log(X.$.Debug,`Hub handshake failed with error '${Te}' during start(). Stopping HubConnection.`),ue._cleanupTimeout(),ue._cleanupPingTimer(),yield ue.connection.stop(Te),Te}})()}stop(){var ue=this;return(0,m.A)(function*(){const me=ue._startPromise;ue._stopPromise=ue._stopInternal(),yield ue._stopPromise;try{yield me}catch{}})()}_stopInternal(ue){return this._connectionState===We.Disconnected?(this._logger.log(X.$.Debug,`Call to HubConnection.stop(${ue}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===We.Disconnecting?(this._logger.log(X.$.Debug,`Call to HttpConnection.stop(${ue}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=We.Disconnecting,this._logger.log(X.$.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(X.$.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=ue||new v("The connection was stopped before the hub handshake could complete."),this.connection.stop(ue)))}stream(ue,...me){const[Te,je]=this._replaceStreamingParams(me),Ne=this._createStreamInvocation(ue,me,je);let lt;const Qe=new q;return Qe.cancelCallback=()=>{const Ct=this._createCancelInvocation(Ne.invocationId);return delete this._callbacks[Ne.invocationId],lt.then(()=>this._sendWithProtocol(Ct))},this._callbacks[Ne.invocationId]=(Ct,yt)=>{yt?Qe.error(yt):Ct&&(Ct.type===Be.Completion?Ct.error?Qe.error(new Error(Ct.error)):Qe.complete():Qe.next(Ct.item))},lt=this._sendWithProtocol(Ne).catch(Ct=>{Qe.error(Ct),delete this._callbacks[Ne.invocationId]}),this._launchStreams(Te,lt),Qe}_sendMessage(ue){return this._resetKeepAliveInterval(),this.connection.send(ue)}_sendWithProtocol(ue){return this._sendMessage(this._protocol.writeMessage(ue))}send(ue,...me){const[Te,je]=this._replaceStreamingParams(me),Ne=this._sendWithProtocol(this._createInvocation(ue,me,!0,je));return this._launchStreams(Te,Ne),Ne}invoke(ue,...me){const[Te,je]=this._replaceStreamingParams(me),Ne=this._createInvocation(ue,me,!1,je);return new Promise((Qe,Ct)=>{this._callbacks[Ne.invocationId]=(Gt,ft)=>{ft?Ct(ft):Gt&&(Gt.type===Be.Completion?Gt.error?Ct(new Error(Gt.error)):Qe(Gt.result):Ct(new Error(`Unexpected message type: ${Gt.type}`)))};const yt=this._sendWithProtocol(Ne).catch(Gt=>{Ct(Gt),delete this._callbacks[Ne.invocationId]});this._launchStreams(Te,yt)})}on(ue,me){!ue||!me||(ue=ue.toLowerCase(),this._methods[ue]||(this._methods[ue]=[]),-1===this._methods[ue].indexOf(me)&&this._methods[ue].push(me))}off(ue,me){if(!ue)return;ue=ue.toLowerCase();const Te=this._methods[ue];if(Te)if(me){const je=Te.indexOf(me);-1!==je&&(Te.splice(je,1),0===Te.length&&delete this._methods[ue])}else delete this._methods[ue]}onclose(ue){ue&&this._closedCallbacks.push(ue)}onreconnecting(ue){ue&&this._reconnectingCallbacks.push(ue)}onreconnected(ue){ue&&this._reconnectedCallbacks.push(ue)}_processIncomingData(ue){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(ue=this._processHandshakeResponse(ue),this._receivedHandshakeResponse=!0),ue){const me=this._protocol.parseMessages(ue,this._logger);for(const Te of me)switch(Te.type){case Be.Invocation:this._invokeClientMethod(Te);break;case Be.StreamItem:case Be.Completion:{const je=this._callbacks[Te.invocationId];if(je){Te.type===Be.Completion&&delete this._callbacks[Te.invocationId];try{je(Te)}catch(Ne){this._logger.log(X.$.Error,`Stream callback threw error: ${Se(Ne)}`)}}break}case Be.Ping:break;case Be.Close:{this._logger.log(X.$.Information,"Close message received from server.");const je=Te.error?new Error("Server returned an error on close: "+Te.error):void 0;!0===Te.allowReconnect?this.connection.stop(je):this._stopPromise=this._stopInternal(je);break}default:this._logger.log(X.$.Warning,`Invalid message type: ${Te.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(ue){let me,Te;try{[Te,me]=this._handshakeProtocol.parseHandshakeResponse(ue)}catch(je){const Ne="Error parsing handshake response: "+je;this._logger.log(X.$.Error,Ne);const lt=new Error(Ne);throw this._handshakeRejecter(lt),lt}if(me.error){const je="Server returned handshake error: "+me.error;this._logger.log(X.$.Error,je);const Ne=new Error(je);throw this._handshakeRejecter(Ne),Ne}return this._logger.log(X.$.Debug,"Server handshake complete."),this._handshakeResolver(),Te}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){var ue=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let me=this._nextKeepAlive-(new Date).getTime();me<0&&(me=0),this._pingServerHandle=setTimeout((0,m.A)(function*(){if(ue._connectionState===We.Connected)try{yield ue._sendMessage(ue._cachedPingMessage)}catch{ue._cleanupPingTimer()}}),me)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(ue){var me=this;return(0,m.A)(function*(){const Te=ue.target.toLowerCase(),je=me._methods[Te];if(!je)return me._logger.log(X.$.Warning,`No client method with the name '${Te}' found.`),void(ue.invocationId&&(me._logger.log(X.$.Warning,`No result given for '${Te}' method and invocation ID '${ue.invocationId}'.`),yield me._sendWithProtocol(me._createCompletionMessage(ue.invocationId,"Client didn't provide a result.",null))));const Ne=je.slice(),lt=!!ue.invocationId;let Qe,Ct,yt;for(const Gt of Ne)try{const ft=Qe;Qe=yield Gt.apply(me,ue.arguments),lt&&Qe&&ft&&(me._logger.log(X.$.Error,`Multiple results provided for '${Te}'. Sending error to server.`),yt=me._createCompletionMessage(ue.invocationId,"Client provided multiple results.",null)),Ct=void 0}catch(ft){Ct=ft,me._logger.log(X.$.Error,`A callback for the method '${Te}' threw error '${ft}'.`)}yt?yield me._sendWithProtocol(yt):lt?(Ct?yt=me._createCompletionMessage(ue.invocationId,`${Ct}`,null):void 0!==Qe?yt=me._createCompletionMessage(ue.invocationId,null,Qe):(me._logger.log(X.$.Warning,`No result given for '${Te}' method and invocation ID '${ue.invocationId}'.`),yt=me._createCompletionMessage(ue.invocationId,"Client didn't provide a result.",null)),yield me._sendWithProtocol(yt)):Qe&&me._logger.log(X.$.Error,`Result given for '${Te}' method but server is not expecting a result.`)})()}_connectionClosed(ue){this._logger.log(X.$.Debug,`HubConnection.connectionClosed(${ue}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||ue||new v("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(ue||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===We.Disconnecting?this._completeClose(ue):this._connectionState===We.Connected&&this._reconnectPolicy?this._reconnect(ue):this._connectionState===We.Connected&&this._completeClose(ue)}_completeClose(ue){if(this._connectionStarted){this._connectionState=We.Disconnected,this._connectionStarted=!1,M.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(me=>me.apply(this,[ue]))}catch(me){this._logger.log(X.$.Error,`An onclose callback called with error '${ue}' threw error '${me}'.`)}}}_reconnect(ue){var me=this;return(0,m.A)(function*(){const Te=Date.now();let je=0,Ne=void 0!==ue?ue:new Error("Attempting to reconnect due to a unknown error."),lt=me._getNextRetryDelay(je++,0,Ne);if(null===lt)return me._logger.log(X.$.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void me._completeClose(ue);if(me._connectionState=We.Reconnecting,me._logger.log(X.$.Information,ue?`Connection reconnecting because of error '${ue}'.`:"Connection reconnecting."),0!==me._reconnectingCallbacks.length){try{me._reconnectingCallbacks.forEach(Qe=>Qe.apply(me,[ue]))}catch(Qe){me._logger.log(X.$.Error,`An onreconnecting callback called with error '${ue}' threw error '${Qe}'.`)}if(me._connectionState!==We.Reconnecting)return void me._logger.log(X.$.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==lt;){if(me._logger.log(X.$.Information,`Reconnect attempt number ${je} will start in ${lt} ms.`),yield new Promise(Qe=>{me._reconnectDelayHandle=setTimeout(Qe,lt)}),me._reconnectDelayHandle=void 0,me._connectionState!==We.Reconnecting)return void me._logger.log(X.$.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield me._startInternal(),me._connectionState=We.Connected,me._logger.log(X.$.Information,"HubConnection reconnected successfully."),0!==me._reconnectedCallbacks.length)try{me._reconnectedCallbacks.forEach(Qe=>Qe.apply(me,[me.connection.connectionId]))}catch(Qe){me._logger.log(X.$.Error,`An onreconnected callback called with connectionId '${me.connection.connectionId}; threw error '${Qe}'.`)}return}catch(Qe){if(me._logger.log(X.$.Information,`Reconnect attempt failed because of error '${Qe}'.`),me._connectionState!==We.Reconnecting)return me._logger.log(X.$.Debug,`Connection moved to the '${me._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(me._connectionState===We.Disconnecting&&me._completeClose());Ne=Qe instanceof Error?Qe:new Error(Qe.toString()),lt=me._getNextRetryDelay(je++,Date.now()-Te,Ne)}}me._logger.log(X.$.Information,`Reconnect retries have been exhausted after ${Date.now()-Te} ms and ${je} failed attempts. Connection disconnecting.`),me._completeClose()})()}_getNextRetryDelay(ue,me,Te){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:me,previousRetryCount:ue,retryReason:Te})}catch(je){return this._logger.log(X.$.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${ue}, ${me}) threw error '${je}'.`),null}}_cancelCallbacksWithError(ue){const me=this._callbacks;this._callbacks={},Object.keys(me).forEach(Te=>{const je=me[Te];try{je(null,ue)}catch(Ne){this._logger.log(X.$.Error,`Stream 'error' callback called with '${ue}' threw error: ${Se(Ne)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(ue,me,Te,je){if(Te)return 0!==je.length?{arguments:me,streamIds:je,target:ue,type:Be.Invocation}:{arguments:me,target:ue,type:Be.Invocation};{const Ne=this._invocationId;return this._invocationId++,0!==je.length?{arguments:me,invocationId:Ne.toString(),streamIds:je,target:ue,type:Be.Invocation}:{arguments:me,invocationId:Ne.toString(),target:ue,type:Be.Invocation}}}_launchStreams(ue,me){if(0!==ue.length){me||(me=Promise.resolve());for(const Te in ue)ue[Te].subscribe({complete:()=>{me=me.then(()=>this._sendWithProtocol(this._createCompletionMessage(Te)))},error:je=>{let Ne;Ne=je instanceof Error?je.message:je&&je.toString?je.toString():"Unknown error",me=me.then(()=>this._sendWithProtocol(this._createCompletionMessage(Te,Ne)))},next:je=>{me=me.then(()=>this._sendWithProtocol(this._createStreamItemMessage(Te,je)))}})}}_replaceStreamingParams(ue){const me=[],Te=[];for(let je=0;je<ue.length;je++){const Ne=ue[je];if(this._isObservable(Ne)){const lt=this._invocationId;this._invocationId++,me[lt]=Ne,Te.push(lt.toString()),ue.splice(je,1)}}return[me,Te]}_isObservable(ue){return ue&&ue.subscribe&&"function"==typeof ue.subscribe}_createStreamInvocation(ue,me,Te){const je=this._invocationId;return this._invocationId++,0!==Te.length?{arguments:me,invocationId:je.toString(),streamIds:Te,target:ue,type:Be.StreamInvocation}:{arguments:me,invocationId:je.toString(),target:ue,type:Be.StreamInvocation}}_createCancelInvocation(ue){return{invocationId:ue,type:Be.CancelInvocation}}_createStreamItemMessage(ue,me){return{invocationId:ue,item:me,type:Be.StreamItem}}_createCompletionMessage(ue,me,Te){return me?{error:me,invocationId:ue,type:Be.Completion}:{invocationId:ue,result:Te,type:Be.Completion}}}class tt{constructor(){this.name="json",this.version=1,this.transferFormat=Ce.Text}parseMessages(ue,me){if("string"!=typeof ue)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!ue)return[];null===me&&(me=U.instance);const Te=le.parse(ue),je=[];for(const Ne of Te){const lt=JSON.parse(Ne);if("number"!=typeof lt.type)throw new Error("Invalid payload.");switch(lt.type){case Be.Invocation:this._isInvocationMessage(lt);break;case Be.StreamItem:this._isStreamItemMessage(lt);break;case Be.Completion:this._isCompletionMessage(lt);break;case Be.Ping:case Be.Close:break;default:me.log(X.$.Information,"Unknown message type '"+lt.type+"' ignored.");continue}je.push(lt)}return je}writeMessage(ue){return le.write(JSON.stringify(ue))}_isInvocationMessage(ue){this._assertNotEmptyString(ue.target,"Invalid payload for Invocation message."),void 0!==ue.invocationId&&this._assertNotEmptyString(ue.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(ue){if(this._assertNotEmptyString(ue.invocationId,"Invalid payload for StreamItem message."),void 0===ue.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(ue){if(ue.result&&ue.error)throw new Error("Invalid payload for Completion message.");!ue.result&&ue.error&&this._assertNotEmptyString(ue.error,"Invalid payload for Completion message."),this._assertNotEmptyString(ue.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(ue,me){if("string"!=typeof ue||""===ue)throw new Error(me)}}const at={trace:X.$.Trace,debug:X.$.Debug,info:X.$.Information,information:X.$.Information,warn:X.$.Warning,warning:X.$.Warning,error:X.$.Error,critical:X.$.Critical,none:X.$.None};class qe{configureLogging(ue){if(A.isRequired(ue,"logging"),function Nt(et){return void 0!==et.log}(ue))this.logger=ue;else if("string"==typeof ue){const me=function Vt(et){const ue=at[et.toLowerCase()];if(typeof ue<"u")return ue;throw new Error(`Unknown log level: ${et}`)}(ue);this.logger=new K(me)}else this.logger=new K(ue);return this}withUrl(ue,me){return A.isRequired(ue,"url"),A.isNotEmpty(ue,"url"),this.url=ue,this.httpConnectionOptions="object"==typeof me?{...this.httpConnectionOptions,...me}:{...this.httpConnectionOptions,transport:me},this}withHubProtocol(ue){return A.isRequired(ue,"protocol"),this.protocol=ue,this}withAutomaticReconnect(ue){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=ue?Array.isArray(ue)?new d(ue):ue:new d,this}build(){const ue=this.httpConnectionOptions||{};if(void 0===ue.logger&&(ue.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const me=new de(this.url,ue);return Ue.create(me,this.logger||U.instance,this.protocol||new tt,this.reconnectPolicy)}}},8299:(En,it,p)=>{"use strict";p.d(it,{A:()=>C});var S=p(4859),d=p(6021);const m={load:()=>(0,d.cY)().reject(),loadSingle:()=>(0,d.cY)().reject(),loadFromStore:()=>(0,d.cY)().reject(),loadNextPage:()=>(0,d.cY)().reject(),loadOptions:S.lQ,userData:S.lQ,cancel:S.lQ,cancelAll:S.lQ,filter:S.lQ,addSearchFilter:S.lQ,group:S.lQ,paginate:S.lQ,pageSize:S.lQ,pageIndex:S.lQ,resetDataSourcePageIndex:S.lQ,totalCount:S.lQ,isLastPage:S.lQ,isLoading:S.lQ,isLoaded:S.lQ,searchValue:S.lQ,searchOperation:S.lQ,searchExpr:S.lQ,select:S.lQ,key:S.lQ,keyOf:S.lQ,store:S.lQ,items:S.lQ,applyMapFunction:S.lQ,getDataSource:S.lQ,reload:S.lQ,on:S.lQ,off:S.lQ},C=class T{constructor(k){if(!k)return m;this._dataSource=k}load(){return this._dataSource.load()}loadSingle(k,w){return arguments.length<2&&(w=k,k=this.key()),this._dataSource.loadSingle(k,w)}loadFromStore(k){return this.store().load(k)}loadNextPage(){return this.pageIndex(1+this.pageIndex()),this.load()}loadOptions(){return this._dataSource.loadOptions()}userData(){return this._dataSource._userData}cancel(k){this._dataSource.cancel(k)}cancelAll(){this._dataSource.cancelAll()}filter(k){return this._dataSource.filter(k)}addSearchFilter(k){this._dataSource._addSearchFilter(k)}group(k){return this._dataSource.group(k)}paginate(){return this._dataSource.paginate()}pageSize(){return this._dataSource._pageSize}pageIndex(k){return this._dataSource.pageIndex(k)}resetDataSourcePageIndex(){this.pageIndex()&&(this.pageIndex(0),this.load())}totalCount(){return this._dataSource.totalCount()}isLastPage(){return this._dataSource.isLastPage()||!this._dataSource._pageSize}isLoading(){return this._dataSource.isLoading()}isLoaded(){return this._dataSource.isLoaded()}searchValue(k){return arguments.length?this._dataSource.searchValue(k):this._dataSource.searchValue()}searchOperation(k){return this._dataSource.searchOperation(k)}searchExpr(k){return arguments.length?this._dataSource.searchExpr(k):this._dataSource.searchExpr()}select(){return this._dataSource.select(...arguments)}key(){return this._dataSource.key()}keyOf(k){return this.store().keyOf(k)}store(){return this._dataSource.store()}items(){return this._dataSource.items()}applyMapFunction(k){return this._dataSource._applyMapFunction(k)}getDataSource(){return this._dataSource||null}reload(){return this._dataSource.reload()}on(k,w){this._dataSource.on(k,w)}off(k,w){this._dataSource.off(k,w)}}},8360:(En,it,p)=>{"use strict";p.d(it,{A:()=>x});var S=p(1926),d=p(3090),m=p(9495),T=p(6946),C=p(7280);const k=(0,d.X)(!0,{},{en:{Yes:"Yes",No:"No",Cancel:"Cancel",Close:"Close",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-async":"Value is invalid","validation-async-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxList-listAriaLabel":"Items","dxList-listAriaLabel-deletable":"Deletable items","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxDateRangeBox-invalidStartDateMessage":"Start value must be a date","dxDateRangeBox-invalidEndDateMessage":"End value must be a date","dxDateRangeBox-startDateOutOfRangeMessage":"Start date is out of range","dxDateRangeBox-endDateOutOfRangeMessage":"End date is out of range","dxDateRangeBox-startDateLabel":"Start Date","dxDateRangeBox-endDateLabel":"End Date","dxFileUploader-selectFile":"Select a file","dxFileUploader-dropFile":"or Drop a file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"KB","dxFileUploader-Mb":"MB","dxFileUploader-Gb":"GB","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadAbortedMessage":"Upload cancelled","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxNumberBox-noDataText":"No data","dxDataGrid-emptyHeaderWithColumnChooserText":"Use {0} to display columns","dxDataGrid-emptyHeaderWithGroupPanelText":"Drag a column from the group panel here","dxDataGrid-emptyHeaderWithColumnChooserAndGroupPanelText":"Use {0} or drag a column from the group panel","dxDataGrid-emptyHeaderColumnChooserText":"column chooser","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-ariaSearchBox":"Search box","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-ariaNotSortedColumn":"Not sorted column","dxDataGrid-ariaSortedAscendingColumn":"Column sorted in ascending order","dxDataGrid-ariaSortedDescendingColumn":"Column sorted in descending order","dxDataGrid-ariaSortIndex":"Sort index {0}","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-exporting":"Exporting...","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows to {0}","dxDataGrid-exportAll":"Export all data to {0}","dxDataGrid-headerFilterLabel":"Filter options","dxDataGrid-headerFilterIndicatorLabel":"Show filter options for column '{0}'","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaAdaptiveCollapse":"Hide additional data","dxDataGrid-ariaAdaptiveExpand":"Display additional data","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaColumnHeader":"Column header","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaError":"Error","dxDataGrid-ariaRevertButton":"Press Escape to discard the changes","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaModifiedCell":"Modified","dxDataGrid-ariaDeletedCell":"Deleted","dxDataGrid-ariaEditableCell":"Editable","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaCollapsedRow":"Collapsed row","dxDataGrid-ariaExpandedRow":"Expanded row","dxDataGrid-ariaDataGrid":"Data grid with {0} rows and {1} columns","dxDataGrid-ariaSearchInGrid":"Search in the data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-ariaToolbar":"Data grid toolbar","dxDataGrid-ariaEditForm":"Edit form","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxDataGrid-masterDetail":"Cell with details","dxTreeList-ariaTreeList":"Tree list with {0} rows and {1} columns","dxTreeList-ariaSearchInGrid":"Search in the tree list","dxTreeList-ariaToolbar":"Tree list toolbar","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPager-pageSize":"Items per page: {0}","dxPager-pageSizesAllText":"All","dxPager-page":"Page {0}","dxPager-prevPage":"Previous Page","dxPager-nextPage":"Next Page","dxPager-ariaLabel":"Page Navigation","dxPager-ariaPageSize":"Page size","dxPager-ariaPageNumber":"Page number","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceMinutely":"Every minute","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditTitle":"Edit Recurring Appointment","dxScheduler-confirmRecurrenceDeleteTitle":"Delete Recurring Appointment","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-currentDay":"Today","dxCalendar-currentMonth":"Current month","dxCalendar-currentYear":"Current year","dxCalendar-currentYearRange":"Current year range","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxCalendar-previousMonthButtonLabel":"Previous month","dxCalendar-previousYearButtonLabel":"Previous year","dxCalendar-previousDecadeButtonLabel":"Previous decade","dxCalendar-previousCenturyButtonLabel":"Previous century","dxCalendar-nextMonthButtonLabel":"Next month","dxCalendar-nextYearButtonLabel":"Next year","dxCalendar-nextDecadeButtonLabel":"Next decade","dxCalendar-nextCenturyButtonLabel":"Next century","dxCalendar-captionMonthLabel":"Month selection","dxCalendar-captionYearLabel":"Year selection","dxCalendar-captionDecadeLabel":"Decade selection","dxCalendar-captionCenturyLabel":"Century selection","dxCalendar-selectedDate":"The selected date is {0}","dxCalendar-selectedDateRange":"The selected date range is from {0} to {1}","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","dxTagBox-tagRoleDescription":"Tag. Press the delete button to remove this tag","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-dialogInsertTableRowsField":"Rows","dxHtmlEditor-dialogInsertTableColumnsField":"Columns","dxHtmlEditor-dialogInsertTableCaption":"Insert Table","dxHtmlEditor-dialogUpdateImageCaption":"Update Image","dxHtmlEditor-dialogImageUpdateButton":"Update","dxHtmlEditor-dialogImageAddButton":"Add","dxHtmlEditor-dialogImageSpecifyUrl":"From the Web","dxHtmlEditor-dialogImageSelectFile":"From This Device","dxHtmlEditor-dialogImageKeepAspectRatio":"Keep Aspect Ratio","dxHtmlEditor-dialogImageEncodeToBase64":"Encode to Base64","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxHtmlEditor-background":"Background Color","dxHtmlEditor-bold":"Bold","dxHtmlEditor-color":"Font Color","dxHtmlEditor-font":"Font","dxHtmlEditor-italic":"Italic","dxHtmlEditor-link":"Add Link","dxHtmlEditor-image":"Add Image","dxHtmlEditor-size":"Size","dxHtmlEditor-strike":"Strikethrough","dxHtmlEditor-subscript":"Subscript","dxHtmlEditor-superscript":"Superscript","dxHtmlEditor-underline":"Underline","dxHtmlEditor-blockquote":"Blockquote","dxHtmlEditor-header":"Header","dxHtmlEditor-increaseIndent":"Increase Indent","dxHtmlEditor-decreaseIndent":"Decrease Indent","dxHtmlEditor-orderedList":"Ordered List","dxHtmlEditor-bulletList":"Bullet List","dxHtmlEditor-alignLeft":"Align Left","dxHtmlEditor-alignCenter":"Align Center","dxHtmlEditor-alignRight":"Align Right","dxHtmlEditor-alignJustify":"Align Justify","dxHtmlEditor-codeBlock":"Code Block","dxHtmlEditor-variable":"Add Variable","dxHtmlEditor-undo":"Undo","dxHtmlEditor-redo":"Redo","dxHtmlEditor-clear":"Clear Formatting","dxHtmlEditor-insertTable":"Insert Table","dxHtmlEditor-insertHeaderRow":"Insert Header Row","dxHtmlEditor-insertRowAbove":"Insert Row Above","dxHtmlEditor-insertRowBelow":"Insert Row Below","dxHtmlEditor-insertColumnLeft":"Insert Column Left","dxHtmlEditor-insertColumnRight":"Insert Column Right","dxHtmlEditor-deleteColumn":"Delete Column","dxHtmlEditor-deleteRow":"Delete Row","dxHtmlEditor-deleteTable":"Delete Table","dxHtmlEditor-cellProperties":"Cell Properties","dxHtmlEditor-tableProperties":"Table Properties","dxHtmlEditor-insert":"Insert","dxHtmlEditor-delete":"Delete","dxHtmlEditor-border":"Border","dxHtmlEditor-style":"Style","dxHtmlEditor-width":"Width","dxHtmlEditor-height":"Height","dxHtmlEditor-borderColor":"Color","dxHtmlEditor-tableBackground":"Background","dxHtmlEditor-dimensions":"Dimensions","dxHtmlEditor-alignment":"Alignment","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertical","dxHtmlEditor-paddingVertical":"Vertical Padding","dxHtmlEditor-paddingHorizontal":"Horizontal Padding","dxHtmlEditor-pixels":"Pixels","dxHtmlEditor-list":"List","dxHtmlEditor-ordered":"Ordered","dxHtmlEditor-bullet":"Bullet","dxHtmlEditor-align":"Align","dxHtmlEditor-center":"Center","dxHtmlEditor-left":"Left","dxHtmlEditor-right":"Right","dxHtmlEditor-indent":"Indent","dxHtmlEditor-justify":"Justify","dxHtmlEditor-borderStyleNone":"none","dxHtmlEditor-borderStyleHidden":"hidden","dxHtmlEditor-borderStyleDotted":"dotted","dxHtmlEditor-borderStyleDashed":"dashed","dxHtmlEditor-borderStyleSolid":"solid","dxHtmlEditor-borderStyleDouble":"double","dxHtmlEditor-borderStyleGroove":"groove","dxHtmlEditor-borderStyleRidge":"ridge","dxHtmlEditor-borderStyleInset":"inset","dxHtmlEditor-borderStyleOutset":"outset","dxFileManager-newDirectoryName":"Untitled directory","dxFileManager-rootDirectoryName":"Files","dxFileManager-errorNoAccess":"Access Denied. Operation could not be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found.","dxFileManager-errorDirectoryNotFoundFormat":"Directory '{0}' not found.","dxFileManager-errorWrongFileExtension":"File extension is not allowed.","dxFileManager-errorMaxFileSizeExceeded":"File size exceeds the maximum allowed size.","dxFileManager-errorInvalidSymbols":"This name contains invalid characters.","dxFileManager-errorDefault":"Unspecified error.","dxFileManager-errorDirectoryOpenFailed":"The directory cannot be opened","dxFileManager-commandCreate":"New directory","dxFileManager-commandRename":"Rename","dxFileManager-commandMove":"Move to","dxFileManager-commandCopy":"Copy to","dxFileManager-commandDelete":"Delete","dxFileManager-commandDownload":"Download","dxFileManager-commandUpload":"Upload files","dxFileManager-commandRefresh":"Refresh","dxFileManager-commandThumbnails":"Thumbnails View","dxFileManager-commandDetails":"Details View","dxFileManager-commandClearSelection":"Clear selection","dxFileManager-commandShowNavPane":"Toggle navigation pane","dxFileManager-dialogDirectoryChooserMoveTitle":"Move to","dxFileManager-dialogDirectoryChooserMoveButtonText":"Move","dxFileManager-dialogDirectoryChooserCopyTitle":"Copy to","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copy","dxFileManager-dialogRenameItemTitle":"Rename","dxFileManager-dialogRenameItemButtonText":"Save","dxFileManager-dialogCreateDirectoryTitle":"New directory","dxFileManager-dialogCreateDirectoryButtonText":"Create","dxFileManager-dialogDeleteItemTitle":"Delete","dxFileManager-dialogDeleteItemButtonText":"Delete","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Are you sure you want to delete {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Are you sure you want to delete {0} items?","dxFileManager-dialogButtonCancel":"Cancel","dxFileManager-editingCreateSingleItemProcessingMessage":"Creating a directory inside {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Created a directory inside {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Directory was not created","dxFileManager-editingCreateCommonErrorMessage":"Directory was not created","dxFileManager-editingRenameSingleItemProcessingMessage":"Renaming an item inside {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Renamed an item inside {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item was not renamed","dxFileManager-editingRenameCommonErrorMessage":"Item was not renamed","dxFileManager-editingDeleteSingleItemProcessingMessage":"Deleting an item from {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Deleting {0} items from {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Deleted an item from {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"Deleted {0} items from {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item was not deleted","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items were not deleted","dxFileManager-editingDeleteCommonErrorMessage":"Some items were not deleted","dxFileManager-editingMoveSingleItemProcessingMessage":"Moving an item to {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Moving {0} items to {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Moved an item to {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"Moved {0} items to {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item was not moved","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items were not moved","dxFileManager-editingMoveCommonErrorMessage":"Some items were not moved","dxFileManager-editingCopySingleItemProcessingMessage":"Copying an item to {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Copying {0} items to {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Copied an item to {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"Copied {0} items to {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item was not copied","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items were not copied","dxFileManager-editingCopyCommonErrorMessage":"Some items were not copied","dxFileManager-editingUploadSingleItemProcessingMessage":"Uploading an item to {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Uploading {0} items to {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Uploaded an item to {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"Uploaded {0} items to {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item was not uploaded","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items were not uploaded","dxFileManager-editingUploadCanceledMessage":"Canceled","dxFileManager-editingDownloadSingleItemErrorMessage":"Item was not downloaded","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} items were not downloaded","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Date Modified","dxFileManager-listDetailsColumnCaptionFileSize":"File Size","dxFileManager-listThumbnailsTooltipTextSize":"Size","dxFileManager-listThumbnailsTooltipTextDateModified":"Date Modified","dxFileManager-notificationProgressPanelTitle":"Progress","dxFileManager-notificationProgressPanelEmptyListText":"No operations","dxFileManager-notificationProgressPanelOperationCanceled":"Canceled","dxDiagram-categoryGeneral":"General","dxDiagram-categoryFlowchart":"Flowchart","dxDiagram-categoryOrgChart":"Org Chart","dxDiagram-categoryContainers":"Containers","dxDiagram-categoryCustom":"Custom","dxDiagram-commandExportToSvg":"Export to SVG","dxDiagram-commandExportToPng":"Export to PNG","dxDiagram-commandExportToJpg":"Export to JPEG","dxDiagram-commandUndo":"Undo","dxDiagram-commandRedo":"Redo","dxDiagram-commandFontName":"Font Name","dxDiagram-commandFontSize":"Font Size","dxDiagram-commandBold":"Bold","dxDiagram-commandItalic":"Italic","dxDiagram-commandUnderline":"Underline","dxDiagram-commandTextColor":"Font Color","dxDiagram-commandLineColor":"Line Color","dxDiagram-commandLineWidth":"Line Width","dxDiagram-commandLineStyle":"Line Style","dxDiagram-commandLineStyleSolid":"Solid","dxDiagram-commandLineStyleDotted":"Dotted","dxDiagram-commandLineStyleDashed":"Dashed","dxDiagram-commandFillColor":"Fill Color","dxDiagram-commandAlignLeft":"Align Left","dxDiagram-commandAlignCenter":"Align Center","dxDiagram-commandAlignRight":"Align Right","dxDiagram-commandConnectorLineType":"Connector Line Type","dxDiagram-commandConnectorLineStraight":"Straight","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"Connector Line Start","dxDiagram-commandConnectorLineEnd":"Connector Line End","dxDiagram-commandConnectorLineNone":"None","dxDiagram-commandConnectorLineArrow":"Arrow","dxDiagram-commandFullscreen":"Full Screen","dxDiagram-commandUnits":"Units","dxDiagram-commandPageSize":"Page Size","dxDiagram-commandPageOrientation":"Page Orientation","dxDiagram-commandPageOrientationLandscape":"Landscape","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Page Color","dxDiagram-commandShowGrid":"Show Grid","dxDiagram-commandSnapToGrid":"Snap to Grid","dxDiagram-commandGridSize":"Grid Size","dxDiagram-commandZoomLevel":"Zoom Level","dxDiagram-commandAutoZoom":"Auto Zoom","dxDiagram-commandFitToContent":"Fit to Content","dxDiagram-commandFitToWidth":"Fit to Width","dxDiagram-commandAutoZoomByContent":"Auto Zoom by Content","dxDiagram-commandAutoZoomByWidth":"Auto Zoom by Width","dxDiagram-commandSimpleView":"Simple View","dxDiagram-commandCut":"Cut","dxDiagram-commandCopy":"Copy","dxDiagram-commandPaste":"Paste","dxDiagram-commandSelectAll":"Select All","dxDiagram-commandDelete":"Delete","dxDiagram-commandBringToFront":"Bring to Front","dxDiagram-commandSendToBack":"Send to Back","dxDiagram-commandLock":"Lock","dxDiagram-commandUnlock":"Unlock","dxDiagram-commandInsertShapeImage":"Insert Image...","dxDiagram-commandEditShapeImage":"Change Image...","dxDiagram-commandDeleteShapeImage":"Delete Image","dxDiagram-commandLayoutLeftToRight":"Left-to-right","dxDiagram-commandLayoutRightToLeft":"Right-to-left","dxDiagram-commandLayoutTopToBottom":"Top-to-bottom","dxDiagram-commandLayoutBottomToTop":"Bottom-to-top","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Cancel","dxDiagram-dialogInsertShapeImageTitle":"Insert Image","dxDiagram-dialogEditShapeImageTitle":"Change Image","dxDiagram-dialogEditShapeImageSelectButton":"Select image","dxDiagram-dialogEditShapeImageLabelText":"or drop a file here","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Properties","dxDiagram-uiSettings":"Settings","dxDiagram-uiShowToolbox":"Show Toolbox","dxDiagram-uiSearch":"Search","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Tree","dxDiagram-uiLayoutLayered":"Layered","dxDiagram-uiDiagram":"Diagram","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Object","dxDiagram-uiConnector":"Connector","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Cross","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamond","dxDiagram-shapeHeart":"Heart","dxDiagram-shapePentagon":"Pentagon","dxDiagram-shapeHexagon":"Hexagon","dxDiagram-shapeOctagon":"Octagon","dxDiagram-shapeStar":"Star","dxDiagram-shapeArrowLeft":"Left Arrow","dxDiagram-shapeArrowUp":"Up Arrow","dxDiagram-shapeArrowRight":"Right Arrow","dxDiagram-shapeArrowDown":"Down Arrow","dxDiagram-shapeArrowUpDown":"Up Down Arrow","dxDiagram-shapeArrowLeftRight":"Left Right Arrow","dxDiagram-shapeProcess":"Process","dxDiagram-shapeDecision":"Decision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Predefined Process","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Multiple Documents","dxDiagram-shapeManualInput":"Manual Input","dxDiagram-shapePreparation":"Preparation","dxDiagram-shapeData":"Data","dxDiagram-shapeDatabase":"Database","dxDiagram-shapeHardDisk":"Hard Disk","dxDiagram-shapeInternalStorage":"Internal Storage","dxDiagram-shapePaperTape":"Paper Tape","dxDiagram-shapeManualOperation":"Manual Operation","dxDiagram-shapeDelay":"Delay","dxDiagram-shapeStoredData":"Stored Data","dxDiagram-shapeDisplay":"Display","dxDiagram-shapeMerge":"Merge","dxDiagram-shapeConnector":"Connector","dxDiagram-shapeOr":"Or","dxDiagram-shapeSummingJunction":"Summing Junction","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertical Container","dxDiagram-shapeHorizontalContainer":"Horizontal Container","dxDiagram-shapeCardDefaultText":"Person's Name","dxDiagram-shapeCardWithImageOnLeft":"Card with Image on the Left","dxDiagram-shapeCardWithImageOnTop":"Card with Image on the Top","dxDiagram-shapeCardWithImageOnRight":"Card with Image on the Right","dxGantt-dialogTitle":"Title","dxGantt-dialogStartTitle":"Start","dxGantt-dialogEndTitle":"End","dxGantt-dialogProgressTitle":"Progress","dxGantt-dialogResourcesTitle":"Resources","dxGantt-dialogResourceManagerTitle":"Resource Manager","dxGantt-dialogTaskDetailsTitle":"Task Details","dxGantt-dialogEditResourceListHint":"Edit Resource List","dxGantt-dialogEditNoResources":"No resources","dxGantt-dialogButtonAdd":"Add","dxGantt-contextMenuNewTask":"New Task","dxGantt-contextMenuNewSubtask":"New Subtask","dxGantt-contextMenuDeleteTask":"Delete Task","dxGantt-contextMenuDeleteDependency":"Delete Dependency","dxGantt-dialogTaskDeleteConfirmation":"Deleting a task also deletes all its dependencies and subtasks. Are you sure you want to delete this task?","dxGantt-dialogDependencyDeleteConfirmation":"Are you sure you want to delete the dependency from the task?","dxGantt-dialogResourcesDeleteConfirmation":"Deleting a resource also deletes it from tasks to which this resource is assigned. Are you sure you want to delete these resources? Resources: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. How would you like to proceed?","dxGantt-dialogCancelOperationMessage":"Cancel the operation","dxGantt-dialogDeleteDependencyMessage":"Delete the dependency","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Move the task and keep the dependency","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. How would you like to proceed?","dxGantt-dialogDeleteDependenciesMessage":"Delete the dependency relations","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"Move the task and keep the dependencies","dxGantt-undo":"Undo","dxGantt-redo":"Redo","dxGantt-expandAll":"Expand All","dxGantt-collapseAll":"Collapse All","dxGantt-addNewTask":"Add New Task","dxGantt-deleteSelectedTask":"Delete Selected Task","dxGantt-zoomIn":"Zoom In","dxGantt-zoomOut":"Zoom Out","dxGantt-fullScreen":"Full Screen","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Sort Ascending","dxGantt-sortingDescendingText":"Sort Descending","dxGantt-sortingClearText":"Clear Sorting","dxGantt-showResources":"Show Resources","dxGantt-showDependencies":"Show Dependencies","dxGantt-dialogStartDateValidation":"Start date must be after {0}","dxGantt-dialogEndDateValidation":"End date must be after {0}","dxGallery-itemName":"Gallery item","dxMultiView-elementAriaRoleDescription":"MultiView","dxMultiView-elementAriaLabel":"Use the arrow keys or swipe to navigate between views","dxMultiView-itemAriaRoleDescription":"View","dxMultiView-itemAriaLabel":"{0} of {1}","dxSplitter-resizeHandleAriaLabel":"Split bar"}}),P={},x=(0,S.A)({engine:function(){return"base"},_dictionary:k,load:function(b){(0,d.X)(!0,this._dictionary,b)},_localizablePrefix:"@",setup:function(b){this._localizablePrefix=b},localizeString:function(b){const B=this,j=new RegExp("(^|[^a-zA-Z_0-9"+B._localizablePrefix+"-]+)("+B._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),F=B._localizablePrefix+B._localizablePrefix;return b.replace(j,(X,U,Z,A)=>{const M=B._localizablePrefix+A;let H;return Z!==F&&(H=B.format(A)),H||(P[A]=(0,T.I3)(A)),U+(H||M)})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(b){return b?P:(0,d.X)({},P,this.getMessagesByLocales()[C.A.locale()])},getFormatter:function(b){return this._getFormatterBase(b)||this._getFormatterBase(b,"en")},_getFormatterBase:function(b,B){const j=C.A.getValueByClosestLocale(F=>((b,B)=>{var j;return b[B]||B?.toLowerCase&&(null===(j=Object.entries(b).find(F=>{let[X]=F;return X.toLowerCase()===B.toLowerCase()}))||void 0===j?void 0:j[1])||{}})(this._dictionary,F)[b]);if(j)return function(){const F=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return F.unshift(j),m.GP.apply(this,F)}},format:function(b){const B=this.getFormatter(b),j=Array.prototype.slice.call(arguments,1);return B&&B.apply(this,j)||""}})},8375:(En,it,p)=>{"use strict";p.d(it,{S:()=>P});var S=p(8189),d=p(5574),m=p(6104),T=p(2928),C=p(3746),e=p(2198),k=p(656),w=p(7543);let P=(()=>{var v;class x{constructor(B,j,F){this.upgrade=B,this.scope=j,this.auth=F,this._hubConnection=null,this.SignalrHubUrl="http://localhost:5269/hub/notificationHub",this.isConnected=!1,this.sourceTimes=(0,T.Y)(5e3),this.isConnectedSource=new m.B,this.isConnected$=this.isConnectedSource.asObservable(),this.lastTime=(new Date).getTime(),this.acceptableDelta=2500,this.isSuspended=!1,this.isResumedSource=new m.B,this.isResumed$=this.isResumedSource.asObservable(),this.SignalrHubUrl=this.scope.getScope().globalSettings.configurations.chatServerConfig.baseUrl+"hub/notificationHub",this._hubConnection=(new S.$).withUrl(this.SignalrHubUrl,{accessTokenFactory:()=>this.auth.getToken()}).withAutomaticReconnect().configureLogging(d.$.None).build(),this._hubConnection.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}).catch(X=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onclose(X=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onreconnected(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}),this.subs=this.sourceTimes.subscribe(X=>{if(this.isConnected)try{this._hubConnection?.send("ping")}catch{this._hubConnection?.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)})}const U=(new Date).getTime();U-this.lastTime>7500?(this.isSuspended=!0,setTimeout(()=>{this.isResumedSource.next(!0)},0)):this.isSuspended=!1,this.lastTime=U})}triggerApplyInAngularJs(){try{const j=this.upgrade.injector.get("$rootScope");j?j.$apply():console.error("AngularJS $rootScope not found.")}catch(B){console.error("Error accessing AngularJS services:",B)}}static#e=v=()=>(this.\u0275fac=function(j){return new(j||x)(k.KVO(e.be),k.KVO(C.A),k.KVO(w.u))},this.\u0275prov=k.jDH({token:x,factory:x.\u0275fac,providedIn:"root"}))}return v(),x})()},8399:(En,it,p)=>{"use strict";p.d(it,{H:()=>L});var S=p(8621),d=p(1982),m=p(9867),T=p(6111);function C(G,Q=0){return(0,m.N)((z,K)=>{z.subscribe((0,T._)(K,ee=>(0,d.N)(K,G,()=>K.next(ee),Q),()=>(0,d.N)(K,G,()=>K.complete(),Q),ee=>(0,d.N)(K,G,()=>K.error(ee),Q)))})}function e(G,Q=0){return(0,m.N)((z,K)=>{K.add(G.schedule(()=>z.subscribe(K),Q))})}var P=p(9406),x=p(7028),b=p(4418);function j(G,Q){if(!G)throw new Error("Iterable cannot be null");return new P.c(z=>{(0,d.N)(z,Q,()=>{const K=G[Symbol.asyncIterator]();(0,d.N)(z,Q,()=>{K.next().then(ee=>{ee.done?z.complete():z.next(ee.value)})},0,!0)})})}var F=p(8932),X=p(5717),U=p(5206),Z=p(6472),A=p(7462),M=p(2246),H=p(8889);function L(G,Q){return Q?function R(G,Q){if(null!=G){if((0,F.l)(G))return function k(G,Q){return(0,S.Tg)(G).pipe(e(Q),C(Q))}(G,Q);if((0,U.X)(G))return function v(G,Q){return new P.c(z=>{let K=0;return Q.schedule(function(){K===G.length?z.complete():(z.next(G[K++]),z.closed||this.schedule())})})}(G,Q);if((0,X.y)(G))return function w(G,Q){return(0,S.Tg)(G).pipe(e(Q),C(Q))}(G,Q);if((0,A.T)(G))return j(G,Q);if((0,Z.x)(G))return function B(G,Q){return new P.c(z=>{let K;return(0,d.N)(z,Q,()=>{K=G[x.l](),(0,d.N)(z,Q,()=>{let ee,re;try{({value:ee,done:re}=K.next())}catch(be){return void z.error(be)}re?z.complete():z.next(ee)},0,!0)}),()=>(0,b.T)(K?.return)&&K.return()})}(G,Q);if((0,H.U)(G))return function J(G,Q){return j((0,H.C)(G),Q)}(G,Q)}throw(0,M.L)(G)}(G,Q):(0,S.Tg)(G)}},8412:(En,it,p)=>{"use strict";p.d(it,{A:()=>m});var S=p(5704),d=p(6776);class m extends d.o{_renderCore(){return(0,S.A)()}}},8448:(En,it,p)=>{"use strict";p.d(it,{w:()=>d});const d=new(p(9406).c)(C=>C.complete())},8486:(En,it,p)=>{"use strict";p.d(it,{s:()=>T});var S=p(8448),d=p(9867),m=p(6111);function T(C){return C<=0?()=>S.w:(0,d.N)((e,k)=>{let w=0;e.subscribe((0,m._)(k,P=>{++w<=C&&(k.next(P),C<=w&&k.complete())}))})}},8496:(En,it,p)=>{"use strict";p.d(it,{A:()=>T});var S=p(6620);p(1609);const T=S.A},8503:(En,it,p)=>{"use strict";p.d(it,{p:()=>m});var S=p(9867),d=p(6111);function m(T,C){return(0,S.N)((e,k)=>{let w=0;e.subscribe((0,d._)(k,P=>T.call(C,P,w++)&&k.next(P)))})}},8535:(En,it,p)=>{"use strict";p.d(it,{F:()=>T,N:()=>C});var S=p(5704);const T=e=>!(!e||"string"!=typeof e)&&(/^\s*<svg[^>]*>(.|\r?\n)*?<\/svg>\s*$/i.test(e)?"svg":/data:.*base64|\.|[^<\s]\/{1,1}/.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":!!/^\s?([\w-_:]\s?)+$/.test(e)&&"fontIcon"),C=e=>{switch(T(e)){case"image":return(0,S.A)("<img>").attr("src",e).addClass("dx-icon");case"fontIcon":return(0,S.A)("<i>").addClass(`dx-icon ${e}`);case"dxIcon":return(0,S.A)("<i>").addClass(`dx-icon dx-icon-${e}`);case"svg":return(0,S.A)("<i>").addClass("dx-icon dx-svg-icon").append(e);default:return null}}},8569:(En,it,p)=>{"use strict";p.d(it,{A:()=>dn});var S=p(5704),d=p(3686),m=p(7251),T=p(1773),C=p(3090),e=p(5737),k=p(1830),w=p(4859),P=p(4270),v=p(6054),B=p(5170);const j={},F={};class X{constructor(Ot,Tn){this._options=Ot,this._optionsByReference=Tn}_setByReference(Ot,Tn){(0,C.X)(!0,Ot,Tn);for(const ni in this._optionsByReference)Object.prototype.hasOwnProperty.call(Tn,ni)&&(Ot[ni]=Tn[ni])}_setPreparedValue(Ot,Tn,ni,Bi){const Zi=this.get(this._options,Ot,!1);if(!function(jt,Ot){return jt=(0,P.ao)(jt,!0),Ot=(0,P.ao)(Ot,!0),jt&&Ot&&(0,k.Kb)(jt)&&(0,k.Kb)(Ot)?Ot.is(jt):jt!=jt&&Ot!=Ot||(0===jt&&0===Ot?function(jt,Ot){return 1/jt==1/Ot}(jt,Ot):!(null!==jt&&"object"==typeof jt&&!v.A.isElementNode(jt))&&jt===Ot)}(Zi,Tn)){const ro=(0,P.u7)(Ot);!Bi&&this._changingCallback(Ot,Zi,Tn),F[Ot]=F[Ot]||(0,P.vL)(Ot),F[Ot](this._options,Tn,{functionsAsIs:!0,merge:(0,k.O9)(ni)?ni:!this._optionsByReference[Ot],unwrapObservables:ro.length>1&&!!this._optionsByReference[ro[0]]}),!Bi&&this._changedCallback(Ot,Tn,Zi)}}_prepareRelevantNames(Ot,Tn,ni,Bi){if((0,k.Qd)(ni))for(const Zi in ni)this._prepareRelevantNames(Ot,`${Tn}.${Zi}`,ni[Zi]);this._namePreparedCallbacks(Ot,Tn,ni,Bi)}get(){let Ot=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._options,Tn=arguments.length>1?arguments[1]:void 0,ni=arguments.length>2?arguments[2]:void 0;return j[Tn]=j[Tn]||(0,P.Hz)(Tn),j[Tn](Ot,{functionsAsIs:!0,unwrapObservables:ni})}set(Ot,Tn,ni,Bi){Ot=(0,B.a5)(Ot,Tn);for(const Zi in Ot)this._prepareRelevantNames(Ot,Zi,Ot[Zi],Bi);for(const Zi in Ot)this._setPreparedValue(Zi,Ot[Zi],ni,Bi)}onRelevantNamesPrepared(Ot){this._namePreparedCallbacks=Ot}onChanging(Ot){this._changingCallback=Ot}onChanged(Ot){this._changedCallback=Ot}dispose(){this._changingCallback=w.lQ,this._changedCallback=w.lQ}}class U{constructor(Ot,Tn,ni,Bi){this._default=Tn,this._deprecated=Bi,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new X(Ot,ni),this._optionManager.onRelevantNamesPrepared((Zi,ro,mo,ho)=>this._setRelevantNames(Zi,ro,mo,ho)),this._cachedOptions={},this._rules=[]}set _initial(Ot){this._initialOptions=Ot}get _initial(){if(!this._initialOptions){const Ot=this._getByRules(this.silent("defaultOptionsRules"));this._initialOptions=this._default,this._optionManager._setByReference(this._initialOptions,Ot)}return this._initialOptions}_initDeprecatedNames(){for(const Ot in this._deprecated)this._deprecatedNames.push(Ot)}_getByRules(Ot){return Ot=Array.isArray(Ot)?this._rules.concat(Ot):this._rules,(0,B.a6)(Ot)}_notifyDeprecated(Ot){const Tn=this._deprecated[Ot];Tn&&this._deprecatedCallback(Ot,Tn)}_setRelevantNames(Ot,Tn,ni,Bi){if(Tn){const Zi=this._normalizeName(Tn,Bi);Zi&&Zi!==Tn&&(this._setField(Ot,Zi,ni),this._clearField(Ot,Tn))}}_setField(Ot,Tn,ni){let Bi="",Zi=null;do{Bi=Bi?`.${Bi}`:"",Bi=(0,B.MO)(Tn)+Bi,Zi=(Tn=(0,B.E1)(Tn))?this._optionManager.get(Ot,Tn,!1):Ot}while(!Zi);Zi[Bi]=ni}_clearField(Ot,Tn){delete Ot[Tn];const ni=(0,B.E1)(Tn),Bi=ni?this._optionManager.get(Ot,ni,!1):Ot;Bi&&delete Bi[(0,B.MO)(Tn)]}_normalizeName(Ot,Tn){if(this._deprecatedNames.length&&Ot)for(let ni=0;ni<this._deprecatedNames.length;ni++)if(this._deprecatedNames[ni]===Ot){const Bi=this._deprecated[Ot];if(Bi)return!Tn&&this._notifyDeprecated(Ot),Bi.alias||Ot}return Ot}addRules(Ot){this._rules=Ot.concat(this._rules)}applyRules(Ot){const Tn=this._getByRules(Ot);this.silent(Tn)}dispose(){this._deprecatedCallback=w.lQ,this._startChangeCallback=w.lQ,this._endChangeCallback=w.lQ,this._optionManager.dispose()}onChanging(Ot){this._optionManager.onChanging(Ot)}onChanged(Ot){this._optionManager.onChanged(Ot)}onDeprecated(Ot){this._deprecatedCallback=Ot}onStartChange(Ot){this._startChangeCallback=Ot}onEndChange(Ot){this._endChangeCallback=Ot}isInitial(Ot){const Tn=this.silent(Ot),ni=this.initial(Ot);return(0,k.Tn)(Tn)&&(0,k.Tn)(ni)?Tn.toString()===ni.toString():(0,w.RL)(Tn,ni)}initial(Ot){return(0,B.Ov)(this._initial,Ot)}option(Ot,Tn){if(arguments.length<2&&"object"!==(0,k.NW)(Ot))return this._optionManager.get(void 0,this._normalizeName(Ot));this._startChangeCallback();try{this._optionManager.set(Ot,Tn)}finally{this._endChangeCallback()}}silent(Ot,Tn){if(arguments.length<2&&"object"!==(0,k.NW)(Ot))return this._optionManager.get(void 0,Ot,void 0,!0);this._optionManager.set(Ot,Tn,void 0,!0)}reset(Ot){if(Ot){const ni=(0,P.u7)(Ot).reduce((Zi,ro)=>Zi?Zi[ro]:this.initial(ro),null),Bi=(0,k.Gv)(ni)?(0,e.A)({},ni):ni;this._optionManager.set(Ot,Bi,!1)}}getAliasesByName(Ot){return Object.keys(this._deprecated).filter(Tn=>Ot===this._deprecated[Tn].alias)}isDeprecated(Ot){return Object.prototype.hasOwnProperty.call(this._deprecated,Ot)}cache(Ot,Tn){if(arguments.length<2)return this._cachedOptions[Ot];this._cachedOptions[Ot]=(0,C.X)(this._cachedOptions[Ot],Tn)}}var Z=p(3538),A=p(9510),M=p(8684),H=p(6101),J=p(8879),R=p(6021);class L{constructor(){this._postponedOperations={}}add(Ot,Tn,ni){if(Ot in this._postponedOperations)ni&&this._postponedOperations[Ot].promises.push(ni);else{const Bi=new R.cY;this._postponedOperations[Ot]={fn:Tn,completePromise:Bi,promises:ni?[ni]:[]}}return this._postponedOperations[Ot].completePromise.promise()}callPostponedOperations(){for(const Ot in this._postponedOperations){const Tn=this._postponedOperations[Ot];(0,k.O9)(Tn)&&(Tn.promises&&Tn.promises.length?(0,R.z7)(...Tn.promises).done(Tn.fn).then(Tn.completePromise.resolve):Tn.fn().done(Tn.completePromise.resolve))}this._postponedOperations={}}}const G=jt=>jt.charAt(2).toLowerCase()+jt.substr(3),Q=jt=>0===jt.indexOf("_",0),z=Z.A.inherit({_setDeprecatedOptions(){this._deprecatedOptions={}},_getDeprecatedOptions(){return this._deprecatedOptions},_getDefaultOptions:()=>({onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}),_defaultOptionsRules:()=>[],_setOptionsByDevice(jt){this._options.applyRules(jt)},_convertRulesToOptions:jt=>(0,B.a6)(jt),_isInitialOptionValue(jt){return this._options.isInitial(jt)},_setOptionsByReference(){this._optionsByReference={}},_getOptionsByReference(){return this._optionsByReference},ctor(){let jt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{_optionChangedCallbacks:Ot,_disposingCallbacks:Tn}=jt;this.NAME=(0,J.UU)(this.constructor),this._eventsStrategy=H.h.create(this,jt.eventsStrategy),this._updateLockCount=0,this._optionChangedCallbacks=Ot||(0,M.A)(),this._disposingCallbacks=Tn||(0,M.A)(),this.postponedOperations=new L,this._createOptions(jt)},_createOptions(jt){this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=new U(this._getDefaultOptions(),this._getDefaultOptions(),this._getOptionsByReference(),this._getDeprecatedOptions()),this._options.onChanging((Ot,Tn,ni)=>this._initialized&&this._optionChanging(Ot,Tn,ni)),this._options.onDeprecated((Ot,Tn)=>this._logDeprecatedOptionWarning(Ot,Tn)),this._options.onChanged((Ot,Tn,ni)=>this._notifyOptionChanged(Ot,Tn,ni)),this._options.onStartChange(()=>this.beginUpdate()),this._options.onEndChange(()=>this.endUpdate()),this._options.addRules(this._defaultOptionsRules()),jt&&jt.onInitializing&&jt.onInitializing.apply(this,[jt]),this._setOptionsByDevice(jt.defaultOptionsRules),this._initOptions(jt)}finally{this.endUpdate()}},_initOptions(jt){this.option(jt)},_init(){this._createOptionChangedAction(),this.on("disposing",jt=>{this._disposingCallbacks.fireWith(this,[jt])})},_logDeprecatedOptionWarning(jt,Ot){m.A.log("W0001",this.NAME,jt,Ot.since,Ot.message||`Use the '${Ot.alias}' option instead`)},_logDeprecatedComponentWarning(jt,Ot){m.A.log("W0000",this.NAME,jt,`Use the '${Ot}' widget instead`)},_createOptionChangedAction(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged(jt){switch(jt.name){case"onDisposing":case"onInitialized":case"defaultOptionsRules":break;case"onOptionChanged":this._createOptionChangedAction()}},_dispose(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._eventsStrategy.dispose(),this._options.dispose(),this._disposed=!0},_lockUpdate(){this._updateLockCount++},_unlockUpdate(){this._updateLockCount=Math.max(this._updateLockCount-1,0)},_isUpdateAllowed(){return 0===this._updateLockCount},_isInitializingRequired(){return!this._initializing&&!this._initialized},isInitialized(){return this._initialized},_commitUpdate(){this.postponedOperations.callPostponedOperations(),this._isInitializingRequired()&&this._initializeComponent()},_initializeComponent(){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._lockUpdate(),this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._unlockUpdate(),this._initialized=!0}},instance(){return this},beginUpdate:function(){this._lockUpdate()},endUpdate:function(){this._unlockUpdate(),this._isUpdateAllowed()&&this._commitUpdate()},_optionChanging:w.lQ,_notifyOptionChanged(jt,Ot,Tn){if(this._initialized){const ni=[jt].concat(this._options.getAliasesByName(jt));for(let Bi=0;Bi<ni.length;Bi++){const Zi=ni[Bi],ro={name:(0,P.u7)(Zi)[0],fullName:Zi,value:Ot,previousValue:Tn};Q(Zi)||(this._optionChangedCallbacks.fireWith(this,[(0,C.X)(this._defaultActionArgs(),ro)]),this._optionChangedAction((0,C.X)({},ro))),!this._disposed&&this._cancelOptionChange!==Zi&&this._optionChanged(ro)}}},initialOption(jt){return this._options.initial(jt)},_defaultActionConfig(){return{context:this,component:this}},_defaultActionArgs(){return{component:this}},_createAction(jt,Ot){let Tn;return ni=>((0,k.O9)(ni)||(ni={}),(0,k.Qd)(ni)||(ni={actionValue:ni}),Tn=Tn||new A.A(jt,(0,C.X)({},Ot,this._defaultActionConfig())),Tn.execute.call(Tn,(0,C.X)(ni,this._defaultActionArgs())))},_createActionByOption(jt,Ot){var Tn=this;let ni,Bi,Zi;Ot=(0,C.X)({},Ot);const ro=function(){if(!Bi){if(Ot=Ot||{},"string"!=typeof jt)throw m.A.Error("E0008");0===jt.indexOf("on")&&(Bi=G(jt)),Zi=Tn.option(jt)}if(ni||Zi||Ot.beforeExecute||Ot.afterExecute||Tn._eventsStrategy.hasEvent(Bi)){if(!ni){const jn=Ot.beforeExecute;Ot.beforeExecute=function(){for(var ai=arguments.length,$i=new Array(ai),zi=0;zi<ai;zi++)$i[zi]=arguments[zi];jn&&jn.apply(Tn,$i),Tn._eventsStrategy.fireEvent(Bi,$i[0].args)},ni=Tn._createAction(Zi,Ot)}for(var ho=arguments.length,St=new Array(ho),Qt=0;Qt<ho;Qt++)St[Qt]=arguments[Qt];return(0,d.A)().wrapActionsBeforeExecute?((Tn.option("beforeActionExecute")||w.lQ)(Tn,ni,Ot)||ni).apply(Tn,St):ni.apply(Tn,St)}};return(0,d.A)().wrapActionsBeforeExecute?ro:(this.option("onActionCreated")||w.lQ)(this,ro,Ot)||ro},on(jt,Ot){return this._eventsStrategy.on(jt,Ot),this},off(jt,Ot){return this._eventsStrategy.off(jt,Ot),this},hasActionSubscription:function(jt){return!!this._options.silent(jt)||this._eventsStrategy.hasEvent(G(jt))},isOptionDeprecated(jt){return this._options.isDeprecated(jt)},_setOptionWithoutOptionChange(jt,Ot){this._cancelOptionChange=jt,this.option(jt,Ot),this._cancelOptionChange=!1},_getOptionValue(jt,Ot){const Tn=this.option(jt);return(0,k.Tn)(Tn)?Tn.bind(Ot)():Tn},option(){return this._options.option(...arguments)},resetOption(jt){this.beginUpdate(),this._options.reset(jt),this.endUpdate()}});var K=p(5645),ee=p(8412),re=p(4162);const De=new K.l(jt=>{let{model:Ot,parent:Tn}=jt;const ni=Ot.widget;if(!ni)return(0,S.A)();const Bi=(0,S.A)("<div>"),Zi=Ot.options||{};return Tn?Tn._createComponent(Bi,ni,Zi):Bi[ni](Zi),Bi});class Pe{constructor(Ot,Tn){this._tempTemplates=[],this._defaultTemplates={},this._anonymousTemplateName=Tn||"template",this._createElement=Ot||re.SN,this._createTemplateIfNeeded=this._createTemplateIfNeeded.bind(this)}static createDefaultOptions(){return{integrationOptions:{watchMethod:function(Ot,Tn){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipImmediate||Tn(Ot()),w.lQ},templates:{"dx-polymorph-widget":De},useDeferUpdateForTemplates:!0}}}get anonymousTemplateName(){return this._anonymousTemplateName}addDefaultTemplates(Ot){this._defaultTemplates=(0,C.X)({},this._defaultTemplates,Ot)}dispose(){this._tempTemplates.forEach(Ot=>{Ot.template.dispose&&Ot.template.dispose()}),this._tempTemplates=[]}extractTemplates(Ot){return{templates:this._extractTemplates(Ot),anonymousTemplateMeta:this._extractAnonymousTemplate(Ot)}}_extractTemplates(Ot){const Tn=(0,re.zD)(Ot,"dxTemplate"),ni=(0,re.pK)(Tn);return Tn.forEach(Bi=>{let{element:Zi,options:{name:ro}}=Bi;Zi===ni[ro]?(0,S.A)(Zi).addClass("dx-template-wrapper").detach():(0,S.A)(Zi).remove()}),Object.keys(ni).map(Bi=>({name:Bi,template:this._createTemplate(ni[Bi])}))}_extractAnonymousTemplate(Ot){const Tn=Ot.contents().detach();return Tn.filter((Bi,Zi)=>{const ro=3===Zi.nodeType,mo=(0,S.A)(Zi).text().trim().length<1;return!(ro&&mo)}).length>0?{template:this._createTemplate(Tn),name:this._anonymousTemplateName}:{}}_createTemplateIfNeeded(Ot){const Tn=this._tempTemplates.filter(Bi=>Bi.source===(0,re.AY)(Ot))[0];if(Tn)return Tn.template;const ni=this._createTemplate(Ot);return this._tempTemplates.push({template:ni,source:(0,re.AY)(Ot)}),ni}_createTemplate(Ot){return this._createElement((0,re.I3)(Ot))}getTemplate(Ot,Tn,ni,Bi){let{isAsyncTemplate:Zi,skipTemplates:ro}=ni;return(0,k.Tn)(Ot)?new K.l(mo=>{const ho=Ot.apply(Bi,(0,re.jJ)(mo));if(!(0,k.O9)(ho))return new ee.A;let St=!1;const Qt=(0,re.Xl)(ho,ai=>ai.nodeType||(0,k.Kb)(ai)&&!(0,S.A)(ai).is("script")?new K.l(()=>ai):(St=!0,this._createTemplate(ai)),Tn,Zi,ro,this._defaultTemplates),jn=Qt.render(mo);return St&&Qt.dispose&&Qt.dispose(),jn}):(0,re.Xl)(Ot,this._createTemplateIfNeeded,Tn,Zi,ro,this._defaultTemplates)}}var Ie=p(7713),W=p(5397),ie=p(2660),he=p(9522),Ce=p(6110),ye=p(1294),Me=p(9144),_e=p(9274);const de=[];function pe(jt){const{major:Ot,minor:Tn,patch:ni}=jt;return[Ot,Tn,ni].join(".")}function Ee(jt){const[Ot,Tn,ni]=jt.split(".").map(Number);return{major:Ot,minor:Tn,patch:ni}}function We(jt){return new Uint8Array(atob(jt).split("").map(Ot=>Ot.charCodeAt(0)))}function Nt(jt,Ot){return(jt<<Ot|jt>>>32-Ot)>>>0}function et(jt,Ot){const Tn=new Uint8Array(jt.length+Ot.length);return Tn.set(jt,0),Tn.set(Ot,jt.length),Tn}const ue={e:65537,n:new Uint8Array([200,219,153,203,140,7,228,253,193,243,62,137,139,60,68,242,48,142,113,88,185,235,253,105,80,74,32,170,96,74,111,250,7,205,154,3,146,115,153,53,45,132,123,56,61,208,184,201,63,24,109,223,0,179,169,102,139,224,73,233,45,173,138,66,98,88,69,76,177,111,113,218,192,33,101,152,25,134,34,173,32,82,230,44,247,200,253,170,192,246,30,12,96,205,100,249,181,93,0,231])};function je(jt){const Ot=(8*ue.n.length+6)/8,Tn=et(function Ue(jt){var Ot;return new Uint8Array((null===(Ot=jt.match(/.{1,2}/g))||void 0===Ot?void 0:Ot.map(Tn=>parseInt(Tn,16)))??[])}("3021300906052b0e03021a05000414"),jt);if(Tn.length+10>Ot)throw Error("Key is too short for SHA1 signing algorithm");const ni=new Uint8Array(Ot-Tn.length);return ni.fill(255,0,ni.length-1),ni[0]=0,ni[1]=1,ni[ni.length-1]=0,et(ni,Tn)}function Qe(jt){const Ot=function lt(jt){const Ot=new Uint8Array(jt.length+1);Ot.set(function Ve(jt){const Ot=new Uint8Array(jt.length);for(let Tn=0;Tn<jt.length;Tn+=1)Ot[Tn]=255&jt.charCodeAt(Tn);return Ot}(jt)),Ot[Ot.length-1]=128;const Tn=function at(jt){const Ot=new Uint32Array(1+(jt.length-1>>2));for(let Tn=0;Tn<jt.length;Tn+=1)Ot[Tn>>2]|=jt[Tn]<<8*(3-Tn%4);return Ot}(new Uint8Array(Ot)),ni=new Uint32Array(16*Math.ceil((Tn.length+2)/16));return ni.set(Tn,0),ni[ni.length-1]=8*(Ot.length-1),ni}(jt),Tn=new Uint32Array([1732584193,4023233417,2562383102,271733878,3285377520]);for(let ni=0;ni<Ot.length;ni+=16){const Bi=new Uint32Array(80);for(let Qt=0;Qt<16;Qt+=1)Bi[Qt]=Ot[ni+Qt];for(let Qt=16;Qt<80;Qt+=1){const jn=Bi[Qt-3]^Bi[Qt-8]^Bi[Qt-14]^Bi[Qt-16];Bi[Qt]=jn<<1|jn>>>31}let Zi=Tn[0],ro=Tn[1],mo=Tn[2],ho=Tn[3],St=Tn[4];for(let Qt=0;Qt<80;Qt+=1){const[jn,ai]=Qt<20?[ro&mo|~ro&ho,1518500249]:Qt<40?[ro^mo^ho,1859775393]:Qt<60?[ro&mo|ro&ho|mo&ho,2400959708]:[ro^mo^ho,3395469782],$i=Nt(Zi,5)+jn+St+ai+Bi[Qt];St=ho,ho=mo,mo=Nt(ro,30),ro=Zi,Zi=$i}Tn[0]+=Zi,Tn[1]+=ro,Tn[2]+=mo,Tn[3]+=ho,Tn[4]+=St}return function tt(jt){const Ot=new Uint8Array(4*jt.length);for(let Tn=0;Tn<Ot.length;Tn+=1)Ot[Tn]=jt[Tn>>2]>>>8*(3-Tn%4);return Ot}(Tn)}const yt=()=>typeof HTMLElement<"u",Gt=yt()?HTMLElement:class{},Mn={opacity:"1",visibility:"visible","clip-path":"none",filter:"none"},On=(0,e.A)({},Mn,{width:"100%",height:"auto","line-height":"normal",display:"block","z-index":"1500",position:"static",transform:"translate(0px, 0px)","background-color":"#FF7200",border:"none",margin:"auto","box-sizing":"border-box","text-align":"center"}),ji=(0,e.A)({},On,{display:"flex","align-items":"center","flex-direction":"row",position:"relative",top:"0px",left:"0px",padding:"0.5rem"}),Mi={width:"1rem",cursor:"pointer",height:"1rem"},Vo=(0,e.A)({},Mn,{display:"inline",position:"static",padding:"0px",margin:"0px",color:"white","font-family":"'Segoe UI','Open Sans Condensed',-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,Cantarell,Ubuntu,roboto,noto,arial,sans-serif","font-size":"0.875rem","font-wight":"600"});function Co(jt,Ot){const Tn=Ot?(0,e.A)({},jt,Ot):jt;return Object.keys(Tn).reduce((ni,Bi)=>`${ni}${[Bi,`${Tn[Bi]} !important;`].join(": ")}`,"")}let ti=(()=>{class jt extends Gt{constructor(){var Tn,ni,Bi,Zi,ro;super(),this._observer=null,this._inReassign=!1,this._hidden=!1,this._spanStyles=Co(Vo,null===(Tn=jt.customStyles)||void 0===Tn?void 0:Tn.textStyles),this._linkStyles=Co(Vo,null===(ni=jt.customStyles)||void 0===ni?void 0:ni.linkStyles),this._containerStyles=Co(ji,null===(Bi=jt.customStyles)||void 0===Bi?void 0:Bi.containerStyles),this._contentStyles=Co(On,null===(Zi=jt.customStyles)||void 0===Zi?void 0:Zi.contentStyles),this._buttonStyles=Co(Mi,null===(ro=jt.customStyles)||void 0===ro?void 0:ro.contentStyles)}_createSpan(Tn){const ni=document.createElement("span");return ni.innerText=Tn,ni.style.cssText=this._spanStyles,ni}_createLink(Tn,ni){const Bi=document.createElement("a");return Bi.innerText=Tn,Bi.style.cssText=this._linkStyles,Bi.href=ni,Bi.target="_blank",Bi}_createButton(){const Tn=document.createElement("div");Tn.style.cssText=this._buttonStyles;const ni=document.createElementNS("http://www.w3.org/2000/svg","polygon"),Bi=document.createElementNS("http://www.w3.org/2000/svg","svg");return ni.setAttribute("points","13.4 12.7 8.7 8 13.4 3.4 12.6 2.6 8 7.3 3.4 2.6 2.6 3.4 7.3 8 2.6 12.6 3.4 13.4 8 8.7 12.7 13.4 13.4 12.7"),ni.style.cssText=Co({fill:"#fff",opacity:".5","stroke-width":"0px"}),Bi.setAttribute("id","Layer_1"),Bi.setAttribute("data-name","Layer 1"),Bi.setAttribute("version","1.1"),Bi.setAttribute("viewBox","0 0 16 16"),Bi.style.cssText=Co({"vertical-align":"baseline"}),Bi.appendChild(ni),Tn.appendChild(Bi),Tn.onclick=()=>{this._hidden=!0,this.style.cssText=Co({display:"none"})},Tn}_createContentContainer(){const Tn=document.createElement("div");return Tn.style.cssText=this._contentStyles,Tn.append(this._createSpan("For evaluation purposes only. Redistribution not authorized. Please "),this._createLink("purchase a license",this.getAttribute("buy-now")),this._createSpan(` to continue use of DevExpress product libraries (v${this.getAttribute("version")}).`)),Tn}_reassignComponent(){this.innerHTML="",this.style.cssText=this._containerStyles,this.append(this._createContentContainer(),this._createButton())}connectedCallback(){this._reassignComponent(),this._observer||(this._observer=new MutationObserver(()=>{var Tn;this._hidden?null===(Tn=this._observer)||void 0===Tn||Tn.disconnect():this._inReassign?this._inReassign=!1:(this._inReassign=!0,this._reassignComponent())}),this._observer.observe(this,{childList:!0,attributes:!0,subtree:!0}))}disconnectedCallback(){setTimeout(()=>{document.getElementsByTagName("dx-license").length||document.body.prepend(this)},100)}}return jt.customStyles=void 0,jt})();class Qn extends Gt{connectedCallback(){if(this.style.cssText=Co({display:"none"}),!document.getElementsByTagName("dx-license").length){const Tn=document.createElement("dx-license");Tn.setAttribute("version",this.getAttribute("version")),Tn.setAttribute("buy-now",this.getAttribute("buy-now")),Tn.setAttribute("data-permanent","true"),document.body.prepend(Tn)}}}var Jn,jt;(jt=Jn||(Jn={})).corrupted="corrupted",jt.verified="verified",jt.internal="internal";const Ii=["customerId","maxVersionAllowed","format","internalUsageId"],hs={kind:Jn.corrupted,error:"general"},Ps={kind:Jn.corrupted,error:"verification"},ls={kind:Jn.corrupted,error:"decoding"},Hs={kind:Jn.corrupted,error:"deserialization"},ss={kind:Jn.corrupted,error:"payload"},qo={kind:Jn.corrupted,error:"version"};let cs=!1;function li(jt){return isNaN(jt)||jt<3}function si(jt){let{licenseKey:Ot,version:Tn}=jt,ni=!1;try{ni=li(Tn.patch);const{major:Bi,minor:Zi}=ni?function Oe(jt){let{major:Ot,minor:Tn,patch:ni}=jt;return 1===Tn?{major:Ot-1,minor:2,patch:ni}:{major:Ot,minor:Tn-1,patch:ni}}(Tn):Tn;if(!Ot)return{preview:ni,error:"W0019"};const ro=function Fn(jt){if(void 0===jt)return hs;const Ot=jt.split(".");if(2!==Ot.length||0===Ot[0].length||0===Ot[1].length)return hs;if(!function bs(jt){let{text:Ot,signature:Tn}=jt;return function Ne(jt){try{const Ot=BigInt(0),Tn=BigInt(1),ni=BigInt(8),Bi=(jn,ai,$i)=>{let zi=Tn,_o=jn,$o=ai;for(;$o;)$o&Tn&&(zi=zi*_o%$i),_o=_o*_o%$i,$o>>=Tn;return zi},Zi=jn=>jn.reduce((ai,$i)=>(ai<<ni)+BigInt($i),Ot),ro=Zi(jt.actual);return Bi(Zi(jt.signature),BigInt(jt.key.e),Zi(jt.key.n))===ro}catch{return!0}}({key:ue,signature:We(Tn),actual:je(Qe(Ot))})}({text:Ot[0],signature:Ot[1]}))return Ps;let Tn="";try{Tn=atob(Ot[0])}catch{return ls}let ni={};try{ni=JSON.parse(Tn)}catch{return Hs}const{customerId:Bi,maxVersionAllowed:Zi,format:ro,internalUsageId:mo}=ni,ho=(0,Me.A)(ni,Ii);return void 0!==mo?{kind:Jn.internal,internalUsageId:mo}:void 0===Bi||void 0===Zi||void 0===ro?ss:1!==ro?qo:{kind:Jn.verified,payload:(0,e.A)({customerId:Bi,maxVersionAllowed:Zi},ho)}}(Ot);return ro.kind===Jn.corrupted?{preview:ni,error:"W0021"}:ro.kind===Jn.internal?{preview:ni,internal:!0,error:"ivFX-RTa20yT88msMzvP6g"===ro.internalUsageId?void 0:"W0020"}:Bi&&Zi?10*Bi+Zi>ro.payload.maxVersionAllowed?{preview:ni,error:"W0020"}:{preview:ni,error:void 0}:{preview:ni,error:"W0021"}}catch{return{preview:ni,error:"W0021"}}}function Yi(){return cs}const ri_validateLicense=function Ni(jt){if(cs)return;cs=!0;const Tn=Ee(arguments.length>1&&void 0!==arguments[1]?arguments[1]:_e.o),ni=function fe(jt){const Ot=de.filter(Tn=>!function q(jt,Ot){return jt.major===Ot.major&&jt.minor===Ot.minor&&jt.patch===Ot.patch}(Ee(Tn.version),jt));return!Ot.length||(m.A.log("W0023",function Be(jt){return jt.map(Ot=>`${Ot.packageName}: ${Ot.version}`).join("\n")}([{packageName:"devextreme",version:pe(jt)},...Ot])),!1)}(Tn),{internal:Bi,error:Zi}=si({licenseKey:jt,version:Tn});if(!ni&&Bi)return;Zi&&!Bi&&function Jt(jt,Ot,Tn){yt()&&function Rt(jt,Ot,Tn){!function ei(jt){customElements.get("dx-license-trigger")||(ti.customStyles=jt,customElements.define("dx-license-trigger",Qn),customElements.define("dx-license",ti))}(Tn);const ni=document.createElement("dx-license-trigger");ni.setAttribute("buy-now",jt),ni.setAttribute("version",Ot),document.body.appendChild(ni)}(jt,Ot,Tn)}((0,d.A)().buyNowLink??"https://go.devexpress.com/Licensing_Installer_Watermark_DevExtremeJQuery.aspx",_e.o);const ro=li(Tn.patch);Zi?m.A.log(ro?"W0022":Zi):ro&&!Bi&&m.A.log("W0022")},{abstract:It}=z,Pt=z.inherit({_getDefaultOptions(){return(0,C.X)(this.callBase(),{width:void 0,height:void 0,rtlEnabled:(0,d.A)().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}},this._useTemplates()?Pe.createDefaultOptions():{})},ctor(jt,Ot){this._customClass=null,this._createElement(jt),(0,J.UK)(this._$element,this,this._dispose),this.callBase(Ot);const Tn=Yi();ri_validateLicense((0,d.A)().licenseKey),!Tn&&Yi()&&(0,d.A)({licenseKey:""})},_createElement(jt){this._$element=(0,S.A)(jt)},_getSynchronizableOptionsForCreateComponent:()=>["rtlEnabled","disabled","templatesRenderAsynchronously"],_checkFunctionValueDeprecation:function(jt){this.option("_ignoreFunctionValueDeprecation")||jt.forEach(Ot=>{(0,k.Tn)(this.option(Ot))&&m.A.log("W0017",Ot)})},_visibilityChanged:It,_dimensionChanged:It,_init(){this.callBase(),this._checkFunctionValueDeprecation(["width","height","maxHeight","maxWidth","minHeight","minWidth","popupHeight","popupWidth"]),this._attachWindowResizeCallback(),this._initTemplateManager()},_setOptionsByDevice(jt){this.callBase([].concat(this.constructor._classCustomRules||[],jt||[]))},_isInitialOptionValue(jt){return!(this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),jt))&&this.callBase(jt)},_attachWindowResizeCallback(){if(this._isDimensionChangeSupported()){const jt=this._windowResizeCallBack=this._dimensionChanged.bind(this);T.A.add(jt)}},_isDimensionChangeSupported(){return this._dimensionChanged!==It},_renderComponent(){(0,Ie.m)(this.$element()),this._initMarkup(),(0,Ce.Vd)()&&this._render()},_initMarkup(){const{rtlEnabled:jt}=this.option()||{};this._renderElementAttributes(),this._toggleRTLDirection(jt),this._renderVisibilityChange(),this._renderDimensions()},_render(){this._attachVisibilityChangeHandlers()},_renderElementAttributes(){const{elementAttr:jt}=this.option()||{},Ot=(0,C.X)({},jt),Tn=Ot.class;delete Ot.class,this.$element().attr(Ot).removeClass(this._customClass).addClass(Tn),this._customClass=Tn},_renderVisibilityChange(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass("dx-visibility-change-handler")},_renderDimensions(){const jt=this.$element(),Ot=jt.get(0),Tn=this._getOptionValue("width",Ot),ni=this._getOptionValue("height",Ot);this._isCssUpdateRequired(Ot,ni,Tn)&&jt.css({width:null===Tn?"":Tn,height:null===ni?"":ni})},_isCssUpdateRequired:(jt,Ot,Tn)=>!!((0,k.O9)(Tn)||(0,k.O9)(Ot)||jt.style.width||jt.style.height),_attachDimensionChangeHandlers(){const jt=this.$element(),Ot=`${this.NAME}VisibilityChange`;ye.XR.off(jt,{namespace:Ot}),ye.XR.on(jt,()=>this._dimensionChanged(),{namespace:Ot})},_attachVisibilityChangeHandlers(){if(this._isVisibilityChangeSupported()){const jt=this.$element(),Ot=`${this.NAME}VisibilityChange`;this._isHidden=!this._isVisible(),ye.XD.off(jt,{namespace:Ot}),ye.XD.on(jt,()=>this._checkVisibilityChanged("shown"),()=>this._checkVisibilityChanged("hiding"),{namespace:Ot})}},_isVisible(){return this.$element().is(":visible")},_checkVisibilityChanged(jt){this._isVisible()&&("hiding"!==jt||this._isHidden?"shown"===jt&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0)):(this._visibilityChanged(!1),this._isHidden=!0))},_isVisibilityChangeSupported(){return this._visibilityChanged!==It&&(0,Ce.Vd)()},_clean:w.lQ,_modelByElement(){const{modelByElement:jt}=this.option(),Ot=this.$element();return jt?jt(Ot):void 0},_invalidate(){if(this._isUpdateAllowed())throw m.A.Error("E0007");this._requireRefresh=!0},_refresh(){this._clean(),this._renderComponent()},_dispose(){this._templateManager&&this._templateManager.dispose(),this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback(){this._isDimensionChangeSupported()&&T.A.remove(this._windowResizeCallBack)},_toggleRTLDirection(jt){this.$element().toggleClass("dx-rtl",jt)},_createComponent(jt,Ot){let Tn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const ni=(0,w.VM)(this._getSynchronizableOptionsForCreateComponent(),ho=>!(ho in Tn)),{integrationOptions:Bi}=this.option();let{nestedComponentOptions:Zi}=this.option();Zi=Zi||w.lQ;const ro=(0,C.X)({integrationOptions:Bi},Zi(this));let mo;if(ni.forEach(ho=>ro[ho]=this.option(ho)),this._extendConfig(Tn,ro),(0,k.Kg)(Ot)?mo=(0,S.A)(jt)[Ot](Tn)[Ot]("instance"):jt&&(mo=Ot.getInstance(jt),mo?mo.option(Tn):mo=new Ot(jt,Tn)),mo){const ho=St=>{let{name:Qt,value:jn}=St;ni.includes(Qt)&&mo.option(Qt,jn)};this.on("optionChanged",ho),mo.on("disposing",()=>this.off("optionChanged",ho))}return mo},_extendConfig(jt,Ot){(0,ie.__)(Ot,(Tn,ni)=>{!Object.prototype.hasOwnProperty.call(jt,Tn)&&(jt[Tn]=ni)})},_defaultActionConfig(){const jt=this.$element(),Ot=this._modelByElement(jt);return(0,C.X)(this.callBase(),{context:Ot})},_defaultActionArgs(){const jt=this.$element(),Ot=this._modelByElement(jt),Tn=this.element();return(0,C.X)(this.callBase(),{element:Tn,model:Ot})},_optionChanged(jt){switch(jt.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(jt)}},_removeAttributes(jt){const Ot=jt.attributes;for(let Tn=Ot.length-1;Tn>=0;Tn--){const ni=Ot[Tn];if(ni){const{name:Bi}=ni;(!Bi.indexOf("aria-")||-1!==Bi.indexOf("dx-")||"role"===Bi||"style"===Bi||"tabindex"===Bi)&&jt.removeAttribute(Bi)}}},_removeClasses(jt){jt.className=jt.className.split(" ").filter(Ot=>0!==Ot.lastIndexOf("dx-",0)).join(" ")},_updateDOMComponent(jt){jt?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate(){const jt=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(jt)},$element(){return this._$element},element(){const jt=this.$element();return(0,he.cc)(jt)},dispose(){const jt=this.$element().get(0);(0,W.Gf)(jt,!0),jt.textContent="",this._removeAttributes(jt),this._removeClasses(jt)},resetOption(jt){if(this.callBase(jt),"width"===jt||"height"===jt){const Ot=this.initialOption(jt);!(0,k.O9)(Ot)&&this.$element().css(jt,"")}},_getAnonymousTemplateName(){},_initTemplateManager(){if(this._templateManager||!this._useTemplates())return;const{integrationOptions:jt={}}=this.option(),{createTemplate:Ot}=jt;this._templateManager=new Pe(Ot,this._getAnonymousTemplateName()),this._initTemplates()},_initTemplates(){const{templates:jt,anonymousTemplateMeta:Ot}=this._templateManager.extractTemplates(this.$element()),Tn=this.option(`integrationOptions.templates.${Ot.name}`);jt.forEach(ni=>{let{name:Bi,template:Zi}=ni;this._options.silent(`integrationOptions.templates.${Bi}`,Zi)}),Ot.name&&!Tn&&(this._options.silent(`integrationOptions.templates.${Ot.name}`,Ot.template),this._options.silent("_hasAnonymousTemplateContent",!0))},_getTemplateByOption(jt){return this._getTemplate(this.option(jt))},_getTemplate(jt){const Ot=this.option("integrationOptions.templates"),Tn=this.option("templatesRenderAsynchronously"),ni=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(jt,Ot,{isAsyncTemplate:Tn,skipTemplates:ni},this)},_saveTemplate(jt,Ot){this._setOptionWithoutOptionChange("integrationOptions.templates."+jt,this._templateManager._createTemplate(Ot))},_useTemplates:()=>!0});Pt.getInstance=function(jt){return(0,J.pV)((0,S.A)(jt),this)},Pt.defaultOptions=function(jt){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(jt)};const dn=Pt},8573:(En,it,p)=>{"use strict";p.d(it,{U:()=>C});var S=p(5704),d=p(4072),m=p(9961),T=p(9293);const C="dxmousewheel",v={setup:function(x){const b=(0,S.A)(x);d.A.on(b,(0,T.b4)("wheel","dxWheel"),v._wheelHandler.bind(v))},teardown:function(x){d.A.off(x,".dxWheel")},_wheelHandler:function(x){const{deltaMode:b,deltaY:B,deltaX:j,deltaZ:F}=x.originalEvent;(0,T.rC)({type:C,originalEvent:x,delta:this._normalizeDelta(B,b),deltaX:j,deltaY:B,deltaZ:F,deltaMode:b,pointerType:"mouse"}),x.stopPropagation()},_normalizeDelta(x){return 0===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)?-x:-30*x}};(0,m.A)(C,v)},8621:(En,it,p)=>{"use strict";p.d(it,{Tg:()=>B});var S=p(7270),d=p(5206),m=p(5717),T=p(9406),C=p(8932),e=p(7462),k=p(2246),w=p(6472),P=p(8889),v=p(4418),x=p(6379),b=p(1479);function B(H){if(H instanceof T.c)return H;if(null!=H){if((0,C.l)(H))return function j(H){return new T.c(J=>{const R=H[b.s]();if((0,v.T)(R.subscribe))return R.subscribe(J);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(H);if((0,d.X)(H))return function F(H){return new T.c(J=>{for(let R=0;R<H.length&&!J.closed;R++)J.next(H[R]);J.complete()})}(H);if((0,m.y)(H))return function X(H){return new T.c(J=>{H.then(R=>{J.closed||(J.next(R),J.complete())},R=>J.error(R)).then(null,x.m)})}(H);if((0,e.T)(H))return Z(H);if((0,w.x)(H))return function U(H){return new T.c(J=>{for(const R of H)if(J.next(R),J.closed)return;J.complete()})}(H);if((0,P.U)(H))return function A(H){return Z((0,P.C)(H))}(H)}throw(0,k.L)(H)}function Z(H){return new T.c(J=>{(function M(H,J){var R,L,G,Q;return(0,S.sH)(this,void 0,void 0,function*(){try{for(R=(0,S.xN)(H);!(L=yield R.next()).done;)if(J.next(L.value),J.closed)return}catch(z){G={error:z}}finally{try{L&&!L.done&&(Q=R.return)&&(yield Q.call(R))}finally{if(G)throw G.error}}J.complete()})})(H,J).catch(R=>J.error(R))})}},8628:(En,it,p)=>{"use strict";p.d(it,{A:()=>yt}),p(1074);var m=p(1973),T=p(5973),C=p(9522),e=p(2925),k=p(5704),w=p(2013),P=p(8412),v=p(36),x=p(4859),b=p(3090),B=p(6946),j=p(2660),F=p(4757),X=p(1363),U=p(1830),Z=p(6548),A=p(6110),M=p(9229),H=p(8360),J=p(9012),R=p(3949),L=p(1220),G=p(9212),Q=p(3183),z=p(2123),K=p(6054),ee=p(3012),re=p(4072),be=p(8664),ce=p(9293);const De=class Se{constructor(ft){this.init(ft)}init(ft){let{dragEnabled:nn,handle:rn,draggableElement:Mn,positionController:On}=ft;this._positionController=On,this._draggableElement=Mn,this._handle=rn,this._dragEnabled=nn,this.unsubscribe(),nn&&this.subscribe()}moveDown(ft){this._moveTo(5,0,ft)}moveUp(ft){this._moveTo(-5,0,ft)}moveLeft(ft){this._moveTo(0,-5,ft)}moveRight(ft){this._moveTo(0,5,ft)}subscribe(){const ft=this._getEventNames();re.A.on(this._handle,ft.startEventName,nn=>{this._dragStartHandler(nn)}),re.A.on(this._handle,ft.updateEventName,nn=>{this._dragUpdateHandler(nn)}),re.A.on(this._handle,ft.endEventName,nn=>{this._dragEndHandler(nn)})}unsubscribe(){const ft=this._getEventNames();re.A.off(this._handle,ft.startEventName),re.A.off(this._handle,ft.updateEventName),re.A.off(this._handle,ft.endEventName)}_getEventNames(){return{startEventName:(0,ce.b4)(be.ni,"overlayDrag"),updateEventName:(0,ce.b4)(be.Cy,"overlayDrag"),endEventName:(0,ce.b4)(be._N,"overlayDrag")}}_dragStartHandler(ft){const nn=this._getAllowedOffsets();this._prevOffset={x:0,y:0},ft.targetElements=[],ft.maxTopOffset=nn.top,ft.maxBottomOffset=nn.bottom,ft.maxLeftOffset=nn.left,ft.maxRightOffset=nn.right}_dragUpdateHandler(ft){this._moveByOffset({top:ft.offset.y-this._prevOffset.y,left:ft.offset.x-this._prevOffset.x}),this._prevOffset=ft.offset}_dragEndHandler(ft){this._positionController.dragHandled(),this._positionController.detectVisualPositionChange(ft)}_moveTo(ft,nn,rn){if(!this._dragEnabled)return;rn.preventDefault(),rn.stopPropagation();const Mn=this._fitOffsetIntoAllowedRange(ft,nn);this._moveByOffset(Mn),this._dragEndHandler(rn)}_fitOffsetIntoAllowedRange(ft,nn){const rn=this._getAllowedOffsets();return{top:(0,ee.df)(ft,-rn.top,rn.bottom),left:(0,ee.df)(nn,-rn.left,rn.right)}}_getContainerDimensions(){const ft=K.A.getDocument(),nn=this._positionController.$dragResizeContainer.get(0);let rn=(0,X.Ot)(nn),Mn=(0,X.P$)(nn);return(0,U.l6)(nn)&&(Mn=Math.max(ft.body.clientHeight,Mn),rn=Math.max(ft.body.clientWidth,rn)),{width:rn,height:Mn}}_getContainerPosition(){const ft=this._positionController.$dragResizeContainer.get(0);return(0,U.l6)(ft)?{top:0,left:0}:(0,X.A3)(ft)}_getElementPosition(){return(0,X.A3)(this._draggableElement)}_getInnerDelta(){const ft=this._getContainerDimensions(),nn=this._getElementDimensions();return{x:ft.width-nn.width,y:ft.height-nn.height}}_getOuterDelta(){const{width:ft,height:nn}=this._getElementDimensions(),{outsideDragFactor:rn}=this._positionController;return{x:ft*rn,y:nn*rn}}_getFullDelta(){const ft=this._getInnerDelta(),nn=this._getOuterDelta();return{x:ft.x+nn.x,y:ft.y+nn.y}}_getElementDimensions(){return{width:this._draggableElement.offsetWidth,height:this._draggableElement.offsetHeight}}_getAllowedOffsets(){const ft=this._getFullDelta();if(!(ft.y>=0&&ft.x>=0))return{top:0,bottom:0,left:0,right:0};const rn=this._getElementPosition(),Mn=this._getContainerPosition(),On=this._getOuterDelta();return{top:rn.top-Mn.top+On.y,bottom:-rn.top+Mn.top+ft.y,left:rn.left-Mn.left+On.x,right:-rn.left+Mn.left+ft.x}}_moveByOffset(ft){const nn=(0,z.x5)(this._draggableElement);(0,z.Cy)(this._draggableElement,{left:nn.left+ft.left,top:nn.top+ft.top})}},Pe={setOverflow:x.lQ,restoreOverflow:x.lQ};var W=p(5737),ie=p(9144),he=p(4017),Ce=p(5417);const ye=["fullScreen","forceApplyBindings","dragOutsideBoundary","dragAndResizeArea","outsideDragFactor"],Me=(0,A.zk)();class _e extends Ce.A{constructor(ft){let{fullScreen:nn,forceApplyBindings:rn,dragOutsideBoundary:Mn,dragAndResizeArea:On,outsideDragFactor:ji}=ft;super((0,ie.A)(ft,ye)),this._props=(0,W.A)({},this._props,{fullScreen:nn,forceApplyBindings:rn,dragOutsideBoundary:Mn,dragAndResizeArea:On,outsideDragFactor:ji}),this._$dragResizeContainer=void 0,this._updateDragResizeContainer()}set fullScreen(ft){this._props.fullScreen=ft,ft?this._fullScreenEnabled():this._fullScreenDisabled()}get $dragResizeContainer(){return this._$dragResizeContainer}get outsideDragFactor(){return this._props.dragOutsideBoundary?1:this._props.outsideDragFactor}set dragAndResizeArea(ft){this._props.dragAndResizeArea=ft,this._updateDragResizeContainer()}set dragOutsideBoundary(ft){this._props.dragOutsideBoundary=ft,this._updateDragResizeContainer()}set outsideDragFactor(ft){this._props.outsideDragFactor=ft}updateContainer(ft){super.updateContainer(ft),this._updateDragResizeContainer()}dragHandled(){this.restorePositionOnNextRender(!1)}resizeHandled(){this.restorePositionOnNextRender(!1)}positionContent(){var ft,nn;this._props.fullScreen?((0,z.Cy)(this._$content,{top:0,left:0}),this.detectVisualPositionChange()):(null===(ft=(nn=this._props).forceApplyBindings)||void 0===ft||ft.call(nn),super.positionContent())}_updateDragResizeContainer(){this._$dragResizeContainer=this._getDragResizeContainer()}_getDragResizeContainer(){return this._props.dragOutsideBoundary?(0,k.A)(Me):this._props.dragAndResizeArea?(0,k.A)(this._props.dragAndResizeArea):(0,he.s$)().get(0)||this._props.container?this._$markupContainer:(0,k.A)(Me)}_getVisualContainer(){return this._props.fullScreen?(0,k.A)(Me):super._getVisualContainer()}_fullScreenEnabled(){this.restorePositionOnNextRender(!1)}_fullScreenDisabled(){this.restorePositionOnNextRender(!0)}}const ke=(0,A.zk)(),qe=["cancel","clear","done"],je=v.A.safari&&(0,Z.U)(v.A.version,[11])<0,Ne={static:"",inherit:"dx-popup-inherit-height",flex:"dx-popup-flex-height"},Qe=R.A.inherit({_supportedKeys(){return(0,b.X)(this.callBase(),{upArrow:Gt=>{var ft;null===(ft=this._drag)||void 0===ft||ft.moveUp(Gt)},downArrow:Gt=>{var ft;null===(ft=this._drag)||void 0===ft||ft.moveDown(Gt)},leftArrow:Gt=>{var ft;null===(ft=this._drag)||void 0===ft||ft.moveLeft(Gt)},rightArrow:Gt=>{var ft;null===(ft=this._drag)||void 0===ft||ft.moveRight(Gt)}})},_getDefaultOptions(){return(0,b.X)(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragOutsideBoundary:!1,dragEnabled:!1,dragAndResizeArea:void 0,enableBodyScroll:!0,outsideDragFactor:0,onResizeStart:null,onResize:null,onResizeEnd:null,resizeEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules(){return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:Gt=>"desktop"===T.A.real().deviceType&&"generic"===Gt.platform,options:{dragEnabled:!0}},{device:()=>"desktop"===T.A.real().deviceType&&!T.A.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>(0,G.Nt)(),options:{useFlatToolbarButtons:!0}},{device:()=>(0,G.gx)(),options:{useDefaultToolbarButtons:!0,showCloseButton:!1}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation(){return this.option("fullScreen")?{show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}}:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}}},_init(){const Gt=this.option("_wrapperClassExternal"),ft=Gt?`dx-popup-wrapper ${Gt}`:"dx-popup-wrapper";this.callBase(),this._createBodyOverflowManager(),this._updateResizeCallbackSkipCondition(),this.$element().addClass("dx-popup"),this.$wrapper().addClass(ft),this._$popupContent=this._$content.wrapInner((0,k.A)("<div>").addClass("dx-popup-content")).children().eq(0),this._toggleContentScrollClass(),this.$overlayContent().attr("role","dialog")},_render(){const Gt=this.option("fullScreen");this._toggleFullScreenClass(Gt),this.callBase()},_createBodyOverflowManager(){this._bodyOverflowManager=(()=>{if(!(0,A.Vd)())return Pe;const Gt=(0,A.zk)(),{documentElement:ft}=K.A.getDocument(),nn=K.A.getBody(),rn="ios"===T.A.real().platform,Mn={overflow:null,overflowX:null,overflowY:null,paddingRight:null,position:null,top:null,left:null};return{setOverflow:rn?()=>{if((0,U.O9)(Mn.position)||"fixed"===nn.style.position)return;const{scrollY:On,scrollX:ji}=Gt;Mn.position=nn.style.position,Mn.top=nn.style.top,Mn.left=nn.style.left,nn.style.setProperty("position","fixed"),nn.style.setProperty("top",-On+"px"),nn.style.setProperty("left",-ji+"px")}:()=>{(()=>{const On=Gt.innerWidth-ft.clientWidth;if(Mn.paddingRight||On<=0)return;const ji=Gt.getComputedStyle(nn).getPropertyValue("padding-right"),Mi=parseInt(ji,10);Mn.paddingRight=Mi,nn.style.setProperty("padding-right",`${Mi+On}px`)})(),!Mn.overflow&&"hidden"!==nn.style.overflow&&(Mn.overflow=nn.style.overflow,Mn.overflowX=nn.style.overflowX,Mn.overflowY=nn.style.overflowY,nn.style.setProperty("overflow","hidden"))},restoreOverflow:rn?()=>{if(!(0,U.O9)(Mn.position))return;const On=-parseInt(nn.style.top,10),ji=-parseInt(nn.style.left,10);["position","top","left"].forEach(Mi=>{Mn[Mi]?nn.style.setProperty(Mi,Mn[Mi]):nn.style.removeProperty(Mi)}),Gt.scrollTo(ji,On),Mn.position=null}:()=>{(0,U.O9)(Mn.paddingRight)&&(Mn.paddingRight?nn.style.setProperty("padding-right",`${Mn.paddingRight}px`):nn.style.removeProperty("padding-right"),Mn.paddingRight=null),["overflow","overflowX","overflowY"].forEach(On=>{if(!(0,U.O9)(Mn[On]))return;const ji=On.replace(/(X)|(Y)/,Mi=>`-${Mi.toLowerCase()}`);Mn[On]?nn.style.setProperty(ji,Mn[On]):nn.style.removeProperty(ji),Mn[On]=null})}}})()},_toggleFullScreenClass(Gt){this.$overlayContent().toggleClass("dx-popup-fullscreen",Gt).toggleClass("dx-popup-normal",!Gt)},_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({title:new P.A,bottom:new P.A})},_getActionsList(){return this.callBase().concat(["onResizeStart","onResize","onResizeEnd"])},_contentResizeHandler(Gt){this._shouldSkipContentResize(Gt)||this._renderGeometry({shouldOnlyReposition:!0})},_doesShowAnimationChangeDimensions(){const Gt=this.option("animation");return["to","from"].some(ft=>{var nn;const rn=null==Gt||null===(nn=Gt.show)||void 0===nn?void 0:nn[ft];return(0,U.Gv)(rn)&&("width"in rn||"height"in rn)})},_updateResizeCallbackSkipCondition(){const Gt=this._doesShowAnimationChangeDimensions();this._shouldSkipContentResize=ft=>Gt&&this._showAnimationProcessing||this._areContentDimensionsRendered(ft)},_observeContentResize(Gt){if(!this.option("useResizeObserver"))return;const ft=this._$content.get(0);Gt?w.A.observe(ft,nn=>{this._contentResizeHandler(nn)}):w.A.unobserve(ft)},_areContentDimensionsRendered(Gt){var ft,nn,rn;const Mn=null===(ft=Gt.contentBoxSize)||void 0===ft?void 0:ft[0];var On,ji;if(Mn)return parseInt(Mn.inlineSize,10)===(null===(On=this._renderedDimensions)||void 0===On?void 0:On.width)&&parseInt(Mn.blockSize,10)===(null===(ji=this._renderedDimensions)||void 0===ji?void 0:ji.height);const{contentRect:Mi}=Gt;return parseInt(Mi.width,10)===(null===(nn=this._renderedDimensions)||void 0===nn?void 0:nn.width)&&parseInt(Mi.height,10)===(null===(rn=this._renderedDimensions)||void 0===rn?void 0:rn.height)},_renderContent(){this.callBase(),this._observeContentResize(!0)},_renderContentImpl(){this._renderTitle(),this.callBase(),this._renderResize(),this._renderBottom()},_renderTitle(){const Gt=this._getToolbarItems("top"),{title:ft,showTitle:nn}=this.option();if(nn&&ft&&Gt.unshift({location:T.A.current().ios?"center":"before",text:ft}),nn||Gt.length>0){this._$title&&this._$title.remove();const rn=(0,k.A)("<div>").addClass("dx-popup-title").insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",Gt,rn).addClass("dx-popup-title"),this._renderDrag(),this._executeTitleRenderAction(this._$title),this._$title.toggleClass("dx-has-close-button",this._hasCloseButton())}else this._$title&&this._$title.detach();this._toggleAriaLabel()},_toggleAriaLabel(){var Gt;const{title:ft,showTitle:nn}=this.option(),Mn=nn&&ft?new e.A:null;null===(Gt=this._$title)||void 0===Gt||Gt.find(".dx-toolbar-label").eq(0).attr("id",Mn),this.$overlayContent().attr("aria-labelledby",Mn)},_renderTemplateByType(Gt,ft,nn,rn){const{rtlEnabled:Mn,useDefaultToolbarButtons:On,useFlatToolbarButtons:ji,disabled:Mi}=this.option(),Vo=this._getTemplateByOption(Gt);if(Vo instanceof P.A){const Qn=(0,b.X)({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),ei=(0,b.X)(rn,{items:ft,rtlEnabled:Mn,useDefaultButtons:On,useFlatButtons:ji,disabled:Mi,integrationOptions:Qn});this._getTemplate("dx-polymorph-widget").render({container:nn,model:{widget:this._getToolbarName(),options:ei}});const Rt=nn.children("div");return nn.replaceWith(Rt),Rt}const ti=(0,k.A)(Vo.render({container:(0,C.cc)(nn)}));return ti.hasClass("dx-template-wrapper")&&(nn.replaceWith(ti),nn=ti),nn},_getToolbarName:()=>"dxToolbarBase",_renderVisibilityAnimate(Gt){return this.callBase(Gt)},_hide(){return this._observeContentResize(!1),this.callBase()},_executeTitleRenderAction(Gt){this._getTitleRenderAction()({titleElement:(0,C.cc)(Gt)})},_getTitleRenderAction(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer(){return(Gt,ft,nn)=>{const rn=(0,k.A)("<div>").addClass("dx-closebutton");this._createComponent(rn,J.A,{icon:"close",onClick:this._createToolbarItemAction(void 0),stylingMode:"text",integrationOptions:{}}),(0,k.A)(nn).append(rn)}},_getToolbarItems(Gt){const ft=this.option("toolbarItems"),nn=[];this._toolbarItemClasses=[];const rn=T.A.current().platform;let Mn=0;return(0,j.__)(ft,(On,ji)=>{const Mi=(0,U.O9)(ji.shortcut),Vo=Mi?(Gt=>{const ft=T.A.current(),{platform:nn}=ft;let rn="bottom",Mn="before";if("ios"===nn)switch(Gt){case"cancel":rn="top";break;case"clear":rn="top",Mn="after";break;case"done":Mn="after"}else if("android"===nn)switch(Gt){case"cancel":case"done":Mn="after"}return{toolbar:rn,location:Mn}})(ji.shortcut):ji;if(Mi&&"ios"===rn&&Mn<2&&(Vo.toolbar="top",Mn++),Vo.toolbar=ji.toolbar||Vo.toolbar||"top",Vo&&Vo.toolbar===Gt){Mi&&(0,b.X)(Vo,{location:ji.location},this._getToolbarItemByAlias(ji));const Co="generic"===rn;"done"===ji.shortcut&&Co||"cancel"===ji.shortcut&&!Co?nn.unshift(Vo):nn.push(Vo)}}),"top"===Gt&&this._hasCloseButton()&&nn.push(this._getCloseButton()),nn},_hasCloseButton(){return this.option("showCloseButton")&&this.option("showTitle")},_getLocalizationKey:Gt=>"done"===Gt.toLowerCase()?"OK":(0,B.PT)(Gt,!0),_getToolbarButtonStylingMode(Gt){return(0,G.Ft)()?"done"===Gt?"contained":"outlined":this.option("useFlatToolbarButtons")?"text":"contained"},_getToolbarButtonType(Gt){return(0,G.Ft)()&&"done"===Gt||this.option("useDefaultToolbarButtons")?"default":"normal"},_getToolbarItemByAlias(Gt){const ft=this,nn=Gt.shortcut;if(!qe.includes(nn))return!1;const rn=(0,b.X)({text:H.A.format(this._getLocalizationKey(nn)),onClick:this._createToolbarItemAction(Gt.onClick),integrationOptions:{},type:this._getToolbarButtonType(nn),stylingMode:this._getToolbarButtonStylingMode(nn)},Gt.options||{}),Mn=`dx-popup-${nn}`;return this._toolbarItemClasses.push(Mn),{template(On,ji,Mi){const Vo=(0,k.A)("<div>").addClass(Mn).appendTo(Mi);ft._createComponent(Vo,J.A,rn)}}},_createToolbarItemAction(Gt){return this._createAction(Gt,{afterExecute(ft){ft.component.hide()}})},_renderBottom(){const Gt=this._getToolbarItems("bottom");if(Gt.length){this._$bottom&&this._$bottom.remove();const ft=(0,k.A)("<div>").addClass("dx-popup-bottom").insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",Gt,ft,{compactMode:!0}).addClass("dx-popup-bottom"),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleDisabledState(Gt){this.callBase(...arguments),this.$content().toggleClass("dx-state-disabled",!!Gt)},_toggleClasses(){(0,j.__)(qe,(ft,nn)=>{const rn=`dx-popup-${nn}`;this._toolbarItemClasses.includes(rn)?(this.$wrapper().addClass(`${rn}-visible`),this._$bottom.addClass(rn)):(this.$wrapper().removeClass(`${rn}-visible`),this._$bottom.removeClass(rn))})},_toggleFocusClass(Gt,ft){if(this.callBase(Gt,ft),Gt&&!Q.C0(this._zIndex)){const nn=Q.vt(this._zIndexInitValue());Q.TF(this._zIndex),this._zIndex=nn,this._$wrapper.css("zIndex",nn),this._$content.css("zIndex",nn)}},_toggleContentScrollClass(){const Gt=!this.option("preventScrollEvents");this.$content().toggleClass("dx-popup-content-scrollable",Gt)},_getPositionControllerConfig(){const{fullScreen:Gt,forceApplyBindings:ft,dragOutsideBoundary:nn,dragAndResizeArea:rn,outsideDragFactor:Mn}=this.option();return(0,b.X)({},this.callBase(),{fullScreen:Gt,forceApplyBindings:ft,dragOutsideBoundary:nn,dragAndResizeArea:rn,outsideDragFactor:Mn})},_initPositionController(){this._positionController=new _e(this._getPositionControllerConfig())},_getDragTarget(){return this.topToolbar()},_renderGeometry(Gt){const{visible:ft,useResizeObserver:nn}=this.option();if(ft&&(0,A.Vd)()){const Mn=this._showAnimationProcessing&&!(null!=Gt&&Gt.forceStopAnimation)&&nn;this._isAnimationPaused=Mn||void 0,this._stopAnimation(),null!=Gt&&Gt.shouldOnlyReposition?this._renderPosition(!1):this._renderGeometryImpl(Gt?.isDimensionChange),Mn&&(this._animateShowing(),this._isAnimationPaused=void 0)}},_cacheDimensions(){this.option("useResizeObserver")&&(this._renderedDimensions={width:parseInt((0,X.RG)(this._$content),10),height:parseInt((0,X.Oq)(this._$content),10)})},_renderGeometryImpl(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this._resetContentHeight(),this.callBase(),this._cacheDimensions(),this._setContentHeight()},_resetContentHeight(){"auto"===this._getOptionValue("height")&&this.$content().css({height:"auto",maxHeight:"none"})},_renderDrag(){const Gt=this._getDragTarget(),ft=this.option("dragEnabled");if(!Gt)return;const nn={dragEnabled:ft,handle:Gt.get(0),draggableElement:this._$content.get(0),positionController:this._positionController};this._drag?this._drag.init(nn):this._drag=new De(nn),this.$overlayContent().toggleClass("dx-popup-draggable",ft)},_renderResize(){this._resizable=this._createComponent(this._$content,L.A,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:Gt=>{this._resizeEndHandler(Gt),this._observeContentResize(!0)},onResize:Gt=>{this._setContentHeight(),this._actions.onResize(Gt)},onResizeStart:Gt=>{this._observeContentResize(!1),this._actions.onResizeStart(Gt)},minHeight:100,minWidth:100,area:this._positionController.$dragResizeContainer,keepAspectRatio:!1})},_resizeEndHandler(Gt){const ft=this._resizable.option("width"),nn=this._resizable.option("height");ft&&this._setOptionWithoutOptionChange("width",ft),nn&&this._setOptionWithoutOptionChange("height",nn),this._cacheDimensions(),this._positionController.resizeHandled(),this._positionController.detectVisualPositionChange(Gt.event),this._actions.onResizeEnd(Gt)},_setContentHeight(){(this.option("forceApplyBindings")||x.lQ)();const Gt=this.$overlayContent().get(0),ft=this._chooseHeightStrategy(Gt);this.$content().css(this._getHeightCssStyles(ft,Gt)),this._setHeightClasses(this.$overlayContent(),ft)},_heightStrategyChangeOffset:(Gt,ft)=>Gt===Ne.flex?-ft:0,_chooseHeightStrategy(Gt){const ft="auto"===Gt.style.width||""===Gt.style.width;let nn=Ne.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(nn=ft||je?Ne.inherit:Ne.flex),nn},_getHeightCssStyles(Gt,ft){let nn={};const rn=this._getOptionValue("maxHeight",ft),Mn=this._getOptionValue("minHeight",ft),On=this._splitPopupHeight(),ji=On.header+On.footer+On.contentVerticalOffsets+On.popupVerticalOffsets+this._heightStrategyChangeOffset(Gt,On.popupVerticalPaddings);if(Gt===Ne.static){if(!this._isAutoHeight()||rn||Mn){const Vo=(this.option("fullScreen")?Math.min((0,F.N)(ft).height,(0,A.zk)().innerHeight):(0,F.N)(ft).height)-ji;nn={height:Math.max(0,Vo),minHeight:"auto",maxHeight:"auto"}}}else{const Mi=(0,k.A)(this._positionController.$visualContainer).get(0),Vo=(0,X.dh)(rn,-ji,Mi);nn={height:"auto",minHeight:(0,X.d6)(Mn,-ji,Mi),maxHeight:Vo}}return nn},_setHeightClasses(Gt,ft){let nn="";for(const rn in Ne)Ne[rn]!==ft&&(nn+=` ${Ne[rn]}`);Gt.removeClass(nn).addClass(ft)},_isAutoHeight(){return"auto"===this.$overlayContent().get(0).style.height},_splitPopupHeight(){const Gt=this.topToolbar(),ft=this.bottomToolbar();return{header:(0,X.gP)(Gt&&Gt.get(0)),footer:(0,X.gP)(ft&&ft.get(0)),contentVerticalOffsets:(0,X.pD)(this.$overlayContent().get(0),!0),popupVerticalOffsets:(0,X.pD)(this.$content().get(0),!0),popupVerticalPaddings:(0,X.pD)(this.$content().get(0),!1)}},_isAllWindowCovered(){return this.callBase()||this.option("fullScreen")},_renderDimensions(){this.option("fullScreen")?this.$overlayContent().css({width:"100%",height:"100%",minWidth:"",maxWidth:"",minHeight:"",maxHeight:""}):this.callBase(),(0,A.Vd)()&&this._renderFullscreenWidthClass()},_dimensionChanged(){this._renderGeometry({isDimensionChange:!0})},_clean(){this.callBase(),this._observeContentResize(!1)},_dispose(){this.callBase(),this._toggleBodyScroll(!0)},_renderFullscreenWidthClass(){this.$overlayContent().toggleClass("dx-popup-fullscreen-width",(0,X.Ot)(this.$overlayContent())===(0,X.RG)(ke))},_toggleSafariScrolling(){this.option("enableBodyScroll")&&this.callBase()},_toggleBodyScroll(Gt){if(!this._bodyOverflowManager)return;const{setOverflow:ft,restoreOverflow:nn}=this._bodyOverflowManager;Gt?nn():ft()},refreshPosition(){this._renderPosition()},_optionChanged(Gt){var ft;const{value:nn,name:rn}=Gt;switch(rn){case"disabled":this.callBase(Gt),this._renderTitle(),this._renderBottom();break;case"animation":this._updateResizeCallbackSkipCondition();break;case"enableBodyScroll":this.option("visible")&&this._toggleBodyScroll(nn);break;case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry(),(0,M.ho)(this.$overlayContent());break;case"bottomTemplate":this._renderBottom(),this._renderGeometry(),(0,M.ho)(this.$overlayContent());break;case"container":var Mn;this.callBase(Gt),this.option("resizeEnabled")&&(null===(Mn=this._resizable)||void 0===Mn||Mn.option("area",this._positionController.$dragResizeContainer));break;case"width":case"height":this.callBase(Gt),null===(ft=this._resizable)||void 0===ft||ft.option(rn,nn);break;case"onTitleRendered":this._createTitleRenderAction(nn);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":{const On=!Gt.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),On&&(this._renderGeometry(),(0,M.ho)(this.$overlayContent()));break}case"dragEnabled":this._renderDrag();break;case"dragAndResizeArea":this._positionController.dragAndResizeArea=nn,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer),this._positionController.positionContent();break;case"dragOutsideBoundary":this._positionController.dragOutsideBoundary=nn,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer);break;case"outsideDragFactor":this._positionController.outsideDragFactor=nn;break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"autoResizeEnabled":this._renderGeometry(),(0,M.ho)(this.$overlayContent());break;case"fullScreen":this._positionController.fullScreen=nn,this._toggleFullScreenClass(nn),this._toggleSafariScrolling(),this._renderGeometry(),(0,M.ho)(this.$overlayContent());break;case"showCloseButton":this._renderTitle();break;case"preventScrollEvents":this.callBase(Gt),this._toggleContentScrollClass();break;default:this.callBase(Gt)}},bottomToolbar(){return this._$bottom},topToolbar(){return this._$title},$content(){return this._$popupContent},content(){return(0,C.cc)(this.$content())},$overlayContent(){return this._$content},getFocusableElements(){return this.$wrapper().find("[tabindex]").filter((Gt,ft)=>ft.getAttribute("tabindex")>=0)}});(0,m.A)("dxPopup",Qe);const yt=Qe},8630:(En,it,p)=>{"use strict";p.d(it,{A:()=>Ke});var S=p(2583),d=p(6870),m=p(1973),T=p(5973),C=p(6054),e=p(9522),k=p(2925),w=p(5704),P=p(4859),v=p(6021),x=p(1832),b=p(3090),B=p(2660),j=p(1363),F=p(1830),X=p(6110),U=p(5656),Z=p(4072),A=p(3535),M=p(9293),H=p(3949),J=p(4602),R=p(9212),L=p(6410);const ke=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],Ye=["up","down","first","last"],Ee=(0,X.zk)();class le extends L.A{getShowEvent(q){return(0,F.Gv)(q)?null!==q.name?q.name??"dxcontextmenu":null:q}getShowDelay(q){return(0,F.Gv)(q)&&q.delay}_getDefaultOptions(){return(0,b.X)(super._getDefaultOptions(),{showEvent:"dxcontextmenu",hideOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>!(0,X.Vd)(),options:{animation:null}}])}_setDeprecatedOptions(){super._setDeprecatedOptions(),(0,b.X)(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.2",alias:"hideOnOutsideClick"}})}_initActions(){this._actions={},(0,B.__)(ke,(q,Oe)=>{this._actions[Oe]=this._createActionByOption(Oe)||P.lQ})}_setOptionsByReference(){super._setOptionsByReference(),(0,b.X)(this._optionsByReference,{animation:!0,selectedItem:!0})}_focusInHandler(){}_itemContainer(){return this._overlay?this._overlay.$content():(0,w.A)()}_eventBindingTarget(){return this._itemContainer()}itemsContainer(){return this._overlay?this._overlay.$content():void 0}_supportedKeys(){return(0,b.X)(super._supportedKeys(),{space:()=>{const q=(0,w.A)(this.option("focusedElement"));this.hide(),q.length&&this._isSelectionEnabled()&&this.selectItem(q[0])},escape:this.hide})}_getActiveItem(q){const Oe=this._getAvailableItems(),fe=Oe.filter(".dx-state-focused"),We=Oe.filter(".dx-state-hover");return We.closest(".dx-menu-items-container").find(".dx-menu-item").index(fe)>=0?fe:We.length?We:super._getActiveItem()}_moveFocus(q){const Oe=this._getItemsByLocation(q),fe=this._getActiveItem(!0),We=this.itemsContainer().find(".dx-state-hover"),Ve=!(!(0,w.A)(this.option("focusedElement")).length&&!We.length);let tt;switch(q){case"up":tt=Ve?this._prevItem(Oe):fe,this._setFocusedElement(tt),fe.is(Oe.first())&&this._actions.onLeftFirstItem(fe);break;case"down":tt=Ve?this._nextItem(Oe):fe,this._setFocusedElement(tt),fe.is(Oe.last())&&this._actions.onLeftLastItem(fe);break;case"right":tt=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(Oe,q),this._setFocusedElement(tt);break;case"left":tt=this.option("rtlEnabled")?this._expandSubmenuHandler(Oe,q):this._hideSubmenuHandler(),this._setFocusedElement(tt);break;case"first":tt=Oe.first(),this._setFocusedElement(tt);break;case"last":tt=Oe.last(),this._setFocusedElement(tt);break;default:return super._moveFocus(q)}}_setFocusedElement(q){q&&0!==q.length&&(this.option("focusedElement",(0,e.cc)(q)),this._scrollToElement(q))}_scrollToElement(q){const fe=q.closest(".dx-scrollable").dxScrollable("instance");fe?.scrollToElement(q)}_getItemsByLocation(q){const Oe=this._getActiveItem(!0);let fe;return Ye.includes(q)&&(fe=Oe.closest(".dx-menu-items-container").children().children()),fe=this._getAvailableItems(fe),fe}_getAriaTarget(){return this.$element()}_refreshActiveDescendant(){if((0,F.O9)(this._overlay)){const q=this._overlay.$content();super._refreshActiveDescendant(q)}}_hideSubmenuHandler(){const q=this._getActiveItem(!0),Oe=q.parents(".dx-menu-item-expanded").first();if(Oe.length)return this._hideSubmenusOnSameLevel(Oe),this._hideSubmenu(q.closest(".dx-submenu")),Oe;this._actions.onCloseRootSubmenu(q)}_expandSubmenuHandler(q,Oe){const fe=this._getActiveItem(!0),We=this._getItemData(fe),Ue=this._dataAdapter.getNodeByItem(We),Ve=this._hasSubmenu(Ue),tt=fe.children(".dx-submenu");if(Ve&&!fe.hasClass("dx-state-disabled"))return(!tt.length||"hidden"===tt.css("visibility"))&&this._showSubmenu(fe),this._nextItem(this._getItemsByLocation(Oe));this._actions.onExpandLastSubmenu(fe)}_clean(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),super._clean()}_initMarkup(){this.$element().addClass("dx-has-context-menu"),super._initMarkup()}_render(){super._render(),this._renderVisibility(this.option("visible")),this._addWidgetClass()}_isTargetOutOfComponent(q){return!(0!==(0,w.A)(q).closest(".dx-context-menu").length)}_focusOutHandler(q){const{relatedTarget:Oe}=q;Oe&&this._isTargetOutOfComponent(Oe)&&this.hide(),super._focusOutHandler(q)}_renderContentImpl(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()}_attachKeyboardEvents(){!this._keyboardListenerId&&this._focusTarget().length&&super._attachKeyboardEvents()}_renderContextMenuOverlay(){if(this._overlay)return;const q=this._getOverlayOptions();this._overlay=this._createComponent((0,w.A)("<div>").appendTo(this._$element),H.A,q);const Oe=this._overlay.$content();Oe.addClass("dx-context-menu"),this._addCustomCssClass(Oe),this._addPlatformDependentClass(Oe),this._attachContextMenuEvent()}preventShowingDefaultContextMenuAboveOverlay(){const q=this._itemContainer(),Oe=(0,M.b4)(U.U,this.NAME);Z.A.off(q,Oe,".dx-submenu"),Z.A.on(q,Oe,".dx-submenu",fe=>{fe.stopPropagation(),fe.preventDefault(),Z.A.off(q,Oe,".dx-submenu")})}_itemContextMenuHandler(q){super._itemContextMenuHandler(q),q.stopPropagation()}_addPlatformDependentClass(q){T.A.current().phone&&q.addClass("dx-menu-phone-overlay")}_detachShowContextMenuEvents(q){const Oe=this.getShowEvent(this.option("showEvent"));if(!Oe)return;const fe=(0,M.b4)(Oe,this.NAME);this._showContextMenuEventHandler?Z.A.off(C.A.getDocument(),fe,q,this._showContextMenuEventHandler):Z.A.off((0,w.A)(q),fe)}_attachShowContextMenuEvents(){const q=this._getTarget(),Oe=this.getShowEvent(this.option("showEvent"));if(!Oe)return;const fe=(0,M.b4)(Oe,this.NAME);let We=this._createAction(Ve=>{const tt=this.getShowDelay(this.option("showEvent"));tt?setTimeout(()=>this._show(Ve.event),tt):this._show(Ve.event)},{validatingTargetName:"target"});const Ue=Ve=>We({event:Ve,target:(0,w.A)(Ve.currentTarget)});We=this._createAction(We),(0,F.Kb)(q)||q.nodeType||(0,F.l6)(q)?(this._showContextMenuEventHandler=void 0,Z.A.on(q,fe,Ue)):(this._showContextMenuEventHandler=Ue,Z.A.on(C.A.getDocument(),fe,q,this._showContextMenuEventHandler))}_hoverEndHandler(q){super._hoverEndHandler(q),q.stopPropagation()}_renderDimensions(){}_renderContainer(q,Oe){const fe=Oe||this._itemContainer();(q=(0,w.A)("<div>")).appendTo(fe).addClass("dx-submenu").css("visibility",Oe?"hidden":"visible"),q.parent().hasClass("dx-overlay-content")||this._addCustomCssClass(q);const We=super._renderContainer(q);return Oe?We:this.option("width")?We.css("minWidth",this.option("width")):this.option("height")?We.css("minHeight",this.option("height")):We}_renderSubmenuItems(q,Oe){this._renderItems(this._getChildNodes(q),Oe);const fe=Oe.children(".dx-submenu");this._actions.onSubmenuCreated({itemElement:(0,e.cc)(Oe),itemData:q.internalFields.item,submenuElement:(0,e.cc)(fe)}),this._initScrollable(fe),this.setAria({role:"menu"},fe)}_getOverlayOptions(){const q=this.option("position");return{focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),innerOverlay:!0,hideOnOutsideClick:fe=>this._hideOnOutsideClickHandler(fe),propagateOutsideClick:!0,hideOnParentScroll:!0,deferRendering:!1,position:{at:q.at,my:q.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this),visualContainer:Ee}}_overlayShownActionHandler(q){this._actions.onShown(q)}_overlayHidingActionHandler(q){this._actions.onHiding(q),q.cancel||(this._hideAllShownSubmenus(),this._setOptionWithoutOptionChange("visible",!1))}_overlayHiddenActionHandler(q){this._actions.onHidden(q)}_shouldHideOnOutsideClick(q){const{closeOnOutsideClick:Oe,hideOnOutsideClick:fe}=this.option();return(0,F.Tn)(fe)?fe(q):(0,F.Tn)(Oe)?Oe(q):fe||Oe}_hideOnOutsideClickHandler(q){if(!this._shouldHideOnOutsideClick(q))return!1;if(C.A.isDocument(q.target))return!0;const Oe=this._getActiveItemsContainer(q.target),fe=this._getItemsContainers(),We=this._searchActiveItem(q.target),Ue=this.$element().parents(".dx-menu-item"),Ve=We[0]===Ue[0]&&We.length&&Ue.length;return!(this._isIncludeOverlay(Oe,fe)&&We.length||Ve)||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(We),!1)}_getActiveItemsContainer(q){return(0,w.A)(q).closest(".dx-menu-items-container")}_getItemsContainers(){return this._overlay.$content().find(".dx-menu-items-container")}_searchActiveItem(q){return(0,w.A)(q).closest(".dx-menu-item").eq(0)}_isIncludeOverlay(q,Oe){let fe=!1;return(0,B.__)(Oe,(We,Ue)=>{q.is(Ue)&&!fe&&(fe=!0)}),fe}_hideAllShownChildSubmenus(q){const Oe=q.find(".dx-submenu"),fe=(0,b.X)([],this._shownSubmenus);Oe.length>0&&(0,B.__)(fe,(We,Ue)=>{const Ve=this._searchActiveItem(Ue.context).parent();Ve.parent().is(q.parent().parent())&&!Ve.is(q.parent())&&this._hideSubmenu(Ue)})}_initScrollable(q){this._createComponent(q,J.A,{useKeyboard:!1,_onVisibilityChanged:Oe=>{Oe.scrollTo(0)}})}_setSubMenuHeight(q,Oe,fe){const We=q.find(".dx-menu-items-container"),Ue=(0,j.P$)(We),Ve=this._getMaxHeight(Oe,!fe),tt=Math.min(Ue,Ve);q.css("height",fe?tt:"100%")}_getMaxHeight(q){let Oe=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const fe=(0,j.P$)(Ee),We=(0,F.Kb)(q),Ue=C.A.getDocument();if(!We||q.length&&q[0]===Ue)return fe;const tt=q[0].getBoundingClientRect().top,at=(0,j.P$)(q);return(Oe?Math.max(tt,fe-tt-at):Math.max(tt+at,fe-tt))-10}_dimensionChanged(){this._shownSubmenus&&this._shownSubmenus.forEach(q=>{const Oe=q.closest(".dx-menu-item");this._setSubMenuHeight(q,Oe,!0),this._scrollToElement(Oe);const fe=this._getSubmenuPosition(Oe);d.A.setup(q,fe)})}_getSubmenuBorderWidth(){return(0,R.Nt)((0,R.ss)())?0:1}_showSubmenu(q){const Oe=this._dataAdapter.getNodeByItem(this._getItemData(q));if(this._hideSubmenusOnSameLevel(q),!this._hasSubmenu(Oe))return;let fe=q.children(".dx-submenu");const We=fe.length;super._showSubmenu(q),We||(this._renderSubmenuItems(Oe,q),fe=q.children(".dx-submenu")),this._setSubMenuHeight(fe,q,!0),this._isSubmenuVisible(fe)||this._drawSubmenu(q)}_hideSubmenusOnSameLevel(q){const Oe=q.parent(".dx-menu-item-wrapper").siblings().find(".dx-menu-item-expanded");Oe.length&&(Oe.removeClass("dx-menu-item-expanded"),this._hideSubmenu(Oe.find(".dx-submenu")))}_hideSubmenuGroup(q){this._isSubmenuVisible(q)&&this._hideSubmenuCore(q)}_isSubmenuVisible(q){return"visible"===q.css("visibility")}_drawSubmenu(q){const Oe=this.option("animation")?this.option("animation").show:{},fe=q.children(".dx-submenu"),We=this._getSubmenuPosition(q);this._overlay&&this._overlay.option("visible")&&((0,F.O9)(this._shownSubmenus)||(this._shownSubmenus=[]),this._shownSubmenus.includes(fe)||this._shownSubmenus.push(fe),Oe&&S.A.stop(fe),d.A.setup(fe,We),Oe&&((0,F.Qd)(Oe.to)&&(Oe.to.position=We),this._animate(fe,Oe)),fe.css("visibility","visible"))}_animate(q,Oe){S.A.animate(q,Oe)}_getSubmenuPosition(q){const Oe=this.option("submenuDirection").toLowerCase(),We={collision:"flip",of:q.parent(".dx-menu-item-wrapper"),offset:{h:0,v:-1}};switch(Oe){case"left":We.at="left top",We.my="right top";break;case"right":We.at="right top",We.my="left top";break;default:this.option("rtlEnabled")?(We.at="left top",We.my="right top"):(We.at="right top",We.my="left top")}return We}_updateSubmenuVisibilityOnClick(q){if(!q.args.length)return;const{itemData:Oe}=q.args[0],fe=this._dataAdapter.getNodeByItem(Oe);if(!fe)return;const We=(0,w.A)(q.args[0].itemElement);let Ue=We.find(".dx-submenu");if(this._hasSubmenu(fe)&&!Ue.length&&(this._renderSubmenuItems(fe,We),Ue=We.find(".dx-submenu")),(We.context!==Ue.context||"visible"!==Ue.css("visibility"))&&(this._updateSelectedItemOnClick(q),Oe&&!Oe.disabled&&(!Oe||!1!==Oe.closeMenuOnClick)))if(0===Ue.length){const at=(0,w.A)(We.parents(".dx-submenu")[0]);this._hideSubmenu(at),!q.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(Ue)&&this._hideSubmenu(Ue),this._showSubmenu(We)}_hideSubmenu(q){const Oe=(0,b.X)([],this._shownSubmenus);(0,B.__)(Oe,(fe,We)=>{(q.is(We)||(0,x.gR)(q[0],We[0]))&&(We.parent().removeClass("dx-menu-item-expanded"),this._hideSubmenuCore(We))})}_hideSubmenuCore(q){const Oe=this._shownSubmenus.indexOf(q),fe=this.option("animation")?this.option("animation").hide:null;Oe>=0&&this._shownSubmenus.splice(Oe,1),this._stopAnimate(q),fe&&this._animate(q,fe),q.css("visibility","hidden"),q.dxScrollable("instance").scrollTo(0),this.option("focusedElement",null)}_stopAnimate(q){S.A.stop(q,!0)}_hideAllShownSubmenus(){const q=(0,b.X)([],this._shownSubmenus);this._overlay.$content().find(".dx-menu-item-expanded").removeClass("dx-menu-item-expanded"),(0,B.__)(q,(fe,We)=>{this._hideSubmenu(We)})}_visibilityChanged(q){q&&this._renderContentImpl()}_optionChanged(q){if(ke.includes(q.name))this._initActions();else switch(q.name){case"visible":this._renderVisibility(q.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":q.previousValue&&this._detachShowContextMenuEvents(q.previousValue),this._invalidate();break;case"closeOnOutsideClick":case"hideOnOutsideClick":break;default:super._optionChanged(q)}}_renderVisibility(q){return q?this._show():this._hide()}_toggleVisibility(){}_show(q){const Oe={jQEvent:q};let fe=(0,v.cY)().reject().promise();if(this._actions.onShowing(Oe),Oe.cancel)return fe;const We=this._positionContextMenu(q);if(We){var Ue;this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes()));const Ve=(0,w.A)(this._overlay.content()).children(".dx-submenu");this._setOptionWithoutOptionChange("visible",!0),this._overlay.option({height:()=>this._getMaxHeight(We.of),maxHeight:()=>{const tt=Ve.find(".dx-menu-items-container"),at=this._getSubmenuBorderWidth();return(0,j.P$)(tt)+2*at},position:We}),Ve.length&&this._setSubMenuHeight(Ve,We.of,!1),fe=this._overlay.show(),q&&q.stopPropagation(),this._setAriaAttributes(),(null==q||null===(Ue=q.originalEvent)||void 0===Ue?void 0:Ue.type)===A.A.name&&this.preventShowingDefaultContextMenuAboveOverlay()}return fe}_renderItems(q,Oe){super._renderItems(q,Oe);const fe=(0,w.A)(this._overlay.content()).children(".dx-submenu");fe.length&&this._initScrollable(fe)}_setAriaAttributes(){this._overlayContentId=`dx-${new k.A}`,this.setAria("owns",this._overlayContentId),this.setAria({id:this._overlayContentId,role:"menu"},this._overlay.$content())}_cleanAriaAttributes(){this._overlay&&this.setAria("id",null,this._overlay.$content()),this.setAria("owns",void 0)}_getTarget(){return this.option("target")||this.option("position").of||(0,w.A)(C.A.getDocument())}_getContextMenuPosition(){return(0,b.X)({},this.option("position"),{of:this._getTarget()})}_positionContextMenu(q){let Oe=this._getContextMenuPosition();const fe=this._isInitialOptionValue("position"),We=this._createActionByOption("onPositioning");q&&q.preventDefault&&fe&&(Oe.of=q);const Ue={position:Oe,event:q};return We(Ue),Ue.cancel?Oe=null:Ue.event&&(Ue.event.cancel=!0,q.preventDefault()),Oe}_refresh(){if((0,X.Vd)())if(this._overlay){const q=this._overlay.option("position");super._refresh(),this._overlay&&this._overlay.option("position",q)}else super._refresh();else super._refresh()}_hide(){let q;return this._overlay&&(q=this._overlay.hide(),this._setOptionWithoutOptionChange("visible",!1)),this._cleanAriaAttributes(),this.option("focusedElement",null),q||(0,v.cY)().reject().promise()}toggle(q){const Oe=this.option("visible");return this._renderVisibility(q=void 0===q?!Oe:q)}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}}(0,m.A)("dxContextMenu",le);const Ke=le},8638:(En,it,p)=>{"use strict";p.d(it,{A:()=>ho});var S=p(1973),d=p(5973),m=p(36),T=p(1832),C=p(3090),e=p(3012),k=p(1830),w=p(4072),P=p(9293),v=p(9061),x=p(5259),b=p(53),B=p(1013),j=p(1520),F=p(3686),X=p(676),U=p(4761),Z=p(2660),A=p(7007),M=p(6110),H=p(8360),J=p(3684),R=p(4686),L=p(5704),G=p(1363),Q=p(625);const z=["year","day","month","day"],K=["hours","minutes","seconds","milliseconds"],Re={SUPPORTED_FORMATS:["date","time","datetime"],ONE_MINUTE:6e4,ONE_DAY:864e5,ONE_YEAR:31536e6,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:function(){const St=new Date;return new Date(St.getFullYear()+50,St.getMonth(),St.getDate(),23,59,59)}(),FORMATS_INFO:{date:{getStandardPattern:()=>"yyyy-MM-dd",components:z},time:{getStandardPattern:()=>"HH:mm",components:K},datetime:{getStandardPattern(){let St;return function(){const Qt=(0,L.A)("<input>").attr("type","datetime");Qt.val("2000-01-01T01:01Z"),Qt.val()&&(St="yyyy-MM-ddTHH:mmZ")}(),St||(St="yyyy-MM-ddTHH:mm:ssZ"),Re.FORMATS_INFO.datetime.getStandardPattern=function(){return St},St},components:[...z,...K]},"datetime-local":{getStandardPattern:()=>"yyyy-MM-ddTHH:mm:ss",components:[...z,"hours","minutes","seconds"]}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat(St,Qt){const jn=Re.FORMATS_INFO[Qt].getStandardPattern();return U.A.serializeDate(St,jn)},fromStandardDateFormat(St){const Qt=U.A.dateParser(St);return(0,k.$P)(Qt)?Qt:void 0},getMaxMonthDay:(St,Qt)=>new Date(St,Qt+1,0).getDate(),mergeDates(St,Qt,jn){if(!Qt)return Qt||null;if(!St||isNaN(St.getTime())){const zi=new Date(null);St=new Date(zi.getFullYear(),zi.getMonth(),zi.getDate())}const ai=new Date(St.valueOf());return(0,Z.__)(Re.FORMATS_INFO[jn].components,function(){const zi=Re.DATE_COMPONENTS_INFO[this];ai[zi.setter](Qt[zi.getter]())}),ai},getLongestCaptionIndex(St){let ai,Qt=0,jn=0;for(ai=0;ai<St.length;++ai)St[ai].length>jn&&(Qt=ai,jn=St[ai].length);return Qt},formatUsesMonthName:St=>v.A.formatUsesMonthName(St),formatUsesDayName:St=>v.A.formatUsesDayName(St),getLongestDate(St,Qt,jn){const ai=function(St){const Qt=typeof St;return"string"===Qt?"format":"object"===Qt&&void 0!==St.type?St.type:null}(St);let $i=9;(!ai||Re.formatUsesMonthName(ai))&&($i=Re.getLongestCaptionIndex(Qt));const zi=new Date(1888,$i,21,23,59,59,999);if(!ai||Re.formatUsesDayName(ai)){const _o=zi.getDate()-zi.getDay()+Re.getLongestCaptionIndex(jn);zi.setDate(_o)}return zi},normalizeTime(St){St.setSeconds(0),St.setMilliseconds(0)}};Re.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter(St,Qt){const jn=new Date(Qt.getTime());return jn.setFullYear(St),v.A.format(jn,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter(St,Qt){const jn=new Date(Qt.getTime());return jn.setDate(St),v.A.format(jn,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:St=>v.A.getMonthNames()[St],startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:St=>v.A.format(new Date(0,0,0,St),"hour"),startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:St=>v.A.format(new Date(0,0,0,0,St),"minute"),startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:St=>v.A.format(new Date(0,0,0,0,0,St),"second"),startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:St=>v.A.format(new Date(0,0,0,0,0,0,St),"millisecond"),startValue:0,endValue:999}};const Se=Re;var De=p(6620),Pe=p(9810),Ie=p(6520);const de=function(St,Qt,jn){Ae(St,Qt,jn)},Ae=function(St,Qt,jn){St.css("transform",`rotate(${Qt}deg) translate(0,${jn}px)`)},pe=De.A.inherit({_getDefaultOptions(){return(0,C.X)(this.callBase(),{value:new Date(Date.now()),use24HourFormat:!0,_showClock:!0,_arrowOffset:5,stylingMode:void 0})},_getValue(){return this.option("value")||new Date},_init(){this.callBase(),this.$element().addClass("dx-timeview")},_render(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox(){const St=(0,L.A)("<div>").appendTo(this.$element()),Qt=[];this.option("_showClock")&&Qt.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),Qt.push({ratio:0,shrink:0,baseSize:"auto",template:this._renderField.bind(this)}),this._createComponent(St,Q.A,{height:"100%",width:"100%",direction:"col",items:Qt})},_renderClock(St,Qt,jn){this._$hourArrow=(0,L.A)("<div>").addClass("dx-timeview-hourarrow"),this._$minuteArrow=(0,L.A)("<div>").addClass("dx-timeview-minutearrow");const ai=(0,L.A)(jn);ai.addClass("dx-timeview-clock").append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",ai)},_updateClock(){const St=this._getValue(),Qt=St.getHours()/12*360+St.getMinutes()/60*30,jn=St.getMinutes()/60*360;de(this._$hourArrow,Qt,this.option("_arrowOffset")),de(this._$minuteArrow,jn,this.option("_arrowOffset"))},_getBoxItems(St){const Qt=[{ratio:0,shrink:0,baseSize:"auto",template:()=>this._hourBox.$element()},{ratio:0,shrink:0,baseSize:"auto",template:(0,L.A)("<div>").addClass("dx-timeview-time-separator").text(v.A.getTimeSeparator())},{ratio:0,shrink:0,baseSize:"auto",template:()=>this._minuteBox.$element()}];return St&&Qt.push({ratio:0,shrink:0,baseSize:"auto",template:()=>this._format12.$element()}),Qt},_renderField(){const St=!this.option("use24HourFormat");return this._createHourBox(St),this._createMinuteBox(),St&&this._createFormat12Box(),this._createComponent((0,L.A)("<div>").addClass("dx-timeview-field"),Q.A,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(St)}).$element()},_createHourBox(St){(this._hourBox=this._createComponent((0,L.A)("<div>"),Pe.A,(0,C.X)({min:-1,max:St?13:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this),onKeyboardHandled:jn=>this._keyboardHandler(jn)},this._getNumberBoxConfig()))).setAria("label","hours")},_isPM(){return!this.option("use24HourFormat")&&1===this._format12.option("value")},_onHourBoxValueChanged(St){let{value:Qt,component:jn}=St;const ai=this._getValue(),$i=new Date(ai);let zi=this._convertMaxHourToMin(Qt);jn.option("value",zi),this._isPM()&&(zi+=12),$i.setHours(zi),Se.normalizeTime($i),this.option("value",$i)},_convertMaxHourToMin(St){const Qt=this.option("use24HourFormat")?24:12;return(Qt+St)%Qt},_createMinuteBox(){(this._minuteBox=this._createComponent((0,L.A)("<div>"),Pe.A,(0,C.X)({min:-1,max:60,value:this._getValue().getMinutes(),onKeyboardHandled:Qt=>this._keyboardHandler(Qt),onValueChanged:Qt=>{let{value:jn,component:ai}=Qt;const $i=(60+jn)%60;ai.option("value",$i);const zi=new Date(this._getValue());zi.setMinutes($i),Se.normalizeTime(zi),this.option("value",zi)}},this._getNumberBoxConfig()))).setAria("label","minutes")},_createFormat12Box(){const St=v.A.getPeriodNames();(this._format12=this._createComponent((0,L.A)("<div>").addClass("dx-timeview-format12"),Ie.A,{items:[{value:-1,text:St[0]},{value:1,text:St[1]}],valueExpr:"value",displayExpr:"text",onKeyboardHandled:jn=>this._keyboardHandler(jn),onValueChanged:jn=>{let{value:ai}=jn;const $i=this._getValue().getHours(),zi=new Date(this._getValue());zi.setHours(($i+12*ai)%24),this.option("value",zi)},value:this._getValue().getHours()>=12?1:-1,stylingMode:this.option("stylingMode")})).setAria("label","type")},_refreshFormat12(){if(this.option("use24HourFormat"))return;const ai=this._getValue().getHours()>=12?1:-1;this._silentEditorValueUpdate(this._format12,ai)},_silentEditorValueUpdate(St,Qt){St&&(St._suppressValueChangeAction(),St.option("value",Qt),St._resumeValueChangeAction())},_getNumberBoxConfig(){return{showSpinButtons:!0,displayValueFormatter:St=>(St<10?"0":"")+St,stylingMode:this.option("stylingMode")}},_normalizeHours(St){return this.option("use24HourFormat")?St:St%12||12},_updateField(){const St=this._normalizeHours(this._getValue().getHours());this._silentEditorValueUpdate(this._hourBox,St),this._silentEditorValueUpdate(this._minuteBox,this._getValue().getMinutes()),this._refreshFormat12()},_updateTime(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged(St){St&&this._updateTime()},_optionChanged(St){switch(St.name){case"value":this._updateTime(),this.callBase(St);break;case"_arrowOffset":break;case"use24HourFormat":case"_showClock":case"stylingMode":this._invalidate();break;default:this.callBase(St)}}});(0,S.A)("dxTimeView",pe);const Ee=pe,le=(0,M.zk)(),q="dx-datebox-datetime-time-side",fe=R.A.inherit({NAME:"CalendarWithTime",getDefaultOptions(){return(0,C.X)(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after","dropDownOptions.showTitle":!1})},_closeDropDownByEnter(){return X.A.sameDate(this._getContouredValue(),this.widgetOption("value"))},getDisplayFormat:St=>St||"shortdateshorttime",_is24HourFormat(){return v.A.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_getContouredValue(){const St=this.callBase();return this._updateDateTime(St)},_renderWidget(){this.callBase(),this._timeView=this.dateBox._createComponent((0,L.A)("<div>"),Ee,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")})},renderOpenedState(){this.callBase();const St=this._getPopup();St&&St.$wrapper().toggleClass("dx-datebox-adaptivity-mode",this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout(()=>{this._getPopup()&&this._getPopup().repaint()},0)},isAdaptivityChanged(){const St=this._isShrinkView(),Qt=this._currentAdaptiveMode;return St!==Qt?(this._currentAdaptiveMode=St,void 0!==Qt):this.callBase()},_updateValue(St){let Qt=this.dateBoxValue();!Qt&&!St&&(Qt=new Date,Se.normalizeTime(Qt)),this.callBase(),this._timeView&&(Qt&&this._timeView.option("value",Qt),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:()=>(0,G.RG)(le)<=573,_isShrinkView(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems(){const St=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||St.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),St},renderPopupContent(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();const St=this._getPopup().$content();this._box=this.dateBox._createComponent((0,L.A)("<div>").appendTo(St),Q.A,{direction:"row",crossAlign:"stretch",items:this._getBoxItems(),itemTemplate:function(Qt,jn,ai){const $i=(0,L.A)("<div>");switch(Qt.name){case"calendar":$i.append(this._widget.$element()),this._isShrinkView()&&(this._timeView.$element().addClass(q),$i.append(this._timeView.$element()));break;case"time":$i.append(this._timeView.$element()),(0,L.A)(ai).addClass(q)}return $i}.bind(this)})},popupConfig(St){const Qt=this.callBase(St);return(0,C.X)(Qt,{width:"auto"})},_preventFocusOnPopup(St){(0,L.A)(St.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},_updateDateTime(St){const Qt=this._timeView.option("value");return St.setHours(Qt.getHours(),Qt.getMinutes(),Qt.getSeconds(),Qt.getMilliseconds()),St},getValue(){let St=this._widget.option("value")??this._widget.getContouredDate();return St=St?new Date(St):new Date,this._updateDateTime(St)},dispose(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});var We=p(6717),Ue=p(2583),Ve=p(2123),tt=p(778),at=p(4859),Vt=p(662),Nt=p(1037);class Qe extends Nt.A{_getDefaultOptions(){return(0,C.X)(super._getDefaultOptions(),{showScrollbar:"never",useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null,scrollByContent:!0})}_init(){super._init(),this.option("onVisibilityChange",this._visibilityChangedHandler.bind(this)),this.option("onEnd",this._endActionHandler.bind(this))}_render(){super._render(),this._renderSelectedItemFrame(),this.$element().addClass("dx-dateviewroller"),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._renderWheelEvent(),this._renderSelectedIndexChanged()}_renderSelectedIndexChanged(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")}_renderWheelEvent(){w.A.on((0,L.A)(this.container()),"dxmousewheel",Qt=>{this._isWheelScrolled=!0})}_renderContainerClick(){if(!this.option("showOnClick"))return;const Qt=(0,P.b4)(tt.U,this.NAME),jn=this._createActionByOption("onClick");w.A.off((0,L.A)(this.container()),Qt),w.A.on((0,L.A)(this.container()),Qt,ai=>{jn({event:ai})})}_renderItems(){const Qt=this.option("items")||[];let jn=(0,L.A)();(0,L.A)(this.content()).empty(),Qt.forEach(ai=>{jn=jn.add((0,L.A)("<div>").addClass("dx-dateview-item").append(ai))}),(0,L.A)(this.content()).append(jn),this._$items=jn,this.update()}_renderSelectedItemFrame(){(0,L.A)("<div>").addClass("dx-dateview-item-selected-frame").append((0,L.A)("<div>").addClass("dx-dateview-item-selected-border")).appendTo((0,L.A)(this.container()))}_renderSelectedValue(Qt){const jn=this._fitIndex(Qt??this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(jn)}),this._renderActiveStateItem()}_fitIndex(Qt){const ai=(this.option("items")||[]).length;return Qt>=ai?ai-1:Qt<0?0:Qt}_getItemPosition(Qt){return Math.round(this._itemHeight()*Qt)}_renderItemsClick(){const Qt=this._getItemSelector(),jn=(0,P.b4)(tt.U,this.NAME);w.A.off(this.$element(),jn,Qt),w.A.on(this.$element(),jn,Qt,this._itemClickHandler.bind(this))}_getItemSelector(){return".dx-dateview-item"}_itemClickHandler(Qt){this.option("selectedIndex",this._itemElementIndex(Qt.currentTarget))}_itemElementIndex(Qt){return this._itemElements().index(Qt)}_itemElements(){return this.$element().find(this._getItemSelector())}_renderActiveStateItem(){const Qt=this.option("selectedIndex");(0,Z.__)(this._$items,function(jn){(0,L.A)(this).toggleClass("dx-dateview-item-selected",Qt===jn)})}_shouldScrollToNeighborItem(){return"desktop"===d.A.real().deviceType&&this._isWheelScrolled}_moveTo(Qt){const{top:jn,left:ai}=function qe(St,Qt){if((0,k.Qd)(St)){const $i=(0,at.YD)(St.left,St.x),zi=(0,at.YD)(St.top,St.y);return{left:(0,k.O9)($i)?$i:void 0,top:(0,k.O9)(zi)?zi:void 0}}const{isHorizontal:jn,isVertical:ai}=new Vt.D(Qt);return{left:jn&&(0,k.O9)(St)?St:void 0,top:ai&&(0,k.O9)(St)?St:void 0}}(Qt),$i=this.scrollOffset(),zi={x:$i.left-ai,y:$i.top-jn};if(this._isVisible()&&(zi.x||zi.y))if(this._prepareDirections(!0),this._animation&&!this._shouldScrollToNeighborItem()){const _o=this;Ue.A.stop((0,L.A)(this.content())),Ue.A.animate((0,L.A)(this.content()),{duration:200,type:"slide",to:{top:Math.floor(zi.y)},complete(){(0,Ve.fw)((0,L.A)(_o.content())),_o.handleMove({delta:zi})}}),delete this._animation}else this.handleMove({delta:zi})}_validate(Qt){return this._moveIsAllowed(Qt)}_fitSelectedIndexInRange(Qt){const jn=this.option("items").length;return Math.max(Math.min(Qt,jn-1),0)}_isInNullNeighborhood(Qt){return-.1<=Qt&&Qt<=.1}_getSelectedIndexAfterScroll(Qt){const $i=this.scrollOffset().top-Qt*this._itemHeight();return this._isInNullNeighborhood($i)?Qt:this._fitSelectedIndexInRange(Qt+($i>0?1:-1))}_getNewSelectedIndex(Qt){if(this._shouldScrollToNeighborItem())return this._getSelectedIndexAfterScroll(Qt);this._animation=!0;const jn=this.scrollOffset().top/this._itemHeight();return Math.round(jn)}_endActionHandler(){const Qt=this.option("selectedIndex"),jn=this._getNewSelectedIndex(Qt);jn===Qt?this._renderSelectedValue(jn):this.option("selectedIndex",jn),this._isWheelScrolled=!1}_itemHeight(){const Qt=this._$items.first();return(0,G.Oq)(Qt)}_toggleActive(Qt){this.$element().toggleClass("dx-state-active",Qt)}_isVisible(){return(0,L.A)(this.container()).is(":visible")}_fireSelectedIndexChanged(Qt,jn){this._selectedIndexChanged({value:Qt,previousValue:jn,event:void 0})}_visibilityChanged(Qt){super._visibilityChanged(Qt),this._visibilityChangedHandler(Qt)}_visibilityChangedHandler(Qt){Qt&&(this._visibilityTimer=setTimeout(()=>{this._renderSelectedValue(this.option("selectedIndex"))})),this.toggleActiveState(!1)}toggleActiveState(Qt){this.$element().toggleClass("dx-dateviewroller-current",Qt)}_refreshSelectedIndex(){const Qt=this.option("selectedIndex"),jn=this._fitIndex(Qt);jn===Qt?this._renderActiveStateItem():this.option("selectedIndex",jn)}_optionChanged(Qt){switch(Qt.name){case"selectedIndex":this._fireSelectedIndexChanged(Qt.value,Qt.previousValue),this._renderSelectedValue(Qt.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:super._optionChanged(Qt)}}_dispose(){clearTimeout(this._visibilityTimer),super._dispose()}}(0,S.A)("dxDateViewRoller",Qe);const Ct=Qe,ji=De.A.inherit({_valueOption(){const St=this.option("value"),Qt=new Date(St);return!St||isNaN(Qt)?this._getDefaultDate():Qt},_getDefaultDate(){const St=new Date;return"date"===this.option("type")?new Date(St.getFullYear(),St.getMonth(),St.getDate()):St},_getDefaultOptions(){return(0,C.X)(this.callBase(),{minDate:Se.MIN_DATEVIEW_DEFAULT_DATE,maxDate:Se.MAX_DATEVIEW_DEFAULT_DATE,type:"date",value:new Date,applyCompactClass:!1})},_defaultOptionsRules(){return this.callBase().concat([{device:St=>"desktop"!==St.deviceType,options:{applyCompactClass:!0}}])},_render(){this.callBase(),this.$element().addClass("dx-dateview"),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses(St,Qt){this.$element().addClass(`dx-dateview-${St}`),Qt&&this.$element().removeClass(`dx-dateview-${Qt}`)},_toggleCompactClass(){this.$element().toggleClass("dx-dateview-compact",this.option("applyCompactClass"))},_wrapper(){return this._$wrapper},_renderContentImpl(){this._$wrapper=(0,L.A)("<div>").addClass("dx-dateview-wrapper"),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers(){this._$rollersContainer||(this._$rollersContainer=(0,L.A)("<div>").addClass("dx-dateview-rollers")),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};const St=this;(0,Z.__)(St._rollerConfigs,Qt=>{const jn=(0,L.A)("<div>").appendTo(St._$rollersContainer).addClass(`dx-dateviewroller-${St._rollerConfigs[Qt].type}`);St._rollers[St._rollerConfigs[Qt].type]=St._createComponent(jn,Ct,{items:St._rollerConfigs[Qt].displayItems,selectedIndex:St._rollerConfigs[Qt].selectedIndex,showScrollbar:"never",scrollByContent:!0,onStart(ai){const $i=ai.component;$i._toggleActive(!0),St._setActiveRoller(St._rollerConfigs[Qt],$i.option("selectedIndex"))},onEnd(ai){ai.component._toggleActive(!1)},onClick(ai){const $i=ai.component;$i._toggleActive(!0),St._setActiveRoller(St._rollerConfigs[Qt],$i.option("selectedIndex")),St._setRollerState(St._rollerConfigs[Qt],$i.option("selectedIndex")),$i._toggleActive(!1)},onSelectedIndexChanged(ai){St._setRollerState(St._rollerConfigs[Qt],ai.component.option("selectedIndex"))}})}),St._$rollersContainer.appendTo(St._wrapper())},_createRollerConfigs(St){const Qt=this;St=St||Qt.option("type"),Qt._rollerConfigs={},v.A.getFormatParts(Se.FORMATS_MAP[St]).forEach(jn=>{Qt._createRollerConfig(jn)})},_createRollerConfig(St){const Qt=Se.DATE_COMPONENTS_INFO[St],jn=this._calculateRollerConfigValueRange(St),{startValue:ai}=jn,{endValue:$i}=jn,{formatter:zi}=Qt,_o=this._getCurrentDate(),$o={type:St,setValue:Qt.setter,valueItems:[],displayItems:[],getIndex:gs=>gs[Qt.getter]()-ai};for(let gs=ai;gs<=$i;gs++)$o.valueItems.push(gs),$o.displayItems.push(zi(gs,_o));$o.selectedIndex=$o.getIndex(_o),this._rollerConfigs[St]=$o},_setActiveRoller(St){const Qt=St&&this._rollers[St.type];(0,Z.__)(this._rollers,function(){this.toggleActiveState(this===Qt)})},_updateRollersPosition(){const St=this;(0,Z.__)(this._rollers,function(Qt){const jn=St._rollerConfigs[Qt].getIndex(St._getCurrentDate());this.option("selectedIndex",jn)})},_setRollerState(St,Qt){if(Qt!==St.selectedIndex){const jn=St.valueItems[Qt],{setValue:ai}=St;let $i=new Date(this._getCurrentDate()),zi=$i.getDate();const _o=this.option("minDate"),$o=this.option("maxDate");"month"===St.type?zi=Math.min(zi,Se.getMaxMonthDay($i.getFullYear(),jn)):"year"===St.type&&(zi=Math.min(zi,Se.getMaxMonthDay(jn,$i.getMonth()))),$i.setDate(zi),$i[ai](jn);const gs=X.A.normalizeDate($i,_o,$o);$i=Se.mergeDates(gs,$i,"time"),$i=X.A.normalizeDate($i,_o,$o),this.option("value",$i),St.selectedIndex=Qt}"year"===St.type&&this._refreshRollers(),"month"===St.type&&(this._refreshRoller("day"),this._refreshRoller("hours"))},_refreshRoller(St){const Qt=this._rollers[St];if(Qt){this._createRollerConfig(St);const jn=this._rollerConfigs[St];("day"===St||jn.displayItems.toString()!==Qt.option("items").toString())&&Qt.option({items:jn.displayItems,selectedIndex:jn.selectedIndex})}},_getCurrentDate(){const St=this._valueOption(),Qt=this.option("minDate"),jn=this.option("maxDate");return X.A.normalizeDate(St,Qt,jn)},_calculateRollerConfigValueRange(St){const Qt=this._getCurrentDate(),jn=this.option("minDate"),ai=this.option("maxDate"),$i=X.A.sameYear(Qt,jn),zi=$i&&Qt.getMonth()===jn.getMonth(),_o=X.A.sameYear(Qt,ai),$o=_o&&Qt.getMonth()===ai.getMonth(),gs=zi&&Qt.getDate()===jn.getDate(),xn=$o&&Qt.getDate()===ai.getDate(),Bn=Se.DATE_COMPONENTS_INFO[St];let{startValue:Gn}=Bn,{endValue:Ri}=Bn;return"year"===St&&(Gn=jn.getFullYear(),Ri=ai.getFullYear()),"month"===St&&($i&&(Gn=jn.getMonth()),_o&&(Ri=ai.getMonth())),"day"===St&&(Ri=Se.getMaxMonthDay(Qt.getFullYear(),Qt.getMonth()),$i&&zi&&(Gn=jn.getDate()),_o&&$o&&(Ri=ai.getDate())),"hours"===St&&(Gn=gs?jn.getHours():Gn,Ri=xn?ai.getHours():Ri),{startValue:Gn,endValue:Ri}},_refreshRollers(){this._refreshRoller("month"),this._refreshRoller("day"),this._refreshRoller("hours")},_optionChanged(St){switch(St.name){case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(St.value,St.previousValue);break;case"visible":this.callBase(St),St.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(St)}},_clean(){this.callBase(),delete this._$rollersContainer}});(0,S.A)("dxDateView",ji);const Mi=ji,Vo=(0,M.zk)(),ti=We.A.inherit({NAME:"DateView",getDefaultOptions(){return(0,C.X)(this.callBase(),{openOnFieldClick:!0,applyButtonText:H.A.format("OK"),"dropDownOptions.showTitle":!0})},getDisplayFormat(St){return St||Se.FORMATS_MAP[this.dateBox.option("type")]},popupConfig(St){return{toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:St.onInitialized,defaultOptionsRules:[{device:{platform:"android"},options:{width:333,height:331}},{device(Qt){const{platform:jn}=Qt;return"generic"===jn||"ios"===jn},options:{width:"auto",height:"auto"}},{device(Qt){const{platform:jn}=Qt,{phone:ai}=Qt;return"generic"===jn&&ai},options:{width:333,maxWidth:"100%",maxHeight:"100%",height:"auto",position:{collision:"flipfit flip"}}},{device:{platform:"ios",phone:!0},options:{width:"100%",position:{my:"bottom",at:"bottom",of:Vo}}}]}},_renderWidget(){if((0,A.inputType)(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))return void(this._widget&&(this._widget.$element().remove(),this._widget=null));const St=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{const Qt=(0,L.A)("<div>").appendTo(St.$content());this._widget=this._createWidget(Qt)}this._widget.$element().appendTo(this._getWidgetContainer())},_getWidgetName:()=>Mi,renderOpenedState(){this.callBase(),this._widget&&this._widget.option("value",this._widget._getCurrentDate())},_getWidgetOptions(){return{value:this.dateBoxValue()||new Date,type:this.dateBox.option("type"),minDate:this.dateBox.dateOption("min")||new Date(1900,0,1),maxDate:this.dateBox.dateOption("max")||new Date(Date.now()+50*Se.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}});p(5470);var ei=p(2392),Rt=p(2773);const Jt=(0,M.zk)(),Jn={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},vo=We.A.inherit({NAME:"List",supportedKeys:()=>({space:at.lQ,home:at.lQ,end:at.lQ}),getDefaultOptions(){return(0,C.X)(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:St=>St||"shorttime",popupConfig:St=>St,getValue(){const St=this._widget.option("selectedIndex");return-1===St?this.dateBox.option("value"):this._getDateByItemData(this._widgetItems[St])},useCurrentDateByDefault:()=>!0,getDefaultDate:()=>new Date(null),popupShowingHandler(){this.dateBox._dimensionChanged()},_renderWidget(){this.callBase(),this._refreshItems()},_getWidgetName:()=>ei.A,_getWidgetOptions(){return{itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant(St){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",St.actionValue)},_refreshItems(){this._widgetItems=this._getTimeListItems(),this._widget.option("items",this._widgetItems)},renderOpenedState(){this._widget&&(this._widget.option("focusedElement",null),this._setSelectedItemsByValue(),this._widget.option("templatesRenderAsynchronously")?this._asyncScrollTimeout=setTimeout(this._scrollToSelectedItem.bind(this)):this._scrollToSelectedItem())},dispose(){this.callBase(),clearTimeout(this._asyncScrollTimeout)},_updateValue(){this._widget&&(this._refreshItems(),this._setSelectedItemsByValue(),this._scrollToSelectedItem())},_setSelectedItemsByValue(){const St=this.dateBoxValue(),Qt=this._getDateIndex(St);-1===Qt?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",Qt)},_scrollToSelectedItem(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex(St){let Qt=-1;for(let jn=0,ai=this._widgetItems.length;jn<ai;jn++)if(this._areDatesEqual(St,this._widgetItems[jn])){Qt=jn;break}return Qt},_areDatesEqual:(St,Qt)=>(0,k.$P)(St)&&(0,k.$P)(Qt)&&St.getHours()===Qt.getHours()&&St.getMinutes()===Qt.getMinutes(),_getTimeListItems(){let St=this.dateBox.dateOption("min")||this._getBoundaryDate("min");const Qt=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),jn=this.dateBox.dateOption("value")||null;let ai=Qt-St;const $i=St.getMinutes()%this.dateBox.option("interval");return ai<0?[]:(ai>Se.ONE_DAY&&(ai=Se.ONE_DAY),jn-St<Se.ONE_DAY||(St=this._getBoundaryDate("min"),St.setMinutes($i),jn&&Math.abs(jn-Qt)<Se.ONE_DAY&&(ai=(60*Qt.getHours()+Math.abs(Qt.getMinutes()-$i))*Se.ONE_MINUTE)),this._getRangeItems(St,new Date(St),ai))},_getRangeItems(St,Qt,jn){const ai=[],$i=this.dateBox.option("interval");for(;Qt-St<=jn;)ai.push(new Date(Qt)),Qt.setMinutes(Qt.getMinutes()+$i);return ai},_getBoundaryDate(St){const Qt=Jn[St],jn=new Date((0,at.YD)(this.dateBox.dateOption("value"),0));return new Date(jn.getFullYear(),jn.getMonth(),jn.getDate(),Qt.getHours(),Qt.getMinutes())},_timeListItemTemplate(St){const Qt=this.dateBox.option("displayFormat");return v.A.format(St,this.getDisplayFormat(Qt))},_listItemClickHandler(St){if("useButtons"===this.dateBox.option("applyValueMode"))return;const Qt=this._getDateByItemData(St.itemData);this.dateBox.option("opened",!1),this.dateBoxValue(Qt,St.event)},_getDateByItemData(St){let Qt=this.dateBox.option("value");const jn=St.getHours(),ai=St.getMinutes(),$i=St.getSeconds(),zi=St.getFullYear(),_o=St.getMonth(),$o=St.getDate();return Qt?(Qt=this.dateBox.option("dateSerializationFormat")?U.A.deserializeDate(Qt):new Date(Qt),Qt.setHours(jn),Qt.setMinutes(ai),Qt.setSeconds($i),Qt.setFullYear(zi),Qt.setMonth(_o),Qt.setDate($o)):Qt=new Date(zi,_o,$o,jn,ai,0,0),Qt},getKeyboardListener(){return this._widget},_updatePopupHeight(){const St=(0,Rt.b)(this.dateBox.option("dropDownOptions.height"));if(void 0===St||"auto"===St){this.dateBox._setPopupOption("height","auto");const Qt=(0,G.P$)(this._widget.$element()),jn=.45*(0,G.Oq)(Jt);this.dateBox._setPopupOption("height",Math.min(Qt,jn))}this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()},getParsedText(St,Qt){let jn=this.callBase(St,Qt);return jn&&(jn=Se.mergeDates(jn,new Date(null),"date")),jn}}),Wo=We.A.inherit({NAME:"Native",popupConfig:St=>(0,C.X)({},St,{width:"auto"}),getParsedText(St){return St?"datetime"===this.dateBox.option("type")?new Date(St.replace(/-/g,"/").replace("T"," ").split(".")[0]):Se.fromStandardDateFormat(St):null},renderPopupContent:at.lQ,_getWidgetName:at.lQ,_getWidgetOptions:at.lQ,_getDateBoxType(){let St=this.dateBox.option("type");return Se.SUPPORTED_FORMATS.includes(St)?"datetime"===St&&!(0,A.inputType)(St)&&(St="datetime-local"):St="date",St},customizeButtons(){const St=this.dateBox.getButton("dropDown");d.A.real().android&&St&&St.on("click",()=>{this.dateBox._input().get(0).click()})},getDefaultOptions(){return{mode:this._getDateBoxType()}},getDisplayFormat(St){const Qt=this._getDateBoxType();return St||Se.FORMATS_MAP[Qt]},renderInputMinMax(St){St.attr({min:U.A.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:U.A.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}}),To=(0,M.zk)(),cs={calendar:"calendar",rollers:"rollers",list:"list",native:"native"},bs={date:"date",datetime:"datetime",time:"time"},li={Calendar:R.A,DateView:ti,Native:Wo,CalendarWithTime:fe,List:vo},Ni=J.A.inherit({_supportedKeys(){return(0,C.X)(this.callBase(),this._strategy.supportedKeys())},_renderButtonContainers(){this.callBase.apply(this,arguments),this._strategy.customizeButtons()},_getDefaultOptions(){return(0,C.X)(this.callBase(),{type:"date",showAnalogClock:!0,value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,displayFormat:null,interval:30,disabledDates:null,pickerType:cs.calendar,invalidDateMessage:H.A.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:H.A.format("validation-range"),applyButtonText:H.A.format("OK"),adaptivityEnabled:!1,calendarOptions:{},useHiddenSubmitElement:!0,_showValidationIcon:!0})},_defaultOptionsRules(){return this.callBase().concat([{device:{platform:"ios"},options:{"dropDownOptions.showTitle":!0}},{device:{platform:"android"},options:{buttonsLocation:"bottom after"}},{device(){const St=d.A.real(),{platform:Qt}=St;return"ios"===Qt||"android"===Qt},options:{pickerType:cs.native}},{device:{platform:"generic",deviceType:"desktop"},options:{buttonsLocation:"bottom after"}}])},_initOptions(St){this._userOptions=(0,C.X)({},St),this.callBase(St),this._updatePickerOptions()},_updatePickerOptions(){let St=this.option("pickerType");const Qt=this.option("type");St===cs.list&&(Qt===bs.datetime||Qt===bs.date)&&(St=cs.calendar),Qt===bs.time&&St===cs.calendar&&(St=cs.list),this._pickerType=St,this._setShowDropDownButtonOption()},_setShowDropDownButtonOption(){const{platform:St}=d.A.real(),Qt="android"===St&&m.A.mozilla,jn=this._isNativeType();let ai="generic"!==St||!jn;jn&&Qt&&(ai=!1),this.option({showDropDownButton:ai})},_init(){this._initStrategy(),this.option((0,C.X)({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this.callBase()},_toLowerCaseFirstLetter:St=>St.charAt(0).toLowerCase()+St.substr(1),_initStrategy(){const St=this._getStrategyName(this._getFormatType());this._strategy&&this._strategy.NAME===St||(this._strategy=new(0,li[St])(this))},_getFormatType(){const St=this.option("type"),Qt=/h|m|s/g.test(St);let ai="";return/d|M|Y/g.test(St)&&(ai+=bs.date),Qt&&(ai+=bs.time),ai},_getStrategyName(St){const Qt=this._pickerType;return Qt===cs.rollers?"DateView":Qt===cs.native?"Native":St===bs.date?"Calendar":St===bs.datetime?"CalendarWithTime":"List"},_initMarkup(){this.$element().addClass("dx-datebox"),this.callBase(),this._refreshFormatClass(),this._refreshPickerTypeClass(),this._strategy.renderInputMinMax(this._input())},_render(){this.callBase(),this._formatValidationIcon()},_renderDimensions(){this.callBase(),this.$element().toggleClass("dx-auto-width",!this.option("width")),this._updatePopupWidth(),this._updatePopupHeight()},_dimensionChanged(){this.callBase(),this._updatePopupHeight()},_updatePopupHeight(){var St,Qt;this._popup&&(null===(St=(Qt=this._strategy)._updatePopupHeight)||void 0===St||St.call(Qt))},_refreshFormatClass(){const St=this.$element();(0,Z.__)(bs,(Qt,jn)=>{St.removeClass(`dx-datebox-${jn}`)}),St.addClass(`dx-datebox-${this.option("type")}`)},_refreshPickerTypeClass(){const St=this.$element();(0,Z.__)(cs,(Qt,jn)=>{St.removeClass(`dx-datebox-${jn}`)}),St.addClass(`dx-datebox-${this._pickerType}`)},_formatValidationIcon(){if(!(0,M.Vd)())return;const St=this._input().get(0),Qt=this.option("rtlEnabled"),jn=this._getClearButtonWidth(),ai=this._getLongestElementDimensions(),$i=parseFloat(To.getComputedStyle(St).width)-jn,zi=ai.width>$i,{style:_o}=St;this.$element().toggleClass("dx-show-invalid-badge",!zi&&this.option("_showValidationIcon")),zi?(void 0===this._storedPadding&&(this._storedPadding=Qt?ai.leftPadding:ai.rightPadding),Qt?_o.paddingLeft=0:_o.paddingRight=0):Qt?_o.paddingLeft=`${this._storedPadding}px`:_o.paddingRight=`${this._storedPadding}px`},_getClearButtonWidth(){let St=0;if(this._isClearButtonVisible()&&""===this._input().val()){const Qt=this.$element().find(".dx-clear-button-area").get(0);St=parseFloat(To.getComputedStyle(Qt).width)}return St},_getLongestElementDimensions(){const St=this._strategy.getDisplayFormat(this.option("displayFormat")),Qt=v.A.format(Se.getLongestDate(St,v.A.getMonthNames(),v.A.getDayNames()),St),jn=this._input(),ai=jn.get(0),$i=(0,T.D2)(jn,Qt),_o=void 0!==this._storedPadding?this._storedPadding:0;$i.appendTo(this.$element());const $o=parseFloat(To.getComputedStyle($i.get(0)).width),gs=parseFloat(To.getComputedStyle(ai).paddingRight),xn=parseFloat(To.getComputedStyle(ai).paddingLeft),Bn=$o+xn+gs+_o;return $i.remove(),{width:Bn,leftPadding:xn,rightPadding:gs}},_getKeyboardListeners(){return this.callBase().concat([this._strategy&&this._strategy.getKeyboardListener()])},_renderPopup(){this.callBase(),this._popup.$wrapper().addClass("dx-datebox-wrapper"),this._renderPopupWrapper()},_getPopupToolbarItems(){var St,Qt;const jn=this.callBase();return(null===(St=(Qt=this._strategy)._getPopupToolbarItems)||void 0===St?void 0:St.call(Qt,jn))??jn},_popupConfig(){const St=this.callBase();return(0,C.X)(this._strategy.popupConfig(St),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper(){if(!this._popup)return;const St=this.$element(),Qt=(0,C.X)({},bs,cs);(0,Z.__)(Qt,(jn,ai)=>{St.removeClass(`dx-datebox-wrapper-${ai}`)}),this._popup.$wrapper().addClass(`dx-datebox-wrapper-${this.option("type")}`).addClass(`dx-datebox-wrapper-${this._pickerType}`).addClass("dx-dropdowneditor-overlay")},_renderPopupContent(){this.callBase(),this._strategy.renderPopupContent()},_popupShowingHandler(){this.callBase(),this._strategy.popupShowingHandler()},_popupShownHandler(){this.callBase(),this._strategy.renderOpenedState()},_popupHiddenHandler(){this.callBase(),this._strategy.renderOpenedState(),this._strategy.popupHiddenHandler()},_visibilityChanged(St){St&&this._formatValidationIcon()},_clearValueHandler(St){this.option("text",""),this.callBase(St)},_readOnlyPropValue(){if(this._pickerType===cs.rollers)return!0;const{platform:St}=d.A.real();return!this._isNativeType()||"ios"!==St&&"android"!==St?this.callBase():this.option("readOnly")},_isClearButtonVisible(){return this.callBase()&&!this._isNativeType()},_renderValue(){const St=this.dateOption("value");return this.option("text",this._getDisplayedText(St)),this._strategy.renderValue(),this.callBase()},_setSubmitValue(){const St=this.dateOption("value"),Qt=this.option("dateSerializationFormat"),jn=Se.SUBMIT_FORMATS_MAP[this.option("type")],ai=Qt?U.A.serializeDate(St,Qt):Se.toStandardDateFormat(St,jn);this._getSubmitElement().val(ai)},_getDisplayedText(St){const Qt=this.option("mode");let jn;if("text"===Qt){const ai=this._strategy.getDisplayFormat(this.option("displayFormat"));jn=v.A.format(St,ai)}else{const ai=this._getFormatByMode(Qt);jn=ai?v.A.format(St,ai):Se.toStandardDateFormat(St,Qt)}return jn},_getFormatByMode:St=>(0,A.inputType)(St)?null:Se.FORMATS_MAP[St],_valueChangeEventHandler(St){const{text:Qt,type:jn,validationError:ai}=this.option(),$i=this.dateOption("value");if(Qt===this._getDisplayedText($i))return void this._recallInternalValidation($i,ai);const zi=this._getParsedDate(Qt),_o=$i??this._getDateByDefault(),$o=Se.mergeDates(_o,zi,jn);if(this._applyInternalValidation(zi&&"time"===jn?$o:zi).isValid){const xn=this._getDisplayedText($o);_o&&$o&&_o.getTime()===$o.getTime()&&xn!==Qt?this._renderValue():this.dateValue($o,St)}},_recallInternalValidation(St,Qt){(!Qt||Qt.editorSpecific)&&(this._applyInternalValidation(St),this._applyCustomValidation(St))},_getDateByDefault(){return this._strategy.useCurrentDateByDefault()&&this._strategy.getDefaultDate()},_getParsedDate(St){const Qt=this._strategy.getDisplayFormat(this.option("displayFormat"));return this._strategy.getParsedText(St,Qt)??void 0},_applyInternalValidation(St){const jn=!!this.option("text")&&null!==St,ai=!!St&&(0,k.$P)(St)&&!isNaN(St.getTime()),$i=ai&&X.A.dateInRange(St,this.dateOption("min"),this.dateOption("max"),this.option("type")),zi=!jn&&!St||$i;let _o="";return ai?$i||(_o=this.option("dateOutOfRangeMessage")):_o=this.option("invalidDateMessage"),this._updateInternalValidationState(zi,_o),{isValid:zi,isDate:ai}},_updateInternalValidationState(St,Qt){this.option({isValid:St,validationError:St?null:{editorSpecific:!0,message:Qt}})},_applyCustomValidation(St){this.validationRequest.fire({editor:this,value:this._serializeDate(St)})},_isValueChanged(St){const Qt=this.dateOption("value");return(Qt&&Qt.getTime())!==(St&&St.getTime())},_isTextChanged(St){return this.option("text")!==(St&&this._getDisplayedText(St)||"")},_renderProps(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy()},_getPopupTitle(){const St=this.option("placeholder");if(St)return St;const Qt=this.option("type");return Qt===bs.time?H.A.format("dxDateBox-simulatedDataPickerTitleTime"):Qt===bs.date||Qt===bs.datetime?H.A.format("dxDateBox-simulatedDataPickerTitleDate"):""},_refreshStrategy(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler(St){const Qt=this._strategy.getValue();this.dateValue(Qt,St.event),this.callBase()},_dispose(){var St;this.callBase(),null===(St=this._strategy)||void 0===St||St.dispose()},_isNativeType(){return this._pickerType===cs.native},_updatePopupTitle(){var St;null===(St=this._popup)||void 0===St||St.option("title",this._getPopupTitle())},_optionChanged(St){switch(St.name){case"showClearButton":case"buttons":case"isValid":case"readOnly":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"pickerType":this._updatePickerOptions({pickerType:St.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:St.value}),this._refreshStrategy(),this._refreshFormatClass(),this._renderPopupWrapper(),this._formatValidationIcon(),this._updateValue();break;case"placeholder":this.callBase.apply(this,arguments),this._updatePopupTitle();break;case"min":case"max":{const Qt=this.option("isValid");this._applyInternalValidation(this.dateOption("value")),Qt||this._applyCustomValidation(this.dateOption("value")),this._invalidate();break}case"dateSerializationFormat":case"interval":case"disabledDates":case"calendarOptions":this._invalidate();break;case"displayFormat":this.option("text",this._getDisplayedText(this.dateOption("value"))),this._renderInputValue();break;case"text":this._strategy.textChangedHandler(St.value),this.callBase.apply(this,arguments);break;case"showDropDownButton":this._formatValidationIcon(),this.callBase.apply(this,arguments);break;case"todayButtonText":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"invalidDateMessage":case"dateOutOfRangeMessage":case"adaptivityEnabled":case"showAnalogClock":case"_showValidationIcon":break;default:this.callBase.apply(this,arguments)}},_getSerializationFormat(){const St=this.option("value");return this.option("dateSerializationFormat")&&(0,F.A)().forceIsoDateParsing?this.option("dateSerializationFormat"):(0,k.kf)(St)?"number":(0,k.Kg)(St)?U.A.getDateSerializationFormat(St):void 0},_updateValue(St){this.callBase(),this._applyInternalValidation(St??this.dateOption("value"))},dateValue(St,Qt){const jn=this._isValueChanged(St);return jn&&Qt&&this._saveValueChangeEvent(Qt),jn||(this._isTextChanged(St)?this._updateValue(St):""===this.option("text")&&this._applyCustomValidation(St)),this.dateOption("value",St)},dateOption(St,Qt){if(1===arguments.length)return U.A.deserializeDate(this.option(St));this.option(St,this._serializeDate(Qt))},_serializeDate(St){const Qt=this._getSerializationFormat();return U.A.serializeDate(St,Qt)},_clearValue(){const St=this.option("value");this.callBase(),null===St&&this._applyCustomValidation(null)},clear(){const St=this.option("value");this.callBase(),null===St&&this._applyInternalValidation(null)}}),Yi=St=>St.getMonth()+1,Sn=(St,Qt)=>{const jn=St.getDate(),ai=jt("M",St),$i=(0,e.df)(parseInt(Qt),ai.min,ai.max);St.setMonth($i-1,1);const{min:zi,max:_o}=jt("dM",St),$o=(0,e.df)(jn,zi,_o);St.setDate($o)},ri={a:St=>St.getHours()<12?0:1,E:"getDay",y:"getFullYear",M:Yi,L:Yi,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},It=(0,C.X)({},(0,B.rt)(),{a:(St,Qt)=>{const jn=St.getHours();jn>=12!=!!parseInt(Qt)&&St.setHours((jn+12)%24)},d:(St,Qt)=>{Qt>jt("dM",St).max&&St.setMonth(St.getMonth()+1),St.setDate(Qt)},h:(St,Qt)=>{const jn=St.getHours()>=12;St.setHours(+Qt%12+(jn?12:0))},M:Sn,L:Sn,E:(St,Qt)=>{Qt<0||St.setDate(St.getDate()-St.getDay()+parseInt(Qt))},y:(St,Qt)=>{const jn=St.getFullYear(),ai=String(Qt).length,$i=String(jt("y",St).max).length,zi=parseInt(String(jn).substr(0,$i-ai)+Qt);St.setFullYear(zi)}}),Pt=St=>ri[St]||(()=>St),jt=(St,Qt,jn)=>{const ai={y:{min:0,max:9999},M:{min:1,max:12},L:{min:1,max:12},d:{min:1,max:31},dM:{min:1,max:new Date(Qt.getFullYear(),Qt.getMonth()+1,0).getDate()},E:{min:0,max:6},H:{min:0,max:23},h:{min:1,max:12},m:{min:0,max:59},s:{min:0,max:59},S:{min:0,max:999},a:{min:0,max:1}};return ai[jn||St]||ai.getAmPm},ro=Ni.inherit({_supportedKeys(St){const Qt=this.callBase(St),jn=$i=>{const zi=Qt[(0,P.YD)($i)];return zi&&zi.apply(this,[$i])},ai=($i,zi)=>this._shouldUseOriginalHandler($i)?jn.apply(this,[$i]):zi.apply(this,[$i]);return(0,C.X)({},Qt,{del:$i=>ai($i,zi=>{this._revertPart(1),this._isAllSelected()||zi.preventDefault()}),backspace:$i=>ai($i,zi=>{this._revertPart(-1),this._isAllSelected()||zi.preventDefault()}),home:$i=>ai($i,zi=>{this._selectFirstPart(),zi.preventDefault()}),end:$i=>ai($i,zi=>{this._selectLastPart(),zi.preventDefault()}),escape:$i=>ai($i,zi=>{this._revertChanges(zi)}),enter:$i=>ai($i,()=>{this._enterHandler()}),leftArrow:$i=>ai($i,zi=>{this._selectNextPart(-1),zi.preventDefault()}),rightArrow:$i=>ai($i,zi=>{this._selectNextPart(1),zi.preventDefault()}),upArrow:$i=>ai($i,zi=>{this._upDownArrowHandler(1),zi.preventDefault()}),downArrow:$i=>ai($i,zi=>{this._upDownArrowHandler(-1),zi.preventDefault()})})},_shouldUseOriginalHandler(St){const Qt=this.option("opened")&&St&&!["backspace","del"].includes((0,P.YD)(St));return!this._useMaskBehavior()||Qt||St&&St.altKey},_upDownArrowHandler(St){this._setNewDateIfEmpty();const Qt=this._getActivePartValue(this._initialMaskValue),ai=this._getActivePartValue()-Qt;this._loadMaskValue(this._initialMaskValue),this._changePartValue(ai+St,!0)},_changePartValue(St,Qt){const jn=this._getActivePartProp("pattern");/^a{1,5}$/.test(jn)?this._toggleAmPm():this._partIncrease(St,Qt)},_toggleAmPm(){const St=this._getActivePartProp("text"),jn=1^x.A.getPeriodNames().indexOf(St);this._setActivePartValue(jn)},_getDefaultOptions(){return(0,C.X)(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0)})},_isSingleCharKey(St){let{originalEvent:Qt,alt:jn}=St;const ai=Qt.data||Qt.key;return"string"==typeof ai&&1===ai.length&&!jn&&!(0,P.By)(Qt)},_isSingleDigitKey(St){var Qt;const jn=null===(Qt=St.originalEvent)||void 0===Qt?void 0:Qt.data;return 1===jn?.length&&parseInt(jn,10)},_useBeforeInputEvent:()=>d.A.real().android,_keyInputHandler(St,Qt){const jn=this._input().val();this._processInputKey(Qt),St.preventDefault(),jn!==this._input().val()&&w.A.trigger(this._input(),"input")},_keyboardHandler(St){let{key:Qt}=St.originalEvent;const jn=this.callBase(St);return!this._useMaskBehavior()||this._useBeforeInputEvent()||(m.A.chrome&&"Process"===St.key&&0===St.code.indexOf("Digit")?(Qt=St.code.replace("Digit",""),this._processInputKey(Qt),this._maskInputHandler=()=>{this._renderSelectedPart()}):this._isSingleCharKey(St)&&this._keyInputHandler(St.originalEvent,Qt)),jn},_maskBeforeInputHandler(St){this._maskInputHandler=null;const{inputType:Qt}=St.originalEvent;"insertCompositionText"===Qt&&(this._maskInputHandler=()=>{this._renderSelectedPart()});const jn="deleteContentBackward"===Qt;if(jn||"deleteContentForward"===Qt){const zi=jn?-1:1;this._maskInputHandler=()=>{this._revertPart(),this._selectNextPart(zi)}}if(this._useMaskBehavior()&&this._isSingleCharKey(St))return this._keyInputHandler(St,St.originalEvent.data),!0},_keyPressHandler(St){const{originalEvent:Qt}=St;"insertCompositionText"===Qt?.inputType&&this._isSingleDigitKey(St)&&(this._processInputKey(Qt.data),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()),this.callBase(St),this._maskInputHandler&&(this._maskInputHandler(),this._maskInputHandler=null)},_processInputKey(St){this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(St))?this._searchString(St):this._searchNumber(St)},_isAllSelected(){const St=this._caret();return St.end-St.start===this.option("text").length},_getFormatPattern(){if(this._formatPattern)return this._formatPattern;const St=this._strategy.getDisplayFormat(this.option("displayFormat"));return this._formatPattern=(0,k.Kg)(St)&&!v.A._getPatternByFormat(St)?St:(0,b.g)(jn=>v.A.format(jn,St)),this._formatPattern},_setNewDateIfEmpty(){if(!this._maskValue){const St="time"===this.option("type")?new Date(null):new Date;this._maskValue=St,this._initialMaskValue=St,this._renderDateParts()}},_partLimitsReached(St){const Qt=String(St).length,jn=this._getActivePartProp("pattern").length,$i=1===jn?Qt:Math.min(jn,Qt),zi=this._searchValue.length===$i,_o=parseInt(`${this._searchValue}0`)>St;return zi||_o},_searchNumber(St){const{max:Qt}=this._getActivePartLimits(),jn=String(Qt).length;this._searchValue=(this._searchValue+St).substr(-jn),isNaN(this._searchValue)&&(this._searchValue=St),this._setActivePartValue(this._searchValue),this._partLimitsReached(Qt)&&this._selectNextPart(1)},_searchString(St){if(!isNaN(parseInt(this._getActivePartProp("text"))))return;const Qt=this._getActivePartProp("limits")(this._maskValue),jn=this._searchValue+St.toLowerCase(),ai=Qt.max-Qt.min;for(let $i=0;$i<=ai;$i++)if(this._loadMaskValue(this._initialMaskValue),this._changePartValue($i+1),0===this._getActivePartProp("text").toLowerCase().indexOf(jn))return void(this._searchValue=jn);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(St))},_clearSearchValue(){this._searchValue=""},_revertPart(St){if(!this._isAllSelected()){const Qt=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(Qt),this._selectNextPart(St)}this._clearSearchValue()},_useMaskBehavior(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_prepareRegExpInfo(){this._regExpInfo=(0,B.wu)(this._getFormatPattern(),v.A);const{regexp:St}=this._regExpInfo,{source:Qt}=St,{flags:jn}=St,ai=new RegExp(/(\{[0-9]+,?[0-9]*\})/),$i=Qt.split(ai).map(zi=>ai.test(zi)?zi:j.A.convertDigits(zi,!1)).join("");this._regExpInfo.regexp=new RegExp($i,jn)},_initMaskState(){this._activePartIndex=0,this._formatPattern=null,this._prepareRegExpInfo(),this._loadMaskValue()},_renderMask(){this.callBase(),this._detachMaskEvents(),this._clearMaskState(),this._useMaskBehavior()&&(this._attachMaskEvents(),this._initMaskState(),this._renderDateParts())},_renderDateParts(){if(!this._useMaskBehavior())return;const St=this.option("text")||this._getDisplayedText(this._maskValue);St&&(this._dateParts=((St,Qt)=>{const jn=Qt.regexp.exec(St);let ai=0,$i=0;const zi=[];for(let _o=1;_o<jn.length;_o++){ai=$i,$i=ai+jn[_o].length;const $o=Qt.patterns[_o-1].replace(/^'|'$/g,""),gs=Pt($o[0]);zi.push({index:_o-1,isStub:$o===jn[_o],caret:{start:ai,end:$i},pattern:$o,text:jn[_o],limits:function(){for(var xn=arguments.length,Bn=new Array(xn),Gn=0;Gn<xn;Gn++)Bn[Gn]=arguments[Gn];return jt($o[0],...Bn)},setter:It[$o[0]]||at.lQ,getter:gs})}return zi})(St,this._regExpInfo),this._input().is(":hidden")||this._selectNextPart())},_detachMaskEvents(){w.A.off(this._input(),".dateBoxMask")},_attachMaskEvents(){w.A.on(this._input(),(0,P.b4)("dxclick","dateBoxMask"),this._maskClickHandler.bind(this)),w.A.on(this._input(),(0,P.b4)("paste","dateBoxMask"),this._maskPasteHandler.bind(this)),w.A.on(this._input(),(0,P.b4)("drop","dateBoxMask"),()=>{this._renderSelectedPart()}),w.A.on(this._input(),(0,P.b4)("compositionend","dateBoxMask"),this._maskCompositionEndHandler.bind(this)),this._useBeforeInputEvent()&&w.A.on(this._input(),(0,P.b4)("beforeinput","dateBoxMask"),this._maskBeforeInputHandler.bind(this))},_renderSelectedPart(){this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()},_selectLastPart(){this.option("text")&&(this._activePartIndex=this._dateParts.length,this._selectNextPart(-1))},_selectFirstPart(){this.option("text")&&(this._activePartIndex=-1,this._selectNextPart(1))},_onMouseWheel(St){this._useMaskBehavior()&&this._partIncrease(St.delta>0?1:-1,St)},_selectNextPart(){let St=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.option("text")||this._disposed)return;St&&(this._initialMaskValue=new Date(this._maskValue));let Qt=(0,e.df)(this._activePartIndex+St,0,this._dateParts.length-1);if(this._dateParts[Qt].isStub){if(!(0===Qt&&St<0||Qt===this._dateParts.length-1&&St>0))return void this._selectNextPart(St>=0?St+1:St-1);Qt=this._activePartIndex}this._activePartIndex!==Qt&&this._clearSearchValue(),this._activePartIndex=Qt,this._caret(this._getActivePartProp("caret"))},_getRealLimitsPattern(){if("d"===this._getActivePartProp("pattern")[0])return"dM"},_getActivePartLimits(St){return this._getActivePartProp("limits")(this._maskValue,St&&this._getRealLimitsPattern())},_getActivePartValue(St){St=St||this._maskValue;const Qt=this._getActivePartProp("getter");return(0,k.Tn)(Qt)?Qt(St):St[Qt]()},_addLeadingZeroes(St){const Qt=this._searchValue.match(/^0+/),jn=this._getActivePartLimits(),ai=String(jn.max).length;return((Qt&&Qt[0]||"")+String(St)).substr(-ai)},_setActivePartValue(St,Qt){Qt=Qt||this._maskValue;const jn=this._getActivePartProp("setter"),ai=this._getActivePartLimits();St=(0,e.r4)(St,ai.min,ai.max)?St:St%10,St=this._addLeadingZeroes((0,e.df)(St,ai.min,ai.max)),(0,k.Tn)(jn)?jn(Qt,St):Qt[jn](St),this._renderDisplayText(this._getDisplayedText(Qt)),this._renderDateParts()},_getActivePartProp(St){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][St]},_loadMaskValue(){let St=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dateOption("value");this._maskValue=St&&new Date(St),this._initialMaskValue=St&&new Date(St)},_saveMaskValue(){const St=this._maskValue&&new Date(this._maskValue);St&&"date"===this.option("type")&&St.setHours(0,0,0,0),this._initialMaskValue=new Date(St),this.dateOption("value",St)},_revertChanges(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText(St){this.callBase(St),this._useMaskBehavior()&&this.option("text",St)},_partIncrease(St,Qt){this._setNewDateIfEmpty();const{max:jn,min:ai}=this._getActivePartLimits(Qt);let $i=St+this._getActivePartValue();$i>jn?$i=this._applyLimits($i,{limitBase:ai,limitClosest:jn,max:jn}):$i<ai&&($i=this._applyLimits($i,{limitBase:jn,limitClosest:ai,max:jn})),this._setActivePartValue($i)},_applyLimits(St,Qt){let{limitBase:jn,limitClosest:ai,max:$i}=Qt;const zi=(St-ai)%$i;return zi?jn+zi-1*(0,e._S)(zi):ai},_maskClickHandler(){this._loadMaskValue(this._maskValue),this.option("text")&&(this._activePartIndex=((St,Qt)=>{for(let jn=0;jn<St.length;jn++)if(!St[jn].isStub&&St[jn].caret.end>=Qt)return jn;return null})(this._dateParts,this._caret().start),this._isAllSelected()||((0,k.O9)(this._activePartIndex)?this._caret(this._getActivePartProp("caret")):this._selectLastPart()))},_maskCompositionEndHandler(St){this._input().val(this._getDisplayedText(this._maskValue)),this._selectNextPart(),this._maskInputHandler=()=>{this._renderSelectedPart()}},_maskPasteHandler(St){const Qt=this._replaceSelectedText(this.option("text"),this._caret(),(0,T.KR)(St)),jn=v.A.parse(Qt,this._getFormatPattern());jn&&this._isDateValid(jn)&&(this._maskValue=jn,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),St.preventDefault()},_isDateValid:St=>(0,k.$P)(St)&&!isNaN(St),_isValueDirty(){const St=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(St&&St.getTime())},_fireChangeEvent(){this._clearSearchValue(),this._isValueDirty()&&w.A.trigger(this._input(),"change")},_enterHandler(){this._fireChangeEvent(),this._selectNextPart(1)},_focusOutHandler(St){this._useMaskBehavior()&&!St.isDefaultPrevented()?(this._fireChangeEvent(),this.callBase(St),this._selectFirstPart(St)):this.callBase(St)},_valueChangeEventHandler(St){const Qt=this.option("text");this._useMaskBehavior()?(this._saveValueChangeEvent(St),Qt?null===this._maskValue&&this._loadMaskValue(Qt):this._maskValue=null,this._saveMaskValue()):this.callBase(St)},_optionChanged(St){switch(St.name){case"useMaskBehavior":this._renderMask();break;case"displayFormat":case"mode":this.callBase(St),this._renderMask();break;case"value":this._loadMaskValue(),this.callBase(St),this._renderDateParts();break;case"emptyDateValue":break;default:this.callBase(St)}},_clearMaskState(){this._clearSearchValue(),delete this._dateParts,delete this._activePartIndex,delete this._maskValue},clear(){this._clearMaskState(),this._activePartIndex=0,this.callBase()},_clean(){this.callBase(),this._detachMaskEvents(),this._clearMaskState()}});(0,S.A)("dxDateBox",ro);const ho=ro},8649:(En,it,p)=>{"use strict";p.d(it,{CC:()=>B,Rb:()=>v,eC:()=>U,jA:()=>P,k$:()=>X,zj:()=>F});var S=p(6946),d=p(4356),m=p(1830),T=p(6054);const C=["","Webkit","Moz","O","Ms"],e={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},k=(0,d.A)(function(){return T.A.createElement("dx").style}),P=function(Z){if(Z in k())return Z;const A=Z;Z=Z.charAt(0).toUpperCase()+Z.substr(1);for(let M=1;M<C.length;M++){const H=C[M].toLowerCase()+Z;if(H in k())return H}return A},v=function(Z){return function(Z,A){let M;Z=(0,S.PT)(Z,!0);for(let H=0,J=C.length;H<J;H++){const R=C[H],L=R+Z;if(M=A((0,S.PT)(L),R),void 0===M&&(M=A(L,R)),void 0!==M)break}return M||""}(Z,function(A,M){if(A in k())return e[M]})},x=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],B=function(Z,A){return(0,m.kf)(A)&&-1===x.indexOf(Z)&&(A+="px"),A},j=function(Z,A,M){if(Z){M=(0,m.kf)(M)?M+="px":M;for(let H=0;H<Z.length;++H)Z[H].style[A]=M}},F=function(Z,A){j(Z,"width",A)},X=function(Z,A){j(Z,"height",A)},U=function(Z,A){(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&[].slice.call(Z.style).forEach(J=>{Z.style.removeProperty(J)}),A.split(";").forEach(H=>{const J=H.split(":").map(R=>R.trim());if(2===J.length){const[R,L]=J;Z.style[R]=L}})}},8664:(En,it,p)=>{"use strict";p.d(it,{Cy:()=>x,Ve:()=>B,_N:()=>b,ni:()=>v,qG:()=>j});var S=p(5704),d=p(5397),m=p(5345),T=p(2660),C=p(1832),e=p(9961),k=p(9293),w=p(9659),P=p(6211);const v="dxdragstart",x="dxdrag",b="dxdragend",B="dxdragenter",j="dxdragleave",F="dxdrop",U=[],Z=[],A=[],M={setup:function(Q,z){U.includes(Q)||(U.push(Q),Z.push([]),A.push(z||{}))},add:function(Q,z){const K=U.indexOf(Q);this.updateEventsCounter(Q,z.type,1);const ee=z.selector;Z[K].includes(ee)||Z[K].push(ee)},updateEventsCounter:function(Q,z,K){if([B,j,F].indexOf(z)>-1){const ee=(0,d.p)(Q,"dxDragEventsCount")||0;(0,d.p)(Q,"dxDragEventsCount",Math.max(0,ee+K))}},remove:function(Q,z){this.updateEventsCounter(Q,z.type,-1)},teardown:function(Q){if(!(0,d.p)(Q,"dxDragEventsCount")){const K=U.indexOf(Q);U.splice(K,1),Z.splice(K,1),A.splice(K,1),(0,d.jf)(Q,"dxDragEventsCount")}}};(0,e.A)(B,M),(0,e.A)(j,M),(0,e.A)(F,M);const G=w.A.inherit({ctor:function(Q){this.callBase(Q),this.direction="both"},_init:function(Q){this._initEvent=Q},_start:function(Q){if(Q=this._fireEvent("dxdragstart",this._initEvent),this._maxLeftOffset=Q.maxLeftOffset,this._maxRightOffset=Q.maxRightOffset,this._maxTopOffset=Q.maxTopOffset,this._maxBottomOffset=Q.maxBottomOffset,Q.targetElements||null===Q.targetElements){const z=(0,m.BO)(Q.targetElements||[]);this._dropTargets=T.Tj(z,function(K){return(0,S.A)(K).get(0)})}else this._dropTargets=U},_move:function(Q){const z=(0,k.rw)(Q),K=this._calculateOffset(z);Q=this._fireEvent("dxdrag",Q,{offset:K}),this._processDropTargets(Q),Q._cancelPreventDefault||Q.preventDefault()},_calculateOffset:function(Q){return{x:this._calculateXOffset(Q),y:this._calculateYOffset(Q)}},_calculateXOffset:function(Q){return"vertical"!==this.direction?this._fitOffset(Q.x-this._startEventData.x,this._maxLeftOffset,this._maxRightOffset):0},_calculateYOffset:function(Q){return"horizontal"!==this.direction?this._fitOffset(Q.y-this._startEventData.y,this._maxTopOffset,this._maxBottomOffset):0},_fitOffset:function(Q,z,K){return null!=z&&(Q=Math.max(Q,-z)),null!=K&&(Q=Math.min(Q,K)),Q},_processDropTargets:function(Q){const z=this._findDropTarget(Q);z===this._currentDropTarget||(this._fireDropTargetEvent(Q,j),this._currentDropTarget=z,this._fireDropTargetEvent(Q,B))},_fireDropTargetEvent:function(Q,z){if(!this._currentDropTarget)return;const K={type:z,originalEvent:Q,draggingElement:this._$element.get(0),target:this._currentDropTarget};(0,k.rC)(K)},_findDropTarget:function(Q){const z=this;let K;return T.__(U,function(ee,re){if(!z._checkDropTargetActive(re))return;const be=(0,S.A)(re);T.__(function(Q){const z=U.indexOf(Q.get(0)),K=Z[z].filter(re=>re);let ee=Q.find(K.join(", "));return Z[z].includes(void 0)&&(ee=ee.add(Q)),ee}(be),function(ce,Re){const Se=(0,S.A)(Re);z._checkDropTarget(function(Q){const z=U.indexOf(Q.get(0));return A[z]}(be),Se,(0,S.A)(K),Q)&&(K=Re)})}),K},_checkDropTargetActive:function(Q){let z=!1;return T.__(this._dropTargets,function(K,ee){return z=z||ee===Q||(0,C.gR)(ee,Q),!z}),z},_checkDropTarget:function(Q,z,K,ee){if(z.get(0)===(0,S.A)(ee.target).get(0))return!1;const be=function(Q,z){return Q.itemPositionFunc?Q.itemPositionFunc(z):z.offset()}(Q,z);if(ee.pageX<be.left||ee.pageY<be.top)return!1;const ce=function(Q,z){return Q.itemSizeFunc?Q.itemSizeFunc(z):{width:z.get(0).getBoundingClientRect().width,height:z.get(0).getBoundingClientRect().height}}(Q,z);return!(ee.pageX>be.left+ce.width||ee.pageY>be.top+ce.height||K.length&&K.closest(z).length||Q.checkDropTarget&&!Q.checkDropTarget(z,ee))&&z},_end:function(Q){const z=(0,k.rw)(Q);this._fireEvent("dxdragend",Q,{offset:this._calculateOffset(z)}),this._fireDropTargetEvent(Q,F),delete this._currentDropTarget}});(0,P.A)({emitter:G,events:["dxdragstart","dxdrag","dxdragend"]})},8684:(En,it,p)=>{"use strict";p.d(it,{A:()=>m});const S=function(T){this._options=T||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};S.prototype._fireCore=function(T,C){const e=this._firingIndexes,k=this._list,w=this._options.stopOnFalse,P=e.length;for(e[P]=0;e[P]<k.length&&(!1!==k[e[P]].apply(T,C)||!w);e[P]++);e.pop()},S.prototype.add=function(T){return"function"==typeof T&&(!this._options.unique||!this.has(T))&&this._list.push(T),this},S.prototype.remove=function(T){const C=this._list,e=this._firingIndexes,k=C.indexOf(T);if(k>-1&&(C.splice(k,1),this._firing&&e.length))for(let w=0;w<e.length;w++)k<=e[w]&&e[w]--;return this},S.prototype.has=function(T){const C=this._list;return T?C.indexOf(T)>-1:!!C.length},S.prototype.empty=function(T){return this._list=[],this},S.prototype.fireWith=function(T,C){const e=this._queue;if(C=(C=C||[]).slice?C.slice():C,this._options.syncStrategy)this._firing=!0,this._fireCore(T,C);else{if(e.push([T,C]),this._firing)return;for(this._firing=!0;e.length;){const k=e.shift();this._fireCore(k[0],k[1])}}return this._firing=!1,this._fired=!0,this},S.prototype.fire=function(){this.fireWith(this,arguments)},S.prototype.fired=function(){return this._fired};const m=function(T){return new S(T)}},8732:(En,it,p)=>{"use strict";p.d(it,{A:()=>Ee});var S=p(5737),d=p(9510),m=p(6054),T=p(9522),C=p(2925),e=p(5704),k=p(5944),w=p(4859),P=p(4270),v=p(6021),x=p(3090),b=p(2660),B=p(1363),j=p(4162),F=p(1830),X=p(5801),U=p(778),Z=p(5656),A=p(4072),M=p(3535),H=p(9209),J=p(9293),R=p(8360),L=p(402),G=p(7080),Q=p(5107);const K="dx-item",ie=/^([^.]+\[\d+\]\.)+([\w.]+)$/,pe=G.A.inherit({_activeStateUnit:`.${K}`,_supportedKeys(){const le=function(Ke,Be){(0,J.By)(Be)||(Be.preventDefault(),Be.stopPropagation(),this._moveFocus(Ke,Be))};return(0,x.X)(this.callBase(),{space:function(Ke){Ke.preventDefault(),this._enterKeyHandler(Ke)},enter:this._enterKeyHandler,leftArrow:le.bind(this,"left"),rightArrow:le.bind(this,"right"),upArrow:le.bind(this,"up"),downArrow:le.bind(this,"down"),pageUp:le.bind(this,"up"),pageDown:le.bind(this,"down"),home:le.bind(this,"first"),end:le.bind(this,"last")})},_enterKeyHandler(le){const Ke=(0,e.A)(this.option("focusedElement"));if(!Ke.length)return;const Be=this._getItemData(Ke);null!=Be&&Be.onClick&&this._itemEventHandlerByHandler(Ke,Be.onClick,{event:le}),this._itemClickHandler((0,x.X)({},le,{target:Ke.get(0),currentTarget:Ke.get(0)}))},_getDefaultOptions(){return(0,x.X)(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:R.A.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,dataSource:null,_dataController:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:le=>le?le.disabled:void 0,visibleExpr:le=>le?le.visible:void 0})},_init(){this._compileDisplayGetter(),this._initDataController(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter(){const le=this.option("displayExpr");this._displayGetter=le?(0,P.Hz)(this.option("displayExpr")):void 0},_initTemplates(){this._initItemsFromMarkup(),this._initDefaultItemTemplate(),this.callBase()},_getAnonymousTemplateName:()=>"item",_initDefaultItemTemplate(){const le=this._getFieldsMap();this._templateManager.addDefaultTemplates({item:new k.U((Ke,Be)=>{(0,F.Qd)(Be)?this._prepareDefaultItemTemplate(Be,Ke):(le&&(0,F.Tn)(le.text)&&(Be=le.text(Be)),Ke.text(String((0,w.YD)(Be,""))))},this._getBindableFields(),this.option("integrationOptions.watchMethod"),le)})},_getBindableFields:()=>["text","html"],_getFieldsMap(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate(le,Ke){(0,F.O9)(le.text)&&Ke.text(le.text),(0,F.O9)(le.html)&&Ke.html(le.html)},_initItemsFromMarkup(){const le=(0,j.zD)(this.$element(),"dxItem");if(!le.length||this.option("items").length)return;const Ke=le.map(Be=>{let{element:q,options:Oe}=Be;return/\S/.test(q.innerHTML)&&!Oe.template?Oe.template=this._prepareItemTemplate(q):(0,e.A)(q).remove(),Oe});this.option("items",Ke)},_prepareItemTemplate(le){const Ke="tmpl-"+new C.A,Be=(0,e.A)(le).detach().clone().removeAttr("data-options").addClass("dx-template-wrapper");return this._saveTemplate(Ke,Be),Ke},_dataSourceOptions:()=>({paginate:!1}),_cleanRenderedItems(){this._renderedItemsCount=0},_focusTarget(){return this.$element()},_focusInHandler(le){if(this.callBase.apply(this,arguments),!this._isFocusTarget(le.target))return;const Ke=(0,e.A)(this.option("focusedElement"));if(Ke.length)this._setFocusedItem(Ke);else{const Be=this._getActiveItem();Be.length&&this.option("focusedElement",(0,T.cc)(Be))}},_focusOutHandler(){this.callBase.apply(this,arguments);const le=(0,e.A)(this.option("focusedElement"));this._updateFocusedItemState(le,!1)},_findActiveTarget(le){return le.find(this._activeStateUnit)},_getActiveItem(le){const Ke=(0,e.A)(this.option("focusedElement"));if(Ke.length)return Ke;let Be=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0;const q=this._getActiveElement();return Be<0&&(Be=le?q.length-1:0),q.eq(Be)},_moveFocus(le){const Ke=this._getAvailableItems();let Be;switch(le){case"pageup":case"up":Be=this._prevItem(Ke);break;case"pagedown":case"down":Be=this._nextItem(Ke);break;case"right":Be=this.option("rtlEnabled")?this._prevItem(Ke):this._nextItem(Ke);break;case"left":Be=this.option("rtlEnabled")?this._nextItem(Ke):this._prevItem(Ke);break;case"first":Be=Ke.first();break;case"last":Be=Ke.last();break;default:return!1}0!==Be.length&&this.option("focusedElement",(0,T.cc)(Be))},_getVisibleItems(le){return(le=le||this._itemElements()).filter(":visible")},_getAvailableItems(le){return this._getVisibleItems(le)},_prevItem(le){const Ke=this._getActiveItem(),Be=le.index(Ke),q=le.last();let Oe=(0,e.A)(le[Be-1]);const fe=this.option("loopItemFocus");return 0===Oe.length&&fe&&(Oe=q),Oe},_nextItem(le){const Ke=this._getActiveItem(!0),Be=le.index(Ke),q=le.first();let Oe=(0,e.A)(le[Be+1]);const fe=this.option("loopItemFocus");return 0===Oe.length&&fe&&(Oe=q),Oe},_selectFocusedItem(le){this.selectItem(le)},_updateFocusedItemState(le,Ke,Be){const q=(0,e.A)(le);q.length&&(this._refreshActiveDescendant(),this._refreshItemId(q,Be),this._toggleFocusClass(Ke,q)),this._updateParentActiveDescendant()},_refreshActiveDescendant(le){this.setAria("activedescendant",(0,F.O9)(this.option("focusedElement"))?this.getFocusedItemId():null,le)},_refreshItemId(le,Ke){!Ke&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),le):this.setAria("id",null,le)},_isDisabled:le=>le&&"true"===(0,e.A)(le).attr("aria-disabled"),_setFocusedItem(le){if(!le||!le.length)return;this._updateFocusedItemState(le,!0),this.onFocusedItemChanged(this.getFocusedItemId());const{selectOnFocus:Ke}=this.option(),Be=this._isDisabled(le);Ke&&!Be&&this._selectFocusedItem(le)},_findItemElementByItem(le){let Ke=(0,e.A)();const Be=this;return this.itemElements().each(function(){const q=(0,e.A)(this);if(q.data(Be._itemDataKey())===le)return Ke=q,!1}),Ke},_getIndexByItem(le){return this.option("items").indexOf(le)},_itemOptionChanged(le,Ke,Be,q){const Oe=this._findItemElementByItem(le);Oe.length&&(this.constructor.ItemClass.getInstance(Oe).setDataField(Ke,Be)||this._refreshItem(Oe,le),"disabled"===Ke&&Be&&this._resetItemFocus(Oe))},_resetItemFocus(le){le.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem(le){const Ke=this._getItemData(le),Be=le.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+Be,Ke,null,le)},_updateParentActiveDescendant:w.lQ,_optionChanged(le){if("items"===le.name){const Ke=le.fullName.match(ie);if(Ke&&Ke.length){const Be=Ke[Ke.length-1],q=le.fullName.replace(`.${Be}`,""),Oe=this.option(q);return void this._itemOptionChanged(Oe,Be,le.value,le.previousValue)}}switch(le.name){case"items":case"_itemAttributes":case"itemTemplateProperty":case"useItemTextAsTitle":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":case"encodeNoDataText":this._renderEmptyMessage();break;case"itemTemplate":case"visibleExpr":case"disabledExpr":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"focusedElement":this._updateFocusedItemState(le.previousValue,!1,!0),this._setFocusedItem((0,e.A)(le.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;default:this.callBase(le)}},_invalidate(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage(){return this._expectNextPageLoading(),this._dataController.loadNextPage()},_expectNextPageLoading(){this._startIndexForAppendedItems=0},_expectLastItemLoading(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler(le){const Ke=this.option("items");this._initialized&&Ke&&this._shouldAppendItems()?(this._renderedItemsCount=Ke.length,(!this._isLastPage()||-1!==this._startIndexForAppendedItems)&&(this.option().items=Ke.concat(le.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",le.slice())},_refreshContent(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:()=>!1,_clean(){this._cleanFocusState(),this._cleanItemContainer(),this._inkRipple&&delete this._inkRipple,this._resetActiveState()},_cleanItemContainer(){(0,e.A)(this._itemContainer()).empty()},_dispose(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer(){return this.$element()},_itemClass:()=>K,_itemContentClass(){return this._itemClass()+"-content"},_selectedItemClass:()=>"dx-item-selected",_itemResponseWaitClass:()=>"dx-item-response-wait",_itemSelector(){return`.${this._itemClass()}`},_itemDataKey:()=>"dxItemData",_itemIndexKey:()=>"dxItemIndex",_itemElements(){return this._itemContainer().find(this._itemSelector())},_initMarkup(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass("dx-collection"),this._prepareContent()},_prepareContent:(0,w.Mb)(function(){this._renderContentImpl()}),_renderContent(){this._fireContentReadyAction()},_render(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_getPointerEvent:()=>H.A.down,_attachClickEvent(){const le=this._itemSelector(),Ke=this._getPointerEvent(),Be=(0,J.b4)(U.U,this.NAME),q=(0,J.b4)(Ke,this.NAME),Oe=new d.A(fe=>{const{event:We}=fe;this._itemPointerDownHandler(We)});A.A.off(this._itemContainer(),Be,le),A.A.off(this._itemContainer(),q,le),A.A.on(this._itemContainer(),Be,le,fe=>this._itemClickHandler(fe)),A.A.on(this._itemContainer(),q,le,fe=>{Oe.execute({element:(0,e.A)(fe.target),event:fe})})},_itemClickHandler(le,Ke,Be){this._itemDXEventHandler(le,"onItemClick",Ke,Be)},_itemPointerDownHandler(le){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,le.isDefaultPrevented())return;const Ke=(0,e.A)(le.target),Be=Ke.closest(this._itemElements()),q=this._closestFocusable(Ke);Be.length&&this._isFocusTarget(q?.get(0))&&this.option("focusedElement",(0,T.cc)(Be))}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable(le){if(le.is(L.nq))return le;for(le=le.parent();le.length&&!m.A.isDocument(le.get(0))&&!m.A.isDocumentFragment(le.get(0));){if(le.is(L.nq))return le;le=le.parent()}},_forcePointerDownFocus(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent(){const le=this._itemContainer(),Ke=this._itemSelector(),Be=(0,J.b4)(M.A.name,this.NAME);A.A.off(le,Be,Ke),A.A.on(le,Be,Ke,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler(le){this._shouldFireHoldEvent()?this._itemDXEventHandler(le,"onItemHold"):le.cancel=!0},_attachContextMenuEvent(){const le=this._itemContainer(),Ke=this._itemSelector(),Be=(0,J.b4)(Z.U,this.NAME);A.A.off(le,Be,Ke),A.A.on(le,Be,Ke,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler(le){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(le,"onItemContextMenu"):le.cancel=!0},_renderContentImpl(){const le=this.option("items")||[];this._renderItems(this._renderedItemsCount?le.slice(this._renderedItemsCount):le)},_renderItems(le){le.length&&(0,b.__)(le,(Ke,Be)=>{this._renderItem(this._renderedItemsCount+Ke,Be)}),this._renderEmptyMessage()},_getItemsContainer(){return this._itemContainer()},_setAttributes(le){const Ke=(0,S.A)({},this.option("_itemAttributes")),{class:Be}=Ke;if(Be){const q=le.get(0).className;Ke.class=[q,Be].join(" ")}le.attr(Ke)},_renderItem(le,Ke,Be,q){const Oe=le?.item??le;Be=Be||this._getItemsContainer();const fe=this._renderItemFrame(Oe,Ke,Be,q);this._setElementData(fe,Ke,Oe),this._setAttributes(fe),this._attachItemClickEvent(Ke,fe);const We=this._getItemContent(fe),Ue=this._renderItemContent({index:Oe,itemData:Ke,container:(0,T.cc)(We),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),Ve=this;return(0,v.z7)(Ue).done(tt=>{Ve._postprocessRenderItem({itemElement:fe,itemContent:tt,itemData:Ke,itemIndex:Oe}),Ve._executeItemRenderAction(le,Ke,(0,T.cc)(fe))}),fe},_getItemContent(le){const Ke=le.find(".dx-item-content-placeholder");return Ke.removeClass("dx-item-content-placeholder"),Ke},_attachItemClickEvent(le,Ke){!le||!le.onClick||A.A.on(Ke,U.U,Be=>{this._itemEventHandlerByHandler(Ke,le.onClick,{event:Be})})},_renderItemContent(le){const Ke=this._getItemTemplateName(le),Be=this._getTemplate(Ke);this._addItemContentClasses(le);const q=(0,e.A)(this._createItemByTemplate(Be,le));return q.hasClass("dx-template-wrapper")?this._renderItemContentByNode(le,q):le.container},_renderItemContentByNode(le,Ke){return(0,e.A)(le.container).replaceWith(Ke),le.container=(0,T.cc)(Ke),this._addItemContentClasses(le),Ke},_addItemContentClasses(le){const Ke=[K+"-content",le.contentClass];(0,e.A)(le.container).addClass(Ke.join(" "))},_appendItemToContainer(le,Ke,Be){Ke.appendTo(le)},_renderItemFrame(le,Ke,Be,q){const Oe=(0,e.A)("<div>");if(new this.constructor.ItemClass(Oe,this._itemOptions(),Ke||{}),q&&q.length?q.replaceWith(Oe):this._appendItemToContainer.call(this,Be,Oe,le),this.option("useItemTextAsTitle")){const fe=this._displayGetter?this._displayGetter(Ke):Ke;Oe.attr("title",fe)}return Oe},_itemOptions(){const le=this;return{watchMethod:()=>le.option("integrationOptions.watchMethod"),owner:le,fieldGetter(Ke){const Be=le.option(`${Ke}Expr`);return(0,P.Hz)(Be)}}},_postprocessRenderItem:w.lQ,_executeItemRenderAction(le,Ke,Be){this._getItemRenderAction()({itemElement:Be,itemIndex:le,itemData:Ke})},_setElementData(le,Ke,Be){le.addClass([K,this._itemClass()].join(" ")).data(this._itemDataKey(),Ke).data(this._itemIndexKey(),Be)},_createItemRenderAction(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName(le){const Ke=le.itemData,Be=le.templateProperty||this.option("itemTemplateProperty");return Ke&&Ke[Be]||le.defaultTemplateName},_createItemByTemplate(le,Ke){return le.render({model:Ke.itemData,container:Ke.container,index:Ke.index,onRendered:this._onItemTemplateRendered(le,Ke)})},_onItemTemplateRendered:()=>w.lQ,_emptyMessageContainer(){return this._itemContainer()},_renderEmptyMessage(le){le=le||this.option("items");const Ke=this.option("noDataText"),Be=!Ke||le&&le.length||this._dataController.isLoading();Be&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),Be||(this._$noData=this._$noData||(0,e.A)("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()),this.option("encodeNoDataText")?this._$noData.text(Ke):this._$noData.html(Ke)),this.$element().toggleClass("dx-empty-collection",!Be)},_itemDXEventHandler(le,Ke,Be,q){this._itemEventHandler(le.target,Ke,(0,x.X)(Be,{event:le}),q)},_itemEventHandler(le,Ke,Be,q){const Oe=this._createActionByOption(Ke,(0,x.X)({validatingTargetName:"itemElement"},q));return this._itemEventHandlerImpl(le,Oe,Be)},_itemEventHandlerByHandler(le,Ke,Be,q){const Oe=this._createAction(Ke,(0,x.X)({validatingTargetName:"itemElement"},q));return this._itemEventHandlerImpl(le,Oe,Be)},_itemEventHandlerImpl(le,Ke,Be){const q=this._closestItemElement((0,e.A)(le)),Oe=(0,x.X)({},Be);return Ke((0,x.X)(Be,this._extendActionArgs(q),Oe))},_extendActionArgs(le){return{itemElement:(0,T.cc)(le),itemIndex:this._itemElements().index(le),itemData:this._getItemData(le)}},_closestItemElement(le){return(0,e.A)(le).closest(this._itemSelector())},_getItemData(le){return(0,e.A)(le).data(this._itemDataKey())},_getSummaryItemsSize(le,Ke,Be){let q=0;return Ke&&(0,b.__)(Ke,(Oe,fe)=>{"width"===le?q+=(0,B.Ot)(fe,Be||!1):"height"===le&&(q+=(0,B.P$)(fe,Be||!1))}),q},getFocusedItemId(){return this._focusedItemId||(this._focusedItemId=`dx-${new C.A}`),this._focusedItemId},itemElements(){return this._itemElements()},itemsContainer(){return this._itemContainer()}}).include(X.A);pe.ItemClass=Q.A;const Ee=pe},8747:(En,it,p)=>{"use strict";p.d(it,{j:()=>B});var S=p(2489),d=p(8129),m=p(4912),T=p(9867),C=p(6111),e=p(8621),w=p(3229);var x=p(656),b=p(4303);let B=(()=>{var j;class F{constructor(U){this.images=[],this.offset=100,this.renderer=U.createRenderer(null,null)}isElementInView(U){const Z=U.getBoundingClientRect(),A=window.innerHeight||document.documentElement.clientHeight,M=window.innerWidth||document.documentElement.clientWidth;return Z.top>=0&&Z.left>=0&&Z.bottom<=A+this.offset&&Z.right<=M+this.offset}addImage(U,Z){this.images.push({elem:U,src:Z}),this.loadImages()}removeImage(U){this.images=this.images.filter(Z=>Z.elem!==U)}loadImages(){this.images.forEach((U,Z)=>{this.isElementInView(U.elem.nativeElement)&&(this.loadImage(U.elem,U.src),this.images.splice(Z,1))})}loadImage(U,Z){const A=new Image;A.src=Z,A.onload=()=>{this.renderer.setAttribute(U.nativeElement,"src",Z),this.successClass&&this.renderer.addClass(U.nativeElement,this.successClass)},A.onerror=()=>{this.errorClass&&this.renderer.addClass(U.nativeElement,this.errorClass)}}observeScroll(){return(0,S.h)((0,d.R)(window,"scroll").pipe(function P(j,F=m.E,X){const U=(0,w.O)(j,F);return function k(j,F){return(0,T.N)((X,U)=>{const{leading:Z=!0,trailing:A=!1}=F??{};let M=!1,H=null,J=null,R=!1;const L=()=>{J?.unsubscribe(),J=null,A&&(z(),R&&U.complete())},G=()=>{J=null,R&&U.complete()},Q=K=>J=(0,e.Tg)(j(K)).subscribe((0,C._)(U,L,G)),z=()=>{if(M){M=!1;const K=H;H=null,U.next(K),!R&&Q(K)}};X.subscribe((0,C._)(U,K=>{M=!0,H=K,(!J||J.closed)&&(Z?z():Q(K))},()=>{R=!0,(!(A&&M&&J)||J.closed)&&U.complete()}))})}(()=>U,X)}(30)),(0,d.R)(window,"resize").pipe(function v(j,F=m.E){return(0,T.N)((X,U)=>{let Z=null,A=null,M=null;const H=()=>{if(Z){Z.unsubscribe(),Z=null;const R=A;A=null,U.next(R)}};function J(){const R=M+j,L=F.now();if(L<R)return Z=this.schedule(void 0,R-L),void U.add(Z);H()}X.subscribe((0,C._)(U,R=>{A=R,M=F.now(),Z||(Z=F.schedule(J,j),U.add(Z))},()=>{H(),U.complete()},void 0,()=>{A=Z=null}))})}(60)))}static#e=j=()=>(this.\u0275fac=function(Z){return new(Z||F)(x.KVO(b._9s))},this.\u0275prov=x.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}))}return j(),F})()},8761:(En,it,p)=>{"use strict";p.d(it,{lJ:()=>Se,Ie:()=>ce});var S=p(5737),d=p(9510),m=p(3686),T=p(5973),C=p(2925),e=p(5704),k=p(4859),w=p(6021),P=p(1832),v=p(3090),x=p(1363),b=p(1830),B=p(4017),j=p(6110),F=p(4072),X=p(8360),U=p(8628),Z=p(9212),A=p(127);const M=(0,j.zk)(),H={text:"OK",onClick:()=>!0},ce=function(De){const Pe=(0,w.cY)();De=De||{};const Ie=(0,e.A)("<div>").addClass("dx-dialog").appendTo((0,B.Uq)()),ie="messageHtml"in De;"message"in De&&A.A.log("W1013");const he=String(ie?De.messageHtml:De.message),Ce=De.title?null:new C.A,ye=(0,e.A)("<div>").addClass("dx-dialog-message").html(he).attr("id",Ce),Me=[],_e=new U.A(Ie,(0,v.X)({title:De.title??"",showTitle:(0,k.YD)(De.showTitle,!0),dragEnabled:(0,k.YD)(De.dragEnabled,!0),height:"auto",width:De.width,showCloseButton:De.showCloseButton||!1,ignoreChildEvents:!1,container:Ie,visualContainer:M,dragAndResizeArea:M,onContentReady(de){de.component.$content().addClass("dx-dialog-content").append(ye),Ce&&de.component.$overlayContent().attr("aria-labelledby",Ce)},onShowing(de){de.component.bottomToolbar().addClass("dx-dialog-buttons").find(".dx-button").addClass("dx-dialog-button"),(0,P.GX)()},onShown(de){const Ae=de.component.bottomToolbar().find(".dx-button").first();F.A.trigger(Ae,"focus")},onHiding(){Pe.reject()},onHidden(de){let{element:Ae}=de;(0,e.A)(Ae).remove()},animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,m.A)().rtlEnabled,position:{boundaryOffset:{h:10,v:0}}},De.popupOptions));function Ye(de){Pe.resolve(de),_e.hide()}return(De.buttons||[H]).forEach(de=>{const Ae=new d.A(de.onClick,{context:_e});Me.push({toolbar:"bottom",location:T.A.current().android?"after":"center",widget:"dxButton",options:(0,S.A)({},de,{onClick(){Ye(Ae.execute(...arguments))}})})}),_e.option("toolbarItems",Me),_e.$wrapper().addClass("dx-dialog-wrapper"),De.position&&_e.option("position",De.position),_e.$wrapper().addClass("dx-dialog-root"),{show:function(){if("phone"===T.A.real().deviceType){const Ae=(0,x.Oq)(M)>(0,x.RG)(M)?"90%":"60%";_e.option({width:Ae})}return _e.show(),Pe.promise()},hide:Ye}},Se=function(De){let Pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",Ie=arguments.length>2?arguments[2]:void 0;const W=(0,b.Qd)(De)?De:{title:Pe,messageHtml:De,showTitle:Ie,buttons:[(0,S.A)({text:X.A.format("Yes"),onClick:()=>!0},(0,Z.Ft)()?{stylingMode:"contained",type:"default"}:{}),(0,S.A)({text:X.A.format("No"),onClick:()=>!1},(0,Z.Ft)()?{stylingMode:"outlined",type:"default"}:{})],dragEnabled:Ie};return ce(W).show()}},8813:(En,it,p)=>{"use strict";p.d(it,{JU:()=>e,fK:()=>m,ig:()=>T,lm:()=>d});const d="vertical",m="horizontal",T="both",e="dx-scrollable-content"},8823:(En,it,p)=>{"use strict";p.d(it,{$:()=>m});var S=p(9406),d=p(4418);function m(T,C){const e=(0,d.T)(T)?T:()=>T,k=w=>w.error(e());return new S.c(C?w=>C.schedule(k,0,w):k)}},8832:(En,it,p)=>{"use strict";p.d(it,{Zm:()=>H,xq:()=>Or,me:()=>G,YN:()=>Po,zX:()=>is,VZ:()=>Es,kq:()=>A,BC:()=>Nt,cb:()=>et,cV:()=>Xi,vS:()=>ks,xH:()=>nr,Q0:()=>Et,Fm:()=>gi,YS:()=>Js,wz:()=>Qs,qT:()=>Bs,y7:()=>Fi});var S=p(4303),d=p(656),m=p(3038),T=p(2978),C=p(5732),e=p(8399),k=p(9406),w=p(6872),P=p(8621),v=p(2363),x=p(6111),b=p(6219),B=p(6405),F=p(6104),X=p(3527);let U=(()=>{class Ft{_renderer;_elementRef;onChange=xt=>{};onTouched=()=>{};constructor(xt,Fe){this._renderer=xt,this._elementRef=Fe}setProperty(xt,Fe){this._renderer.setProperty(this._elementRef.nativeElement,xt,Fe)}registerOnTouched(xt){this.onTouched=xt}registerOnChange(xt){this.onChange=xt}setDisabledState(xt){this.setProperty("disabled",xt)}static \u0275fac=function(Fe){return new(Fe||Ft)(S.rXU(S.sFG),S.rXU(S.aKT))};static \u0275dir=S.FsC({type:Ft})}return Ft})(),Z=(()=>{class Ft extends U{static \u0275fac=(()=>{let xt;return function(He){return(xt||(xt=S.xGo(Ft)))(He||Ft)}})();static \u0275dir=S.FsC({type:Ft,features:[S.Vt3]})}return Ft})();const A=new d.nKC(""),M={provide:A,useExisting:(0,d.Rfq)(()=>H),multi:!0};let H=(()=>{class Ft extends Z{writeValue(xt){this.setProperty("checked",xt)}static \u0275fac=(()=>{let xt;return function(He){return(xt||(xt=S.xGo(Ft)))(He||Ft)}})();static \u0275dir=S.FsC({type:Ft,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Fe,He){1&Fe&&S.bIt("change",function(Ut){return He.onChange(Ut.target.checked)})("blur",function(){return He.onTouched()})},standalone:!1,features:[S.Jv_([M]),S.Vt3]})}return Ft})();const J={provide:A,useExisting:(0,d.Rfq)(()=>G),multi:!0},L=new d.nKC("");let G=(()=>{class Ft extends U{_compositionMode;_composing=!1;constructor(xt,Fe,He){super(xt,Fe),this._compositionMode=He,null==this._compositionMode&&(this._compositionMode=!function R(){const Ft=(0,C.rb)()?(0,C.rb)().getUserAgent():"";return/android (\d+)/.test(Ft.toLowerCase())}())}writeValue(xt){this.setProperty("value",xt??"")}_handleInput(xt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(xt)}_compositionStart(){this._composing=!0}_compositionEnd(xt){this._composing=!1,this._compositionMode&&this.onChange(xt)}static \u0275fac=function(Fe){return new(Fe||Ft)(S.rXU(S.sFG),S.rXU(S.aKT),S.rXU(L,8))};static \u0275dir=S.FsC({type:Ft,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(Fe,He){1&Fe&&S.bIt("input",function(Ut){return He._handleInput(Ut.target.value)})("blur",function(){return He.onTouched()})("compositionstart",function(){return He._compositionStart()})("compositionend",function(Ut){return He._compositionEnd(Ut.target.value)})},standalone:!1,features:[S.Jv_([J]),S.Vt3]})}return Ft})();function Q(Ft){return null==Ft||0===function z(Ft){return null==Ft?null:Array.isArray(Ft)||"string"==typeof Ft?Ft.length:Ft instanceof Set?Ft.size:null}(Ft)}const K=new d.nKC(""),ee=new d.nKC("");function Se(Ft){return Q(Ft.value)?{required:!0}:null}function De(Ft){return!0===Ft.value?null:{required:!0}}function he(Ft){return null}function Ce(Ft){return null!=Ft}function ye(Ft){return(0,S.yLl)(Ft)?(0,e.H)(Ft):Ft}function Me(Ft){let Wt={};return Ft.forEach(xt=>{Wt=null!=xt?{...Wt,...xt}:Wt}),0===Object.keys(Wt).length?null:Wt}function _e(Ft,Wt){return Wt.map(xt=>xt(Ft))}function Ye(Ft){return Ft.map(Wt=>function ke(Ft){return!Ft.validate}(Wt)?Wt:xt=>Wt.validate(xt))}function Ae(Ft){return null!=Ft?function de(Ft){if(!Ft)return null;const Wt=Ft.filter(Ce);return 0==Wt.length?null:function(xt){return Me(_e(xt,Wt))}}(Ye(Ft)):null}function Ee(Ft){return null!=Ft?function pe(Ft){if(!Ft)return null;const Wt=Ft.filter(Ce);return 0==Wt.length?null:function(xt){return function j(...Ft){const Wt=(0,v.ms)(Ft),{args:xt,keys:Fe}=(0,w.D)(Ft),He=new k.c(wt=>{const{length:Ut}=xt;if(!Ut)return void wt.complete();const cn=new Array(Ut);let Ln=Ut,$n=Ut;for(let bi=0;bi<Ut;bi++){let vi=!1;(0,P.Tg)(xt[bi]).subscribe((0,x._)(wt,ki=>{vi||(vi=!0,$n--),cn[bi]=ki},()=>Ln--,void 0,()=>{(!Ln||!vi)&&($n||wt.next(Fe?(0,B.e)(Fe,cn):cn),wt.complete())}))}});return Wt?He.pipe((0,b.I)(Wt)):He}(_e(xt,Wt).map(ye)).pipe((0,X.T)(Me))}}(Ye(Ft)):null}function le(Ft,Wt){return null===Ft?[Wt]:Array.isArray(Ft)?[...Ft,Wt]:[Ft,Wt]}function q(Ft){return Ft?Array.isArray(Ft)?Ft:[Ft]:[]}function Oe(Ft,Wt){return Array.isArray(Ft)?Ft.includes(Wt):Ft===Wt}function fe(Ft,Wt){const xt=q(Wt);return q(Ft).forEach(He=>{Oe(xt,He)||xt.push(He)}),xt}function We(Ft,Wt){return q(Wt).filter(xt=>!Oe(Ft,xt))}class Ue{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(Wt){this._rawValidators=Wt||[],this._composedValidatorFn=Ae(this._rawValidators)}_setAsyncValidators(Wt){this._rawAsyncValidators=Wt||[],this._composedAsyncValidatorFn=Ee(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(Wt){this._onDestroyCallbacks.push(Wt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Wt=>Wt()),this._onDestroyCallbacks=[]}reset(Wt=void 0){this.control&&this.control.reset(Wt)}hasError(Wt,xt){return!!this.control&&this.control.hasError(Wt,xt)}getError(Wt,xt){return this.control?this.control.getError(Wt,xt):null}}class Ve extends Ue{name;get formDirective(){return null}get path(){return null}}class tt extends Ue{_parent=null;name=null;valueAccessor=null}class at{_cd;constructor(Wt){this._cd=Wt}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Nt=(()=>{class Ft extends at{constructor(xt){super(xt)}static \u0275fac=function(Fe){return new(Fe||Ft)(S.rXU(tt,2))};static \u0275dir=S.FsC({type:Ft,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Fe,He){2&Fe&&S.AVh("ng-untouched",He.isUntouched)("ng-touched",He.isTouched)("ng-pristine",He.isPristine)("ng-dirty",He.isDirty)("ng-valid",He.isValid)("ng-invalid",He.isInvalid)("ng-pending",He.isPending)},standalone:!1,features:[S.Vt3]})}return Ft})(),et=(()=>{class Ft extends at{constructor(xt){super(xt)}static \u0275fac=function(Fe){return new(Fe||Ft)(S.rXU(Ve,10))};static \u0275dir=S.FsC({type:Ft,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Fe,He){2&Fe&&S.AVh("ng-untouched",He.isUntouched)("ng-touched",He.isTouched)("ng-pristine",He.isPristine)("ng-dirty",He.isDirty)("ng-valid",He.isValid)("ng-invalid",He.isInvalid)("ng-pending",He.isPending)("ng-submitted",He.isSubmitted)},standalone:!1,features:[S.Vt3]})}return Ft})();const Co="VALID",ti="INVALID",Qn="PENDING",ei="DISABLED";class Rt{}class Jt extends Rt{value;source;constructor(Wt,xt){super(),this.value=Wt,this.source=xt}}class Pn extends Rt{pristine;source;constructor(Wt,xt){super(),this.pristine=Wt,this.source=xt}}class Jn extends Rt{touched;source;constructor(Wt,xt){super(),this.touched=Wt,this.source=xt}}class Ii extends Rt{status;source;constructor(Wt,xt){super(),this.status=Wt,this.source=xt}}class vo extends Rt{source;constructor(Wt){super(),this.source=Wt}}class pi extends Rt{source;constructor(Wt){super(),this.source=Wt}}function Wo(Ft){return(ls(Ft)?Ft.validators:Ft)||null}function hs(Ft,Wt){return(ls(Wt)?Wt.asyncValidators:Ft)||null}function ls(Ft){return null!=Ft&&!Array.isArray(Ft)&&"object"==typeof Ft}class qo{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(Wt,xt){this._assignValidators(Wt),this._assignAsyncValidators(xt)}get validator(){return this._composedValidatorFn}set validator(Wt){this._rawValidators=this._composedValidatorFn=Wt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Wt){this._rawAsyncValidators=this._composedAsyncValidatorFn=Wt}get parent(){return this._parent}get status(){return(0,m.O8)(this.statusReactive)}set status(Wt){(0,m.O8)(()=>this.statusReactive.set(Wt))}_status=(0,m.EW)(()=>this.statusReactive());statusReactive=(0,d.vPA)(void 0);get valid(){return this.status===Co}get invalid(){return this.status===ti}get pending(){return this.status==Qn}get disabled(){return this.status===ei}get enabled(){return this.status!==ei}errors;get pristine(){return(0,m.O8)(this.pristineReactive)}set pristine(Wt){(0,m.O8)(()=>this.pristineReactive.set(Wt))}_pristine=(0,m.EW)(()=>this.pristineReactive());pristineReactive=(0,d.vPA)(!0);get dirty(){return!this.pristine}get touched(){return(0,m.O8)(this.touchedReactive)}set touched(Wt){(0,m.O8)(()=>this.touchedReactive.set(Wt))}_touched=(0,m.EW)(()=>this.touchedReactive());touchedReactive=(0,d.vPA)(!1);get untouched(){return!this.touched}_events=new F.B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Wt){this._assignValidators(Wt)}setAsyncValidators(Wt){this._assignAsyncValidators(Wt)}addValidators(Wt){this.setValidators(fe(Wt,this._rawValidators))}addAsyncValidators(Wt){this.setAsyncValidators(fe(Wt,this._rawAsyncValidators))}removeValidators(Wt){this.setValidators(We(Wt,this._rawValidators))}removeAsyncValidators(Wt){this.setAsyncValidators(We(Wt,this._rawAsyncValidators))}hasValidator(Wt){return Oe(this._rawValidators,Wt)}hasAsyncValidator(Wt){return Oe(this._rawAsyncValidators,Wt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Wt={}){const xt=!1===this.touched;this.touched=!0;const Fe=Wt.sourceControl??this;this._parent&&!Wt.onlySelf&&this._parent.markAsTouched({...Wt,sourceControl:Fe}),xt&&!1!==Wt.emitEvent&&this._events.next(new Jn(!0,Fe))}markAllAsDirty(Wt={}){this.markAsDirty({onlySelf:!0,emitEvent:Wt.emitEvent,sourceControl:this}),this._forEachChild(xt=>xt.markAllAsDirty(Wt))}markAllAsTouched(Wt={}){this.markAsTouched({onlySelf:!0,emitEvent:Wt.emitEvent,sourceControl:this}),this._forEachChild(xt=>xt.markAllAsTouched(Wt))}markAsUntouched(Wt={}){const xt=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const Fe=Wt.sourceControl??this;this._forEachChild(He=>{He.markAsUntouched({onlySelf:!0,emitEvent:Wt.emitEvent,sourceControl:Fe})}),this._parent&&!Wt.onlySelf&&this._parent._updateTouched(Wt,Fe),xt&&!1!==Wt.emitEvent&&this._events.next(new Jn(!1,Fe))}markAsDirty(Wt={}){const xt=!0===this.pristine;this.pristine=!1;const Fe=Wt.sourceControl??this;this._parent&&!Wt.onlySelf&&this._parent.markAsDirty({...Wt,sourceControl:Fe}),xt&&!1!==Wt.emitEvent&&this._events.next(new Pn(!1,Fe))}markAsPristine(Wt={}){const xt=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Fe=Wt.sourceControl??this;this._forEachChild(He=>{He.markAsPristine({onlySelf:!0,emitEvent:Wt.emitEvent})}),this._parent&&!Wt.onlySelf&&this._parent._updatePristine(Wt,Fe),xt&&!1!==Wt.emitEvent&&this._events.next(new Pn(!0,Fe))}markAsPending(Wt={}){this.status=Qn;const xt=Wt.sourceControl??this;!1!==Wt.emitEvent&&(this._events.next(new Ii(this.status,xt)),this.statusChanges.emit(this.status)),this._parent&&!Wt.onlySelf&&this._parent.markAsPending({...Wt,sourceControl:xt})}disable(Wt={}){const xt=this._parentMarkedDirty(Wt.onlySelf);this.status=ei,this.errors=null,this._forEachChild(He=>{He.disable({...Wt,onlySelf:!0})}),this._updateValue();const Fe=Wt.sourceControl??this;!1!==Wt.emitEvent&&(this._events.next(new Jt(this.value,Fe)),this._events.next(new Ii(this.status,Fe)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Wt,skipPristineCheck:xt},this),this._onDisabledChange.forEach(He=>He(!0))}enable(Wt={}){const xt=this._parentMarkedDirty(Wt.onlySelf);this.status=Co,this._forEachChild(Fe=>{Fe.enable({...Wt,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Wt.emitEvent}),this._updateAncestors({...Wt,skipPristineCheck:xt},this),this._onDisabledChange.forEach(Fe=>Fe(!1))}_updateAncestors(Wt,xt){this._parent&&!Wt.onlySelf&&(this._parent.updateValueAndValidity(Wt),Wt.skipPristineCheck||this._parent._updatePristine({},xt),this._parent._updateTouched({},xt))}setParent(Wt){this._parent=Wt}getRawValue(){return this.value}updateValueAndValidity(Wt={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const Fe=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Co||this.status===Qn)&&this._runAsyncValidator(Fe,Wt.emitEvent)}const xt=Wt.sourceControl??this;!1!==Wt.emitEvent&&(this._events.next(new Jt(this.value,xt)),this._events.next(new Ii(this.status,xt)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Wt.onlySelf&&this._parent.updateValueAndValidity({...Wt,sourceControl:xt})}_updateTreeValidity(Wt={emitEvent:!0}){this._forEachChild(xt=>xt._updateTreeValidity(Wt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Wt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ei:Co}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Wt,xt){if(this.asyncValidator){this.status=Qn,this._hasOwnPendingAsyncValidator={emitEvent:!1!==xt,shouldHaveEmitted:!1!==Wt};const Fe=ye(this.asyncValidator(this));this._asyncValidationSubscription=Fe.subscribe(He=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(He,{emitEvent:xt,shouldHaveEmitted:Wt})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const Wt=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,Wt}return!1}setErrors(Wt,xt={}){this.errors=Wt,this._updateControlsErrors(!1!==xt.emitEvent,this,xt.shouldHaveEmitted)}get(Wt){let xt=Wt;return null==xt||(Array.isArray(xt)||(xt=xt.split(".")),0===xt.length)?null:xt.reduce((Fe,He)=>Fe&&Fe._find(He),this)}getError(Wt,xt){const Fe=xt?this.get(xt):this;return Fe&&Fe.errors?Fe.errors[Wt]:null}hasError(Wt,xt){return!!this.getError(Wt,xt)}get root(){let Wt=this;for(;Wt._parent;)Wt=Wt._parent;return Wt}_updateControlsErrors(Wt,xt,Fe){this.status=this._calculateStatus(),Wt&&this.statusChanges.emit(this.status),(Wt||Fe)&&this._events.next(new Ii(this.status,xt)),this._parent&&this._parent._updateControlsErrors(Wt,xt,Fe)}_initObservables(){this.valueChanges=new S.bkB,this.statusChanges=new S.bkB}_calculateStatus(){return this._allControlsDisabled()?ei:this.errors?ti:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qn)?Qn:this._anyControlsHaveStatus(ti)?ti:Co}_anyControlsHaveStatus(Wt){return this._anyControls(xt=>xt.status===Wt)}_anyControlsDirty(){return this._anyControls(Wt=>Wt.dirty)}_anyControlsTouched(){return this._anyControls(Wt=>Wt.touched)}_updatePristine(Wt,xt){const Fe=!this._anyControlsDirty(),He=this.pristine!==Fe;this.pristine=Fe,this._parent&&!Wt.onlySelf&&this._parent._updatePristine(Wt,xt),He&&this._events.next(new Pn(this.pristine,xt))}_updateTouched(Wt={},xt){this.touched=this._anyControlsTouched(),this._events.next(new Jn(this.touched,xt)),this._parent&&!Wt.onlySelf&&this._parent._updateTouched(Wt,xt)}_onDisabledChange=[];_registerOnCollectionChange(Wt){this._onCollectionChange=Wt}_setUpdateStrategy(Wt){ls(Wt)&&null!=Wt.updateOn&&(this._updateOn=Wt.updateOn)}_parentMarkedDirty(Wt){return!Wt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Wt){return null}_assignValidators(Wt){this._rawValidators=Array.isArray(Wt)?Wt.slice():Wt,this._composedValidatorFn=function To(Ft){return Array.isArray(Ft)?Ae(Ft):Ft||null}(this._rawValidators)}_assignAsyncValidators(Wt){this._rawAsyncValidators=Array.isArray(Wt)?Wt.slice():Wt,this._composedAsyncValidatorFn=function Ps(Ft){return Array.isArray(Ft)?Ee(Ft):Ft||null}(this._rawAsyncValidators)}}class cs extends qo{constructor(Wt,xt,Fe){super(Wo(xt),hs(Fe,xt)),this.controls=Wt,this._initObservables(),this._setUpdateStrategy(xt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(Wt,xt){return this.controls[Wt]?this.controls[Wt]:(this.controls[Wt]=xt,xt.setParent(this),xt._registerOnCollectionChange(this._onCollectionChange),xt)}addControl(Wt,xt,Fe={}){this.registerControl(Wt,xt),this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}removeControl(Wt,xt={}){this.controls[Wt]&&this.controls[Wt]._registerOnCollectionChange(()=>{}),delete this.controls[Wt],this.updateValueAndValidity({emitEvent:xt.emitEvent}),this._onCollectionChange()}setControl(Wt,xt,Fe={}){this.controls[Wt]&&this.controls[Wt]._registerOnCollectionChange(()=>{}),delete this.controls[Wt],xt&&this.registerControl(Wt,xt),this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}contains(Wt){return this.controls.hasOwnProperty(Wt)&&this.controls[Wt].enabled}setValue(Wt,xt={}){(function ss(Ft,Wt,xt){Ft._forEachChild((Fe,He)=>{if(void 0===xt[He])throw new d.buA(1002,"")})})(this,0,Wt),Object.keys(Wt).forEach(Fe=>{(function Hs(Ft,Wt,xt){const Fe=Ft.controls;if(!(Wt?Object.keys(Fe):Fe).length)throw new d.buA(1e3,"");if(!Fe[xt])throw new d.buA(1001,"")})(this,!0,Fe),this.controls[Fe].setValue(Wt[Fe],{onlySelf:!0,emitEvent:xt.emitEvent})}),this.updateValueAndValidity(xt)}patchValue(Wt,xt={}){null!=Wt&&(Object.keys(Wt).forEach(Fe=>{const He=this.controls[Fe];He&&He.patchValue(Wt[Fe],{onlySelf:!0,emitEvent:xt.emitEvent})}),this.updateValueAndValidity(xt))}reset(Wt={},xt={}){this._forEachChild((Fe,He)=>{Fe.reset(Wt?Wt[He]:null,{onlySelf:!0,emitEvent:xt.emitEvent})}),this._updatePristine(xt,this),this._updateTouched(xt,this),this.updateValueAndValidity(xt)}getRawValue(){return this._reduceChildren({},(Wt,xt,Fe)=>(Wt[Fe]=xt.getRawValue(),Wt))}_syncPendingControls(){let Wt=this._reduceChildren(!1,(xt,Fe)=>!!Fe._syncPendingControls()||xt);return Wt&&this.updateValueAndValidity({onlySelf:!0}),Wt}_forEachChild(Wt){Object.keys(this.controls).forEach(xt=>{const Fe=this.controls[xt];Fe&&Wt(Fe,xt)})}_setUpControls(){this._forEachChild(Wt=>{Wt.setParent(this),Wt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Wt){for(const[xt,Fe]of Object.entries(this.controls))if(this.contains(xt)&&Wt(Fe))return!0;return!1}_reduceValue(){return this._reduceChildren({},(xt,Fe,He)=>((Fe.enabled||this.disabled)&&(xt[He]=Fe.value),xt))}_reduceChildren(Wt,xt){let Fe=Wt;return this._forEachChild((He,wt)=>{Fe=xt(Fe,He,wt)}),Fe}_allControlsDisabled(){for(const Wt of Object.keys(this.controls))if(this.controls[Wt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Wt){return this.controls.hasOwnProperty(Wt)?this.controls[Wt]:null}}const Yi=new d.nKC("",{providedIn:"root",factory:()=>Sn}),Sn="always";function It(Ft,Wt,xt=Sn){Ot(Ft,Wt),Wt.valueAccessor.writeValue(Ft.value),(Ft.disabled||"always"===xt)&&Wt.valueAccessor.setDisabledState?.(Ft.disabled),function ni(Ft,Wt){Wt.valueAccessor.registerOnChange(xt=>{Ft._pendingValue=xt,Ft._pendingChange=!0,Ft._pendingDirty=!0,"change"===Ft.updateOn&&Zi(Ft,Wt)})}(Ft,Wt),function ro(Ft,Wt){const xt=(Fe,He)=>{Wt.valueAccessor.writeValue(Fe),He&&Wt.viewToModelUpdate(Fe)};Ft.registerOnChange(xt),Wt._registerOnDestroy(()=>{Ft._unregisterOnChange(xt)})}(Ft,Wt),function Bi(Ft,Wt){Wt.valueAccessor.registerOnTouched(()=>{Ft._pendingTouched=!0,"blur"===Ft.updateOn&&Ft._pendingChange&&Zi(Ft,Wt),"submit"!==Ft.updateOn&&Ft.markAsTouched()})}(Ft,Wt),function jt(Ft,Wt){if(Wt.valueAccessor.setDisabledState){const xt=Fe=>{Wt.valueAccessor.setDisabledState(Fe)};Ft.registerOnDisabledChange(xt),Wt._registerOnDestroy(()=>{Ft._unregisterOnDisabledChange(xt)})}}(Ft,Wt)}function dn(Ft,Wt){Ft.forEach(xt=>{xt.registerOnValidatorChange&&xt.registerOnValidatorChange(Wt)})}function Ot(Ft,Wt){const xt=function Ke(Ft){return Ft._rawValidators}(Ft);null!==Wt.validator?Ft.setValidators(le(xt,Wt.validator)):"function"==typeof xt&&Ft.setValidators([xt]);const Fe=function Be(Ft){return Ft._rawAsyncValidators}(Ft);null!==Wt.asyncValidator?Ft.setAsyncValidators(le(Fe,Wt.asyncValidator)):"function"==typeof Fe&&Ft.setAsyncValidators([Fe]);const He=()=>Ft.updateValueAndValidity();dn(Wt._rawValidators,He),dn(Wt._rawAsyncValidators,He)}function Zi(Ft,Wt){Ft._pendingDirty&&Ft.markAsDirty(),Ft.setValue(Ft._pendingValue,{emitModelToViewChange:!1}),Wt.viewToModelUpdate(Ft._pendingValue),Ft._pendingChange=!1}const Gn={provide:Ve,useExisting:(0,d.Rfq)(()=>Xi)},Ri=Promise.resolve();let Xi=(()=>{class Ft extends Ve{callSetDisabledState;get submitted(){return(0,m.O8)(this.submittedReactive)}_submitted=(0,m.EW)(()=>this.submittedReactive());submittedReactive=(0,d.vPA)(!1);_directives=new Set;form;ngSubmit=new S.bkB;options;constructor(xt,Fe,He){super(),this.callSetDisabledState=He,this.form=new cs({},Ae(xt),Ee(Fe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(xt){Ri.then(()=>{const Fe=this._findContainer(xt.path);xt.control=Fe.registerControl(xt.name,xt.control),It(xt.control,xt,this.callSetDisabledState),xt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(xt)})}getControl(xt){return this.form.get(xt.path)}removeControl(xt){Ri.then(()=>{const Fe=this._findContainer(xt.path);Fe&&Fe.removeControl(xt.name),this._directives.delete(xt)})}addFormGroup(xt){Ri.then(()=>{const Fe=this._findContainer(xt.path),He=new cs({});(function mo(Ft,Wt){Ot(Ft,Wt)})(He,xt),Fe.registerControl(xt.name,He),He.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(xt){Ri.then(()=>{const Fe=this._findContainer(xt.path);Fe&&Fe.removeControl(xt.name)})}getFormGroup(xt){return this.form.get(xt.path)}updateModel(xt,Fe){Ri.then(()=>{this.form.get(xt.path).setValue(Fe)})}setValue(xt){this.control.setValue(xt)}onSubmit(xt){return this.submittedReactive.set(!0),function $o(Ft,Wt){Ft._syncPendingControls(),Wt.forEach(xt=>{const Fe=xt.control;"submit"===Fe.updateOn&&Fe._pendingChange&&(xt.viewToModelUpdate(Fe._pendingValue),Fe._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(xt),this.form._events.next(new vo(this.control)),"dialog"===xt?.target?.method}onReset(){this.resetForm()}resetForm(xt=void 0){this.form.reset(xt),this.submittedReactive.set(!1),this.form._events.next(new pi(this.form))}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(xt){return xt.pop(),xt.length?this.form.get(xt):this.form}static \u0275fac=function(Fe){return new(Fe||Ft)(S.rXU(K,10),S.rXU(ee,10),S.rXU(Yi,8))};static \u0275dir=S.FsC({type:Ft,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Fe,He){1&Fe&&S.bIt("submit",function(Ut){return He.onSubmit(Ut)})("reset",function(){return He.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[S.Jv_([Gn]),S.Vt3]})}return Ft})();function Oo(Ft,Wt){const xt=Ft.indexOf(Wt);xt>-1&&Ft.splice(xt,1)}function Fo(Ft){return"object"==typeof Ft&&null!==Ft&&2===Object.keys(Ft).length&&"value"in Ft&&"disabled"in Ft}const Vs=class extends qo{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(Wt=null,xt,Fe){super(Wo(xt),hs(Fe,xt)),this._applyFormState(Wt),this._setUpdateStrategy(xt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ls(xt)&&(xt.nonNullable||xt.initialValueIsDefault)&&(this.defaultValue=Fo(Wt)?Wt.value:Wt)}setValue(Wt,xt={}){this.value=this._pendingValue=Wt,this._onChange.length&&!1!==xt.emitModelToViewChange&&this._onChange.forEach(Fe=>Fe(this.value,!1!==xt.emitViewToModelChange)),this.updateValueAndValidity(xt)}patchValue(Wt,xt={}){this.setValue(Wt,xt)}reset(Wt=this.defaultValue,xt={}){this._applyFormState(Wt),this.markAsPristine(xt),this.markAsUntouched(xt),this.setValue(this.value,xt),this._pendingChange=!1}_updateValue(){}_anyControls(Wt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Wt){this._onChange.push(Wt)}_unregisterOnChange(Wt){Oo(this._onChange,Wt)}registerOnDisabledChange(Wt){this._onDisabledChange.push(Wt)}_unregisterOnDisabledChange(Wt){Oo(this._onDisabledChange,Wt)}_forEachChild(Wt){}_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(Wt){Fo(Wt)?(this.value=this._pendingValue=Wt.value,Wt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Wt}},xs={provide:tt,useExisting:(0,d.Rfq)(()=>ks)},Rs=Promise.resolve();let ks=(()=>{class Ft extends tt{_changeDetectorRef;callSetDisabledState;control=new Vs;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new S.bkB;constructor(xt,Fe,He,wt,Ut,cn){super(),this._changeDetectorRef=Ut,this.callSetDisabledState=cn,this._parent=xt,this._setValidators(Fe),this._setAsyncValidators(He),this.valueAccessor=function gs(Ft,Wt){if(!Wt)return null;let xt,Fe,He;return Array.isArray(Wt),Wt.forEach(wt=>{wt.constructor===G?xt=wt:function _o(Ft){return Object.getPrototypeOf(Ft.constructor)===Z}(wt)?Fe=wt:He=wt}),He||Fe||xt||null}(0,wt)}ngOnChanges(xt){if(this._checkForErrors(),!this._registered||"name"in xt){if(this._registered&&(this._checkName(),this.formDirective)){const Fe=xt.name.previousValue;this.formDirective.removeControl({name:Fe,path:this._getPath(Fe)})}this._setUpControl()}"isDisabled"in xt&&this._updateDisabled(xt),function zi(Ft,Wt){if(!Ft.hasOwnProperty("model"))return!1;const xt=Ft.model;return!!xt.isFirstChange()||!Object.is(Wt,xt.currentValue)}(xt,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(xt){this.viewModel=xt,this.update.emit(xt)}_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(){It(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(xt){Rs.then(()=>{this.control.setValue(xt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(xt){const Fe=xt.isDisabled.currentValue,He=0!==Fe&&(0,T.L39)(Fe);Rs.then(()=>{He&&!this.control.disabled?this.control.disable():!He&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(xt){return this._parent?function ri(Ft,Wt){return[...Wt.path,Ft]}(xt,this._parent):[xt]}static \u0275fac=function(Fe){return new(Fe||Ft)(S.rXU(Ve,9),S.rXU(K,10),S.rXU(ee,10),S.rXU(A,10),S.rXU(T.gRc,8),S.rXU(Yi,8))};static \u0275dir=S.FsC({type:Ft,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[S.Jv_([xs]),S.Vt3,S.OA$]})}return Ft})(),Bs=(()=>{class Ft{static \u0275fac=function(Fe){return new(Fe||Ft)};static \u0275dir=S.FsC({type:Ft,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return Ft})();const Ss={provide:A,useExisting:(0,d.Rfq)(()=>Et),multi:!0};let Et=(()=>{class Ft extends Z{writeValue(xt){this.setProperty("value",xt??"")}registerOnChange(xt){this.onChange=Fe=>{xt(""==Fe?null:parseFloat(Fe))}}static \u0275fac=(()=>{let xt;return function(He){return(xt||(xt=S.xGo(Ft)))(He||Ft)}})();static \u0275dir=S.FsC({type:Ft,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Fe,He){1&Fe&&S.bIt("input",function(Ut){return He.onChange(Ut.target.value)})("blur",function(){return He.onTouched()})},standalone:!1,features:[S.Jv_([Ss]),S.Vt3]})}return Ft})();const en={provide:A,useExisting:(0,d.Rfq)(()=>gi),multi:!0};let Zn=(()=>{class Ft{_accessors=[];add(xt,Fe){this._accessors.push([xt,Fe])}remove(xt){for(let Fe=this._accessors.length-1;Fe>=0;--Fe)if(this._accessors[Fe][1]===xt)return void this._accessors.splice(Fe,1)}select(xt){this._accessors.forEach(Fe=>{this._isSameGroup(Fe,xt)&&Fe[1]!==xt&&Fe[1].fireUncheck(xt.value)})}_isSameGroup(xt,Fe){return!!xt[0].control&&xt[0]._parent===Fe._control._parent&&xt[1].name===Fe.name}static \u0275fac=function(Fe){return new(Fe||Ft)};static \u0275prov=d.jDH({token:Ft,factory:Ft.\u0275fac,providedIn:"root"})}return Ft})(),gi=(()=>{class Ft extends Z{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=(0,d.WQX)(Yi,{optional:!0})??Sn;constructor(xt,Fe,He,wt){super(xt,Fe),this._registry=He,this._injector=wt}ngOnInit(){this._control=this._injector.get(tt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(xt){this._state=xt===this.value,this.setProperty("checked",this._state)}registerOnChange(xt){this._fn=xt,this.onChange=()=>{xt(this.value),this._registry.select(this)}}setDisabledState(xt){(this.setDisabledStateFired||xt||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",xt),this.setDisabledStateFired=!0}fireUncheck(xt){this.writeValue(xt)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(Fe){return new(Fe||Ft)(S.rXU(S.sFG),S.rXU(S.aKT),S.rXU(Zn),S.rXU(d.zZn))};static \u0275dir=S.FsC({type:Ft,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Fe,He){1&Fe&&S.bIt("change",function(){return He.onChange()})("blur",function(){return He.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[S.Jv_([en]),S.Vt3]})}return Ft})();const ws={provide:A,useExisting:(0,d.Rfq)(()=>Qs),multi:!0};function Ys(Ft,Wt){return null==Ft?`${Wt}`:(Wt&&"object"==typeof Wt&&(Wt="Object"),`${Ft}: ${Wt}`.slice(0,50))}let Qs=(()=>{class Ft extends Z{value;_optionMap=new Map;_idCounter=0;set compareWith(xt){this._compareWith=xt}_compareWith=Object.is;appRefInjector=(0,d.WQX)(S.o8S).injector;destroyRef=(0,d.WQX)(d.abz);cdr=(0,d.WQX)(T.gRc);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,(0,S.mal)({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(xt){this.cdr.markForCheck(),this.value=xt;const He=Ys(this._getOptionId(xt),xt);this.setProperty("value",He)}registerOnChange(xt){this.onChange=Fe=>{this.value=this._getOptionValue(Fe),xt(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(xt){for(const Fe of this._optionMap.keys())if(this._compareWith(this._optionMap.get(Fe),xt))return Fe;return null}_getOptionValue(xt){const Fe=function Us(Ft){return Ft.split(":")[0]}(xt);return this._optionMap.has(Fe)?this._optionMap.get(Fe):xt}static \u0275fac=(()=>{let xt;return function(He){return(xt||(xt=S.xGo(Ft)))(He||Ft)}})();static \u0275dir=S.FsC({type:Ft,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Fe,He){1&Fe&&S.bIt("change",function(Ut){return He.onChange(Ut.target.value)})("blur",function(){return He.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[S.Jv_([ws]),S.Vt3]})}return Ft})(),nr=(()=>{class Ft{_element;_renderer;_select;id;constructor(xt,Fe,He){this._element=xt,this._renderer=Fe,this._select=He,this._select&&(this.id=this._select._registerOption())}set ngValue(xt){null!=this._select&&(this._select._optionMap.set(this.id,xt),this._setElementValue(Ys(this.id,xt)),this._select._writeValueAfterRender())}set value(xt){this._setElementValue(xt),this._select&&this._select._writeValueAfterRender()}_setElementValue(xt){this._renderer.setProperty(this._element.nativeElement,"value",xt)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select._writeValueAfterRender())}static \u0275fac=function(Fe){return new(Fe||Ft)(S.rXU(S.aKT),S.rXU(S.sFG),S.rXU(Qs,9))};static \u0275dir=S.FsC({type:Ft,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return Ft})();const gn={provide:A,useExisting:(0,d.Rfq)(()=>Wn),multi:!0};function Xt(Ft,Wt){return null==Ft?`${Wt}`:("string"==typeof Wt&&(Wt=`'${Wt}'`),Wt&&"object"==typeof Wt&&(Wt="Object"),`${Ft}: ${Wt}`.slice(0,50))}let Wn=(()=>{class Ft extends Z{value;_optionMap=new Map;_idCounter=0;set compareWith(xt){this._compareWith=xt}_compareWith=Object.is;writeValue(xt){let Fe;if(this.value=xt,Array.isArray(xt)){const He=xt.map(wt=>this._getOptionId(wt));Fe=(wt,Ut)=>{wt._setSelected(He.indexOf(Ut.toString())>-1)}}else Fe=(He,wt)=>{He._setSelected(!1)};this._optionMap.forEach(Fe)}registerOnChange(xt){this.onChange=Fe=>{const He=[],wt=Fe.selectedOptions;if(void 0!==wt){const Ut=wt;for(let cn=0;cn<Ut.length;cn++){const $n=this._getOptionValue(Ut[cn].value);He.push($n)}}else{const Ut=Fe.options;for(let cn=0;cn<Ut.length;cn++){const Ln=Ut[cn];if(Ln.selected){const $n=this._getOptionValue(Ln.value);He.push($n)}}}this.value=He,xt(He)}}_registerOption(xt){const Fe=(this._idCounter++).toString();return this._optionMap.set(Fe,xt),Fe}_getOptionId(xt){for(const Fe of this._optionMap.keys())if(this._compareWith(this._optionMap.get(Fe)._value,xt))return Fe;return null}_getOptionValue(xt){const Fe=function hn(Ft){return Ft.split(":")[0]}(xt);return this._optionMap.has(Fe)?this._optionMap.get(Fe)._value:xt}static \u0275fac=(()=>{let xt;return function(He){return(xt||(xt=S.xGo(Ft)))(He||Ft)}})();static \u0275dir=S.FsC({type:Ft,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(Fe,He){1&Fe&&S.bIt("change",function(Ut){return He.onChange(Ut.target)})("blur",function(){return He.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[S.Jv_([gn]),S.Vt3]})}return Ft})(),Fi=(()=>{class Ft{_element;_renderer;_select;id;_value;constructor(xt,Fe,He){this._element=xt,this._renderer=Fe,this._select=He,this._select&&(this.id=this._select._registerOption(this))}set ngValue(xt){null!=this._select&&(this._value=xt,this._setElementValue(Xt(this.id,xt)),this._select.writeValue(this._select.value))}set value(xt){this._select?(this._value=xt,this._setElementValue(Xt(this.id,xt)),this._select.writeValue(this._select.value)):this._setElementValue(xt)}_setElementValue(xt){this._renderer.setProperty(this._element.nativeElement,"value",xt)}_setSelected(xt){this._renderer.setProperty(this._element.nativeElement,"selected",xt)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(Fe){return new(Fe||Ft)(S.rXU(S.aKT),S.rXU(S.sFG),S.rXU(Wn,9))};static \u0275dir=S.FsC({type:Ft,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return Ft})();function bo(Ft){return"number"==typeof Ft?Ft:parseFloat(Ft)}let Mo=(()=>{class Ft{_validator=he;_onChange;_enabled;ngOnChanges(xt){if(this.inputName in xt){const Fe=this.normalizeInput(xt[this.inputName].currentValue);this._enabled=this.enabled(Fe),this._validator=this._enabled?this.createValidator(Fe):he,this._onChange&&this._onChange()}}validate(xt){return this._validator(xt)}registerOnValidatorChange(xt){this._onChange=xt}enabled(xt){return null!=xt}static \u0275fac=function(Fe){return new(Fe||Ft)};static \u0275dir=S.FsC({type:Ft,features:[S.OA$]})}return Ft})();const rs={provide:K,useExisting:(0,d.Rfq)(()=>is),multi:!0};let is=(()=>{class Ft extends Mo{max;inputName="max";normalizeInput=xt=>bo(xt);createValidator=xt=>function Re(Ft){return Wt=>{if(null==Wt.value||null==Ft)return null;const xt=parseFloat(Wt.value);return!isNaN(xt)&&xt>Ft?{max:{max:Ft,actual:Wt.value}}:null}}(xt);static \u0275fac=(()=>{let xt;return function(He){return(xt||(xt=S.xGo(Ft)))(He||Ft)}})();static \u0275dir=S.FsC({type:Ft,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Fe,He){2&Fe&&S.BMQ("max",He._enabled?He.max:null)},inputs:{max:"max"},standalone:!1,features:[S.Jv_([rs]),S.Vt3]})}return Ft})();const $s={provide:K,useExisting:(0,d.Rfq)(()=>Es),multi:!0};let Es=(()=>{class Ft extends Mo{min;inputName="min";normalizeInput=xt=>bo(xt);createValidator=xt=>function ce(Ft){return Wt=>{if(null==Wt.value||null==Ft)return null;const xt=parseFloat(Wt.value);return!isNaN(xt)&&xt<Ft?{min:{min:Ft,actual:Wt.value}}:null}}(xt);static \u0275fac=(()=>{let xt;return function(He){return(xt||(xt=S.xGo(Ft)))(He||Ft)}})();static \u0275dir=S.FsC({type:Ft,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Fe,He){2&Fe&&S.BMQ("min",He._enabled?He.min:null)},inputs:{min:"min"},standalone:!1,features:[S.Jv_([$s]),S.Vt3]})}return Ft})();const ir={provide:K,useExisting:(0,d.Rfq)(()=>Js),multi:!0},Cr={provide:K,useExisting:(0,d.Rfq)(()=>Or),multi:!0};let Js=(()=>{class Ft extends Mo{required;inputName="required";normalizeInput=T.L39;createValidator=xt=>Se;enabled(xt){return xt}static \u0275fac=(()=>{let xt;return function(He){return(xt||(xt=S.xGo(Ft)))(He||Ft)}})();static \u0275dir=S.FsC({type:Ft,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Fe,He){2&Fe&&S.BMQ("required",He._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[S.Jv_([ir]),S.Vt3]})}return Ft})(),Or=(()=>{class Ft extends Js{createValidator=xt=>De;static \u0275fac=(()=>{let xt;return function(He){return(xt||(xt=S.xGo(Ft)))(He||Ft)}})();static \u0275dir=S.FsC({type:Ft,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Fe,He){2&Fe&&S.BMQ("required",He._enabled?"":null)},standalone:!1,features:[S.Jv_([Cr]),S.Vt3]})}return Ft})(),oa=(()=>{class Ft{static \u0275fac=function(Fe){return new(Fe||Ft)};static \u0275mod=S.$C({type:Ft});static \u0275inj=d.G2t({})}return Ft})(),Po=(()=>{class Ft{static withConfig(xt){return{ngModule:Ft,providers:[{provide:Yi,useValue:xt.callSetDisabledState??Sn}]}}static \u0275fac=function(Fe){return new(Fe||Ft)};static \u0275mod=S.$C({type:Ft});static \u0275inj=d.G2t({imports:[oa]})}return Ft})()},8842:(En,it,p)=>{"use strict";p.d(it,{By:()=>e,_N:()=>k,ni:()=>C});var S=p(1363),d=p(9293),m=p(9659),T=p(6211);const C="dxswipestart",e="dxswipe",k="dxswipeend",v={horizontal:{defaultItemSizeFunc:function(){return(0,S.RG)(this.getElement())},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(b){return((0,d.rw)(b).x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,b)},isFastSwipe:function(b){const B=(0,d.rw)(b);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(B.x-this._tickData.x)>=B.time-this._tickData.time}},vertical:{defaultItemSizeFunc:function(){return(0,S.Oq)(this.getElement())},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(b){return((0,d.rw)(b).y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,b)},isFastSwipe:function(b){const B=(0,d.rw)(b);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(B.y-this._tickData.y)>=B.time-this._tickData.time}}},x=m.A.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(b){this.callBase(b),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return v[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(b){this._tickData=(0,d.rw)(b)},_start:function(b){this._savedEventData=(0,d.rw)(b),(b=this._fireEvent("dxswipestart",b)).cancel||(this._maxLeftOffset=b.maxLeftOffset,this._maxRightOffset=b.maxRightOffset,this._maxTopOffset=b.maxTopOffset,this._maxBottomOffset=b.maxBottomOffset)},_move:function(b){const B=this._getStrategy(),j=(0,d.rw)(b);let F=B.calcOffsetRatio.call(this,b);F=this._fitOffset(F,this.elastic),j.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=j),this._fireEvent("dxswipe",b,{offset:F}),!1!==b.cancelable&&b.preventDefault()},_end:function(b){const B=this._getStrategy(),j=B.calcOffsetRatio.call(this,b),F=B.isFastSwipe.call(this,b);let X=j,U=this._calcTargetOffset(j,F);X=this._fitOffset(X,this.elastic),U=this._fitOffset(U,!1),this._fireEvent("dxswipeend",b,{offset:X,targetOffset:U})},_fitOffset:function(b,B){const F=this._getStrategy().getBounds.call(this);return b<-F[0]?B?(-2*F[0]+b)/3:-F[0]:b>F[1]?B?(2*F[1]+b)/3:F[1]:b},_calcTargetOffset:function(b,B){let j;return B?(j=Math.ceil(Math.abs(b)),b<0&&(j=-j)):j=Math.round(b),j}});(0,T.A)({emitter:x,events:["dxswipestart","dxswipe","dxswipeend"]})},8879:(En,it,p)=>{"use strict";p.d(it,{UK:()=>v,UU:()=>P,pV:()=>x});var S=p(5397),d=p(4072),m=p(1830),T=p(1110);const k=new WeakMap;let w=0;const P=function(b,B){if(!(0,m.O9)(B)){if(!k.has(b)){const j="dxPrivateComponent"+w++;return k.set(b,j),j}return k.get(b)}k.set(b,B)};function v(b,B,j){const F=(0,S.p)(b.get(0)),X=P(B.constructor);F[X]=B,j&&d.A.one(b,T.N,function(){j.call(B)}),F.dxComponents||(F.dxComponents=[]),F.dxComponents.push(X)}function x(b,B){const j=P(B);return(0,S.p)(b.get(0),j)}},8889:(En,it,p)=>{"use strict";p.d(it,{C:()=>m,U:()=>T});var S=p(7270),d=p(4418);function m(C){return(0,S.AQ)(this,arguments,function*(){const k=C.getReader();try{for(;;){const{value:w,done:P}=yield(0,S.N3)(k.read());if(P)return yield(0,S.N3)(void 0);yield yield(0,S.N3)(w)}}finally{k.releaseLock()}})}function T(C){return(0,d.T)(C?.getReader)}},8892:(En,it,p)=>{"use strict";p.d(it,{b:()=>w,m:()=>k});var S=p(656),d=p(4303),m=p(5730),T=p(8832),C=p(3349);const e={provide:T.kq,useExisting:(0,S.Rfq)(()=>k),multi:!0};let k=(()=>{class P extends C.ic{_watcherHelper;_idh;instance=null;get abortUpload(){return this._getOption("abortUpload")}set abortUpload(x){this._setOption("abortUpload",x)}get accept(){return this._getOption("accept")}set accept(x){this._setOption("accept",x)}get accessKey(){return this._getOption("accessKey")}set accessKey(x){this._setOption("accessKey",x)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(x){this._setOption("activeStateEnabled",x)}get allowCanceling(){return this._getOption("allowCanceling")}set allowCanceling(x){this._setOption("allowCanceling",x)}get allowedFileExtensions(){return this._getOption("allowedFileExtensions")}set allowedFileExtensions(x){this._setOption("allowedFileExtensions",x)}get chunkSize(){return this._getOption("chunkSize")}set chunkSize(x){this._setOption("chunkSize",x)}get dialogTrigger(){return this._getOption("dialogTrigger")}set dialogTrigger(x){this._setOption("dialogTrigger",x)}get disabled(){return this._getOption("disabled")}set disabled(x){this._setOption("disabled",x)}get dropZone(){return this._getOption("dropZone")}set dropZone(x){this._setOption("dropZone",x)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(x){this._setOption("elementAttr",x)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(x){this._setOption("focusStateEnabled",x)}get height(){return this._getOption("height")}set height(x){this._setOption("height",x)}get hint(){return this._getOption("hint")}set hint(x){this._setOption("hint",x)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(x){this._setOption("hoverStateEnabled",x)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(x){this._setOption("inputAttr",x)}get invalidFileExtensionMessage(){return this._getOption("invalidFileExtensionMessage")}set invalidFileExtensionMessage(x){this._setOption("invalidFileExtensionMessage",x)}get invalidMaxFileSizeMessage(){return this._getOption("invalidMaxFileSizeMessage")}set invalidMaxFileSizeMessage(x){this._setOption("invalidMaxFileSizeMessage",x)}get invalidMinFileSizeMessage(){return this._getOption("invalidMinFileSizeMessage")}set invalidMinFileSizeMessage(x){this._setOption("invalidMinFileSizeMessage",x)}get isDirty(){return this._getOption("isDirty")}set isDirty(x){this._setOption("isDirty",x)}get isValid(){return this._getOption("isValid")}set isValid(x){this._setOption("isValid",x)}get labelText(){return this._getOption("labelText")}set labelText(x){this._setOption("labelText",x)}get maxFileSize(){return this._getOption("maxFileSize")}set maxFileSize(x){this._setOption("maxFileSize",x)}get minFileSize(){return this._getOption("minFileSize")}set minFileSize(x){this._setOption("minFileSize",x)}get multiple(){return this._getOption("multiple")}set multiple(x){this._setOption("multiple",x)}get name(){return this._getOption("name")}set name(x){this._setOption("name",x)}get progress(){return this._getOption("progress")}set progress(x){this._setOption("progress",x)}get readOnly(){return this._getOption("readOnly")}set readOnly(x){this._setOption("readOnly",x)}get readyToUploadMessage(){return this._getOption("readyToUploadMessage")}set readyToUploadMessage(x){this._setOption("readyToUploadMessage",x)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(x){this._setOption("rtlEnabled",x)}get selectButtonText(){return this._getOption("selectButtonText")}set selectButtonText(x){this._setOption("selectButtonText",x)}get showFileList(){return this._getOption("showFileList")}set showFileList(x){this._setOption("showFileList",x)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(x){this._setOption("tabIndex",x)}get uploadAbortedMessage(){return this._getOption("uploadAbortedMessage")}set uploadAbortedMessage(x){this._setOption("uploadAbortedMessage",x)}get uploadButtonText(){return this._getOption("uploadButtonText")}set uploadButtonText(x){this._setOption("uploadButtonText",x)}get uploadChunk(){return this._getOption("uploadChunk")}set uploadChunk(x){this._setOption("uploadChunk",x)}get uploadCustomData(){return this._getOption("uploadCustomData")}set uploadCustomData(x){this._setOption("uploadCustomData",x)}get uploadedMessage(){return this._getOption("uploadedMessage")}set uploadedMessage(x){this._setOption("uploadedMessage",x)}get uploadFailedMessage(){return this._getOption("uploadFailedMessage")}set uploadFailedMessage(x){this._setOption("uploadFailedMessage",x)}get uploadFile(){return this._getOption("uploadFile")}set uploadFile(x){this._setOption("uploadFile",x)}get uploadHeaders(){return this._getOption("uploadHeaders")}set uploadHeaders(x){this._setOption("uploadHeaders",x)}get uploadMethod(){return this._getOption("uploadMethod")}set uploadMethod(x){this._setOption("uploadMethod",x)}get uploadMode(){return this._getOption("uploadMode")}set uploadMode(x){this._setOption("uploadMode",x)}get uploadUrl(){return this._getOption("uploadUrl")}set uploadUrl(x){this._setOption("uploadUrl",x)}get validationError(){return this._getOption("validationError")}set validationError(x){this._setOption("validationError",x)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(x){this._setOption("validationErrors",x)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(x){this._setOption("validationStatus",x)}get value(){return this._getOption("value")}set value(x){this._setOption("value",x)}get visible(){return this._getOption("visible")}set visible(x){this._setOption("visible",x)}get width(){return this._getOption("width")}set width(x){this._setOption("width",x)}onBeforeSend;onContentReady;onDisposing;onDropZoneEnter;onDropZoneLeave;onFilesUploaded;onInitialized;onOptionChanged;onProgress;onUploadAborted;onUploaded;onUploadError;onUploadStarted;onValueChanged;abortUploadChange;acceptChange;accessKeyChange;activeStateEnabledChange;allowCancelingChange;allowedFileExtensionsChange;chunkSizeChange;dialogTriggerChange;disabledChange;dropZoneChange;elementAttrChange;focusStateEnabledChange;heightChange;hintChange;hoverStateEnabledChange;inputAttrChange;invalidFileExtensionMessageChange;invalidMaxFileSizeMessageChange;invalidMinFileSizeMessageChange;isDirtyChange;isValidChange;labelTextChange;maxFileSizeChange;minFileSizeChange;multipleChange;nameChange;progressChange;readOnlyChange;readyToUploadMessageChange;rtlEnabledChange;selectButtonTextChange;showFileListChange;tabIndexChange;uploadAbortedMessageChange;uploadButtonTextChange;uploadChunkChange;uploadCustomDataChange;uploadedMessageChange;uploadFailedMessageChange;uploadFileChange;uploadHeadersChange;uploadMethodChange;uploadModeChange;uploadUrlChange;validationErrorChange;validationErrorsChange;validationStatusChange;valueChange;visibleChange;widthChange;onBlur;change(x){}touched=x=>{};constructor(x,b,B,j,F,X,U,Z){super(x,b,B,j,U,Z),this._watcherHelper=j,this._idh=F,this._createEventEmitters([{subscribe:"beforeSend",emit:"onBeforeSend"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"dropZoneEnter",emit:"onDropZoneEnter"},{subscribe:"dropZoneLeave",emit:"onDropZoneLeave"},{subscribe:"filesUploaded",emit:"onFilesUploaded"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"progress",emit:"onProgress"},{subscribe:"uploadAborted",emit:"onUploadAborted"},{subscribe:"uploaded",emit:"onUploaded"},{subscribe:"uploadError",emit:"onUploadError"},{subscribe:"uploadStarted",emit:"onUploadStarted"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"abortUploadChange"},{emit:"acceptChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowCancelingChange"},{emit:"allowedFileExtensionsChange"},{emit:"chunkSizeChange"},{emit:"dialogTriggerChange"},{emit:"disabledChange"},{emit:"dropZoneChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"invalidFileExtensionMessageChange"},{emit:"invalidMaxFileSizeMessageChange"},{emit:"invalidMinFileSizeMessageChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"labelTextChange"},{emit:"maxFileSizeChange"},{emit:"minFileSizeChange"},{emit:"multipleChange"},{emit:"nameChange"},{emit:"progressChange"},{emit:"readOnlyChange"},{emit:"readyToUploadMessageChange"},{emit:"rtlEnabledChange"},{emit:"selectButtonTextChange"},{emit:"showFileListChange"},{emit:"tabIndexChange"},{emit:"uploadAbortedMessageChange"},{emit:"uploadButtonTextChange"},{emit:"uploadChunkChange"},{emit:"uploadCustomDataChange"},{emit:"uploadedMessageChange"},{emit:"uploadFailedMessageChange"},{emit:"uploadFileChange"},{emit:"uploadHeadersChange"},{emit:"uploadMethodChange"},{emit:"uploadModeChange"},{emit:"uploadUrlChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),X.setHost(this)}_createInstance(x,b){return new m.A(x,b)}writeValue(x){this.eventHelper.lockedValueChangeEvent=!0,this.value=x,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(x){this.disabled=x}registerOnChange(x){this.change=x}registerOnTouched(x){this.touched=x}_createWidget(x){super._createWidget(x),this.instance.on("focusOut",b=>{this.eventHelper.fireNgEvent("onBlur",[b])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(x){super.ngOnChanges(x),this.setupChanges("allowedFileExtensions",x),this.setupChanges("validationErrors",x),this.setupChanges("value",x)}setupChanges(x,b){x in this._optionsToUpdate||this._idh.setup(x,b)}ngDoCheck(){this._idh.doCheck("allowedFileExtensions"),this._idh.doCheck("validationErrors"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(x,b){let B=this._idh.setupSingle(x,b),j=null!==this._idh.getChanges(x,b);(B||j)&&super._setOption(x,b)}static \u0275fac=function(b){return new(b||P)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(C.zF),d.rXU(C.jS),d.rXU(C.$M),d.rXU(C.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:P,selectors:[["dx-file-uploader"]],hostBindings:function(b,B){1&b&&d.bIt("valueChange",function(F){return B.change(F)})("onBlur",function(F){return B.touched(F)})},inputs:{abortUpload:"abortUpload",accept:"accept",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowCanceling:"allowCanceling",allowedFileExtensions:"allowedFileExtensions",chunkSize:"chunkSize",dialogTrigger:"dialogTrigger",disabled:"disabled",dropZone:"dropZone",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",invalidFileExtensionMessage:"invalidFileExtensionMessage",invalidMaxFileSizeMessage:"invalidMaxFileSizeMessage",invalidMinFileSizeMessage:"invalidMinFileSizeMessage",isDirty:"isDirty",isValid:"isValid",labelText:"labelText",maxFileSize:"maxFileSize",minFileSize:"minFileSize",multiple:"multiple",name:"name",progress:"progress",readOnly:"readOnly",readyToUploadMessage:"readyToUploadMessage",rtlEnabled:"rtlEnabled",selectButtonText:"selectButtonText",showFileList:"showFileList",tabIndex:"tabIndex",uploadAbortedMessage:"uploadAbortedMessage",uploadButtonText:"uploadButtonText",uploadChunk:"uploadChunk",uploadCustomData:"uploadCustomData",uploadedMessage:"uploadedMessage",uploadFailedMessage:"uploadFailedMessage",uploadFile:"uploadFile",uploadHeaders:"uploadHeaders",uploadMethod:"uploadMethod",uploadMode:"uploadMode",uploadUrl:"uploadUrl",validationError:"validationError",validationErrors:"validationErrors",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onBeforeSend:"onBeforeSend",onContentReady:"onContentReady",onDisposing:"onDisposing",onDropZoneEnter:"onDropZoneEnter",onDropZoneLeave:"onDropZoneLeave",onFilesUploaded:"onFilesUploaded",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onProgress:"onProgress",onUploadAborted:"onUploadAborted",onUploaded:"onUploaded",onUploadError:"onUploadError",onUploadStarted:"onUploadStarted",onValueChanged:"onValueChanged",abortUploadChange:"abortUploadChange",acceptChange:"acceptChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowCancelingChange:"allowCancelingChange",allowedFileExtensionsChange:"allowedFileExtensionsChange",chunkSizeChange:"chunkSizeChange",dialogTriggerChange:"dialogTriggerChange",disabledChange:"disabledChange",dropZoneChange:"dropZoneChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",invalidFileExtensionMessageChange:"invalidFileExtensionMessageChange",invalidMaxFileSizeMessageChange:"invalidMaxFileSizeMessageChange",invalidMinFileSizeMessageChange:"invalidMinFileSizeMessageChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",labelTextChange:"labelTextChange",maxFileSizeChange:"maxFileSizeChange",minFileSizeChange:"minFileSizeChange",multipleChange:"multipleChange",nameChange:"nameChange",progressChange:"progressChange",readOnlyChange:"readOnlyChange",readyToUploadMessageChange:"readyToUploadMessageChange",rtlEnabledChange:"rtlEnabledChange",selectButtonTextChange:"selectButtonTextChange",showFileListChange:"showFileListChange",tabIndexChange:"tabIndexChange",uploadAbortedMessageChange:"uploadAbortedMessageChange",uploadButtonTextChange:"uploadButtonTextChange",uploadChunkChange:"uploadChunkChange",uploadCustomDataChange:"uploadCustomDataChange",uploadedMessageChange:"uploadedMessageChange",uploadFailedMessageChange:"uploadFailedMessageChange",uploadFileChange:"uploadFileChange",uploadHeadersChange:"uploadHeadersChange",uploadMethodChange:"uploadMethodChange",uploadModeChange:"uploadModeChange",uploadUrlChange:"uploadUrlChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},standalone:!1,features:[d.Jv_([C.zF,C.jS,e,C.fH,C.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(b,B){},encapsulation:2})}return P})(),w=(()=>{class P{static \u0275fac=function(b){return new(b||P)};static \u0275mod=d.$C({type:P});static \u0275inj=S.G2t({imports:[C.p_,C.xZ,C.xZ]})}return P})()},8910:(En,it,p)=>{"use strict";p.d(it,{A:()=>U});var S=p(1973),d=p(5704),m=p(3090),T=p(1363),C=p(6110),e=p(9293),k=p(221);const w=(0,C.zk)(),P=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],j=k.A.inherit({ctor(Z,A){A&&(this._showClearButton=A.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions(){return(0,m.X)(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup(){this.$element().addClass("dx-textbox"),this.callBase(),this.setAria("role","textbox")},_renderInputType(){this.callBase(),this._renderSearchMode()},_useTemplates:()=>!1,_renderProps(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp(){const Z=this._getMaxLength();Z&&Z>0?this._input().attr("maxLength",Z):this._input().removeAttr("maxLength")},_renderSearchMode(){const Z=this._$element;"search"===this.option("mode")?(Z.addClass("dx-searchbox"),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(Z.removeClass("dx-searchbox"),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon(){const Z=(0,d.A)("<div>").addClass("dx-icon").addClass("dx-icon-search");Z.prependTo(this._input().parent()),this._$searchIcon=Z},_getLabelContainerWidth(){if(this._$searchIcon){const Z=this._input().parent();return(0,T.RG)(Z)-this._getLabelBeforeWidth()}return this.callBase()},_getLabelBeforeWidth(){let Z=this.callBase();return this._$searchIcon&&(Z+=(0,T.Ot)(this._$searchIcon)),Z},_optionChanged(Z){switch(Z.name){case"maxLength":this._toggleMaxLengthProp();break;case"mode":this.callBase(Z),this._updateLabelWidth();break;case"mask":this.callBase(Z),this._toggleMaxLengthProp();break;default:this.callBase(Z)}},_onKeyDownCutOffHandler(Z){const A=this._getMaxLength();if(A&&!Z.ctrlKey&&!this._hasSelection()){const M=(0,d.A)(Z.target),H=(0,e.YD)(Z);return this._cutOffExtraChar(M),M.val().length<A||P.includes(H)||""!==w.getSelection().toString()}return!0},_onChangeCutOffHandler(Z){const A=(0,d.A)(Z.target);this.option("maxLength")&&this._cutOffExtraChar(A)},_cutOffExtraChar(Z){const A=this._getMaxLength(),M=Z.val();A&&M.length>A&&Z.val(M.substr(0,A))},_getMaxLength(){return this.option("mask")?null:this.option("maxLength")}});(0,S.A)("dxTextBox",j);const U=j},8914:(En,it,p)=>{"use strict";p.d(it,{$Ql:()=>du,$Xk:()=>ms,$lK:()=>Ue,B9H:()=>Xu,BR_:()=>jr,Bkf:()=>xd,BrI:()=>rn,CVf:()=>je,CWj:()=>vi,FOK:()=>Pi,GCl:()=>Ii,GIV:()=>Mn,GLd:()=>Kl,GQ:()=>qu,HKo:()=>ue,Hl$:()=>kp,I1b:()=>nu,Inh:()=>We,Ixj:()=>Mi,JjR:()=>xi,L0X:()=>$s,MBy:()=>Tr,Mru:()=>Ql,MtA:()=>zn,OWJ:()=>io,POb:()=>Ne,PVd:()=>Lu,Pxf:()=>ot,QWP:()=>ti,Qx:()=>Oa,S2P:()=>lc,Sn2:()=>Js,Sy5:()=>ca,T0t:()=>Zd,TBD:()=>Mh,Tob:()=>na,TsZ:()=>Ia,U9o:()=>kc,VY_:()=>Ma,Vku:()=>ua,W6p:()=>vt,WC8:()=>Ta,WXx:()=>Ra,Wnt:()=>sa,X1G:()=>qn,X6g:()=>th,XUe:()=>Vs,YC7:()=>It,YGc:()=>cs,YLo:()=>F,YaD:()=>as,ZaD:()=>yd,Zac:()=>ta,_RO:()=>As,_zS:()=>Yu,a6E:()=>Pc,aJg:()=>ds,dFh:()=>Am,df_:()=>yo,eA9:()=>au,eNx:()=>bn,f8z:()=>Yt,gf0:()=>za,hAh:()=>ac,hUd:()=>Va,hVU:()=>Ih,hXY:()=>lu,hXw:()=>q,hyP:()=>dn,i9t:()=>eo,iiR:()=>oc,isg:()=>Ki,joz:()=>Mt,k4A:()=>Zs,k61:()=>ls,kYc:()=>Zc,l4W:()=>$r,lkr:()=>vf,m1r:()=>bd,m56:()=>Wc,mGe:()=>Wa,nj_:()=>ri,nrj:()=>Yi,nwt:()=>ie,nz1:()=>e,oCB:()=>ir,pGU:()=>en,qCh:()=>Kc,rER:()=>fg,rj$:()=>Lt,rkl:()=>rc,rvW:()=>tu,s5o:()=>Ac,sVQ:()=>Dl,tWd:()=>Si,u4t:()=>Xc,uE7:()=>Nl,uIe:()=>ws,vwi:()=>wp,x$q:()=>Ap,x_w:()=>pd,yA4:()=>Rs,zkV:()=>Mo});var S=p(656),d=p(4303),m=p(3349);const T=["*"];let e=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),F=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),ie=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),q=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),fe=(()=>{class Xe extends m.l9{get disabled(){return this._getOption("disabled")}set disabled(h){this._setOption("disabled",h)}get html(){return this._getOption("html")}set html(h){this._setOption("html",h)}get icon(){return this._getOption("icon")}set icon(h){this._setOption("icon",h)}get template(){return this._getOption("template")}set template(h){this._setOption("template",h)}get text(){return this._getOption("text")}set text(h){this._setOption("text",h)}get title(){return this._getOption("title")}set title(h){this._setOption("title",h)}get titleTemplate(){return this._getOption("titleTemplate")}set titleTemplate(h){this._setOption("titleTemplate",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get onClick(){return this._getOption("onClick")}set onClick(h){this._setOption("onClick",h)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(h){this._setOption("stylingMode",h)}get type(){return this._getOption("type")}set type(h){this._setOption("type",h)}get baseSize(){return this._getOption("baseSize")}set baseSize(h){this._setOption("baseSize",h)}get box(){return this._getOption("box")}set box(h){this._setOption("box",h)}get ratio(){return this._getOption("ratio")}set ratio(h){this._setOption("ratio",h)}get shrink(){return this._getOption("shrink")}set shrink(h){this._setOption("shrink",h)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(h){this._setOption("elementAttr",h)}get hint(){return this._getOption("hint")}set hint(h){this._setOption("hint",h)}get beginGroup(){return this._getOption("beginGroup")}set beginGroup(h){this._setOption("beginGroup",h)}get closeMenuOnClick(){return this._getOption("closeMenuOnClick")}set closeMenuOnClick(h){this._setOption("closeMenuOnClick",h)}get items(){return this._getOption("items")}set items(h){this._setOption("items",h)}get selectable(){return this._getOption("selectable")}set selectable(h){this._setOption("selectable",h)}get selected(){return this._getOption("selected")}set selected(h){this._setOption("selected",h)}get colSpan(){return this._getOption("colSpan")}set colSpan(h){this._setOption("colSpan",h)}get cssClass(){return this._getOption("cssClass")}set cssClass(h){this._setOption("cssClass",h)}get dataField(){return this._getOption("dataField")}set dataField(h){this._setOption("dataField",h)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(h){this._setOption("editorOptions",h)}get editorType(){return this._getOption("editorType")}set editorType(h){this._setOption("editorType",h)}get helpText(){return this._getOption("helpText")}set helpText(h){this._setOption("helpText",h)}get isRequired(){return this._getOption("isRequired")}set isRequired(h){this._setOption("isRequired",h)}get itemType(){return this._getOption("itemType")}set itemType(h){this._setOption("itemType",h)}get label(){return this._getOption("label")}set label(h){this._setOption("label",h)}get name(){return this._getOption("name")}set name(h){this._setOption("name",h)}get validationRules(){return this._getOption("validationRules")}set validationRules(h){this._setOption("validationRules",h)}get visibleIndex(){return this._getOption("visibleIndex")}set visibleIndex(h){this._setOption("visibleIndex",h)}get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(h){this._setOption("alignItemLabels",h)}get caption(){return this._getOption("caption")}set caption(h){this._setOption("caption",h)}get captionTemplate(){return this._getOption("captionTemplate")}set captionTemplate(h){this._setOption("captionTemplate",h)}get colCount(){return this._getOption("colCount")}set colCount(h){this._setOption("colCount",h)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(h){this._setOption("colCountByScreen",h)}get tabPanelOptions(){return this._getOption("tabPanelOptions")}set tabPanelOptions(h){this._setOption("tabPanelOptions",h)}get tabs(){return this._getOption("tabs")}set tabs(h){this._setOption("tabs",h)}get badge(){return this._getOption("badge")}set badge(h){this._setOption("badge",h)}get tabTemplate(){return this._getOption("tabTemplate")}set tabTemplate(h){this._setOption("tabTemplate",h)}get buttonOptions(){return this._getOption("buttonOptions")}set buttonOptions(h){this._setOption("buttonOptions",h)}get horizontalAlignment(){return this._getOption("horizontalAlignment")}set horizontalAlignment(h){this._setOption("horizontalAlignment",h)}get verticalAlignment(){return this._getOption("verticalAlignment")}set verticalAlignment(h){this._setOption("verticalAlignment",h)}get locateInMenu(){return this._getOption("locateInMenu")}set locateInMenu(h){this._setOption("locateInMenu",h)}get location(){return this._getOption("location")}set location(h){this._setOption("location",h)}get menuItemTemplate(){return this._getOption("menuItemTemplate")}set menuItemTemplate(h){this._setOption("menuItemTemplate",h)}get options(){return this._getOption("options")}set options(h){this._setOption("options",h)}get showText(){return this._getOption("showText")}set showText(h){this._setOption("showText",h)}get widget(){return this._getOption("widget")}set widget(h){this._setOption("widget",h)}get height(){return this._getOption("height")}set height(h){this._setOption("height",h)}get width(){return this._getOption("width")}set width(h){this._setOption("width",h)}get imageAlt(){return this._getOption("imageAlt")}set imageAlt(h){this._setOption("imageAlt",h)}get imageSrc(){return this._getOption("imageSrc")}set imageSrc(h){this._setOption("imageSrc",h)}get acceptedValues(){return this._getOption("acceptedValues")}set acceptedValues(h){this._setOption("acceptedValues",h)}get formatName(){return this._getOption("formatName")}set formatName(h){this._setOption("formatName",h)}get formatValues(){return this._getOption("formatValues")}set formatValues(h){this._setOption("formatValues",h)}get key(){return this._getOption("key")}set key(h){this._setOption("key",h)}get showChevron(){return this._getOption("showChevron")}set showChevron(h){this._setOption("showChevron",h)}get linkAttr(){return this._getOption("linkAttr")}set linkAttr(h){this._setOption("linkAttr",h)}get url(){return this._getOption("url")}set url(h){this._setOption("url",h)}get collapsed(){return this._getOption("collapsed")}set collapsed(h){this._setOption("collapsed",h)}get collapsedSize(){return this._getOption("collapsedSize")}set collapsedSize(h){this._setOption("collapsedSize",h)}get collapsible(){return this._getOption("collapsible")}set collapsible(h){this._setOption("collapsible",h)}get maxSize(){return this._getOption("maxSize")}set maxSize(h){this._setOption("maxSize",h)}get minSize(){return this._getOption("minSize")}set minSize(h){this._setOption("minSize",h)}get resizable(){return this._getOption("resizable")}set resizable(h){this._setOption("resizable",h)}get size(){return this._getOption("size")}set size(h){this._setOption("size",h)}get splitter(){return this._getOption("splitter")}set splitter(h){this._setOption("splitter",h)}get heightRatio(){return this._getOption("heightRatio")}set heightRatio(h){this._setOption("heightRatio",h)}get widthRatio(){return this._getOption("widthRatio")}set widthRatio(h){this._setOption("widthRatio",h)}get expanded(){return this._getOption("expanded")}set expanded(h){this._setOption("expanded",h)}get hasItems(){return this._getOption("hasItems")}set hasItems(h){this._setOption("hasItems",h)}get id(){return this._getOption("id")}set id(h){this._setOption("id",h)}get parentId(){return this._getOption("parentId")}set parentId(h){this._setOption("parentId",h)}static \u0275fac=(()=>{let h;return function(Cn){return(h||(h=d.xGo(Xe)))(Cn||Xe)}})();static \u0275cmp=d.VBU({type:Xe,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),We=(()=>{class Xe extends m.l9{get message(){return this._getOption("message")}set message(h){this._setOption("message",h)}get trim(){return this._getOption("trim")}set trim(h){this._setOption("trim",h)}get type(){return this._getOption("type")}set type(h){this._setOption("type",h)}get ignoreEmptyValue(){return this._getOption("ignoreEmptyValue")}set ignoreEmptyValue(h){this._setOption("ignoreEmptyValue",h)}get max(){return this._getOption("max")}set max(h){this._setOption("max",h)}get min(){return this._getOption("min")}set min(h){this._setOption("min",h)}get reevaluate(){return this._getOption("reevaluate")}set reevaluate(h){this._setOption("reevaluate",h)}get validationCallback(){return this._getOption("validationCallback")}set validationCallback(h){this._setOption("validationCallback",h)}get comparisonTarget(){return this._getOption("comparisonTarget")}set comparisonTarget(h){this._setOption("comparisonTarget",h)}get comparisonType(){return this._getOption("comparisonType")}set comparisonType(h){this._setOption("comparisonType",h)}get pattern(){return this._getOption("pattern")}set pattern(h){this._setOption("pattern",h)}get _optionPath(){return"validationRules"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-validation-rule"]],inputs:{message:"message",trim:"trim",type:"type",ignoreEmptyValue:"ignoreEmptyValue",max:"max",min:"min",reevaluate:"reevaluate",validationCallback:"validationCallback",comparisonTarget:"comparisonTarget",comparisonType:"comparisonType",pattern:"pattern"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),Ue=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Ve=(()=>{class Xe extends m.l9{get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(h){this._setOption("alignItemLabels",h)}get badge(){return this._getOption("badge")}set badge(h){this._setOption("badge",h)}get colCount(){return this._getOption("colCount")}set colCount(h){this._setOption("colCount",h)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(h){this._setOption("colCountByScreen",h)}get disabled(){return this._getOption("disabled")}set disabled(h){this._setOption("disabled",h)}get icon(){return this._getOption("icon")}set icon(h){this._setOption("icon",h)}get items(){return this._getOption("items")}set items(h){this._setOption("items",h)}get tabTemplate(){return this._getOption("tabTemplate")}set tabTemplate(h){this._setOption("tabTemplate",h)}get template(){return this._getOption("template")}set template(h){this._setOption("template",h)}get title(){return this._getOption("title")}set title(h){this._setOption("title",h)}get commands(){return this._getOption("commands")}set commands(h){this._setOption("commands",h)}get groups(){return this._getOption("groups")}set groups(h){this._setOption("groups",h)}get name(){return this._getOption("name")}set name(h){this._setOption("name",h)}static \u0275fac=(()=>{let h;return function(Cn){return(h||(h=d.xGo(Xe)))(Cn||Xe)}})();static \u0275cmp=d.VBU({type:Xe,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),tt=(()=>{class Xe extends m.l9{get icon(){return this._getOption("icon")}set icon(h){this._setOption("icon",h)}get items(){return this._getOption("items")}set items(h){this._setOption("items",h)}get location(){return this._getOption("location")}set location(h){this._setOption("location",h)}get name(){return this._getOption("name")}set name(h){this._setOption("name",h)}get text(){return this._getOption("text")}set text(h){this._setOption("text",h)}static \u0275fac=(()=>{let h;return function(Cn){return(h||(h=d.xGo(Xe)))(Cn||Xe)}})();static \u0275cmp=d.VBU({type:Xe,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),at=(()=>{class Xe extends tt{get _optionPath(){return"commands"}get itemsChildren(){return this._getOption("items")}set itemsChildren(h){this.setChildren("items",h)}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-command"]],contentQueries:function(we,Cn,Ns){if(1&we&&d.wni(Ns,je,4),2&we){let vs;d.mGM(vs=d.lsd())&&(Cn.itemsChildren=vs)}},inputs:{icon:"icon",items:"items",location:"location",name:"name",text:"text"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),qe=(()=>{class Xe extends m.l9{get commands(){return this._getOption("commands")}set commands(h){this._setOption("commands",h)}get title(){return this._getOption("title")}set title(h){this._setOption("title",h)}get category(){return this._getOption("category")}set category(h){this._setOption("category",h)}get displayMode(){return this._getOption("displayMode")}set displayMode(h){this._setOption("displayMode",h)}get expanded(){return this._getOption("expanded")}set expanded(h){this._setOption("expanded",h)}get shapes(){return this._getOption("shapes")}set shapes(h){this._setOption("shapes",h)}get _optionPath(){return"groups"}get commandsChildren(){return this._getOption("commands")}set commandsChildren(h){this.setChildren("commands",h)}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-group"]],contentQueries:function(we,Cn,Ns){if(1&we&&d.wni(Ns,at,4),2&we){let vs;d.mGM(vs=d.lsd())&&(Cn.commandsChildren=vs)}},inputs:{commands:"commands",title:"title",category:"category",displayMode:"displayMode",expanded:"expanded",shapes:"shapes"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),et=(()=>{class Xe extends Ve{renderer;document;element;get _optionPath(){return"tabs"}get itemsChildren(){return this._getOption("items")}set itemsChildren(h){this.setChildren("items",h)}get commandsChildren(){return this._getOption("commands")}set commandsChildren(h){this.setChildren("commands",h)}get groupsChildren(){return this._getOption("groups")}set groupsChildren(h){this.setChildren("groups",h)}constructor(h,we,Cn,Ns,vs,_u){super(),this.renderer=Cn,this.document=Ns,this.element=_u,h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this)),vs.setHost(this)}setTemplate(h){this.template=h}ngAfterViewInit(){(0,m.ym)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1),d.rXU(d.sFG),d.rXU(S.qQL),d.rXU(m.zF,1),d.rXU(d.aKT))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-tab"]],contentQueries:function(we,Cn,Ns){if(1&we&&(d.wni(Ns,je,4),d.wni(Ns,at,4),d.wni(Ns,qe,4)),2&we){let vs;d.mGM(vs=d.lsd())&&(Cn.itemsChildren=vs),d.mGM(vs=d.lsd())&&(Cn.commandsChildren=vs),d.mGM(vs=d.lsd())&&(Cn.groupsChildren=vs)}},inputs:{alignItemLabels:"alignItemLabels",badge:"badge",colCount:"colCount",colCountByScreen:"colCountByScreen",disabled:"disabled",icon:"icon",items:"items",tabTemplate:"tabTemplate",template:"template",title:"title",commands:"commands",groups:"groups",name:"name"},standalone:!1,features:[d.Jv_([m.fH,m.zF]),d.Vt3],ngContentSelectors:T,decls:1,vars:0,template:function(we,Cn){1&we&&(d.NAR(),d.SdG(0))},styles:["[_nghost-%COMP%]{display:block}"]})}return Xe})(),ue=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),me=(()=>{class Xe extends m.l9{get lat(){return this._getOption("lat")}set lat(h){this._setOption("lat",h)}get lng(){return this._getOption("lng")}set lng(h){this._setOption("lng",h)}get col(){return this._getOption("col")}set col(h){this._setOption("col",h)}get colspan(){return this._getOption("colspan")}set colspan(h){this._setOption("colspan",h)}get row(){return this._getOption("row")}set row(h){this._setOption("row",h)}get rowspan(){return this._getOption("rowspan")}set rowspan(h){this._setOption("rowspan",h)}get screen(){return this._getOption("screen")}set screen(h){this._setOption("screen",h)}get _optionPath(){return"location"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-location"]],inputs:{lat:"lat",lng:"lng",col:"col",colspan:"colspan",row:"row",rowspan:"rowspan",screen:"screen"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),je=(()=>{class Xe extends fe{renderer;document;element;get _optionPath(){return"items"}get itemsChildren(){return this._getOption("items")}set itemsChildren(h){this.setChildren("items",h)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(h){this.setChildren("validationRules",h)}get tabsChildren(){return this._getOption("tabs")}set tabsChildren(h){this.setChildren("tabs",h)}get locationChildren(){return this._getOption("location")}set locationChildren(h){this.setChildren("location",h)}constructor(h,we,Cn,Ns,vs,_u){super(),this.renderer=Cn,this.document=Ns,this.element=_u,h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this)),vs.setHost(this)}setTemplate(h){this.template=h}ngAfterViewInit(){(0,m.ym)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1),d.rXU(d.sFG),d.rXU(S.qQL),d.rXU(m.zF,1),d.rXU(d.aKT))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-item"]],contentQueries:function(we,Cn,Ns){if(1&we&&(d.wni(Ns,Xe,4),d.wni(Ns,We,4),d.wni(Ns,et,4),d.wni(Ns,me,4)),2&we){let vs;d.mGM(vs=d.lsd())&&(Cn.itemsChildren=vs),d.mGM(vs=d.lsd())&&(Cn.validationRulesChildren=vs),d.mGM(vs=d.lsd())&&(Cn.tabsChildren=vs),d.mGM(vs=d.lsd())&&(Cn.locationChildren=vs)}},inputs:{disabled:"disabled",html:"html",icon:"icon",template:"template",text:"text",title:"title",titleTemplate:"titleTemplate",visible:"visible",onClick:"onClick",stylingMode:"stylingMode",type:"type",baseSize:"baseSize",box:"box",ratio:"ratio",shrink:"shrink",elementAttr:"elementAttr",hint:"hint",beginGroup:"beginGroup",closeMenuOnClick:"closeMenuOnClick",items:"items",selectable:"selectable",selected:"selected",colSpan:"colSpan",cssClass:"cssClass",dataField:"dataField",editorOptions:"editorOptions",editorType:"editorType",helpText:"helpText",isRequired:"isRequired",itemType:"itemType",label:"label",name:"name",validationRules:"validationRules",visibleIndex:"visibleIndex",alignItemLabels:"alignItemLabels",caption:"caption",captionTemplate:"captionTemplate",colCount:"colCount",colCountByScreen:"colCountByScreen",tabPanelOptions:"tabPanelOptions",tabs:"tabs",badge:"badge",tabTemplate:"tabTemplate",buttonOptions:"buttonOptions",horizontalAlignment:"horizontalAlignment",verticalAlignment:"verticalAlignment",locateInMenu:"locateInMenu",location:"location",menuItemTemplate:"menuItemTemplate",options:"options",showText:"showText",widget:"widget",height:"height",width:"width",imageAlt:"imageAlt",imageSrc:"imageSrc",acceptedValues:"acceptedValues",formatName:"formatName",formatValues:"formatValues",key:"key",showChevron:"showChevron",linkAttr:"linkAttr",url:"url",collapsed:"collapsed",collapsedSize:"collapsedSize",collapsible:"collapsible",maxSize:"maxSize",minSize:"minSize",resizable:"resizable",size:"size",splitter:"splitter",heightRatio:"heightRatio",widthRatio:"widthRatio",expanded:"expanded",hasItems:"hasItems",id:"id",parentId:"parentId"},standalone:!1,features:[d.Jv_([m.fH,m.zF]),d.Vt3],ngContentSelectors:T,decls:1,vars:0,template:function(we,Cn){1&we&&(d.NAR(),d.SdG(0))},styles:["[_nghost-%COMP%]{display:block}"]})}return Xe})(),Ne=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),nn=(()=>{class Xe extends m.l9{get location(){return this._getOption("location")}set location(h){this._setOption("location",h)}get name(){return this._getOption("name")}set name(h){this._setOption("name",h)}get options(){return this._getOption("options")}set options(h){this._setOption("options",h)}get cssClass(){return this._getOption("cssClass")}set cssClass(h){this._setOption("cssClass",h)}get disabled(){return this._getOption("disabled")}set disabled(h){this._setOption("disabled",h)}get hint(){return this._getOption("hint")}set hint(h){this._setOption("hint",h)}get icon(){return this._getOption("icon")}set icon(h){this._setOption("icon",h)}get onClick(){return this._getOption("onClick")}set onClick(h){this._setOption("onClick",h)}get template(){return this._getOption("template")}set template(h){this._setOption("template",h)}get text(){return this._getOption("text")}set text(h){this._setOption("text",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}static \u0275fac=(()=>{let h;return function(Cn){return(h||(h=d.xGo(Xe)))(Cn||Xe)}})();static \u0275cmp=d.VBU({type:Xe,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),rn=(()=>{class Xe extends nn{get _optionPath(){return"buttons"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-button"]],inputs:{location:"location",name:"name",options:"options",cssClass:"cssClass",disabled:"disabled",hint:"hint",icon:"icon",onClick:"onClick",template:"template",text:"text",visible:"visible"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),Mn=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Mi=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),ti=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Pn=(()=>{class Xe extends m.l9{get data(){return this._getOption("data")}set data(h){this._setOption("data",h)}get insertAfterKey(){return this._getOption("insertAfterKey")}set insertAfterKey(h){this._setOption("insertAfterKey",h)}get insertBeforeKey(){return this._getOption("insertBeforeKey")}set insertBeforeKey(h){this._setOption("insertBeforeKey",h)}get key(){return this._getOption("key")}set key(h){this._setOption("key",h)}get type(){return this._getOption("type")}set type(h){this._setOption("type",h)}static \u0275fac=(()=>{let h;return function(Cn){return(h||(h=d.xGo(Xe)))(Cn||Xe)}})();static \u0275cmp=d.VBU({type:Xe,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),Jn=(()=>{class Xe extends Pn{get _optionPath(){return"changes"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-change"]],inputs:{data:"data",insertAfterKey:"insertAfterKey",insertBeforeKey:"insertBeforeKey",key:"key",type:"type"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),Ii=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),ls=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),cs=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Yi=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Sn=(()=>{class Xe extends m.l9{get alignment(){return this._getOption("alignment")}set alignment(h){this._setOption("alignment",h)}get allowEditing(){return this._getOption("allowEditing")}set allowEditing(h){this._setOption("allowEditing",h)}get allowExporting(){return this._getOption("allowExporting")}set allowExporting(h){this._setOption("allowExporting",h)}get allowFiltering(){return this._getOption("allowFiltering")}set allowFiltering(h){this._setOption("allowFiltering",h)}get allowFixing(){return this._getOption("allowFixing")}set allowFixing(h){this._setOption("allowFixing",h)}get allowGrouping(){return this._getOption("allowGrouping")}set allowGrouping(h){this._setOption("allowGrouping",h)}get allowHeaderFiltering(){return this._getOption("allowHeaderFiltering")}set allowHeaderFiltering(h){this._setOption("allowHeaderFiltering",h)}get allowHiding(){return this._getOption("allowHiding")}set allowHiding(h){this._setOption("allowHiding",h)}get allowReordering(){return this._getOption("allowReordering")}set allowReordering(h){this._setOption("allowReordering",h)}get allowResizing(){return this._getOption("allowResizing")}set allowResizing(h){this._setOption("allowResizing",h)}get allowSearch(){return this._getOption("allowSearch")}set allowSearch(h){this._setOption("allowSearch",h)}get allowSorting(){return this._getOption("allowSorting")}set allowSorting(h){this._setOption("allowSorting",h)}get autoExpandGroup(){return this._getOption("autoExpandGroup")}set autoExpandGroup(h){this._setOption("autoExpandGroup",h)}get buttons(){return this._getOption("buttons")}set buttons(h){this._setOption("buttons",h)}get calculateCellValue(){return this._getOption("calculateCellValue")}set calculateCellValue(h){this._setOption("calculateCellValue",h)}get calculateDisplayValue(){return this._getOption("calculateDisplayValue")}set calculateDisplayValue(h){this._setOption("calculateDisplayValue",h)}get calculateFilterExpression(){return this._getOption("calculateFilterExpression")}set calculateFilterExpression(h){this._setOption("calculateFilterExpression",h)}get calculateGroupValue(){return this._getOption("calculateGroupValue")}set calculateGroupValue(h){this._setOption("calculateGroupValue",h)}get calculateSortValue(){return this._getOption("calculateSortValue")}set calculateSortValue(h){this._setOption("calculateSortValue",h)}get caption(){return this._getOption("caption")}set caption(h){this._setOption("caption",h)}get cellTemplate(){return this._getOption("cellTemplate")}set cellTemplate(h){this._setOption("cellTemplate",h)}get columns(){return this._getOption("columns")}set columns(h){this._setOption("columns",h)}get cssClass(){return this._getOption("cssClass")}set cssClass(h){this._setOption("cssClass",h)}get customizeText(){return this._getOption("customizeText")}set customizeText(h){this._setOption("customizeText",h)}get dataField(){return this._getOption("dataField")}set dataField(h){this._setOption("dataField",h)}get dataType(){return this._getOption("dataType")}set dataType(h){this._setOption("dataType",h)}get editCellTemplate(){return this._getOption("editCellTemplate")}set editCellTemplate(h){this._setOption("editCellTemplate",h)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(h){this._setOption("editorOptions",h)}get encodeHtml(){return this._getOption("encodeHtml")}set encodeHtml(h){this._setOption("encodeHtml",h)}get falseText(){return this._getOption("falseText")}set falseText(h){this._setOption("falseText",h)}get filterOperations(){return this._getOption("filterOperations")}set filterOperations(h){this._setOption("filterOperations",h)}get filterType(){return this._getOption("filterType")}set filterType(h){this._setOption("filterType",h)}get filterValue(){return this._getOption("filterValue")}set filterValue(h){this._setOption("filterValue",h)}get filterValues(){return this._getOption("filterValues")}set filterValues(h){this._setOption("filterValues",h)}get fixed(){return this._getOption("fixed")}set fixed(h){this._setOption("fixed",h)}get fixedPosition(){return this._getOption("fixedPosition")}set fixedPosition(h){this._setOption("fixedPosition",h)}get format(){return this._getOption("format")}set format(h){this._setOption("format",h)}get formItem(){return this._getOption("formItem")}set formItem(h){this._setOption("formItem",h)}get groupCellTemplate(){return this._getOption("groupCellTemplate")}set groupCellTemplate(h){this._setOption("groupCellTemplate",h)}get groupIndex(){return this._getOption("groupIndex")}set groupIndex(h){this._setOption("groupIndex",h)}get headerCellTemplate(){return this._getOption("headerCellTemplate")}set headerCellTemplate(h){this._setOption("headerCellTemplate",h)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(h){this._setOption("headerFilter",h)}get hidingPriority(){return this._getOption("hidingPriority")}set hidingPriority(h){this._setOption("hidingPriority",h)}get isBand(){return this._getOption("isBand")}set isBand(h){this._setOption("isBand",h)}get lookup(){return this._getOption("lookup")}set lookup(h){this._setOption("lookup",h)}get minWidth(){return this._getOption("minWidth")}set minWidth(h){this._setOption("minWidth",h)}get name(){return this._getOption("name")}set name(h){this._setOption("name",h)}get ownerBand(){return this._getOption("ownerBand")}set ownerBand(h){this._setOption("ownerBand",h)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(h){this._setOption("renderAsync",h)}get selectedFilterOperation(){return this._getOption("selectedFilterOperation")}set selectedFilterOperation(h){this._setOption("selectedFilterOperation",h)}get setCellValue(){return this._getOption("setCellValue")}set setCellValue(h){this._setOption("setCellValue",h)}get showEditorAlways(){return this._getOption("showEditorAlways")}set showEditorAlways(h){this._setOption("showEditorAlways",h)}get showInColumnChooser(){return this._getOption("showInColumnChooser")}set showInColumnChooser(h){this._setOption("showInColumnChooser",h)}get showWhenGrouped(){return this._getOption("showWhenGrouped")}set showWhenGrouped(h){this._setOption("showWhenGrouped",h)}get sortIndex(){return this._getOption("sortIndex")}set sortIndex(h){this._setOption("sortIndex",h)}get sortingMethod(){return this._getOption("sortingMethod")}set sortingMethod(h){this._setOption("sortingMethod",h)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(h){this._setOption("sortOrder",h)}get trueText(){return this._getOption("trueText")}set trueText(h){this._setOption("trueText",h)}get type(){return this._getOption("type")}set type(h){this._setOption("type",h)}get validationRules(){return this._getOption("validationRules")}set validationRules(h){this._setOption("validationRules",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get visibleIndex(){return this._getOption("visibleIndex")}set visibleIndex(h){this._setOption("visibleIndex",h)}get width(){return this._getOption("width")}set width(h){this._setOption("width",h)}static \u0275fac=(()=>{let h;return function(Cn){return(h||(h=d.xGo(Xe)))(Cn||Xe)}})();static \u0275cmp=d.VBU({type:Xe,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),ri=(()=>{class Xe extends Sn{filterValueChange;filterValuesChange;groupIndexChange;selectedFilterOperationChange;sortIndexChange;sortOrderChange;visibleChange;visibleIndexChange;get _optionPath(){return"columns"}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(h){this.setChildren("buttons",h)}get columnsChildren(){return this._getOption("columns")}set columnsChildren(h){this.setChildren("columns",h)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(h){this.setChildren("validationRules",h)}constructor(h,we){super(),this._createEventEmitters([{emit:"filterValueChange"},{emit:"filterValuesChange"},{emit:"groupIndexChange"},{emit:"selectedFilterOperationChange"},{emit:"sortIndexChange"},{emit:"sortOrderChange"},{emit:"visibleChange"},{emit:"visibleIndexChange"}]),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-column"]],contentQueries:function(we,Cn,Ns){if(1&we&&(d.wni(Ns,rn,4),d.wni(Ns,Xe,4),d.wni(Ns,We,4)),2&we){let vs;d.mGM(vs=d.lsd())&&(Cn.buttonsChildren=vs),d.mGM(vs=d.lsd())&&(Cn.columnsChildren=vs),d.mGM(vs=d.lsd())&&(Cn.validationRulesChildren=vs)}},inputs:{alignment:"alignment",allowEditing:"allowEditing",allowExporting:"allowExporting",allowFiltering:"allowFiltering",allowFixing:"allowFixing",allowGrouping:"allowGrouping",allowHeaderFiltering:"allowHeaderFiltering",allowHiding:"allowHiding",allowReordering:"allowReordering",allowResizing:"allowResizing",allowSearch:"allowSearch",allowSorting:"allowSorting",autoExpandGroup:"autoExpandGroup",buttons:"buttons",calculateCellValue:"calculateCellValue",calculateDisplayValue:"calculateDisplayValue",calculateFilterExpression:"calculateFilterExpression",calculateGroupValue:"calculateGroupValue",calculateSortValue:"calculateSortValue",caption:"caption",cellTemplate:"cellTemplate",columns:"columns",cssClass:"cssClass",customizeText:"customizeText",dataField:"dataField",dataType:"dataType",editCellTemplate:"editCellTemplate",editorOptions:"editorOptions",encodeHtml:"encodeHtml",falseText:"falseText",filterOperations:"filterOperations",filterType:"filterType",filterValue:"filterValue",filterValues:"filterValues",fixed:"fixed",fixedPosition:"fixedPosition",format:"format",formItem:"formItem",groupCellTemplate:"groupCellTemplate",groupIndex:"groupIndex",headerCellTemplate:"headerCellTemplate",headerFilter:"headerFilter",hidingPriority:"hidingPriority",isBand:"isBand",lookup:"lookup",minWidth:"minWidth",name:"name",ownerBand:"ownerBand",renderAsync:"renderAsync",selectedFilterOperation:"selectedFilterOperation",setCellValue:"setCellValue",showEditorAlways:"showEditorAlways",showInColumnChooser:"showInColumnChooser",showWhenGrouped:"showWhenGrouped",sortIndex:"sortIndex",sortingMethod:"sortingMethod",sortOrder:"sortOrder",trueText:"trueText",type:"type",validationRules:"validationRules",visible:"visible",visibleIndex:"visibleIndex",width:"width"},outputs:{filterValueChange:"filterValueChange",filterValuesChange:"filterValuesChange",groupIndexChange:"groupIndexChange",selectedFilterOperationChange:"selectedFilterOperationChange",sortIndexChange:"sortIndexChange",sortOrderChange:"sortOrderChange",visibleChange:"visibleChange",visibleIndexChange:"visibleIndexChange"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),It=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),dn=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Vs=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),zn=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Rs=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),en=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Yt=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),xi=(()=>{class Xe extends m.l9{renderer;document;element;get cssClass(){return this._getOption("cssClass")}set cssClass(h){this._setOption("cssClass",h)}get disabled(){return this._getOption("disabled")}set disabled(h){this._setOption("disabled",h)}get html(){return this._getOption("html")}set html(h){this._setOption("html",h)}get locateInMenu(){return this._getOption("locateInMenu")}set locateInMenu(h){this._setOption("locateInMenu",h)}get location(){return this._getOption("location")}set location(h){this._setOption("location",h)}get menuItemTemplate(){return this._getOption("menuItemTemplate")}set menuItemTemplate(h){this._setOption("menuItemTemplate",h)}get options(){return this._getOption("options")}set options(h){this._setOption("options",h)}get showText(){return this._getOption("showText")}set showText(h){this._setOption("showText",h)}get template(){return this._getOption("template")}set template(h){this._setOption("template",h)}get text(){return this._getOption("text")}set text(h){this._setOption("text",h)}get toolbar(){return this._getOption("toolbar")}set toolbar(h){this._setOption("toolbar",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get widget(){return this._getOption("widget")}set widget(h){this._setOption("widget",h)}get _optionPath(){return"toolbarItems"}constructor(h,we,Cn,Ns,vs,_u){super(),this.renderer=Cn,this.document=Ns,this.element=_u,h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this)),vs.setHost(this)}setTemplate(h){this.template=h}ngAfterViewInit(){(0,m.ym)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1),d.rXU(d.sFG),d.rXU(S.qQL),d.rXU(m.zF,1),d.rXU(d.aKT))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-toolbar-item"]],inputs:{cssClass:"cssClass",disabled:"disabled",html:"html",locateInMenu:"locateInMenu",location:"location",menuItemTemplate:"menuItemTemplate",options:"options",showText:"showText",template:"template",text:"text",toolbar:"toolbar",visible:"visible",widget:"widget"},standalone:!1,features:[d.Jv_([m.fH,m.zF]),d.Vt3],ngContentSelectors:T,decls:1,vars:0,template:function(we,Cn){1&we&&(d.NAR(),d.SdG(0))},styles:["[_nghost-%COMP%]{display:block}"]})}return Xe})(),Ki=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),yo=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),ms=(()=>{class Xe extends m.t${get allowAdding(){return this._getOption("allowAdding")}set allowAdding(h){this._setOption("allowAdding",h)}get allowDeleting(){return this._getOption("allowDeleting")}set allowDeleting(h){this._setOption("allowDeleting",h)}get allowUpdating(){return this._getOption("allowUpdating")}set allowUpdating(h){this._setOption("allowUpdating",h)}get changes(){return this._getOption("changes")}set changes(h){this._setOption("changes",h)}get confirmDelete(){return this._getOption("confirmDelete")}set confirmDelete(h){this._setOption("confirmDelete",h)}get editColumnName(){return this._getOption("editColumnName")}set editColumnName(h){this._setOption("editColumnName",h)}get editRowKey(){return this._getOption("editRowKey")}set editRowKey(h){this._setOption("editRowKey",h)}get form(){return this._getOption("form")}set form(h){this._setOption("form",h)}get mode(){return this._getOption("mode")}set mode(h){this._setOption("mode",h)}get newRowPosition(){return this._getOption("newRowPosition")}set newRowPosition(h){this._setOption("newRowPosition",h)}get popup(){return this._getOption("popup")}set popup(h){this._setOption("popup",h)}get refreshMode(){return this._getOption("refreshMode")}set refreshMode(h){this._setOption("refreshMode",h)}get selectTextOnEditStart(){return this._getOption("selectTextOnEditStart")}set selectTextOnEditStart(h){this._setOption("selectTextOnEditStart",h)}get startEditAction(){return this._getOption("startEditAction")}set startEditAction(h){this._setOption("startEditAction",h)}get texts(){return this._getOption("texts")}set texts(h){this._setOption("texts",h)}get useIcons(){return this._getOption("useIcons")}set useIcons(h){this._setOption("useIcons",h)}get allowAddShape(){return this._getOption("allowAddShape")}set allowAddShape(h){this._setOption("allowAddShape",h)}get allowChangeConnection(){return this._getOption("allowChangeConnection")}set allowChangeConnection(h){this._setOption("allowChangeConnection",h)}get allowChangeConnectorPoints(){return this._getOption("allowChangeConnectorPoints")}set allowChangeConnectorPoints(h){this._setOption("allowChangeConnectorPoints",h)}get allowChangeConnectorText(){return this._getOption("allowChangeConnectorText")}set allowChangeConnectorText(h){this._setOption("allowChangeConnectorText",h)}get allowChangeShapeText(){return this._getOption("allowChangeShapeText")}set allowChangeShapeText(h){this._setOption("allowChangeShapeText",h)}get allowDeleteConnector(){return this._getOption("allowDeleteConnector")}set allowDeleteConnector(h){this._setOption("allowDeleteConnector",h)}get allowDeleteShape(){return this._getOption("allowDeleteShape")}set allowDeleteShape(h){this._setOption("allowDeleteShape",h)}get allowMoveShape(){return this._getOption("allowMoveShape")}set allowMoveShape(h){this._setOption("allowMoveShape",h)}get allowResizeShape(){return this._getOption("allowResizeShape")}set allowResizeShape(h){this._setOption("allowResizeShape",h)}get allowDependencyAdding(){return this._getOption("allowDependencyAdding")}set allowDependencyAdding(h){this._setOption("allowDependencyAdding",h)}get allowDependencyDeleting(){return this._getOption("allowDependencyDeleting")}set allowDependencyDeleting(h){this._setOption("allowDependencyDeleting",h)}get allowResourceAdding(){return this._getOption("allowResourceAdding")}set allowResourceAdding(h){this._setOption("allowResourceAdding",h)}get allowResourceDeleting(){return this._getOption("allowResourceDeleting")}set allowResourceDeleting(h){this._setOption("allowResourceDeleting",h)}get allowResourceUpdating(){return this._getOption("allowResourceUpdating")}set allowResourceUpdating(h){this._setOption("allowResourceUpdating",h)}get allowTaskAdding(){return this._getOption("allowTaskAdding")}set allowTaskAdding(h){this._setOption("allowTaskAdding",h)}get allowTaskDeleting(){return this._getOption("allowTaskDeleting")}set allowTaskDeleting(h){this._setOption("allowTaskDeleting",h)}get allowTaskResourceUpdating(){return this._getOption("allowTaskResourceUpdating")}set allowTaskResourceUpdating(h){this._setOption("allowTaskResourceUpdating",h)}get allowTaskUpdating(){return this._getOption("allowTaskUpdating")}set allowTaskUpdating(h){this._setOption("allowTaskUpdating",h)}get enabled(){return this._getOption("enabled")}set enabled(h){this._setOption("enabled",h)}get allowDragging(){return this._getOption("allowDragging")}set allowDragging(h){this._setOption("allowDragging",h)}get allowResizing(){return this._getOption("allowResizing")}set allowResizing(h){this._setOption("allowResizing",h)}get allowTimeZoneEditing(){return this._getOption("allowTimeZoneEditing")}set allowTimeZoneEditing(h){this._setOption("allowTimeZoneEditing",h)}changesChange;editColumnNameChange;editRowKeyChange;get _optionPath(){return"editing"}get changesChildren(){return this._getOption("changes")}set changesChildren(h){this.setChildren("changes",h)}constructor(h,we){super(),this._createEventEmitters([{emit:"changesChange"},{emit:"editColumnNameChange"},{emit:"editRowKeyChange"}]),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxo-editing"]],contentQueries:function(we,Cn,Ns){if(1&we&&d.wni(Ns,Jn,4),2&we){let vs;d.mGM(vs=d.lsd())&&(Cn.changesChildren=vs)}},inputs:{allowAdding:"allowAdding",allowDeleting:"allowDeleting",allowUpdating:"allowUpdating",changes:"changes",confirmDelete:"confirmDelete",editColumnName:"editColumnName",editRowKey:"editRowKey",form:"form",mode:"mode",newRowPosition:"newRowPosition",popup:"popup",refreshMode:"refreshMode",selectTextOnEditStart:"selectTextOnEditStart",startEditAction:"startEditAction",texts:"texts",useIcons:"useIcons",allowAddShape:"allowAddShape",allowChangeConnection:"allowChangeConnection",allowChangeConnectorPoints:"allowChangeConnectorPoints",allowChangeConnectorText:"allowChangeConnectorText",allowChangeShapeText:"allowChangeShapeText",allowDeleteConnector:"allowDeleteConnector",allowDeleteShape:"allowDeleteShape",allowMoveShape:"allowMoveShape",allowResizeShape:"allowResizeShape",allowDependencyAdding:"allowDependencyAdding",allowDependencyDeleting:"allowDependencyDeleting",allowResourceAdding:"allowResourceAdding",allowResourceDeleting:"allowResourceDeleting",allowResourceUpdating:"allowResourceUpdating",allowTaskAdding:"allowTaskAdding",allowTaskDeleting:"allowTaskDeleting",allowTaskResourceUpdating:"allowTaskResourceUpdating",allowTaskUpdating:"allowTaskUpdating",enabled:"enabled",allowDragging:"allowDragging",allowResizing:"allowResizing",allowTimeZoneEditing:"allowTimeZoneEditing"},outputs:{changesChange:"changesChange",editColumnNameChange:"editColumnNameChange",editRowKeyChange:"editRowKeyChange"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),ds=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),ws=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),io=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Mo=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),$s=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),ir=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Js=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Tr=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),jr=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),ca=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),ot=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),bn=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),vi=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Si=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Pi=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Mt=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),qn=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),eo=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),as=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Zs=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),oc=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),pd=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),rc=(()=>{class Xe extends m.t${get connectorColor(){return this._getOption("connectorColor")}set connectorColor(h){this._setOption("connectorColor",h)}get connectorWidth(){return this._getOption("connectorWidth")}set connectorWidth(h){this._setOption("connectorWidth",h)}get customizeText(){return this._getOption("customizeText")}set customizeText(h){this._setOption("customizeText",h)}get font(){return this._getOption("font")}set font(h){this._setOption("font",h)}get format(){return this._getOption("format")}set format(h){this._setOption("format",h)}get indent(){return this._getOption("indent")}set indent(h){this._setOption("indent",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get horizontalAlignment(){return this._getOption("horizontalAlignment")}set horizontalAlignment(h){this._setOption("horizontalAlignment",h)}get position(){return this._getOption("position")}set position(h){this._setOption("position",h)}get text(){return this._getOption("text")}set text(h){this._setOption("text",h)}get verticalAlignment(){return this._getOption("verticalAlignment")}set verticalAlignment(h){this._setOption("verticalAlignment",h)}get alignment(){return this._getOption("alignment")}set alignment(h){this._setOption("alignment",h)}get customizeHint(){return this._getOption("customizeHint")}set customizeHint(h){this._setOption("customizeHint",h)}get displayMode(){return this._getOption("displayMode")}set displayMode(h){this._setOption("displayMode",h)}get indentFromAxis(){return this._getOption("indentFromAxis")}set indentFromAxis(h){this._setOption("indentFromAxis",h)}get overlappingBehavior(){return this._getOption("overlappingBehavior")}set overlappingBehavior(h){this._setOption("overlappingBehavior",h)}get rotationAngle(){return this._getOption("rotationAngle")}set rotationAngle(h){this._setOption("rotationAngle",h)}get staggeringSpacing(){return this._getOption("staggeringSpacing")}set staggeringSpacing(h){this._setOption("staggeringSpacing",h)}get template(){return this._getOption("template")}set template(h){this._setOption("template",h)}get textOverflow(){return this._getOption("textOverflow")}set textOverflow(h){this._setOption("textOverflow",h)}get wordWrap(){return this._getOption("wordWrap")}set wordWrap(h){this._setOption("wordWrap",h)}get argumentFormat(){return this._getOption("argumentFormat")}set argumentFormat(h){this._setOption("argumentFormat",h)}get backgroundColor(){return this._getOption("backgroundColor")}set backgroundColor(h){this._setOption("backgroundColor",h)}get border(){return this._getOption("border")}set border(h){this._setOption("border",h)}get connector(){return this._getOption("connector")}set connector(h){this._setOption("connector",h)}get displayFormat(){return this._getOption("displayFormat")}set displayFormat(h){this._setOption("displayFormat",h)}get horizontalOffset(){return this._getOption("horizontalOffset")}set horizontalOffset(h){this._setOption("horizontalOffset",h)}get showForZeroValues(){return this._getOption("showForZeroValues")}set showForZeroValues(h){this._setOption("showForZeroValues",h)}get verticalOffset(){return this._getOption("verticalOffset")}set verticalOffset(h){this._setOption("verticalOffset",h)}get hideFirstOrLast(){return this._getOption("hideFirstOrLast")}set hideFirstOrLast(h){this._setOption("hideFirstOrLast",h)}get indentFromTick(){return this._getOption("indentFromTick")}set indentFromTick(h){this._setOption("indentFromTick",h)}get useRangeColors(){return this._getOption("useRangeColors")}set useRangeColors(h){this._setOption("useRangeColors",h)}get location(){return this._getOption("location")}set location(h){this._setOption("location",h)}get showColon(){return this._getOption("showColon")}set showColon(h){this._setOption("showColon",h)}get radialOffset(){return this._getOption("radialOffset")}set radialOffset(h){this._setOption("radialOffset",h)}get topIndent(){return this._getOption("topIndent")}set topIndent(h){this._setOption("topIndent",h)}get shadow(){return this._getOption("shadow")}set shadow(h){this._setOption("shadow",h)}get useNodeColors(){return this._getOption("useNodeColors")}set useNodeColors(h){this._setOption("useNodeColors",h)}get dataField(){return this._getOption("dataField")}set dataField(h){this._setOption("dataField",h)}get enabled(){return this._getOption("enabled")}set enabled(h){this._setOption("enabled",h)}get _optionPath(){return"label"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxo-label"]],inputs:{connectorColor:"connectorColor",connectorWidth:"connectorWidth",customizeText:"customizeText",font:"font",format:"format",indent:"indent",visible:"visible",horizontalAlignment:"horizontalAlignment",position:"position",text:"text",verticalAlignment:"verticalAlignment",alignment:"alignment",customizeHint:"customizeHint",displayMode:"displayMode",indentFromAxis:"indentFromAxis",overlappingBehavior:"overlappingBehavior",rotationAngle:"rotationAngle",staggeringSpacing:"staggeringSpacing",template:"template",textOverflow:"textOverflow",wordWrap:"wordWrap",argumentFormat:"argumentFormat",backgroundColor:"backgroundColor",border:"border",connector:"connector",displayFormat:"displayFormat",horizontalOffset:"horizontalOffset",showForZeroValues:"showForZeroValues",verticalOffset:"verticalOffset",hideFirstOrLast:"hideFirstOrLast",indentFromTick:"indentFromTick",useRangeColors:"useRangeColors",location:"location",showColon:"showColon",radialOffset:"radialOffset",topIndent:"topIndent",shadow:"shadow",useNodeColors:"useNodeColors",dataField:"dataField",enabled:"enabled"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),Nl=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Ac=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),vt=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),ta=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Ol=(()=>{class Xe extends m.t${get allowedTargets(){return this._getOption("allowedTargets")}set allowedTargets(h){this._setOption("allowedTargets",h)}get enabled(){return this._getOption("enabled")}set enabled(h){this._setOption("enabled",h)}static \u0275fac=(()=>{let h;return function(Cn){return(h||(h=d.xGo(Xe)))(Cn||Xe)}})();static \u0275cmp=d.VBU({type:Xe,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),Wa=(()=>{class Xe extends Ol{get _optionPath(){return"mediaResizing"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxo-media-resizing"]],inputs:{allowedTargets:"allowedTargets",enabled:"enabled"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),ac=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),wl=(()=>{class Xe extends m.l9{get dataSource(){return this._getOption("dataSource")}set dataSource(h){this._setOption("dataSource",h)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(h){this._setOption("displayExpr",h)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(h){this._setOption("itemTemplate",h)}get marker(){return this._getOption("marker")}set marker(h){this._setOption("marker",h)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(h){this._setOption("minSearchLength",h)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(h){this._setOption("searchExpr",h)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(h){this._setOption("searchTimeout",h)}get template(){return this._getOption("template")}set template(h){this._setOption("template",h)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(h){this._setOption("valueExpr",h)}static \u0275fac=(()=>{let h;return function(Cn){return(h||(h=d.xGo(Xe)))(Cn||Xe)}})();static \u0275cmp=d.VBU({type:Xe,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),Ma=(()=>{class Xe extends wl{get _optionPath(){return"mentions"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-mention"]],inputs:{dataSource:"dataSource",displayExpr:"displayExpr",itemTemplate:"itemTemplate",marker:"marker",minSearchLength:"minSearchLength",searchExpr:"searchExpr",searchTimeout:"searchTimeout",template:"template",valueExpr:"valueExpr"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),Wc=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Zd=(()=>{class Xe extends m.l9{get action(){return this._getOption("action")}set action(h){this._setOption("action",h)}get text(){return this._getOption("text")}set text(h){this._setOption("text",h)}get _optionPath(){return"menuItems"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-menu-item"]],inputs:{action:"action",text:"text"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),lc=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),za=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),tu=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Kc=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Xc=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Dl=(()=>{class Xe extends m.t${get allowedPageSizes(){return this._getOption("allowedPageSizes")}set allowedPageSizes(h){this._setOption("allowedPageSizes",h)}get displayMode(){return this._getOption("displayMode")}set displayMode(h){this._setOption("displayMode",h)}get infoText(){return this._getOption("infoText")}set infoText(h){this._setOption("infoText",h)}get label(){return this._getOption("label")}set label(h){this._setOption("label",h)}get showInfo(){return this._getOption("showInfo")}set showInfo(h){this._setOption("showInfo",h)}get showNavigationButtons(){return this._getOption("showNavigationButtons")}set showNavigationButtons(h){this._setOption("showNavigationButtons",h)}get showPageSizeSelector(){return this._getOption("showPageSizeSelector")}set showPageSizeSelector(h){this._setOption("showPageSizeSelector",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get _optionPath(){return"pager"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxo-pager"]],inputs:{allowedPageSizes:"allowedPageSizes",displayMode:"displayMode",infoText:"infoText",label:"label",showInfo:"showInfo",showNavigationButtons:"showNavigationButtons",showPageSizeSelector:"showPageSizeSelector",visible:"visible"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),yd=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Lu=(()=>{class Xe extends m.t${get enabled(){return this._getOption("enabled")}set enabled(h){this._setOption("enabled",h)}get pageIndex(){return this._getOption("pageIndex")}set pageIndex(h){this._setOption("pageIndex",h)}get pageSize(){return this._getOption("pageSize")}set pageSize(h){this._setOption("pageSize",h)}pageIndexChange;pageSizeChange;get _optionPath(){return"paging"}constructor(h,we){super(),this._createEventEmitters([{emit:"pageIndexChange"},{emit:"pageSizeChange"}]),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxo-paging"]],inputs:{enabled:"enabled",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),bd=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Pc=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Vu=(()=>{class Xe extends m.t${get at(){return this._getOption("at")}set at(h){this._setOption("at",h)}get boundary(){return this._getOption("boundary")}set boundary(h){this._setOption("boundary",h)}get boundaryOffset(){return this._getOption("boundaryOffset")}set boundaryOffset(h){this._setOption("boundaryOffset",h)}get collision(){return this._getOption("collision")}set collision(h){this._setOption("collision",h)}get my(){return this._getOption("my")}set my(h){this._setOption("my",h)}get of(){return this._getOption("of")}set of(h){this._setOption("of",h)}get offset(){return this._getOption("offset")}set offset(h){this._setOption("offset",h)}static \u0275fac=(()=>{let h;return function(Cn){return(h||(h=d.xGo(Xe)))(Cn||Xe)}})();static \u0275cmp=d.VBU({type:Xe,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),nu=(()=>{class Xe extends Vu{get _optionPath(){return"position"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxo-position"]],inputs:{at:"at",boundary:"boundary",boundaryOffset:"boundaryOffset",collision:"collision",my:"my",of:"of",offset:"offset"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),xd=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),sa=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),fg=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Ku=(()=>{class Xe extends m.t${get columnRenderingMode(){return this._getOption("columnRenderingMode")}set columnRenderingMode(h){this._setOption("columnRenderingMode",h)}get mode(){return this._getOption("mode")}set mode(h){this._setOption("mode",h)}get preloadEnabled(){return this._getOption("preloadEnabled")}set preloadEnabled(h){this._setOption("preloadEnabled",h)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(h){this._setOption("renderAsync",h)}get rowRenderingMode(){return this._getOption("rowRenderingMode")}set rowRenderingMode(h){this._setOption("rowRenderingMode",h)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(h){this._setOption("scrollByContent",h)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(h){this._setOption("scrollByThumb",h)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(h){this._setOption("showScrollbar",h)}get useNative(){return this._getOption("useNative")}set useNative(h){this._setOption("useNative",h)}static \u0275fac=(()=>{let h;return function(Cn){return(h||(h=d.xGo(Xe)))(Cn||Xe)}})();static \u0275cmp=d.VBU({type:Xe,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),au=(()=>{class Xe extends Ku{get _optionPath(){return"scrolling"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxo-scrolling"]],inputs:{columnRenderingMode:"columnRenderingMode",mode:"mode",preloadEnabled:"preloadEnabled",renderAsync:"renderAsync",rowRenderingMode:"rowRenderingMode",scrollByContent:"scrollByContent",scrollByThumb:"scrollByThumb",showScrollbar:"showScrollbar",useNative:"useNative"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),vf=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Xu=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),lu=(()=>{class Xe extends m.t${get highlightCaseSensitive(){return this._getOption("highlightCaseSensitive")}set highlightCaseSensitive(h){this._setOption("highlightCaseSensitive",h)}get highlightSearchText(){return this._getOption("highlightSearchText")}set highlightSearchText(h){this._setOption("highlightSearchText",h)}get placeholder(){return this._getOption("placeholder")}set placeholder(h){this._setOption("placeholder",h)}get searchVisibleColumnsOnly(){return this._getOption("searchVisibleColumnsOnly")}set searchVisibleColumnsOnly(h){this._setOption("searchVisibleColumnsOnly",h)}get text(){return this._getOption("text")}set text(h){this._setOption("text",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get width(){return this._getOption("width")}set width(h){this._setOption("width",h)}textChange;get _optionPath(){return"searchPanel"}constructor(h,we){super(),this._createEventEmitters([{emit:"textChange"}]),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxo-search-panel"]],inputs:{highlightCaseSensitive:"highlightCaseSensitive",highlightSearchText:"highlightSearchText",placeholder:"placeholder",searchVisibleColumnsOnly:"searchVisibleColumnsOnly",text:"text",visible:"visible",width:"width"},outputs:{textChange:"textChange"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),Ta=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Yu=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Qu=(()=>{class Xe extends m.t${get allowSelectAll(){return this._getOption("allowSelectAll")}set allowSelectAll(h){this._setOption("allowSelectAll",h)}get recursive(){return this._getOption("recursive")}set recursive(h){this._setOption("recursive",h)}get selectByClick(){return this._getOption("selectByClick")}set selectByClick(h){this._setOption("selectByClick",h)}get deferred(){return this._getOption("deferred")}set deferred(h){this._setOption("deferred",h)}get mode(){return this._getOption("mode")}set mode(h){this._setOption("mode",h)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(h){this._setOption("selectAllMode",h)}get showCheckBoxesMode(){return this._getOption("showCheckBoxesMode")}set showCheckBoxesMode(h){this._setOption("showCheckBoxesMode",h)}static \u0275fac=(()=>{let h;return function(Cn){return(h||(h=d.xGo(Xe)))(Cn||Xe)}})();static \u0275cmp=d.VBU({type:Xe,selectors:[["ng-component"]],standalone:!1,features:[d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),Ih=(()=>{class Xe extends Qu{get _optionPath(){return"selection"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxo-selection"]],inputs:{allowSelectAll:"allowSelectAll",recursive:"recursive",selectByClick:"selectByClick",deferred:"deferred",mode:"mode",selectAllMode:"selectAllMode",showCheckBoxesMode:"showCheckBoxesMode"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),kc=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Mh=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Am=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),wp=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),du=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Ap=(()=>{class Xe extends m.l9{get groupColumn(){return this._getOption("groupColumn")}set groupColumn(h){this._setOption("groupColumn",h)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(h){this._setOption("sortOrder",h)}get summaryItem(){return this._getOption("summaryItem")}set summaryItem(h){this._setOption("summaryItem",h)}get _optionPath(){return"sortByGroupSummaryInfo"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxi-sort-by-group-summary-info"]],inputs:{groupColumn:"groupColumn",sortOrder:"sortOrder",summaryItem:"summaryItem"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),qu=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Zc=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),th=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),kp=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Ra=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Va=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Kl=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Lt=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),As=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),na=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),$r=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Oa=(()=>{class Xe extends m.t${get arrowLength(){return this._getOption("arrowLength")}set arrowLength(h){this._setOption("arrowLength",h)}get border(){return this._getOption("border")}set border(h){this._setOption("border",h)}get color(){return this._getOption("color")}set color(h){this._setOption("color",h)}get container(){return this._getOption("container")}set container(h){this._setOption("container",h)}get contentTemplate(){return this._getOption("contentTemplate")}set contentTemplate(h){this._setOption("contentTemplate",h)}get cornerRadius(){return this._getOption("cornerRadius")}set cornerRadius(h){this._setOption("cornerRadius",h)}get customizeTooltip(){return this._getOption("customizeTooltip")}set customizeTooltip(h){this._setOption("customizeTooltip",h)}get enabled(){return this._getOption("enabled")}set enabled(h){this._setOption("enabled",h)}get font(){return this._getOption("font")}set font(h){this._setOption("font",h)}get format(){return this._getOption("format")}set format(h){this._setOption("format",h)}get interactive(){return this._getOption("interactive")}set interactive(h){this._setOption("interactive",h)}get opacity(){return this._getOption("opacity")}set opacity(h){this._setOption("opacity",h)}get paddingLeftRight(){return this._getOption("paddingLeftRight")}set paddingLeftRight(h){this._setOption("paddingLeftRight",h)}get paddingTopBottom(){return this._getOption("paddingTopBottom")}set paddingTopBottom(h){this._setOption("paddingTopBottom",h)}get shadow(){return this._getOption("shadow")}set shadow(h){this._setOption("shadow",h)}get zIndex(){return this._getOption("zIndex")}set zIndex(h){this._setOption("zIndex",h)}get argumentFormat(){return this._getOption("argumentFormat")}set argumentFormat(h){this._setOption("argumentFormat",h)}get location(){return this._getOption("location")}set location(h){this._setOption("location",h)}get shared(){return this._getOption("shared")}set shared(h){this._setOption("shared",h)}get isShown(){return this._getOption("isShown")}set isShown(h){this._setOption("isShown",h)}get text(){return this._getOption("text")}set text(h){this._setOption("text",h)}get position(){return this._getOption("position")}set position(h){this._setOption("position",h)}get showMode(){return this._getOption("showMode")}set showMode(h){this._setOption("showMode",h)}get customizeLinkTooltip(){return this._getOption("customizeLinkTooltip")}set customizeLinkTooltip(h){this._setOption("customizeLinkTooltip",h)}get customizeNodeTooltip(){return this._getOption("customizeNodeTooltip")}set customizeNodeTooltip(h){this._setOption("customizeNodeTooltip",h)}get linkTooltipTemplate(){return this._getOption("linkTooltipTemplate")}set linkTooltipTemplate(h){this._setOption("linkTooltipTemplate",h)}get nodeTooltipTemplate(){return this._getOption("nodeTooltipTemplate")}set nodeTooltipTemplate(h){this._setOption("nodeTooltipTemplate",h)}get _optionPath(){return"tooltip"}constructor(h,we){super(),h.setNestedOption(this),we.setHost(this,this._fullOptionPath.bind(this))}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}static \u0275fac=function(we){return new(we||Xe)(d.rXU(m.fH,5),d.rXU(m.fH,1))};static \u0275cmp=d.VBU({type:Xe,selectors:[["dxo-tooltip"]],inputs:{arrowLength:"arrowLength",border:"border",color:"color",container:"container",contentTemplate:"contentTemplate",cornerRadius:"cornerRadius",customizeTooltip:"customizeTooltip",enabled:"enabled",font:"font",format:"format",interactive:"interactive",opacity:"opacity",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",shadow:"shadow",zIndex:"zIndex",argumentFormat:"argumentFormat",location:"location",shared:"shared",isShown:"isShown",text:"text",position:"position",showMode:"showMode",customizeLinkTooltip:"customizeLinkTooltip",customizeNodeTooltip:"customizeNodeTooltip",linkTooltipTemplate:"linkTooltipTemplate",nodeTooltipTemplate:"nodeTooltipTemplate"},standalone:!1,features:[d.Jv_([m.fH]),d.Vt3],decls:0,vars:0,template:function(we,Cn){},encapsulation:2})}return Xe})(),ua=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Ql=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})(),Ia=(()=>{class Xe{static \u0275fac=function(we){return new(we||Xe)};static \u0275mod=d.$C({type:Xe});static \u0275inj=S.G2t({})}return Xe})()},8932:(En,it,p)=>{"use strict";p.d(it,{l:()=>m});var S=p(1479),d=p(4418);function m(T){return(0,d.T)(T[S.s])}},9012:(En,it,p)=>{"use strict";p.d(it,{A:()=>he});var S=p(1973),d=p(5737),m=p(3777),T=p(9066),C=p(8535);class e extends T.A{get _validationGroupConfig(){return m.A.getGroupConfig(this._findGroup())}getDefaultTemplateNames(){return["content"]}getSupportedKeyNames(){return["space","enter"]}getProps(){const ye=super.getProps();return ye.onClick=_e=>{let{event:ke}=_e;this._clickAction({event:ke,validationGroup:this._validationGroupConfig})},"svg"===(0,C.F)(ye.icon)&&(ye.iconTemplate=this._createTemplateComponent(()=>ye.icon)),ye}get _templatesInfo(){return{template:"content"}}_toggleActiveState(ye,Me){const _e=this.viewRef;Me?_e.activate():_e.deactivate()}_getSubmitAction(){let ye=!0,Me="valid";return this._createAction(_e=>{let{event:ke,submitInput:Ye}=_e;if(ye){const de=this._validationGroupConfig;if(void 0!==de&&""!==de){const Ae=de.validate();Me=Ae.status,"pending"===Ae.status&&(ye=!1,this.option("disabled",!0),Ae.complete.then(pe=>{let{status:Ee}=pe;this.option("disabled",!1),Me=Ee,"valid"===Me&&Ye.click(),ye=!0}))}}"valid"!==Me&&ke.preventDefault(),ke.stopPropagation()})}_initializeComponent(){super._initializeComponent(),this._addAction("onSubmit",this._getSubmitAction()),this._clickAction=this._createClickAction()}_initMarkup(){super._initMarkup();const ye=this.$element().find(".dx-button-content").first(),Me=ye.children().filter(".dx-template-wrapper"),_e=ye.children().filter(".dx-button-submit-input");Me.length&&(Me.addClass("dx-button-content"),Me.append(_e),ye.replaceWith(Me))}_patchOptionValues(ye){return super._patchOptionValues((0,d.A)({},ye,{templateData:ye._templateData}))}_findGroup(){const ye=this.$element(),Me=this.option("validationGroup");return void 0!==Me&&""!==Me?Me:m.A.findGroup(ye,this._modelByElement(ye))}_createClickAction(){return this._createActionByOption("onClick",{excludeValidators:["readOnly"]})}_optionChanged(ye){"onClick"===ye.name&&(this._clickAction=this._createClickAction()),super._optionChanged(ye)}}var k=p(9144),w=p(5328),P=p(5652),v=p(5170),x=p(5973),b=p(9212),B=p(1294),j=p(6628),F=p(6946);const X=["iconTemplate","position","source"],Z={position:"left",source:""},A=Ce=>Ce&&(Ce.defaultProps?ye=>(0,w._B)((0,w.sO)(2,Ce,(0,d.A)({},ye))):Ce);let M=(()=>{class Ce extends P.eh{constructor(Me){super(Me),this.state={}}get sourceType(){return(0,C.F)(this.props.source)}get cssClass(){return"left"!==this.props.position?"dx-icon-right":""}get iconClassName(){const Me={"dx-icon":!0,[this.cssClass]:!!this.cssClass},{source:_e}=this.props;return"dxIcon"===this.sourceType?(0,j.g)((0,d.A)({},Me,{[`dx-icon-${_e}`]:!0})):"fontIcon"===this.sourceType?(0,j.g)((0,d.A)({},Me,{[String(_e)]:!!_e})):"image"===this.sourceType?(0,j.g)(Me):"svg"===this.sourceType?(0,j.g)((0,d.A)({},Me,{"dx-svg-icon":!0})):""}get restAttributes(){return(0,k.A)(this.props,X)}render(){const Me=this.props;return(Ce=>{let{iconClassName:ye,props:{iconTemplate:Me,source:_e},sourceType:ke}=Ce;return(0,w.nl)(["dxIcon"===ke&&(0,w.bF)(1,"i",ye),"fontIcon"===ke&&(0,w.bF)(1,"i",ye),"image"===ke&&(0,w.bF)(1,"img",ye,null,1,{alt:"",src:_e}),Me&&(0,w.bF)(1,"i",ye,Me({}),0)],0)})({props:(0,d.A)({},Me,{iconTemplate:A(Me.iconTemplate)}),sourceType:this.sourceType,cssClass:this.cssClass,iconClassName:this.iconClassName,restAttributes:this.restAttributes})}}return Ce.defaultProps=Z,Ce})();var H=p(9524);const J=["config"],L={config:Object.freeze({})};let G=(()=>{class Ce extends P.eh{constructor(Me){super(Me),this.state={},this.__getterCache={},this.hideWave=this.hideWave.bind(this),this.showWave=this.showWave.bind(this)}get getConfig(){return void 0!==this.__getterCache.getConfig?this.__getterCache.getConfig:this.__getterCache.getConfig=(()=>{const{config:Me}=this.props;return(0,H.pw)(Me)})()}get restAttributes(){return(0,k.A)(this.props,J)}hideWave(Me){(0,H.SK)(this.getConfig,Me)}showWave(Me){(0,H.vF)(this.getConfig,Me)}componentWillUpdate(Me,_e,ke){this.props.config!==Me.config&&(this.__getterCache.getConfig=void 0)}render(){return(Ce=>(0,w._B)((0,w.bF)(1,"div","dx-inkripple",null,1,(0,d.A)({},Ce.restAttributes))))({props:(0,d.A)({},this.props),getConfig:this.getConfig,restAttributes:this.restAttributes})}}return Ce.defaultProps=L,Ce})();var Q=p(2673),z=p(9641),K=p(8360);const ee=["accessKey","activeStateEnabled","children","className","disabled","focusStateEnabled","height","hint","hoverStateEnabled","icon","iconPosition","iconTemplate","onClick","onKeyDown","onSubmit","pressed","rtlEnabled","stylingMode","tabIndex","template","templateData","text","type","useInkRipple","useSubmitBehavior","visible","width"],re=["outlined","text","contained"],Re=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(z.s),Object.getOwnPropertyDescriptors({activeStateEnabled:!0,hoverStateEnabled:!0,icon:"",iconPosition:"left",stylingMode:"contained",text:"",type:"normal",useInkRipple:!1,useSubmitBehavior:!1,templateData:Object.freeze({})}))),Se=(0,v.gO)([{device:()=>"desktop"===x.A.real().deviceType&&!x.A.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>(0,b.gx)((0,b.ss)()),options:{useInkRipple:!0}}]),De=Ce=>Ce&&(Ce.defaultProps?ye=>(0,w._B)((0,w.sO)(2,Ce,(0,d.A)({},ye))):Ce);class Pe extends P.oe{constructor(ye){super(ye),this.state={},this.contentRef=(0,w._3)(),this.inkRippleRef=(0,w._3)(),this.submitInputRef=(0,w._3)(),this.widgetRef=(0,w._3)(),this.__getterCache={},this.focus=this.focus.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.submitEffect=this.submitEffect.bind(this),this.onActive=this.onActive.bind(this),this.onInactive=this.onInactive.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this),this.emitClickEvent=this.emitClickEvent.bind(this)}createEffects(){return[new P.Lt(this.submitEffect,[this.props.onSubmit,this.props.useSubmitBehavior]),(0,P.h2)()]}updateEffects(){var ye;null===(ye=this._effects[0])||void 0===ye||ye.update([this.props.onSubmit,this.props.useSubmitBehavior])}submitEffect(){const{onSubmit:ye,useSubmitBehavior:Me}=this.props;if(Me&&ye)return B.jM.on(this.submitInputRef.current,_e=>ye({event:_e,submitInput:this.submitInputRef.current}),{namespace:"UIFeedback"}),()=>B.jM.off(this.submitInputRef.current,{namespace:"UIFeedback"})}onActive(ye){const{useInkRipple:Me}=this.props;Me&&this.inkRippleRef.current.showWave({element:this.contentRef.current,event:ye})}onInactive(ye){const{useInkRipple:Me}=this.props;Me&&this.inkRippleRef.current.hideWave({element:this.contentRef.current,event:ye})}onWidgetClick(ye){const{onClick:Me,useSubmitBehavior:_e}=this.props;Me?.({event:ye}),_e&&this.submitInputRef.current.click()}keyDown(ye){const{onKeyDown:Me}=this.props,{keyName:_e,originalEvent:ke,which:Ye}=ye,de=Me?.(ye);if(null!=de&&de.cancel)return de;("space"===_e||"space"===Ye||"enter"===_e||"enter"===Ye)&&(ke.preventDefault(),this.emitClickEvent())}emitClickEvent(){this.contentRef.current.click()}get aria(){const{icon:ye,text:Me}=this.props;let _e=Me??"";if(!Me&&ye)switch((0,C.F)(ye)){case"image":{const de=/^(?!(?:https?:\/\/)|(?:ftp:\/\/)|(?:www\.))[^\s]+$/;_e=!ye.includes("base64")&&de.test(ye)?ye.replace(/.+\/([^.]+)\..+$/,"$1"):"";break}case"dxIcon":_e=K.A.format((0,F.PT)(ye,!0))||ye;break;case"fontIcon":_e=ye;break;case"svg":var ke;_e=(null===(ke=/<title>(.*?)<\/title>/.exec(ye))||void 0===ke?void 0:ke[1])??""}return(0,d.A)({role:"button"},_e?{label:_e}:{})}get cssClasses(){return(Ce=>{const{icon:ye,iconPosition:Me,stylingMode:_e,text:ke,type:Ye}=Ce,Ae={"dx-button":!0,[`dx-button-mode-${_e&&re.includes(_e)?_e:"contained"}`]:!0,[`dx-button-${Ye??"normal"}`]:!0,"dx-button-has-text":!!ke,"dx-button-has-icon":!!ye,"dx-button-icon-right":"left"!==Me};return(0,j.g)(Ae)})(this.props)}get iconSource(){const{icon:ye}=this.props;return ye??""}get inkRippleConfig(){return void 0!==this.__getterCache.inkRippleConfig?this.__getterCache.inkRippleConfig:this.__getterCache.inkRippleConfig=(()=>{const{icon:ye,text:Me}=this.props;return!Me&&ye?{isCentered:!0,useHoldAnimation:!1,waveSizeCoefficient:1}:{}})()}get buttonTemplateData(){const{icon:ye,templateData:Me,text:_e}=this.props;return(0,d.A)({icon:ye,text:_e},Me)}get restAttributes(){return(0,k.A)(this.props,ee)}focus(){this.widgetRef.current.focus()}activate(){this.widgetRef.current.activate()}deactivate(){this.widgetRef.current.deactivate()}componentWillUpdate(ye,Me,_e){super.componentWillUpdate(),(this.props.icon!==ye.icon||this.props.text!==ye.text)&&(this.__getterCache.inkRippleConfig=void 0)}render(){const ye=this.props;return(Ce=>{const{children:ye,iconPosition:Me,iconTemplate:_e,template:ke,text:Ye}=Ce.props,de=!Ce.props.template&&!ye&&""!==Ye,Ae="left"===Me,pe=!Ce.props.template&&!ye&&(Ce.iconSource||Ce.props.iconTemplate)&&(0,w.sO)(2,M,{source:Ce.iconSource,position:Me,iconTemplate:_e});return(0,w._B)((0,w.sO)(2,Q.x0,(0,d.A)({accessKey:Ce.props.accessKey,activeStateEnabled:Ce.props.activeStateEnabled,aria:Ce.aria,className:Ce.props.className,classes:Ce.cssClasses,disabled:Ce.props.disabled,focusStateEnabled:Ce.props.focusStateEnabled,height:Ce.props.height,hint:Ce.props.hint,hoverStateEnabled:Ce.props.hoverStateEnabled,onActive:Ce.onActive,onClick:Ce.onWidgetClick,onInactive:Ce.onInactive,onKeyDown:Ce.keyDown,rtlEnabled:Ce.props.rtlEnabled,tabIndex:Ce.props.tabIndex,visible:Ce.props.visible,width:Ce.props.width},Ce.restAttributes,{children:(0,w.bF)(1,"div","dx-button-content",[Ce.props.template&&ke({data:Ce.buttonTemplateData}),!Ce.props.template&&ye,Ae&&pe,de&&(0,w.bF)(1,"span","dx-button-text",Ye,0),!Ae&&pe,Ce.props.useSubmitBehavior&&(0,w.bF)(64,"input","dx-button-submit-input",null,1,{type:"submit",tabIndex:-1},null,Ce.submitInputRef),Ce.props.useInkRipple&&(0,w.sO)(2,G,{config:Ce.inkRippleConfig},null,Ce.inkRippleRef)],0,null,null,Ce.contentRef)}),null,Ce.widgetRef))})({props:(0,d.A)({},ye,{template:De(ye.template),iconTemplate:De(ye.iconTemplate)}),contentRef:this.contentRef,submitInputRef:this.submitInputRef,inkRippleRef:this.inkRippleRef,widgetRef:this.widgetRef,onActive:this.onActive,onInactive:this.onInactive,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,emitClickEvent:this.emitClickEvent,aria:this.aria,cssClasses:this.cssClasses,iconSource:this.iconSource,inkRippleConfig:this.inkRippleConfig,buttonTemplateData:this.buttonTemplateData,restAttributes:this.restAttributes})}}Pe.defaultProps=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(Re),Object.getOwnPropertyDescriptors((0,d.A)({},(0,v.a6)(Se)))));const Ie=[];class ie extends e{getProps(){const ye=super.getProps();return ye.onKeyDown=this._wrapKeyDownHandler(ye.onKeyDown),ye}focus(){var ye;return null===(ye=this.viewRef)||void 0===ye?void 0:ye.focus(...arguments)}activate(){var ye;return null===(ye=this.viewRef)||void 0===ye?void 0:ye.activate(...arguments)}deactivate(){var ye;return null===(ye=this.viewRef)||void 0===ye?void 0:ye.deactivate(...arguments)}_getActionConfigs(){return{onClick:{excludeValidators:["readOnly"]},onSubmit:{}}}get _propsInfo(){return{twoWay:[],allowNull:[],elements:["onSubmit"],templates:["template","iconTemplate"],props:["activeStateEnabled","hoverStateEnabled","icon","iconPosition","onClick","onSubmit","pressed","stylingMode","template","iconTemplate","text","type","useInkRipple","useSubmitBehavior","templateData","className","accessKey","disabled","focusStateEnabled","height","hint","onKeyDown","rtlEnabled","tabIndex","visible","width"]}}get _viewComponent(){return Pe}}(0,S.A)("dxButton",ie),ie.defaultOptions=function W(Ce){Ie.push(Ce),Pe.defaultProps=Object.create(Object.prototype,Object.assign(Object.getOwnPropertyDescriptors(Pe.defaultProps),Object.getOwnPropertyDescriptors((0,v.a6)(Se)),Object.getOwnPropertyDescriptors((0,v.a6)(Ie))))};const he=ie},9026:(En,it,p)=>{"use strict";p.d(it,{L:()=>T});var S=p(4303),d=p(8747),m=p(6098);let T=(()=>{var C;class e{constructor(w,P,v){this.elem=w,this.lazyImgService=P,this.sanitizer=v}ngOnInit(){const w=this.sanitizer.sanitize(4,this.src);this.lazyImgService.addImage(this.elem,w),this.scrollSub=this.lazyImgService.observeScroll().subscribe(()=>{this.lazyImgService.loadImages()})}ngOnDestroy(){this.lazyImgService.removeImage(this.elem),this.scrollSub&&this.scrollSub.unsubscribe()}static#e=C=()=>(this.\u0275fac=function(P){return new(P||e)(S.rXU(S.aKT),S.rXU(d.j),S.rXU(m.up))},this.\u0275dir=S.FsC({type:e,selectors:[["","lazy-img",""]],inputs:{src:[0,"lazy-img","src"]},standalone:!1}))}return C(),e})()},9055:(En,it,p)=>{"use strict";p.d(it,{Q:()=>k,h:()=>e});var S=p(656),d=p(4303),m=p(6362),T=p(3349),C=p(8914);let e=(()=>{class w extends T.ic{_watcherHelper;_idh;instance=null;get cancelText(){return this._getOption("cancelText")}set cancelText(v){this._setOption("cancelText",v)}get dataSource(){return this._getOption("dataSource")}set dataSource(v){this._setOption("dataSource",v)}get disabled(){return this._getOption("disabled")}set disabled(v){this._setOption("disabled",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get hint(){return this._getOption("hint")}set hint(v){this._setOption("hint",v)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(v){this._setOption("hoverStateEnabled",v)}get itemHoldTimeout(){return this._getOption("itemHoldTimeout")}set itemHoldTimeout(v){this._setOption("itemHoldTimeout",v)}get items(){return this._getOption("items")}set items(v){this._setOption("items",v)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(v){this._setOption("itemTemplate",v)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(v){this._setOption("rtlEnabled",v)}get showCancelButton(){return this._getOption("showCancelButton")}set showCancelButton(v){this._setOption("showCancelButton",v)}get showTitle(){return this._getOption("showTitle")}set showTitle(v){this._setOption("showTitle",v)}get target(){return this._getOption("target")}set target(v){this._setOption("target",v)}get title(){return this._getOption("title")}set title(v){this._setOption("title",v)}get usePopover(){return this._getOption("usePopover")}set usePopover(v){this._setOption("usePopover",v)}get visible(){return this._getOption("visible")}set visible(v){this._setOption("visible",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}onCancelClick;onContentReady;onDisposing;onInitialized;onItemClick;onItemContextMenu;onItemHold;onItemRendered;onOptionChanged;cancelTextChange;dataSourceChange;disabledChange;elementAttrChange;heightChange;hintChange;hoverStateEnabledChange;itemHoldTimeoutChange;itemsChange;itemTemplateChange;rtlEnabledChange;showCancelButtonChange;showTitleChange;targetChange;titleChange;usePopoverChange;visibleChange;widthChange;get itemsChildren(){return this._getOption("items")}set itemsChildren(v){this.setChildren("items",v)}constructor(v,x,b,B,j,F,X,U){super(v,x,b,B,X,U),this._watcherHelper=B,this._idh=j,this._createEventEmitters([{subscribe:"cancelClick",emit:"onCancelClick"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemHold",emit:"onItemHold"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"cancelTextChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"rtlEnabledChange"},{emit:"showCancelButtonChange"},{emit:"showTitleChange"},{emit:"targetChange"},{emit:"titleChange"},{emit:"usePopoverChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),F.setHost(this)}_createInstance(v,x){return new m.A(v,x)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(v){super.ngOnChanges(v),this.setupChanges("dataSource",v),this.setupChanges("items",v)}setupChanges(v,x){v in this._optionsToUpdate||this._idh.setup(v,x)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(v,x){let b=this._idh.setupSingle(v,x),B=null!==this._idh.getChanges(v,x);(b||B)&&super._setOption(v,x)}static \u0275fac=function(x){return new(x||w)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(T.zF),d.rXU(T.jS),d.rXU(T.$M),d.rXU(T.fH),d.rXU(d.pJN),d.rXU(d.Agw))};static \u0275cmp=d.VBU({type:w,selectors:[["dx-action-sheet"]],contentQueries:function(x,b,B){if(1&x&&d.wni(B,C.CVf,4),2&x){let j;d.mGM(j=d.lsd())&&(b.itemsChildren=j)}},inputs:{cancelText:"cancelText",dataSource:"dataSource",disabled:"disabled",elementAttr:"elementAttr",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",itemHoldTimeout:"itemHoldTimeout",items:"items",itemTemplate:"itemTemplate",rtlEnabled:"rtlEnabled",showCancelButton:"showCancelButton",showTitle:"showTitle",target:"target",title:"title",usePopover:"usePopover",visible:"visible",width:"width"},outputs:{onCancelClick:"onCancelClick",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemContextMenu:"onItemContextMenu",onItemHold:"onItemHold",onItemRendered:"onItemRendered",onOptionChanged:"onOptionChanged",cancelTextChange:"cancelTextChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",itemHoldTimeoutChange:"itemHoldTimeoutChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",rtlEnabledChange:"rtlEnabledChange",showCancelButtonChange:"showCancelButtonChange",showTitleChange:"showTitleChange",targetChange:"targetChange",titleChange:"titleChange",usePopoverChange:"usePopoverChange",visibleChange:"visibleChange",widthChange:"widthChange"},standalone:!1,features:[d.Jv_([T.zF,T.jS,T.fH,T.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(x,b){},encapsulation:2})}return w})(),k=(()=>{class w{static \u0275fac=function(x){return new(x||w)};static \u0275mod=d.$C({type:w});static \u0275inj=S.G2t({imports:[C.POb,T.p_,T.xZ,C.POb,T.xZ]})}return w})()},9061:(En,it,p)=>{"use strict";p.d(it,{A:()=>Se});var S=p(1926),d=p(1830),m=p(2660),T=p(7251),C=p(5870),e=p(53),k=p(1013),w=p(5259);const P={"af-NA":1,agq:1,ak:1,ar:6,"ar-EH":1,"ar-ER":1,"ar-KM":1,"ar-LB":1,"ar-MA":1,"ar-MR":1,"ar-PS":1,"ar-SO":1,"ar-SS":1,"ar-TD":1,"ar-TN":1,asa:1,ast:1,az:1,"az-Cyrl":1,bas:1,be:1,bem:1,bez:1,bg:1,bm:1,br:1,bs:1,"bs-Cyrl":1,ca:1,ce:1,cgg:1,ckb:6,cs:1,cy:1,da:1,de:1,dje:1,dsb:1,dua:1,dyo:1,ee:1,el:1,"en-001":1,"en-AE":6,"en-BI":1,"en-MP":1,"en-MV":5,"en-SD":6,eo:1,es:1,et:1,eu:1,ewo:1,fa:6,ff:1,"ff-Adlm":1,fi:1,fo:1,fr:1,"fr-DJ":6,"fr-DZ":6,"fr-SY":6,fur:1,fy:1,ga:1,gd:1,gl:1,gsw:1,gv:1,ha:1,hr:1,hsb:1,hu:1,hy:1,ia:1,ig:1,is:1,it:1,jgo:1,jmc:1,ka:1,kab:6,kde:1,kea:1,khq:1,kk:1,kkj:1,kl:1,"ko-KP":1,ksb:1,ksf:1,ksh:1,ku:1,kw:1,ky:1,lag:1,lb:1,lg:1,ln:1,lrc:6,lt:1,lu:1,lv:1,"mas-TZ":1,mfe:1,mg:1,mgo:1,mi:1,mk:1,mn:1,ms:1,mua:1,mzn:6,naq:1,nds:1,nl:1,nmg:1,nnh:1,no:1,nus:1,nyn:1,os:1,pcm:1,pl:1,ps:6,"pt-AO":1,"pt-CH":1,"pt-CV":1,"pt-GQ":1,"pt-GW":1,"pt-LU":1,"pt-ST":1,"pt-TL":1,"qu-BO":1,"qu-EC":1,rm:1,rn:1,ro:1,rof:1,ru:1,rw:1,rwk:1,sah:1,sbp:1,sc:1,se:1,ses:1,sg:1,shi:1,"shi-Latn":1,si:1,sk:1,sl:1,smn:1,so:1,"so-DJ":6,sq:1,sr:1,"sr-Latn":1,sv:1,sw:1,"ta-LK":1,"ta-MY":1,teo:1,tg:1,"ti-ER":1,tk:1,to:1,tr:1,tt:1,twq:1,tzm:1,uk:1,uz:1,"uz-Arab":6,"uz-Cyrl":1,vai:1,"vai-Latn":1,vi:1,vun:1,wae:1,wo:1,xog:1,yav:1,yi:1,yo:1,zgh:1};var v=p(7280),x=p(1520),b=p(3090);const B=/[\u200E\u200F]/g,j=/[\u202F]/g,F=De=>Pe=>{if(!De.timeZoneName){const Ie=Pe.getFullYear(),W=String(Ie).length<3,Ce=new Date(Date.UTC(W?Ie+400:Ie,Pe.getMonth(),Pe.getDate(),Pe.getHours(),Pe.getMinutes(),Pe.getSeconds(),Pe.getMilliseconds()));return W&&Ce.setFullYear(Ie),Z(Ce,(0,b.X)({timeZone:"UTC"},De))}return Z(Pe,De)},X={},U=De=>{const Pe=v.A.locale()+"/"+JSON.stringify(De);return X[Pe]||(X[Pe]=new Intl.DateTimeFormat(v.A.locale(),De).format),X[Pe]};function Z(De,Pe){return U(Pe)(De).replace(B,"").replace(j," ")}const A=De=>new Intl.NumberFormat(v.A.locale()).format(De),M=(()=>{const De={};return Pe=>{if(!(Pe in De)){if("0"===A(0))return De[Pe]=!1,!1;De[Pe]={};for(let Ie=0;Ie<10;++Ie)De[Pe][A(Ie)]=Ie}return De[Pe]}})(),H=De=>{const Pe=M(v.A.locale());return Pe?De.split("").map(Ie=>Ie in Pe?String(Pe[Ie]):Ie).join(""):De},J=De=>De.replace(/(\D)0+(\d)/g,"$1$2"),L=De=>De.replace("d\u2019","de "),G={day:{day:"numeric"},date:{year:"numeric",month:"long",day:"numeric"},dayofweek:{weekday:"long"},longdate:{weekday:"long",year:"numeric",month:"long",day:"numeric"},longdatelongtime:{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},longtime:{hour:"numeric",minute:"numeric",second:"numeric"},month:{month:"long"},monthandday:{month:"long",day:"numeric"},monthandyear:{year:"numeric",month:"long"},shortdate:{},shorttime:{hour:"numeric",minute:"numeric"},shortyear:{year:"2-digit"},year:{year:"numeric"}};Object.defineProperty(G,"shortdateshorttime",{get:function(){const De=Intl.DateTimeFormat(v.A.locale()).resolvedOptions();return{year:De.year,month:De.month,day:De.day,hour:"numeric",minute:"numeric"}}});const z={standalone:function(De,Pe){const Ie=new Date(1999,De,13,1);return F({month:Pe})(Ie)},format:function(De,Pe){const Ie=new Date(0,De,13,1),ie=L(F({day:"numeric",month:Pe})(Ie)).split(" ").filter(he=>he.indexOf("13")<0);return 1===ie.length?ie[0]:2===ie.length?ie[0].length>ie[1].length?ie[0]:ie[1]:z.standalone(De,Pe)}},K={engine:function(){return"intl"},getMonthNames:function(De,Pe){const Ie={wide:"long",abbreviated:"short",narrow:"narrow"}[De||"wide"];return Pe="format"===Pe?Pe:"standalone",Array.apply(null,new Array(12)).map((W,ie)=>z[Pe](ie,Ie))},getDayNames:function(De){return Ie={wide:"long",abbreviated:"short",short:"narrow",narrow:"narrow"}[De||"wide"],Array.apply(null,new Array(7)).map((W,ie)=>F({weekday:Ie})(new Date(0,0,ie)));var Ie},getPeriodNames:function(){const De=F({hour:"numeric",hour12:!0});return[1,13].map(Pe=>{const Ie=A(1),W=De(new Date(0,0,1,Pe)).split(Ie);return 2!==W.length?"":(W[0].length>W[1].length?W[0]:W[1]).trim()})},format:function(De,Pe){if(!De)return;if(!Pe)return De;"function"!=typeof Pe&&!Pe.formatter&&(Pe=Pe.type||Pe);const Ie=(De=>"string"==typeof De&&G[De.toLowerCase()])(Pe);if(Ie)return F(Ie)(De);const W=typeof Pe;return Pe.formatter||"function"===W||"string"===W?this.callBase.apply(this,arguments):F(Pe)(De)},parse:function(De,Pe){let Ie;return Pe&&!Pe.parser&&"string"==typeof De&&(De=L(De),Ie=W=>L(this.format(W,Pe))),this.callBase(De,Ie||Pe)},_parseDateBySimpleFormat:function(De,Pe){De=H(De);const Ie=this.getFormatParts(Pe),W=De.split(/\D+/).filter(Ce=>Ce.length>0);if(Ie.length!==W.length)return;const ie=this._generateDateArgs(Ie,W),he=Ce=>{const ye=(Me=ie,new Date(Me.year,Me.month,Me.day,(Me.hours+(Ce?12:0))%24,Me.minutes,Me.seconds));var Me;if(((De,Pe)=>J(De)===J(Pe))(H(this.format(ye,Pe)),De))return ye};return he(!1)||he(!0)},_generateDateArgs:function(De,Pe){const Ie=new Date,W={year:Ie.getFullYear(),month:Ie.getMonth(),day:Ie.getDate(),hours:0,minutes:0,seconds:0};return De.forEach((ie,he)=>{let ye=parseInt(Pe[he],10);"month"===ie&&(ye-=1),W[ie]=ye}),W},formatUsesMonthName:function(De){return"object"!=typeof De||De.type||De.format?this.callBase.apply(this,arguments):"long"===De.month},formatUsesDayName:function(De){return"object"!=typeof De||De.type||De.format?this.callBase.apply(this,arguments):"long"===De.weekday},getTimeSeparator:function(){return H(Z(new Date(2001,1,1,11,11),{hour:"numeric",minute:"numeric",hour12:!1})).replace(/\d/g,"")},getFormatParts:function(De){if("string"==typeof De)return this.callBase(De);const Pe=(0,b.X)({},G[De.toLowerCase()]),Ie=new Date(2001,2,4,5,6,7);let W=F(Pe)(Ie);return W=H(W),[{name:"year",value:1},{name:"month",value:3},{name:"day",value:4},{name:"hours",value:5},{name:"minutes",value:6},{name:"seconds",value:7}].map(ie=>({name:ie.name,index:W.indexOf(ie.value)})).filter(ie=>ie.index>-1).sort((ie,he)=>ie.index-he.index).map(ie=>ie.name)}},re=typeof Intl<"u",be={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},ce={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},Re=(0,S.A)({engine:function(){return"base"},_getPatternByFormat:function(De){return be[De.toLowerCase()]},_expandPattern:function(De){return this._getPatternByFormat(De)||De},formatUsesMonthName:function(De){return-1!==this._expandPattern(De).indexOf("MMMM")},formatUsesDayName:function(De){return-1!==this._expandPattern(De).indexOf("EEEE")},getFormatParts:function(De){const Pe=this._getPatternByFormat(De)||De,Ie=[];return(0,m.__)(Pe.split(/\W+/),(W,ie)=>{(0,m.__)(ce,(he,Ce)=>{Ce.includes(ie)&&Ie.push(he)})}),Ie},getMonthNames:function(De){return w.A.getMonthNames(De)},getDayNames:function(De){return w.A.getDayNames(De)},getQuarterNames:function(De){return w.A.getQuarterNames(De)},getPeriodNames:function(De){return w.A.getPeriodNames(De)},getTimeSeparator:function(){return":"},is24HourFormat:function(De){const Pe=new Date(2017,0,20,11,0,0,0),Ie=new Date(2017,0,20,23,0,0,0),W=this.format(Pe,De),ie=this.format(Ie,De);for(let he=0;he<W.length;he++)if(W[he]!==ie[he])return!isNaN(parseInt(W[he]))},format:function(De,Pe){if(!De)return;if(!Pe)return De;let Ie;if("function"==typeof Pe)Ie=Pe;else if(Pe.formatter)Ie=Pe.formatter;else if((0,d.Kg)(Pe=Pe.type||Pe))return Pe=be[Pe.toLowerCase()]||Pe,x.A.convertDigits((0,C.f)(Pe,this)(De));return Ie?Ie(De):void 0},parse:function(De,Pe){const Ie=this;let W,ie;if(!De)return;if(!Pe)return this.parse(De,"shortdate");if(Pe.parser)return Pe.parser(De);if("string"!=typeof Pe||be[Pe.toLowerCase()]){ie=Ce=>{const ye=Ie.format(Ce,Pe);return x.A.convertDigits(ye,!0)};try{W=(0,e.g)(ie)}catch{}}else W=Pe;if(W)return De=x.A.convertDigits(De,!0),(0,k.SQ)(W,this)(De);T.A.log("W0012");const he=new Date(De);return he&&!isNaN(he.getTime())?he:void 0},firstDayOfWeekIndex:function(){const De=v.A.getValueByClosestLocale(Pe=>P[Pe]);return void 0===De?0:De}});re&&Re.inject(K);const Se=Re},9066:(En,it,p)=>{"use strict";p.d(it,{A:()=>Se});var S=p(5737),d=p(5328),m=p(7426),T=p(5652),C=p(9446),e=p(6054),k=p(5397),w=p(1926);const P=De=>{const{parentNode:Pe}=De;if(Pe){const Ie=De.nextSibling;(0,k.Gf)(De),Pe.$V=De.$V,(0,d.XX)(null,Pe),Pe.insertBefore(De,Ie),De.innerHTML="",delete Pe.$V}delete De.$V},v=(0,w.A)({createElement:(De,Pe)=>(0,C.n)(De,Pe),remove:P,onAfterRender:()=>{T.R3.callEffects()},onPreRender:()=>{T.R3.lock()},render:(De,Pe,Ie,W)=>{if(W)(0,d.XX)((0,C.n)(De,Pe),Ie);else{const{parentNode:ie}=Ie,he=Ie?.nextSibling,Ce=e.A.createElement("div");Ce.appendChild(Ie);const ye=e.A.createDocumentFragment().appendChild(Ce);!!Ie.$V&&P(Ie),(0,T.Qv)((0,C.n)(De,Pe),ye),Ie.$V=ye.$V,ie&&ie.insertBefore(Ie,he)}}});var x=p(5704),b=p(8569),B=p(3090),j=p(9522),F=p(1830),X=p(9144),U=p(1832);const Z=(De,Pe)=>Object.keys(De).length===Object.keys(Pe).length&&Object.keys(De).every(Ie=>De[Ie]===Pe[Ie]),A=["isEqual"];class L extends T.JP{constructor(Pe){super(Pe),this.renderTemplate=this.renderTemplate.bind(this)}renderTemplate(){const Pe=(0,d.UV)(this.$LI,!0);if(null==Pe||!Pe.parentNode)return()=>{};const Ie=Pe.parentNode,W=(0,x.A)(Ie),ie=W.contents().toArray(),he=function J(De,Pe){const{data:Ie,index:W}=De.model??{data:{}};Ie&&Object.keys(Ie).forEach(he=>{Ie[he]&&e.A.isNode(Ie[he])&&(Ie[he]=(0,j.cc)((0,x.A)(Ie[he])))});const ie=De.template.render((0,S.A)({container:Pe,transclude:De.transclude},{renovated:De.renovated},De.transclude?{}:{model:Ie},!De.transclude&&Number.isFinite(W)?{index:W}:{}));return void 0===ie?[]:function M(De){return!!De.toArray}(ie)?ie.toArray():[(0,x.A)(ie).get(0)]}(this.props,(0,j.cc)(W));return(0,U.bG)((0,x.A)(Pe),(0,x.A)(he)),()=>{const Ce=(0,x.A)(Ie).contents().toArray();(function R(De,Pe){Pe.forEach(Ie=>{!De.find(ie=>Ie===ie)&&Ie.parentNode&&(0,x.A)(Ie).remove()})})(ie,Ce),Ie.appendChild(Pe)}}shouldComponentUpdate(Pe){const{model:Ie,template:W}=this.props,{isEqual:ie,model:he,template:Ce}=Pe,ye=ie??Z;if(W!==Ce)return!0;if(!(0,F.O9)(Ie)||!(0,F.O9)(he))return Ie!==he;const{data:Me,index:_e}=Ie,{data:ke,index:Ye}=he;return _e!==Ye||!ye(Me,ke)}createEffects(){return[new T.Lt(this.renderTemplate,[this.props.template,this.props.model])]}updateEffects(){this._effects[0].update([this.props.template,this.props.model])}componentWillUnmount(){}render(){return null}}var G=p(4270);function Q(De){return Array.isArray(De)?[...De]:(0,S.A)({},De)}function z(De,Pe,Ie){const W=Q(Ie.length>0&&Pe&&De!==Pe?Pe:De),ie=Ie[0];return Ie.length>1?W[ie]=z(De[ie],Pe?.[ie],Ie.slice(1)):ie&&(W[ie]=(0,F.Qd)(De[ie])?Q(De[ie]):De[ie]),W}function K(De,Pe,Ie,W){const ie=Pe[Ie],he=De[Ie];De[Ie]=(0,F.Qd)(ie)||Ie!==W&&Array.isArray(ie)?z(ie,he,(0,G.u7)(W).slice(1)):ie}p(778),p(4451),p(1134);const ce=(De,Pe)=>Ie=>{Object.prototype.hasOwnProperty.call(De,Ie)&&void 0===De[Ie]&&(De[Ie]=Pe(Ie))};let Re=(()=>{class De extends b.A{get _propsInfo(){return{allowNull:[],twoWay:[],elements:[],templates:[],props:[]}}constructor(Ie,W){super(Ie,W),this._shouldRaiseContentReady=!1,this.validateKeyDownHandler()}validateKeyDownHandler(){if(this.getSupportedKeyNames().length>0&&"function"!=typeof this._viewComponent.prototype.keyDown)throw Error("Component's declaration must have 'keyDown' method.")}get viewRef(){var Ie;return null===(Ie=this._viewRef)||void 0===Ie?void 0:Ie.current}_checkContentReadyOption(Ie){const W=this._getContentReadyOptions().reduce((ie,he)=>(ie[he]=!0,ie),{});return this._checkContentReadyOption=ie=>!!W[ie],this._checkContentReadyOption(Ie)}_getContentReadyOptions(){return["rtlEnabled"]}_fireContentReady(){this._actionsMap.onContentReady({})}_getDefaultOptions(){const Ie=this._getViewComponentDefaultProps();return(0,B.X)(!0,super._getDefaultOptions(),Ie,this._propsInfo.twoWay.reduce((W,ie)=>{let[he,Ce,ye]=ie;return(0,S.A)({},W,{[he]:Ie[Ce],[ye]:Me=>this.option(he,Me)})},{}),this._propsInfo.templates.reduce((W,ie)=>(0,S.A)({},W,{[ie]:null}),{}))}_getUnwrappedOption(){const Ie={};return Object.keys(this.option()).forEach(W=>{Ie[W]=this.option(W)}),Ie}_initializeComponent(){var Ie;super._initializeComponent(),null===(Ie=this._templateManager)||void 0===Ie||Ie.addDefaultTemplates(this.getDefaultTemplates());const W=this._getUnwrappedOption();this._props=this._optionsWithDefaultTemplates(W),this._propsInfo.templates.forEach(ie=>{this._componentTemplates[ie]=this._createTemplateComponent(this._props[ie])}),Object.keys(this._getActionConfigsFull()).forEach(ie=>this._addAction(ie)),this._viewRef=(0,d._3)(),this.defaultKeyHandlers=this._createDefaultKeyHandlers()}_initMarkup(){const Ie=this.getProps();this._renderWrapper(Ie)}_renderWrapper(Ie){const W=this.$element()[0];this._isNodeReplaced||v.onPreRender(),v.render(this._viewComponent,Ie,W,this._isNodeReplaced),this._isNodeReplaced||(this._isNodeReplaced=!0,v.onAfterRender(),this._shouldRaiseContentReady=!0),this._shouldRaiseContentReady&&(this._fireContentReady(),this._shouldRaiseContentReady=!1)}_silent(Ie,W){this._options.silent(Ie,W)}_render(){}_removeWidget(){v.remove(this.$element()[0])}_dispose(){this._removeWidget(),super._dispose()}get elementAttr(){const Ie=this.$element()[0];if(!this._elementAttr){const{attributes:he}=Ie,Ce=Array.from(he).filter(ye=>{var Me;return!this._propsInfo.templates.includes(ye.name)&&(null===(Me=he[ye.name])||void 0===Me?void 0:Me.specified)}).reduce((ye,Me)=>{let{name:_e,value:ke}=Me;const Ye=ye;return Ye[_e]=""===ke&&_e in Ie?Ie[_e]:ke,Ye},{});this._elementAttr=Ce,this._storedClasses=Ie.getAttribute("class")||""}const W=Ie.style,ie={};for(let he=0;he<W.length;he+=1)ie[W[he]]=W.getPropertyValue(W[he]);return this._elementAttr.style=ie,this._elementAttr.class=this._storedClasses,this._elementAttr}_getAdditionalActionConfigs(){return{onContentReady:{excludeValidators:["disabled","readOnly"]}}}_getAdditionalProps(){return[]}_patchOptionValues(Ie){const{allowNull:W,elements:ie,props:he,twoWay:Ce}=this._propsInfo,ye=this._getViewComponentDefaultProps(),Me=Object.keys(ye),_e=this._getDefaultOptions(),{children:ke,onKeyboardHandled:Ye,ref:de}=Ie,pe={ref:de,children:ke,onKeyDown:Ye?(Ee,le)=>{Ye(le)}:void 0};return[...he,...this._getAdditionalProps()].forEach(Ee=>{Object.prototype.hasOwnProperty.call(Ie,Ee)&&(pe[Ee]=Ie[Ee])}),W.forEach(ce(pe,()=>null)),Me.forEach(ce(pe,Ee=>_e[Ee])),Ce.forEach(Ee=>{let[le,Ke]=Ee;ce(pe,()=>_e[Ke])(le)}),ie.forEach(Ee=>{if(Ee in pe){const le=pe[Ee];(0,F.Kb)(le)&&(pe[Ee]=this._patchElementParam(le))}}),pe}getSupportedKeyNames(){return[]}prepareStyleProp(Ie){return"string"==typeof Ie.style?(0,S.A)({},Ie,{style:{},cssText:Ie.style}):Ie}getProps(){const{elementAttr:Ie}=this.option(),W=this._patchOptionValues((0,S.A)({},this._props,{ref:this._viewRef,children:this._extractDefaultSlot(),aria:this._aria}));return this._propsInfo.templates.forEach(ie=>{W[ie]=this._componentTemplates[ie]}),this.prepareStyleProp((0,S.A)({},W,this.elementAttr,Ie,{className:[...(this.elementAttr.class??"").split(" "),...(Ie?.class??"").split(" ")].filter((ie,he,Ce)=>ie&&Ce.indexOf(ie)===he).join(" ").trim(),class:""},this._actionsMap))}_getActionConfigs(){return{}}_getActionConfigsFull(){return(0,S.A)({},this._getActionConfigs(),this._getAdditionalActionConfigs())}getDefaultTemplates(){const Ie=Object.values(this._templatesInfo),W={};return Ie.forEach(ie=>{W[ie]="dx-renovation-template-mock"}),W}get _templatesInfo(){return{}}_optionsWithDefaultTemplates(Ie){const W=Object.entries(this._templatesInfo).reduce((ie,he)=>{let[Ce,ye]=he;return(0,S.A)({},ie,{[Ce]:Ie[Ce]??ye})},{});return(0,S.A)({},Ie,W)}_init(){super._init(),this.customKeyHandlers={},this._actionsMap={},this._aria={},this._componentTemplates={}}_createDefaultKeyHandlers(){const Ie={};return this.getSupportedKeyNames().forEach(ie=>{Ie[ie]=he=>this.viewRef.keyDown(m.A.createKeyDownOptions(he))}),Ie}_addAction(Ie,W){let ie=W;if(!ie){const he=this._createActionByOption(Ie,this._getActionConfigsFull()[Ie]);ie=Ce=>(Object.keys(Ce).forEach(ye=>{(0,F.O9)(Ce[ye])&&e.A.isNode(Ce[ye])&&(Ce[ye]=(0,j.cc)((0,x.A)(Ce[ye])))}),he(Ce))}this._actionsMap[Ie]=ie}_optionChanged(Ie){const{fullName:W,name:ie,previousValue:he,value:Ce}=Ie;K(this._props,this.option(),ie,W),this._propsInfo.templates.includes(ie)&&Ce!==he&&(this._componentTemplates[ie]=this._createTemplateComponent(Ce)),ie&&this._getActionConfigsFull()[ie]&&this._addAction(ie),this._shouldRaiseContentReady=this._shouldRaiseContentReady||this._checkContentReadyOption(W),super._optionChanged(Ie),this._invalidate()}_extractDefaultSlot(){return this.option("_hasAnonymousTemplateContent")?v.createElement(L,{template:this._getTemplate(this._templateManager.anonymousTemplateName),transclude:!0,renovated:!0}):null}_createTemplateComponent(Ie){if(!Ie)return;const W=this._getTemplate(Ie);return(0,F.Kg)(W)&&"dx-renovation-template-mock"===W?void 0:ie=>v.createElement(L,function H(De,Pe){const Ie={template:Pe,model:(0,S.A)({},De)},W=De.data??{},{isEqual:ie}=W,he=(0,X.A)(W,A);return ie&&(Ie.model.data=he,Ie.isEqual=ie),Ie}(ie,W))}_wrapKeyDownHandler(Ie){return W=>{const{keyName:ie,originalEvent:he,which:Ce}=W,ye=this.customKeyHandlers,Me=ye[ie]||ye[Ce];return void 0===Me||Me.bind(this)(he,W)?Ie?.(he,W):(he.cancel=!0,he)}}_toPublicElement(Ie){return(0,j.cc)((0,x.A)(Ie))}_patchElementParam(Ie){try{const W=(0,x.A)(Ie),ie=W?.get(0);return null!=ie&&ie.nodeType?ie:Ie}catch{return Ie}}repaint(){this._isNodeReplaced=!1,this._shouldRaiseContentReady=!0,this._removeWidget(),this._refresh()}_supportedKeys(){return(0,S.A)({},this.defaultKeyHandlers,this.customKeyHandlers)}registerKeyHandler(Ie,W){this.customKeyHandlers[Ie]=W}setAria(Ie,W){this._aria[Ie]=W,this._initMarkup()}_getViewComponentDefaultProps(){return this._viewComponent.defaultProps||{}}}return De.IS_RENOVATED_WIDGET=!1,De})();const Se=Re;Re.IS_RENOVATED_WIDGET=!0},9079:(En,it,p)=>{"use strict";p.d(it,{PW:()=>Se,ei:()=>B,f$:()=>Pe,w7:()=>b});var S=p(2978),d=p(656),m=p(1131),T=p(4303),C=p(5503);class k{prop;attr;bracketAttr;bracketParenAttr;parenAttr;onAttr;bindAttr;bindonAttr;constructor(de,Ae){this.prop=de,this.attr=Ae,this.bracketAttr=`[${this.attr}]`,this.parenAttr=`(${this.attr})`,this.bracketParenAttr=`[(${this.attr})]`;const pe=this.attr.charAt(0).toUpperCase()+this.attr.slice(1);this.onAttr=`on${pe}`,this.bindAttr=`bind${pe}`,this.bindonAttr=`bindon${pe}`}}function x(Ye){C.ND.cleanData([Ye]),function M(Ye){return Z(Ye.querySelectorAll)}(Ye)&&C.ND.cleanData(Ye.querySelectorAll("*"))}function b(Ye){return"$"+Ye+"Controller"}function B(Ye){const de=Ye.get(C.KU);Ye.get(C.mG).$destroy(),x(de[0])}function F(Ye){return Ye.overriddenName||Ye.name||Ye.toString().split("\n")[0]}function X(Ye){return Ye.has(C.F0)?Ye.get(C.F0):0}function U(Ye){return Ye.has(C.k5)?Ye.get(C.k5):0}function Z(Ye){return"function"==typeof Ye}function H(Ye,de,Ae,pe){const Ee=U(Ye),le=X(Ye);switch(Ee){case 1:case 2:if(de)throw new Error(`Error while ${pe}: 'downgradedModule' unexpectedly specified.\nYou should not specify a value for 'downgradedModule', unless you are downgrading more than one Angular module (via 'downgradeModule()').`);break;case 3:if(!de&&le>=2)throw new Error(`Error while ${pe}: 'downgradedModule' not specified.\nThis application contains more than one downgraded Angular module, thus you need to always specify 'downgradedModule' when downgrading components and injectables.`);if(!Ye.has(Ae))throw new Error(`Error while ${pe}: Unable to find the specified downgraded module.\nDid you forget to downgrade an Angular module or include it in the AngularJS application?`);break;default:throw new Error(`Error while ${pe}: Not a valid '@angular/upgrade' application.\nDid you forget to downgrade an Angular module or include it in the AngularJS application?`)}}function G(Ye,de){return Ye===de||Ye!=Ye&&de!=de}const z={__UNINITIALIZED__:!0};class K{element;attrs;scope;ngModel;parentInjector;$compile;$parse;componentFactory;wrapCallback;unsafelyOverwriteSignalInputs;implementsOnChanges=!1;inputChangeCount=0;inputChanges={};componentScope;constructor(de,Ae,pe,Ee,le,Ke,Be,q,Oe,fe){this.element=de,this.attrs=Ae,this.scope=pe,this.ngModel=Ee,this.parentInjector=le,this.$compile=Ke,this.$parse=Be,this.componentFactory=q,this.wrapCallback=Oe,this.unsafelyOverwriteSignalInputs=fe,this.componentScope=pe.$new()}compileContents(){const de=[],pe=this.groupProjectableNodes().map(Ee=>this.$compile(Ee));return this.element.empty(),pe.forEach(Ee=>{Ee(this.scope,le=>{de.push(le),this.element.append(le)})}),de}createComponentAndSetup(de,Ae=!1,pe=!0){const Ee=this.createComponent(de);return this.setupInputs(Ae,pe,Ee),this.setupOutputs(Ee.componentRef),this.registerCleanup(Ee.componentRef),Ee.componentRef}createComponent(de){const pe=d.zZn.create({providers:[{provide:C.Je,useValue:this.componentScope}],parent:this.parentInjector,name:"DowngradeComponentAdapter"}),Ee=this.componentFactory.create(pe,de,this.element[0]),le=Ee.injector.get(S.gRc),Ke=Ee.changeDetectorRef,Be=Ee.injector.get(T.NYb,null);return Be&&Ee.injector.get(T.giA).registerApplication(Ee.location.nativeElement,Be),function L(Ye,de){Ye&&function R(Ye){return"function"==typeof Ye.writeValue&&"function"==typeof Ye.registerOnChange}(de)&&(Ye.$render=()=>{de.writeValue(Ye.$viewValue)},de.registerOnChange(Ye.$setViewValue.bind(Ye)),"function"==typeof de.registerOnTouched&&de.registerOnTouched(Ye.$setTouched.bind(Ye)))}(this.ngModel,Ee.instance),{viewChangeDetector:le,componentRef:Ee,changeDetector:Ke}}setupInputs(de,Ae=!0,{componentRef:pe,changeDetector:Ee,viewChangeDetector:le}){const Ke=this.attrs,Be=this.componentFactory.inputs||[];for(const fe of Be){const We=new k(fe.propName,fe.templateName);let Ue=null;if(Ke.hasOwnProperty(We.attr)){const Ve=((at,Vt)=>{let qe=z;return Nt=>{G(qe,Nt)||(qe===z&&(qe=Nt),this.updateInput(pe,at,qe,Nt,Vt),qe=Nt)}})(We.prop,fe.isSignal);Ke.$observe(We.attr,Ve);let tt=this.componentScope.$watch(()=>{tt(),tt=null,Ve(Ke[We.attr])})}else Ke.hasOwnProperty(We.bindAttr)?Ue=Ke[We.bindAttr]:Ke.hasOwnProperty(We.bracketAttr)?Ue=Ke[We.bracketAttr]:Ke.hasOwnProperty(We.bindonAttr)?Ue=Ke[We.bindonAttr]:Ke.hasOwnProperty(We.bracketParenAttr)&&(Ue=Ke[We.bracketParenAttr]);null!=Ue&&this.componentScope.$watch(Ue,((tt,at)=>(Vt,qe)=>this.updateInput(pe,tt,qe,Vt,at))(We.prop,fe.isSignal))}const q=()=>Ee.detectChanges(),Oe=this.componentFactory.componentType.prototype;if(this.implementsOnChanges=!(!Oe||!Oe.ngOnChanges),this.componentScope.$watch(()=>this.inputChangeCount,this.wrapCallback(()=>{if(this.implementsOnChanges){const fe=this.inputChanges;this.inputChanges={},pe.instance.ngOnChanges(fe)}le.markForCheck(),Ae||q()})),Ae&&this.componentScope.$watch(this.wrapCallback(q)),de||!Ae){let fe=this.componentScope.$watch(()=>{fe(),fe=null,this.parentInjector.get(T.o8S).attachView(pe.hostView)})}}setupOutputs(de){const Ae=this.attrs,pe=this.componentFactory.outputs||[];for(const Ee of pe){const le=new k(Ee.propName,Ee.templateName),Ke=le.bindonAttr.substring(0,le.bindonAttr.length-6),Be=`[(${le.bracketParenAttr.substring(2,le.bracketParenAttr.length-8)})]`;Ae.hasOwnProperty(Ke)&&this.subscribeToOutput(de,le,Ae[Ke],!0),Ae.hasOwnProperty(Be)&&this.subscribeToOutput(de,le,Ae[Be],!0),Ae.hasOwnProperty(le.onAttr)&&this.subscribeToOutput(de,le,Ae[le.onAttr]),Ae.hasOwnProperty(le.parenAttr)&&this.subscribeToOutput(de,le,Ae[le.parenAttr])}}subscribeToOutput(de,Ae,pe,Ee=!1){const le=this.$parse(pe),Ke=le.assign;if(Ee&&!Ke)throw new Error(`Expression '${pe}' is not assignable!`);const Be=de.instance[Ae.prop];if(!Be)throw new Error(`Missing emitter '${Ae.prop}' on component '${F(this.componentFactory.componentType)}'!`);{const q=Be.subscribe(Ee?Oe=>Ke(this.scope,Oe):Oe=>le(this.scope,{$event:Oe}));de.onDestroy(()=>q.unsubscribe())}}registerCleanup(de){const Ae=de.injector.get(T.giA),pe=this.wrapCallback(()=>de.destroy());let Ee=!1;this.element.on("$destroy",()=>{Ee||this.componentScope.$destroy()}),this.componentScope.$on("$destroy",()=>{Ee||(Ee=!0,Ae.unregisterApplication(de.location.nativeElement),x(this.element[0]),pe())})}updateInput(de,Ae,pe,Ee,le){if(this.implementsOnChanges&&(this.inputChanges[Ae]=new T.FRM(pe,Ee,pe===Ee)),this.inputChangeCount++,le&&!this.unsafelyOverwriteSignalInputs){const Ke=de.instance[Ae][m.bh];Ke.applyValueToInputSignal(Ke,Ee)}else de.instance[Ae]=Ee}groupProjectableNodes(){return function ee(Ye,de){const Ae=[];for(let pe=0,Ee=Ye.length;pe<Ee;++pe)Ae[pe]=[];for(let pe=0,Ee=de.length;pe<Ee;++pe){const le=de[pe],Ke=re(le,Ye);null!=Ke&&Ae[Ke].push(le)}return Ae}(this.componentFactory.ngContentSelectors,this.element.contents())}}function re(Ye,de){const Ae=[];let pe=-1;for(let Ee=0;Ee<de.length;Ee++){const le=de[Ee];"*"===le?pe=Ee:be(Ye,le)&&Ae.push(Ee)}return Ae.sort(),-1!==pe&&Ae.push(pe),Ae.length?Ae[0]:null}function be(Ye,de){const Ae=Element.prototype;return Ye.nodeType===Node.ELEMENT_NODE&&(Ae.matches??Ae.msMatchesSelector).call(Ye,de)}class Re{value;resolved=!1;callbacks=[];static all(de){const Ae=new Re;let pe=0;const Ee=[],le=(Ke,Be)=>{Ee[Ke]=Be,++pe===de.length&&Ae.resolve(Ee)};return de.forEach((Ke,Be)=>{!function ce(Ye){return!!Ye&&Z(Ye.then)}(Ke)?le(Be,Ke):Ke.then(q=>le(Be,q))}),Ae}resolve(de){this.resolved||(this.value=de,this.resolved=!0,this.callbacks.forEach(Ae=>Ae(de)),this.callbacks.length=0)}then(de){this.resolved?de(this.value):this.callbacks.push(de)}}function Se(Ye){const de=function(Ae,pe,Ee){const le=Ye.unsafelyOverwriteSignalInputs??!1,Ke=3===U(pe),Be=Ke?fe=>()=>T.SKi.isInAngularZone()?fe():q.run(fe):fe=>fe;let q;const Oe=Ke&&X(pe)>1;return{restrict:"E",terminal:!0,require:[C.$F,C.a4],controller:function(){},link:(fe,We,Ue,Ve)=>{const tt=Ve[1],at=Ve[0];let Vt,qe=!1;if(!at||Oe){const Te=Ye.downgradedModule||"",je=`${C.A6}${Te}`,Ne=`instantiating component '${F(Ye.component)}'`;H(pe,Te,je,Ne);const lt=pe.get(je);Vt=lt.injector??lt.promise}const ue=(Te,je)=>{const lt=je.get(T.OM3).resolveComponentFactory(Ye.component);if(!lt)throw new Error(`Expecting ComponentFactory for: ${F(Ye.component)}`);const Qe=new De(We),Ct=new K(We,Ue,fe,tt,Te,Ae,Ee,lt,Be,le),yt=Ct.compileContents(),Gt=Ct.createComponentAndSetup(yt,Ke,Ye.propagateDigest);Qe.resolve(Gt.injector),qe&&fe.$evalAsync(()=>{})},me=Ke?(Te,je)=>{q||(q=Te.get(T.SKi)),Be(()=>ue(Te,je))()}:ue;Re.all([at||Vt,Vt||at]).then(([Te,je])=>me(Te,je)),qe=!0}}};return de.$inject=[C.C2,C.FJ,C.UU],de}class De extends Re{element;injectorKey=b(C.DT);constructor(de){super(),this.element=de,de.data(this.injectorKey,this)}resolve(de){this.element.data(this.injectorKey,de),this.element=null,super.resolve(de)}}function Pe(Ye,de=""){const Ae=function(pe){const Ee=`${C.DT}${de}`,Ke=`instantiating injectable '${Z(Ye)?F(Ye):String(Ye)}'`;H(pe,de,Ee,Ke);try{return pe.get(Ee).get(Ye)}catch(Be){throw new Error(`Error while ${Ke}: ${Be.message||Be}`)}};return Ae.$inject=[C.FJ],Ae}},9090:(En,it,p)=>{"use strict";p.d(it,{m:()=>m});var S=p(6104),d=p(4808);class m extends S.B{constructor(C=1/0,e=1/0,k=d.U){super(),this._bufferSize=C,this._windowTime=e,this._timestampProvider=k,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,C),this._windowTime=Math.max(1,e)}next(C){const{isStopped:e,_buffer:k,_infiniteTimeWindow:w,_timestampProvider:P,_windowTime:v}=this;e||(k.push(C),!w&&k.push(P.now()+v)),this._trimBuffer(),super.next(C)}_subscribe(C){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(C),{_infiniteTimeWindow:k,_buffer:w}=this,P=w.slice();for(let v=0;v<P.length&&!C.closed;v+=k?1:2)C.next(P[v]);return this._checkFinalizedStatuses(C),e}_trimBuffer(){const{_bufferSize:C,_timestampProvider:e,_buffer:k,_infiniteTimeWindow:w}=this,P=(w?1:2)*C;if(C<1/0&&P<k.length&&k.splice(0,k.length-P),!w){const v=e.now();let x=0;for(let b=1;b<k.length&&k[b]<=v;b+=2)x=b;x&&k.splice(0,x+1)}}}},9144:(En,it,p)=>{"use strict";function S(d,m){if(null==d)return{};var T={};for(var C in d)if({}.hasOwnProperty.call(d,C)){if(-1!==m.indexOf(C))continue;T[C]=d[C]}return T}p.d(it,{A:()=>S})},9209:(En,it,p)=>{"use strict";p.d(it,{A:()=>Ce});var S=p(3686),d=p(7007),m=p(2660),T=p(5973),C=p(9961),e=p(3090),k=p(4072),w=p(36),P=p(6054),v=p(3538),x=p(9293),b=p(2432);const F=v.A.inherit({ctor:function(ye,Me){this._eventName=ye,this._originalEvents=(0,x.b4)(Me,"dxPointerEvents"),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){const ye=this._eventName;return"dxpointerenter"===ye||"dxpointerleave"===ye},_handler:function(ye){const Me=this._getDelegateTarget(ye),_e={type:this._eventName,pointerType:ye.pointerType||(0,x.KN)(ye),originalEvent:ye,delegateTarget:Me,timeStamp:w.A.mozilla?(new Date).getTime():ye.timeStamp},ke=(0,b.w)(ye);return _e.target=ke,this._fireEvent(_e)},_getDelegateTarget:function(ye){let Me;return this.noBubble&&(Me=ye.delegateTarget),Me},_fireEvent:function(ye){return(0,x.rC)(ye)},_setSelector:function(ye){this._selector=this.noBubble&&ye?ye.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(ye,Me){if(this._handlerCount<=0||this.noBubble){ye=this.noBubble?ye:P.A.getDocument(),this._setSelector(Me);const _e=this;k.A.on(ye,this._originalEvents,this._getSelector(),function(ke){_e._handler(ke)})}this.noBubble||this._handlerCount++},remove:function(ye){this._setSelector(ye),this.noBubble||this._handlerCount--},teardown:function(ye){this._handlerCount&&!this.noBubble||(ye=this.noBubble?ye:P.A.getDocument(),".dxPointerEvents"!==this._originalEvents&&k.A.off(ye,this._originalEvents,this._getSelector()))},dispose:function(ye){ye=this.noBubble?ye:P.A.getDocument(),k.A.off(ye,this._originalEvents)}}),U=function(ye){const Me=[];return(0,m.__)(ye.touches,function(_e,ke){Me.push((0,e.X)({pointerId:ke.identifier},ke))}),{pointers:Me,pointerId:ye.changedTouches[0].identifier}},A=F.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(ye){if(function(ye){return"ios"===T.A.real().platform&&("dxpointerdown"===ye||"dxpointerup"===ye)}(this._eventName)){const Me=ye.changedTouches[0];if(this._pointerId===Me.identifier&&0!==this._pointerId)return;this._pointerId=Me.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(ye){return this.callBase((0,e.X)(U(ye.originalEvent),ye))}});A.map={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},A.normalize=U;const M=A;var H=p(2720);const J=function(ye,Me){H.A.add(function(){ye.split(" ").forEach(function(_e){P.A.listen(P.A.getDocument(),_e,Me,!0)})})},L=function(ye,Me,_e){_e=_e||function(){};let ke=[];const Ye=function(Ae){let pe=-1;return(0,m.__)(ke,function(Ee,le){return!Me(Ae,le)||(pe=Ee,!1)}),pe},de=function(Ae){const pe=Ye(Ae);pe>-1&&ke.splice(pe,1)};J(ye.dxpointerdown,function(Ae){-1===Ye(Ae)&&(_e(Ae),ke.push(Ae))}),J(ye.dxpointermove,function(Ae){ke[Ye(Ae)]=Ae}),J(ye.dxpointerup,de),J(ye.dxpointercancel,de),this.pointers=function(){return ke},this.reset=function(){ke=[]}},G={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},Q=function(ye){return ye.pointerId=1,{pointers:z.pointers(),pointerId:1}};let z,K=!1;const ee=function(){K||(z=new L(G,function(){return!0}),K=!0)},re=F.inherit({ctor:function(){this.callBase.apply(this,arguments),ee()},_fireEvent:function(ye){return this.callBase((0,e.X)(Q(ye.originalEvent),ye))}});re.map=G,re.normalize=Q,re.activate=ee,re.resetObserver=function(){z.reset()};const be=re;let Re=!1;const De=F.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),Re||(be.activate(),Re=!0)},_handler:function(ye){const Me=(0,x.Er)(ye);if(Me||(this._skipNextEvents=!0),!Me||!this._mouseLocked){if(Me&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);const _e=this;return void(this._unlockMouseTimer=setTimeout(function(){_e._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(ye)}},_fireEvent:function(ye){const Me=(0,x.Er)(ye.originalEvent)?be.normalize:M.normalize;return this.callBase((0,e.X)(Me(ye.originalEvent),ye))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});De.map={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},De.resetObserver=be.resetObserver;const Pe=De,W=((ye,Me)=>{let{tablet:_e,phone:ke}=Me;const Ye=function he(){const ye=(0,S.A)().pointerEventStrategy;return{"mouse-and-touch":Pe,touch:M,mouse:be}[ye]}();return Ye||(!ye.touch||_e||ke?ye.touch?M:be:Pe)})(d,T.A.real());(0,m.__)(W.map,(ye,Me)=>{(0,C.A)(ye,new W(ye,Me))});const Ce={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"}},9212:(En,it,p)=>{"use strict";p.d(it,{ss:()=>W,Ft:()=>de,AE:()=>Ae,gx:()=>Ye,Nt:()=>ke,ro:()=>Ke});var S=p(1363),d=p(5973),m=p(6054),T=p(5704),C=p(6021),e=p(4781),k=p(2660),w=p(2720),P=p(4017),v=p(6110);const b=(0,p(8684).A)();var B=p(127);const j=(0,v.zk)(),F=w.A.add,X=P.Uq,U=P.WV;let Z=new C.cY;const A="link[rel=dx-theme]",J="dx-hairlines",R="any";let L,G,Q,z,K,ee=15e3;const re="dx.";function be(){if(!(0,v.Vd)())return null;const Ue=(0,T.A)("<div>",L).addClass("dx-theme-marker").appendTo(L.documentElement);let Ve;try{return Ve=j.getComputedStyle(Ue.get(0)).fontFamily,Ve&&(Ve=Ve.replace(/["']/g,""),Ve.substr(0,re.length)===re)?Ve.substr(re.length):null}finally{Ue.remove()}}function ce(Ue){let Ve,tt,at=!0;function Vt(){K=null,clearInterval(tt),at=!0,b.fire(),b.empty(),Z.resolve()}if(K=Ue,Re()||!ee)Vt();else{if(!at)return void(K&&(K=Ue));Ve=Date.now(),at=!1,tt=setInterval(function(){const qe=Re(),Nt=!qe&&Date.now()-Ve>ee;Nt&&B.A.log("W0004",K),(qe||Nt)&&Vt()},10)}}function Re(){if(!K)return!0;const Ue=K===R;if("resolved"===Z.state()&&Ue)return!0;const Ve=be();return!(!Ve||!Ue)||Ve===K}function Ie(Ue){(function Pe(Ue){try{Ue!==L&&(Q=null)}catch{Q=null}L=Ue})((Ue=Ue||{}).context||m.A.getDocument()),L&&(function Se(){const Ue=(0,T.A)(A,L);Ue.length&&(Q={},G=(0,T.A)((0,e.B)("<link rel=stylesheet>"),L),Ue.each(function(){const Ve=(0,T.A)(this,L),tt=Ve.attr("data-theme"),at=Ve.attr("href"),Vt="true"===Ve.attr("data-active");Q[tt]={url:at,isActive:Vt}}),Ue.last().after(G),Ue.remove())}(),z=void 0,W(Ue))}function W(Ue){if(!arguments.length)return z=z||be(),z;ye(X()),"string"==typeof(Ue=Ue||{})&&(Ue={theme:Ue});const Ve=Ue._autoInit,tt=Ue.loadCallback;let at;if(z=function De(Ue){const Ve=Ue?Ue.split("."):[];let tt=null;if(Q){if(Ue in Q)return Ue;(0,k.__)(Q,function(at,Vt){const qe=at.split(".");if((!Ve[0]||qe[0]===Ve[0])&&(!Ve[1]||Ve[1]===qe[1])&&(!Ve[2]||Ve[2]===qe[2])&&((!tt||Vt.isActive)&&(tt=at),Vt.isActive))return!1})}return tt}(Ue.theme||z),z&&(at=Q[z]),tt&&b.add(tt),at)G.attr("href",Q[z].url),(b.has()||"resolved"!==Z.state()||Ue._forceTimeout)&&ce(z);else{if(!Ve)throw B.A.Error("E0021",z);(0,v.Vd)()&&ce(R),b.fire(),b.empty()}Z.done(()=>Ce((0,P.s$)(),z))}let he;function Ce(Ue,Ve){he=function ie(Ue){const Ve=[],tt=(Ue=Ue||W())&&Ue.split(".");return tt&&(Ve.push("dx-theme-"+tt[0],"dx-theme-"+tt[0]+"-typography"),tt.length>1&&Ve.push("dx-color-scheme-"+tt[1]+(ke(Ue)?"-"+tt[2]:""))),Ve}(Ve).join(" "),(0,T.A)(Ue).addClass(he),function(){const tt=(0,v.Vd)()&&j.devicePixelRatio;if(!tt||tt<2)return;const at=(0,T.A)("<div>");at.css("border",".5px solid transparent"),(0,T.A)("body").append(at),1===(0,S.P$)(at)&&((0,T.A)(Ue).addClass(J),he+=" "+J),at.remove()}()}function ye(Ue){(0,T.A)(Ue).removeClass(he)}function _e(Ue,Ve){return Ve||(Ve=z||be()),new RegExp(Ue).test(Ve)}function ke(Ue){return Ye(Ue)||de(Ue)}function Ye(Ue){return _e("material",Ue)}function de(Ue){return _e("fluent",Ue)}function Ae(Ue){return _e("generic",Ue)}function Ke(Ue,Ve){return new Promise(tt=>{const at=()=>{clearInterval(Vt),clearTimeout(qe),tt()},Vt=setInterval(()=>{(function le(Ue,Ve){const tt=m.A.getDocument(),at=tt.createElement("span");at.style.position="absolute",at.style.top="-9999px",at.style.left="-9999px",at.style.visibility="hidden",at.style.fontFamily="Arial",at.style.fontSize="250px",at.style.fontWeight=Ve,at.innerHTML=Ue,tt.body.appendChild(at);const Vt=at.offsetWidth;at.style.fontFamily="Roboto, RobotoFallback, Arial";const qe=at.offsetWidth;return at.parentNode.removeChild(at),Vt!==qe})(Ue,Ve)&&at()},15),qe=setTimeout(at,2e3)})}function Be(){if(Ie({_autoInit:!0,_forceTimeout:!0}),(0,T.A)(A,L).length)throw B.A.Error("E0022")}(0,v.Vd)()?Be():F(Be),U.add(function(Ue,Ve){Z.done(function(){ye(Ve),Ce(Ue)})}),d.A.changed.add(function(){Ie({_autoInit:!0})})},9229:(En,it,p)=>{"use strict";p.d(it,{EH:()=>C,I9:()=>T,ho:()=>e});var S=p(5704),d=p(4072);const m=function(k){return function(w){const P=(0,S.A)(w||"body"),v=P.filter(".dx-visibility-change-handler").add(P.find(".dx-visibility-change-handler"));for(let x=0;x<v.length;x++)d.A.triggerHandler(v[x],k)}},T=m("dxshown"),C=m("dxhiding"),e=m("dxresize")},9274:(En,it,p)=>{"use strict";p.d(it,{o:()=>d,r:()=>S});const S="24.1.4",d="24.1.4"},9293:(En,it,p)=>{"use strict";p.d(it,{b4:()=>Pe,lh:()=>ce,rw:()=>L,nm:()=>G,KN:()=>U,rC:()=>Re,Pg:()=>De,Ic:()=>Q,By:()=>Ie,X1:()=>M,Er:()=>A,kH:()=>H,eT:()=>re,YD:()=>Se});var S=p(5704),d=p(7251);const m=(W,ie)=>{if(!ie)throw d.A.Error("E0017");return Array.isArray(W)?W.map(he=>m(he,ie)).join(" "):-1!==W.indexOf(" ")?m(W.split(/\s+/g),ie):`${W}.${ie}`},T=m;var C=p(4072),e=p(2660),k=p(3090),w=p(402);const P={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift"},v={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},x={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i};const j=W=>"dx"===U(W),X=W=>"touch"===U(W),U=W=>{let{type:ie}=W,he="other";return(0,e.__)(x,function(Ce){if(this.test(ie))return he=Ce,!1}),he},Z=W=>"pointer"===U(W),A=W=>(W=>"mouse"===U(W))(W)||(Z(W)||j(W))&&"mouse"===W.pointerType,M=W=>W&&"dxmousewheel"===W.type,H=W=>X(W)||(Z(W)||j(W))&&"touch"===W.pointerType,L=W=>{let{pageX:ie,pageY:he,timeStamp:Ce}=W;return{x:ie,y:he,time:Ce}},G=(W,ie)=>({x:ie.x-W.x,y:ie.y-W.y,time:ie.time-W.time||1}),Q=W=>{const{originalEvent:ie,pointers:he}=W;return X(W)?(ie.touches||[]).length:j(W)?(he||[]).length:0};const re=W=>{const{target:ie}=W,he=(0,S.A)(ie),Ce=ie?.isContentEditable||ie?.hasAttribute("contenteditable"),ye=he.is("input, textarea, select")||Ce;return M(W)?!(he.is("textarea")&&he.hasClass("dx-texteditor-input")||Ce)&&he.is("input[type='number'], textarea, select")&&he.is(":focus"):A(W)?ye||W.which>1:H(W)?ye&&(0,w.in)(he):void 0},ce=(W,ie)=>{const he=(W=>C.A.Event(W,W))(W);return ie&&(0,k.X)(he,ie),he},Re=W=>{const{originalEvent:ie,delegateTarget:he}=W,Ce=ce(ie,W);return C.A.trigger(he||Ce.target,Ce),Ce},Se=W=>{let{key:ie,which:he}=W;const Ce=P[ie?.toLowerCase()]||ie,ye=v[he];return ye&&Ce===ie?ye:!Ce&&he?String.fromCharCode(he):Ce},De=W=>{let{key:ie,which:he}=W;return ie||String.fromCharCode(he)},Pe=T,Ie=W=>{let{ctrlKey:ie,metaKey:he}=W;return ie||he}},9406:(En,it,p)=>{"use strict";p.d(it,{c:()=>w});var S=p(4500),d=p(2029),m=p(1479),T=p(6106),C=p(2493),e=p(4418),k=p(2895);let w=(()=>{class b{constructor(j){j&&(this._subscribe=j)}lift(j){const F=new b;return F.source=this,F.operator=j,F}subscribe(j,F,X){const U=function x(b){return b&&b instanceof S.vU||function v(b){return b&&(0,e.T)(b.next)&&(0,e.T)(b.error)&&(0,e.T)(b.complete)}(b)&&(0,d.Uv)(b)}(j)?j:new S.Ms(j,F,X);return(0,k.Y)(()=>{const{operator:Z,source:A}=this;U.add(Z?Z.call(U,A):A?this._subscribe(U):this._trySubscribe(U))}),U}_trySubscribe(j){try{return this._subscribe(j)}catch(F){j.error(F)}}forEach(j,F){return new(F=P(F))((X,U)=>{const Z=new S.Ms({next:A=>{try{j(A)}catch(M){U(M),Z.unsubscribe()}},error:U,complete:X});this.subscribe(Z)})}_subscribe(j){var F;return null===(F=this.source)||void 0===F?void 0:F.subscribe(j)}[m.s](){return this}pipe(...j){return(0,T.m)(j)(this)}toPromise(j){return new(j=P(j))((F,X)=>{let U;this.subscribe(Z=>U=Z,Z=>X(Z),()=>F(U))})}}return b.create=B=>new b(B),b})();function P(b){var B;return null!==(B=b??C.$.Promise)&&void 0!==B?B:Promise}},9430:(En,it,p)=>{"use strict";p.d(it,{A:()=>le});var S=p(2123),d=p(851),m=p(1973),T=p(5973),C=p(2925),e=p(5704),k=p(3090),w=p(1363),P=p(778),v=p(4072),x=p(9293),b=p(8360),B=p(3312),j=p(6620),F=p(9810),X=p(8910);const A="dx-colorview-container-row",L="dx-colorview-palette-gradient",G="dx-colorview-palette-gradient-white",Q="dx-colorview-palette-gradient-black",Me="dx-colorview-color-preview",Ye="dx-colorview-color-preview-color-current",de="dx-colorview-color-preview-color-new",Ee=j.A.inherit({_supportedKeys(){const Ke=this.option("rtlEnabled"),Be=this,q=function(qe){let Nt=100/Be._paletteWidth;return qe.shiftKey&&(Nt*=Be.option("keyStep")),Nt=Nt>1?Nt:1,Math.round(Nt)},Oe=function(qe){let Nt=Be._currentColor.hsv.s+qe;Nt>100?Nt=100:Nt<0&&(Nt=0),Be._currentColor.hsv.s=Nt,Ue()},fe=function(qe){let Nt=100/Be._paletteHeight;return qe.shiftKey&&(Nt*=Be.option("keyStep")),Nt=Nt>1?Nt:1,Math.round(Nt)},We=function(qe){let Nt=Be._currentColor.hsv.v+qe;Nt>100?Nt=100:Nt<0&&(Nt=0),Be._currentColor.hsv.v=Nt,Ue()};function Ue(){Be._placePaletteHandle(),Be._updateColorFromHsv(Be._currentColor.hsv.h,Be._currentColor.hsv.s,Be._currentColor.hsv.v)}const Ve=function(qe){let Nt=360/(Be._hueScaleWrapperHeight-Be._hueScaleHandleHeight);return qe.shiftKey&&(Nt*=Be.option("keyStep")),Nt=Nt>1?Nt:1,Nt},tt=function(qe){Be._currentColor.hsv.h+=qe,Be._placeHueScaleHandle();const Nt=(0,S.x5)(Be._$hueScaleHandle);Be._updateColorHue(Nt.top+Be._hueScaleHandleHeight/2)},at=function(qe){let Nt=1/Be._alphaChannelScaleWorkWidth;return qe.shiftKey&&(Nt*=Be.option("keyStep")),Nt=Nt>.01?Nt:.01,Nt=Ke?-Nt:Nt,Nt},Vt=function(qe){Be._currentColor.a+=qe,Be._placeAlphaChannelHandle();const Nt=(0,S.x5)(Be._$alphaChannelHandle);Be._calculateColorTransparencyByScaleWidth(Nt.left+Be._alphaChannelHandleWidth/2)};return(0,k.X)(this.callBase(),{upArrow(qe){qe.preventDefault(),qe.stopPropagation(),(0,x.By)(qe)?this._currentColor.hsv.h<=360&&!this._isTopColorHue&&(this._saveValueChangeEvent(qe),tt(Ve(qe))):this._currentColor.hsv.v<100&&(this._saveValueChangeEvent(qe),We(fe(qe)))},downArrow(qe){qe.preventDefault(),qe.stopPropagation(),(0,x.By)(qe)?this._currentColor.hsv.h>=0&&(this._isTopColorHue&&(this._currentColor.hsv.h=360),this._saveValueChangeEvent(qe),tt(-Ve(qe))):this._currentColor.hsv.v>0&&(this._saveValueChangeEvent(qe),We(-fe(qe)))},rightArrow(qe){qe.preventDefault(),qe.stopPropagation(),(0,x.By)(qe)?(Ke?this._currentColor.a<1:this._currentColor.a>0&&this.option("editAlphaChannel"))&&(this._saveValueChangeEvent(qe),Vt(-at(qe))):this._currentColor.hsv.s<100&&(this._saveValueChangeEvent(qe),Oe(q(qe)))},leftArrow(qe){qe.preventDefault(),qe.stopPropagation(),(0,x.By)(qe)?(Ke?this._currentColor.a>0:this._currentColor.a<1&&this.option("editAlphaChannel"))&&(this._saveValueChangeEvent(qe),Vt(at(qe))):this._currentColor.hsv.s>0&&(this._saveValueChangeEvent(qe),Oe(-q(qe)))},enter(qe){this._fireEnterKeyPressed(qe)}})},_getDefaultOptions(){return(0,k.X)(this.callBase(),{value:null,matchValue:null,onEnterKeyPressed:void 0,editAlphaChannel:!1,keyStep:1,stylingMode:void 0})},_defaultOptionsRules(){return this.callBase().concat([{device:()=>"desktop"===T.A.real().deviceType&&!T.A.isSimulator(),options:{focusStateEnabled:!0}}])},_init(){this.callBase(),this._initColorAndOpacity(),this._initEnterKeyPressedAction()},_initEnterKeyPressedAction(){this._onEnterKeyPressedAction=this._createActionByOption("onEnterKeyPressed")},_fireEnterKeyPressed(Ke){this._onEnterKeyPressedAction&&this._onEnterKeyPressedAction({event:Ke})},_initColorAndOpacity(){this._setCurrentColor(this.option("value"))},_setCurrentColor(Ke){const Be=new d.A(Ke=Ke||"#000000");Be.colorIsInvalid?(this._currentColor||(this._currentColor=new d.A("#000000")),this.option("value",this._currentColor.baseColor)):(!this._currentColor||this._makeRgba(this._currentColor)!==this._makeRgba(Be))&&(this._currentColor=Be,this._$currentColor&&this._makeTransparentBackground(this._$currentColor,Be))},_setBaseColor(Ke){const q=new d.A(Ke||"#000000");q.colorIsInvalid||this._makeRgba(this.option("matchValue")!==this._makeRgba(q))&&this._$baseColor&&this._makeTransparentBackground(this._$baseColor,q)},_initMarkup(){this.callBase(),this.$element().addClass("dx-colorview"),this._renderColorPickerContainer()},_render(){this.callBase(),this._renderPalette(),this._renderHueScale(),this._renderControlsContainer(),this._renderControls(),this._renderAlphaChannelElements()},_makeTransparentBackground(Ke,Be){Be instanceof d.A||(Be=new d.A(Be)),Ke.css("backgroundColor",this._makeRgba(Be))},_makeRgba:Ke=>(Ke instanceof d.A||(Ke=new d.A(Ke)),`rgba(${[Ke.r,Ke.g,Ke.b,Ke.a].join(", ")})`),_renderValue(){this.callBase(this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this.option("value"))},_renderColorPickerContainer(){const Ke=this.$element();this._$colorPickerContainer=(0,e.A)("<div>").addClass("dx-colorview-container").appendTo(Ke),this._renderHtmlRows()},_renderHtmlRows(Ke){const Be=this._$colorPickerContainer.find(`.${A}`),q=Be.length;let fe=q-(this.option("editAlphaChannel")?2:1);if(fe>0&&Be.eq(-1).remove(),fe<0){fe=Math.abs(fe);const We=[];let Ue;for(Ue=0;Ue<fe;Ue++)We.push((0,e.A)("<div>").addClass(A));if(q)for(Ue=0;Ue<We.length;Ue++)Be.eq(0).after(We[Ue]);else this._$colorPickerContainer.append(We)}},_renderHtmlCellInsideRow:(Ke,Be,q)=>(0,e.A)("<div>").addClass("dx-colorview-container-cell").addClass(q).appendTo(Be.find(`.${A}`).eq(Ke)),_renderPalette(){const Ke=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-palette-cell"),Be=(0,e.A)("<div>").addClass([L,G].join(" ")),q=(0,e.A)("<div>").addClass([L,Q].join(" "));this._$palette=(0,e.A)("<div>").addClass("dx-colorview-palette").css("backgroundColor",this._currentColor.getPureColor().toHex()).appendTo(Ke),this._paletteHeight=(0,w.Oq)(this._$palette),this._paletteWidth=(0,w.RG)(this._$palette),this._renderPaletteHandle(),this._$palette.append([Be,q])},_renderPaletteHandle(){this._$paletteHandle=(0,e.A)("<div>").addClass("dx-colorview-palette-handle").appendTo(this._$palette);const Ke=`dx-${new C.A}`;this.setAria({id:Ke,role:"application"},this._$paletteHandle),this.setAria("activedescendant",Ke,this.option("target")),this._createComponent(this._$paletteHandle,B.A,{contentTemplate:null,boundary:this._$palette,allowMoveByClick:!0,boundOffset:function(){return-this._paletteHandleHeight/2}.bind(this),onDragMove:q=>{let{event:Oe}=q;const fe=(0,S.x5)(this._$paletteHandle);this._updateByDrag=!0,this._saveValueChangeEvent(Oe),this._updateColorFromHsv(this._currentColor.hsv.h,this._calculateColorSaturation(fe),this._calculateColorValue(fe))}}),this._paletteHandleWidth=(0,w.RG)(this._$paletteHandle),this._paletteHandleHeight=(0,w.Oq)(this._$paletteHandle),this._placePaletteHandle()},_placePaletteHandle(){(0,S.Cy)(this._$paletteHandle,{left:Math.round(this._paletteWidth*this._currentColor.hsv.s/100-this._paletteHandleWidth/2),top:Math.round(this._paletteHeight-this._paletteHeight*this._currentColor.hsv.v/100-this._paletteHandleHeight/2)})},_calculateColorValue(Ke){const Be=Math.floor(Ke.top+this._paletteHandleHeight/2);return 100-Math.round(100*Be/this._paletteHeight)},_calculateColorSaturation(Ke){const Be=Math.floor(Ke.left+this._paletteHandleWidth/2);return Math.round(100*Be/this._paletteWidth)},_updateColorFromHsv(Ke,Be,q){const{a:Oe}=this._currentColor;this._currentColor=new d.A(`hsv(${[Ke,Be,q].join(",")})`),this._currentColor.a=Oe,this._updateColorParamsAndColorPreview(),this.applyColor()},_renderHueScale(){const Ke=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-hue-scale-cell");this._$hueScaleWrapper=(0,e.A)("<div>").addClass("dx-colorview-hue-scale-wrapper").appendTo(Ke),this._$hueScale=(0,e.A)("<div>").addClass("dx-colorview-hue-scale").appendTo(this._$hueScaleWrapper),this._hueScaleHeight=(0,w.Oq)(this._$hueScale),this._hueScaleWrapperHeight=(0,w.P$)(this._$hueScaleWrapper),this._renderHueScaleHandle()},_renderHueScaleHandle(){this._$hueScaleHandle=(0,e.A)("<div>").addClass("dx-colorview-hue-scale-handle").appendTo(this._$hueScaleWrapper),this._createComponent(this._$hueScaleHandle,B.A,{contentTemplate:null,boundary:this._$hueScaleWrapper,allowMoveByClick:!0,dragDirection:"vertical",onDragMove:Ke=>{let{event:Be}=Ke;this._updateByDrag=!0,this._saveValueChangeEvent(Be),this._updateColorHue((0,S.x5)(this._$hueScaleHandle).top+this._hueScaleHandleHeight/2)}}),this._hueScaleHandleHeight=(0,w.Oq)(this._$hueScaleHandle),this._placeHueScaleHandle()},_placeHueScaleHandle(){const Ke=this._hueScaleWrapperHeight,Be=this._hueScaleHandleHeight;let q=(Ke-Be)*(360-this._currentColor.hsv.h)/360;Ke<q+Be&&(q=Ke-Be),q<0&&(q=0),(0,S.Cy)(this._$hueScaleHandle,{top:Math.round(q)})},_updateColorHue(Ke){let Be=360-Math.round(360*(Ke-this._hueScaleHandleHeight/2)/(this._hueScaleWrapperHeight-this._hueScaleHandleHeight));const q=this._currentColor.hsv.s,Oe=this._currentColor.hsv.v;this._isTopColorHue=!1,Be=Be<0?0:Be,Be>=360&&(this._isTopColorHue=!0,Be=0),this._updateColorFromHsv(Be,q,Oe),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex())},_renderControlsContainer(){const Ke=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer);this._$controlsContainer=(0,e.A)("<div>").addClass("dx-colorview-controls-container").appendTo(Ke)},_renderControls(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview(){const Ke=(0,e.A)("<div>").addClass("dx-colorview-color-preview-container").appendTo(this._$controlsContainer),Be=(0,e.A)("<div>").addClass("dx-colorview-color-preview-container-inner").appendTo(Ke);this._$currentColor=(0,e.A)("<div>").addClass([Me,de].join(" ")),this._$baseColor=(0,e.A)("<div>").addClass([Me,Ye].join(" ")),this._makeTransparentBackground(this._$baseColor,this.option("matchValue")),this._makeTransparentBackground(this._$currentColor,this._currentColor),Be.append([this._$baseColor,this._$currentColor])},_renderAlphaChannelElements(){this.option("editAlphaChannel")&&(this._$colorPickerContainer.find(`.${A}`).eq(1).addClass("dx-colorview-alpha-channel-row"),this._renderAlphaChannelScale(),this._renderAlphaChannelInput())},_renderRgbInputs(){this._rgbInputsWithLabels=[this._renderEditorWithLabel({editorType:F.A,value:this._currentColor.r,onValueChanged:this._updateColor.bind(this,!1),labelText:"R",labelAriaText:b.A.format("dxColorView-ariaRed"),labelClass:"dx-colorview-label-red"}),this._renderEditorWithLabel({editorType:F.A,value:this._currentColor.g,onValueChanged:this._updateColor.bind(this,!1),labelText:"G",labelAriaText:b.A.format("dxColorView-ariaGreen"),labelClass:"dx-colorview-label-green"}),this._renderEditorWithLabel({editorType:F.A,value:this._currentColor.b,onValueChanged:this._updateColor.bind(this,!1),labelText:"B",labelAriaText:b.A.format("dxColorView-ariaBlue"),labelClass:"dx-colorview-label-blue"})],this._$controlsContainer.append(this._rgbInputsWithLabels),this._rgbInputs=[this._rgbInputsWithLabels[0].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[1].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[2].find(".dx-numberbox").dxNumberBox("instance")]},_renderEditorWithLabel(Ke){const Be=(0,e.A)("<div>"),q=(0,e.A)("<label>").addClass(Ke.labelClass).text(`${Ke.labelText}:`).append(Be);v.A.off(q,P.U),v.A.on(q,P.U,Ue=>{Ue.preventDefault()});const{editorType:Oe}=Ke,fe=(0,k.X)({value:Ke.value,onValueChanged:Ke.onValueChanged,onKeyboardHandled:Ue=>this._keyboardHandler(Ue)},{stylingMode:this.option("stylingMode")});return Oe===F.A&&(fe.min=Ke.min||0,fe.max=Ke.max||255,fe.step=Ke.step||1),new Oe(Be,fe).registerKeyHandler("enter",Ue=>{this._fireEnterKeyPressed(Ue)}),this.setAria("label",Ke.labelAriaText,Be),q},hexInputOptions(){return{editorType:X.A,value:this._currentColor.toHex().replace("#",""),onValueChanged:this._updateColor.bind(this,!0),labelClass:"dx-colorview-label-hex",labelText:"#",labelAriaText:b.A.format("dxColorView-ariaHex")}},_renderHexInput(){this._hexInput=X.A.getInstance(this._renderEditorWithLabel(this.hexInputOptions()).appendTo(this._$controlsContainer).find(".dx-textbox"));const Ke=`dx-${new C.A}`,Be=this._$controlsContainer.find(".dx-colorview-label-hex").find(".dx-texteditor-input");this.setAria("id",Ke,Be),this.setAria("labelledby",Ke,this._$paletteHandle)},_renderAlphaChannelScale(){const Ke=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer,"dx-colorview-alpha-channel-cell"),Be=(0,e.A)("<div>").addClass("dx-colorview-alpha-channel-border").appendTo(Ke),q=(0,e.A)("<div>").addClass("dx-colorview-alpha-channel-wrapper").appendTo(Be);this._$alphaChannelScale=(0,e.A)("<div>").addClass("dx-colorview-alpha-channel-scale").appendTo(q),this._makeCSSLinearGradient(this._$alphaChannelScale),this._renderAlphaChannelHandle(Ke)},_makeCSSLinearGradient(Ke){const Be=this._currentColor,q=`${Be.r},${Be.g},${Be.b}`,Oe=this.option("rtlEnabled");Ke.css("backgroundImage",`linear-gradient(-90deg, rgba(${q}, ${Oe?"1":"0"}), rgba(${q}, ${Oe?"0":"1"}))`)},_renderAlphaChannelInput(){const Ke=this,Be=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer);Ke._alphaChannelInput=this._renderEditorWithLabel({editorType:F.A,value:this._currentColor.a,max:1,step:.1,onValueChanged(q){let{value:Oe}=q;Oe=Ke._currentColor.isValidAlpha(Oe)?Oe:Ke._currentColor.a,q.event&&Ke._saveValueChangeEvent(q.event),Ke._updateColorTransparency(Oe),Ke._placeAlphaChannelHandle()},labelClass:"dx-colorview-alpha-channel-label",labelText:"Alpha",labelAriaText:b.A.format("dxColorView-ariaAlpha")}).appendTo(Be).find(".dx-numberbox").dxNumberBox("instance")},_updateColorTransparency(Ke){this._currentColor.a=Ke,this.applyColor()},_renderAlphaChannelHandle(Ke){this._$alphaChannelHandle=(0,e.A)("<div>").addClass("dx-colorview-alpha-channel-handle").appendTo(Ke),this._createComponent(this._$alphaChannelHandle,B.A,{contentTemplate:null,boundary:Ke,allowMoveByClick:!0,dragDirection:"horizontal",onDragMove:Be=>{let{event:q}=Be;this._updateByDrag=!0;const fe=(0,S.x5)(this._$alphaChannelHandle).left+this._alphaChannelHandleWidth/2;this._saveValueChangeEvent(q),this._calculateColorTransparencyByScaleWidth(fe)}}),this._alphaChannelHandleWidth=(0,w.RG)(this._$alphaChannelHandle),this._alphaChannelScaleWorkWidth=(0,w.RG)(Ke)-this._alphaChannelHandleWidth,this._placeAlphaChannelHandle()},_calculateColorTransparencyByScaleWidth(Ke){let Be=(Ke-this._alphaChannelHandleWidth/2)/this._alphaChannelScaleWorkWidth;const q=this.option("rtlEnabled");Be=q?Be:1-Be,Ke>=this._alphaChannelScaleWorkWidth+this._alphaChannelHandleWidth/2?Be=q?1:0:Be<1&&(Be=Be.toFixed(2));const Oe=this._alphaChannelInput.option("value");Be=Math.max(Be,0),Be=Math.min(Be,1),Be===Oe?this._updateByDrag=!1:this._alphaChannelInput.option("value",Be)},_placeAlphaChannelHandle(){let Ke=this._alphaChannelScaleWorkWidth*(1-this._currentColor.a);Ke<0&&(Ke=0),this._alphaChannelScaleWorkWidth<Ke&&(Ke=this._alphaChannelScaleWorkWidth),(0,S.Cy)(this._$alphaChannelHandle,{left:this.option("rtlEnabled")?this._alphaChannelScaleWorkWidth-Ke:Ke})},applyColor(){const Ke=this.option("value"),Be=this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this._currentColor.toHex();this._makeTransparentBackground(this._$currentColor,this._currentColor),Be===Ke?this._updateByDrag=!1:this.option("value",Be)},cancelColor(){this._initColorAndOpacity(),this._refreshMarkup()},_updateColor(Ke,Be){let q,Oe;Ke?Oe=this._validateHex(`#${this._hexInput.option("value")}`):(q=this._validateRgb(),this._alphaChannelInput?(q.push(this._alphaChannelInput.option("value")),Oe=`rgba(${q.join(", ")})`):Oe=`rgb(${q.join(", ")})`),this._suppressEditorsValueUpdating||(this._currentColor=new d.A(Oe),this._saveValueChangeEvent(Be.event),this.applyColor(),this._refreshMarkup())},_validateHex(Ke){return this._currentColor.isValidHex(Ke)?Ke:this._currentColor.toHex()},_validateRgb(){let Ke=this._rgbInputs[0].option("value"),Be=this._rgbInputs[1].option("value"),q=this._rgbInputs[2].option("value");return this._currentColor.isValidRGB(Ke,Be,q)||(Ke=this._currentColor.r,Be=this._currentColor.g,q=this._currentColor.b),[Ke,Be,q]},_refreshMarkup(){this._placeHueScaleHandle(),this._placePaletteHandle(),this._updateColorParamsAndColorPreview(),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex()),this._$alphaChannelHandle&&(this._updateColorTransparency(this._currentColor.a),this._placeAlphaChannelHandle())},_updateColorParamsAndColorPreview(){this._suppressEditorsValueUpdating=!0,this._hexInput.option("value",this._currentColor.toHex().replace("#","")),this._rgbInputs[0].option("value",this._currentColor.r),this._rgbInputs[1].option("value",this._currentColor.g),this._rgbInputs[2].option("value",this._currentColor.b),this._suppressEditorsValueUpdating=!1,this.option("editAlphaChannel")&&(this._makeCSSLinearGradient.call(this,this._$alphaChannelScale),this._alphaChannelInput.option("value",this._currentColor.a))},_optionChanged(Ke){const{value:Be}=Ke;switch(Ke.name){case"value":this._setCurrentColor(Be),this._updateByDrag||this._refreshMarkup(),this._updateByDrag=!1,this.callBase(Ke);break;case"matchValue":this._setBaseColor(Be);break;case"onEnterKeyPressed":this._initEnterKeyPressedAction();break;case"editAlphaChannel":this._$colorPickerContainer&&(this._renderHtmlRows("editAlphaChannel"),this._renderAlphaChannelElements());break;case"keyStep":break;case"stylingMode":this._renderControls();break;default:this.callBase(Ke)}}});(0,m.A)("dxColorView",Ee);const le=Ee},9446:(En,it,p)=>{"use strict";p.d(it,{n:()=>e});var S=p(5328);function d(k){return null==k}function T(k){return void 0===k}var C={onComponentDidMount:1,onComponentDidUpdate:1,onComponentShouldUpdate:1,onComponentWillMount:1,onComponentWillUnmount:1,onComponentWillUpdate:1};function e(k,w,P){var x,X,v=arguments,b=null,B=null,j=null,F=0,U=arguments.length-2;if(1===U)x=P;else if(U>1)for(x=[];U-- >0;)x[U]=v[U+2];if(!function m(k){return"string"==typeof k}(k)){if(F=2,T(x)||(w||(w={}),w.children=x),!d(w))for(var A in X={},w)"key"===A?B=w.key:"ref"===A?b=w.ref:1===C[A]?(b||(b={}),b[A]=w[A]):X[A]=w[A];return(0,S.sO)(F,k,X,B,b)}if(F=(0,S.$_)(k),!d(w))for(var Z in X={},w)"className"===Z||"class"===Z?j=w[Z]:"key"===Z?B=w.key:"children"===Z&&T(x)?x=w.children:"ref"===Z?b=w.ref:("contenteditable"===Z&&(F|=4096),X[Z]=w[Z]);return 8192&F?(0,S.nl)(1===U?[x]:x,0,B):(0,S.bF)(F,k,j,x,0,X,B,b)}},9461:(En,it,p)=>{"use strict";p.d(it,{A:()=>d});var S=p(3090);const d={_formatNumberCore:function(m,T,C){if("currency"===T){C.precision=C.precision||0;let e=this.format(m,(0,S.X)({},C,{type:"fixedpoint"}));const k=this.getCurrencySymbol().symbol.replace(/\$/g,"$$$$");return e=e.replace(/^(\D*)(\d.*)/,"$1"+k+"$2"),e}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}}},9495:(En,it,p)=>{"use strict";p.d(it,{GP:()=>C,Im:()=>e,o4:()=>d,oN:()=>T});var S=p(1830);const d=function(){const k=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(w){return String(w).replace(k[0],"&amp;").replace(k[1],"&quot;").replace(k[2],"&#39;").replace(k[3],"&lt;").replace(k[4],"&gt;")}}(),T=function(k){const w=function(k){switch(typeof k){case"string":return k.split(/\s+/,4);case"object":return[k.x||k.h||k.left,k.y||k.v||k.top,k.x||k.h||k.right,k.y||k.v||k.bottom];case"number":return[k];default:return k}}(k);let P=parseInt(w&&w[0],10),v=parseInt(w&&w[1],10),x=parseInt(w&&w[2],10),b=parseInt(w&&w[3],10);return isFinite(P)||(P=0),isFinite(v)||(v=P),isFinite(x)||(x=P),isFinite(b)||(b=v),{top:v,right:x,bottom:b,left:P}};function C(k){for(var w=arguments.length,P=new Array(w>1?w-1:0),v=1;v<w;v++)P[v-1]=arguments[v];return(0,S.Tn)(k)?k(...P):(P.forEach((x,b)=>{(0,S.Kg)(x)&&(x=x.replace(/\$/g,"$$$$"));const B=new RegExp("\\{"+b+"\\}","gm");k=k.replace(B,x)}),k)}const e=function(){const k=/\s/g;return function(w){return!w||!w.replace(k,"")}}()},9510:(En,it,p)=>{"use strict";p.d(it,{A:()=>C});var S=p(5704),d=p(6110),m=p(1830),T=p(2660);let C=(()=>{class k{constructor(P,v){v=v||{},this._action=P,this._context=v.context||(0,d.zk)(),this._beforeExecute=v.beforeExecute,this._afterExecute=v.afterExecute,this._component=v.component,this._validatingTargetName=v.validatingTargetName;const x=this._excludeValidators={};if(v.excludeValidators)for(let b=0;b<v.excludeValidators.length;b++)x[v.excludeValidators[b]]=!0}execute(){const P={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},v=this._beforeExecute,x=this._afterExecute,b=P.args[0]||{};if(!this._validateAction(P)||(v?.call(this._context,P),P.cancel))return;const B=this._executeAction(P);return b.cancel?void 0:(x?.call(this._context,P),B)}_validateAction(P){const v=this._excludeValidators,{executors:x}=k;for(const B in x)if(!v[B]){var b;const j=x[B];if(null===(b=j.validate)||void 0===b||b.call(j,P),P.cancel)return!1}return!0}_executeAction(P){let v;const{executors:x}=k;for(const B in x){var b;const j=x[B];if(null===(b=j.execute)||void 0===b||b.call(j,P),P.handled){v=P.result;break}}return v}static registerExecutor(P,v){(0,m.Qd)(P)?(0,T.__)(P,k.registerExecutor):k.executors[P]=v}static unregisterExecutor(){for(var P=arguments.length,v=new Array(P),x=0;x<P;x++)v[x]=arguments[x];(0,T.__)(v,function(){delete k.executors[this]})}}return k.executors={},k})();const e=k=>w=>{if(!w.args.length)return;const P=w.args[0],v=P[w.validatingTargetName]||P.element;v&&k((0,S.A)(v))&&(w.cancel=!0)};C.registerExecutor({disabled:{validate:e(k=>k.is(".dx-state-disabled, .dx-state-disabled *"))},readOnly:{validate:e(k=>k.is(".dx-state-readonly, .dx-state-readonly *:not(.dx-state-independent)"))},undefined:{execute:k=>{k.action||(k.result=void 0,k.handled=!0)}},func:{execute:k=>{(0,m.Tn)(k.action)&&(k.result=k.action.call(k.context,k.args[0]),k.handled=!0)}}})},9516:(En,it,p)=>{"use strict";p.d(it,{Y:()=>S});var S=function(d){return d[d.Web=0]="Web",d[d.Android=1]="Android",d[d.iOS=2]="iOS",d}(S||{})},9522:(En,it,p)=>{"use strict";p.d(it,{cc:()=>m});let d=function S(C){return C&&C.get?C.get(0):C};function m(C){return d(C)}},9524:(En,it,p)=>{"use strict";p.d(it,{SK:()=>H,XX:()=>B,pw:()=>b,vF:()=>U});var S=p(1363),d=p(5704);const C="dx-inkripple-showing",e="dx-inkripple-hiding",b=function(){let J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{useHoldAnimation:R,waveSizeCoefficient:L,isCentered:G,wavesNumber:Q}=J;return{waveSizeCoefficient:L||2,isCentered:G||!1,wavesNumber:Q||1,durations:A(R??!0)}},B=function(J){const R=b(J);return{showWave:U.bind(this,R),hideWave:H.bind(this,R)}},F=function(J,R){const L=function(J){let R=J.children(".dx-inkripple");return 0===R.length&&(R=(0,d.A)("<div>").addClass("dx-inkripple").appendTo(J)),R}((0,d.A)(J)),G=L.children(".dx-inkripple-wave").toArray();for(let Q=G.length;Q<R;Q++){const z=(0,d.A)("<div>").appendTo(L).addClass("dx-inkripple-wave");G.push(z[0])}return(0,d.A)(G)},X=function(J,R){const L=(0,d.A)(R.element),G=(0,S.Ot)(L),Q=(0,S.P$)(L),z=parseInt(Math.sqrt(G*G+Q*Q)),K=Math.min(4e3,parseInt(z*J.waveSizeCoefficient));let ee,re;if(J.isCentered)ee=(G-K)/2,re=(Q-K)/2;else{const be=R.event,ce=L.offset();ee=be.pageX-ce.left-K/2,re=be.pageY-ce.top-K/2}return{left:ee,top:re,height:K,width:K}};function U(J,R){const L=F(R.element,J.wavesNumber).eq(R.wave||0);J.hidingTimeout&&clearTimeout(J.hidingTimeout),M(L),L.css(X(J,R)),J.showingTimeout=setTimeout(Z.bind(this,J,L),0)}function Z(J,R){const L=J.durations.showingScale+"ms";R.addClass(C).css("transitionDuration",L)}function A(J){return{showingScale:J?1e3:300,hidingScale:300,hidingOpacity:300}}function M(J){J.removeClass(e).css("transitionDuration","")}function H(J,R){J.showingTimeout&&clearTimeout(J.showingTimeout);const L=F(R.element,R.wavesNumber).eq(R.wave||0),G=J.durations,Q=G.hidingScale+"ms, "+G.hidingOpacity+"ms";L.addClass(e).removeClass(C).css("transitionDuration",Q);const z=Math.max(G.hidingScale,G.hidingOpacity);J.hidingTimeout=setTimeout(M.bind(this,L),z)}},9583:(En,it,p)=>{"use strict";function S(d,m){if(d){const T=d.indexOf(m);0<=T&&d.splice(T,1)}}p.d(it,{o:()=>S})},9641:(En,it,p)=>{"use strict";p.d(it,{s:()=>S});const S={className:"",activeStateEnabled:!1,disabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,tabIndex:0,visible:!0}},9656:(En,it,p)=>{"use strict";function S(d){return d}p.d(it,{D:()=>S})},9658:(En,it,p)=>{"use strict";p.d(it,{A:()=>B});var S=p(4859),d=p(6021),m=p(3090),T=p(1830),C=p(1541),e=p(127);class k{constructor(F){this.options=F,this._setOption("disabledItemKeys",[]),this._clearItemKeys()}_clearItemKeys(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])}validate(){}_setOption(F,X){this.options[F]=X}onSelectionChanged(){const{addedItemKeys:F}=this.options,{removedItemKeys:X}=this.options,{addedItems:U}=this.options,{removedItems:Z}=this.options,{selectedItems:A}=this.options,{selectedItemKeys:M}=this.options,H=this.options.onSelectionChanged||S.lQ;this._clearItemKeys(),H({selectedItems:A,selectedItemKeys:M,addedItemKeys:F,removedItemKeys:X,addedItems:U,removedItems:Z})}equalKeys(F,X){return this.options.equalByReference&&(0,T.Gv)(F)&&(0,T.Gv)(X)?F===X:(0,S.RL)(F,X)}getSelectableItems(F){return F.filter(X=>!(null!=X&&X.disabled))}_clearSelection(F,X,U,Z){return F=F||[],F=Array.isArray(F)?F:[F],this.validate(),this.selectedItemKeys(F,X,U,Z)}_removeTemplateProperty(F){return Array.isArray(F)?F.map(X=>this._removeTemplateProperty(X)):((0,T.Gv)(F)&&delete F.template,F)}_loadFilteredData(F,X,U,Z){const A=encodeURI(JSON.stringify(this._removeTemplateProperty(F))).length,M=this.options.maxFilterLengthInRequest&&A>this.options.maxFilterLengthInRequest,H=(0,d.cY)(),J={filter:M?void 0:F,select:M?this.options.dataFields():U||this.options.dataFields()};return F&&0===F.length?H.resolve([]):this.options.load(J).done(R=>{let L=(0,T.Qd)(R)?R.data:R;X&&!Z?L=L.filter(X):M&&(L=(0,C.A)(L).filter(F).toArray()),H.resolve(L)}).fail(H.reject.bind(H)),H}updateSelectedItemKeyHash(F){for(let X=0;X<F.length;X++){const U=(0,S.GP)(F[X]);(0,T.Gv)(U)||(this.options.keyHashIndices[U]=this.options.keyHashIndices[U]||[],this.options.keyHashIndices[U].push(X))}}_isAnyItemSelected(F){for(let X=0;X<F.length;X++)if(this.options.isItemSelected(F[X]))return;return!1}_getFullSelectAllState(){const F=this.options.plainItems(),X=this.options.filter();let U=this.options.ignoreDisabledItems?this.options.selectedItems:this.options.selectedItems.filter(M=>!(null!=M&&M.disabled));X&&(U=(0,C.A)(U).filter(X).toArray());const Z=U.length,A=F.length-this.getSelectableItems(F).length;return Z?Z>=this.options.totalCount()-A||void 0:this._isAnyItemSelected(F)}_getVisibleSelectAllState(){const F=this.getSelectableItems(this.options.plainItems());let X=!1,U=!1;for(let Z=0;Z<F.length;Z++){const A=F[Z],M=this.options.getItemData(A),H=this.options.keyOf(M);this.options.isSelectableItem(A)&&(this.isItemKeySelected(H)?X=!0:U=!0)}return!!X&&(!U||void 0)}}class w extends k{getSelectedItems(){return this._loadFilteredData(this.options.selectionFilter)}getSelectedItemKeys(){const F=(0,d.cY)(),X=this,U=this.options.key(),Z=(0,T.Kg)(U)?[U]:U;return this._loadFilteredData(this.options.selectionFilter,null,Z).done(A=>{const M=A.map(H=>X.options.keyOf(H));F.resolve(M)}).fail(F.reject),F.promise()}selectedItemKeys(F,X,U,Z){if(Z){const A=this.options.filter();!A||JSON.stringify(A)===JSON.stringify(this.options.selectionFilter)&&U?this._setOption("selectionFilter",U?[]:null):this._addSelectionFilter(U,A,Z)}else{X||this._setOption("selectionFilter",[]);for(let A=0;A<F.length;A++)U?this.removeSelectedItem(F[A]):this.addSelectedItem(F[A],Z,!X)}return this.onSelectionChanged(),(0,d.cY)().resolve()}setSelectedItems(F){this._setOption("selectionFilter",null);for(let X=0;X<F.length;X++)this.addSelectedItem(F[X])}isItemDataSelected(F){return this.isItemKeySelected(F)}isItemKeySelected(F){const{selectionFilter:X}=this.options;return!X||!!(0,C.A)([F]).filter(X).toArray().length}_getKeyExpr(){const F=this.options.key();return Array.isArray(F)&&1===F.length?F[0]:F}_normalizeKey(F){const X=this.options.key();return Array.isArray(X)&&1===X.length?F[X[0]]:F}_getFilterByKey(F){const X=this._getKeyExpr();let U=[X,"=",this._normalizeKey(F)];if(Array.isArray(X)){U=[];for(let Z=0;Z<X.length;Z++)U.push([X[Z],"=",F[X[Z]]]),Z!==X.length-1&&U.push("and")}return U}addSelectedItem(F,X,U){const Z=this._getFilterByKey(F);this._addSelectionFilter(!1,Z,X,U)}removeSelectedItem(F){const X=this._getFilterByKey(F);this._addSelectionFilter(!0,X)}validate(){const{key:F}=this.options;if(F&&void 0===F())throw e.A.Error("E1042","Deferred selection")}_findSubFilter(F,X){if(!F)return-1;const U=JSON.stringify(X);for(let Z=0;Z<F.length;Z++){const A=F[Z];if(A&&JSON.stringify(A)===U)return Z}return-1}_isLastSubFilter(F,X){return!(!F||!X||this._findSubFilter(F,X)!==F.length-1&&0!==this._findSubFilter([F],X))}_addFilterOperator(F,X){return F.length>1&&(0,T.Kg)(F[1])&&F[1]!==X&&(F=[F]),F.length&&F.push(X),F}_denormalizeFilter(F){return F&&(0,T.Kg)(F[0])&&(F=[F]),F}_isOnlyNegativeFiltersLeft(F){return F.every((X,U)=>U%2==0?Array.isArray(X)&&"!"===X[0]:"and"===X)}_addSelectionFilter(F,X,U,Z){var A;const M=this,H=F?["!",X]:X,J=F?"and":"or";let R=!0,L=M.options.selectionFilter||[];if(L=M._denormalizeFilter(L),null!==(A=L)&&void 0!==A&&A.length&&!Z){const G=M._removeSameFilter(L,X,F,U),Q=M._removeSameFilter(L,X,!F);F&&(-1!==G||-1!==Q)&&this._isOnlyNegativeFiltersLeft(L)&&(L=[]);const K=this._isKeyFilter(X)&&this._hasKeyFiltersOnlyStartingFromIndex(L,Q);R=X.length&&!K}R&&(L=M._addFilterOperator(L,J),L.push(H)),L=M._normalizeFilter(L),M._setOption("selectionFilter",F||L.length?L:null)}_normalizeFilter(F){return F&&1===F.length&&(F=F[0]),F}_removeFilterByIndex(F,X,U){const Z=F[1];F.splice(X>0?X-1:X,2),U&&"and"===Z&&F.splice(0,F.length)}_isSimpleKeyFilter(F,X){return 3===F.length&&F[0]===X&&"="===F[1]}_isKeyFilter(F){if(2===F.length&&"!"===F[0])return this._isKeyFilter(F[1]);const X=this._getKeyExpr();if(Array.isArray(X)){if(F.length!==2*X.length-1)return!1;for(let U=0;U<X.length;U++)if(U>0&&"and"!==F[2*U-1]||!this._isSimpleKeyFilter(F[2*U],X[U]))return!1;return!0}return this._isSimpleKeyFilter(F,X)}_hasKeyFiltersOnlyStartingFromIndex(F,X){if(X>=0){for(let U=X;U<F.length;U++)if("string"!=typeof F[U]&&!this._isKeyFilter(F[U]))return!1;return!0}return!1}_removeSameFilter(F,X,U,Z){if(X=U?["!",X]:X,JSON.stringify(X)===JSON.stringify(F))return F.splice(0,F.length),0;const A=this._findSubFilter(F,X);if(A>=0)return this._removeFilterByIndex(F,A,Z),A;for(let M=0;M<F.length;M++)if(Array.isArray(F[M])&&F[M].length>2){const H=this._removeSameFilter(F[M],X,!1,Z);if(H>=0)return F[M].length?1===F[M].length&&(F[M]=F[M][0]):this._removeFilterByIndex(F,M,Z),H}return-1}getSelectAllState(){const F=this.options.filter();let{selectionFilter:X}=this.options;if(!X)return!0;if(!X.length)return!1;if(F&&F.length){if(X=this._denormalizeFilter(X),this._isLastSubFilter(X,F))return!0;if(this._isLastSubFilter(X,["!",F]))return!1}}loadSelectedItemsWithFilter(){const F=this.options.filter(),{selectionFilter:X}=this.options;return this._loadFilteredData(F?[F,"and",X]:X)}}var P=p(5345),v=p(9965),x=p(7271);class b extends k{constructor(F){super(F),this._initSelectedItemKeyHash()}_initSelectedItemKeyHash(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})}getSelectedItemKeys(){return this.options.selectedItemKeys.slice(0)}getSelectedItems(){return this.options.selectedItems.slice(0)}_preserveSelectionUpdate(F,X){const{keyOf:U}=this.options;let Z,A,M;if(!U)return;const H=X&&F.length>1&&!this.options.equalByReference;for(H&&(Z={}),M=0;M<F.length;M++){const J=F[M],R=U(J);X?(A=this.removeSelectedItem(R,Z,J?.disabled),Z&&A>=0&&(Z[A]=!0)):this.addSelectedItem(R,J)}H&&this._batchRemoveSelectedItems(Z)}_batchRemoveSelectedItems(F){const X=this.options.selectedItemKeys.slice(0),U=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(let Z=0;Z<X.length;Z++)F[Z]||(this.options.selectedItemKeys.push(X[Z]),this.options.selectedItems.push(U[Z]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)}_loadSelectedItemsCore(F,X,U,Z){let A=arguments.length>4&&void 0!==arguments[4]&&arguments[4],M=(0,d.cY)();const H=this.options.key();if(!F.length&&!U)return M.resolve([]),M;if(U&&X&&!Z)return M.resolve(this.getSelectedItems()),M;const J=new x.H(F,U),R=J.getCombinedFilter(H,Z,A);let L=[];if(X){const{selectedItems:z}=this.options;L=R&&F.length!==z.length?(0,C.A)(z).filter(R).toArray():z.slice(0)}let G=L.length?L:this.options.plainItems(!0).filter(this.options.isSelectableItem).map(this.options.getItemData);const Q=J.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,H);return G=G.filter(Q),L.length||!U&&G.length===F.length?M.resolve(G):M=this._loadFilteredData(R,Q,null,U),M}_replaceSelectionUpdate(F){const X=[],{keyOf:U}=this.options;if(U){for(let Z=0;Z<F.length;Z++){const M=U(F[Z]);X.push(M)}this.setSelectedItems(X,F)}}_warnOnIncorrectKeys(F){const{allowNullValue:X}=this.options;for(let U=0;U<F.length;U++){const Z=F[U];(!X||null!==Z)&&!this.isItemKeySelected(Z)&&e.A.log("W1002",Z)}}_isMultiSelectEnabled(){const{mode:F}=this.options;return"all"===F||"multiple"===F}_requestInProgress(){var F;return"pending"===(null===(F=this._lastLoadDeferred)||void 0===F?void 0:F.state())}_concatRequestsItems(F,X,U,Z){let A;const M=X?F:[];return A=Z||(0,P.R3)(F,this.options.selectedItemKeys),{addedItems:U.added.concat(A),removedItems:U.removed.concat(M),keys:F}}_collectLastRequestData(F,X,U,Z){const A=X&&U,M={added:[],removed:[]},H=this._isMultiSelectEnabled();let J=H?this._lastRequestData:{};return H&&(this._shouldMergeWithLastRequest&&(A?(this._lastLoadDeferred.reject(),J={}):(0,v.V)(F,this.options.selectedItemKeys)||(M.added=J.addedItems,M.removed=J.removedItems,X||this._lastLoadDeferred.reject())),J=this._concatRequestsItems(F,X,M,this._shouldMergeWithLastRequest?void 0:Z)),J}_updateKeysByLastRequestData(F,X,U){let Z=F;var A,M;return this._isMultiSelectEnabled()&&this._shouldMergeWithLastRequest&&!X&&!U&&(Z=(0,P.R3)(F.concat(null===(A=this._lastRequestData)||void 0===A?void 0:A.addedItems),null===(M=this._lastRequestData)||void 0===M?void 0:M.removedItems),Z=(0,P.Gn)(Z)),Z}_loadSelectedItems(F,X,U,Z){let A=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const M=this,H=(0,d.cY)(),J=M.options.filter();return this._shouldMergeWithLastRequest=this._requestInProgress(),this._lastRequestData=this._collectLastRequestData(F,X,U,Z),(0,d.z7)(M._lastLoadDeferred).always(()=>{const R=M._updateKeysByLastRequestData(F,X,U);M._shouldMergeWithLastRequest=!1,M._loadSelectedItemsCore(R,X,U,J,A).done(H.resolve).fail(H.reject)}),M._lastLoadDeferred=H,H}selectedItemKeys(F,X,U,Z,A){const H=this,J=H._loadSelectedItems(F,U,Z,A,arguments.length>5&&void 0!==arguments[5]&&arguments[5]);return J.done(R=>{X?H._preserveSelectionUpdate(R,U):H._replaceSelectionUpdate(R),H.onSelectionChanged()}),J}addSelectedItem(F,X){if((0,T.O9)(X)&&!this.options.ignoreDisabledItems&&X.disabled)return void(-1===this.options.disabledItemKeys.indexOf(F)&&this.options.disabledItemKeys.push(F));const U=this._getKeyHash(F);-1===this._indexOfSelectedItemKey(U)&&(!(0,T.Gv)(U)&&this.options.keyHashIndices&&(this.options.keyHashIndices[U]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(F),this.options.addedItemKeys.push(F),this.options.addedItems.push(X),this.options.selectedItems.push(X))}_getSelectedIndexByKey(F,X){const{selectedItemKeys:U}=this.options;for(let Z=0;Z<U.length;Z++)if((!X||!X[Z])&&this.equalKeys(U[Z],F))return Z;return-1}_getSelectedIndexByHash(F,X){let U=this.options.keyHashIndices[F];return U&&U.length>1&&X&&(U=U.filter(Z=>!X[Z])),U&&U[0]>=0?U[0]:-1}_indexOfSelectedItemKey(F,X){let U;return U=this.options.equalByReference?this.options.selectedItemKeys.indexOf(F):(0,T.Gv)(F)?this._getSelectedIndexByKey(F,X):this._getSelectedIndexByHash(F,X),U}_shiftSelectedKeyIndices(F){for(let X=F;X<this.options.selectedItemKeys.length;X++){const Z=(0,S.GP)(this.options.selectedItemKeys[X]),A=this.options.keyHashIndices[Z];if(A)for(let M=0;M<A.length;M++)A[M]>F&&A[M]--}}removeSelectedItem(F,X,U){if(!this.options.ignoreDisabledItems&&U)return;const Z=this._getKeyHash(F),A=!!X,M=this._indexOfSelectedItemKey(Z,X);if(M<0||(this.options.removedItemKeys.push(F),this.options.removedItems.push(this.options.selectedItems[M]),A)||(this.options.selectedItemKeys.splice(M,1),this.options.selectedItems.splice(M,1),(0,T.Gv)(Z)||!this.options.keyHashIndices))return M;const H=this.options.keyHashIndices[Z];return H&&(H.shift(),H.length||delete this.options.keyHashIndices[Z],this._shiftSelectedKeyIndices(M)),M}_updateAddedItemKeys(F,X){for(let U=0;U<F.length;U++)this.isItemKeySelected(F[U])||(this.options.addedItemKeys.push(F[U]),this.options.addedItems.push(X[U]))}_updateRemovedItemKeys(F,X,U){for(let Z=0;Z<X.length;Z++)this.isItemKeySelected(X[Z])||(this.options.removedItemKeys.push(X[Z]),this.options.removedItems.push(U[Z]))}_isItemSelectionInProgress(F,X){return!!(X&&this._lastRequestData&&this._requestInProgress())&&(this._lastRequestData.addedItems??[]).includes(F)}_getKeyHash(F){return this.options.equalByReference?F:(0,S.GP)(F)}setSelectedItems(F,X){this._updateAddedItemKeys(F,X);const U=this.options.selectedItemKeys,Z=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(F)),this._setOption("selectedItemKeys",F),this._setOption("selectedItems",X),this._updateRemovedItemKeys(F,U,Z)}isItemDataSelected(F){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const U=this.options.keyOf(F);return this.isItemKeySelected(U,X)}isItemKeySelected(F){let U=this._isItemSelectionInProgress(F,(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).checkPending);if(!U){const Z=this._getKeyHash(F);U=-1!==this._indexOfSelectedItemKey(Z)}return U}getSelectAllState(F){return F?this._getVisibleSelectAllState():this._getFullSelectAllState()}loadSelectedItemsWithFilter(){const F=this.options.key(),X=this.getSelectedItemKeys(),U=this.options.filter();if(!X.length)return(0,d.cY)().resolve([]);const A=new x.H(X).getCombinedFilter(F,U,!0);return this._loadFilteredData(A)}}class B{constructor(F){this.options=(0,m.X)(this._getDefaultOptions(),F,{selectedItemKeys:F.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new w(this.options):new b(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)}_getDefaultOptions(){return{allowNullValue:!1,deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:S.lQ,key:S.lQ,keyOf:F=>F,load:()=>(0,d.cY)().resolve([]),totalCount:()=>-1,isSelectableItem:()=>!0,isItemSelected:()=>!1,getItemData:F=>F,dataFields:S.lQ,filter:S.lQ}}validate(){this._selectionStrategy.validate()}getSelectedItemKeys(){return this._selectionStrategy.getSelectedItemKeys()}getSelectedItems(){return this._selectionStrategy.getSelectedItems()}selectionFilter(F){if(void 0===F)return this.options.selectionFilter;const X=this.options.selectionFilter!==F&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(F);this.options.selectionFilter=F,X&&this.onSelectionChanged()}setSelection(F,X){return this.selectedItemKeys(F,!1,!1,!1,X)}select(F){return this.selectedItemKeys(F,!0)}deselect(F){return this.selectedItemKeys(F,!0,!0)}selectedItemKeys(F,X,U,Z,A){return F=F??[],F=Array.isArray(F)?F:[F],this.validate(),this._selectionStrategy.selectedItemKeys(F,X,U,Z,A)}clearSelection(){return this.selectedItemKeys([])}_addSelectedItem(F,X){this._selectionStrategy.addSelectedItem(X,F)}_removeSelectedItem(F){this._selectionStrategy.removeSelectedItem(F)}_setSelectedItems(F,X){this._selectionStrategy.setSelectedItems(F,X)}onSelectionChanged(){this._selectionStrategy.onSelectionChanged()}changeItemSelection(F,X,U){var Z,A;let M;const H=this.options.plainItems(),J=H[F];let R;const{isVirtualPaging:L}=this.options,G=null===(Z=(A=this.options).allowLoadByRange)||void 0===Z?void 0:Z.call(A),{alwaysSelectByShift:Q}=this.options;let z,K=!1,ee=!1;const re=Se=>Se>=0&&!H.filter(De=>De.loadIndex===Se).length;if(L&&(0,T.O9)(J)&&(G&&(z=J.loadIndex-F,F=J.loadIndex),K=re(this._focusedItemIndex),(0,T.O9)(this._shiftFocusedItemIndex)&&(ee=re(this._shiftFocusedItemIndex))),!this.isSelectable()||!this.isDataItem(J))return!1;const be=this.options.getItemData(J),ce=this.options.keyOf(be);let Re=(X=X||{}).shift;if(!1===Q&&Re&&(Re=!1!==G||!K&&!ee),Re&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)G&&(K||ee)?(M=F!==this._shiftFocusedItemIndex||this._focusedItemIndex!==this._shiftFocusedItemIndex,M&&(R=this.changeItemSelectionWhenShiftKeyInVirtualPaging(F))):M=this.changeItemSelectionWhenShiftKeyPressed(F,H,z);else if(X.control){if(this._resetItemSelectionWhenShiftKeyPressed(),!U){const Se=this._selectionStrategy.isItemDataSelected(be);"single"===this.options.mode&&this.clearSelectedItems(),Se?this._removeSelectedItem(ce):this._addSelectedItem(be,ce)}M=!0}else{this._resetItemSelectionWhenShiftKeyPressed();const Se=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],ce);(1!==this.options.selectedItemKeys.length||!Se)&&(this._setSelectedItems([ce],[be]),M=!0)}return M?((0,d.z7)(R).done(()=>{this._focusedItemIndex=F,!U&&this.onSelectionChanged()}),!0):void 0}isDataItem(F){return this.options.isSelectableItem(F)}isSelectable(){return"single"===this.options.mode||"multiple"===this.options.mode}isItemDataSelected(F){return this._selectionStrategy.isItemDataSelected(F,{checkPending:!0})}isItemSelected(F,X){return this._selectionStrategy.isItemKeySelected(F,X)}_resetItemSelectionWhenShiftKeyPressed(){delete this._shiftFocusedItemIndex}_resetFocusedItemIndex(){this._focusedItemIndex=-1}changeItemSelectionWhenShiftKeyInVirtualPaging(F){const X=this.options.getLoadOptions(F,this._focusedItemIndex,this._shiftFocusedItemIndex),U=(0,d.cY)(),Z=X.skip;return this.options.load(X).done(A=>{this.changeItemSelectionWhenShiftKeyPressed(F,A,Z),U.resolve()}),U.promise()}changeItemSelectionWhenShiftKeyPressed(F,X,U){let A,Z=!1;const M=(0,T.O9)(U);let H=M?this._focusedItemIndex-U:this._focusedItemIndex;const{keyOf:J}=this.options,R=X[H],L=this.options.getItemData(R),G=J(L),Q=R&&this.isItemDataSelected(L);let z,K,ee,re;if((0,T.O9)(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(A=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,ee=M?this._focusedItemIndex-U:this._focusedItemIndex,re=M?this._shiftFocusedItemIndex-U:this._shiftFocusedItemIndex,H=ee;H!==re;H+=A)(M||this.isDataItem(X[H]))&&(K=J(this.options.getItemData(X[H])),this._removeSelectedItem(K),Z=!0);if(F!==this._shiftFocusedItemIndex)for(A=F<this._shiftFocusedItemIndex?1:-1,ee=M?F-U:F,re=M?this._shiftFocusedItemIndex-U:this._shiftFocusedItemIndex,H=ee;H!==re;H+=A)(M||this.isDataItem(X[H]))&&(z=this.options.getItemData(X[H]),K=J(z),this._addSelectedItem(z,K),Z=!0);return(M||this.isDataItem(R))&&!Q&&(this._addSelectedItem(L,G),Z=!0),Z}clearSelectedItems(){this._setSelectedItems([],[])}selectAll(F){return this._resetFocusedItemIndex(),F?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)}deselectAll(F){return this._resetFocusedItemIndex(),F?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)}_onePageSelectAll(F){const X=this._selectionStrategy.getSelectableItems(this.options.plainItems());for(let U=0;U<X.length;U++){const Z=X[U];if(this.isDataItem(Z)){const A=this.options.getItemData(Z),M=this.options.keyOf(A),H=this.isItemSelected(M);!H&&!F&&this._addSelectedItem(A,M),H&&F&&this._removeSelectedItem(M)}}return this.onSelectionChanged(),(0,d.cY)().resolve()}getSelectAllState(F){return this._selectionStrategy.getSelectAllState(F)}loadSelectedItemsWithFilter(){return this._selectionStrategy.loadSelectedItemsWithFilter()}}},9659:(En,it,p)=>{"use strict";p.d(it,{A:()=>G});var S=p(5704),d=p(4072),m=p(5973),T=p(8649),C=p(4356),e=p(1832),k=p(2720),w=p(3012),P=p(4859),v=p(1830),x=p(9293),b=p(1208);const B=k.A.add,j=Math.abs;let Z=10;const J=(0,C.A)(function(){const Q="desktop"===m.A.real().deviceType;if(!(0,T.jA)("pointer-events")||!Q)return P.lQ;const z=(0,S.A)("<div>").addClass("dx-gesture-cover").css("pointerEvents","none");return d.A.subscribeGlobal(z,"dxmousewheel",function(K){K.preventDefault()}),B(function(){z.appendTo("body")}),function(K,ee){z.css("pointerEvents",K?"all":"none"),K&&z.css("cursor",ee)}}),L=b.A.inherit({gesture:!0,configure:function(Q){this.getElement().css("msTouchAction",Q.immediate?"pinch-zoom":""),this.callBase(Q)},allowInterruptionByMouseWheel:function(){return 2!==this._stage},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=0},start:function(Q){Q._needSkipEvent||(0,x.eT)(Q)?this._cancel(Q):(this._startEvent=(0,x.lh)(Q),this._startEventData=(0,x.rw)(Q),this._stage=1,this._init(Q),this._setupImmediateTimer())},_setupImmediateTimer:function(){if(clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate){if(0===this.immediateTimeout)return void(this._immediateAccepted=!0);this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),this.immediateTimeout??180)}},move:function(Q){if(1===this._stage&&this._directionConfirmed(Q)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(Q),this._adjustStartEvent(Q),this._start(this._startEvent),0===this._stage)return;this._requestAccept(Q),this._move(Q),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(Q),this._move(Q))},_directionConfirmed:function(Q){const z=this._getTouchBoundary(Q),K=(0,x.nm)(this._startEventData,(0,x.rw)(Q)),ee=j(K.x),re=j(K.y),be=this._validateMove(z,ee,re),ce=this._validateMove(z,re,ee),Re=this.getDirection(Q);return"both"===Re&&(be||ce)||"horizontal"===Re&&be||"vertical"===Re&&ce||this._immediateAccepted},_validateMove:function(Q,z,K){return z&&z>=Q&&(!this.immediate||z>=K)},_getTouchBoundary:function(Q){return this.immediate||(0,x.X1)(Q)?0:Z},_adjustStartEvent:function(Q){const z=this._getTouchBoundary(Q),K=(0,x.nm)(this._startEventData,(0,x.rw)(Q));this._startEvent.pageX+=(0,w._S)(K.x)*z,this._startEvent.pageY+=(0,w._S)(K.y)*z},_resetActiveElement:function(){"ios"===m.A.real().platform&&this.getElement().find(":focus").length&&(0,e.GX)()},_toggleGestureCover:function(Q){this._toggleGestureCoverImpl(Q)},_toggleGestureCoverImpl:function(Q){2===this._stage&&function(Q,z){J()(Q,z)}(Q,this.getElement().css("cursor"))},_clearSelection:function(Q){(0,x.X1)(Q)||(0,x.kH)(Q)||(0,e.wr)()},end:function(Q){this._toggleGestureCover(!1),2===this._stage?this._end(Q):1===this._stage&&this._stop(Q),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:P.lQ,_start:P.lQ,_move:P.lQ,_stop:P.lQ,_end:P.lQ});L.initialTouchBoundary=Z,L.touchBoundary=function(Q){if(!(0,v.O9)(Q))return Z;Z=Q};const G=L},9810:(En,it,p)=>{"use strict";p.d(it,{A:()=>Te});var S=p(1973),d=p(5973),m=p(4859),T=p(3090),C=p(3012),e=p(1830),k=p(4072),w=p(1395),P=p(9293),v=p(1271),x=p(1520),b=p(6054),B=p(5704),j=p(36),F=p(6021),X=p(8360);const Z=p(221).A;var A=p(9209),M=p(974),H=p(4451),J=p(3535),R=p(7080);const z="dxNumberBox",K=(0,P.b4)(A.A.up,z),ee=(0,P.b4)(A.A.cancel,z),be=R.A.inherit({_getDefaultOptions(){return(0,T.X)(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup(){this.callBase();const je=`dx-numberbox-spin-${this.option("direction")}`;this.$element().addClass("dx-numberbox-spin-button").addClass(je),this._spinIcon=(0,B.A)("<div>").addClass(`${je}-icon`).appendTo(this.$element())},_render(){this.callBase();const je=(0,P.b4)(A.A.down,this.NAME),Ne=this.$element();k.A.off(Ne,je),k.A.on(Ne,je,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler(je){je.preventDefault(),this._clearTimer(),k.A.on(this.$element(),J.A.name,()=>{this._feedBackDeferred=(0,F.cY)(),(0,H.s2)(this._feedBackDeferred),this._spinChangeHandler({event:je}),this._holdTimer=setInterval(this._spinChangeHandler,100,{event:je})});const Ne=b.A.getDocument();k.A.on(Ne,K,this._clearTimer.bind(this)),k.A.on(Ne,ee,this._clearTimer.bind(this)),this._spinChangeHandler({event:je})},_dispose(){this._clearTimer(),this.callBase()},_clearTimer(){k.A.off(this.$element(),J.A.name);const je=b.A.getDocument();k.A.off(je,K),k.A.off(je,ee),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged(je){switch(je.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(je)}}});class De extends M.A{_attachEvents(Ne,lt){const{editor:Qe}=this,Ct=(0,P.b4)(A.A.down,Qe.NAME),yt=lt.children(),Gt=Qe._createAction(ft=>Qe._spinButtonsPointerDownHandler(ft));k.A.off(lt,Ct),k.A.on(lt,Ct,ft=>Gt({event:ft})),be.getInstance(yt.eq(0)).option("onChange",ft=>Qe._spinUpChangeHandler(ft)),be.getInstance(yt.eq(1)).option("onChange",ft=>Qe._spinDownChangeHandler(ft))}_create(){const{editor:Ne}=this,lt=(0,B.A)("<div>").addClass("dx-numberbox-spin-container"),Qe=(0,B.A)("<div>").appendTo(lt),Ct=(0,B.A)("<div>").appendTo(lt),yt=this._getOptions();return this._addToContainer(lt),Ne._createComponent(Qe,be,(0,T.X)({direction:"up"},yt)),Ne._createComponent(Ct,be,(0,T.X)({direction:"down"},yt)),this._legacyRender(Ne.$element(),this._isTouchFriendly(),yt.visible),{instance:lt,$element:lt}}_getOptions(){const{editor:Ne}=this;return{visible:this._isVisible(),disabled:Ne.option("disabled")}}_isVisible(){const{editor:Ne}=this;return super._isVisible()&&Ne.option("showSpinButtons")}_isTouchFriendly(){const{editor:Ne}=this;return Ne.option("showSpinButtons")&&Ne.option("useLargeSpinButtons")}_legacyRender(Ne,lt,Qe){Ne.toggleClass("dx-numberbox-spin-touch-friendly",lt),Ne.toggleClass("dx-numberbox-spin",Qe)}update(){if(super.update()){const{editor:lt,instance:Qe}=this,Ct=lt.$element(),yt=this._isVisible(),Gt=this._isTouchFriendly(),ft=Qe.children(),nn=be.getInstance(ft.eq(0)),rn=be.getInstance(ft.eq(1)),Mn=this._getOptions();nn.option(Mn),rn.option(Mn),this._legacyRender(Ct,Gt,yt)}}}const Pe=Math,W=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],Ce=Z.inherit({_supportedKeys(){return(0,T.X)(this.callBase(),{upArrow(je){(0,P.By)(je)||(je.preventDefault(),je.stopPropagation(),this._spinUpChangeHandler(je))},downArrow(je){(0,P.By)(je)||(je.preventDefault(),je.stopPropagation(),this._spinDownChangeHandler(je))},enter(){}})},_getDefaultOptions(){return(0,T.X)(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:X.A.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_useTemplates:()=>!1,_getDefaultButtons(){return this.callBase().concat([{name:"spins",Ctor:De}])},_isSupportInputMode(){const je=parseFloat(j.A.version);return j.A.chrome&&je>=66||j.A.safari&&je>=12},_defaultOptionsRules(){return this.callBase().concat([{device:()=>d.A.real().generic&&!d.A.isSimulator(),options:{useLargeSpinButtons:!1}},{device:function(){return"desktop"!==d.A.real().deviceType&&!this._isSupportInputMode()}.bind(this),options:{mode:"number"}}])},_initMarkup(){this._renderSubmitElement(),this.$element().addClass("dx-numberbox"),this.callBase()},_getDefaultAttributes(){const je=this.callBase();return je.inputmode="decimal",je},_renderContentImpl(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement(){this._$submitElement=(0,B.A)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue(je){this._getSubmitElement().val((0,m.EG)(je))},_getSubmitElement(){return this._$submitElement},_keyPressHandler(je){this.callBase(je);const Ne=(0,P.Pg)(je);if(!/[\d.,eE\-+]/.test(Ne)){const Qe=(0,P.YD)(je);return(0,P.By)(je)||Qe&&W.includes(Qe)?void 0:(je.preventDefault(),!1)}this._keyPressed=!0},_onMouseWheel(je){this._spinValueChange(je.delta>0?1:-1,je)},_renderValue(){const je=this._input().val(),Ne=this.option("value");(!je.length||Number(je)!==Ne)&&(this._forceValueRender(),this._toggleEmptinessEventHandler());const lt=(0,e.O9)(Ne)?null:X.A.format("dxNumberBox-noDataText");return this.setAria({valuenow:(0,m.YD)(Ne,""),valuetext:lt}),this.option("text",this._input().val()),this._updateButtons(),(0,F.cY)().resolve()},_forceValueRender(){const je=this.option("value"),Ne=Number(je),lt=isNaN(Ne)?"":this._applyDisplayValueFormatter(je);this._renderDisplayText(lt)},_applyDisplayValueFormatter(je){return this.option("displayValueFormatter")(je)},_renderProps(){this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:(0,m.YD)(this.option("min"),""),valuemax:(0,m.YD)(this.option("max"),"")})},_spinButtonsPointerDownHandler(){const je=this._input();!this.option("useLargeSpinButtons")&&b.A.getActiveElement()!==je[0]&&k.A.trigger(je,"focus")},_spinUpChangeHandler(je){this.option("readOnly")||this._spinValueChange(1,je.event||je)},_spinDownChangeHandler(je){this.option("readOnly")||this._spinValueChange(-1,je.event||je)},_spinValueChange(je,Ne){const lt=parseFloat(this.option("step"));if(0===lt)return;let Qe=parseFloat(this._normalizeInputValue())||0;Qe=this._correctRounding(Qe,lt*je);const Ct=this.option("min"),yt=this.option("max");(0,e.O9)(Ct)&&(Qe=Math.max(Ct,Qe)),(0,e.O9)(yt)&&(Qe=Math.min(yt,Qe)),this._saveValueChangeEvent(Ne),this.option("value",Qe)},_correctRounding(je,Ne){const lt=/[,.](.*)/,Qe=lt.test(je),Ct=lt.test(Ne);if(Qe||Ct){const yt=Qe?lt.exec(je)[0].length:0,Gt=Ct?lt.exec(Ne)[0].length:0,ft=Pe.max(yt,Gt);return this._round(je+Ne,ft)}return je+Ne},_round(je,Ne){const lt=10**(Ne=Ne||0);return je*=lt,Math.round(je)/lt},_renderValueChangeEvent(){this.callBase();const je=(0,P.b4)("focusout","NumberBoxForceValueChange");k.A.off(this.element(),je),k.A.on(this.element(),je,this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue(){if("number"===this.option("mode"))return;const je=this._input(),Ne=this._applyDisplayValueFormatter(this.option("value"));je.val(null),je.val(Ne)},_valueChangeEventHandler(je){const Ne=this._input(),lt=this._normalizeText(),Qe=this._parseValue(lt),Ct="."!==lt&&"-"!==lt;!this._isValueValid()||this._validateValue(Qe)?(Ct&&this.callBase(je,isNaN(Qe)?null:Qe),this._applyValueBoundaries(lt,Qe),this.validationRequest.fire({value:Qe,editor:this})):Ne.val(this._applyDisplayValueFormatter(Qe))},_applyValueBoundaries(je,Ne){const lt=this._isValueIncomplete(je),Qe=this._isValueInRange(je);!lt&&!Qe&&null!==Ne&&Number(je)!==Ne&&this._input().val(this._applyDisplayValueFormatter(Ne))},_replaceCommaWithPoint:je=>je.replace(",","."),_inputIsInvalid(){const je="number"===this.option("mode"),Ne=this._input().get(0).validity;return je&&Ne&&Ne.badInput},_renderDisplayText(je){this._inputIsInvalid()||this.callBase(je)},_isValueIncomplete:je=>/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i.test(je),_isValueInRange(je){return(0,C.r4)(je,this.option("min"),this.option("max"))},_isNumber(je){return null!==this._parseValue(je)},_validateValue(je){const Ne=this._normalizeText(),lt=this._isValueValid();let Qe=!0;const Ct=this._isNumber(Ne);return isNaN(Number(je))&&(Qe=!1),!je&&lt?Qe=!0:!Ct&&!lt&&(Qe=!1),this.option({isValid:Qe,validationError:Qe?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),Qe},_normalizeInputValue(){return this._parseValue(this._normalizeText())},_normalizeText(){const je=this._input().val().trim();return this._replaceCommaWithPoint(je)},_parseValue(je){const Ne=parseFloat(je);return isNaN(Ne)?null:(0,C.df)(Ne,this.option("min"),this.option("max"))},_clearValue(){this._inputIsInvalid()&&(this._input().val(""),this._validateValue()),this.callBase()},clear(){null===this.option("value")?(this.option("text",""),this._input().length&&this._renderValue()):this.option("value",null)},_optionChanged(je){switch(je.name){case"value":this._validateValue(je.value),this._setSubmitValue(je.value),this.callBase(je),this._resumeValueChangeAction();break;case"step":this._renderProps();break;case"min":case"max":this._renderProps(),this.option("value",this._parseValue(this.option("value")));break;case"showSpinButtons":case"useLargeSpinButtons":this._updateButtons(["spins"]);break;case"invalidValueMessage":break;default:this.callBase(je)}}}),ye=function(je){let Ne=0,lt=0;for(let Qe=0;Qe<je.length;++Qe)if("'"===je[Qe]&&Ne++,"."===je[Qe]&&(++lt,Ne%2==0))return{occurrence:lt,index:Qe};return{occurrence:1,index:-1}},Me=function(je,Ne,lt){let Qe=-1;for(;lt--&&Qe++<je.length;)Qe=je.indexOf(Ne,Qe);return Qe},_e=function(je,Ne){return-1===Ne?[je]:[je.slice(0,Ne),je.slice(Ne+1)]},Ye=function(je,Ne){if("string"==typeof Ne){const lt=Ne.split(";"),Qe=x.A.getSign(je,Ne);lt[1]=lt[1]||`-${lt[0]}`,Ne=(Ne=lt[Qe<0?1:0]).replace(/'([^']*)'/g,nn=>nn.split("").map(()=>" ").join("").substr(2));const yt=/^[^#0.,]*/.exec(Ne)[0].length,Gt=/[^#0.,]*$/.exec(Ne)[0].length;return{start:yt,end:je.length-Gt}}return{start:0,end:je.length}},de=function(je,Ne){const lt=x.A.getDecimalSeparator(),Qe=new RegExp(`[^0-9${(0,m.Nt)(lt)}]`,"g");return Ne.slice(0,je).replace(Qe,"").length},Ae=function(je){return je.split("").reverse().join("")},pe=function(je,Ne){if(!je)return-1;const lt=/[0-9]/g;let Qe=1,Ct=null,yt=lt.exec(Ne);for(;yt;){if(Ct=yt.index,Qe>=je)return Ct;Qe++,yt=lt.exec(Ne)}return null===Ct?Ne.length:Ct},le=function(je,Ne){return void 0===je.start&&(je={start:je,end:je}),{start:je.start+Ne,end:je.end+Ne}};function Oe(je,Ne,lt){je=le(je,0);const Qe=Ye(Ne,lt);return{start:(0,C.df)(je.start,Qe.start,Qe.end),end:(0,C.df)(je.end,Qe.start,Qe.end)}}const ue=Ce.inherit({_getDefaultOptions(){return(0,T.X)(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:je=>"del"===je,_supportedKeys(){return this._useMaskBehavior()?(0,T.X)(this.callBase(),{minus:this._revertSign.bind(this),del:this._removeHandler.bind(this),backspace:this._removeHandler.bind(this),leftArrow:this._arrowHandler.bind(this,-1),rightArrow:this._arrowHandler.bind(this,1),home:this._moveCaretToBoundaryEventHandler.bind(this,1),enter:this._updateFormattedValue.bind(this),end:this._moveCaretToBoundaryEventHandler.bind(this,-1)}):this.callBase()},_getTextSeparatorIndex(je){const Ne=x.A.getDecimalSeparator(),lt=ye(this.option("format")).occurrence;return Me(je,Ne,lt)},_focusInHandler(je){this._preventNestedFocusEvent(je)||(this.clearCaretTimeout(),this._caretTimeout=setTimeout(()=>{this._caretTimeout=void 0;const Ne=this._caret();if(Ne.start===Ne.end&&this._useMaskBehavior()){const lt=this._getInputVal(),Qe=this._getTextSeparatorIndex(lt);Qe>=0?this._caret({start:Qe,end:Qe}):this._moveCaretToBoundaryEventHandler(-1,je)}},0)),this.callBase(je)},_focusOutHandler(je){const Ne=!this._preventNestedFocusEvent(je);Ne&&(this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue()),this.callBase(je),Ne&&(this._focusOutOccurs=!1)},_hasValueBeenChanged(je){const Ne=this._getFormatPattern(),lt=this.option("value");return(this._format(lt,Ne)||"")!==je},_updateFormattedValue(){const je=this._getInputVal();this._hasValueBeenChanged(je)&&(this._updateParsedValue(),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&k.A.trigger(this._input(),"change"))},_arrowHandler(je,Ne){if(!this._useMaskBehavior())return;const lt=this._getInputVal(),Qe=this._getFormatPattern();let Ct=le(this._caret(),je);(function(je,Ne,lt){const Qe=Oe(je=le(je,0),Ne,lt);return je.start>=Qe.start&&je.end<=Qe.end})(Ct,lt,Qe)||(Ct=1===je?Ct.end:Ct.start,Ne.preventDefault(),this._caret(Oe(Ct,lt,Qe)))},_moveCaretToBoundary(je){const Ne=Ye(this._getInputVal(),this._getFormatPattern()),lt=le(1===je?Ne.start:Ne.end,0);this._caret(lt)},_moveCaretToBoundaryEventHandler(je,Ne){!this._useMaskBehavior()||Ne&&Ne.shiftKey||(this._moveCaretToBoundary(je),Ne&&Ne.preventDefault())},_shouldMoveCaret(je,Ne){const lt=x.A.getDecimalSeparator(),Qe=je.charAt(Ne.end)===lt;return(this._lastKey===lt||"."===this._lastKey||","===this._lastKey)&&Qe},_getInputVal(){return x.A.convertDigits(this._input().val(),!0)},_keyboardHandler(je){if(this.clearCaretTimeout(),this._lastKey=x.A.convertDigits((0,P.Pg)(je),!0),this._lastKeyName=(0,P.YD)(je),!this._shouldHandleKey(je.originalEvent))return this.callBase(je);const Ne=this._getInputVal(),lt=this._caret();let Qe;Qe="minus"===this._lastKeyName?"":110===je.which?x.A.getDecimalSeparator():this._lastKey;const Ct=this._tryParse(Ne,lt,Qe);return this._shouldMoveCaret(Ne,lt)&&(this._moveCaret(1),je.originalEvent.preventDefault()),void 0===Ct?"minus"!==this._lastKeyName&&je.originalEvent.preventDefault():this._parsedValue=Ct,this.callBase(je)},_keyPressHandler(je){this._useMaskBehavior()||this.callBase(je)},_removeHandler(je){const Ne=this._caret(),lt=this._getInputVal();let{start:Qe}=Ne,{end:Ct}=Ne;this._lastKey=(0,P.Pg)(je),this._lastKeyName=(0,P.YD)(je);const yt=this._isDeleteKey(this._lastKeyName),Gt=!yt;if(Qe===Ct){if(!(Gt&&Qe>0||yt&&Qe<lt.length))return void je.preventDefault();yt&&Ct++,Gt&&Qe--}const ft=lt.slice(Qe,Ct);if(this._isStub(ft))return this._moveCaret(yt?1:-1),(this._parsedValue<0||1/this._parsedValue==-1/0)&&(this._revertSign(je),this._setTextByParsedValue(),this.option("valueChangeEvent").split(" ").includes("input")&&k.A.trigger(this._input(),"input")),void je.preventDefault();const nn=x.A.getDecimalSeparator();if(ft===nn){const Mn=lt.indexOf(nn);return void(this._isNonStubAfter(Mn+1)&&(this._moveCaret(yt?1:-1),je.preventDefault()))}if(Ct-Qe<lt.length&&this._replaceSelectedText(lt,{start:Qe,end:Ct},"").search(/[0-9]/)<0&&this._isValueInRange(0))return void(this._parsedValue=this._parsedValue<0||1/this._parsedValue==-1/0?-0:0);const rn=this._tryParse(lt,{start:Qe,end:Ct},"");void 0===rn?je.preventDefault():this._parsedValue=rn},_isPercentFormat(){return-1!==this._getFormatPattern().replace(/'[^']+'/g,"").indexOf("%")},_parse(je,Ne){const lt=this.option("format"),Qe=(0,e.Tn)(lt.parser),Ct=Qe?lt.parser:x.A.parse;let yt=0;if(!Qe){const Gt=ye(Ne).index,ft=this._getTextSeparatorIndex(je),nn=-1!==Gt?Gt:Ne.length,rn=-1!==ft?ft:je.length;rn>nn&&-1===Ne.indexOf("#")&&(yt=rn-nn)}return Ct(je=je.substr(yt),Ne)},_format(je,Ne){const lt=this.option("format"),Qe=lt?.formatter||lt,Ct=(0,e.Tn)(Qe)?Qe:x.A.format;return null===je?"":Ct(je,Ne)},_getFormatPattern(){return this._currentFormat||this._updateFormat(),this._currentFormat},_updateFormat(){const je=this.option("format"),Ne=(0,e.Tn)(je?.parser),lt=(0,e.Kg)(je)&&(je.includes("0")||je.includes("#"));this._currentFormat=Ne||lt||"exponential"===je||"exponential"===je?.type?je:(0,v.g)(yt=>{const Gt=this._format(yt,je);return x.A.convertDigits(Gt,!0)})},_getFormatForSign(je){const Ne=this._getFormatPattern();if((0,e.Kg)(Ne)){const Qe=Ne.split(";"),Ct=x.A.getSign(je,Ne);return Qe[1]=Qe[1]||`-${Qe[0]}`,Ct<0?Qe[1]:Qe[0]}return x.A.getSign(je)<0?"-":""},_removeStubs(je,Ne){const lt=this._getFormatForSign(je),Qe=x.A.getThousandsSeparator(),Ct=this._getStubs(lt);let yt=je;if(Ct.length){const Gt=Ct[0],ft=new RegExp(`(${(0,m.Nt)(Ct[1]||"")})$`,"g"),nn=new RegExp(`[-${(0,m.Nt)(Ne?"":Qe)}]`,"g");yt=yt.replace(Gt,"").replace(ft,"").replace(nn,"")}return yt},_getStubs(je){const Ne=/[^']([#0.,]+)/g.exec(je),lt=Ne&&Ne[0].trim();return je.split(lt).map(Qe=>Qe.replace(/'/g,""))},_truncateToPrecision(je,Ne){if((0,e.O9)(je)){const lt=je.toString(),Qe=lt.indexOf(".");if(lt&&Qe>-1){const Ct=parseFloat(lt.substr(0,Qe+Ne+1));return isNaN(Ct)?je:Ct}}return je},_tryParse(je,Ne,lt){const Qe=Ne.start!==Ne.end,Ct=Qe&&0===Ne.start&&Ne.end===je.length,yt=x.A.getDecimalSeparator();if(Ct&&lt===yt)return 0;const Gt=this._replaceSelectedText(je,Ne,lt),ft=this._getFormatPattern();let nn=this._getParsedValue(Gt,ft);const rn=!ft.parser&&this._getPrecisionLimits(Gt).max,On=lt===yt&&0===rn,ji=!Qe&&!(nn!==this._parsedValue)&&"-"!==lt&&this._isStub(lt);return On||ji||(""===this._removeStubs(Gt)&&(nn=Math.abs(0*this._parsedValue)),isNaN(nn))?void 0:(nn=rn?this._truncateToPrecision(null===nn?this._parsedValue:nn,rn):nn,!ft.parser&&this._isPercentFormat()?function(je,Ne){return je&&(0,C.Ai)(je/100,Ne)}(nn,rn):nn)},_getParsedValue(je,Ne){const lt=x.A.getSign(je,Ne?.formatter||Ne),Qe=this._removeStubs(je,!0),Ct=this._parse(Qe,Ne),yt=Ct<0?-1:1;return(0,e.kf)(Ct)&&lt!==yt?lt*Ct:Ct},_isValueIncomplete(je){if(!this._useMaskBehavior())return this.callBase(je);const Ne=this._caret(),lt=x.A.getDecimalSeparator(),Qe=this._getTextSeparatorIndex(je),Ct=Qe>=0&&Qe<Ne.start,yt=this._removeStubs(je,!0).split(lt);if(!Ct||2!==yt.length)return!1;const Gt=yt[1].length,nn=!!this._getFormatPattern().parser,rn=!nn&&this._getPrecisionLimits(this._getFormatPattern(),je),Mn=!!nn||(0,C.r4)(Gt,rn.min,rn.max),On="0"===yt[1].charAt(Gt-1);return Mn&&(On||!Gt)},_isValueInRange(je){const Ne=(0,m.YD)(this.option("min"),-1/0),lt=(0,m.YD)(this.option("max"),1/0);return(0,C.r4)(je,Ne,lt)},_setInputText(je){const Ne=x.A.convertDigits(je,!0),lt=function(je,Ne,lt,Qe){lt=le(lt,0);const Ct=x.A.getDecimalSeparator(),yt=function Be(je){return 1===je.length&&!!je.match(/^[,.][0-9]*$/g)}(je),Gt=ye(Qe).occurrence,ft=yt?0:Me(je,Ct,Gt),nn=Me(Ne,Ct,Gt),rn=_e(je,ft),Mn=_e(Ne,nn);if(-1!==ft&&lt.start>ft){const ei=de(lt.start-ft-1,rn[1]);return Oe(Mn[1]?nn+1+pe(ei,Mn[1])+1:Ne.length,Ne,Qe)}const ji=function(je){return je.replace(/[^0-9e]+$/,"")}(Mn[0]),Vo=de(rn[0].length-lt.start,Ae(rn[0])),Co=pe(Vo,Ae(ji));return Oe(ji.length-(Co+1),Ne,Qe)}(this._getInputVal(),Ne,this._caret(),this._getFormatPattern());this._input().val(je),this._toggleEmptinessEventHandler(),this._formattedValue=je,this._focusOutOccurs||this._caret(lt)},_useMaskBehavior(){return!!this.option("format")&&this.option("useMaskBehavior")},_renderInputType(){const je="number"===this.option("mode"),Ne="desktop"===d.A.real().deviceType;this._useMaskBehavior()&&je?this._setInputType(Ne||this._isSupportInputMode()?"text":"tel"):this.callBase()},_isChar:je=>(0,e.Kg)(je)&&1===je.length,_moveCaret(je){if(!je)return;const lt=Oe(le(this._caret(),je),this._getInputVal(),this._getFormatPattern());this._caret(lt)},_shouldHandleKey(je){const Ne=(0,P.YD)(je),lt=(0,P.By)(je)||je.altKey||je.shiftKey||!this._isChar(Ne),Qe="minus"===Ne;return this._useMaskBehavior()&&!lt&&!Qe},_renderInput(){this.callBase(),this._renderFormatter()},_renderFormatter(){this._clearCache(),this._detachFormatterEvents(),this._useMaskBehavior()&&this._attachFormatterEvents()},_detachFormatterEvents(){k.A.off(this._input(),".dxNumberFormatter")},_isInputFromPaste(je){const Ne=je.originalEvent&&je.originalEvent.inputType;return(0,e.O9)(Ne)?"insertFromPaste"===Ne:this._isValuePasted},_attachFormatterEvents(){const je=this._input();k.A.on(je,(0,P.b4)("input","dxNumberFormatter"),Ne=>{this._formatValue(Ne),this._isValuePasted=!1}),k.A.on(je,(0,P.b4)("dxclick","dxNumberFormatter"),()=>{this._caretTimeout||(this._caretTimeout=setTimeout(()=>{this._caretTimeout=void 0,this._caret(Oe(this._caret(),this._getInputVal(),this._getFormatPattern()))},0))}),k.A.on(je,w.U,()=>{this.clearCaretTimeout()})},clearCaretTimeout(){clearTimeout(this._caretTimeout),this._caretTimeout=void 0},_forceRefreshInputValue(){if(!this._useMaskBehavior())return this.callBase()},_isNonStubAfter(je){const Ne=this._getInputVal().slice(je);return Ne&&!this._isStub(Ne,!0)},_isStub(je,Ne){const Qe=`^[^0-9${(0,m.Nt)(x.A.getDecimalSeparator())}]+$`;return new RegExp(Qe,"g").test(je)&&(Ne||this._isChar(je))},_parseValue(je){return this._useMaskBehavior()?this._parsedValue:this.callBase(je)},_getPrecisionLimits(je){const Ne=this._getFormatForSign(je),lt=ye(Ne).index,Qe=(_e(Ne,lt)[1]||"").replace(/[^#0]/g,"");return{min:Qe.replace(/^(0*)#*/,"$1").length,max:Qe.length}},_revertSign(je){if(!this._useMaskBehavior())return;const Ne=this._caret();if(Ne.start!==Ne.end){if("minus"===(0,P.YD)(je))return void this._applyRevertedSign(je,Ne,!0);this._caret(Oe(0,this._getInputVal(),this._getFormatPattern()))}this._applyRevertedSign(je,Ne)},_applyRevertedSign(je,Ne,lt){const Qe=-1*(0,m.YD)(this._parsedValue,null);if((this._isValueInRange(Qe)||0===Qe)&&(this._parsedValue=Qe,lt)){const Ct=this._getFormatPattern(),yt=this._getInputVal();this._setTextByParsedValue(),je.preventDefault();const Gt=this._getInputVal(),ft=function(je,Ne,lt){const Qe=Ye(je,lt);return Ye(Ne,lt).start-Qe.start}(yt,Gt,Ct),nn=Oe(Ne=le(Ne,ft),Gt,Ct);this._caret(nn)}},_removeMinusFromText(je,Ne){return"minus"===this._lastKeyName&&"-"===je.charAt(Ne.start-1)?this._replaceSelectedText(je,{start:Ne.start-1,end:Ne.start},""):je},_setTextByParsedValue(){const je=this._getFormatPattern(),Ne=this._parseValue(),lt=this._format(Ne,je)||"";this._setInputText(lt)},_formatValue(je){let Ne=this._getInputVal();const lt=this._caret(),Qe=this._removeMinusFromText(Ne,lt),Ct=Qe!==Ne;if(Ne=Qe,!this._isInputFromPaste(je)&&this._isValueIncomplete(Qe))return this._formattedValue=Ne,void(Ct&&this._setTextByParsedValue());if(x.A.convertDigits(this._formattedValue,!0)!==Ne){const Gt=this._tryParse(Ne,lt,"");(0,e.O9)(Gt)&&(this._parsedValue=Gt)}this._setTextByParsedValue()},_renderDisplayText(){this._useMaskBehavior()?this._toggleEmptinessEventHandler():this.callBase.apply(this,arguments)},_renderValue(){return this._useMaskBehavior()&&(this._parsedValue=this.option("value"),this._setTextByParsedValue()),this.callBase()},_updateParsedValue(){const je=this._getInputVal();this._parsedValue=this._tryParse(je,this._caret())},_adjustParsedValue(){if(!this._useMaskBehavior())return;const Ne=this._removeStubs(this._getInputVal())?this._parseValue():null;this._parsedValue=(0,e.kf)(Ne)?(0,C.df)(Ne,this.option("min"),this.option("max")):Ne},_valueChangeEventHandler(je){if(!this._useMaskBehavior())return this.callBase(je);const Ne=this._caret();this._saveValueChangeEvent(je),this._lastKey=null,this._lastKeyName=null,this._updateParsedValue(),this._adjustParsedValue(),this.option("value",this._parsedValue),Ne&&this._caret(Ne)},_optionChanged(je){switch(je.name){case"format":case"useMaskBehavior":this._renderInputType(),this._updateFormat(),this._renderFormatter(),this._renderValue(),this._refreshValueChangeEvent(),this._refreshEvents();break;case"min":case"max":this._adjustParsedValue(),this.callBase(je);break;default:this.callBase(je)}},_clearCache(){delete this._formattedValue,delete this._lastKey,delete this._lastKeyName,delete this._parsedValue,delete this._focusOutOccurs,clearTimeout(this._caretTimeout),delete this._caretTimeout},_clean(){this._clearCache(),this.callBase()}});(0,S.A)("dxNumberBox",ue);const Te=ue},9867:(En,it,p)=>{"use strict";p.d(it,{N:()=>m,S:()=>d});var S=p(4418);function d(T){return(0,S.T)(T?.lift)}function m(T){return C=>{if(d(C))return C.lift(function(e){try{return T(e,this)}catch(k){this.error(k)}});throw new TypeError("Unable to lift unknown Observable type")}}},9916:(En,it,p)=>{"use strict";p.d(it,{$A:()=>L,D9:()=>j,DO:()=>G,Im:()=>R,LO:()=>X,OE:()=>Q,SR:()=>P,aE:()=>v,bF:()=>H,m9:()=>b,oK:()=>K,st:()=>x,t7:()=>U,zL:()=>B});var S=p(1830),d=p(6054),m=p(2720),T=p(6110),C=p(2660),e=p(6021),k=p(4859);const w=m.A.add,P="DEVEXTREME_XHR_ERROR_UNLOAD",v=function(ee){return[ee[0],ee.length<3?"=":String(ee[1]).toLowerCase(),ee.length<2||ee[ee.length-1]]},x=function(ee){return Array.isArray(ee)||(ee=[ee]),(0,C.Tj)(ee,function(re){const be={selector:(0,S.Tn)(re)||"string"==typeof re?re:re.getter||re.field||re.selector,desc:!(!re.desc&&"d"!==String(re.dir).charAt(0).toLowerCase())};return re.compare&&(be.compare=re.compare),be})},b=function(){const ee={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"};let re;return w(function(){const be=(0,T.zk)();d.A.listen(be,"beforeunload",function(){re=!0})}),function(be,ce){return re?P:be.status<400?ee[Re=ce]||Re:be.statusText;var Re}}(),B={count:{seed:0,step:function(ee){return 1+ee}},sum:{seed:0,step:function(ee,re){return ee+re}},min:{step:function(ee,re){return re<ee?re:ee}},max:{step:function(ee,re){return re>ee?re:ee}},avg:{seed:[0,0],step:function(ee,re){return[ee[0]+re,ee[1]+1]},finalize:function(ee){return ee[1]?ee[0]/ee[1]:NaN}}},j=function(){let re,ee=0;return{obtain:function(){0===ee&&(re=new e.cY),ee++},release:function(){ee--,ee<1&&re.resolve()},promise:function(){return(0===ee?(new e.cY).resolve():re).promise()},reset:function(){ee=0,re&&re.resolve()}}}();function X(ee){return/^(and|&&|&)$/i.test(ee)}const U=function(ee,re,be){if(Array.isArray(ee)){const ce=(0,C.Tj)(re,function(Se,De){return De});let Re;for(let Se=0;Se<ce.length;Se++)if(Re=ce[Se],!(0,k.RL)(re[Re],be[Re],{strict:!1}))return!1;return!0}return(0,k.RL)(re,be,{strict:!1})},H=function(ee){return"!"===ee[0]&&Array.isArray(ee[1])},R=function(ee){if(ee.length>2&&Array.isArray(ee[0])&&"or"===ee[1]&&"string"==typeof ee[0][0]&&"="===ee[0][1]){const[re]=ee[0];return!ee.find((be,ce)=>ce%2!=0?"or"!==be:!Array.isArray(be)||3!==be.length||be[0]!==re||"="!==be[1])}return!1},L=function(ee){const re=ee[0],be=ee[1];return!!(Array.isArray(re)||(0,S.Tn)(re)&&(Array.isArray(be)||(0,S.Tn)(be)||function(ee){return"and"===ee||"or"===ee}(be)))},G=function(){const ee=new e.cY;return ee.resolve.apply(ee,arguments).promise()},Q=function(){const ee=new e.cY;return ee.reject.apply(ee,arguments).promise()};function K(ee,re){let be=[];const ce=function z(ee,re){let be;return function(){return be||(be=setTimeout(()=>{be=void 0,ee.call(this)},(0,S.Tn)(re)?re():re)),be}}(function(){ee.call(this,be),be=[]},re);return function(Re){return Array.isArray(Re)&&be.push(...Re),ce.call(this,be)}}},9961:(En,it,p)=>{"use strict";p.d(it,{A:()=>T});var S=p(2660),d=p(7110);const m=function(C,e){const k={};"noBubble"in e&&(k.noBubble=e.noBubble),"bindType"in e&&(k.bindType=e.bindType),"delegateType"in e&&(k.delegateType=e.delegateType),(0,S.__)(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(w,P){e[P]&&(k[P]=function(){const v=[].slice.call(arguments);return v.unshift(this),e[P].apply(e,v)})}),d.A.fire(C,k)};m.callbacks=d.A;const T=m},9965:(En,it,p)=>{"use strict";p.d(it,{V:()=>T,p:()=>C});var S=p(1830);const d=function(e,k){const w=k(e);if((0,S.Gv)(w))try{return JSON.stringify(w)}catch{return w}return w},m=function(e,k,w,P){return k[w[d(e,P)]]},T=function(e,k){if(e.length!==k.length)return!1;for(let w=0;w<k.length;w++)if(e[w]!==k[w])return!1;return!0},C=function(e,k,w,P){const v={},x={};let b=0,B=0;const j=[];e.forEach(function(X,U){const Z=d(X,w);v[Z]=U}),k.forEach(function(X,U){const Z=d(X,w);x[Z]=U});const F=Math.max(e.length,k.length);for(let X=0;X<F+b;X++){const U=k[X],Z=X-b+B,A=e[Z];if(!U||A&&!m(A,k,x,w))A&&(j.push({type:"remove",key:w(A),index:X,oldItem:A}),B++,X--);else{const H=d(U,w),J=v[H],R=e[J];if(R){if(J!==Z)return;P(R,U)||j.push({type:"update",data:U,key:w(U),index:X,oldItem:R})}else b++,j.push({type:"insert",data:U,index:X})}}return j}},9994:(En,it,p)=>{"use strict";p.d(it,{A:()=>Ct});var S=p(1973),d=p(5973),m=p(9522),T=p(5704),C=p(4859),e=p(3090),k=p(6110),w=p(8360),P=p(2359),v=p(7281),x=p(9212),b=p(2123),B=p(8684),j=p(6021),F=p(2660),X=p(2823);const ee=X.A.inherit({_init(yt){this.callBase(yt),this._$topPocket=yt._$topPocket,this._$pullDown=yt._$pullDown,this._$refreshingText=yt._$refreshingText,this._$scrollViewContent=(0,T.A)(yt.content()),this._$container=(0,T.A)(yt.container()),this._initCallbacks()},_initCallbacks(){this.pullDownCallbacks=(0,B.A)(),this.releaseCallbacks=(0,B.A)(),this.reachBottomCallbacks=(0,B.A)()},render(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown(){const yt=(0,T.A)("<div>").addClass("dx-scrollview-pull-down-image"),Gt=(0,T.A)("<div>").addClass("dx-scrollview-pull-down-indicator"),ft=new P.A((0,T.A)("<div>")).$element(),nn=this._$pullDownText=(0,T.A)("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=(0,T.A)("<div>").text(this.option("pullingDownText")).appendTo(nn),this._$pulledDownText=(0,T.A)("<div>").text(this.option("pulledDownText")).appendTo(nn),this._$refreshingText=(0,T.A)("<div>").text(this.option("refreshingText")).appendTo(nn),this._$pullDown.empty().append(yt).append(Gt.append(ft)).append(nn)},_releaseState(){this._state=0,this._refreshPullDownText()},_refreshPullDownText(){const yt=this;(0,F.__)([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],(ft,nn)=>{nn.element[yt._state===nn.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")})},update(){this.callBase(),this._setTopPocketOffset()},_updateDimensions(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;const yt=this._$scrollViewContent.get(0),Gt=this._$container.get(0);this._bottomBoundary=Math.max(yt.clientHeight-Gt.clientHeight,0)},_allowedDirections(){const yt=this.callBase();return yt.vertical=yt.vertical||this._pullDownEnabled,yt},_setTopPocketOffset(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd(){this.callBase(),this._complete()},handleStop(){this.callBase(),this._complete()},_complete(){1===this._state&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(()=>{this._pullDownRefreshing()},400))},_setPullDownOffset(yt){(0,b.Cy)(this._$topPocket,{top:yt}),(0,b.Cy)(this._$scrollViewContent,{top:yt})},handleScroll(yt){if(this.callBase(yt),2===this._state)return;const Gt=this.location().top,ft=(this._location||0)-Gt;this._location=Gt,this._isPullDown()?this._pullDownReady():ft>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()},_isPullDown(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom(){3!==this._state&&(this._state=3,this.reachBottomCallbacks.fire())},_pullDownReady(){1!==this._state&&(this._state=1,this._$pullDown.addClass("dx-scrollview-pull-down-ready"),this._refreshPullDownText())},_stateReleased(){0!==this._state&&(this._$pullDown.removeClass("dx-scrollview-pull-down-loading").removeClass("dx-scrollview-pull-down-ready"),this._releaseState())},_pullDownRefreshing(){2!==this._state&&(this._state=2,this._$pullDown.addClass("dx-scrollview-pull-down-loading").removeClass("dx-scrollview-pull-down-ready"),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable(yt){yt&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=yt},reachBottomEnable(yt){this._reachBottomEnabled=yt},pendingRelease(){this._state=1},release(){const yt=(0,j.cY)();return this._updateDimensions(),clearTimeout(this._releaseTimeout),3===this._state&&(this._state=0),this._releaseTimeout=setTimeout(()=>{this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),yt.resolve()},400),yt.promise()},dispose(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});var re=p(1363),be=p(9293);const ye=X.A.inherit({_init(yt){this.callBase(yt),this._$topPocket=yt._$topPocket,this._$pullDown=yt._$pullDown,this._$scrollViewContent=(0,T.A)(yt.content()),this._$container=(0,T.A)(yt.container()),this._initCallbacks(),this._location=0},_initCallbacks(){this.pullDownCallbacks=(0,B.A)(),this.releaseCallbacks=(0,B.A)(),this.reachBottomCallbacks=(0,B.A)()},render(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown(){const yt=(0,T.A)("<div>").addClass("dx-scrollview-pull-down-indicator"),Gt=new P.A((0,T.A)("<div>")).$element();this._$icon=(0,T.A)("<div>").addClass("dx-icon-pulldown"),this._$pullDown.empty().append(this._$icon).append(yt.append(Gt))},_releaseState(){this._state=0,this._releasePullDown(),this._updateDimensions()},_releasePullDown(){this._$pullDown.css({opacity:0})},_updateDimensions(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;const yt=this._$scrollViewContent.get(0),Gt=this._$container.get(0);this._bottomBoundary=Math.max(yt.clientHeight-Gt.clientHeight,0)},_allowedDirections(){const yt=this.callBase();return yt.vertical=yt.vertical||this._pullDownEnabled,yt},handleInit(yt){this.callBase(yt),0===this._state&&0===this._location&&(this._startClientY=(0,be.rw)(yt.originalEvent).y,this._state=4)},handleMove(yt){this.callBase(yt),this._deltaY=(0,be.rw)(yt.originalEvent).y-this._startClientY,4===this._state&&(this._pullDownEnabled&&this._deltaY>0?this._state=5:this._complete()),5===this._state&&(yt.preventDefault(),this._movePullDown())},_movePullDown(){const yt=this._getPullDownHeight(),Gt=Math.min(3*yt,this._deltaY+this._getPullDownStartPosition()),ft=180*Gt/yt/3;this._$pullDown.css({opacity:1}).toggleClass("dx-scrollview-pull-down-refreshing",Gt<yt),(0,b.Cy)(this._$pullDown,{top:Gt}),this._$icon.css({transform:`rotate(${ft}deg)`})},_isPullDown(){return this._pullDownEnabled&&5===this._state&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight(){return Math.round(.05*(0,re.P$)(this._$element))},_getPullDownStartPosition(){return-Math.round(1.5*(0,re.P$)(this._$pullDown))},handleEnd(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop(){this._complete()},_complete(){(4===this._state||5===this._state)&&this._releaseState()},handleScroll(yt){if(this.callBase(yt),2===this._state)return;const Gt=this.location().top,ft=this._location-Gt;this._location=Gt,ft>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()},_isReachBottom(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom(){this.reachBottomCallbacks.fire()},_stateReleased(){0!==this._state&&(this._$pullDown.removeClass("dx-scrollview-pull-down-loading"),this._releaseState())},_pullDownRefreshing(){this._state=2,this._pullDownRefreshHandler()},_pullDownRefreshHandler(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown(){this._$pullDown.addClass("dx-scrollview-pull-down-loading"),(0,b.Cy)(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable(yt){this._$topPocket.toggle(yt),this._pullDownEnabled=yt},reachBottomEnable(yt){this._reachBottomEnabled=yt},pendingRelease(){this._state=1},release(){const yt=(0,j.cY)();return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(()=>{this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),yt.resolve()},800),yt.promise()},dispose(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});var Me=p(316);const _e=Math,Oe=Me.H.inherit({ctor(){this._topPocketSize=0,this._bottomPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState(){this._state=0,this._refreshPullDownText()},_refreshPullDownText(){const yt=this;(0,F.__)([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],(ft,nn)=>{nn.element[yt._state===nn.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")})},_initCallbacks(){this.pullDownCallbacks=(0,B.A)(),this.releaseCallbacks=(0,B.A)(),this.reachBottomCallbacks=(0,B.A)()},_updateBounds(){if("horizontal"!==this._direction){this._topPocketSize=this._$topPocket.get(0).clientHeight,this._bottomPocketSize=this._$bottomPocket.get(0).clientHeight;const Gt=this._$container.get(0),ft=this._$content.get(0);this._bottomBoundary=Math.max(ft.clientHeight-this._bottomPocketSize-Gt.clientHeight,0)}this.callBase()},_updateScrollbar(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():0!==this._state&&this._stateReleased()},_moveScrollbar(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown(){return this._pullDownEnabled&&this._location>=0},_isReachBottom(){const yt=this._$container.get(0);return this._reachBottomEnabled&&Math.round(this._bottomBoundary-Math.ceil(yt.scrollTop))<=1},_scrollComplete(){this._inBounds()&&1===this._state?this._pullDownRefreshing():this._inBounds()&&3===this._state?this._reachBottomLoading():this.callBase()},_reachBottomReady(){3!==this._state&&(this._state=3,this._minOffset=this._getMinOffset())},_getMaxOffset(){return-this._topPocketSize},_getMinOffset(){return _e.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading(){this.reachBottomCallbacks.fire()},_pullDownReady(){1!==this._state&&(this._state=1,this._maxOffset=0,this._$pullDown.addClass("dx-scrollview-pull-down-ready"),this._refreshPullDownText())},_stateReleased(){0!==this._state&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass("dx-scrollview-pull-down-loading").removeClass("dx-scrollview-pull-down-ready"),this.releaseCallbacks.fire())},_pullDownRefreshing(){2!==this._state&&(this._state=2,this._$pullDown.addClass("dx-scrollview-pull-down-loading").removeClass("dx-scrollview-pull-down-ready"),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler(){return 0===this._state&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=(0,C.uG)(this._release.bind(this)),this._releaseTask.promise},_release(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler(yt){this._reachBottomEnabled!==yt&&(this._reachBottomEnabled=yt,this._updateBounds())},_pullDownEnablingHandler(yt){this._pullDownEnabled!==yt&&(this._pullDownEnabled=yt,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange(){this._location-=(0,re.Oq)(this._$topPocket)||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler(){this._state=1},dispose(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),We=Me.G.inherit({_init(yt){this.callBase(yt),this._$pullDown=yt._$pullDown,this._$topPocket=yt._$topPocket,this._$bottomPocket=yt._$bottomPocket,this._initCallbacks()},_initCallbacks(){this.pullDownCallbacks=(0,B.A)(),this.releaseCallbacks=(0,B.A)(),this.reachBottomCallbacks=(0,B.A)()},render(){this._renderPullDown(),this.callBase()},_renderPullDown(){const yt=(0,T.A)("<div>").addClass("dx-scrollview-pull-down-image"),Gt=(0,T.A)("<div>").addClass("dx-scrollview-pull-down-indicator"),ft=new P.A((0,T.A)("<div>")).$element(),nn=this._$pullDownText=(0,T.A)("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=(0,T.A)("<div>").text(this.option("pullingDownText")).appendTo(nn),this._$pulledDownText=(0,T.A)("<div>").text(this.option("pulledDownText")).appendTo(nn),this._$refreshingText=(0,T.A)("<div>").text(this.option("refreshingText")).appendTo(nn),this._$pullDown.empty().append(yt).append(Gt.append(ft)).append(nn)},pullDownEnable(yt){this._eventHandler("pullDownEnabling",yt)},reachBottomEnable(yt){this._eventHandler("reachBottomEnabling",yt)},_createScroller(yt){const Gt=this,ft=Gt._scrollers[yt]=new Oe(Gt._scrollerOptions(yt));ft.pullDownCallbacks.add(()=>{Gt.pullDownCallbacks.fire()}),ft.releaseCallbacks.add(()=>{Gt.releaseCallbacks.fire()}),ft.reachBottomCallbacks.add(()=>{Gt.reachBottomCallbacks.fire()})},_scrollerOptions(yt){return(0,e.X)(this.callBase(yt),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease(){this._eventHandler("pendingRelease")},release(){return this._eventHandler("release").done(this._updateAction)},location(){const yt=this.callBase();return yt.top+=(0,re.Oq)(this._$topPocket),yt},dispose(){(0,F.__)(this._scrollers,function(){this.dispose()}),this.callBase()}});var Ue=p(1037);const Te={pullDown:ee,swipeDown:ye,simulated:We},je=!(0,k.Vd)(),lt=Ue.A.inherit(je?{finishLoading:C.lQ,release:C.lQ,refresh:C.lQ,scrollOffset:()=>({top:0,left:0}),_optionChanged(yt){if("onUpdated"!==yt.name)return this.callBase.apply(this,arguments)}}:{_getDefaultOptions(){return(0,e.X)(this.callBase(),{pullingDownText:w.A.format("dxScrollView-pullingDownText"),pulledDownText:w.A.format("dxScrollView-pulledDownText"),refreshingText:w.A.format("dxScrollView-refreshingText"),reachBottomText:w.A.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules(){return this.callBase().concat([{device:()=>"android"===d.A.real().platform,options:{refreshStrategy:"swipeDown"}},{device:()=>(0,x.Nt)(),options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup(){this.callBase(),this.$element().addClass("dx-scrollview"),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent(){const yt=(0,T.A)("<div>").addClass("dx-scrollview-content");this._$content.wrapInner(yt)},_initTopPocket(){const yt=this._$topPocket=(0,T.A)("<div>").addClass("dx-scrollview-top-pocket"),Gt=this._$pullDown=(0,T.A)("<div>").addClass("dx-scrollview-pull-down");yt.append(Gt),this._$content.prepend(yt)},_initBottomPocket(){const yt=this._$bottomPocket=(0,T.A)("<div>").addClass("dx-scrollview-bottom-pocket"),Gt=this._$reachBottom=(0,T.A)("<div>").addClass("dx-scrollview-scrollbottom"),ft=(0,T.A)("<div>").addClass("dx-scrollview-scrollbottom-indicator"),nn=new P.A((0,T.A)("<div>")).$element(),rn=this._$reachBottomText=(0,T.A)("<div>").addClass("dx-scrollview-scrollbottom-text");this._updateReachBottomText(),Gt.append(ft.append(nn)).append(rn),yt.append(Gt),this._$content.append(yt)},_initLoadPanel(){const yt=(0,T.A)("<div>").addClass("dx-scrollview-loadpanel").appendTo(this.$element()),Gt={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(yt,v.A,Gt)},_updateReachBottomText(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy(){const yt=this.option("useNative")?this.option("refreshStrategy"):"simulated";this._strategy=new(0,Te[yt])(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._tryRefreshPocketState()},_tryRefreshPocketState(){this._pullDownEnable(this.hasActionSubscription("onPullDown")),this._reachBottomEnable(this.hasActionSubscription("onReachBottom"))},on(yt){const Gt=this.callBase.apply(this,arguments);return("pullDown"===yt||"reachBottom"===yt)&&this._tryRefreshPocketState(),Gt},_pullDownEnable(yt){if(0===arguments.length)return this._pullDownEnabled;this._$pullDown&&this._strategy&&(this._$pullDown.toggle(yt),this._strategy.pullDownEnable(yt),this._pullDownEnabled=yt)},_reachBottomEnable(yt){if(0===arguments.length)return this._reachBottomEnabled;this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(yt),this._strategy.reachBottomEnable(yt),this._reachBottomEnabled=yt)},_pullDownHandler(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator(yt){if(arguments.length<1)return this._loadingIndicatorEnabled;this._loadingIndicatorEnabled=yt},_pullDownLoading(){this.startLoading(),this._pullDownAction()},_reachBottomHandler(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading(){this.startLoading(),this._reachBottomAction()},_releaseHandler(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged(yt){switch(yt.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(yt)}},content(){return(0,m.cc)(this._$content.children().eq(1))},release(yt){return void 0!==yt&&this.toggleLoading(!yt),this._strategy.release()},toggleLoading(yt){this._reachBottomEnable(yt)},refresh(){this.hasActionSubscription("onPullDown")&&(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading(){this._loadingIndicator()&&this.$element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading(){this._loadPanel.hide(),this._unlock()},_dispose(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.$element().remove()}});(0,S.A)("dxScrollView",lt);const Ct=lt}},En=>{En(En.s=1955)}]);
